2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for libratbox devel.
5 # $Id: configure.ac 26260 2008-12-10 04:08:39Z androsyn $
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE
=1; export DUALCASE
# for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print
-rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
55 as_echo_n='/usr
/ucb
/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh
-c $as_echo_n_body as_echo
'
71 as_echo='sh
-c $as_echo_body as_echo
'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x
; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var
in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\
${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev
/null
2>&1 && unset $as_var || :
135 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
140 _as_can_reexec
=no
; export _as_can_reexec
;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
147 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
149 *v
*x
* | *x
*v
* ) as_opts
=-vx ;;
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec
=; unset _as_can_reexec
;}
162 if test "x$CONFIG_SHELL" = x
; then
163 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
171 case \`(set -o) 2>/dev/null\` in #(
179 as_required
="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
197 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210 if (eval "$as_required") 2>/dev
/null
; then :
215 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
218 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
220 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
223 test -z "$as_dir" && as_dir
=.
227 for as_base
in sh bash ksh sh5
; do
228 # Try only shells that exist, to save several forks.
229 as_shell
=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
232 CONFIG_SHELL
=$as_shell as_have_required
=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
243 CONFIG_SHELL
=$SHELL as_have_required
=yes
248 if test "x$CONFIG_SHELL" != x
; then :
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
256 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
258 *v
*x
* | *x
*v
* ) as_opts
=-vx ;;
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
270 if test x
$as_have_required = xno
; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x
${ZSH_VERSION+set} = xset
; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
277 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
278 $0: including any error possibly output before this
279 $0: message. Then install a modern shell, or manually run
280 $0: the script under such a shell if you do have one."
286 SHELL
=${CONFIG_SHELL-/bin/sh}
288 # Unset more variables known to interfere with behavior of common tools.
289 CLICOLOR_FORCE
= GREP_OPTIONS
=
290 unset CLICOLOR_FORCE GREP_OPTIONS
292 ## --------------------- ##
293 ## M4sh Shell Functions. ##
294 ## --------------------- ##
297 # Portably unset VAR.
300 { eval $1=; unset $1;}
304 # as_fn_set_status STATUS
305 # -----------------------
306 # Set $? to STATUS, without forking.
314 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
324 # Create "$as_dir" as a directory, including parents if necessary.
329 -*) as_dir
=.
/$as_dir;;
331 test -d "$as_dir" || eval $as_mkdir_p || {
335 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
338 as_dirs
="'$as_qdir' $as_dirs"
339 as_dir
=`$as_dirname -- "$as_dir" ||
340 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
341 X"$as_dir" : 'X\(//\)[^/]' \| \
342 X"$as_dir" : 'X\(//\)$' \| \
343 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
344 $as_echo X"$as_dir" |
345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
362 test -d "$as_dir" && break
364 test -z "$as_dirs" || eval "mkdir $as_dirs"
365 } || test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
370 # as_fn_executable_p FILE
371 # -----------------------
372 # Test if FILE is an executable regular file.
373 as_fn_executable_p
()
375 test -f "$1" && test -x "$1"
376 } # as_fn_executable_p
377 # as_fn_append VAR VALUE
378 # ----------------------
379 # Append the text in VALUE to the end of the definition contained in VAR. Take
380 # advantage of any shell optimizations that allow amortized linear growth over
381 # repeated appends, instead of the typical quadratic growth present in naive
383 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
384 eval 'as_fn_append ()
397 # Perform arithmetic evaluation on the ARGs, and store the result in the
398 # global $as_val. Take advantage of shells that can avoid forks. The arguments
399 # must be portable across $(()) and expr.
400 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
408 as_val
=`expr "$@" || test $? -eq 1`
413 # as_fn_error STATUS ERROR [LINENO LOG_FD]
414 # ----------------------------------------
415 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
416 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
417 # script with STATUS, using 1 if that was 0.
420 as_status
=$1; test $as_status -eq 0 && as_status
=1
422 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
423 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425 $as_echo "$as_me: error: $2" >&2
426 as_fn_exit
$as_status
429 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
430 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
436 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
442 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
448 as_me
=`$as_basename -- "$0" ||
449 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
450 X"$0" : 'X\(//\)$' \| \
451 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 sed '/^.*\/\([^/][^/]*\)\/*$/{
467 # Avoid depending upon Character Ranges.
468 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
469 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
470 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
471 as_cr_digits
='0123456789'
472 as_cr_alnum
=$as_cr_Letters$as_cr_digits
475 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
476 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
477 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
478 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
479 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
491 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
495 chmod +x
"$as_me.lineno" ||
496 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
498 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
499 # already done that, so ensure we don't try to do so again and fall
500 # in an infinite loop. This has already happened in practice.
501 _as_can_reexec
=no
; export _as_can_reexec
502 # Don't try to exec as it changes $[0], causing all sort of problems
503 # (the dirname of $[0] is not the place where we might find the
504 # original and so on. Autoconf is especially sensitive to this).
506 # Exit status is that of the last command.
510 ECHO_C
= ECHO_N
= ECHO_T
=
511 case `echo -n x` in #(((((
513 case `echo 'xy\c'` in
514 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
516 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
523 rm -f conf$$ conf$$.exe conf$$.
file
524 if test -d conf$$.dir
; then
525 rm -f conf$$.dir
/conf$$.
file
528 mkdir conf$$.dir
2>/dev
/null
530 if (echo >conf$$.
file) 2>/dev
/null
; then
531 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
533 # ... but there are two gotchas:
534 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
535 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
536 # In both cases, we have to default to `cp -pR'.
537 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe
||
539 elif ln conf$$.
file conf$$
2>/dev
/null
; then
547 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
548 rmdir conf$$.dir
2>/dev
/null
550 if mkdir -p .
2>/dev
/null
; then
551 as_mkdir_p
='mkdir -p "$as_dir"'
553 test -d .
/-p && rmdir .
/-p
558 as_executable_p
=as_fn_executable_p
560 # Sed expression to map a string onto a valid CPP name.
561 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563 # Sed expression to map a string onto a valid variable name.
564 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566 SHELL
=${CONFIG_SHELL-/bin/sh}
569 test -n "$DJDIR" || exec 7<&0 </dev
/null
573 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
574 # so uname gets run too.
575 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
580 ac_default_prefix
=/usr
/local
582 ac_config_libobj_dir
=.
589 # Identity of this package.
590 PACKAGE_NAME
='libratbox'
591 PACKAGE_TARNAME
='libratbox'
592 PACKAGE_VERSION
='devel'
593 PACKAGE_STRING
='libratbox devel'
597 ac_default_prefix
=/usr
/local
/libratbox
598 # Factoring default headers for most tests.
599 ac_includes_default
="\
601 #ifdef HAVE_SYS_TYPES_H
602 # include <sys/types.h>
604 #ifdef HAVE_SYS_STAT_H
605 # include <sys/stat.h>
611 # ifdef HAVE_STDLIB_H
616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
621 #ifdef HAVE_STRINGS_H
622 # include <strings.h>
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
635 ac_subst_vars
='am__EXEEXT_FALSE
685 MAINTAINER_MODE_FALSE
720 INSTALL_STRIP_PROGRAM
762 program_transform_name
775 enable_option_checking
777 enable_dependency_tracking
780 enable_maintainer_mode
794 ac_precious_vars
='build_alias
810 # Initialize some variables set by options.
812 ac_init_version
=false
813 ac_unrecognized_opts
=
815 # The variables have the same names as the options, with
816 # dashes changed to underlines.
824 program_transform_name
=s
,x
,x
,
832 # Installation directory options.
833 # These are left unexpanded so users can "make install exec_prefix=/foo"
834 # and all the variables that are supposed to be based on exec_prefix
835 # by default will actually change.
836 # Use braces instead of parens because sh, perl, etc. also accept them.
837 # (The list follows the same order as the GNU Coding Standards.)
838 bindir
='${exec_prefix}/bin'
839 sbindir
='${exec_prefix}/sbin'
840 libexecdir
='${exec_prefix}/libexec'
841 datarootdir
='${prefix}/share'
842 datadir
='${datarootdir}'
843 sysconfdir
='${prefix}/etc'
844 sharedstatedir
='${prefix}/com'
845 localstatedir
='${prefix}/var'
846 includedir
='${prefix}/include'
847 oldincludedir
='/usr/include'
848 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
849 infodir
='${datarootdir}/info'
854 libdir
='${exec_prefix}/lib'
855 localedir
='${datarootdir}/locale'
856 mandir
='${datarootdir}/man'
862 # If the previous option needs an argument, assign it.
863 if test -n "$ac_prev"; then
864 eval $ac_prev=\
$ac_option
870 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
875 # Accept the important Cygnus configure options, so we can diagnose typos.
877 case $ac_dashdash$ac_option in
881 -bindir | --bindir | --bindi | --bind | --bin | --bi)
883 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
886 -build | --build | --buil | --bui | --bu)
887 ac_prev
=build_alias
;;
888 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
889 build_alias
=$ac_optarg ;;
891 -cache-file | --cache-file | --cache-fil | --cache-fi \
892 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
893 ac_prev
=cache_file
;;
894 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
895 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
896 cache_file
=$ac_optarg ;;
899 cache_file
=config.cache
;;
901 -datadir | --datadir | --datadi | --datad)
903 -datadir=* | --datadir=* | --datadi=* | --datad=*)
904 datadir
=$ac_optarg ;;
906 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
907 | --dataroo | --dataro | --datar)
908 ac_prev
=datarootdir
;;
909 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
910 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
911 datarootdir
=$ac_optarg ;;
913 -disable-* | --disable-*)
914 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
915 # Reject names that are not valid shell variable names.
916 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
917 as_fn_error $?
"invalid feature name: $ac_useropt"
918 ac_useropt_orig
=$ac_useropt
919 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
920 case $ac_user_opts in
924 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
925 ac_unrecognized_sep
=', ';;
927 eval enable_
$ac_useropt=no
;;
929 -docdir | --docdir | --docdi | --doc | --do)
931 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
934 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
936 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
939 -enable-* | --enable-*)
940 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
941 # Reject names that are not valid shell variable names.
942 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
943 as_fn_error $?
"invalid feature name: $ac_useropt"
944 ac_useropt_orig
=$ac_useropt
945 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
946 case $ac_user_opts in
950 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
951 ac_unrecognized_sep
=', ';;
953 eval enable_
$ac_useropt=\
$ac_optarg ;;
955 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
956 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
957 | --exec | --exe | --ex)
958 ac_prev
=exec_prefix
;;
959 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
960 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
961 | --exec=* | --exe=* | --ex=*)
962 exec_prefix
=$ac_optarg ;;
964 -gas | --gas | --ga | --g)
965 # Obsolete; use --with-gas.
968 -help | --help | --hel | --he | -h)
970 -help=r
* | --help=r
* | --hel=r
* | --he=r
* | -hr*)
971 ac_init_help
=recursive
;;
972 -help=s
* | --help=s
* | --hel=s
* | --he=s
* | -hs*)
973 ac_init_help
=short
;;
975 -host | --host | --hos | --ho)
976 ac_prev
=host_alias
;;
977 -host=* | --host=* | --hos=* | --ho=*)
978 host_alias
=$ac_optarg ;;
980 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
982 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
984 htmldir
=$ac_optarg ;;
986 -includedir | --includedir | --includedi | --included | --include \
987 | --includ | --inclu | --incl | --inc)
988 ac_prev
=includedir
;;
989 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
990 | --includ=* | --inclu=* | --incl=* | --inc=*)
991 includedir
=$ac_optarg ;;
993 -infodir | --infodir | --infodi | --infod | --info | --inf)
995 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
996 infodir
=$ac_optarg ;;
998 -libdir | --libdir | --libdi | --libd)
1000 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1001 libdir
=$ac_optarg ;;
1003 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1004 | --libexe | --libex | --libe)
1005 ac_prev
=libexecdir
;;
1006 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1007 | --libexe=* | --libex=* | --libe=*)
1008 libexecdir
=$ac_optarg ;;
1010 -localedir | --localedir | --localedi | --localed | --locale)
1011 ac_prev
=localedir
;;
1012 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1013 localedir
=$ac_optarg ;;
1015 -localstatedir | --localstatedir | --localstatedi | --localstated \
1016 | --localstate | --localstat | --localsta | --localst | --locals)
1017 ac_prev
=localstatedir
;;
1018 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1019 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1020 localstatedir
=$ac_optarg ;;
1022 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1024 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1025 mandir
=$ac_optarg ;;
1027 -nfp | --nfp | --nf)
1028 # Obsolete; use --without-fp.
1031 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1032 | --no-cr | --no-c | -n)
1035 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1036 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1039 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1040 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1041 | --oldin | --oldi | --old | --ol | --o)
1042 ac_prev
=oldincludedir
;;
1043 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1044 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1045 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1046 oldincludedir
=$ac_optarg ;;
1048 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1050 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1051 prefix
=$ac_optarg ;;
1053 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1054 | --program-pre | --program-pr | --program-p)
1055 ac_prev
=program_prefix
;;
1056 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1057 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1058 program_prefix
=$ac_optarg ;;
1060 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1061 | --program-suf | --program-su | --program-s)
1062 ac_prev
=program_suffix
;;
1063 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1064 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1065 program_suffix
=$ac_optarg ;;
1067 -program-transform-name | --program-transform-name \
1068 | --program-transform-nam | --program-transform-na \
1069 | --program-transform-n | --program-transform- \
1070 | --program-transform | --program-transfor \
1071 | --program-transfo | --program-transf \
1072 | --program-trans | --program-tran \
1073 | --progr-tra | --program-tr | --program-t)
1074 ac_prev
=program_transform_name
;;
1075 -program-transform-name=* | --program-transform-name=* \
1076 | --program-transform-nam=* | --program-transform-na=* \
1077 | --program-transform-n=* | --program-transform-=* \
1078 | --program-transform=* | --program-transfor=* \
1079 | --program-transfo=* | --program-transf=* \
1080 | --program-trans=* | --program-tran=* \
1081 | --progr-tra=* | --program-tr=* | --program-t=*)
1082 program_transform_name
=$ac_optarg ;;
1084 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1086 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1087 pdfdir
=$ac_optarg ;;
1089 -psdir | --psdir | --psdi | --psd | --ps)
1091 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1094 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1095 | -silent | --silent | --silen | --sile | --sil)
1098 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1100 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1102 sbindir
=$ac_optarg ;;
1104 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1105 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1106 | --sharedst | --shareds | --shared | --share | --shar \
1108 ac_prev
=sharedstatedir
;;
1109 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1110 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1111 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1113 sharedstatedir
=$ac_optarg ;;
1115 -site | --site | --sit)
1117 -site=* | --site=* | --sit=*)
1120 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1122 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1123 srcdir
=$ac_optarg ;;
1125 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1126 | --syscon | --sysco | --sysc | --sys | --sy)
1127 ac_prev
=sysconfdir
;;
1128 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1129 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1130 sysconfdir
=$ac_optarg ;;
1132 -target | --target | --targe | --targ | --tar | --ta | --t)
1133 ac_prev
=target_alias
;;
1134 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1135 target_alias
=$ac_optarg ;;
1137 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1140 -version | --version | --versio | --versi | --vers | -V)
1141 ac_init_version
=: ;;
1144 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1145 # Reject names that are not valid shell variable names.
1146 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1147 as_fn_error $?
"invalid package name: $ac_useropt"
1148 ac_useropt_orig
=$ac_useropt
1149 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1150 case $ac_user_opts in
1154 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1155 ac_unrecognized_sep
=', ';;
1157 eval with_
$ac_useropt=\
$ac_optarg ;;
1159 -without-* | --without-*)
1160 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1161 # Reject names that are not valid shell variable names.
1162 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1163 as_fn_error $?
"invalid package name: $ac_useropt"
1164 ac_useropt_orig
=$ac_useropt
1165 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1166 case $ac_user_opts in
1170 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1171 ac_unrecognized_sep
=', ';;
1173 eval with_
$ac_useropt=no
;;
1176 # Obsolete; use --with-x.
1179 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1180 | --x-incl | --x-inc | --x-in | --x-i)
1181 ac_prev
=x_includes
;;
1182 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1183 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1184 x_includes
=$ac_optarg ;;
1186 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1187 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1188 ac_prev
=x_libraries
;;
1189 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1190 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1191 x_libraries
=$ac_optarg ;;
1193 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1194 Try \`$0 --help' for more information"
1198 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1199 # Reject names that are not valid shell variable names.
1200 case $ac_envvar in #(
1201 '' | [0-9]* | *[!_$as_cr_alnum]* )
1202 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1204 eval $ac_envvar=\
$ac_optarg
1205 export $ac_envvar ;;
1208 # FIXME: should be removed in autoconf 3.0.
1209 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1210 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1211 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1212 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1218 if test -n "$ac_prev"; then
1219 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1220 as_fn_error $?
"missing argument to $ac_option"
1223 if test -n "$ac_unrecognized_opts"; then
1224 case $enable_option_checking in
1226 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1227 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1231 # Check all directory arguments for consistency.
1232 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1233 datadir sysconfdir sharedstatedir localstatedir includedir \
1234 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1235 libdir localedir mandir
1237 eval ac_val
=\$
$ac_var
1238 # Remove trailing slashes.
1241 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1242 eval $ac_var=\
$ac_val;;
1244 # Be sure to have absolute directory names.
1246 [\\/$
]* | ?
:[\\/]* ) continue;;
1247 NONE
| '' ) case $ac_var in *prefix
) continue;; esac;;
1249 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1252 # There might be people who depend on the old broken behavior: `$host'
1253 # used to hold the argument of --host etc.
1254 # FIXME: To remove some day.
1257 target
=$target_alias
1259 # FIXME: To remove some day.
1260 if test "x$host_alias" != x
; then
1261 if test "x$build_alias" = x
; then
1262 cross_compiling
=maybe
1263 elif test "x$build_alias" != "x$host_alias"; then
1269 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1271 test "$silent" = yes && exec 6>/dev
/null
1274 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1275 ac_ls_di
=`ls -di .` &&
1276 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1277 as_fn_error $?
"working directory cannot be determined"
1278 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1279 as_fn_error $?
"pwd does not report name of working directory"
1282 # Find the source files, if location was not specified.
1283 if test -z "$srcdir"; then
1284 ac_srcdir_defaulted
=yes
1285 # Try the directory containing this script, then the parent directory.
1286 ac_confdir
=`$as_dirname -- "$as_myself" ||
1287 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1288 X"$as_myself" : 'X\(//\)[^/]' \| \
1289 X"$as_myself" : 'X\(//\)$' \| \
1290 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1291 $as_echo X"$as_myself" |
1292 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1310 if test ! -r "$srcdir/$ac_unique_file"; then
1314 ac_srcdir_defaulted
=no
1316 if test ! -r "$srcdir/$ac_unique_file"; then
1317 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1318 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1320 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1322 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1324 # When building in place, set srcdir=.
1325 if test "$ac_abs_confdir" = "$ac_pwd"; then
1328 # Remove unnecessary trailing slashes from srcdir.
1329 # Double slashes in file names in object file debugging info
1330 # mess up M-x gdb in Emacs.
1332 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1334 for ac_var
in $ac_precious_vars; do
1335 eval ac_env_
${ac_var}_set
=\
${${ac_var}+set}
1336 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1337 eval ac_cv_env_
${ac_var}_set
=\
${${ac_var}+set}
1338 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1342 # Report the --help message.
1344 if test "$ac_init_help" = "long"; then
1345 # Omit some internal or obsolete options to make the list less imposing.
1346 # This message is too long to be a string in the A/UX 3.1 sh.
1348 \`configure' configures libratbox devel to adapt to many kinds of systems.
1350 Usage: $0 [OPTION]... [VAR=VALUE]...
1352 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1353 VAR=VALUE. See below for descriptions of some of the useful variables.
1355 Defaults for the options are specified in brackets.
1358 -h, --help display this help and exit
1359 --help=short display options specific to this package
1360 --help=recursive display the short help of all the included packages
1361 -V, --version display version information and exit
1362 -q, --quiet, --silent do not print \`checking ...' messages
1363 --cache-file=FILE cache test results in FILE [disabled]
1364 -C, --config-cache alias for \`--cache-file=config.cache'
1365 -n, --no-create do not create output files
1366 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1368 Installation directories:
1369 --prefix=PREFIX install architecture-independent files in PREFIX
1370 [$ac_default_prefix]
1371 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1374 By default, \`make install' will install all the files in
1375 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1376 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1377 for instance \`--prefix=\$HOME'.
1379 For better control, use the options below.
1381 Fine tuning of the installation directories:
1382 --bindir=DIR user executables [EPREFIX/bin]
1383 --sbindir=DIR system admin executables [EPREFIX/sbin]
1384 --libexecdir=DIR program executables [EPREFIX/libexec]
1385 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1386 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1387 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1388 --libdir=DIR object code libraries [EPREFIX/lib]
1389 --includedir=DIR C header files [PREFIX/include]
1390 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1391 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1392 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1393 --infodir=DIR info documentation [DATAROOTDIR/info]
1394 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1395 --mandir=DIR man documentation [DATAROOTDIR/man]
1396 --docdir=DIR documentation root [DATAROOTDIR/doc/libratbox]
1397 --htmldir=DIR html documentation [DOCDIR]
1398 --dvidir=DIR dvi documentation [DOCDIR]
1399 --pdfdir=DIR pdf documentation [DOCDIR]
1400 --psdir=DIR ps documentation [DOCDIR]
1406 --program-prefix=PREFIX prepend PREFIX to installed program names
1407 --program-suffix=SUFFIX append SUFFIX to installed program names
1408 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1411 --build=BUILD configure
for building on BUILD
[guessed
]
1412 --host=HOST cross
-compile to build programs to run on HOST
[BUILD
]
1416 if test -n "$ac_init_help"; then
1417 case $ac_init_help in
1418 short
| recursive
) echo "Configuration of libratbox devel:";;
1423 --disable-option-checking ignore unrecognized
--enable/--with options
1424 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1425 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1426 --enable-silent-rules less verbose build output
(undo
: "make V=1")
1427 --disable-silent-rules verbose build output
(undo
: "make V=0")
1428 --enable-dependency-tracking
1429 do not reject slow dependency extractors
1430 --disable-dependency-tracking
1431 speeds up one
-time build
1432 --enable-static[=PKGS
] build static libraries
[default
=no
]
1433 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1434 --enable-maintainer-mode
1435 enable make rules and dependencies not useful
(and
1436 sometimes confusing
) to the casual installer
1437 --enable-fast-install[=PKGS
]
1438 optimize
for fast installation
[default
=yes]
1439 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1440 --disable-ipv6 Disable IPv6 support
1441 --enable-openssl=DIR Enable OpenSSL support
(DIR optional
).
1442 --disable-openssl Disable OpenSSL support.
1443 --enable-gnutls Enable GnuTLS support.
1444 --disable-gnutls Disable GnuTLS support.
1445 --enable-assert Enable assert
(). Choose between soft
(warnings
) and
1446 hard
(aborts the daemon
)
1447 --enable-profile Enable profiling
1448 --disable-balloc Disable the block allocator.
1449 --enable-warnings Enable all sorts of warnings
for debugging.
1452 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1453 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1454 --with-pic[=PKGS
] try to use only PIC
/non
-PIC objects
[default
=use
1456 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1457 --with-sysroot=DIR Search
for dependent libraries within DIR
1458 (or the compiler
's sysroot if not specified).
1460 Some influential environment variables:
1461 CC C compiler command
1462 CFLAGS C compiler flags
1463 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1464 nonstandard directory <lib dir>
1465 LIBS libraries to pass to the linker, e.g. -l<library>
1466 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1467 you have headers in a nonstandard directory <include dir>
1469 PKG_CONFIG path to pkg-config utility
1471 directories to add to pkg-config's search path
1473 path overriding pkg
-config's built-in search path
1475 C compiler flags for GNUTLS, overriding pkg-config
1476 GNUTLS_LIBS linker flags for GNUTLS, overriding pkg-config
1478 Use these variables to override the choices made by `configure' or to
help
1479 it to
find libraries and programs with nonstandard names
/locations.
1481 Report bugs to the package provider.
1486 if test "$ac_init_help" = "recursive"; then
1487 # If there are subdirs, report their specific --help.
1488 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1489 test -d "$ac_dir" ||
1490 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1495 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1497 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1498 # A ".." for each directory in $ac_dir_suffix.
1499 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1500 case $ac_top_builddir_sub in
1501 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1502 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1505 ac_abs_top_builddir
=$ac_pwd
1506 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1507 # for backward compatibility:
1508 ac_top_builddir
=$ac_top_build_prefix
1511 .
) # We are building in place.
1513 ac_top_srcdir
=$ac_top_builddir_sub
1514 ac_abs_top_srcdir
=$ac_pwd ;;
1515 [\\/]* | ?
:[\\/]* ) # Absolute name.
1516 ac_srcdir
=$srcdir$ac_dir_suffix;
1517 ac_top_srcdir
=$srcdir
1518 ac_abs_top_srcdir
=$srcdir ;;
1520 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1521 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1522 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1524 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1526 cd "$ac_dir" || { ac_status
=$?
; continue; }
1527 # Check for guested configure.
1528 if test -f "$ac_srcdir/configure.gnu"; then
1530 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1531 elif test -f "$ac_srcdir/configure"; then
1533 $SHELL "$ac_srcdir/configure" --help=recursive
1535 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1537 cd "$ac_pwd" || { ac_status
=$?
; break; }
1541 test -n "$ac_init_help" && exit $ac_status
1542 if $ac_init_version; then
1544 libratbox configure devel
1545 generated by GNU Autoconf
2.69
1547 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1548 This configure
script is free software
; the Free Software Foundation
1549 gives unlimited permission to copy
, distribute and modify it.
1551 $Id: configure.ac
26260 2008-12-10 04:08:39Z androsyn $
1556 ## ------------------------ ##
1557 ## Autoconf initialization. ##
1558 ## ------------------------ ##
1560 # ac_fn_c_try_compile LINENO
1561 # --------------------------
1562 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1563 ac_fn_c_try_compile
()
1565 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1566 rm -f conftest.
$ac_objext
1567 if { { ac_try
="$ac_compile"
1569 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
1570 *) ac_try_echo=$ac_try;;
1572 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1573 $as_echo "$ac_try_echo"; } >&5
1574 (eval "$ac_compile") 2>conftest.err
1576 if test -s conftest.err; then
1577 grep -v '^ *+' conftest.err >conftest.er1
1578 cat conftest.er1 >&5
1579 mv -f conftest.er1 conftest.err
1581 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1582 test $ac_status = 0; } && {
1583 test -z "$ac_c_werror_flag" ||
1584 test ! -s conftest.err
1585 } && test -s conftest.$ac_objext; then :
1588 $as_echo "$as_me: failed program was:" >&5
1589 sed 's/^/| /' conftest.$ac_ext >&5
1593 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1594 as_fn_set_status $ac_retval
1596 } # ac_fn_c_try_compile
1598 # ac_fn_c_try_cpp LINENO
1599 # ----------------------
1600 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1603 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1604 if { { ac_try="$ac_cpp conftest.$ac_ext"
1606 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
1607 *) ac_try_echo
=$ac_try;;
1609 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1610 $as_echo "$ac_try_echo"; } >&5
1611 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1613 if test -s conftest.err
; then
1614 grep -v '^ *+' conftest.err
>conftest.er1
1615 cat conftest.er1
>&5
1616 mv -f conftest.er1 conftest.err
1618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1619 test $ac_status = 0; } > conftest.i
&& {
1620 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1621 test ! -s conftest.err
1625 $as_echo "$as_me: failed program was:" >&5
1626 sed 's/^/| /' conftest.
$ac_ext >&5
1630 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1631 as_fn_set_status
$ac_retval
1635 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1636 # -------------------------------------------------------
1637 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1638 # the include files in INCLUDES and setting the cache variable VAR
1640 ac_fn_c_check_header_mongrel
()
1642 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1643 if eval \
${$3+:} false
; then :
1644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1645 $as_echo_n "checking for $2... " >&6; }
1646 if eval \
${$3+:} false
; then :
1647 $as_echo_n "(cached) " >&6
1650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1651 $as_echo "$ac_res" >&6; }
1653 # Is the header compilable?
1654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1655 $as_echo_n "checking $2 usability... " >&6; }
1656 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1657 /* end confdefs.h. */
1661 if ac_fn_c_try_compile
"$LINENO"; then :
1662 ac_header_compiler
=yes
1664 ac_header_compiler
=no
1666 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1668 $as_echo "$ac_header_compiler" >&6; }
1670 # Is the header present?
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1672 $as_echo_n "checking $2 presence... " >&6; }
1673 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1674 /* end confdefs.h. */
1677 if ac_fn_c_try_cpp
"$LINENO"; then :
1678 ac_header_preproc
=yes
1680 ac_header_preproc
=no
1682 rm -f conftest.err conftest.i conftest.
$ac_ext
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1684 $as_echo "$ac_header_preproc" >&6; }
1686 # So? What about this header?
1687 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1690 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1692 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1696 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1698 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1700 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1702 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1704 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1708 $as_echo_n "checking for $2... " >&6; }
1709 if eval \
${$3+:} false
; then :
1710 $as_echo_n "(cached) " >&6
1712 eval "$3=\$ac_header_compiler"
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1716 $as_echo "$ac_res" >&6; }
1718 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1720 } # ac_fn_c_check_header_mongrel
1722 # ac_fn_c_try_run LINENO
1723 # ----------------------
1724 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1725 # that executables *can* be run.
1728 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1729 if { { ac_try
="$ac_link"
1731 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
1732 *) ac_try_echo=$ac_try;;
1734 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1735 $as_echo "$ac_try_echo"; } >&5
1736 (eval "$ac_link") 2>&5
1738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1739 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1740 { { case "(($ac_try" in
1741 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
1742 *) ac_try_echo
=$ac_try;;
1744 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1745 $as_echo "$ac_try_echo"; } >&5
1746 (eval "$ac_try") 2>&5
1748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1749 test $ac_status = 0; }; }; then :
1752 $as_echo "$as_me: program exited with status $ac_status" >&5
1753 $as_echo "$as_me: failed program was:" >&5
1754 sed 's/^/| /' conftest.
$ac_ext >&5
1756 ac_retval
=$ac_status
1758 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1759 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1760 as_fn_set_status
$ac_retval
1764 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1765 # -------------------------------------------------------
1766 # Tests whether HEADER exists and can be compiled using the include files in
1767 # INCLUDES, setting the cache variable VAR accordingly.
1768 ac_fn_c_check_header_compile
()
1770 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1772 $as_echo_n "checking for $2... " >&6; }
1773 if eval \
${$3+:} false
; then :
1774 $as_echo_n "(cached) " >&6
1776 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1777 /* end confdefs.h. */
1781 if ac_fn_c_try_compile
"$LINENO"; then :
1786 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1790 $as_echo "$ac_res" >&6; }
1791 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1793 } # ac_fn_c_check_header_compile
1795 # ac_fn_c_try_link LINENO
1796 # -----------------------
1797 # Try to link conftest.$ac_ext, and return whether this succeeded.
1800 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1801 rm -f conftest.
$ac_objext conftest
$ac_exeext
1802 if { { ac_try
="$ac_link"
1804 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
1805 *) ac_try_echo=$ac_try;;
1807 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1808 $as_echo "$ac_try_echo"; } >&5
1809 (eval "$ac_link") 2>conftest.err
1811 if test -s conftest.err; then
1812 grep -v '^ *+' conftest.err >conftest.er1
1813 cat conftest.er1 >&5
1814 mv -f conftest.er1 conftest.err
1816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1817 test $ac_status = 0; } && {
1818 test -z "$ac_c_werror_flag" ||
1819 test ! -s conftest.err
1820 } && test -s conftest$ac_exeext && {
1821 test "$cross_compiling" = yes ||
1822 test -x conftest$ac_exeext
1826 $as_echo "$as_me: failed program was:" >&5
1827 sed 's/^/| /' conftest.$ac_ext >&5
1831 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1832 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1833 # interfere with the next link command; also delete a directory that is
1834 # left behind by Apple's compiler. We do this before executing the actions.
1835 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1836 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1837 as_fn_set_status $ac_retval
1839 } # ac_fn_c_try_link
1841 # ac_fn_c_check_func LINENO FUNC VAR
1842 # ----------------------------------
1843 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1844 ac_fn_c_check_func ()
1846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1848 $as_echo_n "checking for $2... " >&6; }
1849 if eval \${$3+:} false; then :
1850 $as_echo_n "(cached) " >&6
1852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1853 /* end confdefs.h. */
1854 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1855 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1856 #define $2 innocuous_$2
1858 /* System header to define __stub macros and hopefully few prototypes,
1859 which can conflict with char $2 (); below.
1860 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1861 <limits.h> exists even on freestanding compilers. */
1864 # include <limits.h>
1866 # include <assert.h>
1871 /* Override any GCC internal prototype to avoid an error.
1872 Use char because int might match the return type of a GCC
1873 builtin and then its argument prototype would still apply. */
1878 /* The GNU C library defines this for functions which it implements
1879 to always fail with ENOSYS. Some functions are actually named
1880 something starting with __ and the normal name is an alias. */
1881 #if defined __stub_$2 || defined __stub___$2
1893 if ac_fn_c_try_link "$LINENO"; then :
1898 rm -f core conftest.err conftest.$ac_objext \
1899 conftest$ac_exeext conftest.$ac_ext
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1903 $as_echo "$ac_res" >&6; }
1904 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1906 } # ac_fn_c_check_func
1908 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1909 # -------------------------------------------
1910 # Tests whether TYPE exists after having included INCLUDES, setting cache
1911 # variable VAR accordingly.
1912 ac_fn_c_check_type ()
1914 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1916 $as_echo_n "checking for $2... " >&6; }
1917 if eval \${$3+:} false; then :
1918 $as_echo_n "(cached) " >&6
1921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1922 /* end confdefs.h. */
1933 if ac_fn_c_try_compile "$LINENO"; then :
1934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1935 /* end confdefs.h. */
1946 if ac_fn_c_try_compile "$LINENO"; then :
1951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1957 $as_echo "$ac_res" >&6; }
1958 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1960 } # ac_fn_c_check_type
1962 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1963 # ----------------------------------------------------
1964 # Tries to find if the field MEMBER exists in type AGGR, after including
1965 # INCLUDES, setting cache variable VAR accordingly.
1966 ac_fn_c_check_member ()
1968 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1970 $as_echo_n "checking for $2.$3... " >&6; }
1971 if eval \${$4+:} false; then :
1972 $as_echo_n "(cached) " >&6
1974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1975 /* end confdefs.h. */
1987 if ac_fn_c_try_compile "$LINENO"; then :
1990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1991 /* end confdefs.h. */
1997 if (sizeof ac_aggr.$3)
2003 if ac_fn_c_try_compile "$LINENO"; then :
2008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2014 $as_echo "$ac_res" >&6; }
2015 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2017 } # ac_fn_c_check_member
2018 cat >config.log <<_ACEOF
2019 This file contains any messages produced by compilers while
2020 running configure, to aid debugging if configure makes a mistake.
2022 It was created by libratbox $as_me devel, which was
2023 generated by GNU Autoconf 2.69. Invocation command line was
2035 hostname = `(hostname
|| uname
-n) 2>/dev
/null
| sed 1q
`
2036 uname -m = `(uname
-m) 2>/dev
/null
|| echo unknown
`
2037 uname -r = `(uname
-r) 2>/dev
/null
|| echo unknown
`
2038 uname -s = `(uname
-s) 2>/dev
/null
|| echo unknown
`
2039 uname -v = `(uname
-v) 2>/dev
/null
|| echo unknown
`
2041 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null
|| echo unknown
`
2042 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null
|| echo unknown
`
2044 /bin/arch = `(/bin
/arch
) 2>/dev
/null
|| echo unknown
`
2045 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null
|| echo unknown
`
2046 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null
|| echo unknown
`
2047 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null
|| echo unknown
`
2048 /bin/machine = `(/bin
/machine
) 2>/dev
/null
|| echo unknown
`
2049 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null
|| echo unknown
`
2050 /bin/universe = `(/bin
/universe
) 2>/dev
/null
|| echo unknown
`
2054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2058 test -z "$as_dir" && as_dir=.
2059 $as_echo "PATH: $as_dir"
2075 # Keep a trace of the command line.
2076 # Strip out --no-create and --no-recursion so they do not pile up.
2077 # Strip out --silent because we don't want to record it for future runs.
2078 # Also quote any args containing shell meta-characters.
2079 # Make two passes to allow for proper duplicate-argument suppression.
2083 ac_must_keep_next=false
2089 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2090 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2091 | -silent | --silent | --silen | --sile | --sil)
2094 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2097 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2099 as_fn_append ac_configure_args1 " '$ac_arg'"
2100 if test $ac_must_keep_next = true; then
2101 ac_must_keep_next=false # Got value, back to normal.
2104 *=* | --config-cache | -C | -disable-* | --disable-* \
2105 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2106 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2107 | -with-* | --with-* | -without-* | --without-* | --x)
2108 case "$ac_configure_args0 " in
2109 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2112 -* ) ac_must_keep_next=true ;;
2115 as_fn_append ac_configure_args " '$ac_arg'"
2120 { ac_configure_args0=; unset ac_configure_args0;}
2121 { ac_configure_args1=; unset ac_configure_args1;}
2123 # When interrupted or exit'd, cleanup temporary files, and complete
2124 # config.log. We remove comments because anyway the quotes in there
2125 # would cause problems or look ugly.
2126 # WARNING: Use '\'' to represent an apostrophe within the trap.
2127 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2128 trap 'exit_status=$?
2129 # Save into config.log some information that might help in debugging.
2133 $as_echo "## ---------------- ##
2134 ## Cache variables. ##
2135 ## ---------------- ##"
2137 # The following way of writing the cache mishandles newlines in values,
2139 for ac_var in `(set) 2>&1 | sed -n '\''s
/^\
([a
-zA-Z_][a
-zA-Z0-9_]*\
)=.
*/\
1/p
'\''`; do
2140 eval ac_val=\$$ac_var
2144 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2145 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2148 _ | IFS | as_nl) ;; #(
2149 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2150 *) { eval $ac_var=; unset $ac_var;} ;;
2155 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2156 *${as_nl}ac_space=\ *)
2158 "s/'\''/'\''\\\\'\'''\''/g;
2159 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2162 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2169 $as_echo "## ----------------- ##
2170 ## Output variables. ##
2171 ## ----------------- ##"
2173 for ac_var in $ac_subst_vars
2175 eval ac_val=\$$ac_var
2177 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2179 $as_echo "$ac_var='\''$ac_val'\''"
2183 if test -n "$ac_subst_files"; then
2184 $as_echo "## ------------------- ##
2185 ## File substitutions. ##
2186 ## ------------------- ##"
2188 for ac_var in $ac_subst_files
2190 eval ac_val=\$$ac_var
2192 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2194 $as_echo "$ac_var='\''$ac_val'\''"
2199 if test -s confdefs.h; then
2200 $as_echo "## ----------- ##
2207 test "$ac_signal" != 0 &&
2208 $as_echo "$as_me: caught signal $ac_signal"
2209 $as_echo "$as_me: exit $exit_status"
2211 rm -f core *.core core.conftest.* &&
2212 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2215 for ac_signal in 1 2 13 15; do
2216 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2220 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2221 rm -f -r conftest* confdefs.h
2223 $as_echo "/* confdefs.h */" > confdefs.h
2225 # Predefined preprocessor variables.
2227 cat >>confdefs.h <<_ACEOF
2228 #define PACKAGE_NAME "$PACKAGE_NAME"
2231 cat >>confdefs.h <<_ACEOF
2232 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2235 cat >>confdefs.h <<_ACEOF
2236 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2239 cat >>confdefs.h <<_ACEOF
2240 #define PACKAGE_STRING "$PACKAGE_STRING"
2243 cat >>confdefs.h <<_ACEOF
2244 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2247 cat >>confdefs.h <<_ACEOF
2248 #define PACKAGE_URL "$PACKAGE_URL"
2252 # Let the site file select an alternate cache file if it wants to.
2253 # Prefer an explicitly selected file to automatically selected ones.
2256 if test -n "$CONFIG_SITE"; then
2257 # We do not want a PATH search for config.site.
2258 case $CONFIG_SITE in #((
2259 -*) ac_site_file1=./$CONFIG_SITE;;
2260 */*) ac_site_file1=$CONFIG_SITE;;
2261 *) ac_site_file1=./$CONFIG_SITE;;
2263 elif test "x$prefix" != xNONE; then
2264 ac_site_file1=$prefix/share/config.site
2265 ac_site_file2=$prefix/etc/config.site
2267 ac_site_file1=$ac_default_prefix/share/config.site
2268 ac_site_file2=$ac_default_prefix/etc/config.site
2270 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2272 test "x$ac_site_file" = xNONE && continue
2273 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2275 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2276 sed 's/^/| /' "$ac_site_file" >&5
2278 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2279 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2280 as_fn_error $? "failed to load site
script $ac_site_file
2281 See \
`config.log' for more details" "$LINENO" 5; }
2285 if test -r "$cache_file"; then
2286 # Some versions of bash will fail to source /dev/null (special files
2287 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2288 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2290 $as_echo "$as_me: loading cache $cache_file" >&6;}
2292 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2293 *) . "./$cache_file";;
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2298 $as_echo "$as_me: creating cache $cache_file" >&6;}
2302 as_fn_append ac_header_list " stdlib.h"
2303 as_fn_append ac_header_list " unistd.h"
2304 as_fn_append ac_header_list " sys/param.h"
2305 # Check that the precious variables saved in the cache have kept the same
2307 ac_cache_corrupted=false
2308 for ac_var in $ac_precious_vars; do
2309 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2310 eval ac_new_set=\$ac_env_${ac_var}_set
2311 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2312 eval ac_new_val=\$ac_env_${ac_var}_value
2313 case $ac_old_set,$ac_new_set in
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2316 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2317 ac_cache_corrupted=: ;;
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2320 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2321 ac_cache_corrupted=: ;;
2324 if test "x$ac_old_val" != "x$ac_new_val"; then
2325 # differences in whitespace do not lead to failure.
2326 ac_old_val_w=`echo x
$ac_old_val`
2327 ac_new_val_w=`echo x
$ac_new_val`
2328 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2330 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2331 ac_cache_corrupted=:
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2334 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2335 eval $ac_var=\$ac_old_val
2337 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2338 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2340 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2343 # Pass precious variables to config.status.
2344 if test "$ac_new_set" = set; then
2346 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2347 *) ac_arg=$ac_var=$ac_new_val ;;
2349 case " $ac_configure_args " in
2350 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2351 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2355 if $ac_cache_corrupted; then
2356 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2357 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2359 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2360 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2362 ## -------------------- ##
2363 ## Main body of script. ##
2364 ## -------------------- ##
2367 ac_cpp='$CPP $CPPFLAGS'
2368 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2369 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2370 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2373 am__api_version='1.14'
2376 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2377 if test -f "$ac_dir/install-sh"; then
2379 ac_install_sh="$ac_aux_dir/install-sh -c"
2381 elif test -f "$ac_dir/install.sh"; then
2383 ac_install_sh="$ac_aux_dir/install.sh -c"
2385 elif test -f "$ac_dir/shtool"; then
2387 ac_install_sh="$ac_aux_dir/shtool install -c"
2391 if test -z "$ac_aux_dir"; then
2392 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2395 # These three variables are undocumented and unsupported,
2396 # and are intended to be withdrawn in a future Autoconf release.
2397 # They can cause serious problems if a builder's source tree is in a directory
2398 # whose full name contains unusual characters.
2399 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2400 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2401 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2404 # Find a good install program. We prefer a C program (faster),
2405 # so one script is as good as another. But avoid the broken or
2406 # incompatible versions:
2407 # SysV /etc/install, /usr/sbin/install
2408 # SunOS /usr/etc/install
2409 # IRIX /sbin/install
2411 # AmigaOS /C/install, which installs bootblocks on floppy discs
2412 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2413 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2414 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2415 # OS/2's system install, which has a completely different semantic
2416 # ./install, which can be erroneously created by make from ./install.sh.
2417 # Reject install programs that cannot install multiple files.
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2419 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2420 if test -z "$INSTALL"; then
2421 if ${ac_cv_path_install+:} false; then :
2422 $as_echo_n "(cached) " >&6
2424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2428 test -z "$as_dir" && as_dir=.
2429 # Account for people who put trailing slashes in PATH elements.
2430 case $as_dir/ in #((
2431 ./ | .// | /[cC]/* | \
2432 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2433 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2436 # OSF1 and SCO ODT 3.0 have their own names for install.
2437 # Don't use installbsd from OSF since it installs stuff as root
2439 for ac_prog in ginstall scoinst install; do
2440 for ac_exec_ext in '' $ac_executable_extensions; do
2441 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2442 if test $ac_prog = install &&
2443 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2444 # AIX install. It has an incompatible calling convention.
2446 elif test $ac_prog = install &&
2447 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2448 # program-specific install script used by HP pwplus--don't use.
2451 rm -rf conftest.one conftest.two conftest.dir
2452 echo one > conftest.one
2453 echo two > conftest.two
2455 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2456 test -s conftest.one && test -s conftest.two &&
2457 test -s conftest.dir/conftest.one &&
2458 test -s conftest.dir/conftest.two
2460 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2473 rm -rf conftest.one conftest.two conftest.dir
2476 if test "${ac_cv_path_install+set}" = set; then
2477 INSTALL=$ac_cv_path_install
2479 # As a last resort, use the slow shell script. Don't cache a
2480 # value for INSTALL within a source directory, because that will
2481 # break other packages using the cache if that directory is
2482 # removed, or if the value is a relative name.
2483 INSTALL=$ac_install_sh
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2487 $as_echo "$INSTALL" >&6; }
2489 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2490 # It thinks the first close brace ends the variable substitution.
2491 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2493 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2495 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2498 $as_echo_n "checking whether build environment is sane... " >&6; }
2499 # Reject unsafe characters in $srcdir or the absolute working directory
2500 # name. Accept space and tab only in the latter.
2504 *[\\\"\#\$\&\'\`$am_lf]*)
2505 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2508 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2509 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2512 # Do 'set' in a subshell so we don't clobber the current shell's
2513 # arguments. Must try -L first in case configure is actually a
2514 # symlink; some systems play weird games with the mod time of symlinks
2515 # (eg FreeBSD returns the mod time of the symlink's containing
2519 for am_try in 1 2; do
2520 echo "timestamp, slept: $am_has_slept" > conftest.file
2521 set X `ls -Lt "$srcdir/configure" conftest.
file 2> /dev
/null
`
2522 if test "$*" = "X"; then
2524 set X `ls -t "$srcdir/configure" conftest.
file`
2526 if test "$*" != "X $srcdir/configure conftest.file" \
2527 && test "$*" != "X conftest.file $srcdir/configure"; then
2529 # If neither matched, then we have a broken ls. This can happen
2530 # if, for instance, CONFIG_SHELL is bash and it inherits a
2531 # broken ls alias from the environment. This has actually
2532 # happened. Such a system could not be considered "sane".
2533 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2534 alias in your environment" "$LINENO" 5
2536 if test "$2" = conftest.file || test $am_try -eq 2; then
2543 test "$2" = conftest.file
2549 as_fn_error $? "newly created file is older than distributed files!
2550 Check your system clock" "$LINENO" 5
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2553 $as_echo "yes" >&6; }
2554 # If we didn't sleep, we still need to ensure time stamps of config.status and
2555 # generated files are strictly newer.
2557 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2564 test "$program_prefix" != NONE &&
2565 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2566 # Use a double $ so make ignores it.
2567 test "$program_suffix" != NONE &&
2568 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2569 # Double any \ or $.
2570 # By default was `s
,x
,x
', remove it if useless.
2571 ac_script='s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//'
2572 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2574 # expand $ac_aux_dir to an absolute path
2575 am_aux_dir=`cd $ac_aux_dir && pwd`
2577 if test x"${MISSING+set}" != xset; then
2580 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2582 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2585 # Use eval to expand $SHELL
2586 if eval "$MISSING --is-lightweight"; then
2587 am_missing_run="$MISSING "
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing
' script is too old or missing" >&5
2591 $as_echo "$as_me: WARNING: 'missing
' script is too old or missing" >&2;}
2594 if test x"${install_sh}" != xset; then
2597 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2599 install_sh="\${SHELL} $am_aux_dir/install-sh"
2603 # Installed binaries are usually stripped using 'strip
' when the user
2604 # run "make install-strip". However 'strip
' might not be the right
2605 # tool to use in cross-compilation environments, therefore Automake
2606 # will honor the 'STRIP
' environment variable to overrule this program.
2607 if test "$cross_compiling" != no; then
2608 if test -n "$ac_tool_prefix"; then
2609 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2610 set dummy ${ac_tool_prefix}strip; ac_word=$2
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2612 $as_echo_n "checking for $ac_word... " >&6; }
2613 if ${ac_cv_prog_STRIP+:} false; then :
2614 $as_echo_n "(cached) " >&6
2616 if test -n "$STRIP"; then
2617 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2623 test -z "$as_dir" && as_dir=.
2624 for ac_exec_ext in '' $ac_executable_extensions; do
2625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2626 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2636 STRIP=$ac_cv_prog_STRIP
2637 if test -n "$STRIP"; then
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2639 $as_echo "$STRIP" >&6; }
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2642 $as_echo "no" >&6; }
2647 if test -z "$ac_cv_prog_STRIP"; then
2649 # Extract the first word of "strip", so it can be a program name with args.
2650 set dummy strip; ac_word=$2
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2652 $as_echo_n "checking for $ac_word... " >&6; }
2653 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2654 $as_echo_n "(cached) " >&6
2656 if test -n "$ac_ct_STRIP"; then
2657 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2663 test -z "$as_dir" && as_dir=.
2664 for ac_exec_ext in '' $ac_executable_extensions; do
2665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2666 ac_cv_prog_ac_ct_STRIP="strip"
2667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2676 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2677 if test -n "$ac_ct_STRIP"; then
2678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2679 $as_echo "$ac_ct_STRIP" >&6; }
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2682 $as_echo "no" >&6; }
2685 if test "x$ac_ct_STRIP" = x; then
2688 case $cross_compiling:$ac_tool_warned in
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2691 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2692 ac_tool_warned=yes ;;
2697 STRIP="$ac_cv_prog_STRIP"
2701 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2704 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2705 if test -z "$MKDIR_P"; then
2706 if ${ac_cv_path_mkdir+:} false; then :
2707 $as_echo_n "(cached) " >&6
2709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2710 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2713 test -z "$as_dir" && as_dir=.
2714 for ac_prog in mkdir gmkdir; do
2715 for ac_exec_ext in '' $ac_executable_extensions; do
2716 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2717 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2718 'mkdir (GNU coreutils
) '* | \
2719 'mkdir (coreutils
) '* | \
2720 'mkdir (fileutils
) '4.1*)
2721 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2731 test -d ./--version && rmdir ./--version
2732 if test "${ac_cv_path_mkdir+set}" = set; then
2733 MKDIR_P="$ac_cv_path_mkdir -p"
2735 # As a last resort, use the slow shell script. Don't cache a
2736 # value for MKDIR_P within a source directory, because that will
2737 # break other packages using the cache if that directory is
2738 # removed, or if the value is a relative name.
2739 MKDIR_P
="$ac_install_sh -d"
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2743 $as_echo "$MKDIR_P" >&6; }
2745 for ac_prog
in gawk mawk nawk
awk
2747 # Extract the first word of "$ac_prog", so it can be a program name with args.
2748 set dummy
$ac_prog; ac_word
=$2
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2750 $as_echo_n "checking for $ac_word... " >&6; }
2751 if ${ac_cv_prog_AWK+:} false
; then :
2752 $as_echo_n "(cached) " >&6
2754 if test -n "$AWK"; then
2755 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2757 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2761 test -z "$as_dir" && as_dir
=.
2762 for ac_exec_ext
in '' $ac_executable_extensions; do
2763 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2764 ac_cv_prog_AWK
="$ac_prog"
2765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2775 if test -n "$AWK"; then
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2777 $as_echo "$AWK" >&6; }
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2780 $as_echo "no" >&6; }
2784 test -n "$AWK" && break
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2788 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2790 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2791 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
2792 $as_echo_n "(cached) " >&6
2794 cat >conftest.
make <<\_ACEOF
2797 @
echo '@@@%%%=$(MAKE)=@@@%%%'
2799 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2800 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2802 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
2804 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
2808 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2810 $as_echo "yes" >&6; }
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2814 $as_echo "no" >&6; }
2815 SET_MAKE
="MAKE=${MAKE-make}"
2818 rm -rf .tst
2>/dev
/null
2819 mkdir .tst
2>/dev
/null
2820 if test -d .tst
; then
2825 rmdir .tst
2>/dev
/null
2827 # Check whether --enable-silent-rules was given.
2828 if test "${enable_silent_rules+set}" = set; then :
2829 enableval
=$enable_silent_rules;
2832 case $enable_silent_rules in # (((
2833 yes) AM_DEFAULT_VERBOSITY
=0;;
2834 no
) AM_DEFAULT_VERBOSITY
=1;;
2835 *) AM_DEFAULT_VERBOSITY
=1;;
2837 am_make
=${MAKE-make}
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2839 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2840 if ${am_cv_make_support_nested_variables+:} false
; then :
2841 $as_echo_n "(cached) " >&6
2843 if $as_echo 'TRUE=$(BAR$(V))
2849 .PHONY: am__doit' | $am_make -f - >/dev
/null
2>&1; then
2850 am_cv_make_support_nested_variables
=yes
2852 am_cv_make_support_nested_variables
=no
2855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2856 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2857 if test $am_cv_make_support_nested_variables = yes; then
2859 AM_DEFAULT_V
='$(AM_DEFAULT_VERBOSITY)'
2861 AM_V
=$AM_DEFAULT_VERBOSITY
2862 AM_DEFAULT_V
=$AM_DEFAULT_VERBOSITY
2866 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2867 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2868 # is not polluted with repeated "-I."
2869 am__isrc
=' -I$(srcdir)'
2870 # test to see if srcdir already configured
2871 if test -f $srcdir/config.status
; then
2872 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2876 # test whether we have cygpath
2877 if test -z "$CYGPATH_W"; then
2878 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
2879 CYGPATH_W
='cygpath -w'
2886 # Define the identity of the package.
2892 # Some tools Automake needs.
2894 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2897 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2900 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2903 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
2906 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
2908 # For better backward compatibility. To be removed once Automake 1.9.x
2909 # dies out for good. For more background, see:
2910 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2911 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2912 mkdir_p
='$(MKDIR_P)'
2914 # We need awk for the "check" target. The system "awk" is bad on
2916 # Always define AMTAR for backward compatibility. Yes, it's still used
2917 # in the wild :-( We should find a proper way to deprecate it ...
2921 # We'll loop over all known methods to create a tar archive until one works.
2922 _am_tools
='gnutar pax cpio none'
2924 am__tar
='$${TAR-tar} chof - "$$tardir"' am__untar
='$${TAR-tar} xf -'
2931 # POSIX will say in a future version that running "rm -f" with no argument
2932 # is OK; and we want to be able to make that assumption in our Makefile
2933 # recipes. So use an aggressive probe to check that the usage we want is
2934 # actually supported "in the wild" to an acceptable degree.
2935 # See automake bug#10828.
2936 # To make any issue more visible, cause the running configure to be aborted
2937 # by default if the 'rm' program in use doesn't match our expectations; the
2938 # user can still override this though.
2939 if rm -f && rm -fr && rm -rf; then : OK
; else
2943 Your 'rm' program seems unable to run without file operands specified
2944 on the command line, even when the '-f' option is present. This is contrary
2945 to the behaviour of most rm programs out there, and not conforming with
2946 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2948 Please tell bug-automake@gnu.org about your system, including the value
2949 of your $PATH and any error possibly output before this message. This
2950 can help us improve future automake versions.
2953 if test x
"$ACCEPT_INFERIOR_RM_PROGRAM" = x
"yes"; then
2954 echo 'Configuration will proceed anyway, since you have set the' >&2
2955 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2959 Aborting the configuration process, to ensure you take notice of the issue.
2961 You can download and install GNU coreutils to get an 'rm' implementation
2962 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2964 If you want to complete the configuration process using your problematic
2965 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2966 to "yes", and re-run configure.
2969 as_fn_error $?
"Your 'rm' program is bad, sorry." "$LINENO" 5
2973 ac_config_headers
="$ac_config_headers include/libratbox_config.h"
2977 DEPDIR
="${am__leading_dot}deps"
2979 ac_config_commands
="$ac_config_commands depfiles"
2982 am_make
=${MAKE-make}
2983 cat > confinc
<< 'END'
2985 @echo this is the am__doit target
2988 # If we don't find an include directive, just comment out the code.
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2990 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2994 # First try GNU make style include.
2995 echo "include confinc" > confmf
2996 # Ignore all kinds of additional output from 'make'.
2997 case `$am_make -s -f confmf 2> /dev/null` in #(
2998 *the\ am__doit\ target
*)
3004 # Now try BSD make style include.
3005 if test "$am__include" = "#"; then
3006 echo '.include "confinc"' > confmf
3007 case `$am_make -s -f confmf 2> /dev/null` in #(
3008 *the\ am__doit\ target
*)
3009 am__include
=.include
3017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3018 $as_echo "$_am_result" >&6; }
3019 rm -f confinc confmf
3021 # Check whether --enable-dependency-tracking was given.
3022 if test "${enable_dependency_tracking+set}" = set; then :
3023 enableval
=$enable_dependency_tracking;
3026 if test "x$enable_dependency_tracking" != xno
; then
3027 am_depcomp
="$ac_aux_dir/depcomp"
3031 if test "x$enable_dependency_tracking" != xno; then
3041 ac_cpp
='$CPP $CPPFLAGS'
3042 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3043 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3044 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3045 if test -n "$ac_tool_prefix"; then
3046 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3047 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3049 $as_echo_n "checking for $ac_word... " >&6; }
3050 if ${ac_cv_prog_CC+:} false
; then :
3051 $as_echo_n "(cached) " >&6
3053 if test -n "$CC"; then
3054 ac_cv_prog_CC
="$CC" # Let the user override the test.
3056 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3060 test -z "$as_dir" && as_dir
=.
3061 for ac_exec_ext
in '' $ac_executable_extensions; do
3062 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3063 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3074 if test -n "$CC"; then
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3076 $as_echo "$CC" >&6; }
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3079 $as_echo "no" >&6; }
3084 if test -z "$ac_cv_prog_CC"; then
3086 # Extract the first word of "gcc", so it can be a program name with args.
3087 set dummy gcc
; ac_word
=$2
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3089 $as_echo_n "checking for $ac_word... " >&6; }
3090 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3091 $as_echo_n "(cached) " >&6
3093 if test -n "$ac_ct_CC"; then
3094 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3096 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3100 test -z "$as_dir" && as_dir
=.
3101 for ac_exec_ext
in '' $ac_executable_extensions; do
3102 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3103 ac_cv_prog_ac_ct_CC
="gcc"
3104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3113 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3114 if test -n "$ac_ct_CC"; then
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3116 $as_echo "$ac_ct_CC" >&6; }
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3119 $as_echo "no" >&6; }
3122 if test "x$ac_ct_CC" = x
; then
3125 case $cross_compiling:$ac_tool_warned in
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3128 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3129 ac_tool_warned
=yes ;;
3137 if test -z "$CC"; then
3138 if test -n "$ac_tool_prefix"; then
3139 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3140 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3142 $as_echo_n "checking for $ac_word... " >&6; }
3143 if ${ac_cv_prog_CC+:} false
; then :
3144 $as_echo_n "(cached) " >&6
3146 if test -n "$CC"; then
3147 ac_cv_prog_CC
="$CC" # Let the user override the test.
3149 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3153 test -z "$as_dir" && as_dir
=.
3154 for ac_exec_ext
in '' $ac_executable_extensions; do
3155 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3156 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3167 if test -n "$CC"; then
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3169 $as_echo "$CC" >&6; }
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3172 $as_echo "no" >&6; }
3178 if test -z "$CC"; then
3179 # Extract the first word of "cc", so it can be a program name with args.
3180 set dummy cc
; ac_word
=$2
3181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3182 $as_echo_n "checking for $ac_word... " >&6; }
3183 if ${ac_cv_prog_CC+:} false
; then :
3184 $as_echo_n "(cached) " >&6
3186 if test -n "$CC"; then
3187 ac_cv_prog_CC
="$CC" # Let the user override the test.
3190 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3194 test -z "$as_dir" && as_dir
=.
3195 for ac_exec_ext
in '' $ac_executable_extensions; do
3196 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3197 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3198 ac_prog_rejected
=yes
3202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3209 if test $ac_prog_rejected = yes; then
3210 # We found a bogon in the path, so make sure we never use it.
3211 set dummy
$ac_cv_prog_CC
3213 if test $# != 0; then
3214 # We chose a different compiler from the bogus one.
3215 # However, it has the same basename, so the bogon will be chosen
3216 # first if we set CC to just the basename; use the full file name.
3218 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3224 if test -n "$CC"; then
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3226 $as_echo "$CC" >&6; }
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3229 $as_echo "no" >&6; }
3234 if test -z "$CC"; then
3235 if test -n "$ac_tool_prefix"; then
3236 for ac_prog
in cl.exe
3238 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3239 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3241 $as_echo_n "checking for $ac_word... " >&6; }
3242 if ${ac_cv_prog_CC+:} false
; then :
3243 $as_echo_n "(cached) " >&6
3245 if test -n "$CC"; then
3246 ac_cv_prog_CC
="$CC" # Let the user override the test.
3248 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3252 test -z "$as_dir" && as_dir
=.
3253 for ac_exec_ext
in '' $ac_executable_extensions; do
3254 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3255 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3266 if test -n "$CC"; then
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3268 $as_echo "$CC" >&6; }
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3271 $as_echo "no" >&6; }
3275 test -n "$CC" && break
3278 if test -z "$CC"; then
3280 for ac_prog
in cl.exe
3282 # Extract the first word of "$ac_prog", so it can be a program name with args.
3283 set dummy
$ac_prog; ac_word
=$2
3284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3285 $as_echo_n "checking for $ac_word... " >&6; }
3286 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3287 $as_echo_n "(cached) " >&6
3289 if test -n "$ac_ct_CC"; then
3290 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3292 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3296 test -z "$as_dir" && as_dir
=.
3297 for ac_exec_ext
in '' $ac_executable_extensions; do
3298 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3299 ac_cv_prog_ac_ct_CC
="$ac_prog"
3300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3309 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3310 if test -n "$ac_ct_CC"; then
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3312 $as_echo "$ac_ct_CC" >&6; }
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3315 $as_echo "no" >&6; }
3319 test -n "$ac_ct_CC" && break
3322 if test "x$ac_ct_CC" = x
; then
3325 case $cross_compiling:$ac_tool_warned in
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3328 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3329 ac_tool_warned
=yes ;;
3338 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3339 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3340 as_fn_error $?
"no acceptable C compiler found in \$PATH
3341 See \`config.log' for more details" "$LINENO" 5; }
3343 # Provide some information about the compiler.
3344 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3347 for ac_option
in --version -v -V -qversion; do
3348 { { ac_try
="$ac_compiler $ac_option >&5"
3350 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
3351 *) ac_try_echo=$ac_try;;
3353 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3354 $as_echo "$ac_try_echo"; } >&5
3355 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3357 if test -s conftest.err; then
3359 ... rest of stderr output deleted ...
3360 10q' conftest.err >conftest.er1
3361 cat conftest.er1 >&5
3363 rm -f conftest.er1 conftest.err
3364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3365 test $ac_status = 0; }
3368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3369 /* end confdefs.h. */
3379 ac_clean_files_save=$ac_clean_files
3380 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3381 # Try to create an executable without -o first, disregard a.out.
3382 # It will help us diagnose broken compilers, and finding out an intuition
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3385 $as_echo_n "checking whether the C compiler works... " >&6; }
3386 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3388 # The possible output files:
3389 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3392 for ac_file in $ac_files
3395 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3396 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3401 if { { ac_try="$ac_link_default"
3403 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
3404 *) ac_try_echo
=$ac_try;;
3406 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3407 $as_echo "$ac_try_echo"; } >&5
3408 (eval "$ac_link_default") 2>&5
3410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3411 test $ac_status = 0; }; then :
3412 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3413 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3414 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3415 # so that the user can short-circuit this test for compilers unknown to
3417 for ac_file
in $ac_files ''
3419 test -f "$ac_file" || continue
3421 *.
$ac_ext | *.xcoff
| *.tds
| *.d
| *.pdb
| *.xSYM
| *.bb
| *.bbg
| *.map
| *.inf
| *.dSYM
| *.o
| *.obj
)
3424 # We found the default executable, but exeext='' is most
3428 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3430 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3432 # We set ac_cv_exeext here because the later test for it is not
3433 # safe: cross compilers may not add the suffix if given an `-o'
3434 # argument, so we may need to know it at that point already.
3435 # Even if this section looks crufty: it has the advantage of
3442 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3447 if test -z "$ac_file"; then :
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3449 $as_echo "no" >&6; }
3450 $as_echo "$as_me: failed program was:" >&5
3451 sed 's/^/| /' conftest.
$ac_ext >&5
3453 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3454 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3455 as_fn_error
77 "C compiler cannot create executables
3456 See \`config.log' for more details" "$LINENO" 5; }
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3459 $as_echo "yes" >&6; }
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3462 $as_echo_n "checking for C compiler default output file name... " >&6; }
3463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3464 $as_echo "$ac_file" >&6; }
3465 ac_exeext
=$ac_cv_exeext
3467 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3468 ac_clean_files
=$ac_clean_files_save
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3470 $as_echo_n "checking for suffix of executables... " >&6; }
3471 if { { ac_try
="$ac_link"
3473 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
3474 *) ac_try_echo=$ac_try;;
3476 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3477 $as_echo "$ac_try_echo"; } >&5
3478 (eval "$ac_link") 2>&5
3480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3481 test $ac_status = 0; }; then :
3482 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3483 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3484 # work properly (i.e., refer to `conftest.exe'), while it won't with
3486 for ac_file
in conftest.exe conftest conftest.
*; do
3487 test -f "$ac_file" || continue
3489 *.
$ac_ext | *.xcoff
| *.tds
| *.d
| *.pdb
| *.xSYM
| *.bb
| *.bbg
| *.map
| *.inf
| *.dSYM
| *.o
| *.obj
) ;;
3490 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3496 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3497 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3498 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3499 See \`config.log' for more details" "$LINENO" 5; }
3501 rm -f conftest conftest
$ac_cv_exeext
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3503 $as_echo "$ac_cv_exeext" >&6; }
3505 rm -f conftest.
$ac_ext
3506 EXEEXT
=$ac_cv_exeext
3508 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3509 /* end confdefs.h. */
3514 FILE *f = fopen ("conftest.out", "w");
3515 return ferror (f) || fclose (f) != 0;
3521 ac_clean_files
="$ac_clean_files conftest.out"
3522 # Check that the compiler produces executables we can run. If not, either
3523 # the compiler is broken, or we cross compile.
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3525 $as_echo_n "checking whether we are cross compiling... " >&6; }
3526 if test "$cross_compiling" != yes; then
3527 { { ac_try
="$ac_link"
3529 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
3530 *) ac_try_echo=$ac_try;;
3532 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3533 $as_echo "$ac_try_echo"; } >&5
3534 (eval "$ac_link") 2>&5
3536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3537 test $ac_status = 0; }
3538 if { ac_try='./conftest$ac_cv_exeext'
3539 { { case "(($ac_try" in
3540 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
3541 *) ac_try_echo
=$ac_try;;
3543 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3544 $as_echo "$ac_try_echo"; } >&5
3545 (eval "$ac_try") 2>&5
3547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3548 test $ac_status = 0; }; }; then
3551 if test "$cross_compiling" = maybe
; then
3554 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3555 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3556 as_fn_error $?
"cannot run C compiled programs.
3557 If you meant to cross compile, use \`--host'.
3558 See \`config.log' for more details" "$LINENO" 5; }
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3563 $as_echo "$cross_compiling" >&6; }
3565 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3566 ac_clean_files
=$ac_clean_files_save
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3568 $as_echo_n "checking for suffix of object files... " >&6; }
3569 if ${ac_cv_objext+:} false
; then :
3570 $as_echo_n "(cached) " >&6
3572 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3573 /* end confdefs.h. */
3583 rm -f conftest.o conftest.obj
3584 if { { ac_try
="$ac_compile"
3586 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
3587 *) ac_try_echo=$ac_try;;
3589 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3590 $as_echo "$ac_try_echo"; } >&5
3591 (eval "$ac_compile") 2>&5
3593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3594 test $ac_status = 0; }; then :
3595 for ac_file in conftest.o conftest.obj conftest.*; do
3596 test -f "$ac_file" || continue;
3598 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3599 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3604 $as_echo "$as_me: failed program was:" >&5
3605 sed 's/^/| /' conftest.$ac_ext >&5
3607 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3608 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3609 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3610 See \
`config.log' for more details" "$LINENO" 5; }
3612 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3615 $as_echo "$ac_cv_objext" >&6; }
3616 OBJEXT=$ac_cv_objext
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3619 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3620 if ${ac_cv_c_compiler_gnu+:} false; then :
3621 $as_echo_n "(cached) " >&6
3623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3624 /* end confdefs.h. */
3637 if ac_fn_c_try_compile "$LINENO"; then :
3642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3643 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3647 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3648 if test $ac_compiler_gnu = yes; then
3653 ac_test_CFLAGS=${CFLAGS+set}
3654 ac_save_CFLAGS=$CFLAGS
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3656 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3657 if ${ac_cv_prog_cc_g+:} false; then :
3658 $as_echo_n "(cached) " >&6
3660 ac_save_c_werror_flag=$ac_c_werror_flag
3661 ac_c_werror_flag=yes
3664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3665 /* end confdefs.h. */
3675 if ac_fn_c_try_compile "$LINENO"; then :
3679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3680 /* end confdefs.h. */
3690 if ac_fn_c_try_compile "$LINENO"; then :
3693 ac_c_werror_flag=$ac_save_c_werror_flag
3695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3696 /* end confdefs.h. */
3706 if ac_fn_c_try_compile "$LINENO"; then :
3709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3714 ac_c_werror_flag=$ac_save_c_werror_flag
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3717 $as_echo "$ac_cv_prog_cc_g" >&6; }
3718 if test "$ac_test_CFLAGS" = set; then
3719 CFLAGS=$ac_save_CFLAGS
3720 elif test $ac_cv_prog_cc_g = yes; then
3721 if test "$GCC" = yes; then
3727 if test "$GCC" = yes; then
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3734 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3735 if ${ac_cv_prog_cc_c89+:} false; then :
3736 $as_echo_n "(cached) " >&6
3738 ac_cv_prog_cc_c89=no
3740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3741 /* end confdefs.h. */
3745 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3746 struct buf { int x; };
3747 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3748 static char *e (p, i)
3754 static char *f (char * (*g) (char **, int), char **p, ...)
3759 s = g (p, va_arg (v,int));
3764 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3765 function prototypes and stuff, but not '\xHH' hex character constants.
3766 These don't provoke an error unfortunately, instead are silently treated
3767 as 'x'. The following induces an error, until -std is added to get
3768 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3769 array size at least. It's necessary to write '\x00'==0 to get something
3770 that's true only with -std. */
3771 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3773 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3774 inside strings and character constants. */
3776 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3778 int test (int i, double x);
3779 struct s1 {int (*f) (int a);};
3780 struct s2 {int (*f) (double a);};
3781 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3787 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3792 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3793 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3795 CC="$ac_save_CC $ac_arg"
3796 if ac_fn_c_try_compile "$LINENO"; then :
3797 ac_cv_prog_cc_c89=$ac_arg
3799 rm -f core conftest.err conftest.$ac_objext
3800 test "x$ac_cv_prog_cc_c89" != "xno" && break
3802 rm -f conftest.$ac_ext
3807 case "x$ac_cv_prog_cc_c89" in
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3810 $as_echo "none needed" >&6; } ;;
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3813 $as_echo "unsupported" >&6; } ;;
3815 CC="$CC $ac_cv_prog_cc_c89"
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3817 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3819 if test "x$ac_cv_prog_cc_c89" != xno; then :
3824 ac_cpp='$CPP $CPPFLAGS'
3825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3830 ac_cpp='$CPP $CPPFLAGS'
3831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3835 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3836 if ${am_cv_prog_cc_c_o+:} false; then :
3837 $as_echo_n "(cached) " >&6
3839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3840 /* end confdefs.h. */
3850 # Make sure it works both with $CC and with simple cc.
3851 # Following AC_PROG_CC_C_O, we do the test twice because some
3852 # compilers refuse to overwrite an existing .o file with -o,
3853 # though they will create one.
3854 am_cv_prog_cc_c_o=yes
3856 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3857 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860 (exit $ac_status); } \
3861 && test -f conftest2.$ac_objext; then
3864 am_cv_prog_cc_c_o=no
3868 rm -f core conftest*
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3872 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3873 if test "$am_cv_prog_cc_c_o" != yes; then
3874 # Losing compiler, so override with the script.
3875 # FIXME: It is wrong to rewrite CC.
3876 # But if we don't then we get into trouble of one sort or another.
3877 # A longer-term fix would be to have automake use am__CC in this case,
3878 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3879 CC="$am_aux_dir/compile $CC"
3882 ac_cpp='$CPP $CPPFLAGS'
3883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3888 depcc="$CC" am_compiler_list=
3890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3891 $as_echo_n "checking dependency style of $depcc... " >&6; }
3892 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3893 $as_echo_n "(cached) " >&6
3895 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3896 # We make a subdir and do the tests there. Otherwise we can end up
3897 # making bogus files that we don't know about and never remove. For
3898 # instance it was reported that on HP-UX the gcc test will end up
3899 # making a dummy file named 'D' -- because '-MD' means "put the output
3903 # Copy depcomp to subdir because otherwise we won't find it if we're
3904 # using a relative directory.
3905 cp "$am_depcomp" conftest.dir
3907 # We will build objects and dependencies in a subdirectory because
3908 # it helps to detect inapplicable dependency modes. For instance
3909 # both Tru64's cc and ICC support -MD to output dependencies as a
3910 # side effect of compilation, but ICC will put the dependencies in
3911 # the current directory while Tru64 will put them in the object
3915 am_cv_CC_dependencies_compiler_type=none
3916 if test "$am_compiler_list" = ""; then
3917 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
3920 case " $depcc " in #(
3921 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3924 for depmode in $am_compiler_list; do
3925 # Setup a source with many dependencies, because some compilers
3926 # like to wrap large dependency lists on column 80 (with \), and
3927 # we should not choose a depcomp mode which is confused by this.
3929 # We need to recreate these files for each test, as the compiler may
3930 # overwrite some of them when testing with obscure command lines.
3931 # This happens at least with the AIX C compiler.
3933 for i in 1 2 3 4 5 6; do
3934 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3935 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3936 # Solaris 10 /bin/sh.
3937 echo '/* dummy */' > sub/conftst$i.h
3939 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3941 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3942 # mode. It turns out that the SunPro C++ compiler does not properly
3943 # handle '-M -o', and we need to detect this. Also, some Intel
3944 # versions had trouble with output in subdirs.
3945 am__obj=sub/conftest.${OBJEXT-o}
3946 am__minus_obj="-o $am__obj"
3949 # This depmode causes a compiler race in universal mode.
3950 test "$am__universal" = false || continue
3953 # After this tag, mechanisms are not by side-effect, so they'll
3954 # only be used when explicitly requested.
3955 if test "x$enable_dependency_tracking" = xyes; then
3961 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3962 # This compiler won't grok '-c -o', but also, the minuso test has
3963 # not run yet. These depmodes are late enough in the game, and
3964 # so weak that their functioning should not be impacted.
3965 am__obj=conftest.${OBJEXT-o}
3970 if depmode=$depmode \
3971 source=sub/conftest.c object=$am__obj \
3972 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3973 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3974 >/dev/null 2>conftest.err &&
3975 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3976 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3977 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3978 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3979 # icc doesn't choke on unknown options, it will just issue warnings
3980 # or remarks (even with -Werror). So we grep stderr for any message
3981 # that says an option was ignored or not supported.
3982 # When given -MP, icc 7.0 and 7.1 complain thusly:
3983 # icc: Command line warning: ignoring option '-M'; no argument required
3984 # The diagnosis changed in icc 8.0:
3985 # icc: Command line remark: option '-MP' not supported
3986 if (grep 'ignoring option' conftest.err ||
3987 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3988 am_cv_CC_dependencies_compiler_type=$depmode
3997 am_cv_CC_dependencies_compiler_type=none
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4002 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4003 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4006 test "x$enable_dependency_tracking" != xno \
4007 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4009 am__fastdepCC_FALSE='#'
4011 am__fastdepCC_TRUE='#'
4012 am__fastdepCC_FALSE=
4018 ac_cpp='$CPP $CPPFLAGS'
4019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4023 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4024 # On Suns, sometimes $CPP names a directory.
4025 if test -n "$CPP" && test -d "$CPP"; then
4028 if test -z "$CPP"; then
4029 if ${ac_cv_prog_CPP+:} false; then :
4030 $as_echo_n "(cached) " >&6
4032 # Double quotes because CPP needs to be expanded
4033 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4036 for ac_c_preproc_warn_flag in '' yes
4038 # Use a header file that comes with gcc, so configuring glibc
4039 # with a fresh cross-compiler works.
4040 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4041 # <limits.h> exists even on freestanding compilers.
4042 # On the NeXT, cc -E runs the code through the compiler's parser,
4043 # not just through cpp. "Syntax error" is here to catch this case.
4044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4045 /* end confdefs.h. */
4047 # include <limits.h>
4049 # include <assert.h>
4053 if ac_fn_c_try_cpp "$LINENO"; then :
4056 # Broken: fails on valid input.
4059 rm -f conftest.err conftest.i conftest.$ac_ext
4061 # OK, works on sane cases. Now check whether nonexistent headers
4062 # can be detected and how.
4063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4064 /* end confdefs.h. */
4065 #include <ac_nonexistent.h>
4067 if ac_fn_c_try_cpp "$LINENO"; then :
4068 # Broken: success on invalid input.
4071 # Passes both tests.
4075 rm -f conftest.err conftest.i conftest.$ac_ext
4078 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4079 rm -f conftest.i conftest.err conftest.
$ac_ext
4080 if $ac_preproc_ok; then :
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4093 $as_echo "$CPP" >&6; }
4095 for ac_c_preproc_warn_flag
in '' yes
4097 # Use a header file that comes with gcc, so configuring glibc
4098 # with a fresh cross-compiler works.
4099 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4100 # <limits.h> exists even on freestanding compilers.
4101 # On the NeXT, cc -E runs the code through the compiler's parser,
4102 # not just through cpp. "Syntax error" is here to catch this case.
4103 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4104 /* end confdefs.h. */
4106 # include <limits.h>
4108 # include <assert.h>
4112 if ac_fn_c_try_cpp
"$LINENO"; then :
4115 # Broken: fails on valid input.
4118 rm -f conftest.err conftest.i conftest.
$ac_ext
4120 # OK, works on sane cases. Now check whether nonexistent headers
4121 # can be detected and how.
4122 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4123 /* end confdefs.h. */
4124 #include <ac_nonexistent.h>
4126 if ac_fn_c_try_cpp
"$LINENO"; then :
4127 # Broken: success on invalid input.
4130 # Passes both tests.
4134 rm -f conftest.err conftest.i conftest.
$ac_ext
4137 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4138 rm -f conftest.i conftest.err conftest.
$ac_ext
4139 if $ac_preproc_ok; then :
4142 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4143 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4144 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
4145 See \`config.log' for more details" "$LINENO" 5; }
4149 ac_cpp
='$CPP $CPPFLAGS'
4150 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4151 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4152 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4156 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4157 if ${ac_cv_path_GREP+:} false
; then :
4158 $as_echo_n "(cached) " >&6
4160 if test -z "$GREP"; then
4161 ac_path_GREP_found
=false
4162 # Loop through the user's path and test for each of PROGNAME-LIST
4163 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4164 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4167 test -z "$as_dir" && as_dir
=.
4168 for ac_prog
in grep ggrep
; do
4169 for ac_exec_ext
in '' $ac_executable_extensions; do
4170 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4171 as_fn_executable_p
"$ac_path_GREP" || continue
4172 # Check for GNU ac_path_GREP and select it if it is found.
4173 # Check for GNU $ac_path_GREP
4174 case `"$ac_path_GREP" --version 2>&1` in
4176 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4179 $as_echo_n 0123456789 >"conftest.in"
4182 cat "conftest.in" "conftest.in" >"conftest.tmp"
4183 mv "conftest.tmp" "conftest.in"
4184 cp "conftest.in" "conftest.nl"
4185 $as_echo 'GREP' >> "conftest.nl"
4186 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null
|| break
4187 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 || break
4188 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4189 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4190 # Best one so far, save it but keep looking for a better one
4191 ac_cv_path_GREP
="$ac_path_GREP"
4192 ac_path_GREP_max
=$ac_count
4194 # 10*(2^10) chars as input seems more than enough
4195 test $ac_count -gt 10 && break
4197 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4200 $ac_path_GREP_found && break 3
4205 if test -z "$ac_cv_path_GREP"; then
4206 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4209 ac_cv_path_GREP
=$GREP
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4214 $as_echo "$ac_cv_path_GREP" >&6; }
4215 GREP
="$ac_cv_path_GREP"
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4219 $as_echo_n "checking for egrep... " >&6; }
4220 if ${ac_cv_path_EGREP+:} false
; then :
4221 $as_echo_n "(cached) " >&6
4223 if echo a
| $GREP -E '(a|b)' >/dev
/null
2>&1
4224 then ac_cv_path_EGREP
="$GREP -E"
4226 if test -z "$EGREP"; then
4227 ac_path_EGREP_found
=false
4228 # Loop through the user's path and test for each of PROGNAME-LIST
4229 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4230 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4233 test -z "$as_dir" && as_dir
=.
4234 for ac_prog
in egrep; do
4235 for ac_exec_ext
in '' $ac_executable_extensions; do
4236 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4237 as_fn_executable_p
"$ac_path_EGREP" || continue
4238 # Check for GNU ac_path_EGREP and select it if it is found.
4239 # Check for GNU $ac_path_EGREP
4240 case `"$ac_path_EGREP" --version 2>&1` in
4242 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4245 $as_echo_n 0123456789 >"conftest.in"
4248 cat "conftest.in" "conftest.in" >"conftest.tmp"
4249 mv "conftest.tmp" "conftest.in"
4250 cp "conftest.in" "conftest.nl"
4251 $as_echo 'EGREP' >> "conftest.nl"
4252 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null
|| break
4253 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 || break
4254 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4255 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4256 # Best one so far, save it but keep looking for a better one
4257 ac_cv_path_EGREP
="$ac_path_EGREP"
4258 ac_path_EGREP_max
=$ac_count
4260 # 10*(2^10) chars as input seems more than enough
4261 test $ac_count -gt 10 && break
4263 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4266 $ac_path_EGREP_found && break 3
4271 if test -z "$ac_cv_path_EGREP"; then
4272 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4275 ac_cv_path_EGREP
=$EGREP
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4281 $as_echo "$ac_cv_path_EGREP" >&6; }
4282 EGREP
="$ac_cv_path_EGREP"
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4286 $as_echo_n "checking for ANSI C header files... " >&6; }
4287 if ${ac_cv_header_stdc+:} false
; then :
4288 $as_echo_n "(cached) " >&6
4290 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4291 /* end confdefs.h. */
4305 if ac_fn_c_try_compile
"$LINENO"; then :
4306 ac_cv_header_stdc
=yes
4308 ac_cv_header_stdc
=no
4310 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4312 if test $ac_cv_header_stdc = yes; then
4313 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4314 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4315 /* end confdefs.h. */
4319 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4320 $EGREP "memchr" >/dev
/null
2>&1; then :
4323 ac_cv_header_stdc
=no
4329 if test $ac_cv_header_stdc = yes; then
4330 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4331 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4332 /* end confdefs.h. */
4336 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4337 $EGREP "free" >/dev
/null
2>&1; then :
4340 ac_cv_header_stdc
=no
4346 if test $ac_cv_header_stdc = yes; then
4347 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4348 if test "$cross_compiling" = yes; then :
4351 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4352 /* end confdefs.h. */
4355 #if ((' ' & 0x0FF) == 0x020)
4356 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4357 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4359 # define ISLOWER(c) \
4360 (('a' <= (c) && (c) <= 'i') \
4361 || ('j' <= (c) && (c) <= 'r') \
4362 || ('s' <= (c) && (c) <= 'z'))
4363 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4366 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4371 for (i = 0; i < 256; i++)
4372 if (XOR (islower (i), ISLOWER (i))
4373 || toupper (i) != TOUPPER (i))
4378 if ac_fn_c_try_run
"$LINENO"; then :
4381 ac_cv_header_stdc
=no
4383 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4384 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4390 $as_echo "$ac_cv_header_stdc" >&6; }
4391 if test $ac_cv_header_stdc = yes; then
4393 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4397 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4398 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4399 inttypes.h stdint.h unistd.h
4401 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4402 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4404 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4405 cat >>confdefs.h
<<_ACEOF
4406 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4415 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4416 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
4423 if test "$MINIX" = yes; then
4425 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4428 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4431 $as_echo "#define _MINIX 1" >>confdefs.h
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4437 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4438 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
4439 $as_echo_n "(cached) " >&6
4441 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4442 /* end confdefs.h. */
4444 # define __EXTENSIONS__ 1
4445 $ac_includes_default
4454 if ac_fn_c_try_compile
"$LINENO"; then :
4455 ac_cv_safe_to_define___extensions__
=yes
4457 ac_cv_safe_to_define___extensions__
=no
4459 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4462 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4463 test $ac_cv_safe_to_define___extensions__ = yes &&
4464 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4466 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4468 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4470 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4472 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4478 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4479 if ${ac_cv_prog_cc_c99+:} false
; then :
4480 $as_echo_n "(cached) " >&6
4482 ac_cv_prog_cc_c99
=no
4484 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4485 /* end confdefs.h. */
4487 #include <stdbool.h>
4492 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4493 #define debug(...) fprintf (stderr, __VA_ARGS__)
4494 #define showlist(...) puts (#__VA_ARGS__)
4495 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4497 test_varargs_macros (void)
4502 debug ("X = %d\n", x);
4503 showlist (The first, second, and third items.);
4504 report (x>y, "x is %d but y is %d", x, y);
4507 // Check long long types.
4508 #define BIG64 18446744073709551615ull
4509 #define BIG32 4294967295ul
4510 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4512 your preprocessor is broken;
4516 your preprocessor is broken;
4518 static long long int bignum = -9223372036854775807LL;
4519 static unsigned long long int ubignum = BIG64;
4521 struct incomplete_array
4529 const wchar_t *name;
4533 typedef const char *ccp;
4536 test_restrict (ccp restrict text)
4538 // See if C++-style comments work.
4539 // Iterate through items via the restricted pointer.
4540 // Also check for declarations in for loops.
4541 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4546 // Check varargs and va_copy.
4548 test_varargs (const char *format, ...)
4551 va_start (args, format);
4553 va_copy (args_copy, args);
4564 str = va_arg (args_copy, const char *);
4567 number = va_arg (args_copy, int);
4570 fnumber = va_arg (args_copy, double);
4585 _Bool success = false;
4588 if (test_restrict ("String literal") == 0)
4590 char *restrict newvar = "Another string";
4593 test_varargs ("s, d' f .", "string", 65, 34.234);
4594 test_varargs_macros ();
4596 // Check flexible array members.
4597 struct incomplete_array *ia =
4598 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4600 for (int i = 0; i < ia->datasize; ++i)
4601 ia->data[i] = i * 1.234;
4603 // Check named initializers.
4604 struct named_init ni = {
4606 .name = L"Test wide string",
4607 .average = 543.34343,
4612 int dynamic_array[ni.number];
4613 dynamic_array[ni.number - 1] = 543;
4615 // work around unused variable warnings
4616 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4617 || dynamic_array[ni.number - 1] != 543);
4623 for ac_arg
in '' -std=gnu99
-std=c99
-c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
4625 CC
="$ac_save_CC $ac_arg"
4626 if ac_fn_c_try_compile
"$LINENO"; then :
4627 ac_cv_prog_cc_c99
=$ac_arg
4629 rm -f core conftest.err conftest.
$ac_objext
4630 test "x$ac_cv_prog_cc_c99" != "xno" && break
4632 rm -f conftest.
$ac_ext
4637 case "x$ac_cv_prog_cc_c99" in
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4640 $as_echo "none needed" >&6; } ;;
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4643 $as_echo "unsupported" >&6; } ;;
4645 CC
="$CC $ac_cv_prog_cc_c99"
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4647 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4649 if test "x$ac_cv_prog_cc_c99" != xno
; then :
4655 if test x
"$ac_cv_prog_cc_c99" = "xno"; then
4656 as_fn_error $?
"ircd-ratbox requires a C99 capable compiler" "$LINENO" 5
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4662 $as_echo_n "checking for egrep... " >&6; }
4663 if ${ac_cv_path_EGREP+:} false
; then :
4664 $as_echo_n "(cached) " >&6
4666 if echo a
| $GREP -E '(a|b)' >/dev
/null
2>&1
4667 then ac_cv_path_EGREP
="$GREP -E"
4669 if test -z "$EGREP"; then
4670 ac_path_EGREP_found
=false
4671 # Loop through the user's path and test for each of PROGNAME-LIST
4672 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4673 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4676 test -z "$as_dir" && as_dir
=.
4677 for ac_prog
in egrep; do
4678 for ac_exec_ext
in '' $ac_executable_extensions; do
4679 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4680 as_fn_executable_p
"$ac_path_EGREP" || continue
4681 # Check for GNU ac_path_EGREP and select it if it is found.
4682 # Check for GNU $ac_path_EGREP
4683 case `"$ac_path_EGREP" --version 2>&1` in
4685 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4688 $as_echo_n 0123456789 >"conftest.in"
4691 cat "conftest.in" "conftest.in" >"conftest.tmp"
4692 mv "conftest.tmp" "conftest.in"
4693 cp "conftest.in" "conftest.nl"
4694 $as_echo 'EGREP' >> "conftest.nl"
4695 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null
|| break
4696 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 || break
4697 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4698 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4699 # Best one so far, save it but keep looking for a better one
4700 ac_cv_path_EGREP
="$ac_path_EGREP"
4701 ac_path_EGREP_max
=$ac_count
4703 # 10*(2^10) chars as input seems more than enough
4704 test $ac_count -gt 10 && break
4706 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4709 $ac_path_EGREP_found && break 3
4714 if test -z "$ac_cv_path_EGREP"; then
4715 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4718 ac_cv_path_EGREP
=$EGREP
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4724 $as_echo "$ac_cv_path_EGREP" >&6; }
4725 EGREP
="$ac_cv_path_EGREP"
4728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4729 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4730 if ${ac_cv_path_SED+:} false
; then :
4731 $as_echo_n "(cached) " >&6
4733 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
4734 for ac_i
in 1 2 3 4 5 6 7; do
4735 ac_script
="$ac_script$as_nl$ac_script"
4737 echo "$ac_script" 2>/dev
/null
| sed 99q
>conftest.
sed
4738 { ac_script
=; unset ac_script
;}
4739 if test -z "$SED"; then
4740 ac_path_SED_found
=false
4741 # Loop through the user's path and test for each of PROGNAME-LIST
4742 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4746 test -z "$as_dir" && as_dir
=.
4747 for ac_prog
in sed gsed
; do
4748 for ac_exec_ext
in '' $ac_executable_extensions; do
4749 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
4750 as_fn_executable_p
"$ac_path_SED" || continue
4751 # Check for GNU ac_path_SED and select it if it is found.
4752 # Check for GNU $ac_path_SED
4753 case `"$ac_path_SED" --version 2>&1` in
4755 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
4758 $as_echo_n 0123456789 >"conftest.in"
4761 cat "conftest.in" "conftest.in" >"conftest.tmp"
4762 mv "conftest.tmp" "conftest.in"
4763 cp "conftest.in" "conftest.nl"
4764 $as_echo '' >> "conftest.nl"
4765 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null
|| break
4766 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 || break
4767 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4768 if test $ac_count -gt ${ac_path_SED_max-0}; then
4769 # Best one so far, save it but keep looking for a better one
4770 ac_cv_path_SED
="$ac_path_SED"
4771 ac_path_SED_max
=$ac_count
4773 # 10*(2^10) chars as input seems more than enough
4774 test $ac_count -gt 10 && break
4776 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4779 $ac_path_SED_found && break 3
4784 if test -z "$ac_cv_path_SED"; then
4785 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
4792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4793 $as_echo "$ac_cv_path_SED" >&6; }
4794 SED
="$ac_cv_path_SED"
4802 # Check whether --enable-static was given.
4803 if test "${enable_static+set}" = set; then :
4804 enableval
=$enable_static; p
=${PACKAGE-default}
4806 yes) enable_static
=yes ;;
4807 no
) enable_static
=no
;;
4810 # Look at the argument we got. We use all the common list separators.
4811 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
4812 for pkg
in $enableval; do
4814 if test "X$pkg" = "X$p"; then
4833 # Check whether --enable-shared was given.
4834 if test "${enable_shared+set}" = set; then :
4835 enableval
=$enable_shared; p
=${PACKAGE-default}
4837 yes) enable_shared
=yes ;;
4838 no
) enable_shared
=no
;;
4841 # Look at the argument we got. We use all the common list separators.
4842 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
4843 for pkg
in $enableval; do
4845 if test "X$pkg" = "X$p"; then
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4866 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4867 # Check whether --enable-maintainer-mode was given.
4868 if test "${enable_maintainer_mode+set}" = set; then :
4869 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
4871 USE_MAINTAINER_MODE
=no
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4875 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4876 if test $USE_MAINTAINER_MODE = yes; then
4877 MAINTAINER_MODE_TRUE
=
4878 MAINTAINER_MODE_FALSE
='#'
4880 MAINTAINER_MODE_TRUE
='#'
4881 MAINTAINER_MODE_FALSE
=
4884 MAINT
=$MAINTAINER_MODE_TRUE
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
4889 $as_echo_n "checking for library containing strerror... " >&6; }
4890 if ${ac_cv_search_strerror+:} false
; then :
4891 $as_echo_n "(cached) " >&6
4893 ac_func_search_save_LIBS
=$LIBS
4894 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4895 /* end confdefs.h. */
4897 /* Override any GCC internal prototype to avoid an error.
4898 Use char because int might match the return type of a GCC
4899 builtin and then its argument prototype would still apply. */
4912 for ac_lib
in '' cposix
; do
4913 if test -z "$ac_lib"; then
4914 ac_res
="none required"
4917 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4919 if ac_fn_c_try_link
"$LINENO"; then :
4920 ac_cv_search_strerror
=$ac_res
4922 rm -f core conftest.err conftest.
$ac_objext \
4924 if ${ac_cv_search_strerror+:} false
; then :
4928 if ${ac_cv_search_strerror+:} false
; then :
4931 ac_cv_search_strerror
=no
4934 LIBS
=$ac_func_search_save_LIBS
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
4937 $as_echo "$ac_cv_search_strerror" >&6; }
4938 ac_res
=$ac_cv_search_strerror
4939 if test "$ac_res" != no
; then :
4940 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4945 $as_echo_n "checking for inline... " >&6; }
4946 if ${ac_cv_c_inline+:} false
; then :
4947 $as_echo_n "(cached) " >&6
4950 for ac_kw
in inline __inline__ __inline
; do
4951 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4952 /* end confdefs.h. */
4955 static $ac_kw foo_t static_foo () {return 0; }
4956 $ac_kw foo_t foo () {return 0; }
4960 if ac_fn_c_try_compile
"$LINENO"; then :
4961 ac_cv_c_inline
=$ac_kw
4963 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4964 test "$ac_cv_c_inline" != no
&& break
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4969 $as_echo "$ac_cv_c_inline" >&6; }
4971 case $ac_cv_c_inline in
4974 case $ac_cv_c_inline in
4976 *) ac_val
=$ac_cv_c_inline;;
4978 cat >>confdefs.h
<<_ACEOF
4980 #define inline $ac_val
4986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4987 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4988 if ${ac_cv_c_const+:} false
; then :
4989 $as_echo_n "(cached) " >&6
4991 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4992 /* end confdefs.h. */
4999 /* Ultrix mips cc rejects this sort of thing. */
5000 typedef int charset[2];
5001 const charset cs = { 0, 0 };
5002 /* SunOS 4.1.1 cc rejects this. */
5003 char const *const *pcpcc;
5005 /* NEC SVR4.0.2 mips cc rejects this. */
5006 struct point {int x, y;};
5007 static struct point const zero = {0,0};
5008 /* AIX XL C 1.02.0.0 rejects this.
5009 It does not let you subtract one const X* pointer from another in
5010 an arm of an if-expression whose if-part is not a constant
5012 const char *g = "string";
5013 pcpcc = &g + (g ? g-g : 0);
5014 /* HPUX 7.0 cc rejects these. */
5016 ppc = (char**) pcpcc;
5017 pcpcc = (char const *const *) ppc;
5018 { /* SCO 3.2v4 cc rejects this sort of thing. */
5021 char const *s = 0 ? (char *) 0 : (char const *) 0;
5026 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5028 const int *foo = &x[0];
5031 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5032 typedef const int *iptr;
5036 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
5037 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5038 struct s { int j; const int *ap[3]; } bx;
5039 struct s *b = &bx; b->j = 5;
5041 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5045 return !cs[0] && !zero.x;
5052 if ac_fn_c_try_compile
"$LINENO"; then :
5057 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5060 $as_echo "$ac_cv_c_const" >&6; }
5061 if test $ac_cv_c_const = no
; then
5063 $as_echo "#define const /**/" >>confdefs.h
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5068 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5069 if ${ac_cv_c_bigendian+:} false
; then :
5070 $as_echo_n "(cached) " >&6
5072 ac_cv_c_bigendian
=unknown
5073 # See if we're dealing with a universal compiler.
5074 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5075 /* end confdefs.h. */
5076 #ifndef __APPLE_CC__
5077 not a universal capable compiler
5082 if ac_fn_c_try_compile
"$LINENO"; then :
5084 # Check for potential -arch flags. It is not universal unless
5085 # there are at least two -arch flags with different values.
5088 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5089 if test -n "$ac_prev"; then
5091 i?
86 | x86_64
| ppc
| ppc64
)
5092 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5095 ac_cv_c_bigendian
=universal
5101 elif test "x$ac_word" = "x-arch"; then
5106 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5107 if test $ac_cv_c_bigendian = unknown
; then
5108 # See if sys/param.h defines the BYTE_ORDER macro.
5109 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5110 /* end confdefs.h. */
5111 #include <sys/types.h>
5112 #include <sys/param.h>
5117 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5118 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5127 if ac_fn_c_try_compile
"$LINENO"; then :
5128 # It does; now see whether it defined to BIG_ENDIAN or not.
5129 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5130 /* end confdefs.h. */
5131 #include <sys/types.h>
5132 #include <sys/param.h>
5137 #if BYTE_ORDER != BIG_ENDIAN
5145 if ac_fn_c_try_compile
"$LINENO"; then :
5146 ac_cv_c_bigendian
=yes
5148 ac_cv_c_bigendian
=no
5150 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5152 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5154 if test $ac_cv_c_bigendian = unknown
; then
5155 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5156 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5157 /* end confdefs.h. */
5163 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5171 if ac_fn_c_try_compile
"$LINENO"; then :
5172 # It does; now see whether it defined to _BIG_ENDIAN or not.
5173 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5174 /* end confdefs.h. */
5188 if ac_fn_c_try_compile
"$LINENO"; then :
5189 ac_cv_c_bigendian
=yes
5191 ac_cv_c_bigendian
=no
5193 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5195 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5197 if test $ac_cv_c_bigendian = unknown
; then
5198 # Compile a test program.
5199 if test "$cross_compiling" = yes; then :
5200 # Try to guess by grepping values from an object file.
5201 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5202 /* end confdefs.h. */
5203 short int ascii_mm[] =
5204 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5205 short int ascii_ii[] =
5206 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5207 int use_ascii (int i) {
5208 return ascii_mm[i] + ascii_ii[i];
5210 short int ebcdic_ii[] =
5211 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5212 short int ebcdic_mm[] =
5213 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5214 int use_ebcdic (int i) {
5215 return ebcdic_mm[i] + ebcdic_ii[i];
5222 return use_ascii (foo) == use_ebcdic (foo);
5227 if ac_fn_c_try_compile
"$LINENO"; then :
5228 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
5229 ac_cv_c_bigendian
=yes
5231 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
5232 if test "$ac_cv_c_bigendian" = unknown
; then
5233 ac_cv_c_bigendian
=no
5235 # finding both strings is unlikely to happen, but who knows?
5236 ac_cv_c_bigendian
=unknown
5240 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5242 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5243 /* end confdefs.h. */
5244 $ac_includes_default
5249 /* Are we little or big endian? From Harbison&Steele. */
5253 char c[sizeof (long int)];
5256 return u.c[sizeof (long int) - 1] == 1;
5262 if ac_fn_c_try_run
"$LINENO"; then :
5263 ac_cv_c_bigendian
=no
5265 ac_cv_c_bigendian
=yes
5267 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5268 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5274 $as_echo "$ac_cv_c_bigendian" >&6; }
5275 case $ac_cv_c_bigendian in #(
5277 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5283 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5287 as_fn_error $?
"unknown endianness
5288 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5292 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5294 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5295 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
5296 $as_echo_n "(cached) " >&6
5298 cat >conftest.
make <<\_ACEOF
5301 @
echo '@@@%%%=$(MAKE)=@@@%%%'
5303 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5304 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5306 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
5308 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
5312 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5314 $as_echo "yes" >&6; }
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5318 $as_echo "no" >&6; }
5319 SET_MAKE
="MAKE=${MAKE-make}"
5323 # Extract the first word of "automake", so it can be a program name with args.
5324 set dummy automake
; ac_word
=$2
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5326 $as_echo_n "checking for $ac_word... " >&6; }
5327 if ${ac_cv_path_AUTOMAKE+:} false
; then :
5328 $as_echo_n "(cached) " >&6
5332 ac_cv_path_AUTOMAKE
="$AUTOMAKE" # Let the user override the test with a path.
5335 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5339 test -z "$as_dir" && as_dir
=.
5340 for ac_exec_ext
in '' $ac_executable_extensions; do
5341 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5342 ac_cv_path_AUTOMAKE
="$as_dir/$ac_word$ac_exec_ext"
5343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5353 AUTOMAKE
=$ac_cv_path_AUTOMAKE
5354 if test -n "$AUTOMAKE"; then
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOMAKE" >&5
5356 $as_echo "$AUTOMAKE" >&6; }
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5359 $as_echo "no" >&6; }
5363 # Extract the first word of "aclocal", so it can be a program name with args.
5364 set dummy aclocal
; ac_word
=$2
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5366 $as_echo_n "checking for $ac_word... " >&6; }
5367 if ${ac_cv_path_ACLOCAL+:} false
; then :
5368 $as_echo_n "(cached) " >&6
5372 ac_cv_path_ACLOCAL
="$ACLOCAL" # Let the user override the test with a path.
5375 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5379 test -z "$as_dir" && as_dir
=.
5380 for ac_exec_ext
in '' $ac_executable_extensions; do
5381 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5382 ac_cv_path_ACLOCAL
="$as_dir/$ac_word$ac_exec_ext"
5383 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5393 ACLOCAL
=$ac_cv_path_ACLOCAL
5394 if test -n "$ACLOCAL"; then
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5
5396 $as_echo "$ACLOCAL" >&6; }
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5399 $as_echo "no" >&6; }
5403 # Extract the first word of "autoheader", so it can be a program name with args.
5404 set dummy autoheader
; ac_word
=$2
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5406 $as_echo_n "checking for $ac_word... " >&6; }
5407 if ${ac_cv_path_AUTOHEADER+:} false
; then :
5408 $as_echo_n "(cached) " >&6
5412 ac_cv_path_AUTOHEADER
="$AUTOHEADER" # Let the user override the test with a path.
5415 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5419 test -z "$as_dir" && as_dir
=.
5420 for ac_exec_ext
in '' $ac_executable_extensions; do
5421 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5422 ac_cv_path_AUTOHEADER
="$as_dir/$ac_word$ac_exec_ext"
5423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5433 AUTOHEADER
=$ac_cv_path_AUTOHEADER
5434 if test -n "$AUTOHEADER"; then
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOHEADER" >&5
5436 $as_echo "$AUTOHEADER" >&6; }
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5439 $as_echo "no" >&6; }
5443 # Extract the first word of "as", so it can be a program name with args.
5444 set dummy as
; ac_word
=$2
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5446 $as_echo_n "checking for $ac_word... " >&6; }
5447 if ${ac_cv_path_AS+:} false
; then :
5448 $as_echo_n "(cached) " >&6
5452 ac_cv_path_AS
="$AS" # Let the user override the test with a path.
5455 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5459 test -z "$as_dir" && as_dir
=.
5460 for ac_exec_ext
in '' $ac_executable_extensions; do
5461 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5462 ac_cv_path_AS
="$as_dir/$ac_word$ac_exec_ext"
5463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5474 if test -n "$AS"; then
5475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5476 $as_echo "$AS" >&6; }
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5479 $as_echo "no" >&6; }
5483 # Extract the first word of "rm", so it can be a program name with args.
5484 set dummy
rm; ac_word
=$2
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5486 $as_echo_n "checking for $ac_word... " >&6; }
5487 if ${ac_cv_path_RM+:} false
; then :
5488 $as_echo_n "(cached) " >&6
5492 ac_cv_path_RM
="$RM" # Let the user override the test with a path.
5495 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5499 test -z "$as_dir" && as_dir
=.
5500 for ac_exec_ext
in '' $ac_executable_extensions; do
5501 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5502 ac_cv_path_RM
="$as_dir/$ac_word$ac_exec_ext"
5503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5514 if test -n "$RM"; then
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5516 $as_echo "$RM" >&6; }
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5519 $as_echo "no" >&6; }
5523 # Extract the first word of "cp", so it can be a program name with args.
5524 set dummy
cp; ac_word
=$2
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5526 $as_echo_n "checking for $ac_word... " >&6; }
5527 if ${ac_cv_path_CP+:} false
; then :
5528 $as_echo_n "(cached) " >&6
5532 ac_cv_path_CP
="$CP" # Let the user override the test with a path.
5535 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5539 test -z "$as_dir" && as_dir
=.
5540 for ac_exec_ext
in '' $ac_executable_extensions; do
5541 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5542 ac_cv_path_CP
="$as_dir/$ac_word$ac_exec_ext"
5543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5554 if test -n "$CP"; then
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5556 $as_echo "$CP" >&6; }
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5559 $as_echo "no" >&6; }
5563 # Extract the first word of "mv", so it can be a program name with args.
5564 set dummy
mv; ac_word
=$2
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5566 $as_echo_n "checking for $ac_word... " >&6; }
5567 if ${ac_cv_path_MV+:} false
; then :
5568 $as_echo_n "(cached) " >&6
5572 ac_cv_path_MV
="$MV" # Let the user override the test with a path.
5575 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5579 test -z "$as_dir" && as_dir
=.
5580 for ac_exec_ext
in '' $ac_executable_extensions; do
5581 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5582 ac_cv_path_MV
="$as_dir/$ac_word$ac_exec_ext"
5583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5594 if test -n "$MV"; then
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5596 $as_echo "$MV" >&6; }
5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5599 $as_echo "no" >&6; }
5603 # Extract the first word of "ln", so it can be a program name with args.
5604 set dummy
ln; ac_word
=$2
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5606 $as_echo_n "checking for $ac_word... " >&6; }
5607 if ${ac_cv_path_LN+:} false
; then :
5608 $as_echo_n "(cached) " >&6
5612 ac_cv_path_LN
="$LN" # Let the user override the test with a path.
5615 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5619 test -z "$as_dir" && as_dir
=.
5620 for ac_exec_ext
in '' $ac_executable_extensions; do
5621 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5622 ac_cv_path_LN
="$as_dir/$ac_word$ac_exec_ext"
5623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5634 if test -n "$LN"; then
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
5636 $as_echo "$LN" >&6; }
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5639 $as_echo "no" >&6; }
5643 # Extract the first word of "touch", so it can be a program name with args.
5644 set dummy
touch; ac_word
=$2
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5646 $as_echo_n "checking for $ac_word... " >&6; }
5647 if ${ac_cv_path_TOUCH+:} false
; then :
5648 $as_echo_n "(cached) " >&6
5652 ac_cv_path_TOUCH
="$TOUCH" # Let the user override the test with a path.
5655 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5659 test -z "$as_dir" && as_dir
=.
5660 for ac_exec_ext
in '' $ac_executable_extensions; do
5661 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5662 ac_cv_path_TOUCH
="$as_dir/$ac_word$ac_exec_ext"
5663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5673 TOUCH
=$ac_cv_path_TOUCH
5674 if test -n "$TOUCH"; then
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5676 $as_echo "$TOUCH" >&6; }
5678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5679 $as_echo "no" >&6; }
5684 ac_cpp
='$CPP $CPPFLAGS'
5685 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5686 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5687 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5693 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5698 macro_version
='2.4.2'
5699 macro_revision
='1.3337'
5713 ltmain
="$ac_aux_dir/ltmain.sh"
5715 # Make sure we can run config.sub.
5716 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
5717 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5720 $as_echo_n "checking build system type... " >&6; }
5721 if ${ac_cv_build+:} false
; then :
5722 $as_echo_n "(cached) " >&6
5724 ac_build_alias
=$build_alias
5725 test "x$ac_build_alias" = x
&&
5726 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
5727 test "x$ac_build_alias" = x
&&
5728 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
5729 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5730 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5734 $as_echo "$ac_cv_build" >&6; }
5735 case $ac_cv_build in
5737 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
5740 ac_save_IFS
=$IFS; IFS
='-'
5746 # Remember, the first character of IFS is used to create $*,
5747 # except with old shells:
5750 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5754 $as_echo_n "checking host system type... " >&6; }
5755 if ${ac_cv_host+:} false
; then :
5756 $as_echo_n "(cached) " >&6
5758 if test "x$host_alias" = x
; then
5759 ac_cv_host
=$ac_cv_build
5761 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5762 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5767 $as_echo "$ac_cv_host" >&6; }
5770 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
5773 ac_save_IFS
=$IFS; IFS
='-'
5779 # Remember, the first character of IFS is used to create $*,
5780 # except with old shells:
5783 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
5786 # Backslashify metacharacters that are still active within
5787 # double-quoted strings.
5788 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
5790 # Same as above, but do not quote variable references.
5791 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
5793 # Sed substitution to delay expansion of an escaped shell variable in a
5794 # double_quote_subst'ed string.
5795 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
5797 # Sed substitution to delay expansion of an escaped single quote.
5798 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
5800 # Sed substitution to avoid accidental globbing in evaled expressions
5801 no_glob_subst
='s/\*/\\\*/g'
5803 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5804 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5805 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5808 $as_echo_n "checking how to print strings... " >&6; }
5809 # Test print first, because it will be a builtin if present.
5810 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5811 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5813 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5816 # Use this function as a fallback that always works.
5817 func_fallback_echo ()
5819 eval 'cat <<_LTECHO_EOF
5823 ECHO='func_fallback_echo
'
5826 # func_echo_all arg...
5827 # Invoke $ECHO with all args, space-separated.
5834 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5835 $as_echo "printf" >&6; } ;;
5836 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5837 $as_echo "print -r" >&6; } ;;
5838 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5839 $as_echo "cat" >&6; } ;;
5855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5856 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5857 if ${ac_cv_path_SED+:} false; then :
5858 $as_echo_n "(cached) " >&6
5860 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5861 for ac_i in 1 2 3 4 5 6 7; do
5862 ac_script="$ac_script$as_nl$ac_script"
5864 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5865 { ac_script=; unset ac_script;}
5866 if test -z "$SED"; then
5867 ac_path_SED_found=false
5868 # Loop through the user's path and
test for each of PROGNAME
-LIST
5869 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5873 test -z "$as_dir" && as_dir
=.
5874 for ac_prog
in sed gsed
; do
5875 for ac_exec_ext
in '' $ac_executable_extensions; do
5876 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
5877 as_fn_executable_p
"$ac_path_SED" || continue
5878 # Check for GNU ac_path_SED and select it if it is found.
5879 # Check for GNU $ac_path_SED
5880 case `"$ac_path_SED" --version 2>&1` in
5882 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
5885 $as_echo_n 0123456789 >"conftest.in"
5888 cat "conftest.in" "conftest.in" >"conftest.tmp"
5889 mv "conftest.tmp" "conftest.in"
5890 cp "conftest.in" "conftest.nl"
5891 $as_echo '' >> "conftest.nl"
5892 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null
|| break
5893 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 || break
5894 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5895 if test $ac_count -gt ${ac_path_SED_max-0}; then
5896 # Best one so far, save it but keep looking for a better one
5897 ac_cv_path_SED
="$ac_path_SED"
5898 ac_path_SED_max
=$ac_count
5900 # 10*(2^10) chars as input seems more than enough
5901 test $ac_count -gt 10 && break
5903 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5906 $ac_path_SED_found && break 3
5911 if test -z "$ac_cv_path_SED"; then
5912 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5920 $as_echo "$ac_cv_path_SED" >&6; }
5921 SED
="$ac_cv_path_SED"
5924 test -z "$SED" && SED
=sed
5925 Xsed
="$SED -e 1s/^X//"
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5938 $as_echo_n "checking for fgrep... " >&6; }
5939 if ${ac_cv_path_FGREP+:} false
; then :
5940 $as_echo_n "(cached) " >&6
5942 if echo 'ab*c' | $GREP -F 'ab*c' >/dev
/null
2>&1
5943 then ac_cv_path_FGREP
="$GREP -F"
5945 if test -z "$FGREP"; then
5946 ac_path_FGREP_found
=false
5947 # Loop through the user's path and test for each of PROGNAME-LIST
5948 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5949 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5952 test -z "$as_dir" && as_dir
=.
5953 for ac_prog
in fgrep
; do
5954 for ac_exec_ext
in '' $ac_executable_extensions; do
5955 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
5956 as_fn_executable_p
"$ac_path_FGREP" || continue
5957 # Check for GNU ac_path_FGREP and select it if it is found.
5958 # Check for GNU $ac_path_FGREP
5959 case `"$ac_path_FGREP" --version 2>&1` in
5961 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
5964 $as_echo_n 0123456789 >"conftest.in"
5967 cat "conftest.in" "conftest.in" >"conftest.tmp"
5968 mv "conftest.tmp" "conftest.in"
5969 cp "conftest.in" "conftest.nl"
5970 $as_echo 'FGREP' >> "conftest.nl"
5971 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null
|| break
5972 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 || break
5973 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5974 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5975 # Best one so far, save it but keep looking for a better one
5976 ac_cv_path_FGREP
="$ac_path_FGREP"
5977 ac_path_FGREP_max
=$ac_count
5979 # 10*(2^10) chars as input seems more than enough
5980 test $ac_count -gt 10 && break
5982 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5985 $ac_path_FGREP_found && break 3
5990 if test -z "$ac_cv_path_FGREP"; then
5991 as_fn_error $?
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5994 ac_cv_path_FGREP
=$FGREP
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6000 $as_echo "$ac_cv_path_FGREP" >&6; }
6001 FGREP
="$ac_cv_path_FGREP"
6004 test -z "$GREP" && GREP
=grep
6024 # Check whether --with-gnu-ld was given.
6025 if test "${with_gnu_ld+set}" = set; then :
6026 withval
=$with_gnu_ld; test "$withval" = no
|| with_gnu_ld
=yes
6032 if test "$GCC" = yes; then
6033 # Check if gcc -print-prog-name=ld gives a path.
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6035 $as_echo_n "checking for ld used by $CC... " >&6; }
6038 # gcc leaves a trailing carriage return which upsets mingw
6039 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6041 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
6044 # Accept absolute paths.
6046 re_direlt
='/[^/][^/]*/\.\./'
6047 # Canonicalize the pathname of ld
6048 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6049 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev
/null
2>&1; do
6050 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6052 test -z "$LD" && LD
="$ac_prog"
6055 # If it fails, then pretend we aren't using GCC.
6059 # If it is relative, then search for the first ld in PATH.
6063 elif test "$with_gnu_ld" = yes; then
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6065 $as_echo_n "checking for GNU ld... " >&6; }
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6068 $as_echo_n "checking for non-GNU ld... " >&6; }
6070 if ${lt_cv_path_LD+:} false
; then :
6071 $as_echo_n "(cached) " >&6
6073 if test -z "$LD"; then
6074 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
6075 for ac_dir
in $PATH; do
6077 test -z "$ac_dir" && ac_dir
=.
6078 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6079 lt_cv_path_LD
="$ac_dir/$ac_prog"
6080 # Check to see if the program is GNU ld. I'd rather use --version,
6081 # but apparently some variants of GNU ld only accept -v.
6082 # Break only if it was the GNU/non-GNU ld that we prefer.
6083 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6084 *GNU
* | *'with BFD'*)
6085 test "$with_gnu_ld" != no
&& break
6088 test "$with_gnu_ld" != yes && break
6095 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
6100 if test -n "$LD"; then
6101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6102 $as_echo "$LD" >&6; }
6104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6105 $as_echo "no" >&6; }
6107 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
6108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6109 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6110 if ${lt_cv_prog_gnu_ld+:} false
; then :
6111 $as_echo_n "(cached) " >&6
6113 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6114 case `$LD -v 2>&1 </dev/null` in
6115 *GNU
* | *'with BFD'*)
6116 lt_cv_prog_gnu_ld
=yes
6119 lt_cv_prog_gnu_ld
=no
6123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6124 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6125 with_gnu_ld
=$lt_cv_prog_gnu_ld
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6136 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6137 if ${lt_cv_path_NM+:} false
; then :
6138 $as_echo_n "(cached) " >&6
6140 if test -n "$NM"; then
6141 # Let the user override the test.
6144 lt_nm_to_check
="${ac_tool_prefix}nm"
6145 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6146 lt_nm_to_check
="$lt_nm_to_check nm"
6148 for lt_tmp_nm
in $lt_nm_to_check; do
6149 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
6150 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
6152 test -z "$ac_dir" && ac_dir
=.
6153 tmp_nm
="$ac_dir/$lt_tmp_nm"
6154 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6155 # Check to see if the nm accepts a BSD-compat flag.
6156 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6157 # nm: unknown option "B" ignored
6158 # Tru64's nm complains that /dev/null is an invalid object file
6159 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6160 */dev
/null
* | *'Invalid file or object type'*)
6161 lt_cv_path_NM
="$tmp_nm -B"
6165 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6167 lt_cv_path_NM
="$tmp_nm -p"
6171 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6172 continue # so that we can try to find one that supports BSD flags
6181 : ${lt_cv_path_NM=no}
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6185 $as_echo "$lt_cv_path_NM" >&6; }
6186 if test "$lt_cv_path_NM" != "no"; then
6189 # Didn't find any BSD compatible name lister, look for dumpbin.
6190 if test -n "$DUMPBIN"; then :
6191 # Let the user override the test.
6193 if test -n "$ac_tool_prefix"; then
6194 for ac_prog
in dumpbin
"link -dump"
6196 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6197 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6199 $as_echo_n "checking for $ac_word... " >&6; }
6200 if ${ac_cv_prog_DUMPBIN+:} false
; then :
6201 $as_echo_n "(cached) " >&6
6203 if test -n "$DUMPBIN"; then
6204 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
6206 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6210 test -z "$as_dir" && as_dir
=.
6211 for ac_exec_ext
in '' $ac_executable_extensions; do
6212 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6213 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
6214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6223 DUMPBIN
=$ac_cv_prog_DUMPBIN
6224 if test -n "$DUMPBIN"; then
6225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6226 $as_echo "$DUMPBIN" >&6; }
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6229 $as_echo "no" >&6; }
6233 test -n "$DUMPBIN" && break
6236 if test -z "$DUMPBIN"; then
6237 ac_ct_DUMPBIN
=$DUMPBIN
6238 for ac_prog
in dumpbin
"link -dump"
6240 # Extract the first word of "$ac_prog", so it can be a program name with args.
6241 set dummy
$ac_prog; ac_word
=$2
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6243 $as_echo_n "checking for $ac_word... " >&6; }
6244 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false
; then :
6245 $as_echo_n "(cached) " >&6
6247 if test -n "$ac_ct_DUMPBIN"; then
6248 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
6250 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6254 test -z "$as_dir" && as_dir
=.
6255 for ac_exec_ext
in '' $ac_executable_extensions; do
6256 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6257 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
6258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6267 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
6268 if test -n "$ac_ct_DUMPBIN"; then
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6270 $as_echo "$ac_ct_DUMPBIN" >&6; }
6272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6273 $as_echo "no" >&6; }
6277 test -n "$ac_ct_DUMPBIN" && break
6280 if test "x$ac_ct_DUMPBIN" = x
; then
6283 case $cross_compiling:$ac_tool_warned in
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6286 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6287 ac_tool_warned
=yes ;;
6289 DUMPBIN
=$ac_ct_DUMPBIN
6293 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6295 DUMPBIN
="$DUMPBIN -symbols"
6303 if test "$DUMPBIN" != ":"; then
6307 test -z "$NM" && NM
=nm
6314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6315 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6316 if ${lt_cv_nm_interface+:} false
; then :
6317 $as_echo_n "(cached) " >&6
6319 lt_cv_nm_interface
="BSD nm"
6320 echo "int some_variable = 0;" > conftest.
$ac_ext
6321 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6322 (eval "$ac_compile" 2>conftest.err
)
6323 cat conftest.err
>&5
6324 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6325 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
6326 cat conftest.err
>&5
6327 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6328 cat conftest.out
>&5
6329 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
6330 lt_cv_nm_interface
="MS dumpbin"
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6335 $as_echo "$lt_cv_nm_interface" >&6; }
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6338 $as_echo_n "checking whether ln -s works... " >&6; }
6340 if test "$LN_S" = "ln -s"; then
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6342 $as_echo "yes" >&6; }
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6345 $as_echo "no, using $LN_S" >&6; }
6348 # find the maximum length of command line arguments
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6350 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6351 if ${lt_cv_sys_max_cmd_len+:} false
; then :
6352 $as_echo_n "(cached) " >&6
6359 # On DJGPP, this test can blow up pretty badly due to problems in libc
6360 # (any single argument exceeding 2000 bytes causes a buffer overrun
6361 # during glob expansion). Even if it were fixed, the result of this
6362 # check would be larger than it should be.
6363 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
6367 # Under GNU Hurd, this test is not required because there is
6368 # no limit to the length of command line arguments.
6369 # Libtool will interpret -1 as no limit whatsoever
6370 lt_cv_sys_max_cmd_len
=-1;
6373 cygwin
* | mingw
* | cegcc
*)
6374 # On Win9x/ME, this test blows up -- it succeeds, but takes
6375 # about 5 minutes as the teststring grows exponentially.
6376 # Worse, since 9x/ME are not pre-emptively multitasking,
6377 # you end up with a "frozen" computer, even though with patience
6378 # the test eventually succeeds (with a max line length of 256k).
6379 # Instead, let's just punt: use the minimum linelength reported by
6380 # all of the supported platforms: 8192 (on NT/2K/XP).
6381 lt_cv_sys_max_cmd_len
=8192;
6385 # On MiNT this can take a long time and run out of memory.
6386 lt_cv_sys_max_cmd_len
=8192;
6390 # On AmigaOS with pdksh, this test takes hours, literally.
6391 # So we just punt and use a minimum line length of 8192.
6392 lt_cv_sys_max_cmd_len
=8192;
6395 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
6396 # This has been around since 386BSD, at least. Likely further.
6397 if test -x /sbin
/sysctl
; then
6398 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
6399 elif test -x /usr
/sbin
/sysctl
; then
6400 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
6402 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
6404 # And add a safety zone
6405 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
6406 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
6410 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6411 lt_cv_sys_max_cmd_len
=196608
6415 # The test takes a long time on OS/2.
6416 lt_cv_sys_max_cmd_len
=8192
6420 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6421 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6422 # nice to cause kernel panics so lets avoid the loop below.
6423 # First set a reasonable default.
6424 lt_cv_sys_max_cmd_len
=16384
6426 if test -x /sbin
/sysconfig
; then
6427 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6428 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
6433 lt_cv_sys_max_cmd_len
=102400
6435 sysv5
* | sco5v6
* | sysv4.2uw2
*)
6436 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6437 if test -n "$kargmax"; then
6438 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
6440 lt_cv_sys_max_cmd_len
=32768
6444 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
6445 if test -n "$lt_cv_sys_max_cmd_len"; then
6446 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
6447 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
6449 # Make teststring a little bigger before we do anything with it.
6450 # a 1K string should be a reasonable start.
6451 for i
in 1 2 3 4 5 6 7 8 ; do
6452 teststring
=$teststring$teststring
6454 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
6455 # If test is not a shell built-in, we'll probably end up computing a
6456 # maximum length that is only half of the actual maximum length, but
6458 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
6459 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
6460 test $i != 17 # 1/2 MB should be enough
6463 teststring
=$teststring$teststring
6465 # Only check the string length outside the loop.
6466 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
6468 # Add a significant safety factor because C++ compilers can tack on
6469 # massive amounts of additional arguments before passing them to the
6470 # linker. It appears as though 1/2 is a usable value.
6471 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
6478 if test -n $lt_cv_sys_max_cmd_len ; then
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6480 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6483 $as_echo "none" >&6; }
6485 max_cmd_len
=$lt_cv_sys_max_cmd_len
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6497 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6498 # Try some XSI features
6501 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6503 && eval 'test $(( 1 + 1 )) -eq 2 \
6504 && test "${#_lt_dummy}" -eq 5' ) >/dev
/null
2>&1 \
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6507 $as_echo "$xsi_shell" >&6; }
6510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6511 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6513 ( foo
=bar
; set foo baz
; eval "$1+=\$2" && test "$foo" = barbaz
) \
6515 && lt_shell_append
=yes
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6517 $as_echo "$lt_shell_append" >&6; }
6520 if ( (MAIL
=60; unset MAIL
) || exit) >/dev
/null
2>&1; then
6530 # test EBCDIC or ASCII
6531 case `echo X|tr X '\101'` in
6532 A
) # ASCII based system
6533 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6534 lt_SP2NL
='tr \040 \012'
6535 lt_NL2SP
='tr \015\012 \040\040'
6537 *) # EBCDIC based system
6538 lt_SP2NL
='tr \100 \n'
6539 lt_NL2SP
='tr \r\n \100\100'
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6552 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6553 if ${lt_cv_to_host_file_cmd+:} false
; then :
6554 $as_echo_n "(cached) " >&6
6559 *-*-mingw* ) # actually msys
6560 lt_cv_to_host_file_cmd
=func_convert_file_msys_to_w32
6563 lt_cv_to_host_file_cmd
=func_convert_file_cygwin_to_w32
6565 * ) # otherwise, assume *nix
6566 lt_cv_to_host_file_cmd
=func_convert_file_nix_to_w32
6572 *-*-mingw* ) # actually msys
6573 lt_cv_to_host_file_cmd
=func_convert_file_msys_to_cygwin
6576 lt_cv_to_host_file_cmd
=func_convert_file_noop
6578 * ) # otherwise, assume *nix
6579 lt_cv_to_host_file_cmd
=func_convert_file_nix_to_cygwin
6583 * ) # unhandled hosts (and "normal" native builds)
6584 lt_cv_to_host_file_cmd
=func_convert_file_noop
6590 to_host_file_cmd
=$lt_cv_to_host_file_cmd
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6592 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6599 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6600 if ${lt_cv_to_tool_file_cmd+:} false
; then :
6601 $as_echo_n "(cached) " >&6
6603 #assume ordinary cross tools, or native build.
6604 lt_cv_to_tool_file_cmd
=func_convert_file_noop
6608 *-*-mingw* ) # actually msys
6609 lt_cv_to_tool_file_cmd
=func_convert_file_msys_to_w32
6617 to_tool_file_cmd
=$lt_cv_to_tool_file_cmd
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6619 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6626 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6627 if ${lt_cv_ld_reload_flag+:} false
; then :
6628 $as_echo_n "(cached) " >&6
6630 lt_cv_ld_reload_flag
='-r'
6632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6633 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6634 reload_flag
=$lt_cv_ld_reload_flag
6635 case $reload_flag in
6637 *) reload_flag
=" $reload_flag" ;;
6639 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
6641 cygwin
* | mingw
* | pw32
* | cegcc
*)
6642 if test "$GCC" != yes; then
6647 if test "$GCC" = yes; then
6648 reload_cmds
='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6650 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
6663 if test -n "$ac_tool_prefix"; then
6664 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6665 set dummy
${ac_tool_prefix}objdump
; ac_word
=$2
6666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6667 $as_echo_n "checking for $ac_word... " >&6; }
6668 if ${ac_cv_prog_OBJDUMP+:} false
; then :
6669 $as_echo_n "(cached) " >&6
6671 if test -n "$OBJDUMP"; then
6672 ac_cv_prog_OBJDUMP
="$OBJDUMP" # Let the user override the test.
6674 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6678 test -z "$as_dir" && as_dir
=.
6679 for ac_exec_ext
in '' $ac_executable_extensions; do
6680 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6681 ac_cv_prog_OBJDUMP
="${ac_tool_prefix}objdump"
6682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6691 OBJDUMP
=$ac_cv_prog_OBJDUMP
6692 if test -n "$OBJDUMP"; then
6693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6694 $as_echo "$OBJDUMP" >&6; }
6696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6697 $as_echo "no" >&6; }
6702 if test -z "$ac_cv_prog_OBJDUMP"; then
6703 ac_ct_OBJDUMP
=$OBJDUMP
6704 # Extract the first word of "objdump", so it can be a program name with args.
6705 set dummy objdump
; ac_word
=$2
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6707 $as_echo_n "checking for $ac_word... " >&6; }
6708 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false
; then :
6709 $as_echo_n "(cached) " >&6
6711 if test -n "$ac_ct_OBJDUMP"; then
6712 ac_cv_prog_ac_ct_OBJDUMP
="$ac_ct_OBJDUMP" # Let the user override the test.
6714 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6718 test -z "$as_dir" && as_dir
=.
6719 for ac_exec_ext
in '' $ac_executable_extensions; do
6720 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6721 ac_cv_prog_ac_ct_OBJDUMP
="objdump"
6722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6731 ac_ct_OBJDUMP
=$ac_cv_prog_ac_ct_OBJDUMP
6732 if test -n "$ac_ct_OBJDUMP"; then
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6734 $as_echo "$ac_ct_OBJDUMP" >&6; }
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6737 $as_echo "no" >&6; }
6740 if test "x$ac_ct_OBJDUMP" = x
; then
6743 case $cross_compiling:$ac_tool_warned in
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6746 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6747 ac_tool_warned
=yes ;;
6749 OBJDUMP
=$ac_ct_OBJDUMP
6752 OBJDUMP
="$ac_cv_prog_OBJDUMP"
6755 test -z "$OBJDUMP" && OBJDUMP
=objdump
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6766 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6767 if ${lt_cv_deplibs_check_method+:} false
; then :
6768 $as_echo_n "(cached) " >&6
6770 lt_cv_file_magic_cmd
='$MAGIC_CMD'
6771 lt_cv_file_magic_test_file
=
6772 lt_cv_deplibs_check_method
='unknown'
6773 # Need to set the preceding variable on all platforms that support
6774 # interlibrary dependencies.
6775 # 'none' -- dependencies not supported.
6776 # `unknown' -- same as none, but documents that we really don't know.
6777 # 'pass_all' -- all dependencies passed with no checks.
6778 # 'test_compile' -- check by making test program.
6779 # 'file_magic [[regex]]' -- check by looking for files in library path
6780 # which responds to the $file_magic_cmd with a given extended regex.
6781 # If you have `file' or equivalent on your system and you're not sure
6782 # whether `pass_all' will *always* work, you probably want this one.
6786 lt_cv_deplibs_check_method
=pass_all
6790 lt_cv_deplibs_check_method
=pass_all
6794 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6795 lt_cv_file_magic_cmd
='/usr/bin/file -L'
6796 lt_cv_file_magic_test_file
=/shlib
/libc.so
6800 # func_win32_libid is a shell function defined in ltmain.sh
6801 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
6802 lt_cv_file_magic_cmd
='func_win32_libid'
6806 # Base MSYS/MinGW do not provide the 'file' command needed by
6807 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6808 # unless we find 'file', for example because we are cross-compiling.
6809 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6810 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev
/null
2>&1; then
6811 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
6812 lt_cv_file_magic_cmd
='func_win32_libid'
6814 # Keep this pattern in sync with the one in func_win32_libid.
6815 lt_cv_deplibs_check_method
='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6816 lt_cv_file_magic_cmd
='$OBJDUMP -f'
6821 # use the weaker test based on 'objdump'. See mingw*.
6822 lt_cv_deplibs_check_method
='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6823 lt_cv_file_magic_cmd
='$OBJDUMP -f'
6826 darwin
* | rhapsody
*)
6827 lt_cv_deplibs_check_method
=pass_all
6830 freebsd
* | dragonfly
*)
6831 if echo __ELF__
| $CC -E - | $GREP __ELF__
> /dev
/null
; then
6834 # Not sure whether the presence of OpenBSD here was a mistake.
6835 # Let's accept both of them until this is cleared up.
6836 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6837 lt_cv_file_magic_cmd
=/usr
/bin
/file
6838 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
6842 lt_cv_deplibs_check_method
=pass_all
6847 lt_cv_deplibs_check_method
=pass_all
6851 lt_cv_deplibs_check_method
=pass_all
6854 hpux10.20
* | hpux11
*)
6855 lt_cv_file_magic_cmd
=/usr
/bin
/file
6858 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6859 lt_cv_file_magic_test_file
=/usr
/lib
/hpux
32/libc.so
6862 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]'
6863 lt_cv_file_magic_test_file
=/usr
/lib
/pa
20_
64/libc.sl
6866 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6867 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
6873 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6874 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|\.a)$'
6877 irix5
* | irix6
* | nonstopux
*)
6879 *-32|*"-32 ") libmagic
=32-bit;;
6880 *-n32|*"-n32 ") libmagic
=N32
;;
6881 *-64|*"-64 ") libmagic
=64-bit;;
6882 *) libmagic
=never
-match;;
6884 lt_cv_deplibs_check_method
=pass_all
6887 # This must be glibc/ELF.
6888 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
6889 lt_cv_deplibs_check_method
=pass_all
6893 if echo __ELF__
| $CC -E - | $GREP __ELF__
> /dev
/null
; then
6894 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6896 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6901 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6902 lt_cv_file_magic_cmd
=/usr
/bin
/file
6903 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
6907 lt_cv_deplibs_check_method
=pass_all
6911 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6912 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6914 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6918 osf3
* | osf4
* | osf5
*)
6919 lt_cv_deplibs_check_method
=pass_all
6923 lt_cv_deplibs_check_method
=pass_all
6927 lt_cv_deplibs_check_method
=pass_all
6930 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
6931 lt_cv_deplibs_check_method
=pass_all
6935 case $host_vendor in
6937 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]'
6938 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
6941 lt_cv_deplibs_check_method
=pass_all
6944 lt_cv_file_magic_cmd
='/bin/file'
6945 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6948 lt_cv_file_magic_cmd
='/bin/file'
6949 lt_cv_deplibs_check_method
="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6950 lt_cv_file_magic_test_file
=/lib
/libc.so
6953 lt_cv_deplibs_check_method
=pass_all
6956 lt_cv_deplibs_check_method
=pass_all
6962 lt_cv_deplibs_check_method
=pass_all
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6968 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6972 if test "$build" = "$host"; then
6975 if ( shopt | grep nocaseglob
) >/dev
/null
2>&1; then
6978 file_magic_glob
=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6984 file_magic_cmd
=$lt_cv_file_magic_cmd
6985 deplibs_check_method
=$lt_cv_deplibs_check_method
6986 test -z "$deplibs_check_method" && deplibs_check_method
=unknown
7009 if test -n "$ac_tool_prefix"; then
7010 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7011 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
7012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7013 $as_echo_n "checking for $ac_word... " >&6; }
7014 if ${ac_cv_prog_DLLTOOL+:} false
; then :
7015 $as_echo_n "(cached) " >&6
7017 if test -n "$DLLTOOL"; then
7018 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
7020 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7024 test -z "$as_dir" && as_dir
=.
7025 for ac_exec_ext
in '' $ac_executable_extensions; do
7026 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7027 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
7028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7037 DLLTOOL
=$ac_cv_prog_DLLTOOL
7038 if test -n "$DLLTOOL"; then
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7040 $as_echo "$DLLTOOL" >&6; }
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7043 $as_echo "no" >&6; }
7048 if test -z "$ac_cv_prog_DLLTOOL"; then
7049 ac_ct_DLLTOOL
=$DLLTOOL
7050 # Extract the first word of "dlltool", so it can be a program name with args.
7051 set dummy dlltool
; ac_word
=$2
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7053 $as_echo_n "checking for $ac_word... " >&6; }
7054 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false
; then :
7055 $as_echo_n "(cached) " >&6
7057 if test -n "$ac_ct_DLLTOOL"; then
7058 ac_cv_prog_ac_ct_DLLTOOL
="$ac_ct_DLLTOOL" # Let the user override the test.
7060 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7064 test -z "$as_dir" && as_dir
=.
7065 for ac_exec_ext
in '' $ac_executable_extensions; do
7066 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7067 ac_cv_prog_ac_ct_DLLTOOL
="dlltool"
7068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7077 ac_ct_DLLTOOL
=$ac_cv_prog_ac_ct_DLLTOOL
7078 if test -n "$ac_ct_DLLTOOL"; then
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7080 $as_echo "$ac_ct_DLLTOOL" >&6; }
7082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7083 $as_echo "no" >&6; }
7086 if test "x$ac_ct_DLLTOOL" = x
; then
7089 case $cross_compiling:$ac_tool_warned in
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7092 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7093 ac_tool_warned
=yes ;;
7095 DLLTOOL
=$ac_ct_DLLTOOL
7098 DLLTOOL
="$ac_cv_prog_DLLTOOL"
7101 test -z "$DLLTOOL" && DLLTOOL
=dlltool
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
7113 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
7114 if ${lt_cv_sharedlib_from_linklib_cmd+:} false
; then :
7115 $as_echo_n "(cached) " >&6
7117 lt_cv_sharedlib_from_linklib_cmd
='unknown'
7120 cygwin
* | mingw
* | pw32
* | cegcc
*)
7121 # two different shell functions defined in ltmain.sh
7122 # decide which to use based on capabilities of $DLLTOOL
7123 case `$DLLTOOL --help 2>&1` in
7124 *--identify-strict*)
7125 lt_cv_sharedlib_from_linklib_cmd
=func_cygming_dll_for_implib
7128 lt_cv_sharedlib_from_linklib_cmd
=func_cygming_dll_for_implib_fallback
7133 # fallback: assume linklib IS sharedlib
7134 lt_cv_sharedlib_from_linklib_cmd
="$ECHO"
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
7140 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
7141 sharedlib_from_linklib_cmd
=$lt_cv_sharedlib_from_linklib_cmd
7142 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd
=$ECHO
7150 if test -n "$ac_tool_prefix"; then
7153 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7154 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7156 $as_echo_n "checking for $ac_word... " >&6; }
7157 if ${ac_cv_prog_AR+:} false
; then :
7158 $as_echo_n "(cached) " >&6
7160 if test -n "$AR"; then
7161 ac_cv_prog_AR
="$AR" # Let the user override the test.
7163 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7167 test -z "$as_dir" && as_dir
=.
7168 for ac_exec_ext
in '' $ac_executable_extensions; do
7169 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7170 ac_cv_prog_AR
="$ac_tool_prefix$ac_prog"
7171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7181 if test -n "$AR"; then
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7183 $as_echo "$AR" >&6; }
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7186 $as_echo "no" >&6; }
7190 test -n "$AR" && break
7193 if test -z "$AR"; then
7197 # Extract the first word of "$ac_prog", so it can be a program name with args.
7198 set dummy
$ac_prog; ac_word
=$2
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7200 $as_echo_n "checking for $ac_word... " >&6; }
7201 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
7202 $as_echo_n "(cached) " >&6
7204 if test -n "$ac_ct_AR"; then
7205 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
7207 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7211 test -z "$as_dir" && as_dir
=.
7212 for ac_exec_ext
in '' $ac_executable_extensions; do
7213 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7214 ac_cv_prog_ac_ct_AR
="$ac_prog"
7215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7224 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
7225 if test -n "$ac_ct_AR"; then
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7227 $as_echo "$ac_ct_AR" >&6; }
7229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7230 $as_echo "no" >&6; }
7234 test -n "$ac_ct_AR" && break
7237 if test "x$ac_ct_AR" = x
; then
7240 case $cross_compiling:$ac_tool_warned in
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7243 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7244 ac_tool_warned
=yes ;;
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7264 $as_echo_n "checking for archiver @FILE support... " >&6; }
7265 if ${lt_cv_ar_at_file+:} false
; then :
7266 $as_echo_n "(cached) " >&6
7269 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7270 /* end confdefs.h. */
7280 if ac_fn_c_try_compile
"$LINENO"; then :
7281 echo conftest.
$ac_objext > conftest.lst
7282 lt_ar_try
='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7283 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7284 (eval $lt_ar_try) 2>&5
7286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7287 test $ac_status = 0; }
7288 if test "$ac_status" -eq 0; then
7289 # Ensure the archiver fails upon bogus file names.
7290 rm -f conftest.
$ac_objext libconftest.a
7291 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7292 (eval $lt_ar_try) 2>&5
7294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7295 test $ac_status = 0; }
7296 if test "$ac_status" -ne 0; then
7300 rm -f conftest.
* libconftest.a
7303 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7307 $as_echo "$lt_cv_ar_at_file" >&6; }
7309 if test "x$lt_cv_ar_at_file" = xno
; then
7312 archiver_list_spec
=$lt_cv_ar_at_file
7321 if test -n "$ac_tool_prefix"; then
7322 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7323 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7325 $as_echo_n "checking for $ac_word... " >&6; }
7326 if ${ac_cv_prog_STRIP+:} false
; then :
7327 $as_echo_n "(cached) " >&6
7329 if test -n "$STRIP"; then
7330 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
7332 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7336 test -z "$as_dir" && as_dir
=.
7337 for ac_exec_ext
in '' $ac_executable_extensions; do
7338 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7339 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
7340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7349 STRIP
=$ac_cv_prog_STRIP
7350 if test -n "$STRIP"; then
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7352 $as_echo "$STRIP" >&6; }
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7355 $as_echo "no" >&6; }
7360 if test -z "$ac_cv_prog_STRIP"; then
7362 # Extract the first word of "strip", so it can be a program name with args.
7363 set dummy strip
; ac_word
=$2
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7365 $as_echo_n "checking for $ac_word... " >&6; }
7366 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
7367 $as_echo_n "(cached) " >&6
7369 if test -n "$ac_ct_STRIP"; then
7370 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
7372 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7376 test -z "$as_dir" && as_dir
=.
7377 for ac_exec_ext
in '' $ac_executable_extensions; do
7378 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7379 ac_cv_prog_ac_ct_STRIP
="strip"
7380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7389 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
7390 if test -n "$ac_ct_STRIP"; then
7391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7392 $as_echo "$ac_ct_STRIP" >&6; }
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7395 $as_echo "no" >&6; }
7398 if test "x$ac_ct_STRIP" = x
; then
7401 case $cross_compiling:$ac_tool_warned in
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7404 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7405 ac_tool_warned
=yes ;;
7410 STRIP
="$ac_cv_prog_STRIP"
7413 test -z "$STRIP" && STRIP
=:
7420 if test -n "$ac_tool_prefix"; then
7421 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7422 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7424 $as_echo_n "checking for $ac_word... " >&6; }
7425 if ${ac_cv_prog_RANLIB+:} false
; then :
7426 $as_echo_n "(cached) " >&6
7428 if test -n "$RANLIB"; then
7429 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7431 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7435 test -z "$as_dir" && as_dir
=.
7436 for ac_exec_ext
in '' $ac_executable_extensions; do
7437 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7438 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7448 RANLIB
=$ac_cv_prog_RANLIB
7449 if test -n "$RANLIB"; then
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7451 $as_echo "$RANLIB" >&6; }
7453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7454 $as_echo "no" >&6; }
7459 if test -z "$ac_cv_prog_RANLIB"; then
7460 ac_ct_RANLIB
=$RANLIB
7461 # Extract the first word of "ranlib", so it can be a program name with args.
7462 set dummy ranlib
; ac_word
=$2
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7464 $as_echo_n "checking for $ac_word... " >&6; }
7465 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
7466 $as_echo_n "(cached) " >&6
7468 if test -n "$ac_ct_RANLIB"; then
7469 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7471 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7475 test -z "$as_dir" && as_dir
=.
7476 for ac_exec_ext
in '' $ac_executable_extensions; do
7477 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7478 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7488 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7489 if test -n "$ac_ct_RANLIB"; then
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7491 $as_echo "$ac_ct_RANLIB" >&6; }
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7494 $as_echo "no" >&6; }
7497 if test "x$ac_ct_RANLIB" = x
; then
7500 case $cross_compiling:$ac_tool_warned in
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7503 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7504 ac_tool_warned
=yes ;;
7506 RANLIB
=$ac_ct_RANLIB
7509 RANLIB
="$ac_cv_prog_RANLIB"
7512 test -z "$RANLIB" && RANLIB
=:
7519 # Determine commands to create old-style static archives.
7520 old_archive_cmds
='$AR $AR_FLAGS $oldlib$oldobjs'
7521 old_postinstall_cmds
='chmod 644 $oldlib'
7522 old_postuninstall_cmds
=
7524 if test -n "$RANLIB"; then
7527 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
7530 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
7533 old_archive_cmds
="$old_archive_cmds~\$RANLIB \$tool_oldlib"
7538 lock_old_archive_extraction
=yes ;;
7540 lock_old_archive_extraction
=no
;;
7581 # If no C compiler was specified, use CC.
7584 # If no C compiler flags were specified, use CFLAGS.
7585 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
7587 # Allow CC to be a program name with arguments.
7591 # Check for command to grab the raw symbol name followed by C symbol from nm.
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7593 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7594 if ${lt_cv_sys_global_symbol_pipe+:} false
; then :
7595 $as_echo_n "(cached) " >&6
7598 # These are sane defaults that work on at least a few old systems.
7599 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7601 # Character class describing NM global symbol codes.
7602 symcode
='[BCDEGRST]'
7604 # Regexp to match symbols that can be accessed directly from C.
7605 sympat
='\([_A-Za-z][_A-Za-z0-9]*\)'
7607 # Define system-specific variables.
7612 cygwin
* | mingw
* | pw32
* | cegcc
*)
7613 symcode
='[ABCDGISTW]'
7616 if test "$host_cpu" = ia64
; then
7617 symcode
='[ABCDEGRST]'
7621 symcode
='[BCDEGRST]'
7624 symcode
='[BCDEGQRST]'
7635 sysv5
* | sco5v6
* | unixware
* | OpenUNIX
*)
7643 # If we're using GNU nm, then use its standard symbol codes.
7644 case `$NM -V 2>&1` in
7645 *GNU
* | *'with BFD'*)
7646 symcode
='[ABCDGIRSTW]' ;;
7649 # Transform an extracted symbol line into a proper C declaration.
7650 # Some systems (esp. on ia64) link data and code symbols differently,
7651 # so use this general approach.
7652 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7654 # Transform an extracted symbol line into symbol name and symbol address
7655 lt_cv_sys_global_symbol_to_c_name_address
="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7656 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'"
7658 # Handle CRLF in mingw tool chain
7662 opt_cr
=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7666 # Try without a prefix underscore, then with it.
7667 for ac_symprfx
in "" "_"; do
7669 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7670 symxfrm
="\\1 $ac_symprfx\\2 \\2"
7672 # Write the raw and C identifiers.
7673 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7674 # Fake it for dumpbin and say T for any non-static function
7675 # and D for any global variable.
7676 # Also find C++ and __fastcall symbols from MSVC++,
7677 # which start with @ or ?.
7678 lt_cv_sys_global_symbol_pipe
="$AWK '"\
7679 " {last_section=section; section=\$ 3};"\
7680 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
7681 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7682 " \$ 0!~/External *\|/{next};"\
7683 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7684 " {if(hide[section]) next};"\
7685 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7686 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7687 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7688 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7689 " ' prfx=^$ac_symprfx"
7691 lt_cv_sys_global_symbol_pipe
="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7693 lt_cv_sys_global_symbol_pipe
="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7695 # Check to see that the pipe works correctly.
7699 cat > conftest.
$ac_ext <<_LT_EOF
7704 void nm_test_func(void);
7705 void nm_test_func(void){}
7709 int main(){nm_test_var='a';nm_test_func();return(0);}
7712 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7713 (eval $ac_compile) 2>&5
7715 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7716 test $ac_status = 0; }; then
7717 # Now try to grab the symbols.
7719 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7720 (eval $NM conftest.
$ac_objext \
| "$lt_cv_sys_global_symbol_pipe" \
> $nlist) 2>&5
7722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7723 test $ac_status = 0; } && test -s "$nlist"; then
7724 # Try sorting and uniquifying the output.
7725 if sort "$nlist" | uniq > "$nlist"T
; then
7726 mv -f "$nlist"T
"$nlist"
7731 # Make sure that we snagged all the symbols we need.
7732 if $GREP ' nm_test_var$' "$nlist" >/dev
/null
; then
7733 if $GREP ' nm_test_func$' "$nlist" >/dev
/null
; then
7734 cat <<_LT_EOF > conftest.$ac_ext
7735 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7736 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7737 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7738 relocations are performed -- see ld's documentation on pseudo-relocs. */
7739 # define LT_DLSYM_CONST
7740 #elif defined(__osf__)
7741 /* This system does not cope well with relocations in const data. */
7742 # define LT_DLSYM_CONST
7744 # define LT_DLSYM_CONST const
7752 # Now generate the symbol file.
7753 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7755 cat <<_LT_EOF >> conftest.$ac_ext
7757 /* The mapping between symbol names and symbols. */
7758 LT_DLSYM_CONST struct {
7762 lt__PROGRAM__LTX_preloaded_symbols[] =
7764 { "@PROGRAM@", (void *) 0 },
7766 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main
>> conftest.
$ac_ext
7767 cat <<\_LT_EOF
>> conftest.
$ac_ext
7771 /* This works around a problem
in FreeBSD linker
*/
7772 #ifdef FREEBSD_WORKAROUND
7773 static const void
*lt_preloaded_setup
() {
7774 return lt__PROGRAM__LTX_preloaded_symbols
;
7782 # Now try linking the two files.
7783 mv conftest.
$ac_objext conftstm.
$ac_objext
7784 lt_globsym_save_LIBS
=$LIBS
7785 lt_globsym_save_CFLAGS
=$CFLAGS
7786 LIBS
="conftstm.$ac_objext"
7787 CFLAGS
="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7788 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7789 (eval $ac_link) 2>&5
7791 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7792 test $ac_status = 0; } && test -s conftest
${ac_exeext}; then
7795 LIBS
=$lt_globsym_save_LIBS
7796 CFLAGS
=$lt_globsym_save_CFLAGS
7798 echo "cannot find nm_test_func in $nlist" >&5
7801 echo "cannot find nm_test_var in $nlist" >&5
7804 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7807 echo "$progname: failed program was:" >&5
7808 cat conftest.
$ac_ext >&5
7810 rm -rf conftest
* conftst
*
7812 # Do not use the global_symbol_pipe unless it works.
7813 if test "$pipe_works" = yes; then
7816 lt_cv_sys_global_symbol_pipe
=
7822 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7823 lt_cv_sys_global_symbol_to_cdecl
=
7825 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7827 $as_echo "failed" >&6; }
7829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7830 $as_echo "ok" >&6; }
7833 # Response file support.
7834 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7835 nm_file_list_spec
='@'
7836 elif $NM --help 2>/dev
/null
| grep '[@]FILE' >/dev
/null
; then
7837 nm_file_list_spec
='@'
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7867 $as_echo_n "checking for sysroot... " >&6; }
7869 # Check whether --with-sysroot was given.
7870 if test "${with_sysroot+set}" = set; then :
7871 withval
=$with_sysroot;
7878 case ${with_sysroot} in #(
7880 if test "$GCC" = yes; then
7881 lt_sysroot
=`$CC --print-sysroot 2>/dev/null`
7885 lt_sysroot
=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7891 $as_echo "${with_sysroot}" >&6; }
7892 as_fn_error $?
"The sysroot must be an absolute path." "$LINENO" 5
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7897 $as_echo "${lt_sysroot:-no}" >&6; }
7903 # Check whether --enable-libtool-lock was given.
7904 if test "${enable_libtool_lock+set}" = set; then :
7905 enableval
=$enable_libtool_lock;
7908 test "x$enable_libtool_lock" != xno
&& enable_libtool_lock
=yes
7910 # Some flags need to be propagated to the compiler or linker for good
7914 # Find out which ABI we are using.
7915 echo 'int i;' > conftest.
$ac_ext
7916 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7917 (eval $ac_compile) 2>&5
7919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7920 test $ac_status = 0; }; then
7921 case `/usr/bin/file conftest.$ac_objext` in
7933 # Find out which ABI we are using.
7934 echo '#line '$LINENO' "configure"' > conftest.
$ac_ext
7935 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7936 (eval $ac_compile) 2>&5
7938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7939 test $ac_status = 0; }; then
7940 if test "$lt_cv_prog_gnu_ld" = yes; then
7941 case `/usr/bin/file conftest.$ac_objext` in
7943 LD
="${LD-ld} -melf32bsmip"
7946 LD
="${LD-ld} -melf32bmipn32"
7949 LD
="${LD-ld} -melf64bmip"
7953 case `/usr/bin/file conftest.$ac_objext` in
7969 x86_64
-*kfreebsd
*-gnu|x86_64
-*linux
*|ppc
*-*linux
*|powerpc
*-*linux
*| \
7970 s390
*-*linux
*|s390
*-*tpf
*|sparc
*-*linux
*)
7971 # Find out which ABI we are using.
7972 echo 'int i;' > conftest.
$ac_ext
7973 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7974 (eval $ac_compile) 2>&5
7976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7977 test $ac_status = 0; }; then
7978 case `/usr/bin/file conftest.o` in
7981 x86_64
-*kfreebsd
*-gnu)
7982 LD
="${LD-ld} -m elf_i386_fbsd"
7985 LD
="${LD-ld} -m elf_i386"
7987 ppc64
-*linux
*|powerpc64
-*linux
*)
7988 LD
="${LD-ld} -m elf32ppclinux"
7991 LD
="${LD-ld} -m elf_s390"
7994 LD
="${LD-ld} -m elf32_sparc"
8000 x86_64
-*kfreebsd
*-gnu)
8001 LD
="${LD-ld} -m elf_x86_64_fbsd"
8004 LD
="${LD-ld} -m elf_x86_64"
8006 ppc
*-*linux
*|powerpc
*-*linux
*)
8007 LD
="${LD-ld} -m elf64ppc"
8009 s390
*-*linux
*|s390
*-*tpf
*)
8010 LD
="${LD-ld} -m elf64_s390"
8013 LD
="${LD-ld} -m elf64_sparc"
8023 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8024 SAVE_CFLAGS
="$CFLAGS"
8025 CFLAGS
="$CFLAGS -belf"
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8027 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8028 if ${lt_cv_cc_needs_belf+:} false
; then :
8029 $as_echo_n "(cached) " >&6
8032 ac_cpp
='$CPP $CPPFLAGS'
8033 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8034 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8035 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8037 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8038 /* end confdefs.h. */
8048 if ac_fn_c_try_link
"$LINENO"; then :
8049 lt_cv_cc_needs_belf
=yes
8051 lt_cv_cc_needs_belf
=no
8053 rm -f core conftest.err conftest.
$ac_objext \
8054 conftest
$ac_exeext conftest.
$ac_ext
8056 ac_cpp
='$CPP $CPPFLAGS'
8057 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8058 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8059 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8063 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8064 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
8065 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8066 CFLAGS
="$SAVE_CFLAGS"
8070 # Find out which ABI we are using.
8071 echo 'int i;' > conftest.
$ac_ext
8072 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8073 (eval $ac_compile) 2>&5
8075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8076 test $ac_status = 0; }; then
8077 case `/usr/bin/file conftest.o` in
8079 case $lt_cv_prog_gnu_ld in
8083 LD
="${LD-ld} -m elf_x86_64"
8086 LD
="${LD-ld} -m elf64_sparc"
8089 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
8090 if ${LD-ld} -V | grep _sol2
>/dev
/null
2>&1; then
8095 if ${LD-ld} -64 -r -o conftest2.o conftest.o
>/dev
/null
2>&1; then
8107 need_locks
="$enable_libtool_lock"
8109 if test -n "$ac_tool_prefix"; then
8110 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
8111 set dummy
${ac_tool_prefix}mt
; ac_word
=$2
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8113 $as_echo_n "checking for $ac_word... " >&6; }
8114 if ${ac_cv_prog_MANIFEST_TOOL+:} false
; then :
8115 $as_echo_n "(cached) " >&6
8117 if test -n "$MANIFEST_TOOL"; then
8118 ac_cv_prog_MANIFEST_TOOL
="$MANIFEST_TOOL" # Let the user override the test.
8120 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8124 test -z "$as_dir" && as_dir
=.
8125 for ac_exec_ext
in '' $ac_executable_extensions; do
8126 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8127 ac_cv_prog_MANIFEST_TOOL
="${ac_tool_prefix}mt"
8128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8137 MANIFEST_TOOL
=$ac_cv_prog_MANIFEST_TOOL
8138 if test -n "$MANIFEST_TOOL"; then
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
8140 $as_echo "$MANIFEST_TOOL" >&6; }
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8143 $as_echo "no" >&6; }
8148 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
8149 ac_ct_MANIFEST_TOOL
=$MANIFEST_TOOL
8150 # Extract the first word of "mt", so it can be a program name with args.
8151 set dummy mt
; ac_word
=$2
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8153 $as_echo_n "checking for $ac_word... " >&6; }
8154 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false
; then :
8155 $as_echo_n "(cached) " >&6
8157 if test -n "$ac_ct_MANIFEST_TOOL"; then
8158 ac_cv_prog_ac_ct_MANIFEST_TOOL
="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
8160 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8164 test -z "$as_dir" && as_dir
=.
8165 for ac_exec_ext
in '' $ac_executable_extensions; do
8166 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8167 ac_cv_prog_ac_ct_MANIFEST_TOOL
="mt"
8168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8177 ac_ct_MANIFEST_TOOL
=$ac_cv_prog_ac_ct_MANIFEST_TOOL
8178 if test -n "$ac_ct_MANIFEST_TOOL"; then
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
8180 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8183 $as_echo "no" >&6; }
8186 if test "x$ac_ct_MANIFEST_TOOL" = x
; then
8189 case $cross_compiling:$ac_tool_warned in
8191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8192 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8193 ac_tool_warned
=yes ;;
8195 MANIFEST_TOOL
=$ac_ct_MANIFEST_TOOL
8198 MANIFEST_TOOL
="$ac_cv_prog_MANIFEST_TOOL"
8201 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL
=mt
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
8203 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
8204 if ${lt_cv_path_mainfest_tool+:} false
; then :
8205 $as_echo_n "(cached) " >&6
8207 lt_cv_path_mainfest_tool
=no
8208 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
8209 $MANIFEST_TOOL '-?' 2>conftest.err
> conftest.out
8210 cat conftest.err
>&5
8211 if $GREP 'Manifest Tool' conftest.out
> /dev
/null
; then
8212 lt_cv_path_mainfest_tool
=yes
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
8217 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8218 if test "x$lt_cv_path_mainfest_tool" != xyes
; then
8228 rhapsody
* | darwin
*)
8229 if test -n "$ac_tool_prefix"; then
8230 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8231 set dummy
${ac_tool_prefix}dsymutil
; ac_word
=$2
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8233 $as_echo_n "checking for $ac_word... " >&6; }
8234 if ${ac_cv_prog_DSYMUTIL+:} false
; then :
8235 $as_echo_n "(cached) " >&6
8237 if test -n "$DSYMUTIL"; then
8238 ac_cv_prog_DSYMUTIL
="$DSYMUTIL" # Let the user override the test.
8240 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8244 test -z "$as_dir" && as_dir
=.
8245 for ac_exec_ext
in '' $ac_executable_extensions; do
8246 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8247 ac_cv_prog_DSYMUTIL
="${ac_tool_prefix}dsymutil"
8248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8257 DSYMUTIL
=$ac_cv_prog_DSYMUTIL
8258 if test -n "$DSYMUTIL"; then
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8260 $as_echo "$DSYMUTIL" >&6; }
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8263 $as_echo "no" >&6; }
8268 if test -z "$ac_cv_prog_DSYMUTIL"; then
8269 ac_ct_DSYMUTIL
=$DSYMUTIL
8270 # Extract the first word of "dsymutil", so it can be a program name with args.
8271 set dummy dsymutil
; ac_word
=$2
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8273 $as_echo_n "checking for $ac_word... " >&6; }
8274 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false
; then :
8275 $as_echo_n "(cached) " >&6
8277 if test -n "$ac_ct_DSYMUTIL"; then
8278 ac_cv_prog_ac_ct_DSYMUTIL
="$ac_ct_DSYMUTIL" # Let the user override the test.
8280 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8284 test -z "$as_dir" && as_dir
=.
8285 for ac_exec_ext
in '' $ac_executable_extensions; do
8286 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8287 ac_cv_prog_ac_ct_DSYMUTIL
="dsymutil"
8288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8297 ac_ct_DSYMUTIL
=$ac_cv_prog_ac_ct_DSYMUTIL
8298 if test -n "$ac_ct_DSYMUTIL"; then
8299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8300 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8303 $as_echo "no" >&6; }
8306 if test "x$ac_ct_DSYMUTIL" = x
; then
8309 case $cross_compiling:$ac_tool_warned in
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8312 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8313 ac_tool_warned
=yes ;;
8315 DSYMUTIL
=$ac_ct_DSYMUTIL
8318 DSYMUTIL
="$ac_cv_prog_DSYMUTIL"
8321 if test -n "$ac_tool_prefix"; then
8322 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8323 set dummy
${ac_tool_prefix}nmedit
; ac_word
=$2
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8325 $as_echo_n "checking for $ac_word... " >&6; }
8326 if ${ac_cv_prog_NMEDIT+:} false
; then :
8327 $as_echo_n "(cached) " >&6
8329 if test -n "$NMEDIT"; then
8330 ac_cv_prog_NMEDIT
="$NMEDIT" # Let the user override the test.
8332 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8336 test -z "$as_dir" && as_dir
=.
8337 for ac_exec_ext
in '' $ac_executable_extensions; do
8338 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8339 ac_cv_prog_NMEDIT
="${ac_tool_prefix}nmedit"
8340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8349 NMEDIT
=$ac_cv_prog_NMEDIT
8350 if test -n "$NMEDIT"; then
8351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8352 $as_echo "$NMEDIT" >&6; }
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8355 $as_echo "no" >&6; }
8360 if test -z "$ac_cv_prog_NMEDIT"; then
8361 ac_ct_NMEDIT
=$NMEDIT
8362 # Extract the first word of "nmedit", so it can be a program name with args.
8363 set dummy nmedit
; ac_word
=$2
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8365 $as_echo_n "checking for $ac_word... " >&6; }
8366 if ${ac_cv_prog_ac_ct_NMEDIT+:} false
; then :
8367 $as_echo_n "(cached) " >&6
8369 if test -n "$ac_ct_NMEDIT"; then
8370 ac_cv_prog_ac_ct_NMEDIT
="$ac_ct_NMEDIT" # Let the user override the test.
8372 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8376 test -z "$as_dir" && as_dir
=.
8377 for ac_exec_ext
in '' $ac_executable_extensions; do
8378 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8379 ac_cv_prog_ac_ct_NMEDIT
="nmedit"
8380 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8389 ac_ct_NMEDIT
=$ac_cv_prog_ac_ct_NMEDIT
8390 if test -n "$ac_ct_NMEDIT"; then
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8392 $as_echo "$ac_ct_NMEDIT" >&6; }
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8395 $as_echo "no" >&6; }
8398 if test "x$ac_ct_NMEDIT" = x
; then
8401 case $cross_compiling:$ac_tool_warned in
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8404 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8405 ac_tool_warned
=yes ;;
8407 NMEDIT
=$ac_ct_NMEDIT
8410 NMEDIT
="$ac_cv_prog_NMEDIT"
8413 if test -n "$ac_tool_prefix"; then
8414 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8415 set dummy
${ac_tool_prefix}lipo
; ac_word
=$2
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8417 $as_echo_n "checking for $ac_word... " >&6; }
8418 if ${ac_cv_prog_LIPO+:} false
; then :
8419 $as_echo_n "(cached) " >&6
8421 if test -n "$LIPO"; then
8422 ac_cv_prog_LIPO
="$LIPO" # Let the user override the test.
8424 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8428 test -z "$as_dir" && as_dir
=.
8429 for ac_exec_ext
in '' $ac_executable_extensions; do
8430 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8431 ac_cv_prog_LIPO
="${ac_tool_prefix}lipo"
8432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8441 LIPO
=$ac_cv_prog_LIPO
8442 if test -n "$LIPO"; then
8443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8444 $as_echo "$LIPO" >&6; }
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8447 $as_echo "no" >&6; }
8452 if test -z "$ac_cv_prog_LIPO"; then
8454 # Extract the first word of "lipo", so it can be a program name with args.
8455 set dummy lipo
; ac_word
=$2
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8457 $as_echo_n "checking for $ac_word... " >&6; }
8458 if ${ac_cv_prog_ac_ct_LIPO+:} false
; then :
8459 $as_echo_n "(cached) " >&6
8461 if test -n "$ac_ct_LIPO"; then
8462 ac_cv_prog_ac_ct_LIPO
="$ac_ct_LIPO" # Let the user override the test.
8464 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8468 test -z "$as_dir" && as_dir
=.
8469 for ac_exec_ext
in '' $ac_executable_extensions; do
8470 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8471 ac_cv_prog_ac_ct_LIPO
="lipo"
8472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8481 ac_ct_LIPO
=$ac_cv_prog_ac_ct_LIPO
8482 if test -n "$ac_ct_LIPO"; then
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8484 $as_echo "$ac_ct_LIPO" >&6; }
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8487 $as_echo "no" >&6; }
8490 if test "x$ac_ct_LIPO" = x
; then
8493 case $cross_compiling:$ac_tool_warned in
8495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8496 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8497 ac_tool_warned
=yes ;;
8502 LIPO
="$ac_cv_prog_LIPO"
8505 if test -n "$ac_tool_prefix"; then
8506 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8507 set dummy
${ac_tool_prefix}otool
; ac_word
=$2
8508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8509 $as_echo_n "checking for $ac_word... " >&6; }
8510 if ${ac_cv_prog_OTOOL+:} false
; then :
8511 $as_echo_n "(cached) " >&6
8513 if test -n "$OTOOL"; then
8514 ac_cv_prog_OTOOL
="$OTOOL" # Let the user override the test.
8516 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8520 test -z "$as_dir" && as_dir
=.
8521 for ac_exec_ext
in '' $ac_executable_extensions; do
8522 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8523 ac_cv_prog_OTOOL
="${ac_tool_prefix}otool"
8524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8533 OTOOL
=$ac_cv_prog_OTOOL
8534 if test -n "$OTOOL"; then
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8536 $as_echo "$OTOOL" >&6; }
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8539 $as_echo "no" >&6; }
8544 if test -z "$ac_cv_prog_OTOOL"; then
8546 # Extract the first word of "otool", so it can be a program name with args.
8547 set dummy otool
; ac_word
=$2
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8549 $as_echo_n "checking for $ac_word... " >&6; }
8550 if ${ac_cv_prog_ac_ct_OTOOL+:} false
; then :
8551 $as_echo_n "(cached) " >&6
8553 if test -n "$ac_ct_OTOOL"; then
8554 ac_cv_prog_ac_ct_OTOOL
="$ac_ct_OTOOL" # Let the user override the test.
8556 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8560 test -z "$as_dir" && as_dir
=.
8561 for ac_exec_ext
in '' $ac_executable_extensions; do
8562 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8563 ac_cv_prog_ac_ct_OTOOL
="otool"
8564 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8573 ac_ct_OTOOL
=$ac_cv_prog_ac_ct_OTOOL
8574 if test -n "$ac_ct_OTOOL"; then
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8576 $as_echo "$ac_ct_OTOOL" >&6; }
8578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8579 $as_echo "no" >&6; }
8582 if test "x$ac_ct_OTOOL" = x
; then
8585 case $cross_compiling:$ac_tool_warned in
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8588 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8589 ac_tool_warned
=yes ;;
8594 OTOOL
="$ac_cv_prog_OTOOL"
8597 if test -n "$ac_tool_prefix"; then
8598 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8599 set dummy
${ac_tool_prefix}otool64
; ac_word
=$2
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8601 $as_echo_n "checking for $ac_word... " >&6; }
8602 if ${ac_cv_prog_OTOOL64+:} false
; then :
8603 $as_echo_n "(cached) " >&6
8605 if test -n "$OTOOL64"; then
8606 ac_cv_prog_OTOOL64
="$OTOOL64" # Let the user override the test.
8608 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8612 test -z "$as_dir" && as_dir
=.
8613 for ac_exec_ext
in '' $ac_executable_extensions; do
8614 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8615 ac_cv_prog_OTOOL64
="${ac_tool_prefix}otool64"
8616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8625 OTOOL64
=$ac_cv_prog_OTOOL64
8626 if test -n "$OTOOL64"; then
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8628 $as_echo "$OTOOL64" >&6; }
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8631 $as_echo "no" >&6; }
8636 if test -z "$ac_cv_prog_OTOOL64"; then
8637 ac_ct_OTOOL64
=$OTOOL64
8638 # Extract the first word of "otool64", so it can be a program name with args.
8639 set dummy otool64
; ac_word
=$2
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8641 $as_echo_n "checking for $ac_word... " >&6; }
8642 if ${ac_cv_prog_ac_ct_OTOOL64+:} false
; then :
8643 $as_echo_n "(cached) " >&6
8645 if test -n "$ac_ct_OTOOL64"; then
8646 ac_cv_prog_ac_ct_OTOOL64
="$ac_ct_OTOOL64" # Let the user override the test.
8648 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8652 test -z "$as_dir" && as_dir
=.
8653 for ac_exec_ext
in '' $ac_executable_extensions; do
8654 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8655 ac_cv_prog_ac_ct_OTOOL64
="otool64"
8656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8665 ac_ct_OTOOL64
=$ac_cv_prog_ac_ct_OTOOL64
8666 if test -n "$ac_ct_OTOOL64"; then
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8668 $as_echo "$ac_ct_OTOOL64" >&6; }
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8671 $as_echo "no" >&6; }
8674 if test "x$ac_ct_OTOOL64" = x
; then
8677 case $cross_compiling:$ac_tool_warned in
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8680 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8681 ac_tool_warned
=yes ;;
8683 OTOOL64
=$ac_ct_OTOOL64
8686 OTOOL64
="$ac_cv_prog_OTOOL64"
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8716 $as_echo_n "checking for -single_module linker flag... " >&6; }
8717 if ${lt_cv_apple_cc_single_mod+:} false
; then :
8718 $as_echo_n "(cached) " >&6
8720 lt_cv_apple_cc_single_mod
=no
8721 if test -z "${LT_MULTI_MODULE}"; then
8722 # By default we will add the -single_module flag. You can override
8723 # by either setting the environment variable LT_MULTI_MODULE
8724 # non-empty at configure time, or by adding -multi_module to the
8726 rm -rf libconftest.dylib
*
8727 echo "int foo(void){return 1;}" > conftest.c
8728 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8729 -dynamiclib -Wl,-single_module conftest.c" >&5
8730 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8731 -dynamiclib -Wl,-single_module conftest.c
2>conftest.err
8733 # If there is a non-empty error log, and "single_module"
8734 # appears in it, assume the flag caused a linker warning
8735 if test -s conftest.err
&& $GREP single_module conftest.err
; then
8736 cat conftest.err
>&5
8737 # Otherwise, if the output was created with a 0 exit code from
8738 # the compiler, it worked.
8739 elif test -f libconftest.dylib
&& test $_lt_result -eq 0; then
8740 lt_cv_apple_cc_single_mod
=yes
8742 cat conftest.err
>&5
8744 rm -rf libconftest.dylib
*
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8749 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8752 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8753 if ${lt_cv_ld_exported_symbols_list+:} false
; then :
8754 $as_echo_n "(cached) " >&6
8756 lt_cv_ld_exported_symbols_list
=no
8757 save_LDFLAGS
=$LDFLAGS
8758 echo "_main" > conftest.sym
8759 LDFLAGS
="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8760 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8761 /* end confdefs.h. */
8771 if ac_fn_c_try_link
"$LINENO"; then :
8772 lt_cv_ld_exported_symbols_list
=yes
8774 lt_cv_ld_exported_symbols_list
=no
8776 rm -f core conftest.err conftest.
$ac_objext \
8777 conftest
$ac_exeext conftest.
$ac_ext
8778 LDFLAGS
="$save_LDFLAGS"
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8782 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8785 $as_echo_n "checking for -force_load linker flag... " >&6; }
8786 if ${lt_cv_ld_force_load+:} false
; then :
8787 $as_echo_n "(cached) " >&6
8789 lt_cv_ld_force_load
=no
8790 cat > conftest.c
<< _LT_EOF
8791 int forced_loaded() { return 2;}
8793 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8794 $LTCC $LTCFLAGS -c -o conftest.o conftest.c
2>&5
8795 echo "$AR cru libconftest.a conftest.o" >&5
8796 $AR cru libconftest.a conftest.o
2>&5
8797 echo "$RANLIB libconftest.a" >&5
8798 $RANLIB libconftest.a
2>&5
8799 cat > conftest.c
<< _LT_EOF
8800 int main() { return 0;}
8802 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8803 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
2>conftest.err
8805 if test -s conftest.err
&& $GREP force_load conftest.err
; then
8806 cat conftest.err
>&5
8807 elif test -f conftest
&& test $_lt_result -eq 0 && $GREP forced_load conftest
>/dev
/null
2>&1 ; then
8808 lt_cv_ld_force_load
=yes
8810 cat conftest.err
>&5
8812 rm -f conftest.err libconftest.a conftest conftest.c
8813 rm -rf conftest.dSYM
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8817 $as_echo "$lt_cv_ld_force_load" >&6; }
8819 rhapsody
* | darwin1.
[012])
8820 _lt_dar_allow_undefined
='${wl}-undefined ${wl}suppress' ;;
8822 _lt_dar_allow_undefined
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8823 darwin
*) # darwin 5.x on
8824 # if running on 10.5 or later, the deployment target defaults
8825 # to the OS version, if on x86, and 10.4, the deployment
8826 # target defaults to 10.4. Don't you love it?
8827 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8828 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8829 _lt_dar_allow_undefined
='${wl}-undefined ${wl}dynamic_lookup' ;;
8831 _lt_dar_allow_undefined
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8833 _lt_dar_allow_undefined
='${wl}-undefined ${wl}dynamic_lookup' ;;
8837 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8838 _lt_dar_single_mod
='$single_module'
8840 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8841 _lt_dar_export_syms
=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8843 _lt_dar_export_syms
='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8845 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8846 _lt_dsymutil
='~$DSYMUTIL $lib || :'
8853 for ac_header
in dlfcn.h
8855 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8857 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
8858 cat >>confdefs.h
<<_ACEOF
8859 #define HAVE_DLFCN_H 1
8883 # Check whether --with-pic was given.
8884 if test "${with_pic+set}" = set; then :
8885 withval
=$with_pic; lt_p
=${PACKAGE-default}
8887 yes|no
) pic_mode
=$withval ;;
8890 # Look at the argument we got. We use all the common list separators.
8891 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
8892 for lt_pkg
in $withval; do
8894 if test "X$lt_pkg" = "X$lt_p"; then
8906 test -z "$pic_mode" && pic_mode
=default
8914 # Check whether --enable-fast-install was given.
8915 if test "${enable_fast_install+set}" = set; then :
8916 enableval
=$enable_fast_install; p
=${PACKAGE-default}
8918 yes) enable_fast_install
=yes ;;
8919 no
) enable_fast_install
=no
;;
8921 enable_fast_install
=no
8922 # Look at the argument we got. We use all the common list separators.
8923 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
8924 for pkg
in $enableval; do
8926 if test "X$pkg" = "X$p"; then
8927 enable_fast_install
=yes
8934 enable_fast_install
=yes
8947 # This can be used to rebuild libtool when needed
8948 LIBTOOL_DEPS
="$ltmain"
8950 # Always use our own libtool.
8951 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
8982 test -z "$LN_S" && LN_S
="ln -s"
8997 if test -n "${ZSH_VERSION+set}" ; then
8998 setopt NO_GLOB_SUBST
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9002 $as_echo_n "checking for objdir... " >&6; }
9003 if ${lt_cv_objdir+:} false
; then :
9004 $as_echo_n "(cached) " >&6
9006 rm -f .libs
2>/dev
/null
9007 mkdir .libs
2>/dev
/null
9008 if test -d .libs
; then
9011 # MS-DOS does not allow filenames that begin with a dot.
9014 rmdir .libs
2>/dev
/null
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9017 $as_echo "$lt_cv_objdir" >&6; }
9018 objdir
=$lt_cv_objdir
9024 cat >>confdefs.h
<<_ACEOF
9025 #define LT_OBJDIR "$lt_cv_objdir/"
9033 # AIX sometimes has problems with the GCC collect2 program. For some
9034 # reason, if we set the COLLECT_NAMES environment variable, the problems
9035 # vanish in a puff of smoke.
9036 if test "X${COLLECT_NAMES+set}" != Xset
; then
9038 export COLLECT_NAMES
9045 can_build_shared
=yes
9047 # All known linkers require a `.a' archive for static linking (except MSVC,
9048 # which needs '.lib').
9051 with_gnu_ld
="$lt_cv_prog_gnu_ld"
9054 old_CFLAGS
="$CFLAGS"
9056 # Set sane defaults for various variables
9057 test -z "$CC" && CC
=cc
9058 test -z "$LTCC" && LTCC
=$CC
9059 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
9060 test -z "$LD" && LD
=ld
9061 test -z "$ac_objext" && ac_objext
=o
9063 for cc_temp
in $compiler""; do
9065 compile
| *[\\/]compile
| ccache
| *[\\/]ccache
) ;;
9066 distcc
| *[\\/]distcc
| purify
| *[\\/]purify
) ;;
9071 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9074 # Only perform the check for file, if the check method requires it
9075 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
9076 case $deplibs_check_method in
9078 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9080 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9081 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
9082 $as_echo_n "(cached) " >&6
9086 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
9089 lt_save_MAGIC_CMD
="$MAGIC_CMD"
9090 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
9091 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
9092 for ac_dir
in $ac_dummy; do
9094 test -z "$ac_dir" && ac_dir
=.
9095 if test -f $ac_dir/${ac_tool_prefix}file; then
9096 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
9097 if test -n "$file_magic_test_file"; then
9098 case $deplibs_check_method in
9100 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9101 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
9102 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null
|
9103 $EGREP "$file_magic_regex" > /dev
/null
; then
9108 *** Warning: the command libtool uses to detect shared libraries,
9109 *** $file_magic_cmd, produces output that libtool cannot recognize.
9110 *** The result is that libtool may fail to recognize shared libraries
9111 *** as such. This will affect the creation of libtool libraries that
9112 *** depend on shared libraries, but programs linked with such libtool
9113 *** libraries will work regardless of this problem. Nevertheless, you
9114 *** may want to report the problem to your system manager and/or to
9115 *** bug-libtool@gnu.org
9125 MAGIC_CMD
="$lt_save_MAGIC_CMD"
9130 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
9131 if test -n "$MAGIC_CMD"; then
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9133 $as_echo "$MAGIC_CMD" >&6; }
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9136 $as_echo "no" >&6; }
9143 if test -z "$lt_cv_path_MAGIC_CMD"; then
9144 if test -n "$ac_tool_prefix"; then
9145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9146 $as_echo_n "checking for file... " >&6; }
9147 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
9148 $as_echo_n "(cached) " >&6
9152 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
9155 lt_save_MAGIC_CMD
="$MAGIC_CMD"
9156 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
9157 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
9158 for ac_dir
in $ac_dummy; do
9160 test -z "$ac_dir" && ac_dir
=.
9161 if test -f $ac_dir/file; then
9162 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
9163 if test -n "$file_magic_test_file"; then
9164 case $deplibs_check_method in
9166 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9167 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
9168 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null
|
9169 $EGREP "$file_magic_regex" > /dev
/null
; then
9174 *** Warning: the command libtool uses to detect shared libraries,
9175 *** $file_magic_cmd, produces output that libtool cannot recognize.
9176 *** The result is that libtool may fail to recognize shared libraries
9177 *** as such. This will affect the creation of libtool libraries that
9178 *** depend on shared libraries, but programs linked with such libtool
9179 *** libraries will work regardless of this problem. Nevertheless, you
9180 *** may want to report the problem to your system manager and/or to
9181 *** bug-libtool@gnu.org
9191 MAGIC_CMD
="$lt_save_MAGIC_CMD"
9196 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
9197 if test -n "$MAGIC_CMD"; then
9198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9199 $as_echo "$MAGIC_CMD" >&6; }
9201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9202 $as_echo "no" >&6; }
9215 # Use C for the default configuration in the libtool script
9219 ac_cpp
='$CPP $CPPFLAGS'
9220 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9221 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9222 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
9225 # Source file extension for C test sources.
9228 # Object file extension for compiled C test sources.
9232 # Code to be used in simple compile tests
9233 lt_simple_compile_test_code
="int some_variable = 0;"
9235 # Code to be used in simple link tests
9236 lt_simple_link_test_code
='int main(){return(0);}'
9244 # If no C compiler was specified, use CC.
9247 # If no C compiler flags were specified, use CFLAGS.
9248 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
9250 # Allow CC to be a program name with arguments.
9253 # Save the default compiler, since it gets overwritten when the other
9254 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9255 compiler_DEFAULT
=$CC
9257 # save warnings/boilerplate of simple test code
9258 ac_outfile
=conftest.
$ac_objext
9259 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
9260 eval "$ac_compile" 2>&1 >/dev
/null
| $SED '/^$/d; /^ *+/d' >conftest.err
9261 _lt_compiler_boilerplate
=`cat conftest.err`
9264 ac_outfile
=conftest.
$ac_objext
9265 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
9266 eval "$ac_link" 2>&1 >/dev
/null
| $SED '/^$/d; /^ *+/d' >conftest.err
9267 _lt_linker_boilerplate
=`cat conftest.err`
9271 if test -n "$compiler"; then
9273 lt_prog_compiler_no_builtin_flag
=
9275 if test "$GCC" = yes; then
9276 case $cc_basename in
9278 lt_prog_compiler_no_builtin_flag
=' -Xcompiler -fno-builtin' ;;
9280 lt_prog_compiler_no_builtin_flag
=' -fno-builtin' ;;
9283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9284 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9285 if ${lt_cv_prog_compiler_rtti_exceptions+:} false
; then :
9286 $as_echo_n "(cached) " >&6
9288 lt_cv_prog_compiler_rtti_exceptions
=no
9289 ac_outfile
=conftest.
$ac_objext
9290 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9291 lt_compiler_flag
="-fno-rtti -fno-exceptions"
9292 # Insert the option either (1) after the last *FLAGS variable, or
9293 # (2) before a word containing "conftest.", or (3) at the end.
9294 # Note that $ac_compile itself does not contain backslashes and begins
9295 # with a dollar sign (not a hyphen), so the echo should work correctly.
9296 # The option is referenced via a variable to avoid confusing sed.
9297 lt_compile
=`echo "$ac_compile" | $SED \
9298 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9299 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9300 -e 's:$: $lt_compiler_flag:'`
9301 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9302 (eval "$lt_compile" 2>conftest.err
)
9304 cat conftest.err
>&5
9305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9306 if (exit $ac_status) && test -s "$ac_outfile"; then
9307 # The compiler can only warn and ignore the option if not recognized
9308 # So say no if there are warnings other than the usual output.
9309 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9310 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
9311 if test ! -s conftest.er2
|| diff conftest.exp conftest.er2
>/dev
/null
; then
9312 lt_cv_prog_compiler_rtti_exceptions
=yes
9318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9319 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9321 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
9322 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9334 lt_prog_compiler_wl
=
9335 lt_prog_compiler_pic
=
9336 lt_prog_compiler_static
=
9339 if test "$GCC" = yes; then
9340 lt_prog_compiler_wl
='-Wl,'
9341 lt_prog_compiler_static
='-static'
9345 # All AIX code is PIC.
9346 if test "$host_cpu" = ia64
; then
9347 # AIX 5 now supports IA64 processor
9348 lt_prog_compiler_static
='-Bstatic'
9355 # see comment about AmigaOS4 .so support
9356 lt_prog_compiler_pic
='-fPIC'
9359 # FIXME: we need at least 68020 code to build shared libraries, but
9360 # adding the `-m68020' flag to GCC prevents building anything better,
9362 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
9367 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
9368 # PIC is the default for these OSes.
9371 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
9372 # This hack is so that the source file can tell whether it is being
9373 # built for inclusion in a dll (and should export symbols for example).
9374 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9375 # (--disable-auto-import) libraries
9376 lt_prog_compiler_pic
='-DDLL_EXPORT'
9379 darwin
* | rhapsody
*)
9380 # PIC is the default on this platform
9381 # Common symbols not allowed in MH_DYLIB files
9382 lt_prog_compiler_pic
='-fno-common'
9386 # PIC is the default for Haiku.
9387 # The "-static" flag exists, but is broken.
9388 lt_prog_compiler_static
=
9392 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9393 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9394 # sets the default TLS model and affects inlining.
9400 lt_prog_compiler_pic
='-fPIC'
9406 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9407 # Instead, we relocate shared libraries at runtime.
9411 # Just because we use GCC doesn't mean we suddenly get shared libraries
9412 # on systems that don't support them.
9413 lt_prog_compiler_can_build_shared
=no
9418 # QNX uses GNU C++, but need to define -shared option too, otherwise
9420 lt_prog_compiler_pic
='-fPIC -shared'
9424 if test -d /usr
/nec
; then
9425 lt_prog_compiler_pic
=-Kconform_pic
9430 lt_prog_compiler_pic
='-fPIC'
9434 case $cc_basename in
9435 nvcc
*) # Cuda Compiler Driver 2.2
9436 lt_prog_compiler_wl
='-Xlinker '
9437 if test -n "$lt_prog_compiler_pic"; then
9438 lt_prog_compiler_pic
="-Xcompiler $lt_prog_compiler_pic"
9443 # PORTME Check for flag to pass linker flags through the system compiler.
9446 lt_prog_compiler_wl
='-Wl,'
9447 if test "$host_cpu" = ia64
; then
9448 # AIX 5 now supports IA64 processor
9449 lt_prog_compiler_static
='-Bstatic'
9451 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
9455 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
9456 # This hack is so that the source file can tell whether it is being
9457 # built for inclusion in a dll (and should export symbols for example).
9458 lt_prog_compiler_pic
='-DDLL_EXPORT'
9461 hpux9
* | hpux10
* | hpux11
*)
9462 lt_prog_compiler_wl
='-Wl,'
9463 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9470 lt_prog_compiler_pic
='+Z'
9473 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9474 lt_prog_compiler_static
='${wl}-a ${wl}archive'
9477 irix5
* | irix6
* | nonstopux
*)
9478 lt_prog_compiler_wl
='-Wl,'
9479 # PIC (with -KPIC) is the default.
9480 lt_prog_compiler_static
='-non_shared'
9483 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
9484 case $cc_basename in
9485 # old Intel for x86_64 which still supported -KPIC.
9487 lt_prog_compiler_wl
='-Wl,'
9488 lt_prog_compiler_pic
='-KPIC'
9489 lt_prog_compiler_static
='-static'
9491 # icc used to be incompatible with GCC.
9492 # ICC 10 doesn't accept -KPIC any more.
9494 lt_prog_compiler_wl
='-Wl,'
9495 lt_prog_compiler_pic
='-fPIC'
9496 lt_prog_compiler_static
='-static'
9498 # Lahey Fortran 8.1.
9500 lt_prog_compiler_wl
='-Wl,'
9501 lt_prog_compiler_pic
='--shared'
9502 lt_prog_compiler_static
='--static'
9505 # NAG Fortran compiler
9506 lt_prog_compiler_wl
='-Wl,-Wl,,'
9507 lt_prog_compiler_pic
='-PIC'
9508 lt_prog_compiler_static
='-Bstatic'
9510 pgcc
* | pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
9511 # Portland Group compilers (*not* the Pentium gcc compiler,
9512 # which looks to be a dead project)
9513 lt_prog_compiler_wl
='-Wl,'
9514 lt_prog_compiler_pic
='-fpic'
9515 lt_prog_compiler_static
='-Bstatic'
9518 lt_prog_compiler_wl
='-Wl,'
9519 # All Alpha code is PIC.
9520 lt_prog_compiler_static
='-non_shared'
9522 xl
* | bgxl
* | bgf
* | mpixl
*)
9523 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9524 lt_prog_compiler_wl
='-Wl,'
9525 lt_prog_compiler_pic
='-qpic'
9526 lt_prog_compiler_static
='-qstaticlink'
9529 case `$CC -V 2>&1 | sed 5q` in
9530 *Sun\ Ceres\ Fortran
* | *Sun
*Fortran
*\
[1-7].
* | *Sun
*Fortran
*\
8.
[0-3]*)
9531 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9532 lt_prog_compiler_pic
='-KPIC'
9533 lt_prog_compiler_static
='-Bstatic'
9534 lt_prog_compiler_wl
=''
9536 *Sun\ F
* | *Sun
*Fortran
*)
9537 lt_prog_compiler_pic
='-KPIC'
9538 lt_prog_compiler_static
='-Bstatic'
9539 lt_prog_compiler_wl
='-Qoption ld '
9543 lt_prog_compiler_pic
='-KPIC'
9544 lt_prog_compiler_static
='-Bstatic'
9545 lt_prog_compiler_wl
='-Wl,'
9547 *Intel
*\
[CF
]*Compiler
*)
9548 lt_prog_compiler_wl
='-Wl,'
9549 lt_prog_compiler_pic
='-fPIC'
9550 lt_prog_compiler_static
='-static'
9553 lt_prog_compiler_wl
='-Wl,'
9554 lt_prog_compiler_pic
='-fpic'
9555 lt_prog_compiler_static
='-Bstatic'
9563 lt_prog_compiler_pic
='-KPIC'
9564 lt_prog_compiler_static
='-Bstatic'
9568 # QNX uses GNU C++, but need to define -shared option too, otherwise
9570 lt_prog_compiler_pic
='-fPIC -shared'
9573 osf3
* | osf4
* | osf5
*)
9574 lt_prog_compiler_wl
='-Wl,'
9575 # All OSF/1 code is PIC.
9576 lt_prog_compiler_static
='-non_shared'
9580 lt_prog_compiler_static
='-non_shared'
9584 lt_prog_compiler_pic
='-KPIC'
9585 lt_prog_compiler_static
='-Bstatic'
9586 case $cc_basename in
9587 f77
* | f90
* | f95
* | sunf77
* | sunf90
* | sunf95
*)
9588 lt_prog_compiler_wl
='-Qoption ld ';;
9590 lt_prog_compiler_wl
='-Wl,';;
9595 lt_prog_compiler_wl
='-Qoption ld '
9596 lt_prog_compiler_pic
='-PIC'
9597 lt_prog_compiler_static
='-Bstatic'
9600 sysv4
| sysv4.2uw2
* | sysv4.3
*)
9601 lt_prog_compiler_wl
='-Wl,'
9602 lt_prog_compiler_pic
='-KPIC'
9603 lt_prog_compiler_static
='-Bstatic'
9607 if test -d /usr
/nec
;then
9608 lt_prog_compiler_pic
='-Kconform_pic'
9609 lt_prog_compiler_static
='-Bstatic'
9613 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
9614 lt_prog_compiler_wl
='-Wl,'
9615 lt_prog_compiler_pic
='-KPIC'
9616 lt_prog_compiler_static
='-Bstatic'
9620 lt_prog_compiler_wl
='-Wl,'
9621 lt_prog_compiler_can_build_shared
=no
9625 lt_prog_compiler_pic
='-pic'
9626 lt_prog_compiler_static
='-Bstatic'
9630 lt_prog_compiler_can_build_shared
=no
9636 # For platforms which do not support PIC, -DPIC is meaningless:
9638 lt_prog_compiler_pic
=
9641 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9646 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9647 if ${lt_cv_prog_compiler_pic+:} false
; then :
9648 $as_echo_n "(cached) " >&6
9650 lt_cv_prog_compiler_pic
=$lt_prog_compiler_pic
9652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9653 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9654 lt_prog_compiler_pic
=$lt_cv_prog_compiler_pic
9657 # Check to make sure the PIC flag actually works.
9659 if test -n "$lt_prog_compiler_pic"; then
9660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9661 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9662 if ${lt_cv_prog_compiler_pic_works+:} false
; then :
9663 $as_echo_n "(cached) " >&6
9665 lt_cv_prog_compiler_pic_works
=no
9666 ac_outfile
=conftest.
$ac_objext
9667 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9668 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
9669 # Insert the option either (1) after the last *FLAGS variable, or
9670 # (2) before a word containing "conftest.", or (3) at the end.
9671 # Note that $ac_compile itself does not contain backslashes and begins
9672 # with a dollar sign (not a hyphen), so the echo should work correctly.
9673 # The option is referenced via a variable to avoid confusing sed.
9674 lt_compile
=`echo "$ac_compile" | $SED \
9675 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9676 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9677 -e 's:$: $lt_compiler_flag:'`
9678 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9679 (eval "$lt_compile" 2>conftest.err
)
9681 cat conftest.err
>&5
9682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9683 if (exit $ac_status) && test -s "$ac_outfile"; then
9684 # The compiler can only warn and ignore the option if not recognized
9685 # So say no if there are warnings other than the usual output.
9686 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9687 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
9688 if test ! -s conftest.er2
|| diff conftest.exp conftest.er2
>/dev
/null
; then
9689 lt_cv_prog_compiler_pic_works
=yes
9695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9696 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9698 if test x
"$lt_cv_prog_compiler_pic_works" = xyes
; then
9699 case $lt_prog_compiler_pic in
9701 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
9704 lt_prog_compiler_pic
=
9705 lt_prog_compiler_can_build_shared
=no
9721 # Check to make sure the static flag actually works.
9723 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
9724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9725 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9726 if ${lt_cv_prog_compiler_static_works+:} false
; then :
9727 $as_echo_n "(cached) " >&6
9729 lt_cv_prog_compiler_static_works
=no
9730 save_LDFLAGS
="$LDFLAGS"
9731 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
9732 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
9733 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
9734 # The linker can only warn and ignore the option if not recognized
9735 # So say no if there are warnings
9736 if test -s conftest.err
; then
9737 # Append any errors to the config.log.
9738 cat conftest.err
1>&5
9739 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9740 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
9741 if diff conftest.exp conftest.er2
>/dev
/null
; then
9742 lt_cv_prog_compiler_static_works
=yes
9745 lt_cv_prog_compiler_static_works
=yes
9749 LDFLAGS
="$save_LDFLAGS"
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9753 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9755 if test x
"$lt_cv_prog_compiler_static_works" = xyes
; then
9758 lt_prog_compiler_static
=
9767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9768 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9769 if ${lt_cv_prog_compiler_c_o+:} false
; then :
9770 $as_echo_n "(cached) " >&6
9772 lt_cv_prog_compiler_c_o
=no
9773 $RM -r conftest
2>/dev
/null
9777 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9779 lt_compiler_flag
="-o out/conftest2.$ac_objext"
9780 # Insert the option either (1) after the last *FLAGS variable, or
9781 # (2) before a word containing "conftest.", or (3) at the end.
9782 # Note that $ac_compile itself does not contain backslashes and begins
9783 # with a dollar sign (not a hyphen), so the echo should work correctly.
9784 lt_compile
=`echo "$ac_compile" | $SED \
9785 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9786 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9787 -e 's:$: $lt_compiler_flag:'`
9788 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9789 (eval "$lt_compile" 2>out
/conftest.err
)
9791 cat out
/conftest.err
>&5
9792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9793 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
9795 # The compiler can only warn and ignore the option if not recognized
9796 # So say no if there are warnings
9797 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out
/conftest.exp
9798 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
9799 if test ! -s out
/conftest.er2
|| diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
9800 lt_cv_prog_compiler_c_o
=yes
9805 # SGI C++ compiler will create directory out/ii_files/ for
9806 # template instantiation
9807 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
9808 $RM out
/* && rmdir out
9814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9815 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9823 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9824 if ${lt_cv_prog_compiler_c_o+:} false
; then :
9825 $as_echo_n "(cached) " >&6
9827 lt_cv_prog_compiler_c_o
=no
9828 $RM -r conftest
2>/dev
/null
9832 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9834 lt_compiler_flag
="-o out/conftest2.$ac_objext"
9835 # Insert the option either (1) after the last *FLAGS variable, or
9836 # (2) before a word containing "conftest.", or (3) at the end.
9837 # Note that $ac_compile itself does not contain backslashes and begins
9838 # with a dollar sign (not a hyphen), so the echo should work correctly.
9839 lt_compile
=`echo "$ac_compile" | $SED \
9840 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9841 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9842 -e 's:$: $lt_compiler_flag:'`
9843 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9844 (eval "$lt_compile" 2>out
/conftest.err
)
9846 cat out
/conftest.err
>&5
9847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9848 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
9850 # The compiler can only warn and ignore the option if not recognized
9851 # So say no if there are warnings
9852 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out
/conftest.exp
9853 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
9854 if test ! -s out
/conftest.er2
|| diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
9855 lt_cv_prog_compiler_c_o
=yes
9860 # SGI C++ compiler will create directory out/ii_files/ for
9861 # template instantiation
9862 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
9863 $RM out
/* && rmdir out
9869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9870 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9875 hard_links
="nottested"
9876 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
9877 # do not overwrite the value of need_locks provided by the user
9878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9879 $as_echo_n "checking if we can lock with hard links... " >&6; }
9882 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
9884 ln conftest.a conftest.b
2>&5 || hard_links
=no
9885 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
9886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9887 $as_echo "$hard_links" >&6; }
9888 if test "$hard_links" = no
; then
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9890 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9903 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9906 allow_undefined_flag
=
9907 always_export_symbols
=no
9909 archive_expsym_cmds
=
9910 compiler_needs_object
=no
9911 enable_shared_with_static_runtimes
=no
9912 export_dynamic_flag_spec
=
9913 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9914 hardcode_automatic
=no
9916 hardcode_direct_absolute
=no
9917 hardcode_libdir_flag_spec
=
9918 hardcode_libdir_separator
=
9920 hardcode_shlibpath_var
=unsupported
9922 link_all_deplibs
=unknown
9925 old_archive_from_new_cmds
=
9926 old_archive_from_expsyms_cmds
=
9927 thread_safe_flag_spec
=
9928 whole_archive_flag_spec
=
9929 # include_expsyms should be a list of space-separated symbols to be *always*
9930 # included in the symbol list
9932 # exclude_expsyms can be an extended regexp of symbols to exclude
9933 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9934 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9935 # as well as any symbol that contains `d'.
9936 exclude_expsyms
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9937 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9938 # platforms (ab)use it in PIC code, but their linkers get confused if
9939 # the symbol is explicitly referenced. Since portable code cannot
9940 # rely on this symbol name, it's probably fine to never include it in
9941 # preloaded symbol tables.
9942 # Exclude shared library initialization/finalization symbols.
9943 extract_expsyms_cmds
=
9946 cygwin
* | mingw
* | pw32
* | cegcc
*)
9947 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9948 # When not using gcc, we currently assume that we are using
9949 # Microsoft Visual C++.
9950 if test "$GCC" != yes; then
9955 # we just hope/assume this is gcc and not c89 (= MSVC++)
9965 # On some targets, GNU ld is compatible enough with the native linker
9966 # that we're better off using the native interface for both.
9967 lt_use_gnu_ld_interface
=no
9968 if test "$with_gnu_ld" = yes; then
9971 # The AIX port of GNU ld has always aspired to compatibility
9972 # with the native linker. However, as the warning in the GNU ld
9973 # block says, versions before 2.19.5* couldn't really create working
9974 # shared libraries, regardless of the interface used.
9975 case `$LD -v 2>&1` in
9976 *\ \
(GNU\ Binutils\
)\
2.19.5*) ;;
9977 *\ \
(GNU\ Binutils\
)\
2.
[2-9]*) ;;
9978 *\ \
(GNU\ Binutils\
)\
[3-9]*) ;;
9980 lt_use_gnu_ld_interface
=yes
9985 lt_use_gnu_ld_interface
=yes
9990 if test "$lt_use_gnu_ld_interface" = yes; then
9991 # If archive_cmds runs LD, not CC, wlarc should be empty
9994 # Set some defaults for GNU ld with shared library support. These
9995 # are reset later if shared libraries are not supported. Putting them
9996 # here allows them to be overridden if necessary.
9997 runpath_var
=LD_RUN_PATH
9998 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9999 export_dynamic_flag_spec
='${wl}--export-dynamic'
10000 # ancient GNU ld didn't support --whole-archive et. al.
10001 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev
/null
; then
10002 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10004 whole_archive_flag_spec
=
10006 supports_anon_versioning
=no
10007 case `$LD -v 2>&1` in
10008 *GNU\ gold
*) supports_anon_versioning
=yes ;;
10009 *\
[01].
* | *\
2.
[0-9].
* | *\
2.10.
*) ;; # catch versions < 2.11
10010 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
10011 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
10012 *\
2.11.
*) ;; # other 2.11 versions
10013 *) supports_anon_versioning
=yes ;;
10016 # See if GNU ld supports shared libraries.
10019 # On AIX/PPC, the GNU linker is very broken
10020 if test "$host_cpu" != ia64
; then
10024 *** Warning: the GNU linker, at least up to release 2.19, is reported
10025 *** to be unable to reliably create shared libraries on AIX.
10026 *** Therefore, libtool is disabling shared libraries support. If you
10027 *** really care for shared libraries, you may want to install binutils
10028 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10029 *** You will then need to restart the configuration process.
10038 # see comment about AmigaOS4 .so support
10039 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10040 archive_expsym_cmds
=''
10043 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)'
10044 hardcode_libdir_flag_spec
='-L$libdir'
10045 hardcode_minus_L
=yes
10051 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev
/null
; then
10052 allow_undefined_flag
=unsupported
10053 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10054 # support --undefined. This deserves some investigation. FIXME
10055 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10061 cygwin
* | mingw
* | pw32
* | cegcc
*)
10062 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10063 # as there is no search path for DLLs.
10064 hardcode_libdir_flag_spec
='-L$libdir'
10065 export_dynamic_flag_spec
='${wl}--export-all-symbols'
10066 allow_undefined_flag
=unsupported
10067 always_export_symbols
=no
10068 enable_shared_with_static_runtimes
=yes
10069 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'
10070 exclude_expsyms
='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
10072 if $LD --help 2>&1 | $GREP 'auto-import' > /dev
/null
; then
10073 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10074 # If the export-symbols file already is a .def file (1st line
10075 # is EXPORTS), use it as is; otherwise, prepend...
10076 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10077 cp $export_symbols $output_objdir/$soname.def;
10079 echo EXPORTS > $output_objdir/$soname.def;
10080 cat $export_symbols >> $output_objdir/$soname.def;
10082 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10089 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10090 link_all_deplibs
=yes
10095 hardcode_shlibpath_var
=no
10096 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
10097 export_dynamic_flag_spec
='${wl}-E'
10098 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10099 # Instead, shared libraries are loaded at an image base (0x10000000 by
10100 # default) and relocated if they conflict, which is a slow very memory
10101 # consuming and fragmenting process. To avoid this, we pick a random,
10102 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10103 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10104 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10105 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'
10108 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
10110 if test "$host_os" = linux
-dietlibc; then
10111 case $cc_basename in
10112 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
10115 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev
/null \
10116 && test "$tmp_diet" = no
10118 tmp_addflag
=' $pic_flag'
10119 tmp_sharedflag
='-shared'
10120 case $cc_basename,$host_cpu in
10121 pgcc
*) # Portland Group C compiler
10122 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'
10123 tmp_addflag
=' $pic_flag'
10125 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
10126 # Portland Group f77 and f90 compilers
10127 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'
10128 tmp_addflag
=' $pic_flag -Mnomain' ;;
10129 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
10130 tmp_addflag
=' -i_dynamic' ;;
10131 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
10132 tmp_addflag
=' -i_dynamic -nofor_main' ;;
10133 ifc
* | ifort
*) # Intel Fortran compiler
10134 tmp_addflag
=' -nofor_main' ;;
10135 lf95
*) # Lahey Fortran 8.1
10136 whole_archive_flag_spec
=
10137 tmp_sharedflag
='--shared' ;;
10138 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10139 tmp_sharedflag
='-qmkshrobj'
10141 nvcc
*) # Cuda Compiler Driver 2.2
10142 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'
10143 compiler_needs_object
=yes
10146 case `$CC -V 2>&1 | sed 5q` in
10147 *Sun\ C
*) # Sun C 5.9
10148 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'
10149 compiler_needs_object
=yes
10150 tmp_sharedflag
='-G' ;;
10151 *Sun\ F
*) # Sun Fortran 8.3
10152 tmp_sharedflag
='-G' ;;
10154 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10156 if test "x$supports_anon_versioning" = xyes
; then
10157 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
10158 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10159 echo "local: *; };" >> $output_objdir/$libname.ver~
10160 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10163 case $cc_basename in
10164 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
10165 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10166 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
10167 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10168 archive_cmds
='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
10169 if test "x$supports_anon_versioning" = xyes
; then
10170 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
10171 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10172 echo "local: *; };" >> $output_objdir/$libname.ver~
10173 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10183 if echo __ELF__
| $CC -E - | $GREP __ELF__
>/dev
/null
; then
10184 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10187 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10188 archive_expsym_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10193 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev
/null
; then
10197 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10198 *** create shared libraries on Solaris systems. Therefore, libtool
10199 *** is disabling shared libraries support. We urge you to upgrade GNU
10200 *** binutils to release 2.9.1 or newer. Another option is to modify
10201 *** your PATH or compiler configuration so that the native linker is
10202 *** used, and then restart.
10205 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev
/null
; then
10206 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10207 archive_expsym_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10213 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
10214 case `$LD -v 2>&1` in
10215 *\
[01].
* | *\
2.
[0-9].
* | *\
2.1[0-5].
*)
10219 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10220 *** reliably create shared libraries on SCO systems. Therefore, libtool
10221 *** is disabling shared libraries support. We urge you to upgrade GNU
10222 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10223 *** your PATH or compiler configuration so that the native linker is
10224 *** used, and then restart.
10229 # For security reasons, it is highly recommended that you always
10230 # use absolute paths for naming shared libraries, and exclude the
10231 # DT_RUNPATH tag from executables and libraries. But doing so
10232 # requires that you compile everything twice, which is a pain.
10233 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev
/null
; then
10234 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10235 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10236 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10245 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10247 hardcode_direct
=yes
10248 hardcode_shlibpath_var
=no
10252 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev
/null
; then
10253 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10254 archive_expsym_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10261 if test "$ld_shlibs" = no
; then
10263 hardcode_libdir_flag_spec
=
10264 export_dynamic_flag_spec
=
10265 whole_archive_flag_spec
=
10268 # PORTME fill in a description of your system's linker (not GNU ld)
10271 allow_undefined_flag
=unsupported
10272 always_export_symbols
=yes
10273 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'
10274 # Note: this linker hardcodes the directories in LIBPATH if there
10275 # are no directories specified by -L.
10276 hardcode_minus_L
=yes
10277 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10278 # Neither direct hardcoding nor static linking is supported with a
10280 hardcode_direct
=unsupported
10285 if test "$host_cpu" = ia64
; then
10286 # On IA64, the linker does run time linking by default, so we don't
10287 # have to do anything special.
10288 aix_use_runtimelinking
=no
10289 exp_sym_flag
='-Bexport'
10292 # If we're using GNU nm, then we don't want the "-C" option.
10293 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10294 # Also, AIX nm treats weak defined symbols like other global
10295 # defined symbols, whereas GNU nm marks them as "W".
10296 if $NM -V 2>&1 | $GREP 'GNU' > /dev
/null
; then
10297 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'
10299 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'
10301 aix_use_runtimelinking
=no
10303 # Test if we are trying to use run time linking or normal
10304 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10305 # need to do runtime linking.
10306 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
10307 for ld_flag
in $LDFLAGS; do
10308 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10309 aix_use_runtimelinking
=yes
10316 exp_sym_flag
='-bexport'
10317 no_entry_flag
='-bnoentry'
10320 # When large executables or shared objects are built, AIX ld can
10321 # have problems creating the table of contents. If linking a library
10322 # or program results in "error TOC overflow" add -mminimal-toc to
10323 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10324 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10327 hardcode_direct
=yes
10328 hardcode_direct_absolute
=yes
10329 hardcode_libdir_separator
=':'
10330 link_all_deplibs
=yes
10331 file_list_spec
='${wl}-f,'
10333 if test "$GCC" = yes; then
10334 case $host_os in aix4.
[012]|aix4.
[012].
*)
10335 # We only want to do this on AIX 4.2 and lower, the check
10336 # below for broken collect2 doesn't work under 4.3+
10337 collect2name
=`${CC} -print-prog-name=collect2`
10338 if test -f "$collect2name" &&
10339 strings "$collect2name" | $GREP resolve_lib_name
>/dev
/null
10341 # We have reworked collect2
10344 # We have old collect2
10345 hardcode_direct
=unsupported
10346 # It fails to find uninstalled libraries when the uninstalled
10347 # path is not listed in the libpath. Setting hardcode_minus_L
10348 # to unsupported forces relinking
10349 hardcode_minus_L
=yes
10350 hardcode_libdir_flag_spec
='-L$libdir'
10351 hardcode_libdir_separator
=
10355 shared_flag
='-shared'
10356 if test "$aix_use_runtimelinking" = yes; then
10357 shared_flag
="$shared_flag "'${wl}-G'
10361 if test "$host_cpu" = ia64
; then
10362 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10363 # chokes on -Wl,-G. The following line is correct:
10366 if test "$aix_use_runtimelinking" = yes; then
10367 shared_flag
='${wl}-G'
10369 shared_flag
='${wl}-bM:SRE'
10374 export_dynamic_flag_spec
='${wl}-bexpall'
10375 # It seems that -bexpall does not export symbols beginning with
10376 # underscore (_), so it is better to generate a list of symbols to export.
10377 always_export_symbols
=yes
10378 if test "$aix_use_runtimelinking" = yes; then
10379 # Warning - without using the other runtime loading flags (-brtl),
10380 # -berok will link without error, but may produce a broken library.
10381 allow_undefined_flag
='-berok'
10382 # Determine the default libpath from the value encoded in an
10383 # empty executable.
10384 if test "${lt_cv_aix_libpath+set}" = set; then
10385 aix_libpath
=$lt_cv_aix_libpath
10387 if ${lt_cv_aix_libpath_+:} false
; then :
10388 $as_echo_n "(cached) " >&6
10390 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10391 /* end confdefs.h. */
10401 if ac_fn_c_try_link
"$LINENO"; then :
10403 lt_aix_libpath_sed
='
10404 /Import File Strings/,/^$/ {
10406 s/^0 *\([^ ]*\) *$/\1/
10410 lt_cv_aix_libpath_
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10411 # Check for a 64-bit object if we didn't find anything.
10412 if test -z "$lt_cv_aix_libpath_"; then
10413 lt_cv_aix_libpath_
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10416 rm -f core conftest.err conftest.
$ac_objext \
10417 conftest
$ac_exeext conftest.
$ac_ext
10418 if test -z "$lt_cv_aix_libpath_"; then
10419 lt_cv_aix_libpath_
="/usr/lib:/lib"
10424 aix_libpath
=$lt_cv_aix_libpath_
10427 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
10428 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"
10430 if test "$host_cpu" = ia64
; then
10431 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
10432 allow_undefined_flag
="-z nodefs"
10433 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"
10435 # Determine the default libpath from the value encoded in an
10436 # empty executable.
10437 if test "${lt_cv_aix_libpath+set}" = set; then
10438 aix_libpath
=$lt_cv_aix_libpath
10440 if ${lt_cv_aix_libpath_+:} false
; then :
10441 $as_echo_n "(cached) " >&6
10443 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10444 /* end confdefs.h. */
10454 if ac_fn_c_try_link
"$LINENO"; then :
10456 lt_aix_libpath_sed
='
10457 /Import File Strings/,/^$/ {
10459 s/^0 *\([^ ]*\) *$/\1/
10463 lt_cv_aix_libpath_
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10464 # Check for a 64-bit object if we didn't find anything.
10465 if test -z "$lt_cv_aix_libpath_"; then
10466 lt_cv_aix_libpath_
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10469 rm -f core conftest.err conftest.
$ac_objext \
10470 conftest
$ac_exeext conftest.
$ac_ext
10471 if test -z "$lt_cv_aix_libpath_"; then
10472 lt_cv_aix_libpath_
="/usr/lib:/lib"
10477 aix_libpath
=$lt_cv_aix_libpath_
10480 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
10481 # Warning - without using the other run time loading flags,
10482 # -berok will link without error, but may produce a broken library.
10483 no_undefined_flag
=' ${wl}-bernotok'
10484 allow_undefined_flag
=' ${wl}-berok'
10485 if test "$with_gnu_ld" = yes; then
10486 # We only use this code for GNU lds that support --whole-archive.
10487 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10489 # Exported symbols can be pulled into shared objects from archives
10490 whole_archive_flag_spec
='$convenience'
10492 archive_cmds_need_lc
=yes
10493 # This is similar to how AIX traditionally builds its shared libraries.
10494 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'
10502 # see comment about AmigaOS4 .so support
10503 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10504 archive_expsym_cmds
=''
10507 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)'
10508 hardcode_libdir_flag_spec
='-L$libdir'
10509 hardcode_minus_L
=yes
10515 export_dynamic_flag_spec
=-rdynamic
10518 cygwin
* | mingw
* | pw32
* | cegcc
*)
10519 # When not using gcc, we currently assume that we are using
10520 # Microsoft Visual C++.
10521 # hardcode_libdir_flag_spec is actually meaningless, as there is
10522 # no search path for DLLs.
10523 case $cc_basename in
10526 hardcode_libdir_flag_spec
=' '
10527 allow_undefined_flag
=unsupported
10528 always_export_symbols
=yes
10530 # Tell ltmain to make .lib files, not .a files.
10532 # Tell ltmain to make .dll files, not .so files.
10534 # FIXME: Setting linknames here is a bad hack.
10535 archive_cmds
='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10536 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10537 sed -n -e 's
/\\\\\\\
(.
*\\\\\\\
)/-link\\\
-EXPORT:\\\\\\\
1/' -e '1\\\
!p
' < $export_symbols > $output_objdir/$soname.exp;
10539 sed -e 's
/\\\\\\\
(.
*\\\\\\\
)/-link\\\
-EXPORT:\\\\\\\
1/' < $export_symbols > $output_objdir/$soname.exp;
10541 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10543 # The linker will not automatically build a static lib if we build a DLL.
10544 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10545 enable_shared_with_static_runtimes
=yes
10546 exclude_expsyms
='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10547 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10549 old_postinstall_cmds
='chmod 644 $oldlib'
10550 postlink_cmds
='lt_outputfile="@OUTPUT@"~
10551 lt_tool_outputfile="@TOOL_OUTPUT@"~
10552 case $lt_outputfile in
10555 lt_outputfile="$lt_outputfile.exe"
10556 lt_tool_outputfile="$lt_tool_outputfile.exe"
10559 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10560 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10561 $RM "$lt_outputfile.manifest";
10565 # Assume MSVC wrapper
10566 hardcode_libdir_flag_spec
=' '
10567 allow_undefined_flag
=unsupported
10568 # Tell ltmain to make .lib files, not .a files.
10570 # Tell ltmain to make .dll files, not .so files.
10572 # FIXME: Setting linknames here is a bad hack.
10573 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10574 # The linker will automatically build a .lib file if we build a DLL.
10575 old_archive_from_new_cmds
='true'
10576 # FIXME: Should let the user specify the lib program.
10577 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
10578 enable_shared_with_static_runtimes
=yes
10583 darwin
* | rhapsody
*)
10586 archive_cmds_need_lc
=no
10588 hardcode_automatic
=yes
10589 hardcode_shlibpath_var
=unsupported
10590 if test "$lt_cv_ld_force_load" = "yes"; then
10591 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\"`'
10594 whole_archive_flag_spec
=''
10596 link_all_deplibs
=yes
10597 allow_undefined_flag
="$_lt_dar_allow_undefined"
10598 case $cc_basename in
10599 ifort
*) _lt_dar_can_shared
=yes ;;
10600 *) _lt_dar_can_shared
=$GCC ;;
10602 if test "$_lt_dar_can_shared" = "yes"; then
10603 output_verbose_link_cmd
=func_echo_all
10604 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10605 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10606 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}"
10607 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}"
10616 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10617 hardcode_libdir_flag_spec
='-L$libdir'
10618 hardcode_shlibpath_var
=no
10621 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10622 # support. Future versions do this automatically, but an explicit c++rt0.o
10623 # does not break anything, and helps significantly (at the cost of a little
10626 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10627 hardcode_libdir_flag_spec
='-R$libdir'
10628 hardcode_direct
=yes
10629 hardcode_shlibpath_var
=no
10632 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10634 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10635 hardcode_direct
=yes
10636 hardcode_minus_L
=yes
10637 hardcode_shlibpath_var
=no
10640 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10641 freebsd
* | dragonfly
*)
10642 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10643 hardcode_libdir_flag_spec
='-R$libdir'
10644 hardcode_direct
=yes
10645 hardcode_shlibpath_var
=no
10649 if test "$GCC" = yes; then
10650 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'
10652 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'
10654 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
10655 hardcode_libdir_separator
=:
10656 hardcode_direct
=yes
10658 # hardcode_minus_L: Not really in the search PATH,
10659 # but as the default location of the library.
10660 hardcode_minus_L
=yes
10661 export_dynamic_flag_spec
='${wl}-E'
10665 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
10666 archive_cmds
='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10668 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10670 if test "$with_gnu_ld" = no
; then
10671 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
10672 hardcode_libdir_separator
=:
10673 hardcode_direct
=yes
10674 hardcode_direct_absolute
=yes
10675 export_dynamic_flag_spec
='${wl}-E'
10676 # hardcode_minus_L: Not really in the search PATH,
10677 # but as the default location of the library.
10678 hardcode_minus_L
=yes
10683 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
10686 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10689 archive_cmds
='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10692 archive_cmds
='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10698 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10701 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10705 # Older versions of the 11.00 compiler do not understand -b yet
10706 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10708 $as_echo_n "checking if $CC understands -b... " >&6; }
10709 if ${lt_cv_prog_compiler__b+:} false
; then :
10710 $as_echo_n "(cached) " >&6
10712 lt_cv_prog_compiler__b
=no
10713 save_LDFLAGS
="$LDFLAGS"
10714 LDFLAGS
="$LDFLAGS -b"
10715 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
10716 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
10717 # The linker can only warn and ignore the option if not recognized
10718 # So say no if there are warnings
10719 if test -s conftest.err
; then
10720 # Append any errors to the config.log.
10721 cat conftest.err
1>&5
10722 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10723 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
10724 if diff conftest.exp conftest.er2
>/dev
/null
; then
10725 lt_cv_prog_compiler__b
=yes
10728 lt_cv_prog_compiler__b
=yes
10732 LDFLAGS
="$save_LDFLAGS"
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10736 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10738 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
10739 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10741 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10747 if test "$with_gnu_ld" = no
; then
10748 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
10749 hardcode_libdir_separator
=:
10754 hardcode_shlibpath_var
=no
10757 hardcode_direct
=yes
10758 hardcode_direct_absolute
=yes
10759 export_dynamic_flag_spec
='${wl}-E'
10761 # hardcode_minus_L: Not really in the search PATH,
10762 # but as the default location of the library.
10763 hardcode_minus_L
=yes
10769 irix5
* | irix6
* | nonstopux
*)
10770 if test "$GCC" = yes; then
10771 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'
10772 # Try to use the -exported_symbol ld option, if it does not
10773 # work, assume that -exports_file does not work either and
10774 # implicitly export all symbols.
10775 # This should be the same for all languages, so no per-tag cache variable.
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10777 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10778 if ${lt_cv_irix_exported_symbol+:} false
; then :
10779 $as_echo_n "(cached) " >&6
10781 save_LDFLAGS
="$LDFLAGS"
10782 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10783 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10784 /* end confdefs.h. */
10785 int foo (void) { return 0; }
10787 if ac_fn_c_try_link
"$LINENO"; then :
10788 lt_cv_irix_exported_symbol
=yes
10790 lt_cv_irix_exported_symbol
=no
10792 rm -f core conftest.err conftest.
$ac_objext \
10793 conftest
$ac_exeext conftest.
$ac_ext
10794 LDFLAGS
="$save_LDFLAGS"
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10797 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10798 if test "$lt_cv_irix_exported_symbol" = yes; then
10799 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'
10802 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'
10803 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'
10805 archive_cmds_need_lc
='no'
10806 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10807 hardcode_libdir_separator
=:
10809 link_all_deplibs
=yes
10813 if echo __ELF__
| $CC -E - | $GREP __ELF__
>/dev
/null
; then
10814 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10816 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10818 hardcode_libdir_flag_spec
='-R$libdir'
10819 hardcode_direct
=yes
10820 hardcode_shlibpath_var
=no
10824 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10825 hardcode_direct
=yes
10826 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10827 hardcode_libdir_separator
=:
10828 hardcode_shlibpath_var
=no
10835 if test -f /usr
/libexec
/ld.so
; then
10836 hardcode_direct
=yes
10837 hardcode_shlibpath_var
=no
10838 hardcode_direct_absolute
=yes
10839 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10840 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10841 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10842 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
10843 export_dynamic_flag_spec
='${wl}-E'
10846 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
10847 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10848 hardcode_libdir_flag_spec
='-R$libdir'
10851 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10852 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
10862 hardcode_libdir_flag_spec
='-L$libdir'
10863 hardcode_minus_L
=yes
10864 allow_undefined_flag
=unsupported
10865 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'
10866 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10870 if test "$GCC" = yes; then
10871 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
10872 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'
10874 allow_undefined_flag
=' -expect_unresolved \*'
10875 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'
10877 archive_cmds_need_lc
='no'
10878 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10879 hardcode_libdir_separator
=:
10882 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
10883 if test "$GCC" = yes; then
10884 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
10885 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'
10886 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10888 allow_undefined_flag
=' -expect_unresolved \*'
10889 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'
10890 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~
10891 $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'
10893 # Both c and cxx compiler support -rpath directly
10894 hardcode_libdir_flag_spec
='-rpath $libdir'
10896 archive_cmds_need_lc
='no'
10897 hardcode_libdir_separator
=:
10901 no_undefined_flag
=' -z defs'
10902 if test "$GCC" = yes; then
10904 archive_cmds
='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10905 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10906 $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'
10908 case `$CC -V 2>&1` in
10911 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10912 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10913 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10917 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10918 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10919 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10923 hardcode_libdir_flag_spec
='-R$libdir'
10924 hardcode_shlibpath_var
=no
10926 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
10928 # The compiler driver will combine and reorder linker options,
10929 # but understands `-z linker_flag'. GCC discards it without `$wl',
10930 # but is careful enough not to reorder.
10931 # Supported since Solaris 2.6 (maybe 2.5.1?)
10932 if test "$GCC" = yes; then
10933 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10935 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
10939 link_all_deplibs
=yes
10943 if test "x$host_vendor" = xsequent
; then
10944 # Use $CC to link under sequent, because it throws in some extra .o
10945 # files that make .init and .fini sections work.
10946 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10948 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10950 hardcode_libdir_flag_spec
='-L$libdir'
10951 hardcode_direct
=yes
10952 hardcode_minus_L
=yes
10953 hardcode_shlibpath_var
=no
10957 case $host_vendor in
10959 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10960 hardcode_direct
=yes # is this really true???
10963 ## LD is ld it makes a PLAMLIB
10964 ## CC just makes a GrossModule.
10965 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10966 reload_cmds
='$CC -r -o $output$reload_objs'
10970 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10971 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
10974 runpath_var
='LD_RUN_PATH'
10975 hardcode_shlibpath_var
=no
10979 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10980 hardcode_shlibpath_var
=no
10981 export_dynamic_flag_spec
='-Bexport'
10985 if test -d /usr
/nec
; then
10986 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10987 hardcode_shlibpath_var
=no
10988 runpath_var
=LD_RUN_PATH
10989 hardcode_runpath_var
=yes
10994 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
10995 no_undefined_flag
='${wl}-z,text'
10996 archive_cmds_need_lc
=no
10997 hardcode_shlibpath_var
=no
10998 runpath_var
='LD_RUN_PATH'
11000 if test "$GCC" = yes; then
11001 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11002 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11004 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11005 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11009 sysv5
* | sco3.2v5
* | sco5v6
*)
11010 # Note: We can NOT use -z defs as we might desire, because we do not
11011 # link with -lc, and that would cause any symbols used from libc to
11012 # always be unresolved, which means just about no library would
11013 # ever link correctly. If we're not using GNU ld we use -z text
11014 # though, which does catch some bad symbols but isn't as heavy-handed
11016 no_undefined_flag
='${wl}-z,text'
11017 allow_undefined_flag
='${wl}-z,nodefs'
11018 archive_cmds_need_lc
=no
11019 hardcode_shlibpath_var
=no
11020 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
11021 hardcode_libdir_separator
=':'
11022 link_all_deplibs
=yes
11023 export_dynamic_flag_spec
='${wl}-Bexport'
11024 runpath_var
='LD_RUN_PATH'
11026 if test "$GCC" = yes; then
11027 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11028 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11030 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11031 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11036 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11037 hardcode_libdir_flag_spec
='-L$libdir'
11038 hardcode_shlibpath_var
=no
11046 if test x
$host_vendor = xsni
; then
11048 sysv4
| sysv4.2uw2
* | sysv4.3
* | sysv5
*)
11049 export_dynamic_flag_spec
='${wl}-Blargedynsym'
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11056 $as_echo "$ld_shlibs" >&6; }
11057 test "$ld_shlibs" = no
&& can_build_shared
=no
11059 with_gnu_ld
=$with_gnu_ld
11076 # Do we need to explicitly link libc?
11078 case "x$archive_cmds_need_lc" in
11080 # Assume -lc should be added
11081 archive_cmds_need_lc
=yes
11083 if test "$enable_shared" = yes && test "$GCC" = yes; then
11084 case $archive_cmds in
11086 # FIXME: we may have to deal with multi-command sequences.
11089 # Test whether the compiler implicitly links with -lc since on some
11090 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11091 # to ld, don't add -lc before -lgcc.
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11093 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11094 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
11095 $as_echo_n "(cached) " >&6
11098 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
11100 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11101 (eval $ac_compile) 2>&5
11103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11104 test $ac_status = 0; } 2>conftest.err
; then
11107 libobjs
=conftest.
$ac_objext
11109 wl
=$lt_prog_compiler_wl
11110 pic_flag
=$lt_prog_compiler_pic
11116 lt_save_allow_undefined_flag
=$allow_undefined_flag
11117 allow_undefined_flag
=
11118 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11119 (eval $archive_cmds 2\
>\
&1 \
| $GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
11121 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11122 test $ac_status = 0; }
11124 lt_cv_archive_cmds_need_lc
=no
11126 lt_cv_archive_cmds_need_lc
=yes
11128 allow_undefined_flag
=$lt_save_allow_undefined_flag
11130 cat conftest.err
1>&5
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11136 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11137 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
11295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11296 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11298 if test "$GCC" = yes; then
11300 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
11301 *) lt_awk_arg
="/^libraries:/" ;;
11304 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
11305 *) lt_sed_strip_eq
="s,=/,/,g" ;;
11307 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11308 case $lt_search_path_spec in
11310 # if the path contains ";" then we assume it to be the separator
11311 # otherwise default to the standard path separator (i.e. ":") - it is
11312 # assumed that no part of a normal pathname contains ";" but that should
11313 # okay in the real world where ";" in dirpaths is itself problematic.
11314 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11317 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11320 # Ok, now we have the path, separated by spaces, we can step through it
11321 # and add multilib dir if necessary.
11322 lt_tmp_lt_search_path_spec
=
11323 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11324 for lt_sys_path
in $lt_search_path_spec; do
11325 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11326 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11328 test -d "$lt_sys_path" && \
11329 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
11332 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11333 BEGIN {RS=" "; FS="/|\n";} {
11336 for (lt_i = NF; lt_i > 0; lt_i--) {
11337 if ($lt_i != "" && $lt_i != ".") {
11338 if ($lt_i == "..") {
11341 if (lt_count == 0) {
11342 lt_foo="/" $lt_i lt_foo;
11349 if (lt_foo != "") { lt_freq[lt_foo]++; }
11350 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11352 # AWK program above erroneously prepends '/' to C:/dos/paths
11355 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
11356 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11358 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11360 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
11362 library_names_spec
=
11363 libname_spec
='lib$name'
11367 postuninstall_cmds
=
11371 shlibpath_overrides_runpath
=unknown
11373 dynamic_linker
="$host_os ld.so"
11374 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
11375 need_lib_prefix
=unknown
11376 hardcode_into_libs
=no
11378 # when you set need_version to no, make sure it does not cause -set_version
11379 # flags to be left without arguments
11380 need_version
=unknown
11384 version_type
=linux
# correct to gnu/linux during the next big refactor
11385 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
11386 shlibpath_var
=LIBPATH
11388 # AIX 3 has no versioning support, so we append a major version to the name.
11389 soname_spec
='${libname}${release}${shared_ext}$major'
11393 version_type
=linux
# correct to gnu/linux during the next big refactor
11396 hardcode_into_libs
=yes
11397 if test "$host_cpu" = ia64
; then
11398 # AIX 5 supports IA64
11399 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11400 shlibpath_var
=LD_LIBRARY_PATH
11402 # With GCC up to 2.95.x, collect2 would create an import file
11403 # for dependence libraries. The import file would start with
11404 # the line `#! .'. This would cause the generated library to
11405 # depend on `.', always an invalid library. This was fixed in
11406 # development snapshots of GCC prior to 3.0.
11408 aix4
| aix4.
[01] | aix4.
[01].
*)
11409 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11411 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev
/null
; then
11414 can_build_shared
=no
11418 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11419 # soname into executable. Probably we can add versioning support to
11420 # collect2, so additional links can be useful in future.
11421 if test "$aix_use_runtimelinking" = yes; then
11422 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11423 # instead of lib<name>.a to let people know that these are not
11424 # typical AIX shared libraries.
11425 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11427 # We preserve .a as extension for shared libraries through AIX4.2
11428 # and later when we are not doing run time linking.
11429 library_names_spec
='${libname}${release}.a $libname.a'
11430 soname_spec
='${libname}${release}${shared_ext}$major'
11432 shlibpath_var
=LIBPATH
11439 # Since July 2007 AmigaOS4 officially supports .so libraries.
11440 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11441 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11444 library_names_spec
='$libname.ixlibrary $libname.a'
11445 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11446 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'
11452 library_names_spec
='${libname}${shared_ext}'
11453 dynamic_linker
="$host_os ld.so"
11454 shlibpath_var
=LIBRARY_PATH
11458 version_type
=linux
# correct to gnu/linux during the next big refactor
11460 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11461 soname_spec
='${libname}${release}${shared_ext}$major'
11462 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
11463 shlibpath_var
=LD_LIBRARY_PATH
11464 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11465 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
11466 # the default ld.so.conf also contains /usr/contrib/lib and
11467 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11468 # libtool to hard-code these into programs
11471 cygwin
* | mingw
* | pw32
* | cegcc
*)
11472 version_type
=windows
11477 case $GCC,$cc_basename in
11480 library_names_spec
='$libname.dll.a'
11481 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11482 postinstall_cmds
='base_file=`basename \${file}`~
11483 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11484 dldir=$destdir/`dirname \$dlpath`~
11485 test -d \$dldir || mkdir -p \$dldir~
11486 $install_prog $dir/$dlname \$dldir/$dlname~
11487 chmod a+x \$dldir/$dlname~
11488 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11489 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11491 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11492 dlpath=$dir/\$dldll~
11494 shlibpath_overrides_runpath
=yes
11498 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11499 soname_spec
='`echo ${libname} | sed -e 's
/^lib
/cyg
/'``echo ${release} | $SED -e 's
/[.
]/-/g
'`${versuffix}${shared_ext}'
11501 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
11504 # MinGW DLLs use traditional 'lib' prefix
11505 soname_spec
='${libname}`echo ${release} | $SED -e 's
/[.
]/-/g
'`${versuffix}${shared_ext}'
11508 # pw32 DLLs use 'pw' prefix rather than 'lib'
11509 library_names_spec
='`echo ${libname} | sed -e 's
/^lib
/pw
/'``echo ${release} | $SED -e 's
/[.
]/-/g
'`${versuffix}${shared_ext}'
11512 dynamic_linker
='Win32 ld.exe'
11517 libname_spec
='$name'
11518 soname_spec
='${libname}`echo ${release} | $SED -e 's
/[.
]/-/g
'`${versuffix}${shared_ext}'
11519 library_names_spec
='${libname}.dll.lib'
11523 sys_lib_search_path_spec
=
11526 for lt_path
in $LIB
11529 # Let DOS variable expansion print the short 8.3 style file name.
11530 lt_path
=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11531 sys_lib_search_path_spec
="$sys_lib_search_path_spec $lt_path"
11534 # Convert to MSYS style.
11535 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11538 # Convert to unix form, then to dos form, then back to unix form
11539 # but this time dos style (no spaces!) so that the unix form looks
11540 # like /cygdrive/c/PROGRA~1:/cygdr...
11541 sys_lib_search_path_spec
=`cygpath --path --unix "$LIB"`
11542 sys_lib_search_path_spec
=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11543 sys_lib_search_path_spec
=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11546 sys_lib_search_path_spec
="$LIB"
11547 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev
/null
; then
11548 # It is most probably a Windows format PATH.
11549 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11551 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11553 # FIXME: find the short name or the path components, as spaces are
11554 # common. (e.g. "Program Files" -> "PROGRA~1")
11558 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11559 postinstall_cmds
='base_file=`basename \${file}`~
11560 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11561 dldir=$destdir/`dirname \$dlpath`~
11562 test -d \$dldir || mkdir -p \$dldir~
11563 $install_prog $dir/$dlname \$dldir/$dlname'
11564 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11565 dlpath=$dir/\$dldll~
11567 shlibpath_overrides_runpath
=yes
11568 dynamic_linker
='Win32 link.exe'
11572 # Assume MSVC wrapper
11573 library_names_spec
='${libname}`echo ${release} | $SED -e 's
/[.
]/-/g
'`${versuffix}${shared_ext} $libname.lib'
11574 dynamic_linker
='Win32 ld.exe'
11577 # FIXME: first we should search . and the directory the executable is in
11581 darwin
* | rhapsody
*)
11582 dynamic_linker
="$host_os dyld"
11583 version_type
=darwin
11586 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11587 soname_spec
='${libname}${release}${major}$shared_ext'
11588 shlibpath_overrides_runpath
=yes
11589 shlibpath_var
=DYLD_LIBRARY_PATH
11590 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
11592 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
11593 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
11597 version_type
=linux
# correct to gnu/linux during the next big refactor
11600 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11601 soname_spec
='${libname}${release}${shared_ext}$major'
11602 shlibpath_var
=LD_LIBRARY_PATH
11605 freebsd
* | dragonfly
*)
11606 # DragonFly does not have aout. When/if they implement a new
11607 # versioning mechanism, adjust this.
11608 if test -x /usr
/bin
/objformat
; then
11609 objformat
=`/usr/bin/objformat`
11612 freebsd
[23].
*) objformat
=aout
;;
11613 *) objformat
=elf
;;
11616 version_type
=freebsd
-$objformat
11617 case $version_type in
11619 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11624 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11628 shlibpath_var
=LD_LIBRARY_PATH
11631 shlibpath_overrides_runpath
=yes
11633 freebsd3.
[01]* | freebsdelf3.
[01]*)
11634 shlibpath_overrides_runpath
=yes
11635 hardcode_into_libs
=yes
11637 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
11638 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
11639 shlibpath_overrides_runpath
=no
11640 hardcode_into_libs
=yes
11642 *) # from 4.6 on, and DragonFly
11643 shlibpath_overrides_runpath
=yes
11644 hardcode_into_libs
=yes
11650 version_type
=linux
# correct to gnu/linux during the next big refactor
11653 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11654 soname_spec
='${libname}${release}${shared_ext}$major'
11655 shlibpath_var
=LD_LIBRARY_PATH
11656 shlibpath_overrides_runpath
=no
11657 hardcode_into_libs
=yes
11661 version_type
=linux
# correct to gnu/linux during the next big refactor
11664 dynamic_linker
="$host_os runtime_loader"
11665 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11666 soname_spec
='${libname}${release}${shared_ext}$major'
11667 shlibpath_var
=LIBRARY_PATH
11668 shlibpath_overrides_runpath
=yes
11669 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11670 hardcode_into_libs
=yes
11673 hpux9
* | hpux10
* | hpux11
*)
11674 # Give a soname corresponding to the major version so that dld.sl refuses to
11675 # link against other versions.
11682 hardcode_into_libs
=yes
11683 dynamic_linker
="$host_os dld.so"
11684 shlibpath_var
=LD_LIBRARY_PATH
11685 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
11686 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11687 soname_spec
='${libname}${release}${shared_ext}$major'
11688 if test "X$HPUX_IA64_MODE" = X32
; then
11689 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11691 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
11693 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
11697 hardcode_into_libs
=yes
11698 dynamic_linker
="$host_os dld.sl"
11699 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
11700 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
11701 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11702 soname_spec
='${libname}${release}${shared_ext}$major'
11703 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11704 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
11708 dynamic_linker
="$host_os dld.sl"
11709 shlibpath_var
=SHLIB_PATH
11710 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
11711 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11712 soname_spec
='${libname}${release}${shared_ext}$major'
11715 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11716 postinstall_cmds
='chmod 555 $lib'
11717 # or fails outright, so override atomically:
11718 install_override_mode
=555
11722 version_type
=linux
# correct to gnu/linux during the next big refactor
11725 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11726 soname_spec
='${libname}${release}${shared_ext}$major'
11727 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
11728 shlibpath_var
=LD_LIBRARY_PATH
11729 shlibpath_overrides_runpath
=no
11730 hardcode_into_libs
=yes
11733 irix5
* | irix6
* | nonstopux
*)
11735 nonstopux
*) version_type
=nonstopux
;;
11737 if test "$lt_cv_prog_gnu_ld" = yes; then
11738 version_type
=linux
# correct to gnu/linux during the next big refactor
11745 soname_spec
='${libname}${release}${shared_ext}$major'
11746 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11748 irix5
* | nonstopux
*)
11749 libsuff
= shlibsuff
=
11752 case $LD in # libtool.m4 will add one of these switches to LD
11753 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11754 libsuff
= shlibsuff
= libmagic
=32-bit;;
11755 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11756 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
11757 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11758 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
11759 *) libsuff
= shlibsuff
= libmagic
=never
-match;;
11763 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
11764 shlibpath_overrides_runpath
=no
11765 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11766 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
11767 hardcode_into_libs
=yes
11770 # No shared lib support for Linux oldld, aout, or coff.
11771 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
11775 # This must be glibc/ELF.
11776 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
11777 version_type
=linux
# correct to gnu/linux during the next big refactor
11780 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11781 soname_spec
='${libname}${release}${shared_ext}$major'
11782 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11783 shlibpath_var
=LD_LIBRARY_PATH
11784 shlibpath_overrides_runpath
=no
11786 # Some binutils ld are patched to set DT_RUNPATH
11787 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
11788 $as_echo_n "(cached) " >&6
11790 lt_cv_shlibpath_overrides_runpath
=no
11791 save_LDFLAGS
=$LDFLAGS
11792 save_libdir
=$libdir
11793 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11794 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11795 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11796 /* end confdefs.h. */
11806 if ac_fn_c_try_link
"$LINENO"; then :
11807 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null
| grep "RUNPATH.*$libdir" >/dev
/null
; then :
11808 lt_cv_shlibpath_overrides_runpath
=yes
11811 rm -f core conftest.err conftest.
$ac_objext \
11812 conftest
$ac_exeext conftest.
$ac_ext
11813 LDFLAGS
=$save_LDFLAGS
11814 libdir
=$save_libdir
11818 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
11820 # This implies no fast_install, which is unacceptable.
11821 # Some rework will be needed to allow for fast_install
11822 # before this can be enabled.
11823 hardcode_into_libs
=yes
11825 # Append ld.so.conf contents to the search path
11826 if test -f /etc
/ld.so.conf
; then
11827 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' ' '`
11828 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
11831 # We used to test for /lib/ld.so.1 and disable shared libraries on
11832 # powerpc, because MkLinux only supported shared libraries with the
11833 # GNU dynamic linker. Since this was broken with cross compilers,
11834 # most powerpc-linux boxes support dynamic linking these days and
11835 # people can always --disable-shared, the test was removed, and we
11836 # assume the GNU/Linux dynamic linker is in use.
11837 dynamic_linker
='GNU/Linux ld.so'
11844 if echo __ELF__
| $CC -E - | $GREP __ELF__
>/dev
/null
; then
11845 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11846 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11847 dynamic_linker
='NetBSD (a.out) ld.so'
11849 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11850 soname_spec
='${libname}${release}${shared_ext}$major'
11851 dynamic_linker
='NetBSD ld.elf_so'
11853 shlibpath_var
=LD_LIBRARY_PATH
11854 shlibpath_overrides_runpath
=yes
11855 hardcode_into_libs
=yes
11859 version_type
=linux
# correct to gnu/linux during the next big refactor
11860 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11861 shlibpath_var
=LD_LIBRARY_PATH
11862 shlibpath_overrides_runpath
=yes
11869 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11870 soname_spec
='${libname}${release}${shared_ext}$major'
11871 shlibpath_var
=LD_LIBRARY_PATH
11872 shlibpath_overrides_runpath
=no
11873 hardcode_into_libs
=yes
11874 dynamic_linker
='ldqnx.so'
11879 sys_lib_dlsearch_path_spec
="/usr/lib"
11881 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11883 openbsd3.3
| openbsd3.3.
*) need_version
=yes ;;
11884 *) need_version
=no
;;
11886 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11887 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11888 shlibpath_var
=LD_LIBRARY_PATH
11889 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11891 openbsd2.
[89] | openbsd2.
[89].
*)
11892 shlibpath_overrides_runpath
=no
11895 shlibpath_overrides_runpath
=yes
11899 shlibpath_overrides_runpath
=yes
11904 libname_spec
='$name'
11907 library_names_spec
='$libname${shared_ext} $libname.a'
11908 dynamic_linker
='OS/2 ld.exe'
11909 shlibpath_var
=LIBPATH
11912 osf3
* | osf4
* | osf5
*)
11916 soname_spec
='${libname}${release}${shared_ext}$major'
11917 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11918 shlibpath_var
=LD_LIBRARY_PATH
11919 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11920 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
11928 version_type
=linux
# correct to gnu/linux during the next big refactor
11931 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11932 soname_spec
='${libname}${release}${shared_ext}$major'
11933 shlibpath_var
=LD_LIBRARY_PATH
11934 shlibpath_overrides_runpath
=yes
11935 hardcode_into_libs
=yes
11936 # ldd complains unless libraries are executable
11937 postinstall_cmds
='chmod +x $lib'
11942 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11943 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11944 shlibpath_var
=LD_LIBRARY_PATH
11945 shlibpath_overrides_runpath
=yes
11946 if test "$with_gnu_ld" = yes; then
11953 version_type
=linux
# correct to gnu/linux during the next big refactor
11954 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11955 soname_spec
='${libname}${release}${shared_ext}$major'
11956 shlibpath_var
=LD_LIBRARY_PATH
11957 case $host_vendor in
11959 shlibpath_overrides_runpath
=no
11961 runpath_var
=LD_RUN_PATH
11969 shlibpath_overrides_runpath
=no
11970 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
11976 if test -d /usr
/nec
;then
11977 version_type
=linux
# correct to gnu/linux during the next big refactor
11978 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11979 soname_spec
='$libname${shared_ext}.$major'
11980 shlibpath_var
=LD_LIBRARY_PATH
11984 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
11985 version_type
=freebsd
-elf
11988 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11989 soname_spec
='${libname}${release}${shared_ext}$major'
11990 shlibpath_var
=LD_LIBRARY_PATH
11991 shlibpath_overrides_runpath
=yes
11992 hardcode_into_libs
=yes
11993 if test "$with_gnu_ld" = yes; then
11994 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11996 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
11999 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
12003 sys_lib_dlsearch_path_spec
='/usr/lib'
12007 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12008 version_type
=linux
# correct to gnu/linux during the next big refactor
12011 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12012 shlibpath_var
=LD_LIBRARY_PATH
12013 shlibpath_overrides_runpath
=no
12014 hardcode_into_libs
=yes
12018 version_type
=linux
# correct to gnu/linux during the next big refactor
12019 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12020 soname_spec
='${libname}${release}${shared_ext}$major'
12021 shlibpath_var
=LD_LIBRARY_PATH
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12029 $as_echo "$dynamic_linker" >&6; }
12030 test "$dynamic_linker" = no
&& can_build_shared
=no
12032 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
12033 if test "$GCC" = yes; then
12034 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12037 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12038 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
12040 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12041 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
12135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12136 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12138 if test -n "$hardcode_libdir_flag_spec" ||
12139 test -n "$runpath_var" ||
12140 test "X$hardcode_automatic" = "Xyes" ; then
12142 # We can hardcode non-existent directories.
12143 if test "$hardcode_direct" != no
&&
12144 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12145 # have to relink, otherwise we might link with an installed library
12146 # when we should be linking with a yet-to-be-installed one
12147 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12148 test "$hardcode_minus_L" != no
; then
12149 # Linking always hardcodes the temporary library directory.
12150 hardcode_action
=relink
12152 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12153 hardcode_action
=immediate
12156 # We cannot hardcode anything, or else we can only hardcode existing
12158 hardcode_action
=unsupported
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12161 $as_echo "$hardcode_action" >&6; }
12163 if test "$hardcode_action" = relink
||
12164 test "$inherit_rpath" = yes; then
12165 # Fast installation is not supported
12166 enable_fast_install
=no
12167 elif test "$shlibpath_overrides_runpath" = yes ||
12168 test "$enable_shared" = no
; then
12169 # Fast installation is not necessary
12170 enable_fast_install
=needless
12178 if test "x$enable_dlopen" != xyes
; then
12179 enable_dlopen
=unknown
12180 enable_dlopen_self
=unknown
12181 enable_dlopen_self_static
=unknown
12188 lt_cv_dlopen
="load_add_on"
12190 lt_cv_dlopen_self
=yes
12193 mingw
* | pw32
* | cegcc
*)
12194 lt_cv_dlopen
="LoadLibrary"
12199 lt_cv_dlopen
="dlopen"
12204 # if libdl is installed we need to link against it
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12206 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12207 if ${ac_cv_lib_dl_dlopen+:} false
; then :
12208 $as_echo_n "(cached) " >&6
12210 ac_check_lib_save_LIBS
=$LIBS
12212 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12213 /* end confdefs.h. */
12215 /* Override any GCC internal prototype to avoid an error.
12216 Use char because int might match the return type of a GCC
12217 builtin and then its argument prototype would still apply. */
12230 if ac_fn_c_try_link
"$LINENO"; then :
12231 ac_cv_lib_dl_dlopen
=yes
12233 ac_cv_lib_dl_dlopen
=no
12235 rm -f core conftest.err conftest.
$ac_objext \
12236 conftest
$ac_exeext conftest.
$ac_ext
12237 LIBS
=$ac_check_lib_save_LIBS
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12240 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12241 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
12242 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
12245 lt_cv_dlopen
="dyld"
12247 lt_cv_dlopen_self
=yes
12254 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
12255 if test "x$ac_cv_func_shl_load" = xyes
; then :
12256 lt_cv_dlopen
="shl_load"
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12259 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12260 if ${ac_cv_lib_dld_shl_load+:} false
; then :
12261 $as_echo_n "(cached) " >&6
12263 ac_check_lib_save_LIBS
=$LIBS
12265 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12266 /* end confdefs.h. */
12268 /* Override any GCC internal prototype to avoid an error.
12269 Use char because int might match the return type of a GCC
12270 builtin and then its argument prototype would still apply. */
12278 return shl_load ();
12283 if ac_fn_c_try_link
"$LINENO"; then :
12284 ac_cv_lib_dld_shl_load
=yes
12286 ac_cv_lib_dld_shl_load
=no
12288 rm -f core conftest.err conftest.
$ac_objext \
12289 conftest
$ac_exeext conftest.
$ac_ext
12290 LIBS
=$ac_check_lib_save_LIBS
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12293 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12294 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
12295 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
12297 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
12298 if test "x$ac_cv_func_dlopen" = xyes
; then :
12299 lt_cv_dlopen
="dlopen"
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12302 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12303 if ${ac_cv_lib_dl_dlopen+:} false
; then :
12304 $as_echo_n "(cached) " >&6
12306 ac_check_lib_save_LIBS
=$LIBS
12308 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12309 /* end confdefs.h. */
12311 /* Override any GCC internal prototype to avoid an error.
12312 Use char because int might match the return type of a GCC
12313 builtin and then its argument prototype would still apply. */
12326 if ac_fn_c_try_link
"$LINENO"; then :
12327 ac_cv_lib_dl_dlopen
=yes
12329 ac_cv_lib_dl_dlopen
=no
12331 rm -f core conftest.err conftest.
$ac_objext \
12332 conftest
$ac_exeext conftest.
$ac_ext
12333 LIBS
=$ac_check_lib_save_LIBS
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12336 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12337 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
12338 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12341 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12342 if ${ac_cv_lib_svld_dlopen+:} false
; then :
12343 $as_echo_n "(cached) " >&6
12345 ac_check_lib_save_LIBS
=$LIBS
12346 LIBS
="-lsvld $LIBS"
12347 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12348 /* end confdefs.h. */
12350 /* Override any GCC internal prototype to avoid an error.
12351 Use char because int might match the return type of a GCC
12352 builtin and then its argument prototype would still apply. */
12365 if ac_fn_c_try_link
"$LINENO"; then :
12366 ac_cv_lib_svld_dlopen
=yes
12368 ac_cv_lib_svld_dlopen
=no
12370 rm -f core conftest.err conftest.
$ac_objext \
12371 conftest
$ac_exeext conftest.
$ac_ext
12372 LIBS
=$ac_check_lib_save_LIBS
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12375 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12376 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
12377 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12380 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12381 if ${ac_cv_lib_dld_dld_link+:} false
; then :
12382 $as_echo_n "(cached) " >&6
12384 ac_check_lib_save_LIBS
=$LIBS
12386 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12387 /* end confdefs.h. */
12389 /* Override any GCC internal prototype to avoid an error.
12390 Use char because int might match the return type of a GCC
12391 builtin and then its argument prototype would still apply. */
12399 return dld_link ();
12404 if ac_fn_c_try_link
"$LINENO"; then :
12405 ac_cv_lib_dld_dld_link
=yes
12407 ac_cv_lib_dld_dld_link
=no
12409 rm -f core conftest.err conftest.
$ac_objext \
12410 conftest
$ac_exeext conftest.
$ac_ext
12411 LIBS
=$ac_check_lib_save_LIBS
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12414 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12415 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
12416 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
12437 if test "x$lt_cv_dlopen" != xno
; then
12443 case $lt_cv_dlopen in
12445 save_CPPFLAGS
="$CPPFLAGS"
12446 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
12448 save_LDFLAGS
="$LDFLAGS"
12449 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
12452 LIBS
="$lt_cv_dlopen_libs $LIBS"
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12455 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12456 if ${lt_cv_dlopen_self+:} false
; then :
12457 $as_echo_n "(cached) " >&6
12459 if test "$cross_compiling" = yes; then :
12460 lt_cv_dlopen_self
=cross
12462 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
12463 lt_status
=$lt_dlunknown
12464 cat > conftest.
$ac_ext <<_LT_EOF
12465 #line $LINENO "configure"
12466 #include "confdefs.h"
12475 # define LT_DLGLOBAL RTLD_GLOBAL
12478 # define LT_DLGLOBAL DL_GLOBAL
12480 # define LT_DLGLOBAL 0
12484 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12485 find out it does not work in some platform. */
12486 #ifndef LT_DLLAZY_OR_NOW
12488 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12491 # define LT_DLLAZY_OR_NOW DL_LAZY
12494 # define LT_DLLAZY_OR_NOW RTLD_NOW
12497 # define LT_DLLAZY_OR_NOW DL_NOW
12499 # define LT_DLLAZY_OR_NOW 0
12506 /* When -fvisbility=hidden is used, assume the code has been annotated
12507 correspondingly for the symbols needed. */
12508 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12509 int fnord () __attribute__((visibility("default")));
12512 int fnord () { return 42; }
12515 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12516 int status = $lt_dlunknown;
12520 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12523 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12524 else puts (dlerror ());
12526 /* dlclose (self); */
12534 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12535 (eval $ac_link) 2>&5
12537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12538 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
12539 (.
/conftest
; exit; ) >&5 2>/dev
/null
12541 case x
$lt_status in
12542 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
12543 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
12544 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
12547 # compilation failed
12548 lt_cv_dlopen_self
=no
12555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12556 $as_echo "$lt_cv_dlopen_self" >&6; }
12558 if test "x$lt_cv_dlopen_self" = xyes
; then
12559 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12561 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12562 if ${lt_cv_dlopen_self_static+:} false
; then :
12563 $as_echo_n "(cached) " >&6
12565 if test "$cross_compiling" = yes; then :
12566 lt_cv_dlopen_self_static
=cross
12568 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
12569 lt_status
=$lt_dlunknown
12570 cat > conftest.
$ac_ext <<_LT_EOF
12571 #line $LINENO "configure"
12572 #include "confdefs.h"
12581 # define LT_DLGLOBAL RTLD_GLOBAL
12584 # define LT_DLGLOBAL DL_GLOBAL
12586 # define LT_DLGLOBAL 0
12590 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12591 find out it does not work in some platform. */
12592 #ifndef LT_DLLAZY_OR_NOW
12594 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12597 # define LT_DLLAZY_OR_NOW DL_LAZY
12600 # define LT_DLLAZY_OR_NOW RTLD_NOW
12603 # define LT_DLLAZY_OR_NOW DL_NOW
12605 # define LT_DLLAZY_OR_NOW 0
12612 /* When -fvisbility=hidden is used, assume the code has been annotated
12613 correspondingly for the symbols needed. */
12614 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12615 int fnord () __attribute__((visibility("default")));
12618 int fnord () { return 42; }
12621 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12622 int status = $lt_dlunknown;
12626 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12629 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12630 else puts (dlerror ());
12632 /* dlclose (self); */
12640 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12641 (eval $ac_link) 2>&5
12643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12644 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
12645 (.
/conftest
; exit; ) >&5 2>/dev
/null
12647 case x
$lt_status in
12648 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
12649 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
12650 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
12653 # compilation failed
12654 lt_cv_dlopen_self_static
=no
12661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12662 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12665 CPPFLAGS
="$save_CPPFLAGS"
12666 LDFLAGS
="$save_LDFLAGS"
12671 case $lt_cv_dlopen_self in
12672 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
12673 *) enable_dlopen_self
=unknown
;;
12676 case $lt_cv_dlopen_self_static in
12677 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
12678 *) enable_dlopen_self_static
=unknown
;;
12700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12701 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12702 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev
/null
; then
12703 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
12704 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12706 $as_echo "yes" >&6; }
12708 # FIXME - insert some real tests, host_os isn't really good enough
12711 if test -n "$STRIP" ; then
12712 striplib
="$STRIP -x"
12713 old_striplib
="$STRIP -S"
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12715 $as_echo "yes" >&6; }
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12718 $as_echo "no" >&6; }
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12723 $as_echo "no" >&6; }
12739 # Report which library types will actually be built
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12741 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12743 $as_echo "$can_build_shared" >&6; }
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12746 $as_echo_n "checking whether to build shared libraries... " >&6; }
12747 test "$can_build_shared" = "no" && enable_shared
=no
12749 # On AIX, shared libraries and static libraries use the same namespace, and
12750 # are all built from PIC.
12753 test "$enable_shared" = yes && enable_static
=no
12754 if test -n "$RANLIB"; then
12755 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
12756 postinstall_cmds
='$RANLIB $lib'
12761 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
12762 test "$enable_shared" = yes && enable_static
=no
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12767 $as_echo "$enable_shared" >&6; }
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12770 $as_echo_n "checking whether to build static libraries... " >&6; }
12771 # Make sure either enable_shared or enable_static is yes.
12772 test "$enable_shared" = yes || enable_static
=yes
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12774 $as_echo "$enable_static" >&6; }
12781 ac_cpp
='$CPP $CPPFLAGS'
12782 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12783 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12784 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
12802 ac_config_commands
="$ac_config_commands libtool"
12807 # Only expand once:
12811 LIBTOOL
="$LIBTOOL --silent"
12816 cat >>confdefs.h
<<_ACEOF
12821 cat >>confdefs.h
<<_ACEOF
12828 cat >>confdefs.h
<<_ACEOF
12833 cat >>confdefs.h
<<_ACEOF
12837 ac_fn_c_check_header_mongrel
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
12838 if test "x$ac_cv_header_windows_h" = xyes
; then :
12841 as_fn_error $?
"** MinGW and no windows.h. I give up." "$LINENO" 5
12845 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
12846 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
12849 as_fn_error $?
"** MinGW and no winsock2.h. I give up." "$LINENO" 5
12854 cat >>confdefs.h
<<_ACEOF
12855 #define HAVE_WINSOCK2_H 1
12859 cat >>confdefs.h
<<_ACEOF
12860 #define HAVE_WINSOCK_H 1
12863 LIBS
="$LIBS -lws2_32 -liphlpapi"
12867 CPPFLAGS
="$CFLAGS -D_ALL_SOURCE -D_XOPEN_SOURCE=500"
12870 CPPFLAGS
="$CFLAGS -D_POSIX_PTHREAD_SEMANTICS -D_XPG4_2"
12876 if test "$is_mingw" = "yes"; then
12886 # backwards support for IRC_CFLAGS
12887 CFLAGS
="$IRC_CFLAGS $CFLAGS -Wall"
12889 if test "$libexecdir" = '${exec_prefix}/libexec' &&
12890 test "$localstatedir" = '${prefix}/var'; then
12891 libexecdir
='${bindir}'
12892 localstatedir
='${prefix}'
12895 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12896 if test "x$ac_cv_type_pid_t" = xyes
; then :
12900 cat >>confdefs.h
<<_ACEOF
12906 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12907 if test "x$ac_cv_type_size_t" = xyes
; then :
12911 cat >>confdefs.h
<<_ACEOF
12912 #define size_t unsigned int
12917 ac_fn_c_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
12918 if test "x$ac_cv_type_ssize_t" = xyes
; then :
12922 cat >>confdefs.h
<<_ACEOF
12923 #define ssize_t int
12928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
12929 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
12930 if ${ac_cv_type_uid_t+:} false
; then :
12931 $as_echo_n "(cached) " >&6
12933 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12934 /* end confdefs.h. */
12935 #include <sys/types.h>
12938 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12939 $EGREP "uid_t" >/dev
/null
2>&1; then :
12940 ac_cv_type_uid_t
=yes
12942 ac_cv_type_uid_t
=no
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
12948 $as_echo "$ac_cv_type_uid_t" >&6; }
12949 if test $ac_cv_type_uid_t = no
; then
12951 $as_echo "#define uid_t int" >>confdefs.h
12954 $as_echo "#define gid_t int" >>confdefs.h
12960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12961 $as_echo_n "checking for ANSI C header files... " >&6; }
12962 if ${ac_cv_header_stdc+:} false
; then :
12963 $as_echo_n "(cached) " >&6
12965 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12966 /* end confdefs.h. */
12967 #include <stdlib.h>
12968 #include <stdarg.h>
12969 #include <string.h>
12980 if ac_fn_c_try_compile
"$LINENO"; then :
12981 ac_cv_header_stdc
=yes
12983 ac_cv_header_stdc
=no
12985 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12987 if test $ac_cv_header_stdc = yes; then
12988 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12989 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12990 /* end confdefs.h. */
12991 #include <string.h>
12994 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12995 $EGREP "memchr" >/dev
/null
2>&1; then :
12998 ac_cv_header_stdc
=no
13004 if test $ac_cv_header_stdc = yes; then
13005 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
13006 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13007 /* end confdefs.h. */
13008 #include <stdlib.h>
13011 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13012 $EGREP "free" >/dev
/null
2>&1; then :
13015 ac_cv_header_stdc
=no
13021 if test $ac_cv_header_stdc = yes; then
13022 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
13023 if test "$cross_compiling" = yes; then :
13026 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13027 /* end confdefs.h. */
13029 #include <stdlib.h>
13030 #if ((' ' & 0x0FF) == 0x020)
13031 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
13032 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
13034 # define ISLOWER(c) \
13035 (('a' <= (c) && (c) <= 'i') \
13036 || ('j' <= (c) && (c) <= 'r') \
13037 || ('s' <= (c) && (c) <= 'z'))
13038 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
13041 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
13046 for (i = 0; i < 256; i++)
13047 if (XOR (islower (i), ISLOWER (i))
13048 || toupper (i) != TOUPPER (i))
13053 if ac_fn_c_try_run
"$LINENO"; then :
13056 ac_cv_header_stdc
=no
13058 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13059 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
13065 $as_echo "$ac_cv_header_stdc" >&6; }
13066 if test $ac_cv_header_stdc = yes; then
13068 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
13073 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 linux
/tcp.h
13075 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13076 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13077 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
13078 cat >>confdefs.h
<<_ACEOF
13079 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
13087 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
13088 if ${ac_cv_header_time+:} false
; then :
13089 $as_echo_n "(cached) " >&6
13091 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13092 /* end confdefs.h. */
13093 #include <sys/types.h>
13094 #include <sys/time.h>
13100 if ((struct tm *) 0)
13106 if ac_fn_c_try_compile
"$LINENO"; then :
13107 ac_cv_header_time
=yes
13109 ac_cv_header_time
=no
13111 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
13114 $as_echo "$ac_cv_header_time" >&6; }
13115 if test $ac_cv_header_time = yes; then
13117 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
13124 $as_echo_n "checking for library containing socket... " >&6; }
13125 if ${ac_cv_search_socket+:} false
; then :
13126 $as_echo_n "(cached) " >&6
13128 ac_func_search_save_LIBS
=$LIBS
13129 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13130 /* end confdefs.h. */
13132 /* Override any GCC internal prototype to avoid an error.
13133 Use char because int might match the return type of a GCC
13134 builtin and then its argument prototype would still apply. */
13147 for ac_lib
in '' socket
; do
13148 if test -z "$ac_lib"; then
13149 ac_res
="none required"
13152 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13154 if ac_fn_c_try_link
"$LINENO"; then :
13155 ac_cv_search_socket
=$ac_res
13157 rm -f core conftest.err conftest.
$ac_objext \
13159 if ${ac_cv_search_socket+:} false
; then :
13163 if ${ac_cv_search_socket+:} false
; then :
13166 ac_cv_search_socket
=no
13168 rm conftest.
$ac_ext
13169 LIBS
=$ac_func_search_save_LIBS
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
13172 $as_echo "$ac_cv_search_socket" >&6; }
13173 ac_res
=$ac_cv_search_socket
13174 if test "$ac_res" != no
; then :
13175 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13181 ac_fn_c_check_member
"$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "
13182 #ifdef HAVE_SYS_TYPES_H
13183 #include <sys/types.h>
13185 #ifdef HAVE_SYS_SOCKET_H
13186 #include <sys/socket.h>
13188 #ifdef HAVE_WINSOCK2_H
13189 #include <winsock2.h>
13193 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes
; then :
13195 $as_echo "#define SOCKADDR_IN_HAS_LEN 1" >>confdefs.h
13200 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
13201 #include <sys/socket.h>
13203 if test "x$ac_cv_type_socklen_t" = xyes
; then :
13204 rb_cv_socklen_t
=socklen_t
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
13208 $as_echo_n "checking for socklen_t equivalent... " >&6; }
13209 if ${rb_cv_socklen_t+:} false
; then :
13210 $as_echo_n "(cached) " >&6
13213 # Systems have either "struct sockaddr *" or
13214 # "void *" as the second argument to getpeername
13216 for arg2
in "struct sockaddr" void
; do
13217 for t
in int size_t unsigned long
"unsigned long"; do
13218 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13219 /* end confdefs.h. */
13221 #ifdef HAVE_SYS_TYPES_H
13222 #include <sys/types.h>
13224 #ifdef HAVE_SYS_SOCKET_H
13225 #include <sys/socket.h>
13227 #ifdef HAVE_WINSOCK2_H
13228 #include <winsock2.h>
13230 int getpeername (int, $arg2 *, $t *);
13237 getpeername(0,0,&len);
13243 if ac_fn_c_try_compile
"$LINENO"; then :
13245 rb_cv_socklen_t
="$t"
13249 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13253 if test "x$rb_cv_socklen_t" = x
; then
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find a type to use in place of socklen_t using int" >&5
13255 $as_echo "$as_me: WARNING: Cannot find a type to use in place of socklen_t using int" >&2;}
13256 rb_cv_socklen_t
=int
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_socklen_t" >&5
13262 $as_echo "$rb_cv_socklen_t" >&6; }
13266 rb_socklen_t
=$rb_cv_socklen_t
13272 # Check whether --enable-ipv6 was given.
13273 if test "${enable_ipv6+set}" = set; then :
13274 enableval
=$enable_ipv6; ipv6
=$enableval
13280 if test x
$ipv6 != xyes
; then
13286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for INET6 protocol support" >&5
13287 $as_echo_n "checking for INET6 protocol support... " >&6; }
13288 if ${rb_cv_proto_inet6+:} false
; then :
13289 $as_echo_n "(cached) " >&6
13292 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13293 /* end confdefs.h. */
13295 #include <sys/types.h>
13296 #include <sys/socket.h>
13299 #error Missing PF_INET6
13302 #error Mlssing AF_INET6
13306 if ac_fn_c_try_cpp
"$LINENO"; then :
13308 rb_cv_proto_inet6
=yes
13312 rb_cv_proto_inet6
=no
13315 rm -f conftest.err conftest.i conftest.
$ac_ext
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_proto_inet6" >&5
13319 $as_echo "$rb_cv_proto_inet6" >&6; }
13321 if test "X$rb_cv_proto_inet6" = "Xyes"; then :
13325 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling IPv6 support: PF_INET6 not found" >&5
13326 $as_echo "$as_me: Disabling IPv6 support: PF_INET6 not found" >&6;}
13332 if test "X$have_v6" = "Xyes"; then
13334 rb_have_sockaddr_in6
=
13335 ac_fn_c_check_type
"$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "
13336 #include <sys/types.h>
13337 #include <sys/socket.h>
13338 #include <netinet/in.h>
13341 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes
; then :
13343 cat >>confdefs.h
<<_ACEOF
13344 #define HAVE_STRUCT_SOCKADDR_IN6 1
13348 rb_have_sockaddr_in6
=yes
13352 rb_have_sockaddr_in6
=no
13357 if test "X$rb_have_sockaddr_in6" = "Xyes"; then :
13361 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling IPv6 support: struct sockaddr_in6 not found" >&5
13362 $as_echo "$as_me: Disabling IPv6 support: struct sockaddr_in6 not found" >&6;}
13371 ac_fn_c_check_type
"$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
13372 #include <sys/types.h>
13373 #include <sys/socket.h>
13376 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes
; then :
13378 cat >>confdefs.h
<<_ACEOF
13379 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
13383 rb_have_sockaddr_storage
=yes
13389 ac_fn_c_check_header_mongrel
"$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
13390 if test "x$ac_cv_header_stdarg_h" = xyes
; then :
13393 as_fn_error $?
"** stdarg.h could not be found - libratbox will not compile without it **" "$LINENO" 5
13398 ac_fn_c_check_type
"$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "#include <sys/types.h>
13399 #include <sys/socket.h>
13401 if test "x$ac_cv_type_sa_family_t" = xyes
; then :
13405 $as_echo "#define sa_family_t u_int16_t" >>confdefs.h
13411 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
13413 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13414 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13415 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13416 cat >>confdefs.h
<<_ACEOF
13417 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
13425 $as_echo_n "checking for library containing nanosleep... " >&6; }
13426 if ${ac_cv_search_nanosleep+:} false
; then :
13427 $as_echo_n "(cached) " >&6
13429 ac_func_search_save_LIBS
=$LIBS
13430 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13431 /* end confdefs.h. */
13433 /* Override any GCC internal prototype to avoid an error.
13434 Use char because int might match the return type of a GCC
13435 builtin and then its argument prototype would still apply. */
13443 return nanosleep ();
13448 for ac_lib
in '' rt posix4
; do
13449 if test -z "$ac_lib"; then
13450 ac_res
="none required"
13453 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13455 if ac_fn_c_try_link
"$LINENO"; then :
13456 ac_cv_search_nanosleep
=$ac_res
13458 rm -f core conftest.err conftest.
$ac_objext \
13460 if ${ac_cv_search_nanosleep+:} false
; then :
13464 if ${ac_cv_search_nanosleep+:} false
; then :
13467 ac_cv_search_nanosleep
=no
13469 rm conftest.
$ac_ext
13470 LIBS
=$ac_func_search_save_LIBS
13472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
13473 $as_echo "$ac_cv_search_nanosleep" >&6; }
13474 ac_res
=$ac_cv_search_nanosleep
13475 if test "$ac_res" != no
; then :
13476 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13478 $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing timer_create" >&5
13483 $as_echo_n "checking for library containing timer_create... " >&6; }
13484 if ${ac_cv_search_timer_create+:} false
; then :
13485 $as_echo_n "(cached) " >&6
13487 ac_func_search_save_LIBS
=$LIBS
13488 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13489 /* end confdefs.h. */
13491 /* Override any GCC internal prototype to avoid an error.
13492 Use char because int might match the return type of a GCC
13493 builtin and then its argument prototype would still apply. */
13497 char timer_create ();
13501 return timer_create ();
13506 for ac_lib
in '' rt
; do
13507 if test -z "$ac_lib"; then
13508 ac_res
="none required"
13511 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13513 if ac_fn_c_try_link
"$LINENO"; then :
13514 ac_cv_search_timer_create
=$ac_res
13516 rm -f core conftest.err conftest.
$ac_objext \
13518 if ${ac_cv_search_timer_create+:} false
; then :
13522 if ${ac_cv_search_timer_create+:} false
; then :
13525 ac_cv_search_timer_create
=no
13527 rm conftest.
$ac_ext
13528 LIBS
=$ac_func_search_save_LIBS
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_timer_create" >&5
13531 $as_echo "$ac_cv_search_timer_create" >&6; }
13532 ac_res
=$ac_cv_search_timer_create
13533 if test "$ac_res" != no
; then :
13534 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13536 $as_echo "#define HAVE_TIMER_CREATE 1" >>confdefs.h
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working timer_create(CLOCK_REALTIME)" >&5
13541 $as_echo_n "checking for a working timer_create(CLOCK_REALTIME)... " >&6; }
13542 if ${rb__cv_timer_create_works+:} false
; then :
13543 $as_echo_n "(cached) " >&6
13545 if test "$cross_compiling" = yes; then :
13546 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13547 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13548 as_fn_error $?
"cannot run test program while cross compiling
13549 See \`config.log' for more details" "$LINENO" 5; }
13551 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13552 /* end confdefs.h. */
13557 #ifdef HAVE_SIGNAL_H
13558 #include <signal.h>
13560 #ifdef HAVE_UNISTD_H
13561 #include <unistd.h>
13563 int main(int argc, char *argv[])
13565 #if HAVE_TIMER_CREATE
13566 struct sigevent ev;
13568 ev.sigev_notify = SIGEV_SIGNAL;
13569 ev.sigev_signo = SIGVTALRM;
13570 if (timer_create(CLOCK_REALTIME, &ev, &timer) != 0) {
13580 if ac_fn_c_try_run
"$LINENO"; then :
13581 rb__cv_timer_create_works
=yes
13583 rb__cv_timer_create_works
=no
13585 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13586 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb__cv_timer_create_works" >&5
13592 $as_echo "$rb__cv_timer_create_works" >&6; }
13593 case $rb__cv_timer_create_works in
13595 $as_echo "#define USE_TIMER_CREATE 1" >>confdefs.h
13599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working timerfd_create(CLOCK_REALTIME)" >&5
13600 $as_echo_n "checking for a working timerfd_create(CLOCK_REALTIME)... " >&6; }
13601 if ${rb__cv_timerfd_create_works+:} false
; then :
13602 $as_echo_n "(cached) " >&6
13604 if test "$cross_compiling" = yes; then :
13605 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13606 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13607 as_fn_error $?
"cannot run test program while cross compiling
13608 See \`config.log' for more details" "$LINENO" 5; }
13610 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13611 /* end confdefs.h. */
13616 #ifdef HAVE_SIGNAL_H
13617 #include <signal.h>
13619 #ifdef HAVE_UNISTD_H
13620 #include <unistd.h>
13622 #ifdef HAVE_SYS_TIMERFD_H
13623 #include <sys/timerfd.h>
13625 int main(int argc, char *argv[])
13627 #if defined(HAVE_TIMERFD_CREATE) && defined(HAVE_SYS_TIMERFD_H)
13628 if (timerfd_create(CLOCK_REALTIME, 0) < 0) {
13638 if ac_fn_c_try_run
"$LINENO"; then :
13639 rb__cv_timerfd_create_works
=yes
13641 rb__cv_timerfd_create_works
=no
13643 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13644 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb__cv_timerfd_create_works" >&5
13650 $as_echo "$rb__cv_timerfd_create_works" >&6; }
13651 case $rb__cv_timerfd_create_works in
13653 $as_echo "#define USE_TIMERFD_CREATE 1" >>confdefs.h
13658 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13659 # for constant arguments. Useless!
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13661 $as_echo_n "checking for working alloca.h... " >&6; }
13662 if ${ac_cv_working_alloca_h+:} false
; then :
13663 $as_echo_n "(cached) " >&6
13665 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13666 /* end confdefs.h. */
13667 #include <alloca.h>
13671 char *p = (char *) alloca (2 * sizeof (int));
13677 if ac_fn_c_try_link
"$LINENO"; then :
13678 ac_cv_working_alloca_h
=yes
13680 ac_cv_working_alloca_h
=no
13682 rm -f core conftest.err conftest.
$ac_objext \
13683 conftest
$ac_exeext conftest.
$ac_ext
13685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13686 $as_echo "$ac_cv_working_alloca_h" >&6; }
13687 if test $ac_cv_working_alloca_h = yes; then
13689 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13694 $as_echo_n "checking for alloca... " >&6; }
13695 if ${ac_cv_func_alloca_works+:} false
; then :
13696 $as_echo_n "(cached) " >&6
13698 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13699 /* end confdefs.h. */
13701 # define alloca __builtin_alloca
13704 # include <malloc.h>
13705 # define alloca _alloca
13707 # ifdef HAVE_ALLOCA_H
13708 # include <alloca.h>
13713 # ifndef alloca /* predefined by HP cc +Olibcalls */
13714 void *alloca (size_t);
13724 char *p = (char *) alloca (1);
13730 if ac_fn_c_try_link
"$LINENO"; then :
13731 ac_cv_func_alloca_works
=yes
13733 ac_cv_func_alloca_works
=no
13735 rm -f core conftest.err conftest.
$ac_objext \
13736 conftest
$ac_exeext conftest.
$ac_ext
13738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13739 $as_echo "$ac_cv_func_alloca_works" >&6; }
13741 if test $ac_cv_func_alloca_works = yes; then
13743 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13746 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13747 # that cause trouble. Some versions do not even contain alloca or
13748 # contain a buggy version. If you still want to use their alloca,
13749 # use ar to extract alloca.o from them instead of compiling alloca.c.
13751 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
13753 $as_echo "#define C_ALLOCA 1" >>confdefs.h
13756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13757 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13758 if ${ac_cv_os_cray+:} false
; then :
13759 $as_echo_n "(cached) " >&6
13761 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13762 /* end confdefs.h. */
13763 #if defined CRAY && ! defined CRAY2
13770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13771 $EGREP "webecray" >/dev
/null
2>&1; then :
13779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13780 $as_echo "$ac_cv_os_cray" >&6; }
13781 if test $ac_cv_os_cray = yes; then
13782 for ac_func
in _getb67 GETB67 getb67
; do
13783 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13784 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13785 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13787 cat >>confdefs.h
<<_ACEOF
13788 #define CRAY_STACKSEG_END $ac_func
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13798 $as_echo_n "checking stack direction for C alloca... " >&6; }
13799 if ${ac_cv_c_stack_direction+:} false
; then :
13800 $as_echo_n "(cached) " >&6
13802 if test "$cross_compiling" = yes; then :
13803 ac_cv_c_stack_direction
=0
13805 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13806 /* end confdefs.h. */
13807 $ac_includes_default
13809 find_stack_direction (int *addr, int depth)
13811 int dir, dummy = 0;
13814 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
13815 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
13816 return dir + dummy;
13820 main (int argc, char **argv)
13822 return find_stack_direction (0, argc + !argv + 20) < 0;
13825 if ac_fn_c_try_run
"$LINENO"; then :
13826 ac_cv_c_stack_direction
=1
13828 ac_cv_c_stack_direction
=-1
13830 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13831 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13836 $as_echo "$ac_cv_c_stack_direction" >&6; }
13837 cat >>confdefs.h
<<_ACEOF
13838 #define STACK_DIRECTION $ac_cv_c_stack_direction
13844 for ac_header
in vfork.h
13846 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
13847 if test "x$ac_cv_header_vfork_h" = xyes
; then :
13848 cat >>confdefs.h
<<_ACEOF
13849 #define HAVE_VFORK_H 1
13856 for ac_func
in fork vfork
13858 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13859 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13860 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13861 cat >>confdefs.h
<<_ACEOF
13862 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13868 if test "x$ac_cv_func_fork" = xyes
; then
13869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
13870 $as_echo_n "checking for working fork... " >&6; }
13871 if ${ac_cv_func_fork_works+:} false
; then :
13872 $as_echo_n "(cached) " >&6
13874 if test "$cross_compiling" = yes; then :
13875 ac_cv_func_fork_works
=cross
13877 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13878 /* end confdefs.h. */
13879 $ac_includes_default
13884 /* By Ruediger Kuhlmann. */
13885 return fork () < 0;
13891 if ac_fn_c_try_run
"$LINENO"; then :
13892 ac_cv_func_fork_works
=yes
13894 ac_cv_func_fork_works
=no
13896 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13897 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
13902 $as_echo "$ac_cv_func_fork_works" >&6; }
13905 ac_cv_func_fork_works
=$ac_cv_func_fork
13907 if test "x$ac_cv_func_fork_works" = xcross
; then
13909 *-*-amigaos* | *-*-msdosdjgpp*)
13910 # Override, as these systems have only a dummy fork() stub
13911 ac_cv_func_fork_works
=no
13914 ac_cv_func_fork_works
=yes
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
13918 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
13920 ac_cv_func_vfork_works
=$ac_cv_func_vfork
13921 if test "x$ac_cv_func_vfork" = xyes
; then
13922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
13923 $as_echo_n "checking for working vfork... " >&6; }
13924 if ${ac_cv_func_vfork_works+:} false
; then :
13925 $as_echo_n "(cached) " >&6
13927 if test "$cross_compiling" = yes; then :
13928 ac_cv_func_vfork_works
=cross
13930 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13931 /* end confdefs.h. */
13932 /* Thanks to Paul Eggert for this test. */
13933 $ac_includes_default
13934 #include <sys/wait.h>
13935 #ifdef HAVE_VFORK_H
13936 # include <vfork.h>
13938 /* On some sparc systems, changes by the child to local and incoming
13939 argument registers are propagated back to the parent. The compiler
13940 is told about this with #include <vfork.h>, but some compilers
13941 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
13942 static variable whose address is put into a register that is
13943 clobbered by the vfork. */
13946 sparc_address_test (int arg)
13948 sparc_address_test (arg) int arg;
13951 static pid_t child;
13969 pid_t parent = getpid ();
13972 sparc_address_test (0);
13977 /* Here is another test for sparc vfork register problems. This
13978 test uses lots of local variables, at least as many local
13979 variables as main has allocated so far including compiler
13980 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
13981 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
13982 reuse the register of parent for one of the local variables,
13983 since it will think that parent can't possibly be used any more
13984 in this routine. Assigning to the local variable will thus
13985 munge parent in the parent process. */
13987 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
13988 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
13989 /* Convince the compiler that p..p7 are live; otherwise, it might
13990 use the same hardware register for all 8 local variables. */
13991 if (p != p1 || p != p2 || p != p3 || p != p4
13992 || p != p5 || p != p6 || p != p7)
13995 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
13996 from child file descriptors. If the child closes a descriptor
13997 before it execs or exits, this munges the parent's descriptor
13998 as well. Test for this by closing stdout in the child. */
13999 _exit(close(fileno(stdout)) != 0);
14004 while (wait(&status) != child)
14007 /* Was there some problem with vforking? */
14010 /* Did the child fail? (This shouldn't happen.) */
14013 /* Did the vfork/compiler bug occur? */
14014 || parent != getpid()
14016 /* Did the file descriptor bug occur? */
14017 || fstat(fileno(stdout), &st) != 0
14022 if ac_fn_c_try_run
"$LINENO"; then :
14023 ac_cv_func_vfork_works
=yes
14025 ac_cv_func_vfork_works
=no
14027 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14028 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
14033 $as_echo "$ac_cv_func_vfork_works" >&6; }
14036 if test "x$ac_cv_func_fork_works" = xcross
; then
14037 ac_cv_func_vfork_works
=$ac_cv_func_vfork
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
14039 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
14042 if test "x$ac_cv_func_vfork_works" = xyes
; then
14044 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
14048 $as_echo "#define vfork fork" >>confdefs.h
14051 if test "x$ac_cv_func_fork_works" = xyes
; then
14053 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
14060 for ac_header
in $ac_header_list
14062 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14063 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
14065 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
14066 cat >>confdefs.h
<<_ACEOF
14067 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14081 for ac_func
in getpagesize
14083 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
14084 if test "x$ac_cv_func_getpagesize" = xyes
; then :
14085 cat >>confdefs.h
<<_ACEOF
14086 #define HAVE_GETPAGESIZE 1
14092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
14093 $as_echo_n "checking for working mmap... " >&6; }
14094 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
14095 $as_echo_n "(cached) " >&6
14097 if test "$cross_compiling" = yes; then :
14098 ac_cv_func_mmap_fixed_mapped
=no
14100 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14101 /* end confdefs.h. */
14102 $ac_includes_default
14103 /* malloc might have been renamed as rpl_malloc. */
14106 /* Thanks to Mike Haertel and Jim Avera for this test.
14107 Here is a matrix of mmap possibilities:
14108 mmap private not fixed
14109 mmap private fixed at somewhere currently unmapped
14110 mmap private fixed at somewhere already mapped
14111 mmap shared not fixed
14112 mmap shared fixed at somewhere currently unmapped
14113 mmap shared fixed at somewhere already mapped
14114 For private mappings, we should verify that changes cannot be read()
14115 back from the file, nor mmap's back from the file at a different
14116 address. (There have been systems where private was not correctly
14117 implemented like the infamous i386 svr4.0, and systems where the
14118 VM page cache was not coherent with the file system buffer cache
14119 like early versions of FreeBSD and possibly contemporary NetBSD.)
14120 For shared mappings, we should conversely verify that changes get
14121 propagated back to all the places they're supposed to be.
14123 Grep wants private fixed already mapped.
14124 The main things grep needs to know about mmap are:
14125 * does it exist and is it safe to write into the mmap'd area
14126 * how to use it (BSD variants) */
14129 #include <sys/mman.h>
14131 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
14135 /* This mess was copied from the GNU getpagesize.h. */
14136 #ifndef HAVE_GETPAGESIZE
14137 # ifdef _SC_PAGESIZE
14138 # define getpagesize() sysconf(_SC_PAGESIZE)
14139 # else /* no _SC_PAGESIZE */
14140 # ifdef HAVE_SYS_PARAM_H
14141 # include <sys/param.h>
14142 # ifdef EXEC_PAGESIZE
14143 # define getpagesize() EXEC_PAGESIZE
14144 # else /* no EXEC_PAGESIZE */
14146 # define getpagesize() NBPG * CLSIZE
14149 # endif /* no CLSIZE */
14150 # else /* no NBPG */
14152 # define getpagesize() NBPC
14153 # else /* no NBPC */
14155 # define getpagesize() PAGESIZE
14156 # endif /* PAGESIZE */
14157 # endif /* no NBPC */
14158 # endif /* no NBPG */
14159 # endif /* no EXEC_PAGESIZE */
14160 # else /* no HAVE_SYS_PARAM_H */
14161 # define getpagesize() 8192 /* punt totally */
14162 # endif /* no HAVE_SYS_PARAM_H */
14163 # endif /* no _SC_PAGESIZE */
14165 #endif /* no HAVE_GETPAGESIZE */
14170 char *data, *data2, *data3;
14171 const char *cdata2;
14175 pagesize = getpagesize ();
14177 /* First, make a file with some known garbage in it. */
14178 data = (char *) malloc (pagesize);
14181 for (i = 0; i < pagesize; ++i)
14182 *(data + i) = rand ();
14184 fd = creat ("conftest.mmap", 0600);
14187 if (write (fd, data, pagesize) != pagesize)
14191 /* Next, check that the tail of a page is zero-filled. File must have
14192 non-zero length, otherwise we risk SIGBUS for entire page. */
14193 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
14197 if (write (fd2, cdata2, 1) != 1)
14199 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
14200 if (data2 == MAP_FAILED)
14202 for (i = 0; i < pagesize; ++i)
14206 if (munmap (data2, pagesize))
14209 /* Next, try to mmap the file at a fixed address which already has
14210 something else allocated at it. If we can, also make sure that
14211 we see the same garbage. */
14212 fd = open ("conftest.mmap", O_RDWR);
14215 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
14216 MAP_PRIVATE | MAP_FIXED, fd, 0L))
14218 for (i = 0; i < pagesize; ++i)
14219 if (*(data + i) != *(data2 + i))
14222 /* Finally, make sure that changes to the mapped area do not
14223 percolate back to the file as seen by read(). (This is a bug on
14224 some variants of i386 svr4.0.) */
14225 for (i = 0; i < pagesize; ++i)
14226 *(data2 + i) = *(data2 + i) + 1;
14227 data3 = (char *) malloc (pagesize);
14230 if (read (fd, data3, pagesize) != pagesize)
14232 for (i = 0; i < pagesize; ++i)
14233 if (*(data + i) != *(data3 + i))
14239 if ac_fn_c_try_run
"$LINENO"; then :
14240 ac_cv_func_mmap_fixed_mapped
=yes
14242 ac_cv_func_mmap_fixed_mapped
=no
14244 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14245 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
14250 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
14251 if test $ac_cv_func_mmap_fixed_mapped = yes; then
14253 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
14256 rm -f conftest.mmap conftest.txt
14259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/poll" >&5
14260 $as_echo_n "checking for /dev/poll... " >&6; }
14261 if test -c "/dev/poll"; then
14262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14263 $as_echo "yes" >&6; }
14265 $as_echo "#define HAVE_DEVPOLL 1" >>confdefs.h
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14269 $as_echo "no" >&6; }
14273 if test "$is_mingw" = "yes"; then
14275 $as_echo "#define HAVE_WIN32 1" >>confdefs.h
14280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
14281 $as_echo_n "checking for OpenSSL... " >&6; }
14282 # Check whether --enable-openssl was given.
14283 if test "${enable_openssl+set}" = set; then :
14284 enableval
=$enable_openssl; cf_enable_openssl
=$enableval
14286 cf_enable_openssl
="auto"
14290 if test "$cf_enable_openssl" != "no" ; then
14291 cf_openssl_basedir
=""
14292 if test "$cf_enable_openssl" != "auto" &&
14293 test "$cf_enable_openssl" != "yes" ; then
14294 cf_openssl_basedir
="`echo ${cf_enable_openssl} | sed 's/\/$//'`"
14296 for dirs in /usr
/local
/ssl
/usr
/pkg
/usr
/local \
14297 /usr
/local
/openssl
; do
14298 if test -f "${dirs}/include/openssl/opensslv.h" ; then
14299 cf_openssl_basedir
="${dirs}"
14305 if test ! -z "$cf_openssl_basedir"; then
14306 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then
14307 SSL_CFLAGS
="-I${cf_openssl_basedir}/include"
14308 SSL_LIBS
="-L${cf_openssl_basedir}/lib"
14310 cf_openssl_basedir
=""
14313 if test -f "/usr/include/openssl/opensslv.h" ; then
14314 cf_openssl_basedir
="/usr"
14318 if test ! -z "$cf_openssl_basedir"; then
14319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
14320 $as_echo "$cf_openssl_basedir" >&6; }
14321 cf_enable_openssl
="yes"
14323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Specify a correct path?" >&5
14324 $as_echo "not found. Specify a correct path?" >&6; }
14325 cf_enable_openssl
="no"
14327 unset cf_openssl_basedir
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14330 $as_echo "disabled" >&6; }
14333 save_CPPFLAGS
="$CPPFLAGS"
14334 CPPFLAGS
="$CPPFLAGS $SSL_CFLAGS"
14336 LIBS
="$LIBS $SSL_LIBS"
14337 if test "$cf_enable_openssl" != no
; then
14338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.7 or above" >&5
14339 $as_echo_n "checking for OpenSSL 0.9.7 or above... " >&6; }
14340 if test "$cross_compiling" = yes; then :
14341 cf_enable_openssl
=no
14343 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14344 /* end confdefs.h. */
14345 #include <openssl/opensslv.h>
14346 #include <stdlib.h>
14350 if (OPENSSL_VERSION_NUMBER >= 0x00907000)
14351 exit(0); else exit(1);
14356 if ac_fn_c_try_run
"$LINENO"; then :
14357 cf_enable_openssl
=yes
14359 cf_enable_openssl
=no
14361 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14362 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14366 if test "$cf_enable_openssl" != no
; then
14367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
14368 $as_echo "found" >&6; }
14370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5
14371 $as_echo "no - OpenSSL support disabled" >&6; }
14377 if test "$cf_enable_openssl" != no
; then
14378 CPPFLAGS
="$CPPFLAGS $SSL_LIBS"
14379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RAND_status in -lcrypto" >&5
14380 $as_echo_n "checking for RAND_status in -lcrypto... " >&6; }
14381 if ${ac_cv_lib_crypto_RAND_status+:} false
; then :
14382 $as_echo_n "(cached) " >&6
14384 ac_check_lib_save_LIBS
=$LIBS
14385 LIBS
="-lcrypto $LIBS"
14386 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14387 /* end confdefs.h. */
14389 /* Override any GCC internal prototype to avoid an error.
14390 Use char because int might match the return type of a GCC
14391 builtin and then its argument prototype would still apply. */
14395 char RAND_status ();
14399 return RAND_status ();
14404 if ac_fn_c_try_link
"$LINENO"; then :
14405 ac_cv_lib_crypto_RAND_status
=yes
14407 ac_cv_lib_crypto_RAND_status
=no
14409 rm -f core conftest.err conftest.
$ac_objext \
14410 conftest
$ac_exeext conftest.
$ac_ext
14411 LIBS
=$ac_check_lib_save_LIBS
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RAND_status" >&5
14414 $as_echo "$ac_cv_lib_crypto_RAND_status" >&6; }
14415 if test "x$ac_cv_lib_crypto_RAND_status" = xyes
; then :
14416 cf_enable_openssl
=yes
14418 cf_enable_openssl
=no
14423 if test "$cf_enable_openssl" != no
; then
14424 CPPFLAGS
="$CPPFLAGS $SSL_LIBS"
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_read in -lssl" >&5
14426 $as_echo_n "checking for SSL_read in -lssl... " >&6; }
14427 if ${ac_cv_lib_ssl_SSL_read+:} false
; then :
14428 $as_echo_n "(cached) " >&6
14430 ac_check_lib_save_LIBS
=$LIBS
14431 LIBS
="-lssl -lcrypto $LIBS"
14432 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14433 /* end confdefs.h. */
14435 /* Override any GCC internal prototype to avoid an error.
14436 Use char because int might match the return type of a GCC
14437 builtin and then its argument prototype would still apply. */
14445 return SSL_read ();
14450 if ac_fn_c_try_link
"$LINENO"; then :
14451 ac_cv_lib_ssl_SSL_read
=yes
14453 ac_cv_lib_ssl_SSL_read
=no
14455 rm -f core conftest.err conftest.
$ac_objext \
14456 conftest
$ac_exeext conftest.
$ac_ext
14457 LIBS
=$ac_check_lib_save_LIBS
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_read" >&5
14460 $as_echo "$ac_cv_lib_ssl_SSL_read" >&6; }
14461 if test "x$ac_cv_lib_ssl_SSL_read" = xyes
; then :
14462 SSL_LIBS
="$SSL_LIBS -lssl -lcrypto"
14464 cf_enable_openssl
=no
14471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GnuTLS" >&5
14472 $as_echo_n "checking for GnuTLS... " >&6; }
14473 # Check whether --enable-gnutls was given.
14474 if test "${enable_gnutls+set}" = set; then :
14475 enableval
=$enable_gnutls; cf_enable_gnutls
=$enableval
14477 cf_enable_gnutls
="auto"
14481 if test "$cf_enable_gnutls" != no
; then
14489 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
14490 if test -n "$ac_tool_prefix"; then
14491 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
14492 set dummy
${ac_tool_prefix}pkg
-config; ac_word
=$2
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14494 $as_echo_n "checking for $ac_word... " >&6; }
14495 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
14496 $as_echo_n "(cached) " >&6
14498 case $PKG_CONFIG in
14500 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
14503 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14504 for as_dir
in $PATH
14507 test -z "$as_dir" && as_dir
=.
14508 for ac_exec_ext
in '' $ac_executable_extensions; do
14509 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14510 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
14511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14521 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
14522 if test -n "$PKG_CONFIG"; then
14523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14524 $as_echo "$PKG_CONFIG" >&6; }
14526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14527 $as_echo "no" >&6; }
14532 if test -z "$ac_cv_path_PKG_CONFIG"; then
14533 ac_pt_PKG_CONFIG
=$PKG_CONFIG
14534 # Extract the first word of "pkg-config", so it can be a program name with args.
14535 set dummy pkg
-config; ac_word
=$2
14536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14537 $as_echo_n "checking for $ac_word... " >&6; }
14538 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false
; then :
14539 $as_echo_n "(cached) " >&6
14541 case $ac_pt_PKG_CONFIG in
14543 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
14546 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14547 for as_dir
in $PATH
14550 test -z "$as_dir" && as_dir
=.
14551 for ac_exec_ext
in '' $ac_executable_extensions; do
14552 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14553 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
14554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14564 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
14565 if test -n "$ac_pt_PKG_CONFIG"; then
14566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
14567 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
14569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14570 $as_echo "no" >&6; }
14573 if test "x$ac_pt_PKG_CONFIG" = x
; then
14576 case $cross_compiling:$ac_tool_warned in
14578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14579 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14580 ac_tool_warned
=yes ;;
14582 PKG_CONFIG
=$ac_pt_PKG_CONFIG
14585 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
14589 if test -n "$PKG_CONFIG"; then
14590 _pkg_min_version
=0.9.0
14591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
14592 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
14593 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14595 $as_echo "yes" >&6; }
14597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14598 $as_echo "no" >&6; }
14604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNUTLS" >&5
14605 $as_echo_n "checking for GNUTLS... " >&6; }
14607 if test -n "$GNUTLS_CFLAGS"; then
14608 pkg_cv_GNUTLS_CFLAGS
="$GNUTLS_CFLAGS"
14609 elif test -n "$PKG_CONFIG"; then
14610 if test -n "$PKG_CONFIG" && \
14611 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls\""; } >&5
14612 ($PKG_CONFIG --exists --print-errors "gnutls") 2>&5
14614 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14615 test $ac_status = 0; }; then
14616 pkg_cv_GNUTLS_CFLAGS
=`$PKG_CONFIG --cflags "gnutls" 2>/dev/null`
14617 test "x$?" != "x0" && pkg_failed
=yes
14624 if test -n "$GNUTLS_LIBS"; then
14625 pkg_cv_GNUTLS_LIBS
="$GNUTLS_LIBS"
14626 elif test -n "$PKG_CONFIG"; then
14627 if test -n "$PKG_CONFIG" && \
14628 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls\""; } >&5
14629 ($PKG_CONFIG --exists --print-errors "gnutls") 2>&5
14631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14632 test $ac_status = 0; }; then
14633 pkg_cv_GNUTLS_LIBS
=`$PKG_CONFIG --libs "gnutls" 2>/dev/null`
14634 test "x$?" != "x0" && pkg_failed
=yes
14644 if test $pkg_failed = yes; then
14645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14646 $as_echo "no" >&6; }
14648 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14649 _pkg_short_errors_supported
=yes
14651 _pkg_short_errors_supported
=no
14653 if test $_pkg_short_errors_supported = yes; then
14654 GNUTLS_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gnutls" 2>&1`
14656 GNUTLS_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "gnutls" 2>&1`
14658 # Put the nasty error message in config.log where it belongs
14659 echo "$GNUTLS_PKG_ERRORS" >&5
14661 cf_enable_gnutls
="no"
14662 elif test $pkg_failed = untried
; then
14663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14664 $as_echo "no" >&6; }
14665 cf_enable_gnutls
="no"
14667 GNUTLS_CFLAGS
=$pkg_cv_GNUTLS_CFLAGS
14668 GNUTLS_LIBS
=$pkg_cv_GNUTLS_LIBS
14669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14670 $as_echo "yes" >&6; }
14672 cf_enable_gnutls
="yes"
14677 if test "$cf_enable_gnutls" = "auto" -a "$cf_enable_openssl" = "yes"; then
14678 cf_enable_gnutls
="no"
14681 if test x
"$cf_enable_openssl" != xno
; then
14683 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
14688 elif test x
"$cf_enable_gnutls" != xno
; then
14690 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
14700 CPPFLAGS
="$save_CPPFLAGS"
14708 # Check whether --enable-assert was given.
14709 if test "${enable_assert+set}" = set; then :
14710 enableval
=$enable_assert; assert
=$enableval
14716 if test "$assert" = no
; then
14718 $as_echo "#define NDEBUG 1" >>confdefs.h
14720 elif test "$assert" = soft
; then
14722 $as_echo "#define SOFT_ASSERT 1" >>confdefs.h
14725 $as_echo "#define NDEBUG 1" >>confdefs.h
14727 elif test "$assert" = yes; then
14731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want to do a profile build" >&5
14732 $as_echo_n "checking if you want to do a profile build... " >&6; }
14733 # Check whether --enable-profile was given.
14734 if test "${enable_profile+set}" = set; then :
14735 enableval
=$enable_profile; profile
=$enableval
14741 if test "$profile" = yes; then
14742 if test "$ac_cv_c_compiler_gnu" = yes; then
14743 CFLAGS
="$CFLAGS -pg -static"
14744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, adding -pg -static" >&5
14745 $as_echo "yes, adding -pg -static" >&6; }
14747 $as_echo "#define RATBOX_PROFILE 1" >>confdefs.h
14750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, profile builds only work with gcc" >&5
14751 $as_echo "no, profile builds only work with gcc" >&6; }
14754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14755 $as_echo "no" >&6; }
14758 # Check whether --enable-balloc was given.
14759 if test "${enable_balloc+set}" = set; then :
14760 enableval
=$enable_balloc; balloc
=$enableval
14766 if test "$balloc" = no
; then
14768 $as_echo "#define NOBALLOC 1" >>confdefs.h
14772 # Check whether --enable-warnings was given.
14773 if test "${enable_warnings+set}" = set; then :
14774 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"
14787 if test "$prefix" = "NONE"; then
14789 cat >>confdefs.h
<<_ACEOF
14790 #define RB_PREFIX "$ac_default_prefix"
14797 prefix
=`echo $prefix | sed 's/\/$//'`
14799 cat >>confdefs.h
<<_ACEOF
14800 #define RB_PREFIX "$prefix"
14808 ac_config_commands
="$ac_config_commands include/librb-config.h"
14812 ac_config_files
="$ac_config_files src/Makefile Makefile libratbox.pc"
14815 cat >confcache
<<\_ACEOF
14816 # This file is a shell script that caches the results of configure
14817 # tests run on this system so they can be shared between configure
14818 # scripts and configure runs, see configure's option --config-cache.
14819 # It is not useful on other systems. If it contains results you don't
14820 # want to keep, you may remove or edit it.
14822 # config.status only pays attention to the cache file if you give it
14823 # the --recheck option to rerun configure.
14825 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14826 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14827 # following values.
14831 # The following way of writing the cache mishandles newlines in values,
14832 # but we know of no workaround that is simple, portable, and efficient.
14833 # So, we kill variables containing newlines.
14834 # Ultrix sh set writes to stderr and can't be redirected directly,
14835 # and sets the high bit in the cache file unless we assign to the vars.
14837 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14838 eval ac_val
=\$
$ac_var
14842 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14843 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14846 _
| IFS
| as_nl
) ;; #(
14847 BASH_ARGV
| BASH_SOURCE
) eval $ac_var= ;; #(
14848 *) { eval $ac_var=; unset $ac_var;} ;;
14854 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14855 *${as_nl}ac_space
=\
*)
14856 # `set' does not quote correctly, so add quotes: double-quote
14857 # substitution turns \\\\ into \\, and sed turns \\ into \.
14860 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14863 # `set' quotes correctly as required by POSIX, so do not add quotes.
14864 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14873 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14875 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14877 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
14878 if test -w "$cache_file"; then
14879 if test "x$cache_file" != "x/dev/null"; then
14880 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14881 $as_echo "$as_me: updating cache $cache_file" >&6;}
14882 if test ! -f "$cache_file" || test -h "$cache_file"; then
14883 cat confcache
>"$cache_file"
14885 case $cache_file in #(
14887 mv -f confcache
"$cache_file"$$
&&
14888 mv -f "$cache_file"$$
"$cache_file" ;; #(
14890 mv -f confcache
"$cache_file" ;;
14895 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14896 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14901 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
14902 # Let make expand exec_prefix.
14903 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
14905 DEFS
=-DHAVE_CONFIG_H
14909 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
14910 # 1. Remove the extension, and $U if already installed.
14911 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
14912 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
14913 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14914 # will be set to the directory where LIBOBJS objects are built.
14915 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14916 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
14918 LIBOBJS
=$ac_libobjs
14920 LTLIBOBJS
=$ac_ltlibobjs
14923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
14924 $as_echo_n "checking that generated files are newer than configure... " >&6; }
14925 if test -n "$am_sleep_pid"; then
14926 # Hide warnings about reused PIDs.
14927 wait $am_sleep_pid 2>/dev
/null
14929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
14930 $as_echo "done" >&6; }
14931 if test -n "$EXEEXT"; then
14933 am__EXEEXT_FALSE
='#'
14935 am__EXEEXT_TRUE
='#'
14939 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14940 as_fn_error $?
"conditional \"AMDEP\" was never defined.
14941 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14943 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14944 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
14945 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14947 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14948 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
14949 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14952 if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
14953 as_fn_error $?
"conditional \"MINGW\" was never defined.
14954 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14957 : "${CONFIG_STATUS=./config.status}"
14959 ac_clean_files_save
=$ac_clean_files
14960 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
14961 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14962 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14964 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14966 # Generated by $as_me.
14967 # Run this file to recreate the current configuration.
14968 # Compiler output produced by configure, useful for debugging
14969 # configure, is in config.log if it exists.
14972 ac_cs_recheck=false
14975 SHELL=\${CONFIG_SHELL-$SHELL}
14978 cat >>$CONFIG_STATUS <<\_ASEOF
|| as_write_fail
=1
14979 ## -------------------- ##
14980 ## M4sh Initialization. ##
14981 ## -------------------- ##
14983 # Be more Bourne compatible
14984 DUALCASE
=1; export DUALCASE
# for MKS sh
14985 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
14988 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14989 # is contrary to our usage. Disable this feature.
14990 alias -g '${1+"$@"}'='"$@"'
14991 setopt NO_GLOB_SUBST
14993 case `(set -o) 2>/dev/null` in #(
15005 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15006 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15007 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15008 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15009 # Prefer a ksh shell builtin over an external printf program on Solaris,
15010 # but without wasting forks for bash or zsh.
15011 if test -z "$BASH_VERSION$ZSH_VERSION" \
15012 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15013 as_echo='print
-r --'
15014 as_echo_n='print
-rn --'
15015 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15016 as_echo='printf %s
\n'
15017 as_echo_n='printf %s
'
15019 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15020 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
15021 as_echo_n='/usr
/ucb
/echo -n'
15023 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15024 as_echo_n_body='eval
15028 expr "X$arg" : "X\\(.*\\)$as_nl";
15029 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15031 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15033 export as_echo_n_body
15034 as_echo_n='sh
-c $as_echo_n_body as_echo
'
15036 export as_echo_body
15037 as_echo='sh
-c $as_echo_body as_echo
'
15040 # The user is always right.
15041 if test "${PATH_SEPARATOR+set}" != set; then
15043 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15044 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15051 # We need space, tab and new line, in precisely that order. Quoting is
15052 # there to prevent editors from complaining about space-tab.
15053 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15054 # splitting by setting IFS to empty value.)
15057 # Find who we are. Look in the path if we contain no directory separator.
15060 *[\\/]* ) as_myself=$0 ;;
15061 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15062 for as_dir in $PATH
15065 test -z "$as_dir" && as_dir=.
15066 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15072 # We did not find ourselves, most probably we were run as `sh COMMAND'
15073 # in which case we are not to be found in the path.
15074 if test "x$as_myself" = x
; then
15077 if test ! -f "$as_myself"; then
15078 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15082 # Unset variables that we do not need and which cause bugs (e.g. in
15083 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15084 # suppresses any "Segmentation fault" message there. '((' could
15085 # trigger a bug in pdksh 5.2.14.
15086 for as_var
in BASH_ENV ENV MAIL MAILPATH
15087 do eval test x\
${$as_var+set} = xset \
15088 && ( (unset $as_var) || exit 1) >/dev
/null
2>&1 && unset $as_var || :
15101 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
15104 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15105 # ----------------------------------------
15106 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15107 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15108 # script with STATUS, using 1 if that was 0.
15111 as_status
=$1; test $as_status -eq 0 && as_status
=1
15113 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
15114 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15116 $as_echo "$as_me: error: $2" >&2
15117 as_fn_exit
$as_status
15121 # as_fn_set_status STATUS
15122 # -----------------------
15123 # Set $? to STATUS, without forking.
15124 as_fn_set_status
()
15127 } # as_fn_set_status
15129 # as_fn_exit STATUS
15130 # -----------------
15131 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15135 as_fn_set_status
$1
15141 # Portably unset VAR.
15144 { eval $1=; unset $1;}
15146 as_unset
=as_fn_unset
15147 # as_fn_append VAR VALUE
15148 # ----------------------
15149 # Append the text in VALUE to the end of the definition contained in VAR. Take
15150 # advantage of any shell optimizations that allow amortized linear growth over
15151 # repeated appends, instead of the typical quadratic growth present in naive
15153 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
15154 eval 'as_fn_append ()
15165 # as_fn_arith ARG...
15166 # ------------------
15167 # Perform arithmetic evaluation on the ARGs, and store the result in the
15168 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15169 # must be portable across $(()) and expr.
15170 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
15171 eval 'as_fn_arith ()
15178 as_val
=`expr "$@" || test $? -eq 1`
15183 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
15184 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
15190 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15191 as_basename
=basename
15196 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
15202 as_me
=`$as_basename -- "$0" ||
15203 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15204 X"$0" : 'X\(//\)$' \| \
15205 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15207 sed '/^.*\/\([^/][^/]*\)\/*$/{
15221 # Avoid depending upon Character Ranges.
15222 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
15223 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15224 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
15225 as_cr_digits
='0123456789'
15226 as_cr_alnum
=$as_cr_Letters$as_cr_digits
15228 ECHO_C
= ECHO_N
= ECHO_T
=
15229 case `echo -n x` in #(((((
15231 case `echo 'xy\c'` in
15232 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
15234 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
15241 rm -f conf$$ conf$$.exe conf$$.
file
15242 if test -d conf$$.dir
; then
15243 rm -f conf$$.dir
/conf$$.
file
15246 mkdir conf$$.dir
2>/dev
/null
15248 if (echo >conf$$.
file) 2>/dev
/null
; then
15249 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
15251 # ... but there are two gotchas:
15252 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15253 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15254 # In both cases, we have to default to `cp -pR'.
15255 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe
||
15257 elif ln conf$$.
file conf$$
2>/dev
/null
; then
15265 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
15266 rmdir conf$$.dir
2>/dev
/null
15271 # Create "$as_dir" as a directory, including parents if necessary.
15276 -*) as_dir
=.
/$as_dir;;
15278 test -d "$as_dir" || eval $as_mkdir_p || {
15282 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15283 *) as_qdir
=$as_dir;;
15285 as_dirs
="'$as_qdir' $as_dirs"
15286 as_dir
=`$as_dirname -- "$as_dir" ||
15287 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15288 X"$as_dir" : 'X\(//\)[^/]' \| \
15289 X"$as_dir" : 'X\(//\)$' \| \
15290 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15291 $as_echo X"$as_dir" |
15292 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15296 /^X\(\/\/\)[^/].*/{
15309 test -d "$as_dir" && break
15311 test -z "$as_dirs" || eval "mkdir $as_dirs"
15312 } || test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
15316 if mkdir -p .
2>/dev
/null
; then
15317 as_mkdir_p
='mkdir -p "$as_dir"'
15319 test -d .
/-p && rmdir .
/-p
15324 # as_fn_executable_p FILE
15325 # -----------------------
15326 # Test if FILE is an executable regular file.
15327 as_fn_executable_p
()
15329 test -f "$1" && test -x "$1"
15330 } # as_fn_executable_p
15331 as_test_x
='test -x'
15332 as_executable_p
=as_fn_executable_p
15334 # Sed expression to map a string onto a valid CPP name.
15335 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15337 # Sed expression to map a string onto a valid variable name.
15338 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15342 ## ----------------------------------- ##
15343 ## Main body of $CONFIG_STATUS script. ##
15344 ## ----------------------------------- ##
15346 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
15348 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
15349 # Save the log message, to keep $0 and so on meaningful, and to
15350 # report actual input values of CONFIG_FILES etc. instead of their
15351 # values after options handling.
15353 This file was extended by libratbox $as_me devel, which was
15354 generated by GNU Autoconf 2.69. Invocation command line was
15356 CONFIG_FILES = $CONFIG_FILES
15357 CONFIG_HEADERS = $CONFIG_HEADERS
15358 CONFIG_LINKS = $CONFIG_LINKS
15359 CONFIG_COMMANDS = $CONFIG_COMMANDS
15362 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15367 case $ac_config_files in *"
15368 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
15371 case $ac_config_headers in *"
15372 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
15376 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15377 # Files that config.status was made for.
15378 config_files="$ac_config_files"
15379 config_headers="$ac_config_headers"
15380 config_commands="$ac_config_commands"
15384 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
15386 \`$as_me' instantiates files and other configuration actions
15387 from templates according to the current configuration. Unless the files
15388 and actions are specified as TAGs, all are instantiated by default.
15390 Usage: $0 [OPTION]... [TAG]...
15392 -h, --help print this help, then exit
15393 -V, --version print version number and configuration settings, then exit
15394 --config print configuration, then exit
15395 -q, --quiet, --silent
15396 do not print progress messages
15397 -d, --debug don't remove temporary files
15398 --recheck update $as_me by reconfiguring in the same conditions
15399 --file=FILE[:TEMPLATE]
15400 instantiate the configuration file FILE
15401 --header=FILE[:TEMPLATE]
15402 instantiate the configuration header FILE
15404 Configuration files:
15407 Configuration headers:
15410 Configuration commands:
15413 Report bugs to the package provider."
15416 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15417 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15419 libratbox config.status devel
15420 configured by $0, generated by GNU Autoconf 2.69,
15421 with options \\"\$ac_cs_config\\"
15423 Copyright (C) 2012 Free Software Foundation, Inc.
15424 This config.status script is free software; the Free Software Foundation
15425 gives unlimited permission to copy, distribute and modify it."
15432 test -n "\$AWK" || AWK=awk
15435 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
15436 # The default lists apply if the user does not specify any file.
15442 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
15443 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
15447 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
15459 # Handling of the options.
15460 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15462 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15463 $as_echo "$ac_cs_version"; exit ;;
15464 --config | --confi | --conf | --con | --co | --c )
15465 $as_echo "$ac_cs_config"; exit ;;
15466 --debug | --debu | --deb | --de | --d | -d )
15468 --file | --fil | --fi | --f )
15471 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15472 '') as_fn_error $?
"missing file argument" ;;
15474 as_fn_append CONFIG_FILES
" '$ac_optarg'"
15475 ac_need_defaults
=false
;;
15476 --header | --heade | --head | --hea )
15479 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15481 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
15482 ac_need_defaults
=false
;;
15484 # Conflict between --help and --header
15485 as_fn_error $?
"ambiguous option: \`$1'
15486 Try \`$0 --help' for more information.";;
15487 --help | --hel | -h )
15488 $as_echo "$ac_cs_usage"; exit ;;
15489 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15490 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15493 # This is an error.
15494 -*) as_fn_error $?
"unrecognized option: \`$1'
15495 Try \`$0 --help' for more information." ;;
15497 *) as_fn_append ac_config_targets
" $1"
15498 ac_need_defaults
=false
;;
15504 ac_configure_extra_args
=
15506 if $ac_cs_silent; then
15508 ac_configure_extra_args
="$ac_configure_extra_args --silent"
15512 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15513 if \$ac_cs_recheck; then
15514 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15516 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15517 CONFIG_SHELL='$SHELL'
15518 export CONFIG_SHELL
15523 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
15527 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15528 ## Running $as_me. ##
15534 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15538 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15541 # The HP-UX ksh and POSIX shell print the target directory to stdout
15542 # if CDPATH is set.
15543 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15545 sed_quote_subst='$sed_quote_subst'
15546 double_quote_subst='$double_quote_subst'
15547 delay_variable_subst='$delay_variable_subst'
15548 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15549 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15550 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15551 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15552 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15553 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15554 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15555 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15556 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
15557 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15558 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15559 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15560 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15561 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15562 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15563 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15564 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15565 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15566 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15567 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15568 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15569 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15570 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15571 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15572 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15573 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15574 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15575 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15576 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15577 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15578 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15579 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15580 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15581 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15582 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15583 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15584 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15585 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15586 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15587 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15588 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15589 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15590 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15591 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15592 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15593 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15594 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15595 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15596 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15597 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15598 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15599 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15600 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15601 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15602 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15603 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15604 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"`'
15605 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15606 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15607 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15608 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15609 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15610 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15611 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15612 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15613 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15614 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15615 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15616 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15617 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15618 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15619 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15620 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15621 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15622 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15623 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15624 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15625 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15626 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15627 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15628 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15629 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15630 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15631 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15632 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15633 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15634 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15635 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15636 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15637 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15638 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15639 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15640 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15641 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15642 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15643 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15644 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15645 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15646 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15647 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15648 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15649 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15650 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15651 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15652 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15653 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15654 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15655 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15656 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15657 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15658 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15659 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15660 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15661 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15662 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15663 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15664 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15665 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15666 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15667 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15668 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15669 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15670 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15671 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15672 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15673 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15674 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15675 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15676 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15677 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15680 LTCFLAGS='$LTCFLAGS'
15681 compiler='$compiler_DEFAULT'
15683 # A function that is used when there is no print builtin or printf.
15684 func_fallback_echo ()
15686 eval 'cat <<_LTECHO_EOF
15691 # Quote evaled strings.
15706 deplibs_check_method \
15711 sharedlib_from_linklib_cmd \
15714 archiver_list_spec \
15720 lt_cv_sys_global_symbol_pipe \
15721 lt_cv_sys_global_symbol_to_cdecl \
15722 lt_cv_sys_global_symbol_to_c_name_address \
15723 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15724 nm_file_list_spec \
15725 lt_prog_compiler_no_builtin_flag \
15726 lt_prog_compiler_pic \
15727 lt_prog_compiler_wl \
15728 lt_prog_compiler_static \
15729 lt_cv_prog_compiler_c_o \
15738 export_dynamic_flag_spec \
15739 whole_archive_flag_spec \
15740 compiler_needs_object \
15742 allow_undefined_flag \
15743 no_undefined_flag \
15744 hardcode_libdir_flag_spec \
15745 hardcode_libdir_separator \
15749 variables_saved_for_relink \
15751 library_names_spec \
15753 install_override_mode \
15757 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15758 *[\\\\\\\`\\"\\\$]*)
15759 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15762 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15767 # Double-quote double-evaled strings.
15768 for var in reload_cmds \
15769 old_postinstall_cmds \
15770 old_postuninstall_cmds \
15772 extract_expsyms_cmds \
15773 old_archive_from_new_cmds \
15774 old_archive_from_expsyms_cmds \
15776 archive_expsym_cmds \
15778 module_expsym_cmds \
15779 export_symbols_cmds \
15783 postuninstall_cmds \
15785 sys_lib_search_path_spec \
15786 sys_lib_dlsearch_path_spec; do
15787 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15788 *[\\\\\\\`\\"\\\$]*)
15789 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15792 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15797 ac_aux_dir='$ac_aux_dir'
15798 xsi_shell='$xsi_shell'
15799 lt_shell_append='$lt_shell_append'
15801 # See if we are running on zsh, and set the options which allow our
15802 # commands through without removal of \ escapes INIT.
15803 if test -n "\${ZSH_VERSION+set}" ; then
15804 setopt NO_GLOB_SUBST
15810 TIMESTAMP='$TIMESTAMP'
15817 if test x$ac_cv_header_stdc = xyes; then
15820 if test x$ac_cv_header_stdlib_h = xyes; then
15821 rb_header_stdlib_h=yes
15823 if test x$ac_cv_header_string_h = xyes; then
15824 rb_header_string_h=yes
15826 if test x$ac_cv_header_memory_h = xyes; then
15827 rb_header_memory_h=yes
15829 if test "x${ac_cv_working_alloca_h+set}" = xset ; then
15830 rb_alloca_h="$ac_cv_working_alloca_h"
15832 rb_alloc_h="$ac_cv_header_alloca_h"
15834 if test x$ac_cv_member_struct_sockaddr_sa_len = xyes; then
15835 rb_sockaddr_sa_len=yes
15837 if test x$ac_cv_header_sys_socket_h = xyes; then
15838 rb_sys_socket_h=yes
15840 if test x$ac_cv_header_sys_types_h = xyes; then
15843 if test x$ac_cv_header_sys_stat_h = xyes; then
15846 if test x$ac_cv_header_sys_time_h = xyes; then
15849 if test x$ac_cv_header_time = xyes; then
15853 if test x$ac_cv_header_stdint_h = xyes; then
15856 if test x$ac_cv_header_inttypes_h = xyes; then
15859 if test x$ac_cv_header_netinet_in_h = xyes; then
15860 rb_netinet_in_h=yes
15863 if test x$ac_cv_header_crypt_h = xyes; then
15866 if test x$ac_cv_header_errno_h = xyes; then
15869 if test x$ac_cv_header_unistd_h = xyes; then
15872 if test x$ac_cv_header_windows_h = xyes; then
15875 if test x$ac_cv_header_winsock2_h = xyes; then
15879 rb_socklen_t=$rb_socklen_t
15881 if test "x$rb_have_sockaddr_storage" = "xyes"; then
15882 rb_sockaddr_storage="yes"
15884 rb_sockaddr_storage="no"
15887 rb_have_ipv6="$have_v6"
15899 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
15901 # Handling of arguments.
15902 for ac_config_target
in $ac_config_targets
15904 case $ac_config_target in
15905 "include/libratbox_config.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/libratbox_config.h" ;;
15906 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
15907 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
15908 "include/librb-config.h") CONFIG_COMMANDS
="$CONFIG_COMMANDS include/librb-config.h" ;;
15909 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
15910 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
15911 "libratbox.pc") CONFIG_FILES
="$CONFIG_FILES libratbox.pc" ;;
15913 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15918 # If the user did not use the arguments to specify the items to instantiate,
15919 # then the envvar interface is used. Set only those that are not.
15920 # We use the long form for the default assignment because of an extremely
15921 # bizarre bug on SunOS 4.1.3.
15922 if $ac_need_defaults; then
15923 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
15924 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
15925 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
15928 # Have a temporary directory for convenience. Make it in the build tree
15929 # simply because there is no reason against having it here, and in addition,
15930 # creating and moving files from /tmp can sometimes cause problems.
15931 # Hook for its removal unless debugging.
15932 # Note that there is a small window in which the directory will not be cleaned:
15933 # after its creation but before its name has been assigned to `$tmp'.
15937 trap 'exit_status=$?
15938 : "${ac_tmp:=$tmp}"
15939 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15941 trap 'as_fn_exit 1' 1 2 13 15
15943 # Create a (secure) tmp directory for tmp files.
15946 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15950 tmp
=.
/conf$$
-$RANDOM
15951 (umask 077 && mkdir "$tmp")
15952 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
15955 # Set up the scripts for CONFIG_FILES section.
15956 # No need to generate them if there are no CONFIG_FILES.
15957 # This happens for instance with `./config.status config.h'.
15958 if test -n "$CONFIG_FILES"; then
15961 ac_cr
=`echo X | tr X '\015'`
15962 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15963 # But we know of no other shell where ac_cr would be empty at this
15964 # point, so we can use a bashism as a fallback.
15965 if test "x$ac_cr" = x
; then
15966 eval ac_cr
=\$
\'\\r
\'
15968 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15969 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15972 ac_cs_awk_cr
=$ac_cr
15975 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15980 echo "cat >conf$$subs.awk <<_ACEOF" &&
15981 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15983 } >conf$$subs.sh ||
15984 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
15985 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15987 for ac_last_try in false false false false false :; do
15988 . ./conf$$subs.sh ||
15989 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
15991 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
15992 if test $ac_delim_n = $ac_delim_num; then
15994 elif $ac_last_try; then
15995 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
15997 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16000 rm -f conf$$subs.sh
16002 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16003 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
16007 s/^/S["/; s
/!.
*/"]=/
16017 s/\(.\{148\}\)..*/\1/
16019 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
16024 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16031 s/\(.\{148\}\)..*/\1/
16033 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
16037 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
16042 ' <conf$$subs.awk | sed '
16047 ' >>$CONFIG_STATUS || ac_write_fail=1
16048 rm -f conf$$subs.awk
16049 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16051 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
16052 for (key in S) S_is_set[key] = 1
16058 nfields = split(line, field, "@
")
16060 len = length(field[1])
16061 for (i = 2; i < nfields; i++) {
16063 keylen = length(key)
16064 if (S_is_set[key]) {
16066 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16067 len += length(value) + length(field[++i])
16078 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16079 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16080 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
16083 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
16084 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
16087 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16088 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
16089 # trailing colons and then remove the whole line if VPATH becomes empty
16090 # (actually we leave an empty line to preserve line numbers).
16091 if test "x
$srcdir" = x.; then
16092 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16110 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16111 fi # test -n "$CONFIG_FILES"
16113 # Set up the scripts for CONFIG_HEADERS section.
16114 # No need to generate them if there are no CONFIG_HEADERS.
16115 # This happens for instance with `./config.status Makefile'.
16116 if test -n "$CONFIG_HEADERS"; then
16117 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
16121 # Transform confdefs.h into an awk script `defines.awk', embedded as
16122 # here-document in config.status, that substitutes the proper values into
16123 # config.h.in to produce config.h.
16125 # Create a delimiter string that does not exist in confdefs.h, to ease
16126 # handling of long lines.
16128 for ac_last_try in false false :; do
16129 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
16130 if test -z "$ac_tt"; then
16132 elif $ac_last_try; then
16133 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
16135 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16139 # For the awk script, D is an array of macro values keyed by name,
16140 # likewise P contains macro parameters if any. Preserve backslash
16141 # newline sequences.
16143 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16145 s/.\{148\}/&'"$ac_delim"'/g
16148 s/^[ ]*#[ ]*define[ ][ ]*/ /
16155 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
16157 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
16161 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
16162 D["\
1"]=" \
3\\\\\\n
"\\/p
16164 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
16169 s/.\{148\}/&'"$ac_delim"'/g
16174 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
16177 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
16179 ' <confdefs.h | sed '
16180 s/'"$ac_delim"'/"\\\
16181 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16183 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16184 for (key in D) D_is_set[key] = 1
16187 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16189 split(line, arg, " ")
16190 if (arg[1] == "#") {
16194 defundef
= substr
(arg
[1], 2)
16197 split(mac1
, mac2
, "(") #)
16199 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
16200 if (D_is_set
[macro
]) {
16201 # Preserve the white space surrounding the "#".
16202 print prefix
"define", macro P
[macro
] D
[macro
]
16205 # Replace #undef with comments. This is necessary, for example,
16206 # in the case of _POSIX_SOURCE, which is predefined and required
16207 # on some systems where configure will not decide to define it.
16208 if (defundef
== "undef") {
16209 print
"/*", prefix defundef
, macro
, "*/"
16217 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
16218 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
16219 fi # test -n "$CONFIG_HEADERS"
16222 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
16227 :[FHLC
]) ac_mode
=$ac_tag; continue;;
16229 case $ac_mode$ac_tag in
16231 :L
* | :C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
16232 :[FH
]-) ac_tag
=-:-;;
16233 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
16250 -) ac_f
="$ac_tmp/stdin";;
16251 *) # Look for the file first in the build tree, then in the source tree
16252 # (if the path is not absolute). The absolute path cannot be DOS-style,
16253 # because $ac_f cannot contain `:'.
16257 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
16259 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16261 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16262 as_fn_append ac_file_inputs
" '$ac_f'"
16265 # Let's still pretend it is `configure' which instantiates (i.e., don't
16266 # use $as_me), people would be surprised to read:
16267 # /* config.h. Generated by config.status. */
16268 configure_input
='Generated from '`
16269 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16271 if test x
"$ac_file" != x
-; then
16272 configure_input
="$ac_file. $configure_input"
16273 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16274 $as_echo "$as_me: creating $ac_file" >&6;}
16276 # Neutralize special characters interpreted by sed in replacement strings.
16277 case $configure_input in #(
16278 *\
&* | *\
|* | *\\* )
16279 ac_sed_conf_input
=`$as_echo "$configure_input" |
16280 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16281 *) ac_sed_conf_input
=$configure_input;;
16285 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16286 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
16291 ac_dir
=`$as_dirname -- "$ac_file" ||
16292 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16293 X"$ac_file" : 'X\(//\)[^/]' \| \
16294 X"$ac_file" : 'X\(//\)$' \| \
16295 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16296 $as_echo X"$ac_file" |
16297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16301 /^X\(\/\/\)[^/].*/{
16314 as_dir
="$ac_dir"; as_fn_mkdir_p
16318 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16320 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16321 # A ".." for each directory in $ac_dir_suffix.
16322 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16323 case $ac_top_builddir_sub in
16324 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16325 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
16328 ac_abs_top_builddir
=$ac_pwd
16329 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
16330 # for backward compatibility:
16331 ac_top_builddir
=$ac_top_build_prefix
16334 .
) # We are building in place.
16336 ac_top_srcdir
=$ac_top_builddir_sub
16337 ac_abs_top_srcdir
=$ac_pwd ;;
16338 [\\/]* | ?
:[\\/]* ) # Absolute name.
16339 ac_srcdir
=$srcdir$ac_dir_suffix;
16340 ac_top_srcdir
=$srcdir
16341 ac_abs_top_srcdir
=$srcdir ;;
16342 *) # Relative name.
16343 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
16344 ac_top_srcdir
=$ac_top_build_prefix$srcdir
16345 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
16347 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
16357 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
16358 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
16360 ac_MKDIR_P
=$MKDIR_P
16362 [\\/$
]* | ?
:[\\/]* ) ;;
16363 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
16367 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
16368 # If the template does not know about datarootdir, expand it.
16369 # FIXME: This hack should be removed a few years after 2.60.
16370 ac_datarootdir_hack
=; ac_datarootdir_seen
=
16381 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16382 *datarootdir
*) ac_datarootdir_seen
=yes;;
16383 *@datadir@
*|*@docdir@
*|*@infodir@
*|*@localedir@
*|*@mandir@
*)
16384 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16385 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16387 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16388 ac_datarootdir_hack='
16389 s&@datadir@&$datadir&g
16390 s&@docdir@&$docdir&g
16391 s&@infodir@&$infodir&g
16392 s&@localedir@&$localedir&g
16393 s&@mandir@&$mandir&g
16394 s&\\\${datarootdir}&$datarootdir&g' ;;
16398 # Neutralize VPATH when `$srcdir' = `.'.
16399 # Shell code in configure.ac might set extrasub.
16400 # FIXME: do we really want to maintain this feature?
16401 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16402 ac_sed_extra="$ac_vpsub
16405 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
16407 /@
[a
-zA-Z_][a
-zA-Z_0-9]*@
/!b
16408 s
|@configure_input@
|$ac_sed_conf_input|;t t
16409 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
16410 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
16411 s
&@srcdir@
&$ac_srcdir&;t t
16412 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
16413 s
&@top_srcdir@
&$ac_top_srcdir&;t t
16414 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
16415 s
&@builddir@
&$ac_builddir&;t t
16416 s
&@abs_builddir@
&$ac_abs_builddir&;t t
16417 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
16418 s
&@INSTALL@
&$ac_INSTALL&;t t
16419 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
16420 $ac_datarootdir_hack
16422 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
16423 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
16425 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16426 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
16427 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16428 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
16429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
16430 which seems to be undefined. Please make sure it is defined" >&5
16431 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
16432 which seems to be undefined. Please make sure it is defined" >&2;}
16434 rm -f "$ac_tmp/stdin"
16436 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16437 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16439 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16445 if test x"$ac_file" != x-; then
16447 $as_echo "/* $configure_input */" \
16448 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16449 } >"$ac_tmp/config.h" \
16450 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16451 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16452 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16453 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16456 mv "$ac_tmp/config.h" "$ac_file" \
16457 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16460 $as_echo "/* $configure_input */" \
16461 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16462 || as_fn_error $? "could not create -" "$LINENO" 5
16464 # Compute "$ac_file"'s index
in $config_headers.
16467 for _am_header
in $config_headers :; do
16468 case $_am_header in
16469 $_am_arg | $_am_arg:* )
16472 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
16475 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16476 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16477 X"$_am_arg" : 'X\(//\)[^/]' \| \
16478 X"$_am_arg" : 'X\(//\)$' \| \
16479 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16480 $as_echo X"$_am_arg" |
16481 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16485 /^X\(\/\/\)[^/].*/{
16497 s/.*/./; q'`/stamp
-h$_am_stamp_count
16500 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16501 $as_echo "$as_me: executing $ac_file commands" >&6;}
16506 case $ac_file$ac_mode in
16507 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" || {
16508 # Older Autoconf quotes --file arguments for eval, but not when files
16509 # are listed without --file. Let's play safe and only enable the eval
16510 # if we detect the quoting.
16511 case $CONFIG_FILES in
16512 *\'*) eval set x
"$CONFIG_FILES" ;;
16513 *) set x
$CONFIG_FILES ;;
16518 # Strip MF so we end up with the name of the file.
16519 mf
=`echo "$mf" | sed -e 's/:.*$//'`
16520 # Check whether this is an Automake generated Makefile or not.
16521 # We used to match only the files named 'Makefile.in', but
16522 # some people rename them; so instead we look at the file content.
16523 # Grep'ing the first line is not enough: some people post-process
16524 # each Makefile.in and add a new line on top of each file to say so.
16525 # Grep'ing the whole file is not good either: AIX grep has a line
16526 # limit of 2048, but all sed's we know have understand at least 4000.
16527 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X
>/dev
/null
2>&1; then
16528 dirpart
=`$as_dirname -- "$mf" ||
16529 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16530 X"$mf" : 'X\(//\)[^/]' \| \
16531 X"$mf" : 'X\(//\)$' \| \
16532 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16534 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16538 /^X\(\/\/\)[^/].*/{
16554 # Extract the definition of DEPDIR, am__include, and am__quote
16555 # from the Makefile without running 'make'.
16556 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
16557 test -z "$DEPDIR" && continue
16558 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
16559 test -z "$am__include" && continue
16560 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
16561 # Find all dependency output files, they are included files with
16562 # $(DEPDIR) in their names. We invoke sed twice because it is the
16563 # simplest approach to changing $(DEPDIR) to its actual value in the
16565 for file in `sed -n "
16566 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16567 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
16568 # Make sure the directory exists.
16569 test -f "$dirpart/$file" && continue
16570 fdir
=`$as_dirname -- "$file" ||
16571 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16572 X"$file" : 'X\(//\)[^/]' \| \
16573 X"$file" : 'X\(//\)$' \| \
16574 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16575 $as_echo X"$file" |
16576 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16580 /^X\(\/\/\)[^/].*/{
16593 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
16594 # echo "creating $dirpart/$file"
16595 echo '# dummy' > "$dirpart/$file"
16602 # See if we are running on zsh, and set the options which allow our
16603 # commands through without removal of \ escapes.
16604 if test -n "${ZSH_VERSION+set}" ; then
16605 setopt NO_GLOB_SUBST
16608 cfgfile
="${ofile}T"
16609 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16612 cat <<_LT_EOF >> "$cfgfile"
16615 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16616 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16617 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16618 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16620 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16621 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
16623 # Written by Gordon Matzigkeit, 1996
16625 # This file is part of GNU Libtool.
16627 # GNU Libtool is free software; you can redistribute it and/or
16628 # modify it under the terms of the GNU General Public License as
16629 # published by the Free Software Foundation; either version 2 of
16630 # the License, or (at your option) any later version.
16632 # As a special exception to the GNU General Public License,
16633 # if you distribute this file as part of a program or library that
16634 # is built using GNU Libtool, you may include this file under the
16635 # same distribution terms that you use for the rest of that program.
16637 # GNU Libtool is distributed in the hope that it will be useful,
16638 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16639 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16640 # GNU General Public License for more details.
16642 # You should have received a copy of the GNU General Public License
16643 # along with GNU Libtool; see the file COPYING. If not, a copy
16644 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16645 # obtained by writing to the Free Software Foundation, Inc.,
16646 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16649 # The names of the tagged configurations supported by this script.
16652 # ### BEGIN LIBTOOL CONFIG
16654 # Whether or not to build static libraries.
16655 build_old_libs=$enable_static
16657 # Whether or not to build shared libraries.
16658 build_libtool_libs=$enable_shared
16660 # Which release of libtool.m4 was used?
16661 macro_version=$macro_version
16662 macro_revision=$macro_revision
16664 # What type of objects to build.
16667 # Whether or not to optimize for fast installation.
16668 fast_install=$enable_fast_install
16670 # Shell to use when invoking shell scripts.
16673 # An echo program that protects backslashes.
16676 # The PATH separator for the build system.
16677 PATH_SEPARATOR=$lt_PATH_SEPARATOR
16680 host_alias=$host_alias
16684 # The build system.
16685 build_alias=$build_alias
16689 # A sed program that does not truncate output.
16692 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16693 Xsed="\$SED -e 1s/^X//"
16695 # A grep program that handles long lines.
16701 # A literal string matcher.
16704 # A BSD- or MS-compatible name lister.
16707 # Whether we need soft or hard links.
16710 # What is the maximum length of a command?
16711 max_cmd_len=$max_cmd_len
16713 # Object file suffix (normally "o").
16716 # Executable file suffix (normally "").
16719 # whether the shell understands "unset".
16722 # turn spaces into newlines.
16725 # turn newlines into spaces.
16728 # convert \$build file names to \$host format.
16729 to_host_file_cmd=$lt_cv_to_host_file_cmd
16731 # convert \$build files to toolchain format.
16732 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16734 # An object symbol dumper.
16735 OBJDUMP=$lt_OBJDUMP
16737 # Method to check whether dependent libraries are shared objects.
16738 deplibs_check_method=$lt_deplibs_check_method
16740 # Command to use when deplibs_check_method = "file_magic".
16741 file_magic_cmd=$lt_file_magic_cmd
16743 # How to find potential files when deplibs_check_method = "file_magic".
16744 file_magic_glob=$lt_file_magic_glob
16746 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16747 want_nocaseglob=$lt_want_nocaseglob
16749 # DLL creation program.
16750 DLLTOOL=$lt_DLLTOOL
16752 # Command to associate shared and link libraries.
16753 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16758 # Flags to create an archive.
16759 AR_FLAGS=$lt_AR_FLAGS
16761 # How to feed a file listing to the archiver.
16762 archiver_list_spec=$lt_archiver_list_spec
16764 # A symbol stripping program.
16767 # Commands used to install an old-style archive.
16769 old_postinstall_cmds=$lt_old_postinstall_cmds
16770 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16772 # Whether to use a lock for old archive extraction.
16773 lock_old_archive_extraction=$lock_old_archive_extraction
16778 # LTCC compiler flags.
16779 LTCFLAGS=$lt_CFLAGS
16781 # Take the output of nm and produce a listing of raw symbols and C names.
16782 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16784 # Transform the output of nm in a proper C declaration.
16785 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16787 # Transform the output of nm in a C name address pair.
16788 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16790 # Transform the output of nm in a C name address pair when lib prefix is needed.
16791 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16793 # Specify filename containing input files for \$NM.
16794 nm_file_list_spec=$lt_nm_file_list_spec
16796 # The root where to search for dependent libraries,and in which our libraries should be installed.
16797 lt_sysroot=$lt_sysroot
16799 # The name of the directory that contains temporary libtool files.
16802 # Used to examine libraries when file_magic_cmd begins with "file".
16803 MAGIC_CMD=$MAGIC_CMD
16805 # Must we lock files when doing compilation?
16806 need_locks=$lt_need_locks
16809 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16811 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16812 DSYMUTIL=$lt_DSYMUTIL
16814 # Tool to change global to local symbols on Mac OS X.
16817 # Tool to manipulate fat objects and archives on Mac OS X.
16820 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16823 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16824 OTOOL64=$lt_OTOOL64
16826 # Old archive suffix (normally "a").
16829 # Shared library suffix (normally ".so").
16830 shrext_cmds=$lt_shrext_cmds
16832 # The commands to extract the exported symbol list from a shared archive.
16833 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16835 # Variables whose values should be saved in libtool wrapper scripts and
16836 # restored at link time.
16837 variables_saved_for_relink=$lt_variables_saved_for_relink
16839 # Do we need the "lib" prefix for modules?
16840 need_lib_prefix=$need_lib_prefix
16842 # Do we need a version for libraries?
16843 need_version=$need_version
16845 # Library versioning type.
16846 version_type=$version_type
16848 # Shared library runtime path variable.
16849 runpath_var=$runpath_var
16851 # Shared library path variable.
16852 shlibpath_var=$shlibpath_var
16854 # Is shlibpath searched before the hard-coded library search path?
16855 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16857 # Format of library name prefix.
16858 libname_spec=$lt_libname_spec
16860 # List of archive names. First name is the real one, the rest are links.
16861 # The last name is the one that the linker finds with -lNAME
16862 library_names_spec=$lt_library_names_spec
16864 # The coded name of the library, if different from the real name.
16865 soname_spec=$lt_soname_spec
16867 # Permission mode override for installation of shared libraries.
16868 install_override_mode=$lt_install_override_mode
16870 # Command to use after installation of a shared archive.
16871 postinstall_cmds=$lt_postinstall_cmds
16873 # Command to use after uninstallation of a shared archive.
16874 postuninstall_cmds=$lt_postuninstall_cmds
16876 # Commands used to finish a libtool library installation in a directory.
16877 finish_cmds=$lt_finish_cmds
16879 # As "finish_cmds", except a single script fragment to be evaled but
16881 finish_eval=$lt_finish_eval
16883 # Whether we should hardcode library paths into libraries.
16884 hardcode_into_libs=$hardcode_into_libs
16886 # Compile-time system search path for libraries.
16887 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16889 # Run-time system search path for libraries.
16890 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16892 # Whether dlopen is supported.
16893 dlopen_support=$enable_dlopen
16895 # Whether dlopen of programs is supported.
16896 dlopen_self=$enable_dlopen_self
16898 # Whether dlopen of statically linked programs is supported.
16899 dlopen_self_static=$enable_dlopen_self_static
16901 # Commands to strip libraries.
16902 old_striplib=$lt_old_striplib
16903 striplib=$lt_striplib
16906 # The linker used to build libraries.
16909 # How to create reloadable object files.
16910 reload_flag=$lt_reload_flag
16911 reload_cmds=$lt_reload_cmds
16913 # Commands used to build an old-style archive.
16914 old_archive_cmds=$lt_old_archive_cmds
16916 # A language specific compiler.
16919 # Is the compiler the GNU compiler?
16922 # Compiler flag to turn off builtin functions.
16923 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16925 # Additional compiler flags for building library objects.
16926 pic_flag=$lt_lt_prog_compiler_pic
16928 # How to pass a linker flag through the compiler.
16929 wl=$lt_lt_prog_compiler_wl
16931 # Compiler flag to prevent dynamic linking.
16932 link_static_flag=$lt_lt_prog_compiler_static
16934 # Does compiler simultaneously support -c and -o options?
16935 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16937 # Whether or not to add -lc for building shared libraries.
16938 build_libtool_need_lc=$archive_cmds_need_lc
16940 # Whether or not to disallow shared libs when runtime libs are static.
16941 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16943 # Compiler flag to allow reflexive dlopens.
16944 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16946 # Compiler flag to generate shared objects directly from archives.
16947 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16949 # Whether the compiler copes with passing no objects directly.
16950 compiler_needs_object=$lt_compiler_needs_object
16952 # Create an old-style archive from a shared archive.
16953 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16955 # Create a temporary old-style archive to link instead of a shared archive.
16956 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16958 # Commands used to build a shared archive.
16959 archive_cmds=$lt_archive_cmds
16960 archive_expsym_cmds=$lt_archive_expsym_cmds
16962 # Commands used to build a loadable module if different from building
16963 # a shared archive.
16964 module_cmds=$lt_module_cmds
16965 module_expsym_cmds=$lt_module_expsym_cmds
16967 # Whether we are building with GNU ld or not.
16968 with_gnu_ld=$lt_with_gnu_ld
16970 # Flag that allows shared libraries with undefined symbols to be built.
16971 allow_undefined_flag=$lt_allow_undefined_flag
16973 # Flag that enforces no undefined symbols.
16974 no_undefined_flag=$lt_no_undefined_flag
16976 # Flag to hardcode \$libdir into a binary during linking.
16977 # This must work even if \$libdir does not exist
16978 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16980 # Whether we need a single "-rpath" flag with a separated argument.
16981 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16983 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16984 # DIR into the resulting binary.
16985 hardcode_direct=$hardcode_direct
16987 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16988 # DIR into the resulting binary and the resulting library dependency is
16989 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16990 # library is relocated.
16991 hardcode_direct_absolute=$hardcode_direct_absolute
16993 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16994 # into the resulting binary.
16995 hardcode_minus_L=$hardcode_minus_L
16997 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16998 # into the resulting binary.
16999 hardcode_shlibpath_var=$hardcode_shlibpath_var
17001 # Set to "yes" if building a shared library automatically hardcodes DIR
17002 # into the library and all subsequent libraries and executables linked
17004 hardcode_automatic=$hardcode_automatic
17006 # Set to yes if linker adds runtime paths of dependent libraries
17007 # to runtime path list.
17008 inherit_rpath=$inherit_rpath
17010 # Whether libtool must link a program against all its dependency libraries.
17011 link_all_deplibs=$link_all_deplibs
17013 # Set to "yes" if exported symbols are required.
17014 always_export_symbols=$always_export_symbols
17016 # The commands to list exported symbols.
17017 export_symbols_cmds=$lt_export_symbols_cmds
17019 # Symbols that should not be listed in the preloaded symbols.
17020 exclude_expsyms=$lt_exclude_expsyms
17022 # Symbols that must always be exported.
17023 include_expsyms=$lt_include_expsyms
17025 # Commands necessary for linking programs (against libraries) with templates.
17026 prelink_cmds=$lt_prelink_cmds
17028 # Commands necessary for finishing linking programs.
17029 postlink_cmds=$lt_postlink_cmds
17031 # Specify filename containing input files.
17032 file_list_spec=$lt_file_list_spec
17034 # How to hardcode a shared library path into an executable.
17035 hardcode_action=$hardcode_action
17037 # ### END LIBTOOL CONFIG
17043 cat <<\_LT_EOF
>> "$cfgfile"
17044 # AIX sometimes has problems with the GCC collect2 program. For some
17045 # reason, if we set the COLLECT_NAMES environment variable, the problems
17046 # vanish in a puff of smoke.
17047 if test "X${COLLECT_NAMES+set}" != Xset
; then
17049 export COLLECT_NAMES
17056 ltmain
="$ac_aux_dir/ltmain.sh"
17059 # We use sed instead of cat because bash on DJGPP gets confused if
17060 # if finds mixed CR/LF and LF-only lines. Since sed operates in
17061 # text mode, it properly converts lines to CR/LF. This bash problem
17062 # is reportedly fixed, but why not run on old versions too?
17063 sed '$q' "$ltmain" >> "$cfgfile" \
17064 || (rm -f "$cfgfile"; exit 1)
17066 if test x
"$xsi_shell" = xyes
; then
17067 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
17071 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17072 \ * ) func_dirname_result="${3}" ;;\
17074 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
17075 && mv -f "$cfgfile.tmp" "$cfgfile" \
17076 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17077 test 0 -eq $?
|| _lt_function_replace_fail
=:
17080 sed -e '/^func_basename ()$/,/^} # func_basename /c\
17083 \ func_basename_result="${1##*/}"\
17084 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
17085 && mv -f "$cfgfile.tmp" "$cfgfile" \
17086 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17087 test 0 -eq $?
|| _lt_function_replace_fail
=:
17090 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
17091 func_dirname_and_basename ()\
17094 \ */*) func_dirname_result="${1%/*}${2}" ;;\
17095 \ * ) func_dirname_result="${3}" ;;\
17097 \ func_basename_result="${1##*/}"\
17098 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
17099 && mv -f "$cfgfile.tmp" "$cfgfile" \
17100 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17101 test 0 -eq $?
|| _lt_function_replace_fail
=:
17104 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
17107 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
17108 \ # positional parameters, so assign one to ordinary parameter first.\
17109 \ func_stripname_result=${3}\
17110 \ func_stripname_result=${func_stripname_result#"${1}"}\
17111 \ func_stripname_result=${func_stripname_result%"${2}"}\
17112 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
17113 && mv -f "$cfgfile.tmp" "$cfgfile" \
17114 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17115 test 0 -eq $?
|| _lt_function_replace_fail
=:
17118 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
17119 func_split_long_opt ()\
17121 \ func_split_long_opt_name=${1%%=*}\
17122 \ func_split_long_opt_arg=${1#*=}\
17123 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
17124 && mv -f "$cfgfile.tmp" "$cfgfile" \
17125 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17126 test 0 -eq $?
|| _lt_function_replace_fail
=:
17129 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
17130 func_split_short_opt ()\
17132 \ func_split_short_opt_arg=${1#??}\
17133 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
17134 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
17135 && mv -f "$cfgfile.tmp" "$cfgfile" \
17136 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17137 test 0 -eq $?
|| _lt_function_replace_fail
=:
17140 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
17144 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
17145 \ *) func_lo2o_result=${1} ;;\
17147 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
17148 && mv -f "$cfgfile.tmp" "$cfgfile" \
17149 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17150 test 0 -eq $?
|| _lt_function_replace_fail
=:
17153 sed -e '/^func_xform ()$/,/^} # func_xform /c\
17156 func_xform_result=${1%.*}.lo\
17157 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
17158 && mv -f "$cfgfile.tmp" "$cfgfile" \
17159 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17160 test 0 -eq $?
|| _lt_function_replace_fail
=:
17163 sed -e '/^func_arith ()$/,/^} # func_arith /c\
17166 func_arith_result=$(( $* ))\
17167 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
17168 && mv -f "$cfgfile.tmp" "$cfgfile" \
17169 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17170 test 0 -eq $?
|| _lt_function_replace_fail
=:
17173 sed -e '/^func_len ()$/,/^} # func_len /c\
17176 func_len_result=${#1}\
17177 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
17178 && mv -f "$cfgfile.tmp" "$cfgfile" \
17179 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17180 test 0 -eq $?
|| _lt_function_replace_fail
=:
17184 if test x
"$lt_shell_append" = xyes
; then
17185 sed -e '/^func_append ()$/,/^} # func_append /c\
17188 eval "${1}+=\\${2}"\
17189 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
17190 && mv -f "$cfgfile.tmp" "$cfgfile" \
17191 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17192 test 0 -eq $?
|| _lt_function_replace_fail
=:
17195 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
17196 func_append_quoted ()\
17198 \ func_quote_for_eval "${2}"\
17199 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
17200 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
17201 && mv -f "$cfgfile.tmp" "$cfgfile" \
17202 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17203 test 0 -eq $?
|| _lt_function_replace_fail
=:
17206 # Save a `func_append' function call where possible by direct use of '+='
17207 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
17208 && mv -f "$cfgfile.tmp" "$cfgfile" \
17209 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17210 test 0 -eq $?
|| _lt_function_replace_fail
=:
17212 # Save a `func_append' function call even when '+=' is not available
17213 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
17214 && mv -f "$cfgfile.tmp" "$cfgfile" \
17215 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
17216 test 0 -eq $?
|| _lt_function_replace_fail
=:
17219 if test x
"$_lt_function_replace_fail" = x
":"; then
17220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
17221 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
17225 mv -f "$cfgfile" "$ofile" ||
17226 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
17230 "include/librb-config.h":C
)
17231 outfile
=include
/librb
-config.h.tmp
17232 cat > $outfile <<\_______EOF
17234 * librb
-config.h
: libratbox config
file. Please modify configure.ac
17237 #ifndef __LIBRB_CONFIG_H
17238 #define __LIBRB_CONFIG_H
17242 if test "x$rb_have_ipv6" = "xyes"; then
17243 echo "#define RB_IPV6 1" >> $outfile
17246 if test "x$rb_windows_h" = "xyes"; then
17247 echo '#define WIN32_LEAN_AND_MEAN 1' >> $outfile
17248 echo '#include <windows.h>' >> $outfile
17249 echo '#include <winsock2.h>' >> $outfile
17250 echo '#include <iphlpapi.h>' >> $outfile
17253 if test "x$rb_alloca_h" = "xyes"; then
17254 echo '#define RB_HAVE_ALLOCA_H 1' >> $outfile
17257 if test "x$rb_header_stdc" = "xyes"; then
17258 echo '#include <stdlib.h>' >> $outfile
17259 echo '#include <stddef.h>' >> $outfile
17260 elif test "x$rb_header_stdlib" = "xyes"; then
17261 echo '#include <stdlib.h>' >> $outfile
17264 if test "x$rb_header_string_h" = "xyes"; then
17265 echo '#include <string.h>' >> $outfile
17268 if test "x$rb_stdint_h" = "xyes"; then
17269 echo '#include <stdint.h>' >> $outfile
17272 if test "x$rb_inttypes_h" = "xyes"; then
17273 echo '#include <inttypes.h>' >> $outfile
17276 if test "x$rb_sys_types_h" = "xyes"; then
17277 echo '#include <sys/types.h>' >> $outfile
17279 if test "x$rb_sys_time_h" = "xyes"; then
17280 echo '#include <sys/time.h>' >> $outfile
17282 if test "x$rb_sys_stat_h" = "xyes"; then
17283 echo '#include <sys/stat.h>' >> $outfile
17285 if test "x$rb_time_h" = "xyes"; then
17286 echo '#include <time.h>' >> $outfile
17289 if test "x$rb_sys_socket_h" = "xyes"; then
17290 echo '#include <sys/socket.h>' >> $outfile
17293 if test "x$rb_netinet_in_h" = "xyes"; then
17294 echo '#include <netinet/in.h>' >> $outfile
17297 if test "x$rb_arpa_inet_h" = "xyes"; then
17298 echo '#include <arpa/inet.h>' >> $outfile
17301 if test "x$rb_unistd_h" = "xyes"; then
17302 echo '#include <unistd.h>' >> $outfile
17305 if test "x$rb_crypt_h" = "xyes"; then
17306 echo '#include <crypt.h>' >> $outfile
17309 if test "x$rb_errno_h" = "xyes"; then
17310 echo '#include <errno.h>' >> $outfile
17313 echo "typedef $rb_socklen_t rb_socklen_t;" >> $outfile
17316 if test "x$rb_sockaddr_sa_len" = "xyes"; then
17317 echo '#define RB_SOCKADDR_HAS_SA_LEN 1' >> $outfile
17320 if test "x$rb_sockaddr_storage" = "xyes"; then
17321 echo '#define rb_sockaddr_storage sockaddr_storage' >> $outfile
17323 echo 'struct rb_sockaddr_storage { uint8_t _padding[128]; };' >> $outfile
17326 cat >> $outfile <<\_______EOF
17327 #endif /* __LIBRB_CONFIG_H */
17330 if cmp -s $outfile include
/librb
-config.h
; then
17331 { $as_echo "$as_me:${as_lineno-$LINENO}: include/librb-config.h is unchanged" >&5
17332 $as_echo "$as_me: include/librb-config.h is unchanged" >&6;}
17333 ${rb_rm} -f $outfile
17335 ${rb_mv} $outfile include
/librb
-config.h
17346 ac_clean_files
=$ac_clean_files_save
17348 test $ac_write_fail = 0 ||
17349 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
17352 # configure is writing to config.log, and then calls config.status.
17353 # config.status does its own redirection, appending to config.log.
17354 # Unfortunately, on DOS this fails, as config.log is still kept open
17355 # by configure, so config.status won't be able to write to it; its
17356 # output is simply discarded. So we exec the FD to /dev/null,
17357 # effectively closing config.log, so it can be properly (re)opened and
17358 # appended to by config.status. When coming back to configure, we
17359 # need to make the FD available again.
17360 if test "$no_create" != yes; then
17362 ac_config_status_args
=
17363 test "$silent" = yes &&
17364 ac_config_status_args
="$ac_config_status_args --quiet"
17366 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
17368 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17369 # would make configure fail if this is the last instruction.
17370 $ac_cs_success || as_fn_exit
1
17372 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
17373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17374 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17380 echo "Compiling $PACKAGE_NAME $PACKAGE_VERSION"
17383 echo "Installing into: $prefix"
17385 echo "IPv6 support ................... $have_v6"
17386 echo "Assert debugging ............... $assert"
17387 echo "Block allocator ................ $balloc"
17388 echo "SSL Type........................ $SSL_TYPE"