2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for libratbox devel.
5 # $Id: configure.ac 26260 2008-12-10 04:08:39Z androsyn $
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE
=1; export DUALCASE
# for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print
-rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
57 as_echo_n='/usr
/ucb
/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh
-c $as_echo_n_body as_echo
'
73 as_echo='sh
-c $as_echo_body as_echo
'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x
; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var
in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\
${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev
/null
2>&1 && unset $as_var || :
137 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x
; then
140 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in #(
156 as_required
="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1
179 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183 PATH=/empty FPATH=/empty; export PATH FPATH
184 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
186 if (eval "$as_required") 2>/dev
/null
; then :
191 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
194 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
196 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
199 test -z "$as_dir" && as_dir
=.
203 for as_base
in sh bash ksh sh5
; do
204 # Try only shells that exist, to save several forks.
205 as_shell
=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
208 CONFIG_SHELL
=$as_shell as_have_required
=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
219 CONFIG_SHELL
=$SHELL as_have_required
=yes
224 if test "x$CONFIG_SHELL" != x
; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
228 # Preserve -v and -x to the replacement shell.
231 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
234 *v
*x
* | *x
*v
* ) as_opts
=-vx ;;
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
242 if test x
$as_have_required = xno
; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x
${ZSH_VERSION+set} = xset
; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
249 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
250 $0: including any error possibly output before this
251 $0: message. Then install a modern shell, or manually run
252 $0: the script under such a shell if you do have one."
258 SHELL
=${CONFIG_SHELL-/bin/sh}
260 # Unset more variables known to interfere with behavior of common tools.
261 CLICOLOR_FORCE
= GREP_OPTIONS
=
262 unset CLICOLOR_FORCE GREP_OPTIONS
264 ## --------------------- ##
265 ## M4sh Shell Functions. ##
266 ## --------------------- ##
269 # Portably unset VAR.
272 { eval $1=; unset $1;}
276 # as_fn_set_status STATUS
277 # -----------------------
278 # Set $? to STATUS, without forking.
286 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
296 # Create "$as_dir" as a directory, including parents if necessary.
301 -*) as_dir
=.
/$as_dir;;
303 test -d "$as_dir" || eval $as_mkdir_p || {
307 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
310 as_dirs
="'$as_qdir' $as_dirs"
311 as_dir
=`$as_dirname -- "$as_dir" ||
312 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
313 X"$as_dir" : 'X\(//\)[^/]' \| \
314 X"$as_dir" : 'X\(//\)$' \| \
315 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
316 $as_echo X"$as_dir" |
317 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
334 test -d "$as_dir" && break
336 test -z "$as_dirs" || eval "mkdir $as_dirs"
337 } || test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
341 # as_fn_append VAR VALUE
342 # ----------------------
343 # Append the text in VALUE to the end of the definition contained in VAR. Take
344 # advantage of any shell optimizations that allow amortized linear growth over
345 # repeated appends, instead of the typical quadratic growth present in naive
347 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
348 eval 'as_fn_append ()
361 # Perform arithmetic evaluation on the ARGs, and store the result in the
362 # global $as_val. Take advantage of shells that can avoid forks. The arguments
363 # must be portable across $(()) and expr.
364 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
372 as_val
=`expr "$@" || test $? -eq 1`
377 # as_fn_error STATUS ERROR [LINENO LOG_FD]
378 # ----------------------------------------
379 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
380 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
381 # script with STATUS, using 1 if that was 0.
384 as_status
=$1; test $as_status -eq 0 && as_status
=1
386 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
387 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
389 $as_echo "$as_me: error: $2" >&2
390 as_fn_exit
$as_status
393 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
394 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
400 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
406 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
412 as_me
=`$as_basename -- "$0" ||
413 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
414 X"$0" : 'X\(//\)$' \| \
415 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417 sed '/^.*\/\([^/][^/]*\)\/*$/{
431 # Avoid depending upon Character Ranges.
432 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
433 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
434 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
435 as_cr_digits
='0123456789'
436 as_cr_alnum
=$as_cr_Letters$as_cr_digits
439 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
440 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
441 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
442 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
443 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
455 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
459 chmod +x
"$as_me.lineno" ||
460 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
462 # Don't try to exec as it changes $[0], causing all sort of problems
463 # (the dirname of $[0] is not the place where we might find the
464 # original and so on. Autoconf is especially sensitive to this).
466 # Exit status is that of the last command.
470 ECHO_C
= ECHO_N
= ECHO_T
=
471 case `echo -n x` in #(((((
473 case `echo 'xy\c'` in
474 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
476 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
483 rm -f conf$$ conf$$.exe conf$$.
file
484 if test -d conf$$.dir
; then
485 rm -f conf$$.dir
/conf$$.
file
488 mkdir conf$$.dir
2>/dev
/null
490 if (echo >conf$$.
file) 2>/dev
/null
; then
491 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
493 # ... but there are two gotchas:
494 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
495 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
496 # In both cases, we have to default to `cp -p'.
497 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe
||
499 elif ln conf$$.
file conf$$
2>/dev
/null
; then
507 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
508 rmdir conf$$.dir
2>/dev
/null
510 if mkdir -p .
2>/dev
/null
; then
511 as_mkdir_p
='mkdir -p "$as_dir"'
513 test -d .
/-p && rmdir .
/-p
517 if test -x / >/dev
/null
2>&1; then
520 if ls -dL / >/dev
/null
2>&1; then
527 if test -d "$1"; then
533 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
534 ???[sx]*):;;*)false;;esac;fi
538 as_executable_p
=$as_test_x
540 # Sed expression to map a string onto a valid CPP name.
541 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543 # Sed expression to map a string onto a valid variable name.
544 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546 SHELL
=${CONFIG_SHELL-/bin/sh}
549 test -n "$DJDIR" || exec 7<&0 </dev
/null
553 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
554 # so uname gets run too.
555 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
560 ac_default_prefix
=/usr
/local
562 ac_config_libobj_dir
=.
569 # Identity of this package.
570 PACKAGE_NAME
='libratbox'
571 PACKAGE_TARNAME
='libratbox'
572 PACKAGE_VERSION
='devel'
573 PACKAGE_STRING
='libratbox devel'
577 ac_default_prefix
=/usr
/local
/libratbox
578 # Factoring default headers for most tests.
579 ac_includes_default
="\
581 #ifdef HAVE_SYS_TYPES_H
582 # include <sys/types.h>
584 #ifdef HAVE_SYS_STAT_H
585 # include <sys/stat.h>
591 # ifdef HAVE_STDLIB_H
596 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
601 #ifdef HAVE_STRINGS_H
602 # include <strings.h>
604 #ifdef HAVE_INTTYPES_H
605 # include <inttypes.h>
615 ac_subst_vars
='am__EXEEXT_FALSE
665 MAINTAINER_MODE_FALSE
696 INSTALL_STRIP_PROGRAM
738 program_transform_name
751 enable_option_checking
752 enable_dependency_tracking
755 enable_maintainer_mode
769 ac_precious_vars
='build_alias
785 # Initialize some variables set by options.
787 ac_init_version
=false
788 ac_unrecognized_opts
=
790 # The variables have the same names as the options, with
791 # dashes changed to underlines.
799 program_transform_name
=s
,x
,x
,
807 # Installation directory options.
808 # These are left unexpanded so users can "make install exec_prefix=/foo"
809 # and all the variables that are supposed to be based on exec_prefix
810 # by default will actually change.
811 # Use braces instead of parens because sh, perl, etc. also accept them.
812 # (The list follows the same order as the GNU Coding Standards.)
813 bindir
='${exec_prefix}/bin'
814 sbindir
='${exec_prefix}/sbin'
815 libexecdir
='${exec_prefix}/libexec'
816 datarootdir
='${prefix}/share'
817 datadir
='${datarootdir}'
818 sysconfdir
='${prefix}/etc'
819 sharedstatedir
='${prefix}/com'
820 localstatedir
='${prefix}/var'
821 includedir
='${prefix}/include'
822 oldincludedir
='/usr/include'
823 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
824 infodir
='${datarootdir}/info'
829 libdir
='${exec_prefix}/lib'
830 localedir
='${datarootdir}/locale'
831 mandir
='${datarootdir}/man'
837 # If the previous option needs an argument, assign it.
838 if test -n "$ac_prev"; then
839 eval $ac_prev=\
$ac_option
845 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
850 # Accept the important Cygnus configure options, so we can diagnose typos.
852 case $ac_dashdash$ac_option in
856 -bindir | --bindir | --bindi | --bind | --bin | --bi)
858 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
861 -build | --build | --buil | --bui | --bu)
862 ac_prev
=build_alias
;;
863 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
864 build_alias
=$ac_optarg ;;
866 -cache-file | --cache-file | --cache-fil | --cache-fi \
867 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
868 ac_prev
=cache_file
;;
869 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
870 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
871 cache_file
=$ac_optarg ;;
874 cache_file
=config.cache
;;
876 -datadir | --datadir | --datadi | --datad)
878 -datadir=* | --datadir=* | --datadi=* | --datad=*)
879 datadir
=$ac_optarg ;;
881 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
882 | --dataroo | --dataro | --datar)
883 ac_prev
=datarootdir
;;
884 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
885 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
886 datarootdir
=$ac_optarg ;;
888 -disable-* | --disable-*)
889 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
890 # Reject names that are not valid shell variable names.
891 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
892 as_fn_error $?
"invalid feature name: $ac_useropt"
893 ac_useropt_orig
=$ac_useropt
894 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
895 case $ac_user_opts in
899 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
900 ac_unrecognized_sep
=', ';;
902 eval enable_
$ac_useropt=no
;;
904 -docdir | --docdir | --docdi | --doc | --do)
906 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
909 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
911 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
914 -enable-* | --enable-*)
915 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
916 # Reject names that are not valid shell variable names.
917 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
918 as_fn_error $?
"invalid feature name: $ac_useropt"
919 ac_useropt_orig
=$ac_useropt
920 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
921 case $ac_user_opts in
925 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
926 ac_unrecognized_sep
=', ';;
928 eval enable_
$ac_useropt=\
$ac_optarg ;;
930 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
931 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
932 | --exec | --exe | --ex)
933 ac_prev
=exec_prefix
;;
934 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
935 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
936 | --exec=* | --exe=* | --ex=*)
937 exec_prefix
=$ac_optarg ;;
939 -gas | --gas | --ga | --g)
940 # Obsolete; use --with-gas.
943 -help | --help | --hel | --he | -h)
945 -help=r
* | --help=r
* | --hel=r
* | --he=r
* | -hr*)
946 ac_init_help
=recursive
;;
947 -help=s
* | --help=s
* | --hel=s
* | --he=s
* | -hs*)
948 ac_init_help
=short
;;
950 -host | --host | --hos | --ho)
951 ac_prev
=host_alias
;;
952 -host=* | --host=* | --hos=* | --ho=*)
953 host_alias
=$ac_optarg ;;
955 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
957 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
959 htmldir
=$ac_optarg ;;
961 -includedir | --includedir | --includedi | --included | --include \
962 | --includ | --inclu | --incl | --inc)
963 ac_prev
=includedir
;;
964 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
965 | --includ=* | --inclu=* | --incl=* | --inc=*)
966 includedir
=$ac_optarg ;;
968 -infodir | --infodir | --infodi | --infod | --info | --inf)
970 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
971 infodir
=$ac_optarg ;;
973 -libdir | --libdir | --libdi | --libd)
975 -libdir=* | --libdir=* | --libdi=* | --libd=*)
978 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
979 | --libexe | --libex | --libe)
980 ac_prev
=libexecdir
;;
981 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
982 | --libexe=* | --libex=* | --libe=*)
983 libexecdir
=$ac_optarg ;;
985 -localedir | --localedir | --localedi | --localed | --locale)
987 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
988 localedir
=$ac_optarg ;;
990 -localstatedir | --localstatedir | --localstatedi | --localstated \
991 | --localstate | --localstat | --localsta | --localst | --locals)
992 ac_prev
=localstatedir
;;
993 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
994 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
995 localstatedir
=$ac_optarg ;;
997 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
999 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1000 mandir
=$ac_optarg ;;
1002 -nfp | --nfp | --nf)
1003 # Obsolete; use --without-fp.
1006 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1007 | --no-cr | --no-c | -n)
1010 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1011 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1014 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1015 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1016 | --oldin | --oldi | --old | --ol | --o)
1017 ac_prev
=oldincludedir
;;
1018 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1019 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1020 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1021 oldincludedir
=$ac_optarg ;;
1023 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1025 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1026 prefix
=$ac_optarg ;;
1028 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1029 | --program-pre | --program-pr | --program-p)
1030 ac_prev
=program_prefix
;;
1031 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1032 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1033 program_prefix
=$ac_optarg ;;
1035 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1036 | --program-suf | --program-su | --program-s)
1037 ac_prev
=program_suffix
;;
1038 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1039 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1040 program_suffix
=$ac_optarg ;;
1042 -program-transform-name | --program-transform-name \
1043 | --program-transform-nam | --program-transform-na \
1044 | --program-transform-n | --program-transform- \
1045 | --program-transform | --program-transfor \
1046 | --program-transfo | --program-transf \
1047 | --program-trans | --program-tran \
1048 | --progr-tra | --program-tr | --program-t)
1049 ac_prev
=program_transform_name
;;
1050 -program-transform-name=* | --program-transform-name=* \
1051 | --program-transform-nam=* | --program-transform-na=* \
1052 | --program-transform-n=* | --program-transform-=* \
1053 | --program-transform=* | --program-transfor=* \
1054 | --program-transfo=* | --program-transf=* \
1055 | --program-trans=* | --program-tran=* \
1056 | --progr-tra=* | --program-tr=* | --program-t=*)
1057 program_transform_name
=$ac_optarg ;;
1059 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1061 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1062 pdfdir
=$ac_optarg ;;
1064 -psdir | --psdir | --psdi | --psd | --ps)
1066 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1069 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1070 | -silent | --silent | --silen | --sile | --sil)
1073 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1075 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1077 sbindir
=$ac_optarg ;;
1079 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1080 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1081 | --sharedst | --shareds | --shared | --share | --shar \
1083 ac_prev
=sharedstatedir
;;
1084 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1085 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1086 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1088 sharedstatedir
=$ac_optarg ;;
1090 -site | --site | --sit)
1092 -site=* | --site=* | --sit=*)
1095 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1097 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1098 srcdir
=$ac_optarg ;;
1100 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1101 | --syscon | --sysco | --sysc | --sys | --sy)
1102 ac_prev
=sysconfdir
;;
1103 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1104 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1105 sysconfdir
=$ac_optarg ;;
1107 -target | --target | --targe | --targ | --tar | --ta | --t)
1108 ac_prev
=target_alias
;;
1109 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1110 target_alias
=$ac_optarg ;;
1112 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1115 -version | --version | --versio | --versi | --vers | -V)
1116 ac_init_version
=: ;;
1119 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1120 # Reject names that are not valid shell variable names.
1121 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1122 as_fn_error $?
"invalid package name: $ac_useropt"
1123 ac_useropt_orig
=$ac_useropt
1124 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1125 case $ac_user_opts in
1129 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1130 ac_unrecognized_sep
=', ';;
1132 eval with_
$ac_useropt=\
$ac_optarg ;;
1134 -without-* | --without-*)
1135 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1136 # Reject names that are not valid shell variable names.
1137 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1138 as_fn_error $?
"invalid package name: $ac_useropt"
1139 ac_useropt_orig
=$ac_useropt
1140 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1141 case $ac_user_opts in
1145 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1146 ac_unrecognized_sep
=', ';;
1148 eval with_
$ac_useropt=no
;;
1151 # Obsolete; use --with-x.
1154 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1155 | --x-incl | --x-inc | --x-in | --x-i)
1156 ac_prev
=x_includes
;;
1157 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1158 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1159 x_includes
=$ac_optarg ;;
1161 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1162 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1163 ac_prev
=x_libraries
;;
1164 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1165 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1166 x_libraries
=$ac_optarg ;;
1168 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1169 Try \`$0 --help' for more information"
1173 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1174 # Reject names that are not valid shell variable names.
1175 case $ac_envvar in #(
1176 '' | [0-9]* | *[!_$as_cr_alnum]* )
1177 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1179 eval $ac_envvar=\
$ac_optarg
1180 export $ac_envvar ;;
1183 # FIXME: should be removed in autoconf 3.0.
1184 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1185 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1186 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1187 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1193 if test -n "$ac_prev"; then
1194 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1195 as_fn_error $?
"missing argument to $ac_option"
1198 if test -n "$ac_unrecognized_opts"; then
1199 case $enable_option_checking in
1201 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1202 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1206 # Check all directory arguments for consistency.
1207 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1208 datadir sysconfdir sharedstatedir localstatedir includedir \
1209 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1210 libdir localedir mandir
1212 eval ac_val
=\$
$ac_var
1213 # Remove trailing slashes.
1216 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1217 eval $ac_var=\
$ac_val;;
1219 # Be sure to have absolute directory names.
1221 [\\/$
]* | ?
:[\\/]* ) continue;;
1222 NONE
| '' ) case $ac_var in *prefix
) continue;; esac;;
1224 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1227 # There might be people who depend on the old broken behavior: `$host'
1228 # used to hold the argument of --host etc.
1229 # FIXME: To remove some day.
1232 target
=$target_alias
1234 # FIXME: To remove some day.
1235 if test "x$host_alias" != x
; then
1236 if test "x$build_alias" = x
; then
1237 cross_compiling
=maybe
1238 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1239 If a cross compiler is detected then cross compile mode will be used" >&2
1240 elif test "x$build_alias" != "x$host_alias"; then
1246 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1248 test "$silent" = yes && exec 6>/dev
/null
1251 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1252 ac_ls_di
=`ls -di .` &&
1253 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1254 as_fn_error $?
"working directory cannot be determined"
1255 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1256 as_fn_error $?
"pwd does not report name of working directory"
1259 # Find the source files, if location was not specified.
1260 if test -z "$srcdir"; then
1261 ac_srcdir_defaulted
=yes
1262 # Try the directory containing this script, then the parent directory.
1263 ac_confdir
=`$as_dirname -- "$as_myself" ||
1264 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1265 X"$as_myself" : 'X\(//\)[^/]' \| \
1266 X"$as_myself" : 'X\(//\)$' \| \
1267 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1268 $as_echo X"$as_myself" |
1269 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1287 if test ! -r "$srcdir/$ac_unique_file"; then
1291 ac_srcdir_defaulted
=no
1293 if test ! -r "$srcdir/$ac_unique_file"; then
1294 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1295 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1297 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1299 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1301 # When building in place, set srcdir=.
1302 if test "$ac_abs_confdir" = "$ac_pwd"; then
1305 # Remove unnecessary trailing slashes from srcdir.
1306 # Double slashes in file names in object file debugging info
1307 # mess up M-x gdb in Emacs.
1309 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1311 for ac_var
in $ac_precious_vars; do
1312 eval ac_env_
${ac_var}_set
=\
${${ac_var}+set}
1313 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1314 eval ac_cv_env_
${ac_var}_set
=\
${${ac_var}+set}
1315 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1319 # Report the --help message.
1321 if test "$ac_init_help" = "long"; then
1322 # Omit some internal or obsolete options to make the list less imposing.
1323 # This message is too long to be a string in the A/UX 3.1 sh.
1325 \`configure' configures libratbox devel to adapt to many kinds of systems.
1327 Usage: $0 [OPTION]... [VAR=VALUE]...
1329 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1330 VAR=VALUE. See below for descriptions of some of the useful variables.
1332 Defaults for the options are specified in brackets.
1335 -h, --help display this help and exit
1336 --help=short display options specific to this package
1337 --help=recursive display the short help of all the included packages
1338 -V, --version display version information and exit
1339 -q, --quiet, --silent do not print \`checking ...' messages
1340 --cache-file=FILE cache test results in FILE [disabled]
1341 -C, --config-cache alias for \`--cache-file=config.cache'
1342 -n, --no-create do not create output files
1343 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1345 Installation directories:
1346 --prefix=PREFIX install architecture-independent files in PREFIX
1347 [$ac_default_prefix]
1348 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1351 By default, \`make install' will install all the files in
1352 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1353 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1354 for instance \`--prefix=\$HOME'.
1356 For better control, use the options below.
1358 Fine tuning of the installation directories:
1359 --bindir=DIR user executables [EPREFIX/bin]
1360 --sbindir=DIR system admin executables [EPREFIX/sbin]
1361 --libexecdir=DIR program executables [EPREFIX/libexec]
1362 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1363 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1364 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1365 --libdir=DIR object code libraries [EPREFIX/lib]
1366 --includedir=DIR C header files [PREFIX/include]
1367 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1368 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1369 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1370 --infodir=DIR info documentation [DATAROOTDIR/info]
1371 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1372 --mandir=DIR man documentation [DATAROOTDIR/man]
1373 --docdir=DIR documentation root [DATAROOTDIR/doc/libratbox]
1374 --htmldir=DIR html documentation [DOCDIR]
1375 --dvidir=DIR dvi documentation [DOCDIR]
1376 --pdfdir=DIR pdf documentation [DOCDIR]
1377 --psdir=DIR ps documentation [DOCDIR]
1383 --program-prefix=PREFIX prepend PREFIX to installed program names
1384 --program-suffix=SUFFIX append SUFFIX to installed program names
1385 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1388 --build=BUILD configure
for building on BUILD
[guessed
]
1389 --host=HOST cross
-compile to build programs to run on HOST
[BUILD
]
1393 if test -n "$ac_init_help"; then
1394 case $ac_init_help in
1395 short
| recursive
) echo "Configuration of libratbox devel:";;
1400 --disable-option-checking ignore unrecognized
--enable/--with options
1401 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1402 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1403 --disable-dependency-tracking speeds up one
-time build
1404 --enable-dependency-tracking do not reject slow dependency extractors
1405 --enable-static[=PKGS
] build static libraries
[default
=no
]
1406 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1407 --enable-maintainer-mode enable make rules and dependencies not useful
1408 (and sometimes confusing
) to the casual installer
1409 --enable-fast-install[=PKGS
]
1410 optimize
for fast installation
[default
=yes]
1411 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1412 --disable-ipv6 Disable IPv6 support
1413 --enable-openssl=DIR Enable OpenSSL support
(DIR optional
).
1414 --disable-openssl Disable OpenSSL support.
1415 --enable-gnutls Enable GnuTLS support.
1416 --disable-gnutls Disable GnuTLS support.
1417 --enable-assert Enable assert
(). Choose between soft
(warnings
) and
1418 hard
(aborts the daemon
)
1419 --enable-profile Enable profiling
1420 --disable-balloc Disable the block allocator.
1421 --enable-warnings Enable all sorts of warnings
for debugging.
1424 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1425 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1426 --with-pic[=PKGS
] try to use only PIC
/non
-PIC objects
[default
=use
1428 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1429 --with-sysroot=DIR Search
for dependent libraries within DIR
1430 (or the compiler
's sysroot if not specified).
1432 Some influential environment variables:
1433 CC C compiler command
1434 CFLAGS C compiler flags
1435 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1436 nonstandard directory <lib dir>
1437 LIBS libraries to pass to the linker, e.g. -l<library>
1438 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1439 you have headers in a nonstandard directory <include dir>
1441 PKG_CONFIG path to pkg-config utility
1443 directories to add to pkg-config's search path
1445 path overriding pkg
-config's built-in search path
1447 C compiler flags for GNUTLS, overriding pkg-config
1448 GNUTLS_LIBS linker flags for GNUTLS, overriding pkg-config
1450 Use these variables to override the choices made by `configure' or to
help
1451 it to
find libraries and programs with nonstandard names
/locations.
1453 Report bugs to the package provider.
1458 if test "$ac_init_help" = "recursive"; then
1459 # If there are subdirs, report their specific --help.
1460 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1461 test -d "$ac_dir" ||
1462 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1467 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1469 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1470 # A ".." for each directory in $ac_dir_suffix.
1471 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1472 case $ac_top_builddir_sub in
1473 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1474 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1477 ac_abs_top_builddir
=$ac_pwd
1478 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1479 # for backward compatibility:
1480 ac_top_builddir
=$ac_top_build_prefix
1483 .
) # We are building in place.
1485 ac_top_srcdir
=$ac_top_builddir_sub
1486 ac_abs_top_srcdir
=$ac_pwd ;;
1487 [\\/]* | ?
:[\\/]* ) # Absolute name.
1488 ac_srcdir
=$srcdir$ac_dir_suffix;
1489 ac_top_srcdir
=$srcdir
1490 ac_abs_top_srcdir
=$srcdir ;;
1492 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1493 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1494 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1496 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1498 cd "$ac_dir" || { ac_status
=$?
; continue; }
1499 # Check for guested configure.
1500 if test -f "$ac_srcdir/configure.gnu"; then
1502 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1503 elif test -f "$ac_srcdir/configure"; then
1505 $SHELL "$ac_srcdir/configure" --help=recursive
1507 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1509 cd "$ac_pwd" || { ac_status
=$?
; break; }
1513 test -n "$ac_init_help" && exit $ac_status
1514 if $ac_init_version; then
1516 libratbox configure devel
1517 generated by GNU Autoconf
2.68
1519 Copyright
(C
) 2010 Free Software Foundation
, Inc.
1520 This configure
script is free software
; the Free Software Foundation
1521 gives unlimited permission to copy
, distribute and modify it.
1523 $Id: configure.ac
26260 2008-12-10 04:08:39Z androsyn $
1528 ## ------------------------ ##
1529 ## Autoconf initialization. ##
1530 ## ------------------------ ##
1532 # ac_fn_c_try_compile LINENO
1533 # --------------------------
1534 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1535 ac_fn_c_try_compile
()
1537 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1538 rm -f conftest.
$ac_objext
1539 if { { ac_try
="$ac_compile"
1541 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
1542 *) ac_try_echo=$ac_try;;
1544 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1545 $as_echo "$ac_try_echo"; } >&5
1546 (eval "$ac_compile") 2>conftest.err
1548 if test -s conftest.err; then
1549 grep -v '^ *+' conftest.err >conftest.er1
1550 cat conftest.er1 >&5
1551 mv -f conftest.er1 conftest.err
1553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1554 test $ac_status = 0; } && {
1555 test -z "$ac_c_werror_flag" ||
1556 test ! -s conftest.err
1557 } && test -s conftest.$ac_objext; then :
1560 $as_echo "$as_me: failed program was:" >&5
1561 sed 's/^/| /' conftest.$ac_ext >&5
1565 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1566 as_fn_set_status $ac_retval
1568 } # ac_fn_c_try_compile
1570 # ac_fn_c_try_cpp LINENO
1571 # ----------------------
1572 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1575 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1576 if { { ac_try="$ac_cpp conftest.$ac_ext"
1578 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
1579 *) ac_try_echo
=$ac_try;;
1581 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1582 $as_echo "$ac_try_echo"; } >&5
1583 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1585 if test -s conftest.err
; then
1586 grep -v '^ *+' conftest.err
>conftest.er1
1587 cat conftest.er1
>&5
1588 mv -f conftest.er1 conftest.err
1590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1591 test $ac_status = 0; } > conftest.i
&& {
1592 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1593 test ! -s conftest.err
1597 $as_echo "$as_me: failed program was:" >&5
1598 sed 's/^/| /' conftest.
$ac_ext >&5
1602 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1603 as_fn_set_status
$ac_retval
1607 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1608 # -------------------------------------------------------
1609 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1610 # the include files in INCLUDES and setting the cache variable VAR
1612 ac_fn_c_check_header_mongrel
()
1614 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1615 if eval \
${$3+:} false
; then :
1616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1617 $as_echo_n "checking for $2... " >&6; }
1618 if eval \
${$3+:} false
; then :
1619 $as_echo_n "(cached) " >&6
1622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1623 $as_echo "$ac_res" >&6; }
1625 # Is the header compilable?
1626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1627 $as_echo_n "checking $2 usability... " >&6; }
1628 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1629 /* end confdefs.h. */
1633 if ac_fn_c_try_compile
"$LINENO"; then :
1634 ac_header_compiler
=yes
1636 ac_header_compiler
=no
1638 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1640 $as_echo "$ac_header_compiler" >&6; }
1642 # Is the header present?
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1644 $as_echo_n "checking $2 presence... " >&6; }
1645 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1646 /* end confdefs.h. */
1649 if ac_fn_c_try_cpp
"$LINENO"; then :
1650 ac_header_preproc
=yes
1652 ac_header_preproc
=no
1654 rm -f conftest.err conftest.i conftest.
$ac_ext
1655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1656 $as_echo "$ac_header_preproc" >&6; }
1658 # So? What about this header?
1659 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1662 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1664 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1668 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1670 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1672 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1674 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1676 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1680 $as_echo_n "checking for $2... " >&6; }
1681 if eval \
${$3+:} false
; then :
1682 $as_echo_n "(cached) " >&6
1684 eval "$3=\$ac_header_compiler"
1687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1688 $as_echo "$ac_res" >&6; }
1690 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1692 } # ac_fn_c_check_header_mongrel
1694 # ac_fn_c_try_run LINENO
1695 # ----------------------
1696 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1697 # that executables *can* be run.
1700 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1701 if { { ac_try
="$ac_link"
1703 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
1704 *) ac_try_echo=$ac_try;;
1706 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1707 $as_echo "$ac_try_echo"; } >&5
1708 (eval "$ac_link") 2>&5
1710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1712 { { case "(($ac_try" in
1713 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
1714 *) ac_try_echo
=$ac_try;;
1716 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1717 $as_echo "$ac_try_echo"; } >&5
1718 (eval "$ac_try") 2>&5
1720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1721 test $ac_status = 0; }; }; then :
1724 $as_echo "$as_me: program exited with status $ac_status" >&5
1725 $as_echo "$as_me: failed program was:" >&5
1726 sed 's/^/| /' conftest.
$ac_ext >&5
1728 ac_retval
=$ac_status
1730 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1731 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1732 as_fn_set_status
$ac_retval
1736 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1737 # -------------------------------------------------------
1738 # Tests whether HEADER exists and can be compiled using the include files in
1739 # INCLUDES, setting the cache variable VAR accordingly.
1740 ac_fn_c_check_header_compile
()
1742 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1744 $as_echo_n "checking for $2... " >&6; }
1745 if eval \
${$3+:} false
; then :
1746 $as_echo_n "(cached) " >&6
1748 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1749 /* end confdefs.h. */
1753 if ac_fn_c_try_compile
"$LINENO"; then :
1758 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1762 $as_echo "$ac_res" >&6; }
1763 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1765 } # ac_fn_c_check_header_compile
1767 # ac_fn_c_try_link LINENO
1768 # -----------------------
1769 # Try to link conftest.$ac_ext, and return whether this succeeded.
1772 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1773 rm -f conftest.
$ac_objext conftest
$ac_exeext
1774 if { { ac_try
="$ac_link"
1776 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
1777 *) ac_try_echo=$ac_try;;
1779 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1780 $as_echo "$ac_try_echo"; } >&5
1781 (eval "$ac_link") 2>conftest.err
1783 if test -s conftest.err; then
1784 grep -v '^ *+' conftest.err >conftest.er1
1785 cat conftest.er1 >&5
1786 mv -f conftest.er1 conftest.err
1788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1789 test $ac_status = 0; } && {
1790 test -z "$ac_c_werror_flag" ||
1791 test ! -s conftest.err
1792 } && test -s conftest$ac_exeext && {
1793 test "$cross_compiling" = yes ||
1794 $as_test_x conftest$ac_exeext
1798 $as_echo "$as_me: failed program was:" >&5
1799 sed 's/^/| /' conftest.$ac_ext >&5
1803 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1804 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1805 # interfere with the next link command; also delete a directory that is
1806 # left behind by Apple's compiler. We do this before executing the actions.
1807 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1808 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1809 as_fn_set_status $ac_retval
1811 } # ac_fn_c_try_link
1813 # ac_fn_c_check_func LINENO FUNC VAR
1814 # ----------------------------------
1815 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1816 ac_fn_c_check_func ()
1818 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1820 $as_echo_n "checking for $2... " >&6; }
1821 if eval \${$3+:} false; then :
1822 $as_echo_n "(cached) " >&6
1824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1825 /* end confdefs.h. */
1826 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1827 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1828 #define $2 innocuous_$2
1830 /* System header to define __stub macros and hopefully few prototypes,
1831 which can conflict with char $2 (); below.
1832 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1833 <limits.h> exists even on freestanding compilers. */
1836 # include <limits.h>
1838 # include <assert.h>
1843 /* Override any GCC internal prototype to avoid an error.
1844 Use char because int might match the return type of a GCC
1845 builtin and then its argument prototype would still apply. */
1850 /* The GNU C library defines this for functions which it implements
1851 to always fail with ENOSYS. Some functions are actually named
1852 something starting with __ and the normal name is an alias. */
1853 #if defined __stub_$2 || defined __stub___$2
1865 if ac_fn_c_try_link "$LINENO"; then :
1870 rm -f core conftest.err conftest.$ac_objext \
1871 conftest$ac_exeext conftest.$ac_ext
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1875 $as_echo "$ac_res" >&6; }
1876 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1878 } # ac_fn_c_check_func
1880 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1881 # -------------------------------------------
1882 # Tests whether TYPE exists after having included INCLUDES, setting cache
1883 # variable VAR accordingly.
1884 ac_fn_c_check_type ()
1886 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1888 $as_echo_n "checking for $2... " >&6; }
1889 if eval \${$3+:} false; then :
1890 $as_echo_n "(cached) " >&6
1893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1894 /* end confdefs.h. */
1905 if ac_fn_c_try_compile "$LINENO"; then :
1906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1907 /* end confdefs.h. */
1918 if ac_fn_c_try_compile "$LINENO"; then :
1923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1929 $as_echo "$ac_res" >&6; }
1930 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1932 } # ac_fn_c_check_type
1934 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1935 # ----------------------------------------------------
1936 # Tries to find if the field MEMBER exists in type AGGR, after including
1937 # INCLUDES, setting cache variable VAR accordingly.
1938 ac_fn_c_check_member ()
1940 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1942 $as_echo_n "checking for $2.$3... " >&6; }
1943 if eval \${$4+:} false; then :
1944 $as_echo_n "(cached) " >&6
1946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1947 /* end confdefs.h. */
1959 if ac_fn_c_try_compile "$LINENO"; then :
1962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1963 /* end confdefs.h. */
1969 if (sizeof ac_aggr.$3)
1975 if ac_fn_c_try_compile "$LINENO"; then :
1980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1986 $as_echo "$ac_res" >&6; }
1987 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1989 } # ac_fn_c_check_member
1990 cat >config.log <<_ACEOF
1991 This file contains any messages produced by compilers while
1992 running configure, to aid debugging if configure makes a mistake.
1994 It was created by libratbox $as_me devel, which was
1995 generated by GNU Autoconf 2.68. Invocation command line was
2007 hostname = `(hostname
|| uname
-n) 2>/dev
/null
| sed 1q
`
2008 uname -m = `(uname
-m) 2>/dev
/null
|| echo unknown
`
2009 uname -r = `(uname
-r) 2>/dev
/null
|| echo unknown
`
2010 uname -s = `(uname
-s) 2>/dev
/null
|| echo unknown
`
2011 uname -v = `(uname
-v) 2>/dev
/null
|| echo unknown
`
2013 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null
|| echo unknown
`
2014 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null
|| echo unknown
`
2016 /bin/arch = `(/bin
/arch
) 2>/dev
/null
|| echo unknown
`
2017 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null
|| echo unknown
`
2018 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null
|| echo unknown
`
2019 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null
|| echo unknown
`
2020 /bin/machine = `(/bin
/machine
) 2>/dev
/null
|| echo unknown
`
2021 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null
|| echo unknown
`
2022 /bin/universe = `(/bin
/universe
) 2>/dev
/null
|| echo unknown
`
2026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2030 test -z "$as_dir" && as_dir=.
2031 $as_echo "PATH: $as_dir"
2047 # Keep a trace of the command line.
2048 # Strip out --no-create and --no-recursion so they do not pile up.
2049 # Strip out --silent because we don't want to record it for future runs.
2050 # Also quote any args containing shell meta-characters.
2051 # Make two passes to allow for proper duplicate-argument suppression.
2055 ac_must_keep_next=false
2061 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2062 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2063 | -silent | --silent | --silen | --sile | --sil)
2066 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2069 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2071 as_fn_append ac_configure_args1 " '$ac_arg'"
2072 if test $ac_must_keep_next = true; then
2073 ac_must_keep_next=false # Got value, back to normal.
2076 *=* | --config-cache | -C | -disable-* | --disable-* \
2077 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2078 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2079 | -with-* | --with-* | -without-* | --without-* | --x)
2080 case "$ac_configure_args0 " in
2081 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2084 -* ) ac_must_keep_next=true ;;
2087 as_fn_append ac_configure_args " '$ac_arg'"
2092 { ac_configure_args0=; unset ac_configure_args0;}
2093 { ac_configure_args1=; unset ac_configure_args1;}
2095 # When interrupted or exit'd, cleanup temporary files, and complete
2096 # config.log. We remove comments because anyway the quotes in there
2097 # would cause problems or look ugly.
2098 # WARNING: Use '\'' to represent an apostrophe within the trap.
2099 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2100 trap 'exit_status=$?
2101 # Save into config.log some information that might help in debugging.
2105 $as_echo "## ---------------- ##
2106 ## Cache variables. ##
2107 ## ---------------- ##"
2109 # The following way of writing the cache mishandles newlines in values,
2111 for ac_var in `(set) 2>&1 | sed -n '\''s
/^\
([a
-zA-Z_][a
-zA-Z0-9_]*\
)=.
*/\
1/p
'\''`; do
2112 eval ac_val=\$$ac_var
2116 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2117 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2120 _ | IFS | as_nl) ;; #(
2121 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2122 *) { eval $ac_var=; unset $ac_var;} ;;
2127 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2128 *${as_nl}ac_space=\ *)
2130 "s/'\''/'\''\\\\'\'''\''/g;
2131 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2134 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2141 $as_echo "## ----------------- ##
2142 ## Output variables. ##
2143 ## ----------------- ##"
2145 for ac_var in $ac_subst_vars
2147 eval ac_val=\$$ac_var
2149 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2151 $as_echo "$ac_var='\''$ac_val'\''"
2155 if test -n "$ac_subst_files"; then
2156 $as_echo "## ------------------- ##
2157 ## File substitutions. ##
2158 ## ------------------- ##"
2160 for ac_var in $ac_subst_files
2162 eval ac_val=\$$ac_var
2164 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2166 $as_echo "$ac_var='\''$ac_val'\''"
2171 if test -s confdefs.h; then
2172 $as_echo "## ----------- ##
2179 test "$ac_signal" != 0 &&
2180 $as_echo "$as_me: caught signal $ac_signal"
2181 $as_echo "$as_me: exit $exit_status"
2183 rm -f core *.core core.conftest.* &&
2184 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2187 for ac_signal in 1 2 13 15; do
2188 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2192 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2193 rm -f -r conftest* confdefs.h
2195 $as_echo "/* confdefs.h */" > confdefs.h
2197 # Predefined preprocessor variables.
2199 cat >>confdefs.h <<_ACEOF
2200 #define PACKAGE_NAME "$PACKAGE_NAME"
2203 cat >>confdefs.h <<_ACEOF
2204 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2207 cat >>confdefs.h <<_ACEOF
2208 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2211 cat >>confdefs.h <<_ACEOF
2212 #define PACKAGE_STRING "$PACKAGE_STRING"
2215 cat >>confdefs.h <<_ACEOF
2216 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2219 cat >>confdefs.h <<_ACEOF
2220 #define PACKAGE_URL "$PACKAGE_URL"
2224 # Let the site file select an alternate cache file if it wants to.
2225 # Prefer an explicitly selected file to automatically selected ones.
2228 if test -n "$CONFIG_SITE"; then
2229 # We do not want a PATH search for config.site.
2230 case $CONFIG_SITE in #((
2231 -*) ac_site_file1=./$CONFIG_SITE;;
2232 */*) ac_site_file1=$CONFIG_SITE;;
2233 *) ac_site_file1=./$CONFIG_SITE;;
2235 elif test "x$prefix" != xNONE; then
2236 ac_site_file1=$prefix/share/config.site
2237 ac_site_file2=$prefix/etc/config.site
2239 ac_site_file1=$ac_default_prefix/share/config.site
2240 ac_site_file2=$ac_default_prefix/etc/config.site
2242 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2244 test "x$ac_site_file" = xNONE && continue
2245 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2247 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2248 sed 's/^/| /' "$ac_site_file" >&5
2250 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2251 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2252 as_fn_error $? "failed to load site
script $ac_site_file
2253 See \
`config.log' for more details" "$LINENO" 5; }
2257 if test -r "$cache_file"; then
2258 # Some versions of bash will fail to source /dev/null (special files
2259 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2260 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2262 $as_echo "$as_me: loading cache $cache_file" >&6;}
2264 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2265 *) . "./$cache_file";;
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2270 $as_echo "$as_me: creating cache $cache_file" >&6;}
2274 as_fn_append ac_header_list " stdlib.h"
2275 as_fn_append ac_header_list " unistd.h"
2276 as_fn_append ac_header_list " sys/param.h"
2277 # Check that the precious variables saved in the cache have kept the same
2279 ac_cache_corrupted=false
2280 for ac_var in $ac_precious_vars; do
2281 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2282 eval ac_new_set=\$ac_env_${ac_var}_set
2283 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2284 eval ac_new_val=\$ac_env_${ac_var}_value
2285 case $ac_old_set,$ac_new_set in
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2288 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2289 ac_cache_corrupted=: ;;
2291 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2292 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2293 ac_cache_corrupted=: ;;
2296 if test "x$ac_old_val" != "x$ac_new_val"; then
2297 # differences in whitespace do not lead to failure.
2298 ac_old_val_w=`echo x
$ac_old_val`
2299 ac_new_val_w=`echo x
$ac_new_val`
2300 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2302 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2303 ac_cache_corrupted=:
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2306 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2307 eval $ac_var=\$ac_old_val
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2310 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2312 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2315 # Pass precious variables to config.status.
2316 if test "$ac_new_set" = set; then
2318 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2319 *) ac_arg=$ac_var=$ac_new_val ;;
2321 case " $ac_configure_args " in
2322 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2323 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2327 if $ac_cache_corrupted; then
2328 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2329 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2331 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2332 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2334 ## -------------------- ##
2335 ## Main body of script. ##
2336 ## -------------------- ##
2339 ac_cpp='$CPP $CPPFLAGS'
2340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2345 am__api_version='1.11'
2348 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2349 if test -f "$ac_dir/install-sh"; then
2351 ac_install_sh="$ac_aux_dir/install-sh -c"
2353 elif test -f "$ac_dir/install.sh"; then
2355 ac_install_sh="$ac_aux_dir/install.sh -c"
2357 elif test -f "$ac_dir/shtool"; then
2359 ac_install_sh="$ac_aux_dir/shtool install -c"
2363 if test -z "$ac_aux_dir"; then
2364 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2367 # These three variables are undocumented and unsupported,
2368 # and are intended to be withdrawn in a future Autoconf release.
2369 # They can cause serious problems if a builder's source tree is in a directory
2370 # whose full name contains unusual characters.
2371 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2372 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2373 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2376 # Find a good install program. We prefer a C program (faster),
2377 # so one script is as good as another. But avoid the broken or
2378 # incompatible versions:
2379 # SysV /etc/install, /usr/sbin/install
2380 # SunOS /usr/etc/install
2381 # IRIX /sbin/install
2383 # AmigaOS /C/install, which installs bootblocks on floppy discs
2384 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2385 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2386 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2387 # OS/2's system install, which has a completely different semantic
2388 # ./install, which can be erroneously created by make from ./install.sh.
2389 # Reject install programs that cannot install multiple files.
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2391 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2392 if test -z "$INSTALL"; then
2393 if ${ac_cv_path_install+:} false; then :
2394 $as_echo_n "(cached) " >&6
2396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2400 test -z "$as_dir" && as_dir=.
2401 # Account for people who put trailing slashes in PATH elements.
2402 case $as_dir/ in #((
2403 ./ | .// | /[cC]/* | \
2404 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2405 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2408 # OSF1 and SCO ODT 3.0 have their own names for install.
2409 # Don't use installbsd from OSF since it installs stuff as root
2411 for ac_prog in ginstall scoinst install; do
2412 for ac_exec_ext in '' $ac_executable_extensions; do
2413 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2414 if test $ac_prog = install &&
2415 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2416 # AIX install. It has an incompatible calling convention.
2418 elif test $ac_prog = install &&
2419 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2420 # program-specific install script used by HP pwplus--don't use.
2423 rm -rf conftest.one conftest.two conftest.dir
2424 echo one > conftest.one
2425 echo two > conftest.two
2427 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2428 test -s conftest.one && test -s conftest.two &&
2429 test -s conftest.dir/conftest.one &&
2430 test -s conftest.dir/conftest.two
2432 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2445 rm -rf conftest.one conftest.two conftest.dir
2448 if test "${ac_cv_path_install+set}" = set; then
2449 INSTALL=$ac_cv_path_install
2451 # As a last resort, use the slow shell script. Don't cache a
2452 # value for INSTALL within a source directory, because that will
2453 # break other packages using the cache if that directory is
2454 # removed, or if the value is a relative name.
2455 INSTALL=$ac_install_sh
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2459 $as_echo "$INSTALL" >&6; }
2461 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2462 # It thinks the first close brace ends the variable substitution.
2463 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2465 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2467 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2470 $as_echo_n "checking whether build environment is sane... " >&6; }
2473 echo timestamp > conftest.file
2474 # Reject unsafe characters in $srcdir or the absolute working directory
2475 # name. Accept space and tab only in the latter.
2479 *[\\\"\#\$\&\'\`$am_lf]*)
2480 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2483 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2484 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2487 # Do `set' in a subshell so we don
't clobber the current shell's
2488 # arguments. Must try -L first in case configure is actually a
2489 # symlink; some systems play weird games with the mod time of symlinks
2490 # (eg FreeBSD returns the mod time of the symlink's containing
2493 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2494 if test "$*" = "X"; then
2496 set X
`ls -t "$srcdir/configure" conftest.file`
2499 if test "$*" != "X $srcdir/configure conftest.file" \
2500 && test "$*" != "X conftest.file $srcdir/configure"; then
2502 # If neither matched, then we have a broken ls. This can happen
2503 # if, for instance, CONFIG_SHELL is bash and it inherits a
2504 # broken ls alias from the environment. This has actually
2505 # happened. Such a system could not be considered "sane".
2506 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
2507 alias in your environment" "$LINENO" 5
2510 test "$2" = conftest.
file
2516 as_fn_error $?
"newly created file is older than distributed files!
2517 Check your system clock" "$LINENO" 5
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2520 $as_echo "yes" >&6; }
2521 test "$program_prefix" != NONE
&&
2522 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2523 # Use a double $ so make ignores it.
2524 test "$program_suffix" != NONE
&&
2525 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2526 # Double any \ or $.
2527 # By default was `s,x,x', remove it if useless.
2528 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2529 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2531 # expand $ac_aux_dir to an absolute path
2532 am_aux_dir
=`cd $ac_aux_dir && pwd`
2534 if test x
"${MISSING+set}" != xset
; then
2537 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
2539 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
2542 # Use eval to expand $SHELL
2543 if eval "$MISSING --run true"; then
2544 am_missing_run
="$MISSING --run "
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2548 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2551 if test x
"${install_sh}" != xset
; then
2554 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
2556 install_sh
="\${SHELL} $am_aux_dir/install-sh"
2560 # Installed binaries are usually stripped using `strip' when the user
2561 # run `make install-strip'. However `strip' might not be the right
2562 # tool to use in cross-compilation environments, therefore Automake
2563 # will honor the `STRIP' environment variable to overrule this program.
2564 if test "$cross_compiling" != no
; then
2565 if test -n "$ac_tool_prefix"; then
2566 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2567 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2569 $as_echo_n "checking for $ac_word... " >&6; }
2570 if ${ac_cv_prog_STRIP+:} false
; then :
2571 $as_echo_n "(cached) " >&6
2573 if test -n "$STRIP"; then
2574 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2576 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2580 test -z "$as_dir" && as_dir
=.
2581 for ac_exec_ext
in '' $ac_executable_extensions; do
2582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2583 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2593 STRIP
=$ac_cv_prog_STRIP
2594 if test -n "$STRIP"; then
2595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2596 $as_echo "$STRIP" >&6; }
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2599 $as_echo "no" >&6; }
2604 if test -z "$ac_cv_prog_STRIP"; then
2606 # Extract the first word of "strip", so it can be a program name with args.
2607 set dummy strip
; ac_word
=$2
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2609 $as_echo_n "checking for $ac_word... " >&6; }
2610 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
2611 $as_echo_n "(cached) " >&6
2613 if test -n "$ac_ct_STRIP"; then
2614 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2616 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2620 test -z "$as_dir" && as_dir
=.
2621 for ac_exec_ext
in '' $ac_executable_extensions; do
2622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2623 ac_cv_prog_ac_ct_STRIP
="strip"
2624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2633 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
2634 if test -n "$ac_ct_STRIP"; then
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2636 $as_echo "$ac_ct_STRIP" >&6; }
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2639 $as_echo "no" >&6; }
2642 if test "x$ac_ct_STRIP" = x
; then
2645 case $cross_compiling:$ac_tool_warned in
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2648 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2649 ac_tool_warned
=yes ;;
2654 STRIP
="$ac_cv_prog_STRIP"
2658 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2661 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2662 if test -z "$MKDIR_P"; then
2663 if ${ac_cv_path_mkdir+:} false
; then :
2664 $as_echo_n "(cached) " >&6
2666 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2667 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
2670 test -z "$as_dir" && as_dir
=.
2671 for ac_prog
in mkdir gmkdir
; do
2672 for ac_exec_ext
in '' $ac_executable_extensions; do
2673 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2674 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2675 'mkdir (GNU coreutils) '* | \
2676 'mkdir (coreutils) '* | \
2677 'mkdir (fileutils) '4.1*)
2678 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
2688 test -d .
/--version && rmdir .
/--version
2689 if test "${ac_cv_path_mkdir+set}" = set; then
2690 MKDIR_P
="$ac_cv_path_mkdir -p"
2692 # As a last resort, use the slow shell script. Don't cache a
2693 # value for MKDIR_P within a source directory, because that will
2694 # break other packages using the cache if that directory is
2695 # removed, or if the value is a relative name.
2696 MKDIR_P
="$ac_install_sh -d"
2699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2700 $as_echo "$MKDIR_P" >&6; }
2704 [\\/$
]* | ?
:[\\/]*) ;;
2705 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
2708 for ac_prog
in gawk mawk nawk
awk
2710 # Extract the first word of "$ac_prog", so it can be a program name with args.
2711 set dummy
$ac_prog; ac_word
=$2
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2713 $as_echo_n "checking for $ac_word... " >&6; }
2714 if ${ac_cv_prog_AWK+:} false
; then :
2715 $as_echo_n "(cached) " >&6
2717 if test -n "$AWK"; then
2718 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2720 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2724 test -z "$as_dir" && as_dir
=.
2725 for ac_exec_ext
in '' $ac_executable_extensions; do
2726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2727 ac_cv_prog_AWK
="$ac_prog"
2728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2738 if test -n "$AWK"; then
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2740 $as_echo "$AWK" >&6; }
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2743 $as_echo "no" >&6; }
2747 test -n "$AWK" && break
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2751 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2753 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2754 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
2755 $as_echo_n "(cached) " >&6
2757 cat >conftest.
make <<\_ACEOF
2760 @
echo '@@@%%%=$(MAKE)=@@@%%%'
2762 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2763 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2765 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
2767 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
2771 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2773 $as_echo "yes" >&6; }
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2777 $as_echo "no" >&6; }
2778 SET_MAKE
="MAKE=${MAKE-make}"
2781 rm -rf .tst
2>/dev
/null
2782 mkdir .tst
2>/dev
/null
2783 if test -d .tst
; then
2788 rmdir .tst
2>/dev
/null
2790 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2791 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2792 # is not polluted with repeated "-I."
2793 am__isrc
=' -I$(srcdir)'
2794 # test to see if srcdir already configured
2795 if test -f $srcdir/config.status
; then
2796 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2800 # test whether we have cygpath
2801 if test -z "$CYGPATH_W"; then
2802 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
2803 CYGPATH_W
='cygpath -w'
2810 # Define the identity of the package.
2815 # Some tools Automake needs.
2817 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2820 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2823 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2826 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
2829 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
2831 # We need awk for the "check" target. The system "awk" is bad on
2833 # Always define AMTAR for backward compatibility.
2835 AMTAR
=${AMTAR-"${am_missing_run}tar"}
2837 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
2844 ac_config_headers
="$ac_config_headers include/libratbox_config.h"
2848 DEPDIR
="${am__leading_dot}deps"
2850 ac_config_commands
="$ac_config_commands depfiles"
2853 am_make
=${MAKE-make}
2854 cat > confinc
<< 'END'
2856 @echo this is the am__doit target
2859 # If we don't find an include directive, just comment out the code.
2860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2861 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2865 # First try GNU make style include.
2866 echo "include confinc" > confmf
2867 # Ignore all kinds of additional output from `make'.
2868 case `$am_make -s -f confmf 2> /dev/null` in #(
2869 *the\ am__doit\ target
*)
2875 # Now try BSD make style include.
2876 if test "$am__include" = "#"; then
2877 echo '.include "confinc"' > confmf
2878 case `$am_make -s -f confmf 2> /dev/null` in #(
2879 *the\ am__doit\ target
*)
2880 am__include
=.include
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2889 $as_echo "$_am_result" >&6; }
2890 rm -f confinc confmf
2892 # Check whether --enable-dependency-tracking was given.
2893 if test "${enable_dependency_tracking+set}" = set; then :
2894 enableval
=$enable_dependency_tracking;
2897 if test "x$enable_dependency_tracking" != xno
; then
2898 am_depcomp
="$ac_aux_dir/depcomp"
2902 if test "x$enable_dependency_tracking" != xno; then
2912 ac_cpp
='$CPP $CPPFLAGS'
2913 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2914 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2915 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2916 if test -n "$ac_tool_prefix"; then
2917 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2918 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2920 $as_echo_n "checking for $ac_word... " >&6; }
2921 if ${ac_cv_prog_CC+:} false
; then :
2922 $as_echo_n "(cached) " >&6
2924 if test -n "$CC"; then
2925 ac_cv_prog_CC
="$CC" # Let the user override the test.
2927 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2931 test -z "$as_dir" && as_dir
=.
2932 for ac_exec_ext
in '' $ac_executable_extensions; do
2933 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2934 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2945 if test -n "$CC"; then
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2947 $as_echo "$CC" >&6; }
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2950 $as_echo "no" >&6; }
2955 if test -z "$ac_cv_prog_CC"; then
2957 # Extract the first word of "gcc", so it can be a program name with args.
2958 set dummy gcc
; ac_word
=$2
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2960 $as_echo_n "checking for $ac_word... " >&6; }
2961 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
2962 $as_echo_n "(cached) " >&6
2964 if test -n "$ac_ct_CC"; then
2965 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2967 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2971 test -z "$as_dir" && as_dir
=.
2972 for ac_exec_ext
in '' $ac_executable_extensions; do
2973 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2974 ac_cv_prog_ac_ct_CC
="gcc"
2975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2984 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2985 if test -n "$ac_ct_CC"; then
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2987 $as_echo "$ac_ct_CC" >&6; }
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2990 $as_echo "no" >&6; }
2993 if test "x$ac_ct_CC" = x
; then
2996 case $cross_compiling:$ac_tool_warned in
2998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2999 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3000 ac_tool_warned
=yes ;;
3008 if test -z "$CC"; then
3009 if test -n "$ac_tool_prefix"; then
3010 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3011 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3013 $as_echo_n "checking for $ac_word... " >&6; }
3014 if ${ac_cv_prog_CC+:} false
; then :
3015 $as_echo_n "(cached) " >&6
3017 if test -n "$CC"; then
3018 ac_cv_prog_CC
="$CC" # Let the user override the test.
3020 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3024 test -z "$as_dir" && as_dir
=.
3025 for ac_exec_ext
in '' $ac_executable_extensions; do
3026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3027 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3038 if test -n "$CC"; then
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3040 $as_echo "$CC" >&6; }
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3043 $as_echo "no" >&6; }
3049 if test -z "$CC"; then
3050 # Extract the first word of "cc", so it can be a program name with args.
3051 set dummy cc
; ac_word
=$2
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3053 $as_echo_n "checking for $ac_word... " >&6; }
3054 if ${ac_cv_prog_CC+:} false
; then :
3055 $as_echo_n "(cached) " >&6
3057 if test -n "$CC"; then
3058 ac_cv_prog_CC
="$CC" # Let the user override the test.
3061 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3065 test -z "$as_dir" && as_dir
=.
3066 for ac_exec_ext
in '' $ac_executable_extensions; do
3067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3068 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3069 ac_prog_rejected
=yes
3073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3080 if test $ac_prog_rejected = yes; then
3081 # We found a bogon in the path, so make sure we never use it.
3082 set dummy
$ac_cv_prog_CC
3084 if test $# != 0; then
3085 # We chose a different compiler from the bogus one.
3086 # However, it has the same basename, so the bogon will be chosen
3087 # first if we set CC to just the basename; use the full file name.
3089 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3095 if test -n "$CC"; then
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3097 $as_echo "$CC" >&6; }
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3100 $as_echo "no" >&6; }
3105 if test -z "$CC"; then
3106 if test -n "$ac_tool_prefix"; then
3107 for ac_prog
in cl.exe
3109 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3110 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3112 $as_echo_n "checking for $ac_word... " >&6; }
3113 if ${ac_cv_prog_CC+:} false
; then :
3114 $as_echo_n "(cached) " >&6
3116 if test -n "$CC"; then
3117 ac_cv_prog_CC
="$CC" # Let the user override the test.
3119 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3123 test -z "$as_dir" && as_dir
=.
3124 for ac_exec_ext
in '' $ac_executable_extensions; do
3125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3126 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3137 if test -n "$CC"; then
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3139 $as_echo "$CC" >&6; }
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3142 $as_echo "no" >&6; }
3146 test -n "$CC" && break
3149 if test -z "$CC"; then
3151 for ac_prog
in cl.exe
3153 # Extract the first word of "$ac_prog", so it can be a program name with args.
3154 set dummy
$ac_prog; ac_word
=$2
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3156 $as_echo_n "checking for $ac_word... " >&6; }
3157 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3158 $as_echo_n "(cached) " >&6
3160 if test -n "$ac_ct_CC"; then
3161 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3163 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3167 test -z "$as_dir" && as_dir
=.
3168 for ac_exec_ext
in '' $ac_executable_extensions; do
3169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3170 ac_cv_prog_ac_ct_CC
="$ac_prog"
3171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3180 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3181 if test -n "$ac_ct_CC"; then
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3183 $as_echo "$ac_ct_CC" >&6; }
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3186 $as_echo "no" >&6; }
3190 test -n "$ac_ct_CC" && break
3193 if test "x$ac_ct_CC" = x
; then
3196 case $cross_compiling:$ac_tool_warned in
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3199 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3200 ac_tool_warned
=yes ;;
3209 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3210 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3211 as_fn_error $?
"no acceptable C compiler found in \$PATH
3212 See \`config.log' for more details" "$LINENO" 5; }
3214 # Provide some information about the compiler.
3215 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3218 for ac_option
in --version -v -V -qversion; do
3219 { { ac_try
="$ac_compiler $ac_option >&5"
3221 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
3222 *) ac_try_echo=$ac_try;;
3224 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3225 $as_echo "$ac_try_echo"; } >&5
3226 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3228 if test -s conftest.err; then
3230 ... rest of stderr output deleted ...
3231 10q' conftest.err >conftest.er1
3232 cat conftest.er1 >&5
3234 rm -f conftest.er1 conftest.err
3235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3236 test $ac_status = 0; }
3239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3240 /* end confdefs.h. */
3250 ac_clean_files_save=$ac_clean_files
3251 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3252 # Try to create an executable without -o first, disregard a.out.
3253 # It will help us diagnose broken compilers, and finding out an intuition
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3256 $as_echo_n "checking whether the C compiler works... " >&6; }
3257 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3259 # The possible output files:
3260 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3263 for ac_file in $ac_files
3266 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3267 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3272 if { { ac_try="$ac_link_default"
3274 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
3275 *) ac_try_echo
=$ac_try;;
3277 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3278 $as_echo "$ac_try_echo"; } >&5
3279 (eval "$ac_link_default") 2>&5
3281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3282 test $ac_status = 0; }; then :
3283 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3284 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3285 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3286 # so that the user can short-circuit this test for compilers unknown to
3288 for ac_file
in $ac_files ''
3290 test -f "$ac_file" || continue
3292 *.
$ac_ext | *.xcoff
| *.tds
| *.d
| *.pdb
| *.xSYM
| *.bb
| *.bbg
| *.map
| *.inf
| *.dSYM
| *.o
| *.obj
)
3295 # We found the default executable, but exeext='' is most
3299 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3301 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3303 # We set ac_cv_exeext here because the later test for it is not
3304 # safe: cross compilers may not add the suffix if given an `-o'
3305 # argument, so we may need to know it at that point already.
3306 # Even if this section looks crufty: it has the advantage of
3313 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3318 if test -z "$ac_file"; then :
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3320 $as_echo "no" >&6; }
3321 $as_echo "$as_me: failed program was:" >&5
3322 sed 's/^/| /' conftest.
$ac_ext >&5
3324 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3325 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3326 as_fn_error
77 "C compiler cannot create executables
3327 See \`config.log' for more details" "$LINENO" 5; }
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3330 $as_echo "yes" >&6; }
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3333 $as_echo_n "checking for C compiler default output file name... " >&6; }
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3335 $as_echo "$ac_file" >&6; }
3336 ac_exeext
=$ac_cv_exeext
3338 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3339 ac_clean_files
=$ac_clean_files_save
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3341 $as_echo_n "checking for suffix of executables... " >&6; }
3342 if { { ac_try
="$ac_link"
3344 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
3345 *) ac_try_echo=$ac_try;;
3347 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3348 $as_echo "$ac_try_echo"; } >&5
3349 (eval "$ac_link") 2>&5
3351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3352 test $ac_status = 0; }; then :
3353 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3354 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3355 # work properly (i.e., refer to `conftest.exe'), while it won't with
3357 for ac_file
in conftest.exe conftest conftest.
*; do
3358 test -f "$ac_file" || continue
3360 *.
$ac_ext | *.xcoff
| *.tds
| *.d
| *.pdb
| *.xSYM
| *.bb
| *.bbg
| *.map
| *.inf
| *.dSYM
| *.o
| *.obj
) ;;
3361 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3367 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3368 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3369 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3370 See \`config.log' for more details" "$LINENO" 5; }
3372 rm -f conftest conftest
$ac_cv_exeext
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3374 $as_echo "$ac_cv_exeext" >&6; }
3376 rm -f conftest.
$ac_ext
3377 EXEEXT
=$ac_cv_exeext
3379 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3380 /* end confdefs.h. */
3385 FILE *f = fopen ("conftest.out", "w");
3386 return ferror (f) || fclose (f) != 0;
3392 ac_clean_files
="$ac_clean_files conftest.out"
3393 # Check that the compiler produces executables we can run. If not, either
3394 # the compiler is broken, or we cross compile.
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3396 $as_echo_n "checking whether we are cross compiling... " >&6; }
3397 if test "$cross_compiling" != yes; then
3398 { { ac_try
="$ac_link"
3400 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
3401 *) ac_try_echo=$ac_try;;
3403 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3404 $as_echo "$ac_try_echo"; } >&5
3405 (eval "$ac_link") 2>&5
3407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3408 test $ac_status = 0; }
3409 if { ac_try='./conftest$ac_cv_exeext'
3410 { { case "(($ac_try" in
3411 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
3412 *) ac_try_echo
=$ac_try;;
3414 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3415 $as_echo "$ac_try_echo"; } >&5
3416 (eval "$ac_try") 2>&5
3418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3419 test $ac_status = 0; }; }; then
3422 if test "$cross_compiling" = maybe
; then
3425 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3426 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3427 as_fn_error $?
"cannot run C compiled programs.
3428 If you meant to cross compile, use \`--host'.
3429 See \`config.log' for more details" "$LINENO" 5; }
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3434 $as_echo "$cross_compiling" >&6; }
3436 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3437 ac_clean_files
=$ac_clean_files_save
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3439 $as_echo_n "checking for suffix of object files... " >&6; }
3440 if ${ac_cv_objext+:} false
; then :
3441 $as_echo_n "(cached) " >&6
3443 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3444 /* end confdefs.h. */
3454 rm -f conftest.o conftest.obj
3455 if { { ac_try
="$ac_compile"
3457 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
3458 *) ac_try_echo=$ac_try;;
3460 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3461 $as_echo "$ac_try_echo"; } >&5
3462 (eval "$ac_compile") 2>&5
3464 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3465 test $ac_status = 0; }; then :
3466 for ac_file in conftest.o conftest.obj conftest.*; do
3467 test -f "$ac_file" || continue;
3469 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3470 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3475 $as_echo "$as_me: failed program was:" >&5
3476 sed 's/^/| /' conftest.$ac_ext >&5
3478 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3479 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3480 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3481 See \
`config.log' for more details" "$LINENO" 5; }
3483 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3486 $as_echo "$ac_cv_objext" >&6; }
3487 OBJEXT=$ac_cv_objext
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3490 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3491 if ${ac_cv_c_compiler_gnu+:} false; then :
3492 $as_echo_n "(cached) " >&6
3494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3495 /* end confdefs.h. */
3508 if ac_fn_c_try_compile "$LINENO"; then :
3513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3514 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3518 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3519 if test $ac_compiler_gnu = yes; then
3524 ac_test_CFLAGS=${CFLAGS+set}
3525 ac_save_CFLAGS=$CFLAGS
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3527 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3528 if ${ac_cv_prog_cc_g+:} false; then :
3529 $as_echo_n "(cached) " >&6
3531 ac_save_c_werror_flag=$ac_c_werror_flag
3532 ac_c_werror_flag=yes
3535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3536 /* end confdefs.h. */
3546 if ac_fn_c_try_compile "$LINENO"; then :
3550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3551 /* end confdefs.h. */
3561 if ac_fn_c_try_compile "$LINENO"; then :
3564 ac_c_werror_flag=$ac_save_c_werror_flag
3566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3567 /* end confdefs.h. */
3577 if ac_fn_c_try_compile "$LINENO"; then :
3580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3585 ac_c_werror_flag=$ac_save_c_werror_flag
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3588 $as_echo "$ac_cv_prog_cc_g" >&6; }
3589 if test "$ac_test_CFLAGS" = set; then
3590 CFLAGS=$ac_save_CFLAGS
3591 elif test $ac_cv_prog_cc_g = yes; then
3592 if test "$GCC" = yes; then
3598 if test "$GCC" = yes; then
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3605 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3606 if ${ac_cv_prog_cc_c89+:} false; then :
3607 $as_echo_n "(cached) " >&6
3609 ac_cv_prog_cc_c89=no
3611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3612 /* end confdefs.h. */
3615 #include <sys/types.h>
3616 #include <sys/stat.h>
3617 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3618 struct buf { int x; };
3619 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3620 static char *e (p, i)
3626 static char *f (char * (*g) (char **, int), char **p, ...)
3631 s = g (p, va_arg (v,int));
3636 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3637 function prototypes and stuff, but not '\xHH' hex character constants.
3638 These don't provoke an error unfortunately, instead are silently treated
3639 as 'x'. The following induces an error, until -std is added to get
3640 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3641 array size at least. It's necessary to write '\x00'==0 to get something
3642 that's true only with -std. */
3643 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3645 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3646 inside strings and character constants. */
3648 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3650 int test (int i, double x);
3651 struct s1 {int (*f) (int a);};
3652 struct s2 {int (*f) (double a);};
3653 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3659 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3664 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3665 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3667 CC="$ac_save_CC $ac_arg"
3668 if ac_fn_c_try_compile "$LINENO"; then :
3669 ac_cv_prog_cc_c89=$ac_arg
3671 rm -f core conftest.err conftest.$ac_objext
3672 test "x$ac_cv_prog_cc_c89" != "xno" && break
3674 rm -f conftest.$ac_ext
3679 case "x$ac_cv_prog_cc_c89" in
3681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3682 $as_echo "none needed" >&6; } ;;
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3685 $as_echo "unsupported" >&6; } ;;
3687 CC="$CC $ac_cv_prog_cc_c89"
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3689 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3691 if test "x$ac_cv_prog_cc_c89" != xno; then :
3696 ac_cpp='$CPP $CPPFLAGS'
3697 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3698 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3699 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3701 depcc="$CC" am_compiler_list=
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3704 $as_echo_n "checking dependency style of $depcc... " >&6; }
3705 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3706 $as_echo_n "(cached) " >&6
3708 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3709 # We make a subdir and do the tests there. Otherwise we can end up
3710 # making bogus files that we don't know about and never remove. For
3711 # instance it was reported that on HP-UX the gcc test will end up
3712 # making a dummy file named `D
' -- because `-MD' means
`put the output
3716 # Copy depcomp to subdir because otherwise we won't find it if we're
3717 # using a relative directory.
3718 cp "$am_depcomp" conftest.dir
3720 # We will build objects and dependencies in a subdirectory because
3721 # it helps to detect inapplicable dependency modes. For instance
3722 # both Tru64's cc and ICC support -MD to output dependencies as a
3723 # side effect of compilation, but ICC will put the dependencies in
3724 # the current directory while Tru64 will put them in the object
3728 am_cv_CC_dependencies_compiler_type=none
3729 if test "$am_compiler_list" = ""; then
3730 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
3733 case " $depcc " in #(
3734 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3737 for depmode in $am_compiler_list; do
3738 # Setup a source with many dependencies, because some compilers
3739 # like to wrap large dependency lists on column 80 (with \), and
3740 # we should not choose a depcomp mode which is confused by this.
3742 # We need to recreate these files for each test, as the compiler may
3743 # overwrite some of them when testing with obscure command lines.
3744 # This happens at least with the AIX C compiler.
3746 for i in 1 2 3 4 5 6; do
3747 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3748 # Using `: > sub
/conftst
$i.h
' creates only sub/conftst1.h with
3749 # Solaris 8's
{/usr
,}/bin
/sh.
3750 touch sub
/conftst
$i.h
3752 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3754 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3755 # mode. It turns out that the SunPro C++ compiler does not properly
3756 # handle `-M -o', and we need to detect this. Also, some Intel
3757 # versions had trouble with output in subdirs
3758 am__obj
=sub
/conftest.
${OBJEXT-o}
3759 am__minus_obj
="-o $am__obj"
3762 # This depmode causes a compiler race in universal mode.
3763 test "$am__universal" = false
|| continue
3766 # after this tag, mechanisms are not by side-effect, so they'll
3767 # only be used when explicitly requested
3768 if test "x$enable_dependency_tracking" = xyes
; then
3774 msvc7
| msvc7msys
| msvisualcpp
| msvcmsys
)
3775 # This compiler won't grok `-c -o', but also, the minuso test has
3776 # not run yet. These depmodes are late enough in the game, and
3777 # so weak that their functioning should not be impacted.
3778 am__obj
=conftest.
${OBJEXT-o}
3783 if depmode
=$depmode \
3784 source=sub
/conftest.c object
=$am__obj \
3785 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
3786 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
3787 >/dev
/null
2>conftest.err
&&
3788 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
3789 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
3790 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
3791 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
3792 # icc doesn't choke on unknown options, it will just issue warnings
3793 # or remarks (even with -Werror). So we grep stderr for any message
3794 # that says an option was ignored or not supported.
3795 # When given -MP, icc 7.0 and 7.1 complain thusly:
3796 # icc: Command line warning: ignoring option '-M'; no argument required
3797 # The diagnosis changed in icc 8.0:
3798 # icc: Command line remark: option '-MP' not supported
3799 if (grep 'ignoring option' conftest.err
||
3800 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
3801 am_cv_CC_dependencies_compiler_type
=$depmode
3810 am_cv_CC_dependencies_compiler_type
=none
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3815 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3816 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
3819 test "x$enable_dependency_tracking" != xno \
3820 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
3822 am__fastdepCC_FALSE
='#'
3824 am__fastdepCC_TRUE
='#'
3825 am__fastdepCC_FALSE
=
3831 ac_cpp
='$CPP $CPPFLAGS'
3832 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3833 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3834 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3836 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3837 # On Suns, sometimes $CPP names a directory.
3838 if test -n "$CPP" && test -d "$CPP"; then
3841 if test -z "$CPP"; then
3842 if ${ac_cv_prog_CPP+:} false
; then :
3843 $as_echo_n "(cached) " >&6
3845 # Double quotes because CPP needs to be expanded
3846 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3849 for ac_c_preproc_warn_flag
in '' yes
3851 # Use a header file that comes with gcc, so configuring glibc
3852 # with a fresh cross-compiler works.
3853 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3854 # <limits.h> exists even on freestanding compilers.
3855 # On the NeXT, cc -E runs the code through the compiler's parser,
3856 # not just through cpp. "Syntax error" is here to catch this case.
3857 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3858 /* end confdefs.h. */
3860 # include <limits.h>
3862 # include <assert.h>
3866 if ac_fn_c_try_cpp
"$LINENO"; then :
3869 # Broken: fails on valid input.
3872 rm -f conftest.err conftest.i conftest.
$ac_ext
3874 # OK, works on sane cases. Now check whether nonexistent headers
3875 # can be detected and how.
3876 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3877 /* end confdefs.h. */
3878 #include <ac_nonexistent.h>
3880 if ac_fn_c_try_cpp
"$LINENO"; then :
3881 # Broken: success on invalid input.
3884 # Passes both tests.
3888 rm -f conftest.err conftest.i conftest.
$ac_ext
3891 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3892 rm -f conftest.i conftest.err conftest.
$ac_ext
3893 if $ac_preproc_ok; then :
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3906 $as_echo "$CPP" >&6; }
3908 for ac_c_preproc_warn_flag
in '' yes
3910 # Use a header file that comes with gcc, so configuring glibc
3911 # with a fresh cross-compiler works.
3912 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3913 # <limits.h> exists even on freestanding compilers.
3914 # On the NeXT, cc -E runs the code through the compiler's parser,
3915 # not just through cpp. "Syntax error" is here to catch this case.
3916 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3917 /* end confdefs.h. */
3919 # include <limits.h>
3921 # include <assert.h>
3925 if ac_fn_c_try_cpp
"$LINENO"; then :
3928 # Broken: fails on valid input.
3931 rm -f conftest.err conftest.i conftest.
$ac_ext
3933 # OK, works on sane cases. Now check whether nonexistent headers
3934 # can be detected and how.
3935 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3936 /* end confdefs.h. */
3937 #include <ac_nonexistent.h>
3939 if ac_fn_c_try_cpp
"$LINENO"; then :
3940 # Broken: success on invalid input.
3943 # Passes both tests.
3947 rm -f conftest.err conftest.i conftest.
$ac_ext
3950 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3951 rm -f conftest.i conftest.err conftest.
$ac_ext
3952 if $ac_preproc_ok; then :
3955 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3956 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3957 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
3958 See \`config.log' for more details" "$LINENO" 5; }
3962 ac_cpp
='$CPP $CPPFLAGS'
3963 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3964 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3965 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3969 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3970 if ${ac_cv_path_GREP+:} false
; then :
3971 $as_echo_n "(cached) " >&6
3973 if test -z "$GREP"; then
3974 ac_path_GREP_found
=false
3975 # Loop through the user's path and test for each of PROGNAME-LIST
3976 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3977 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3980 test -z "$as_dir" && as_dir
=.
3981 for ac_prog
in grep ggrep
; do
3982 for ac_exec_ext
in '' $ac_executable_extensions; do
3983 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3984 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3985 # Check for GNU ac_path_GREP and select it if it is found.
3986 # Check for GNU $ac_path_GREP
3987 case `"$ac_path_GREP" --version 2>&1` in
3989 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3992 $as_echo_n 0123456789 >"conftest.in"
3995 cat "conftest.in" "conftest.in" >"conftest.tmp"
3996 mv "conftest.tmp" "conftest.in"
3997 cp "conftest.in" "conftest.nl"
3998 $as_echo 'GREP' >> "conftest.nl"
3999 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null
|| break
4000 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 || break
4001 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4002 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4003 # Best one so far, save it but keep looking for a better one
4004 ac_cv_path_GREP
="$ac_path_GREP"
4005 ac_path_GREP_max
=$ac_count
4007 # 10*(2^10) chars as input seems more than enough
4008 test $ac_count -gt 10 && break
4010 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4013 $ac_path_GREP_found && break 3
4018 if test -z "$ac_cv_path_GREP"; then
4019 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4022 ac_cv_path_GREP
=$GREP
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4027 $as_echo "$ac_cv_path_GREP" >&6; }
4028 GREP
="$ac_cv_path_GREP"
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4032 $as_echo_n "checking for egrep... " >&6; }
4033 if ${ac_cv_path_EGREP+:} false
; then :
4034 $as_echo_n "(cached) " >&6
4036 if echo a
| $GREP -E '(a|b)' >/dev
/null
2>&1
4037 then ac_cv_path_EGREP
="$GREP -E"
4039 if test -z "$EGREP"; then
4040 ac_path_EGREP_found
=false
4041 # Loop through the user's path and test for each of PROGNAME-LIST
4042 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4043 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4046 test -z "$as_dir" && as_dir
=.
4047 for ac_prog
in egrep; do
4048 for ac_exec_ext
in '' $ac_executable_extensions; do
4049 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4050 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4051 # Check for GNU ac_path_EGREP and select it if it is found.
4052 # Check for GNU $ac_path_EGREP
4053 case `"$ac_path_EGREP" --version 2>&1` in
4055 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4058 $as_echo_n 0123456789 >"conftest.in"
4061 cat "conftest.in" "conftest.in" >"conftest.tmp"
4062 mv "conftest.tmp" "conftest.in"
4063 cp "conftest.in" "conftest.nl"
4064 $as_echo 'EGREP' >> "conftest.nl"
4065 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null
|| break
4066 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 || break
4067 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4068 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4069 # Best one so far, save it but keep looking for a better one
4070 ac_cv_path_EGREP
="$ac_path_EGREP"
4071 ac_path_EGREP_max
=$ac_count
4073 # 10*(2^10) chars as input seems more than enough
4074 test $ac_count -gt 10 && break
4076 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4079 $ac_path_EGREP_found && break 3
4084 if test -z "$ac_cv_path_EGREP"; then
4085 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4088 ac_cv_path_EGREP
=$EGREP
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4094 $as_echo "$ac_cv_path_EGREP" >&6; }
4095 EGREP
="$ac_cv_path_EGREP"
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4099 $as_echo_n "checking for ANSI C header files... " >&6; }
4100 if ${ac_cv_header_stdc+:} false
; then :
4101 $as_echo_n "(cached) " >&6
4103 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4104 /* end confdefs.h. */
4118 if ac_fn_c_try_compile
"$LINENO"; then :
4119 ac_cv_header_stdc
=yes
4121 ac_cv_header_stdc
=no
4123 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4125 if test $ac_cv_header_stdc = yes; then
4126 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4127 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4128 /* end confdefs.h. */
4132 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4133 $EGREP "memchr" >/dev
/null
2>&1; then :
4136 ac_cv_header_stdc
=no
4142 if test $ac_cv_header_stdc = yes; then
4143 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4144 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4145 /* end confdefs.h. */
4149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4150 $EGREP "free" >/dev
/null
2>&1; then :
4153 ac_cv_header_stdc
=no
4159 if test $ac_cv_header_stdc = yes; then
4160 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4161 if test "$cross_compiling" = yes; then :
4164 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4165 /* end confdefs.h. */
4168 #if ((' ' & 0x0FF) == 0x020)
4169 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4170 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4172 # define ISLOWER(c) \
4173 (('a' <= (c) && (c) <= 'i') \
4174 || ('j' <= (c) && (c) <= 'r') \
4175 || ('s' <= (c) && (c) <= 'z'))
4176 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4179 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4184 for (i = 0; i < 256; i++)
4185 if (XOR (islower (i), ISLOWER (i))
4186 || toupper (i) != TOUPPER (i))
4191 if ac_fn_c_try_run
"$LINENO"; then :
4194 ac_cv_header_stdc
=no
4196 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4197 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4203 $as_echo "$ac_cv_header_stdc" >&6; }
4204 if test $ac_cv_header_stdc = yes; then
4206 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4210 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4211 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4212 inttypes.h stdint.h unistd.h
4214 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4215 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4217 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4218 cat >>confdefs.h
<<_ACEOF
4219 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4228 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4229 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
4236 if test "$MINIX" = yes; then
4238 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4241 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4244 $as_echo "#define _MINIX 1" >>confdefs.h
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4250 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4251 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
4252 $as_echo_n "(cached) " >&6
4254 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4255 /* end confdefs.h. */
4257 # define __EXTENSIONS__ 1
4258 $ac_includes_default
4267 if ac_fn_c_try_compile
"$LINENO"; then :
4268 ac_cv_safe_to_define___extensions__
=yes
4270 ac_cv_safe_to_define___extensions__
=no
4272 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4275 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4276 test $ac_cv_safe_to_define___extensions__ = yes &&
4277 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4279 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4281 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4283 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4285 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4291 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4292 if ${ac_cv_prog_cc_c99+:} false
; then :
4293 $as_echo_n "(cached) " >&6
4295 ac_cv_prog_cc_c99
=no
4297 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4298 /* end confdefs.h. */
4300 #include <stdbool.h>
4305 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4306 #define debug(...) fprintf (stderr, __VA_ARGS__)
4307 #define showlist(...) puts (#__VA_ARGS__)
4308 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4310 test_varargs_macros (void)
4315 debug ("X = %d\n", x);
4316 showlist (The first, second, and third items.);
4317 report (x>y, "x is %d but y is %d", x, y);
4320 // Check long long types.
4321 #define BIG64 18446744073709551615ull
4322 #define BIG32 4294967295ul
4323 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4325 your preprocessor is broken;
4329 your preprocessor is broken;
4331 static long long int bignum = -9223372036854775807LL;
4332 static unsigned long long int ubignum = BIG64;
4334 struct incomplete_array
4342 const wchar_t *name;
4346 typedef const char *ccp;
4349 test_restrict (ccp restrict text)
4351 // See if C++-style comments work.
4352 // Iterate through items via the restricted pointer.
4353 // Also check for declarations in for loops.
4354 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4359 // Check varargs and va_copy.
4361 test_varargs (const char *format, ...)
4364 va_start (args, format);
4366 va_copy (args_copy, args);
4377 str = va_arg (args_copy, const char *);
4380 number = va_arg (args_copy, int);
4383 fnumber = va_arg (args_copy, double);
4398 _Bool success = false;
4401 if (test_restrict ("String literal") == 0)
4403 char *restrict newvar = "Another string";
4406 test_varargs ("s, d' f .", "string", 65, 34.234);
4407 test_varargs_macros ();
4409 // Check flexible array members.
4410 struct incomplete_array *ia =
4411 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4413 for (int i = 0; i < ia->datasize; ++i)
4414 ia->data[i] = i * 1.234;
4416 // Check named initializers.
4417 struct named_init ni = {
4419 .name = L"Test wide string",
4420 .average = 543.34343,
4425 int dynamic_array[ni.number];
4426 dynamic_array[ni.number - 1] = 543;
4428 // work around unused variable warnings
4429 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4430 || dynamic_array[ni.number - 1] != 543);
4436 for ac_arg
in '' -std=gnu99
-std=c99
-c99 -AC99 -xc99=all
-qlanglvl=extc99
4438 CC
="$ac_save_CC $ac_arg"
4439 if ac_fn_c_try_compile
"$LINENO"; then :
4440 ac_cv_prog_cc_c99
=$ac_arg
4442 rm -f core conftest.err conftest.
$ac_objext
4443 test "x$ac_cv_prog_cc_c99" != "xno" && break
4445 rm -f conftest.
$ac_ext
4450 case "x$ac_cv_prog_cc_c99" in
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4453 $as_echo "none needed" >&6; } ;;
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4456 $as_echo "unsupported" >&6; } ;;
4458 CC
="$CC $ac_cv_prog_cc_c99"
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4460 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4462 if test "x$ac_cv_prog_cc_c99" != xno
; then :
4468 if test x
"$ac_cv_prog_cc_c99" = "xno"; then
4469 as_fn_error $?
"ircd-ratbox requires a C99 capable compiler" "$LINENO" 5
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4475 $as_echo_n "checking for egrep... " >&6; }
4476 if ${ac_cv_path_EGREP+:} false
; then :
4477 $as_echo_n "(cached) " >&6
4479 if echo a
| $GREP -E '(a|b)' >/dev
/null
2>&1
4480 then ac_cv_path_EGREP
="$GREP -E"
4482 if test -z "$EGREP"; then
4483 ac_path_EGREP_found
=false
4484 # Loop through the user's path and test for each of PROGNAME-LIST
4485 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4486 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4489 test -z "$as_dir" && as_dir
=.
4490 for ac_prog
in egrep; do
4491 for ac_exec_ext
in '' $ac_executable_extensions; do
4492 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4493 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4494 # Check for GNU ac_path_EGREP and select it if it is found.
4495 # Check for GNU $ac_path_EGREP
4496 case `"$ac_path_EGREP" --version 2>&1` in
4498 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4501 $as_echo_n 0123456789 >"conftest.in"
4504 cat "conftest.in" "conftest.in" >"conftest.tmp"
4505 mv "conftest.tmp" "conftest.in"
4506 cp "conftest.in" "conftest.nl"
4507 $as_echo 'EGREP' >> "conftest.nl"
4508 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null
|| break
4509 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 || break
4510 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4511 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4512 # Best one so far, save it but keep looking for a better one
4513 ac_cv_path_EGREP
="$ac_path_EGREP"
4514 ac_path_EGREP_max
=$ac_count
4516 # 10*(2^10) chars as input seems more than enough
4517 test $ac_count -gt 10 && break
4519 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4522 $ac_path_EGREP_found && break 3
4527 if test -z "$ac_cv_path_EGREP"; then
4528 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4531 ac_cv_path_EGREP
=$EGREP
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4537 $as_echo "$ac_cv_path_EGREP" >&6; }
4538 EGREP
="$ac_cv_path_EGREP"
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4542 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4543 if ${ac_cv_path_SED+:} false
; then :
4544 $as_echo_n "(cached) " >&6
4546 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
4547 for ac_i
in 1 2 3 4 5 6 7; do
4548 ac_script
="$ac_script$as_nl$ac_script"
4550 echo "$ac_script" 2>/dev
/null
| sed 99q
>conftest.
sed
4551 { ac_script
=; unset ac_script
;}
4552 if test -z "$SED"; then
4553 ac_path_SED_found
=false
4554 # Loop through the user's path and test for each of PROGNAME-LIST
4555 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4559 test -z "$as_dir" && as_dir
=.
4560 for ac_prog
in sed gsed
; do
4561 for ac_exec_ext
in '' $ac_executable_extensions; do
4562 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
4563 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4564 # Check for GNU ac_path_SED and select it if it is found.
4565 # Check for GNU $ac_path_SED
4566 case `"$ac_path_SED" --version 2>&1` in
4568 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
4571 $as_echo_n 0123456789 >"conftest.in"
4574 cat "conftest.in" "conftest.in" >"conftest.tmp"
4575 mv "conftest.tmp" "conftest.in"
4576 cp "conftest.in" "conftest.nl"
4577 $as_echo '' >> "conftest.nl"
4578 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null
|| break
4579 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 || break
4580 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4581 if test $ac_count -gt ${ac_path_SED_max-0}; then
4582 # Best one so far, save it but keep looking for a better one
4583 ac_cv_path_SED
="$ac_path_SED"
4584 ac_path_SED_max
=$ac_count
4586 # 10*(2^10) chars as input seems more than enough
4587 test $ac_count -gt 10 && break
4589 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4592 $ac_path_SED_found && break 3
4597 if test -z "$ac_cv_path_SED"; then
4598 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4606 $as_echo "$ac_cv_path_SED" >&6; }
4607 SED
="$ac_cv_path_SED"
4615 # Check whether --enable-static was given.
4616 if test "${enable_static+set}" = set; then :
4617 enableval
=$enable_static; p
=${PACKAGE-default}
4619 yes) enable_static
=yes ;;
4620 no
) enable_static
=no
;;
4623 # Look at the argument we got. We use all the common list separators.
4624 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
4625 for pkg
in $enableval; do
4627 if test "X$pkg" = "X$p"; then
4646 # Check whether --enable-shared was given.
4647 if test "${enable_shared+set}" = set; then :
4648 enableval
=$enable_shared; p
=${PACKAGE-default}
4650 yes) enable_shared
=yes ;;
4651 no
) enable_shared
=no
;;
4654 # Look at the argument we got. We use all the common list separators.
4655 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
4656 for pkg
in $enableval; do
4658 if test "X$pkg" = "X$p"; then
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4679 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4680 # Check whether --enable-maintainer-mode was given.
4681 if test "${enable_maintainer_mode+set}" = set; then :
4682 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
4684 USE_MAINTAINER_MODE
=no
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4688 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4689 if test $USE_MAINTAINER_MODE = yes; then
4690 MAINTAINER_MODE_TRUE
=
4691 MAINTAINER_MODE_FALSE
='#'
4693 MAINTAINER_MODE_TRUE
='#'
4694 MAINTAINER_MODE_FALSE
=
4697 MAINT
=$MAINTAINER_MODE_TRUE
4701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
4702 $as_echo_n "checking for library containing strerror... " >&6; }
4703 if ${ac_cv_search_strerror+:} false
; then :
4704 $as_echo_n "(cached) " >&6
4706 ac_func_search_save_LIBS
=$LIBS
4707 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4708 /* end confdefs.h. */
4710 /* Override any GCC internal prototype to avoid an error.
4711 Use char because int might match the return type of a GCC
4712 builtin and then its argument prototype would still apply. */
4725 for ac_lib
in '' cposix
; do
4726 if test -z "$ac_lib"; then
4727 ac_res
="none required"
4730 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4732 if ac_fn_c_try_link
"$LINENO"; then :
4733 ac_cv_search_strerror
=$ac_res
4735 rm -f core conftest.err conftest.
$ac_objext \
4737 if ${ac_cv_search_strerror+:} false
; then :
4741 if ${ac_cv_search_strerror+:} false
; then :
4744 ac_cv_search_strerror
=no
4747 LIBS
=$ac_func_search_save_LIBS
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
4750 $as_echo "$ac_cv_search_strerror" >&6; }
4751 ac_res
=$ac_cv_search_strerror
4752 if test "$ac_res" != no
; then :
4753 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4758 $as_echo_n "checking for inline... " >&6; }
4759 if ${ac_cv_c_inline+:} false
; then :
4760 $as_echo_n "(cached) " >&6
4763 for ac_kw
in inline __inline__ __inline
; do
4764 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4765 /* end confdefs.h. */
4768 static $ac_kw foo_t static_foo () {return 0; }
4769 $ac_kw foo_t foo () {return 0; }
4773 if ac_fn_c_try_compile
"$LINENO"; then :
4774 ac_cv_c_inline
=$ac_kw
4776 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4777 test "$ac_cv_c_inline" != no
&& break
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4782 $as_echo "$ac_cv_c_inline" >&6; }
4784 case $ac_cv_c_inline in
4787 case $ac_cv_c_inline in
4789 *) ac_val
=$ac_cv_c_inline;;
4791 cat >>confdefs.h
<<_ACEOF
4793 #define inline $ac_val
4799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4800 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4801 if ${ac_cv_c_const+:} false
; then :
4802 $as_echo_n "(cached) " >&6
4804 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4805 /* end confdefs.h. */
4810 /* FIXME: Include the comments suggested by Paul. */
4812 /* Ultrix mips cc rejects this. */
4813 typedef int charset[2];
4815 /* SunOS 4.1.1 cc rejects this. */
4816 char const *const *pcpcc;
4818 /* NEC SVR4.0.2 mips cc rejects this. */
4819 struct point {int x, y;};
4820 static struct point const zero = {0,0};
4821 /* AIX XL C 1.02.0.0 rejects this.
4822 It does not let you subtract one const X* pointer from another in
4823 an arm of an if-expression whose if-part is not a constant
4825 const char *g = "string";
4826 pcpcc = &g + (g ? g-g : 0);
4827 /* HPUX 7.0 cc rejects these. */
4829 ppc = (char**) pcpcc;
4830 pcpcc = (char const *const *) ppc;
4831 { /* SCO 3.2v4 cc rejects this. */
4833 char const *s = 0 ? (char *) 0 : (char const *) 0;
4838 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4840 const int *foo = &x[0];
4843 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4844 typedef const int *iptr;
4848 { /* AIX XL C 1.02.0.0 rejects this saying
4849 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4850 struct s { int j; const int *ap[3]; };
4851 struct s *b; b->j = 5;
4853 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4857 return !cs[0] && !zero.x;
4864 if ac_fn_c_try_compile
"$LINENO"; then :
4869 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4872 $as_echo "$ac_cv_c_const" >&6; }
4873 if test $ac_cv_c_const = no
; then
4875 $as_echo "#define const /**/" >>confdefs.h
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4880 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4881 if ${ac_cv_c_bigendian+:} false
; then :
4882 $as_echo_n "(cached) " >&6
4884 ac_cv_c_bigendian
=unknown
4885 # See if we're dealing with a universal compiler.
4886 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4887 /* end confdefs.h. */
4888 #ifndef __APPLE_CC__
4889 not a universal capable compiler
4894 if ac_fn_c_try_compile
"$LINENO"; then :
4896 # Check for potential -arch flags. It is not universal unless
4897 # there are at least two -arch flags with different values.
4900 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4901 if test -n "$ac_prev"; then
4903 i?
86 | x86_64
| ppc
| ppc64
)
4904 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4907 ac_cv_c_bigendian
=universal
4913 elif test "x$ac_word" = "x-arch"; then
4918 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4919 if test $ac_cv_c_bigendian = unknown
; then
4920 # See if sys/param.h defines the BYTE_ORDER macro.
4921 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4922 /* end confdefs.h. */
4923 #include <sys/types.h>
4924 #include <sys/param.h>
4929 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4930 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4939 if ac_fn_c_try_compile
"$LINENO"; then :
4940 # It does; now see whether it defined to BIG_ENDIAN or not.
4941 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4942 /* end confdefs.h. */
4943 #include <sys/types.h>
4944 #include <sys/param.h>
4949 #if BYTE_ORDER != BIG_ENDIAN
4957 if ac_fn_c_try_compile
"$LINENO"; then :
4958 ac_cv_c_bigendian
=yes
4960 ac_cv_c_bigendian
=no
4962 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4964 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4966 if test $ac_cv_c_bigendian = unknown
; then
4967 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4968 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4969 /* end confdefs.h. */
4975 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4983 if ac_fn_c_try_compile
"$LINENO"; then :
4984 # It does; now see whether it defined to _BIG_ENDIAN or not.
4985 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4986 /* end confdefs.h. */
5000 if ac_fn_c_try_compile
"$LINENO"; then :
5001 ac_cv_c_bigendian
=yes
5003 ac_cv_c_bigendian
=no
5005 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5007 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5009 if test $ac_cv_c_bigendian = unknown
; then
5010 # Compile a test program.
5011 if test "$cross_compiling" = yes; then :
5012 # Try to guess by grepping values from an object file.
5013 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5014 /* end confdefs.h. */
5015 short int ascii_mm[] =
5016 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5017 short int ascii_ii[] =
5018 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5019 int use_ascii (int i) {
5020 return ascii_mm[i] + ascii_ii[i];
5022 short int ebcdic_ii[] =
5023 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5024 short int ebcdic_mm[] =
5025 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5026 int use_ebcdic (int i) {
5027 return ebcdic_mm[i] + ebcdic_ii[i];
5034 return use_ascii (foo) == use_ebcdic (foo);
5039 if ac_fn_c_try_compile
"$LINENO"; then :
5040 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
5041 ac_cv_c_bigendian
=yes
5043 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
5044 if test "$ac_cv_c_bigendian" = unknown
; then
5045 ac_cv_c_bigendian
=no
5047 # finding both strings is unlikely to happen, but who knows?
5048 ac_cv_c_bigendian
=unknown
5052 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5054 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5055 /* end confdefs.h. */
5056 $ac_includes_default
5061 /* Are we little or big endian? From Harbison&Steele. */
5065 char c[sizeof (long int)];
5068 return u.c[sizeof (long int) - 1] == 1;
5074 if ac_fn_c_try_run
"$LINENO"; then :
5075 ac_cv_c_bigendian
=no
5077 ac_cv_c_bigendian
=yes
5079 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5080 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5086 $as_echo "$ac_cv_c_bigendian" >&6; }
5087 case $ac_cv_c_bigendian in #(
5089 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5095 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5099 as_fn_error $?
"unknown endianness
5100 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5104 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5106 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5107 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
5108 $as_echo_n "(cached) " >&6
5110 cat >conftest.
make <<\_ACEOF
5113 @
echo '@@@%%%=$(MAKE)=@@@%%%'
5115 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5116 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5118 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
5120 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
5124 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5126 $as_echo "yes" >&6; }
5129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5130 $as_echo "no" >&6; }
5131 SET_MAKE
="MAKE=${MAKE-make}"
5135 # Extract the first word of "automake", so it can be a program name with args.
5136 set dummy automake
; ac_word
=$2
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5138 $as_echo_n "checking for $ac_word... " >&6; }
5139 if ${ac_cv_path_AUTOMAKE+:} false
; then :
5140 $as_echo_n "(cached) " >&6
5144 ac_cv_path_AUTOMAKE
="$AUTOMAKE" # Let the user override the test with a path.
5147 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5151 test -z "$as_dir" && as_dir
=.
5152 for ac_exec_ext
in '' $ac_executable_extensions; do
5153 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5154 ac_cv_path_AUTOMAKE
="$as_dir/$ac_word$ac_exec_ext"
5155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5165 AUTOMAKE
=$ac_cv_path_AUTOMAKE
5166 if test -n "$AUTOMAKE"; then
5167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOMAKE" >&5
5168 $as_echo "$AUTOMAKE" >&6; }
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5171 $as_echo "no" >&6; }
5175 # Extract the first word of "aclocal", so it can be a program name with args.
5176 set dummy aclocal
; ac_word
=$2
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5178 $as_echo_n "checking for $ac_word... " >&6; }
5179 if ${ac_cv_path_ACLOCAL+:} false
; then :
5180 $as_echo_n "(cached) " >&6
5184 ac_cv_path_ACLOCAL
="$ACLOCAL" # Let the user override the test with a path.
5187 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5191 test -z "$as_dir" && as_dir
=.
5192 for ac_exec_ext
in '' $ac_executable_extensions; do
5193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5194 ac_cv_path_ACLOCAL
="$as_dir/$ac_word$ac_exec_ext"
5195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5205 ACLOCAL
=$ac_cv_path_ACLOCAL
5206 if test -n "$ACLOCAL"; then
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5
5208 $as_echo "$ACLOCAL" >&6; }
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5211 $as_echo "no" >&6; }
5215 # Extract the first word of "autoheader", so it can be a program name with args.
5216 set dummy autoheader
; ac_word
=$2
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5218 $as_echo_n "checking for $ac_word... " >&6; }
5219 if ${ac_cv_path_AUTOHEADER+:} false
; then :
5220 $as_echo_n "(cached) " >&6
5224 ac_cv_path_AUTOHEADER
="$AUTOHEADER" # Let the user override the test with a path.
5227 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5231 test -z "$as_dir" && as_dir
=.
5232 for ac_exec_ext
in '' $ac_executable_extensions; do
5233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5234 ac_cv_path_AUTOHEADER
="$as_dir/$ac_word$ac_exec_ext"
5235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5245 AUTOHEADER
=$ac_cv_path_AUTOHEADER
5246 if test -n "$AUTOHEADER"; then
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOHEADER" >&5
5248 $as_echo "$AUTOHEADER" >&6; }
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5251 $as_echo "no" >&6; }
5255 # Extract the first word of "as", so it can be a program name with args.
5256 set dummy as
; ac_word
=$2
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5258 $as_echo_n "checking for $ac_word... " >&6; }
5259 if ${ac_cv_path_AS+:} false
; then :
5260 $as_echo_n "(cached) " >&6
5264 ac_cv_path_AS
="$AS" # Let the user override the test with a path.
5267 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5271 test -z "$as_dir" && as_dir
=.
5272 for ac_exec_ext
in '' $ac_executable_extensions; do
5273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5274 ac_cv_path_AS
="$as_dir/$ac_word$ac_exec_ext"
5275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5286 if test -n "$AS"; then
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5288 $as_echo "$AS" >&6; }
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5291 $as_echo "no" >&6; }
5295 # Extract the first word of "rm", so it can be a program name with args.
5296 set dummy
rm; ac_word
=$2
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5298 $as_echo_n "checking for $ac_word... " >&6; }
5299 if ${ac_cv_path_RM+:} false
; then :
5300 $as_echo_n "(cached) " >&6
5304 ac_cv_path_RM
="$RM" # Let the user override the test with a path.
5307 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5311 test -z "$as_dir" && as_dir
=.
5312 for ac_exec_ext
in '' $ac_executable_extensions; do
5313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5314 ac_cv_path_RM
="$as_dir/$ac_word$ac_exec_ext"
5315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5326 if test -n "$RM"; then
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5328 $as_echo "$RM" >&6; }
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5331 $as_echo "no" >&6; }
5335 # Extract the first word of "cp", so it can be a program name with args.
5336 set dummy
cp; ac_word
=$2
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5338 $as_echo_n "checking for $ac_word... " >&6; }
5339 if ${ac_cv_path_CP+:} false
; then :
5340 $as_echo_n "(cached) " >&6
5344 ac_cv_path_CP
="$CP" # Let the user override the test with a path.
5347 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5351 test -z "$as_dir" && as_dir
=.
5352 for ac_exec_ext
in '' $ac_executable_extensions; do
5353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5354 ac_cv_path_CP
="$as_dir/$ac_word$ac_exec_ext"
5355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5366 if test -n "$CP"; then
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5368 $as_echo "$CP" >&6; }
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5371 $as_echo "no" >&6; }
5375 # Extract the first word of "mv", so it can be a program name with args.
5376 set dummy
mv; ac_word
=$2
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5378 $as_echo_n "checking for $ac_word... " >&6; }
5379 if ${ac_cv_path_MV+:} false
; then :
5380 $as_echo_n "(cached) " >&6
5384 ac_cv_path_MV
="$MV" # Let the user override the test with a path.
5387 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5391 test -z "$as_dir" && as_dir
=.
5392 for ac_exec_ext
in '' $ac_executable_extensions; do
5393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5394 ac_cv_path_MV
="$as_dir/$ac_word$ac_exec_ext"
5395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5406 if test -n "$MV"; then
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5408 $as_echo "$MV" >&6; }
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5411 $as_echo "no" >&6; }
5415 # Extract the first word of "ln", so it can be a program name with args.
5416 set dummy
ln; ac_word
=$2
5417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5418 $as_echo_n "checking for $ac_word... " >&6; }
5419 if ${ac_cv_path_LN+:} false
; then :
5420 $as_echo_n "(cached) " >&6
5424 ac_cv_path_LN
="$LN" # Let the user override the test with a path.
5427 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5431 test -z "$as_dir" && as_dir
=.
5432 for ac_exec_ext
in '' $ac_executable_extensions; do
5433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5434 ac_cv_path_LN
="$as_dir/$ac_word$ac_exec_ext"
5435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5446 if test -n "$LN"; then
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
5448 $as_echo "$LN" >&6; }
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5451 $as_echo "no" >&6; }
5455 # Extract the first word of "touch", so it can be a program name with args.
5456 set dummy
touch; ac_word
=$2
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5458 $as_echo_n "checking for $ac_word... " >&6; }
5459 if ${ac_cv_path_TOUCH+:} false
; then :
5460 $as_echo_n "(cached) " >&6
5464 ac_cv_path_TOUCH
="$TOUCH" # Let the user override the test with a path.
5467 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5471 test -z "$as_dir" && as_dir
=.
5472 for ac_exec_ext
in '' $ac_executable_extensions; do
5473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5474 ac_cv_path_TOUCH
="$as_dir/$ac_word$ac_exec_ext"
5475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5485 TOUCH
=$ac_cv_path_TOUCH
5486 if test -n "$TOUCH"; then
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5488 $as_echo "$TOUCH" >&6; }
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5491 $as_echo "no" >&6; }
5496 ac_cpp
='$CPP $CPPFLAGS'
5497 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5498 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5499 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5505 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5510 macro_version
='2.4.2'
5511 macro_revision
='1.3337'
5525 ltmain
="$ac_aux_dir/ltmain.sh"
5527 # Make sure we can run config.sub.
5528 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
5529 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5532 $as_echo_n "checking build system type... " >&6; }
5533 if ${ac_cv_build+:} false
; then :
5534 $as_echo_n "(cached) " >&6
5536 ac_build_alias
=$build_alias
5537 test "x$ac_build_alias" = x
&&
5538 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
5539 test "x$ac_build_alias" = x
&&
5540 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
5541 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5542 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5546 $as_echo "$ac_cv_build" >&6; }
5547 case $ac_cv_build in
5549 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
5552 ac_save_IFS
=$IFS; IFS
='-'
5558 # Remember, the first character of IFS is used to create $*,
5559 # except with old shells:
5562 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5566 $as_echo_n "checking host system type... " >&6; }
5567 if ${ac_cv_host+:} false
; then :
5568 $as_echo_n "(cached) " >&6
5570 if test "x$host_alias" = x
; then
5571 ac_cv_host
=$ac_cv_build
5573 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5574 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5579 $as_echo "$ac_cv_host" >&6; }
5582 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
5585 ac_save_IFS
=$IFS; IFS
='-'
5591 # Remember, the first character of IFS is used to create $*,
5592 # except with old shells:
5595 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
5598 # Backslashify metacharacters that are still active within
5599 # double-quoted strings.
5600 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
5602 # Same as above, but do not quote variable references.
5603 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
5605 # Sed substitution to delay expansion of an escaped shell variable in a
5606 # double_quote_subst'ed string.
5607 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
5609 # Sed substitution to delay expansion of an escaped single quote.
5610 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
5612 # Sed substitution to avoid accidental globbing in evaled expressions
5613 no_glob_subst
='s/\*/\\\*/g'
5615 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5616 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5617 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5620 $as_echo_n "checking how to print strings... " >&6; }
5621 # Test print first, because it will be a builtin if present.
5622 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5623 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5625 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5628 # Use this function as a fallback that always works.
5629 func_fallback_echo ()
5631 eval 'cat <<_LTECHO_EOF
5635 ECHO='func_fallback_echo
'
5638 # func_echo_all arg...
5639 # Invoke $ECHO with all args, space-separated.
5646 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5647 $as_echo "printf" >&6; } ;;
5648 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5649 $as_echo "print -r" >&6; } ;;
5650 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5651 $as_echo "cat" >&6; } ;;
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5668 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5669 if ${ac_cv_path_SED+:} false; then :
5670 $as_echo_n "(cached) " >&6
5672 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5673 for ac_i in 1 2 3 4 5 6 7; do
5674 ac_script="$ac_script$as_nl$ac_script"
5676 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5677 { ac_script=; unset ac_script;}
5678 if test -z "$SED"; then
5679 ac_path_SED_found=false
5680 # Loop through the user's path and
test for each of PROGNAME
-LIST
5681 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5685 test -z "$as_dir" && as_dir
=.
5686 for ac_prog
in sed gsed
; do
5687 for ac_exec_ext
in '' $ac_executable_extensions; do
5688 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
5689 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5690 # Check for GNU ac_path_SED and select it if it is found.
5691 # Check for GNU $ac_path_SED
5692 case `"$ac_path_SED" --version 2>&1` in
5694 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
5697 $as_echo_n 0123456789 >"conftest.in"
5700 cat "conftest.in" "conftest.in" >"conftest.tmp"
5701 mv "conftest.tmp" "conftest.in"
5702 cp "conftest.in" "conftest.nl"
5703 $as_echo '' >> "conftest.nl"
5704 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null
|| break
5705 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 || break
5706 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5707 if test $ac_count -gt ${ac_path_SED_max-0}; then
5708 # Best one so far, save it but keep looking for a better one
5709 ac_cv_path_SED
="$ac_path_SED"
5710 ac_path_SED_max
=$ac_count
5712 # 10*(2^10) chars as input seems more than enough
5713 test $ac_count -gt 10 && break
5715 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5718 $ac_path_SED_found && break 3
5723 if test -z "$ac_cv_path_SED"; then
5724 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5732 $as_echo "$ac_cv_path_SED" >&6; }
5733 SED
="$ac_cv_path_SED"
5736 test -z "$SED" && SED
=sed
5737 Xsed
="$SED -e 1s/^X//"
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5750 $as_echo_n "checking for fgrep... " >&6; }
5751 if ${ac_cv_path_FGREP+:} false
; then :
5752 $as_echo_n "(cached) " >&6
5754 if echo 'ab*c' | $GREP -F 'ab*c' >/dev
/null
2>&1
5755 then ac_cv_path_FGREP
="$GREP -F"
5757 if test -z "$FGREP"; then
5758 ac_path_FGREP_found
=false
5759 # Loop through the user's path and test for each of PROGNAME-LIST
5760 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5761 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5764 test -z "$as_dir" && as_dir
=.
5765 for ac_prog
in fgrep
; do
5766 for ac_exec_ext
in '' $ac_executable_extensions; do
5767 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
5768 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5769 # Check for GNU ac_path_FGREP and select it if it is found.
5770 # Check for GNU $ac_path_FGREP
5771 case `"$ac_path_FGREP" --version 2>&1` in
5773 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
5776 $as_echo_n 0123456789 >"conftest.in"
5779 cat "conftest.in" "conftest.in" >"conftest.tmp"
5780 mv "conftest.tmp" "conftest.in"
5781 cp "conftest.in" "conftest.nl"
5782 $as_echo 'FGREP' >> "conftest.nl"
5783 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null
|| break
5784 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 || break
5785 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5786 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5787 # Best one so far, save it but keep looking for a better one
5788 ac_cv_path_FGREP
="$ac_path_FGREP"
5789 ac_path_FGREP_max
=$ac_count
5791 # 10*(2^10) chars as input seems more than enough
5792 test $ac_count -gt 10 && break
5794 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5797 $ac_path_FGREP_found && break 3
5802 if test -z "$ac_cv_path_FGREP"; then
5803 as_fn_error $?
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5806 ac_cv_path_FGREP
=$FGREP
5811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5812 $as_echo "$ac_cv_path_FGREP" >&6; }
5813 FGREP
="$ac_cv_path_FGREP"
5816 test -z "$GREP" && GREP
=grep
5836 # Check whether --with-gnu-ld was given.
5837 if test "${with_gnu_ld+set}" = set; then :
5838 withval
=$with_gnu_ld; test "$withval" = no
|| with_gnu_ld
=yes
5844 if test "$GCC" = yes; then
5845 # Check if gcc -print-prog-name=ld gives a path.
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5847 $as_echo_n "checking for ld used by $CC... " >&6; }
5850 # gcc leaves a trailing carriage return which upsets mingw
5851 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5853 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
5856 # Accept absolute paths.
5858 re_direlt
='/[^/][^/]*/\.\./'
5859 # Canonicalize the pathname of ld
5860 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5861 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev
/null
2>&1; do
5862 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5864 test -z "$LD" && LD
="$ac_prog"
5867 # If it fails, then pretend we aren't using GCC.
5871 # If it is relative, then search for the first ld in PATH.
5875 elif test "$with_gnu_ld" = yes; then
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5877 $as_echo_n "checking for GNU ld... " >&6; }
5879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5880 $as_echo_n "checking for non-GNU ld... " >&6; }
5882 if ${lt_cv_path_LD+:} false
; then :
5883 $as_echo_n "(cached) " >&6
5885 if test -z "$LD"; then
5886 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
5887 for ac_dir
in $PATH; do
5889 test -z "$ac_dir" && ac_dir
=.
5890 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5891 lt_cv_path_LD
="$ac_dir/$ac_prog"
5892 # Check to see if the program is GNU ld. I'd rather use --version,
5893 # but apparently some variants of GNU ld only accept -v.
5894 # Break only if it was the GNU/non-GNU ld that we prefer.
5895 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5896 *GNU
* | *'with BFD'*)
5897 test "$with_gnu_ld" != no
&& break
5900 test "$with_gnu_ld" != yes && break
5907 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
5912 if test -n "$LD"; then
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5914 $as_echo "$LD" >&6; }
5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5917 $as_echo "no" >&6; }
5919 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5921 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5922 if ${lt_cv_prog_gnu_ld+:} false
; then :
5923 $as_echo_n "(cached) " >&6
5925 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5926 case `$LD -v 2>&1 </dev/null` in
5927 *GNU
* | *'with BFD'*)
5928 lt_cv_prog_gnu_ld
=yes
5931 lt_cv_prog_gnu_ld
=no
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5936 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5937 with_gnu_ld
=$lt_cv_prog_gnu_ld
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5948 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5949 if ${lt_cv_path_NM+:} false
; then :
5950 $as_echo_n "(cached) " >&6
5952 if test -n "$NM"; then
5953 # Let the user override the test.
5956 lt_nm_to_check
="${ac_tool_prefix}nm"
5957 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5958 lt_nm_to_check
="$lt_nm_to_check nm"
5960 for lt_tmp_nm
in $lt_nm_to_check; do
5961 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
5962 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
5964 test -z "$ac_dir" && ac_dir
=.
5965 tmp_nm
="$ac_dir/$lt_tmp_nm"
5966 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5967 # Check to see if the nm accepts a BSD-compat flag.
5968 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5969 # nm: unknown option "B" ignored
5970 # Tru64's nm complains that /dev/null is an invalid object file
5971 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5972 */dev
/null
* | *'Invalid file or object type'*)
5973 lt_cv_path_NM
="$tmp_nm -B"
5977 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5979 lt_cv_path_NM
="$tmp_nm -p"
5983 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5984 continue # so that we can try to find one that supports BSD flags
5993 : ${lt_cv_path_NM=no}
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5997 $as_echo "$lt_cv_path_NM" >&6; }
5998 if test "$lt_cv_path_NM" != "no"; then
6001 # Didn't find any BSD compatible name lister, look for dumpbin.
6002 if test -n "$DUMPBIN"; then :
6003 # Let the user override the test.
6005 if test -n "$ac_tool_prefix"; then
6006 for ac_prog
in dumpbin
"link -dump"
6008 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6009 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6011 $as_echo_n "checking for $ac_word... " >&6; }
6012 if ${ac_cv_prog_DUMPBIN+:} false
; then :
6013 $as_echo_n "(cached) " >&6
6015 if test -n "$DUMPBIN"; then
6016 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
6018 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6022 test -z "$as_dir" && as_dir
=.
6023 for ac_exec_ext
in '' $ac_executable_extensions; do
6024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6025 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
6026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6035 DUMPBIN
=$ac_cv_prog_DUMPBIN
6036 if test -n "$DUMPBIN"; then
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6038 $as_echo "$DUMPBIN" >&6; }
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6041 $as_echo "no" >&6; }
6045 test -n "$DUMPBIN" && break
6048 if test -z "$DUMPBIN"; then
6049 ac_ct_DUMPBIN
=$DUMPBIN
6050 for ac_prog
in dumpbin
"link -dump"
6052 # Extract the first word of "$ac_prog", so it can be a program name with args.
6053 set dummy
$ac_prog; ac_word
=$2
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6055 $as_echo_n "checking for $ac_word... " >&6; }
6056 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false
; then :
6057 $as_echo_n "(cached) " >&6
6059 if test -n "$ac_ct_DUMPBIN"; then
6060 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
6062 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6066 test -z "$as_dir" && as_dir
=.
6067 for ac_exec_ext
in '' $ac_executable_extensions; do
6068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6069 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
6070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6079 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
6080 if test -n "$ac_ct_DUMPBIN"; then
6081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6082 $as_echo "$ac_ct_DUMPBIN" >&6; }
6084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6085 $as_echo "no" >&6; }
6089 test -n "$ac_ct_DUMPBIN" && break
6092 if test "x$ac_ct_DUMPBIN" = x
; then
6095 case $cross_compiling:$ac_tool_warned in
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6098 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6099 ac_tool_warned
=yes ;;
6101 DUMPBIN
=$ac_ct_DUMPBIN
6105 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6107 DUMPBIN
="$DUMPBIN -symbols"
6115 if test "$DUMPBIN" != ":"; then
6119 test -z "$NM" && NM
=nm
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6127 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6128 if ${lt_cv_nm_interface+:} false
; then :
6129 $as_echo_n "(cached) " >&6
6131 lt_cv_nm_interface
="BSD nm"
6132 echo "int some_variable = 0;" > conftest.
$ac_ext
6133 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6134 (eval "$ac_compile" 2>conftest.err
)
6135 cat conftest.err
>&5
6136 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6137 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
6138 cat conftest.err
>&5
6139 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6140 cat conftest.out
>&5
6141 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
6142 lt_cv_nm_interface
="MS dumpbin"
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6147 $as_echo "$lt_cv_nm_interface" >&6; }
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6150 $as_echo_n "checking whether ln -s works... " >&6; }
6152 if test "$LN_S" = "ln -s"; then
6153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6154 $as_echo "yes" >&6; }
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6157 $as_echo "no, using $LN_S" >&6; }
6160 # find the maximum length of command line arguments
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6162 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6163 if ${lt_cv_sys_max_cmd_len+:} false
; then :
6164 $as_echo_n "(cached) " >&6
6171 # On DJGPP, this test can blow up pretty badly due to problems in libc
6172 # (any single argument exceeding 2000 bytes causes a buffer overrun
6173 # during glob expansion). Even if it were fixed, the result of this
6174 # check would be larger than it should be.
6175 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
6179 # Under GNU Hurd, this test is not required because there is
6180 # no limit to the length of command line arguments.
6181 # Libtool will interpret -1 as no limit whatsoever
6182 lt_cv_sys_max_cmd_len
=-1;
6185 cygwin
* | mingw
* | cegcc
*)
6186 # On Win9x/ME, this test blows up -- it succeeds, but takes
6187 # about 5 minutes as the teststring grows exponentially.
6188 # Worse, since 9x/ME are not pre-emptively multitasking,
6189 # you end up with a "frozen" computer, even though with patience
6190 # the test eventually succeeds (with a max line length of 256k).
6191 # Instead, let's just punt: use the minimum linelength reported by
6192 # all of the supported platforms: 8192 (on NT/2K/XP).
6193 lt_cv_sys_max_cmd_len
=8192;
6197 # On MiNT this can take a long time and run out of memory.
6198 lt_cv_sys_max_cmd_len
=8192;
6202 # On AmigaOS with pdksh, this test takes hours, literally.
6203 # So we just punt and use a minimum line length of 8192.
6204 lt_cv_sys_max_cmd_len
=8192;
6207 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
6208 # This has been around since 386BSD, at least. Likely further.
6209 if test -x /sbin
/sysctl
; then
6210 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
6211 elif test -x /usr
/sbin
/sysctl
; then
6212 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
6214 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
6216 # And add a safety zone
6217 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
6218 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
6222 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6223 lt_cv_sys_max_cmd_len
=196608
6227 # The test takes a long time on OS/2.
6228 lt_cv_sys_max_cmd_len
=8192
6232 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6233 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6234 # nice to cause kernel panics so lets avoid the loop below.
6235 # First set a reasonable default.
6236 lt_cv_sys_max_cmd_len
=16384
6238 if test -x /sbin
/sysconfig
; then
6239 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6240 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
6245 lt_cv_sys_max_cmd_len
=102400
6247 sysv5
* | sco5v6
* | sysv4.2uw2
*)
6248 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6249 if test -n "$kargmax"; then
6250 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
6252 lt_cv_sys_max_cmd_len
=32768
6256 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
6257 if test -n "$lt_cv_sys_max_cmd_len"; then
6258 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
6259 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
6261 # Make teststring a little bigger before we do anything with it.
6262 # a 1K string should be a reasonable start.
6263 for i
in 1 2 3 4 5 6 7 8 ; do
6264 teststring
=$teststring$teststring
6266 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
6267 # If test is not a shell built-in, we'll probably end up computing a
6268 # maximum length that is only half of the actual maximum length, but
6270 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6271 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
6272 test $i != 17 # 1/2 MB should be enough
6275 teststring
=$teststring$teststring
6277 # Only check the string length outside the loop.
6278 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
6280 # Add a significant safety factor because C++ compilers can tack on
6281 # massive amounts of additional arguments before passing them to the
6282 # linker. It appears as though 1/2 is a usable value.
6283 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
6290 if test -n $lt_cv_sys_max_cmd_len ; then
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6292 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6295 $as_echo "none" >&6; }
6297 max_cmd_len
=$lt_cv_sys_max_cmd_len
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6309 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6310 # Try some XSI features
6313 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6315 && eval 'test $(( 1 + 1 )) -eq 2 \
6316 && test "${#_lt_dummy}" -eq 5' ) >/dev
/null
2>&1 \
6318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6319 $as_echo "$xsi_shell" >&6; }
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6323 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6325 ( foo
=bar
; set foo baz
; eval "$1+=\$2" && test "$foo" = barbaz
) \
6327 && lt_shell_append
=yes
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6329 $as_echo "$lt_shell_append" >&6; }
6332 if ( (MAIL
=60; unset MAIL
) || exit) >/dev
/null
2>&1; then
6342 # test EBCDIC or ASCII
6343 case `echo X|tr X '\101'` in
6344 A
) # ASCII based system
6345 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6346 lt_SP2NL
='tr \040 \012'
6347 lt_NL2SP
='tr \015\012 \040\040'
6349 *) # EBCDIC based system
6350 lt_SP2NL
='tr \100 \n'
6351 lt_NL2SP
='tr \r\n \100\100'
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6364 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6365 if ${lt_cv_to_host_file_cmd+:} false
; then :
6366 $as_echo_n "(cached) " >&6
6371 *-*-mingw* ) # actually msys
6372 lt_cv_to_host_file_cmd
=func_convert_file_msys_to_w32
6375 lt_cv_to_host_file_cmd
=func_convert_file_cygwin_to_w32
6377 * ) # otherwise, assume *nix
6378 lt_cv_to_host_file_cmd
=func_convert_file_nix_to_w32
6384 *-*-mingw* ) # actually msys
6385 lt_cv_to_host_file_cmd
=func_convert_file_msys_to_cygwin
6388 lt_cv_to_host_file_cmd
=func_convert_file_noop
6390 * ) # otherwise, assume *nix
6391 lt_cv_to_host_file_cmd
=func_convert_file_nix_to_cygwin
6395 * ) # unhandled hosts (and "normal" native builds)
6396 lt_cv_to_host_file_cmd
=func_convert_file_noop
6402 to_host_file_cmd
=$lt_cv_to_host_file_cmd
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6404 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6411 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6412 if ${lt_cv_to_tool_file_cmd+:} false
; then :
6413 $as_echo_n "(cached) " >&6
6415 #assume ordinary cross tools, or native build.
6416 lt_cv_to_tool_file_cmd
=func_convert_file_noop
6420 *-*-mingw* ) # actually msys
6421 lt_cv_to_tool_file_cmd
=func_convert_file_msys_to_w32
6429 to_tool_file_cmd
=$lt_cv_to_tool_file_cmd
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6431 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6438 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6439 if ${lt_cv_ld_reload_flag+:} false
; then :
6440 $as_echo_n "(cached) " >&6
6442 lt_cv_ld_reload_flag
='-r'
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6445 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6446 reload_flag
=$lt_cv_ld_reload_flag
6447 case $reload_flag in
6449 *) reload_flag
=" $reload_flag" ;;
6451 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
6453 cygwin
* | mingw
* | pw32
* | cegcc
*)
6454 if test "$GCC" != yes; then
6459 if test "$GCC" = yes; then
6460 reload_cmds
='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6462 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
6475 if test -n "$ac_tool_prefix"; then
6476 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6477 set dummy
${ac_tool_prefix}objdump
; ac_word
=$2
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6479 $as_echo_n "checking for $ac_word... " >&6; }
6480 if ${ac_cv_prog_OBJDUMP+:} false
; then :
6481 $as_echo_n "(cached) " >&6
6483 if test -n "$OBJDUMP"; then
6484 ac_cv_prog_OBJDUMP
="$OBJDUMP" # Let the user override the test.
6486 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6490 test -z "$as_dir" && as_dir
=.
6491 for ac_exec_ext
in '' $ac_executable_extensions; do
6492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6493 ac_cv_prog_OBJDUMP
="${ac_tool_prefix}objdump"
6494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6503 OBJDUMP
=$ac_cv_prog_OBJDUMP
6504 if test -n "$OBJDUMP"; then
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6506 $as_echo "$OBJDUMP" >&6; }
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6509 $as_echo "no" >&6; }
6514 if test -z "$ac_cv_prog_OBJDUMP"; then
6515 ac_ct_OBJDUMP
=$OBJDUMP
6516 # Extract the first word of "objdump", so it can be a program name with args.
6517 set dummy objdump
; ac_word
=$2
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6519 $as_echo_n "checking for $ac_word... " >&6; }
6520 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false
; then :
6521 $as_echo_n "(cached) " >&6
6523 if test -n "$ac_ct_OBJDUMP"; then
6524 ac_cv_prog_ac_ct_OBJDUMP
="$ac_ct_OBJDUMP" # Let the user override the test.
6526 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6530 test -z "$as_dir" && as_dir
=.
6531 for ac_exec_ext
in '' $ac_executable_extensions; do
6532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6533 ac_cv_prog_ac_ct_OBJDUMP
="objdump"
6534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6543 ac_ct_OBJDUMP
=$ac_cv_prog_ac_ct_OBJDUMP
6544 if test -n "$ac_ct_OBJDUMP"; then
6545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6546 $as_echo "$ac_ct_OBJDUMP" >&6; }
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6549 $as_echo "no" >&6; }
6552 if test "x$ac_ct_OBJDUMP" = x
; then
6555 case $cross_compiling:$ac_tool_warned in
6557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6558 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6559 ac_tool_warned
=yes ;;
6561 OBJDUMP
=$ac_ct_OBJDUMP
6564 OBJDUMP
="$ac_cv_prog_OBJDUMP"
6567 test -z "$OBJDUMP" && OBJDUMP
=objdump
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6578 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6579 if ${lt_cv_deplibs_check_method+:} false
; then :
6580 $as_echo_n "(cached) " >&6
6582 lt_cv_file_magic_cmd
='$MAGIC_CMD'
6583 lt_cv_file_magic_test_file
=
6584 lt_cv_deplibs_check_method
='unknown'
6585 # Need to set the preceding variable on all platforms that support
6586 # interlibrary dependencies.
6587 # 'none' -- dependencies not supported.
6588 # `unknown' -- same as none, but documents that we really don't know.
6589 # 'pass_all' -- all dependencies passed with no checks.
6590 # 'test_compile' -- check by making test program.
6591 # 'file_magic [[regex]]' -- check by looking for files in library path
6592 # which responds to the $file_magic_cmd with a given extended regex.
6593 # If you have `file' or equivalent on your system and you're not sure
6594 # whether `pass_all' will *always* work, you probably want this one.
6598 lt_cv_deplibs_check_method
=pass_all
6602 lt_cv_deplibs_check_method
=pass_all
6606 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6607 lt_cv_file_magic_cmd
='/usr/bin/file -L'
6608 lt_cv_file_magic_test_file
=/shlib
/libc.so
6612 # func_win32_libid is a shell function defined in ltmain.sh
6613 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
6614 lt_cv_file_magic_cmd
='func_win32_libid'
6618 # Base MSYS/MinGW do not provide the 'file' command needed by
6619 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6620 # unless we find 'file', for example because we are cross-compiling.
6621 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6622 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev
/null
2>&1; then
6623 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
6624 lt_cv_file_magic_cmd
='func_win32_libid'
6626 # Keep this pattern in sync with the one in func_win32_libid.
6627 lt_cv_deplibs_check_method
='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6628 lt_cv_file_magic_cmd
='$OBJDUMP -f'
6633 # use the weaker test based on 'objdump'. See mingw*.
6634 lt_cv_deplibs_check_method
='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6635 lt_cv_file_magic_cmd
='$OBJDUMP -f'
6638 darwin
* | rhapsody
*)
6639 lt_cv_deplibs_check_method
=pass_all
6642 freebsd
* | dragonfly
*)
6643 if echo __ELF__
| $CC -E - | $GREP __ELF__
> /dev
/null
; then
6646 # Not sure whether the presence of OpenBSD here was a mistake.
6647 # Let's accept both of them until this is cleared up.
6648 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6649 lt_cv_file_magic_cmd
=/usr
/bin
/file
6650 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
6654 lt_cv_deplibs_check_method
=pass_all
6659 lt_cv_deplibs_check_method
=pass_all
6663 lt_cv_deplibs_check_method
=pass_all
6666 hpux10.20
* | hpux11
*)
6667 lt_cv_file_magic_cmd
=/usr
/bin
/file
6670 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6671 lt_cv_file_magic_test_file
=/usr
/lib
/hpux
32/libc.so
6674 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]'
6675 lt_cv_file_magic_test_file
=/usr
/lib
/pa
20_
64/libc.sl
6678 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6679 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
6685 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6686 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|\.a)$'
6689 irix5
* | irix6
* | nonstopux
*)
6691 *-32|*"-32 ") libmagic
=32-bit;;
6692 *-n32|*"-n32 ") libmagic
=N32
;;
6693 *-64|*"-64 ") libmagic
=64-bit;;
6694 *) libmagic
=never
-match;;
6696 lt_cv_deplibs_check_method
=pass_all
6699 # This must be glibc/ELF.
6700 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
6701 lt_cv_deplibs_check_method
=pass_all
6705 if echo __ELF__
| $CC -E - | $GREP __ELF__
> /dev
/null
; then
6706 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6708 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6713 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6714 lt_cv_file_magic_cmd
=/usr
/bin
/file
6715 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
6719 lt_cv_deplibs_check_method
=pass_all
6723 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6724 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6726 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6730 osf3
* | osf4
* | osf5
*)
6731 lt_cv_deplibs_check_method
=pass_all
6735 lt_cv_deplibs_check_method
=pass_all
6739 lt_cv_deplibs_check_method
=pass_all
6742 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
6743 lt_cv_deplibs_check_method
=pass_all
6747 case $host_vendor in
6749 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]'
6750 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
6753 lt_cv_deplibs_check_method
=pass_all
6756 lt_cv_file_magic_cmd
='/bin/file'
6757 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6760 lt_cv_file_magic_cmd
='/bin/file'
6761 lt_cv_deplibs_check_method
="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6762 lt_cv_file_magic_test_file
=/lib
/libc.so
6765 lt_cv_deplibs_check_method
=pass_all
6768 lt_cv_deplibs_check_method
=pass_all
6774 lt_cv_deplibs_check_method
=pass_all
6779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6780 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6784 if test "$build" = "$host"; then
6787 if ( shopt | grep nocaseglob
) >/dev
/null
2>&1; then
6790 file_magic_glob
=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6796 file_magic_cmd
=$lt_cv_file_magic_cmd
6797 deplibs_check_method
=$lt_cv_deplibs_check_method
6798 test -z "$deplibs_check_method" && deplibs_check_method
=unknown
6821 if test -n "$ac_tool_prefix"; then
6822 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6823 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6825 $as_echo_n "checking for $ac_word... " >&6; }
6826 if ${ac_cv_prog_DLLTOOL+:} false
; then :
6827 $as_echo_n "(cached) " >&6
6829 if test -n "$DLLTOOL"; then
6830 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
6832 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6836 test -z "$as_dir" && as_dir
=.
6837 for ac_exec_ext
in '' $ac_executable_extensions; do
6838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6839 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
6840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6849 DLLTOOL
=$ac_cv_prog_DLLTOOL
6850 if test -n "$DLLTOOL"; then
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6852 $as_echo "$DLLTOOL" >&6; }
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6855 $as_echo "no" >&6; }
6860 if test -z "$ac_cv_prog_DLLTOOL"; then
6861 ac_ct_DLLTOOL
=$DLLTOOL
6862 # Extract the first word of "dlltool", so it can be a program name with args.
6863 set dummy dlltool
; ac_word
=$2
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6865 $as_echo_n "checking for $ac_word... " >&6; }
6866 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false
; then :
6867 $as_echo_n "(cached) " >&6
6869 if test -n "$ac_ct_DLLTOOL"; then
6870 ac_cv_prog_ac_ct_DLLTOOL
="$ac_ct_DLLTOOL" # Let the user override the test.
6872 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6876 test -z "$as_dir" && as_dir
=.
6877 for ac_exec_ext
in '' $ac_executable_extensions; do
6878 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6879 ac_cv_prog_ac_ct_DLLTOOL
="dlltool"
6880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6889 ac_ct_DLLTOOL
=$ac_cv_prog_ac_ct_DLLTOOL
6890 if test -n "$ac_ct_DLLTOOL"; then
6891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6892 $as_echo "$ac_ct_DLLTOOL" >&6; }
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6895 $as_echo "no" >&6; }
6898 if test "x$ac_ct_DLLTOOL" = x
; then
6901 case $cross_compiling:$ac_tool_warned in
6903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6904 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6905 ac_tool_warned
=yes ;;
6907 DLLTOOL
=$ac_ct_DLLTOOL
6910 DLLTOOL
="$ac_cv_prog_DLLTOOL"
6913 test -z "$DLLTOOL" && DLLTOOL
=dlltool
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6925 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6926 if ${lt_cv_sharedlib_from_linklib_cmd+:} false
; then :
6927 $as_echo_n "(cached) " >&6
6929 lt_cv_sharedlib_from_linklib_cmd
='unknown'
6932 cygwin
* | mingw
* | pw32
* | cegcc
*)
6933 # two different shell functions defined in ltmain.sh
6934 # decide which to use based on capabilities of $DLLTOOL
6935 case `$DLLTOOL --help 2>&1` in
6936 *--identify-strict*)
6937 lt_cv_sharedlib_from_linklib_cmd
=func_cygming_dll_for_implib
6940 lt_cv_sharedlib_from_linklib_cmd
=func_cygming_dll_for_implib_fallback
6945 # fallback: assume linklib IS sharedlib
6946 lt_cv_sharedlib_from_linklib_cmd
="$ECHO"
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6952 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6953 sharedlib_from_linklib_cmd
=$lt_cv_sharedlib_from_linklib_cmd
6954 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd
=$ECHO
6962 if test -n "$ac_tool_prefix"; then
6965 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6966 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6968 $as_echo_n "checking for $ac_word... " >&6; }
6969 if ${ac_cv_prog_AR+:} false
; then :
6970 $as_echo_n "(cached) " >&6
6972 if test -n "$AR"; then
6973 ac_cv_prog_AR
="$AR" # Let the user override the test.
6975 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6979 test -z "$as_dir" && as_dir
=.
6980 for ac_exec_ext
in '' $ac_executable_extensions; do
6981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6982 ac_cv_prog_AR
="$ac_tool_prefix$ac_prog"
6983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6993 if test -n "$AR"; then
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6995 $as_echo "$AR" >&6; }
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6998 $as_echo "no" >&6; }
7002 test -n "$AR" && break
7005 if test -z "$AR"; then
7009 # Extract the first word of "$ac_prog", so it can be a program name with args.
7010 set dummy
$ac_prog; ac_word
=$2
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7012 $as_echo_n "checking for $ac_word... " >&6; }
7013 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
7014 $as_echo_n "(cached) " >&6
7016 if test -n "$ac_ct_AR"; then
7017 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
7019 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7023 test -z "$as_dir" && as_dir
=.
7024 for ac_exec_ext
in '' $ac_executable_extensions; do
7025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7026 ac_cv_prog_ac_ct_AR
="$ac_prog"
7027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7036 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
7037 if test -n "$ac_ct_AR"; then
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7039 $as_echo "$ac_ct_AR" >&6; }
7041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7042 $as_echo "no" >&6; }
7046 test -n "$ac_ct_AR" && break
7049 if test "x$ac_ct_AR" = x
; then
7052 case $cross_compiling:$ac_tool_warned in
7054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7055 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7056 ac_tool_warned
=yes ;;
7075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7076 $as_echo_n "checking for archiver @FILE support... " >&6; }
7077 if ${lt_cv_ar_at_file+:} false
; then :
7078 $as_echo_n "(cached) " >&6
7081 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7082 /* end confdefs.h. */
7092 if ac_fn_c_try_compile
"$LINENO"; then :
7093 echo conftest.
$ac_objext > conftest.lst
7094 lt_ar_try
='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7095 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7096 (eval $lt_ar_try) 2>&5
7098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7099 test $ac_status = 0; }
7100 if test "$ac_status" -eq 0; then
7101 # Ensure the archiver fails upon bogus file names.
7102 rm -f conftest.
$ac_objext libconftest.a
7103 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7104 (eval $lt_ar_try) 2>&5
7106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7107 test $ac_status = 0; }
7108 if test "$ac_status" -ne 0; then
7112 rm -f conftest.
* libconftest.a
7115 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7119 $as_echo "$lt_cv_ar_at_file" >&6; }
7121 if test "x$lt_cv_ar_at_file" = xno
; then
7124 archiver_list_spec
=$lt_cv_ar_at_file
7133 if test -n "$ac_tool_prefix"; then
7134 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7135 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7137 $as_echo_n "checking for $ac_word... " >&6; }
7138 if ${ac_cv_prog_STRIP+:} false
; then :
7139 $as_echo_n "(cached) " >&6
7141 if test -n "$STRIP"; then
7142 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
7144 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7148 test -z "$as_dir" && as_dir
=.
7149 for ac_exec_ext
in '' $ac_executable_extensions; do
7150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7151 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
7152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7161 STRIP
=$ac_cv_prog_STRIP
7162 if test -n "$STRIP"; then
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7164 $as_echo "$STRIP" >&6; }
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7167 $as_echo "no" >&6; }
7172 if test -z "$ac_cv_prog_STRIP"; then
7174 # Extract the first word of "strip", so it can be a program name with args.
7175 set dummy strip
; ac_word
=$2
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7177 $as_echo_n "checking for $ac_word... " >&6; }
7178 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
7179 $as_echo_n "(cached) " >&6
7181 if test -n "$ac_ct_STRIP"; then
7182 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
7184 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7188 test -z "$as_dir" && as_dir
=.
7189 for ac_exec_ext
in '' $ac_executable_extensions; do
7190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7191 ac_cv_prog_ac_ct_STRIP
="strip"
7192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7201 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
7202 if test -n "$ac_ct_STRIP"; then
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7204 $as_echo "$ac_ct_STRIP" >&6; }
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7207 $as_echo "no" >&6; }
7210 if test "x$ac_ct_STRIP" = x
; then
7213 case $cross_compiling:$ac_tool_warned in
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7216 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7217 ac_tool_warned
=yes ;;
7222 STRIP
="$ac_cv_prog_STRIP"
7225 test -z "$STRIP" && STRIP
=:
7232 if test -n "$ac_tool_prefix"; then
7233 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7234 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7236 $as_echo_n "checking for $ac_word... " >&6; }
7237 if ${ac_cv_prog_RANLIB+:} false
; then :
7238 $as_echo_n "(cached) " >&6
7240 if test -n "$RANLIB"; then
7241 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7243 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7247 test -z "$as_dir" && as_dir
=.
7248 for ac_exec_ext
in '' $ac_executable_extensions; do
7249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7250 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7260 RANLIB
=$ac_cv_prog_RANLIB
7261 if test -n "$RANLIB"; then
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7263 $as_echo "$RANLIB" >&6; }
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7266 $as_echo "no" >&6; }
7271 if test -z "$ac_cv_prog_RANLIB"; then
7272 ac_ct_RANLIB
=$RANLIB
7273 # Extract the first word of "ranlib", so it can be a program name with args.
7274 set dummy ranlib
; ac_word
=$2
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7276 $as_echo_n "checking for $ac_word... " >&6; }
7277 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
7278 $as_echo_n "(cached) " >&6
7280 if test -n "$ac_ct_RANLIB"; then
7281 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7283 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7287 test -z "$as_dir" && as_dir
=.
7288 for ac_exec_ext
in '' $ac_executable_extensions; do
7289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7290 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7300 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7301 if test -n "$ac_ct_RANLIB"; then
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7303 $as_echo "$ac_ct_RANLIB" >&6; }
7305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7306 $as_echo "no" >&6; }
7309 if test "x$ac_ct_RANLIB" = x
; then
7312 case $cross_compiling:$ac_tool_warned in
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7315 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7316 ac_tool_warned
=yes ;;
7318 RANLIB
=$ac_ct_RANLIB
7321 RANLIB
="$ac_cv_prog_RANLIB"
7324 test -z "$RANLIB" && RANLIB
=:
7331 # Determine commands to create old-style static archives.
7332 old_archive_cmds
='$AR $AR_FLAGS $oldlib$oldobjs'
7333 old_postinstall_cmds
='chmod 644 $oldlib'
7334 old_postuninstall_cmds
=
7336 if test -n "$RANLIB"; then
7339 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7342 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7345 old_archive_cmds
="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7350 lock_old_archive_extraction
=yes ;;
7352 lock_old_archive_extraction
=no
;;
7393 # If no C compiler was specified, use CC.
7396 # If no C compiler flags were specified, use CFLAGS.
7397 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
7399 # Allow CC to be a program name with arguments.
7403 # Check for command to grab the raw symbol name followed by C symbol from nm.
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7405 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7406 if ${lt_cv_sys_global_symbol_pipe+:} false
; then :
7407 $as_echo_n "(cached) " >&6
7410 # These are sane defaults that work on at least a few old systems.
7411 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7413 # Character class describing NM global symbol codes.
7414 symcode
='[BCDEGRST]'
7416 # Regexp to match symbols that can be accessed directly from C.
7417 sympat
='\([_A-Za-z][_A-Za-z0-9]*\)'
7419 # Define system-specific variables.
7424 cygwin
* | mingw
* | pw32
* | cegcc
*)
7425 symcode
='[ABCDGISTW]'
7428 if test "$host_cpu" = ia64
; then
7429 symcode
='[ABCDEGRST]'
7433 symcode
='[BCDEGRST]'
7436 symcode
='[BCDEGQRST]'
7447 sysv5
* | sco5v6
* | unixware
* | OpenUNIX
*)
7455 # If we're using GNU nm, then use its standard symbol codes.
7456 case `$NM -V 2>&1` in
7457 *GNU
* | *'with BFD'*)
7458 symcode
='[ABCDGIRSTW]' ;;
7461 # Transform an extracted symbol line into a proper C declaration.
7462 # Some systems (esp. on ia64) link data and code symbols differently,
7463 # so use this general approach.
7464 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7466 # Transform an extracted symbol line into symbol name and symbol address
7467 lt_cv_sys_global_symbol_to_c_name_address
="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7468 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'"
7470 # Handle CRLF in mingw tool chain
7474 opt_cr
=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7478 # Try without a prefix underscore, then with it.
7479 for ac_symprfx
in "" "_"; do
7481 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7482 symxfrm
="\\1 $ac_symprfx\\2 \\2"
7484 # Write the raw and C identifiers.
7485 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7486 # Fake it for dumpbin and say T for any non-static function
7487 # and D for any global variable.
7488 # Also find C++ and __fastcall symbols from MSVC++,
7489 # which start with @ or ?.
7490 lt_cv_sys_global_symbol_pipe
="$AWK '"\
7491 " {last_section=section; section=\$ 3};"\
7492 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7493 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7494 " \$ 0!~/External *\|/{next};"\
7495 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7496 " {if(hide[section]) next};"\
7497 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7498 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7499 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7500 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7501 " ' prfx=^$ac_symprfx"
7503 lt_cv_sys_global_symbol_pipe
="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7505 lt_cv_sys_global_symbol_pipe
="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7507 # Check to see that the pipe works correctly.
7511 cat > conftest.
$ac_ext <<_LT_EOF
7516 void nm_test_func(void);
7517 void nm_test_func(void){}
7521 int main(){nm_test_var='a';nm_test_func();return(0);}
7524 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7525 (eval $ac_compile) 2>&5
7527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7528 test $ac_status = 0; }; then
7529 # Now try to grab the symbols.
7531 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7532 (eval $NM conftest.
$ac_objext \
| "$lt_cv_sys_global_symbol_pipe" \
> $nlist) 2>&5
7534 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7535 test $ac_status = 0; } && test -s "$nlist"; then
7536 # Try sorting and uniquifying the output.
7537 if sort "$nlist" | uniq > "$nlist"T
; then
7538 mv -f "$nlist"T
"$nlist"
7543 # Make sure that we snagged all the symbols we need.
7544 if $GREP ' nm_test_var$' "$nlist" >/dev
/null
; then
7545 if $GREP ' nm_test_func$' "$nlist" >/dev
/null
; then
7546 cat <<_LT_EOF > conftest.$ac_ext
7547 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7548 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7549 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7550 relocations are performed -- see ld's documentation on pseudo-relocs. */
7551 # define LT_DLSYM_CONST
7552 #elif defined(__osf__)
7553 /* This system does not cope well with relocations in const data. */
7554 # define LT_DLSYM_CONST
7556 # define LT_DLSYM_CONST const
7564 # Now generate the symbol file.
7565 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7567 cat <<_LT_EOF >> conftest.$ac_ext
7569 /* The mapping between symbol names and symbols. */
7570 LT_DLSYM_CONST struct {
7574 lt__PROGRAM__LTX_preloaded_symbols[] =
7576 { "@PROGRAM@", (void *) 0 },
7578 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main
>> conftest.
$ac_ext
7579 cat <<\_LT_EOF
>> conftest.
$ac_ext
7583 /* This works around a problem
in FreeBSD linker
*/
7584 #ifdef FREEBSD_WORKAROUND
7585 static const void
*lt_preloaded_setup
() {
7586 return lt__PROGRAM__LTX_preloaded_symbols
;
7594 # Now try linking the two files.
7595 mv conftest.
$ac_objext conftstm.
$ac_objext
7596 lt_globsym_save_LIBS
=$LIBS
7597 lt_globsym_save_CFLAGS
=$CFLAGS
7598 LIBS
="conftstm.$ac_objext"
7599 CFLAGS
="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7600 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7601 (eval $ac_link) 2>&5
7603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7604 test $ac_status = 0; } && test -s conftest
${ac_exeext}; then
7607 LIBS
=$lt_globsym_save_LIBS
7608 CFLAGS
=$lt_globsym_save_CFLAGS
7610 echo "cannot find nm_test_func in $nlist" >&5
7613 echo "cannot find nm_test_var in $nlist" >&5
7616 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7619 echo "$progname: failed program was:" >&5
7620 cat conftest.
$ac_ext >&5
7622 rm -rf conftest
* conftst
*
7624 # Do not use the global_symbol_pipe unless it works.
7625 if test "$pipe_works" = yes; then
7628 lt_cv_sys_global_symbol_pipe
=
7634 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7635 lt_cv_sys_global_symbol_to_cdecl
=
7637 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7639 $as_echo "failed" >&6; }
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7642 $as_echo "ok" >&6; }
7645 # Response file support.
7646 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7647 nm_file_list_spec
='@'
7648 elif $NM --help 2>/dev
/null
| grep '[@]FILE' >/dev
/null
; then
7649 nm_file_list_spec
='@'
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7679 $as_echo_n "checking for sysroot... " >&6; }
7681 # Check whether --with-sysroot was given.
7682 if test "${with_sysroot+set}" = set; then :
7683 withval
=$with_sysroot;
7690 case ${with_sysroot} in #(
7692 if test "$GCC" = yes; then
7693 lt_sysroot
=`$CC --print-sysroot 2>/dev/null`
7697 lt_sysroot
=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7703 $as_echo "${with_sysroot}" >&6; }
7704 as_fn_error $?
"The sysroot must be an absolute path." "$LINENO" 5
7708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7709 $as_echo "${lt_sysroot:-no}" >&6; }
7715 # Check whether --enable-libtool-lock was given.
7716 if test "${enable_libtool_lock+set}" = set; then :
7717 enableval
=$enable_libtool_lock;
7720 test "x$enable_libtool_lock" != xno
&& enable_libtool_lock
=yes
7722 # Some flags need to be propagated to the compiler or linker for good
7726 # Find out which ABI we are using.
7727 echo 'int i;' > conftest.
$ac_ext
7728 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7729 (eval $ac_compile) 2>&5
7731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7732 test $ac_status = 0; }; then
7733 case `/usr/bin/file conftest.$ac_objext` in
7745 # Find out which ABI we are using.
7746 echo '#line '$LINENO' "configure"' > conftest.
$ac_ext
7747 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7748 (eval $ac_compile) 2>&5
7750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7751 test $ac_status = 0; }; then
7752 if test "$lt_cv_prog_gnu_ld" = yes; then
7753 case `/usr/bin/file conftest.$ac_objext` in
7755 LD
="${LD-ld} -melf32bsmip"
7758 LD
="${LD-ld} -melf32bmipn32"
7761 LD
="${LD-ld} -melf64bmip"
7765 case `/usr/bin/file conftest.$ac_objext` in
7781 x86_64
-*kfreebsd
*-gnu|x86_64
-*linux
*|ppc
*-*linux
*|powerpc
*-*linux
*| \
7782 s390
*-*linux
*|s390
*-*tpf
*|sparc
*-*linux
*)
7783 # Find out which ABI we are using.
7784 echo 'int i;' > conftest.
$ac_ext
7785 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7786 (eval $ac_compile) 2>&5
7788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7789 test $ac_status = 0; }; then
7790 case `/usr/bin/file conftest.o` in
7793 x86_64
-*kfreebsd
*-gnu)
7794 LD
="${LD-ld} -m elf_i386_fbsd"
7797 LD
="${LD-ld} -m elf_i386"
7799 ppc64
-*linux
*|powerpc64
-*linux
*)
7800 LD
="${LD-ld} -m elf32ppclinux"
7803 LD
="${LD-ld} -m elf_s390"
7806 LD
="${LD-ld} -m elf32_sparc"
7812 x86_64
-*kfreebsd
*-gnu)
7813 LD
="${LD-ld} -m elf_x86_64_fbsd"
7816 LD
="${LD-ld} -m elf_x86_64"
7818 ppc
*-*linux
*|powerpc
*-*linux
*)
7819 LD
="${LD-ld} -m elf64ppc"
7821 s390
*-*linux
*|s390
*-*tpf
*)
7822 LD
="${LD-ld} -m elf64_s390"
7825 LD
="${LD-ld} -m elf64_sparc"
7835 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7836 SAVE_CFLAGS
="$CFLAGS"
7837 CFLAGS
="$CFLAGS -belf"
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7839 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7840 if ${lt_cv_cc_needs_belf+:} false
; then :
7841 $as_echo_n "(cached) " >&6
7844 ac_cpp
='$CPP $CPPFLAGS'
7845 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7846 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7847 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7849 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7850 /* end confdefs.h. */
7860 if ac_fn_c_try_link
"$LINENO"; then :
7861 lt_cv_cc_needs_belf
=yes
7863 lt_cv_cc_needs_belf
=no
7865 rm -f core conftest.err conftest.
$ac_objext \
7866 conftest
$ac_exeext conftest.
$ac_ext
7868 ac_cpp
='$CPP $CPPFLAGS'
7869 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7870 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7871 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7875 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7876 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
7877 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7878 CFLAGS
="$SAVE_CFLAGS"
7882 # Find out which ABI we are using.
7883 echo 'int i;' > conftest.
$ac_ext
7884 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7885 (eval $ac_compile) 2>&5
7887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7888 test $ac_status = 0; }; then
7889 case `/usr/bin/file conftest.o` in
7891 case $lt_cv_prog_gnu_ld in
7895 LD
="${LD-ld} -m elf_x86_64"
7898 LD
="${LD-ld} -m elf64_sparc"
7901 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7902 if ${LD-ld} -V | grep _sol2
>/dev
/null
2>&1; then
7907 if ${LD-ld} -64 -r -o conftest2.o conftest.o
>/dev
/null
2>&1; then
7919 need_locks
="$enable_libtool_lock"
7921 if test -n "$ac_tool_prefix"; then
7922 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7923 set dummy
${ac_tool_prefix}mt
; ac_word
=$2
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7925 $as_echo_n "checking for $ac_word... " >&6; }
7926 if ${ac_cv_prog_MANIFEST_TOOL+:} false
; then :
7927 $as_echo_n "(cached) " >&6
7929 if test -n "$MANIFEST_TOOL"; then
7930 ac_cv_prog_MANIFEST_TOOL
="$MANIFEST_TOOL" # Let the user override the test.
7932 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7936 test -z "$as_dir" && as_dir
=.
7937 for ac_exec_ext
in '' $ac_executable_extensions; do
7938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7939 ac_cv_prog_MANIFEST_TOOL
="${ac_tool_prefix}mt"
7940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7949 MANIFEST_TOOL
=$ac_cv_prog_MANIFEST_TOOL
7950 if test -n "$MANIFEST_TOOL"; then
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7952 $as_echo "$MANIFEST_TOOL" >&6; }
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7955 $as_echo "no" >&6; }
7960 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7961 ac_ct_MANIFEST_TOOL
=$MANIFEST_TOOL
7962 # Extract the first word of "mt", so it can be a program name with args.
7963 set dummy mt
; ac_word
=$2
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7965 $as_echo_n "checking for $ac_word... " >&6; }
7966 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false
; then :
7967 $as_echo_n "(cached) " >&6
7969 if test -n "$ac_ct_MANIFEST_TOOL"; then
7970 ac_cv_prog_ac_ct_MANIFEST_TOOL
="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7972 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7976 test -z "$as_dir" && as_dir
=.
7977 for ac_exec_ext
in '' $ac_executable_extensions; do
7978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7979 ac_cv_prog_ac_ct_MANIFEST_TOOL
="mt"
7980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7989 ac_ct_MANIFEST_TOOL
=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7990 if test -n "$ac_ct_MANIFEST_TOOL"; then
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7992 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7995 $as_echo "no" >&6; }
7998 if test "x$ac_ct_MANIFEST_TOOL" = x
; then
8001 case $cross_compiling:$ac_tool_warned in
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8004 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8005 ac_tool_warned
=yes ;;
8007 MANIFEST_TOOL
=$ac_ct_MANIFEST_TOOL
8010 MANIFEST_TOOL
="$ac_cv_prog_MANIFEST_TOOL"
8013 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL
=mt
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8015 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8016 if ${lt_cv_path_mainfest_tool+:} false
; then :
8017 $as_echo_n "(cached) " >&6
8019 lt_cv_path_mainfest_tool
=no
8020 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8021 $MANIFEST_TOOL '-?' 2>conftest.err
> conftest.out
8022 cat conftest.err
>&5
8023 if $GREP 'Manifest Tool' conftest.out
> /dev
/null
; then
8024 lt_cv_path_mainfest_tool
=yes
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8029 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8030 if test "x$lt_cv_path_mainfest_tool" != xyes
; then
8040 rhapsody
* | darwin
*)
8041 if test -n "$ac_tool_prefix"; then
8042 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8043 set dummy
${ac_tool_prefix}dsymutil
; ac_word
=$2
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8045 $as_echo_n "checking for $ac_word... " >&6; }
8046 if ${ac_cv_prog_DSYMUTIL+:} false
; then :
8047 $as_echo_n "(cached) " >&6
8049 if test -n "$DSYMUTIL"; then
8050 ac_cv_prog_DSYMUTIL
="$DSYMUTIL" # Let the user override the test.
8052 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8056 test -z "$as_dir" && as_dir
=.
8057 for ac_exec_ext
in '' $ac_executable_extensions; do
8058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8059 ac_cv_prog_DSYMUTIL
="${ac_tool_prefix}dsymutil"
8060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8069 DSYMUTIL
=$ac_cv_prog_DSYMUTIL
8070 if test -n "$DSYMUTIL"; then
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8072 $as_echo "$DSYMUTIL" >&6; }
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8075 $as_echo "no" >&6; }
8080 if test -z "$ac_cv_prog_DSYMUTIL"; then
8081 ac_ct_DSYMUTIL
=$DSYMUTIL
8082 # Extract the first word of "dsymutil", so it can be a program name with args.
8083 set dummy dsymutil
; ac_word
=$2
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8085 $as_echo_n "checking for $ac_word... " >&6; }
8086 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false
; then :
8087 $as_echo_n "(cached) " >&6
8089 if test -n "$ac_ct_DSYMUTIL"; then
8090 ac_cv_prog_ac_ct_DSYMUTIL
="$ac_ct_DSYMUTIL" # Let the user override the test.
8092 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8096 test -z "$as_dir" && as_dir
=.
8097 for ac_exec_ext
in '' $ac_executable_extensions; do
8098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8099 ac_cv_prog_ac_ct_DSYMUTIL
="dsymutil"
8100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8109 ac_ct_DSYMUTIL
=$ac_cv_prog_ac_ct_DSYMUTIL
8110 if test -n "$ac_ct_DSYMUTIL"; then
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8112 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8115 $as_echo "no" >&6; }
8118 if test "x$ac_ct_DSYMUTIL" = x
; then
8121 case $cross_compiling:$ac_tool_warned in
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8124 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8125 ac_tool_warned
=yes ;;
8127 DSYMUTIL
=$ac_ct_DSYMUTIL
8130 DSYMUTIL
="$ac_cv_prog_DSYMUTIL"
8133 if test -n "$ac_tool_prefix"; then
8134 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8135 set dummy
${ac_tool_prefix}nmedit
; ac_word
=$2
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8137 $as_echo_n "checking for $ac_word... " >&6; }
8138 if ${ac_cv_prog_NMEDIT+:} false
; then :
8139 $as_echo_n "(cached) " >&6
8141 if test -n "$NMEDIT"; then
8142 ac_cv_prog_NMEDIT
="$NMEDIT" # Let the user override the test.
8144 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8148 test -z "$as_dir" && as_dir
=.
8149 for ac_exec_ext
in '' $ac_executable_extensions; do
8150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8151 ac_cv_prog_NMEDIT
="${ac_tool_prefix}nmedit"
8152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8161 NMEDIT
=$ac_cv_prog_NMEDIT
8162 if test -n "$NMEDIT"; then
8163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8164 $as_echo "$NMEDIT" >&6; }
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8167 $as_echo "no" >&6; }
8172 if test -z "$ac_cv_prog_NMEDIT"; then
8173 ac_ct_NMEDIT
=$NMEDIT
8174 # Extract the first word of "nmedit", so it can be a program name with args.
8175 set dummy nmedit
; ac_word
=$2
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8177 $as_echo_n "checking for $ac_word... " >&6; }
8178 if ${ac_cv_prog_ac_ct_NMEDIT+:} false
; then :
8179 $as_echo_n "(cached) " >&6
8181 if test -n "$ac_ct_NMEDIT"; then
8182 ac_cv_prog_ac_ct_NMEDIT
="$ac_ct_NMEDIT" # Let the user override the test.
8184 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8188 test -z "$as_dir" && as_dir
=.
8189 for ac_exec_ext
in '' $ac_executable_extensions; do
8190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8191 ac_cv_prog_ac_ct_NMEDIT
="nmedit"
8192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8201 ac_ct_NMEDIT
=$ac_cv_prog_ac_ct_NMEDIT
8202 if test -n "$ac_ct_NMEDIT"; then
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8204 $as_echo "$ac_ct_NMEDIT" >&6; }
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8207 $as_echo "no" >&6; }
8210 if test "x$ac_ct_NMEDIT" = x
; then
8213 case $cross_compiling:$ac_tool_warned in
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8216 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8217 ac_tool_warned
=yes ;;
8219 NMEDIT
=$ac_ct_NMEDIT
8222 NMEDIT
="$ac_cv_prog_NMEDIT"
8225 if test -n "$ac_tool_prefix"; then
8226 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8227 set dummy
${ac_tool_prefix}lipo
; ac_word
=$2
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8229 $as_echo_n "checking for $ac_word... " >&6; }
8230 if ${ac_cv_prog_LIPO+:} false
; then :
8231 $as_echo_n "(cached) " >&6
8233 if test -n "$LIPO"; then
8234 ac_cv_prog_LIPO
="$LIPO" # Let the user override the test.
8236 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8240 test -z "$as_dir" && as_dir
=.
8241 for ac_exec_ext
in '' $ac_executable_extensions; do
8242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8243 ac_cv_prog_LIPO
="${ac_tool_prefix}lipo"
8244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8253 LIPO
=$ac_cv_prog_LIPO
8254 if test -n "$LIPO"; then
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8256 $as_echo "$LIPO" >&6; }
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8259 $as_echo "no" >&6; }
8264 if test -z "$ac_cv_prog_LIPO"; then
8266 # Extract the first word of "lipo", so it can be a program name with args.
8267 set dummy lipo
; ac_word
=$2
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8269 $as_echo_n "checking for $ac_word... " >&6; }
8270 if ${ac_cv_prog_ac_ct_LIPO+:} false
; then :
8271 $as_echo_n "(cached) " >&6
8273 if test -n "$ac_ct_LIPO"; then
8274 ac_cv_prog_ac_ct_LIPO
="$ac_ct_LIPO" # Let the user override the test.
8276 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8280 test -z "$as_dir" && as_dir
=.
8281 for ac_exec_ext
in '' $ac_executable_extensions; do
8282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8283 ac_cv_prog_ac_ct_LIPO
="lipo"
8284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8293 ac_ct_LIPO
=$ac_cv_prog_ac_ct_LIPO
8294 if test -n "$ac_ct_LIPO"; then
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8296 $as_echo "$ac_ct_LIPO" >&6; }
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8299 $as_echo "no" >&6; }
8302 if test "x$ac_ct_LIPO" = x
; then
8305 case $cross_compiling:$ac_tool_warned in
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8308 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8309 ac_tool_warned
=yes ;;
8314 LIPO
="$ac_cv_prog_LIPO"
8317 if test -n "$ac_tool_prefix"; then
8318 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8319 set dummy
${ac_tool_prefix}otool
; ac_word
=$2
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8321 $as_echo_n "checking for $ac_word... " >&6; }
8322 if ${ac_cv_prog_OTOOL+:} false
; then :
8323 $as_echo_n "(cached) " >&6
8325 if test -n "$OTOOL"; then
8326 ac_cv_prog_OTOOL
="$OTOOL" # Let the user override the test.
8328 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8332 test -z "$as_dir" && as_dir
=.
8333 for ac_exec_ext
in '' $ac_executable_extensions; do
8334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8335 ac_cv_prog_OTOOL
="${ac_tool_prefix}otool"
8336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8345 OTOOL
=$ac_cv_prog_OTOOL
8346 if test -n "$OTOOL"; then
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8348 $as_echo "$OTOOL" >&6; }
8350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8351 $as_echo "no" >&6; }
8356 if test -z "$ac_cv_prog_OTOOL"; then
8358 # Extract the first word of "otool", so it can be a program name with args.
8359 set dummy otool
; ac_word
=$2
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8361 $as_echo_n "checking for $ac_word... " >&6; }
8362 if ${ac_cv_prog_ac_ct_OTOOL+:} false
; then :
8363 $as_echo_n "(cached) " >&6
8365 if test -n "$ac_ct_OTOOL"; then
8366 ac_cv_prog_ac_ct_OTOOL
="$ac_ct_OTOOL" # Let the user override the test.
8368 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8372 test -z "$as_dir" && as_dir
=.
8373 for ac_exec_ext
in '' $ac_executable_extensions; do
8374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8375 ac_cv_prog_ac_ct_OTOOL
="otool"
8376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8385 ac_ct_OTOOL
=$ac_cv_prog_ac_ct_OTOOL
8386 if test -n "$ac_ct_OTOOL"; then
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8388 $as_echo "$ac_ct_OTOOL" >&6; }
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8391 $as_echo "no" >&6; }
8394 if test "x$ac_ct_OTOOL" = x
; then
8397 case $cross_compiling:$ac_tool_warned in
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8400 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8401 ac_tool_warned
=yes ;;
8406 OTOOL
="$ac_cv_prog_OTOOL"
8409 if test -n "$ac_tool_prefix"; then
8410 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8411 set dummy
${ac_tool_prefix}otool64
; ac_word
=$2
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8413 $as_echo_n "checking for $ac_word... " >&6; }
8414 if ${ac_cv_prog_OTOOL64+:} false
; then :
8415 $as_echo_n "(cached) " >&6
8417 if test -n "$OTOOL64"; then
8418 ac_cv_prog_OTOOL64
="$OTOOL64" # Let the user override the test.
8420 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8424 test -z "$as_dir" && as_dir
=.
8425 for ac_exec_ext
in '' $ac_executable_extensions; do
8426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8427 ac_cv_prog_OTOOL64
="${ac_tool_prefix}otool64"
8428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8437 OTOOL64
=$ac_cv_prog_OTOOL64
8438 if test -n "$OTOOL64"; then
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8440 $as_echo "$OTOOL64" >&6; }
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8443 $as_echo "no" >&6; }
8448 if test -z "$ac_cv_prog_OTOOL64"; then
8449 ac_ct_OTOOL64
=$OTOOL64
8450 # Extract the first word of "otool64", so it can be a program name with args.
8451 set dummy otool64
; ac_word
=$2
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8453 $as_echo_n "checking for $ac_word... " >&6; }
8454 if ${ac_cv_prog_ac_ct_OTOOL64+:} false
; then :
8455 $as_echo_n "(cached) " >&6
8457 if test -n "$ac_ct_OTOOL64"; then
8458 ac_cv_prog_ac_ct_OTOOL64
="$ac_ct_OTOOL64" # Let the user override the test.
8460 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8464 test -z "$as_dir" && as_dir
=.
8465 for ac_exec_ext
in '' $ac_executable_extensions; do
8466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8467 ac_cv_prog_ac_ct_OTOOL64
="otool64"
8468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8477 ac_ct_OTOOL64
=$ac_cv_prog_ac_ct_OTOOL64
8478 if test -n "$ac_ct_OTOOL64"; then
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8480 $as_echo "$ac_ct_OTOOL64" >&6; }
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8483 $as_echo "no" >&6; }
8486 if test "x$ac_ct_OTOOL64" = x
; then
8489 case $cross_compiling:$ac_tool_warned in
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8492 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8493 ac_tool_warned
=yes ;;
8495 OTOOL64
=$ac_ct_OTOOL64
8498 OTOOL64
="$ac_cv_prog_OTOOL64"
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8528 $as_echo_n "checking for -single_module linker flag... " >&6; }
8529 if ${lt_cv_apple_cc_single_mod+:} false
; then :
8530 $as_echo_n "(cached) " >&6
8532 lt_cv_apple_cc_single_mod
=no
8533 if test -z "${LT_MULTI_MODULE}"; then
8534 # By default we will add the -single_module flag. You can override
8535 # by either setting the environment variable LT_MULTI_MODULE
8536 # non-empty at configure time, or by adding -multi_module to the
8538 rm -rf libconftest.dylib
*
8539 echo "int foo(void){return 1;}" > conftest.c
8540 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8541 -dynamiclib -Wl,-single_module conftest.c" >&5
8542 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8543 -dynamiclib -Wl,-single_module conftest.c
2>conftest.err
8545 # If there is a non-empty error log, and "single_module"
8546 # appears in it, assume the flag caused a linker warning
8547 if test -s conftest.err
&& $GREP single_module conftest.err
; then
8548 cat conftest.err
>&5
8549 # Otherwise, if the output was created with a 0 exit code from
8550 # the compiler, it worked.
8551 elif test -f libconftest.dylib
&& test $_lt_result -eq 0; then
8552 lt_cv_apple_cc_single_mod
=yes
8554 cat conftest.err
>&5
8556 rm -rf libconftest.dylib
*
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8561 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8564 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8565 if ${lt_cv_ld_exported_symbols_list+:} false
; then :
8566 $as_echo_n "(cached) " >&6
8568 lt_cv_ld_exported_symbols_list
=no
8569 save_LDFLAGS
=$LDFLAGS
8570 echo "_main" > conftest.sym
8571 LDFLAGS
="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8572 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8573 /* end confdefs.h. */
8583 if ac_fn_c_try_link
"$LINENO"; then :
8584 lt_cv_ld_exported_symbols_list
=yes
8586 lt_cv_ld_exported_symbols_list
=no
8588 rm -f core conftest.err conftest.
$ac_objext \
8589 conftest
$ac_exeext conftest.
$ac_ext
8590 LDFLAGS
="$save_LDFLAGS"
8593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8594 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8597 $as_echo_n "checking for -force_load linker flag... " >&6; }
8598 if ${lt_cv_ld_force_load+:} false
; then :
8599 $as_echo_n "(cached) " >&6
8601 lt_cv_ld_force_load
=no
8602 cat > conftest.c
<< _LT_EOF
8603 int forced_loaded() { return 2;}
8605 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8606 $LTCC $LTCFLAGS -c -o conftest.o conftest.c
2>&5
8607 echo "$AR cru libconftest.a conftest.o" >&5
8608 $AR cru libconftest.a conftest.o
2>&5
8609 echo "$RANLIB libconftest.a" >&5
8610 $RANLIB libconftest.a
2>&5
8611 cat > conftest.c
<< _LT_EOF
8612 int main() { return 0;}
8614 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8615 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
2>conftest.err
8617 if test -s conftest.err
&& $GREP force_load conftest.err
; then
8618 cat conftest.err
>&5
8619 elif test -f conftest
&& test $_lt_result -eq 0 && $GREP forced_load conftest
>/dev
/null
2>&1 ; then
8620 lt_cv_ld_force_load
=yes
8622 cat conftest.err
>&5
8624 rm -f conftest.err libconftest.a conftest conftest.c
8625 rm -rf conftest.dSYM
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8629 $as_echo "$lt_cv_ld_force_load" >&6; }
8631 rhapsody
* | darwin1.
[012])
8632 _lt_dar_allow_undefined
='${wl}-undefined ${wl}suppress' ;;
8634 _lt_dar_allow_undefined
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8635 darwin
*) # darwin 5.x on
8636 # if running on 10.5 or later, the deployment target defaults
8637 # to the OS version, if on x86, and 10.4, the deployment
8638 # target defaults to 10.4. Don't you love it?
8639 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8640 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8641 _lt_dar_allow_undefined
='${wl}-undefined ${wl}dynamic_lookup' ;;
8643 _lt_dar_allow_undefined
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8645 _lt_dar_allow_undefined
='${wl}-undefined ${wl}dynamic_lookup' ;;
8649 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8650 _lt_dar_single_mod
='$single_module'
8652 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8653 _lt_dar_export_syms
=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8655 _lt_dar_export_syms
='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8657 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8658 _lt_dsymutil
='~$DSYMUTIL $lib || :'
8665 for ac_header
in dlfcn.h
8667 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8669 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
8670 cat >>confdefs.h
<<_ACEOF
8671 #define HAVE_DLFCN_H 1
8695 # Check whether --with-pic was given.
8696 if test "${with_pic+set}" = set; then :
8697 withval
=$with_pic; lt_p
=${PACKAGE-default}
8699 yes|no
) pic_mode
=$withval ;;
8702 # Look at the argument we got. We use all the common list separators.
8703 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
8704 for lt_pkg
in $withval; do
8706 if test "X$lt_pkg" = "X$lt_p"; then
8718 test -z "$pic_mode" && pic_mode
=default
8726 # Check whether --enable-fast-install was given.
8727 if test "${enable_fast_install+set}" = set; then :
8728 enableval
=$enable_fast_install; p
=${PACKAGE-default}
8730 yes) enable_fast_install
=yes ;;
8731 no
) enable_fast_install
=no
;;
8733 enable_fast_install
=no
8734 # Look at the argument we got. We use all the common list separators.
8735 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
8736 for pkg
in $enableval; do
8738 if test "X$pkg" = "X$p"; then
8739 enable_fast_install
=yes
8746 enable_fast_install
=yes
8759 # This can be used to rebuild libtool when needed
8760 LIBTOOL_DEPS
="$ltmain"
8762 # Always use our own libtool.
8763 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
8794 test -z "$LN_S" && LN_S
="ln -s"
8809 if test -n "${ZSH_VERSION+set}" ; then
8810 setopt NO_GLOB_SUBST
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8814 $as_echo_n "checking for objdir... " >&6; }
8815 if ${lt_cv_objdir+:} false
; then :
8816 $as_echo_n "(cached) " >&6
8818 rm -f .libs
2>/dev
/null
8819 mkdir .libs
2>/dev
/null
8820 if test -d .libs
; then
8823 # MS-DOS does not allow filenames that begin with a dot.
8826 rmdir .libs
2>/dev
/null
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8829 $as_echo "$lt_cv_objdir" >&6; }
8830 objdir
=$lt_cv_objdir
8836 cat >>confdefs.h
<<_ACEOF
8837 #define LT_OBJDIR "$lt_cv_objdir/"
8845 # AIX sometimes has problems with the GCC collect2 program. For some
8846 # reason, if we set the COLLECT_NAMES environment variable, the problems
8847 # vanish in a puff of smoke.
8848 if test "X${COLLECT_NAMES+set}" != Xset
; then
8850 export COLLECT_NAMES
8857 can_build_shared
=yes
8859 # All known linkers require a `.a' archive for static linking (except MSVC,
8860 # which needs '.lib').
8863 with_gnu_ld
="$lt_cv_prog_gnu_ld"
8866 old_CFLAGS
="$CFLAGS"
8868 # Set sane defaults for various variables
8869 test -z "$CC" && CC
=cc
8870 test -z "$LTCC" && LTCC
=$CC
8871 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
8872 test -z "$LD" && LD
=ld
8873 test -z "$ac_objext" && ac_objext
=o
8875 for cc_temp
in $compiler""; do
8877 compile
| *[\\/]compile
| ccache
| *[\\/]ccache
) ;;
8878 distcc
| *[\\/]distcc
| purify
| *[\\/]purify
) ;;
8883 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8886 # Only perform the check for file, if the check method requires it
8887 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
8888 case $deplibs_check_method in
8890 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8892 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8893 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
8894 $as_echo_n "(cached) " >&6
8898 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
8901 lt_save_MAGIC_CMD
="$MAGIC_CMD"
8902 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
8903 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
8904 for ac_dir
in $ac_dummy; do
8906 test -z "$ac_dir" && ac_dir
=.
8907 if test -f $ac_dir/${ac_tool_prefix}file; then
8908 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
8909 if test -n "$file_magic_test_file"; then
8910 case $deplibs_check_method in
8912 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8913 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8914 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null
|
8915 $EGREP "$file_magic_regex" > /dev
/null
; then
8920 *** Warning: the command libtool uses to detect shared libraries,
8921 *** $file_magic_cmd, produces output that libtool cannot recognize.
8922 *** The result is that libtool may fail to recognize shared libraries
8923 *** as such. This will affect the creation of libtool libraries that
8924 *** depend on shared libraries, but programs linked with such libtool
8925 *** libraries will work regardless of this problem. Nevertheless, you
8926 *** may want to report the problem to your system manager and/or to
8927 *** bug-libtool@gnu.org
8937 MAGIC_CMD
="$lt_save_MAGIC_CMD"
8942 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8943 if test -n "$MAGIC_CMD"; then
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8945 $as_echo "$MAGIC_CMD" >&6; }
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8948 $as_echo "no" >&6; }
8955 if test -z "$lt_cv_path_MAGIC_CMD"; then
8956 if test -n "$ac_tool_prefix"; then
8957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8958 $as_echo_n "checking for file... " >&6; }
8959 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
8960 $as_echo_n "(cached) " >&6
8964 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
8967 lt_save_MAGIC_CMD
="$MAGIC_CMD"
8968 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
8969 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
8970 for ac_dir
in $ac_dummy; do
8972 test -z "$ac_dir" && ac_dir
=.
8973 if test -f $ac_dir/file; then
8974 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
8975 if test -n "$file_magic_test_file"; then
8976 case $deplibs_check_method in
8978 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8979 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8980 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null
|
8981 $EGREP "$file_magic_regex" > /dev
/null
; then
8986 *** Warning: the command libtool uses to detect shared libraries,
8987 *** $file_magic_cmd, produces output that libtool cannot recognize.
8988 *** The result is that libtool may fail to recognize shared libraries
8989 *** as such. This will affect the creation of libtool libraries that
8990 *** depend on shared libraries, but programs linked with such libtool
8991 *** libraries will work regardless of this problem. Nevertheless, you
8992 *** may want to report the problem to your system manager and/or to
8993 *** bug-libtool@gnu.org
9003 MAGIC_CMD
="$lt_save_MAGIC_CMD"
9008 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
9009 if test -n "$MAGIC_CMD"; then
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9011 $as_echo "$MAGIC_CMD" >&6; }
9013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9014 $as_echo "no" >&6; }
9027 # Use C for the default configuration in the libtool script
9031 ac_cpp
='$CPP $CPPFLAGS'
9032 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9033 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9034 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
9037 # Source file extension for C test sources.
9040 # Object file extension for compiled C test sources.
9044 # Code to be used in simple compile tests
9045 lt_simple_compile_test_code
="int some_variable = 0;"
9047 # Code to be used in simple link tests
9048 lt_simple_link_test_code
='int main(){return(0);}'
9056 # If no C compiler was specified, use CC.
9059 # If no C compiler flags were specified, use CFLAGS.
9060 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
9062 # Allow CC to be a program name with arguments.
9065 # Save the default compiler, since it gets overwritten when the other
9066 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9067 compiler_DEFAULT
=$CC
9069 # save warnings/boilerplate of simple test code
9070 ac_outfile
=conftest.
$ac_objext
9071 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
9072 eval "$ac_compile" 2>&1 >/dev
/null
| $SED '/^$/d; /^ *+/d' >conftest.err
9073 _lt_compiler_boilerplate
=`cat conftest.err`
9076 ac_outfile
=conftest.
$ac_objext
9077 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
9078 eval "$ac_link" 2>&1 >/dev
/null
| $SED '/^$/d; /^ *+/d' >conftest.err
9079 _lt_linker_boilerplate
=`cat conftest.err`
9083 if test -n "$compiler"; then
9085 lt_prog_compiler_no_builtin_flag
=
9087 if test "$GCC" = yes; then
9088 case $cc_basename in
9090 lt_prog_compiler_no_builtin_flag
=' -Xcompiler -fno-builtin' ;;
9092 lt_prog_compiler_no_builtin_flag
=' -fno-builtin' ;;
9095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9096 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9097 if ${lt_cv_prog_compiler_rtti_exceptions+:} false
; then :
9098 $as_echo_n "(cached) " >&6
9100 lt_cv_prog_compiler_rtti_exceptions
=no
9101 ac_outfile
=conftest.
$ac_objext
9102 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9103 lt_compiler_flag
="-fno-rtti -fno-exceptions"
9104 # Insert the option either (1) after the last *FLAGS variable, or
9105 # (2) before a word containing "conftest.", or (3) at the end.
9106 # Note that $ac_compile itself does not contain backslashes and begins
9107 # with a dollar sign (not a hyphen), so the echo should work correctly.
9108 # The option is referenced via a variable to avoid confusing sed.
9109 lt_compile
=`echo "$ac_compile" | $SED \
9110 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9111 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9112 -e 's:$: $lt_compiler_flag:'`
9113 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9114 (eval "$lt_compile" 2>conftest.err
)
9116 cat conftest.err
>&5
9117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9118 if (exit $ac_status) && test -s "$ac_outfile"; then
9119 # The compiler can only warn and ignore the option if not recognized
9120 # So say no if there are warnings other than the usual output.
9121 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9122 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
9123 if test ! -s conftest.er2
|| diff conftest.exp conftest.er2
>/dev
/null
; then
9124 lt_cv_prog_compiler_rtti_exceptions
=yes
9130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9131 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9133 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
9134 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9146 lt_prog_compiler_wl
=
9147 lt_prog_compiler_pic
=
9148 lt_prog_compiler_static
=
9151 if test "$GCC" = yes; then
9152 lt_prog_compiler_wl
='-Wl,'
9153 lt_prog_compiler_static
='-static'
9157 # All AIX code is PIC.
9158 if test "$host_cpu" = ia64
; then
9159 # AIX 5 now supports IA64 processor
9160 lt_prog_compiler_static
='-Bstatic'
9167 # see comment about AmigaOS4 .so support
9168 lt_prog_compiler_pic
='-fPIC'
9171 # FIXME: we need at least 68020 code to build shared libraries, but
9172 # adding the `-m68020' flag to GCC prevents building anything better,
9174 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
9179 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
9180 # PIC is the default for these OSes.
9183 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
9184 # This hack is so that the source file can tell whether it is being
9185 # built for inclusion in a dll (and should export symbols for example).
9186 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9187 # (--disable-auto-import) libraries
9188 lt_prog_compiler_pic
='-DDLL_EXPORT'
9191 darwin
* | rhapsody
*)
9192 # PIC is the default on this platform
9193 # Common symbols not allowed in MH_DYLIB files
9194 lt_prog_compiler_pic
='-fno-common'
9198 # PIC is the default for Haiku.
9199 # The "-static" flag exists, but is broken.
9200 lt_prog_compiler_static
=
9204 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9205 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9206 # sets the default TLS model and affects inlining.
9212 lt_prog_compiler_pic
='-fPIC'
9218 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9219 # Instead, we relocate shared libraries at runtime.
9223 # Just because we use GCC doesn't mean we suddenly get shared libraries
9224 # on systems that don't support them.
9225 lt_prog_compiler_can_build_shared
=no
9230 # QNX uses GNU C++, but need to define -shared option too, otherwise
9232 lt_prog_compiler_pic
='-fPIC -shared'
9236 if test -d /usr
/nec
; then
9237 lt_prog_compiler_pic
=-Kconform_pic
9242 lt_prog_compiler_pic
='-fPIC'
9246 case $cc_basename in
9247 nvcc
*) # Cuda Compiler Driver 2.2
9248 lt_prog_compiler_wl
='-Xlinker '
9249 if test -n "$lt_prog_compiler_pic"; then
9250 lt_prog_compiler_pic
="-Xcompiler $lt_prog_compiler_pic"
9255 # PORTME Check for flag to pass linker flags through the system compiler.
9258 lt_prog_compiler_wl
='-Wl,'
9259 if test "$host_cpu" = ia64
; then
9260 # AIX 5 now supports IA64 processor
9261 lt_prog_compiler_static
='-Bstatic'
9263 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
9267 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
9268 # This hack is so that the source file can tell whether it is being
9269 # built for inclusion in a dll (and should export symbols for example).
9270 lt_prog_compiler_pic
='-DDLL_EXPORT'
9273 hpux9
* | hpux10
* | hpux11
*)
9274 lt_prog_compiler_wl
='-Wl,'
9275 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9282 lt_prog_compiler_pic
='+Z'
9285 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9286 lt_prog_compiler_static
='${wl}-a ${wl}archive'
9289 irix5
* | irix6
* | nonstopux
*)
9290 lt_prog_compiler_wl
='-Wl,'
9291 # PIC (with -KPIC) is the default.
9292 lt_prog_compiler_static
='-non_shared'
9295 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
9296 case $cc_basename in
9297 # old Intel for x86_64 which still supported -KPIC.
9299 lt_prog_compiler_wl
='-Wl,'
9300 lt_prog_compiler_pic
='-KPIC'
9301 lt_prog_compiler_static
='-static'
9303 # icc used to be incompatible with GCC.
9304 # ICC 10 doesn't accept -KPIC any more.
9306 lt_prog_compiler_wl
='-Wl,'
9307 lt_prog_compiler_pic
='-fPIC'
9308 lt_prog_compiler_static
='-static'
9310 # Lahey Fortran 8.1.
9312 lt_prog_compiler_wl
='-Wl,'
9313 lt_prog_compiler_pic
='--shared'
9314 lt_prog_compiler_static
='--static'
9317 # NAG Fortran compiler
9318 lt_prog_compiler_wl
='-Wl,-Wl,,'
9319 lt_prog_compiler_pic
='-PIC'
9320 lt_prog_compiler_static
='-Bstatic'
9322 pgcc
* | pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
9323 # Portland Group compilers (*not* the Pentium gcc compiler,
9324 # which looks to be a dead project)
9325 lt_prog_compiler_wl
='-Wl,'
9326 lt_prog_compiler_pic
='-fpic'
9327 lt_prog_compiler_static
='-Bstatic'
9330 lt_prog_compiler_wl
='-Wl,'
9331 # All Alpha code is PIC.
9332 lt_prog_compiler_static
='-non_shared'
9334 xl
* | bgxl
* | bgf
* | mpixl
*)
9335 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9336 lt_prog_compiler_wl
='-Wl,'
9337 lt_prog_compiler_pic
='-qpic'
9338 lt_prog_compiler_static
='-qstaticlink'
9341 case `$CC -V 2>&1 | sed 5q` in
9342 *Sun\ Ceres\ Fortran
* | *Sun
*Fortran
*\
[1-7].
* | *Sun
*Fortran
*\
8.
[0-3]*)
9343 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9344 lt_prog_compiler_pic
='-KPIC'
9345 lt_prog_compiler_static
='-Bstatic'
9346 lt_prog_compiler_wl
=''
9348 *Sun\ F
* | *Sun
*Fortran
*)
9349 lt_prog_compiler_pic
='-KPIC'
9350 lt_prog_compiler_static
='-Bstatic'
9351 lt_prog_compiler_wl
='-Qoption ld '
9355 lt_prog_compiler_pic
='-KPIC'
9356 lt_prog_compiler_static
='-Bstatic'
9357 lt_prog_compiler_wl
='-Wl,'
9359 *Intel
*\
[CF
]*Compiler
*)
9360 lt_prog_compiler_wl
='-Wl,'
9361 lt_prog_compiler_pic
='-fPIC'
9362 lt_prog_compiler_static
='-static'
9365 lt_prog_compiler_wl
='-Wl,'
9366 lt_prog_compiler_pic
='-fpic'
9367 lt_prog_compiler_static
='-Bstatic'
9375 lt_prog_compiler_pic
='-KPIC'
9376 lt_prog_compiler_static
='-Bstatic'
9380 # QNX uses GNU C++, but need to define -shared option too, otherwise
9382 lt_prog_compiler_pic
='-fPIC -shared'
9385 osf3
* | osf4
* | osf5
*)
9386 lt_prog_compiler_wl
='-Wl,'
9387 # All OSF/1 code is PIC.
9388 lt_prog_compiler_static
='-non_shared'
9392 lt_prog_compiler_static
='-non_shared'
9396 lt_prog_compiler_pic
='-KPIC'
9397 lt_prog_compiler_static
='-Bstatic'
9398 case $cc_basename in
9399 f77
* | f90
* | f95
* | sunf77
* | sunf90
* | sunf95
*)
9400 lt_prog_compiler_wl
='-Qoption ld ';;
9402 lt_prog_compiler_wl
='-Wl,';;
9407 lt_prog_compiler_wl
='-Qoption ld '
9408 lt_prog_compiler_pic
='-PIC'
9409 lt_prog_compiler_static
='-Bstatic'
9412 sysv4
| sysv4.2uw2
* | sysv4.3
*)
9413 lt_prog_compiler_wl
='-Wl,'
9414 lt_prog_compiler_pic
='-KPIC'
9415 lt_prog_compiler_static
='-Bstatic'
9419 if test -d /usr
/nec
;then
9420 lt_prog_compiler_pic
='-Kconform_pic'
9421 lt_prog_compiler_static
='-Bstatic'
9425 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
9426 lt_prog_compiler_wl
='-Wl,'
9427 lt_prog_compiler_pic
='-KPIC'
9428 lt_prog_compiler_static
='-Bstatic'
9432 lt_prog_compiler_wl
='-Wl,'
9433 lt_prog_compiler_can_build_shared
=no
9437 lt_prog_compiler_pic
='-pic'
9438 lt_prog_compiler_static
='-Bstatic'
9442 lt_prog_compiler_can_build_shared
=no
9448 # For platforms which do not support PIC, -DPIC is meaningless:
9450 lt_prog_compiler_pic
=
9453 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9458 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9459 if ${lt_cv_prog_compiler_pic+:} false
; then :
9460 $as_echo_n "(cached) " >&6
9462 lt_cv_prog_compiler_pic
=$lt_prog_compiler_pic
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9465 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9466 lt_prog_compiler_pic
=$lt_cv_prog_compiler_pic
9469 # Check to make sure the PIC flag actually works.
9471 if test -n "$lt_prog_compiler_pic"; then
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9473 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9474 if ${lt_cv_prog_compiler_pic_works+:} false
; then :
9475 $as_echo_n "(cached) " >&6
9477 lt_cv_prog_compiler_pic_works
=no
9478 ac_outfile
=conftest.
$ac_objext
9479 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9480 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
9481 # Insert the option either (1) after the last *FLAGS variable, or
9482 # (2) before a word containing "conftest.", or (3) at the end.
9483 # Note that $ac_compile itself does not contain backslashes and begins
9484 # with a dollar sign (not a hyphen), so the echo should work correctly.
9485 # The option is referenced via a variable to avoid confusing sed.
9486 lt_compile
=`echo "$ac_compile" | $SED \
9487 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9488 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9489 -e 's:$: $lt_compiler_flag:'`
9490 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9491 (eval "$lt_compile" 2>conftest.err
)
9493 cat conftest.err
>&5
9494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9495 if (exit $ac_status) && test -s "$ac_outfile"; then
9496 # The compiler can only warn and ignore the option if not recognized
9497 # So say no if there are warnings other than the usual output.
9498 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9499 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
9500 if test ! -s conftest.er2
|| diff conftest.exp conftest.er2
>/dev
/null
; then
9501 lt_cv_prog_compiler_pic_works
=yes
9507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9508 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9510 if test x
"$lt_cv_prog_compiler_pic_works" = xyes
; then
9511 case $lt_prog_compiler_pic in
9513 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
9516 lt_prog_compiler_pic
=
9517 lt_prog_compiler_can_build_shared
=no
9533 # Check to make sure the static flag actually works.
9535 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
9536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9537 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9538 if ${lt_cv_prog_compiler_static_works+:} false
; then :
9539 $as_echo_n "(cached) " >&6
9541 lt_cv_prog_compiler_static_works
=no
9542 save_LDFLAGS
="$LDFLAGS"
9543 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
9544 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
9545 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
9546 # The linker can only warn and ignore the option if not recognized
9547 # So say no if there are warnings
9548 if test -s conftest.err
; then
9549 # Append any errors to the config.log.
9550 cat conftest.err
1>&5
9551 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9552 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
9553 if diff conftest.exp conftest.er2
>/dev
/null
; then
9554 lt_cv_prog_compiler_static_works
=yes
9557 lt_cv_prog_compiler_static_works
=yes
9561 LDFLAGS
="$save_LDFLAGS"
9564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9565 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9567 if test x
"$lt_cv_prog_compiler_static_works" = xyes
; then
9570 lt_prog_compiler_static
=
9579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9580 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9581 if ${lt_cv_prog_compiler_c_o+:} false
; then :
9582 $as_echo_n "(cached) " >&6
9584 lt_cv_prog_compiler_c_o
=no
9585 $RM -r conftest
2>/dev
/null
9589 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9591 lt_compiler_flag
="-o out/conftest2.$ac_objext"
9592 # Insert the option either (1) after the last *FLAGS variable, or
9593 # (2) before a word containing "conftest.", or (3) at the end.
9594 # Note that $ac_compile itself does not contain backslashes and begins
9595 # with a dollar sign (not a hyphen), so the echo should work correctly.
9596 lt_compile
=`echo "$ac_compile" | $SED \
9597 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9598 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9599 -e 's:$: $lt_compiler_flag:'`
9600 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9601 (eval "$lt_compile" 2>out
/conftest.err
)
9603 cat out
/conftest.err
>&5
9604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9605 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
9607 # The compiler can only warn and ignore the option if not recognized
9608 # So say no if there are warnings
9609 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out
/conftest.exp
9610 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
9611 if test ! -s out
/conftest.er2
|| diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
9612 lt_cv_prog_compiler_c_o
=yes
9617 # SGI C++ compiler will create directory out/ii_files/ for
9618 # template instantiation
9619 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
9620 $RM out
/* && rmdir out
9626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9627 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9635 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9636 if ${lt_cv_prog_compiler_c_o+:} false
; then :
9637 $as_echo_n "(cached) " >&6
9639 lt_cv_prog_compiler_c_o
=no
9640 $RM -r conftest
2>/dev
/null
9644 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9646 lt_compiler_flag
="-o out/conftest2.$ac_objext"
9647 # Insert the option either (1) after the last *FLAGS variable, or
9648 # (2) before a word containing "conftest.", or (3) at the end.
9649 # Note that $ac_compile itself does not contain backslashes and begins
9650 # with a dollar sign (not a hyphen), so the echo should work correctly.
9651 lt_compile
=`echo "$ac_compile" | $SED \
9652 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9653 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9654 -e 's:$: $lt_compiler_flag:'`
9655 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9656 (eval "$lt_compile" 2>out
/conftest.err
)
9658 cat out
/conftest.err
>&5
9659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
9662 # The compiler can only warn and ignore the option if not recognized
9663 # So say no if there are warnings
9664 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out
/conftest.exp
9665 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
9666 if test ! -s out
/conftest.er2
|| diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
9667 lt_cv_prog_compiler_c_o
=yes
9672 # SGI C++ compiler will create directory out/ii_files/ for
9673 # template instantiation
9674 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
9675 $RM out
/* && rmdir out
9681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9682 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9687 hard_links
="nottested"
9688 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
9689 # do not overwrite the value of need_locks provided by the user
9690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9691 $as_echo_n "checking if we can lock with hard links... " >&6; }
9694 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
9696 ln conftest.a conftest.b
2>&5 || hard_links
=no
9697 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
9698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9699 $as_echo "$hard_links" >&6; }
9700 if test "$hard_links" = no
; then
9701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9702 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9715 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9718 allow_undefined_flag
=
9719 always_export_symbols
=no
9721 archive_expsym_cmds
=
9722 compiler_needs_object
=no
9723 enable_shared_with_static_runtimes
=no
9724 export_dynamic_flag_spec
=
9725 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9726 hardcode_automatic
=no
9728 hardcode_direct_absolute
=no
9729 hardcode_libdir_flag_spec
=
9730 hardcode_libdir_separator
=
9732 hardcode_shlibpath_var
=unsupported
9734 link_all_deplibs
=unknown
9737 old_archive_from_new_cmds
=
9738 old_archive_from_expsyms_cmds
=
9739 thread_safe_flag_spec
=
9740 whole_archive_flag_spec
=
9741 # include_expsyms should be a list of space-separated symbols to be *always*
9742 # included in the symbol list
9744 # exclude_expsyms can be an extended regexp of symbols to exclude
9745 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9746 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9747 # as well as any symbol that contains `d'.
9748 exclude_expsyms
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9749 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9750 # platforms (ab)use it in PIC code, but their linkers get confused if
9751 # the symbol is explicitly referenced. Since portable code cannot
9752 # rely on this symbol name, it's probably fine to never include it in
9753 # preloaded symbol tables.
9754 # Exclude shared library initialization/finalization symbols.
9755 extract_expsyms_cmds
=
9758 cygwin
* | mingw
* | pw32
* | cegcc
*)
9759 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9760 # When not using gcc, we currently assume that we are using
9761 # Microsoft Visual C++.
9762 if test "$GCC" != yes; then
9767 # we just hope/assume this is gcc and not c89 (= MSVC++)
9777 # On some targets, GNU ld is compatible enough with the native linker
9778 # that we're better off using the native interface for both.
9779 lt_use_gnu_ld_interface
=no
9780 if test "$with_gnu_ld" = yes; then
9783 # The AIX port of GNU ld has always aspired to compatibility
9784 # with the native linker. However, as the warning in the GNU ld
9785 # block says, versions before 2.19.5* couldn't really create working
9786 # shared libraries, regardless of the interface used.
9787 case `$LD -v 2>&1` in
9788 *\ \
(GNU\ Binutils\
)\
2.19.5*) ;;
9789 *\ \
(GNU\ Binutils\
)\
2.
[2-9]*) ;;
9790 *\ \
(GNU\ Binutils\
)\
[3-9]*) ;;
9792 lt_use_gnu_ld_interface
=yes
9797 lt_use_gnu_ld_interface
=yes
9802 if test "$lt_use_gnu_ld_interface" = yes; then
9803 # If archive_cmds runs LD, not CC, wlarc should be empty
9806 # Set some defaults for GNU ld with shared library support. These
9807 # are reset later if shared libraries are not supported. Putting them
9808 # here allows them to be overridden if necessary.
9809 runpath_var
=LD_RUN_PATH
9810 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9811 export_dynamic_flag_spec
='${wl}--export-dynamic'
9812 # ancient GNU ld didn't support --whole-archive et. al.
9813 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev
/null
; then
9814 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9816 whole_archive_flag_spec
=
9818 supports_anon_versioning
=no
9819 case `$LD -v 2>&1` in
9820 *GNU\ gold
*) supports_anon_versioning
=yes ;;
9821 *\
[01].
* | *\
2.
[0-9].
* | *\
2.10.
*) ;; # catch versions < 2.11
9822 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
9823 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
9824 *\
2.11.
*) ;; # other 2.11 versions
9825 *) supports_anon_versioning
=yes ;;
9828 # See if GNU ld supports shared libraries.
9831 # On AIX/PPC, the GNU linker is very broken
9832 if test "$host_cpu" != ia64
; then
9836 *** Warning: the GNU linker, at least up to release 2.19, is reported
9837 *** to be unable to reliably create shared libraries on AIX.
9838 *** Therefore, libtool is disabling shared libraries support. If you
9839 *** really care for shared libraries, you may want to install binutils
9840 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9841 *** You will then need to restart the configuration process.
9850 # see comment about AmigaOS4 .so support
9851 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9852 archive_expsym_cmds
=''
9855 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)'
9856 hardcode_libdir_flag_spec
='-L$libdir'
9857 hardcode_minus_L
=yes
9863 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev
/null
; then
9864 allow_undefined_flag
=unsupported
9865 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9866 # support --undefined. This deserves some investigation. FIXME
9867 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9873 cygwin
* | mingw
* | pw32
* | cegcc
*)
9874 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9875 # as there is no search path for DLLs.
9876 hardcode_libdir_flag_spec
='-L$libdir'
9877 export_dynamic_flag_spec
='${wl}--export-all-symbols'
9878 allow_undefined_flag
=unsupported
9879 always_export_symbols
=no
9880 enable_shared_with_static_runtimes
=yes
9881 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'
9882 exclude_expsyms
='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9884 if $LD --help 2>&1 | $GREP 'auto-import' > /dev
/null
; then
9885 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9886 # If the export-symbols file already is a .def file (1st line
9887 # is EXPORTS), use it as is; otherwise, prepend...
9888 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9889 cp $export_symbols $output_objdir/$soname.def;
9891 echo EXPORTS > $output_objdir/$soname.def;
9892 cat $export_symbols >> $output_objdir/$soname.def;
9894 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9901 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9902 link_all_deplibs
=yes
9907 hardcode_shlibpath_var
=no
9908 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9909 export_dynamic_flag_spec
='${wl}-E'
9910 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9911 # Instead, shared libraries are loaded at an image base (0x10000000 by
9912 # default) and relocated if they conflict, which is a slow very memory
9913 # consuming and fragmenting process. To avoid this, we pick a random,
9914 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9915 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9916 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9917 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'
9920 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
9922 if test "$host_os" = linux
-dietlibc; then
9923 case $cc_basename in
9924 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
9927 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev
/null \
9928 && test "$tmp_diet" = no
9930 tmp_addflag
=' $pic_flag'
9931 tmp_sharedflag
='-shared'
9932 case $cc_basename,$host_cpu in
9933 pgcc
*) # Portland Group C compiler
9934 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'
9935 tmp_addflag
=' $pic_flag'
9937 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
9938 # Portland Group f77 and f90 compilers
9939 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'
9940 tmp_addflag
=' $pic_flag -Mnomain' ;;
9941 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
9942 tmp_addflag
=' -i_dynamic' ;;
9943 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
9944 tmp_addflag
=' -i_dynamic -nofor_main' ;;
9945 ifc
* | ifort
*) # Intel Fortran compiler
9946 tmp_addflag
=' -nofor_main' ;;
9947 lf95
*) # Lahey Fortran 8.1
9948 whole_archive_flag_spec
=
9949 tmp_sharedflag
='--shared' ;;
9950 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9951 tmp_sharedflag
='-qmkshrobj'
9953 nvcc
*) # Cuda Compiler Driver 2.2
9954 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'
9955 compiler_needs_object
=yes
9958 case `$CC -V 2>&1 | sed 5q` in
9959 *Sun\ C
*) # Sun C 5.9
9960 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'
9961 compiler_needs_object
=yes
9962 tmp_sharedflag
='-G' ;;
9963 *Sun\ F
*) # Sun Fortran 8.3
9964 tmp_sharedflag
='-G' ;;
9966 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9968 if test "x$supports_anon_versioning" = xyes
; then
9969 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9970 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9971 echo "local: *; };" >> $output_objdir/$libname.ver~
9972 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9975 case $cc_basename in
9976 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
9977 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9978 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
9979 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9980 archive_cmds
='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9981 if test "x$supports_anon_versioning" = xyes
; then
9982 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9983 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9984 echo "local: *; };" >> $output_objdir/$libname.ver~
9985 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9995 if echo __ELF__
| $CC -E - | $GREP __ELF__
>/dev
/null
; then
9996 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9999 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10000 archive_expsym_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10005 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev
/null
; then
10009 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10010 *** create shared libraries on Solaris systems. Therefore, libtool
10011 *** is disabling shared libraries support. We urge you to upgrade GNU
10012 *** binutils to release 2.9.1 or newer. Another option is to modify
10013 *** your PATH or compiler configuration so that the native linker is
10014 *** used, and then restart.
10017 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev
/null
; then
10018 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10019 archive_expsym_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10025 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
10026 case `$LD -v 2>&1` in
10027 *\
[01].
* | *\
2.
[0-9].
* | *\
2.1[0-5].
*)
10031 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10032 *** reliably create shared libraries on SCO systems. Therefore, libtool
10033 *** is disabling shared libraries support. We urge you to upgrade GNU
10034 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10035 *** your PATH or compiler configuration so that the native linker is
10036 *** used, and then restart.
10041 # For security reasons, it is highly recommended that you always
10042 # use absolute paths for naming shared libraries, and exclude the
10043 # DT_RUNPATH tag from executables and libraries. But doing so
10044 # requires that you compile everything twice, which is a pain.
10045 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev
/null
; then
10046 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10047 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10048 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10057 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10059 hardcode_direct
=yes
10060 hardcode_shlibpath_var
=no
10064 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev
/null
; then
10065 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10066 archive_expsym_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10073 if test "$ld_shlibs" = no
; then
10075 hardcode_libdir_flag_spec
=
10076 export_dynamic_flag_spec
=
10077 whole_archive_flag_spec
=
10080 # PORTME fill in a description of your system's linker (not GNU ld)
10083 allow_undefined_flag
=unsupported
10084 always_export_symbols
=yes
10085 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'
10086 # Note: this linker hardcodes the directories in LIBPATH if there
10087 # are no directories specified by -L.
10088 hardcode_minus_L
=yes
10089 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10090 # Neither direct hardcoding nor static linking is supported with a
10092 hardcode_direct
=unsupported
10097 if test "$host_cpu" = ia64
; then
10098 # On IA64, the linker does run time linking by default, so we don't
10099 # have to do anything special.
10100 aix_use_runtimelinking
=no
10101 exp_sym_flag
='-Bexport'
10104 # If we're using GNU nm, then we don't want the "-C" option.
10105 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10106 # Also, AIX nm treats weak defined symbols like other global
10107 # defined symbols, whereas GNU nm marks them as "W".
10108 if $NM -V 2>&1 | $GREP 'GNU' > /dev
/null
; then
10109 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'
10111 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'
10113 aix_use_runtimelinking
=no
10115 # Test if we are trying to use run time linking or normal
10116 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10117 # need to do runtime linking.
10118 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
10119 for ld_flag
in $LDFLAGS; do
10120 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10121 aix_use_runtimelinking
=yes
10128 exp_sym_flag
='-bexport'
10129 no_entry_flag
='-bnoentry'
10132 # When large executables or shared objects are built, AIX ld can
10133 # have problems creating the table of contents. If linking a library
10134 # or program results in "error TOC overflow" add -mminimal-toc to
10135 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10136 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10139 hardcode_direct
=yes
10140 hardcode_direct_absolute
=yes
10141 hardcode_libdir_separator
=':'
10142 link_all_deplibs
=yes
10143 file_list_spec
='${wl}-f,'
10145 if test "$GCC" = yes; then
10146 case $host_os in aix4.
[012]|aix4.
[012].
*)
10147 # We only want to do this on AIX 4.2 and lower, the check
10148 # below for broken collect2 doesn't work under 4.3+
10149 collect2name
=`${CC} -print-prog-name=collect2`
10150 if test -f "$collect2name" &&
10151 strings "$collect2name" | $GREP resolve_lib_name
>/dev
/null
10153 # We have reworked collect2
10156 # We have old collect2
10157 hardcode_direct
=unsupported
10158 # It fails to find uninstalled libraries when the uninstalled
10159 # path is not listed in the libpath. Setting hardcode_minus_L
10160 # to unsupported forces relinking
10161 hardcode_minus_L
=yes
10162 hardcode_libdir_flag_spec
='-L$libdir'
10163 hardcode_libdir_separator
=
10167 shared_flag
='-shared'
10168 if test "$aix_use_runtimelinking" = yes; then
10169 shared_flag
="$shared_flag "'${wl}-G'
10173 if test "$host_cpu" = ia64
; then
10174 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10175 # chokes on -Wl,-G. The following line is correct:
10178 if test "$aix_use_runtimelinking" = yes; then
10179 shared_flag
='${wl}-G'
10181 shared_flag
='${wl}-bM:SRE'
10186 export_dynamic_flag_spec
='${wl}-bexpall'
10187 # It seems that -bexpall does not export symbols beginning with
10188 # underscore (_), so it is better to generate a list of symbols to export.
10189 always_export_symbols
=yes
10190 if test "$aix_use_runtimelinking" = yes; then
10191 # Warning - without using the other runtime loading flags (-brtl),
10192 # -berok will link without error, but may produce a broken library.
10193 allow_undefined_flag
='-berok'
10194 # Determine the default libpath from the value encoded in an
10195 # empty executable.
10196 if test "${lt_cv_aix_libpath+set}" = set; then
10197 aix_libpath
=$lt_cv_aix_libpath
10199 if ${lt_cv_aix_libpath_+:} false
; then :
10200 $as_echo_n "(cached) " >&6
10202 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10203 /* end confdefs.h. */
10213 if ac_fn_c_try_link
"$LINENO"; then :
10215 lt_aix_libpath_sed
='
10216 /Import File Strings/,/^$/ {
10218 s/^0 *\([^ ]*\) *$/\1/
10222 lt_cv_aix_libpath_
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10223 # Check for a 64-bit object if we didn't find anything.
10224 if test -z "$lt_cv_aix_libpath_"; then
10225 lt_cv_aix_libpath_
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10228 rm -f core conftest.err conftest.
$ac_objext \
10229 conftest
$ac_exeext conftest.
$ac_ext
10230 if test -z "$lt_cv_aix_libpath_"; then
10231 lt_cv_aix_libpath_
="/usr/lib:/lib"
10236 aix_libpath
=$lt_cv_aix_libpath_
10239 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
10240 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"
10242 if test "$host_cpu" = ia64
; then
10243 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
10244 allow_undefined_flag
="-z nodefs"
10245 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"
10247 # Determine the default libpath from the value encoded in an
10248 # empty executable.
10249 if test "${lt_cv_aix_libpath+set}" = set; then
10250 aix_libpath
=$lt_cv_aix_libpath
10252 if ${lt_cv_aix_libpath_+:} false
; then :
10253 $as_echo_n "(cached) " >&6
10255 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10256 /* end confdefs.h. */
10266 if ac_fn_c_try_link
"$LINENO"; then :
10268 lt_aix_libpath_sed
='
10269 /Import File Strings/,/^$/ {
10271 s/^0 *\([^ ]*\) *$/\1/
10275 lt_cv_aix_libpath_
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10276 # Check for a 64-bit object if we didn't find anything.
10277 if test -z "$lt_cv_aix_libpath_"; then
10278 lt_cv_aix_libpath_
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10281 rm -f core conftest.err conftest.
$ac_objext \
10282 conftest
$ac_exeext conftest.
$ac_ext
10283 if test -z "$lt_cv_aix_libpath_"; then
10284 lt_cv_aix_libpath_
="/usr/lib:/lib"
10289 aix_libpath
=$lt_cv_aix_libpath_
10292 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
10293 # Warning - without using the other run time loading flags,
10294 # -berok will link without error, but may produce a broken library.
10295 no_undefined_flag
=' ${wl}-bernotok'
10296 allow_undefined_flag
=' ${wl}-berok'
10297 if test "$with_gnu_ld" = yes; then
10298 # We only use this code for GNU lds that support --whole-archive.
10299 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10301 # Exported symbols can be pulled into shared objects from archives
10302 whole_archive_flag_spec
='$convenience'
10304 archive_cmds_need_lc
=yes
10305 # This is similar to how AIX traditionally builds its shared libraries.
10306 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'
10314 # see comment about AmigaOS4 .so support
10315 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10316 archive_expsym_cmds
=''
10319 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)'
10320 hardcode_libdir_flag_spec
='-L$libdir'
10321 hardcode_minus_L
=yes
10327 export_dynamic_flag_spec
=-rdynamic
10330 cygwin
* | mingw
* | pw32
* | cegcc
*)
10331 # When not using gcc, we currently assume that we are using
10332 # Microsoft Visual C++.
10333 # hardcode_libdir_flag_spec is actually meaningless, as there is
10334 # no search path for DLLs.
10335 case $cc_basename in
10338 hardcode_libdir_flag_spec
=' '
10339 allow_undefined_flag
=unsupported
10340 always_export_symbols
=yes
10342 # Tell ltmain to make .lib files, not .a files.
10344 # Tell ltmain to make .dll files, not .so files.
10346 # FIXME: Setting linknames here is a bad hack.
10347 archive_cmds
='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10348 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10349 sed -n -e 's
/\\\\\\\
(.
*\\\\\\\
)/-link\\\
-EXPORT:\\\\\\\
1/' -e '1\\\
!p
' < $export_symbols > $output_objdir/$soname.exp;
10351 sed -e 's
/\\\\\\\
(.
*\\\\\\\
)/-link\\\
-EXPORT:\\\\\\\
1/' < $export_symbols > $output_objdir/$soname.exp;
10353 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10355 # The linker will not automatically build a static lib if we build a DLL.
10356 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10357 enable_shared_with_static_runtimes
=yes
10358 exclude_expsyms
='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10359 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10361 old_postinstall_cmds
='chmod 644 $oldlib'
10362 postlink_cmds
='lt_outputfile="@OUTPUT@"~
10363 lt_tool_outputfile="@TOOL_OUTPUT@"~
10364 case $lt_outputfile in
10367 lt_outputfile="$lt_outputfile.exe"
10368 lt_tool_outputfile="$lt_tool_outputfile.exe"
10371 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10372 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10373 $RM "$lt_outputfile.manifest";
10377 # Assume MSVC wrapper
10378 hardcode_libdir_flag_spec
=' '
10379 allow_undefined_flag
=unsupported
10380 # Tell ltmain to make .lib files, not .a files.
10382 # Tell ltmain to make .dll files, not .so files.
10384 # FIXME: Setting linknames here is a bad hack.
10385 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10386 # The linker will automatically build a .lib file if we build a DLL.
10387 old_archive_from_new_cmds
='true'
10388 # FIXME: Should let the user specify the lib program.
10389 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
10390 enable_shared_with_static_runtimes
=yes
10395 darwin
* | rhapsody
*)
10398 archive_cmds_need_lc
=no
10400 hardcode_automatic
=yes
10401 hardcode_shlibpath_var
=unsupported
10402 if test "$lt_cv_ld_force_load" = "yes"; then
10403 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\"`'
10406 whole_archive_flag_spec
=''
10408 link_all_deplibs
=yes
10409 allow_undefined_flag
="$_lt_dar_allow_undefined"
10410 case $cc_basename in
10411 ifort
*) _lt_dar_can_shared
=yes ;;
10412 *) _lt_dar_can_shared
=$GCC ;;
10414 if test "$_lt_dar_can_shared" = "yes"; then
10415 output_verbose_link_cmd
=func_echo_all
10416 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10417 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10418 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}"
10419 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}"
10428 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10429 hardcode_libdir_flag_spec
='-L$libdir'
10430 hardcode_shlibpath_var
=no
10433 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10434 # support. Future versions do this automatically, but an explicit c++rt0.o
10435 # does not break anything, and helps significantly (at the cost of a little
10438 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10439 hardcode_libdir_flag_spec
='-R$libdir'
10440 hardcode_direct
=yes
10441 hardcode_shlibpath_var
=no
10444 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10446 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10447 hardcode_direct
=yes
10448 hardcode_minus_L
=yes
10449 hardcode_shlibpath_var
=no
10452 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10453 freebsd
* | dragonfly
*)
10454 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10455 hardcode_libdir_flag_spec
='-R$libdir'
10456 hardcode_direct
=yes
10457 hardcode_shlibpath_var
=no
10461 if test "$GCC" = yes; then
10462 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'
10464 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'
10466 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
10467 hardcode_libdir_separator
=:
10468 hardcode_direct
=yes
10470 # hardcode_minus_L: Not really in the search PATH,
10471 # but as the default location of the library.
10472 hardcode_minus_L
=yes
10473 export_dynamic_flag_spec
='${wl}-E'
10477 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
10478 archive_cmds
='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10480 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10482 if test "$with_gnu_ld" = no
; then
10483 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
10484 hardcode_libdir_separator
=:
10485 hardcode_direct
=yes
10486 hardcode_direct_absolute
=yes
10487 export_dynamic_flag_spec
='${wl}-E'
10488 # hardcode_minus_L: Not really in the search PATH,
10489 # but as the default location of the library.
10490 hardcode_minus_L
=yes
10495 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
10498 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10501 archive_cmds
='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10504 archive_cmds
='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10510 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10513 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10517 # Older versions of the 11.00 compiler do not understand -b yet
10518 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10520 $as_echo_n "checking if $CC understands -b... " >&6; }
10521 if ${lt_cv_prog_compiler__b+:} false
; then :
10522 $as_echo_n "(cached) " >&6
10524 lt_cv_prog_compiler__b
=no
10525 save_LDFLAGS
="$LDFLAGS"
10526 LDFLAGS
="$LDFLAGS -b"
10527 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
10528 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
10529 # The linker can only warn and ignore the option if not recognized
10530 # So say no if there are warnings
10531 if test -s conftest.err
; then
10532 # Append any errors to the config.log.
10533 cat conftest.err
1>&5
10534 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10535 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
10536 if diff conftest.exp conftest.er2
>/dev
/null
; then
10537 lt_cv_prog_compiler__b
=yes
10540 lt_cv_prog_compiler__b
=yes
10544 LDFLAGS
="$save_LDFLAGS"
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10548 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10550 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
10551 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10553 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10559 if test "$with_gnu_ld" = no
; then
10560 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
10561 hardcode_libdir_separator
=:
10566 hardcode_shlibpath_var
=no
10569 hardcode_direct
=yes
10570 hardcode_direct_absolute
=yes
10571 export_dynamic_flag_spec
='${wl}-E'
10573 # hardcode_minus_L: Not really in the search PATH,
10574 # but as the default location of the library.
10575 hardcode_minus_L
=yes
10581 irix5
* | irix6
* | nonstopux
*)
10582 if test "$GCC" = yes; then
10583 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'
10584 # Try to use the -exported_symbol ld option, if it does not
10585 # work, assume that -exports_file does not work either and
10586 # implicitly export all symbols.
10587 # This should be the same for all languages, so no per-tag cache variable.
10588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10589 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10590 if ${lt_cv_irix_exported_symbol+:} false
; then :
10591 $as_echo_n "(cached) " >&6
10593 save_LDFLAGS
="$LDFLAGS"
10594 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10595 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10596 /* end confdefs.h. */
10597 int foo (void) { return 0; }
10599 if ac_fn_c_try_link
"$LINENO"; then :
10600 lt_cv_irix_exported_symbol
=yes
10602 lt_cv_irix_exported_symbol
=no
10604 rm -f core conftest.err conftest.
$ac_objext \
10605 conftest
$ac_exeext conftest.
$ac_ext
10606 LDFLAGS
="$save_LDFLAGS"
10608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10609 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10610 if test "$lt_cv_irix_exported_symbol" = yes; then
10611 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'
10614 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'
10615 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'
10617 archive_cmds_need_lc
='no'
10618 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10619 hardcode_libdir_separator
=:
10621 link_all_deplibs
=yes
10625 if echo __ELF__
| $CC -E - | $GREP __ELF__
>/dev
/null
; then
10626 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10628 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10630 hardcode_libdir_flag_spec
='-R$libdir'
10631 hardcode_direct
=yes
10632 hardcode_shlibpath_var
=no
10636 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10637 hardcode_direct
=yes
10638 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10639 hardcode_libdir_separator
=:
10640 hardcode_shlibpath_var
=no
10647 if test -f /usr
/libexec
/ld.so
; then
10648 hardcode_direct
=yes
10649 hardcode_shlibpath_var
=no
10650 hardcode_direct_absolute
=yes
10651 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10652 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10653 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10654 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
10655 export_dynamic_flag_spec
='${wl}-E'
10658 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
10659 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10660 hardcode_libdir_flag_spec
='-R$libdir'
10663 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10664 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
10674 hardcode_libdir_flag_spec
='-L$libdir'
10675 hardcode_minus_L
=yes
10676 allow_undefined_flag
=unsupported
10677 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'
10678 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10682 if test "$GCC" = yes; then
10683 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
10684 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'
10686 allow_undefined_flag
=' -expect_unresolved \*'
10687 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'
10689 archive_cmds_need_lc
='no'
10690 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10691 hardcode_libdir_separator
=:
10694 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
10695 if test "$GCC" = yes; then
10696 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
10697 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'
10698 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10700 allow_undefined_flag
=' -expect_unresolved \*'
10701 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'
10702 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~
10703 $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'
10705 # Both c and cxx compiler support -rpath directly
10706 hardcode_libdir_flag_spec
='-rpath $libdir'
10708 archive_cmds_need_lc
='no'
10709 hardcode_libdir_separator
=:
10713 no_undefined_flag
=' -z defs'
10714 if test "$GCC" = yes; then
10716 archive_cmds
='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10717 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10718 $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'
10720 case `$CC -V 2>&1` in
10723 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10724 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10725 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10729 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10730 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10731 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10735 hardcode_libdir_flag_spec
='-R$libdir'
10736 hardcode_shlibpath_var
=no
10738 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
10740 # The compiler driver will combine and reorder linker options,
10741 # but understands `-z linker_flag'. GCC discards it without `$wl',
10742 # but is careful enough not to reorder.
10743 # Supported since Solaris 2.6 (maybe 2.5.1?)
10744 if test "$GCC" = yes; then
10745 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10747 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
10751 link_all_deplibs
=yes
10755 if test "x$host_vendor" = xsequent
; then
10756 # Use $CC to link under sequent, because it throws in some extra .o
10757 # files that make .init and .fini sections work.
10758 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10760 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10762 hardcode_libdir_flag_spec
='-L$libdir'
10763 hardcode_direct
=yes
10764 hardcode_minus_L
=yes
10765 hardcode_shlibpath_var
=no
10769 case $host_vendor in
10771 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10772 hardcode_direct
=yes # is this really true???
10775 ## LD is ld it makes a PLAMLIB
10776 ## CC just makes a GrossModule.
10777 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10778 reload_cmds
='$CC -r -o $output$reload_objs'
10782 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10783 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
10786 runpath_var
='LD_RUN_PATH'
10787 hardcode_shlibpath_var
=no
10791 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10792 hardcode_shlibpath_var
=no
10793 export_dynamic_flag_spec
='-Bexport'
10797 if test -d /usr
/nec
; then
10798 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10799 hardcode_shlibpath_var
=no
10800 runpath_var
=LD_RUN_PATH
10801 hardcode_runpath_var
=yes
10806 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
10807 no_undefined_flag
='${wl}-z,text'
10808 archive_cmds_need_lc
=no
10809 hardcode_shlibpath_var
=no
10810 runpath_var
='LD_RUN_PATH'
10812 if test "$GCC" = yes; then
10813 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10814 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10816 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10817 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10821 sysv5
* | sco3.2v5
* | sco5v6
*)
10822 # Note: We can NOT use -z defs as we might desire, because we do not
10823 # link with -lc, and that would cause any symbols used from libc to
10824 # always be unresolved, which means just about no library would
10825 # ever link correctly. If we're not using GNU ld we use -z text
10826 # though, which does catch some bad symbols but isn't as heavy-handed
10828 no_undefined_flag
='${wl}-z,text'
10829 allow_undefined_flag
='${wl}-z,nodefs'
10830 archive_cmds_need_lc
=no
10831 hardcode_shlibpath_var
=no
10832 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
10833 hardcode_libdir_separator
=':'
10834 link_all_deplibs
=yes
10835 export_dynamic_flag_spec
='${wl}-Bexport'
10836 runpath_var
='LD_RUN_PATH'
10838 if test "$GCC" = yes; then
10839 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10840 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10842 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10843 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10848 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10849 hardcode_libdir_flag_spec
='-L$libdir'
10850 hardcode_shlibpath_var
=no
10858 if test x
$host_vendor = xsni
; then
10860 sysv4
| sysv4.2uw2
* | sysv4.3
* | sysv5
*)
10861 export_dynamic_flag_spec
='${wl}-Blargedynsym'
10867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10868 $as_echo "$ld_shlibs" >&6; }
10869 test "$ld_shlibs" = no
&& can_build_shared
=no
10871 with_gnu_ld
=$with_gnu_ld
10888 # Do we need to explicitly link libc?
10890 case "x$archive_cmds_need_lc" in
10892 # Assume -lc should be added
10893 archive_cmds_need_lc
=yes
10895 if test "$enable_shared" = yes && test "$GCC" = yes; then
10896 case $archive_cmds in
10898 # FIXME: we may have to deal with multi-command sequences.
10901 # Test whether the compiler implicitly links with -lc since on some
10902 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10903 # to ld, don't add -lc before -lgcc.
10904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10905 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10906 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
10907 $as_echo_n "(cached) " >&6
10910 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
10912 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10913 (eval $ac_compile) 2>&5
10915 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10916 test $ac_status = 0; } 2>conftest.err
; then
10919 libobjs
=conftest.
$ac_objext
10921 wl
=$lt_prog_compiler_wl
10922 pic_flag
=$lt_prog_compiler_pic
10928 lt_save_allow_undefined_flag
=$allow_undefined_flag
10929 allow_undefined_flag
=
10930 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10931 (eval $archive_cmds 2\
>\
&1 \
| $GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
10933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10934 test $ac_status = 0; }
10936 lt_cv_archive_cmds_need_lc
=no
10938 lt_cv_archive_cmds_need_lc
=yes
10940 allow_undefined_flag
=$lt_save_allow_undefined_flag
10942 cat conftest.err
1>&5
10947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10948 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10949 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11108 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11110 if test "$GCC" = yes; then
11112 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
11113 *) lt_awk_arg
="/^libraries:/" ;;
11116 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
11117 *) lt_sed_strip_eq
="s,=/,/,g" ;;
11119 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11120 case $lt_search_path_spec in
11122 # if the path contains ";" then we assume it to be the separator
11123 # otherwise default to the standard path separator (i.e. ":") - it is
11124 # assumed that no part of a normal pathname contains ";" but that should
11125 # okay in the real world where ";" in dirpaths is itself problematic.
11126 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11129 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11132 # Ok, now we have the path, separated by spaces, we can step through it
11133 # and add multilib dir if necessary.
11134 lt_tmp_lt_search_path_spec
=
11135 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11136 for lt_sys_path
in $lt_search_path_spec; do
11137 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11138 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11140 test -d "$lt_sys_path" && \
11141 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
11144 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11145 BEGIN {RS=" "; FS="/|\n";} {
11148 for (lt_i = NF; lt_i > 0; lt_i--) {
11149 if ($lt_i != "" && $lt_i != ".") {
11150 if ($lt_i == "..") {
11153 if (lt_count == 0) {
11154 lt_foo="/" $lt_i lt_foo;
11161 if (lt_foo != "") { lt_freq[lt_foo]++; }
11162 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11164 # AWK program above erroneously prepends '/' to C:/dos/paths
11167 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
11168 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11170 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11172 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
11174 library_names_spec
=
11175 libname_spec
='lib$name'
11179 postuninstall_cmds
=
11183 shlibpath_overrides_runpath
=unknown
11185 dynamic_linker
="$host_os ld.so"
11186 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
11187 need_lib_prefix
=unknown
11188 hardcode_into_libs
=no
11190 # when you set need_version to no, make sure it does not cause -set_version
11191 # flags to be left without arguments
11192 need_version
=unknown
11196 version_type
=linux
# correct to gnu/linux during the next big refactor
11197 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
11198 shlibpath_var
=LIBPATH
11200 # AIX 3 has no versioning support, so we append a major version to the name.
11201 soname_spec
='${libname}${release}${shared_ext}$major'
11205 version_type
=linux
# correct to gnu/linux during the next big refactor
11208 hardcode_into_libs
=yes
11209 if test "$host_cpu" = ia64
; then
11210 # AIX 5 supports IA64
11211 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11212 shlibpath_var
=LD_LIBRARY_PATH
11214 # With GCC up to 2.95.x, collect2 would create an import file
11215 # for dependence libraries. The import file would start with
11216 # the line `#! .'. This would cause the generated library to
11217 # depend on `.', always an invalid library. This was fixed in
11218 # development snapshots of GCC prior to 3.0.
11220 aix4
| aix4.
[01] | aix4.
[01].
*)
11221 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11223 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev
/null
; then
11226 can_build_shared
=no
11230 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11231 # soname into executable. Probably we can add versioning support to
11232 # collect2, so additional links can be useful in future.
11233 if test "$aix_use_runtimelinking" = yes; then
11234 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11235 # instead of lib<name>.a to let people know that these are not
11236 # typical AIX shared libraries.
11237 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11239 # We preserve .a as extension for shared libraries through AIX4.2
11240 # and later when we are not doing run time linking.
11241 library_names_spec
='${libname}${release}.a $libname.a'
11242 soname_spec
='${libname}${release}${shared_ext}$major'
11244 shlibpath_var
=LIBPATH
11251 # Since July 2007 AmigaOS4 officially supports .so libraries.
11252 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11253 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11256 library_names_spec
='$libname.ixlibrary $libname.a'
11257 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11258 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'
11264 library_names_spec
='${libname}${shared_ext}'
11265 dynamic_linker
="$host_os ld.so"
11266 shlibpath_var
=LIBRARY_PATH
11270 version_type
=linux
# correct to gnu/linux during the next big refactor
11272 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11273 soname_spec
='${libname}${release}${shared_ext}$major'
11274 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
11275 shlibpath_var
=LD_LIBRARY_PATH
11276 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11277 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
11278 # the default ld.so.conf also contains /usr/contrib/lib and
11279 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11280 # libtool to hard-code these into programs
11283 cygwin
* | mingw
* | pw32
* | cegcc
*)
11284 version_type
=windows
11289 case $GCC,$cc_basename in
11292 library_names_spec
='$libname.dll.a'
11293 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11294 postinstall_cmds
='base_file=`basename \${file}`~
11295 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11296 dldir=$destdir/`dirname \$dlpath`~
11297 test -d \$dldir || mkdir -p \$dldir~
11298 $install_prog $dir/$dlname \$dldir/$dlname~
11299 chmod a+x \$dldir/$dlname~
11300 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11301 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11303 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11304 dlpath=$dir/\$dldll~
11306 shlibpath_overrides_runpath
=yes
11310 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11311 soname_spec
='`echo ${libname} | sed -e 's
/^lib
/cyg
/'``echo ${release} | $SED -e 's
/[.
]/-/g
'`${versuffix}${shared_ext}'
11313 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
11316 # MinGW DLLs use traditional 'lib' prefix
11317 soname_spec
='${libname}`echo ${release} | $SED -e 's
/[.
]/-/g
'`${versuffix}${shared_ext}'
11320 # pw32 DLLs use 'pw' prefix rather than 'lib'
11321 library_names_spec
='`echo ${libname} | sed -e 's
/^lib
/pw
/'``echo ${release} | $SED -e 's
/[.
]/-/g
'`${versuffix}${shared_ext}'
11324 dynamic_linker
='Win32 ld.exe'
11329 libname_spec
='$name'
11330 soname_spec
='${libname}`echo ${release} | $SED -e 's
/[.
]/-/g
'`${versuffix}${shared_ext}'
11331 library_names_spec
='${libname}.dll.lib'
11335 sys_lib_search_path_spec
=
11338 for lt_path
in $LIB
11341 # Let DOS variable expansion print the short 8.3 style file name.
11342 lt_path
=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11343 sys_lib_search_path_spec
="$sys_lib_search_path_spec $lt_path"
11346 # Convert to MSYS style.
11347 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11350 # Convert to unix form, then to dos form, then back to unix form
11351 # but this time dos style (no spaces!) so that the unix form looks
11352 # like /cygdrive/c/PROGRA~1:/cygdr...
11353 sys_lib_search_path_spec
=`cygpath --path --unix "$LIB"`
11354 sys_lib_search_path_spec
=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11355 sys_lib_search_path_spec
=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11358 sys_lib_search_path_spec
="$LIB"
11359 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev
/null
; then
11360 # It is most probably a Windows format PATH.
11361 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11363 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11365 # FIXME: find the short name or the path components, as spaces are
11366 # common. (e.g. "Program Files" -> "PROGRA~1")
11370 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11371 postinstall_cmds
='base_file=`basename \${file}`~
11372 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11373 dldir=$destdir/`dirname \$dlpath`~
11374 test -d \$dldir || mkdir -p \$dldir~
11375 $install_prog $dir/$dlname \$dldir/$dlname'
11376 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11377 dlpath=$dir/\$dldll~
11379 shlibpath_overrides_runpath
=yes
11380 dynamic_linker
='Win32 link.exe'
11384 # Assume MSVC wrapper
11385 library_names_spec
='${libname}`echo ${release} | $SED -e 's
/[.
]/-/g
'`${versuffix}${shared_ext} $libname.lib'
11386 dynamic_linker
='Win32 ld.exe'
11389 # FIXME: first we should search . and the directory the executable is in
11393 darwin
* | rhapsody
*)
11394 dynamic_linker
="$host_os dyld"
11395 version_type
=darwin
11398 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11399 soname_spec
='${libname}${release}${major}$shared_ext'
11400 shlibpath_overrides_runpath
=yes
11401 shlibpath_var
=DYLD_LIBRARY_PATH
11402 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
11404 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
11405 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
11409 version_type
=linux
# correct to gnu/linux during the next big refactor
11412 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11413 soname_spec
='${libname}${release}${shared_ext}$major'
11414 shlibpath_var
=LD_LIBRARY_PATH
11417 freebsd
* | dragonfly
*)
11418 # DragonFly does not have aout. When/if they implement a new
11419 # versioning mechanism, adjust this.
11420 if test -x /usr
/bin
/objformat
; then
11421 objformat
=`/usr/bin/objformat`
11424 freebsd
[23].
*) objformat
=aout
;;
11425 *) objformat
=elf
;;
11428 version_type
=freebsd
-$objformat
11429 case $version_type in
11431 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11436 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11440 shlibpath_var
=LD_LIBRARY_PATH
11443 shlibpath_overrides_runpath
=yes
11445 freebsd3.
[01]* | freebsdelf3.
[01]*)
11446 shlibpath_overrides_runpath
=yes
11447 hardcode_into_libs
=yes
11449 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
11450 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
11451 shlibpath_overrides_runpath
=no
11452 hardcode_into_libs
=yes
11454 *) # from 4.6 on, and DragonFly
11455 shlibpath_overrides_runpath
=yes
11456 hardcode_into_libs
=yes
11462 version_type
=linux
# correct to gnu/linux during the next big refactor
11465 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11466 soname_spec
='${libname}${release}${shared_ext}$major'
11467 shlibpath_var
=LD_LIBRARY_PATH
11468 shlibpath_overrides_runpath
=no
11469 hardcode_into_libs
=yes
11473 version_type
=linux
# correct to gnu/linux during the next big refactor
11476 dynamic_linker
="$host_os runtime_loader"
11477 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11478 soname_spec
='${libname}${release}${shared_ext}$major'
11479 shlibpath_var
=LIBRARY_PATH
11480 shlibpath_overrides_runpath
=yes
11481 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11482 hardcode_into_libs
=yes
11485 hpux9
* | hpux10
* | hpux11
*)
11486 # Give a soname corresponding to the major version so that dld.sl refuses to
11487 # link against other versions.
11494 hardcode_into_libs
=yes
11495 dynamic_linker
="$host_os dld.so"
11496 shlibpath_var
=LD_LIBRARY_PATH
11497 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
11498 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11499 soname_spec
='${libname}${release}${shared_ext}$major'
11500 if test "X$HPUX_IA64_MODE" = X32
; then
11501 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11503 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
11505 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
11509 hardcode_into_libs
=yes
11510 dynamic_linker
="$host_os dld.sl"
11511 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
11512 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
11513 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11514 soname_spec
='${libname}${release}${shared_ext}$major'
11515 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11516 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
11520 dynamic_linker
="$host_os dld.sl"
11521 shlibpath_var
=SHLIB_PATH
11522 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
11523 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11524 soname_spec
='${libname}${release}${shared_ext}$major'
11527 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11528 postinstall_cmds
='chmod 555 $lib'
11529 # or fails outright, so override atomically:
11530 install_override_mode
=555
11534 version_type
=linux
# correct to gnu/linux during the next big refactor
11537 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11538 soname_spec
='${libname}${release}${shared_ext}$major'
11539 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
11540 shlibpath_var
=LD_LIBRARY_PATH
11541 shlibpath_overrides_runpath
=no
11542 hardcode_into_libs
=yes
11545 irix5
* | irix6
* | nonstopux
*)
11547 nonstopux
*) version_type
=nonstopux
;;
11549 if test "$lt_cv_prog_gnu_ld" = yes; then
11550 version_type
=linux
# correct to gnu/linux during the next big refactor
11557 soname_spec
='${libname}${release}${shared_ext}$major'
11558 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11560 irix5
* | nonstopux
*)
11561 libsuff
= shlibsuff
=
11564 case $LD in # libtool.m4 will add one of these switches to LD
11565 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11566 libsuff
= shlibsuff
= libmagic
=32-bit;;
11567 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11568 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
11569 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11570 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
11571 *) libsuff
= shlibsuff
= libmagic
=never
-match;;
11575 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
11576 shlibpath_overrides_runpath
=no
11577 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11578 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
11579 hardcode_into_libs
=yes
11582 # No shared lib support for Linux oldld, aout, or coff.
11583 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
11587 # This must be glibc/ELF.
11588 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
11589 version_type
=linux
# correct to gnu/linux during the next big refactor
11592 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11593 soname_spec
='${libname}${release}${shared_ext}$major'
11594 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11595 shlibpath_var
=LD_LIBRARY_PATH
11596 shlibpath_overrides_runpath
=no
11598 # Some binutils ld are patched to set DT_RUNPATH
11599 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
11600 $as_echo_n "(cached) " >&6
11602 lt_cv_shlibpath_overrides_runpath
=no
11603 save_LDFLAGS
=$LDFLAGS
11604 save_libdir
=$libdir
11605 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11606 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11607 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11608 /* end confdefs.h. */
11618 if ac_fn_c_try_link
"$LINENO"; then :
11619 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null
| grep "RUNPATH.*$libdir" >/dev
/null
; then :
11620 lt_cv_shlibpath_overrides_runpath
=yes
11623 rm -f core conftest.err conftest.
$ac_objext \
11624 conftest
$ac_exeext conftest.
$ac_ext
11625 LDFLAGS
=$save_LDFLAGS
11626 libdir
=$save_libdir
11630 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
11632 # This implies no fast_install, which is unacceptable.
11633 # Some rework will be needed to allow for fast_install
11634 # before this can be enabled.
11635 hardcode_into_libs
=yes
11637 # Append ld.so.conf contents to the search path
11638 if test -f /etc
/ld.so.conf
; then
11639 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' ' '`
11640 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
11643 # We used to test for /lib/ld.so.1 and disable shared libraries on
11644 # powerpc, because MkLinux only supported shared libraries with the
11645 # GNU dynamic linker. Since this was broken with cross compilers,
11646 # most powerpc-linux boxes support dynamic linking these days and
11647 # people can always --disable-shared, the test was removed, and we
11648 # assume the GNU/Linux dynamic linker is in use.
11649 dynamic_linker
='GNU/Linux ld.so'
11656 if echo __ELF__
| $CC -E - | $GREP __ELF__
>/dev
/null
; then
11657 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11658 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11659 dynamic_linker
='NetBSD (a.out) ld.so'
11661 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11662 soname_spec
='${libname}${release}${shared_ext}$major'
11663 dynamic_linker
='NetBSD ld.elf_so'
11665 shlibpath_var
=LD_LIBRARY_PATH
11666 shlibpath_overrides_runpath
=yes
11667 hardcode_into_libs
=yes
11671 version_type
=linux
# correct to gnu/linux during the next big refactor
11672 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11673 shlibpath_var
=LD_LIBRARY_PATH
11674 shlibpath_overrides_runpath
=yes
11681 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11682 soname_spec
='${libname}${release}${shared_ext}$major'
11683 shlibpath_var
=LD_LIBRARY_PATH
11684 shlibpath_overrides_runpath
=no
11685 hardcode_into_libs
=yes
11686 dynamic_linker
='ldqnx.so'
11691 sys_lib_dlsearch_path_spec
="/usr/lib"
11693 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11695 openbsd3.3
| openbsd3.3.
*) need_version
=yes ;;
11696 *) need_version
=no
;;
11698 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11699 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11700 shlibpath_var
=LD_LIBRARY_PATH
11701 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11703 openbsd2.
[89] | openbsd2.
[89].
*)
11704 shlibpath_overrides_runpath
=no
11707 shlibpath_overrides_runpath
=yes
11711 shlibpath_overrides_runpath
=yes
11716 libname_spec
='$name'
11719 library_names_spec
='$libname${shared_ext} $libname.a'
11720 dynamic_linker
='OS/2 ld.exe'
11721 shlibpath_var
=LIBPATH
11724 osf3
* | osf4
* | osf5
*)
11728 soname_spec
='${libname}${release}${shared_ext}$major'
11729 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11730 shlibpath_var
=LD_LIBRARY_PATH
11731 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11732 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
11740 version_type
=linux
# correct to gnu/linux during the next big refactor
11743 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11744 soname_spec
='${libname}${release}${shared_ext}$major'
11745 shlibpath_var
=LD_LIBRARY_PATH
11746 shlibpath_overrides_runpath
=yes
11747 hardcode_into_libs
=yes
11748 # ldd complains unless libraries are executable
11749 postinstall_cmds
='chmod +x $lib'
11754 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11755 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11756 shlibpath_var
=LD_LIBRARY_PATH
11757 shlibpath_overrides_runpath
=yes
11758 if test "$with_gnu_ld" = yes; then
11765 version_type
=linux
# correct to gnu/linux during the next big refactor
11766 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11767 soname_spec
='${libname}${release}${shared_ext}$major'
11768 shlibpath_var
=LD_LIBRARY_PATH
11769 case $host_vendor in
11771 shlibpath_overrides_runpath
=no
11773 runpath_var
=LD_RUN_PATH
11781 shlibpath_overrides_runpath
=no
11782 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
11788 if test -d /usr
/nec
;then
11789 version_type
=linux
# correct to gnu/linux during the next big refactor
11790 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11791 soname_spec
='$libname${shared_ext}.$major'
11792 shlibpath_var
=LD_LIBRARY_PATH
11796 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
11797 version_type
=freebsd
-elf
11800 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11801 soname_spec
='${libname}${release}${shared_ext}$major'
11802 shlibpath_var
=LD_LIBRARY_PATH
11803 shlibpath_overrides_runpath
=yes
11804 hardcode_into_libs
=yes
11805 if test "$with_gnu_ld" = yes; then
11806 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11808 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
11811 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
11815 sys_lib_dlsearch_path_spec
='/usr/lib'
11819 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11820 version_type
=linux
# correct to gnu/linux during the next big refactor
11823 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11824 shlibpath_var
=LD_LIBRARY_PATH
11825 shlibpath_overrides_runpath
=no
11826 hardcode_into_libs
=yes
11830 version_type
=linux
# correct to gnu/linux during the next big refactor
11831 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11832 soname_spec
='${libname}${release}${shared_ext}$major'
11833 shlibpath_var
=LD_LIBRARY_PATH
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11841 $as_echo "$dynamic_linker" >&6; }
11842 test "$dynamic_linker" = no
&& can_build_shared
=no
11844 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
11845 if test "$GCC" = yes; then
11846 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11849 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11850 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
11852 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11853 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11948 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11950 if test -n "$hardcode_libdir_flag_spec" ||
11951 test -n "$runpath_var" ||
11952 test "X$hardcode_automatic" = "Xyes" ; then
11954 # We can hardcode non-existent directories.
11955 if test "$hardcode_direct" != no
&&
11956 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11957 # have to relink, otherwise we might link with an installed library
11958 # when we should be linking with a yet-to-be-installed one
11959 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11960 test "$hardcode_minus_L" != no
; then
11961 # Linking always hardcodes the temporary library directory.
11962 hardcode_action
=relink
11964 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11965 hardcode_action
=immediate
11968 # We cannot hardcode anything, or else we can only hardcode existing
11970 hardcode_action
=unsupported
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11973 $as_echo "$hardcode_action" >&6; }
11975 if test "$hardcode_action" = relink
||
11976 test "$inherit_rpath" = yes; then
11977 # Fast installation is not supported
11978 enable_fast_install
=no
11979 elif test "$shlibpath_overrides_runpath" = yes ||
11980 test "$enable_shared" = no
; then
11981 # Fast installation is not necessary
11982 enable_fast_install
=needless
11990 if test "x$enable_dlopen" != xyes
; then
11991 enable_dlopen
=unknown
11992 enable_dlopen_self
=unknown
11993 enable_dlopen_self_static
=unknown
12000 lt_cv_dlopen
="load_add_on"
12002 lt_cv_dlopen_self
=yes
12005 mingw
* | pw32
* | cegcc
*)
12006 lt_cv_dlopen
="LoadLibrary"
12011 lt_cv_dlopen
="dlopen"
12016 # if libdl is installed we need to link against it
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12018 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12019 if ${ac_cv_lib_dl_dlopen+:} false
; then :
12020 $as_echo_n "(cached) " >&6
12022 ac_check_lib_save_LIBS
=$LIBS
12024 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12025 /* end confdefs.h. */
12027 /* Override any GCC internal prototype to avoid an error.
12028 Use char because int might match the return type of a GCC
12029 builtin and then its argument prototype would still apply. */
12042 if ac_fn_c_try_link
"$LINENO"; then :
12043 ac_cv_lib_dl_dlopen
=yes
12045 ac_cv_lib_dl_dlopen
=no
12047 rm -f core conftest.err conftest.
$ac_objext \
12048 conftest
$ac_exeext conftest.
$ac_ext
12049 LIBS
=$ac_check_lib_save_LIBS
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12052 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12053 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
12054 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
12057 lt_cv_dlopen
="dyld"
12059 lt_cv_dlopen_self
=yes
12066 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
12067 if test "x$ac_cv_func_shl_load" = xyes
; then :
12068 lt_cv_dlopen
="shl_load"
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12071 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12072 if ${ac_cv_lib_dld_shl_load+:} false
; then :
12073 $as_echo_n "(cached) " >&6
12075 ac_check_lib_save_LIBS
=$LIBS
12077 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12078 /* end confdefs.h. */
12080 /* Override any GCC internal prototype to avoid an error.
12081 Use char because int might match the return type of a GCC
12082 builtin and then its argument prototype would still apply. */
12090 return shl_load ();
12095 if ac_fn_c_try_link
"$LINENO"; then :
12096 ac_cv_lib_dld_shl_load
=yes
12098 ac_cv_lib_dld_shl_load
=no
12100 rm -f core conftest.err conftest.
$ac_objext \
12101 conftest
$ac_exeext conftest.
$ac_ext
12102 LIBS
=$ac_check_lib_save_LIBS
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12105 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12106 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
12107 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
12109 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
12110 if test "x$ac_cv_func_dlopen" = xyes
; then :
12111 lt_cv_dlopen
="dlopen"
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12114 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12115 if ${ac_cv_lib_dl_dlopen+:} false
; then :
12116 $as_echo_n "(cached) " >&6
12118 ac_check_lib_save_LIBS
=$LIBS
12120 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12121 /* end confdefs.h. */
12123 /* Override any GCC internal prototype to avoid an error.
12124 Use char because int might match the return type of a GCC
12125 builtin and then its argument prototype would still apply. */
12138 if ac_fn_c_try_link
"$LINENO"; then :
12139 ac_cv_lib_dl_dlopen
=yes
12141 ac_cv_lib_dl_dlopen
=no
12143 rm -f core conftest.err conftest.
$ac_objext \
12144 conftest
$ac_exeext conftest.
$ac_ext
12145 LIBS
=$ac_check_lib_save_LIBS
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12148 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12149 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
12150 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12153 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12154 if ${ac_cv_lib_svld_dlopen+:} false
; then :
12155 $as_echo_n "(cached) " >&6
12157 ac_check_lib_save_LIBS
=$LIBS
12158 LIBS
="-lsvld $LIBS"
12159 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12160 /* end confdefs.h. */
12162 /* Override any GCC internal prototype to avoid an error.
12163 Use char because int might match the return type of a GCC
12164 builtin and then its argument prototype would still apply. */
12177 if ac_fn_c_try_link
"$LINENO"; then :
12178 ac_cv_lib_svld_dlopen
=yes
12180 ac_cv_lib_svld_dlopen
=no
12182 rm -f core conftest.err conftest.
$ac_objext \
12183 conftest
$ac_exeext conftest.
$ac_ext
12184 LIBS
=$ac_check_lib_save_LIBS
12186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12187 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12188 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
12189 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12192 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12193 if ${ac_cv_lib_dld_dld_link+:} false
; then :
12194 $as_echo_n "(cached) " >&6
12196 ac_check_lib_save_LIBS
=$LIBS
12198 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12199 /* end confdefs.h. */
12201 /* Override any GCC internal prototype to avoid an error.
12202 Use char because int might match the return type of a GCC
12203 builtin and then its argument prototype would still apply. */
12211 return dld_link ();
12216 if ac_fn_c_try_link
"$LINENO"; then :
12217 ac_cv_lib_dld_dld_link
=yes
12219 ac_cv_lib_dld_dld_link
=no
12221 rm -f core conftest.err conftest.
$ac_objext \
12222 conftest
$ac_exeext conftest.
$ac_ext
12223 LIBS
=$ac_check_lib_save_LIBS
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12226 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12227 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
12228 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
12249 if test "x$lt_cv_dlopen" != xno
; then
12255 case $lt_cv_dlopen in
12257 save_CPPFLAGS
="$CPPFLAGS"
12258 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
12260 save_LDFLAGS
="$LDFLAGS"
12261 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
12264 LIBS
="$lt_cv_dlopen_libs $LIBS"
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12267 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12268 if ${lt_cv_dlopen_self+:} false
; then :
12269 $as_echo_n "(cached) " >&6
12271 if test "$cross_compiling" = yes; then :
12272 lt_cv_dlopen_self
=cross
12274 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
12275 lt_status
=$lt_dlunknown
12276 cat > conftest.
$ac_ext <<_LT_EOF
12277 #line $LINENO "configure"
12278 #include "confdefs.h"
12287 # define LT_DLGLOBAL RTLD_GLOBAL
12290 # define LT_DLGLOBAL DL_GLOBAL
12292 # define LT_DLGLOBAL 0
12296 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12297 find out it does not work in some platform. */
12298 #ifndef LT_DLLAZY_OR_NOW
12300 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12303 # define LT_DLLAZY_OR_NOW DL_LAZY
12306 # define LT_DLLAZY_OR_NOW RTLD_NOW
12309 # define LT_DLLAZY_OR_NOW DL_NOW
12311 # define LT_DLLAZY_OR_NOW 0
12318 /* When -fvisbility=hidden is used, assume the code has been annotated
12319 correspondingly for the symbols needed. */
12320 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12321 int fnord () __attribute__((visibility("default")));
12324 int fnord () { return 42; }
12327 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12328 int status = $lt_dlunknown;
12332 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12335 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12336 else puts (dlerror ());
12338 /* dlclose (self); */
12346 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12347 (eval $ac_link) 2>&5
12349 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12350 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
12351 (.
/conftest
; exit; ) >&5 2>/dev
/null
12353 case x
$lt_status in
12354 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
12355 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
12356 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
12359 # compilation failed
12360 lt_cv_dlopen_self
=no
12367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12368 $as_echo "$lt_cv_dlopen_self" >&6; }
12370 if test "x$lt_cv_dlopen_self" = xyes
; then
12371 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12373 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12374 if ${lt_cv_dlopen_self_static+:} false
; then :
12375 $as_echo_n "(cached) " >&6
12377 if test "$cross_compiling" = yes; then :
12378 lt_cv_dlopen_self_static
=cross
12380 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
12381 lt_status
=$lt_dlunknown
12382 cat > conftest.
$ac_ext <<_LT_EOF
12383 #line $LINENO "configure"
12384 #include "confdefs.h"
12393 # define LT_DLGLOBAL RTLD_GLOBAL
12396 # define LT_DLGLOBAL DL_GLOBAL
12398 # define LT_DLGLOBAL 0
12402 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12403 find out it does not work in some platform. */
12404 #ifndef LT_DLLAZY_OR_NOW
12406 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12409 # define LT_DLLAZY_OR_NOW DL_LAZY
12412 # define LT_DLLAZY_OR_NOW RTLD_NOW
12415 # define LT_DLLAZY_OR_NOW DL_NOW
12417 # define LT_DLLAZY_OR_NOW 0
12424 /* When -fvisbility=hidden is used, assume the code has been annotated
12425 correspondingly for the symbols needed. */
12426 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12427 int fnord () __attribute__((visibility("default")));
12430 int fnord () { return 42; }
12433 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12434 int status = $lt_dlunknown;
12438 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12441 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12442 else puts (dlerror ());
12444 /* dlclose (self); */
12452 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12453 (eval $ac_link) 2>&5
12455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12456 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
12457 (.
/conftest
; exit; ) >&5 2>/dev
/null
12459 case x
$lt_status in
12460 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
12461 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
12462 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
12465 # compilation failed
12466 lt_cv_dlopen_self_static
=no
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12474 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12477 CPPFLAGS
="$save_CPPFLAGS"
12478 LDFLAGS
="$save_LDFLAGS"
12483 case $lt_cv_dlopen_self in
12484 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
12485 *) enable_dlopen_self
=unknown
;;
12488 case $lt_cv_dlopen_self_static in
12489 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
12490 *) enable_dlopen_self_static
=unknown
;;
12512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12513 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12514 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev
/null
; then
12515 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
12516 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
12517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12518 $as_echo "yes" >&6; }
12520 # FIXME - insert some real tests, host_os isn't really good enough
12523 if test -n "$STRIP" ; then
12524 striplib
="$STRIP -x"
12525 old_striplib
="$STRIP -S"
12526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12527 $as_echo "yes" >&6; }
12529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12530 $as_echo "no" >&6; }
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12535 $as_echo "no" >&6; }
12551 # Report which library types will actually be built
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12553 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12555 $as_echo "$can_build_shared" >&6; }
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12558 $as_echo_n "checking whether to build shared libraries... " >&6; }
12559 test "$can_build_shared" = "no" && enable_shared
=no
12561 # On AIX, shared libraries and static libraries use the same namespace, and
12562 # are all built from PIC.
12565 test "$enable_shared" = yes && enable_static
=no
12566 if test -n "$RANLIB"; then
12567 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
12568 postinstall_cmds
='$RANLIB $lib'
12573 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
12574 test "$enable_shared" = yes && enable_static
=no
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12579 $as_echo "$enable_shared" >&6; }
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12582 $as_echo_n "checking whether to build static libraries... " >&6; }
12583 # Make sure either enable_shared or enable_static is yes.
12584 test "$enable_shared" = yes || enable_static
=yes
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12586 $as_echo "$enable_static" >&6; }
12593 ac_cpp
='$CPP $CPPFLAGS'
12594 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12595 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12596 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
12614 ac_config_commands
="$ac_config_commands libtool"
12619 # Only expand once:
12623 LIBTOOL
="$LIBTOOL --silent"
12628 cat >>confdefs.h
<<_ACEOF
12633 cat >>confdefs.h
<<_ACEOF
12640 cat >>confdefs.h
<<_ACEOF
12645 cat >>confdefs.h
<<_ACEOF
12649 ac_fn_c_check_header_mongrel
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
12650 if test "x$ac_cv_header_windows_h" = xyes
; then :
12653 as_fn_error $?
"** MinGW and no windows.h. I give up." "$LINENO" 5
12657 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
12658 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
12661 as_fn_error $?
"** MinGW and no winsock2.h. I give up." "$LINENO" 5
12666 cat >>confdefs.h
<<_ACEOF
12667 #define HAVE_WINSOCK2_H 1
12671 cat >>confdefs.h
<<_ACEOF
12672 #define HAVE_WINSOCK_H 1
12675 LIBS
="$LIBS -lws2_32 -liphlpapi"
12679 CPPFLAGS
="$CFLAGS -D_ALL_SOURCE -D_XOPEN_SOURCE=500"
12682 CPPFLAGS
="$CFLAGS -D_POSIX_PTHREAD_SEMANTICS -D_XPG4_2"
12688 if test "$is_mingw" = "yes"; then
12698 # backwards support for IRC_CFLAGS
12699 CFLAGS
="$IRC_CFLAGS $CFLAGS -Wall"
12701 if test "$libexecdir" = '${exec_prefix}/libexec' &&
12702 test "$localstatedir" = '${prefix}/var'; then
12703 libexecdir
='${bindir}'
12704 localstatedir
='${prefix}'
12707 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12708 if test "x$ac_cv_type_pid_t" = xyes
; then :
12712 cat >>confdefs.h
<<_ACEOF
12718 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12719 if test "x$ac_cv_type_size_t" = xyes
; then :
12723 cat >>confdefs.h
<<_ACEOF
12724 #define size_t unsigned int
12729 ac_fn_c_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
12730 if test "x$ac_cv_type_ssize_t" = xyes
; then :
12734 cat >>confdefs.h
<<_ACEOF
12735 #define ssize_t int
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
12741 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
12742 if ${ac_cv_type_uid_t+:} false
; then :
12743 $as_echo_n "(cached) " >&6
12745 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12746 /* end confdefs.h. */
12747 #include <sys/types.h>
12750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12751 $EGREP "uid_t" >/dev
/null
2>&1; then :
12752 ac_cv_type_uid_t
=yes
12754 ac_cv_type_uid_t
=no
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
12760 $as_echo "$ac_cv_type_uid_t" >&6; }
12761 if test $ac_cv_type_uid_t = no
; then
12763 $as_echo "#define uid_t int" >>confdefs.h
12766 $as_echo "#define gid_t int" >>confdefs.h
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12773 $as_echo_n "checking for ANSI C header files... " >&6; }
12774 if ${ac_cv_header_stdc+:} false
; then :
12775 $as_echo_n "(cached) " >&6
12777 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12778 /* end confdefs.h. */
12779 #include <stdlib.h>
12780 #include <stdarg.h>
12781 #include <string.h>
12792 if ac_fn_c_try_compile
"$LINENO"; then :
12793 ac_cv_header_stdc
=yes
12795 ac_cv_header_stdc
=no
12797 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12799 if test $ac_cv_header_stdc = yes; then
12800 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12801 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12802 /* end confdefs.h. */
12803 #include <string.h>
12806 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12807 $EGREP "memchr" >/dev
/null
2>&1; then :
12810 ac_cv_header_stdc
=no
12816 if test $ac_cv_header_stdc = yes; then
12817 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12818 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12819 /* end confdefs.h. */
12820 #include <stdlib.h>
12823 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12824 $EGREP "free" >/dev
/null
2>&1; then :
12827 ac_cv_header_stdc
=no
12833 if test $ac_cv_header_stdc = yes; then
12834 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12835 if test "$cross_compiling" = yes; then :
12838 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12839 /* end confdefs.h. */
12841 #include <stdlib.h>
12842 #if ((' ' & 0x0FF) == 0x020)
12843 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12844 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12846 # define ISLOWER(c) \
12847 (('a' <= (c) && (c) <= 'i') \
12848 || ('j' <= (c) && (c) <= 'r') \
12849 || ('s' <= (c) && (c) <= 'z'))
12850 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12853 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12858 for (i = 0; i < 256; i++)
12859 if (XOR (islower (i), ISLOWER (i))
12860 || toupper (i) != TOUPPER (i))
12865 if ac_fn_c_try_run
"$LINENO"; then :
12868 ac_cv_header_stdc
=no
12870 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12871 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12877 $as_echo "$ac_cv_header_stdc" >&6; }
12878 if test $ac_cv_header_stdc = yes; then
12880 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12885 for ac_header
in crypt.h unistd.h sys
/socket.h sys
/stat.h sys
/time.h
time.h netinet
/in.h arpa
/inet.h errno.h sys
/uio.h spawn.h sys
/poll.h sys
/epoll.h sys
/select.h sys
/devpoll.h sys
/event.h port.h signal.h sys
/signalfd.h sys
/timerfd.h
12887 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12888 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12889 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12890 cat >>confdefs.h
<<_ACEOF
12891 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
12899 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
12900 if ${ac_cv_header_time+:} false
; then :
12901 $as_echo_n "(cached) " >&6
12903 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12904 /* end confdefs.h. */
12905 #include <sys/types.h>
12906 #include <sys/time.h>
12912 if ((struct tm *) 0)
12918 if ac_fn_c_try_compile
"$LINENO"; then :
12919 ac_cv_header_time
=yes
12921 ac_cv_header_time
=no
12923 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
12926 $as_echo "$ac_cv_header_time" >&6; }
12927 if test $ac_cv_header_time = yes; then
12929 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
12936 $as_echo_n "checking for library containing socket... " >&6; }
12937 if ${ac_cv_search_socket+:} false
; then :
12938 $as_echo_n "(cached) " >&6
12940 ac_func_search_save_LIBS
=$LIBS
12941 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12942 /* end confdefs.h. */
12944 /* Override any GCC internal prototype to avoid an error.
12945 Use char because int might match the return type of a GCC
12946 builtin and then its argument prototype would still apply. */
12959 for ac_lib
in '' socket
; do
12960 if test -z "$ac_lib"; then
12961 ac_res
="none required"
12964 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12966 if ac_fn_c_try_link
"$LINENO"; then :
12967 ac_cv_search_socket
=$ac_res
12969 rm -f core conftest.err conftest.
$ac_objext \
12971 if ${ac_cv_search_socket+:} false
; then :
12975 if ${ac_cv_search_socket+:} false
; then :
12978 ac_cv_search_socket
=no
12980 rm conftest.
$ac_ext
12981 LIBS
=$ac_func_search_save_LIBS
12983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
12984 $as_echo "$ac_cv_search_socket" >&6; }
12985 ac_res
=$ac_cv_search_socket
12986 if test "$ac_res" != no
; then :
12987 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12993 ac_fn_c_check_member
"$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "
12994 #ifdef HAVE_SYS_TYPES_H
12995 #include <sys/types.h>
12997 #ifdef HAVE_SYS_SOCKET_H
12998 #include <sys/socket.h>
13000 #ifdef HAVE_WINSOCK2_H
13001 #include <winsock2.h>
13005 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes
; then :
13007 $as_echo "#define SOCKADDR_IN_HAS_LEN 1" >>confdefs.h
13012 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
13013 #include <sys/socket.h>
13015 if test "x$ac_cv_type_socklen_t" = xyes
; then :
13016 rb_cv_socklen_t
=socklen_t
13019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
13020 $as_echo_n "checking for socklen_t equivalent... " >&6; }
13021 if ${rb_cv_socklen_t+:} false
; then :
13022 $as_echo_n "(cached) " >&6
13025 # Systems have either "struct sockaddr *" or
13026 # "void *" as the second argument to getpeername
13028 for arg2
in "struct sockaddr" void
; do
13029 for t
in int size_t unsigned long
"unsigned long"; do
13030 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13031 /* end confdefs.h. */
13033 #ifdef HAVE_SYS_TYPES_H
13034 #include <sys/types.h>
13036 #ifdef HAVE_SYS_SOCKET_H
13037 #include <sys/socket.h>
13039 #ifdef HAVE_WINSOCK2_H
13040 #include <winsock2.h>
13042 int getpeername (int, $arg2 *, $t *);
13049 getpeername(0,0,&len);
13055 if ac_fn_c_try_compile
"$LINENO"; then :
13057 rb_cv_socklen_t
="$t"
13061 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13065 if test "x$rb_cv_socklen_t" = x
; then
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find a type to use in place of socklen_t using int" >&5
13067 $as_echo "$as_me: WARNING: Cannot find a type to use in place of socklen_t using int" >&2;}
13068 rb_cv_socklen_t
=int
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_socklen_t" >&5
13074 $as_echo "$rb_cv_socklen_t" >&6; }
13078 rb_socklen_t
=$rb_cv_socklen_t
13084 # Check whether --enable-ipv6 was given.
13085 if test "${enable_ipv6+set}" = set; then :
13086 enableval
=$enable_ipv6; ipv6
=$enableval
13092 if test x
$ipv6 != xyes
; then
13098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for INET6 protocol support" >&5
13099 $as_echo_n "checking for INET6 protocol support... " >&6; }
13100 if ${rb_cv_proto_inet6+:} false
; then :
13101 $as_echo_n "(cached) " >&6
13104 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13105 /* end confdefs.h. */
13107 #include <sys/types.h>
13108 #include <sys/socket.h>
13111 #error Missing PF_INET6
13114 #error Mlssing AF_INET6
13118 if ac_fn_c_try_cpp
"$LINENO"; then :
13120 rb_cv_proto_inet6
=yes
13124 rb_cv_proto_inet6
=no
13127 rm -f conftest.err conftest.i conftest.
$ac_ext
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_proto_inet6" >&5
13131 $as_echo "$rb_cv_proto_inet6" >&6; }
13133 if test "X$rb_cv_proto_inet6" = "Xyes"; then :
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling IPv6 support: PF_INET6 not found" >&5
13138 $as_echo "$as_me: Disabling IPv6 support: PF_INET6 not found" >&6;}
13144 if test "X$have_v6" = "Xyes"; then
13146 rb_have_sockaddr_in6
=
13147 ac_fn_c_check_type
"$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "
13148 #include <sys/types.h>
13149 #include <sys/socket.h>
13150 #include <netinet/in.h>
13153 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes
; then :
13155 cat >>confdefs.h
<<_ACEOF
13156 #define HAVE_STRUCT_SOCKADDR_IN6 1
13160 rb_have_sockaddr_in6
=yes
13164 rb_have_sockaddr_in6
=no
13169 if test "X$rb_have_sockaddr_in6" = "Xyes"; then :
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling IPv6 support: struct sockaddr_in6 not found" >&5
13174 $as_echo "$as_me: Disabling IPv6 support: struct sockaddr_in6 not found" >&6;}
13183 ac_fn_c_check_type
"$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
13184 #include <sys/types.h>
13185 #include <sys/socket.h>
13188 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes
; then :
13190 cat >>confdefs.h
<<_ACEOF
13191 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
13195 rb_have_sockaddr_storage
=yes
13201 ac_fn_c_check_header_mongrel
"$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
13202 if test "x$ac_cv_header_stdarg_h" = xyes
; then :
13205 as_fn_error $?
"** stdarg.h could not be found - libratbox will not compile without it **" "$LINENO" 5
13210 ac_fn_c_check_type
"$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "#include <sys/types.h>
13211 #include <sys/socket.h>
13213 if test "x$ac_cv_type_sa_family_t" = xyes
; then :
13217 $as_echo "#define sa_family_t u_int16_t" >>confdefs.h
13223 for ac_func
in socketpair gettimeofday writev sendmsg gmtime_r strtok_r
usleep posix_spawn strlcpy strlcat strnlen fstat signalfd
select poll kevent port_create epoll_ctl arc4random getrusage timerfd_create
13225 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13226 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13227 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13228 cat >>confdefs.h
<<_ACEOF
13229 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
13237 $as_echo_n "checking for library containing nanosleep... " >&6; }
13238 if ${ac_cv_search_nanosleep+:} false
; then :
13239 $as_echo_n "(cached) " >&6
13241 ac_func_search_save_LIBS
=$LIBS
13242 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13243 /* end confdefs.h. */
13245 /* Override any GCC internal prototype to avoid an error.
13246 Use char because int might match the return type of a GCC
13247 builtin and then its argument prototype would still apply. */
13255 return nanosleep ();
13260 for ac_lib
in '' rt posix4
; do
13261 if test -z "$ac_lib"; then
13262 ac_res
="none required"
13265 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13267 if ac_fn_c_try_link
"$LINENO"; then :
13268 ac_cv_search_nanosleep
=$ac_res
13270 rm -f core conftest.err conftest.
$ac_objext \
13272 if ${ac_cv_search_nanosleep+:} false
; then :
13276 if ${ac_cv_search_nanosleep+:} false
; then :
13279 ac_cv_search_nanosleep
=no
13281 rm conftest.
$ac_ext
13282 LIBS
=$ac_func_search_save_LIBS
13284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
13285 $as_echo "$ac_cv_search_nanosleep" >&6; }
13286 ac_res
=$ac_cv_search_nanosleep
13287 if test "$ac_res" != no
; then :
13288 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13290 $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing timer_create" >&5
13295 $as_echo_n "checking for library containing timer_create... " >&6; }
13296 if ${ac_cv_search_timer_create+:} false
; then :
13297 $as_echo_n "(cached) " >&6
13299 ac_func_search_save_LIBS
=$LIBS
13300 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13301 /* end confdefs.h. */
13303 /* Override any GCC internal prototype to avoid an error.
13304 Use char because int might match the return type of a GCC
13305 builtin and then its argument prototype would still apply. */
13309 char timer_create ();
13313 return timer_create ();
13318 for ac_lib
in '' rt
; do
13319 if test -z "$ac_lib"; then
13320 ac_res
="none required"
13323 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13325 if ac_fn_c_try_link
"$LINENO"; then :
13326 ac_cv_search_timer_create
=$ac_res
13328 rm -f core conftest.err conftest.
$ac_objext \
13330 if ${ac_cv_search_timer_create+:} false
; then :
13334 if ${ac_cv_search_timer_create+:} false
; then :
13337 ac_cv_search_timer_create
=no
13339 rm conftest.
$ac_ext
13340 LIBS
=$ac_func_search_save_LIBS
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_timer_create" >&5
13343 $as_echo "$ac_cv_search_timer_create" >&6; }
13344 ac_res
=$ac_cv_search_timer_create
13345 if test "$ac_res" != no
; then :
13346 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13348 $as_echo "#define HAVE_TIMER_CREATE 1" >>confdefs.h
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working timer_create(CLOCK_REALTIME)" >&5
13353 $as_echo_n "checking for a working timer_create(CLOCK_REALTIME)... " >&6; }
13354 if ${rb__cv_timer_create_works+:} false
; then :
13355 $as_echo_n "(cached) " >&6
13357 if test "$cross_compiling" = yes; then :
13358 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13359 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13360 as_fn_error $?
"cannot run test program while cross compiling
13361 See \`config.log' for more details" "$LINENO" 5; }
13363 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13364 /* end confdefs.h. */
13369 #ifdef HAVE_SIGNAL_H
13370 #include <signal.h>
13372 #ifdef HAVE_UNISTD_H
13373 #include <unistd.h>
13375 int main(int argc, char *argv[])
13377 #if HAVE_TIMER_CREATE
13378 struct sigevent ev;
13380 ev.sigev_notify = SIGEV_SIGNAL;
13381 ev.sigev_signo = SIGVTALRM;
13382 if (timer_create(CLOCK_REALTIME, &ev, &timer) != 0) {
13392 if ac_fn_c_try_run
"$LINENO"; then :
13393 rb__cv_timer_create_works
=yes
13395 rb__cv_timer_create_works
=no
13397 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13398 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb__cv_timer_create_works" >&5
13404 $as_echo "$rb__cv_timer_create_works" >&6; }
13405 case $rb__cv_timer_create_works in
13407 $as_echo "#define USE_TIMER_CREATE 1" >>confdefs.h
13411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working timerfd_create(CLOCK_REALTIME)" >&5
13412 $as_echo_n "checking for a working timerfd_create(CLOCK_REALTIME)... " >&6; }
13413 if ${rb__cv_timerfd_create_works+:} false
; then :
13414 $as_echo_n "(cached) " >&6
13416 if test "$cross_compiling" = yes; then :
13417 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13418 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13419 as_fn_error $?
"cannot run test program while cross compiling
13420 See \`config.log' for more details" "$LINENO" 5; }
13422 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13423 /* end confdefs.h. */
13428 #ifdef HAVE_SIGNAL_H
13429 #include <signal.h>
13431 #ifdef HAVE_UNISTD_H
13432 #include <unistd.h>
13434 #ifdef HAVE_SYS_TIMERFD_H
13435 #include <sys/timerfd.h>
13437 int main(int argc, char *argv[])
13439 #if defined(HAVE_TIMERFD_CREATE) && defined(HAVE_SYS_TIMERFD_H)
13440 if (timerfd_create(CLOCK_REALTIME, 0) < 0) {
13450 if ac_fn_c_try_run
"$LINENO"; then :
13451 rb__cv_timerfd_create_works
=yes
13453 rb__cv_timerfd_create_works
=no
13455 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13456 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb__cv_timerfd_create_works" >&5
13462 $as_echo "$rb__cv_timerfd_create_works" >&6; }
13463 case $rb__cv_timerfd_create_works in
13465 $as_echo "#define USE_TIMERFD_CREATE 1" >>confdefs.h
13470 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13471 # for constant arguments. Useless!
13472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13473 $as_echo_n "checking for working alloca.h... " >&6; }
13474 if ${ac_cv_working_alloca_h+:} false
; then :
13475 $as_echo_n "(cached) " >&6
13477 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13478 /* end confdefs.h. */
13479 #include <alloca.h>
13483 char *p = (char *) alloca (2 * sizeof (int));
13489 if ac_fn_c_try_link
"$LINENO"; then :
13490 ac_cv_working_alloca_h
=yes
13492 ac_cv_working_alloca_h
=no
13494 rm -f core conftest.err conftest.
$ac_objext \
13495 conftest
$ac_exeext conftest.
$ac_ext
13497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13498 $as_echo "$ac_cv_working_alloca_h" >&6; }
13499 if test $ac_cv_working_alloca_h = yes; then
13501 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13506 $as_echo_n "checking for alloca... " >&6; }
13507 if ${ac_cv_func_alloca_works+:} false
; then :
13508 $as_echo_n "(cached) " >&6
13510 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13511 /* end confdefs.h. */
13513 # define alloca __builtin_alloca
13516 # include <malloc.h>
13517 # define alloca _alloca
13519 # ifdef HAVE_ALLOCA_H
13520 # include <alloca.h>
13525 # ifndef alloca /* predefined by HP cc +Olibcalls */
13526 void *alloca (size_t);
13536 char *p = (char *) alloca (1);
13542 if ac_fn_c_try_link
"$LINENO"; then :
13543 ac_cv_func_alloca_works
=yes
13545 ac_cv_func_alloca_works
=no
13547 rm -f core conftest.err conftest.
$ac_objext \
13548 conftest
$ac_exeext conftest.
$ac_ext
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13551 $as_echo "$ac_cv_func_alloca_works" >&6; }
13553 if test $ac_cv_func_alloca_works = yes; then
13555 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13558 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13559 # that cause trouble. Some versions do not even contain alloca or
13560 # contain a buggy version. If you still want to use their alloca,
13561 # use ar to extract alloca.o from them instead of compiling alloca.c.
13563 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
13565 $as_echo "#define C_ALLOCA 1" >>confdefs.h
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13569 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13570 if ${ac_cv_os_cray+:} false
; then :
13571 $as_echo_n "(cached) " >&6
13573 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13574 /* end confdefs.h. */
13575 #if defined CRAY && ! defined CRAY2
13582 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13583 $EGREP "webecray" >/dev
/null
2>&1; then :
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13592 $as_echo "$ac_cv_os_cray" >&6; }
13593 if test $ac_cv_os_cray = yes; then
13594 for ac_func
in _getb67 GETB67 getb67
; do
13595 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13596 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13597 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13599 cat >>confdefs.h
<<_ACEOF
13600 #define CRAY_STACKSEG_END $ac_func
13609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13610 $as_echo_n "checking stack direction for C alloca... " >&6; }
13611 if ${ac_cv_c_stack_direction+:} false
; then :
13612 $as_echo_n "(cached) " >&6
13614 if test "$cross_compiling" = yes; then :
13615 ac_cv_c_stack_direction
=0
13617 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13618 /* end confdefs.h. */
13619 $ac_includes_default
13621 find_stack_direction ()
13623 static char *addr = 0;
13628 return find_stack_direction ();
13631 return (&dummy > addr) ? 1 : -1;
13637 return find_stack_direction () < 0;
13640 if ac_fn_c_try_run
"$LINENO"; then :
13641 ac_cv_c_stack_direction
=1
13643 ac_cv_c_stack_direction
=-1
13645 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13646 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13651 $as_echo "$ac_cv_c_stack_direction" >&6; }
13652 cat >>confdefs.h
<<_ACEOF
13653 #define STACK_DIRECTION $ac_cv_c_stack_direction
13659 for ac_header
in vfork.h
13661 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
13662 if test "x$ac_cv_header_vfork_h" = xyes
; then :
13663 cat >>confdefs.h
<<_ACEOF
13664 #define HAVE_VFORK_H 1
13671 for ac_func
in fork vfork
13673 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13674 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13675 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13676 cat >>confdefs.h
<<_ACEOF
13677 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13683 if test "x$ac_cv_func_fork" = xyes
; then
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
13685 $as_echo_n "checking for working fork... " >&6; }
13686 if ${ac_cv_func_fork_works+:} false
; then :
13687 $as_echo_n "(cached) " >&6
13689 if test "$cross_compiling" = yes; then :
13690 ac_cv_func_fork_works
=cross
13692 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13693 /* end confdefs.h. */
13694 $ac_includes_default
13699 /* By Ruediger Kuhlmann. */
13700 return fork () < 0;
13706 if ac_fn_c_try_run
"$LINENO"; then :
13707 ac_cv_func_fork_works
=yes
13709 ac_cv_func_fork_works
=no
13711 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13712 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
13717 $as_echo "$ac_cv_func_fork_works" >&6; }
13720 ac_cv_func_fork_works
=$ac_cv_func_fork
13722 if test "x$ac_cv_func_fork_works" = xcross
; then
13724 *-*-amigaos* | *-*-msdosdjgpp*)
13725 # Override, as these systems have only a dummy fork() stub
13726 ac_cv_func_fork_works
=no
13729 ac_cv_func_fork_works
=yes
13732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
13733 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
13735 ac_cv_func_vfork_works
=$ac_cv_func_vfork
13736 if test "x$ac_cv_func_vfork" = xyes
; then
13737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
13738 $as_echo_n "checking for working vfork... " >&6; }
13739 if ${ac_cv_func_vfork_works+:} false
; then :
13740 $as_echo_n "(cached) " >&6
13742 if test "$cross_compiling" = yes; then :
13743 ac_cv_func_vfork_works
=cross
13745 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13746 /* end confdefs.h. */
13747 /* Thanks to Paul Eggert for this test. */
13748 $ac_includes_default
13749 #include <sys/wait.h>
13750 #ifdef HAVE_VFORK_H
13751 # include <vfork.h>
13753 /* On some sparc systems, changes by the child to local and incoming
13754 argument registers are propagated back to the parent. The compiler
13755 is told about this with #include <vfork.h>, but some compilers
13756 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
13757 static variable whose address is put into a register that is
13758 clobbered by the vfork. */
13761 sparc_address_test (int arg)
13763 sparc_address_test (arg) int arg;
13766 static pid_t child;
13784 pid_t parent = getpid ();
13787 sparc_address_test (0);
13792 /* Here is another test for sparc vfork register problems. This
13793 test uses lots of local variables, at least as many local
13794 variables as main has allocated so far including compiler
13795 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
13796 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
13797 reuse the register of parent for one of the local variables,
13798 since it will think that parent can't possibly be used any more
13799 in this routine. Assigning to the local variable will thus
13800 munge parent in the parent process. */
13802 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
13803 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
13804 /* Convince the compiler that p..p7 are live; otherwise, it might
13805 use the same hardware register for all 8 local variables. */
13806 if (p != p1 || p != p2 || p != p3 || p != p4
13807 || p != p5 || p != p6 || p != p7)
13810 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
13811 from child file descriptors. If the child closes a descriptor
13812 before it execs or exits, this munges the parent's descriptor
13813 as well. Test for this by closing stdout in the child. */
13814 _exit(close(fileno(stdout)) != 0);
13819 while (wait(&status) != child)
13822 /* Was there some problem with vforking? */
13825 /* Did the child fail? (This shouldn't happen.) */
13828 /* Did the vfork/compiler bug occur? */
13829 || parent != getpid()
13831 /* Did the file descriptor bug occur? */
13832 || fstat(fileno(stdout), &st) != 0
13837 if ac_fn_c_try_run
"$LINENO"; then :
13838 ac_cv_func_vfork_works
=yes
13840 ac_cv_func_vfork_works
=no
13842 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13843 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
13848 $as_echo "$ac_cv_func_vfork_works" >&6; }
13851 if test "x$ac_cv_func_fork_works" = xcross
; then
13852 ac_cv_func_vfork_works
=$ac_cv_func_vfork
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
13854 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
13857 if test "x$ac_cv_func_vfork_works" = xyes
; then
13859 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
13863 $as_echo "#define vfork fork" >>confdefs.h
13866 if test "x$ac_cv_func_fork_works" = xyes
; then
13868 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
13875 for ac_header
in $ac_header_list
13877 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13878 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13880 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
13881 cat >>confdefs.h
<<_ACEOF
13882 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13896 for ac_func
in getpagesize
13898 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
13899 if test "x$ac_cv_func_getpagesize" = xyes
; then :
13900 cat >>confdefs.h
<<_ACEOF
13901 #define HAVE_GETPAGESIZE 1
13907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
13908 $as_echo_n "checking for working mmap... " >&6; }
13909 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
13910 $as_echo_n "(cached) " >&6
13912 if test "$cross_compiling" = yes; then :
13913 ac_cv_func_mmap_fixed_mapped
=no
13915 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13916 /* end confdefs.h. */
13917 $ac_includes_default
13918 /* malloc might have been renamed as rpl_malloc. */
13921 /* Thanks to Mike Haertel and Jim Avera for this test.
13922 Here is a matrix of mmap possibilities:
13923 mmap private not fixed
13924 mmap private fixed at somewhere currently unmapped
13925 mmap private fixed at somewhere already mapped
13926 mmap shared not fixed
13927 mmap shared fixed at somewhere currently unmapped
13928 mmap shared fixed at somewhere already mapped
13929 For private mappings, we should verify that changes cannot be read()
13930 back from the file, nor mmap's back from the file at a different
13931 address. (There have been systems where private was not correctly
13932 implemented like the infamous i386 svr4.0, and systems where the
13933 VM page cache was not coherent with the file system buffer cache
13934 like early versions of FreeBSD and possibly contemporary NetBSD.)
13935 For shared mappings, we should conversely verify that changes get
13936 propagated back to all the places they're supposed to be.
13938 Grep wants private fixed already mapped.
13939 The main things grep needs to know about mmap are:
13940 * does it exist and is it safe to write into the mmap'd area
13941 * how to use it (BSD variants) */
13944 #include <sys/mman.h>
13946 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
13950 /* This mess was copied from the GNU getpagesize.h. */
13951 #ifndef HAVE_GETPAGESIZE
13952 # ifdef _SC_PAGESIZE
13953 # define getpagesize() sysconf(_SC_PAGESIZE)
13954 # else /* no _SC_PAGESIZE */
13955 # ifdef HAVE_SYS_PARAM_H
13956 # include <sys/param.h>
13957 # ifdef EXEC_PAGESIZE
13958 # define getpagesize() EXEC_PAGESIZE
13959 # else /* no EXEC_PAGESIZE */
13961 # define getpagesize() NBPG * CLSIZE
13964 # endif /* no CLSIZE */
13965 # else /* no NBPG */
13967 # define getpagesize() NBPC
13968 # else /* no NBPC */
13970 # define getpagesize() PAGESIZE
13971 # endif /* PAGESIZE */
13972 # endif /* no NBPC */
13973 # endif /* no NBPG */
13974 # endif /* no EXEC_PAGESIZE */
13975 # else /* no HAVE_SYS_PARAM_H */
13976 # define getpagesize() 8192 /* punt totally */
13977 # endif /* no HAVE_SYS_PARAM_H */
13978 # endif /* no _SC_PAGESIZE */
13980 #endif /* no HAVE_GETPAGESIZE */
13985 char *data, *data2, *data3;
13986 const char *cdata2;
13990 pagesize = getpagesize ();
13992 /* First, make a file with some known garbage in it. */
13993 data = (char *) malloc (pagesize);
13996 for (i = 0; i < pagesize; ++i)
13997 *(data + i) = rand ();
13999 fd = creat ("conftest.mmap", 0600);
14002 if (write (fd, data, pagesize) != pagesize)
14006 /* Next, check that the tail of a page is zero-filled. File must have
14007 non-zero length, otherwise we risk SIGBUS for entire page. */
14008 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
14012 if (write (fd2, cdata2, 1) != 1)
14014 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
14015 if (data2 == MAP_FAILED)
14017 for (i = 0; i < pagesize; ++i)
14021 if (munmap (data2, pagesize))
14024 /* Next, try to mmap the file at a fixed address which already has
14025 something else allocated at it. If we can, also make sure that
14026 we see the same garbage. */
14027 fd = open ("conftest.mmap", O_RDWR);
14030 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14031 MAP_PRIVATE | MAP_FIXED, fd, 0L))
14033 for (i = 0; i < pagesize; ++i)
14034 if (*(data + i) != *(data2 + i))
14037 /* Finally, make sure that changes to the mapped area do not
14038 percolate back to the file as seen by read(). (This is a bug on
14039 some variants of i386 svr4.0.) */
14040 for (i = 0; i < pagesize; ++i)
14041 *(data2 + i) = *(data2 + i) + 1;
14042 data3 = (char *) malloc (pagesize);
14045 if (read (fd, data3, pagesize) != pagesize)
14047 for (i = 0; i < pagesize; ++i)
14048 if (*(data + i) != *(data3 + i))
14054 if ac_fn_c_try_run
"$LINENO"; then :
14055 ac_cv_func_mmap_fixed_mapped
=yes
14057 ac_cv_func_mmap_fixed_mapped
=no
14059 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14060 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
14065 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
14066 if test $ac_cv_func_mmap_fixed_mapped = yes; then
14068 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
14071 rm -f conftest.mmap conftest.txt
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/poll" >&5
14075 $as_echo_n "checking for /dev/poll... " >&6; }
14076 if test -c "/dev/poll"; then
14077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14078 $as_echo "yes" >&6; }
14080 $as_echo "#define HAVE_DEVPOLL 1" >>confdefs.h
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14084 $as_echo "no" >&6; }
14088 if test "$is_mingw" = "yes"; then
14090 $as_echo "#define HAVE_WIN32 1" >>confdefs.h
14095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
14096 $as_echo_n "checking for OpenSSL... " >&6; }
14097 # Check whether --enable-openssl was given.
14098 if test "${enable_openssl+set}" = set; then :
14099 enableval
=$enable_openssl; cf_enable_openssl
=$enableval
14101 cf_enable_openssl
="auto"
14105 if test "$cf_enable_openssl" != "no" ; then
14106 cf_openssl_basedir
=""
14107 if test "$cf_enable_openssl" != "auto" &&
14108 test "$cf_enable_openssl" != "yes" ; then
14109 cf_openssl_basedir
="`echo ${cf_enable_openssl} | sed 's/\/$//'`"
14111 for dirs in /usr
/local
/ssl
/usr
/pkg
/usr
/local \
14112 /usr
/local
/openssl
; do
14113 if test -f "${dirs}/include/openssl/opensslv.h" ; then
14114 cf_openssl_basedir
="${dirs}"
14120 if test ! -z "$cf_openssl_basedir"; then
14121 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then
14122 SSL_CFLAGS
="-I${cf_openssl_basedir}/include"
14123 SSL_LIBS
="-L${cf_openssl_basedir}/lib"
14125 cf_openssl_basedir
=""
14128 if test -f "/usr/include/openssl/opensslv.h" ; then
14129 cf_openssl_basedir
="/usr"
14133 if test ! -z "$cf_openssl_basedir"; then
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
14135 $as_echo "$cf_openssl_basedir" >&6; }
14136 cf_enable_openssl
="yes"
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Specify a correct path?" >&5
14139 $as_echo "not found. Specify a correct path?" >&6; }
14140 cf_enable_openssl
="no"
14142 unset cf_openssl_basedir
14144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14145 $as_echo "disabled" >&6; }
14148 save_CPPFLAGS
="$CPPFLAGS"
14149 CPPFLAGS
="$CPPFLAGS $SSL_CFLAGS"
14151 LIBS
="$LIBS $SSL_LIBS"
14152 if test "$cf_enable_openssl" != no
; then
14153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.7 or above" >&5
14154 $as_echo_n "checking for OpenSSL 0.9.7 or above... " >&6; }
14155 if test "$cross_compiling" = yes; then :
14156 cf_enable_openssl
=no
14158 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14159 /* end confdefs.h. */
14160 #include <openssl/opensslv.h>
14161 #include <stdlib.h>
14165 if (OPENSSL_VERSION_NUMBER >= 0x00907000)
14166 exit(0); else exit(1);
14171 if ac_fn_c_try_run
"$LINENO"; then :
14172 cf_enable_openssl
=yes
14174 cf_enable_openssl
=no
14176 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14177 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14181 if test "$cf_enable_openssl" != no
; then
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
14183 $as_echo "found" >&6; }
14185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5
14186 $as_echo "no - OpenSSL support disabled" >&6; }
14192 if test "$cf_enable_openssl" != no
; then
14193 CPPFLAGS
="$CPPFLAGS $SSL_LIBS"
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RAND_status in -lcrypto" >&5
14195 $as_echo_n "checking for RAND_status in -lcrypto... " >&6; }
14196 if ${ac_cv_lib_crypto_RAND_status+:} false
; then :
14197 $as_echo_n "(cached) " >&6
14199 ac_check_lib_save_LIBS
=$LIBS
14200 LIBS
="-lcrypto $LIBS"
14201 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14202 /* end confdefs.h. */
14204 /* Override any GCC internal prototype to avoid an error.
14205 Use char because int might match the return type of a GCC
14206 builtin and then its argument prototype would still apply. */
14210 char RAND_status ();
14214 return RAND_status ();
14219 if ac_fn_c_try_link
"$LINENO"; then :
14220 ac_cv_lib_crypto_RAND_status
=yes
14222 ac_cv_lib_crypto_RAND_status
=no
14224 rm -f core conftest.err conftest.
$ac_objext \
14225 conftest
$ac_exeext conftest.
$ac_ext
14226 LIBS
=$ac_check_lib_save_LIBS
14228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RAND_status" >&5
14229 $as_echo "$ac_cv_lib_crypto_RAND_status" >&6; }
14230 if test "x$ac_cv_lib_crypto_RAND_status" = xyes
; then :
14231 cf_enable_openssl
=yes
14233 cf_enable_openssl
=no
14238 if test "$cf_enable_openssl" != no
; then
14239 CPPFLAGS
="$CPPFLAGS $SSL_LIBS"
14240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_read in -lssl" >&5
14241 $as_echo_n "checking for SSL_read in -lssl... " >&6; }
14242 if ${ac_cv_lib_ssl_SSL_read+:} false
; then :
14243 $as_echo_n "(cached) " >&6
14245 ac_check_lib_save_LIBS
=$LIBS
14246 LIBS
="-lssl -lcrypto $LIBS"
14247 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14248 /* end confdefs.h. */
14250 /* Override any GCC internal prototype to avoid an error.
14251 Use char because int might match the return type of a GCC
14252 builtin and then its argument prototype would still apply. */
14260 return SSL_read ();
14265 if ac_fn_c_try_link
"$LINENO"; then :
14266 ac_cv_lib_ssl_SSL_read
=yes
14268 ac_cv_lib_ssl_SSL_read
=no
14270 rm -f core conftest.err conftest.
$ac_objext \
14271 conftest
$ac_exeext conftest.
$ac_ext
14272 LIBS
=$ac_check_lib_save_LIBS
14274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_read" >&5
14275 $as_echo "$ac_cv_lib_ssl_SSL_read" >&6; }
14276 if test "x$ac_cv_lib_ssl_SSL_read" = xyes
; then :
14277 SSL_LIBS
="$SSL_LIBS -lssl -lcrypto"
14279 cf_enable_openssl
=no
14286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GnuTLS" >&5
14287 $as_echo_n "checking for GnuTLS... " >&6; }
14288 # Check whether --enable-gnutls was given.
14289 if test "${enable_gnutls+set}" = set; then :
14290 enableval
=$enable_gnutls; cf_enable_gnutls
=$enableval
14292 cf_enable_gnutls
="auto"
14296 if test "$cf_enable_gnutls" != no
; then
14303 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
14304 if test -n "$ac_tool_prefix"; then
14305 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
14306 set dummy
${ac_tool_prefix}pkg
-config; ac_word
=$2
14307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14308 $as_echo_n "checking for $ac_word... " >&6; }
14309 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
14310 $as_echo_n "(cached) " >&6
14312 case $PKG_CONFIG in
14314 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
14317 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14318 for as_dir
in $PATH
14321 test -z "$as_dir" && as_dir
=.
14322 for ac_exec_ext
in '' $ac_executable_extensions; do
14323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14324 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
14325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14335 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
14336 if test -n "$PKG_CONFIG"; then
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14338 $as_echo "$PKG_CONFIG" >&6; }
14340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14341 $as_echo "no" >&6; }
14346 if test -z "$ac_cv_path_PKG_CONFIG"; then
14347 ac_pt_PKG_CONFIG
=$PKG_CONFIG
14348 # Extract the first word of "pkg-config", so it can be a program name with args.
14349 set dummy pkg
-config; ac_word
=$2
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14351 $as_echo_n "checking for $ac_word... " >&6; }
14352 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false
; then :
14353 $as_echo_n "(cached) " >&6
14355 case $ac_pt_PKG_CONFIG in
14357 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
14360 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14361 for as_dir
in $PATH
14364 test -z "$as_dir" && as_dir
=.
14365 for ac_exec_ext
in '' $ac_executable_extensions; do
14366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14367 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
14368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14378 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
14379 if test -n "$ac_pt_PKG_CONFIG"; then
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
14381 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14384 $as_echo "no" >&6; }
14387 if test "x$ac_pt_PKG_CONFIG" = x
; then
14390 case $cross_compiling:$ac_tool_warned in
14392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14393 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14394 ac_tool_warned
=yes ;;
14396 PKG_CONFIG
=$ac_pt_PKG_CONFIG
14399 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
14403 if test -n "$PKG_CONFIG"; then
14404 _pkg_min_version
=0.9.0
14405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
14406 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
14407 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
14408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14409 $as_echo "yes" >&6; }
14411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14412 $as_echo "no" >&6; }
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNUTLS" >&5
14419 $as_echo_n "checking for GNUTLS... " >&6; }
14421 if test -n "$GNUTLS_CFLAGS"; then
14422 pkg_cv_GNUTLS_CFLAGS
="$GNUTLS_CFLAGS"
14423 elif test -n "$PKG_CONFIG"; then
14424 if test -n "$PKG_CONFIG" && \
14425 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls\""; } >&5
14426 ($PKG_CONFIG --exists --print-errors "gnutls") 2>&5
14428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14429 test $ac_status = 0; }; then
14430 pkg_cv_GNUTLS_CFLAGS
=`$PKG_CONFIG --cflags "gnutls" 2>/dev/null`
14437 if test -n "$GNUTLS_LIBS"; then
14438 pkg_cv_GNUTLS_LIBS
="$GNUTLS_LIBS"
14439 elif test -n "$PKG_CONFIG"; then
14440 if test -n "$PKG_CONFIG" && \
14441 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls\""; } >&5
14442 ($PKG_CONFIG --exists --print-errors "gnutls") 2>&5
14444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14445 test $ac_status = 0; }; then
14446 pkg_cv_GNUTLS_LIBS
=`$PKG_CONFIG --libs "gnutls" 2>/dev/null`
14456 if test $pkg_failed = yes; then
14457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14458 $as_echo "no" >&6; }
14460 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14461 _pkg_short_errors_supported
=yes
14463 _pkg_short_errors_supported
=no
14465 if test $_pkg_short_errors_supported = yes; then
14466 GNUTLS_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors "gnutls" 2>&1`
14468 GNUTLS_PKG_ERRORS
=`$PKG_CONFIG --print-errors "gnutls" 2>&1`
14470 # Put the nasty error message in config.log where it belongs
14471 echo "$GNUTLS_PKG_ERRORS" >&5
14473 cf_enable_gnutls
="no"
14474 elif test $pkg_failed = untried
; then
14475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14476 $as_echo "no" >&6; }
14477 cf_enable_gnutls
="no"
14479 GNUTLS_CFLAGS
=$pkg_cv_GNUTLS_CFLAGS
14480 GNUTLS_LIBS
=$pkg_cv_GNUTLS_LIBS
14481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14482 $as_echo "yes" >&6; }
14484 cf_enable_gnutls
="yes"
14489 if test "$cf_enable_gnutls" = "auto" -a "$cf_enable_openssl" = "yes"; then
14490 cf_enable_gnutls
="no"
14493 if test x
"$cf_enable_openssl" != xno
; then
14495 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
14500 elif test x
"$cf_enable_gnutls" != xno
; then
14502 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
14512 CPPFLAGS
="$save_CPPFLAGS"
14520 # Check whether --enable-assert was given.
14521 if test "${enable_assert+set}" = set; then :
14522 enableval
=$enable_assert; assert
=$enableval
14528 if test "$assert" = no
; then
14530 $as_echo "#define NDEBUG 1" >>confdefs.h
14532 elif test "$assert" = soft
; then
14534 $as_echo "#define SOFT_ASSERT 1" >>confdefs.h
14537 $as_echo "#define NDEBUG 1" >>confdefs.h
14539 elif test "$assert" = yes; then
14543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want to do a profile build" >&5
14544 $as_echo_n "checking if you want to do a profile build... " >&6; }
14545 # Check whether --enable-profile was given.
14546 if test "${enable_profile+set}" = set; then :
14547 enableval
=$enable_profile; profile
=$enableval
14553 if test "$profile" = yes; then
14554 if test "$ac_cv_c_compiler_gnu" = yes; then
14555 CFLAGS
="$CFLAGS -pg -static"
14556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, adding -pg -static" >&5
14557 $as_echo "yes, adding -pg -static" >&6; }
14559 $as_echo "#define RATBOX_PROFILE 1" >>confdefs.h
14562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, profile builds only work with gcc" >&5
14563 $as_echo "no, profile builds only work with gcc" >&6; }
14566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14567 $as_echo "no" >&6; }
14570 # Check whether --enable-balloc was given.
14571 if test "${enable_balloc+set}" = set; then :
14572 enableval
=$enable_balloc; balloc
=$enableval
14578 if test "$balloc" = no
; then
14580 $as_echo "#define NOBALLOC 1" >>confdefs.h
14584 # Check whether --enable-warnings was given.
14585 if test "${enable_warnings+set}" = set; then :
14586 enableval
=$enable_warnings; CFLAGS
="$CFLAGS -Wall -Werror -Wcast-qual -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wshadow -Wwrite-strings -W -Wno-unused -Wunused-function -Wunused-variable"
14599 if test "$prefix" = "NONE"; then
14601 cat >>confdefs.h
<<_ACEOF
14602 #define RB_PREFIX "$ac_default_prefix"
14609 prefix
=`echo $prefix | sed 's/\/$//'`
14611 cat >>confdefs.h
<<_ACEOF
14612 #define RB_PREFIX "$prefix"
14620 ac_config_commands
="$ac_config_commands include/librb-config.h"
14624 ac_config_files
="$ac_config_files src/Makefile Makefile libratbox.pc"
14627 cat >confcache
<<\_ACEOF
14628 # This file is a shell script that caches the results of configure
14629 # tests run on this system so they can be shared between configure
14630 # scripts and configure runs, see configure's option --config-cache.
14631 # It is not useful on other systems. If it contains results you don't
14632 # want to keep, you may remove or edit it.
14634 # config.status only pays attention to the cache file if you give it
14635 # the --recheck option to rerun configure.
14637 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14638 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14639 # following values.
14643 # The following way of writing the cache mishandles newlines in values,
14644 # but we know of no workaround that is simple, portable, and efficient.
14645 # So, we kill variables containing newlines.
14646 # Ultrix sh set writes to stderr and can't be redirected directly,
14647 # and sets the high bit in the cache file unless we assign to the vars.
14649 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14650 eval ac_val
=\$
$ac_var
14654 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14655 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14658 _
| IFS
| as_nl
) ;; #(
14659 BASH_ARGV
| BASH_SOURCE
) eval $ac_var= ;; #(
14660 *) { eval $ac_var=; unset $ac_var;} ;;
14666 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14667 *${as_nl}ac_space
=\
*)
14668 # `set' does not quote correctly, so add quotes: double-quote
14669 # substitution turns \\\\ into \\, and sed turns \\ into \.
14672 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14675 # `set' quotes correctly as required by POSIX, so do not add quotes.
14676 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14685 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14687 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14689 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
14690 if test -w "$cache_file"; then
14691 if test "x$cache_file" != "x/dev/null"; then
14692 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14693 $as_echo "$as_me: updating cache $cache_file" >&6;}
14694 if test ! -f "$cache_file" || test -h "$cache_file"; then
14695 cat confcache
>"$cache_file"
14697 case $cache_file in #(
14699 mv -f confcache
"$cache_file"$$
&&
14700 mv -f "$cache_file"$$
"$cache_file" ;; #(
14702 mv -f confcache
"$cache_file" ;;
14707 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14708 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14713 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
14714 # Let make expand exec_prefix.
14715 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
14717 DEFS
=-DHAVE_CONFIG_H
14722 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
14723 # 1. Remove the extension, and $U if already installed.
14724 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
14725 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
14726 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14727 # will be set to the directory where LIBOBJS objects are built.
14728 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14729 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
14731 LIBOBJS
=$ac_libobjs
14733 LTLIBOBJS
=$ac_ltlibobjs
14736 if test -n "$EXEEXT"; then
14738 am__EXEEXT_FALSE
='#'
14740 am__EXEEXT_TRUE
='#'
14744 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14745 as_fn_error $?
"conditional \"AMDEP\" was never defined.
14746 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14748 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14749 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
14750 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14752 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14753 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
14754 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14757 if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
14758 as_fn_error $?
"conditional \"MINGW\" was never defined.
14759 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14762 : "${CONFIG_STATUS=./config.status}"
14764 ac_clean_files_save
=$ac_clean_files
14765 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
14766 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14767 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14769 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14771 # Generated by $as_me.
14772 # Run this file to recreate the current configuration.
14773 # Compiler output produced by configure, useful for debugging
14774 # configure, is in config.log if it exists.
14777 ac_cs_recheck=false
14780 SHELL=\${CONFIG_SHELL-$SHELL}
14783 cat >>$CONFIG_STATUS <<\_ASEOF
|| as_write_fail
=1
14784 ## -------------------- ##
14785 ## M4sh Initialization. ##
14786 ## -------------------- ##
14788 # Be more Bourne compatible
14789 DUALCASE
=1; export DUALCASE
# for MKS sh
14790 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
14793 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14794 # is contrary to our usage. Disable this feature.
14795 alias -g '${1+"$@"}'='"$@"'
14796 setopt NO_GLOB_SUBST
14798 case `(set -o) 2>/dev/null` in #(
14810 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14811 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14812 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14813 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14814 # Prefer a ksh shell builtin over an external printf program on Solaris,
14815 # but without wasting forks for bash or zsh.
14816 if test -z "$BASH_VERSION$ZSH_VERSION" \
14817 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14818 as_echo='print
-r --'
14819 as_echo_n='print
-rn --'
14820 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14821 as_echo='printf %s
\n'
14822 as_echo_n='printf %s
'
14824 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14825 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
14826 as_echo_n='/usr
/ucb
/echo -n'
14828 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14829 as_echo_n_body='eval
14833 expr "X$arg" : "X\\(.*\\)$as_nl";
14834 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14836 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14838 export as_echo_n_body
14839 as_echo_n='sh
-c $as_echo_n_body as_echo
'
14841 export as_echo_body
14842 as_echo='sh
-c $as_echo_body as_echo
'
14845 # The user is always right.
14846 if test "${PATH_SEPARATOR+set}" != set; then
14848 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14849 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14856 # We need space, tab and new line, in precisely that order. Quoting is
14857 # there to prevent editors from complaining about space-tab.
14858 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14859 # splitting by setting IFS to empty value.)
14862 # Find who we are. Look in the path if we contain no directory separator.
14865 *[\\/]* ) as_myself=$0 ;;
14866 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14867 for as_dir in $PATH
14870 test -z "$as_dir" && as_dir=.
14871 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14877 # We did not find ourselves, most probably we were run as `sh COMMAND'
14878 # in which case we are not to be found in the path.
14879 if test "x$as_myself" = x
; then
14882 if test ! -f "$as_myself"; then
14883 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14887 # Unset variables that we do not need and which cause bugs (e.g. in
14888 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14889 # suppresses any "Segmentation fault" message there. '((' could
14890 # trigger a bug in pdksh 5.2.14.
14891 for as_var
in BASH_ENV ENV MAIL MAILPATH
14892 do eval test x\
${$as_var+set} = xset \
14893 && ( (unset $as_var) || exit 1) >/dev
/null
2>&1 && unset $as_var || :
14906 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
14909 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14910 # ----------------------------------------
14911 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14912 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14913 # script with STATUS, using 1 if that was 0.
14916 as_status
=$1; test $as_status -eq 0 && as_status
=1
14918 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
14919 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14921 $as_echo "$as_me: error: $2" >&2
14922 as_fn_exit
$as_status
14926 # as_fn_set_status STATUS
14927 # -----------------------
14928 # Set $? to STATUS, without forking.
14929 as_fn_set_status
()
14932 } # as_fn_set_status
14934 # as_fn_exit STATUS
14935 # -----------------
14936 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14940 as_fn_set_status
$1
14946 # Portably unset VAR.
14949 { eval $1=; unset $1;}
14951 as_unset
=as_fn_unset
14952 # as_fn_append VAR VALUE
14953 # ----------------------
14954 # Append the text in VALUE to the end of the definition contained in VAR. Take
14955 # advantage of any shell optimizations that allow amortized linear growth over
14956 # repeated appends, instead of the typical quadratic growth present in naive
14958 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
14959 eval 'as_fn_append ()
14970 # as_fn_arith ARG...
14971 # ------------------
14972 # Perform arithmetic evaluation on the ARGs, and store the result in the
14973 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14974 # must be portable across $(()) and expr.
14975 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
14976 eval 'as_fn_arith ()
14983 as_val
=`expr "$@" || test $? -eq 1`
14988 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
14989 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
14995 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14996 as_basename
=basename
15001 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
15007 as_me
=`$as_basename -- "$0" ||
15008 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15009 X"$0" : 'X\(//\)$' \| \
15010 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15012 sed '/^.*\/\([^/][^/]*\)\/*$/{
15026 # Avoid depending upon Character Ranges.
15027 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
15028 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15029 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
15030 as_cr_digits
='0123456789'
15031 as_cr_alnum
=$as_cr_Letters$as_cr_digits
15033 ECHO_C
= ECHO_N
= ECHO_T
=
15034 case `echo -n x` in #(((((
15036 case `echo 'xy\c'` in
15037 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
15039 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
15046 rm -f conf$$ conf$$.exe conf$$.
file
15047 if test -d conf$$.dir
; then
15048 rm -f conf$$.dir
/conf$$.
file
15051 mkdir conf$$.dir
2>/dev
/null
15053 if (echo >conf$$.
file) 2>/dev
/null
; then
15054 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
15056 # ... but there are two gotchas:
15057 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15058 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15059 # In both cases, we have to default to `cp -p'.
15060 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe
||
15062 elif ln conf$$.
file conf$$
2>/dev
/null
; then
15070 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
15071 rmdir conf$$.dir
2>/dev
/null
15076 # Create "$as_dir" as a directory, including parents if necessary.
15081 -*) as_dir
=.
/$as_dir;;
15083 test -d "$as_dir" || eval $as_mkdir_p || {
15087 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15088 *) as_qdir
=$as_dir;;
15090 as_dirs
="'$as_qdir' $as_dirs"
15091 as_dir
=`$as_dirname -- "$as_dir" ||
15092 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15093 X"$as_dir" : 'X\(//\)[^/]' \| \
15094 X"$as_dir" : 'X\(//\)$' \| \
15095 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15096 $as_echo X"$as_dir" |
15097 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15101 /^X\(\/\/\)[^/].*/{
15114 test -d "$as_dir" && break
15116 test -z "$as_dirs" || eval "mkdir $as_dirs"
15117 } || test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
15121 if mkdir -p .
2>/dev
/null
; then
15122 as_mkdir_p
='mkdir -p "$as_dir"'
15124 test -d .
/-p && rmdir .
/-p
15128 if test -x / >/dev
/null
2>&1; then
15129 as_test_x
='test -x'
15131 if ls -dL / >/dev
/null
2>&1; then
15138 if test -d "$1"; then
15144 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15145 ???[sx]*):;;*)false;;esac;fi
15149 as_executable_p
=$as_test_x
15151 # Sed expression to map a string onto a valid CPP name.
15152 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15154 # Sed expression to map a string onto a valid variable name.
15155 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15159 ## ----------------------------------- ##
15160 ## Main body of $CONFIG_STATUS script. ##
15161 ## ----------------------------------- ##
15163 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
15165 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
15166 # Save the log message, to keep $0 and so on meaningful, and to
15167 # report actual input values of CONFIG_FILES etc. instead of their
15168 # values after options handling.
15170 This file was extended by libratbox $as_me devel, which was
15171 generated by GNU Autoconf 2.68. Invocation command line was
15173 CONFIG_FILES = $CONFIG_FILES
15174 CONFIG_HEADERS = $CONFIG_HEADERS
15175 CONFIG_LINKS = $CONFIG_LINKS
15176 CONFIG_COMMANDS = $CONFIG_COMMANDS
15179 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15184 case $ac_config_files in *"
15185 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
15188 case $ac_config_headers in *"
15189 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
15193 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15194 # Files that config.status was made for.
15195 config_files="$ac_config_files"
15196 config_headers="$ac_config_headers"
15197 config_commands="$ac_config_commands"
15201 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
15203 \`$as_me' instantiates files and other configuration actions
15204 from templates according to the current configuration. Unless the files
15205 and actions are specified as TAGs, all are instantiated by default.
15207 Usage: $0 [OPTION]... [TAG]...
15209 -h, --help print this help, then exit
15210 -V, --version print version number and configuration settings, then exit
15211 --config print configuration, then exit
15212 -q, --quiet, --silent
15213 do not print progress messages
15214 -d, --debug don't remove temporary files
15215 --recheck update $as_me by reconfiguring in the same conditions
15216 --file=FILE[:TEMPLATE]
15217 instantiate the configuration file FILE
15218 --header=FILE[:TEMPLATE]
15219 instantiate the configuration header FILE
15221 Configuration files:
15224 Configuration headers:
15227 Configuration commands:
15230 Report bugs to the package provider."
15233 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15234 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15236 libratbox config.status devel
15237 configured by $0, generated by GNU Autoconf 2.68,
15238 with options \\"\$ac_cs_config\\"
15240 Copyright (C) 2010 Free Software Foundation, Inc.
15241 This config.status script is free software; the Free Software Foundation
15242 gives unlimited permission to copy, distribute and modify it."
15249 test -n "\$AWK" || AWK=awk
15252 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
15253 # The default lists apply if the user does not specify any file.
15259 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
15260 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
15264 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
15276 # Handling of the options.
15277 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15279 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15280 $as_echo "$ac_cs_version"; exit ;;
15281 --config | --confi | --conf | --con | --co | --c )
15282 $as_echo "$ac_cs_config"; exit ;;
15283 --debug | --debu | --deb | --de | --d | -d )
15285 --file | --fil | --fi | --f )
15288 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15289 '') as_fn_error $?
"missing file argument" ;;
15291 as_fn_append CONFIG_FILES
" '$ac_optarg'"
15292 ac_need_defaults
=false
;;
15293 --header | --heade | --head | --hea )
15296 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15298 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
15299 ac_need_defaults
=false
;;
15301 # Conflict between --help and --header
15302 as_fn_error $?
"ambiguous option: \`$1'
15303 Try \`$0 --help' for more information.";;
15304 --help | --hel | -h )
15305 $as_echo "$ac_cs_usage"; exit ;;
15306 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15307 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15310 # This is an error.
15311 -*) as_fn_error $?
"unrecognized option: \`$1'
15312 Try \`$0 --help' for more information." ;;
15314 *) as_fn_append ac_config_targets
" $1"
15315 ac_need_defaults
=false
;;
15321 ac_configure_extra_args
=
15323 if $ac_cs_silent; then
15325 ac_configure_extra_args
="$ac_configure_extra_args --silent"
15329 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15330 if \$ac_cs_recheck; then
15331 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15333 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15334 CONFIG_SHELL='$SHELL'
15335 export CONFIG_SHELL
15340 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
15344 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15345 ## Running $as_me. ##
15351 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15355 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15358 # The HP-UX ksh and POSIX shell print the target directory to stdout
15359 # if CDPATH is set.
15360 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15362 sed_quote_subst='$sed_quote_subst'
15363 double_quote_subst='$double_quote_subst'
15364 delay_variable_subst='$delay_variable_subst'
15365 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15366 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15367 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15368 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15369 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15370 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15371 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15372 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15373 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15374 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15375 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15376 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15377 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15378 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15379 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15380 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15381 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15382 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15383 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15384 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15385 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15386 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15387 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15388 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15389 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15390 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15391 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15392 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15393 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15394 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15395 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15396 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15397 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15398 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15399 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15400 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15401 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15402 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15403 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15404 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15405 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15406 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15407 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15408 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15409 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15410 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15411 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15412 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15413 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15414 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15415 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15416 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15417 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15418 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15419 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15420 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15421 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"`'
15422 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15423 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15424 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15425 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15426 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15427 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15428 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15429 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15430 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15431 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15432 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15433 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15434 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15435 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15436 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15437 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15438 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15439 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15440 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15441 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15442 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15443 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15444 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15445 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15446 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15447 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15448 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15449 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15450 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15451 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15452 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15453 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15454 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15455 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15456 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15457 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15458 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15459 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15460 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15461 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15462 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15463 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15464 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15465 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15466 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15467 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15468 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15469 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15470 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15471 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15472 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15473 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15474 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15475 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15476 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15477 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15478 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15479 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15480 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15481 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15482 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15483 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15484 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15485 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15486 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15487 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15488 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15489 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15490 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15491 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15492 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15493 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15494 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15497 LTCFLAGS='$LTCFLAGS'
15498 compiler='$compiler_DEFAULT'
15500 # A function that is used when there is no print builtin or printf.
15501 func_fallback_echo ()
15503 eval 'cat <<_LTECHO_EOF
15508 # Quote evaled strings.
15523 deplibs_check_method \
15528 sharedlib_from_linklib_cmd \
15531 archiver_list_spec \
15537 lt_cv_sys_global_symbol_pipe \
15538 lt_cv_sys_global_symbol_to_cdecl \
15539 lt_cv_sys_global_symbol_to_c_name_address \
15540 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15541 nm_file_list_spec \
15542 lt_prog_compiler_no_builtin_flag \
15543 lt_prog_compiler_pic \
15544 lt_prog_compiler_wl \
15545 lt_prog_compiler_static \
15546 lt_cv_prog_compiler_c_o \
15555 export_dynamic_flag_spec \
15556 whole_archive_flag_spec \
15557 compiler_needs_object \
15559 allow_undefined_flag \
15560 no_undefined_flag \
15561 hardcode_libdir_flag_spec \
15562 hardcode_libdir_separator \
15566 variables_saved_for_relink \
15568 library_names_spec \
15570 install_override_mode \
15574 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15575 *[\\\\\\\`\\"\\\$]*)
15576 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15579 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15584 # Double-quote double-evaled strings.
15585 for var in reload_cmds \
15586 old_postinstall_cmds \
15587 old_postuninstall_cmds \
15589 extract_expsyms_cmds \
15590 old_archive_from_new_cmds \
15591 old_archive_from_expsyms_cmds \
15593 archive_expsym_cmds \
15595 module_expsym_cmds \
15596 export_symbols_cmds \
15600 postuninstall_cmds \
15602 sys_lib_search_path_spec \
15603 sys_lib_dlsearch_path_spec; do
15604 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15605 *[\\\\\\\`\\"\\\$]*)
15606 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15609 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15614 ac_aux_dir='$ac_aux_dir'
15615 xsi_shell='$xsi_shell'
15616 lt_shell_append='$lt_shell_append'
15618 # See if we are running on zsh, and set the options which allow our
15619 # commands through without removal of \ escapes INIT.
15620 if test -n "\${ZSH_VERSION+set}" ; then
15621 setopt NO_GLOB_SUBST
15627 TIMESTAMP='$TIMESTAMP'
15634 if test x$ac_cv_header_stdc = xyes; then
15637 if test x$ac_cv_header_stdlib_h = xyes; then
15638 rb_header_stdlib_h=yes
15640 if test x$ac_cv_header_string_h = xyes; then
15641 rb_header_string_h=yes
15643 if test x$ac_cv_header_memory_h = xyes; then
15644 rb_header_memory_h=yes
15646 if test "x${ac_cv_working_alloca_h+set}" = xset ; then
15647 rb_alloca_h="$ac_cv_working_alloca_h"
15649 rb_alloc_h="$ac_cv_header_alloca_h"
15651 if test x$ac_cv_member_struct_sockaddr_sa_len = xyes; then
15652 rb_sockaddr_sa_len=yes
15654 if test x$ac_cv_header_sys_socket_h = xyes; then
15655 rb_sys_socket_h=yes
15657 if test x$ac_cv_header_sys_types_h = xyes; then
15660 if test x$ac_cv_header_sys_stat_h = xyes; then
15663 if test x$ac_cv_header_sys_time_h = xyes; then
15666 if test x$ac_cv_header_time = xyes; then
15670 if test x$ac_cv_header_stdint_h = xyes; then
15673 if test x$ac_cv_header_inttypes_h = xyes; then
15676 if test x$ac_cv_header_netinet_in_h = xyes; then
15677 rb_netinet_in_h=yes
15680 if test x$ac_cv_header_crypt_h = xyes; then
15683 if test x$ac_cv_header_errno_h = xyes; then
15686 if test x$ac_cv_header_unistd_h = xyes; then
15689 if test x$ac_cv_header_windows_h = xyes; then
15692 if test x$ac_cv_header_winsock2_h = xyes; then
15696 rb_socklen_t=$rb_socklen_t
15698 if test "x$rb_have_sockaddr_storage" = "xyes"; then
15699 rb_sockaddr_storage="yes"
15701 rb_sockaddr_storage="no"
15704 rb_have_ipv6="$have_v6"
15716 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
15718 # Handling of arguments.
15719 for ac_config_target
in $ac_config_targets
15721 case $ac_config_target in
15722 "include/libratbox_config.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/libratbox_config.h" ;;
15723 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
15724 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
15725 "include/librb-config.h") CONFIG_COMMANDS
="$CONFIG_COMMANDS include/librb-config.h" ;;
15726 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
15727 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
15728 "libratbox.pc") CONFIG_FILES
="$CONFIG_FILES libratbox.pc" ;;
15730 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15735 # If the user did not use the arguments to specify the items to instantiate,
15736 # then the envvar interface is used. Set only those that are not.
15737 # We use the long form for the default assignment because of an extremely
15738 # bizarre bug on SunOS 4.1.3.
15739 if $ac_need_defaults; then
15740 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
15741 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
15742 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
15745 # Have a temporary directory for convenience. Make it in the build tree
15746 # simply because there is no reason against having it here, and in addition,
15747 # creating and moving files from /tmp can sometimes cause problems.
15748 # Hook for its removal unless debugging.
15749 # Note that there is a small window in which the directory will not be cleaned:
15750 # after its creation but before its name has been assigned to `$tmp'.
15754 trap 'exit_status=$?
15755 : "${ac_tmp:=$tmp}"
15756 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15758 trap 'as_fn_exit 1' 1 2 13 15
15760 # Create a (secure) tmp directory for tmp files.
15763 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15767 tmp
=.
/conf$$
-$RANDOM
15768 (umask 077 && mkdir "$tmp")
15769 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
15772 # Set up the scripts for CONFIG_FILES section.
15773 # No need to generate them if there are no CONFIG_FILES.
15774 # This happens for instance with `./config.status config.h'.
15775 if test -n "$CONFIG_FILES"; then
15778 ac_cr
=`echo X | tr X '\015'`
15779 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15780 # But we know of no other shell where ac_cr would be empty at this
15781 # point, so we can use a bashism as a fallback.
15782 if test "x$ac_cr" = x
; then
15783 eval ac_cr
=\$
\'\\r
\'
15785 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15786 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15789 ac_cs_awk_cr
=$ac_cr
15792 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15797 echo "cat >conf$$subs.awk <<_ACEOF" &&
15798 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15800 } >conf$$subs.sh ||
15801 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
15802 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15804 for ac_last_try in false false false false false :; do
15805 . ./conf$$subs.sh ||
15806 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
15808 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
15809 if test $ac_delim_n = $ac_delim_num; then
15811 elif $ac_last_try; then
15812 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
15814 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
15817 rm -f conf$$subs.sh
15819 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15820 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
15824 s/^/S["/; s
/!.
*/"]=/
15834 s/\(.\{148\}\)..*/\1/
15836 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
15841 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
15848 s/\(.\{148\}\)..*/\1/
15850 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
15854 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
15859 ' <conf$$subs.awk | sed '
15864 ' >>$CONFIG_STATUS || ac_write_fail=1
15865 rm -f conf$$subs.awk
15866 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15868 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
15869 for (key in S) S_is_set[key] = 1
15875 nfields = split(line, field, "@
")
15877 len = length(field[1])
15878 for (i = 2; i < nfields; i++) {
15880 keylen = length(key)
15881 if (S_is_set[key]) {
15883 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15884 len += length(value) + length(field[++i])
15895 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15896 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15897 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
15900 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
15901 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
15904 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15905 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
15906 # trailing colons and then remove the whole line if VPATH becomes empty
15907 # (actually we leave an empty line to preserve line numbers).
15908 if test "x
$srcdir" = x.; then
15909 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15927 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15928 fi # test -n "$CONFIG_FILES"
15930 # Set up the scripts for CONFIG_HEADERS section.
15931 # No need to generate them if there are no CONFIG_HEADERS.
15932 # This happens for instance with `./config.status Makefile'.
15933 if test -n "$CONFIG_HEADERS"; then
15934 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
15938 # Transform confdefs.h into an awk script `defines.awk', embedded as
15939 # here-document in config.status, that substitutes the proper values into
15940 # config.h.in to produce config.h.
15942 # Create a delimiter string that does not exist in confdefs.h, to ease
15943 # handling of long lines.
15945 for ac_last_try in false false :; do
15946 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
15947 if test -z "$ac_tt"; then
15949 elif $ac_last_try; then
15950 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
15952 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
15956 # For the awk script, D is an array of macro values keyed by name,
15957 # likewise P contains macro parameters if any. Preserve backslash
15958 # newline sequences.
15960 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15962 s/.\{148\}/&'"$ac_delim"'/g
15965 s/^[ ]*#[ ]*define[ ][ ]*/ /
15972 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
15974 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
15978 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
15979 D["\
1"]=" \
3\\\\\\n
"\\/p
15981 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
15986 s/.\{148\}/&'"$ac_delim"'/g
15991 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
15994 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
15996 ' <confdefs.h | sed '
15997 s/'"$ac_delim"'/"\\\
15998 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16000 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16001 for (key in D) D_is_set[key] = 1
16004 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16006 split(line, arg, " ")
16007 if (arg[1] == "#") {
16011 defundef
= substr
(arg
[1], 2)
16014 split(mac1
, mac2
, "(") #)
16016 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
16017 if (D_is_set
[macro
]) {
16018 # Preserve the white space surrounding the "#".
16019 print prefix
"define", macro P
[macro
] D
[macro
]
16022 # Replace #undef with comments. This is necessary, for example,
16023 # in the case of _POSIX_SOURCE, which is predefined and required
16024 # on some systems where configure will not decide to define it.
16025 if (defundef
== "undef") {
16026 print
"/*", prefix defundef
, macro
, "*/"
16034 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
16035 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
16036 fi # test -n "$CONFIG_HEADERS"
16039 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16044 :[FHLC
]) ac_mode
=$ac_tag; continue;;
16046 case $ac_mode$ac_tag in
16048 :L
* | :C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
16049 :[FH
]-) ac_tag
=-:-;;
16050 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
16067 -) ac_f
="$ac_tmp/stdin";;
16068 *) # Look for the file first in the build tree, then in the source tree
16069 # (if the path is not absolute). The absolute path cannot be DOS-style,
16070 # because $ac_f cannot contain `:'.
16074 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
16076 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16078 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16079 as_fn_append ac_file_inputs
" '$ac_f'"
16082 # Let's still pretend it is `configure' which instantiates (i.e., don't
16083 # use $as_me), people would be surprised to read:
16084 # /* config.h. Generated by config.status. */
16085 configure_input
='Generated from '`
16086 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16088 if test x
"$ac_file" != x
-; then
16089 configure_input
="$ac_file. $configure_input"
16090 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16091 $as_echo "$as_me: creating $ac_file" >&6;}
16093 # Neutralize special characters interpreted by sed in replacement strings.
16094 case $configure_input in #(
16095 *\
&* | *\
|* | *\\* )
16096 ac_sed_conf_input
=`$as_echo "$configure_input" |
16097 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16098 *) ac_sed_conf_input
=$configure_input;;
16102 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16103 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
16108 ac_dir
=`$as_dirname -- "$ac_file" ||
16109 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16110 X"$ac_file" : 'X\(//\)[^/]' \| \
16111 X"$ac_file" : 'X\(//\)$' \| \
16112 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16113 $as_echo X"$ac_file" |
16114 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16118 /^X\(\/\/\)[^/].*/{
16131 as_dir
="$ac_dir"; as_fn_mkdir_p
16135 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16137 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16138 # A ".." for each directory in $ac_dir_suffix.
16139 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16140 case $ac_top_builddir_sub in
16141 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16142 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
16145 ac_abs_top_builddir
=$ac_pwd
16146 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
16147 # for backward compatibility:
16148 ac_top_builddir
=$ac_top_build_prefix
16151 .
) # We are building in place.
16153 ac_top_srcdir
=$ac_top_builddir_sub
16154 ac_abs_top_srcdir
=$ac_pwd ;;
16155 [\\/]* | ?
:[\\/]* ) # Absolute name.
16156 ac_srcdir
=$srcdir$ac_dir_suffix;
16157 ac_top_srcdir
=$srcdir
16158 ac_abs_top_srcdir
=$srcdir ;;
16159 *) # Relative name.
16160 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
16161 ac_top_srcdir
=$ac_top_build_prefix$srcdir
16162 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
16164 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
16174 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
16175 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
16177 ac_MKDIR_P
=$MKDIR_P
16179 [\\/$
]* | ?
:[\\/]* ) ;;
16180 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
16184 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
16185 # If the template does not know about datarootdir, expand it.
16186 # FIXME: This hack should be removed a few years after 2.60.
16187 ac_datarootdir_hack
=; ac_datarootdir_seen
=
16198 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16199 *datarootdir
*) ac_datarootdir_seen
=yes;;
16200 *@datadir@
*|*@docdir@
*|*@infodir@
*|*@localedir@
*|*@mandir@
*)
16201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16202 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16204 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16205 ac_datarootdir_hack='
16206 s&@datadir@&$datadir&g
16207 s&@docdir@&$docdir&g
16208 s&@infodir@&$infodir&g
16209 s&@localedir@&$localedir&g
16210 s&@mandir@&$mandir&g
16211 s&\\\${datarootdir}&$datarootdir&g' ;;
16215 # Neutralize VPATH when `$srcdir' = `.'.
16216 # Shell code in configure.ac might set extrasub.
16217 # FIXME: do we really want to maintain this feature?
16218 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16219 ac_sed_extra="$ac_vpsub
16222 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
16224 /@
[a
-zA-Z_][a
-zA-Z_0-9]*@
/!b
16225 s
|@configure_input@
|$ac_sed_conf_input|;t t
16226 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
16227 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
16228 s
&@srcdir@
&$ac_srcdir&;t t
16229 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
16230 s
&@top_srcdir@
&$ac_top_srcdir&;t t
16231 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
16232 s
&@builddir@
&$ac_builddir&;t t
16233 s
&@abs_builddir@
&$ac_abs_builddir&;t t
16234 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
16235 s
&@INSTALL@
&$ac_INSTALL&;t t
16236 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
16237 $ac_datarootdir_hack
16239 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
16240 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
16242 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16243 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
16244 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16245 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
16246 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
16247 which seems to be undefined. Please make sure it is defined" >&5
16248 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
16249 which seems to be undefined. Please make sure it is defined" >&2;}
16251 rm -f "$ac_tmp/stdin"
16253 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16254 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16256 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16262 if test x"$ac_file" != x-; then
16264 $as_echo "/* $configure_input */" \
16265 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16266 } >"$ac_tmp/config.h" \
16267 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16268 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16269 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16270 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16273 mv "$ac_tmp/config.h" "$ac_file" \
16274 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16277 $as_echo "/* $configure_input */" \
16278 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16279 || as_fn_error $? "could not create -" "$LINENO" 5
16281 # Compute "$ac_file"'s index
in $config_headers.
16284 for _am_header
in $config_headers :; do
16285 case $_am_header in
16286 $_am_arg | $_am_arg:* )
16289 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
16292 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16293 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16294 X"$_am_arg" : 'X\(//\)[^/]' \| \
16295 X"$_am_arg" : 'X\(//\)$' \| \
16296 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16297 $as_echo X"$_am_arg" |
16298 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16302 /^X\(\/\/\)[^/].*/{
16314 s/.*/./; q'`/stamp
-h$_am_stamp_count
16317 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16318 $as_echo "$as_me: executing $ac_file commands" >&6;}
16323 case $ac_file$ac_mode in
16324 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" || {
16325 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16326 # are listed without --file. Let's play safe and only enable the eval
16327 # if we detect the quoting.
16328 case $CONFIG_FILES in
16329 *\'*) eval set x
"$CONFIG_FILES" ;;
16330 *) set x
$CONFIG_FILES ;;
16335 # Strip MF so we end up with the name of the file.
16336 mf
=`echo "$mf" | sed -e 's/:.*$//'`
16337 # Check whether this is an Automake generated Makefile or not.
16338 # We used to match only the files named `Makefile.in', but
16339 # some people rename them; so instead we look at the file content.
16340 # Grep'ing the first line is not enough: some people post-process
16341 # each Makefile.in and add a new line on top of each file to say so.
16342 # Grep'ing the whole file is not good either: AIX grep has a line
16343 # limit of 2048, but all sed's we know have understand at least 4000.
16344 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X
>/dev
/null
2>&1; then
16345 dirpart
=`$as_dirname -- "$mf" ||
16346 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16347 X"$mf" : 'X\(//\)[^/]' \| \
16348 X"$mf" : 'X\(//\)$' \| \
16349 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16351 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16355 /^X\(\/\/\)[^/].*/{
16371 # Extract the definition of DEPDIR, am__include, and am__quote
16372 # from the Makefile without running `make'.
16373 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
16374 test -z "$DEPDIR" && continue
16375 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
16376 test -z "am__include" && continue
16377 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
16378 # When using ansi2knr, U may be empty or an underscore; expand it
16379 U
=`sed -n 's/^U = //p' < "$mf"`
16380 # Find all dependency output files, they are included files with
16381 # $(DEPDIR) in their names. We invoke sed twice because it is the
16382 # simplest approach to changing $(DEPDIR) to its actual value in the
16384 for file in `sed -n "
16385 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16386 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16387 # Make sure the directory exists.
16388 test -f "$dirpart/$file" && continue
16389 fdir
=`$as_dirname -- "$file" ||
16390 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16391 X"$file" : 'X\(//\)[^/]' \| \
16392 X"$file" : 'X\(//\)$' \| \
16393 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16394 $as_echo X"$file" |
16395 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16399 /^X\(\/\/\)[^/].*/{
16412 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
16413 # echo "creating $dirpart/$file"
16414 echo '# dummy' > "$dirpart/$file"
16421 # See if we are running on zsh, and set the options which allow our
16422 # commands through without removal of \ escapes.
16423 if test -n "${ZSH_VERSION+set}" ; then
16424 setopt NO_GLOB_SUBST
16427 cfgfile
="${ofile}T"
16428 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16431 cat <<_LT_EOF >> "$cfgfile"
16434 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16435 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16436 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16437 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16439 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16440 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
16442 # Written by Gordon Matzigkeit, 1996
16444 # This file is part of GNU Libtool.
16446 # GNU Libtool is free software; you can redistribute it and/or
16447 # modify it under the terms of the GNU General Public License as
16448 # published by the Free Software Foundation; either version 2 of
16449 # the License, or (at your option) any later version.
16451 # As a special exception to the GNU General Public License,
16452 # if you distribute this file as part of a program or library that
16453 # is built using GNU Libtool, you may include this file under the
16454 # same distribution terms that you use for the rest of that program.
16456 # GNU Libtool is distributed in the hope that it will be useful,
16457 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16458 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16459 # GNU General Public License for more details.
16461 # You should have received a copy of the GNU General Public License
16462 # along with GNU Libtool; see the file COPYING. If not, a copy
16463 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16464 # obtained by writing to the Free Software Foundation, Inc.,
16465 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16468 # The names of the tagged configurations supported by this script.
16471 # ### BEGIN LIBTOOL CONFIG
16473 # Whether or not to build static libraries.
16474 build_old_libs=$enable_static
16476 # Whether or not to build shared libraries.
16477 build_libtool_libs=$enable_shared
16479 # Which release of libtool.m4 was used?
16480 macro_version=$macro_version
16481 macro_revision=$macro_revision
16483 # What type of objects to build.
16486 # Whether or not to optimize for fast installation.
16487 fast_install=$enable_fast_install
16489 # Shell to use when invoking shell scripts.
16492 # An echo program that protects backslashes.
16495 # The PATH separator for the build system.
16496 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16499 host_alias=$host_alias
16503 # The build system.
16504 build_alias=$build_alias
16508 # A sed program that does not truncate output.
16511 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16512 Xsed="\$SED -e 1s/^X//"
16514 # A grep program that handles long lines.
16520 # A literal string matcher.
16523 # A BSD- or MS-compatible name lister.
16526 # Whether we need soft or hard links.
16529 # What is the maximum length of a command?
16530 max_cmd_len=$max_cmd_len
16532 # Object file suffix (normally "o").
16535 # Executable file suffix (normally "").
16538 # whether the shell understands "unset".
16541 # turn spaces into newlines.
16544 # turn newlines into spaces.
16547 # convert \$build file names to \$host format.
16548 to_host_file_cmd=$lt_cv_to_host_file_cmd
16550 # convert \$build files to toolchain format.
16551 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16553 # An object symbol dumper.
16554 OBJDUMP=$lt_OBJDUMP
16556 # Method to check whether dependent libraries are shared objects.
16557 deplibs_check_method=$lt_deplibs_check_method
16559 # Command to use when deplibs_check_method = "file_magic".
16560 file_magic_cmd=$lt_file_magic_cmd
16562 # How to find potential files when deplibs_check_method = "file_magic".
16563 file_magic_glob=$lt_file_magic_glob
16565 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16566 want_nocaseglob=$lt_want_nocaseglob
16568 # DLL creation program.
16569 DLLTOOL=$lt_DLLTOOL
16571 # Command to associate shared and link libraries.
16572 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16577 # Flags to create an archive.
16578 AR_FLAGS=$lt_AR_FLAGS
16580 # How to feed a file listing to the archiver.
16581 archiver_list_spec=$lt_archiver_list_spec
16583 # A symbol stripping program.
16586 # Commands used to install an old-style archive.
16588 old_postinstall_cmds=$lt_old_postinstall_cmds
16589 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16591 # Whether to use a lock for old archive extraction.
16592 lock_old_archive_extraction=$lock_old_archive_extraction
16597 # LTCC compiler flags.
16598 LTCFLAGS=$lt_CFLAGS
16600 # Take the output of nm and produce a listing of raw symbols and C names.
16601 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16603 # Transform the output of nm in a proper C declaration.
16604 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16606 # Transform the output of nm in a C name address pair.
16607 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16609 # Transform the output of nm in a C name address pair when lib prefix is needed.
16610 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16612 # Specify filename containing input files for \$NM.
16613 nm_file_list_spec=$lt_nm_file_list_spec
16615 # The root where to search for dependent libraries,and in which our libraries should be installed.
16616 lt_sysroot=$lt_sysroot
16618 # The name of the directory that contains temporary libtool files.
16621 # Used to examine libraries when file_magic_cmd begins with "file".
16622 MAGIC_CMD=$MAGIC_CMD
16624 # Must we lock files when doing compilation?
16625 need_locks=$lt_need_locks
16628 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16630 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16631 DSYMUTIL=$lt_DSYMUTIL
16633 # Tool to change global to local symbols on Mac OS X.
16636 # Tool to manipulate fat objects and archives on Mac OS X.
16639 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16642 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16643 OTOOL64=$lt_OTOOL64
16645 # Old archive suffix (normally "a").
16648 # Shared library suffix (normally ".so").
16649 shrext_cmds=$lt_shrext_cmds
16651 # The commands to extract the exported symbol list from a shared archive.
16652 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16654 # Variables whose values should be saved in libtool wrapper scripts and
16655 # restored at link time.
16656 variables_saved_for_relink=$lt_variables_saved_for_relink
16658 # Do we need the "lib" prefix for modules?
16659 need_lib_prefix=$need_lib_prefix
16661 # Do we need a version for libraries?
16662 need_version=$need_version
16664 # Library versioning type.
16665 version_type=$version_type
16667 # Shared library runtime path variable.
16668 runpath_var=$runpath_var
16670 # Shared library path variable.
16671 shlibpath_var=$shlibpath_var
16673 # Is shlibpath searched before the hard-coded library search path?
16674 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16676 # Format of library name prefix.
16677 libname_spec=$lt_libname_spec
16679 # List of archive names. First name is the real one, the rest are links.
16680 # The last name is the one that the linker finds with -lNAME
16681 library_names_spec=$lt_library_names_spec
16683 # The coded name of the library, if different from the real name.
16684 soname_spec=$lt_soname_spec
16686 # Permission mode override for installation of shared libraries.
16687 install_override_mode=$lt_install_override_mode
16689 # Command to use after installation of a shared archive.
16690 postinstall_cmds=$lt_postinstall_cmds
16692 # Command to use after uninstallation of a shared archive.
16693 postuninstall_cmds=$lt_postuninstall_cmds
16695 # Commands used to finish a libtool library installation in a directory.
16696 finish_cmds=$lt_finish_cmds
16698 # As "finish_cmds", except a single script fragment to be evaled but
16700 finish_eval=$lt_finish_eval
16702 # Whether we should hardcode library paths into libraries.
16703 hardcode_into_libs=$hardcode_into_libs
16705 # Compile-time system search path for libraries.
16706 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16708 # Run-time system search path for libraries.
16709 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16711 # Whether dlopen is supported.
16712 dlopen_support=$enable_dlopen
16714 # Whether dlopen of programs is supported.
16715 dlopen_self=$enable_dlopen_self
16717 # Whether dlopen of statically linked programs is supported.
16718 dlopen_self_static=$enable_dlopen_self_static
16720 # Commands to strip libraries.
16721 old_striplib=$lt_old_striplib
16722 striplib=$lt_striplib
16725 # The linker used to build libraries.
16728 # How to create reloadable object files.
16729 reload_flag=$lt_reload_flag
16730 reload_cmds=$lt_reload_cmds
16732 # Commands used to build an old-style archive.
16733 old_archive_cmds=$lt_old_archive_cmds
16735 # A language specific compiler.
16738 # Is the compiler the GNU compiler?
16741 # Compiler flag to turn off builtin functions.
16742 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16744 # Additional compiler flags for building library objects.
16745 pic_flag=$lt_lt_prog_compiler_pic
16747 # How to pass a linker flag through the compiler.
16748 wl=$lt_lt_prog_compiler_wl
16750 # Compiler flag to prevent dynamic linking.
16751 link_static_flag=$lt_lt_prog_compiler_static
16753 # Does compiler simultaneously support -c and -o options?
16754 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16756 # Whether or not to add -lc for building shared libraries.
16757 build_libtool_need_lc=$archive_cmds_need_lc
16759 # Whether or not to disallow shared libs when runtime libs are static.
16760 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16762 # Compiler flag to allow reflexive dlopens.
16763 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16765 # Compiler flag to generate shared objects directly from archives.
16766 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16768 # Whether the compiler copes with passing no objects directly.
16769 compiler_needs_object=$lt_compiler_needs_object
16771 # Create an old-style archive from a shared archive.
16772 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16774 # Create a temporary old-style archive to link instead of a shared archive.
16775 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16777 # Commands used to build a shared archive.
16778 archive_cmds=$lt_archive_cmds
16779 archive_expsym_cmds=$lt_archive_expsym_cmds
16781 # Commands used to build a loadable module if different from building
16782 # a shared archive.
16783 module_cmds=$lt_module_cmds
16784 module_expsym_cmds=$lt_module_expsym_cmds
16786 # Whether we are building with GNU ld or not.
16787 with_gnu_ld=$lt_with_gnu_ld
16789 # Flag that allows shared libraries with undefined symbols to be built.
16790 allow_undefined_flag=$lt_allow_undefined_flag
16792 # Flag that enforces no undefined symbols.
16793 no_undefined_flag=$lt_no_undefined_flag
16795 # Flag to hardcode \$libdir into a binary during linking.
16796 # This must work even if \$libdir does not exist
16797 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16799 # Whether we need a single "-rpath" flag with a separated argument.
16800 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16802 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16803 # DIR into the resulting binary.
16804 hardcode_direct=$hardcode_direct
16806 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16807 # DIR into the resulting binary and the resulting library dependency is
16808 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16809 # library is relocated.
16810 hardcode_direct_absolute=$hardcode_direct_absolute
16812 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16813 # into the resulting binary.
16814 hardcode_minus_L=$hardcode_minus_L
16816 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16817 # into the resulting binary.
16818 hardcode_shlibpath_var=$hardcode_shlibpath_var
16820 # Set to "yes" if building a shared library automatically hardcodes DIR
16821 # into the library and all subsequent libraries and executables linked
16823 hardcode_automatic=$hardcode_automatic
16825 # Set to yes if linker adds runtime paths of dependent libraries
16826 # to runtime path list.
16827 inherit_rpath=$inherit_rpath
16829 # Whether libtool must link a program against all its dependency libraries.
16830 link_all_deplibs=$link_all_deplibs
16832 # Set to "yes" if exported symbols are required.
16833 always_export_symbols=$always_export_symbols
16835 # The commands to list exported symbols.
16836 export_symbols_cmds=$lt_export_symbols_cmds
16838 # Symbols that should not be listed in the preloaded symbols.
16839 exclude_expsyms=$lt_exclude_expsyms
16841 # Symbols that must always be exported.
16842 include_expsyms=$lt_include_expsyms
16844 # Commands necessary for linking programs (against libraries) with templates.
16845 prelink_cmds=$lt_prelink_cmds
16847 # Commands necessary for finishing linking programs.
16848 postlink_cmds=$lt_postlink_cmds
16850 # Specify filename containing input files.
16851 file_list_spec=$lt_file_list_spec
16853 # How to hardcode a shared library path into an executable.
16854 hardcode_action=$hardcode_action
16856 # ### END LIBTOOL CONFIG
16862 cat <<\_LT_EOF
>> "$cfgfile"
16863 # AIX sometimes has problems with the GCC collect2 program. For some
16864 # reason, if we set the COLLECT_NAMES environment variable, the problems
16865 # vanish in a puff of smoke.
16866 if test "X${COLLECT_NAMES+set}" != Xset
; then
16868 export COLLECT_NAMES
16875 ltmain
="$ac_aux_dir/ltmain.sh"
16878 # We use sed instead of cat because bash on DJGPP gets confused if
16879 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16880 # text mode, it properly converts lines to CR/LF. This bash problem
16881 # is reportedly fixed, but why not run on old versions too?
16882 sed '$q' "$ltmain" >> "$cfgfile" \
16883 || (rm -f "$cfgfile"; exit 1)
16885 if test x
"$xsi_shell" = xyes
; then
16886 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
16890 \ */*) func_dirname_result="${1%/*}${2}" ;;\
16891 \ * ) func_dirname_result="${3}" ;;\
16893 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
16894 && mv -f "$cfgfile.tmp" "$cfgfile" \
16895 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16896 test 0 -eq $?
|| _lt_function_replace_fail
=:
16899 sed -e '/^func_basename ()$/,/^} # func_basename /c\
16902 \ func_basename_result="${1##*/}"\
16903 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
16904 && mv -f "$cfgfile.tmp" "$cfgfile" \
16905 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16906 test 0 -eq $?
|| _lt_function_replace_fail
=:
16909 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
16910 func_dirname_and_basename ()\
16913 \ */*) func_dirname_result="${1%/*}${2}" ;;\
16914 \ * ) func_dirname_result="${3}" ;;\
16916 \ func_basename_result="${1##*/}"\
16917 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
16918 && mv -f "$cfgfile.tmp" "$cfgfile" \
16919 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16920 test 0 -eq $?
|| _lt_function_replace_fail
=:
16923 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
16926 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
16927 \ # positional parameters, so assign one to ordinary parameter first.\
16928 \ func_stripname_result=${3}\
16929 \ func_stripname_result=${func_stripname_result#"${1}"}\
16930 \ func_stripname_result=${func_stripname_result%"${2}"}\
16931 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
16932 && mv -f "$cfgfile.tmp" "$cfgfile" \
16933 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16934 test 0 -eq $?
|| _lt_function_replace_fail
=:
16937 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
16938 func_split_long_opt ()\
16940 \ func_split_long_opt_name=${1%%=*}\
16941 \ func_split_long_opt_arg=${1#*=}\
16942 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
16943 && mv -f "$cfgfile.tmp" "$cfgfile" \
16944 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16945 test 0 -eq $?
|| _lt_function_replace_fail
=:
16948 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
16949 func_split_short_opt ()\
16951 \ func_split_short_opt_arg=${1#??}\
16952 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
16953 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
16954 && mv -f "$cfgfile.tmp" "$cfgfile" \
16955 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16956 test 0 -eq $?
|| _lt_function_replace_fail
=:
16959 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
16963 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
16964 \ *) func_lo2o_result=${1} ;;\
16966 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
16967 && mv -f "$cfgfile.tmp" "$cfgfile" \
16968 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16969 test 0 -eq $?
|| _lt_function_replace_fail
=:
16972 sed -e '/^func_xform ()$/,/^} # func_xform /c\
16975 func_xform_result=${1%.*}.lo\
16976 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
16977 && mv -f "$cfgfile.tmp" "$cfgfile" \
16978 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16979 test 0 -eq $?
|| _lt_function_replace_fail
=:
16982 sed -e '/^func_arith ()$/,/^} # func_arith /c\
16985 func_arith_result=$(( $* ))\
16986 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
16987 && mv -f "$cfgfile.tmp" "$cfgfile" \
16988 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16989 test 0 -eq $?
|| _lt_function_replace_fail
=:
16992 sed -e '/^func_len ()$/,/^} # func_len /c\
16995 func_len_result=${#1}\
16996 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
16997 && mv -f "$cfgfile.tmp" "$cfgfile" \
16998 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16999 test 0 -eq $?
|| _lt_function_replace_fail
=:
17003 if test x
"$lt_shell_append" = xyes
; then
17004 sed -e '/^func_append ()$/,/^} # func_append /c\
17007 eval "${1}+=\\${2}"\
17008 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17009 && mv -f "$cfgfile.tmp" "$cfgfile" \
17010 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17011 test 0 -eq $?
|| _lt_function_replace_fail
=:
17014 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17015 func_append_quoted ()\
17017 \ func_quote_for_eval "${2}"\
17018 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17019 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17020 && mv -f "$cfgfile.tmp" "$cfgfile" \
17021 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17022 test 0 -eq $?
|| _lt_function_replace_fail
=:
17025 # Save a `func_append' function call where possible by direct use of '+='
17026 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17027 && mv -f "$cfgfile.tmp" "$cfgfile" \
17028 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17029 test 0 -eq $?
|| _lt_function_replace_fail
=:
17031 # Save a `func_append' function call even when '+=' is not available
17032 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17033 && mv -f "$cfgfile.tmp" "$cfgfile" \
17034 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17035 test 0 -eq $?
|| _lt_function_replace_fail
=:
17038 if test x
"$_lt_function_replace_fail" = x
":"; then
17039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17040 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17044 mv -f "$cfgfile" "$ofile" ||
17045 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17049 "include/librb-config.h":C
)
17050 outfile
=include
/librb
-config.h.tmp
17051 cat > $outfile <<\_______EOF
17053 * librb
-config.h
: libratbox config
file. Please modify configure.ac
17056 #ifndef __LIBRB_CONFIG_H
17057 #define __LIBRB_CONFIG_H
17061 if test "x$rb_have_ipv6" = "xyes"; then
17062 echo "#define RB_IPV6 1" >> $outfile
17065 if test "x$rb_windows_h" = "xyes"; then
17066 echo '#define WIN32_LEAN_AND_MEAN 1' >> $outfile
17067 echo '#include <windows.h>' >> $outfile
17068 echo '#include <winsock2.h>' >> $outfile
17069 echo '#include <iphlpapi.h>' >> $outfile
17072 if test "x$rb_alloca_h" = "xyes"; then
17073 echo '#define RB_HAVE_ALLOCA_H 1' >> $outfile
17076 if test "x$rb_header_stdc" = "xyes"; then
17077 echo '#include <stdlib.h>' >> $outfile
17078 echo '#include <stddef.h>' >> $outfile
17079 elif test "x$rb_header_stdlib" = "xyes"; then
17080 echo '#include <stdlib.h>' >> $outfile
17083 if test "x$rb_header_string_h" = "xyes"; then
17084 echo '#include <string.h>' >> $outfile
17087 if test "x$rb_stdint_h" = "xyes"; then
17088 echo '#include <stdint.h>' >> $outfile
17091 if test "x$rb_inttypes_h" = "xyes"; then
17092 echo '#include <inttypes.h>' >> $outfile
17095 if test "x$rb_sys_types_h" = "xyes"; then
17096 echo '#include <sys/types.h>' >> $outfile
17098 if test "x$rb_sys_time_h" = "xyes"; then
17099 echo '#include <sys/time.h>' >> $outfile
17101 if test "x$rb_sys_stat_h" = "xyes"; then
17102 echo '#include <sys/stat.h>' >> $outfile
17104 if test "x$rb_time_h" = "xyes"; then
17105 echo '#include <time.h>' >> $outfile
17108 if test "x$rb_sys_socket_h" = "xyes"; then
17109 echo '#include <sys/socket.h>' >> $outfile
17112 if test "x$rb_netinet_in_h" = "xyes"; then
17113 echo '#include <netinet/in.h>' >> $outfile
17116 if test "x$rb_arpa_inet_h" = "xyes"; then
17117 echo '#include <arpa/inet.h>' >> $outfile
17120 if test "x$rb_unistd_h" = "xyes"; then
17121 echo '#include <unistd.h>' >> $outfile
17124 if test "x$rb_crypt_h" = "xyes"; then
17125 echo '#include <crypt.h>' >> $outfile
17128 if test "x$rb_errno_h" = "xyes"; then
17129 echo '#include <errno.h>' >> $outfile
17132 echo "typedef $rb_socklen_t rb_socklen_t;" >> $outfile
17135 if test "x$rb_sockaddr_sa_len" = "xyes"; then
17136 echo '#define RB_SOCKADDR_HAS_SA_LEN 1' >> $outfile
17139 if test "x$rb_sockaddr_storage" = "xyes"; then
17140 echo '#define rb_sockaddr_storage sockaddr_storage' >> $outfile
17142 echo 'struct rb_sockaddr_storage { uint8_t _padding[128]; };' >> $outfile
17145 cat >> $outfile <<\_______EOF
17146 #endif /* __LIBRB_CONFIG_H */
17149 if cmp -s $outfile include
/librb
-config.h
; then
17150 { $as_echo "$as_me:${as_lineno-$LINENO}: include/librb-config.h is unchanged" >&5
17151 $as_echo "$as_me: include/librb-config.h is unchanged" >&6;}
17152 ${rb_rm} -f $outfile
17154 ${rb_mv} $outfile include
/librb
-config.h
17165 ac_clean_files
=$ac_clean_files_save
17167 test $ac_write_fail = 0 ||
17168 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
17171 # configure is writing to config.log, and then calls config.status.
17172 # config.status does its own redirection, appending to config.log.
17173 # Unfortunately, on DOS this fails, as config.log is still kept open
17174 # by configure, so config.status won't be able to write to it; its
17175 # output is simply discarded. So we exec the FD to /dev/null,
17176 # effectively closing config.log, so it can be properly (re)opened and
17177 # appended to by config.status. When coming back to configure, we
17178 # need to make the FD available again.
17179 if test "$no_create" != yes; then
17181 ac_config_status_args
=
17182 test "$silent" = yes &&
17183 ac_config_status_args
="$ac_config_status_args --quiet"
17185 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
17187 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17188 # would make configure fail if this is the last instruction.
17189 $ac_cs_success || as_fn_exit
1
17191 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
17192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17193 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17199 echo "Compiling $PACKAGE_NAME $PACKAGE_VERSION"
17202 echo "Installing into: $prefix"
17204 echo "IPv6 support ................... $have_v6"
17205 echo "Assert debugging ............... $assert"
17206 echo "Block allocator ................ $balloc"
17207 echo "SSL Type........................ $SSL_TYPE"