2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for libratbox devel.
5 # $Id: configure.ac 26260 2008-12-10 04:08:39Z androsyn $
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE
=1; export DUALCASE
# for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print
-rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
57 as_echo_n='/usr
/ucb
/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70 as_echo_n='sh
-c $as_echo_n_body as_echo
'
73 as_echo='sh
-c $as_echo_body as_echo
'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
96 *[\\/]* ) as_myself=$0 ;;
97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
101 test -z "$as_dir" && as_dir=.
102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
108 # We did not find ourselves, most probably we were run as `sh COMMAND'
109 # in which case we are not to be found in the path.
110 if test "x$as_myself" = x
; then
113 if test ! -f "$as_myself"; then
114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
118 # Unset variables that we do not need and which cause bugs (e.g. in
119 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
120 # suppresses any "Segmentation fault" message there. '((' could
121 # trigger a bug in pdksh 5.2.14.
122 for as_var
in BASH_ENV ENV MAIL MAILPATH
123 do eval test x\
${$as_var+set} = xset \
124 && ( (unset $as_var) || exit 1) >/dev
/null
2>&1 && unset $as_var || :
137 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
139 if test "x$CONFIG_SHELL" = x
; then
140 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
144 # is contrary to our usage. Disable this feature.
145 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 case \`(set -o) 2>/dev/null\` in #(
156 as_required
="as_fn_return () { (exit \$1); }
157 as_fn_success () { as_fn_return 0; }
158 as_fn_failure () { as_fn_return 1; }
159 as_fn_ret_success () { return 0; }
160 as_fn_ret_failure () { return 1; }
163 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
164 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
165 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
166 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
167 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
170 exitcode=1; echo positional parameters were not saved.
172 test x\$exitcode = x0 || exit 1"
173 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
174 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
177 test \$(( 1 + 1 )) = 2 || exit 1
179 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
180 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
182 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
183 PATH=/empty FPATH=/empty; export PATH FPATH
184 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
185 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
186 if (eval "$as_required") 2>/dev
/null
; then :
191 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
194 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
196 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
199 test -z "$as_dir" && as_dir
=.
203 for as_base
in sh bash ksh sh5
; do
204 # Try only shells that exist, to save several forks.
205 as_shell
=$as_dir/$as_base
206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
208 CONFIG_SHELL
=$as_shell as_have_required
=yes
209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
217 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
218 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
219 CONFIG_SHELL
=$SHELL as_have_required
=yes
224 if test "x$CONFIG_SHELL" != x
; then :
225 # We cannot yet assume a decent shell, so we have to provide a
226 # neutralization value for shells without unset; and this also
227 # works around shells that cannot unset nonexistent variables.
228 # Preserve -v and -x to the replacement shell.
231 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
234 *v
*x
* | *x
*v
* ) as_opts
=-vx ;;
239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
242 if test x
$as_have_required = xno
; then :
243 $as_echo "$0: This script requires a shell more modern than all"
244 $as_echo "$0: the shells that I found on your system."
245 if test x
${ZSH_VERSION+set} = xset
; then
246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
247 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
249 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
250 $0: including any error possibly output before this
251 $0: message. Then install a modern shell, or manually run
252 $0: the script under such a shell if you do have one."
258 SHELL
=${CONFIG_SHELL-/bin/sh}
260 # Unset more variables known to interfere with behavior of common tools.
261 CLICOLOR_FORCE
= GREP_OPTIONS
=
262 unset CLICOLOR_FORCE GREP_OPTIONS
264 ## --------------------- ##
265 ## M4sh Shell Functions. ##
266 ## --------------------- ##
269 # Portably unset VAR.
272 { eval $1=; unset $1;}
276 # as_fn_set_status STATUS
277 # -----------------------
278 # Set $? to STATUS, without forking.
286 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
296 # Create "$as_dir" as a directory, including parents if necessary.
301 -*) as_dir
=.
/$as_dir;;
303 test -d "$as_dir" || eval $as_mkdir_p || {
307 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
310 as_dirs
="'$as_qdir' $as_dirs"
311 as_dir
=`$as_dirname -- "$as_dir" ||
312 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
313 X"$as_dir" : 'X\(//\)[^/]' \| \
314 X"$as_dir" : 'X\(//\)$' \| \
315 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
316 $as_echo X"$as_dir" |
317 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
334 test -d "$as_dir" && break
336 test -z "$as_dirs" || eval "mkdir $as_dirs"
337 } || test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
341 # as_fn_append VAR VALUE
342 # ----------------------
343 # Append the text in VALUE to the end of the definition contained in VAR. Take
344 # advantage of any shell optimizations that allow amortized linear growth over
345 # repeated appends, instead of the typical quadratic growth present in naive
347 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
348 eval 'as_fn_append ()
361 # Perform arithmetic evaluation on the ARGs, and store the result in the
362 # global $as_val. Take advantage of shells that can avoid forks. The arguments
363 # must be portable across $(()) and expr.
364 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
372 as_val
=`expr "$@" || test $? -eq 1`
377 # as_fn_error STATUS ERROR [LINENO LOG_FD]
378 # ----------------------------------------
379 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
380 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
381 # script with STATUS, using 1 if that was 0.
384 as_status
=$1; test $as_status -eq 0 && as_status
=1
386 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
387 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
389 $as_echo "$as_me: error: $2" >&2
390 as_fn_exit
$as_status
393 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
394 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
400 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
406 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
412 as_me
=`$as_basename -- "$0" ||
413 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
414 X"$0" : 'X\(//\)$' \| \
415 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
417 sed '/^.*\/\([^/][^/]*\)\/*$/{
431 # Avoid depending upon Character Ranges.
432 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
433 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
434 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
435 as_cr_digits
='0123456789'
436 as_cr_alnum
=$as_cr_Letters$as_cr_digits
439 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
440 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
441 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
442 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
443 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
455 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
459 chmod +x
"$as_me.lineno" ||
460 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
462 # Don't try to exec as it changes $[0], causing all sort of problems
463 # (the dirname of $[0] is not the place where we might find the
464 # original and so on. Autoconf is especially sensitive to this).
466 # Exit status is that of the last command.
470 ECHO_C
= ECHO_N
= ECHO_T
=
471 case `echo -n x` in #(((((
473 case `echo 'xy\c'` in
474 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
476 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
483 rm -f conf$$ conf$$.exe conf$$.
file
484 if test -d conf$$.dir
; then
485 rm -f conf$$.dir
/conf$$.
file
488 mkdir conf$$.dir
2>/dev
/null
490 if (echo >conf$$.
file) 2>/dev
/null
; then
491 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
493 # ... but there are two gotchas:
494 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
495 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
496 # In both cases, we have to default to `cp -p'.
497 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe
||
499 elif ln conf$$.
file conf$$
2>/dev
/null
; then
507 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
508 rmdir conf$$.dir
2>/dev
/null
510 if mkdir -p .
2>/dev
/null
; then
511 as_mkdir_p
='mkdir -p "$as_dir"'
513 test -d .
/-p && rmdir .
/-p
517 if test -x / >/dev
/null
2>&1; then
520 if ls -dL / >/dev
/null
2>&1; then
527 if test -d "$1"; then
533 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
534 ???[sx]*):;;*)false;;esac;fi
538 as_executable_p
=$as_test_x
540 # Sed expression to map a string onto a valid CPP name.
541 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
543 # Sed expression to map a string onto a valid variable name.
544 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
546 SHELL
=${CONFIG_SHELL-/bin/sh}
549 test -n "$DJDIR" || exec 7<&0 </dev
/null
553 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
554 # so uname gets run too.
555 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
560 ac_default_prefix
=/usr
/local
562 ac_config_libobj_dir
=.
569 # Identity of this package.
570 PACKAGE_NAME
='libratbox'
571 PACKAGE_TARNAME
='libratbox'
572 PACKAGE_VERSION
='devel'
573 PACKAGE_STRING
='libratbox devel'
577 ac_default_prefix
=/usr
/local
/libratbox
578 # Factoring default headers for most tests.
579 ac_includes_default
="\
581 #ifdef HAVE_SYS_TYPES_H
582 # include <sys/types.h>
584 #ifdef HAVE_SYS_STAT_H
585 # include <sys/stat.h>
591 # ifdef HAVE_STDLIB_H
596 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
601 #ifdef HAVE_STRINGS_H
602 # include <strings.h>
604 #ifdef HAVE_INTTYPES_H
605 # include <inttypes.h>
615 ac_subst_vars
='am__EXEEXT_FALSE
663 MAINTAINER_MODE_FALSE
693 INSTALL_STRIP_PROGRAM
735 program_transform_name
748 enable_option_checking
749 enable_dependency_tracking
752 enable_maintainer_mode
766 ac_precious_vars
='build_alias
780 # Initialize some variables set by options.
782 ac_init_version
=false
783 ac_unrecognized_opts
=
785 # The variables have the same names as the options, with
786 # dashes changed to underlines.
794 program_transform_name
=s
,x
,x
,
802 # Installation directory options.
803 # These are left unexpanded so users can "make install exec_prefix=/foo"
804 # and all the variables that are supposed to be based on exec_prefix
805 # by default will actually change.
806 # Use braces instead of parens because sh, perl, etc. also accept them.
807 # (The list follows the same order as the GNU Coding Standards.)
808 bindir
='${exec_prefix}/bin'
809 sbindir
='${exec_prefix}/sbin'
810 libexecdir
='${exec_prefix}/libexec'
811 datarootdir
='${prefix}/share'
812 datadir
='${datarootdir}'
813 sysconfdir
='${prefix}/etc'
814 sharedstatedir
='${prefix}/com'
815 localstatedir
='${prefix}/var'
816 includedir
='${prefix}/include'
817 oldincludedir
='/usr/include'
818 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
819 infodir
='${datarootdir}/info'
824 libdir
='${exec_prefix}/lib'
825 localedir
='${datarootdir}/locale'
826 mandir
='${datarootdir}/man'
832 # If the previous option needs an argument, assign it.
833 if test -n "$ac_prev"; then
834 eval $ac_prev=\
$ac_option
840 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
845 # Accept the important Cygnus configure options, so we can diagnose typos.
847 case $ac_dashdash$ac_option in
851 -bindir | --bindir | --bindi | --bind | --bin | --bi)
853 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
856 -build | --build | --buil | --bui | --bu)
857 ac_prev
=build_alias
;;
858 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
859 build_alias
=$ac_optarg ;;
861 -cache-file | --cache-file | --cache-fil | --cache-fi \
862 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
863 ac_prev
=cache_file
;;
864 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
865 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
866 cache_file
=$ac_optarg ;;
869 cache_file
=config.cache
;;
871 -datadir | --datadir | --datadi | --datad)
873 -datadir=* | --datadir=* | --datadi=* | --datad=*)
874 datadir
=$ac_optarg ;;
876 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
877 | --dataroo | --dataro | --datar)
878 ac_prev
=datarootdir
;;
879 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
880 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
881 datarootdir
=$ac_optarg ;;
883 -disable-* | --disable-*)
884 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
885 # Reject names that are not valid shell variable names.
886 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
887 as_fn_error $?
"invalid feature name: $ac_useropt"
888 ac_useropt_orig
=$ac_useropt
889 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
890 case $ac_user_opts in
894 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
895 ac_unrecognized_sep
=', ';;
897 eval enable_
$ac_useropt=no
;;
899 -docdir | --docdir | --docdi | --doc | --do)
901 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
904 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
906 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
909 -enable-* | --enable-*)
910 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
911 # Reject names that are not valid shell variable names.
912 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
913 as_fn_error $?
"invalid feature name: $ac_useropt"
914 ac_useropt_orig
=$ac_useropt
915 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
916 case $ac_user_opts in
920 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
921 ac_unrecognized_sep
=', ';;
923 eval enable_
$ac_useropt=\
$ac_optarg ;;
925 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
926 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
927 | --exec | --exe | --ex)
928 ac_prev
=exec_prefix
;;
929 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
930 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
931 | --exec=* | --exe=* | --ex=*)
932 exec_prefix
=$ac_optarg ;;
934 -gas | --gas | --ga | --g)
935 # Obsolete; use --with-gas.
938 -help | --help | --hel | --he | -h)
940 -help=r
* | --help=r
* | --hel=r
* | --he=r
* | -hr*)
941 ac_init_help
=recursive
;;
942 -help=s
* | --help=s
* | --hel=s
* | --he=s
* | -hs*)
943 ac_init_help
=short
;;
945 -host | --host | --hos | --ho)
946 ac_prev
=host_alias
;;
947 -host=* | --host=* | --hos=* | --ho=*)
948 host_alias
=$ac_optarg ;;
950 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
952 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
954 htmldir
=$ac_optarg ;;
956 -includedir | --includedir | --includedi | --included | --include \
957 | --includ | --inclu | --incl | --inc)
958 ac_prev
=includedir
;;
959 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
960 | --includ=* | --inclu=* | --incl=* | --inc=*)
961 includedir
=$ac_optarg ;;
963 -infodir | --infodir | --infodi | --infod | --info | --inf)
965 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
966 infodir
=$ac_optarg ;;
968 -libdir | --libdir | --libdi | --libd)
970 -libdir=* | --libdir=* | --libdi=* | --libd=*)
973 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
974 | --libexe | --libex | --libe)
975 ac_prev
=libexecdir
;;
976 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
977 | --libexe=* | --libex=* | --libe=*)
978 libexecdir
=$ac_optarg ;;
980 -localedir | --localedir | --localedi | --localed | --locale)
982 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
983 localedir
=$ac_optarg ;;
985 -localstatedir | --localstatedir | --localstatedi | --localstated \
986 | --localstate | --localstat | --localsta | --localst | --locals)
987 ac_prev
=localstatedir
;;
988 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
989 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
990 localstatedir
=$ac_optarg ;;
992 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
994 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
998 # Obsolete; use --without-fp.
1001 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1002 | --no-cr | --no-c | -n)
1005 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1006 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1009 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1010 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1011 | --oldin | --oldi | --old | --ol | --o)
1012 ac_prev
=oldincludedir
;;
1013 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1014 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1015 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1016 oldincludedir
=$ac_optarg ;;
1018 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1020 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1021 prefix
=$ac_optarg ;;
1023 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1024 | --program-pre | --program-pr | --program-p)
1025 ac_prev
=program_prefix
;;
1026 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1027 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1028 program_prefix
=$ac_optarg ;;
1030 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1031 | --program-suf | --program-su | --program-s)
1032 ac_prev
=program_suffix
;;
1033 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1034 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1035 program_suffix
=$ac_optarg ;;
1037 -program-transform-name | --program-transform-name \
1038 | --program-transform-nam | --program-transform-na \
1039 | --program-transform-n | --program-transform- \
1040 | --program-transform | --program-transfor \
1041 | --program-transfo | --program-transf \
1042 | --program-trans | --program-tran \
1043 | --progr-tra | --program-tr | --program-t)
1044 ac_prev
=program_transform_name
;;
1045 -program-transform-name=* | --program-transform-name=* \
1046 | --program-transform-nam=* | --program-transform-na=* \
1047 | --program-transform-n=* | --program-transform-=* \
1048 | --program-transform=* | --program-transfor=* \
1049 | --program-transfo=* | --program-transf=* \
1050 | --program-trans=* | --program-tran=* \
1051 | --progr-tra=* | --program-tr=* | --program-t=*)
1052 program_transform_name
=$ac_optarg ;;
1054 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1056 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1057 pdfdir
=$ac_optarg ;;
1059 -psdir | --psdir | --psdi | --psd | --ps)
1061 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1064 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1065 | -silent | --silent | --silen | --sile | --sil)
1068 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1070 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1072 sbindir
=$ac_optarg ;;
1074 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1075 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1076 | --sharedst | --shareds | --shared | --share | --shar \
1078 ac_prev
=sharedstatedir
;;
1079 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1080 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1081 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1083 sharedstatedir
=$ac_optarg ;;
1085 -site | --site | --sit)
1087 -site=* | --site=* | --sit=*)
1090 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1092 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1093 srcdir
=$ac_optarg ;;
1095 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1096 | --syscon | --sysco | --sysc | --sys | --sy)
1097 ac_prev
=sysconfdir
;;
1098 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1099 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1100 sysconfdir
=$ac_optarg ;;
1102 -target | --target | --targe | --targ | --tar | --ta | --t)
1103 ac_prev
=target_alias
;;
1104 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1105 target_alias
=$ac_optarg ;;
1107 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1110 -version | --version | --versio | --versi | --vers | -V)
1111 ac_init_version
=: ;;
1114 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1115 # Reject names that are not valid shell variable names.
1116 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1117 as_fn_error $?
"invalid package name: $ac_useropt"
1118 ac_useropt_orig
=$ac_useropt
1119 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1120 case $ac_user_opts in
1124 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1125 ac_unrecognized_sep
=', ';;
1127 eval with_
$ac_useropt=\
$ac_optarg ;;
1129 -without-* | --without-*)
1130 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1131 # Reject names that are not valid shell variable names.
1132 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1133 as_fn_error $?
"invalid package name: $ac_useropt"
1134 ac_useropt_orig
=$ac_useropt
1135 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1136 case $ac_user_opts in
1140 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1141 ac_unrecognized_sep
=', ';;
1143 eval with_
$ac_useropt=no
;;
1146 # Obsolete; use --with-x.
1149 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1150 | --x-incl | --x-inc | --x-in | --x-i)
1151 ac_prev
=x_includes
;;
1152 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1153 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1154 x_includes
=$ac_optarg ;;
1156 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1157 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1158 ac_prev
=x_libraries
;;
1159 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1160 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1161 x_libraries
=$ac_optarg ;;
1163 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1164 Try \`$0 --help' for more information"
1168 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1169 # Reject names that are not valid shell variable names.
1170 case $ac_envvar in #(
1171 '' | [0-9]* | *[!_$as_cr_alnum]* )
1172 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1174 eval $ac_envvar=\
$ac_optarg
1175 export $ac_envvar ;;
1178 # FIXME: should be removed in autoconf 3.0.
1179 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1180 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1181 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1182 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1188 if test -n "$ac_prev"; then
1189 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1190 as_fn_error $?
"missing argument to $ac_option"
1193 if test -n "$ac_unrecognized_opts"; then
1194 case $enable_option_checking in
1196 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1197 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1201 # Check all directory arguments for consistency.
1202 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1203 datadir sysconfdir sharedstatedir localstatedir includedir \
1204 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1205 libdir localedir mandir
1207 eval ac_val
=\$
$ac_var
1208 # Remove trailing slashes.
1211 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1212 eval $ac_var=\
$ac_val;;
1214 # Be sure to have absolute directory names.
1216 [\\/$
]* | ?
:[\\/]* ) continue;;
1217 NONE
| '' ) case $ac_var in *prefix
) continue;; esac;;
1219 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1222 # There might be people who depend on the old broken behavior: `$host'
1223 # used to hold the argument of --host etc.
1224 # FIXME: To remove some day.
1227 target
=$target_alias
1229 # FIXME: To remove some day.
1230 if test "x$host_alias" != x
; then
1231 if test "x$build_alias" = x
; then
1232 cross_compiling
=maybe
1233 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1234 If a cross compiler is detected then cross compile mode will be used" >&2
1235 elif test "x$build_alias" != "x$host_alias"; then
1241 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1243 test "$silent" = yes && exec 6>/dev
/null
1246 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1247 ac_ls_di
=`ls -di .` &&
1248 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1249 as_fn_error $?
"working directory cannot be determined"
1250 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1251 as_fn_error $?
"pwd does not report name of working directory"
1254 # Find the source files, if location was not specified.
1255 if test -z "$srcdir"; then
1256 ac_srcdir_defaulted
=yes
1257 # Try the directory containing this script, then the parent directory.
1258 ac_confdir
=`$as_dirname -- "$as_myself" ||
1259 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1260 X"$as_myself" : 'X\(//\)[^/]' \| \
1261 X"$as_myself" : 'X\(//\)$' \| \
1262 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1263 $as_echo X"$as_myself" |
1264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1282 if test ! -r "$srcdir/$ac_unique_file"; then
1286 ac_srcdir_defaulted
=no
1288 if test ! -r "$srcdir/$ac_unique_file"; then
1289 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1290 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1292 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1294 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1296 # When building in place, set srcdir=.
1297 if test "$ac_abs_confdir" = "$ac_pwd"; then
1300 # Remove unnecessary trailing slashes from srcdir.
1301 # Double slashes in file names in object file debugging info
1302 # mess up M-x gdb in Emacs.
1304 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1306 for ac_var
in $ac_precious_vars; do
1307 eval ac_env_
${ac_var}_set
=\
${${ac_var}+set}
1308 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1309 eval ac_cv_env_
${ac_var}_set
=\
${${ac_var}+set}
1310 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1314 # Report the --help message.
1316 if test "$ac_init_help" = "long"; then
1317 # Omit some internal or obsolete options to make the list less imposing.
1318 # This message is too long to be a string in the A/UX 3.1 sh.
1320 \`configure' configures libratbox devel to adapt to many kinds of systems.
1322 Usage: $0 [OPTION]... [VAR=VALUE]...
1324 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1325 VAR=VALUE. See below for descriptions of some of the useful variables.
1327 Defaults for the options are specified in brackets.
1330 -h, --help display this help and exit
1331 --help=short display options specific to this package
1332 --help=recursive display the short help of all the included packages
1333 -V, --version display version information and exit
1334 -q, --quiet, --silent do not print \`checking ...' messages
1335 --cache-file=FILE cache test results in FILE [disabled]
1336 -C, --config-cache alias for \`--cache-file=config.cache'
1337 -n, --no-create do not create output files
1338 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1340 Installation directories:
1341 --prefix=PREFIX install architecture-independent files in PREFIX
1342 [$ac_default_prefix]
1343 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1346 By default, \`make install' will install all the files in
1347 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1348 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1349 for instance \`--prefix=\$HOME'.
1351 For better control, use the options below.
1353 Fine tuning of the installation directories:
1354 --bindir=DIR user executables [EPREFIX/bin]
1355 --sbindir=DIR system admin executables [EPREFIX/sbin]
1356 --libexecdir=DIR program executables [EPREFIX/libexec]
1357 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1358 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1359 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1360 --libdir=DIR object code libraries [EPREFIX/lib]
1361 --includedir=DIR C header files [PREFIX/include]
1362 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1363 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1364 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1365 --infodir=DIR info documentation [DATAROOTDIR/info]
1366 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1367 --mandir=DIR man documentation [DATAROOTDIR/man]
1368 --docdir=DIR documentation root [DATAROOTDIR/doc/libratbox]
1369 --htmldir=DIR html documentation [DOCDIR]
1370 --dvidir=DIR dvi documentation [DOCDIR]
1371 --pdfdir=DIR pdf documentation [DOCDIR]
1372 --psdir=DIR ps documentation [DOCDIR]
1378 --program-prefix=PREFIX prepend PREFIX to installed program names
1379 --program-suffix=SUFFIX append SUFFIX to installed program names
1380 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1383 --build=BUILD configure
for building on BUILD
[guessed
]
1384 --host=HOST cross
-compile to build programs to run on HOST
[BUILD
]
1388 if test -n "$ac_init_help"; then
1389 case $ac_init_help in
1390 short
| recursive
) echo "Configuration of libratbox devel:";;
1395 --disable-option-checking ignore unrecognized
--enable/--with options
1396 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1397 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1398 --disable-dependency-tracking speeds up one
-time build
1399 --enable-dependency-tracking do not reject slow dependency extractors
1400 --enable-static[=PKGS
] build static libraries
[default
=no
]
1401 --enable-shared[=PKGS
] build shared libraries
[default
=yes]
1402 --enable-maintainer-mode enable make rules and dependencies not useful
1403 (and sometimes confusing
) to the casual installer
1404 --enable-fast-install[=PKGS
]
1405 optimize
for fast installation
[default
=yes]
1406 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1407 --disable-ipv6 Disable IPv6 support
1408 --enable-openssl=DIR Enable OpenSSL support
(DIR optional
).
1409 --disable-openssl Disable OpenSSL support.
1410 --enable-gnutls Enable GnuTLS support.
1411 --disable-gnutls Disable GnuTLS support.
1412 --enable-assert Enable assert
(). Choose between soft
(warnings
) and
1413 hard
(aborts the daemon
)
1414 --enable-profile Enable profiling
1415 --disable-balloc Disable the block allocator.
1416 --enable-warnings Enable all sorts of warnings
for debugging.
1419 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1420 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1421 --with-pic try to use only PIC
/non
-PIC objects
[default
=use
1423 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1424 --with-sysroot=DIR Search
for dependent libraries within DIR
1425 (or the compiler
's sysroot if not specified).
1427 Some influential environment variables:
1428 CC C compiler command
1429 CFLAGS C compiler flags
1430 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1431 nonstandard directory <lib dir>
1432 LIBS libraries to pass to the linker, e.g. -l<library>
1433 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1434 you have headers in a nonstandard directory <include dir>
1436 PKG_CONFIG path to pkg-config utility
1438 C compiler flags for GNUTLS, overriding pkg-config
1439 GNUTLS_LIBS linker flags for GNUTLS, overriding pkg-config
1441 Use these variables to override the choices made by `configure' or to
help
1442 it to
find libraries and programs with nonstandard names
/locations.
1444 Report bugs to the package provider.
1449 if test "$ac_init_help" = "recursive"; then
1450 # If there are subdirs, report their specific --help.
1451 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1452 test -d "$ac_dir" ||
1453 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1458 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1460 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1461 # A ".." for each directory in $ac_dir_suffix.
1462 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1463 case $ac_top_builddir_sub in
1464 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1465 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1468 ac_abs_top_builddir
=$ac_pwd
1469 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1470 # for backward compatibility:
1471 ac_top_builddir
=$ac_top_build_prefix
1474 .
) # We are building in place.
1476 ac_top_srcdir
=$ac_top_builddir_sub
1477 ac_abs_top_srcdir
=$ac_pwd ;;
1478 [\\/]* | ?
:[\\/]* ) # Absolute name.
1479 ac_srcdir
=$srcdir$ac_dir_suffix;
1480 ac_top_srcdir
=$srcdir
1481 ac_abs_top_srcdir
=$srcdir ;;
1483 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1484 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1485 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1487 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1489 cd "$ac_dir" || { ac_status
=$?
; continue; }
1490 # Check for guested configure.
1491 if test -f "$ac_srcdir/configure.gnu"; then
1493 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1494 elif test -f "$ac_srcdir/configure"; then
1496 $SHELL "$ac_srcdir/configure" --help=recursive
1498 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1500 cd "$ac_pwd" || { ac_status
=$?
; break; }
1504 test -n "$ac_init_help" && exit $ac_status
1505 if $ac_init_version; then
1507 libratbox configure devel
1508 generated by GNU Autoconf
2.68
1510 Copyright
(C
) 2010 Free Software Foundation
, Inc.
1511 This configure
script is free software
; the Free Software Foundation
1512 gives unlimited permission to copy
, distribute and modify it.
1514 $Id: configure.ac
26260 2008-12-10 04:08:39Z androsyn $
1519 ## ------------------------ ##
1520 ## Autoconf initialization. ##
1521 ## ------------------------ ##
1523 # ac_fn_c_try_compile LINENO
1524 # --------------------------
1525 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1526 ac_fn_c_try_compile
()
1528 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1529 rm -f conftest.
$ac_objext
1530 if { { ac_try
="$ac_compile"
1532 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
1533 *) ac_try_echo=$ac_try;;
1535 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1536 $as_echo "$ac_try_echo"; } >&5
1537 (eval "$ac_compile") 2>conftest.err
1539 if test -s conftest.err; then
1540 grep -v '^ *+' conftest.err >conftest.er1
1541 cat conftest.er1 >&5
1542 mv -f conftest.er1 conftest.err
1544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1545 test $ac_status = 0; } && {
1546 test -z "$ac_c_werror_flag" ||
1547 test ! -s conftest.err
1548 } && test -s conftest.$ac_objext; then :
1551 $as_echo "$as_me: failed program was:" >&5
1552 sed 's/^/| /' conftest.$ac_ext >&5
1556 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1557 as_fn_set_status $ac_retval
1559 } # ac_fn_c_try_compile
1561 # ac_fn_c_try_cpp LINENO
1562 # ----------------------
1563 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1566 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1567 if { { ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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; } > conftest.i
&& {
1583 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1584 test ! -s conftest.err
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
1598 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1599 # -------------------------------------------------------
1600 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1601 # the include files in INCLUDES and setting the cache variable VAR
1603 ac_fn_c_check_header_mongrel
()
1605 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1606 if eval \
${$3+:} false
; then :
1607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1608 $as_echo_n "checking for $2... " >&6; }
1609 if eval \
${$3+:} false
; then :
1610 $as_echo_n "(cached) " >&6
1613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1614 $as_echo "$ac_res" >&6; }
1616 # Is the header compilable?
1617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1618 $as_echo_n "checking $2 usability... " >&6; }
1619 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1620 /* end confdefs.h. */
1624 if ac_fn_c_try_compile
"$LINENO"; then :
1625 ac_header_compiler
=yes
1627 ac_header_compiler
=no
1629 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1631 $as_echo "$ac_header_compiler" >&6; }
1633 # Is the header present?
1634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1635 $as_echo_n "checking $2 presence... " >&6; }
1636 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1637 /* end confdefs.h. */
1640 if ac_fn_c_try_cpp
"$LINENO"; then :
1641 ac_header_preproc
=yes
1643 ac_header_preproc
=no
1645 rm -f conftest.err conftest.i conftest.
$ac_ext
1646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1647 $as_echo "$ac_header_preproc" >&6; }
1649 # So? What about this header?
1650 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1653 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1655 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1659 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1661 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1663 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1665 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1667 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1671 $as_echo_n "checking for $2... " >&6; }
1672 if eval \
${$3+:} false
; then :
1673 $as_echo_n "(cached) " >&6
1675 eval "$3=\$ac_header_compiler"
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1679 $as_echo "$ac_res" >&6; }
1681 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1683 } # ac_fn_c_check_header_mongrel
1685 # ac_fn_c_try_run LINENO
1686 # ----------------------
1687 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1688 # that executables *can* be run.
1691 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1692 if { { ac_try
="$ac_link"
1694 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
1695 *) ac_try_echo=$ac_try;;
1697 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1698 $as_echo "$ac_try_echo"; } >&5
1699 (eval "$ac_link") 2>&5
1701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1703 { { case "(($ac_try" in
1704 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
1705 *) ac_try_echo
=$ac_try;;
1707 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708 $as_echo "$ac_try_echo"; } >&5
1709 (eval "$ac_try") 2>&5
1711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1712 test $ac_status = 0; }; }; then :
1715 $as_echo "$as_me: program exited with status $ac_status" >&5
1716 $as_echo "$as_me: failed program was:" >&5
1717 sed 's/^/| /' conftest.
$ac_ext >&5
1719 ac_retval
=$ac_status
1721 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1722 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1723 as_fn_set_status
$ac_retval
1727 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1728 # -------------------------------------------------------
1729 # Tests whether HEADER exists and can be compiled using the include files in
1730 # INCLUDES, setting the cache variable VAR accordingly.
1731 ac_fn_c_check_header_compile
()
1733 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1735 $as_echo_n "checking for $2... " >&6; }
1736 if eval \
${$3+:} false
; then :
1737 $as_echo_n "(cached) " >&6
1739 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1740 /* end confdefs.h. */
1744 if ac_fn_c_try_compile
"$LINENO"; then :
1749 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1753 $as_echo "$ac_res" >&6; }
1754 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1756 } # ac_fn_c_check_header_compile
1758 # ac_fn_c_try_link LINENO
1759 # -----------------------
1760 # Try to link conftest.$ac_ext, and return whether this succeeded.
1763 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1764 rm -f conftest.
$ac_objext conftest
$ac_exeext
1765 if { { ac_try
="$ac_link"
1767 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
1768 *) ac_try_echo=$ac_try;;
1770 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1771 $as_echo "$ac_try_echo"; } >&5
1772 (eval "$ac_link") 2>conftest.err
1774 if test -s conftest.err; then
1775 grep -v '^ *+' conftest.err >conftest.er1
1776 cat conftest.er1 >&5
1777 mv -f conftest.er1 conftest.err
1779 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1780 test $ac_status = 0; } && {
1781 test -z "$ac_c_werror_flag" ||
1782 test ! -s conftest.err
1783 } && test -s conftest$ac_exeext && {
1784 test "$cross_compiling" = yes ||
1785 $as_test_x conftest$ac_exeext
1789 $as_echo "$as_me: failed program was:" >&5
1790 sed 's/^/| /' conftest.$ac_ext >&5
1794 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1795 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1796 # interfere with the next link command; also delete a directory that is
1797 # left behind by Apple's compiler. We do this before executing the actions.
1798 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1799 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1800 as_fn_set_status $ac_retval
1802 } # ac_fn_c_try_link
1804 # ac_fn_c_check_func LINENO FUNC VAR
1805 # ----------------------------------
1806 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1807 ac_fn_c_check_func ()
1809 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1811 $as_echo_n "checking for $2... " >&6; }
1812 if eval \${$3+:} false; then :
1813 $as_echo_n "(cached) " >&6
1815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1816 /* end confdefs.h. */
1817 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1818 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1819 #define $2 innocuous_$2
1821 /* System header to define __stub macros and hopefully few prototypes,
1822 which can conflict with char $2 (); below.
1823 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1824 <limits.h> exists even on freestanding compilers. */
1827 # include <limits.h>
1829 # include <assert.h>
1834 /* Override any GCC internal prototype to avoid an error.
1835 Use char because int might match the return type of a GCC
1836 builtin and then its argument prototype would still apply. */
1841 /* The GNU C library defines this for functions which it implements
1842 to always fail with ENOSYS. Some functions are actually named
1843 something starting with __ and the normal name is an alias. */
1844 #if defined __stub_$2 || defined __stub___$2
1856 if ac_fn_c_try_link "$LINENO"; then :
1861 rm -f core conftest.err conftest.$ac_objext \
1862 conftest$ac_exeext conftest.$ac_ext
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1866 $as_echo "$ac_res" >&6; }
1867 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1869 } # ac_fn_c_check_func
1871 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1872 # -------------------------------------------
1873 # Tests whether TYPE exists after having included INCLUDES, setting cache
1874 # variable VAR accordingly.
1875 ac_fn_c_check_type ()
1877 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1879 $as_echo_n "checking for $2... " >&6; }
1880 if eval \${$3+:} false; then :
1881 $as_echo_n "(cached) " >&6
1884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1885 /* end confdefs.h. */
1896 if ac_fn_c_try_compile "$LINENO"; then :
1897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1898 /* end confdefs.h. */
1909 if ac_fn_c_try_compile "$LINENO"; then :
1914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1920 $as_echo "$ac_res" >&6; }
1921 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1923 } # ac_fn_c_check_type
1925 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1926 # ----------------------------------------------------
1927 # Tries to find if the field MEMBER exists in type AGGR, after including
1928 # INCLUDES, setting cache variable VAR accordingly.
1929 ac_fn_c_check_member ()
1931 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1933 $as_echo_n "checking for $2.$3... " >&6; }
1934 if eval \${$4+:} false; then :
1935 $as_echo_n "(cached) " >&6
1937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1938 /* end confdefs.h. */
1950 if ac_fn_c_try_compile "$LINENO"; then :
1953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1954 /* end confdefs.h. */
1960 if (sizeof ac_aggr.$3)
1966 if ac_fn_c_try_compile "$LINENO"; then :
1971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1977 $as_echo "$ac_res" >&6; }
1978 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1980 } # ac_fn_c_check_member
1981 cat >config.log <<_ACEOF
1982 This file contains any messages produced by compilers while
1983 running configure, to aid debugging if configure makes a mistake.
1985 It was created by libratbox $as_me devel, which was
1986 generated by GNU Autoconf 2.68. Invocation command line was
1998 hostname = `(hostname
|| uname
-n) 2>/dev
/null
| sed 1q
`
1999 uname -m = `(uname
-m) 2>/dev
/null
|| echo unknown
`
2000 uname -r = `(uname
-r) 2>/dev
/null
|| echo unknown
`
2001 uname -s = `(uname
-s) 2>/dev
/null
|| echo unknown
`
2002 uname -v = `(uname
-v) 2>/dev
/null
|| echo unknown
`
2004 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null
|| echo unknown
`
2005 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null
|| echo unknown
`
2007 /bin/arch = `(/bin
/arch
) 2>/dev
/null
|| echo unknown
`
2008 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null
|| echo unknown
`
2009 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null
|| echo unknown
`
2010 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null
|| echo unknown
`
2011 /bin/machine = `(/bin
/machine
) 2>/dev
/null
|| echo unknown
`
2012 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null
|| echo unknown
`
2013 /bin/universe = `(/bin
/universe
) 2>/dev
/null
|| echo unknown
`
2017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2021 test -z "$as_dir" && as_dir=.
2022 $as_echo "PATH: $as_dir"
2038 # Keep a trace of the command line.
2039 # Strip out --no-create and --no-recursion so they do not pile up.
2040 # Strip out --silent because we don't want to record it for future runs.
2041 # Also quote any args containing shell meta-characters.
2042 # Make two passes to allow for proper duplicate-argument suppression.
2046 ac_must_keep_next=false
2052 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2053 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2054 | -silent | --silent | --silen | --sile | --sil)
2057 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2060 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2062 as_fn_append ac_configure_args1 " '$ac_arg'"
2063 if test $ac_must_keep_next = true; then
2064 ac_must_keep_next=false # Got value, back to normal.
2067 *=* | --config-cache | -C | -disable-* | --disable-* \
2068 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2069 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2070 | -with-* | --with-* | -without-* | --without-* | --x)
2071 case "$ac_configure_args0 " in
2072 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2075 -* ) ac_must_keep_next=true ;;
2078 as_fn_append ac_configure_args " '$ac_arg'"
2083 { ac_configure_args0=; unset ac_configure_args0;}
2084 { ac_configure_args1=; unset ac_configure_args1;}
2086 # When interrupted or exit'd, cleanup temporary files, and complete
2087 # config.log. We remove comments because anyway the quotes in there
2088 # would cause problems or look ugly.
2089 # WARNING: Use '\'' to represent an apostrophe within the trap.
2090 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2091 trap 'exit_status=$?
2092 # Save into config.log some information that might help in debugging.
2096 $as_echo "## ---------------- ##
2097 ## Cache variables. ##
2098 ## ---------------- ##"
2100 # The following way of writing the cache mishandles newlines in values,
2102 for ac_var in `(set) 2>&1 | sed -n '\''s
/^\
([a
-zA-Z_][a
-zA-Z0-9_]*\
)=.
*/\
1/p
'\''`; do
2103 eval ac_val=\$$ac_var
2107 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2108 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2111 _ | IFS | as_nl) ;; #(
2112 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2113 *) { eval $ac_var=; unset $ac_var;} ;;
2118 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2119 *${as_nl}ac_space=\ *)
2121 "s/'\''/'\''\\\\'\'''\''/g;
2122 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2125 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2132 $as_echo "## ----------------- ##
2133 ## Output variables. ##
2134 ## ----------------- ##"
2136 for ac_var in $ac_subst_vars
2138 eval ac_val=\$$ac_var
2140 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2142 $as_echo "$ac_var='\''$ac_val'\''"
2146 if test -n "$ac_subst_files"; then
2147 $as_echo "## ------------------- ##
2148 ## File substitutions. ##
2149 ## ------------------- ##"
2151 for ac_var in $ac_subst_files
2153 eval ac_val=\$$ac_var
2155 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2157 $as_echo "$ac_var='\''$ac_val'\''"
2162 if test -s confdefs.h; then
2163 $as_echo "## ----------- ##
2170 test "$ac_signal" != 0 &&
2171 $as_echo "$as_me: caught signal $ac_signal"
2172 $as_echo "$as_me: exit $exit_status"
2174 rm -f core *.core core.conftest.* &&
2175 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2178 for ac_signal in 1 2 13 15; do
2179 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2183 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2184 rm -f -r conftest* confdefs.h
2186 $as_echo "/* confdefs.h */" > confdefs.h
2188 # Predefined preprocessor variables.
2190 cat >>confdefs.h <<_ACEOF
2191 #define PACKAGE_NAME "$PACKAGE_NAME"
2194 cat >>confdefs.h <<_ACEOF
2195 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2198 cat >>confdefs.h <<_ACEOF
2199 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2202 cat >>confdefs.h <<_ACEOF
2203 #define PACKAGE_STRING "$PACKAGE_STRING"
2206 cat >>confdefs.h <<_ACEOF
2207 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2210 cat >>confdefs.h <<_ACEOF
2211 #define PACKAGE_URL "$PACKAGE_URL"
2215 # Let the site file select an alternate cache file if it wants to.
2216 # Prefer an explicitly selected file to automatically selected ones.
2219 if test -n "$CONFIG_SITE"; then
2220 # We do not want a PATH search for config.site.
2221 case $CONFIG_SITE in #((
2222 -*) ac_site_file1=./$CONFIG_SITE;;
2223 */*) ac_site_file1=$CONFIG_SITE;;
2224 *) ac_site_file1=./$CONFIG_SITE;;
2226 elif test "x$prefix" != xNONE; then
2227 ac_site_file1=$prefix/share/config.site
2228 ac_site_file2=$prefix/etc/config.site
2230 ac_site_file1=$ac_default_prefix/share/config.site
2231 ac_site_file2=$ac_default_prefix/etc/config.site
2233 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2235 test "x$ac_site_file" = xNONE && continue
2236 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2238 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2239 sed 's/^/| /' "$ac_site_file" >&5
2241 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2242 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2243 as_fn_error $? "failed to load site
script $ac_site_file
2244 See \
`config.log' for more details" "$LINENO" 5; }
2248 if test -r "$cache_file"; then
2249 # Some versions of bash will fail to source /dev/null (special files
2250 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2251 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2253 $as_echo "$as_me: loading cache $cache_file" >&6;}
2255 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2256 *) . "./$cache_file";;
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2261 $as_echo "$as_me: creating cache $cache_file" >&6;}
2265 as_fn_append ac_header_list " stdlib.h"
2266 as_fn_append ac_header_list " unistd.h"
2267 as_fn_append ac_header_list " sys/param.h"
2268 # Check that the precious variables saved in the cache have kept the same
2270 ac_cache_corrupted=false
2271 for ac_var in $ac_precious_vars; do
2272 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2273 eval ac_new_set=\$ac_env_${ac_var}_set
2274 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2275 eval ac_new_val=\$ac_env_${ac_var}_value
2276 case $ac_old_set,$ac_new_set in
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2279 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2280 ac_cache_corrupted=: ;;
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2283 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2284 ac_cache_corrupted=: ;;
2287 if test "x$ac_old_val" != "x$ac_new_val"; then
2288 # differences in whitespace do not lead to failure.
2289 ac_old_val_w=`echo x
$ac_old_val`
2290 ac_new_val_w=`echo x
$ac_new_val`
2291 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2293 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2294 ac_cache_corrupted=:
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2297 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2298 eval $ac_var=\$ac_old_val
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2301 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2303 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2306 # Pass precious variables to config.status.
2307 if test "$ac_new_set" = set; then
2309 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2310 *) ac_arg=$ac_var=$ac_new_val ;;
2312 case " $ac_configure_args " in
2313 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2314 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2318 if $ac_cache_corrupted; then
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2320 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2322 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2323 as_fn_error $? "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2325 ## -------------------- ##
2326 ## Main body of script. ##
2327 ## -------------------- ##
2330 ac_cpp='$CPP $CPPFLAGS'
2331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2336 am__api_version='1.11'
2339 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2340 if test -f "$ac_dir/install-sh"; then
2342 ac_install_sh="$ac_aux_dir/install-sh -c"
2344 elif test -f "$ac_dir/install.sh"; then
2346 ac_install_sh="$ac_aux_dir/install.sh -c"
2348 elif test -f "$ac_dir/shtool"; then
2350 ac_install_sh="$ac_aux_dir/shtool install -c"
2354 if test -z "$ac_aux_dir"; then
2355 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2358 # These three variables are undocumented and unsupported,
2359 # and are intended to be withdrawn in a future Autoconf release.
2360 # They can cause serious problems if a builder's source tree is in a directory
2361 # whose full name contains unusual characters.
2362 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2363 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2364 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2367 # Find a good install program. We prefer a C program (faster),
2368 # so one script is as good as another. But avoid the broken or
2369 # incompatible versions:
2370 # SysV /etc/install, /usr/sbin/install
2371 # SunOS /usr/etc/install
2372 # IRIX /sbin/install
2374 # AmigaOS /C/install, which installs bootblocks on floppy discs
2375 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2376 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2377 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2378 # OS/2's system install, which has a completely different semantic
2379 # ./install, which can be erroneously created by make from ./install.sh.
2380 # Reject install programs that cannot install multiple files.
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2382 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2383 if test -z "$INSTALL"; then
2384 if ${ac_cv_path_install+:} false; then :
2385 $as_echo_n "(cached) " >&6
2387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2391 test -z "$as_dir" && as_dir=.
2392 # Account for people who put trailing slashes in PATH elements.
2393 case $as_dir/ in #((
2394 ./ | .// | /[cC]/* | \
2395 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2396 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2399 # OSF1 and SCO ODT 3.0 have their own names for install.
2400 # Don't use installbsd from OSF since it installs stuff as root
2402 for ac_prog in ginstall scoinst install; do
2403 for ac_exec_ext in '' $ac_executable_extensions; do
2404 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2405 if test $ac_prog = install &&
2406 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2407 # AIX install. It has an incompatible calling convention.
2409 elif test $ac_prog = install &&
2410 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2411 # program-specific install script used by HP pwplus--don't use.
2414 rm -rf conftest.one conftest.two conftest.dir
2415 echo one > conftest.one
2416 echo two > conftest.two
2418 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2419 test -s conftest.one && test -s conftest.two &&
2420 test -s conftest.dir/conftest.one &&
2421 test -s conftest.dir/conftest.two
2423 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2436 rm -rf conftest.one conftest.two conftest.dir
2439 if test "${ac_cv_path_install+set}" = set; then
2440 INSTALL=$ac_cv_path_install
2442 # As a last resort, use the slow shell script. Don't cache a
2443 # value for INSTALL within a source directory, because that will
2444 # break other packages using the cache if that directory is
2445 # removed, or if the value is a relative name.
2446 INSTALL=$ac_install_sh
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2450 $as_echo "$INSTALL" >&6; }
2452 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2453 # It thinks the first close brace ends the variable substitution.
2454 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2456 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2458 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2461 $as_echo_n "checking whether build environment is sane... " >&6; }
2464 echo timestamp > conftest.file
2465 # Reject unsafe characters in $srcdir or the absolute working directory
2466 # name. Accept space and tab only in the latter.
2470 *[\\\"\#\$\&\'\`$am_lf]*)
2471 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2474 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2475 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2478 # Do `set' in a subshell so we don
't clobber the current shell's
2479 # arguments. Must try -L first in case configure is actually a
2480 # symlink; some systems play weird games with the mod time of symlinks
2481 # (eg FreeBSD returns the mod time of the symlink's containing
2484 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2485 if test "$*" = "X"; then
2487 set X
`ls -t "$srcdir/configure" conftest.file`
2490 if test "$*" != "X $srcdir/configure conftest.file" \
2491 && test "$*" != "X conftest.file $srcdir/configure"; then
2493 # If neither matched, then we have a broken ls. This can happen
2494 # if, for instance, CONFIG_SHELL is bash and it inherits a
2495 # broken ls alias from the environment. This has actually
2496 # happened. Such a system could not be considered "sane".
2497 as_fn_error $?
"ls -t appears to fail. Make sure there is not a broken
2498 alias in your environment" "$LINENO" 5
2501 test "$2" = conftest.
file
2507 as_fn_error $?
"newly created file is older than distributed files!
2508 Check your system clock" "$LINENO" 5
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2511 $as_echo "yes" >&6; }
2512 test "$program_prefix" != NONE
&&
2513 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2514 # Use a double $ so make ignores it.
2515 test "$program_suffix" != NONE
&&
2516 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2517 # Double any \ or $.
2518 # By default was `s,x,x', remove it if useless.
2519 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2520 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2522 # expand $ac_aux_dir to an absolute path
2523 am_aux_dir
=`cd $ac_aux_dir && pwd`
2525 if test x
"${MISSING+set}" != xset
; then
2528 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
2530 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
2533 # Use eval to expand $SHELL
2534 if eval "$MISSING --run true"; then
2535 am_missing_run
="$MISSING --run "
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2539 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2542 if test x
"${install_sh}" != xset
; then
2545 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
2547 install_sh
="\${SHELL} $am_aux_dir/install-sh"
2551 # Installed binaries are usually stripped using `strip' when the user
2552 # run `make install-strip'. However `strip' might not be the right
2553 # tool to use in cross-compilation environments, therefore Automake
2554 # will honor the `STRIP' environment variable to overrule this program.
2555 if test "$cross_compiling" != no
; then
2556 if test -n "$ac_tool_prefix"; then
2557 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2558 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2560 $as_echo_n "checking for $ac_word... " >&6; }
2561 if ${ac_cv_prog_STRIP+:} false
; then :
2562 $as_echo_n "(cached) " >&6
2564 if test -n "$STRIP"; then
2565 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2567 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2571 test -z "$as_dir" && as_dir
=.
2572 for ac_exec_ext
in '' $ac_executable_extensions; do
2573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2574 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2584 STRIP
=$ac_cv_prog_STRIP
2585 if test -n "$STRIP"; then
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2587 $as_echo "$STRIP" >&6; }
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2590 $as_echo "no" >&6; }
2595 if test -z "$ac_cv_prog_STRIP"; then
2597 # Extract the first word of "strip", so it can be a program name with args.
2598 set dummy strip
; ac_word
=$2
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2600 $as_echo_n "checking for $ac_word... " >&6; }
2601 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
2602 $as_echo_n "(cached) " >&6
2604 if test -n "$ac_ct_STRIP"; then
2605 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2607 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2611 test -z "$as_dir" && as_dir
=.
2612 for ac_exec_ext
in '' $ac_executable_extensions; do
2613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2614 ac_cv_prog_ac_ct_STRIP
="strip"
2615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2624 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
2625 if test -n "$ac_ct_STRIP"; then
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2627 $as_echo "$ac_ct_STRIP" >&6; }
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2630 $as_echo "no" >&6; }
2633 if test "x$ac_ct_STRIP" = x
; then
2636 case $cross_compiling:$ac_tool_warned in
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2639 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2640 ac_tool_warned
=yes ;;
2645 STRIP
="$ac_cv_prog_STRIP"
2649 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2652 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2653 if test -z "$MKDIR_P"; then
2654 if ${ac_cv_path_mkdir+:} false
; then :
2655 $as_echo_n "(cached) " >&6
2657 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2658 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
2661 test -z "$as_dir" && as_dir
=.
2662 for ac_prog
in mkdir gmkdir
; do
2663 for ac_exec_ext
in '' $ac_executable_extensions; do
2664 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2665 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2666 'mkdir (GNU coreutils) '* | \
2667 'mkdir (coreutils) '* | \
2668 'mkdir (fileutils) '4.1*)
2669 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
2679 test -d .
/--version && rmdir .
/--version
2680 if test "${ac_cv_path_mkdir+set}" = set; then
2681 MKDIR_P
="$ac_cv_path_mkdir -p"
2683 # As a last resort, use the slow shell script. Don't cache a
2684 # value for MKDIR_P within a source directory, because that will
2685 # break other packages using the cache if that directory is
2686 # removed, or if the value is a relative name.
2687 MKDIR_P
="$ac_install_sh -d"
2690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2691 $as_echo "$MKDIR_P" >&6; }
2695 [\\/$
]* | ?
:[\\/]*) ;;
2696 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
2699 for ac_prog
in gawk mawk nawk
awk
2701 # Extract the first word of "$ac_prog", so it can be a program name with args.
2702 set dummy
$ac_prog; ac_word
=$2
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2704 $as_echo_n "checking for $ac_word... " >&6; }
2705 if ${ac_cv_prog_AWK+:} false
; then :
2706 $as_echo_n "(cached) " >&6
2708 if test -n "$AWK"; then
2709 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2711 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2715 test -z "$as_dir" && as_dir
=.
2716 for ac_exec_ext
in '' $ac_executable_extensions; do
2717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2718 ac_cv_prog_AWK
="$ac_prog"
2719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2729 if test -n "$AWK"; then
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2731 $as_echo "$AWK" >&6; }
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2734 $as_echo "no" >&6; }
2738 test -n "$AWK" && break
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2742 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2744 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2745 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
2746 $as_echo_n "(cached) " >&6
2748 cat >conftest.
make <<\_ACEOF
2751 @
echo '@@@%%%=$(MAKE)=@@@%%%'
2753 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2754 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2756 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
2758 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
2762 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2764 $as_echo "yes" >&6; }
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2768 $as_echo "no" >&6; }
2769 SET_MAKE
="MAKE=${MAKE-make}"
2772 rm -rf .tst
2>/dev
/null
2773 mkdir .tst
2>/dev
/null
2774 if test -d .tst
; then
2779 rmdir .tst
2>/dev
/null
2781 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2782 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2783 # is not polluted with repeated "-I."
2784 am__isrc
=' -I$(srcdir)'
2785 # test to see if srcdir already configured
2786 if test -f $srcdir/config.status
; then
2787 as_fn_error $?
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2791 # test whether we have cygpath
2792 if test -z "$CYGPATH_W"; then
2793 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
2794 CYGPATH_W
='cygpath -w'
2801 # Define the identity of the package.
2806 # Some tools Automake needs.
2808 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2811 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2814 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2817 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
2820 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
2822 # We need awk for the "check" target. The system "awk" is bad on
2824 # Always define AMTAR for backward compatibility.
2826 AMTAR
=${AMTAR-"${am_missing_run}tar"}
2828 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
2835 ac_config_headers
="$ac_config_headers include/libratbox_config.h"
2839 DEPDIR
="${am__leading_dot}deps"
2841 ac_config_commands
="$ac_config_commands depfiles"
2844 am_make
=${MAKE-make}
2845 cat > confinc
<< 'END'
2847 @echo this is the am__doit target
2850 # If we don't find an include directive, just comment out the code.
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2852 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2856 # First try GNU make style include.
2857 echo "include confinc" > confmf
2858 # Ignore all kinds of additional output from `make'.
2859 case `$am_make -s -f confmf 2> /dev/null` in #(
2860 *the\ am__doit\ target
*)
2866 # Now try BSD make style include.
2867 if test "$am__include" = "#"; then
2868 echo '.include "confinc"' > confmf
2869 case `$am_make -s -f confmf 2> /dev/null` in #(
2870 *the\ am__doit\ target
*)
2871 am__include
=.include
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2880 $as_echo "$_am_result" >&6; }
2881 rm -f confinc confmf
2883 # Check whether --enable-dependency-tracking was given.
2884 if test "${enable_dependency_tracking+set}" = set; then :
2885 enableval
=$enable_dependency_tracking;
2888 if test "x$enable_dependency_tracking" != xno
; then
2889 am_depcomp
="$ac_aux_dir/depcomp"
2892 if test "x$enable_dependency_tracking" != xno; then
2902 ac_cpp
='$CPP $CPPFLAGS'
2903 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2904 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2905 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2906 if test -n "$ac_tool_prefix"; then
2907 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2908 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2910 $as_echo_n "checking for $ac_word... " >&6; }
2911 if ${ac_cv_prog_CC+:} false
; then :
2912 $as_echo_n "(cached) " >&6
2914 if test -n "$CC"; then
2915 ac_cv_prog_CC
="$CC" # Let the user override the test.
2917 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2921 test -z "$as_dir" && as_dir
=.
2922 for ac_exec_ext
in '' $ac_executable_extensions; do
2923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2924 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2935 if test -n "$CC"; then
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2937 $as_echo "$CC" >&6; }
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2940 $as_echo "no" >&6; }
2945 if test -z "$ac_cv_prog_CC"; then
2947 # Extract the first word of "gcc", so it can be a program name with args.
2948 set dummy gcc
; ac_word
=$2
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2950 $as_echo_n "checking for $ac_word... " >&6; }
2951 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
2952 $as_echo_n "(cached) " >&6
2954 if test -n "$ac_ct_CC"; then
2955 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2957 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2961 test -z "$as_dir" && as_dir
=.
2962 for ac_exec_ext
in '' $ac_executable_extensions; do
2963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2964 ac_cv_prog_ac_ct_CC
="gcc"
2965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2974 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2975 if test -n "$ac_ct_CC"; then
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2977 $as_echo "$ac_ct_CC" >&6; }
2979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2980 $as_echo "no" >&6; }
2983 if test "x$ac_ct_CC" = x
; then
2986 case $cross_compiling:$ac_tool_warned in
2988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2989 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2990 ac_tool_warned
=yes ;;
2998 if test -z "$CC"; then
2999 if test -n "$ac_tool_prefix"; then
3000 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3001 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3003 $as_echo_n "checking for $ac_word... " >&6; }
3004 if ${ac_cv_prog_CC+:} false
; then :
3005 $as_echo_n "(cached) " >&6
3007 if test -n "$CC"; then
3008 ac_cv_prog_CC
="$CC" # Let the user override the test.
3010 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3014 test -z "$as_dir" && as_dir
=.
3015 for ac_exec_ext
in '' $ac_executable_extensions; do
3016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3017 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3028 if test -n "$CC"; then
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3030 $as_echo "$CC" >&6; }
3032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3033 $as_echo "no" >&6; }
3039 if test -z "$CC"; then
3040 # Extract the first word of "cc", so it can be a program name with args.
3041 set dummy cc
; ac_word
=$2
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3043 $as_echo_n "checking for $ac_word... " >&6; }
3044 if ${ac_cv_prog_CC+:} false
; then :
3045 $as_echo_n "(cached) " >&6
3047 if test -n "$CC"; then
3048 ac_cv_prog_CC
="$CC" # Let the user override the test.
3051 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3055 test -z "$as_dir" && as_dir
=.
3056 for ac_exec_ext
in '' $ac_executable_extensions; do
3057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3058 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3059 ac_prog_rejected
=yes
3063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3070 if test $ac_prog_rejected = yes; then
3071 # We found a bogon in the path, so make sure we never use it.
3072 set dummy
$ac_cv_prog_CC
3074 if test $# != 0; then
3075 # We chose a different compiler from the bogus one.
3076 # However, it has the same basename, so the bogon will be chosen
3077 # first if we set CC to just the basename; use the full file name.
3079 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3085 if test -n "$CC"; then
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3087 $as_echo "$CC" >&6; }
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3090 $as_echo "no" >&6; }
3095 if test -z "$CC"; then
3096 if test -n "$ac_tool_prefix"; then
3097 for ac_prog
in cl.exe
3099 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3100 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3102 $as_echo_n "checking for $ac_word... " >&6; }
3103 if ${ac_cv_prog_CC+:} false
; then :
3104 $as_echo_n "(cached) " >&6
3106 if test -n "$CC"; then
3107 ac_cv_prog_CC
="$CC" # Let the user override the test.
3109 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3113 test -z "$as_dir" && as_dir
=.
3114 for ac_exec_ext
in '' $ac_executable_extensions; do
3115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3116 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3127 if test -n "$CC"; then
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3129 $as_echo "$CC" >&6; }
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3132 $as_echo "no" >&6; }
3136 test -n "$CC" && break
3139 if test -z "$CC"; then
3141 for ac_prog
in cl.exe
3143 # Extract the first word of "$ac_prog", so it can be a program name with args.
3144 set dummy
$ac_prog; ac_word
=$2
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3146 $as_echo_n "checking for $ac_word... " >&6; }
3147 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3148 $as_echo_n "(cached) " >&6
3150 if test -n "$ac_ct_CC"; then
3151 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3153 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3157 test -z "$as_dir" && as_dir
=.
3158 for ac_exec_ext
in '' $ac_executable_extensions; do
3159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3160 ac_cv_prog_ac_ct_CC
="$ac_prog"
3161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3170 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3171 if test -n "$ac_ct_CC"; then
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3173 $as_echo "$ac_ct_CC" >&6; }
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3176 $as_echo "no" >&6; }
3180 test -n "$ac_ct_CC" && break
3183 if test "x$ac_ct_CC" = x
; then
3186 case $cross_compiling:$ac_tool_warned in
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3189 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3190 ac_tool_warned
=yes ;;
3199 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3200 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3201 as_fn_error $?
"no acceptable C compiler found in \$PATH
3202 See \`config.log' for more details" "$LINENO" 5; }
3204 # Provide some information about the compiler.
3205 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3208 for ac_option
in --version -v -V -qversion; do
3209 { { ac_try
="$ac_compiler $ac_option >&5"
3211 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
3212 *) ac_try_echo=$ac_try;;
3214 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3215 $as_echo "$ac_try_echo"; } >&5
3216 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3218 if test -s conftest.err; then
3220 ... rest of stderr output deleted ...
3221 10q' conftest.err >conftest.er1
3222 cat conftest.er1 >&5
3224 rm -f conftest.er1 conftest.err
3225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3226 test $ac_status = 0; }
3229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3230 /* end confdefs.h. */
3240 ac_clean_files_save=$ac_clean_files
3241 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3242 # Try to create an executable without -o first, disregard a.out.
3243 # It will help us diagnose broken compilers, and finding out an intuition
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3246 $as_echo_n "checking whether the C compiler works... " >&6; }
3247 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3249 # The possible output files:
3250 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3253 for ac_file in $ac_files
3256 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3257 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3262 if { { ac_try="$ac_link_default"
3264 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
3265 *) ac_try_echo
=$ac_try;;
3267 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3268 $as_echo "$ac_try_echo"; } >&5
3269 (eval "$ac_link_default") 2>&5
3271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3272 test $ac_status = 0; }; then :
3273 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3274 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3275 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3276 # so that the user can short-circuit this test for compilers unknown to
3278 for ac_file
in $ac_files ''
3280 test -f "$ac_file" || continue
3282 *.
$ac_ext | *.xcoff
| *.tds
| *.d
| *.pdb
| *.xSYM
| *.bb
| *.bbg
| *.map
| *.inf
| *.dSYM
| *.o
| *.obj
)
3285 # We found the default executable, but exeext='' is most
3289 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3291 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3293 # We set ac_cv_exeext here because the later test for it is not
3294 # safe: cross compilers may not add the suffix if given an `-o'
3295 # argument, so we may need to know it at that point already.
3296 # Even if this section looks crufty: it has the advantage of
3303 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3308 if test -z "$ac_file"; then :
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3310 $as_echo "no" >&6; }
3311 $as_echo "$as_me: failed program was:" >&5
3312 sed 's/^/| /' conftest.
$ac_ext >&5
3314 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3315 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3316 as_fn_error
77 "C compiler cannot create executables
3317 See \`config.log' for more details" "$LINENO" 5; }
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3320 $as_echo "yes" >&6; }
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3323 $as_echo_n "checking for C compiler default output file name... " >&6; }
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3325 $as_echo "$ac_file" >&6; }
3326 ac_exeext
=$ac_cv_exeext
3328 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3329 ac_clean_files
=$ac_clean_files_save
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3331 $as_echo_n "checking for suffix of executables... " >&6; }
3332 if { { ac_try
="$ac_link"
3334 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
3335 *) ac_try_echo=$ac_try;;
3337 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3338 $as_echo "$ac_try_echo"; } >&5
3339 (eval "$ac_link") 2>&5
3341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3342 test $ac_status = 0; }; then :
3343 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3344 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3345 # work properly (i.e., refer to `conftest.exe'), while it won't with
3347 for ac_file
in conftest.exe conftest conftest.
*; do
3348 test -f "$ac_file" || continue
3350 *.
$ac_ext | *.xcoff
| *.tds
| *.d
| *.pdb
| *.xSYM
| *.bb
| *.bbg
| *.map
| *.inf
| *.dSYM
| *.o
| *.obj
) ;;
3351 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3357 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3358 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3359 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3360 See \`config.log' for more details" "$LINENO" 5; }
3362 rm -f conftest conftest
$ac_cv_exeext
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3364 $as_echo "$ac_cv_exeext" >&6; }
3366 rm -f conftest.
$ac_ext
3367 EXEEXT
=$ac_cv_exeext
3369 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3370 /* end confdefs.h. */
3375 FILE *f = fopen ("conftest.out", "w");
3376 return ferror (f) || fclose (f) != 0;
3382 ac_clean_files
="$ac_clean_files conftest.out"
3383 # Check that the compiler produces executables we can run. If not, either
3384 # the compiler is broken, or we cross compile.
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3386 $as_echo_n "checking whether we are cross compiling... " >&6; }
3387 if test "$cross_compiling" != yes; then
3388 { { ac_try
="$ac_link"
3390 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
3391 *) ac_try_echo=$ac_try;;
3393 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3394 $as_echo "$ac_try_echo"; } >&5
3395 (eval "$ac_link") 2>&5
3397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3398 test $ac_status = 0; }
3399 if { ac_try='./conftest$ac_cv_exeext'
3400 { { case "(($ac_try" in
3401 *\"* | *\`* | *\\*) ac_try_echo
=\
$ac_try;;
3402 *) ac_try_echo
=$ac_try;;
3404 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3405 $as_echo "$ac_try_echo"; } >&5
3406 (eval "$ac_try") 2>&5
3408 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3409 test $ac_status = 0; }; }; then
3412 if test "$cross_compiling" = maybe
; then
3415 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3416 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3417 as_fn_error $?
"cannot run C compiled programs.
3418 If you meant to cross compile, use \`--host'.
3419 See \`config.log' for more details" "$LINENO" 5; }
3423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3424 $as_echo "$cross_compiling" >&6; }
3426 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3427 ac_clean_files
=$ac_clean_files_save
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3429 $as_echo_n "checking for suffix of object files... " >&6; }
3430 if ${ac_cv_objext+:} false
; then :
3431 $as_echo_n "(cached) " >&6
3433 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3434 /* end confdefs.h. */
3444 rm -f conftest.o conftest.obj
3445 if { { ac_try
="$ac_compile"
3447 *\"* | *\
`* | *\\*) ac_try_echo=\$ac_try;;
3448 *) ac_try_echo=$ac_try;;
3450 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3451 $as_echo "$ac_try_echo"; } >&5
3452 (eval "$ac_compile") 2>&5
3454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3455 test $ac_status = 0; }; then :
3456 for ac_file in conftest.o conftest.obj conftest.*; do
3457 test -f "$ac_file" || continue;
3459 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3460 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3465 $as_echo "$as_me: failed program was:" >&5
3466 sed 's/^/| /' conftest.$ac_ext >&5
3468 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3469 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3470 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3471 See \
`config.log' for more details" "$LINENO" 5; }
3473 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3476 $as_echo "$ac_cv_objext" >&6; }
3477 OBJEXT=$ac_cv_objext
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3480 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3481 if ${ac_cv_c_compiler_gnu+:} false; then :
3482 $as_echo_n "(cached) " >&6
3484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3485 /* end confdefs.h. */
3498 if ac_fn_c_try_compile "$LINENO"; then :
3503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3504 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3508 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3509 if test $ac_compiler_gnu = yes; then
3514 ac_test_CFLAGS=${CFLAGS+set}
3515 ac_save_CFLAGS=$CFLAGS
3516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3517 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3518 if ${ac_cv_prog_cc_g+:} false; then :
3519 $as_echo_n "(cached) " >&6
3521 ac_save_c_werror_flag=$ac_c_werror_flag
3522 ac_c_werror_flag=yes
3525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3526 /* end confdefs.h. */
3536 if ac_fn_c_try_compile "$LINENO"; then :
3540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3541 /* end confdefs.h. */
3551 if ac_fn_c_try_compile "$LINENO"; then :
3554 ac_c_werror_flag=$ac_save_c_werror_flag
3556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3557 /* end confdefs.h. */
3567 if ac_fn_c_try_compile "$LINENO"; then :
3570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3575 ac_c_werror_flag=$ac_save_c_werror_flag
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3578 $as_echo "$ac_cv_prog_cc_g" >&6; }
3579 if test "$ac_test_CFLAGS" = set; then
3580 CFLAGS=$ac_save_CFLAGS
3581 elif test $ac_cv_prog_cc_g = yes; then
3582 if test "$GCC" = yes; then
3588 if test "$GCC" = yes; then
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3595 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3596 if ${ac_cv_prog_cc_c89+:} false; then :
3597 $as_echo_n "(cached) " >&6
3599 ac_cv_prog_cc_c89=no
3601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3602 /* end confdefs.h. */
3605 #include <sys/types.h>
3606 #include <sys/stat.h>
3607 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3608 struct buf { int x; };
3609 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3610 static char *e (p, i)
3616 static char *f (char * (*g) (char **, int), char **p, ...)
3621 s = g (p, va_arg (v,int));
3626 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3627 function prototypes and stuff, but not '\xHH' hex character constants.
3628 These don't provoke an error unfortunately, instead are silently treated
3629 as 'x'. The following induces an error, until -std is added to get
3630 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3631 array size at least. It's necessary to write '\x00'==0 to get something
3632 that's true only with -std. */
3633 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3635 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3636 inside strings and character constants. */
3638 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3640 int test (int i, double x);
3641 struct s1 {int (*f) (int a);};
3642 struct s2 {int (*f) (double a);};
3643 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3649 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3654 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3655 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3657 CC="$ac_save_CC $ac_arg"
3658 if ac_fn_c_try_compile "$LINENO"; then :
3659 ac_cv_prog_cc_c89=$ac_arg
3661 rm -f core conftest.err conftest.$ac_objext
3662 test "x$ac_cv_prog_cc_c89" != "xno" && break
3664 rm -f conftest.$ac_ext
3669 case "x$ac_cv_prog_cc_c89" in
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3672 $as_echo "none needed" >&6; } ;;
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3675 $as_echo "unsupported" >&6; } ;;
3677 CC="$CC $ac_cv_prog_cc_c89"
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3679 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3681 if test "x$ac_cv_prog_cc_c89" != xno; then :
3686 ac_cpp='$CPP $CPPFLAGS'
3687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3691 depcc="$CC" am_compiler_list=
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3694 $as_echo_n "checking dependency style of $depcc... " >&6; }
3695 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3696 $as_echo_n "(cached) " >&6
3698 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3699 # We make a subdir and do the tests there. Otherwise we can end up
3700 # making bogus files that we don't know about and never remove. For
3701 # instance it was reported that on HP-UX the gcc test will end up
3702 # making a dummy file named `D
' -- because `-MD' means
`put the output
3705 # Copy depcomp to subdir because otherwise we won't find it if we're
3706 # using a relative directory.
3707 cp "$am_depcomp" conftest.dir
3709 # We will build objects and dependencies in a subdirectory because
3710 # it helps to detect inapplicable dependency modes. For instance
3711 # both Tru64's cc and ICC support -MD to output dependencies as a
3712 # side effect of compilation, but ICC will put the dependencies in
3713 # the current directory while Tru64 will put them in the object
3717 am_cv_CC_dependencies_compiler_type=none
3718 if test "$am_compiler_list" = ""; then
3719 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
3722 case " $depcc " in #(
3723 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3726 for depmode in $am_compiler_list; do
3727 # Setup a source with many dependencies, because some compilers
3728 # like to wrap large dependency lists on column 80 (with \), and
3729 # we should not choose a depcomp mode which is confused by this.
3731 # We need to recreate these files for each test, as the compiler may
3732 # overwrite some of them when testing with obscure command lines.
3733 # This happens at least with the AIX C compiler.
3735 for i in 1 2 3 4 5 6; do
3736 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3737 # Using `: > sub
/conftst
$i.h
' creates only sub/conftst1.h with
3738 # Solaris 8's
{/usr
,}/bin
/sh.
3739 touch sub
/conftst
$i.h
3741 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3743 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3744 # mode. It turns out that the SunPro C++ compiler does not properly
3745 # handle `-M -o', and we need to detect this. Also, some Intel
3746 # versions had trouble with output in subdirs
3747 am__obj
=sub
/conftest.
${OBJEXT-o}
3748 am__minus_obj
="-o $am__obj"
3751 # This depmode causes a compiler race in universal mode.
3752 test "$am__universal" = false
|| continue
3755 # after this tag, mechanisms are not by side-effect, so they'll
3756 # only be used when explicitly requested
3757 if test "x$enable_dependency_tracking" = xyes
; then
3763 msvisualcpp
| msvcmsys
)
3764 # This compiler won't grok `-c -o', but also, the minuso test has
3765 # not run yet. These depmodes are late enough in the game, and
3766 # so weak that their functioning should not be impacted.
3767 am__obj
=conftest.
${OBJEXT-o}
3772 if depmode
=$depmode \
3773 source=sub
/conftest.c object
=$am__obj \
3774 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
3775 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
3776 >/dev
/null
2>conftest.err
&&
3777 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
3778 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
3779 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
3780 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
3781 # icc doesn't choke on unknown options, it will just issue warnings
3782 # or remarks (even with -Werror). So we grep stderr for any message
3783 # that says an option was ignored or not supported.
3784 # When given -MP, icc 7.0 and 7.1 complain thusly:
3785 # icc: Command line warning: ignoring option '-M'; no argument required
3786 # The diagnosis changed in icc 8.0:
3787 # icc: Command line remark: option '-MP' not supported
3788 if (grep 'ignoring option' conftest.err
||
3789 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
3790 am_cv_CC_dependencies_compiler_type
=$depmode
3799 am_cv_CC_dependencies_compiler_type
=none
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3804 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3805 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
3808 test "x$enable_dependency_tracking" != xno \
3809 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
3811 am__fastdepCC_FALSE
='#'
3813 am__fastdepCC_TRUE
='#'
3814 am__fastdepCC_FALSE
=
3820 ac_cpp
='$CPP $CPPFLAGS'
3821 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3822 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3823 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3825 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3826 # On Suns, sometimes $CPP names a directory.
3827 if test -n "$CPP" && test -d "$CPP"; then
3830 if test -z "$CPP"; then
3831 if ${ac_cv_prog_CPP+:} false
; then :
3832 $as_echo_n "(cached) " >&6
3834 # Double quotes because CPP needs to be expanded
3835 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3838 for ac_c_preproc_warn_flag
in '' yes
3840 # Use a header file that comes with gcc, so configuring glibc
3841 # with a fresh cross-compiler works.
3842 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3843 # <limits.h> exists even on freestanding compilers.
3844 # On the NeXT, cc -E runs the code through the compiler's parser,
3845 # not just through cpp. "Syntax error" is here to catch this case.
3846 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3847 /* end confdefs.h. */
3849 # include <limits.h>
3851 # include <assert.h>
3855 if ac_fn_c_try_cpp
"$LINENO"; then :
3858 # Broken: fails on valid input.
3861 rm -f conftest.err conftest.i conftest.
$ac_ext
3863 # OK, works on sane cases. Now check whether nonexistent headers
3864 # can be detected and how.
3865 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3866 /* end confdefs.h. */
3867 #include <ac_nonexistent.h>
3869 if ac_fn_c_try_cpp
"$LINENO"; then :
3870 # Broken: success on invalid input.
3873 # Passes both tests.
3877 rm -f conftest.err conftest.i conftest.
$ac_ext
3880 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3881 rm -f conftest.i conftest.err conftest.
$ac_ext
3882 if $ac_preproc_ok; then :
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3895 $as_echo "$CPP" >&6; }
3897 for ac_c_preproc_warn_flag
in '' yes
3899 # Use a header file that comes with gcc, so configuring glibc
3900 # with a fresh cross-compiler works.
3901 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3902 # <limits.h> exists even on freestanding compilers.
3903 # On the NeXT, cc -E runs the code through the compiler's parser,
3904 # not just through cpp. "Syntax error" is here to catch this case.
3905 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3906 /* end confdefs.h. */
3908 # include <limits.h>
3910 # include <assert.h>
3914 if ac_fn_c_try_cpp
"$LINENO"; then :
3917 # Broken: fails on valid input.
3920 rm -f conftest.err conftest.i conftest.
$ac_ext
3922 # OK, works on sane cases. Now check whether nonexistent headers
3923 # can be detected and how.
3924 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3925 /* end confdefs.h. */
3926 #include <ac_nonexistent.h>
3928 if ac_fn_c_try_cpp
"$LINENO"; then :
3929 # Broken: success on invalid input.
3932 # Passes both tests.
3936 rm -f conftest.err conftest.i conftest.
$ac_ext
3939 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3940 rm -f conftest.i conftest.err conftest.
$ac_ext
3941 if $ac_preproc_ok; then :
3944 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3945 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3946 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
3947 See \`config.log' for more details" "$LINENO" 5; }
3951 ac_cpp
='$CPP $CPPFLAGS'
3952 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3953 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3954 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3958 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3959 if ${ac_cv_path_GREP+:} false
; then :
3960 $as_echo_n "(cached) " >&6
3962 if test -z "$GREP"; then
3963 ac_path_GREP_found
=false
3964 # Loop through the user's path and test for each of PROGNAME-LIST
3965 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3966 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3969 test -z "$as_dir" && as_dir
=.
3970 for ac_prog
in grep ggrep
; do
3971 for ac_exec_ext
in '' $ac_executable_extensions; do
3972 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3973 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3974 # Check for GNU ac_path_GREP and select it if it is found.
3975 # Check for GNU $ac_path_GREP
3976 case `"$ac_path_GREP" --version 2>&1` in
3978 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3981 $as_echo_n 0123456789 >"conftest.in"
3984 cat "conftest.in" "conftest.in" >"conftest.tmp"
3985 mv "conftest.tmp" "conftest.in"
3986 cp "conftest.in" "conftest.nl"
3987 $as_echo 'GREP' >> "conftest.nl"
3988 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null
|| break
3989 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 || break
3990 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3991 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3992 # Best one so far, save it but keep looking for a better one
3993 ac_cv_path_GREP
="$ac_path_GREP"
3994 ac_path_GREP_max
=$ac_count
3996 # 10*(2^10) chars as input seems more than enough
3997 test $ac_count -gt 10 && break
3999 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4002 $ac_path_GREP_found && break 3
4007 if test -z "$ac_cv_path_GREP"; then
4008 as_fn_error $?
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4011 ac_cv_path_GREP
=$GREP
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4016 $as_echo "$ac_cv_path_GREP" >&6; }
4017 GREP
="$ac_cv_path_GREP"
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4021 $as_echo_n "checking for egrep... " >&6; }
4022 if ${ac_cv_path_EGREP+:} false
; then :
4023 $as_echo_n "(cached) " >&6
4025 if echo a
| $GREP -E '(a|b)' >/dev
/null
2>&1
4026 then ac_cv_path_EGREP
="$GREP -E"
4028 if test -z "$EGREP"; then
4029 ac_path_EGREP_found
=false
4030 # Loop through the user's path and test for each of PROGNAME-LIST
4031 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4032 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4035 test -z "$as_dir" && as_dir
=.
4036 for ac_prog
in egrep; do
4037 for ac_exec_ext
in '' $ac_executable_extensions; do
4038 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4039 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4040 # Check for GNU ac_path_EGREP and select it if it is found.
4041 # Check for GNU $ac_path_EGREP
4042 case `"$ac_path_EGREP" --version 2>&1` in
4044 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4047 $as_echo_n 0123456789 >"conftest.in"
4050 cat "conftest.in" "conftest.in" >"conftest.tmp"
4051 mv "conftest.tmp" "conftest.in"
4052 cp "conftest.in" "conftest.nl"
4053 $as_echo 'EGREP' >> "conftest.nl"
4054 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null
|| break
4055 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 || break
4056 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4057 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4058 # Best one so far, save it but keep looking for a better one
4059 ac_cv_path_EGREP
="$ac_path_EGREP"
4060 ac_path_EGREP_max
=$ac_count
4062 # 10*(2^10) chars as input seems more than enough
4063 test $ac_count -gt 10 && break
4065 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4068 $ac_path_EGREP_found && break 3
4073 if test -z "$ac_cv_path_EGREP"; then
4074 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4077 ac_cv_path_EGREP
=$EGREP
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4083 $as_echo "$ac_cv_path_EGREP" >&6; }
4084 EGREP
="$ac_cv_path_EGREP"
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4088 $as_echo_n "checking for ANSI C header files... " >&6; }
4089 if ${ac_cv_header_stdc+:} false
; then :
4090 $as_echo_n "(cached) " >&6
4092 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4093 /* end confdefs.h. */
4107 if ac_fn_c_try_compile
"$LINENO"; then :
4108 ac_cv_header_stdc
=yes
4110 ac_cv_header_stdc
=no
4112 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4114 if test $ac_cv_header_stdc = yes; then
4115 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4116 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4117 /* end confdefs.h. */
4121 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4122 $EGREP "memchr" >/dev
/null
2>&1; then :
4125 ac_cv_header_stdc
=no
4131 if test $ac_cv_header_stdc = yes; then
4132 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4133 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4134 /* end confdefs.h. */
4138 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4139 $EGREP "free" >/dev
/null
2>&1; then :
4142 ac_cv_header_stdc
=no
4148 if test $ac_cv_header_stdc = yes; then
4149 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4150 if test "$cross_compiling" = yes; then :
4153 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4154 /* end confdefs.h. */
4157 #if ((' ' & 0x0FF) == 0x020)
4158 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4159 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4161 # define ISLOWER(c) \
4162 (('a' <= (c) && (c) <= 'i') \
4163 || ('j' <= (c) && (c) <= 'r') \
4164 || ('s' <= (c) && (c) <= 'z'))
4165 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4168 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4173 for (i = 0; i < 256; i++)
4174 if (XOR (islower (i), ISLOWER (i))
4175 || toupper (i) != TOUPPER (i))
4180 if ac_fn_c_try_run
"$LINENO"; then :
4183 ac_cv_header_stdc
=no
4185 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4186 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4192 $as_echo "$ac_cv_header_stdc" >&6; }
4193 if test $ac_cv_header_stdc = yes; then
4195 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4199 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4200 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4201 inttypes.h stdint.h unistd.h
4203 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4204 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4206 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
4207 cat >>confdefs.h
<<_ACEOF
4208 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4217 ac_fn_c_check_header_mongrel
"$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4218 if test "x$ac_cv_header_minix_config_h" = xyes
; then :
4225 if test "$MINIX" = yes; then
4227 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4230 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4233 $as_echo "#define _MINIX 1" >>confdefs.h
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4239 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4240 if ${ac_cv_safe_to_define___extensions__+:} false
; then :
4241 $as_echo_n "(cached) " >&6
4243 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4244 /* end confdefs.h. */
4246 # define __EXTENSIONS__ 1
4247 $ac_includes_default
4256 if ac_fn_c_try_compile
"$LINENO"; then :
4257 ac_cv_safe_to_define___extensions__
=yes
4259 ac_cv_safe_to_define___extensions__
=no
4261 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4264 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4265 test $ac_cv_safe_to_define___extensions__ = yes &&
4266 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4268 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4270 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4272 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4274 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4280 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4281 if ${ac_cv_prog_cc_c99+:} false
; then :
4282 $as_echo_n "(cached) " >&6
4284 ac_cv_prog_cc_c99
=no
4286 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4287 /* end confdefs.h. */
4289 #include <stdbool.h>
4294 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4295 #define debug(...) fprintf (stderr, __VA_ARGS__)
4296 #define showlist(...) puts (#__VA_ARGS__)
4297 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4299 test_varargs_macros (void)
4304 debug ("X = %d\n", x);
4305 showlist (The first, second, and third items.);
4306 report (x>y, "x is %d but y is %d", x, y);
4309 // Check long long types.
4310 #define BIG64 18446744073709551615ull
4311 #define BIG32 4294967295ul
4312 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4314 your preprocessor is broken;
4318 your preprocessor is broken;
4320 static long long int bignum = -9223372036854775807LL;
4321 static unsigned long long int ubignum = BIG64;
4323 struct incomplete_array
4331 const wchar_t *name;
4335 typedef const char *ccp;
4338 test_restrict (ccp restrict text)
4340 // See if C++-style comments work.
4341 // Iterate through items via the restricted pointer.
4342 // Also check for declarations in for loops.
4343 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4348 // Check varargs and va_copy.
4350 test_varargs (const char *format, ...)
4353 va_start (args, format);
4355 va_copy (args_copy, args);
4366 str = va_arg (args_copy, const char *);
4369 number = va_arg (args_copy, int);
4372 fnumber = va_arg (args_copy, double);
4387 _Bool success = false;
4390 if (test_restrict ("String literal") == 0)
4392 char *restrict newvar = "Another string";
4395 test_varargs ("s, d' f .", "string", 65, 34.234);
4396 test_varargs_macros ();
4398 // Check flexible array members.
4399 struct incomplete_array *ia =
4400 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4402 for (int i = 0; i < ia->datasize; ++i)
4403 ia->data[i] = i * 1.234;
4405 // Check named initializers.
4406 struct named_init ni = {
4408 .name = L"Test wide string",
4409 .average = 543.34343,
4414 int dynamic_array[ni.number];
4415 dynamic_array[ni.number - 1] = 543;
4417 // work around unused variable warnings
4418 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4419 || dynamic_array[ni.number - 1] != 543);
4425 for ac_arg
in '' -std=gnu99
-std=c99
-c99 -AC99 -xc99=all
-qlanglvl=extc99
4427 CC
="$ac_save_CC $ac_arg"
4428 if ac_fn_c_try_compile
"$LINENO"; then :
4429 ac_cv_prog_cc_c99
=$ac_arg
4431 rm -f core conftest.err conftest.
$ac_objext
4432 test "x$ac_cv_prog_cc_c99" != "xno" && break
4434 rm -f conftest.
$ac_ext
4439 case "x$ac_cv_prog_cc_c99" in
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4442 $as_echo "none needed" >&6; } ;;
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4445 $as_echo "unsupported" >&6; } ;;
4447 CC
="$CC $ac_cv_prog_cc_c99"
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4449 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
4451 if test "x$ac_cv_prog_cc_c99" != xno
; then :
4457 if test x
"$ac_cv_prog_cc_c99" = "xno"; then
4458 as_fn_error $?
"ircd-ratbox requires a C99 capable compiler" "$LINENO" 5
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4464 $as_echo_n "checking for egrep... " >&6; }
4465 if ${ac_cv_path_EGREP+:} false
; then :
4466 $as_echo_n "(cached) " >&6
4468 if echo a
| $GREP -E '(a|b)' >/dev
/null
2>&1
4469 then ac_cv_path_EGREP
="$GREP -E"
4471 if test -z "$EGREP"; then
4472 ac_path_EGREP_found
=false
4473 # Loop through the user's path and test for each of PROGNAME-LIST
4474 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4475 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4478 test -z "$as_dir" && as_dir
=.
4479 for ac_prog
in egrep; do
4480 for ac_exec_ext
in '' $ac_executable_extensions; do
4481 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4482 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4483 # Check for GNU ac_path_EGREP and select it if it is found.
4484 # Check for GNU $ac_path_EGREP
4485 case `"$ac_path_EGREP" --version 2>&1` in
4487 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4490 $as_echo_n 0123456789 >"conftest.in"
4493 cat "conftest.in" "conftest.in" >"conftest.tmp"
4494 mv "conftest.tmp" "conftest.in"
4495 cp "conftest.in" "conftest.nl"
4496 $as_echo 'EGREP' >> "conftest.nl"
4497 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null
|| break
4498 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 || break
4499 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4500 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4501 # Best one so far, save it but keep looking for a better one
4502 ac_cv_path_EGREP
="$ac_path_EGREP"
4503 ac_path_EGREP_max
=$ac_count
4505 # 10*(2^10) chars as input seems more than enough
4506 test $ac_count -gt 10 && break
4508 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4511 $ac_path_EGREP_found && break 3
4516 if test -z "$ac_cv_path_EGREP"; then
4517 as_fn_error $?
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4520 ac_cv_path_EGREP
=$EGREP
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4526 $as_echo "$ac_cv_path_EGREP" >&6; }
4527 EGREP
="$ac_cv_path_EGREP"
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4531 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4532 if ${ac_cv_path_SED+:} false
; then :
4533 $as_echo_n "(cached) " >&6
4535 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
4536 for ac_i
in 1 2 3 4 5 6 7; do
4537 ac_script
="$ac_script$as_nl$ac_script"
4539 echo "$ac_script" 2>/dev
/null
| sed 99q
>conftest.
sed
4540 { ac_script
=; unset ac_script
;}
4541 if test -z "$SED"; then
4542 ac_path_SED_found
=false
4543 # Loop through the user's path and test for each of PROGNAME-LIST
4544 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4548 test -z "$as_dir" && as_dir
=.
4549 for ac_prog
in sed gsed
; do
4550 for ac_exec_ext
in '' $ac_executable_extensions; do
4551 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
4552 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4553 # Check for GNU ac_path_SED and select it if it is found.
4554 # Check for GNU $ac_path_SED
4555 case `"$ac_path_SED" --version 2>&1` in
4557 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
4560 $as_echo_n 0123456789 >"conftest.in"
4563 cat "conftest.in" "conftest.in" >"conftest.tmp"
4564 mv "conftest.tmp" "conftest.in"
4565 cp "conftest.in" "conftest.nl"
4566 $as_echo '' >> "conftest.nl"
4567 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null
|| break
4568 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 || break
4569 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4570 if test $ac_count -gt ${ac_path_SED_max-0}; then
4571 # Best one so far, save it but keep looking for a better one
4572 ac_cv_path_SED
="$ac_path_SED"
4573 ac_path_SED_max
=$ac_count
4575 # 10*(2^10) chars as input seems more than enough
4576 test $ac_count -gt 10 && break
4578 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4581 $ac_path_SED_found && break 3
4586 if test -z "$ac_cv_path_SED"; then
4587 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4595 $as_echo "$ac_cv_path_SED" >&6; }
4596 SED
="$ac_cv_path_SED"
4604 # Check whether --enable-static was given.
4605 if test "${enable_static+set}" = set; then :
4606 enableval
=$enable_static; p
=${PACKAGE-default}
4608 yes) enable_static
=yes ;;
4609 no
) enable_static
=no
;;
4612 # Look at the argument we got. We use all the common list separators.
4613 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
4614 for pkg
in $enableval; do
4616 if test "X$pkg" = "X$p"; then
4635 # Check whether --enable-shared was given.
4636 if test "${enable_shared+set}" = set; then :
4637 enableval
=$enable_shared; p
=${PACKAGE-default}
4639 yes) enable_shared
=yes ;;
4640 no
) enable_shared
=no
;;
4643 # Look at the argument we got. We use all the common list separators.
4644 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
4645 for pkg
in $enableval; do
4647 if test "X$pkg" = "X$p"; then
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4668 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4669 # Check whether --enable-maintainer-mode was given.
4670 if test "${enable_maintainer_mode+set}" = set; then :
4671 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
4673 USE_MAINTAINER_MODE
=no
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4677 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4678 if test $USE_MAINTAINER_MODE = yes; then
4679 MAINTAINER_MODE_TRUE
=
4680 MAINTAINER_MODE_FALSE
='#'
4682 MAINTAINER_MODE_TRUE
='#'
4683 MAINTAINER_MODE_FALSE
=
4686 MAINT
=$MAINTAINER_MODE_TRUE
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
4691 $as_echo_n "checking for library containing strerror... " >&6; }
4692 if ${ac_cv_search_strerror+:} false
; then :
4693 $as_echo_n "(cached) " >&6
4695 ac_func_search_save_LIBS
=$LIBS
4696 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4697 /* end confdefs.h. */
4699 /* Override any GCC internal prototype to avoid an error.
4700 Use char because int might match the return type of a GCC
4701 builtin and then its argument prototype would still apply. */
4714 for ac_lib
in '' cposix
; do
4715 if test -z "$ac_lib"; then
4716 ac_res
="none required"
4719 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4721 if ac_fn_c_try_link
"$LINENO"; then :
4722 ac_cv_search_strerror
=$ac_res
4724 rm -f core conftest.err conftest.
$ac_objext \
4726 if ${ac_cv_search_strerror+:} false
; then :
4730 if ${ac_cv_search_strerror+:} false
; then :
4733 ac_cv_search_strerror
=no
4736 LIBS
=$ac_func_search_save_LIBS
4738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
4739 $as_echo "$ac_cv_search_strerror" >&6; }
4740 ac_res
=$ac_cv_search_strerror
4741 if test "$ac_res" != no
; then :
4742 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
4747 $as_echo_n "checking for inline... " >&6; }
4748 if ${ac_cv_c_inline+:} false
; then :
4749 $as_echo_n "(cached) " >&6
4752 for ac_kw
in inline __inline__ __inline
; do
4753 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4754 /* end confdefs.h. */
4757 static $ac_kw foo_t static_foo () {return 0; }
4758 $ac_kw foo_t foo () {return 0; }
4762 if ac_fn_c_try_compile
"$LINENO"; then :
4763 ac_cv_c_inline
=$ac_kw
4765 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4766 test "$ac_cv_c_inline" != no
&& break
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
4771 $as_echo "$ac_cv_c_inline" >&6; }
4773 case $ac_cv_c_inline in
4776 case $ac_cv_c_inline in
4778 *) ac_val
=$ac_cv_c_inline;;
4780 cat >>confdefs.h
<<_ACEOF
4782 #define inline $ac_val
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4789 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4790 if ${ac_cv_c_const+:} false
; then :
4791 $as_echo_n "(cached) " >&6
4793 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4794 /* end confdefs.h. */
4799 /* FIXME: Include the comments suggested by Paul. */
4801 /* Ultrix mips cc rejects this. */
4802 typedef int charset[2];
4804 /* SunOS 4.1.1 cc rejects this. */
4805 char const *const *pcpcc;
4807 /* NEC SVR4.0.2 mips cc rejects this. */
4808 struct point {int x, y;};
4809 static struct point const zero = {0,0};
4810 /* AIX XL C 1.02.0.0 rejects this.
4811 It does not let you subtract one const X* pointer from another in
4812 an arm of an if-expression whose if-part is not a constant
4814 const char *g = "string";
4815 pcpcc = &g + (g ? g-g : 0);
4816 /* HPUX 7.0 cc rejects these. */
4818 ppc = (char**) pcpcc;
4819 pcpcc = (char const *const *) ppc;
4820 { /* SCO 3.2v4 cc rejects this. */
4822 char const *s = 0 ? (char *) 0 : (char const *) 0;
4827 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4829 const int *foo = &x[0];
4832 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4833 typedef const int *iptr;
4837 { /* AIX XL C 1.02.0.0 rejects this saying
4838 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4839 struct s { int j; const int *ap[3]; };
4840 struct s *b; b->j = 5;
4842 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4846 return !cs[0] && !zero.x;
4853 if ac_fn_c_try_compile
"$LINENO"; then :
4858 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4861 $as_echo "$ac_cv_c_const" >&6; }
4862 if test $ac_cv_c_const = no
; then
4864 $as_echo "#define const /**/" >>confdefs.h
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4869 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4870 if ${ac_cv_c_bigendian+:} false
; then :
4871 $as_echo_n "(cached) " >&6
4873 ac_cv_c_bigendian
=unknown
4874 # See if we're dealing with a universal compiler.
4875 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4876 /* end confdefs.h. */
4877 #ifndef __APPLE_CC__
4878 not a universal capable compiler
4883 if ac_fn_c_try_compile
"$LINENO"; then :
4885 # Check for potential -arch flags. It is not universal unless
4886 # there are at least two -arch flags with different values.
4889 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4890 if test -n "$ac_prev"; then
4892 i?
86 | x86_64
| ppc
| ppc64
)
4893 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
4896 ac_cv_c_bigendian
=universal
4902 elif test "x$ac_word" = "x-arch"; then
4907 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4908 if test $ac_cv_c_bigendian = unknown
; then
4909 # See if sys/param.h defines the BYTE_ORDER macro.
4910 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4911 /* end confdefs.h. */
4912 #include <sys/types.h>
4913 #include <sys/param.h>
4918 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4919 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4928 if ac_fn_c_try_compile
"$LINENO"; then :
4929 # It does; now see whether it defined to BIG_ENDIAN or not.
4930 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4931 /* end confdefs.h. */
4932 #include <sys/types.h>
4933 #include <sys/param.h>
4938 #if BYTE_ORDER != BIG_ENDIAN
4946 if ac_fn_c_try_compile
"$LINENO"; then :
4947 ac_cv_c_bigendian
=yes
4949 ac_cv_c_bigendian
=no
4951 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4953 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4955 if test $ac_cv_c_bigendian = unknown
; then
4956 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4957 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4958 /* end confdefs.h. */
4964 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4972 if ac_fn_c_try_compile
"$LINENO"; then :
4973 # It does; now see whether it defined to _BIG_ENDIAN or not.
4974 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4975 /* end confdefs.h. */
4989 if ac_fn_c_try_compile
"$LINENO"; then :
4990 ac_cv_c_bigendian
=yes
4992 ac_cv_c_bigendian
=no
4994 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4996 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4998 if test $ac_cv_c_bigendian = unknown
; then
4999 # Compile a test program.
5000 if test "$cross_compiling" = yes; then :
5001 # Try to guess by grepping values from an object file.
5002 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5003 /* end confdefs.h. */
5004 short int ascii_mm[] =
5005 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5006 short int ascii_ii[] =
5007 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5008 int use_ascii (int i) {
5009 return ascii_mm[i] + ascii_ii[i];
5011 short int ebcdic_ii[] =
5012 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5013 short int ebcdic_mm[] =
5014 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5015 int use_ebcdic (int i) {
5016 return ebcdic_mm[i] + ebcdic_ii[i];
5023 return use_ascii (foo) == use_ebcdic (foo);
5028 if ac_fn_c_try_compile
"$LINENO"; then :
5029 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
5030 ac_cv_c_bigendian
=yes
5032 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
5033 if test "$ac_cv_c_bigendian" = unknown
; then
5034 ac_cv_c_bigendian
=no
5036 # finding both strings is unlikely to happen, but who knows?
5037 ac_cv_c_bigendian
=unknown
5041 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5043 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5044 /* end confdefs.h. */
5045 $ac_includes_default
5050 /* Are we little or big endian? From Harbison&Steele. */
5054 char c[sizeof (long int)];
5057 return u.c[sizeof (long int) - 1] == 1;
5063 if ac_fn_c_try_run
"$LINENO"; then :
5064 ac_cv_c_bigendian
=no
5066 ac_cv_c_bigendian
=yes
5068 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5069 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5075 $as_echo "$ac_cv_c_bigendian" >&6; }
5076 case $ac_cv_c_bigendian in #(
5078 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5084 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
5088 as_fn_error $?
"unknown endianness
5089 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5093 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5095 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5096 if eval \
${ac_cv_prog_make_${ac_make}_set+:} false
; then :
5097 $as_echo_n "(cached) " >&6
5099 cat >conftest.
make <<\_ACEOF
5102 @
echo '@@@%%%=$(MAKE)=@@@%%%'
5104 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5105 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5107 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
5109 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
5113 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5115 $as_echo "yes" >&6; }
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5119 $as_echo "no" >&6; }
5120 SET_MAKE
="MAKE=${MAKE-make}"
5124 # Extract the first word of "automake", so it can be a program name with args.
5125 set dummy automake
; ac_word
=$2
5126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5127 $as_echo_n "checking for $ac_word... " >&6; }
5128 if ${ac_cv_path_AUTOMAKE+:} false
; then :
5129 $as_echo_n "(cached) " >&6
5133 ac_cv_path_AUTOMAKE
="$AUTOMAKE" # Let the user override the test with a path.
5136 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5140 test -z "$as_dir" && as_dir
=.
5141 for ac_exec_ext
in '' $ac_executable_extensions; do
5142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5143 ac_cv_path_AUTOMAKE
="$as_dir/$ac_word$ac_exec_ext"
5144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5154 AUTOMAKE
=$ac_cv_path_AUTOMAKE
5155 if test -n "$AUTOMAKE"; then
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOMAKE" >&5
5157 $as_echo "$AUTOMAKE" >&6; }
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5160 $as_echo "no" >&6; }
5164 # Extract the first word of "aclocal", so it can be a program name with args.
5165 set dummy aclocal
; ac_word
=$2
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5167 $as_echo_n "checking for $ac_word... " >&6; }
5168 if ${ac_cv_path_ACLOCAL+:} false
; then :
5169 $as_echo_n "(cached) " >&6
5173 ac_cv_path_ACLOCAL
="$ACLOCAL" # Let the user override the test with a path.
5176 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5180 test -z "$as_dir" && as_dir
=.
5181 for ac_exec_ext
in '' $ac_executable_extensions; do
5182 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5183 ac_cv_path_ACLOCAL
="$as_dir/$ac_word$ac_exec_ext"
5184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5194 ACLOCAL
=$ac_cv_path_ACLOCAL
5195 if test -n "$ACLOCAL"; then
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ACLOCAL" >&5
5197 $as_echo "$ACLOCAL" >&6; }
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5200 $as_echo "no" >&6; }
5204 # Extract the first word of "autoheader", so it can be a program name with args.
5205 set dummy autoheader
; ac_word
=$2
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5207 $as_echo_n "checking for $ac_word... " >&6; }
5208 if ${ac_cv_path_AUTOHEADER+:} false
; then :
5209 $as_echo_n "(cached) " >&6
5213 ac_cv_path_AUTOHEADER
="$AUTOHEADER" # Let the user override the test with a path.
5216 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5220 test -z "$as_dir" && as_dir
=.
5221 for ac_exec_ext
in '' $ac_executable_extensions; do
5222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5223 ac_cv_path_AUTOHEADER
="$as_dir/$ac_word$ac_exec_ext"
5224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5234 AUTOHEADER
=$ac_cv_path_AUTOHEADER
5235 if test -n "$AUTOHEADER"; then
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUTOHEADER" >&5
5237 $as_echo "$AUTOHEADER" >&6; }
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5240 $as_echo "no" >&6; }
5244 # Extract the first word of "as", so it can be a program name with args.
5245 set dummy as
; ac_word
=$2
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5247 $as_echo_n "checking for $ac_word... " >&6; }
5248 if ${ac_cv_path_AS+:} false
; then :
5249 $as_echo_n "(cached) " >&6
5253 ac_cv_path_AS
="$AS" # Let the user override the test with a path.
5256 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5260 test -z "$as_dir" && as_dir
=.
5261 for ac_exec_ext
in '' $ac_executable_extensions; do
5262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5263 ac_cv_path_AS
="$as_dir/$ac_word$ac_exec_ext"
5264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5275 if test -n "$AS"; then
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5277 $as_echo "$AS" >&6; }
5279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5280 $as_echo "no" >&6; }
5284 # Extract the first word of "rm", so it can be a program name with args.
5285 set dummy
rm; ac_word
=$2
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5287 $as_echo_n "checking for $ac_word... " >&6; }
5288 if ${ac_cv_path_RM+:} false
; then :
5289 $as_echo_n "(cached) " >&6
5293 ac_cv_path_RM
="$RM" # Let the user override the test with a path.
5296 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5300 test -z "$as_dir" && as_dir
=.
5301 for ac_exec_ext
in '' $ac_executable_extensions; do
5302 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5303 ac_cv_path_RM
="$as_dir/$ac_word$ac_exec_ext"
5304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5315 if test -n "$RM"; then
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
5317 $as_echo "$RM" >&6; }
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5320 $as_echo "no" >&6; }
5324 # Extract the first word of "cp", so it can be a program name with args.
5325 set dummy
cp; ac_word
=$2
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5327 $as_echo_n "checking for $ac_word... " >&6; }
5328 if ${ac_cv_path_CP+:} false
; then :
5329 $as_echo_n "(cached) " >&6
5333 ac_cv_path_CP
="$CP" # Let the user override the test with a path.
5336 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5340 test -z "$as_dir" && as_dir
=.
5341 for ac_exec_ext
in '' $ac_executable_extensions; do
5342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5343 ac_cv_path_CP
="$as_dir/$ac_word$ac_exec_ext"
5344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5355 if test -n "$CP"; then
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
5357 $as_echo "$CP" >&6; }
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5360 $as_echo "no" >&6; }
5364 # Extract the first word of "mv", so it can be a program name with args.
5365 set dummy
mv; ac_word
=$2
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5367 $as_echo_n "checking for $ac_word... " >&6; }
5368 if ${ac_cv_path_MV+:} false
; then :
5369 $as_echo_n "(cached) " >&6
5373 ac_cv_path_MV
="$MV" # Let the user override the test with a path.
5376 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5380 test -z "$as_dir" && as_dir
=.
5381 for ac_exec_ext
in '' $ac_executable_extensions; do
5382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5383 ac_cv_path_MV
="$as_dir/$ac_word$ac_exec_ext"
5384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5395 if test -n "$MV"; then
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
5397 $as_echo "$MV" >&6; }
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5400 $as_echo "no" >&6; }
5404 # Extract the first word of "ln", so it can be a program name with args.
5405 set dummy
ln; ac_word
=$2
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5407 $as_echo_n "checking for $ac_word... " >&6; }
5408 if ${ac_cv_path_LN+:} false
; then :
5409 $as_echo_n "(cached) " >&6
5413 ac_cv_path_LN
="$LN" # Let the user override the test with a path.
5416 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5420 test -z "$as_dir" && as_dir
=.
5421 for ac_exec_ext
in '' $ac_executable_extensions; do
5422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5423 ac_cv_path_LN
="$as_dir/$ac_word$ac_exec_ext"
5424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5435 if test -n "$LN"; then
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
5437 $as_echo "$LN" >&6; }
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5440 $as_echo "no" >&6; }
5444 # Extract the first word of "touch", so it can be a program name with args.
5445 set dummy
touch; ac_word
=$2
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5447 $as_echo_n "checking for $ac_word... " >&6; }
5448 if ${ac_cv_path_TOUCH+:} false
; then :
5449 $as_echo_n "(cached) " >&6
5453 ac_cv_path_TOUCH
="$TOUCH" # Let the user override the test with a path.
5456 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5460 test -z "$as_dir" && as_dir
=.
5461 for ac_exec_ext
in '' $ac_executable_extensions; do
5462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5463 ac_cv_path_TOUCH
="$as_dir/$ac_word$ac_exec_ext"
5464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5474 TOUCH
=$ac_cv_path_TOUCH
5475 if test -n "$TOUCH"; then
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5477 $as_echo "$TOUCH" >&6; }
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5480 $as_echo "no" >&6; }
5485 ac_cpp
='$CPP $CPPFLAGS'
5486 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5487 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5488 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5494 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5500 macro_revision
='1.3293'
5514 ltmain
="$ac_aux_dir/ltmain.sh"
5516 # Make sure we can run config.sub.
5517 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
5518 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5521 $as_echo_n "checking build system type... " >&6; }
5522 if ${ac_cv_build+:} false
; then :
5523 $as_echo_n "(cached) " >&6
5525 ac_build_alias
=$build_alias
5526 test "x$ac_build_alias" = x
&&
5527 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
5528 test "x$ac_build_alias" = x
&&
5529 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
5530 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5531 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5535 $as_echo "$ac_cv_build" >&6; }
5536 case $ac_cv_build in
5538 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
5541 ac_save_IFS
=$IFS; IFS
='-'
5547 # Remember, the first character of IFS is used to create $*,
5548 # except with old shells:
5551 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5555 $as_echo_n "checking host system type... " >&6; }
5556 if ${ac_cv_host+:} false
; then :
5557 $as_echo_n "(cached) " >&6
5559 if test "x$host_alias" = x
; then
5560 ac_cv_host
=$ac_cv_build
5562 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5563 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5568 $as_echo "$ac_cv_host" >&6; }
5571 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
5574 ac_save_IFS
=$IFS; IFS
='-'
5580 # Remember, the first character of IFS is used to create $*,
5581 # except with old shells:
5584 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
5587 # Backslashify metacharacters that are still active within
5588 # double-quoted strings.
5589 sed_quote_subst
='s/\(["`$\\]\)/\\\1/g'
5591 # Same as above, but do not quote variable references.
5592 double_quote_subst
='s/\(["`\\]\)/\\\1/g'
5594 # Sed substitution to delay expansion of an escaped shell variable in a
5595 # double_quote_subst'ed string.
5596 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
5598 # Sed substitution to delay expansion of an escaped single quote.
5599 delay_single_quote_subst
='s/'\''/'\'\\\\\\\'\''/g'
5601 # Sed substitution to avoid accidental globbing in evaled expressions
5602 no_glob_subst
='s/\*/\\\*/g'
5604 ECHO
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5605 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5606 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5609 $as_echo_n "checking how to print strings... " >&6; }
5610 # Test print first, because it will be a builtin if present.
5611 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
5612 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5614 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5617 # Use this function as a fallback that always works.
5618 func_fallback_echo ()
5620 eval 'cat <<_LTECHO_EOF
5624 ECHO='func_fallback_echo
'
5627 # func_echo_all arg...
5628 # Invoke $ECHO with all args, space-separated.
5635 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5636 $as_echo "printf" >&6; } ;;
5637 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5638 $as_echo "print -r" >&6; } ;;
5639 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5640 $as_echo "cat" >&6; } ;;
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5657 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5658 if ${ac_cv_path_SED+:} false; then :
5659 $as_echo_n "(cached) " >&6
5661 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5662 for ac_i in 1 2 3 4 5 6 7; do
5663 ac_script="$ac_script$as_nl$ac_script"
5665 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5666 { ac_script=; unset ac_script;}
5667 if test -z "$SED"; then
5668 ac_path_SED_found=false
5669 # Loop through the user's path and
test for each of PROGNAME
-LIST
5670 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5674 test -z "$as_dir" && as_dir
=.
5675 for ac_prog
in sed gsed
; do
5676 for ac_exec_ext
in '' $ac_executable_extensions; do
5677 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
5678 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5679 # Check for GNU ac_path_SED and select it if it is found.
5680 # Check for GNU $ac_path_SED
5681 case `"$ac_path_SED" --version 2>&1` in
5683 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
5686 $as_echo_n 0123456789 >"conftest.in"
5689 cat "conftest.in" "conftest.in" >"conftest.tmp"
5690 mv "conftest.tmp" "conftest.in"
5691 cp "conftest.in" "conftest.nl"
5692 $as_echo '' >> "conftest.nl"
5693 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null
|| break
5694 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 || break
5695 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5696 if test $ac_count -gt ${ac_path_SED_max-0}; then
5697 # Best one so far, save it but keep looking for a better one
5698 ac_cv_path_SED
="$ac_path_SED"
5699 ac_path_SED_max
=$ac_count
5701 # 10*(2^10) chars as input seems more than enough
5702 test $ac_count -gt 10 && break
5704 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5707 $ac_path_SED_found && break 3
5712 if test -z "$ac_cv_path_SED"; then
5713 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5721 $as_echo "$ac_cv_path_SED" >&6; }
5722 SED
="$ac_cv_path_SED"
5725 test -z "$SED" && SED
=sed
5726 Xsed
="$SED -e 1s/^X//"
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5739 $as_echo_n "checking for fgrep... " >&6; }
5740 if ${ac_cv_path_FGREP+:} false
; then :
5741 $as_echo_n "(cached) " >&6
5743 if echo 'ab*c' | $GREP -F 'ab*c' >/dev
/null
2>&1
5744 then ac_cv_path_FGREP
="$GREP -F"
5746 if test -z "$FGREP"; then
5747 ac_path_FGREP_found
=false
5748 # Loop through the user's path and test for each of PROGNAME-LIST
5749 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5750 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
5753 test -z "$as_dir" && as_dir
=.
5754 for ac_prog
in fgrep
; do
5755 for ac_exec_ext
in '' $ac_executable_extensions; do
5756 ac_path_FGREP
="$as_dir/$ac_prog$ac_exec_ext"
5757 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5758 # Check for GNU ac_path_FGREP and select it if it is found.
5759 # Check for GNU $ac_path_FGREP
5760 case `"$ac_path_FGREP" --version 2>&1` in
5762 ac_cv_path_FGREP
="$ac_path_FGREP" ac_path_FGREP_found
=:;;
5765 $as_echo_n 0123456789 >"conftest.in"
5768 cat "conftest.in" "conftest.in" >"conftest.tmp"
5769 mv "conftest.tmp" "conftest.in"
5770 cp "conftest.in" "conftest.nl"
5771 $as_echo 'FGREP' >> "conftest.nl"
5772 "$ac_path_FGREP" FGREP
< "conftest.nl" >"conftest.out" 2>/dev
/null
|| break
5773 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 || break
5774 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
5775 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5776 # Best one so far, save it but keep looking for a better one
5777 ac_cv_path_FGREP
="$ac_path_FGREP"
5778 ac_path_FGREP_max
=$ac_count
5780 # 10*(2^10) chars as input seems more than enough
5781 test $ac_count -gt 10 && break
5783 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
5786 $ac_path_FGREP_found && break 3
5791 if test -z "$ac_cv_path_FGREP"; then
5792 as_fn_error $?
"no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5795 ac_cv_path_FGREP
=$FGREP
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5801 $as_echo "$ac_cv_path_FGREP" >&6; }
5802 FGREP
="$ac_cv_path_FGREP"
5805 test -z "$GREP" && GREP
=grep
5825 # Check whether --with-gnu-ld was given.
5826 if test "${with_gnu_ld+set}" = set; then :
5827 withval
=$with_gnu_ld; test "$withval" = no
|| with_gnu_ld
=yes
5833 if test "$GCC" = yes; then
5834 # Check if gcc -print-prog-name=ld gives a path.
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5836 $as_echo_n "checking for ld used by $CC... " >&6; }
5839 # gcc leaves a trailing carriage return which upsets mingw
5840 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5842 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
5845 # Accept absolute paths.
5847 re_direlt
='/[^/][^/]*/\.\./'
5848 # Canonicalize the pathname of ld
5849 ac_prog
=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5850 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev
/null
2>&1; do
5851 ac_prog
=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5853 test -z "$LD" && LD
="$ac_prog"
5856 # If it fails, then pretend we aren't using GCC.
5860 # If it is relative, then search for the first ld in PATH.
5864 elif test "$with_gnu_ld" = yes; then
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5866 $as_echo_n "checking for GNU ld... " >&6; }
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5869 $as_echo_n "checking for non-GNU ld... " >&6; }
5871 if ${lt_cv_path_LD+:} false
; then :
5872 $as_echo_n "(cached) " >&6
5874 if test -z "$LD"; then
5875 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
5876 for ac_dir
in $PATH; do
5878 test -z "$ac_dir" && ac_dir
=.
5879 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5880 lt_cv_path_LD
="$ac_dir/$ac_prog"
5881 # Check to see if the program is GNU ld. I'd rather use --version,
5882 # but apparently some variants of GNU ld only accept -v.
5883 # Break only if it was the GNU/non-GNU ld that we prefer.
5884 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5885 *GNU
* | *'with BFD'*)
5886 test "$with_gnu_ld" != no
&& break
5889 test "$with_gnu_ld" != yes && break
5896 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
5901 if test -n "$LD"; then
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5903 $as_echo "$LD" >&6; }
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5906 $as_echo "no" >&6; }
5908 test -z "$LD" && as_fn_error $?
"no acceptable ld found in \$PATH" "$LINENO" 5
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5910 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5911 if ${lt_cv_prog_gnu_ld+:} false
; then :
5912 $as_echo_n "(cached) " >&6
5914 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5915 case `$LD -v 2>&1 </dev/null` in
5916 *GNU
* | *'with BFD'*)
5917 lt_cv_prog_gnu_ld
=yes
5920 lt_cv_prog_gnu_ld
=no
5924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5925 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5926 with_gnu_ld
=$lt_cv_prog_gnu_ld
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5937 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5938 if ${lt_cv_path_NM+:} false
; then :
5939 $as_echo_n "(cached) " >&6
5941 if test -n "$NM"; then
5942 # Let the user override the test.
5945 lt_nm_to_check
="${ac_tool_prefix}nm"
5946 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5947 lt_nm_to_check
="$lt_nm_to_check nm"
5949 for lt_tmp_nm
in $lt_nm_to_check; do
5950 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
5951 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
5953 test -z "$ac_dir" && ac_dir
=.
5954 tmp_nm
="$ac_dir/$lt_tmp_nm"
5955 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5956 # Check to see if the nm accepts a BSD-compat flag.
5957 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5958 # nm: unknown option "B" ignored
5959 # Tru64's nm complains that /dev/null is an invalid object file
5960 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5961 */dev
/null
* | *'Invalid file or object type'*)
5962 lt_cv_path_NM
="$tmp_nm -B"
5966 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5968 lt_cv_path_NM
="$tmp_nm -p"
5972 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5973 continue # so that we can try to find one that supports BSD flags
5982 : ${lt_cv_path_NM=no}
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5986 $as_echo "$lt_cv_path_NM" >&6; }
5987 if test "$lt_cv_path_NM" != "no"; then
5990 # Didn't find any BSD compatible name lister, look for dumpbin.
5991 if test -n "$DUMPBIN"; then :
5992 # Let the user override the test.
5994 if test -n "$ac_tool_prefix"; then
5995 for ac_prog
in dumpbin
"link -dump"
5997 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5998 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6000 $as_echo_n "checking for $ac_word... " >&6; }
6001 if ${ac_cv_prog_DUMPBIN+:} false
; then :
6002 $as_echo_n "(cached) " >&6
6004 if test -n "$DUMPBIN"; then
6005 ac_cv_prog_DUMPBIN
="$DUMPBIN" # Let the user override the test.
6007 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6011 test -z "$as_dir" && as_dir
=.
6012 for ac_exec_ext
in '' $ac_executable_extensions; do
6013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6014 ac_cv_prog_DUMPBIN
="$ac_tool_prefix$ac_prog"
6015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6024 DUMPBIN
=$ac_cv_prog_DUMPBIN
6025 if test -n "$DUMPBIN"; then
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6027 $as_echo "$DUMPBIN" >&6; }
6029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6030 $as_echo "no" >&6; }
6034 test -n "$DUMPBIN" && break
6037 if test -z "$DUMPBIN"; then
6038 ac_ct_DUMPBIN
=$DUMPBIN
6039 for ac_prog
in dumpbin
"link -dump"
6041 # Extract the first word of "$ac_prog", so it can be a program name with args.
6042 set dummy
$ac_prog; ac_word
=$2
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6044 $as_echo_n "checking for $ac_word... " >&6; }
6045 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false
; then :
6046 $as_echo_n "(cached) " >&6
6048 if test -n "$ac_ct_DUMPBIN"; then
6049 ac_cv_prog_ac_ct_DUMPBIN
="$ac_ct_DUMPBIN" # Let the user override the test.
6051 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6055 test -z "$as_dir" && as_dir
=.
6056 for ac_exec_ext
in '' $ac_executable_extensions; do
6057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6058 ac_cv_prog_ac_ct_DUMPBIN
="$ac_prog"
6059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6068 ac_ct_DUMPBIN
=$ac_cv_prog_ac_ct_DUMPBIN
6069 if test -n "$ac_ct_DUMPBIN"; then
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6071 $as_echo "$ac_ct_DUMPBIN" >&6; }
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6074 $as_echo "no" >&6; }
6078 test -n "$ac_ct_DUMPBIN" && break
6081 if test "x$ac_ct_DUMPBIN" = x
; then
6084 case $cross_compiling:$ac_tool_warned in
6086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6087 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6088 ac_tool_warned
=yes ;;
6090 DUMPBIN
=$ac_ct_DUMPBIN
6094 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6096 DUMPBIN
="$DUMPBIN -symbols"
6104 if test "$DUMPBIN" != ":"; then
6108 test -z "$NM" && NM
=nm
6115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6116 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6117 if ${lt_cv_nm_interface+:} false
; then :
6118 $as_echo_n "(cached) " >&6
6120 lt_cv_nm_interface
="BSD nm"
6121 echo "int some_variable = 0;" > conftest.
$ac_ext
6122 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6123 (eval "$ac_compile" 2>conftest.err
)
6124 cat conftest.err
>&5
6125 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6126 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err
> conftest.out
)
6127 cat conftest.err
>&5
6128 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6129 cat conftest.out
>&5
6130 if $GREP 'External.*some_variable' conftest.out
> /dev
/null
; then
6131 lt_cv_nm_interface
="MS dumpbin"
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6136 $as_echo "$lt_cv_nm_interface" >&6; }
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6139 $as_echo_n "checking whether ln -s works... " >&6; }
6141 if test "$LN_S" = "ln -s"; then
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6143 $as_echo "yes" >&6; }
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6146 $as_echo "no, using $LN_S" >&6; }
6149 # find the maximum length of command line arguments
6150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6151 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6152 if ${lt_cv_sys_max_cmd_len+:} false
; then :
6153 $as_echo_n "(cached) " >&6
6160 # On DJGPP, this test can blow up pretty badly due to problems in libc
6161 # (any single argument exceeding 2000 bytes causes a buffer overrun
6162 # during glob expansion). Even if it were fixed, the result of this
6163 # check would be larger than it should be.
6164 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
6168 # Under GNU Hurd, this test is not required because there is
6169 # no limit to the length of command line arguments.
6170 # Libtool will interpret -1 as no limit whatsoever
6171 lt_cv_sys_max_cmd_len
=-1;
6174 cygwin
* | mingw
* | cegcc
*)
6175 # On Win9x/ME, this test blows up -- it succeeds, but takes
6176 # about 5 minutes as the teststring grows exponentially.
6177 # Worse, since 9x/ME are not pre-emptively multitasking,
6178 # you end up with a "frozen" computer, even though with patience
6179 # the test eventually succeeds (with a max line length of 256k).
6180 # Instead, let's just punt: use the minimum linelength reported by
6181 # all of the supported platforms: 8192 (on NT/2K/XP).
6182 lt_cv_sys_max_cmd_len
=8192;
6186 # On MiNT this can take a long time and run out of memory.
6187 lt_cv_sys_max_cmd_len
=8192;
6191 # On AmigaOS with pdksh, this test takes hours, literally.
6192 # So we just punt and use a minimum line length of 8192.
6193 lt_cv_sys_max_cmd_len
=8192;
6196 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
6197 # This has been around since 386BSD, at least. Likely further.
6198 if test -x /sbin
/sysctl
; then
6199 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
6200 elif test -x /usr
/sbin
/sysctl
; then
6201 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
6203 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
6205 # And add a safety zone
6206 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
6207 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
6211 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6212 lt_cv_sys_max_cmd_len
=196608
6216 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6217 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6218 # nice to cause kernel panics so lets avoid the loop below.
6219 # First set a reasonable default.
6220 lt_cv_sys_max_cmd_len
=16384
6222 if test -x /sbin
/sysconfig
; then
6223 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6224 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
6229 lt_cv_sys_max_cmd_len
=102400
6231 sysv5
* | sco5v6
* | sysv4.2uw2
*)
6232 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6233 if test -n "$kargmax"; then
6234 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
6236 lt_cv_sys_max_cmd_len
=32768
6240 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
6241 if test -n "$lt_cv_sys_max_cmd_len"; then
6242 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
6243 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
6245 # Make teststring a little bigger before we do anything with it.
6246 # a 1K string should be a reasonable start.
6247 for i
in 1 2 3 4 5 6 7 8 ; do
6248 teststring
=$teststring$teststring
6250 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
6251 # If test is not a shell built-in, we'll probably end up computing a
6252 # maximum length that is only half of the actual maximum length, but
6254 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6255 = "X$teststring$teststring"; } >/dev
/null
2>&1 &&
6256 test $i != 17 # 1/2 MB should be enough
6259 teststring
=$teststring$teststring
6261 # Only check the string length outside the loop.
6262 lt_cv_sys_max_cmd_len
=`expr "X$teststring" : ".*" 2>&1`
6264 # Add a significant safety factor because C++ compilers can tack on
6265 # massive amounts of additional arguments before passing them to the
6266 # linker. It appears as though 1/2 is a usable value.
6267 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
6274 if test -n $lt_cv_sys_max_cmd_len ; then
6275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6276 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6279 $as_echo "none" >&6; }
6281 max_cmd_len
=$lt_cv_sys_max_cmd_len
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6293 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6294 # Try some XSI features
6297 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
6299 && eval 'test $(( 1 + 1 )) -eq 2 \
6300 && test "${#_lt_dummy}" -eq 5' ) >/dev
/null
2>&1 \
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6303 $as_echo "$xsi_shell" >&6; }
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6307 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6309 ( foo
=bar
; set foo baz
; eval "$1+=\$2" && test "$foo" = barbaz
) \
6311 && lt_shell_append
=yes
6312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6313 $as_echo "$lt_shell_append" >&6; }
6316 if ( (MAIL
=60; unset MAIL
) || exit) >/dev
/null
2>&1; then
6326 # test EBCDIC or ASCII
6327 case `echo X|tr X '\101'` in
6328 A
) # ASCII based system
6329 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6330 lt_SP2NL
='tr \040 \012'
6331 lt_NL2SP
='tr \015\012 \040\040'
6333 *) # EBCDIC based system
6334 lt_SP2NL
='tr \100 \n'
6335 lt_NL2SP
='tr \r\n \100\100'
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
6348 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
6349 if ${lt_cv_to_host_file_cmd+:} false
; then :
6350 $as_echo_n "(cached) " >&6
6355 *-*-mingw* ) # actually msys
6356 lt_cv_to_host_file_cmd
=func_convert_file_msys_to_w32
6359 lt_cv_to_host_file_cmd
=func_convert_file_cygwin_to_w32
6361 * ) # otherwise, assume *nix
6362 lt_cv_to_host_file_cmd
=func_convert_file_nix_to_w32
6368 *-*-mingw* ) # actually msys
6369 lt_cv_to_host_file_cmd
=func_convert_file_msys_to_cygwin
6372 lt_cv_to_host_file_cmd
=func_convert_file_noop
6374 * ) # otherwise, assume *nix
6375 lt_cv_to_host_file_cmd
=func_convert_file_nix_to_cygwin
6379 * ) # unhandled hosts (and "normal" native builds)
6380 lt_cv_to_host_file_cmd
=func_convert_file_noop
6386 to_host_file_cmd
=$lt_cv_to_host_file_cmd
6387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
6388 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
6395 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
6396 if ${lt_cv_to_tool_file_cmd+:} false
; then :
6397 $as_echo_n "(cached) " >&6
6399 #assume ordinary cross tools, or native build.
6400 lt_cv_to_tool_file_cmd
=func_convert_file_noop
6404 *-*-mingw* ) # actually msys
6405 lt_cv_to_tool_file_cmd
=func_convert_file_msys_to_w32
6413 to_tool_file_cmd
=$lt_cv_to_tool_file_cmd
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
6415 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6422 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6423 if ${lt_cv_ld_reload_flag+:} false
; then :
6424 $as_echo_n "(cached) " >&6
6426 lt_cv_ld_reload_flag
='-r'
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6429 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6430 reload_flag
=$lt_cv_ld_reload_flag
6431 case $reload_flag in
6433 *) reload_flag
=" $reload_flag" ;;
6435 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
6437 cygwin
* | mingw
* | pw32
* | cegcc
*)
6438 if test "$GCC" != yes; then
6443 if test "$GCC" = yes; then
6444 reload_cmds
='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6446 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
6459 if test -n "$ac_tool_prefix"; then
6460 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6461 set dummy
${ac_tool_prefix}objdump
; ac_word
=$2
6462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6463 $as_echo_n "checking for $ac_word... " >&6; }
6464 if ${ac_cv_prog_OBJDUMP+:} false
; then :
6465 $as_echo_n "(cached) " >&6
6467 if test -n "$OBJDUMP"; then
6468 ac_cv_prog_OBJDUMP
="$OBJDUMP" # Let the user override the test.
6470 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6474 test -z "$as_dir" && as_dir
=.
6475 for ac_exec_ext
in '' $ac_executable_extensions; do
6476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6477 ac_cv_prog_OBJDUMP
="${ac_tool_prefix}objdump"
6478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6487 OBJDUMP
=$ac_cv_prog_OBJDUMP
6488 if test -n "$OBJDUMP"; then
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6490 $as_echo "$OBJDUMP" >&6; }
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6493 $as_echo "no" >&6; }
6498 if test -z "$ac_cv_prog_OBJDUMP"; then
6499 ac_ct_OBJDUMP
=$OBJDUMP
6500 # Extract the first word of "objdump", so it can be a program name with args.
6501 set dummy objdump
; ac_word
=$2
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6503 $as_echo_n "checking for $ac_word... " >&6; }
6504 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false
; then :
6505 $as_echo_n "(cached) " >&6
6507 if test -n "$ac_ct_OBJDUMP"; then
6508 ac_cv_prog_ac_ct_OBJDUMP
="$ac_ct_OBJDUMP" # Let the user override the test.
6510 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6514 test -z "$as_dir" && as_dir
=.
6515 for ac_exec_ext
in '' $ac_executable_extensions; do
6516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6517 ac_cv_prog_ac_ct_OBJDUMP
="objdump"
6518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6527 ac_ct_OBJDUMP
=$ac_cv_prog_ac_ct_OBJDUMP
6528 if test -n "$ac_ct_OBJDUMP"; then
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6530 $as_echo "$ac_ct_OBJDUMP" >&6; }
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6533 $as_echo "no" >&6; }
6536 if test "x$ac_ct_OBJDUMP" = x
; then
6539 case $cross_compiling:$ac_tool_warned in
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6542 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6543 ac_tool_warned
=yes ;;
6545 OBJDUMP
=$ac_ct_OBJDUMP
6548 OBJDUMP
="$ac_cv_prog_OBJDUMP"
6551 test -z "$OBJDUMP" && OBJDUMP
=objdump
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6562 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6563 if ${lt_cv_deplibs_check_method+:} false
; then :
6564 $as_echo_n "(cached) " >&6
6566 lt_cv_file_magic_cmd
='$MAGIC_CMD'
6567 lt_cv_file_magic_test_file
=
6568 lt_cv_deplibs_check_method
='unknown'
6569 # Need to set the preceding variable on all platforms that support
6570 # interlibrary dependencies.
6571 # 'none' -- dependencies not supported.
6572 # `unknown' -- same as none, but documents that we really don't know.
6573 # 'pass_all' -- all dependencies passed with no checks.
6574 # 'test_compile' -- check by making test program.
6575 # 'file_magic [[regex]]' -- check by looking for files in library path
6576 # which responds to the $file_magic_cmd with a given extended regex.
6577 # If you have `file' or equivalent on your system and you're not sure
6578 # whether `pass_all' will *always* work, you probably want this one.
6582 lt_cv_deplibs_check_method
=pass_all
6586 lt_cv_deplibs_check_method
=pass_all
6590 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6591 lt_cv_file_magic_cmd
='/usr/bin/file -L'
6592 lt_cv_file_magic_test_file
=/shlib
/libc.so
6596 # func_win32_libid is a shell function defined in ltmain.sh
6597 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
6598 lt_cv_file_magic_cmd
='func_win32_libid'
6602 # Base MSYS/MinGW do not provide the 'file' command needed by
6603 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6604 # unless we find 'file', for example because we are cross-compiling.
6605 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6606 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev
/null
2>&1; then
6607 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
6608 lt_cv_file_magic_cmd
='func_win32_libid'
6610 # Keep this pattern in sync with the one in func_win32_libid.
6611 lt_cv_deplibs_check_method
='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6612 lt_cv_file_magic_cmd
='$OBJDUMP -f'
6617 # use the weaker test based on 'objdump'. See mingw*.
6618 lt_cv_deplibs_check_method
='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6619 lt_cv_file_magic_cmd
='$OBJDUMP -f'
6622 darwin
* | rhapsody
*)
6623 lt_cv_deplibs_check_method
=pass_all
6626 freebsd
* | dragonfly
*)
6627 if echo __ELF__
| $CC -E - | $GREP __ELF__
> /dev
/null
; then
6630 # Not sure whether the presence of OpenBSD here was a mistake.
6631 # Let's accept both of them until this is cleared up.
6632 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6633 lt_cv_file_magic_cmd
=/usr
/bin
/file
6634 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
6638 lt_cv_deplibs_check_method
=pass_all
6643 lt_cv_deplibs_check_method
=pass_all
6647 lt_cv_deplibs_check_method
=pass_all
6650 hpux10.20
* | hpux11
*)
6651 lt_cv_file_magic_cmd
=/usr
/bin
/file
6654 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6655 lt_cv_file_magic_test_file
=/usr
/lib
/hpux
32/libc.so
6658 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]'
6659 lt_cv_file_magic_test_file
=/usr
/lib
/pa
20_
64/libc.sl
6662 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6663 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
6669 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6670 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|\.a)$'
6673 irix5
* | irix6
* | nonstopux
*)
6675 *-32|*"-32 ") libmagic
=32-bit;;
6676 *-n32|*"-n32 ") libmagic
=N32
;;
6677 *-64|*"-64 ") libmagic
=64-bit;;
6678 *) libmagic
=never
-match;;
6680 lt_cv_deplibs_check_method
=pass_all
6683 # This must be Linux ELF.
6684 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
6685 lt_cv_deplibs_check_method
=pass_all
6689 if echo __ELF__
| $CC -E - | $GREP __ELF__
> /dev
/null
; then
6690 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6692 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6697 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6698 lt_cv_file_magic_cmd
=/usr
/bin
/file
6699 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
6703 lt_cv_deplibs_check_method
=pass_all
6707 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6708 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6710 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6714 osf3
* | osf4
* | osf5
*)
6715 lt_cv_deplibs_check_method
=pass_all
6719 lt_cv_deplibs_check_method
=pass_all
6723 lt_cv_deplibs_check_method
=pass_all
6726 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
6727 lt_cv_deplibs_check_method
=pass_all
6731 case $host_vendor in
6733 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]'
6734 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
6737 lt_cv_deplibs_check_method
=pass_all
6740 lt_cv_file_magic_cmd
='/bin/file'
6741 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6744 lt_cv_file_magic_cmd
='/bin/file'
6745 lt_cv_deplibs_check_method
="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6746 lt_cv_file_magic_test_file
=/lib
/libc.so
6749 lt_cv_deplibs_check_method
=pass_all
6752 lt_cv_deplibs_check_method
=pass_all
6758 lt_cv_deplibs_check_method
=pass_all
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6764 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6768 if test "$build" = "$host"; then
6771 if ( shopt | grep nocaseglob
) >/dev
/null
2>&1; then
6774 file_magic_glob
=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6780 file_magic_cmd
=$lt_cv_file_magic_cmd
6781 deplibs_check_method
=$lt_cv_deplibs_check_method
6782 test -z "$deplibs_check_method" && deplibs_check_method
=unknown
6805 if test -n "$ac_tool_prefix"; then
6806 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6807 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6809 $as_echo_n "checking for $ac_word... " >&6; }
6810 if ${ac_cv_prog_DLLTOOL+:} false
; then :
6811 $as_echo_n "(cached) " >&6
6813 if test -n "$DLLTOOL"; then
6814 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
6816 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6820 test -z "$as_dir" && as_dir
=.
6821 for ac_exec_ext
in '' $ac_executable_extensions; do
6822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6823 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
6824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6833 DLLTOOL
=$ac_cv_prog_DLLTOOL
6834 if test -n "$DLLTOOL"; then
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6836 $as_echo "$DLLTOOL" >&6; }
6838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6839 $as_echo "no" >&6; }
6844 if test -z "$ac_cv_prog_DLLTOOL"; then
6845 ac_ct_DLLTOOL
=$DLLTOOL
6846 # Extract the first word of "dlltool", so it can be a program name with args.
6847 set dummy dlltool
; ac_word
=$2
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6849 $as_echo_n "checking for $ac_word... " >&6; }
6850 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false
; then :
6851 $as_echo_n "(cached) " >&6
6853 if test -n "$ac_ct_DLLTOOL"; then
6854 ac_cv_prog_ac_ct_DLLTOOL
="$ac_ct_DLLTOOL" # Let the user override the test.
6856 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6860 test -z "$as_dir" && as_dir
=.
6861 for ac_exec_ext
in '' $ac_executable_extensions; do
6862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6863 ac_cv_prog_ac_ct_DLLTOOL
="dlltool"
6864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6873 ac_ct_DLLTOOL
=$ac_cv_prog_ac_ct_DLLTOOL
6874 if test -n "$ac_ct_DLLTOOL"; then
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6876 $as_echo "$ac_ct_DLLTOOL" >&6; }
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6879 $as_echo "no" >&6; }
6882 if test "x$ac_ct_DLLTOOL" = x
; then
6885 case $cross_compiling:$ac_tool_warned in
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6888 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6889 ac_tool_warned
=yes ;;
6891 DLLTOOL
=$ac_ct_DLLTOOL
6894 DLLTOOL
="$ac_cv_prog_DLLTOOL"
6897 test -z "$DLLTOOL" && DLLTOOL
=dlltool
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6909 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6910 if ${lt_cv_sharedlib_from_linklib_cmd+:} false
; then :
6911 $as_echo_n "(cached) " >&6
6913 lt_cv_sharedlib_from_linklib_cmd
='unknown'
6916 cygwin
* | mingw
* | pw32
* | cegcc
*)
6917 # two different shell functions defined in ltmain.sh
6918 # decide which to use based on capabilities of $DLLTOOL
6919 case `$DLLTOOL --help 2>&1` in
6920 *--identify-strict*)
6921 lt_cv_sharedlib_from_linklib_cmd
=func_cygming_dll_for_implib
6924 lt_cv_sharedlib_from_linklib_cmd
=func_cygming_dll_for_implib_fallback
6929 # fallback: assume linklib IS sharedlib
6930 lt_cv_sharedlib_from_linklib_cmd
="$ECHO"
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6936 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6937 sharedlib_from_linklib_cmd
=$lt_cv_sharedlib_from_linklib_cmd
6938 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd
=$ECHO
6946 if test -n "$ac_tool_prefix"; then
6949 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6950 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6952 $as_echo_n "checking for $ac_word... " >&6; }
6953 if ${ac_cv_prog_AR+:} false
; then :
6954 $as_echo_n "(cached) " >&6
6956 if test -n "$AR"; then
6957 ac_cv_prog_AR
="$AR" # Let the user override the test.
6959 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6963 test -z "$as_dir" && as_dir
=.
6964 for ac_exec_ext
in '' $ac_executable_extensions; do
6965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6966 ac_cv_prog_AR
="$ac_tool_prefix$ac_prog"
6967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6977 if test -n "$AR"; then
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6979 $as_echo "$AR" >&6; }
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6982 $as_echo "no" >&6; }
6986 test -n "$AR" && break
6989 if test -z "$AR"; then
6993 # Extract the first word of "$ac_prog", so it can be a program name with args.
6994 set dummy
$ac_prog; ac_word
=$2
6995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6996 $as_echo_n "checking for $ac_word... " >&6; }
6997 if ${ac_cv_prog_ac_ct_AR+:} false
; then :
6998 $as_echo_n "(cached) " >&6
7000 if test -n "$ac_ct_AR"; then
7001 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
7003 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7007 test -z "$as_dir" && as_dir
=.
7008 for ac_exec_ext
in '' $ac_executable_extensions; do
7009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7010 ac_cv_prog_ac_ct_AR
="$ac_prog"
7011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7020 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
7021 if test -n "$ac_ct_AR"; then
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7023 $as_echo "$ac_ct_AR" >&6; }
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7026 $as_echo "no" >&6; }
7030 test -n "$ac_ct_AR" && break
7033 if test "x$ac_ct_AR" = x
; then
7036 case $cross_compiling:$ac_tool_warned in
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7039 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7040 ac_tool_warned
=yes ;;
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
7060 $as_echo_n "checking for archiver @FILE support... " >&6; }
7061 if ${lt_cv_ar_at_file+:} false
; then :
7062 $as_echo_n "(cached) " >&6
7065 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7066 /* end confdefs.h. */
7076 if ac_fn_c_try_compile
"$LINENO"; then :
7077 echo conftest.
$ac_objext > conftest.lst
7078 lt_ar_try
='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
7079 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7080 (eval $lt_ar_try) 2>&5
7082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7083 test $ac_status = 0; }
7084 if test "$ac_status" -eq 0; then
7085 # Ensure the archiver fails upon bogus file names.
7086 rm -f conftest.
$ac_objext libconftest.a
7087 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
7088 (eval $lt_ar_try) 2>&5
7090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7091 test $ac_status = 0; }
7092 if test "$ac_status" -ne 0; then
7096 rm -f conftest.
* libconftest.a
7099 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
7103 $as_echo "$lt_cv_ar_at_file" >&6; }
7105 if test "x$lt_cv_ar_at_file" = xno
; then
7108 archiver_list_spec
=$lt_cv_ar_at_file
7117 if test -n "$ac_tool_prefix"; then
7118 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7119 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7121 $as_echo_n "checking for $ac_word... " >&6; }
7122 if ${ac_cv_prog_STRIP+:} false
; then :
7123 $as_echo_n "(cached) " >&6
7125 if test -n "$STRIP"; then
7126 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
7128 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7132 test -z "$as_dir" && as_dir
=.
7133 for ac_exec_ext
in '' $ac_executable_extensions; do
7134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7135 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
7136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7145 STRIP
=$ac_cv_prog_STRIP
7146 if test -n "$STRIP"; then
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7148 $as_echo "$STRIP" >&6; }
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7151 $as_echo "no" >&6; }
7156 if test -z "$ac_cv_prog_STRIP"; then
7158 # Extract the first word of "strip", so it can be a program name with args.
7159 set dummy strip
; ac_word
=$2
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7161 $as_echo_n "checking for $ac_word... " >&6; }
7162 if ${ac_cv_prog_ac_ct_STRIP+:} false
; then :
7163 $as_echo_n "(cached) " >&6
7165 if test -n "$ac_ct_STRIP"; then
7166 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
7168 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7172 test -z "$as_dir" && as_dir
=.
7173 for ac_exec_ext
in '' $ac_executable_extensions; do
7174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7175 ac_cv_prog_ac_ct_STRIP
="strip"
7176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7185 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
7186 if test -n "$ac_ct_STRIP"; then
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7188 $as_echo "$ac_ct_STRIP" >&6; }
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7191 $as_echo "no" >&6; }
7194 if test "x$ac_ct_STRIP" = x
; then
7197 case $cross_compiling:$ac_tool_warned in
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7200 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7201 ac_tool_warned
=yes ;;
7206 STRIP
="$ac_cv_prog_STRIP"
7209 test -z "$STRIP" && STRIP
=:
7216 if test -n "$ac_tool_prefix"; then
7217 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7218 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7220 $as_echo_n "checking for $ac_word... " >&6; }
7221 if ${ac_cv_prog_RANLIB+:} false
; then :
7222 $as_echo_n "(cached) " >&6
7224 if test -n "$RANLIB"; then
7225 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7227 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7231 test -z "$as_dir" && as_dir
=.
7232 for ac_exec_ext
in '' $ac_executable_extensions; do
7233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7234 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7244 RANLIB
=$ac_cv_prog_RANLIB
7245 if test -n "$RANLIB"; then
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7247 $as_echo "$RANLIB" >&6; }
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7250 $as_echo "no" >&6; }
7255 if test -z "$ac_cv_prog_RANLIB"; then
7256 ac_ct_RANLIB
=$RANLIB
7257 # Extract the first word of "ranlib", so it can be a program name with args.
7258 set dummy ranlib
; ac_word
=$2
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7260 $as_echo_n "checking for $ac_word... " >&6; }
7261 if ${ac_cv_prog_ac_ct_RANLIB+:} false
; then :
7262 $as_echo_n "(cached) " >&6
7264 if test -n "$ac_ct_RANLIB"; then
7265 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7267 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7271 test -z "$as_dir" && as_dir
=.
7272 for ac_exec_ext
in '' $ac_executable_extensions; do
7273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7274 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7284 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7285 if test -n "$ac_ct_RANLIB"; then
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7287 $as_echo "$ac_ct_RANLIB" >&6; }
7289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7290 $as_echo "no" >&6; }
7293 if test "x$ac_ct_RANLIB" = x
; then
7296 case $cross_compiling:$ac_tool_warned in
7298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7299 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7300 ac_tool_warned
=yes ;;
7302 RANLIB
=$ac_ct_RANLIB
7305 RANLIB
="$ac_cv_prog_RANLIB"
7308 test -z "$RANLIB" && RANLIB
=:
7315 # Determine commands to create old-style static archives.
7316 old_archive_cmds
='$AR $AR_FLAGS $oldlib$oldobjs'
7317 old_postinstall_cmds
='chmod 644 $oldlib'
7318 old_postuninstall_cmds
=
7320 if test -n "$RANLIB"; then
7323 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7326 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB \$oldlib"
7329 old_archive_cmds
="$old_archive_cmds~\$RANLIB \$oldlib"
7334 lock_old_archive_extraction
=yes ;;
7336 lock_old_archive_extraction
=no
;;
7377 # If no C compiler was specified, use CC.
7380 # If no C compiler flags were specified, use CFLAGS.
7381 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
7383 # Allow CC to be a program name with arguments.
7387 # Check for command to grab the raw symbol name followed by C symbol from nm.
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7389 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7390 if ${lt_cv_sys_global_symbol_pipe+:} false
; then :
7391 $as_echo_n "(cached) " >&6
7394 # These are sane defaults that work on at least a few old systems.
7395 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7397 # Character class describing NM global symbol codes.
7398 symcode
='[BCDEGRST]'
7400 # Regexp to match symbols that can be accessed directly from C.
7401 sympat
='\([_A-Za-z][_A-Za-z0-9]*\)'
7403 # Define system-specific variables.
7408 cygwin
* | mingw
* | pw32
* | cegcc
*)
7409 symcode
='[ABCDGISTW]'
7412 if test "$host_cpu" = ia64
; then
7413 symcode
='[ABCDEGRST]'
7417 symcode
='[BCDEGRST]'
7420 symcode
='[BCDEGQRST]'
7431 sysv5
* | sco5v6
* | unixware
* | OpenUNIX
*)
7439 # If we're using GNU nm, then use its standard symbol codes.
7440 case `$NM -V 2>&1` in
7441 *GNU
* | *'with BFD'*)
7442 symcode
='[ABCDGIRSTW]' ;;
7445 # Transform an extracted symbol line into a proper C declaration.
7446 # Some systems (esp. on ia64) link data and code symbols differently,
7447 # so use this general approach.
7448 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7450 # Transform an extracted symbol line into symbol name and symbol address
7451 lt_cv_sys_global_symbol_to_c_name_address
="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7452 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'"
7454 # Handle CRLF in mingw tool chain
7458 opt_cr
=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7462 # Try without a prefix underscore, then with it.
7463 for ac_symprfx
in "" "_"; do
7465 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7466 symxfrm
="\\1 $ac_symprfx\\2 \\2"
7468 # Write the raw and C identifiers.
7469 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7470 # Fake it for dumpbin and say T for any non-static function
7471 # and D for any global variable.
7472 # Also find C++ and __fastcall symbols from MSVC++,
7473 # which start with @ or ?.
7474 lt_cv_sys_global_symbol_pipe
="$AWK '"\
7475 " {last_section=section; section=\$ 3};"\
7476 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7477 " \$ 0!~/External *\|/{next};"\
7478 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7479 " {if(hide[section]) next};"\
7480 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7481 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7482 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7483 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7484 " ' prfx=^$ac_symprfx"
7486 lt_cv_sys_global_symbol_pipe
="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7488 lt_cv_sys_global_symbol_pipe
="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
7490 # Check to see that the pipe works correctly.
7494 cat > conftest.
$ac_ext <<_LT_EOF
7499 void nm_test_func(void);
7500 void nm_test_func(void){}
7504 int main(){nm_test_var='a';nm_test_func();return(0);}
7507 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7508 (eval $ac_compile) 2>&5
7510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7511 test $ac_status = 0; }; then
7512 # Now try to grab the symbols.
7514 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7515 (eval $NM conftest.
$ac_objext \
| "$lt_cv_sys_global_symbol_pipe" \
> $nlist) 2>&5
7517 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7518 test $ac_status = 0; } && test -s "$nlist"; then
7519 # Try sorting and uniquifying the output.
7520 if sort "$nlist" | uniq > "$nlist"T
; then
7521 mv -f "$nlist"T
"$nlist"
7526 # Make sure that we snagged all the symbols we need.
7527 if $GREP ' nm_test_var$' "$nlist" >/dev
/null
; then
7528 if $GREP ' nm_test_func$' "$nlist" >/dev
/null
; then
7529 cat <<_LT_EOF > conftest.$ac_ext
7530 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
7531 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
7532 /* DATA imports from DLLs on WIN32 con't be const, because runtime
7533 relocations are performed -- see ld's documentation on pseudo-relocs. */
7534 # define LT_DLSYM_CONST
7535 #elif defined(__osf__)
7536 /* This system does not cope well with relocations in const data. */
7537 # define LT_DLSYM_CONST
7539 # define LT_DLSYM_CONST const
7547 # Now generate the symbol file.
7548 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7550 cat <<_LT_EOF >> conftest.$ac_ext
7552 /* The mapping between symbol names and symbols. */
7553 LT_DLSYM_CONST struct {
7557 lt__PROGRAM__LTX_preloaded_symbols[] =
7559 { "@PROGRAM@", (void *) 0 },
7561 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main
>> conftest.
$ac_ext
7562 cat <<\_LT_EOF
>> conftest.
$ac_ext
7566 /* This works around a problem
in FreeBSD linker
*/
7567 #ifdef FREEBSD_WORKAROUND
7568 static const void
*lt_preloaded_setup
() {
7569 return lt__PROGRAM__LTX_preloaded_symbols
;
7577 # Now try linking the two files.
7578 mv conftest.
$ac_objext conftstm.
$ac_objext
7579 lt_globsym_save_LIBS
=$LIBS
7580 lt_globsym_save_CFLAGS
=$CFLAGS
7581 LIBS
="conftstm.$ac_objext"
7582 CFLAGS
="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7583 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7584 (eval $ac_link) 2>&5
7586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7587 test $ac_status = 0; } && test -s conftest
${ac_exeext}; then
7590 LIBS
=$lt_globsym_save_LIBS
7591 CFLAGS
=$lt_globsym_save_CFLAGS
7593 echo "cannot find nm_test_func in $nlist" >&5
7596 echo "cannot find nm_test_var in $nlist" >&5
7599 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7602 echo "$progname: failed program was:" >&5
7603 cat conftest.
$ac_ext >&5
7605 rm -rf conftest
* conftst
*
7607 # Do not use the global_symbol_pipe unless it works.
7608 if test "$pipe_works" = yes; then
7611 lt_cv_sys_global_symbol_pipe
=
7617 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7618 lt_cv_sys_global_symbol_to_cdecl
=
7620 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7622 $as_echo "failed" >&6; }
7624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7625 $as_echo "ok" >&6; }
7628 # Response file support.
7629 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7630 nm_file_list_spec
='@'
7631 elif $NM --help 2>/dev
/null
| grep '[@]FILE' >/dev
/null
; then
7632 nm_file_list_spec
='@'
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
7662 $as_echo_n "checking for sysroot... " >&6; }
7664 # Check whether --with-sysroot was given.
7665 if test "${with_sysroot+set}" = set; then :
7666 withval
=$with_sysroot;
7673 case ${with_sysroot} in #(
7675 if test "$GCC" = yes; then
7676 lt_sysroot
=`$CC --print-sysroot 2>/dev/null`
7680 lt_sysroot
=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
7685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
7686 $as_echo "${with_sysroot}" >&6; }
7687 as_fn_error $?
"The sysroot must be an absolute path." "$LINENO" 5
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
7692 $as_echo "${lt_sysroot:-no}" >&6; }
7698 # Check whether --enable-libtool-lock was given.
7699 if test "${enable_libtool_lock+set}" = set; then :
7700 enableval
=$enable_libtool_lock;
7703 test "x$enable_libtool_lock" != xno
&& enable_libtool_lock
=yes
7705 # Some flags need to be propagated to the compiler or linker for good
7709 # Find out which ABI we are using.
7710 echo 'int i;' > conftest.
$ac_ext
7711 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7712 (eval $ac_compile) 2>&5
7714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7715 test $ac_status = 0; }; then
7716 case `/usr/bin/file conftest.$ac_objext` in
7728 # Find out which ABI we are using.
7729 echo '#line '$LINENO' "configure"' > conftest.
$ac_ext
7730 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7731 (eval $ac_compile) 2>&5
7733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7734 test $ac_status = 0; }; then
7735 if test "$lt_cv_prog_gnu_ld" = yes; then
7736 case `/usr/bin/file conftest.$ac_objext` in
7738 LD
="${LD-ld} -melf32bsmip"
7741 LD
="${LD-ld} -melf32bmipn32"
7744 LD
="${LD-ld} -melf64bmip"
7748 case `/usr/bin/file conftest.$ac_objext` in
7764 x86_64
-*kfreebsd
*-gnu|x86_64
-*linux
*|ppc
*-*linux
*|powerpc
*-*linux
*| \
7765 s390
*-*linux
*|s390
*-*tpf
*|sparc
*-*linux
*)
7766 # Find out which ABI we are using.
7767 echo 'int i;' > conftest.
$ac_ext
7768 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7769 (eval $ac_compile) 2>&5
7771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7772 test $ac_status = 0; }; then
7773 case `/usr/bin/file conftest.o` in
7776 x86_64
-*kfreebsd
*-gnu)
7777 LD
="${LD-ld} -m elf_i386_fbsd"
7780 LD
="${LD-ld} -m elf_i386"
7782 ppc64
-*linux
*|powerpc64
-*linux
*)
7783 LD
="${LD-ld} -m elf32ppclinux"
7786 LD
="${LD-ld} -m elf_s390"
7789 LD
="${LD-ld} -m elf32_sparc"
7795 x86_64
-*kfreebsd
*-gnu)
7796 LD
="${LD-ld} -m elf_x86_64_fbsd"
7799 LD
="${LD-ld} -m elf_x86_64"
7801 ppc
*-*linux
*|powerpc
*-*linux
*)
7802 LD
="${LD-ld} -m elf64ppc"
7804 s390
*-*linux
*|s390
*-*tpf
*)
7805 LD
="${LD-ld} -m elf64_s390"
7808 LD
="${LD-ld} -m elf64_sparc"
7818 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7819 SAVE_CFLAGS
="$CFLAGS"
7820 CFLAGS
="$CFLAGS -belf"
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7822 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7823 if ${lt_cv_cc_needs_belf+:} false
; then :
7824 $as_echo_n "(cached) " >&6
7827 ac_cpp
='$CPP $CPPFLAGS'
7828 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7829 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7830 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7832 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7833 /* end confdefs.h. */
7843 if ac_fn_c_try_link
"$LINENO"; then :
7844 lt_cv_cc_needs_belf
=yes
7846 lt_cv_cc_needs_belf
=no
7848 rm -f core conftest.err conftest.
$ac_objext \
7849 conftest
$ac_exeext conftest.
$ac_ext
7851 ac_cpp
='$CPP $CPPFLAGS'
7852 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7853 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7854 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7858 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7859 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
7860 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7861 CFLAGS
="$SAVE_CFLAGS"
7865 # Find out which ABI we are using.
7866 echo 'int i;' > conftest.
$ac_ext
7867 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7868 (eval $ac_compile) 2>&5
7870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7871 test $ac_status = 0; }; then
7872 case `/usr/bin/file conftest.o` in
7874 case $lt_cv_prog_gnu_ld in
7875 yes*) LD
="${LD-ld} -m elf64_sparc" ;;
7877 if ${LD-ld} -64 -r -o conftest2.o conftest.o
>/dev
/null
2>&1; then
7889 need_locks
="$enable_libtool_lock"
7891 if test -n "$ac_tool_prefix"; then
7892 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7893 set dummy
${ac_tool_prefix}mt
; ac_word
=$2
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7895 $as_echo_n "checking for $ac_word... " >&6; }
7896 if ${ac_cv_prog_MANIFEST_TOOL+:} false
; then :
7897 $as_echo_n "(cached) " >&6
7899 if test -n "$MANIFEST_TOOL"; then
7900 ac_cv_prog_MANIFEST_TOOL
="$MANIFEST_TOOL" # Let the user override the test.
7902 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7906 test -z "$as_dir" && as_dir
=.
7907 for ac_exec_ext
in '' $ac_executable_extensions; do
7908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7909 ac_cv_prog_MANIFEST_TOOL
="${ac_tool_prefix}mt"
7910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7919 MANIFEST_TOOL
=$ac_cv_prog_MANIFEST_TOOL
7920 if test -n "$MANIFEST_TOOL"; then
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7922 $as_echo "$MANIFEST_TOOL" >&6; }
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7925 $as_echo "no" >&6; }
7930 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7931 ac_ct_MANIFEST_TOOL
=$MANIFEST_TOOL
7932 # Extract the first word of "mt", so it can be a program name with args.
7933 set dummy mt
; ac_word
=$2
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7935 $as_echo_n "checking for $ac_word... " >&6; }
7936 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false
; then :
7937 $as_echo_n "(cached) " >&6
7939 if test -n "$ac_ct_MANIFEST_TOOL"; then
7940 ac_cv_prog_ac_ct_MANIFEST_TOOL
="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7942 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7946 test -z "$as_dir" && as_dir
=.
7947 for ac_exec_ext
in '' $ac_executable_extensions; do
7948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7949 ac_cv_prog_ac_ct_MANIFEST_TOOL
="mt"
7950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7959 ac_ct_MANIFEST_TOOL
=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7960 if test -n "$ac_ct_MANIFEST_TOOL"; then
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7962 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7965 $as_echo "no" >&6; }
7968 if test "x$ac_ct_MANIFEST_TOOL" = x
; then
7971 case $cross_compiling:$ac_tool_warned in
7973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7974 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7975 ac_tool_warned
=yes ;;
7977 MANIFEST_TOOL
=$ac_ct_MANIFEST_TOOL
7980 MANIFEST_TOOL
="$ac_cv_prog_MANIFEST_TOOL"
7983 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL
=mt
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7985 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7986 if ${lt_cv_path_mainfest_tool+:} false
; then :
7987 $as_echo_n "(cached) " >&6
7989 lt_cv_path_mainfest_tool
=no
7990 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7991 $MANIFEST_TOOL '-?' 2>conftest.err
> conftest.out
7992 cat conftest.err
>&5
7993 if $GREP 'Manifest Tool' conftest.out
> /dev
/null
; then
7994 lt_cv_path_mainfest_tool
=yes
7998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7999 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
8000 if test "x$lt_cv_path_mainfest_tool" != xyes
; then
8010 rhapsody
* | darwin
*)
8011 if test -n "$ac_tool_prefix"; then
8012 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8013 set dummy
${ac_tool_prefix}dsymutil
; ac_word
=$2
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8015 $as_echo_n "checking for $ac_word... " >&6; }
8016 if ${ac_cv_prog_DSYMUTIL+:} false
; then :
8017 $as_echo_n "(cached) " >&6
8019 if test -n "$DSYMUTIL"; then
8020 ac_cv_prog_DSYMUTIL
="$DSYMUTIL" # Let the user override the test.
8022 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8026 test -z "$as_dir" && as_dir
=.
8027 for ac_exec_ext
in '' $ac_executable_extensions; do
8028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8029 ac_cv_prog_DSYMUTIL
="${ac_tool_prefix}dsymutil"
8030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8039 DSYMUTIL
=$ac_cv_prog_DSYMUTIL
8040 if test -n "$DSYMUTIL"; then
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8042 $as_echo "$DSYMUTIL" >&6; }
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8045 $as_echo "no" >&6; }
8050 if test -z "$ac_cv_prog_DSYMUTIL"; then
8051 ac_ct_DSYMUTIL
=$DSYMUTIL
8052 # Extract the first word of "dsymutil", so it can be a program name with args.
8053 set dummy dsymutil
; ac_word
=$2
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8055 $as_echo_n "checking for $ac_word... " >&6; }
8056 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false
; then :
8057 $as_echo_n "(cached) " >&6
8059 if test -n "$ac_ct_DSYMUTIL"; then
8060 ac_cv_prog_ac_ct_DSYMUTIL
="$ac_ct_DSYMUTIL" # Let the user override the test.
8062 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8066 test -z "$as_dir" && as_dir
=.
8067 for ac_exec_ext
in '' $ac_executable_extensions; do
8068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8069 ac_cv_prog_ac_ct_DSYMUTIL
="dsymutil"
8070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8079 ac_ct_DSYMUTIL
=$ac_cv_prog_ac_ct_DSYMUTIL
8080 if test -n "$ac_ct_DSYMUTIL"; then
8081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8082 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8085 $as_echo "no" >&6; }
8088 if test "x$ac_ct_DSYMUTIL" = x
; then
8091 case $cross_compiling:$ac_tool_warned in
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8094 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8095 ac_tool_warned
=yes ;;
8097 DSYMUTIL
=$ac_ct_DSYMUTIL
8100 DSYMUTIL
="$ac_cv_prog_DSYMUTIL"
8103 if test -n "$ac_tool_prefix"; then
8104 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8105 set dummy
${ac_tool_prefix}nmedit
; ac_word
=$2
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8107 $as_echo_n "checking for $ac_word... " >&6; }
8108 if ${ac_cv_prog_NMEDIT+:} false
; then :
8109 $as_echo_n "(cached) " >&6
8111 if test -n "$NMEDIT"; then
8112 ac_cv_prog_NMEDIT
="$NMEDIT" # Let the user override the test.
8114 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8118 test -z "$as_dir" && as_dir
=.
8119 for ac_exec_ext
in '' $ac_executable_extensions; do
8120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8121 ac_cv_prog_NMEDIT
="${ac_tool_prefix}nmedit"
8122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8131 NMEDIT
=$ac_cv_prog_NMEDIT
8132 if test -n "$NMEDIT"; then
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8134 $as_echo "$NMEDIT" >&6; }
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8137 $as_echo "no" >&6; }
8142 if test -z "$ac_cv_prog_NMEDIT"; then
8143 ac_ct_NMEDIT
=$NMEDIT
8144 # Extract the first word of "nmedit", so it can be a program name with args.
8145 set dummy nmedit
; ac_word
=$2
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8147 $as_echo_n "checking for $ac_word... " >&6; }
8148 if ${ac_cv_prog_ac_ct_NMEDIT+:} false
; then :
8149 $as_echo_n "(cached) " >&6
8151 if test -n "$ac_ct_NMEDIT"; then
8152 ac_cv_prog_ac_ct_NMEDIT
="$ac_ct_NMEDIT" # Let the user override the test.
8154 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8158 test -z "$as_dir" && as_dir
=.
8159 for ac_exec_ext
in '' $ac_executable_extensions; do
8160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8161 ac_cv_prog_ac_ct_NMEDIT
="nmedit"
8162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8171 ac_ct_NMEDIT
=$ac_cv_prog_ac_ct_NMEDIT
8172 if test -n "$ac_ct_NMEDIT"; then
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8174 $as_echo "$ac_ct_NMEDIT" >&6; }
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8177 $as_echo "no" >&6; }
8180 if test "x$ac_ct_NMEDIT" = x
; then
8183 case $cross_compiling:$ac_tool_warned in
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8186 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8187 ac_tool_warned
=yes ;;
8189 NMEDIT
=$ac_ct_NMEDIT
8192 NMEDIT
="$ac_cv_prog_NMEDIT"
8195 if test -n "$ac_tool_prefix"; then
8196 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8197 set dummy
${ac_tool_prefix}lipo
; ac_word
=$2
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8199 $as_echo_n "checking for $ac_word... " >&6; }
8200 if ${ac_cv_prog_LIPO+:} false
; then :
8201 $as_echo_n "(cached) " >&6
8203 if test -n "$LIPO"; then
8204 ac_cv_prog_LIPO
="$LIPO" # Let the user override the test.
8206 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8210 test -z "$as_dir" && as_dir
=.
8211 for ac_exec_ext
in '' $ac_executable_extensions; do
8212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8213 ac_cv_prog_LIPO
="${ac_tool_prefix}lipo"
8214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8223 LIPO
=$ac_cv_prog_LIPO
8224 if test -n "$LIPO"; then
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8226 $as_echo "$LIPO" >&6; }
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8229 $as_echo "no" >&6; }
8234 if test -z "$ac_cv_prog_LIPO"; then
8236 # Extract the first word of "lipo", so it can be a program name with args.
8237 set dummy lipo
; ac_word
=$2
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8239 $as_echo_n "checking for $ac_word... " >&6; }
8240 if ${ac_cv_prog_ac_ct_LIPO+:} false
; then :
8241 $as_echo_n "(cached) " >&6
8243 if test -n "$ac_ct_LIPO"; then
8244 ac_cv_prog_ac_ct_LIPO
="$ac_ct_LIPO" # Let the user override the test.
8246 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8250 test -z "$as_dir" && as_dir
=.
8251 for ac_exec_ext
in '' $ac_executable_extensions; do
8252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8253 ac_cv_prog_ac_ct_LIPO
="lipo"
8254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8263 ac_ct_LIPO
=$ac_cv_prog_ac_ct_LIPO
8264 if test -n "$ac_ct_LIPO"; then
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8266 $as_echo "$ac_ct_LIPO" >&6; }
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8269 $as_echo "no" >&6; }
8272 if test "x$ac_ct_LIPO" = x
; then
8275 case $cross_compiling:$ac_tool_warned in
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8278 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8279 ac_tool_warned
=yes ;;
8284 LIPO
="$ac_cv_prog_LIPO"
8287 if test -n "$ac_tool_prefix"; then
8288 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8289 set dummy
${ac_tool_prefix}otool
; ac_word
=$2
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8291 $as_echo_n "checking for $ac_word... " >&6; }
8292 if ${ac_cv_prog_OTOOL+:} false
; then :
8293 $as_echo_n "(cached) " >&6
8295 if test -n "$OTOOL"; then
8296 ac_cv_prog_OTOOL
="$OTOOL" # Let the user override the test.
8298 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8302 test -z "$as_dir" && as_dir
=.
8303 for ac_exec_ext
in '' $ac_executable_extensions; do
8304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8305 ac_cv_prog_OTOOL
="${ac_tool_prefix}otool"
8306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8315 OTOOL
=$ac_cv_prog_OTOOL
8316 if test -n "$OTOOL"; then
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8318 $as_echo "$OTOOL" >&6; }
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8321 $as_echo "no" >&6; }
8326 if test -z "$ac_cv_prog_OTOOL"; then
8328 # Extract the first word of "otool", so it can be a program name with args.
8329 set dummy otool
; ac_word
=$2
8330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8331 $as_echo_n "checking for $ac_word... " >&6; }
8332 if ${ac_cv_prog_ac_ct_OTOOL+:} false
; then :
8333 $as_echo_n "(cached) " >&6
8335 if test -n "$ac_ct_OTOOL"; then
8336 ac_cv_prog_ac_ct_OTOOL
="$ac_ct_OTOOL" # Let the user override the test.
8338 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8342 test -z "$as_dir" && as_dir
=.
8343 for ac_exec_ext
in '' $ac_executable_extensions; do
8344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8345 ac_cv_prog_ac_ct_OTOOL
="otool"
8346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8355 ac_ct_OTOOL
=$ac_cv_prog_ac_ct_OTOOL
8356 if test -n "$ac_ct_OTOOL"; then
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8358 $as_echo "$ac_ct_OTOOL" >&6; }
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8361 $as_echo "no" >&6; }
8364 if test "x$ac_ct_OTOOL" = x
; then
8367 case $cross_compiling:$ac_tool_warned in
8369 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8370 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8371 ac_tool_warned
=yes ;;
8376 OTOOL
="$ac_cv_prog_OTOOL"
8379 if test -n "$ac_tool_prefix"; then
8380 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8381 set dummy
${ac_tool_prefix}otool64
; ac_word
=$2
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8383 $as_echo_n "checking for $ac_word... " >&6; }
8384 if ${ac_cv_prog_OTOOL64+:} false
; then :
8385 $as_echo_n "(cached) " >&6
8387 if test -n "$OTOOL64"; then
8388 ac_cv_prog_OTOOL64
="$OTOOL64" # Let the user override the test.
8390 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8394 test -z "$as_dir" && as_dir
=.
8395 for ac_exec_ext
in '' $ac_executable_extensions; do
8396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8397 ac_cv_prog_OTOOL64
="${ac_tool_prefix}otool64"
8398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8407 OTOOL64
=$ac_cv_prog_OTOOL64
8408 if test -n "$OTOOL64"; then
8409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8410 $as_echo "$OTOOL64" >&6; }
8412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8413 $as_echo "no" >&6; }
8418 if test -z "$ac_cv_prog_OTOOL64"; then
8419 ac_ct_OTOOL64
=$OTOOL64
8420 # Extract the first word of "otool64", so it can be a program name with args.
8421 set dummy otool64
; ac_word
=$2
8422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8423 $as_echo_n "checking for $ac_word... " >&6; }
8424 if ${ac_cv_prog_ac_ct_OTOOL64+:} false
; then :
8425 $as_echo_n "(cached) " >&6
8427 if test -n "$ac_ct_OTOOL64"; then
8428 ac_cv_prog_ac_ct_OTOOL64
="$ac_ct_OTOOL64" # Let the user override the test.
8430 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8434 test -z "$as_dir" && as_dir
=.
8435 for ac_exec_ext
in '' $ac_executable_extensions; do
8436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8437 ac_cv_prog_ac_ct_OTOOL64
="otool64"
8438 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8447 ac_ct_OTOOL64
=$ac_cv_prog_ac_ct_OTOOL64
8448 if test -n "$ac_ct_OTOOL64"; then
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8450 $as_echo "$ac_ct_OTOOL64" >&6; }
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8453 $as_echo "no" >&6; }
8456 if test "x$ac_ct_OTOOL64" = x
; then
8459 case $cross_compiling:$ac_tool_warned in
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8462 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8463 ac_tool_warned
=yes ;;
8465 OTOOL64
=$ac_ct_OTOOL64
8468 OTOOL64
="$ac_cv_prog_OTOOL64"
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8498 $as_echo_n "checking for -single_module linker flag... " >&6; }
8499 if ${lt_cv_apple_cc_single_mod+:} false
; then :
8500 $as_echo_n "(cached) " >&6
8502 lt_cv_apple_cc_single_mod
=no
8503 if test -z "${LT_MULTI_MODULE}"; then
8504 # By default we will add the -single_module flag. You can override
8505 # by either setting the environment variable LT_MULTI_MODULE
8506 # non-empty at configure time, or by adding -multi_module to the
8508 rm -rf libconftest.dylib
*
8509 echo "int foo(void){return 1;}" > conftest.c
8510 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8511 -dynamiclib -Wl,-single_module conftest.c" >&5
8512 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8513 -dynamiclib -Wl,-single_module conftest.c
2>conftest.err
8515 if test -f libconftest.dylib
&& test ! -s conftest.err
&& test $_lt_result = 0; then
8516 lt_cv_apple_cc_single_mod
=yes
8518 cat conftest.err
>&5
8520 rm -rf libconftest.dylib
*
8524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8525 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8527 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8528 if ${lt_cv_ld_exported_symbols_list+:} false
; then :
8529 $as_echo_n "(cached) " >&6
8531 lt_cv_ld_exported_symbols_list
=no
8532 save_LDFLAGS
=$LDFLAGS
8533 echo "_main" > conftest.sym
8534 LDFLAGS
="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8535 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8536 /* end confdefs.h. */
8546 if ac_fn_c_try_link
"$LINENO"; then :
8547 lt_cv_ld_exported_symbols_list
=yes
8549 lt_cv_ld_exported_symbols_list
=no
8551 rm -f core conftest.err conftest.
$ac_objext \
8552 conftest
$ac_exeext conftest.
$ac_ext
8553 LDFLAGS
="$save_LDFLAGS"
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8557 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8559 $as_echo_n "checking for -force_load linker flag... " >&6; }
8560 if ${lt_cv_ld_force_load+:} false
; then :
8561 $as_echo_n "(cached) " >&6
8563 lt_cv_ld_force_load
=no
8564 cat > conftest.c
<< _LT_EOF
8565 int forced_loaded() { return 2;}
8567 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8568 $LTCC $LTCFLAGS -c -o conftest.o conftest.c
2>&5
8569 echo "$AR cru libconftest.a conftest.o" >&5
8570 $AR cru libconftest.a conftest.o
2>&5
8571 echo "$RANLIB libconftest.a" >&5
8572 $RANLIB libconftest.a
2>&5
8573 cat > conftest.c
<< _LT_EOF
8574 int main() { return 0;}
8576 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8577 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c
-Wl,-force_load,.
/libconftest.a
2>conftest.err
8579 if test -f conftest
&& test ! -s conftest.err
&& test $_lt_result = 0 && $GREP forced_load conftest
2>&1 >/dev
/null
; then
8580 lt_cv_ld_force_load
=yes
8582 cat conftest.err
>&5
8584 rm -f conftest.err libconftest.a conftest conftest.c
8585 rm -rf conftest.dSYM
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8589 $as_echo "$lt_cv_ld_force_load" >&6; }
8591 rhapsody
* | darwin1.
[012])
8592 _lt_dar_allow_undefined
='${wl}-undefined ${wl}suppress' ;;
8594 _lt_dar_allow_undefined
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8595 darwin
*) # darwin 5.x on
8596 # if running on 10.5 or later, the deployment target defaults
8597 # to the OS version, if on x86, and 10.4, the deployment
8598 # target defaults to 10.4. Don't you love it?
8599 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8600 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8601 _lt_dar_allow_undefined
='${wl}-undefined ${wl}dynamic_lookup' ;;
8603 _lt_dar_allow_undefined
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8605 _lt_dar_allow_undefined
='${wl}-undefined ${wl}dynamic_lookup' ;;
8609 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8610 _lt_dar_single_mod
='$single_module'
8612 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8613 _lt_dar_export_syms
=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8615 _lt_dar_export_syms
='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8617 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8618 _lt_dsymutil
='~$DSYMUTIL $lib || :'
8625 for ac_header
in dlfcn.h
8627 ac_fn_c_check_header_compile
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8629 if test "x$ac_cv_header_dlfcn_h" = xyes
; then :
8630 cat >>confdefs.h
<<_ACEOF
8631 #define HAVE_DLFCN_H 1
8655 # Check whether --with-pic was given.
8656 if test "${with_pic+set}" = set; then :
8657 withval
=$with_pic; pic_mode
="$withval"
8663 test -z "$pic_mode" && pic_mode
=default
8671 # Check whether --enable-fast-install was given.
8672 if test "${enable_fast_install+set}" = set; then :
8673 enableval
=$enable_fast_install; p
=${PACKAGE-default}
8675 yes) enable_fast_install
=yes ;;
8676 no
) enable_fast_install
=no
;;
8678 enable_fast_install
=no
8679 # Look at the argument we got. We use all the common list separators.
8680 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
8681 for pkg
in $enableval; do
8683 if test "X$pkg" = "X$p"; then
8684 enable_fast_install
=yes
8691 enable_fast_install
=yes
8704 # This can be used to rebuild libtool when needed
8705 LIBTOOL_DEPS
="$ltmain"
8707 # Always use our own libtool.
8708 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
8735 test -z "$LN_S" && LN_S
="ln -s"
8750 if test -n "${ZSH_VERSION+set}" ; then
8751 setopt NO_GLOB_SUBST
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8755 $as_echo_n "checking for objdir... " >&6; }
8756 if ${lt_cv_objdir+:} false
; then :
8757 $as_echo_n "(cached) " >&6
8759 rm -f .libs
2>/dev
/null
8760 mkdir .libs
2>/dev
/null
8761 if test -d .libs
; then
8764 # MS-DOS does not allow filenames that begin with a dot.
8767 rmdir .libs
2>/dev
/null
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8770 $as_echo "$lt_cv_objdir" >&6; }
8771 objdir
=$lt_cv_objdir
8777 cat >>confdefs.h
<<_ACEOF
8778 #define LT_OBJDIR "$lt_cv_objdir/"
8786 # AIX sometimes has problems with the GCC collect2 program. For some
8787 # reason, if we set the COLLECT_NAMES environment variable, the problems
8788 # vanish in a puff of smoke.
8789 if test "X${COLLECT_NAMES+set}" != Xset
; then
8791 export COLLECT_NAMES
8798 can_build_shared
=yes
8800 # All known linkers require a `.a' archive for static linking (except MSVC,
8801 # which needs '.lib').
8804 with_gnu_ld
="$lt_cv_prog_gnu_ld"
8807 old_CFLAGS
="$CFLAGS"
8809 # Set sane defaults for various variables
8810 test -z "$CC" && CC
=cc
8811 test -z "$LTCC" && LTCC
=$CC
8812 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
8813 test -z "$LD" && LD
=ld
8814 test -z "$ac_objext" && ac_objext
=o
8816 for cc_temp
in $compiler""; do
8818 compile
| *[\\/]compile
| ccache
| *[\\/]ccache
) ;;
8819 distcc
| *[\\/]distcc
| purify
| *[\\/]purify
) ;;
8824 cc_basename
=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8827 # Only perform the check for file, if the check method requires it
8828 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
8829 case $deplibs_check_method in
8831 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8833 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8834 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
8835 $as_echo_n "(cached) " >&6
8839 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
8842 lt_save_MAGIC_CMD
="$MAGIC_CMD"
8843 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
8844 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
8845 for ac_dir
in $ac_dummy; do
8847 test -z "$ac_dir" && ac_dir
=.
8848 if test -f $ac_dir/${ac_tool_prefix}file; then
8849 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
8850 if test -n "$file_magic_test_file"; then
8851 case $deplibs_check_method in
8853 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8854 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8855 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null
|
8856 $EGREP "$file_magic_regex" > /dev
/null
; then
8861 *** Warning: the command libtool uses to detect shared libraries,
8862 *** $file_magic_cmd, produces output that libtool cannot recognize.
8863 *** The result is that libtool may fail to recognize shared libraries
8864 *** as such. This will affect the creation of libtool libraries that
8865 *** depend on shared libraries, but programs linked with such libtool
8866 *** libraries will work regardless of this problem. Nevertheless, you
8867 *** may want to report the problem to your system manager and/or to
8868 *** bug-libtool@gnu.org
8878 MAGIC_CMD
="$lt_save_MAGIC_CMD"
8883 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8884 if test -n "$MAGIC_CMD"; then
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8886 $as_echo "$MAGIC_CMD" >&6; }
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8889 $as_echo "no" >&6; }
8896 if test -z "$lt_cv_path_MAGIC_CMD"; then
8897 if test -n "$ac_tool_prefix"; then
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8899 $as_echo_n "checking for file... " >&6; }
8900 if ${lt_cv_path_MAGIC_CMD+:} false
; then :
8901 $as_echo_n "(cached) " >&6
8905 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
8908 lt_save_MAGIC_CMD
="$MAGIC_CMD"
8909 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
8910 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
8911 for ac_dir
in $ac_dummy; do
8913 test -z "$ac_dir" && ac_dir
=.
8914 if test -f $ac_dir/file; then
8915 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
8916 if test -n "$file_magic_test_file"; then
8917 case $deplibs_check_method in
8919 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8920 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8921 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null
|
8922 $EGREP "$file_magic_regex" > /dev
/null
; then
8927 *** Warning: the command libtool uses to detect shared libraries,
8928 *** $file_magic_cmd, produces output that libtool cannot recognize.
8929 *** The result is that libtool may fail to recognize shared libraries
8930 *** as such. This will affect the creation of libtool libraries that
8931 *** depend on shared libraries, but programs linked with such libtool
8932 *** libraries will work regardless of this problem. Nevertheless, you
8933 *** may want to report the problem to your system manager and/or to
8934 *** bug-libtool@gnu.org
8944 MAGIC_CMD
="$lt_save_MAGIC_CMD"
8949 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
8950 if test -n "$MAGIC_CMD"; then
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8952 $as_echo "$MAGIC_CMD" >&6; }
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8955 $as_echo "no" >&6; }
8968 # Use C for the default configuration in the libtool script
8972 ac_cpp
='$CPP $CPPFLAGS'
8973 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8974 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8975 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8978 # Source file extension for C test sources.
8981 # Object file extension for compiled C test sources.
8985 # Code to be used in simple compile tests
8986 lt_simple_compile_test_code
="int some_variable = 0;"
8988 # Code to be used in simple link tests
8989 lt_simple_link_test_code
='int main(){return(0);}'
8997 # If no C compiler was specified, use CC.
9000 # If no C compiler flags were specified, use CFLAGS.
9001 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
9003 # Allow CC to be a program name with arguments.
9006 # Save the default compiler, since it gets overwritten when the other
9007 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9008 compiler_DEFAULT
=$CC
9010 # save warnings/boilerplate of simple test code
9011 ac_outfile
=conftest.
$ac_objext
9012 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
9013 eval "$ac_compile" 2>&1 >/dev
/null
| $SED '/^$/d; /^ *+/d' >conftest.err
9014 _lt_compiler_boilerplate
=`cat conftest.err`
9017 ac_outfile
=conftest.
$ac_objext
9018 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
9019 eval "$ac_link" 2>&1 >/dev
/null
| $SED '/^$/d; /^ *+/d' >conftest.err
9020 _lt_linker_boilerplate
=`cat conftest.err`
9024 if test -n "$compiler"; then
9026 lt_prog_compiler_no_builtin_flag
=
9028 if test "$GCC" = yes; then
9029 case $cc_basename in
9031 lt_prog_compiler_no_builtin_flag
=' -Xcompiler -fno-builtin' ;;
9033 lt_prog_compiler_no_builtin_flag
=' -fno-builtin' ;;
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9037 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9038 if ${lt_cv_prog_compiler_rtti_exceptions+:} false
; then :
9039 $as_echo_n "(cached) " >&6
9041 lt_cv_prog_compiler_rtti_exceptions
=no
9042 ac_outfile
=conftest.
$ac_objext
9043 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9044 lt_compiler_flag
="-fno-rtti -fno-exceptions"
9045 # Insert the option either (1) after the last *FLAGS variable, or
9046 # (2) before a word containing "conftest.", or (3) at the end.
9047 # Note that $ac_compile itself does not contain backslashes and begins
9048 # with a dollar sign (not a hyphen), so the echo should work correctly.
9049 # The option is referenced via a variable to avoid confusing sed.
9050 lt_compile
=`echo "$ac_compile" | $SED \
9051 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9052 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9053 -e 's:$: $lt_compiler_flag:'`
9054 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9055 (eval "$lt_compile" 2>conftest.err
)
9057 cat conftest.err
>&5
9058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059 if (exit $ac_status) && test -s "$ac_outfile"; then
9060 # The compiler can only warn and ignore the option if not recognized
9061 # So say no if there are warnings other than the usual output.
9062 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9063 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
9064 if test ! -s conftest.er2
|| diff conftest.exp conftest.er2
>/dev
/null
; then
9065 lt_cv_prog_compiler_rtti_exceptions
=yes
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9072 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9074 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
9075 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9087 lt_prog_compiler_wl
=
9088 lt_prog_compiler_pic
=
9089 lt_prog_compiler_static
=
9092 if test "$GCC" = yes; then
9093 lt_prog_compiler_wl
='-Wl,'
9094 lt_prog_compiler_static
='-static'
9098 # All AIX code is PIC.
9099 if test "$host_cpu" = ia64
; then
9100 # AIX 5 now supports IA64 processor
9101 lt_prog_compiler_static
='-Bstatic'
9108 # see comment about AmigaOS4 .so support
9109 lt_prog_compiler_pic
='-fPIC'
9112 # FIXME: we need at least 68020 code to build shared libraries, but
9113 # adding the `-m68020' flag to GCC prevents building anything better,
9115 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
9120 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
9121 # PIC is the default for these OSes.
9124 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
9125 # This hack is so that the source file can tell whether it is being
9126 # built for inclusion in a dll (and should export symbols for example).
9127 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9128 # (--disable-auto-import) libraries
9129 lt_prog_compiler_pic
='-DDLL_EXPORT'
9132 darwin
* | rhapsody
*)
9133 # PIC is the default on this platform
9134 # Common symbols not allowed in MH_DYLIB files
9135 lt_prog_compiler_pic
='-fno-common'
9139 # PIC is the default for Haiku.
9140 # The "-static" flag exists, but is broken.
9141 lt_prog_compiler_static
=
9145 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9146 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9147 # sets the default TLS model and affects inlining.
9153 lt_prog_compiler_pic
='-fPIC'
9159 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9160 # Instead, we relocate shared libraries at runtime.
9164 # Just because we use GCC doesn't mean we suddenly get shared libraries
9165 # on systems that don't support them.
9166 lt_prog_compiler_can_build_shared
=no
9171 # QNX uses GNU C++, but need to define -shared option too, otherwise
9173 lt_prog_compiler_pic
='-fPIC -shared'
9177 if test -d /usr
/nec
; then
9178 lt_prog_compiler_pic
=-Kconform_pic
9183 lt_prog_compiler_pic
='-fPIC'
9187 case $cc_basename in
9188 nvcc
*) # Cuda Compiler Driver 2.2
9189 lt_prog_compiler_wl
='-Xlinker '
9190 lt_prog_compiler_pic
='-Xcompiler -fPIC'
9194 # PORTME Check for flag to pass linker flags through the system compiler.
9197 lt_prog_compiler_wl
='-Wl,'
9198 if test "$host_cpu" = ia64
; then
9199 # AIX 5 now supports IA64 processor
9200 lt_prog_compiler_static
='-Bstatic'
9202 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
9206 mingw
* | cygwin
* | pw32
* | os2
* | cegcc
*)
9207 # This hack is so that the source file can tell whether it is being
9208 # built for inclusion in a dll (and should export symbols for example).
9209 lt_prog_compiler_pic
='-DDLL_EXPORT'
9212 hpux9
* | hpux10
* | hpux11
*)
9213 lt_prog_compiler_wl
='-Wl,'
9214 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9221 lt_prog_compiler_pic
='+Z'
9224 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9225 lt_prog_compiler_static
='${wl}-a ${wl}archive'
9228 irix5
* | irix6
* | nonstopux
*)
9229 lt_prog_compiler_wl
='-Wl,'
9230 # PIC (with -KPIC) is the default.
9231 lt_prog_compiler_static
='-non_shared'
9234 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
9235 case $cc_basename in
9236 # old Intel for x86_64 which still supported -KPIC.
9238 lt_prog_compiler_wl
='-Wl,'
9239 lt_prog_compiler_pic
='-KPIC'
9240 lt_prog_compiler_static
='-static'
9242 # icc used to be incompatible with GCC.
9243 # ICC 10 doesn't accept -KPIC any more.
9245 lt_prog_compiler_wl
='-Wl,'
9246 lt_prog_compiler_pic
='-fPIC'
9247 lt_prog_compiler_static
='-static'
9249 # Lahey Fortran 8.1.
9251 lt_prog_compiler_wl
='-Wl,'
9252 lt_prog_compiler_pic
='--shared'
9253 lt_prog_compiler_static
='--static'
9256 # NAG Fortran compiler
9257 lt_prog_compiler_wl
='-Wl,-Wl,,'
9258 lt_prog_compiler_pic
='-PIC'
9259 lt_prog_compiler_static
='-Bstatic'
9261 pgcc
* | pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
9262 # Portland Group compilers (*not* the Pentium gcc compiler,
9263 # which looks to be a dead project)
9264 lt_prog_compiler_wl
='-Wl,'
9265 lt_prog_compiler_pic
='-fpic'
9266 lt_prog_compiler_static
='-Bstatic'
9269 lt_prog_compiler_wl
='-Wl,'
9270 # All Alpha code is PIC.
9271 lt_prog_compiler_static
='-non_shared'
9273 xl
* | bgxl
* | bgf
* | mpixl
*)
9274 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9275 lt_prog_compiler_wl
='-Wl,'
9276 lt_prog_compiler_pic
='-qpic'
9277 lt_prog_compiler_static
='-qstaticlink'
9280 case `$CC -V 2>&1 | sed 5q` in
9281 *Sun\ F
* | *Sun
*Fortran
*)
9282 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9283 lt_prog_compiler_pic
='-KPIC'
9284 lt_prog_compiler_static
='-Bstatic'
9285 lt_prog_compiler_wl
=''
9289 lt_prog_compiler_pic
='-KPIC'
9290 lt_prog_compiler_static
='-Bstatic'
9291 lt_prog_compiler_wl
='-Wl,'
9299 lt_prog_compiler_pic
='-KPIC'
9300 lt_prog_compiler_static
='-Bstatic'
9304 # QNX uses GNU C++, but need to define -shared option too, otherwise
9306 lt_prog_compiler_pic
='-fPIC -shared'
9309 osf3
* | osf4
* | osf5
*)
9310 lt_prog_compiler_wl
='-Wl,'
9311 # All OSF/1 code is PIC.
9312 lt_prog_compiler_static
='-non_shared'
9316 lt_prog_compiler_static
='-non_shared'
9320 lt_prog_compiler_pic
='-KPIC'
9321 lt_prog_compiler_static
='-Bstatic'
9322 case $cc_basename in
9323 f77
* | f90
* | f95
* | sunf77
* | sunf90
* | sunf95
*)
9324 lt_prog_compiler_wl
='-Qoption ld ';;
9326 lt_prog_compiler_wl
='-Wl,';;
9331 lt_prog_compiler_wl
='-Qoption ld '
9332 lt_prog_compiler_pic
='-PIC'
9333 lt_prog_compiler_static
='-Bstatic'
9336 sysv4
| sysv4.2uw2
* | sysv4.3
*)
9337 lt_prog_compiler_wl
='-Wl,'
9338 lt_prog_compiler_pic
='-KPIC'
9339 lt_prog_compiler_static
='-Bstatic'
9343 if test -d /usr
/nec
;then
9344 lt_prog_compiler_pic
='-Kconform_pic'
9345 lt_prog_compiler_static
='-Bstatic'
9349 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
9350 lt_prog_compiler_wl
='-Wl,'
9351 lt_prog_compiler_pic
='-KPIC'
9352 lt_prog_compiler_static
='-Bstatic'
9356 lt_prog_compiler_wl
='-Wl,'
9357 lt_prog_compiler_can_build_shared
=no
9361 lt_prog_compiler_pic
='-pic'
9362 lt_prog_compiler_static
='-Bstatic'
9366 lt_prog_compiler_can_build_shared
=no
9372 # For platforms which do not support PIC, -DPIC is meaningless:
9374 lt_prog_compiler_pic
=
9377 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9382 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9383 if ${lt_cv_prog_compiler_pic+:} false
; then :
9384 $as_echo_n "(cached) " >&6
9386 lt_cv_prog_compiler_pic
=$lt_prog_compiler_pic
9388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9389 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9390 lt_prog_compiler_pic
=$lt_cv_prog_compiler_pic
9393 # Check to make sure the PIC flag actually works.
9395 if test -n "$lt_prog_compiler_pic"; then
9396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9397 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9398 if ${lt_cv_prog_compiler_pic_works+:} false
; then :
9399 $as_echo_n "(cached) " >&6
9401 lt_cv_prog_compiler_pic_works
=no
9402 ac_outfile
=conftest.
$ac_objext
9403 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9404 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
9405 # Insert the option either (1) after the last *FLAGS variable, or
9406 # (2) before a word containing "conftest.", or (3) at the end.
9407 # Note that $ac_compile itself does not contain backslashes and begins
9408 # with a dollar sign (not a hyphen), so the echo should work correctly.
9409 # The option is referenced via a variable to avoid confusing sed.
9410 lt_compile
=`echo "$ac_compile" | $SED \
9411 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9412 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9413 -e 's:$: $lt_compiler_flag:'`
9414 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9415 (eval "$lt_compile" 2>conftest.err
)
9417 cat conftest.err
>&5
9418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9419 if (exit $ac_status) && test -s "$ac_outfile"; then
9420 # The compiler can only warn and ignore the option if not recognized
9421 # So say no if there are warnings other than the usual output.
9422 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9423 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
9424 if test ! -s conftest.er2
|| diff conftest.exp conftest.er2
>/dev
/null
; then
9425 lt_cv_prog_compiler_pic_works
=yes
9431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9432 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9434 if test x
"$lt_cv_prog_compiler_pic_works" = xyes
; then
9435 case $lt_prog_compiler_pic in
9437 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
9440 lt_prog_compiler_pic
=
9441 lt_prog_compiler_can_build_shared
=no
9457 # Check to make sure the static flag actually works.
9459 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9461 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9462 if ${lt_cv_prog_compiler_static_works+:} false
; then :
9463 $as_echo_n "(cached) " >&6
9465 lt_cv_prog_compiler_static_works
=no
9466 save_LDFLAGS
="$LDFLAGS"
9467 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
9468 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
9469 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
9470 # The linker can only warn and ignore the option if not recognized
9471 # So say no if there are warnings
9472 if test -s conftest.err
; then
9473 # Append any errors to the config.log.
9474 cat conftest.err
1>&5
9475 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9476 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
9477 if diff conftest.exp conftest.er2
>/dev
/null
; then
9478 lt_cv_prog_compiler_static_works
=yes
9481 lt_cv_prog_compiler_static_works
=yes
9485 LDFLAGS
="$save_LDFLAGS"
9488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9489 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9491 if test x
"$lt_cv_prog_compiler_static_works" = xyes
; then
9494 lt_prog_compiler_static
=
9503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9504 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9505 if ${lt_cv_prog_compiler_c_o+:} false
; then :
9506 $as_echo_n "(cached) " >&6
9508 lt_cv_prog_compiler_c_o
=no
9509 $RM -r conftest
2>/dev
/null
9513 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9515 lt_compiler_flag
="-o out/conftest2.$ac_objext"
9516 # Insert the option either (1) after the last *FLAGS variable, or
9517 # (2) before a word containing "conftest.", or (3) at the end.
9518 # Note that $ac_compile itself does not contain backslashes and begins
9519 # with a dollar sign (not a hyphen), so the echo should work correctly.
9520 lt_compile
=`echo "$ac_compile" | $SED \
9521 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9522 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9523 -e 's:$: $lt_compiler_flag:'`
9524 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9525 (eval "$lt_compile" 2>out
/conftest.err
)
9527 cat out
/conftest.err
>&5
9528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9529 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
9531 # The compiler can only warn and ignore the option if not recognized
9532 # So say no if there are warnings
9533 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out
/conftest.exp
9534 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
9535 if test ! -s out
/conftest.er2
|| diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
9536 lt_cv_prog_compiler_c_o
=yes
9541 # SGI C++ compiler will create directory out/ii_files/ for
9542 # template instantiation
9543 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
9544 $RM out
/* && rmdir out
9550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9551 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9559 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9560 if ${lt_cv_prog_compiler_c_o+:} false
; then :
9561 $as_echo_n "(cached) " >&6
9563 lt_cv_prog_compiler_c_o
=no
9564 $RM -r conftest
2>/dev
/null
9568 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
9570 lt_compiler_flag
="-o out/conftest2.$ac_objext"
9571 # Insert the option either (1) after the last *FLAGS variable, or
9572 # (2) before a word containing "conftest.", or (3) at the end.
9573 # Note that $ac_compile itself does not contain backslashes and begins
9574 # with a dollar sign (not a hyphen), so the echo should work correctly.
9575 lt_compile
=`echo "$ac_compile" | $SED \
9576 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9577 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9578 -e 's:$: $lt_compiler_flag:'`
9579 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9580 (eval "$lt_compile" 2>out
/conftest.err
)
9582 cat out
/conftest.err
>&5
9583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9584 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
9586 # The compiler can only warn and ignore the option if not recognized
9587 # So say no if there are warnings
9588 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out
/conftest.exp
9589 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
9590 if test ! -s out
/conftest.er2
|| diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
9591 lt_cv_prog_compiler_c_o
=yes
9596 # SGI C++ compiler will create directory out/ii_files/ for
9597 # template instantiation
9598 test -d out
/ii_files
&& $RM out
/ii_files
/* && rmdir out
/ii_files
9599 $RM out
/* && rmdir out
9605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9606 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9611 hard_links
="nottested"
9612 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
9613 # do not overwrite the value of need_locks provided by the user
9614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9615 $as_echo_n "checking if we can lock with hard links... " >&6; }
9618 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
9620 ln conftest.a conftest.b
2>&5 || hard_links
=no
9621 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
9622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9623 $as_echo "$hard_links" >&6; }
9624 if test "$hard_links" = no
; then
9625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9626 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9639 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9642 allow_undefined_flag
=
9643 always_export_symbols
=no
9645 archive_expsym_cmds
=
9646 compiler_needs_object
=no
9647 enable_shared_with_static_runtimes
=no
9648 export_dynamic_flag_spec
=
9649 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9650 hardcode_automatic
=no
9652 hardcode_direct_absolute
=no
9653 hardcode_libdir_flag_spec
=
9654 hardcode_libdir_flag_spec_ld
=
9655 hardcode_libdir_separator
=
9657 hardcode_shlibpath_var
=unsupported
9659 link_all_deplibs
=unknown
9662 old_archive_from_new_cmds
=
9663 old_archive_from_expsyms_cmds
=
9664 thread_safe_flag_spec
=
9665 whole_archive_flag_spec
=
9666 # include_expsyms should be a list of space-separated symbols to be *always*
9667 # included in the symbol list
9669 # exclude_expsyms can be an extended regexp of symbols to exclude
9670 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9671 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9672 # as well as any symbol that contains `d'.
9673 exclude_expsyms
='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9674 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9675 # platforms (ab)use it in PIC code, but their linkers get confused if
9676 # the symbol is explicitly referenced. Since portable code cannot
9677 # rely on this symbol name, it's probably fine to never include it in
9678 # preloaded symbol tables.
9679 # Exclude shared library initialization/finalization symbols.
9680 extract_expsyms_cmds
=
9683 cygwin
* | mingw
* | pw32
* | cegcc
*)
9684 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9685 # When not using gcc, we currently assume that we are using
9686 # Microsoft Visual C++.
9687 if test "$GCC" != yes; then
9692 # we just hope/assume this is gcc and not c89 (= MSVC++)
9702 # On some targets, GNU ld is compatible enough with the native linker
9703 # that we're better off using the native interface for both.
9704 lt_use_gnu_ld_interface
=no
9705 if test "$with_gnu_ld" = yes; then
9708 # The AIX port of GNU ld has always aspired to compatibility
9709 # with the native linker. However, as the warning in the GNU ld
9710 # block says, versions before 2.19.5* couldn't really create working
9711 # shared libraries, regardless of the interface used.
9712 case `$LD -v 2>&1` in
9713 *\ \
(GNU\ Binutils\
)\
2.19.5*) ;;
9714 *\ \
(GNU\ Binutils\
)\
2.
[2-9]*) ;;
9715 *\ \
(GNU\ Binutils\
)\
[3-9]*) ;;
9717 lt_use_gnu_ld_interface
=yes
9722 lt_use_gnu_ld_interface
=yes
9727 if test "$lt_use_gnu_ld_interface" = yes; then
9728 # If archive_cmds runs LD, not CC, wlarc should be empty
9731 # Set some defaults for GNU ld with shared library support. These
9732 # are reset later if shared libraries are not supported. Putting them
9733 # here allows them to be overridden if necessary.
9734 runpath_var
=LD_RUN_PATH
9735 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9736 export_dynamic_flag_spec
='${wl}--export-dynamic'
9737 # ancient GNU ld didn't support --whole-archive et. al.
9738 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev
/null
; then
9739 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9741 whole_archive_flag_spec
=
9743 supports_anon_versioning
=no
9744 case `$LD -v 2>&1` in
9745 *GNU\ gold
*) supports_anon_versioning
=yes ;;
9746 *\
[01].
* | *\
2.
[0-9].
* | *\
2.10.
*) ;; # catch versions < 2.11
9747 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
9748 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
9749 *\
2.11.
*) ;; # other 2.11 versions
9750 *) supports_anon_versioning
=yes ;;
9753 # See if GNU ld supports shared libraries.
9756 # On AIX/PPC, the GNU linker is very broken
9757 if test "$host_cpu" != ia64
; then
9761 *** Warning: the GNU linker, at least up to release 2.19, is reported
9762 *** to be unable to reliably create shared libraries on AIX.
9763 *** Therefore, libtool is disabling shared libraries support. If you
9764 *** really care for shared libraries, you may want to install binutils
9765 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9766 *** You will then need to restart the configuration process.
9775 # see comment about AmigaOS4 .so support
9776 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9777 archive_expsym_cmds
=''
9780 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)'
9781 hardcode_libdir_flag_spec
='-L$libdir'
9782 hardcode_minus_L
=yes
9788 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev
/null
; then
9789 allow_undefined_flag
=unsupported
9790 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9791 # support --undefined. This deserves some investigation. FIXME
9792 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9798 cygwin
* | mingw
* | pw32
* | cegcc
*)
9799 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9800 # as there is no search path for DLLs.
9801 hardcode_libdir_flag_spec
='-L$libdir'
9802 export_dynamic_flag_spec
='${wl}--export-all-symbols'
9803 allow_undefined_flag
=unsupported
9804 always_export_symbols
=no
9805 enable_shared_with_static_runtimes
=yes
9806 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'
9807 exclude_expsyms
='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9809 if $LD --help 2>&1 | $GREP 'auto-import' > /dev
/null
; then
9810 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9811 # If the export-symbols file already is a .def file (1st line
9812 # is EXPORTS), use it as is; otherwise, prepend...
9813 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9814 cp $export_symbols $output_objdir/$soname.def;
9816 echo EXPORTS > $output_objdir/$soname.def;
9817 cat $export_symbols >> $output_objdir/$soname.def;
9819 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9826 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9827 link_all_deplibs
=yes
9832 hardcode_shlibpath_var
=no
9833 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
9834 export_dynamic_flag_spec
='${wl}-E'
9835 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9836 # Instead, shared libraries are loaded at an image base (0x10000000 by
9837 # default) and relocated if they conflict, which is a slow very memory
9838 # consuming and fragmenting process. To avoid this, we pick a random,
9839 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9840 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9841 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9842 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'
9845 gnu
* | linux
* | tpf
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
9847 if test "$host_os" = linux
-dietlibc; then
9848 case $cc_basename in
9849 diet\
*) tmp_diet
=yes;; # linux-dietlibc with static linking (!diet-dyn)
9852 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev
/null \
9853 && test "$tmp_diet" = no
9855 tmp_addflag
=' $pic_flag'
9856 tmp_sharedflag
='-shared'
9857 case $cc_basename,$host_cpu in
9858 pgcc
*) # Portland Group C compiler
9859 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'
9860 tmp_addflag
=' $pic_flag'
9862 pgf77
* | pgf90
* | pgf95
* | pgfortran
*)
9863 # Portland Group f77 and f90 compilers
9864 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'
9865 tmp_addflag
=' $pic_flag -Mnomain' ;;
9866 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
9867 tmp_addflag
=' -i_dynamic' ;;
9868 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
9869 tmp_addflag
=' -i_dynamic -nofor_main' ;;
9870 ifc
* | ifort
*) # Intel Fortran compiler
9871 tmp_addflag
=' -nofor_main' ;;
9872 lf95
*) # Lahey Fortran 8.1
9873 whole_archive_flag_spec
=
9874 tmp_sharedflag
='--shared' ;;
9875 xl
[cC
]* | bgxl
[cC
]* | mpixl
[cC
]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9876 tmp_sharedflag
='-qmkshrobj'
9878 nvcc
*) # Cuda Compiler Driver 2.2
9879 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'
9880 compiler_needs_object
=yes
9883 case `$CC -V 2>&1 | sed 5q` in
9884 *Sun\ C
*) # Sun C 5.9
9885 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'
9886 compiler_needs_object
=yes
9887 tmp_sharedflag
='-G' ;;
9888 *Sun\ F
*) # Sun Fortran 8.3
9889 tmp_sharedflag
='-G' ;;
9891 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9893 if test "x$supports_anon_versioning" = xyes
; then
9894 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9895 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9896 echo "local: *; };" >> $output_objdir/$libname.ver~
9897 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9900 case $cc_basename in
9901 xlf
* | bgf
* | bgxlf
* | mpixlf
*)
9902 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9903 whole_archive_flag_spec
='--whole-archive$convenience --no-whole-archive'
9904 hardcode_libdir_flag_spec
=
9905 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
9906 archive_cmds
='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9907 if test "x$supports_anon_versioning" = xyes
; then
9908 archive_expsym_cmds
='echo "{ global:" > $output_objdir/$libname.ver~
9909 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9910 echo "local: *; };" >> $output_objdir/$libname.ver~
9911 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9921 if echo __ELF__
| $CC -E - | $GREP __ELF__
>/dev
/null
; then
9922 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9925 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9926 archive_expsym_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9931 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev
/null
; then
9935 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9936 *** create shared libraries on Solaris systems. Therefore, libtool
9937 *** is disabling shared libraries support. We urge you to upgrade GNU
9938 *** binutils to release 2.9.1 or newer. Another option is to modify
9939 *** your PATH or compiler configuration so that the native linker is
9940 *** used, and then restart.
9943 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev
/null
; then
9944 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9945 archive_expsym_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9951 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
9952 case `$LD -v 2>&1` in
9953 *\
[01].
* | *\
2.
[0-9].
* | *\
2.1[0-5].
*)
9957 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9958 *** reliably create shared libraries on SCO systems. Therefore, libtool
9959 *** is disabling shared libraries support. We urge you to upgrade GNU
9960 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9961 *** your PATH or compiler configuration so that the native linker is
9962 *** used, and then restart.
9967 # For security reasons, it is highly recommended that you always
9968 # use absolute paths for naming shared libraries, and exclude the
9969 # DT_RUNPATH tag from executables and libraries. But doing so
9970 # requires that you compile everything twice, which is a pain.
9971 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev
/null
; then
9972 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
9973 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9974 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9983 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9986 hardcode_shlibpath_var
=no
9990 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev
/null
; then
9991 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9992 archive_expsym_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9999 if test "$ld_shlibs" = no
; then
10001 hardcode_libdir_flag_spec
=
10002 export_dynamic_flag_spec
=
10003 whole_archive_flag_spec
=
10006 # PORTME fill in a description of your system's linker (not GNU ld)
10009 allow_undefined_flag
=unsupported
10010 always_export_symbols
=yes
10011 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'
10012 # Note: this linker hardcodes the directories in LIBPATH if there
10013 # are no directories specified by -L.
10014 hardcode_minus_L
=yes
10015 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10016 # Neither direct hardcoding nor static linking is supported with a
10018 hardcode_direct
=unsupported
10023 if test "$host_cpu" = ia64
; then
10024 # On IA64, the linker does run time linking by default, so we don't
10025 # have to do anything special.
10026 aix_use_runtimelinking
=no
10027 exp_sym_flag
='-Bexport'
10030 # If we're using GNU nm, then we don't want the "-C" option.
10031 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10032 # Also, AIX nm treats weak defined symbols like other global
10033 # defined symbols, whereas GNU nm marks them as "W".
10034 if $NM -V 2>&1 | $GREP 'GNU' > /dev
/null
; then
10035 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'
10037 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'
10039 aix_use_runtimelinking
=no
10041 # Test if we are trying to use run time linking or normal
10042 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10043 # need to do runtime linking.
10044 case $host_os in aix4.
[23]|aix4.
[23].
*|aix
[5-9]*)
10045 for ld_flag
in $LDFLAGS; do
10046 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10047 aix_use_runtimelinking
=yes
10054 exp_sym_flag
='-bexport'
10055 no_entry_flag
='-bnoentry'
10058 # When large executables or shared objects are built, AIX ld can
10059 # have problems creating the table of contents. If linking a library
10060 # or program results in "error TOC overflow" add -mminimal-toc to
10061 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10062 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10065 hardcode_direct
=yes
10066 hardcode_direct_absolute
=yes
10067 hardcode_libdir_separator
=':'
10068 link_all_deplibs
=yes
10069 file_list_spec
='${wl}-f,'
10071 if test "$GCC" = yes; then
10072 case $host_os in aix4.
[012]|aix4.
[012].
*)
10073 # We only want to do this on AIX 4.2 and lower, the check
10074 # below for broken collect2 doesn't work under 4.3+
10075 collect2name
=`${CC} -print-prog-name=collect2`
10076 if test -f "$collect2name" &&
10077 strings "$collect2name" | $GREP resolve_lib_name
>/dev
/null
10079 # We have reworked collect2
10082 # We have old collect2
10083 hardcode_direct
=unsupported
10084 # It fails to find uninstalled libraries when the uninstalled
10085 # path is not listed in the libpath. Setting hardcode_minus_L
10086 # to unsupported forces relinking
10087 hardcode_minus_L
=yes
10088 hardcode_libdir_flag_spec
='-L$libdir'
10089 hardcode_libdir_separator
=
10093 shared_flag
='-shared'
10094 if test "$aix_use_runtimelinking" = yes; then
10095 shared_flag
="$shared_flag "'${wl}-G'
10099 if test "$host_cpu" = ia64
; then
10100 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10101 # chokes on -Wl,-G. The following line is correct:
10104 if test "$aix_use_runtimelinking" = yes; then
10105 shared_flag
='${wl}-G'
10107 shared_flag
='${wl}-bM:SRE'
10112 export_dynamic_flag_spec
='${wl}-bexpall'
10113 # It seems that -bexpall does not export symbols beginning with
10114 # underscore (_), so it is better to generate a list of symbols to export.
10115 always_export_symbols
=yes
10116 if test "$aix_use_runtimelinking" = yes; then
10117 # Warning - without using the other runtime loading flags (-brtl),
10118 # -berok will link without error, but may produce a broken library.
10119 allow_undefined_flag
='-berok'
10120 # Determine the default libpath from the value encoded in an
10121 # empty executable.
10122 if test "${lt_cv_aix_libpath+set}" = set; then
10123 aix_libpath
=$lt_cv_aix_libpath
10125 if ${lt_cv_aix_libpath_+:} false
; then :
10126 $as_echo_n "(cached) " >&6
10128 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10129 /* end confdefs.h. */
10139 if ac_fn_c_try_link
"$LINENO"; then :
10141 lt_aix_libpath_sed
='
10142 /Import File Strings/,/^$/ {
10144 s/^0 *\([^ ]*\) *$/\1/
10148 lt_cv_aix_libpath_
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10149 # Check for a 64-bit object if we didn't find anything.
10150 if test -z "$lt_cv_aix_libpath_"; then
10151 lt_cv_aix_libpath_
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10154 rm -f core conftest.err conftest.
$ac_objext \
10155 conftest
$ac_exeext conftest.
$ac_ext
10156 if test -z "$lt_cv_aix_libpath_"; then
10157 lt_cv_aix_libpath_
="/usr/lib:/lib"
10162 aix_libpath
=$lt_cv_aix_libpath_
10165 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
10166 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"
10168 if test "$host_cpu" = ia64
; then
10169 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
10170 allow_undefined_flag
="-z nodefs"
10171 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"
10173 # Determine the default libpath from the value encoded in an
10174 # empty executable.
10175 if test "${lt_cv_aix_libpath+set}" = set; then
10176 aix_libpath
=$lt_cv_aix_libpath
10178 if ${lt_cv_aix_libpath_+:} false
; then :
10179 $as_echo_n "(cached) " >&6
10181 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10182 /* end confdefs.h. */
10192 if ac_fn_c_try_link
"$LINENO"; then :
10194 lt_aix_libpath_sed
='
10195 /Import File Strings/,/^$/ {
10197 s/^0 *\([^ ]*\) *$/\1/
10201 lt_cv_aix_libpath_
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10202 # Check for a 64-bit object if we didn't find anything.
10203 if test -z "$lt_cv_aix_libpath_"; then
10204 lt_cv_aix_libpath_
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10207 rm -f core conftest.err conftest.
$ac_objext \
10208 conftest
$ac_exeext conftest.
$ac_ext
10209 if test -z "$lt_cv_aix_libpath_"; then
10210 lt_cv_aix_libpath_
="/usr/lib:/lib"
10215 aix_libpath
=$lt_cv_aix_libpath_
10218 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
10219 # Warning - without using the other run time loading flags,
10220 # -berok will link without error, but may produce a broken library.
10221 no_undefined_flag
=' ${wl}-bernotok'
10222 allow_undefined_flag
=' ${wl}-berok'
10223 if test "$with_gnu_ld" = yes; then
10224 # We only use this code for GNU lds that support --whole-archive.
10225 whole_archive_flag_spec
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10227 # Exported symbols can be pulled into shared objects from archives
10228 whole_archive_flag_spec
='$convenience'
10230 archive_cmds_need_lc
=yes
10231 # This is similar to how AIX traditionally builds its shared libraries.
10232 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'
10240 # see comment about AmigaOS4 .so support
10241 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10242 archive_expsym_cmds
=''
10245 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)'
10246 hardcode_libdir_flag_spec
='-L$libdir'
10247 hardcode_minus_L
=yes
10253 export_dynamic_flag_spec
=-rdynamic
10256 cygwin
* | mingw
* | pw32
* | cegcc
*)
10257 # When not using gcc, we currently assume that we are using
10258 # Microsoft Visual C++.
10259 # hardcode_libdir_flag_spec is actually meaningless, as there is
10260 # no search path for DLLs.
10261 case $cc_basename in
10264 hardcode_libdir_flag_spec
=' '
10265 allow_undefined_flag
=unsupported
10266 always_export_symbols
=yes
10268 # Tell ltmain to make .lib files, not .a files.
10270 # Tell ltmain to make .dll files, not .so files.
10272 # FIXME: Setting linknames here is a bad hack.
10273 archive_cmds
='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10274 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10275 sed -n -e 's
/\\\\\\\
(.
*\\\\\\\
)/-link\\\
-EXPORT:\\\\\\\
1/' -e '1\\\
!p
' < $export_symbols > $output_objdir/$soname.exp;
10277 sed -e 's
/\\\\\\\
(.
*\\\\\\\
)/-link\\\
-EXPORT:\\\\\\\
1/' < $export_symbols > $output_objdir/$soname.exp;
10279 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10281 # The linker will not automatically build a static lib if we build a DLL.
10282 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10283 enable_shared_with_static_runtimes
=yes
10284 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10286 old_postinstall_cmds
='chmod 644 $oldlib'
10287 postlink_cmds
='lt_outputfile="@OUTPUT@"~
10288 lt_tool_outputfile="@TOOL_OUTPUT@"~
10289 case $lt_outputfile in
10292 lt_outputfile="$lt_outputfile.exe"
10293 lt_tool_outputfile="$lt_tool_outputfile.exe"
10296 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10297 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10298 $RM "$lt_outputfile.manifest";
10302 # Assume MSVC wrapper
10303 hardcode_libdir_flag_spec
=' '
10304 allow_undefined_flag
=unsupported
10305 # Tell ltmain to make .lib files, not .a files.
10307 # Tell ltmain to make .dll files, not .so files.
10309 # FIXME: Setting linknames here is a bad hack.
10310 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10311 # The linker will automatically build a .lib file if we build a DLL.
10312 old_archive_from_new_cmds
='true'
10313 # FIXME: Should let the user specify the lib program.
10314 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
10315 enable_shared_with_static_runtimes
=yes
10320 darwin
* | rhapsody
*)
10323 archive_cmds_need_lc
=no
10325 hardcode_automatic
=yes
10326 hardcode_shlibpath_var
=unsupported
10327 if test "$lt_cv_ld_force_load" = "yes"; then
10328 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\"`'
10330 whole_archive_flag_spec
=''
10332 link_all_deplibs
=yes
10333 allow_undefined_flag
="$_lt_dar_allow_undefined"
10334 case $cc_basename in
10335 ifort
*) _lt_dar_can_shared
=yes ;;
10336 *) _lt_dar_can_shared
=$GCC ;;
10338 if test "$_lt_dar_can_shared" = "yes"; then
10339 output_verbose_link_cmd
=func_echo_all
10340 archive_cmds
="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10341 module_cmds
="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10342 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}"
10343 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}"
10352 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10353 hardcode_libdir_flag_spec
='-L$libdir'
10354 hardcode_shlibpath_var
=no
10361 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10362 # support. Future versions do this automatically, but an explicit c++rt0.o
10363 # does not break anything, and helps significantly (at the cost of a little
10366 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10367 hardcode_libdir_flag_spec
='-R$libdir'
10368 hardcode_direct
=yes
10369 hardcode_shlibpath_var
=no
10372 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10374 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10375 hardcode_direct
=yes
10376 hardcode_minus_L
=yes
10377 hardcode_shlibpath_var
=no
10380 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10381 freebsd
* | dragonfly
*)
10382 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10383 hardcode_libdir_flag_spec
='-R$libdir'
10384 hardcode_direct
=yes
10385 hardcode_shlibpath_var
=no
10389 if test "$GCC" = yes; then
10390 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'
10392 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'
10394 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
10395 hardcode_libdir_separator
=:
10396 hardcode_direct
=yes
10398 # hardcode_minus_L: Not really in the search PATH,
10399 # but as the default location of the library.
10400 hardcode_minus_L
=yes
10401 export_dynamic_flag_spec
='${wl}-E'
10405 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
10406 archive_cmds
='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10408 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10410 if test "$with_gnu_ld" = no
; then
10411 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
10412 hardcode_libdir_flag_spec_ld
='+b $libdir'
10413 hardcode_libdir_separator
=:
10414 hardcode_direct
=yes
10415 hardcode_direct_absolute
=yes
10416 export_dynamic_flag_spec
='${wl}-E'
10417 # hardcode_minus_L: Not really in the search PATH,
10418 # but as the default location of the library.
10419 hardcode_minus_L
=yes
10424 if test "$GCC" = yes && test "$with_gnu_ld" = no
; then
10427 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10430 archive_cmds
='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10433 archive_cmds
='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10439 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10442 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10446 # Older versions of the 11.00 compiler do not understand -b yet
10447 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10449 $as_echo_n "checking if $CC understands -b... " >&6; }
10450 if ${lt_cv_prog_compiler__b+:} false
; then :
10451 $as_echo_n "(cached) " >&6
10453 lt_cv_prog_compiler__b
=no
10454 save_LDFLAGS
="$LDFLAGS"
10455 LDFLAGS
="$LDFLAGS -b"
10456 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
10457 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
10458 # The linker can only warn and ignore the option if not recognized
10459 # So say no if there are warnings
10460 if test -s conftest.err
; then
10461 # Append any errors to the config.log.
10462 cat conftest.err
1>&5
10463 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10464 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
10465 if diff conftest.exp conftest.er2
>/dev
/null
; then
10466 lt_cv_prog_compiler__b
=yes
10469 lt_cv_prog_compiler__b
=yes
10473 LDFLAGS
="$save_LDFLAGS"
10476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10477 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10479 if test x
"$lt_cv_prog_compiler__b" = xyes
; then
10480 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10482 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10488 if test "$with_gnu_ld" = no
; then
10489 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
10490 hardcode_libdir_separator
=:
10495 hardcode_shlibpath_var
=no
10498 hardcode_direct
=yes
10499 hardcode_direct_absolute
=yes
10500 export_dynamic_flag_spec
='${wl}-E'
10502 # hardcode_minus_L: Not really in the search PATH,
10503 # but as the default location of the library.
10504 hardcode_minus_L
=yes
10510 irix5
* | irix6
* | nonstopux
*)
10511 if test "$GCC" = yes; then
10512 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'
10513 # Try to use the -exported_symbol ld option, if it does not
10514 # work, assume that -exports_file does not work either and
10515 # implicitly export all symbols.
10516 # This should be the same for all languages, so no per-tag cache variable.
10517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10518 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10519 if ${lt_cv_irix_exported_symbol+:} false
; then :
10520 $as_echo_n "(cached) " >&6
10522 save_LDFLAGS
="$LDFLAGS"
10523 LDFLAGS
="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10524 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10525 /* end confdefs.h. */
10526 int foo (void) { return 0; }
10528 if ac_fn_c_try_link
"$LINENO"; then :
10529 lt_cv_irix_exported_symbol
=yes
10531 lt_cv_irix_exported_symbol
=no
10533 rm -f core conftest.err conftest.
$ac_objext \
10534 conftest
$ac_exeext conftest.
$ac_ext
10535 LDFLAGS
="$save_LDFLAGS"
10537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10538 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
10539 if test "$lt_cv_irix_exported_symbol" = yes; then
10540 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'
10543 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'
10544 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'
10546 archive_cmds_need_lc
='no'
10547 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10548 hardcode_libdir_separator
=:
10550 link_all_deplibs
=yes
10554 if echo __ELF__
| $CC -E - | $GREP __ELF__
>/dev
/null
; then
10555 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10557 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10559 hardcode_libdir_flag_spec
='-R$libdir'
10560 hardcode_direct
=yes
10561 hardcode_shlibpath_var
=no
10565 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10566 hardcode_direct
=yes
10567 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10568 hardcode_libdir_separator
=:
10569 hardcode_shlibpath_var
=no
10576 if test -f /usr
/libexec
/ld.so
; then
10577 hardcode_direct
=yes
10578 hardcode_shlibpath_var
=no
10579 hardcode_direct_absolute
=yes
10580 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10581 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10582 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10583 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
10584 export_dynamic_flag_spec
='${wl}-E'
10587 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
10588 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10589 hardcode_libdir_flag_spec
='-R$libdir'
10592 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10593 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
10603 hardcode_libdir_flag_spec
='-L$libdir'
10604 hardcode_minus_L
=yes
10605 allow_undefined_flag
=unsupported
10606 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'
10607 old_archive_from_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10611 if test "$GCC" = yes; then
10612 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
10613 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'
10615 allow_undefined_flag
=' -expect_unresolved \*'
10616 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'
10618 archive_cmds_need_lc
='no'
10619 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10620 hardcode_libdir_separator
=:
10623 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
10624 if test "$GCC" = yes; then
10625 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
10626 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'
10627 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
10629 allow_undefined_flag
=' -expect_unresolved \*'
10630 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'
10631 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~
10632 $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'
10634 # Both c and cxx compiler support -rpath directly
10635 hardcode_libdir_flag_spec
='-rpath $libdir'
10637 archive_cmds_need_lc
='no'
10638 hardcode_libdir_separator
=:
10642 no_undefined_flag
=' -z defs'
10643 if test "$GCC" = yes; then
10645 archive_cmds
='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10646 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10647 $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'
10649 case `$CC -V 2>&1` in
10652 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10653 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10654 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10658 archive_cmds
='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10659 archive_expsym_cmds
='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10660 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10664 hardcode_libdir_flag_spec
='-R$libdir'
10665 hardcode_shlibpath_var
=no
10667 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
10669 # The compiler driver will combine and reorder linker options,
10670 # but understands `-z linker_flag'. GCC discards it without `$wl',
10671 # but is careful enough not to reorder.
10672 # Supported since Solaris 2.6 (maybe 2.5.1?)
10673 if test "$GCC" = yes; then
10674 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10676 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
10680 link_all_deplibs
=yes
10684 if test "x$host_vendor" = xsequent
; then
10685 # Use $CC to link under sequent, because it throws in some extra .o
10686 # files that make .init and .fini sections work.
10687 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10689 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10691 hardcode_libdir_flag_spec
='-L$libdir'
10692 hardcode_direct
=yes
10693 hardcode_minus_L
=yes
10694 hardcode_shlibpath_var
=no
10698 case $host_vendor in
10700 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10701 hardcode_direct
=yes # is this really true???
10704 ## LD is ld it makes a PLAMLIB
10705 ## CC just makes a GrossModule.
10706 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10707 reload_cmds
='$CC -r -o $output$reload_objs'
10711 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10712 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
10715 runpath_var
='LD_RUN_PATH'
10716 hardcode_shlibpath_var
=no
10720 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10721 hardcode_shlibpath_var
=no
10722 export_dynamic_flag_spec
='-Bexport'
10726 if test -d /usr
/nec
; then
10727 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10728 hardcode_shlibpath_var
=no
10729 runpath_var
=LD_RUN_PATH
10730 hardcode_runpath_var
=yes
10735 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
10736 no_undefined_flag
='${wl}-z,text'
10737 archive_cmds_need_lc
=no
10738 hardcode_shlibpath_var
=no
10739 runpath_var
='LD_RUN_PATH'
10741 if test "$GCC" = yes; then
10742 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10743 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10745 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10746 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10750 sysv5
* | sco3.2v5
* | sco5v6
*)
10751 # Note: We can NOT use -z defs as we might desire, because we do not
10752 # link with -lc, and that would cause any symbols used from libc to
10753 # always be unresolved, which means just about no library would
10754 # ever link correctly. If we're not using GNU ld we use -z text
10755 # though, which does catch some bad symbols but isn't as heavy-handed
10757 no_undefined_flag
='${wl}-z,text'
10758 allow_undefined_flag
='${wl}-z,nodefs'
10759 archive_cmds_need_lc
=no
10760 hardcode_shlibpath_var
=no
10761 hardcode_libdir_flag_spec
='${wl}-R,$libdir'
10762 hardcode_libdir_separator
=':'
10763 link_all_deplibs
=yes
10764 export_dynamic_flag_spec
='${wl}-Bexport'
10765 runpath_var
='LD_RUN_PATH'
10767 if test "$GCC" = yes; then
10768 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10769 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10771 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10772 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10777 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10778 hardcode_libdir_flag_spec
='-L$libdir'
10779 hardcode_shlibpath_var
=no
10787 if test x
$host_vendor = xsni
; then
10789 sysv4
| sysv4.2uw2
* | sysv4.3
* | sysv5
*)
10790 export_dynamic_flag_spec
='${wl}-Blargedynsym'
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10797 $as_echo "$ld_shlibs" >&6; }
10798 test "$ld_shlibs" = no
&& can_build_shared
=no
10800 with_gnu_ld
=$with_gnu_ld
10817 # Do we need to explicitly link libc?
10819 case "x$archive_cmds_need_lc" in
10821 # Assume -lc should be added
10822 archive_cmds_need_lc
=yes
10824 if test "$enable_shared" = yes && test "$GCC" = yes; then
10825 case $archive_cmds in
10827 # FIXME: we may have to deal with multi-command sequences.
10830 # Test whether the compiler implicitly links with -lc since on some
10831 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10832 # to ld, don't add -lc before -lgcc.
10833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10834 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10835 if ${lt_cv_archive_cmds_need_lc+:} false
; then :
10836 $as_echo_n "(cached) " >&6
10839 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
10841 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10842 (eval $ac_compile) 2>&5
10844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10845 test $ac_status = 0; } 2>conftest.err
; then
10848 libobjs
=conftest.
$ac_objext
10850 wl
=$lt_prog_compiler_wl
10851 pic_flag
=$lt_prog_compiler_pic
10857 lt_save_allow_undefined_flag
=$allow_undefined_flag
10858 allow_undefined_flag
=
10859 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10860 (eval $archive_cmds 2\
>\
&1 \
| $GREP \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
10862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10863 test $ac_status = 0; }
10865 lt_cv_archive_cmds_need_lc
=no
10867 lt_cv_archive_cmds_need_lc
=yes
10869 allow_undefined_flag
=$lt_save_allow_undefined_flag
10871 cat conftest.err
1>&5
10876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10877 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10878 archive_cmds_need_lc
=$lt_cv_archive_cmds_need_lc
11041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11042 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11044 if test "$GCC" = yes; then
11046 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
11047 *) lt_awk_arg
="/^libraries:/" ;;
11050 mingw
* | cegcc
*) lt_sed_strip_eq
="s,=\([A-Za-z]:\),\1,g" ;;
11051 *) lt_sed_strip_eq
="s,=/,/,g" ;;
11053 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11054 case $lt_search_path_spec in
11056 # if the path contains ";" then we assume it to be the separator
11057 # otherwise default to the standard path separator (i.e. ":") - it is
11058 # assumed that no part of a normal pathname contains ";" but that should
11059 # okay in the real world where ";" in dirpaths is itself problematic.
11060 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11063 lt_search_path_spec
=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11066 # Ok, now we have the path, separated by spaces, we can step through it
11067 # and add multilib dir if necessary.
11068 lt_tmp_lt_search_path_spec
=
11069 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11070 for lt_sys_path
in $lt_search_path_spec; do
11071 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11072 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11074 test -d "$lt_sys_path" && \
11075 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
11078 lt_search_path_spec
=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11079 BEGIN {RS=" "; FS="/|\n";} {
11082 for (lt_i = NF; lt_i > 0; lt_i--) {
11083 if ($lt_i != "" && $lt_i != ".") {
11084 if ($lt_i == "..") {
11087 if (lt_count == 0) {
11088 lt_foo="/" $lt_i lt_foo;
11095 if (lt_foo != "") { lt_freq[lt_foo]++; }
11096 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11098 # AWK program above erroneously prepends '/' to C:/dos/paths
11101 mingw
* | cegcc
*) lt_search_path_spec
=`$ECHO "$lt_search_path_spec" |\
11102 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11104 sys_lib_search_path_spec
=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11106 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
11108 library_names_spec
=
11109 libname_spec
='lib$name'
11113 postuninstall_cmds
=
11117 shlibpath_overrides_runpath
=unknown
11119 dynamic_linker
="$host_os ld.so"
11120 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
11121 need_lib_prefix
=unknown
11122 hardcode_into_libs
=no
11124 # when you set need_version to no, make sure it does not cause -set_version
11125 # flags to be left without arguments
11126 need_version
=unknown
11131 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
11132 shlibpath_var
=LIBPATH
11134 # AIX 3 has no versioning support, so we append a major version to the name.
11135 soname_spec
='${libname}${release}${shared_ext}$major'
11142 hardcode_into_libs
=yes
11143 if test "$host_cpu" = ia64
; then
11144 # AIX 5 supports IA64
11145 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11146 shlibpath_var
=LD_LIBRARY_PATH
11148 # With GCC up to 2.95.x, collect2 would create an import file
11149 # for dependence libraries. The import file would start with
11150 # the line `#! .'. This would cause the generated library to
11151 # depend on `.', always an invalid library. This was fixed in
11152 # development snapshots of GCC prior to 3.0.
11154 aix4
| aix4.
[01] | aix4.
[01].
*)
11155 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11157 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev
/null
; then
11160 can_build_shared
=no
11164 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11165 # soname into executable. Probably we can add versioning support to
11166 # collect2, so additional links can be useful in future.
11167 if test "$aix_use_runtimelinking" = yes; then
11168 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11169 # instead of lib<name>.a to let people know that these are not
11170 # typical AIX shared libraries.
11171 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11173 # We preserve .a as extension for shared libraries through AIX4.2
11174 # and later when we are not doing run time linking.
11175 library_names_spec
='${libname}${release}.a $libname.a'
11176 soname_spec
='${libname}${release}${shared_ext}$major'
11178 shlibpath_var
=LIBPATH
11185 # Since July 2007 AmigaOS4 officially supports .so libraries.
11186 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11187 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11190 library_names_spec
='$libname.ixlibrary $libname.a'
11191 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11192 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'
11198 library_names_spec
='${libname}${shared_ext}'
11199 dynamic_linker
="$host_os ld.so"
11200 shlibpath_var
=LIBRARY_PATH
11206 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11207 soname_spec
='${libname}${release}${shared_ext}$major'
11208 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
11209 shlibpath_var
=LD_LIBRARY_PATH
11210 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11211 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
11212 # the default ld.so.conf also contains /usr/contrib/lib and
11213 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11214 # libtool to hard-code these into programs
11217 cygwin
* | mingw
* | pw32
* | cegcc
*)
11218 version_type
=windows
11223 case $GCC,$cc_basename in
11226 library_names_spec
='$libname.dll.a'
11227 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11228 postinstall_cmds
='base_file=`basename \${file}`~
11229 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11230 dldir=$destdir/`dirname \$dlpath`~
11231 test -d \$dldir || mkdir -p \$dldir~
11232 $install_prog $dir/$dlname \$dldir/$dlname~
11233 chmod a+x \$dldir/$dlname~
11234 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11235 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11237 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11238 dlpath=$dir/\$dldll~
11240 shlibpath_overrides_runpath
=yes
11244 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11245 soname_spec
='`echo ${libname} | sed -e 's
/^lib
/cyg
/'``echo ${release} | $SED -e 's
/[.
]/-/g
'`${versuffix}${shared_ext}'
11247 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/lib/w32api"
11250 # MinGW DLLs use traditional 'lib' prefix
11251 soname_spec
='${libname}`echo ${release} | $SED -e 's
/[.
]/-/g
'`${versuffix}${shared_ext}'
11254 # pw32 DLLs use 'pw' prefix rather than 'lib'
11255 library_names_spec
='`echo ${libname} | sed -e 's
/^lib
/pw
/'``echo ${release} | $SED -e 's
/[.
]/-/g
'`${versuffix}${shared_ext}'
11258 dynamic_linker
='Win32 ld.exe'
11263 libname_spec
='$name'
11264 soname_spec
='${libname}`echo ${release} | $SED -e 's
/[.
]/-/g
'`${versuffix}${shared_ext}'
11265 library_names_spec
='${libname}.dll.lib'
11269 sys_lib_search_path_spec
=
11272 for lt_path
in $LIB
11275 # Let DOS variable expansion print the short 8.3 style file name.
11276 lt_path
=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11277 sys_lib_search_path_spec
="$sys_lib_search_path_spec $lt_path"
11280 # Convert to MSYS style.
11281 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11284 # Convert to unix form, then to dos form, then back to unix form
11285 # but this time dos style (no spaces!) so that the unix form looks
11286 # like /cygdrive/c/PROGRA~1:/cygdr...
11287 sys_lib_search_path_spec
=`cygpath --path --unix "$LIB"`
11288 sys_lib_search_path_spec
=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11289 sys_lib_search_path_spec
=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11292 sys_lib_search_path_spec
="$LIB"
11293 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev
/null
; then
11294 # It is most probably a Windows format PATH.
11295 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11297 sys_lib_search_path_spec
=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11299 # FIXME: find the short name or the path components, as spaces are
11300 # common. (e.g. "Program Files" -> "PROGRA~1")
11304 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11305 postinstall_cmds
='base_file=`basename \${file}`~
11306 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11307 dldir=$destdir/`dirname \$dlpath`~
11308 test -d \$dldir || mkdir -p \$dldir~
11309 $install_prog $dir/$dlname \$dldir/$dlname'
11310 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11311 dlpath=$dir/\$dldll~
11313 shlibpath_overrides_runpath
=yes
11314 dynamic_linker
='Win32 link.exe'
11318 # Assume MSVC wrapper
11319 library_names_spec
='${libname}`echo ${release} | $SED -e 's
/[.
]/-/g
'`${versuffix}${shared_ext} $libname.lib'
11320 dynamic_linker
='Win32 ld.exe'
11323 # FIXME: first we should search . and the directory the executable is in
11327 darwin
* | rhapsody
*)
11328 dynamic_linker
="$host_os dyld"
11329 version_type
=darwin
11332 library_names_spec
='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11333 soname_spec
='${libname}${release}${major}$shared_ext'
11334 shlibpath_overrides_runpath
=yes
11335 shlibpath_var
=DYLD_LIBRARY_PATH
11336 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
11338 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
11339 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
11346 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11347 soname_spec
='${libname}${release}${shared_ext}$major'
11348 shlibpath_var
=LD_LIBRARY_PATH
11355 freebsd
* | dragonfly
*)
11356 # DragonFly does not have aout. When/if they implement a new
11357 # versioning mechanism, adjust this.
11358 if test -x /usr
/bin
/objformat
; then
11359 objformat
=`/usr/bin/objformat`
11362 freebsd
[123]*) objformat
=aout
;;
11363 *) objformat
=elf
;;
11366 version_type
=freebsd
-$objformat
11367 case $version_type in
11369 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11374 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11378 shlibpath_var
=LD_LIBRARY_PATH
11381 shlibpath_overrides_runpath
=yes
11383 freebsd3.
[01]* | freebsdelf3.
[01]*)
11384 shlibpath_overrides_runpath
=yes
11385 hardcode_into_libs
=yes
11387 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
11388 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
11389 shlibpath_overrides_runpath
=no
11390 hardcode_into_libs
=yes
11392 *) # from 4.6 on, and DragonFly
11393 shlibpath_overrides_runpath
=yes
11394 hardcode_into_libs
=yes
11403 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11404 soname_spec
='${libname}${release}${shared_ext}$major'
11405 shlibpath_var
=LD_LIBRARY_PATH
11406 hardcode_into_libs
=yes
11413 dynamic_linker
="$host_os runtime_loader"
11414 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11415 soname_spec
='${libname}${release}${shared_ext}$major'
11416 shlibpath_var
=LIBRARY_PATH
11417 shlibpath_overrides_runpath
=yes
11418 sys_lib_dlsearch_path_spec
='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11419 hardcode_into_libs
=yes
11422 hpux9
* | hpux10
* | hpux11
*)
11423 # Give a soname corresponding to the major version so that dld.sl refuses to
11424 # link against other versions.
11431 hardcode_into_libs
=yes
11432 dynamic_linker
="$host_os dld.so"
11433 shlibpath_var
=LD_LIBRARY_PATH
11434 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
11435 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11436 soname_spec
='${libname}${release}${shared_ext}$major'
11437 if test "X$HPUX_IA64_MODE" = X32
; then
11438 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11440 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
11442 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
11446 hardcode_into_libs
=yes
11447 dynamic_linker
="$host_os dld.sl"
11448 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
11449 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
11450 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11451 soname_spec
='${libname}${release}${shared_ext}$major'
11452 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11453 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
11457 dynamic_linker
="$host_os dld.sl"
11458 shlibpath_var
=SHLIB_PATH
11459 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
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'
11464 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11465 postinstall_cmds
='chmod 555 $lib'
11466 # or fails outright, so override atomically:
11467 install_override_mode
=555
11474 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11475 soname_spec
='${libname}${release}${shared_ext}$major'
11476 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
11477 shlibpath_var
=LD_LIBRARY_PATH
11478 shlibpath_overrides_runpath
=no
11479 hardcode_into_libs
=yes
11482 irix5
* | irix6
* | nonstopux
*)
11484 nonstopux
*) version_type
=nonstopux
;;
11486 if test "$lt_cv_prog_gnu_ld" = yes; then
11494 soname_spec
='${libname}${release}${shared_ext}$major'
11495 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11497 irix5
* | nonstopux
*)
11498 libsuff
= shlibsuff
=
11501 case $LD in # libtool.m4 will add one of these switches to LD
11502 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11503 libsuff
= shlibsuff
= libmagic
=32-bit;;
11504 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11505 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
11506 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11507 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
11508 *) libsuff
= shlibsuff
= libmagic
=never
-match;;
11512 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
11513 shlibpath_overrides_runpath
=no
11514 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11515 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
11516 hardcode_into_libs
=yes
11519 # No shared lib support for Linux oldld, aout, or coff.
11520 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
11524 # This must be Linux ELF.
11525 linux
* | k
*bsd
*-gnu | kopensolaris
*-gnu)
11529 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11530 soname_spec
='${libname}${release}${shared_ext}$major'
11531 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11532 shlibpath_var
=LD_LIBRARY_PATH
11533 shlibpath_overrides_runpath
=no
11535 # Some binutils ld are patched to set DT_RUNPATH
11536 if ${lt_cv_shlibpath_overrides_runpath+:} false
; then :
11537 $as_echo_n "(cached) " >&6
11539 lt_cv_shlibpath_overrides_runpath
=no
11540 save_LDFLAGS
=$LDFLAGS
11541 save_libdir
=$libdir
11542 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11543 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11544 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11545 /* end confdefs.h. */
11555 if ac_fn_c_try_link
"$LINENO"; then :
11556 if ($OBJDUMP -p conftest
$ac_exeext) 2>/dev
/null
| grep "RUNPATH.*$libdir" >/dev
/null
; then :
11557 lt_cv_shlibpath_overrides_runpath
=yes
11560 rm -f core conftest.err conftest.
$ac_objext \
11561 conftest
$ac_exeext conftest.
$ac_ext
11562 LDFLAGS
=$save_LDFLAGS
11563 libdir
=$save_libdir
11567 shlibpath_overrides_runpath
=$lt_cv_shlibpath_overrides_runpath
11569 # This implies no fast_install, which is unacceptable.
11570 # Some rework will be needed to allow for fast_install
11571 # before this can be enabled.
11572 hardcode_into_libs
=yes
11574 # Append ld.so.conf contents to the search path
11575 if test -f /etc
/ld.so.conf
; then
11576 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' ' '`
11577 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
11580 # We used to test for /lib/ld.so.1 and disable shared libraries on
11581 # powerpc, because MkLinux only supported shared libraries with the
11582 # GNU dynamic linker. Since this was broken with cross compilers,
11583 # most powerpc-linux boxes support dynamic linking these days and
11584 # people can always --disable-shared, the test was removed, and we
11585 # assume the GNU/Linux dynamic linker is in use.
11586 dynamic_linker
='GNU/Linux ld.so'
11593 if echo __ELF__
| $CC -E - | $GREP __ELF__
>/dev
/null
; then
11594 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11595 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11596 dynamic_linker
='NetBSD (a.out) ld.so'
11598 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11599 soname_spec
='${libname}${release}${shared_ext}$major'
11600 dynamic_linker
='NetBSD ld.elf_so'
11602 shlibpath_var
=LD_LIBRARY_PATH
11603 shlibpath_overrides_runpath
=yes
11604 hardcode_into_libs
=yes
11609 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11610 shlibpath_var
=LD_LIBRARY_PATH
11611 shlibpath_overrides_runpath
=yes
11618 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11619 soname_spec
='${libname}${release}${shared_ext}$major'
11620 shlibpath_var
=LD_LIBRARY_PATH
11621 shlibpath_overrides_runpath
=no
11622 hardcode_into_libs
=yes
11623 dynamic_linker
='ldqnx.so'
11628 sys_lib_dlsearch_path_spec
="/usr/lib"
11630 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11632 openbsd3.3
| openbsd3.3.
*) need_version
=yes ;;
11633 *) need_version
=no
;;
11635 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11636 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11637 shlibpath_var
=LD_LIBRARY_PATH
11638 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11640 openbsd2.
[89] | openbsd2.
[89].
*)
11641 shlibpath_overrides_runpath
=no
11644 shlibpath_overrides_runpath
=yes
11648 shlibpath_overrides_runpath
=yes
11653 libname_spec
='$name'
11656 library_names_spec
='$libname${shared_ext} $libname.a'
11657 dynamic_linker
='OS/2 ld.exe'
11658 shlibpath_var
=LIBPATH
11661 osf3
* | osf4
* | osf5
*)
11665 soname_spec
='${libname}${release}${shared_ext}$major'
11666 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11667 shlibpath_var
=LD_LIBRARY_PATH
11668 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11669 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
11680 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11681 soname_spec
='${libname}${release}${shared_ext}$major'
11682 shlibpath_var
=LD_LIBRARY_PATH
11683 shlibpath_overrides_runpath
=yes
11684 hardcode_into_libs
=yes
11685 # ldd complains unless libraries are executable
11686 postinstall_cmds
='chmod +x $lib'
11691 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11692 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11693 shlibpath_var
=LD_LIBRARY_PATH
11694 shlibpath_overrides_runpath
=yes
11695 if test "$with_gnu_ld" = yes; then
11703 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11704 soname_spec
='${libname}${release}${shared_ext}$major'
11705 shlibpath_var
=LD_LIBRARY_PATH
11706 case $host_vendor in
11708 shlibpath_overrides_runpath
=no
11710 runpath_var
=LD_RUN_PATH
11718 shlibpath_overrides_runpath
=no
11719 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
11725 if test -d /usr
/nec
;then
11727 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11728 soname_spec
='$libname${shared_ext}.$major'
11729 shlibpath_var
=LD_LIBRARY_PATH
11733 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
11734 version_type
=freebsd
-elf
11737 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11738 soname_spec
='${libname}${release}${shared_ext}$major'
11739 shlibpath_var
=LD_LIBRARY_PATH
11740 shlibpath_overrides_runpath
=yes
11741 hardcode_into_libs
=yes
11742 if test "$with_gnu_ld" = yes; then
11743 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11745 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
11748 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
11752 sys_lib_dlsearch_path_spec
='/usr/lib'
11756 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11760 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11761 shlibpath_var
=LD_LIBRARY_PATH
11762 shlibpath_overrides_runpath
=no
11763 hardcode_into_libs
=yes
11768 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11769 soname_spec
='${libname}${release}${shared_ext}$major'
11770 shlibpath_var
=LD_LIBRARY_PATH
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11778 $as_echo "$dynamic_linker" >&6; }
11779 test "$dynamic_linker" = no
&& can_build_shared
=no
11781 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
11782 if test "$GCC" = yes; then
11783 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11786 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11787 sys_lib_search_path_spec
="$lt_cv_sys_lib_search_path_spec"
11789 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11790 sys_lib_dlsearch_path_spec
="$lt_cv_sys_lib_dlsearch_path_spec"
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11885 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11887 if test -n "$hardcode_libdir_flag_spec" ||
11888 test -n "$runpath_var" ||
11889 test "X$hardcode_automatic" = "Xyes" ; then
11891 # We can hardcode non-existent directories.
11892 if test "$hardcode_direct" != no
&&
11893 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11894 # have to relink, otherwise we might link with an installed library
11895 # when we should be linking with a yet-to-be-installed one
11896 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11897 test "$hardcode_minus_L" != no
; then
11898 # Linking always hardcodes the temporary library directory.
11899 hardcode_action
=relink
11901 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11902 hardcode_action
=immediate
11905 # We cannot hardcode anything, or else we can only hardcode existing
11907 hardcode_action
=unsupported
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11910 $as_echo "$hardcode_action" >&6; }
11912 if test "$hardcode_action" = relink
||
11913 test "$inherit_rpath" = yes; then
11914 # Fast installation is not supported
11915 enable_fast_install
=no
11916 elif test "$shlibpath_overrides_runpath" = yes ||
11917 test "$enable_shared" = no
; then
11918 # Fast installation is not necessary
11919 enable_fast_install
=needless
11927 if test "x$enable_dlopen" != xyes
; then
11928 enable_dlopen
=unknown
11929 enable_dlopen_self
=unknown
11930 enable_dlopen_self_static
=unknown
11937 lt_cv_dlopen
="load_add_on"
11939 lt_cv_dlopen_self
=yes
11942 mingw
* | pw32
* | cegcc
*)
11943 lt_cv_dlopen
="LoadLibrary"
11948 lt_cv_dlopen
="dlopen"
11953 # if libdl is installed we need to link against it
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11955 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11956 if ${ac_cv_lib_dl_dlopen+:} false
; then :
11957 $as_echo_n "(cached) " >&6
11959 ac_check_lib_save_LIBS
=$LIBS
11961 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11962 /* end confdefs.h. */
11964 /* Override any GCC internal prototype to avoid an error.
11965 Use char because int might match the return type of a GCC
11966 builtin and then its argument prototype would still apply. */
11979 if ac_fn_c_try_link
"$LINENO"; then :
11980 ac_cv_lib_dl_dlopen
=yes
11982 ac_cv_lib_dl_dlopen
=no
11984 rm -f core conftest.err conftest.
$ac_objext \
11985 conftest
$ac_exeext conftest.
$ac_ext
11986 LIBS
=$ac_check_lib_save_LIBS
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11989 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11990 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
11991 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
11994 lt_cv_dlopen
="dyld"
11996 lt_cv_dlopen_self
=yes
12003 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
12004 if test "x$ac_cv_func_shl_load" = xyes
; then :
12005 lt_cv_dlopen
="shl_load"
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12008 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12009 if ${ac_cv_lib_dld_shl_load+:} false
; then :
12010 $as_echo_n "(cached) " >&6
12012 ac_check_lib_save_LIBS
=$LIBS
12014 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12015 /* end confdefs.h. */
12017 /* Override any GCC internal prototype to avoid an error.
12018 Use char because int might match the return type of a GCC
12019 builtin and then its argument prototype would still apply. */
12027 return shl_load ();
12032 if ac_fn_c_try_link
"$LINENO"; then :
12033 ac_cv_lib_dld_shl_load
=yes
12035 ac_cv_lib_dld_shl_load
=no
12037 rm -f core conftest.err conftest.
$ac_objext \
12038 conftest
$ac_exeext conftest.
$ac_ext
12039 LIBS
=$ac_check_lib_save_LIBS
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12042 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12043 if test "x$ac_cv_lib_dld_shl_load" = xyes
; then :
12044 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-ldld"
12046 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
12047 if test "x$ac_cv_func_dlopen" = xyes
; then :
12048 lt_cv_dlopen
="dlopen"
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12051 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12052 if ${ac_cv_lib_dl_dlopen+:} false
; then :
12053 $as_echo_n "(cached) " >&6
12055 ac_check_lib_save_LIBS
=$LIBS
12057 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12058 /* end confdefs.h. */
12060 /* Override any GCC internal prototype to avoid an error.
12061 Use char because int might match the return type of a GCC
12062 builtin and then its argument prototype would still apply. */
12075 if ac_fn_c_try_link
"$LINENO"; then :
12076 ac_cv_lib_dl_dlopen
=yes
12078 ac_cv_lib_dl_dlopen
=no
12080 rm -f core conftest.err conftest.
$ac_objext \
12081 conftest
$ac_exeext conftest.
$ac_ext
12082 LIBS
=$ac_check_lib_save_LIBS
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12085 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12086 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
12087 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
12089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12090 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12091 if ${ac_cv_lib_svld_dlopen+:} false
; then :
12092 $as_echo_n "(cached) " >&6
12094 ac_check_lib_save_LIBS
=$LIBS
12095 LIBS
="-lsvld $LIBS"
12096 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12097 /* end confdefs.h. */
12099 /* Override any GCC internal prototype to avoid an error.
12100 Use char because int might match the return type of a GCC
12101 builtin and then its argument prototype would still apply. */
12114 if ac_fn_c_try_link
"$LINENO"; then :
12115 ac_cv_lib_svld_dlopen
=yes
12117 ac_cv_lib_svld_dlopen
=no
12119 rm -f core conftest.err conftest.
$ac_objext \
12120 conftest
$ac_exeext conftest.
$ac_ext
12121 LIBS
=$ac_check_lib_save_LIBS
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12124 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12125 if test "x$ac_cv_lib_svld_dlopen" = xyes
; then :
12126 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12129 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12130 if ${ac_cv_lib_dld_dld_link+:} false
; then :
12131 $as_echo_n "(cached) " >&6
12133 ac_check_lib_save_LIBS
=$LIBS
12135 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12136 /* end confdefs.h. */
12138 /* Override any GCC internal prototype to avoid an error.
12139 Use char because int might match the return type of a GCC
12140 builtin and then its argument prototype would still apply. */
12148 return dld_link ();
12153 if ac_fn_c_try_link
"$LINENO"; then :
12154 ac_cv_lib_dld_dld_link
=yes
12156 ac_cv_lib_dld_dld_link
=no
12158 rm -f core conftest.err conftest.
$ac_objext \
12159 conftest
$ac_exeext conftest.
$ac_ext
12160 LIBS
=$ac_check_lib_save_LIBS
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12163 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12164 if test "x$ac_cv_lib_dld_dld_link" = xyes
; then :
12165 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-ldld"
12186 if test "x$lt_cv_dlopen" != xno
; then
12192 case $lt_cv_dlopen in
12194 save_CPPFLAGS
="$CPPFLAGS"
12195 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
12197 save_LDFLAGS
="$LDFLAGS"
12198 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
12201 LIBS
="$lt_cv_dlopen_libs $LIBS"
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12204 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12205 if ${lt_cv_dlopen_self+:} false
; then :
12206 $as_echo_n "(cached) " >&6
12208 if test "$cross_compiling" = yes; then :
12209 lt_cv_dlopen_self
=cross
12211 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
12212 lt_status
=$lt_dlunknown
12213 cat > conftest.
$ac_ext <<_LT_EOF
12214 #line $LINENO "configure"
12215 #include "confdefs.h"
12224 # define LT_DLGLOBAL RTLD_GLOBAL
12227 # define LT_DLGLOBAL DL_GLOBAL
12229 # define LT_DLGLOBAL 0
12233 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12234 find out it does not work in some platform. */
12235 #ifndef LT_DLLAZY_OR_NOW
12237 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12240 # define LT_DLLAZY_OR_NOW DL_LAZY
12243 # define LT_DLLAZY_OR_NOW RTLD_NOW
12246 # define LT_DLLAZY_OR_NOW DL_NOW
12248 # define LT_DLLAZY_OR_NOW 0
12255 /* When -fvisbility=hidden is used, assume the code has been annotated
12256 correspondingly for the symbols needed. */
12257 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12258 int fnord () __attribute__((visibility("default")));
12261 int fnord () { return 42; }
12264 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12265 int status = $lt_dlunknown;
12269 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12272 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12273 else puts (dlerror ());
12275 /* dlclose (self); */
12283 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12284 (eval $ac_link) 2>&5
12286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12287 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
12288 (.
/conftest
; exit; ) >&5 2>/dev
/null
12290 case x
$lt_status in
12291 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
12292 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
12293 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
12296 # compilation failed
12297 lt_cv_dlopen_self
=no
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12305 $as_echo "$lt_cv_dlopen_self" >&6; }
12307 if test "x$lt_cv_dlopen_self" = xyes
; then
12308 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12310 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12311 if ${lt_cv_dlopen_self_static+:} false
; then :
12312 $as_echo_n "(cached) " >&6
12314 if test "$cross_compiling" = yes; then :
12315 lt_cv_dlopen_self_static
=cross
12317 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
12318 lt_status
=$lt_dlunknown
12319 cat > conftest.
$ac_ext <<_LT_EOF
12320 #line $LINENO "configure"
12321 #include "confdefs.h"
12330 # define LT_DLGLOBAL RTLD_GLOBAL
12333 # define LT_DLGLOBAL DL_GLOBAL
12335 # define LT_DLGLOBAL 0
12339 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12340 find out it does not work in some platform. */
12341 #ifndef LT_DLLAZY_OR_NOW
12343 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12346 # define LT_DLLAZY_OR_NOW DL_LAZY
12349 # define LT_DLLAZY_OR_NOW RTLD_NOW
12352 # define LT_DLLAZY_OR_NOW DL_NOW
12354 # define LT_DLLAZY_OR_NOW 0
12361 /* When -fvisbility=hidden is used, assume the code has been annotated
12362 correspondingly for the symbols needed. */
12363 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12364 int fnord () __attribute__((visibility("default")));
12367 int fnord () { return 42; }
12370 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12371 int status = $lt_dlunknown;
12375 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12378 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12379 else puts (dlerror ());
12381 /* dlclose (self); */
12389 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12390 (eval $ac_link) 2>&5
12392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12393 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
12394 (.
/conftest
; exit; ) >&5 2>/dev
/null
12396 case x
$lt_status in
12397 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
12398 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
12399 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
12402 # compilation failed
12403 lt_cv_dlopen_self_static
=no
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12411 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12414 CPPFLAGS
="$save_CPPFLAGS"
12415 LDFLAGS
="$save_LDFLAGS"
12420 case $lt_cv_dlopen_self in
12421 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
12422 *) enable_dlopen_self
=unknown
;;
12425 case $lt_cv_dlopen_self_static in
12426 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
12427 *) enable_dlopen_self_static
=unknown
;;
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12450 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12451 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev
/null
; then
12452 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
12453 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12455 $as_echo "yes" >&6; }
12457 # FIXME - insert some real tests, host_os isn't really good enough
12460 if test -n "$STRIP" ; then
12461 striplib
="$STRIP -x"
12462 old_striplib
="$STRIP -S"
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12464 $as_echo "yes" >&6; }
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12467 $as_echo "no" >&6; }
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12472 $as_echo "no" >&6; }
12488 # Report which library types will actually be built
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12490 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12492 $as_echo "$can_build_shared" >&6; }
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12495 $as_echo_n "checking whether to build shared libraries... " >&6; }
12496 test "$can_build_shared" = "no" && enable_shared
=no
12498 # On AIX, shared libraries and static libraries use the same namespace, and
12499 # are all built from PIC.
12502 test "$enable_shared" = yes && enable_static
=no
12503 if test -n "$RANLIB"; then
12504 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
12505 postinstall_cmds
='$RANLIB $lib'
12510 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
12511 test "$enable_shared" = yes && enable_static
=no
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12516 $as_echo "$enable_shared" >&6; }
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12519 $as_echo_n "checking whether to build static libraries... " >&6; }
12520 # Make sure either enable_shared or enable_static is yes.
12521 test "$enable_shared" = yes || enable_static
=yes
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12523 $as_echo "$enable_static" >&6; }
12530 ac_cpp
='$CPP $CPPFLAGS'
12531 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12532 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12533 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
12549 ac_config_commands
="$ac_config_commands libtool"
12554 # Only expand once:
12558 LIBTOOL
="$LIBTOOL --silent"
12563 cat >>confdefs.h
<<_ACEOF
12568 cat >>confdefs.h
<<_ACEOF
12575 cat >>confdefs.h
<<_ACEOF
12580 cat >>confdefs.h
<<_ACEOF
12584 ac_fn_c_check_header_mongrel
"$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
12585 if test "x$ac_cv_header_windows_h" = xyes
; then :
12588 as_fn_error $?
"** MinGW and no windows.h. I give up." "$LINENO" 5
12592 ac_fn_c_check_header_mongrel
"$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
12593 if test "x$ac_cv_header_winsock2_h" = xyes
; then :
12596 as_fn_error $?
"** MinGW and no winsock2.h. I give up." "$LINENO" 5
12601 cat >>confdefs.h
<<_ACEOF
12602 #define HAVE_WINSOCK2_H 1
12606 cat >>confdefs.h
<<_ACEOF
12607 #define HAVE_WINSOCK_H 1
12610 LIBS
="$LIBS -lws2_32 -liphlpapi"
12614 CPPFLAGS
="$CFLAGS -D_ALL_SOURCE -D_XOPEN_SOURCE=500"
12617 CPPFLAGS
="$CFLAGS -D_POSIX_PTHREAD_SEMANTICS -D_XPG4_2"
12623 if test "$is_mingw" = "yes"; then
12633 # backwards support for IRC_CFLAGS
12634 CFLAGS
="$IRC_CFLAGS $CFLAGS -Wall"
12636 if test "$libexecdir" = '${exec_prefix}/libexec' &&
12637 test "$localstatedir" = '${prefix}/var'; then
12638 libexecdir
='${bindir}'
12639 localstatedir
='${prefix}'
12642 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
12643 if test "x$ac_cv_type_pid_t" = xyes
; then :
12647 cat >>confdefs.h
<<_ACEOF
12653 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12654 if test "x$ac_cv_type_size_t" = xyes
; then :
12658 cat >>confdefs.h
<<_ACEOF
12659 #define size_t unsigned int
12664 ac_fn_c_check_type
"$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
12665 if test "x$ac_cv_type_ssize_t" = xyes
; then :
12669 cat >>confdefs.h
<<_ACEOF
12670 #define ssize_t int
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
12676 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
12677 if ${ac_cv_type_uid_t+:} false
; then :
12678 $as_echo_n "(cached) " >&6
12680 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12681 /* end confdefs.h. */
12682 #include <sys/types.h>
12685 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12686 $EGREP "uid_t" >/dev
/null
2>&1; then :
12687 ac_cv_type_uid_t
=yes
12689 ac_cv_type_uid_t
=no
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
12695 $as_echo "$ac_cv_type_uid_t" >&6; }
12696 if test $ac_cv_type_uid_t = no
; then
12698 $as_echo "#define uid_t int" >>confdefs.h
12701 $as_echo "#define gid_t int" >>confdefs.h
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12708 $as_echo_n "checking for ANSI C header files... " >&6; }
12709 if ${ac_cv_header_stdc+:} false
; then :
12710 $as_echo_n "(cached) " >&6
12712 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12713 /* end confdefs.h. */
12714 #include <stdlib.h>
12715 #include <stdarg.h>
12716 #include <string.h>
12727 if ac_fn_c_try_compile
"$LINENO"; then :
12728 ac_cv_header_stdc
=yes
12730 ac_cv_header_stdc
=no
12732 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12734 if test $ac_cv_header_stdc = yes; then
12735 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12736 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12737 /* end confdefs.h. */
12738 #include <string.h>
12741 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12742 $EGREP "memchr" >/dev
/null
2>&1; then :
12745 ac_cv_header_stdc
=no
12751 if test $ac_cv_header_stdc = yes; then
12752 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12753 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12754 /* end confdefs.h. */
12755 #include <stdlib.h>
12758 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12759 $EGREP "free" >/dev
/null
2>&1; then :
12762 ac_cv_header_stdc
=no
12768 if test $ac_cv_header_stdc = yes; then
12769 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12770 if test "$cross_compiling" = yes; then :
12773 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12774 /* end confdefs.h. */
12776 #include <stdlib.h>
12777 #if ((' ' & 0x0FF) == 0x020)
12778 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12779 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12781 # define ISLOWER(c) \
12782 (('a' <= (c) && (c) <= 'i') \
12783 || ('j' <= (c) && (c) <= 'r') \
12784 || ('s' <= (c) && (c) <= 'z'))
12785 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12788 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12793 for (i = 0; i < 256; i++)
12794 if (XOR (islower (i), ISLOWER (i))
12795 || toupper (i) != TOUPPER (i))
12800 if ac_fn_c_try_run
"$LINENO"; then :
12803 ac_cv_header_stdc
=no
12805 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12806 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12812 $as_echo "$ac_cv_header_stdc" >&6; }
12813 if test $ac_cv_header_stdc = yes; then
12815 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
12820 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
12822 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12823 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12824 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
12825 cat >>confdefs.h
<<_ACEOF
12826 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
12834 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
12835 if ${ac_cv_header_time+:} false
; then :
12836 $as_echo_n "(cached) " >&6
12838 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12839 /* end confdefs.h. */
12840 #include <sys/types.h>
12841 #include <sys/time.h>
12847 if ((struct tm *) 0)
12853 if ac_fn_c_try_compile
"$LINENO"; then :
12854 ac_cv_header_time
=yes
12856 ac_cv_header_time
=no
12858 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
12861 $as_echo "$ac_cv_header_time" >&6; }
12862 if test $ac_cv_header_time = yes; then
12864 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
12870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
12871 $as_echo_n "checking for library containing socket... " >&6; }
12872 if ${ac_cv_search_socket+:} false
; then :
12873 $as_echo_n "(cached) " >&6
12875 ac_func_search_save_LIBS
=$LIBS
12876 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12877 /* end confdefs.h. */
12879 /* Override any GCC internal prototype to avoid an error.
12880 Use char because int might match the return type of a GCC
12881 builtin and then its argument prototype would still apply. */
12894 for ac_lib
in '' socket
; do
12895 if test -z "$ac_lib"; then
12896 ac_res
="none required"
12899 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
12901 if ac_fn_c_try_link
"$LINENO"; then :
12902 ac_cv_search_socket
=$ac_res
12904 rm -f core conftest.err conftest.
$ac_objext \
12906 if ${ac_cv_search_socket+:} false
; then :
12910 if ${ac_cv_search_socket+:} false
; then :
12913 ac_cv_search_socket
=no
12915 rm conftest.
$ac_ext
12916 LIBS
=$ac_func_search_save_LIBS
12918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
12919 $as_echo "$ac_cv_search_socket" >&6; }
12920 ac_res
=$ac_cv_search_socket
12921 if test "$ac_res" != no
; then :
12922 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
12928 ac_fn_c_check_member
"$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "
12929 #ifdef HAVE_SYS_TYPES_H
12930 #include <sys/types.h>
12932 #ifdef HAVE_SYS_SOCKET_H
12933 #include <sys/socket.h>
12935 #ifdef HAVE_WINSOCK2_H
12936 #include <winsock2.h>
12940 if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes
; then :
12942 $as_echo "#define SOCKADDR_IN_HAS_LEN 1" >>confdefs.h
12947 ac_fn_c_check_type
"$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
12948 #include <sys/socket.h>
12950 if test "x$ac_cv_type_socklen_t" = xyes
; then :
12951 rb_cv_socklen_t
=socklen_t
12954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t equivalent" >&5
12955 $as_echo_n "checking for socklen_t equivalent... " >&6; }
12956 if ${rb_cv_socklen_t+:} false
; then :
12957 $as_echo_n "(cached) " >&6
12960 # Systems have either "struct sockaddr *" or
12961 # "void *" as the second argument to getpeername
12963 for arg2
in "struct sockaddr" void
; do
12964 for t
in int size_t unsigned long
"unsigned long"; do
12965 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12966 /* end confdefs.h. */
12968 #ifdef HAVE_SYS_TYPES_H
12969 #include <sys/types.h>
12971 #ifdef HAVE_SYS_SOCKET_H
12972 #include <sys/socket.h>
12974 #ifdef HAVE_WINSOCK2_H
12975 #include <winsock2.h>
12977 int getpeername (int, $arg2 *, $t *);
12984 getpeername(0,0,&len);
12990 if ac_fn_c_try_compile
"$LINENO"; then :
12992 rb_cv_socklen_t
="$t"
12996 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13000 if test "x$rb_cv_socklen_t" = x
; then
13001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find a type to use in place of socklen_t using int" >&5
13002 $as_echo "$as_me: WARNING: Cannot find a type to use in place of socklen_t using int" >&2;}
13003 rb_cv_socklen_t
=int
13008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_socklen_t" >&5
13009 $as_echo "$rb_cv_socklen_t" >&6; }
13013 rb_socklen_t
=$rb_cv_socklen_t
13019 # Check whether --enable-ipv6 was given.
13020 if test "${enable_ipv6+set}" = set; then :
13021 enableval
=$enable_ipv6; ipv6
=$enableval
13027 if test x
$ipv6 != xyes
; then
13033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for INET6 protocol support" >&5
13034 $as_echo_n "checking for INET6 protocol support... " >&6; }
13035 if ${rb_cv_proto_inet6+:} false
; then :
13036 $as_echo_n "(cached) " >&6
13039 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13040 /* end confdefs.h. */
13042 #include <sys/types.h>
13043 #include <sys/socket.h>
13046 #error Missing PF_INET6
13049 #error Mlssing AF_INET6
13053 if ac_fn_c_try_cpp
"$LINENO"; then :
13055 rb_cv_proto_inet6
=yes
13059 rb_cv_proto_inet6
=no
13062 rm -f conftest.err conftest.i conftest.
$ac_ext
13065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb_cv_proto_inet6" >&5
13066 $as_echo "$rb_cv_proto_inet6" >&6; }
13068 if test "X$rb_cv_proto_inet6" = "Xyes"; then :
13072 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling IPv6 support: PF_INET6 not found" >&5
13073 $as_echo "$as_me: Disabling IPv6 support: PF_INET6 not found" >&6;}
13079 if test "X$have_v6" = "Xyes"; then
13081 rb_have_sockaddr_in6
=
13082 ac_fn_c_check_type
"$LINENO" "struct sockaddr_in6" "ac_cv_type_struct_sockaddr_in6" "
13083 #include <sys/types.h>
13084 #include <sys/socket.h>
13085 #include <netinet/in.h>
13088 if test "x$ac_cv_type_struct_sockaddr_in6" = xyes
; then :
13090 cat >>confdefs.h
<<_ACEOF
13091 #define HAVE_STRUCT_SOCKADDR_IN6 1
13095 rb_have_sockaddr_in6
=yes
13099 rb_have_sockaddr_in6
=no
13104 if test "X$rb_have_sockaddr_in6" = "Xyes"; then :
13108 { $as_echo "$as_me:${as_lineno-$LINENO}: Disabling IPv6 support: struct sockaddr_in6 not found" >&5
13109 $as_echo "$as_me: Disabling IPv6 support: struct sockaddr_in6 not found" >&6;}
13118 ac_fn_c_check_type
"$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
13119 #include <sys/types.h>
13120 #include <sys/socket.h>
13123 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes
; then :
13125 cat >>confdefs.h
<<_ACEOF
13126 #define HAVE_STRUCT_SOCKADDR_STORAGE 1
13130 rb_have_sockaddr_storage
=yes
13136 ac_fn_c_check_header_mongrel
"$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
13137 if test "x$ac_cv_header_stdarg_h" = xyes
; then :
13140 as_fn_error $?
"** stdarg.h could not be found - libratbox will not compile without it **" "$LINENO" 5
13145 ac_fn_c_check_type
"$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "#include <sys/types.h>
13146 #include <sys/socket.h>
13148 if test "x$ac_cv_type_sa_family_t" = xyes
; then :
13152 $as_echo "#define sa_family_t u_int16_t" >>confdefs.h
13158 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
13160 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13161 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13162 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13163 cat >>confdefs.h
<<_ACEOF
13164 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
13172 $as_echo_n "checking for library containing nanosleep... " >&6; }
13173 if ${ac_cv_search_nanosleep+:} false
; then :
13174 $as_echo_n "(cached) " >&6
13176 ac_func_search_save_LIBS
=$LIBS
13177 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13178 /* end confdefs.h. */
13180 /* Override any GCC internal prototype to avoid an error.
13181 Use char because int might match the return type of a GCC
13182 builtin and then its argument prototype would still apply. */
13190 return nanosleep ();
13195 for ac_lib
in '' rt posix4
; do
13196 if test -z "$ac_lib"; then
13197 ac_res
="none required"
13200 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13202 if ac_fn_c_try_link
"$LINENO"; then :
13203 ac_cv_search_nanosleep
=$ac_res
13205 rm -f core conftest.err conftest.
$ac_objext \
13207 if ${ac_cv_search_nanosleep+:} false
; then :
13211 if ${ac_cv_search_nanosleep+:} false
; then :
13214 ac_cv_search_nanosleep
=no
13216 rm conftest.
$ac_ext
13217 LIBS
=$ac_func_search_save_LIBS
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
13220 $as_echo "$ac_cv_search_nanosleep" >&6; }
13221 ac_res
=$ac_cv_search_nanosleep
13222 if test "$ac_res" != no
; then :
13223 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13225 $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing timer_create" >&5
13230 $as_echo_n "checking for library containing timer_create... " >&6; }
13231 if ${ac_cv_search_timer_create+:} false
; then :
13232 $as_echo_n "(cached) " >&6
13234 ac_func_search_save_LIBS
=$LIBS
13235 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13236 /* end confdefs.h. */
13238 /* Override any GCC internal prototype to avoid an error.
13239 Use char because int might match the return type of a GCC
13240 builtin and then its argument prototype would still apply. */
13244 char timer_create ();
13248 return timer_create ();
13253 for ac_lib
in '' rt
; do
13254 if test -z "$ac_lib"; then
13255 ac_res
="none required"
13258 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13260 if ac_fn_c_try_link
"$LINENO"; then :
13261 ac_cv_search_timer_create
=$ac_res
13263 rm -f core conftest.err conftest.
$ac_objext \
13265 if ${ac_cv_search_timer_create+:} false
; then :
13269 if ${ac_cv_search_timer_create+:} false
; then :
13272 ac_cv_search_timer_create
=no
13274 rm conftest.
$ac_ext
13275 LIBS
=$ac_func_search_save_LIBS
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_timer_create" >&5
13278 $as_echo "$ac_cv_search_timer_create" >&6; }
13279 ac_res
=$ac_cv_search_timer_create
13280 if test "$ac_res" != no
; then :
13281 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13283 $as_echo "#define HAVE_TIMER_CREATE 1" >>confdefs.h
13287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working timer_create(CLOCK_REALTIME)" >&5
13288 $as_echo_n "checking for a working timer_create(CLOCK_REALTIME)... " >&6; }
13289 if ${rb__cv_timer_create_works+:} false
; then :
13290 $as_echo_n "(cached) " >&6
13292 if test "$cross_compiling" = yes; then :
13293 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13294 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13295 as_fn_error $?
"cannot run test program while cross compiling
13296 See \`config.log' for more details" "$LINENO" 5; }
13298 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13299 /* end confdefs.h. */
13304 #ifdef HAVE_SIGNAL_H
13305 #include <signal.h>
13307 #ifdef HAVE_UNISTD_H
13308 #include <unistd.h>
13310 int main(int argc, char *argv[])
13312 #if HAVE_TIMER_CREATE
13313 struct sigevent ev;
13315 ev.sigev_notify = SIGEV_SIGNAL;
13316 ev.sigev_signo = SIGVTALRM;
13317 if (timer_create(CLOCK_REALTIME, &ev, &timer) != 0) {
13327 if ac_fn_c_try_run
"$LINENO"; then :
13328 rb__cv_timer_create_works
=yes
13330 rb__cv_timer_create_works
=no
13332 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13333 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb__cv_timer_create_works" >&5
13339 $as_echo "$rb__cv_timer_create_works" >&6; }
13340 case $rb__cv_timer_create_works in
13342 $as_echo "#define USE_TIMER_CREATE 1" >>confdefs.h
13346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working timerfd_create(CLOCK_REALTIME)" >&5
13347 $as_echo_n "checking for a working timerfd_create(CLOCK_REALTIME)... " >&6; }
13348 if ${rb__cv_timerfd_create_works+:} false
; then :
13349 $as_echo_n "(cached) " >&6
13351 if test "$cross_compiling" = yes; then :
13352 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13353 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13354 as_fn_error $?
"cannot run test program while cross compiling
13355 See \`config.log' for more details" "$LINENO" 5; }
13357 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13358 /* end confdefs.h. */
13363 #ifdef HAVE_SIGNAL_H
13364 #include <signal.h>
13366 #ifdef HAVE_UNISTD_H
13367 #include <unistd.h>
13369 #ifdef HAVE_SYS_TIMERFD_H
13370 #include <sys/timerfd.h>
13372 int main(int argc, char *argv[])
13374 #if defined(HAVE_TIMERFD_CREATE) && defined(HAVE_SYS_TIMERFD_H)
13375 if (timerfd_create(CLOCK_REALTIME, 0) < 0) {
13385 if ac_fn_c_try_run
"$LINENO"; then :
13386 rb__cv_timerfd_create_works
=yes
13388 rb__cv_timerfd_create_works
=no
13390 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13391 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $rb__cv_timerfd_create_works" >&5
13397 $as_echo "$rb__cv_timerfd_create_works" >&6; }
13398 case $rb__cv_timerfd_create_works in
13400 $as_echo "#define USE_TIMERFD_CREATE 1" >>confdefs.h
13405 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13406 # for constant arguments. Useless!
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
13408 $as_echo_n "checking for working alloca.h... " >&6; }
13409 if ${ac_cv_working_alloca_h+:} false
; then :
13410 $as_echo_n "(cached) " >&6
13412 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13413 /* end confdefs.h. */
13414 #include <alloca.h>
13418 char *p = (char *) alloca (2 * sizeof (int));
13424 if ac_fn_c_try_link
"$LINENO"; then :
13425 ac_cv_working_alloca_h
=yes
13427 ac_cv_working_alloca_h
=no
13429 rm -f core conftest.err conftest.
$ac_objext \
13430 conftest
$ac_exeext conftest.
$ac_ext
13432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
13433 $as_echo "$ac_cv_working_alloca_h" >&6; }
13434 if test $ac_cv_working_alloca_h = yes; then
13436 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
13441 $as_echo_n "checking for alloca... " >&6; }
13442 if ${ac_cv_func_alloca_works+:} false
; then :
13443 $as_echo_n "(cached) " >&6
13445 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13446 /* end confdefs.h. */
13448 # define alloca __builtin_alloca
13451 # include <malloc.h>
13452 # define alloca _alloca
13454 # ifdef HAVE_ALLOCA_H
13455 # include <alloca.h>
13460 # ifndef alloca /* predefined by HP cc +Olibcalls */
13461 void *alloca (size_t);
13471 char *p = (char *) alloca (1);
13477 if ac_fn_c_try_link
"$LINENO"; then :
13478 ac_cv_func_alloca_works
=yes
13480 ac_cv_func_alloca_works
=no
13482 rm -f core conftest.err conftest.
$ac_objext \
13483 conftest
$ac_exeext conftest.
$ac_ext
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
13486 $as_echo "$ac_cv_func_alloca_works" >&6; }
13488 if test $ac_cv_func_alloca_works = yes; then
13490 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
13493 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13494 # that cause trouble. Some versions do not even contain alloca or
13495 # contain a buggy version. If you still want to use their alloca,
13496 # use ar to extract alloca.o from them instead of compiling alloca.c.
13498 ALLOCA
=\
${LIBOBJDIR}alloca.
$ac_objext
13500 $as_echo "#define C_ALLOCA 1" >>confdefs.h
13503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
13504 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
13505 if ${ac_cv_os_cray+:} false
; then :
13506 $as_echo_n "(cached) " >&6
13508 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13509 /* end confdefs.h. */
13510 #if defined CRAY && ! defined CRAY2
13517 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13518 $EGREP "webecray" >/dev
/null
2>&1; then :
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
13527 $as_echo "$ac_cv_os_cray" >&6; }
13528 if test $ac_cv_os_cray = yes; then
13529 for ac_func
in _getb67 GETB67 getb67
; do
13530 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13531 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13532 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13534 cat >>confdefs.h
<<_ACEOF
13535 #define CRAY_STACKSEG_END $ac_func
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
13545 $as_echo_n "checking stack direction for C alloca... " >&6; }
13546 if ${ac_cv_c_stack_direction+:} false
; then :
13547 $as_echo_n "(cached) " >&6
13549 if test "$cross_compiling" = yes; then :
13550 ac_cv_c_stack_direction
=0
13552 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13553 /* end confdefs.h. */
13554 $ac_includes_default
13556 find_stack_direction ()
13558 static char *addr = 0;
13563 return find_stack_direction ();
13566 return (&dummy > addr) ? 1 : -1;
13572 return find_stack_direction () < 0;
13575 if ac_fn_c_try_run
"$LINENO"; then :
13576 ac_cv_c_stack_direction
=1
13578 ac_cv_c_stack_direction
=-1
13580 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13581 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
13586 $as_echo "$ac_cv_c_stack_direction" >&6; }
13587 cat >>confdefs.h
<<_ACEOF
13588 #define STACK_DIRECTION $ac_cv_c_stack_direction
13594 for ac_header
in vfork.h
13596 ac_fn_c_check_header_mongrel
"$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
13597 if test "x$ac_cv_header_vfork_h" = xyes
; then :
13598 cat >>confdefs.h
<<_ACEOF
13599 #define HAVE_VFORK_H 1
13606 for ac_func
in fork vfork
13608 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13609 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
13610 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
13611 cat >>confdefs.h
<<_ACEOF
13612 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13618 if test "x$ac_cv_func_fork" = xyes
; then
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
13620 $as_echo_n "checking for working fork... " >&6; }
13621 if ${ac_cv_func_fork_works+:} false
; then :
13622 $as_echo_n "(cached) " >&6
13624 if test "$cross_compiling" = yes; then :
13625 ac_cv_func_fork_works
=cross
13627 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13628 /* end confdefs.h. */
13629 $ac_includes_default
13634 /* By Ruediger Kuhlmann. */
13635 return fork () < 0;
13641 if ac_fn_c_try_run
"$LINENO"; then :
13642 ac_cv_func_fork_works
=yes
13644 ac_cv_func_fork_works
=no
13646 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13647 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
13652 $as_echo "$ac_cv_func_fork_works" >&6; }
13655 ac_cv_func_fork_works
=$ac_cv_func_fork
13657 if test "x$ac_cv_func_fork_works" = xcross
; then
13659 *-*-amigaos* | *-*-msdosdjgpp*)
13660 # Override, as these systems have only a dummy fork() stub
13661 ac_cv_func_fork_works
=no
13664 ac_cv_func_fork_works
=yes
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
13668 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
13670 ac_cv_func_vfork_works
=$ac_cv_func_vfork
13671 if test "x$ac_cv_func_vfork" = xyes
; then
13672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
13673 $as_echo_n "checking for working vfork... " >&6; }
13674 if ${ac_cv_func_vfork_works+:} false
; then :
13675 $as_echo_n "(cached) " >&6
13677 if test "$cross_compiling" = yes; then :
13678 ac_cv_func_vfork_works
=cross
13680 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13681 /* end confdefs.h. */
13682 /* Thanks to Paul Eggert for this test. */
13683 $ac_includes_default
13684 #include <sys/wait.h>
13685 #ifdef HAVE_VFORK_H
13686 # include <vfork.h>
13688 /* On some sparc systems, changes by the child to local and incoming
13689 argument registers are propagated back to the parent. The compiler
13690 is told about this with #include <vfork.h>, but some compilers
13691 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
13692 static variable whose address is put into a register that is
13693 clobbered by the vfork. */
13696 sparc_address_test (int arg)
13698 sparc_address_test (arg) int arg;
13701 static pid_t child;
13719 pid_t parent = getpid ();
13722 sparc_address_test (0);
13727 /* Here is another test for sparc vfork register problems. This
13728 test uses lots of local variables, at least as many local
13729 variables as main has allocated so far including compiler
13730 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
13731 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
13732 reuse the register of parent for one of the local variables,
13733 since it will think that parent can't possibly be used any more
13734 in this routine. Assigning to the local variable will thus
13735 munge parent in the parent process. */
13737 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
13738 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
13739 /* Convince the compiler that p..p7 are live; otherwise, it might
13740 use the same hardware register for all 8 local variables. */
13741 if (p != p1 || p != p2 || p != p3 || p != p4
13742 || p != p5 || p != p6 || p != p7)
13745 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
13746 from child file descriptors. If the child closes a descriptor
13747 before it execs or exits, this munges the parent's descriptor
13748 as well. Test for this by closing stdout in the child. */
13749 _exit(close(fileno(stdout)) != 0);
13754 while (wait(&status) != child)
13757 /* Was there some problem with vforking? */
13760 /* Did the child fail? (This shouldn't happen.) */
13763 /* Did the vfork/compiler bug occur? */
13764 || parent != getpid()
13766 /* Did the file descriptor bug occur? */
13767 || fstat(fileno(stdout), &st) != 0
13772 if ac_fn_c_try_run
"$LINENO"; then :
13773 ac_cv_func_vfork_works
=yes
13775 ac_cv_func_vfork_works
=no
13777 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13778 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
13783 $as_echo "$ac_cv_func_vfork_works" >&6; }
13786 if test "x$ac_cv_func_fork_works" = xcross
; then
13787 ac_cv_func_vfork_works
=$ac_cv_func_vfork
13788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
13789 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
13792 if test "x$ac_cv_func_vfork_works" = xyes
; then
13794 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
13798 $as_echo "#define vfork fork" >>confdefs.h
13801 if test "x$ac_cv_func_fork_works" = xyes
; then
13803 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
13810 for ac_header
in $ac_header_list
13812 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13813 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
13815 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
13816 cat >>confdefs.h
<<_ACEOF
13817 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13831 for ac_func
in getpagesize
13833 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
13834 if test "x$ac_cv_func_getpagesize" = xyes
; then :
13835 cat >>confdefs.h
<<_ACEOF
13836 #define HAVE_GETPAGESIZE 1
13842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
13843 $as_echo_n "checking for working mmap... " >&6; }
13844 if ${ac_cv_func_mmap_fixed_mapped+:} false
; then :
13845 $as_echo_n "(cached) " >&6
13847 if test "$cross_compiling" = yes; then :
13848 ac_cv_func_mmap_fixed_mapped
=no
13850 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13851 /* end confdefs.h. */
13852 $ac_includes_default
13853 /* malloc might have been renamed as rpl_malloc. */
13856 /* Thanks to Mike Haertel and Jim Avera for this test.
13857 Here is a matrix of mmap possibilities:
13858 mmap private not fixed
13859 mmap private fixed at somewhere currently unmapped
13860 mmap private fixed at somewhere already mapped
13861 mmap shared not fixed
13862 mmap shared fixed at somewhere currently unmapped
13863 mmap shared fixed at somewhere already mapped
13864 For private mappings, we should verify that changes cannot be read()
13865 back from the file, nor mmap's back from the file at a different
13866 address. (There have been systems where private was not correctly
13867 implemented like the infamous i386 svr4.0, and systems where the
13868 VM page cache was not coherent with the file system buffer cache
13869 like early versions of FreeBSD and possibly contemporary NetBSD.)
13870 For shared mappings, we should conversely verify that changes get
13871 propagated back to all the places they're supposed to be.
13873 Grep wants private fixed already mapped.
13874 The main things grep needs to know about mmap are:
13875 * does it exist and is it safe to write into the mmap'd area
13876 * how to use it (BSD variants) */
13879 #include <sys/mman.h>
13881 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
13885 /* This mess was copied from the GNU getpagesize.h. */
13886 #ifndef HAVE_GETPAGESIZE
13887 # ifdef _SC_PAGESIZE
13888 # define getpagesize() sysconf(_SC_PAGESIZE)
13889 # else /* no _SC_PAGESIZE */
13890 # ifdef HAVE_SYS_PARAM_H
13891 # include <sys/param.h>
13892 # ifdef EXEC_PAGESIZE
13893 # define getpagesize() EXEC_PAGESIZE
13894 # else /* no EXEC_PAGESIZE */
13896 # define getpagesize() NBPG * CLSIZE
13899 # endif /* no CLSIZE */
13900 # else /* no NBPG */
13902 # define getpagesize() NBPC
13903 # else /* no NBPC */
13905 # define getpagesize() PAGESIZE
13906 # endif /* PAGESIZE */
13907 # endif /* no NBPC */
13908 # endif /* no NBPG */
13909 # endif /* no EXEC_PAGESIZE */
13910 # else /* no HAVE_SYS_PARAM_H */
13911 # define getpagesize() 8192 /* punt totally */
13912 # endif /* no HAVE_SYS_PARAM_H */
13913 # endif /* no _SC_PAGESIZE */
13915 #endif /* no HAVE_GETPAGESIZE */
13920 char *data, *data2, *data3;
13921 const char *cdata2;
13925 pagesize = getpagesize ();
13927 /* First, make a file with some known garbage in it. */
13928 data = (char *) malloc (pagesize);
13931 for (i = 0; i < pagesize; ++i)
13932 *(data + i) = rand ();
13934 fd = creat ("conftest.mmap", 0600);
13937 if (write (fd, data, pagesize) != pagesize)
13941 /* Next, check that the tail of a page is zero-filled. File must have
13942 non-zero length, otherwise we risk SIGBUS for entire page. */
13943 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
13947 if (write (fd2, cdata2, 1) != 1)
13949 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
13950 if (data2 == MAP_FAILED)
13952 for (i = 0; i < pagesize; ++i)
13956 if (munmap (data2, pagesize))
13959 /* Next, try to mmap the file at a fixed address which already has
13960 something else allocated at it. If we can, also make sure that
13961 we see the same garbage. */
13962 fd = open ("conftest.mmap", O_RDWR);
13965 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
13966 MAP_PRIVATE | MAP_FIXED, fd, 0L))
13968 for (i = 0; i < pagesize; ++i)
13969 if (*(data + i) != *(data2 + i))
13972 /* Finally, make sure that changes to the mapped area do not
13973 percolate back to the file as seen by read(). (This is a bug on
13974 some variants of i386 svr4.0.) */
13975 for (i = 0; i < pagesize; ++i)
13976 *(data2 + i) = *(data2 + i) + 1;
13977 data3 = (char *) malloc (pagesize);
13980 if (read (fd, data3, pagesize) != pagesize)
13982 for (i = 0; i < pagesize; ++i)
13983 if (*(data + i) != *(data3 + i))
13989 if ac_fn_c_try_run
"$LINENO"; then :
13990 ac_cv_func_mmap_fixed_mapped
=yes
13992 ac_cv_func_mmap_fixed_mapped
=no
13994 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
13995 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
13999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
14000 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
14001 if test $ac_cv_func_mmap_fixed_mapped = yes; then
14003 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
14006 rm -f conftest.mmap conftest.txt
14009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /dev/poll" >&5
14010 $as_echo_n "checking for /dev/poll... " >&6; }
14011 if test -c "/dev/poll"; then
14012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14013 $as_echo "yes" >&6; }
14015 $as_echo "#define HAVE_DEVPOLL 1" >>confdefs.h
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14019 $as_echo "no" >&6; }
14023 if test "$is_mingw" = "yes"; then
14025 $as_echo "#define HAVE_WIN32 1" >>confdefs.h
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL" >&5
14031 $as_echo_n "checking for OpenSSL... " >&6; }
14032 # Check whether --enable-openssl was given.
14033 if test "${enable_openssl+set}" = set; then :
14034 enableval
=$enable_openssl; cf_enable_openssl
=$enableval
14036 cf_enable_openssl
="auto"
14040 if test "$cf_enable_openssl" != "no" ; then
14041 cf_openssl_basedir
=""
14042 if test "$cf_enable_openssl" != "auto" &&
14043 test "$cf_enable_openssl" != "yes" ; then
14044 cf_openssl_basedir
="`echo ${cf_enable_openssl} | sed 's/\/$//'`"
14046 for dirs in /usr
/local
/ssl
/usr
/pkg
/usr
/local \
14047 /usr
/local
/openssl
; do
14048 if test -f "${dirs}/include/openssl/opensslv.h" ; then
14049 cf_openssl_basedir
="${dirs}"
14055 if test ! -z "$cf_openssl_basedir"; then
14056 if test -f "${cf_openssl_basedir}/include/openssl/opensslv.h" ; then
14057 SSL_CFLAGS
="-I${cf_openssl_basedir}/include"
14058 SSL_LIBS
="-L${cf_openssl_basedir}/lib"
14060 cf_openssl_basedir
=""
14063 if test -f "/usr/include/openssl/opensslv.h" ; then
14064 cf_openssl_basedir
="/usr"
14068 if test ! -z "$cf_openssl_basedir"; then
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cf_openssl_basedir" >&5
14070 $as_echo "$cf_openssl_basedir" >&6; }
14071 cf_enable_openssl
="yes"
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found. Specify a correct path?" >&5
14074 $as_echo "not found. Specify a correct path?" >&6; }
14075 cf_enable_openssl
="no"
14077 unset cf_openssl_basedir
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
14080 $as_echo "disabled" >&6; }
14083 save_CPPFLAGS
="$CPPFLAGS"
14084 CPPFLAGS
="$CPPFLAGS $SSL_CFLAGS"
14086 LIBS
="$LIBS $SSL_LIBS"
14087 if test "$cf_enable_openssl" != no
; then
14088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL 0.9.7 or above" >&5
14089 $as_echo_n "checking for OpenSSL 0.9.7 or above... " >&6; }
14090 if test "$cross_compiling" = yes; then :
14091 cf_enable_openssl
=no
14093 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14094 /* end confdefs.h. */
14095 #include <openssl/opensslv.h>
14096 #include <stdlib.h>
14100 if (OPENSSL_VERSION_NUMBER >= 0x00907000)
14101 exit(0); else exit(1);
14106 if ac_fn_c_try_run
"$LINENO"; then :
14107 cf_enable_openssl
=yes
14109 cf_enable_openssl
=no
14111 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14112 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14116 if test "$cf_enable_openssl" != no
; then
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
14118 $as_echo "found" >&6; }
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - OpenSSL support disabled" >&5
14121 $as_echo "no - OpenSSL support disabled" >&6; }
14127 if test "$cf_enable_openssl" != no
; then
14128 CPPFLAGS
="$CPPFLAGS $SSL_LIBS"
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RAND_status in -lcrypto" >&5
14130 $as_echo_n "checking for RAND_status in -lcrypto... " >&6; }
14131 if ${ac_cv_lib_crypto_RAND_status+:} false
; then :
14132 $as_echo_n "(cached) " >&6
14134 ac_check_lib_save_LIBS
=$LIBS
14135 LIBS
="-lcrypto $LIBS"
14136 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14137 /* end confdefs.h. */
14139 /* Override any GCC internal prototype to avoid an error.
14140 Use char because int might match the return type of a GCC
14141 builtin and then its argument prototype would still apply. */
14145 char RAND_status ();
14149 return RAND_status ();
14154 if ac_fn_c_try_link
"$LINENO"; then :
14155 ac_cv_lib_crypto_RAND_status
=yes
14157 ac_cv_lib_crypto_RAND_status
=no
14159 rm -f core conftest.err conftest.
$ac_objext \
14160 conftest
$ac_exeext conftest.
$ac_ext
14161 LIBS
=$ac_check_lib_save_LIBS
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RAND_status" >&5
14164 $as_echo "$ac_cv_lib_crypto_RAND_status" >&6; }
14165 if test "x$ac_cv_lib_crypto_RAND_status" = xyes
; then :
14166 cf_enable_openssl
=yes
14168 cf_enable_openssl
=no
14173 if test "$cf_enable_openssl" != no
; then
14174 CPPFLAGS
="$CPPFLAGS $SSL_LIBS"
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_read in -lssl" >&5
14176 $as_echo_n "checking for SSL_read in -lssl... " >&6; }
14177 if ${ac_cv_lib_ssl_SSL_read+:} false
; then :
14178 $as_echo_n "(cached) " >&6
14180 ac_check_lib_save_LIBS
=$LIBS
14181 LIBS
="-lssl -lcrypto $LIBS"
14182 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14183 /* end confdefs.h. */
14185 /* Override any GCC internal prototype to avoid an error.
14186 Use char because int might match the return type of a GCC
14187 builtin and then its argument prototype would still apply. */
14195 return SSL_read ();
14200 if ac_fn_c_try_link
"$LINENO"; then :
14201 ac_cv_lib_ssl_SSL_read
=yes
14203 ac_cv_lib_ssl_SSL_read
=no
14205 rm -f core conftest.err conftest.
$ac_objext \
14206 conftest
$ac_exeext conftest.
$ac_ext
14207 LIBS
=$ac_check_lib_save_LIBS
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_read" >&5
14210 $as_echo "$ac_cv_lib_ssl_SSL_read" >&6; }
14211 if test "x$ac_cv_lib_ssl_SSL_read" = xyes
; then :
14212 SSL_LIBS
="$SSL_LIBS -lssl -lcrypto"
14214 cf_enable_openssl
=no
14221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GnuTLS" >&5
14222 $as_echo_n "checking for GnuTLS... " >&6; }
14223 # Check whether --enable-gnutls was given.
14224 if test "${enable_gnutls+set}" = set; then :
14225 enableval
=$enable_gnutls; cf_enable_gnutls
=$enableval
14227 cf_enable_gnutls
="auto"
14231 if test "$cf_enable_gnutls" != no
; then
14234 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
14235 if test -n "$ac_tool_prefix"; then
14236 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
14237 set dummy
${ac_tool_prefix}pkg
-config; ac_word
=$2
14238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14239 $as_echo_n "checking for $ac_word... " >&6; }
14240 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
14241 $as_echo_n "(cached) " >&6
14243 case $PKG_CONFIG in
14245 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
14248 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14249 for as_dir
in $PATH
14252 test -z "$as_dir" && as_dir
=.
14253 for ac_exec_ext
in '' $ac_executable_extensions; do
14254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14255 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
14256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14266 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
14267 if test -n "$PKG_CONFIG"; then
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14269 $as_echo "$PKG_CONFIG" >&6; }
14271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14272 $as_echo "no" >&6; }
14277 if test -z "$ac_cv_path_PKG_CONFIG"; then
14278 ac_pt_PKG_CONFIG
=$PKG_CONFIG
14279 # Extract the first word of "pkg-config", so it can be a program name with args.
14280 set dummy pkg
-config; ac_word
=$2
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14282 $as_echo_n "checking for $ac_word... " >&6; }
14283 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false
; then :
14284 $as_echo_n "(cached) " >&6
14286 case $ac_pt_PKG_CONFIG in
14288 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
14291 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14292 for as_dir
in $PATH
14295 test -z "$as_dir" && as_dir
=.
14296 for ac_exec_ext
in '' $ac_executable_extensions; do
14297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14298 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
14299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14309 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
14310 if test -n "$ac_pt_PKG_CONFIG"; then
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
14312 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
14314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14315 $as_echo "no" >&6; }
14318 if test "x$ac_pt_PKG_CONFIG" = x
; then
14321 case $cross_compiling:$ac_tool_warned in
14323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14324 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14325 ac_tool_warned
=yes ;;
14327 PKG_CONFIG
=$ac_pt_PKG_CONFIG
14330 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
14334 if test -n "$PKG_CONFIG"; then
14335 _pkg_min_version
=0.9.0
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
14337 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
14338 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14340 $as_echo "yes" >&6; }
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14343 $as_echo "no" >&6; }
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNUTLS" >&5
14351 $as_echo_n "checking for GNUTLS... " >&6; }
14353 if test -n "$GNUTLS_CFLAGS"; then
14354 pkg_cv_GNUTLS_CFLAGS
="$GNUTLS_CFLAGS"
14355 elif test -n "$PKG_CONFIG"; then
14356 if test -n "$PKG_CONFIG" && \
14357 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls\""; } >&5
14358 ($PKG_CONFIG --exists --print-errors "gnutls") 2>&5
14360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14361 test $ac_status = 0; }; then
14362 pkg_cv_GNUTLS_CFLAGS
=`$PKG_CONFIG --cflags "gnutls" 2>/dev/null`
14369 if test -n "$GNUTLS_LIBS"; then
14370 pkg_cv_GNUTLS_LIBS
="$GNUTLS_LIBS"
14371 elif test -n "$PKG_CONFIG"; then
14372 if test -n "$PKG_CONFIG" && \
14373 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls\""; } >&5
14374 ($PKG_CONFIG --exists --print-errors "gnutls") 2>&5
14376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14377 test $ac_status = 0; }; then
14378 pkg_cv_GNUTLS_LIBS
=`$PKG_CONFIG --libs "gnutls" 2>/dev/null`
14388 if test $pkg_failed = yes; then
14390 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14391 _pkg_short_errors_supported
=yes
14393 _pkg_short_errors_supported
=no
14395 if test $_pkg_short_errors_supported = yes; then
14396 GNUTLS_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors "gnutls" 2>&1`
14398 GNUTLS_PKG_ERRORS
=`$PKG_CONFIG --print-errors "gnutls" 2>&1`
14400 # Put the nasty error message in config.log where it belongs
14401 echo "$GNUTLS_PKG_ERRORS" >&5
14403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14404 $as_echo "no" >&6; }
14405 cf_enable_gnutls
="no"
14406 elif test $pkg_failed = untried
; then
14407 cf_enable_gnutls
="no"
14409 GNUTLS_CFLAGS
=$pkg_cv_GNUTLS_CFLAGS
14410 GNUTLS_LIBS
=$pkg_cv_GNUTLS_LIBS
14411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14412 $as_echo "yes" >&6; }
14414 cf_enable_gnutls
="yes"
14419 if test "$cf_enable_gnutls" = "auto" -a "$cf_enable_openssl" = "yes"; then
14420 cf_enable_gnutls
="no"
14423 if test x
"$cf_enable_openssl" != xno
; then
14425 $as_echo "#define HAVE_OPENSSL 1" >>confdefs.h
14430 elif test x
"$cf_enable_gnutls" != xno
; then
14432 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
14442 CPPFLAGS
="$save_CPPFLAGS"
14450 # Check whether --enable-assert was given.
14451 if test "${enable_assert+set}" = set; then :
14452 enableval
=$enable_assert; assert
=$enableval
14458 if test "$assert" = no
; then
14460 $as_echo "#define NDEBUG 1" >>confdefs.h
14462 elif test "$assert" = soft
; then
14464 $as_echo "#define SOFT_ASSERT 1" >>confdefs.h
14467 $as_echo "#define NDEBUG 1" >>confdefs.h
14469 elif test "$assert" = yes; then
14473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if you want to do a profile build" >&5
14474 $as_echo_n "checking if you want to do a profile build... " >&6; }
14475 # Check whether --enable-profile was given.
14476 if test "${enable_profile+set}" = set; then :
14477 enableval
=$enable_profile; profile
=$enableval
14483 if test "$profile" = yes; then
14484 if test "$ac_cv_c_compiler_gnu" = yes; then
14485 CFLAGS
="$CFLAGS -pg -static"
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, adding -pg -static" >&5
14487 $as_echo "yes, adding -pg -static" >&6; }
14489 $as_echo "#define RATBOX_PROFILE 1" >>confdefs.h
14492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, profile builds only work with gcc" >&5
14493 $as_echo "no, profile builds only work with gcc" >&6; }
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14497 $as_echo "no" >&6; }
14500 # Check whether --enable-balloc was given.
14501 if test "${enable_balloc+set}" = set; then :
14502 enableval
=$enable_balloc; balloc
=$enableval
14508 if test "$balloc" = no
; then
14510 $as_echo "#define NOBALLOC 1" >>confdefs.h
14514 # Check whether --enable-warnings was given.
14515 if test "${enable_warnings+set}" = set; then :
14516 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"
14529 if test "$prefix" = "NONE"; then
14531 cat >>confdefs.h
<<_ACEOF
14532 #define RB_PREFIX "$ac_default_prefix"
14539 prefix
=`echo $prefix | sed 's/\/$//'`
14541 cat >>confdefs.h
<<_ACEOF
14542 #define RB_PREFIX "$prefix"
14550 ac_config_commands
="$ac_config_commands include/librb-config.h"
14554 ac_config_files
="$ac_config_files src/Makefile Makefile libratbox.pc"
14557 cat >confcache
<<\_ACEOF
14558 # This file is a shell script that caches the results of configure
14559 # tests run on this system so they can be shared between configure
14560 # scripts and configure runs, see configure's option --config-cache.
14561 # It is not useful on other systems. If it contains results you don't
14562 # want to keep, you may remove or edit it.
14564 # config.status only pays attention to the cache file if you give it
14565 # the --recheck option to rerun configure.
14567 # `ac_cv_env_foo' variables (set or unset) will be overridden when
14568 # loading this file, other *unset* `ac_cv_foo' will be assigned the
14569 # following values.
14573 # The following way of writing the cache mishandles newlines in values,
14574 # but we know of no workaround that is simple, portable, and efficient.
14575 # So, we kill variables containing newlines.
14576 # Ultrix sh set writes to stderr and can't be redirected directly,
14577 # and sets the high bit in the cache file unless we assign to the vars.
14579 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14580 eval ac_val
=\$
$ac_var
14584 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14585 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14588 _
| IFS
| as_nl
) ;; #(
14589 BASH_ARGV
| BASH_SOURCE
) eval $ac_var= ;; #(
14590 *) { eval $ac_var=; unset $ac_var;} ;;
14596 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14597 *${as_nl}ac_space
=\
*)
14598 # `set' does not quote correctly, so add quotes: double-quote
14599 # substitution turns \\\\ into \\, and sed turns \\ into \.
14602 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14605 # `set' quotes correctly as required by POSIX, so do not add quotes.
14606 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14615 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14617 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14619 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
14620 if test -w "$cache_file"; then
14621 if test "x$cache_file" != "x/dev/null"; then
14622 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
14623 $as_echo "$as_me: updating cache $cache_file" >&6;}
14624 if test ! -f "$cache_file" || test -h "$cache_file"; then
14625 cat confcache
>"$cache_file"
14627 case $cache_file in #(
14629 mv -f confcache
"$cache_file"$$
&&
14630 mv -f "$cache_file"$$
"$cache_file" ;; #(
14632 mv -f confcache
"$cache_file" ;;
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
14638 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
14643 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
14644 # Let make expand exec_prefix.
14645 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
14647 DEFS
=-DHAVE_CONFIG_H
14652 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
14653 # 1. Remove the extension, and $U if already installed.
14654 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
14655 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
14656 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14657 # will be set to the directory where LIBOBJS objects are built.
14658 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14659 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
14661 LIBOBJS
=$ac_libobjs
14663 LTLIBOBJS
=$ac_ltlibobjs
14666 if test -n "$EXEEXT"; then
14668 am__EXEEXT_FALSE
='#'
14670 am__EXEEXT_TRUE
='#'
14674 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
14675 as_fn_error $?
"conditional \"AMDEP\" was never defined.
14676 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14678 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
14679 as_fn_error $?
"conditional \"am__fastdepCC\" was never defined.
14680 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14682 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
14683 as_fn_error $?
"conditional \"MAINTAINER_MODE\" was never defined.
14684 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14687 if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
14688 as_fn_error $?
"conditional \"MINGW\" was never defined.
14689 Usually this means the macro was only invoked conditionally." "$LINENO" 5
14692 : "${CONFIG_STATUS=./config.status}"
14694 ac_clean_files_save
=$ac_clean_files
14695 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
14696 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
14697 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14699 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14701 # Generated by $as_me.
14702 # Run this file to recreate the current configuration.
14703 # Compiler output produced by configure, useful for debugging
14704 # configure, is in config.log if it exists.
14707 ac_cs_recheck=false
14710 SHELL=\${CONFIG_SHELL-$SHELL}
14713 cat >>$CONFIG_STATUS <<\_ASEOF
|| as_write_fail
=1
14714 ## -------------------- ##
14715 ## M4sh Initialization. ##
14716 ## -------------------- ##
14718 # Be more Bourne compatible
14719 DUALCASE
=1; export DUALCASE
# for MKS sh
14720 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
14723 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14724 # is contrary to our usage. Disable this feature.
14725 alias -g '${1+"$@"}'='"$@"'
14726 setopt NO_GLOB_SUBST
14728 case `(set -o) 2>/dev/null` in #(
14740 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14741 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14742 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14743 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14744 # Prefer a ksh shell builtin over an external printf program on Solaris,
14745 # but without wasting forks for bash or zsh.
14746 if test -z "$BASH_VERSION$ZSH_VERSION" \
14747 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14748 as_echo='print
-r --'
14749 as_echo_n='print
-rn --'
14750 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14751 as_echo='printf %s
\n'
14752 as_echo_n='printf %s
'
14754 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14755 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
14756 as_echo_n='/usr
/ucb
/echo -n'
14758 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14759 as_echo_n_body='eval
14763 expr "X$arg" : "X\\(.*\\)$as_nl";
14764 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14766 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14768 export as_echo_n_body
14769 as_echo_n='sh
-c $as_echo_n_body as_echo
'
14771 export as_echo_body
14772 as_echo='sh
-c $as_echo_body as_echo
'
14775 # The user is always right.
14776 if test "${PATH_SEPARATOR+set}" != set; then
14778 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14779 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14786 # We need space, tab and new line, in precisely that order. Quoting is
14787 # there to prevent editors from complaining about space-tab.
14788 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14789 # splitting by setting IFS to empty value.)
14792 # Find who we are. Look in the path if we contain no directory separator.
14795 *[\\/]* ) as_myself=$0 ;;
14796 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14797 for as_dir in $PATH
14800 test -z "$as_dir" && as_dir=.
14801 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14807 # We did not find ourselves, most probably we were run as `sh COMMAND'
14808 # in which case we are not to be found in the path.
14809 if test "x$as_myself" = x
; then
14812 if test ! -f "$as_myself"; then
14813 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14817 # Unset variables that we do not need and which cause bugs (e.g. in
14818 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14819 # suppresses any "Segmentation fault" message there. '((' could
14820 # trigger a bug in pdksh 5.2.14.
14821 for as_var
in BASH_ENV ENV MAIL MAILPATH
14822 do eval test x\
${$as_var+set} = xset \
14823 && ( (unset $as_var) || exit 1) >/dev
/null
2>&1 && unset $as_var || :
14836 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
14839 # as_fn_error STATUS ERROR [LINENO LOG_FD]
14840 # ----------------------------------------
14841 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14842 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14843 # script with STATUS, using 1 if that was 0.
14846 as_status
=$1; test $as_status -eq 0 && as_status
=1
14848 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
14849 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
14851 $as_echo "$as_me: error: $2" >&2
14852 as_fn_exit
$as_status
14856 # as_fn_set_status STATUS
14857 # -----------------------
14858 # Set $? to STATUS, without forking.
14859 as_fn_set_status
()
14862 } # as_fn_set_status
14864 # as_fn_exit STATUS
14865 # -----------------
14866 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14870 as_fn_set_status
$1
14876 # Portably unset VAR.
14879 { eval $1=; unset $1;}
14881 as_unset
=as_fn_unset
14882 # as_fn_append VAR VALUE
14883 # ----------------------
14884 # Append the text in VALUE to the end of the definition contained in VAR. Take
14885 # advantage of any shell optimizations that allow amortized linear growth over
14886 # repeated appends, instead of the typical quadratic growth present in naive
14888 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
14889 eval 'as_fn_append ()
14900 # as_fn_arith ARG...
14901 # ------------------
14902 # Perform arithmetic evaluation on the ARGs, and store the result in the
14903 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14904 # must be portable across $(()) and expr.
14905 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
14906 eval 'as_fn_arith ()
14913 as_val
=`expr "$@" || test $? -eq 1`
14918 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
14919 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
14925 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14926 as_basename
=basename
14931 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
14937 as_me
=`$as_basename -- "$0" ||
14938 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14939 X"$0" : 'X\(//\)$' \| \
14940 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14942 sed '/^.*\/\([^/][^/]*\)\/*$/{
14956 # Avoid depending upon Character Ranges.
14957 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
14958 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14959 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
14960 as_cr_digits
='0123456789'
14961 as_cr_alnum
=$as_cr_Letters$as_cr_digits
14963 ECHO_C
= ECHO_N
= ECHO_T
=
14964 case `echo -n x` in #(((((
14966 case `echo 'xy\c'` in
14967 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
14969 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
14976 rm -f conf$$ conf$$.exe conf$$.
file
14977 if test -d conf$$.dir
; then
14978 rm -f conf$$.dir
/conf$$.
file
14981 mkdir conf$$.dir
2>/dev
/null
14983 if (echo >conf$$.
file) 2>/dev
/null
; then
14984 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
14986 # ... but there are two gotchas:
14987 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14988 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14989 # In both cases, we have to default to `cp -p'.
14990 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe
||
14992 elif ln conf$$.
file conf$$
2>/dev
/null
; then
15000 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
15001 rmdir conf$$.dir
2>/dev
/null
15006 # Create "$as_dir" as a directory, including parents if necessary.
15011 -*) as_dir
=.
/$as_dir;;
15013 test -d "$as_dir" || eval $as_mkdir_p || {
15017 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15018 *) as_qdir
=$as_dir;;
15020 as_dirs
="'$as_qdir' $as_dirs"
15021 as_dir
=`$as_dirname -- "$as_dir" ||
15022 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15023 X"$as_dir" : 'X\(//\)[^/]' \| \
15024 X"$as_dir" : 'X\(//\)$' \| \
15025 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15026 $as_echo X"$as_dir" |
15027 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15031 /^X\(\/\/\)[^/].*/{
15044 test -d "$as_dir" && break
15046 test -z "$as_dirs" || eval "mkdir $as_dirs"
15047 } || test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
15051 if mkdir -p .
2>/dev
/null
; then
15052 as_mkdir_p
='mkdir -p "$as_dir"'
15054 test -d .
/-p && rmdir .
/-p
15058 if test -x / >/dev
/null
2>&1; then
15059 as_test_x
='test -x'
15061 if ls -dL / >/dev
/null
2>&1; then
15068 if test -d "$1"; then
15074 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15075 ???[sx]*):;;*)false;;esac;fi
15079 as_executable_p
=$as_test_x
15081 # Sed expression to map a string onto a valid CPP name.
15082 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15084 # Sed expression to map a string onto a valid variable name.
15085 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15089 ## ----------------------------------- ##
15090 ## Main body of $CONFIG_STATUS script. ##
15091 ## ----------------------------------- ##
15093 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
15095 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
15096 # Save the log message, to keep $0 and so on meaningful, and to
15097 # report actual input values of CONFIG_FILES etc. instead of their
15098 # values after options handling.
15100 This file was extended by libratbox $as_me devel, which was
15101 generated by GNU Autoconf 2.68. Invocation command line was
15103 CONFIG_FILES = $CONFIG_FILES
15104 CONFIG_HEADERS = $CONFIG_HEADERS
15105 CONFIG_LINKS = $CONFIG_LINKS
15106 CONFIG_COMMANDS = $CONFIG_COMMANDS
15109 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15114 case $ac_config_files in *"
15115 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
15118 case $ac_config_headers in *"
15119 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
15123 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15124 # Files that config.status was made for.
15125 config_files="$ac_config_files"
15126 config_headers="$ac_config_headers"
15127 config_commands="$ac_config_commands"
15131 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
15133 \`$as_me' instantiates files and other configuration actions
15134 from templates according to the current configuration. Unless the files
15135 and actions are specified as TAGs, all are instantiated by default.
15137 Usage: $0 [OPTION]... [TAG]...
15139 -h, --help print this help, then exit
15140 -V, --version print version number and configuration settings, then exit
15141 --config print configuration, then exit
15142 -q, --quiet, --silent
15143 do not print progress messages
15144 -d, --debug don't remove temporary files
15145 --recheck update $as_me by reconfiguring in the same conditions
15146 --file=FILE[:TEMPLATE]
15147 instantiate the configuration file FILE
15148 --header=FILE[:TEMPLATE]
15149 instantiate the configuration header FILE
15151 Configuration files:
15154 Configuration headers:
15157 Configuration commands:
15160 Report bugs to the package provider."
15163 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15164 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15166 libratbox config.status devel
15167 configured by $0, generated by GNU Autoconf 2.68,
15168 with options \\"\$ac_cs_config\\"
15170 Copyright (C) 2010 Free Software Foundation, Inc.
15171 This config.status script is free software; the Free Software Foundation
15172 gives unlimited permission to copy, distribute and modify it."
15179 test -n "\$AWK" || AWK=awk
15182 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
15183 # The default lists apply if the user does not specify any file.
15189 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
15190 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
15194 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
15206 # Handling of the options.
15207 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15209 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15210 $as_echo "$ac_cs_version"; exit ;;
15211 --config | --confi | --conf | --con | --co | --c )
15212 $as_echo "$ac_cs_config"; exit ;;
15213 --debug | --debu | --deb | --de | --d | -d )
15215 --file | --fil | --fi | --f )
15218 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15219 '') as_fn_error $?
"missing file argument" ;;
15221 as_fn_append CONFIG_FILES
" '$ac_optarg'"
15222 ac_need_defaults
=false
;;
15223 --header | --heade | --head | --hea )
15226 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15228 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
15229 ac_need_defaults
=false
;;
15231 # Conflict between --help and --header
15232 as_fn_error $?
"ambiguous option: \`$1'
15233 Try \`$0 --help' for more information.";;
15234 --help | --hel | -h )
15235 $as_echo "$ac_cs_usage"; exit ;;
15236 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15237 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15240 # This is an error.
15241 -*) as_fn_error $?
"unrecognized option: \`$1'
15242 Try \`$0 --help' for more information." ;;
15244 *) as_fn_append ac_config_targets
" $1"
15245 ac_need_defaults
=false
;;
15251 ac_configure_extra_args
=
15253 if $ac_cs_silent; then
15255 ac_configure_extra_args
="$ac_configure_extra_args --silent"
15259 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15260 if \$ac_cs_recheck; then
15261 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15263 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15264 CONFIG_SHELL='$SHELL'
15265 export CONFIG_SHELL
15270 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
15274 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15275 ## Running $as_me. ##
15281 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15285 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
15288 # The HP-UX ksh and POSIX shell print the target directory to stdout
15289 # if CDPATH is set.
15290 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15292 sed_quote_subst='$sed_quote_subst'
15293 double_quote_subst='$double_quote_subst'
15294 delay_variable_subst='$delay_variable_subst'
15295 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15296 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15297 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15298 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15299 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15300 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15301 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15302 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15303 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15304 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15305 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15306 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15307 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15308 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15309 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15310 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15311 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15312 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15313 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15314 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15315 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15316 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15317 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15318 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15319 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15320 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15321 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15322 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15323 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
15324 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
15325 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15326 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15327 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15328 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15329 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15330 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
15331 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
15332 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
15333 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
15334 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15335 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15336 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
15337 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15338 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15339 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15340 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15341 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15342 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15343 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15344 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15345 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15346 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15347 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15348 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15349 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15350 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"`'
15351 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
15352 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
15353 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15354 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15355 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15356 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15357 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15358 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15359 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15360 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15361 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
15362 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15363 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15364 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15365 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15366 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15367 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15368 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15369 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15370 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15371 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15372 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15373 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15374 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15375 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15376 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15377 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15378 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15379 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15380 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15381 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15382 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15383 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15384 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15385 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15386 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15387 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15388 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15389 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15390 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15391 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15392 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15393 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15394 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15395 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15396 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15397 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15398 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15399 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
15400 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15401 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15402 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15403 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15404 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15405 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15406 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15407 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15408 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15409 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15410 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15411 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15412 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15413 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15414 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15415 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15416 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15417 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15418 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15419 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15420 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15421 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15422 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15423 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15424 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15427 LTCFLAGS='$LTCFLAGS'
15428 compiler='$compiler_DEFAULT'
15430 # A function that is used when there is no print builtin or printf.
15431 func_fallback_echo ()
15433 eval 'cat <<_LTECHO_EOF
15438 # Quote evaled strings.
15452 deplibs_check_method \
15457 sharedlib_from_linklib_cmd \
15460 archiver_list_spec \
15466 lt_cv_sys_global_symbol_pipe \
15467 lt_cv_sys_global_symbol_to_cdecl \
15468 lt_cv_sys_global_symbol_to_c_name_address \
15469 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15470 nm_file_list_spec \
15471 lt_prog_compiler_no_builtin_flag \
15472 lt_prog_compiler_pic \
15473 lt_prog_compiler_wl \
15474 lt_prog_compiler_static \
15475 lt_cv_prog_compiler_c_o \
15484 export_dynamic_flag_spec \
15485 whole_archive_flag_spec \
15486 compiler_needs_object \
15488 allow_undefined_flag \
15489 no_undefined_flag \
15490 hardcode_libdir_flag_spec \
15491 hardcode_libdir_flag_spec_ld \
15492 hardcode_libdir_separator \
15496 variables_saved_for_relink \
15498 library_names_spec \
15500 install_override_mode \
15504 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15505 *[\\\\\\\`\\"\\\$]*)
15506 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15509 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15514 # Double-quote double-evaled strings.
15515 for var in reload_cmds \
15516 old_postinstall_cmds \
15517 old_postuninstall_cmds \
15519 extract_expsyms_cmds \
15520 old_archive_from_new_cmds \
15521 old_archive_from_expsyms_cmds \
15523 archive_expsym_cmds \
15525 module_expsym_cmds \
15526 export_symbols_cmds \
15530 postuninstall_cmds \
15532 sys_lib_search_path_spec \
15533 sys_lib_dlsearch_path_spec; do
15534 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15535 *[\\\\\\\`\\"\\\$]*)
15536 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15539 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15544 ac_aux_dir='$ac_aux_dir'
15545 xsi_shell='$xsi_shell'
15546 lt_shell_append='$lt_shell_append'
15548 # See if we are running on zsh, and set the options which allow our
15549 # commands through without removal of \ escapes INIT.
15550 if test -n "\${ZSH_VERSION+set}" ; then
15551 setopt NO_GLOB_SUBST
15557 TIMESTAMP='$TIMESTAMP'
15564 if test x$ac_cv_header_stdc = xyes; then
15567 if test x$ac_cv_header_stdlib_h = xyes; then
15568 rb_header_stdlib_h=yes
15570 if test x$ac_cv_header_string_h = xyes; then
15571 rb_header_string_h=yes
15573 if test x$ac_cv_header_memory_h = xyes; then
15574 rb_header_memory_h=yes
15576 if test "x${ac_cv_working_alloca_h+set}" = xset ; then
15577 rb_alloca_h="$ac_cv_working_alloca_h"
15579 rb_alloc_h="$ac_cv_header_alloca_h"
15581 if test x$ac_cv_member_struct_sockaddr_sa_len = xyes; then
15582 rb_sockaddr_sa_len=yes
15584 if test x$ac_cv_header_sys_socket_h = xyes; then
15585 rb_sys_socket_h=yes
15587 if test x$ac_cv_header_sys_types_h = xyes; then
15590 if test x$ac_cv_header_sys_stat_h = xyes; then
15593 if test x$ac_cv_header_sys_time_h = xyes; then
15596 if test x$ac_cv_header_time = xyes; then
15600 if test x$ac_cv_header_stdint_h = xyes; then
15603 if test x$ac_cv_header_inttypes_h = xyes; then
15606 if test x$ac_cv_header_netinet_in_h = xyes; then
15607 rb_netinet_in_h=yes
15610 if test x$ac_cv_header_crypt_h = xyes; then
15613 if test x$ac_cv_header_errno_h = xyes; then
15616 if test x$ac_cv_header_unistd_h = xyes; then
15619 if test x$ac_cv_header_windows_h = xyes; then
15622 if test x$ac_cv_header_winsock2_h = xyes; then
15626 rb_socklen_t=$rb_socklen_t
15628 if test "x$rb_have_sockaddr_storage" = "xyes"; then
15629 rb_sockaddr_storage="yes"
15631 rb_sockaddr_storage="no"
15634 rb_have_ipv6="$have_v6"
15646 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
15648 # Handling of arguments.
15649 for ac_config_target
in $ac_config_targets
15651 case $ac_config_target in
15652 "include/libratbox_config.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/libratbox_config.h" ;;
15653 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
15654 "libtool") CONFIG_COMMANDS
="$CONFIG_COMMANDS libtool" ;;
15655 "include/librb-config.h") CONFIG_COMMANDS
="$CONFIG_COMMANDS include/librb-config.h" ;;
15656 "src/Makefile") CONFIG_FILES
="$CONFIG_FILES src/Makefile" ;;
15657 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
15658 "libratbox.pc") CONFIG_FILES
="$CONFIG_FILES libratbox.pc" ;;
15660 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15665 # If the user did not use the arguments to specify the items to instantiate,
15666 # then the envvar interface is used. Set only those that are not.
15667 # We use the long form for the default assignment because of an extremely
15668 # bizarre bug on SunOS 4.1.3.
15669 if $ac_need_defaults; then
15670 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
15671 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
15672 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
15675 # Have a temporary directory for convenience. Make it in the build tree
15676 # simply because there is no reason against having it here, and in addition,
15677 # creating and moving files from /tmp can sometimes cause problems.
15678 # Hook for its removal unless debugging.
15679 # Note that there is a small window in which the directory will not be cleaned:
15680 # after its creation but before its name has been assigned to `$tmp'.
15684 trap 'exit_status=$?
15685 : "${ac_tmp:=$tmp}"
15686 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15688 trap 'as_fn_exit 1' 1 2 13 15
15690 # Create a (secure) tmp directory for tmp files.
15693 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15697 tmp
=.
/conf$$
-$RANDOM
15698 (umask 077 && mkdir "$tmp")
15699 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
15702 # Set up the scripts for CONFIG_FILES section.
15703 # No need to generate them if there are no CONFIG_FILES.
15704 # This happens for instance with `./config.status config.h'.
15705 if test -n "$CONFIG_FILES"; then
15708 ac_cr
=`echo X | tr X '\015'`
15709 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15710 # But we know of no other shell where ac_cr would be empty at this
15711 # point, so we can use a bashism as a fallback.
15712 if test "x$ac_cr" = x
; then
15713 eval ac_cr
=\$
\'\\r
\'
15715 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15716 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15719 ac_cs_awk_cr
=$ac_cr
15722 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15727 echo "cat >conf$$subs.awk <<_ACEOF" &&
15728 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15730 } >conf$$subs.sh ||
15731 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
15732 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15734 for ac_last_try in false false false false false :; do
15735 . ./conf$$subs.sh ||
15736 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
15738 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
15739 if test $ac_delim_n = $ac_delim_num; then
15741 elif $ac_last_try; then
15742 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
15744 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
15747 rm -f conf$$subs.sh
15749 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15750 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
15754 s/^/S["/; s
/!.
*/"]=/
15764 s/\(.\{148\}\)..*/\1/
15766 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
15771 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
15778 s/\(.\{148\}\)..*/\1/
15780 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
15784 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
15789 ' <conf$$subs.awk | sed '
15794 ' >>$CONFIG_STATUS || ac_write_fail=1
15795 rm -f conf$$subs.awk
15796 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15798 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
15799 for (key in S) S_is_set[key] = 1
15805 nfields = split(line, field, "@
")
15807 len = length(field[1])
15808 for (i = 2; i < nfields; i++) {
15810 keylen = length(key)
15811 if (S_is_set[key]) {
15813 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15814 len += length(value) + length(field[++i])
15825 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15826 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15827 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
15830 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
15831 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
15834 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15835 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
15836 # trailing colons and then remove the whole line if VPATH becomes empty
15837 # (actually we leave an empty line to preserve line numbers).
15838 if test "x
$srcdir" = x.; then
15839 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15857 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15858 fi # test -n "$CONFIG_FILES"
15860 # Set up the scripts for CONFIG_HEADERS section.
15861 # No need to generate them if there are no CONFIG_HEADERS.
15862 # This happens for instance with `./config.status Makefile'.
15863 if test -n "$CONFIG_HEADERS"; then
15864 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
15868 # Transform confdefs.h into an awk script `defines.awk', embedded as
15869 # here-document in config.status, that substitutes the proper values into
15870 # config.h.in to produce config.h.
15872 # Create a delimiter string that does not exist in confdefs.h, to ease
15873 # handling of long lines.
15875 for ac_last_try in false false :; do
15876 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
15877 if test -z "$ac_tt"; then
15879 elif $ac_last_try; then
15880 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
15882 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
15886 # For the awk script, D is an array of macro values keyed by name,
15887 # likewise P contains macro parameters if any. Preserve backslash
15888 # newline sequences.
15890 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15892 s/.\{148\}/&'"$ac_delim"'/g
15895 s/^[ ]*#[ ]*define[ ][ ]*/ /
15902 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
15904 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
15908 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
15909 D["\
1"]=" \
3\\\\\\n
"\\/p
15911 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
15916 s/.\{148\}/&'"$ac_delim"'/g
15921 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
15924 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
15926 ' <confdefs.h | sed '
15927 s/'"$ac_delim"'/"\\\
15928 "/g' >>$CONFIG_STATUS || ac_write_fail=1
15930 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15931 for (key in D) D_is_set[key] = 1
15934 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15936 split(line, arg, " ")
15937 if (arg[1] == "#") {
15941 defundef
= substr
(arg
[1], 2)
15944 split(mac1
, mac2
, "(") #)
15946 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
15947 if (D_is_set
[macro
]) {
15948 # Preserve the white space surrounding the "#".
15949 print prefix
"define", macro P
[macro
] D
[macro
]
15952 # Replace #undef with comments. This is necessary, for example,
15953 # in the case of _POSIX_SOURCE, which is predefined and required
15954 # on some systems where configure will not decide to define it.
15955 if (defundef
== "undef") {
15956 print
"/*", prefix defundef
, macro
, "*/"
15964 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
15965 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
15966 fi # test -n "$CONFIG_HEADERS"
15969 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
15974 :[FHLC
]) ac_mode
=$ac_tag; continue;;
15976 case $ac_mode$ac_tag in
15978 :L
* | :C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
15979 :[FH
]-) ac_tag
=-:-;;
15980 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
15997 -) ac_f
="$ac_tmp/stdin";;
15998 *) # Look for the file first in the build tree, then in the source tree
15999 # (if the path is not absolute). The absolute path cannot be DOS-style,
16000 # because $ac_f cannot contain `:'.
16004 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
16006 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16008 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16009 as_fn_append ac_file_inputs
" '$ac_f'"
16012 # Let's still pretend it is `configure' which instantiates (i.e., don't
16013 # use $as_me), people would be surprised to read:
16014 # /* config.h. Generated by config.status. */
16015 configure_input
='Generated from '`
16016 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16018 if test x
"$ac_file" != x
-; then
16019 configure_input
="$ac_file. $configure_input"
16020 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16021 $as_echo "$as_me: creating $ac_file" >&6;}
16023 # Neutralize special characters interpreted by sed in replacement strings.
16024 case $configure_input in #(
16025 *\
&* | *\
|* | *\\* )
16026 ac_sed_conf_input
=`$as_echo "$configure_input" |
16027 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16028 *) ac_sed_conf_input
=$configure_input;;
16032 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16033 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
16038 ac_dir
=`$as_dirname -- "$ac_file" ||
16039 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16040 X"$ac_file" : 'X\(//\)[^/]' \| \
16041 X"$ac_file" : 'X\(//\)$' \| \
16042 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16043 $as_echo X"$ac_file" |
16044 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16048 /^X\(\/\/\)[^/].*/{
16061 as_dir
="$ac_dir"; as_fn_mkdir_p
16065 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16067 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16068 # A ".." for each directory in $ac_dir_suffix.
16069 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16070 case $ac_top_builddir_sub in
16071 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16072 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
16075 ac_abs_top_builddir
=$ac_pwd
16076 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
16077 # for backward compatibility:
16078 ac_top_builddir
=$ac_top_build_prefix
16081 .
) # We are building in place.
16083 ac_top_srcdir
=$ac_top_builddir_sub
16084 ac_abs_top_srcdir
=$ac_pwd ;;
16085 [\\/]* | ?
:[\\/]* ) # Absolute name.
16086 ac_srcdir
=$srcdir$ac_dir_suffix;
16087 ac_top_srcdir
=$srcdir
16088 ac_abs_top_srcdir
=$srcdir ;;
16089 *) # Relative name.
16090 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
16091 ac_top_srcdir
=$ac_top_build_prefix$srcdir
16092 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
16094 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
16104 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
16105 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
16107 ac_MKDIR_P
=$MKDIR_P
16109 [\\/$
]* | ?
:[\\/]* ) ;;
16110 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
16114 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
16115 # If the template does not know about datarootdir, expand it.
16116 # FIXME: This hack should be removed a few years after 2.60.
16117 ac_datarootdir_hack
=; ac_datarootdir_seen
=
16128 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16129 *datarootdir
*) ac_datarootdir_seen
=yes;;
16130 *@datadir@
*|*@docdir@
*|*@infodir@
*|*@localedir@
*|*@mandir@
*)
16131 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16132 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16134 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16135 ac_datarootdir_hack='
16136 s&@datadir@&$datadir&g
16137 s&@docdir@&$docdir&g
16138 s&@infodir@&$infodir&g
16139 s&@localedir@&$localedir&g
16140 s&@mandir@&$mandir&g
16141 s&\\\${datarootdir}&$datarootdir&g' ;;
16145 # Neutralize VPATH when `$srcdir' = `.'.
16146 # Shell code in configure.ac might set extrasub.
16147 # FIXME: do we really want to maintain this feature?
16148 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16149 ac_sed_extra="$ac_vpsub
16152 cat >>$CONFIG_STATUS <<\_ACEOF
|| ac_write_fail
=1
16154 /@
[a
-zA-Z_][a
-zA-Z_0-9]*@
/!b
16155 s
|@configure_input@
|$ac_sed_conf_input|;t t
16156 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
16157 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
16158 s
&@srcdir@
&$ac_srcdir&;t t
16159 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
16160 s
&@top_srcdir@
&$ac_top_srcdir&;t t
16161 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
16162 s
&@builddir@
&$ac_builddir&;t t
16163 s
&@abs_builddir@
&$ac_abs_builddir&;t t
16164 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
16165 s
&@INSTALL@
&$ac_INSTALL&;t t
16166 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
16167 $ac_datarootdir_hack
16169 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
16170 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
16172 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16173 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
16174 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16175 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
16176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
16177 which seems to be undefined. Please make sure it is defined" >&5
16178 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
16179 which seems to be undefined. Please make sure it is defined" >&2;}
16181 rm -f "$ac_tmp/stdin"
16183 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16184 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16186 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16192 if test x"$ac_file" != x-; then
16194 $as_echo "/* $configure_input */" \
16195 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16196 } >"$ac_tmp/config.h" \
16197 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16198 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16199 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16200 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16203 mv "$ac_tmp/config.h" "$ac_file" \
16204 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16207 $as_echo "/* $configure_input */" \
16208 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16209 || as_fn_error $? "could not create -" "$LINENO" 5
16211 # Compute "$ac_file"'s index
in $config_headers.
16214 for _am_header
in $config_headers :; do
16215 case $_am_header in
16216 $_am_arg | $_am_arg:* )
16219 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
16222 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
16223 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16224 X"$_am_arg" : 'X\(//\)[^/]' \| \
16225 X"$_am_arg" : 'X\(//\)$' \| \
16226 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
16227 $as_echo X"$_am_arg" |
16228 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16232 /^X\(\/\/\)[^/].*/{
16244 s/.*/./; q'`/stamp
-h$_am_stamp_count
16247 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16248 $as_echo "$as_me: executing $ac_file commands" >&6;}
16253 case $ac_file$ac_mode in
16254 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" || {
16255 # Autoconf 2.62 quotes --file arguments for eval, but not when files
16256 # are listed without --file. Let's play safe and only enable the eval
16257 # if we detect the quoting.
16258 case $CONFIG_FILES in
16259 *\'*) eval set x
"$CONFIG_FILES" ;;
16260 *) set x
$CONFIG_FILES ;;
16265 # Strip MF so we end up with the name of the file.
16266 mf
=`echo "$mf" | sed -e 's/:.*$//'`
16267 # Check whether this is an Automake generated Makefile or not.
16268 # We used to match only the files named `Makefile.in', but
16269 # some people rename them; so instead we look at the file content.
16270 # Grep'ing the first line is not enough: some people post-process
16271 # each Makefile.in and add a new line on top of each file to say so.
16272 # Grep'ing the whole file is not good either: AIX grep has a line
16273 # limit of 2048, but all sed's we know have understand at least 4000.
16274 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X
>/dev
/null
2>&1; then
16275 dirpart
=`$as_dirname -- "$mf" ||
16276 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16277 X"$mf" : 'X\(//\)[^/]' \| \
16278 X"$mf" : 'X\(//\)$' \| \
16279 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
16281 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16285 /^X\(\/\/\)[^/].*/{
16301 # Extract the definition of DEPDIR, am__include, and am__quote
16302 # from the Makefile without running `make'.
16303 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
16304 test -z "$DEPDIR" && continue
16305 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
16306 test -z "am__include" && continue
16307 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
16308 # When using ansi2knr, U may be empty or an underscore; expand it
16309 U
=`sed -n 's/^U = //p' < "$mf"`
16310 # Find all dependency output files, they are included files with
16311 # $(DEPDIR) in their names. We invoke sed twice because it is the
16312 # simplest approach to changing $(DEPDIR) to its actual value in the
16314 for file in `sed -n "
16315 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
16316 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
16317 # Make sure the directory exists.
16318 test -f "$dirpart/$file" && continue
16319 fdir
=`$as_dirname -- "$file" ||
16320 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16321 X"$file" : 'X\(//\)[^/]' \| \
16322 X"$file" : 'X\(//\)$' \| \
16323 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
16324 $as_echo X"$file" |
16325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16329 /^X\(\/\/\)[^/].*/{
16342 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
16343 # echo "creating $dirpart/$file"
16344 echo '# dummy' > "$dirpart/$file"
16351 # See if we are running on zsh, and set the options which allow our
16352 # commands through without removal of \ escapes.
16353 if test -n "${ZSH_VERSION+set}" ; then
16354 setopt NO_GLOB_SUBST
16357 cfgfile
="${ofile}T"
16358 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16361 cat <<_LT_EOF >> "$cfgfile"
16364 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16365 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16366 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16367 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
16369 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16370 # 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
16372 # Written by Gordon Matzigkeit, 1996
16374 # This file is part of GNU Libtool.
16376 # GNU Libtool is free software; you can redistribute it and/or
16377 # modify it under the terms of the GNU General Public License as
16378 # published by the Free Software Foundation; either version 2 of
16379 # the License, or (at your option) any later version.
16381 # As a special exception to the GNU General Public License,
16382 # if you distribute this file as part of a program or library that
16383 # is built using GNU Libtool, you may include this file under the
16384 # same distribution terms that you use for the rest of that program.
16386 # GNU Libtool is distributed in the hope that it will be useful,
16387 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16388 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16389 # GNU General Public License for more details.
16391 # You should have received a copy of the GNU General Public License
16392 # along with GNU Libtool; see the file COPYING. If not, a copy
16393 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16394 # obtained by writing to the Free Software Foundation, Inc.,
16395 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16398 # The names of the tagged configurations supported by this script.
16401 # ### BEGIN LIBTOOL CONFIG
16403 # Whether or not to build static libraries.
16404 build_old_libs=$enable_static
16406 # Whether or not to build shared libraries.
16407 build_libtool_libs=$enable_shared
16409 # Which release of libtool.m4 was used?
16410 macro_version=$macro_version
16411 macro_revision=$macro_revision
16413 # What type of objects to build.
16416 # Whether or not to optimize for fast installation.
16417 fast_install=$enable_fast_install
16419 # Shell to use when invoking shell scripts.
16422 # An echo program that protects backslashes.
16426 host_alias=$host_alias
16430 # The build system.
16431 build_alias=$build_alias
16435 # A sed program that does not truncate output.
16438 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
16439 Xsed="\$SED -e 1s/^X//"
16441 # A grep program that handles long lines.
16447 # A literal string matcher.
16450 # A BSD- or MS-compatible name lister.
16453 # Whether we need soft or hard links.
16456 # What is the maximum length of a command?
16457 max_cmd_len=$max_cmd_len
16459 # Object file suffix (normally "o").
16462 # Executable file suffix (normally "").
16465 # whether the shell understands "unset".
16468 # turn spaces into newlines.
16471 # turn newlines into spaces.
16474 # convert \$build file names to \$host format.
16475 to_host_file_cmd=$lt_cv_to_host_file_cmd
16477 # convert \$build files to toolchain format.
16478 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
16480 # An object symbol dumper.
16481 OBJDUMP=$lt_OBJDUMP
16483 # Method to check whether dependent libraries are shared objects.
16484 deplibs_check_method=$lt_deplibs_check_method
16486 # Command to use when deplibs_check_method = "file_magic".
16487 file_magic_cmd=$lt_file_magic_cmd
16489 # How to find potential files when deplibs_check_method = "file_magic".
16490 file_magic_glob=$lt_file_magic_glob
16492 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
16493 want_nocaseglob=$lt_want_nocaseglob
16495 # DLL creation program.
16496 DLLTOOL=$lt_DLLTOOL
16498 # Command to associate shared and link libraries.
16499 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
16504 # Flags to create an archive.
16505 AR_FLAGS=$lt_AR_FLAGS
16507 # How to feed a file listing to the archiver.
16508 archiver_list_spec=$lt_archiver_list_spec
16510 # A symbol stripping program.
16513 # Commands used to install an old-style archive.
16515 old_postinstall_cmds=$lt_old_postinstall_cmds
16516 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16518 # Whether to use a lock for old archive extraction.
16519 lock_old_archive_extraction=$lock_old_archive_extraction
16524 # LTCC compiler flags.
16525 LTCFLAGS=$lt_CFLAGS
16527 # Take the output of nm and produce a listing of raw symbols and C names.
16528 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16530 # Transform the output of nm in a proper C declaration.
16531 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16533 # Transform the output of nm in a C name address pair.
16534 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16536 # Transform the output of nm in a C name address pair when lib prefix is needed.
16537 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16539 # Specify filename containing input files for \$NM.
16540 nm_file_list_spec=$lt_nm_file_list_spec
16542 # The root where to search for dependent libraries,and in which our libraries should be installed.
16543 lt_sysroot=$lt_sysroot
16545 # The name of the directory that contains temporary libtool files.
16548 # Used to examine libraries when file_magic_cmd begins with "file".
16549 MAGIC_CMD=$MAGIC_CMD
16551 # Must we lock files when doing compilation?
16552 need_locks=$lt_need_locks
16555 MANIFEST_TOOL=$lt_MANIFEST_TOOL
16557 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16558 DSYMUTIL=$lt_DSYMUTIL
16560 # Tool to change global to local symbols on Mac OS X.
16563 # Tool to manipulate fat objects and archives on Mac OS X.
16566 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
16569 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16570 OTOOL64=$lt_OTOOL64
16572 # Old archive suffix (normally "a").
16575 # Shared library suffix (normally ".so").
16576 shrext_cmds=$lt_shrext_cmds
16578 # The commands to extract the exported symbol list from a shared archive.
16579 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16581 # Variables whose values should be saved in libtool wrapper scripts and
16582 # restored at link time.
16583 variables_saved_for_relink=$lt_variables_saved_for_relink
16585 # Do we need the "lib" prefix for modules?
16586 need_lib_prefix=$need_lib_prefix
16588 # Do we need a version for libraries?
16589 need_version=$need_version
16591 # Library versioning type.
16592 version_type=$version_type
16594 # Shared library runtime path variable.
16595 runpath_var=$runpath_var
16597 # Shared library path variable.
16598 shlibpath_var=$shlibpath_var
16600 # Is shlibpath searched before the hard-coded library search path?
16601 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16603 # Format of library name prefix.
16604 libname_spec=$lt_libname_spec
16606 # List of archive names. First name is the real one, the rest are links.
16607 # The last name is the one that the linker finds with -lNAME
16608 library_names_spec=$lt_library_names_spec
16610 # The coded name of the library, if different from the real name.
16611 soname_spec=$lt_soname_spec
16613 # Permission mode override for installation of shared libraries.
16614 install_override_mode=$lt_install_override_mode
16616 # Command to use after installation of a shared archive.
16617 postinstall_cmds=$lt_postinstall_cmds
16619 # Command to use after uninstallation of a shared archive.
16620 postuninstall_cmds=$lt_postuninstall_cmds
16622 # Commands used to finish a libtool library installation in a directory.
16623 finish_cmds=$lt_finish_cmds
16625 # As "finish_cmds", except a single script fragment to be evaled but
16627 finish_eval=$lt_finish_eval
16629 # Whether we should hardcode library paths into libraries.
16630 hardcode_into_libs=$hardcode_into_libs
16632 # Compile-time system search path for libraries.
16633 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16635 # Run-time system search path for libraries.
16636 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16638 # Whether dlopen is supported.
16639 dlopen_support=$enable_dlopen
16641 # Whether dlopen of programs is supported.
16642 dlopen_self=$enable_dlopen_self
16644 # Whether dlopen of statically linked programs is supported.
16645 dlopen_self_static=$enable_dlopen_self_static
16647 # Commands to strip libraries.
16648 old_striplib=$lt_old_striplib
16649 striplib=$lt_striplib
16652 # The linker used to build libraries.
16655 # How to create reloadable object files.
16656 reload_flag=$lt_reload_flag
16657 reload_cmds=$lt_reload_cmds
16659 # Commands used to build an old-style archive.
16660 old_archive_cmds=$lt_old_archive_cmds
16662 # A language specific compiler.
16665 # Is the compiler the GNU compiler?
16668 # Compiler flag to turn off builtin functions.
16669 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16671 # Additional compiler flags for building library objects.
16672 pic_flag=$lt_lt_prog_compiler_pic
16674 # How to pass a linker flag through the compiler.
16675 wl=$lt_lt_prog_compiler_wl
16677 # Compiler flag to prevent dynamic linking.
16678 link_static_flag=$lt_lt_prog_compiler_static
16680 # Does compiler simultaneously support -c and -o options?
16681 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16683 # Whether or not to add -lc for building shared libraries.
16684 build_libtool_need_lc=$archive_cmds_need_lc
16686 # Whether or not to disallow shared libs when runtime libs are static.
16687 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16689 # Compiler flag to allow reflexive dlopens.
16690 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16692 # Compiler flag to generate shared objects directly from archives.
16693 whole_archive_flag_spec=$lt_whole_archive_flag_spec
16695 # Whether the compiler copes with passing no objects directly.
16696 compiler_needs_object=$lt_compiler_needs_object
16698 # Create an old-style archive from a shared archive.
16699 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16701 # Create a temporary old-style archive to link instead of a shared archive.
16702 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16704 # Commands used to build a shared archive.
16705 archive_cmds=$lt_archive_cmds
16706 archive_expsym_cmds=$lt_archive_expsym_cmds
16708 # Commands used to build a loadable module if different from building
16709 # a shared archive.
16710 module_cmds=$lt_module_cmds
16711 module_expsym_cmds=$lt_module_expsym_cmds
16713 # Whether we are building with GNU ld or not.
16714 with_gnu_ld=$lt_with_gnu_ld
16716 # Flag that allows shared libraries with undefined symbols to be built.
16717 allow_undefined_flag=$lt_allow_undefined_flag
16719 # Flag that enforces no undefined symbols.
16720 no_undefined_flag=$lt_no_undefined_flag
16722 # Flag to hardcode \$libdir into a binary during linking.
16723 # This must work even if \$libdir does not exist
16724 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16726 # If ld is used when linking, flag to hardcode \$libdir into a binary
16727 # during linking. This must work even if \$libdir does not exist.
16728 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16730 # Whether we need a single "-rpath" flag with a separated argument.
16731 hardcode_libdir_separator=$lt_hardcode_libdir_separator
16733 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16734 # DIR into the resulting binary.
16735 hardcode_direct=$hardcode_direct
16737 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16738 # DIR into the resulting binary and the resulting library dependency is
16739 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16740 # library is relocated.
16741 hardcode_direct_absolute=$hardcode_direct_absolute
16743 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16744 # into the resulting binary.
16745 hardcode_minus_L=$hardcode_minus_L
16747 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16748 # into the resulting binary.
16749 hardcode_shlibpath_var=$hardcode_shlibpath_var
16751 # Set to "yes" if building a shared library automatically hardcodes DIR
16752 # into the library and all subsequent libraries and executables linked
16754 hardcode_automatic=$hardcode_automatic
16756 # Set to yes if linker adds runtime paths of dependent libraries
16757 # to runtime path list.
16758 inherit_rpath=$inherit_rpath
16760 # Whether libtool must link a program against all its dependency libraries.
16761 link_all_deplibs=$link_all_deplibs
16763 # Set to "yes" if exported symbols are required.
16764 always_export_symbols=$always_export_symbols
16766 # The commands to list exported symbols.
16767 export_symbols_cmds=$lt_export_symbols_cmds
16769 # Symbols that should not be listed in the preloaded symbols.
16770 exclude_expsyms=$lt_exclude_expsyms
16772 # Symbols that must always be exported.
16773 include_expsyms=$lt_include_expsyms
16775 # Commands necessary for linking programs (against libraries) with templates.
16776 prelink_cmds=$lt_prelink_cmds
16778 # Commands necessary for finishing linking programs.
16779 postlink_cmds=$lt_postlink_cmds
16781 # Specify filename containing input files.
16782 file_list_spec=$lt_file_list_spec
16784 # How to hardcode a shared library path into an executable.
16785 hardcode_action=$hardcode_action
16787 # ### END LIBTOOL CONFIG
16793 cat <<\_LT_EOF
>> "$cfgfile"
16794 # AIX sometimes has problems with the GCC collect2 program. For some
16795 # reason, if we set the COLLECT_NAMES environment variable, the problems
16796 # vanish in a puff of smoke.
16797 if test "X${COLLECT_NAMES+set}" != Xset
; then
16799 export COLLECT_NAMES
16806 ltmain
="$ac_aux_dir/ltmain.sh"
16809 # We use sed instead of cat because bash on DJGPP gets confused if
16810 # if finds mixed CR/LF and LF-only lines. Since sed operates in
16811 # text mode, it properly converts lines to CR/LF. This bash problem
16812 # is reportedly fixed, but why not run on old versions too?
16813 sed '$q' "$ltmain" >> "$cfgfile" \
16814 || (rm -f "$cfgfile"; exit 1)
16816 if test x
"$xsi_shell" = xyes
; then
16817 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
16821 \ */*) func_dirname_result="${1%/*}${2}" ;;\
16822 \ * ) func_dirname_result="${3}" ;;\
16824 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
16825 && mv -f "$cfgfile.tmp" "$cfgfile" \
16826 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16827 test 0 -eq $?
|| _lt_function_replace_fail
=:
16830 sed -e '/^func_basename ()$/,/^} # func_basename /c\
16833 \ func_basename_result="${1##*/}"\
16834 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
16835 && mv -f "$cfgfile.tmp" "$cfgfile" \
16836 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16837 test 0 -eq $?
|| _lt_function_replace_fail
=:
16840 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
16841 func_dirname_and_basename ()\
16844 \ */*) func_dirname_result="${1%/*}${2}" ;;\
16845 \ * ) func_dirname_result="${3}" ;;\
16847 \ func_basename_result="${1##*/}"\
16848 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
16849 && mv -f "$cfgfile.tmp" "$cfgfile" \
16850 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16851 test 0 -eq $?
|| _lt_function_replace_fail
=:
16854 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
16857 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
16858 \ # positional parameters, so assign one to ordinary parameter first.\
16859 \ func_stripname_result=${3}\
16860 \ func_stripname_result=${func_stripname_result#"${1}"}\
16861 \ func_stripname_result=${func_stripname_result%"${2}"}\
16862 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
16863 && mv -f "$cfgfile.tmp" "$cfgfile" \
16864 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16865 test 0 -eq $?
|| _lt_function_replace_fail
=:
16868 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
16869 func_split_long_opt ()\
16871 \ func_split_long_opt_name=${1%%=*}\
16872 \ func_split_long_opt_arg=${1#*=}\
16873 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
16874 && mv -f "$cfgfile.tmp" "$cfgfile" \
16875 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16876 test 0 -eq $?
|| _lt_function_replace_fail
=:
16879 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
16880 func_split_short_opt ()\
16882 \ func_split_short_opt_arg=${1#??}\
16883 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
16884 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
16885 && mv -f "$cfgfile.tmp" "$cfgfile" \
16886 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16887 test 0 -eq $?
|| _lt_function_replace_fail
=:
16890 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
16894 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
16895 \ *) func_lo2o_result=${1} ;;\
16897 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
16898 && mv -f "$cfgfile.tmp" "$cfgfile" \
16899 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16900 test 0 -eq $?
|| _lt_function_replace_fail
=:
16903 sed -e '/^func_xform ()$/,/^} # func_xform /c\
16906 func_xform_result=${1%.*}.lo\
16907 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
16908 && mv -f "$cfgfile.tmp" "$cfgfile" \
16909 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16910 test 0 -eq $?
|| _lt_function_replace_fail
=:
16913 sed -e '/^func_arith ()$/,/^} # func_arith /c\
16916 func_arith_result=$(( $* ))\
16917 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
16918 && mv -f "$cfgfile.tmp" "$cfgfile" \
16919 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16920 test 0 -eq $?
|| _lt_function_replace_fail
=:
16923 sed -e '/^func_len ()$/,/^} # func_len /c\
16926 func_len_result=${#1}\
16927 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
16928 && mv -f "$cfgfile.tmp" "$cfgfile" \
16929 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16930 test 0 -eq $?
|| _lt_function_replace_fail
=:
16934 if test x
"$lt_shell_append" = xyes
; then
16935 sed -e '/^func_append ()$/,/^} # func_append /c\
16938 eval "${1}+=\\${2}"\
16939 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
16940 && mv -f "$cfgfile.tmp" "$cfgfile" \
16941 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16942 test 0 -eq $?
|| _lt_function_replace_fail
=:
16945 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
16946 func_append_quoted ()\
16948 \ func_quote_for_eval "${2}"\
16949 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
16950 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
16951 && mv -f "$cfgfile.tmp" "$cfgfile" \
16952 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16953 test 0 -eq $?
|| _lt_function_replace_fail
=:
16956 # Save a `func_append' function call where possible by direct use of '+='
16957 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
16958 && mv -f "$cfgfile.tmp" "$cfgfile" \
16959 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16960 test 0 -eq $?
|| _lt_function_replace_fail
=:
16962 # Save a `func_append' function call even when '+=' is not available
16963 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
16964 && mv -f "$cfgfile.tmp" "$cfgfile" \
16965 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
16966 test 0 -eq $?
|| _lt_function_replace_fail
=:
16969 if test x
"$_lt_function_replace_fail" = x
":"; then
16970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
16971 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
16975 mv -f "$cfgfile" "$ofile" ||
16976 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16980 "include/librb-config.h":C
)
16981 outfile
=include
/librb
-config.h.tmp
16982 cat > $outfile <<\_______EOF
16984 * librb
-config.h
: libratbox config
file. Please modify configure.ac
16987 #ifndef __LIBRB_CONFIG_H
16988 #define __LIBRB_CONFIG_H
16992 if test "x$rb_have_ipv6" = "xyes"; then
16993 echo "#define RB_IPV6 1" >> $outfile
16996 if test "x$rb_windows_h" = "xyes"; then
16997 echo '#define WIN32_LEAN_AND_MEAN 1' >> $outfile
16998 echo '#include <windows.h>' >> $outfile
16999 echo '#include <winsock2.h>' >> $outfile
17000 echo '#include <iphlpapi.h>' >> $outfile
17003 if test "x$rb_alloca_h" = "xyes"; then
17004 echo '#define RB_HAVE_ALLOCA_H 1' >> $outfile
17007 if test "x$rb_header_stdc" = "xyes"; then
17008 echo '#include <stdlib.h>' >> $outfile
17009 echo '#include <stddef.h>' >> $outfile
17010 elif test "x$rb_header_stdlib" = "xyes"; then
17011 echo '#include <stdlib.h>' >> $outfile
17014 if test "x$rb_header_string_h" = "xyes"; then
17015 echo '#include <string.h>' >> $outfile
17018 if test "x$rb_stdint_h" = "xyes"; then
17019 echo '#include <stdint.h>' >> $outfile
17022 if test "x$rb_inttypes_h" = "xyes"; then
17023 echo '#include <inttypes.h>' >> $outfile
17026 if test "x$rb_sys_types_h" = "xyes"; then
17027 echo '#include <sys/types.h>' >> $outfile
17029 if test "x$rb_sys_time_h" = "xyes"; then
17030 echo '#include <sys/time.h>' >> $outfile
17032 if test "x$rb_sys_stat_h" = "xyes"; then
17033 echo '#include <sys/stat.h>' >> $outfile
17035 if test "x$rb_time_h" = "xyes"; then
17036 echo '#include <time.h>' >> $outfile
17039 if test "x$rb_sys_socket_h" = "xyes"; then
17040 echo '#include <sys/socket.h>' >> $outfile
17043 if test "x$rb_netinet_in_h" = "xyes"; then
17044 echo '#include <netinet/in.h>' >> $outfile
17047 if test "x$rb_arpa_inet_h" = "xyes"; then
17048 echo '#include <arpa/inet.h>' >> $outfile
17051 if test "x$rb_unistd_h" = "xyes"; then
17052 echo '#include <unistd.h>' >> $outfile
17055 if test "x$rb_crypt_h" = "xyes"; then
17056 echo '#include <crypt.h>' >> $outfile
17059 if test "x$rb_errno_h" = "xyes"; then
17060 echo '#include <errno.h>' >> $outfile
17063 echo "typedef $rb_socklen_t rb_socklen_t;" >> $outfile
17066 if test "x$rb_sockaddr_sa_len" = "xyes"; then
17067 echo '#define RB_SOCKADDR_HAS_SA_LEN 1' >> $outfile
17070 if test "x$rb_sockaddr_storage" = "xyes"; then
17071 echo '#define rb_sockaddr_storage sockaddr_storage' >> $outfile
17073 echo 'struct rb_sockaddr_storage { uint8_t _padding[128]; };' >> $outfile
17076 cat >> $outfile <<\_______EOF
17077 #endif /* __LIBRB_CONFIG_H */
17080 if cmp -s $outfile include
/librb
-config.h
; then
17081 { $as_echo "$as_me:${as_lineno-$LINENO}: include/librb-config.h is unchanged" >&5
17082 $as_echo "$as_me: include/librb-config.h is unchanged" >&6;}
17083 ${rb_rm} -f $outfile
17085 ${rb_mv} $outfile include
/librb
-config.h
17096 ac_clean_files
=$ac_clean_files_save
17098 test $ac_write_fail = 0 ||
17099 as_fn_error $?
"write failure creating $CONFIG_STATUS" "$LINENO" 5
17102 # configure is writing to config.log, and then calls config.status.
17103 # config.status does its own redirection, appending to config.log.
17104 # Unfortunately, on DOS this fails, as config.log is still kept open
17105 # by configure, so config.status won't be able to write to it; its
17106 # output is simply discarded. So we exec the FD to /dev/null,
17107 # effectively closing config.log, so it can be properly (re)opened and
17108 # appended to by config.status. When coming back to configure, we
17109 # need to make the FD available again.
17110 if test "$no_create" != yes; then
17112 ac_config_status_args
=
17113 test "$silent" = yes &&
17114 ac_config_status_args
="$ac_config_status_args --quiet"
17116 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
17118 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17119 # would make configure fail if this is the last instruction.
17120 $ac_cs_success || as_fn_exit
1
17122 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
17123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17124 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17130 echo "Compiling $PACKAGE_NAME $PACKAGE_VERSION"
17133 echo "Installing into: $prefix"
17135 echo "IPv6 support ................... $have_v6"
17136 echo "Assert debugging ............... $assert"
17137 echo "Block allocator ................ $balloc"
17138 echo "SSL Type........................ $SSL_TYPE"