2
@%:@ Guess values for system-dependent variables and create Makefiles.
3
@%:@ Generated by GNU Autoconf 2.67.
6
@%:@ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7
@%:@ 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
11
@%:@ This configure script is free software; the Free Software Foundation
12
@%:@ gives unlimited permission to copy, distribute and modify it.
13
## -------------------- ##
14
## M4sh Initialization. ##
15
## -------------------- ##
17
# Be more Bourne compatible
18
DUALCASE=1; export DUALCASE # for MKS sh
19
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23
# is contrary to our usage. Disable this feature.
24
alias -g '${1+"$@"}'='"$@"'
27
case `(set -o) 2>/dev/null` in @%:@(
39
# Printing a long string crashes Solaris 7 /usr/bin/printf.
40
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43
# Prefer a ksh shell builtin over an external printf program on Solaris,
44
# but without wasting forks for bash or zsh.
45
if test -z "$BASH_VERSION$ZSH_VERSION" \
46
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48
as_echo_n='print -rn --'
49
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55
as_echo_n='/usr/ucb/echo -n'
57
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62
expr "X$arg" : "X\\(.*\\)$as_nl";
63
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68
as_echo_n='sh -c $as_echo_n_body as_echo'
71
as_echo='sh -c $as_echo_body as_echo'
74
# The user is always right.
75
if test "${PATH_SEPARATOR+set}" != set; then
77
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85
# We need space, tab and new line, in precisely that order. Quoting is
86
# there to prevent editors from complaining about space-tab.
87
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88
# splitting by setting IFS to empty value.)
91
# Find who we are. Look in the path if we contain no directory separator.
93
*[\\/]* ) as_myself=$0 ;;
94
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
98
test -z "$as_dir" && as_dir=.
99
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105
# We did not find ourselves, most probably we were run as `sh COMMAND'
106
# in which case we are not to be found in the path.
107
if test "x$as_myself" = x; then
110
if test ! -f "$as_myself"; then
111
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
115
# Unset variables that we do not need and which cause bugs (e.g. in
116
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117
# suppresses any "Segmentation fault" message there. '((' could
118
# trigger a bug in pdksh 5.2.14.
119
for as_var in BASH_ENV ENV MAIL MAILPATH
120
do eval test x\${$as_var+set} = xset \
121
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
134
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
if test "x$CONFIG_SHELL" = x; then
137
as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140
# Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141
# is contrary to our usage. Disable this feature.
142
alias -g '\${1+\"\$@\"}'='\"\$@\"'
145
case \`(set -o) 2>/dev/null\` in @%:@(
147
set -o posix ;; @%:@(
153
as_required="as_fn_return () { (exit \$1); }
154
as_fn_success () { as_fn_return 0; }
155
as_fn_failure () { as_fn_return 1; }
156
as_fn_ret_success () { return 0; }
157
as_fn_ret_failure () { return 1; }
160
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
exitcode=1; echo positional parameters were not saved.
169
test x\$exitcode = x0 || exit 1"
170
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173
test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174
test \$(( 1 + 1 )) = 2 || exit 1"
175
if (eval "$as_required") 2>/dev/null; then :
180
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188
test -z "$as_dir" && as_dir=.
190
case $as_dir in @%:@(
192
for as_base in sh bash ksh sh5; do
193
# Try only shells that exist, to save several forks.
194
as_shell=$as_dir/$as_base
195
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197
CONFIG_SHELL=$as_shell as_have_required=yes
198
if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
206
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208
CONFIG_SHELL=$SHELL as_have_required=yes
213
if test "x$CONFIG_SHELL" != x; then :
214
# We cannot yet assume a decent shell, so we have to provide a
215
# neutralization value for shells without unset; and this also
216
# works around shells that cannot unset nonexistent variables.
219
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
221
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224
if test x$as_have_required = xno; then :
225
$as_echo "$0: This script requires a shell more modern than all"
226
$as_echo "$0: the shells that I found on your system."
227
if test x${ZSH_VERSION+set} = xset ; then
228
$as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229
$as_echo "$0: be upgraded to zsh 4.3.4 or later."
231
$as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232
$0: including any error possibly output before this
233
$0: message. Then install a modern shell, or manually run
234
$0: the script under such a shell if you do have one."
240
SHELL=${CONFIG_SHELL-/bin/sh}
242
# Unset more variables known to interfere with behavior of common tools.
243
CLICOLOR_FORCE= GREP_OPTIONS=
244
unset CLICOLOR_FORCE GREP_OPTIONS
246
## --------------------- ##
247
## M4sh Shell Functions. ##
248
## --------------------- ##
251
@%:@ Portably unset VAR.
254
{ eval $1=; unset $1;}
258
@%:@ as_fn_set_status STATUS
259
@%:@ -----------------------
260
@%:@ Set @S|@? to STATUS, without forking.
264
} @%:@ as_fn_set_status
266
@%:@ as_fn_exit STATUS
267
@%:@ -----------------
268
@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
278
@%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
283
-*) as_dir=./$as_dir;;
285
test -d "$as_dir" || eval $as_mkdir_p || {
289
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
292
as_dirs="'$as_qdir' $as_dirs"
293
as_dir=`$as_dirname -- "$as_dir" ||
294
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295
X"$as_dir" : 'X\(//\)[^/]' \| \
296
X"$as_dir" : 'X\(//\)$' \| \
297
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298
$as_echo X"$as_dir" |
299
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
316
test -d "$as_dir" && break
318
test -z "$as_dirs" || eval "mkdir $as_dirs"
319
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
323
@%:@ as_fn_append VAR VALUE
324
@%:@ ----------------------
325
@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
326
@%:@ advantage of any shell optimizations that allow amortized linear growth over
327
@%:@ repeated appends, instead of the typical quadratic growth present in naive
328
@%:@ implementations.
329
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330
eval 'as_fn_append ()
341
@%:@ as_fn_arith ARG...
342
@%:@ ------------------
343
@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
344
@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
345
@%:@ must be portable across @S|@(()) and expr.
346
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
354
as_val=`expr "$@" || test $? -eq 1`
359
@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
360
@%:@ ----------------------------------------
361
@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362
@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363
@%:@ script with STATUS, using 1 if that was 0.
366
as_status=$1; test $as_status -eq 0 && as_status=1
368
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
371
$as_echo "$as_me: error: $2" >&2
372
as_fn_exit $as_status
375
if expr a : '\(a\)' >/dev/null 2>&1 &&
376
test "X`expr 00001 : '.*\(...\)'`" = X001; then
382
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
388
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
394
as_me=`$as_basename -- "$0" ||
395
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396
X"$0" : 'X\(//\)$' \| \
397
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
399
sed '/^.*\/\([^/][^/]*\)\/*$/{
413
# Avoid depending upon Character Ranges.
414
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417
as_cr_digits='0123456789'
418
as_cr_alnum=$as_cr_Letters$as_cr_digits
421
as_lineno_1=$LINENO as_lineno_1a=$LINENO
422
as_lineno_2=$LINENO as_lineno_2a=$LINENO
423
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
424
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
425
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
437
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441
chmod +x "$as_me.lineno" ||
442
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
444
# Don't try to exec as it changes $[0], causing all sort of problems
445
# (the dirname of $[0] is not the place where we might find the
446
# original and so on. Autoconf is especially sensitive to this).
448
# Exit status is that of the last command.
452
ECHO_C= ECHO_N= ECHO_T=
453
case `echo -n x` in @%:@(((((
455
case `echo 'xy\c'` in
456
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
458
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465
rm -f conf$$ conf$$.exe conf$$.file
466
if test -d conf$$.dir; then
467
rm -f conf$$.dir/conf$$.file
470
mkdir conf$$.dir 2>/dev/null
472
if (echo >conf$$.file) 2>/dev/null; then
473
if ln -s conf$$.file conf$$ 2>/dev/null; then
475
# ... but there are two gotchas:
476
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
477
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
478
# In both cases, we have to default to `cp -p'.
479
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
481
elif ln conf$$.file conf$$ 2>/dev/null; then
489
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490
rmdir conf$$.dir 2>/dev/null
492
if mkdir -p . 2>/dev/null; then
493
as_mkdir_p='mkdir -p "$as_dir"'
495
test -d ./-p && rmdir ./-p
499
if test -x / >/dev/null 2>&1; then
502
if ls -dL / >/dev/null 2>&1; then
509
if test -d "$1"; then
515
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in @%:@((
516
???[sx]*):;;*)false;;esac;fi
520
as_executable_p=$as_test_x
522
# Sed expression to map a string onto a valid CPP name.
523
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
525
# Sed expression to map a string onto a valid variable name.
526
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530
# Check that we are running under the correct shell.
531
SHELL=${CONFIG_SHELL-/bin/sh}
535
# Remove one level of quotation (which was required for Make).
536
ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
541
if test "X$1" = X--no-reexec; then
542
# Discard the --no-reexec flag, and continue.
544
elif test "X$1" = X--fallback-echo; then
545
# Avoid inline document here, it may be left over
547
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
548
# Yippee, $ECHO works!
551
# Restart under the correct shell.
552
exec $SHELL "$0" --no-reexec ${1+"$@"}
555
if test "X$1" = X--fallback-echo; then
556
# used as fallback echo
564
# The HP-UX ksh and POSIX shell print the target directory to stdout
566
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
568
if test -z "$lt_ECHO"; then
569
if test "X${echo_test_string+set}" != Xset; then
570
# find a string as large as possible, as long as the shell can cope with it
571
for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
572
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
573
if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
574
{ test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
581
if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
582
echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
583
test "X$echo_testing_string" = "X$echo_test_string"; then
586
# The Solaris, AIX, and Digital Unix default echo programs unquote
587
# backslashes. This makes it impossible to quote backslashes using
588
# echo "$something" | sed 's/\\/\\\\/g'
590
# So, first we look for a working echo in the user's PATH.
592
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
593
for dir in $PATH /usr/ucb; do
595
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
596
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
597
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
598
test "X$echo_testing_string" = "X$echo_test_string"; then
605
if test "X$ECHO" = Xecho; then
606
# We didn't find a better echo, so look for alternatives.
607
if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
608
echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
609
test "X$echo_testing_string" = "X$echo_test_string"; then
610
# This shell has a builtin print -r that does the trick.
612
elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
613
test "X$CONFIG_SHELL" != X/bin/ksh; then
614
# If we have ksh, try running configure again with it.
615
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
616
export ORIGINAL_CONFIG_SHELL
617
CONFIG_SHELL=/bin/ksh
619
exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
623
if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
624
echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
625
test "X$echo_testing_string" = "X$echo_test_string"; then
628
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
629
test "X$echo_testing_string" = 'X\t' &&
630
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
631
test "X$echo_testing_string" = "X$echo_test_string"; then
632
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
634
SHELL="$CONFIG_SHELL"
636
ECHO="$CONFIG_SHELL $0 --fallback-echo"
637
elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
638
test "X$echo_testing_string" = 'X\t' &&
639
echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
640
test "X$echo_testing_string" = "X$echo_test_string"; then
641
ECHO="$CONFIG_SHELL $0 --fallback-echo"
643
# maybe with a smaller string...
646
for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
647
if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
654
if test "$prev" != 'sed 50q "$0"'; then
655
echo_test_string=`eval $prev`
656
export echo_test_string
657
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
659
# Oops. We lost completely, so just stick with echo.
668
# Copy echo and quote the copy suitably for passing to libtool from
669
# the Makefile, instead of quoting the original, which is used later.
671
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
672
lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
678
test -n "$DJDIR" || exec 7<&0 </dev/null
682
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
683
# so uname gets run too.
684
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
689
ac_default_prefix=/usr/local
691
ac_config_libobj_dir=.
698
# Identity of this package.
706
ac_unique_file="configure.in"
707
# Factoring default headers for most tests.
708
ac_includes_default="\
710
#ifdef HAVE_SYS_TYPES_H
711
# include <sys/types.h>
713
#ifdef HAVE_SYS_STAT_H
714
# include <sys/stat.h>
720
# ifdef HAVE_STDLIB_H
725
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
730
#ifdef HAVE_STRINGS_H
731
# include <strings.h>
733
#ifdef HAVE_INTTYPES_H
734
# include <inttypes.h>
743
ac_subst_vars='am__EXEEXT_FALSE
830
INSTALL_STRIP_PROGRAM
872
program_transform_name
885
enable_option_checking
886
enable_dependency_tracking
897
ac_precious_vars='build_alias
911
# Initialize some variables set by options.
913
ac_init_version=false
914
ac_unrecognized_opts=
916
# The variables have the same names as the options, with
917
# dashes changed to underlines.
925
program_transform_name=s,x,x,
933
# Installation directory options.
934
# These are left unexpanded so users can "make install exec_prefix=/foo"
935
# and all the variables that are supposed to be based on exec_prefix
936
# by default will actually change.
937
# Use braces instead of parens because sh, perl, etc. also accept them.
938
# (The list follows the same order as the GNU Coding Standards.)
939
bindir='${exec_prefix}/bin'
940
sbindir='${exec_prefix}/sbin'
941
libexecdir='${exec_prefix}/libexec'
942
datarootdir='${prefix}/share'
943
datadir='${datarootdir}'
944
sysconfdir='${prefix}/etc'
945
sharedstatedir='${prefix}/com'
946
localstatedir='${prefix}/var'
947
includedir='${prefix}/include'
948
oldincludedir='/usr/include'
949
docdir='${datarootdir}/doc/${PACKAGE}'
950
infodir='${datarootdir}/info'
955
libdir='${exec_prefix}/lib'
956
localedir='${datarootdir}/locale'
957
mandir='${datarootdir}/man'
963
# If the previous option needs an argument, assign it.
964
if test -n "$ac_prev"; then
965
eval $ac_prev=\$ac_option
971
*=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
976
# Accept the important Cygnus configure options, so we can diagnose typos.
978
case $ac_dashdash$ac_option in
982
-bindir | --bindir | --bindi | --bind | --bin | --bi)
984
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
987
-build | --build | --buil | --bui | --bu)
988
ac_prev=build_alias ;;
989
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
990
build_alias=$ac_optarg ;;
992
-cache-file | --cache-file | --cache-fil | --cache-fi \
993
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
994
ac_prev=cache_file ;;
995
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
996
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
997
cache_file=$ac_optarg ;;
1000
cache_file=config.cache ;;
1002
-datadir | --datadir | --datadi | --datad)
1004
-datadir=* | --datadir=* | --datadi=* | --datad=*)
1005
datadir=$ac_optarg ;;
1007
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1008
| --dataroo | --dataro | --datar)
1009
ac_prev=datarootdir ;;
1010
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1011
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1012
datarootdir=$ac_optarg ;;
1014
-disable-* | --disable-*)
1015
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1016
# Reject names that are not valid shell variable names.
1017
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1018
as_fn_error $? "invalid feature name: $ac_useropt"
1019
ac_useropt_orig=$ac_useropt
1020
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1021
case $ac_user_opts in
1023
"enable_$ac_useropt"
1025
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1026
ac_unrecognized_sep=', ';;
1028
eval enable_$ac_useropt=no ;;
1030
-docdir | --docdir | --docdi | --doc | --do)
1032
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1033
docdir=$ac_optarg ;;
1035
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1037
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1038
dvidir=$ac_optarg ;;
1040
-enable-* | --enable-*)
1041
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1042
# Reject names that are not valid shell variable names.
1043
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1044
as_fn_error $? "invalid feature name: $ac_useropt"
1045
ac_useropt_orig=$ac_useropt
1046
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1047
case $ac_user_opts in
1049
"enable_$ac_useropt"
1051
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1052
ac_unrecognized_sep=', ';;
1054
eval enable_$ac_useropt=\$ac_optarg ;;
1056
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1057
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1058
| --exec | --exe | --ex)
1059
ac_prev=exec_prefix ;;
1060
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1061
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1062
| --exec=* | --exe=* | --ex=*)
1063
exec_prefix=$ac_optarg ;;
1065
-gas | --gas | --ga | --g)
1066
# Obsolete; use --with-gas.
1069
-help | --help | --hel | --he | -h)
1070
ac_init_help=long ;;
1071
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1072
ac_init_help=recursive ;;
1073
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1074
ac_init_help=short ;;
1076
-host | --host | --hos | --ho)
1077
ac_prev=host_alias ;;
1078
-host=* | --host=* | --hos=* | --ho=*)
1079
host_alias=$ac_optarg ;;
1081
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1083
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1085
htmldir=$ac_optarg ;;
1087
-includedir | --includedir | --includedi | --included | --include \
1088
| --includ | --inclu | --incl | --inc)
1089
ac_prev=includedir ;;
1090
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1091
| --includ=* | --inclu=* | --incl=* | --inc=*)
1092
includedir=$ac_optarg ;;
1094
-infodir | --infodir | --infodi | --infod | --info | --inf)
1096
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1097
infodir=$ac_optarg ;;
1099
-libdir | --libdir | --libdi | --libd)
1101
-libdir=* | --libdir=* | --libdi=* | --libd=*)
1102
libdir=$ac_optarg ;;
1104
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1105
| --libexe | --libex | --libe)
1106
ac_prev=libexecdir ;;
1107
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1108
| --libexe=* | --libex=* | --libe=*)
1109
libexecdir=$ac_optarg ;;
1111
-localedir | --localedir | --localedi | --localed | --locale)
1112
ac_prev=localedir ;;
1113
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1114
localedir=$ac_optarg ;;
1116
-localstatedir | --localstatedir | --localstatedi | --localstated \
1117
| --localstate | --localstat | --localsta | --localst | --locals)
1118
ac_prev=localstatedir ;;
1119
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1120
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1121
localstatedir=$ac_optarg ;;
1123
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1125
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1126
mandir=$ac_optarg ;;
1128
-nfp | --nfp | --nf)
1129
# Obsolete; use --without-fp.
1132
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
1133
| --no-cr | --no-c | -n)
1136
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
1137
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1140
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1141
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1142
| --oldin | --oldi | --old | --ol | --o)
1143
ac_prev=oldincludedir ;;
1144
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1145
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1146
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1147
oldincludedir=$ac_optarg ;;
1149
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1151
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1152
prefix=$ac_optarg ;;
1154
-program-prefix | --program-prefix | --program-prefi | --program-pref \
1155
| --program-pre | --program-pr | --program-p)
1156
ac_prev=program_prefix ;;
1157
-program-prefix=* | --program-prefix=* | --program-prefi=* \
1158
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1159
program_prefix=$ac_optarg ;;
1161
-program-suffix | --program-suffix | --program-suffi | --program-suff \
1162
| --program-suf | --program-su | --program-s)
1163
ac_prev=program_suffix ;;
1164
-program-suffix=* | --program-suffix=* | --program-suffi=* \
1165
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1166
program_suffix=$ac_optarg ;;
1168
-program-transform-name | --program-transform-name \
1169
| --program-transform-nam | --program-transform-na \
1170
| --program-transform-n | --program-transform- \
1171
| --program-transform | --program-transfor \
1172
| --program-transfo | --program-transf \
1173
| --program-trans | --program-tran \
1174
| --progr-tra | --program-tr | --program-t)
1175
ac_prev=program_transform_name ;;
1176
-program-transform-name=* | --program-transform-name=* \
1177
| --program-transform-nam=* | --program-transform-na=* \
1178
| --program-transform-n=* | --program-transform-=* \
1179
| --program-transform=* | --program-transfor=* \
1180
| --program-transfo=* | --program-transf=* \
1181
| --program-trans=* | --program-tran=* \
1182
| --progr-tra=* | --program-tr=* | --program-t=*)
1183
program_transform_name=$ac_optarg ;;
1185
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1187
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1188
pdfdir=$ac_optarg ;;
1190
-psdir | --psdir | --psdi | --psd | --ps)
1192
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1195
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1196
| -silent | --silent | --silen | --sile | --sil)
1199
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1201
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1203
sbindir=$ac_optarg ;;
1205
-sharedstatedir | --sharedstatedir | --sharedstatedi \
1206
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1207
| --sharedst | --shareds | --shared | --share | --shar \
1209
ac_prev=sharedstatedir ;;
1210
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1211
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1212
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1214
sharedstatedir=$ac_optarg ;;
1216
-site | --site | --sit)
1218
-site=* | --site=* | --sit=*)
1221
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1223
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1224
srcdir=$ac_optarg ;;
1226
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1227
| --syscon | --sysco | --sysc | --sys | --sy)
1228
ac_prev=sysconfdir ;;
1229
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1230
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1231
sysconfdir=$ac_optarg ;;
1233
-target | --target | --targe | --targ | --tar | --ta | --t)
1234
ac_prev=target_alias ;;
1235
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1236
target_alias=$ac_optarg ;;
1238
-v | -verbose | --verbose | --verbos | --verbo | --verb)
1241
-version | --version | --versio | --versi | --vers | -V)
1242
ac_init_version=: ;;
1245
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1246
# Reject names that are not valid shell variable names.
1247
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1248
as_fn_error $? "invalid package name: $ac_useropt"
1249
ac_useropt_orig=$ac_useropt
1250
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1251
case $ac_user_opts in
1255
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1256
ac_unrecognized_sep=', ';;
1258
eval with_$ac_useropt=\$ac_optarg ;;
1260
-without-* | --without-*)
1261
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1262
# Reject names that are not valid shell variable names.
1263
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1264
as_fn_error $? "invalid package name: $ac_useropt"
1265
ac_useropt_orig=$ac_useropt
1266
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1267
case $ac_user_opts in
1271
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1272
ac_unrecognized_sep=', ';;
1274
eval with_$ac_useropt=no ;;
1277
# Obsolete; use --with-x.
1280
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1281
| --x-incl | --x-inc | --x-in | --x-i)
1282
ac_prev=x_includes ;;
1283
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1284
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1285
x_includes=$ac_optarg ;;
1287
-x-libraries | --x-libraries | --x-librarie | --x-librari \
1288
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1289
ac_prev=x_libraries ;;
1290
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1291
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1292
x_libraries=$ac_optarg ;;
1294
-*) as_fn_error $? "unrecognized option: \`$ac_option'
1295
Try \`$0 --help' for more information"
1299
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1300
# Reject names that are not valid shell variable names.
1301
case $ac_envvar in #(
1302
'' | [0-9]* | *[!_$as_cr_alnum]* )
1303
as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1305
eval $ac_envvar=\$ac_optarg
1306
export $ac_envvar ;;
1309
# FIXME: should be removed in autoconf 3.0.
1310
$as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1311
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1312
$as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1313
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1319
if test -n "$ac_prev"; then
1320
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1321
as_fn_error $? "missing argument to $ac_option"
1324
if test -n "$ac_unrecognized_opts"; then
1325
case $enable_option_checking in
1327
fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1328
*) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1332
# Check all directory arguments for consistency.
1333
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1334
datadir sysconfdir sharedstatedir localstatedir includedir \
1335
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1336
libdir localedir mandir
1338
eval ac_val=\$$ac_var
1339
# Remove trailing slashes.
1342
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1343
eval $ac_var=\$ac_val;;
1345
# Be sure to have absolute directory names.
1347
[\\/$]* | ?:[\\/]* ) continue;;
1348
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1350
as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1353
# There might be people who depend on the old broken behavior: `$host'
1354
# used to hold the argument of --host etc.
1355
# FIXME: To remove some day.
1358
target=$target_alias
1360
# FIXME: To remove some day.
1361
if test "x$host_alias" != x; then
1362
if test "x$build_alias" = x; then
1363
cross_compiling=maybe
1364
$as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1365
If a cross compiler is detected then cross compile mode will be used" >&2
1366
elif test "x$build_alias" != "x$host_alias"; then
1372
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1374
test "$silent" = yes && exec 6>/dev/null
1377
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1378
ac_ls_di=`ls -di .` &&
1379
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1380
as_fn_error $? "working directory cannot be determined"
1381
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1382
as_fn_error $? "pwd does not report name of working directory"
1385
# Find the source files, if location was not specified.
1386
if test -z "$srcdir"; then
1387
ac_srcdir_defaulted=yes
1388
# Try the directory containing this script, then the parent directory.
1389
ac_confdir=`$as_dirname -- "$as_myself" ||
1390
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1391
X"$as_myself" : 'X\(//\)[^/]' \| \
1392
X"$as_myself" : 'X\(//\)$' \| \
1393
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1394
$as_echo X"$as_myself" |
1395
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1413
if test ! -r "$srcdir/$ac_unique_file"; then
1417
ac_srcdir_defaulted=no
1419
if test ! -r "$srcdir/$ac_unique_file"; then
1420
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1421
as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1423
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1425
cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1427
# When building in place, set srcdir=.
1428
if test "$ac_abs_confdir" = "$ac_pwd"; then
1431
# Remove unnecessary trailing slashes from srcdir.
1432
# Double slashes in file names in object file debugging info
1433
# mess up M-x gdb in Emacs.
1435
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1437
for ac_var in $ac_precious_vars; do
1438
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1439
eval ac_env_${ac_var}_value=\$${ac_var}
1440
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1441
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1445
# Report the --help message.
1447
if test "$ac_init_help" = "long"; then
1448
# Omit some internal or obsolete options to make the list less imposing.
1449
# This message is too long to be a string in the A/UX 3.1 sh.
1451
\`configure' configures this package to adapt to many kinds of systems.
1453
Usage: $0 [OPTION]... [VAR=VALUE]...
1455
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1456
VAR=VALUE. See below for descriptions of some of the useful variables.
1458
Defaults for the options are specified in brackets.
1461
-h, --help display this help and exit
1462
--help=short display options specific to this package
1463
--help=recursive display the short help of all the included packages
1464
-V, --version display version information and exit
1465
-q, --quiet, --silent do not print \`checking ...' messages
1466
--cache-file=FILE cache test results in FILE [disabled]
1467
-C, --config-cache alias for \`--cache-file=config.cache'
1468
-n, --no-create do not create output files
1469
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1471
Installation directories:
1472
--prefix=PREFIX install architecture-independent files in PREFIX
1473
@<:@@S|@ac_default_prefix@:>@
1474
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1477
By default, \`make install' will install all the files in
1478
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1479
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1480
for instance \`--prefix=\$HOME'.
1482
For better control, use the options below.
1484
Fine tuning of the installation directories:
1485
--bindir=DIR user executables [EPREFIX/bin]
1486
--sbindir=DIR system admin executables [EPREFIX/sbin]
1487
--libexecdir=DIR program executables [EPREFIX/libexec]
1488
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1489
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1490
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1491
--libdir=DIR object code libraries [EPREFIX/lib]
1492
--includedir=DIR C header files [PREFIX/include]
1493
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1494
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1495
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1496
--infodir=DIR info documentation [DATAROOTDIR/info]
1497
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1498
--mandir=DIR man documentation [DATAROOTDIR/man]
1499
--docdir=DIR documentation root @<:@DATAROOTDIR/doc/PACKAGE@:>@
1500
--htmldir=DIR html documentation [DOCDIR]
1501
--dvidir=DIR dvi documentation [DOCDIR]
1502
--pdfdir=DIR pdf documentation [DOCDIR]
1503
--psdir=DIR ps documentation [DOCDIR]
1509
--program-prefix=PREFIX prepend PREFIX to installed program names
1510
--program-suffix=SUFFIX append SUFFIX to installed program names
1511
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1514
--build=BUILD configure for building on BUILD [guessed]
1515
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1519
if test -n "$ac_init_help"; then
1524
--disable-option-checking ignore unrecognized --enable/--with options
1525
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1526
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1527
--disable-dependency-tracking speeds up one-time build
1528
--enable-dependency-tracking do not reject slow dependency extractors
1529
--enable-shared@<:@=PKGS@:>@ build shared libraries @<:@default=yes@:>@
1530
--enable-static@<:@=PKGS@:>@ build static libraries @<:@default=yes@:>@
1531
--enable-fast-install@<:@=PKGS@:>@
1532
optimize for fast installation @<:@default=yes@:>@
1533
--disable-libtool-lock avoid locking (might break parallel builds)
1536
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1537
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1538
--with-python enable the python wrapper [default=no]
1539
--with-perl enable the perl wrapper [default=no]
1540
--with-ruby enable the ruby wrapper [default=no]
1541
--with-pic try to use only PIC/non-PIC objects @<:@default=use
1543
--with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@
1545
Some influential environment variables:
1546
CC C compiler command
1547
CFLAGS C compiler flags
1548
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1549
nonstandard directory <lib dir>
1550
LIBS libraries to pass to the linker, e.g. -l<library>
1551
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1552
you have headers in a nonstandard directory <include dir>
1553
YACC The `Yet Another C Compiler' implementation to use. Defaults to
1554
the first program found out of: `bison -y', `byacc', `yacc'.
1555
YFLAGS The list of arguments that will be passed by default to @S|@YACC.
1556
This script will default YFLAGS to the empty string to avoid a
1557
default value of `-d' given by some make applications.
1559
The installed Python version to use, for example '2.3'. This
1560
string will be appended to the Python interpreter canonical
1564
Use these variables to override the choices made by `configure' or to help
1565
it to find libraries and programs with nonstandard names/locations.
1567
Report bugs to the package provider.
1572
if test "$ac_init_help" = "recursive"; then
1573
# If there are subdirs, report their specific --help.
1574
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1575
test -d "$ac_dir" ||
1576
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1581
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1583
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1584
# A ".." for each directory in $ac_dir_suffix.
1585
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1586
case $ac_top_builddir_sub in
1587
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1588
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1591
ac_abs_top_builddir=$ac_pwd
1592
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1593
# for backward compatibility:
1594
ac_top_builddir=$ac_top_build_prefix
1597
.) # We are building in place.
1599
ac_top_srcdir=$ac_top_builddir_sub
1600
ac_abs_top_srcdir=$ac_pwd ;;
1601
[\\/]* | ?:[\\/]* ) # Absolute name.
1602
ac_srcdir=$srcdir$ac_dir_suffix;
1603
ac_top_srcdir=$srcdir
1604
ac_abs_top_srcdir=$srcdir ;;
1606
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1607
ac_top_srcdir=$ac_top_build_prefix$srcdir
1608
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1610
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1612
cd "$ac_dir" || { ac_status=$?; continue; }
1613
# Check for guested configure.
1614
if test -f "$ac_srcdir/configure.gnu"; then
1616
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1617
elif test -f "$ac_srcdir/configure"; then
1619
$SHELL "$ac_srcdir/configure" --help=recursive
1621
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1623
cd "$ac_pwd" || { ac_status=$?; break; }
1627
test -n "$ac_init_help" && exit $ac_status
1628
if $ac_init_version; then
1631
generated by GNU Autoconf 2.67
1633
Copyright (C) 2010 Free Software Foundation, Inc.
1634
This configure script is free software; the Free Software Foundation
1635
gives unlimited permission to copy, distribute and modify it.
1640
## ------------------------ ##
1641
## Autoconf initialization. ##
1642
## ------------------------ ##
1644
@%:@ ac_fn_c_try_compile LINENO
1645
@%:@ --------------------------
1646
@%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
1647
ac_fn_c_try_compile ()
1649
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1650
rm -f conftest.$ac_objext
1651
if { { ac_try="$ac_compile"
1653
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1654
*) ac_try_echo=$ac_try;;
1656
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1657
$as_echo "$ac_try_echo"; } >&5
1658
(eval "$ac_compile") 2>conftest.err
1660
if test -s conftest.err; then
1661
grep -v '^ *+' conftest.err >conftest.er1
1662
cat conftest.er1 >&5
1663
mv -f conftest.er1 conftest.err
1665
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1666
test $ac_status = 0; } && {
1667
test -z "$ac_c_werror_flag" ||
1668
test ! -s conftest.err
1669
} && test -s conftest.$ac_objext; then :
1672
$as_echo "$as_me: failed program was:" >&5
1673
sed 's/^/| /' conftest.$ac_ext >&5
1677
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1678
as_fn_set_status $ac_retval
1680
} @%:@ ac_fn_c_try_compile
1682
@%:@ ac_fn_c_try_link LINENO
1683
@%:@ -----------------------
1684
@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
1687
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1688
rm -f conftest.$ac_objext conftest$ac_exeext
1689
if { { ac_try="$ac_link"
1691
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1692
*) ac_try_echo=$ac_try;;
1694
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1695
$as_echo "$ac_try_echo"; } >&5
1696
(eval "$ac_link") 2>conftest.err
1698
if test -s conftest.err; then
1699
grep -v '^ *+' conftest.err >conftest.er1
1700
cat conftest.er1 >&5
1701
mv -f conftest.er1 conftest.err
1703
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1704
test $ac_status = 0; } && {
1705
test -z "$ac_c_werror_flag" ||
1706
test ! -s conftest.err
1707
} && test -s conftest$ac_exeext && {
1708
test "$cross_compiling" = yes ||
1709
$as_test_x conftest$ac_exeext
1713
$as_echo "$as_me: failed program was:" >&5
1714
sed 's/^/| /' conftest.$ac_ext >&5
1718
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1719
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1720
# interfere with the next link command; also delete a directory that is
1721
# left behind by Apple's compiler. We do this before executing the actions.
1722
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1723
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1724
as_fn_set_status $ac_retval
1726
} @%:@ ac_fn_c_try_link
1728
@%:@ ac_fn_c_try_cpp LINENO
1729
@%:@ ----------------------
1730
@%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
1733
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1734
if { { ac_try="$ac_cpp conftest.$ac_ext"
1736
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1737
*) ac_try_echo=$ac_try;;
1739
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1740
$as_echo "$ac_try_echo"; } >&5
1741
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1743
if test -s conftest.err; then
1744
grep -v '^ *+' conftest.err >conftest.er1
1745
cat conftest.er1 >&5
1746
mv -f conftest.er1 conftest.err
1748
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1749
test $ac_status = 0; } > conftest.i && {
1750
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1751
test ! -s conftest.err
1755
$as_echo "$as_me: failed program was:" >&5
1756
sed 's/^/| /' conftest.$ac_ext >&5
1760
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1761
as_fn_set_status $ac_retval
1763
} @%:@ ac_fn_c_try_cpp
1765
@%:@ ac_fn_c_try_run LINENO
1766
@%:@ ----------------------
1767
@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes
1768
@%:@ that executables *can* be run.
1771
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1772
if { { ac_try="$ac_link"
1774
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1775
*) ac_try_echo=$ac_try;;
1777
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1778
$as_echo "$ac_try_echo"; } >&5
1779
(eval "$ac_link") 2>&5
1781
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1782
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1783
{ { case "(($ac_try" in
1784
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1785
*) ac_try_echo=$ac_try;;
1787
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1788
$as_echo "$ac_try_echo"; } >&5
1789
(eval "$ac_try") 2>&5
1791
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1792
test $ac_status = 0; }; }; then :
1795
$as_echo "$as_me: program exited with status $ac_status" >&5
1796
$as_echo "$as_me: failed program was:" >&5
1797
sed 's/^/| /' conftest.$ac_ext >&5
1799
ac_retval=$ac_status
1801
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1802
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1803
as_fn_set_status $ac_retval
1805
} @%:@ ac_fn_c_try_run
1807
@%:@ ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1808
@%:@ -------------------------------------------------------
1809
@%:@ Tests whether HEADER exists, giving a warning if it cannot be compiled using
1810
@%:@ the include files in INCLUDES and setting the cache variable VAR
1812
ac_fn_c_check_header_mongrel ()
1814
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815
if eval "test \"\${$3+set}\"" = set; then :
1816
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1817
$as_echo_n "checking for $2... " >&6; }
1818
if eval "test \"\${$3+set}\"" = set; then :
1819
$as_echo_n "(cached) " >&6
1822
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1823
$as_echo "$ac_res" >&6; }
1825
# Is the header compilable?
1826
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1827
$as_echo_n "checking $2 usability... " >&6; }
1828
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1829
/* end confdefs.h. */
1833
if ac_fn_c_try_compile "$LINENO"; then :
1834
ac_header_compiler=yes
1836
ac_header_compiler=no
1838
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1839
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1840
$as_echo "$ac_header_compiler" >&6; }
1842
# Is the header present?
1843
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1844
$as_echo_n "checking $2 presence... " >&6; }
1845
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1846
/* end confdefs.h. */
1849
if ac_fn_c_try_cpp "$LINENO"; then :
1850
ac_header_preproc=yes
1852
ac_header_preproc=no
1854
rm -f conftest.err conftest.i conftest.$ac_ext
1855
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1856
$as_echo "$ac_header_preproc" >&6; }
1858
# So? What about this header?
1859
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1861
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1862
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1863
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1864
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1867
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1868
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1869
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1870
$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1871
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1872
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1873
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1874
$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1875
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1876
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1879
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1880
$as_echo_n "checking for $2... " >&6; }
1881
if eval "test \"\${$3+set}\"" = set; then :
1882
$as_echo_n "(cached) " >&6
1884
eval "$3=\$ac_header_compiler"
1887
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1888
$as_echo "$ac_res" >&6; }
1890
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1892
} @%:@ ac_fn_c_check_header_mongrel
1894
@%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1895
@%:@ -------------------------------------------------------
1896
@%:@ Tests whether HEADER exists and can be compiled using the include files in
1897
@%:@ INCLUDES, setting the cache variable VAR accordingly.
1898
ac_fn_c_check_header_compile ()
1900
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1901
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1902
$as_echo_n "checking for $2... " >&6; }
1903
if eval "test \"\${$3+set}\"" = set; then :
1904
$as_echo_n "(cached) " >&6
1906
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1907
/* end confdefs.h. */
1911
if ac_fn_c_try_compile "$LINENO"; then :
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; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1923
} @%:@ ac_fn_c_check_header_compile
1925
@%:@ ac_fn_c_check_func LINENO FUNC VAR
1926
@%:@ ----------------------------------
1927
@%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly
1928
ac_fn_c_check_func ()
1930
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1931
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1932
$as_echo_n "checking for $2... " >&6; }
1933
if eval "test \"\${$3+set}\"" = set; then :
1934
$as_echo_n "(cached) " >&6
1936
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1937
/* end confdefs.h. */
1938
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1939
For example, HP-UX 11i <limits.h> declares gettimeofday. */
1940
#define $2 innocuous_$2
1942
/* System header to define __stub macros and hopefully few prototypes,
1943
which can conflict with char $2 (); below.
1944
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1945
<limits.h> exists even on freestanding compilers. */
1948
# include <limits.h>
1950
# include <assert.h>
1955
/* Override any GCC internal prototype to avoid an error.
1956
Use char because int might match the return type of a GCC
1957
builtin and then its argument prototype would still apply. */
1962
/* The GNU C library defines this for functions which it implements
1963
to always fail with ENOSYS. Some functions are actually named
1964
something starting with __ and the normal name is an alias. */
1965
#if defined __stub_$2 || defined __stub___$2
1977
if ac_fn_c_try_link "$LINENO"; then :
1982
rm -f core conftest.err conftest.$ac_objext \
1983
conftest$ac_exeext conftest.$ac_ext
1986
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1987
$as_echo "$ac_res" >&6; }
1988
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1990
} @%:@ ac_fn_c_check_func
1991
cat >config.log <<_ACEOF
1992
This file contains any messages produced by compilers while
1993
running configure, to aid debugging if configure makes a mistake.
1995
It was created by $as_me, which was
1996
generated by GNU Autoconf 2.67. Invocation command line was
2008
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2009
uname -m = `(uname -m) 2>/dev/null || echo unknown`
2010
uname -r = `(uname -r) 2>/dev/null || echo unknown`
2011
uname -s = `(uname -s) 2>/dev/null || echo unknown`
2012
uname -v = `(uname -v) 2>/dev/null || echo unknown`
2014
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2015
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2017
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2018
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2019
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2020
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2021
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2022
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2023
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2027
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2031
test -z "$as_dir" && as_dir=.
2032
$as_echo "PATH: $as_dir"
2048
# Keep a trace of the command line.
2049
# Strip out --no-create and --no-recursion so they do not pile up.
2050
# Strip out --silent because we don't want to record it for future runs.
2051
# Also quote any args containing shell meta-characters.
2052
# Make two passes to allow for proper duplicate-argument suppression.
2056
ac_must_keep_next=false
2062
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2063
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
2064
| -silent | --silent | --silen | --sile | --sil)
2067
ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2070
1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2072
as_fn_append ac_configure_args1 " '$ac_arg'"
2073
if test $ac_must_keep_next = true; then
2074
ac_must_keep_next=false # Got value, back to normal.
2077
*=* | --config-cache | -C | -disable-* | --disable-* \
2078
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2079
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2080
| -with-* | --with-* | -without-* | --without-* | --x)
2081
case "$ac_configure_args0 " in
2082
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2085
-* ) ac_must_keep_next=true ;;
2088
as_fn_append ac_configure_args " '$ac_arg'"
2093
{ ac_configure_args0=; unset ac_configure_args0;}
2094
{ ac_configure_args1=; unset ac_configure_args1;}
2096
# When interrupted or exit'd, cleanup temporary files, and complete
2097
# config.log. We remove comments because anyway the quotes in there
2098
# would cause problems or look ugly.
2099
# WARNING: Use '\'' to represent an apostrophe within the trap.
2100
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2101
trap 'exit_status=$?
2102
# Save into config.log some information that might help in debugging.
2106
$as_echo "## ---------------- ##
2107
## Cache variables. ##
2108
## ---------------- ##"
2110
# The following way of writing the cache mishandles newlines in values,
2112
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2113
eval ac_val=\$$ac_var
2117
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2118
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2121
_ | IFS | as_nl) ;; #(
2122
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2123
*) { eval $ac_var=; unset $ac_var;} ;;
2128
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2129
*${as_nl}ac_space=\ *)
2131
"s/'\''/'\''\\\\'\'''\''/g;
2132
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2135
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2142
$as_echo "## ----------------- ##
2143
## Output variables. ##
2144
## ----------------- ##"
2146
for ac_var in $ac_subst_vars
2148
eval ac_val=\$$ac_var
2150
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2152
$as_echo "$ac_var='\''$ac_val'\''"
2156
if test -n "$ac_subst_files"; then
2157
$as_echo "## ------------------- ##
2158
## File substitutions. ##
2159
## ------------------- ##"
2161
for ac_var in $ac_subst_files
2163
eval ac_val=\$$ac_var
2165
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2167
$as_echo "$ac_var='\''$ac_val'\''"
2172
if test -s confdefs.h; then
2173
$as_echo "## ----------- ##
2180
test "$ac_signal" != 0 &&
2181
$as_echo "$as_me: caught signal $ac_signal"
2182
$as_echo "$as_me: exit $exit_status"
2184
rm -f core *.core core.conftest.* &&
2185
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2188
for ac_signal in 1 2 13 15; do
2189
trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2193
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2194
rm -f -r conftest* confdefs.h
2196
$as_echo "/* confdefs.h */" > confdefs.h
2198
# Predefined preprocessor variables.
2200
cat >>confdefs.h <<_ACEOF
2201
@%:@define PACKAGE_NAME "$PACKAGE_NAME"
2204
cat >>confdefs.h <<_ACEOF
2205
@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2208
cat >>confdefs.h <<_ACEOF
2209
@%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
2212
cat >>confdefs.h <<_ACEOF
2213
@%:@define PACKAGE_STRING "$PACKAGE_STRING"
2216
cat >>confdefs.h <<_ACEOF
2217
@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2220
cat >>confdefs.h <<_ACEOF
2221
@%:@define PACKAGE_URL "$PACKAGE_URL"
2225
# Let the site file select an alternate cache file if it wants to.
2226
# Prefer an explicitly selected file to automatically selected ones.
2229
if test -n "$CONFIG_SITE"; then
2230
# We do not want a PATH search for config.site.
2231
case $CONFIG_SITE in @%:@((
2232
-*) ac_site_file1=./$CONFIG_SITE;;
2233
*/*) ac_site_file1=$CONFIG_SITE;;
2234
*) ac_site_file1=./$CONFIG_SITE;;
2236
elif test "x$prefix" != xNONE; then
2237
ac_site_file1=$prefix/share/config.site
2238
ac_site_file2=$prefix/etc/config.site
2240
ac_site_file1=$ac_default_prefix/share/config.site
2241
ac_site_file2=$ac_default_prefix/etc/config.site
2243
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2245
test "x$ac_site_file" = xNONE && continue
2246
if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2247
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2248
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2249
sed 's/^/| /' "$ac_site_file" >&5
2251
|| { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2252
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2253
as_fn_error $? "failed to load site script $ac_site_file
2254
See \`config.log' for more details" "$LINENO" 5 ; }
2258
if test -r "$cache_file"; then
2259
# Some versions of bash will fail to source /dev/null (special files
2260
# actually), so we avoid doing that. DJGPP emulates it as a regular file.
2261
if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2262
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2263
$as_echo "$as_me: loading cache $cache_file" >&6;}
2265
[\\/]* | ?:[\\/]* ) . "$cache_file";;
2266
*) . "./$cache_file";;
2270
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2271
$as_echo "$as_me: creating cache $cache_file" >&6;}
2275
# Check that the precious variables saved in the cache have kept the same
2277
ac_cache_corrupted=false
2278
for ac_var in $ac_precious_vars; do
2279
eval ac_old_set=\$ac_cv_env_${ac_var}_set
2280
eval ac_new_set=\$ac_env_${ac_var}_set
2281
eval ac_old_val=\$ac_cv_env_${ac_var}_value
2282
eval ac_new_val=\$ac_env_${ac_var}_value
2283
case $ac_old_set,$ac_new_set in
2285
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2286
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2287
ac_cache_corrupted=: ;;
2289
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2290
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2291
ac_cache_corrupted=: ;;
2294
if test "x$ac_old_val" != "x$ac_new_val"; then
2295
# differences in whitespace do not lead to failure.
2296
ac_old_val_w=`echo x $ac_old_val`
2297
ac_new_val_w=`echo x $ac_new_val`
2298
if test "$ac_old_val_w" != "$ac_new_val_w"; then
2299
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2300
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2301
ac_cache_corrupted=:
2303
{ $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2304
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2305
eval $ac_var=\$ac_old_val
2307
{ $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2308
$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2309
{ $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2310
$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2313
# Pass precious variables to config.status.
2314
if test "$ac_new_set" = set; then
2316
*\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2317
*) ac_arg=$ac_var=$ac_new_val ;;
2319
case " $ac_configure_args " in
2320
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2321
*) as_fn_append ac_configure_args " '$ac_arg'" ;;
2325
if $ac_cache_corrupted; then
2326
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2327
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2328
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2329
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2330
as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2332
## -------------------- ##
2333
## Main body of script. ##
2334
## -------------------- ##
2337
ac_cpp='$CPP $CPPFLAGS'
2338
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2339
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2340
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2344
am__api_version='1.11'
2347
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2348
if test -f "$ac_dir/install-sh"; then
2350
ac_install_sh="$ac_aux_dir/install-sh -c"
2352
elif test -f "$ac_dir/install.sh"; then
2354
ac_install_sh="$ac_aux_dir/install.sh -c"
2356
elif test -f "$ac_dir/shtool"; then
2358
ac_install_sh="$ac_aux_dir/shtool install -c"
2362
if test -z "$ac_aux_dir"; then
2363
as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2366
# These three variables are undocumented and unsupported,
2367
# and are intended to be withdrawn in a future Autoconf release.
2368
# They can cause serious problems if a builder's source tree is in a directory
2369
# whose full name contains unusual characters.
2370
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2371
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2372
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2375
# Find a good install program. We prefer a C program (faster),
2376
# so one script is as good as another. But avoid the broken or
2377
# incompatible versions:
2378
# SysV /etc/install, /usr/sbin/install
2379
# SunOS /usr/etc/install
2380
# IRIX /sbin/install
2382
# AmigaOS /C/install, which installs bootblocks on floppy discs
2383
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2384
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2385
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2386
# OS/2's system install, which has a completely different semantic
2387
# ./install, which can be erroneously created by make from ./install.sh.
2388
# Reject install programs that cannot install multiple files.
2389
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2390
$as_echo_n "checking for a BSD-compatible install... " >&6; }
2391
if test -z "$INSTALL"; then
2392
if test "${ac_cv_path_install+set}" = set; then :
2393
$as_echo_n "(cached) " >&6
2395
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2399
test -z "$as_dir" && as_dir=.
2400
# Account for people who put trailing slashes in PATH elements.
2401
case $as_dir/ in @%:@((
2402
./ | .// | /[cC]/* | \
2403
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2404
?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2407
# OSF1 and SCO ODT 3.0 have their own names for install.
2408
# Don't use installbsd from OSF since it installs stuff as root
2410
for ac_prog in ginstall scoinst install; do
2411
for ac_exec_ext in '' $ac_executable_extensions; do
2412
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2413
if test $ac_prog = install &&
2414
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2415
# AIX install. It has an incompatible calling convention.
2417
elif test $ac_prog = install &&
2418
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2419
# program-specific install script used by HP pwplus--don't use.
2422
rm -rf conftest.one conftest.two conftest.dir
2423
echo one > conftest.one
2424
echo two > conftest.two
2426
if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2427
test -s conftest.one && test -s conftest.two &&
2428
test -s conftest.dir/conftest.one &&
2429
test -s conftest.dir/conftest.two
2431
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2444
rm -rf conftest.one conftest.two conftest.dir
2447
if test "${ac_cv_path_install+set}" = set; then
2448
INSTALL=$ac_cv_path_install
2450
# As a last resort, use the slow shell script. Don't cache a
2451
# value for INSTALL within a source directory, because that will
2452
# break other packages using the cache if that directory is
2453
# removed, or if the value is a relative name.
2454
INSTALL=$ac_install_sh
2457
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2458
$as_echo "$INSTALL" >&6; }
2460
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2461
# It thinks the first close brace ends the variable substitution.
2462
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2464
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2466
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2468
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2469
$as_echo_n "checking whether build environment is sane... " >&6; }
2472
echo timestamp > conftest.file
2473
# Reject unsafe characters in $srcdir or the absolute working directory
2474
# name. Accept space and tab only in the latter.
2478
*[\\\"\#\$\&\'\`$am_lf]*)
2479
as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5 ;;
2482
*[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2483
as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5 ;;
2486
# Do `set' in a subshell so we don't clobber the current shell's
2487
# arguments. Must try -L first in case configure is actually a
2488
# symlink; some systems play weird games with the mod time of symlinks
2489
# (eg FreeBSD returns the mod time of the symlink's containing
2492
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2493
if test "$*" = "X"; then
2495
set X `ls -t "$srcdir/configure" conftest.file`
2498
if test "$*" != "X $srcdir/configure conftest.file" \
2499
&& test "$*" != "X conftest.file $srcdir/configure"; then
2501
# If neither matched, then we have a broken ls. This can happen
2502
# if, for instance, CONFIG_SHELL is bash and it inherits a
2503
# broken ls alias from the environment. This has actually
2504
# happened. Such a system could not be considered "sane".
2505
as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2506
alias in your environment" "$LINENO" 5
2509
test "$2" = conftest.file
2515
as_fn_error $? "newly created file is older than distributed files!
2516
Check your system clock" "$LINENO" 5
2518
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2519
$as_echo "yes" >&6; }
2520
test "$program_prefix" != NONE &&
2521
program_transform_name="s&^&$program_prefix&;$program_transform_name"
2522
# Use a double $ so make ignores it.
2523
test "$program_suffix" != NONE &&
2524
program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2525
# Double any \ or $.
2526
# By default was `s,x,x', remove it if useless.
2527
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2528
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2530
# expand $ac_aux_dir to an absolute path
2531
am_aux_dir=`cd $ac_aux_dir && pwd`
2533
if test x"${MISSING+set}" != xset; then
2536
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2538
MISSING="\${SHELL} $am_aux_dir/missing" ;;
2541
# Use eval to expand $SHELL
2542
if eval "$MISSING --run true"; then
2543
am_missing_run="$MISSING --run "
2546
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2547
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2550
if test x"${install_sh}" != xset; then
2553
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2555
install_sh="\${SHELL} $am_aux_dir/install-sh"
2559
# Installed binaries are usually stripped using `strip' when the user
2560
# run `make install-strip'. However `strip' might not be the right
2561
# tool to use in cross-compilation environments, therefore Automake
2562
# will honor the `STRIP' environment variable to overrule this program.
2563
if test "$cross_compiling" != no; then
2564
if test -n "$ac_tool_prefix"; then
2565
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2566
set dummy ${ac_tool_prefix}strip; ac_word=$2
2567
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2568
$as_echo_n "checking for $ac_word... " >&6; }
2569
if test "${ac_cv_prog_STRIP+set}" = set; then :
2570
$as_echo_n "(cached) " >&6
2572
if test -n "$STRIP"; then
2573
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2575
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2579
test -z "$as_dir" && as_dir=.
2580
for ac_exec_ext in '' $ac_executable_extensions; do
2581
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2582
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2583
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2592
STRIP=$ac_cv_prog_STRIP
2593
if test -n "$STRIP"; then
2594
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2595
$as_echo "$STRIP" >&6; }
2597
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2598
$as_echo "no" >&6; }
2603
if test -z "$ac_cv_prog_STRIP"; then
2605
# Extract the first word of "strip", so it can be a program name with args.
2606
set dummy strip; ac_word=$2
2607
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2608
$as_echo_n "checking for $ac_word... " >&6; }
2609
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2610
$as_echo_n "(cached) " >&6
2612
if test -n "$ac_ct_STRIP"; then
2613
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2615
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2619
test -z "$as_dir" && as_dir=.
2620
for ac_exec_ext in '' $ac_executable_extensions; do
2621
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2622
ac_cv_prog_ac_ct_STRIP="strip"
2623
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2632
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2633
if test -n "$ac_ct_STRIP"; then
2634
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2635
$as_echo "$ac_ct_STRIP" >&6; }
2637
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2638
$as_echo "no" >&6; }
2641
if test "x$ac_ct_STRIP" = x; then
2644
case $cross_compiling:$ac_tool_warned in
2646
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2647
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2648
ac_tool_warned=yes ;;
2653
STRIP="$ac_cv_prog_STRIP"
2657
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2659
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2660
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2661
if test -z "$MKDIR_P"; then
2662
if test "${ac_cv_path_mkdir+set}" = set; then :
2663
$as_echo_n "(cached) " >&6
2665
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2666
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2669
test -z "$as_dir" && as_dir=.
2670
for ac_prog in mkdir gmkdir; do
2671
for ac_exec_ext in '' $ac_executable_extensions; do
2672
{ test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2673
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2674
'mkdir (GNU coreutils) '* | \
2675
'mkdir (coreutils) '* | \
2676
'mkdir (fileutils) '4.1*)
2677
ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2687
test -d ./--version && rmdir ./--version
2688
if test "${ac_cv_path_mkdir+set}" = set; then
2689
MKDIR_P="$ac_cv_path_mkdir -p"
2691
# As a last resort, use the slow shell script. Don't cache a
2692
# value for MKDIR_P within a source directory, because that will
2693
# break other packages using the cache if that directory is
2694
# removed, or if the value is a relative name.
2695
MKDIR_P="$ac_install_sh -d"
2698
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2699
$as_echo "$MKDIR_P" >&6; }
2703
[\\/$]* | ?:[\\/]*) ;;
2704
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2707
for ac_prog in gawk mawk nawk awk
2709
# Extract the first word of "$ac_prog", so it can be a program name with args.
2710
set dummy $ac_prog; ac_word=$2
2711
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2712
$as_echo_n "checking for $ac_word... " >&6; }
2713
if test "${ac_cv_prog_AWK+set}" = set; then :
2714
$as_echo_n "(cached) " >&6
2716
if test -n "$AWK"; then
2717
ac_cv_prog_AWK="$AWK" # Let the user override the test.
2719
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2723
test -z "$as_dir" && as_dir=.
2724
for ac_exec_ext in '' $ac_executable_extensions; do
2725
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2726
ac_cv_prog_AWK="$ac_prog"
2727
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2737
if test -n "$AWK"; then
2738
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2739
$as_echo "$AWK" >&6; }
2741
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2742
$as_echo "no" >&6; }
2746
test -n "$AWK" && break
2749
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2750
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2752
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2753
if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
2754
$as_echo_n "(cached) " >&6
2756
cat >conftest.make <<\_ACEOF
2759
@echo '@@@%%%=$(MAKE)=@@@%%%'
2761
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2762
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2764
eval ac_cv_prog_make_${ac_make}_set=yes;;
2766
eval ac_cv_prog_make_${ac_make}_set=no;;
2770
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2771
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2772
$as_echo "yes" >&6; }
2775
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2776
$as_echo "no" >&6; }
2777
SET_MAKE="MAKE=${MAKE-make}"
2780
rm -rf .tst 2>/dev/null
2781
mkdir .tst 2>/dev/null
2782
if test -d .tst; then
2787
rmdir .tst 2>/dev/null
2789
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2790
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2791
# is not polluted with repeated "-I."
2792
am__isrc=' -I$(srcdir)'
2793
# test to see if srcdir already configured
2794
if test -f $srcdir/config.status; then
2795
as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2799
# test whether we have cygpath
2800
if test -z "$CYGPATH_W"; then
2801
if (cygpath --version) >/dev/null 2>/dev/null; then
2802
CYGPATH_W='cygpath -w'
2809
# Define the identity of the package.
2810
PACKAGE=libapparmor1
2814
cat >>confdefs.h <<_ACEOF
2815
@%:@define PACKAGE "$PACKAGE"
2819
cat >>confdefs.h <<_ACEOF
2820
@%:@define VERSION "$VERSION"
2823
# Some tools Automake needs.
2825
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2828
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2831
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2834
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2837
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2839
# We need awk for the "check" target. The system "awk" is bad on
2841
# Always define AMTAR for backward compatibility.
2843
AMTAR=${AMTAR-"${am_missing_run}tar"}
2845
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2852
DEPDIR="${am__leading_dot}deps"
2854
ac_config_commands="$ac_config_commands depfiles"
2857
am_make=${MAKE-make}
2858
cat > confinc << 'END'
2860
@echo this is the am__doit target
2863
# If we don't find an include directive, just comment out the code.
2864
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2865
$as_echo_n "checking for style of include used by $am_make... " >&6; }
2869
# First try GNU make style include.
2870
echo "include confinc" > confmf
2871
# Ignore all kinds of additional output from `make'.
2872
case `$am_make -s -f confmf 2> /dev/null` in #(
2873
*the\ am__doit\ target*)
2879
# Now try BSD make style include.
2880
if test "$am__include" = "#"; then
2881
echo '.include "confinc"' > confmf
2882
case `$am_make -s -f confmf 2> /dev/null` in #(
2883
*the\ am__doit\ target*)
2884
am__include=.include
2892
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2893
$as_echo "$_am_result" >&6; }
2894
rm -f confinc confmf
2896
@%:@ Check whether --enable-dependency-tracking was given.
2897
if test "${enable_dependency_tracking+set}" = set; then :
2898
enableval=$enable_dependency_tracking;
2901
if test "x$enable_dependency_tracking" != xno; then
2902
am_depcomp="$ac_aux_dir/depcomp"
2905
if test "x$enable_dependency_tracking" != xno; then
2915
ac_cpp='$CPP $CPPFLAGS'
2916
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2917
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2918
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2919
if test -n "$ac_tool_prefix"; then
2920
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2921
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2922
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2923
$as_echo_n "checking for $ac_word... " >&6; }
2924
if test "${ac_cv_prog_CC+set}" = set; then :
2925
$as_echo_n "(cached) " >&6
2927
if test -n "$CC"; then
2928
ac_cv_prog_CC="$CC" # Let the user override the test.
2930
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2934
test -z "$as_dir" && as_dir=.
2935
for ac_exec_ext in '' $ac_executable_extensions; do
2936
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2937
ac_cv_prog_CC="${ac_tool_prefix}gcc"
2938
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2948
if test -n "$CC"; then
2949
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2950
$as_echo "$CC" >&6; }
2952
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2953
$as_echo "no" >&6; }
2958
if test -z "$ac_cv_prog_CC"; then
2960
# Extract the first word of "gcc", so it can be a program name with args.
2961
set dummy gcc; ac_word=$2
2962
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2963
$as_echo_n "checking for $ac_word... " >&6; }
2964
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2965
$as_echo_n "(cached) " >&6
2967
if test -n "$ac_ct_CC"; then
2968
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2970
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2974
test -z "$as_dir" && as_dir=.
2975
for ac_exec_ext in '' $ac_executable_extensions; do
2976
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2977
ac_cv_prog_ac_ct_CC="gcc"
2978
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2987
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2988
if test -n "$ac_ct_CC"; then
2989
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2990
$as_echo "$ac_ct_CC" >&6; }
2992
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2993
$as_echo "no" >&6; }
2996
if test "x$ac_ct_CC" = x; then
2999
case $cross_compiling:$ac_tool_warned in
3001
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3002
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3003
ac_tool_warned=yes ;;
3011
if test -z "$CC"; then
3012
if test -n "$ac_tool_prefix"; then
3013
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3014
set dummy ${ac_tool_prefix}cc; ac_word=$2
3015
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3016
$as_echo_n "checking for $ac_word... " >&6; }
3017
if test "${ac_cv_prog_CC+set}" = set; then :
3018
$as_echo_n "(cached) " >&6
3020
if test -n "$CC"; then
3021
ac_cv_prog_CC="$CC" # Let the user override the test.
3023
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3027
test -z "$as_dir" && as_dir=.
3028
for ac_exec_ext in '' $ac_executable_extensions; do
3029
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3030
ac_cv_prog_CC="${ac_tool_prefix}cc"
3031
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3041
if test -n "$CC"; then
3042
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3043
$as_echo "$CC" >&6; }
3045
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3046
$as_echo "no" >&6; }
3052
if test -z "$CC"; then
3053
# Extract the first word of "cc", so it can be a program name with args.
3054
set dummy cc; ac_word=$2
3055
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3056
$as_echo_n "checking for $ac_word... " >&6; }
3057
if test "${ac_cv_prog_CC+set}" = set; then :
3058
$as_echo_n "(cached) " >&6
3060
if test -n "$CC"; then
3061
ac_cv_prog_CC="$CC" # Let the user override the test.
3064
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3068
test -z "$as_dir" && as_dir=.
3069
for ac_exec_ext in '' $ac_executable_extensions; do
3070
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3071
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3072
ac_prog_rejected=yes
3076
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3083
if test $ac_prog_rejected = yes; then
3084
# We found a bogon in the path, so make sure we never use it.
3085
set dummy $ac_cv_prog_CC
3087
if test $@%:@ != 0; then
3088
# We chose a different compiler from the bogus one.
3089
# However, it has the same basename, so the bogon will be chosen
3090
# first if we set CC to just the basename; use the full file name.
3092
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3098
if test -n "$CC"; then
3099
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3100
$as_echo "$CC" >&6; }
3102
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3103
$as_echo "no" >&6; }
3108
if test -z "$CC"; then
3109
if test -n "$ac_tool_prefix"; then
3110
for ac_prog in cl.exe
3112
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3113
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3114
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3115
$as_echo_n "checking for $ac_word... " >&6; }
3116
if test "${ac_cv_prog_CC+set}" = set; then :
3117
$as_echo_n "(cached) " >&6
3119
if test -n "$CC"; then
3120
ac_cv_prog_CC="$CC" # Let the user override the test.
3122
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3126
test -z "$as_dir" && as_dir=.
3127
for ac_exec_ext in '' $ac_executable_extensions; do
3128
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3129
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3130
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3140
if test -n "$CC"; then
3141
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3142
$as_echo "$CC" >&6; }
3144
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3145
$as_echo "no" >&6; }
3149
test -n "$CC" && break
3152
if test -z "$CC"; then
3154
for ac_prog in cl.exe
3156
# Extract the first word of "$ac_prog", so it can be a program name with args.
3157
set dummy $ac_prog; ac_word=$2
3158
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3159
$as_echo_n "checking for $ac_word... " >&6; }
3160
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3161
$as_echo_n "(cached) " >&6
3163
if test -n "$ac_ct_CC"; then
3164
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3166
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3170
test -z "$as_dir" && as_dir=.
3171
for ac_exec_ext in '' $ac_executable_extensions; do
3172
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3173
ac_cv_prog_ac_ct_CC="$ac_prog"
3174
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3183
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3184
if test -n "$ac_ct_CC"; then
3185
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3186
$as_echo "$ac_ct_CC" >&6; }
3188
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3189
$as_echo "no" >&6; }
3193
test -n "$ac_ct_CC" && break
3196
if test "x$ac_ct_CC" = x; then
3199
case $cross_compiling:$ac_tool_warned in
3201
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3202
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3203
ac_tool_warned=yes ;;
3212
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3213
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3214
as_fn_error $? "no acceptable C compiler found in \$PATH
3215
See \`config.log' for more details" "$LINENO" 5 ; }
3217
# Provide some information about the compiler.
3218
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3221
for ac_option in --version -v -V -qversion; do
3222
{ { ac_try="$ac_compiler $ac_option >&5"
3224
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3225
*) ac_try_echo=$ac_try;;
3227
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3228
$as_echo "$ac_try_echo"; } >&5
3229
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
3231
if test -s conftest.err; then
3233
... rest of stderr output deleted ...
3234
10q' conftest.err >conftest.er1
3235
cat conftest.er1 >&5
3237
rm -f conftest.er1 conftest.err
3238
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3239
test $ac_status = 0; }
3242
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3243
/* end confdefs.h. */
3253
ac_clean_files_save=$ac_clean_files
3254
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3255
# Try to create an executable without -o first, disregard a.out.
3256
# It will help us diagnose broken compilers, and finding out an intuition
3258
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3259
$as_echo_n "checking whether the C compiler works... " >&6; }
3260
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3262
# The possible output files:
3263
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3266
for ac_file in $ac_files
3269
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3270
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
3275
if { { ac_try="$ac_link_default"
3277
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3278
*) ac_try_echo=$ac_try;;
3280
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3281
$as_echo "$ac_try_echo"; } >&5
3282
(eval "$ac_link_default") 2>&5
3284
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3285
test $ac_status = 0; }; then :
3286
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3287
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3288
# in a Makefile. We should not override ac_cv_exeext if it was cached,
3289
# so that the user can short-circuit this test for compilers unknown to
3291
for ac_file in $ac_files ''
3293
test -f "$ac_file" || continue
3295
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3298
# We found the default executable, but exeext='' is most
3302
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3304
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3306
# We set ac_cv_exeext here because the later test for it is not
3307
# safe: cross compilers may not add the suffix if given an `-o'
3308
# argument, so we may need to know it at that point already.
3309
# Even if this section looks crufty: it has the advantage of
3316
test "$ac_cv_exeext" = no && ac_cv_exeext=
3321
if test -z "$ac_file"; then :
3322
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3323
$as_echo "no" >&6; }
3324
$as_echo "$as_me: failed program was:" >&5
3325
sed 's/^/| /' conftest.$ac_ext >&5
3327
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3328
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3329
as_fn_error 77 "C compiler cannot create executables
3330
See \`config.log' for more details" "$LINENO" 5 ; }
3332
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3333
$as_echo "yes" >&6; }
3335
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3336
$as_echo_n "checking for C compiler default output file name... " >&6; }
3337
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3338
$as_echo "$ac_file" >&6; }
3339
ac_exeext=$ac_cv_exeext
3341
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3342
ac_clean_files=$ac_clean_files_save
3343
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3344
$as_echo_n "checking for suffix of executables... " >&6; }
3345
if { { ac_try="$ac_link"
3347
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3348
*) ac_try_echo=$ac_try;;
3350
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3351
$as_echo "$ac_try_echo"; } >&5
3352
(eval "$ac_link") 2>&5
3354
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3355
test $ac_status = 0; }; then :
3356
# If both `conftest.exe' and `conftest' are `present' (well, observable)
3357
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3358
# work properly (i.e., refer to `conftest.exe'), while it won't with
3360
for ac_file in conftest.exe conftest conftest.*; do
3361
test -f "$ac_file" || continue
3363
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3364
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3370
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3371
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3372
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3373
See \`config.log' for more details" "$LINENO" 5 ; }
3375
rm -f conftest conftest$ac_cv_exeext
3376
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3377
$as_echo "$ac_cv_exeext" >&6; }
3379
rm -f conftest.$ac_ext
3380
EXEEXT=$ac_cv_exeext
3382
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3383
/* end confdefs.h. */
3384
@%:@include <stdio.h>
3388
FILE *f = fopen ("conftest.out", "w");
3389
return ferror (f) || fclose (f) != 0;
3395
ac_clean_files="$ac_clean_files conftest.out"
3396
# Check that the compiler produces executables we can run. If not, either
3397
# the compiler is broken, or we cross compile.
3398
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3399
$as_echo_n "checking whether we are cross compiling... " >&6; }
3400
if test "$cross_compiling" != yes; then
3401
{ { ac_try="$ac_link"
3403
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3404
*) ac_try_echo=$ac_try;;
3406
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3407
$as_echo "$ac_try_echo"; } >&5
3408
(eval "$ac_link") 2>&5
3410
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3411
test $ac_status = 0; }
3412
if { ac_try='./conftest$ac_cv_exeext'
3413
{ { case "(($ac_try" in
3414
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3415
*) ac_try_echo=$ac_try;;
3417
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3418
$as_echo "$ac_try_echo"; } >&5
3419
(eval "$ac_try") 2>&5
3421
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3422
test $ac_status = 0; }; }; then
3425
if test "$cross_compiling" = maybe; then
3428
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3429
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3430
as_fn_error $? "cannot run C compiled programs.
3431
If you meant to cross compile, use \`--host'.
3432
See \`config.log' for more details" "$LINENO" 5 ; }
3436
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3437
$as_echo "$cross_compiling" >&6; }
3439
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3440
ac_clean_files=$ac_clean_files_save
3441
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3442
$as_echo_n "checking for suffix of object files... " >&6; }
3443
if test "${ac_cv_objext+set}" = set; then :
3444
$as_echo_n "(cached) " >&6
3446
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3447
/* end confdefs.h. */
3457
rm -f conftest.o conftest.obj
3458
if { { ac_try="$ac_compile"
3460
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3461
*) ac_try_echo=$ac_try;;
3463
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3464
$as_echo "$ac_try_echo"; } >&5
3465
(eval "$ac_compile") 2>&5
3467
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3468
test $ac_status = 0; }; then :
3469
for ac_file in conftest.o conftest.obj conftest.*; do
3470
test -f "$ac_file" || continue;
3472
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3473
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3478
$as_echo "$as_me: failed program was:" >&5
3479
sed 's/^/| /' conftest.$ac_ext >&5
3481
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3482
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3483
as_fn_error $? "cannot compute suffix of object files: cannot compile
3484
See \`config.log' for more details" "$LINENO" 5 ; }
3486
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3488
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3489
$as_echo "$ac_cv_objext" >&6; }
3490
OBJEXT=$ac_cv_objext
3492
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3493
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3494
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3495
$as_echo_n "(cached) " >&6
3497
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3498
/* end confdefs.h. */
3511
if ac_fn_c_try_compile "$LINENO"; then :
3516
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3517
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3520
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3521
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3522
if test $ac_compiler_gnu = yes; then
3527
ac_test_CFLAGS=${CFLAGS+set}
3528
ac_save_CFLAGS=$CFLAGS
3529
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3530
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3531
if test "${ac_cv_prog_cc_g+set}" = set; then :
3532
$as_echo_n "(cached) " >&6
3534
ac_save_c_werror_flag=$ac_c_werror_flag
3535
ac_c_werror_flag=yes
3538
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3539
/* end confdefs.h. */
3549
if ac_fn_c_try_compile "$LINENO"; then :
3553
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3554
/* end confdefs.h. */
3564
if ac_fn_c_try_compile "$LINENO"; then :
3567
ac_c_werror_flag=$ac_save_c_werror_flag
3569
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3570
/* end confdefs.h. */
3580
if ac_fn_c_try_compile "$LINENO"; then :
3583
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3585
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3587
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3588
ac_c_werror_flag=$ac_save_c_werror_flag
3590
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3591
$as_echo "$ac_cv_prog_cc_g" >&6; }
3592
if test "$ac_test_CFLAGS" = set; then
3593
CFLAGS=$ac_save_CFLAGS
3594
elif test $ac_cv_prog_cc_g = yes; then
3595
if test "$GCC" = yes; then
3601
if test "$GCC" = yes; then
3607
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3608
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3609
if test "${ac_cv_prog_cc_c89+set}" = set; then :
3610
$as_echo_n "(cached) " >&6
3612
ac_cv_prog_cc_c89=no
3614
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3615
/* end confdefs.h. */
3618
#include <sys/types.h>
3619
#include <sys/stat.h>
3620
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3621
struct buf { int x; };
3622
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3623
static char *e (p, i)
3629
static char *f (char * (*g) (char **, int), char **p, ...)
3634
s = g (p, va_arg (v,int));
3639
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3640
function prototypes and stuff, but not '\xHH' hex character constants.
3641
These don't provoke an error unfortunately, instead are silently treated
3642
as 'x'. The following induces an error, until -std is added to get
3643
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3644
array size at least. It's necessary to write '\x00'==0 to get something
3645
that's true only with -std. */
3646
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3648
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3649
inside strings and character constants. */
3651
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3653
int test (int i, double x);
3654
struct s1 {int (*f) (int a);};
3655
struct s2 {int (*f) (double a);};
3656
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3662
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3667
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3668
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3670
CC="$ac_save_CC $ac_arg"
3671
if ac_fn_c_try_compile "$LINENO"; then :
3672
ac_cv_prog_cc_c89=$ac_arg
3674
rm -f core conftest.err conftest.$ac_objext
3675
test "x$ac_cv_prog_cc_c89" != "xno" && break
3677
rm -f conftest.$ac_ext
3682
case "x$ac_cv_prog_cc_c89" in
3684
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3685
$as_echo "none needed" >&6; } ;;
3687
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3688
$as_echo "unsupported" >&6; } ;;
3690
CC="$CC $ac_cv_prog_cc_c89"
3691
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3692
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3694
if test "x$ac_cv_prog_cc_c89" != xno; then :
3699
ac_cpp='$CPP $CPPFLAGS'
3700
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3701
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3702
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3704
depcc="$CC" am_compiler_list=
3706
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3707
$as_echo_n "checking dependency style of $depcc... " >&6; }
3708
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3709
$as_echo_n "(cached) " >&6
3711
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3712
# We make a subdir and do the tests there. Otherwise we can end up
3713
# making bogus files that we don't know about and never remove. For
3714
# instance it was reported that on HP-UX the gcc test will end up
3715
# making a dummy file named `D' -- because `-MD' means `put the output
3718
# Copy depcomp to subdir because otherwise we won't find it if we're
3719
# using a relative directory.
3720
cp "$am_depcomp" conftest.dir
3722
# We will build objects and dependencies in a subdirectory because
3723
# it helps to detect inapplicable dependency modes. For instance
3724
# both Tru64's cc and ICC support -MD to output dependencies as a
3725
# side effect of compilation, but ICC will put the dependencies in
3726
# the current directory while Tru64 will put them in the object
3730
am_cv_CC_dependencies_compiler_type=none
3731
if test "$am_compiler_list" = ""; then
3732
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3735
case " $depcc " in #(
3736
*\ -arch\ *\ -arch\ *) am__universal=true ;;
3739
for depmode in $am_compiler_list; do
3740
# Setup a source with many dependencies, because some compilers
3741
# like to wrap large dependency lists on column 80 (with \), and
3742
# we should not choose a depcomp mode which is confused by this.
3744
# We need to recreate these files for each test, as the compiler may
3745
# overwrite some of them when testing with obscure command lines.
3746
# This happens at least with the AIX C compiler.
3748
for i in 1 2 3 4 5 6; do
3749
echo '#include "conftst'$i'.h"' >> sub/conftest.c
3750
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3751
# Solaris 8's {/usr,}/bin/sh.
3752
touch sub/conftst$i.h
3754
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3756
# We check with `-c' and `-o' for the sake of the "dashmstdout"
3757
# mode. It turns out that the SunPro C++ compiler does not properly
3758
# handle `-M -o', and we need to detect this. Also, some Intel
3759
# versions had trouble with output in subdirs
3760
am__obj=sub/conftest.${OBJEXT-o}
3761
am__minus_obj="-o $am__obj"
3764
# This depmode causes a compiler race in universal mode.
3765
test "$am__universal" = false || continue
3768
# after this tag, mechanisms are not by side-effect, so they'll
3769
# only be used when explicitly requested
3770
if test "x$enable_dependency_tracking" = xyes; then
3776
msvisualcpp | msvcmsys)
3777
# This compiler won't grok `-c -o', but also, the minuso test has
3778
# not run yet. These depmodes are late enough in the game, and
3779
# so weak that their functioning should not be impacted.
3780
am__obj=conftest.${OBJEXT-o}
3785
if depmode=$depmode \
3786
source=sub/conftest.c object=$am__obj \
3787
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3788
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3789
>/dev/null 2>conftest.err &&
3790
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3791
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3792
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3793
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3794
# icc doesn't choke on unknown options, it will just issue warnings
3795
# or remarks (even with -Werror). So we grep stderr for any message
3796
# that says an option was ignored or not supported.
3797
# When given -MP, icc 7.0 and 7.1 complain thusly:
3798
# icc: Command line warning: ignoring option '-M'; no argument required
3799
# The diagnosis changed in icc 8.0:
3800
# icc: Command line remark: option '-MP' not supported
3801
if (grep 'ignoring option' conftest.err ||
3802
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3803
am_cv_CC_dependencies_compiler_type=$depmode
3812
am_cv_CC_dependencies_compiler_type=none
3816
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3817
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3818
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3821
test "x$enable_dependency_tracking" != xno \
3822
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3824
am__fastdepCC_FALSE='#'
3826
am__fastdepCC_TRUE='#'
3827
am__fastdepCC_FALSE=
3832
for ac_prog in flex lex
3834
# Extract the first word of "$ac_prog", so it can be a program name with args.
3835
set dummy $ac_prog; ac_word=$2
3836
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3837
$as_echo_n "checking for $ac_word... " >&6; }
3838
if test "${ac_cv_prog_LEX+set}" = set; then :
3839
$as_echo_n "(cached) " >&6
3841
if test -n "$LEX"; then
3842
ac_cv_prog_LEX="$LEX" # Let the user override the test.
3844
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3848
test -z "$as_dir" && as_dir=.
3849
for ac_exec_ext in '' $ac_executable_extensions; do
3850
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3851
ac_cv_prog_LEX="$ac_prog"
3852
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3862
if test -n "$LEX"; then
3863
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
3864
$as_echo "$LEX" >&6; }
3866
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3867
$as_echo "no" >&6; }
3871
test -n "$LEX" && break
3873
test -n "$LEX" || LEX=":"
3875
if test "x$LEX" != "x:"; then
3876
cat >conftest.l <<_ACEOF
3882
e { yyless (input () != 0); }
3883
f { unput (yytext[0]); }
3884
. { BEGIN INITIAL; }
3886
#ifdef YYTEXT_POINTER
3887
extern char *yytext;
3892
return ! yylex () + ! yywrap ();
3895
{ { ac_try="$LEX conftest.l"
3897
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3898
*) ac_try_echo=$ac_try;;
3900
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3901
$as_echo "$ac_try_echo"; } >&5
3902
(eval "$LEX conftest.l") 2>&5
3904
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3905
test $ac_status = 0; }
3906
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
3907
$as_echo_n "checking lex output file root... " >&6; }
3908
if test "${ac_cv_prog_lex_root+set}" = set; then :
3909
$as_echo_n "(cached) " >&6
3912
if test -f lex.yy.c; then
3913
ac_cv_prog_lex_root=lex.yy
3914
elif test -f lexyy.c; then
3915
ac_cv_prog_lex_root=lexyy
3917
as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
3920
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
3921
$as_echo "$ac_cv_prog_lex_root" >&6; }
3922
LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
3924
if test -z "${LEXLIB+set}"; then
3925
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
3926
$as_echo_n "checking lex library... " >&6; }
3927
if test "${ac_cv_lib_lex+set}" = set; then :
3928
$as_echo_n "(cached) " >&6
3932
ac_cv_lib_lex='none needed'
3933
for ac_lib in '' -lfl -ll; do
3934
LIBS="$ac_lib $ac_save_LIBS"
3935
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3936
/* end confdefs.h. */
3937
`cat $LEX_OUTPUT_ROOT.c`
3939
if ac_fn_c_try_link "$LINENO"; then :
3940
ac_cv_lib_lex=$ac_lib
3942
rm -f core conftest.err conftest.$ac_objext \
3943
conftest$ac_exeext conftest.$ac_ext
3944
test "$ac_cv_lib_lex" != 'none needed' && break
3949
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
3950
$as_echo "$ac_cv_lib_lex" >&6; }
3951
test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
3955
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
3956
$as_echo_n "checking whether yytext is a pointer... " >&6; }
3957
if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
3958
$as_echo_n "(cached) " >&6
3960
# POSIX says lex can declare yytext either as a pointer or an array; the
3961
# default is implementation-dependent. Figure out which it is, since
3962
# not all implementations provide the %pointer and %array declarations.
3963
ac_cv_prog_lex_yytext_pointer=no
3965
LIBS="$LEXLIB $ac_save_LIBS"
3966
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3967
/* end confdefs.h. */
3968
#define YYTEXT_POINTER 1
3969
`cat $LEX_OUTPUT_ROOT.c`
3971
if ac_fn_c_try_link "$LINENO"; then :
3972
ac_cv_prog_lex_yytext_pointer=yes
3974
rm -f core conftest.err conftest.$ac_objext \
3975
conftest$ac_exeext conftest.$ac_ext
3979
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
3980
$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
3981
if test $ac_cv_prog_lex_yytext_pointer = yes; then
3983
$as_echo "@%:@define YYTEXT_POINTER 1" >>confdefs.h
3986
rm -f conftest.l $LEX_OUTPUT_ROOT.c
3989
if test "$LEX" = :; then
3990
LEX=${am_missing_run}flex
3992
for ac_prog in 'bison -y' byacc
3994
# Extract the first word of "$ac_prog", so it can be a program name with args.
3995
set dummy $ac_prog; ac_word=$2
3996
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3997
$as_echo_n "checking for $ac_word... " >&6; }
3998
if test "${ac_cv_prog_YACC+set}" = set; then :
3999
$as_echo_n "(cached) " >&6
4001
if test -n "$YACC"; then
4002
ac_cv_prog_YACC="$YACC" # Let the user override the test.
4004
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4008
test -z "$as_dir" && as_dir=.
4009
for ac_exec_ext in '' $ac_executable_extensions; do
4010
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4011
ac_cv_prog_YACC="$ac_prog"
4012
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4021
YACC=$ac_cv_prog_YACC
4022
if test -n "$YACC"; then
4023
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
4024
$as_echo "$YACC" >&6; }
4026
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4027
$as_echo "no" >&6; }
4031
test -n "$YACC" && break
4033
test -n "$YACC" || YACC="yacc"
4035
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4036
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4037
if test "${ac_cv_path_SED+set}" = set; then :
4038
$as_echo_n "(cached) " >&6
4040
ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4041
for ac_i in 1 2 3 4 5 6 7; do
4042
ac_script="$ac_script$as_nl$ac_script"
4044
echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4045
{ ac_script=; unset ac_script;}
4046
if test -z "$SED"; then
4047
ac_path_SED_found=false
4048
# Loop through the user's path and test for each of PROGNAME-LIST
4049
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4053
test -z "$as_dir" && as_dir=.
4054
for ac_prog in sed gsed; do
4055
for ac_exec_ext in '' $ac_executable_extensions; do
4056
ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4057
{ test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4058
# Check for GNU ac_path_SED and select it if it is found.
4059
# Check for GNU $ac_path_SED
4060
case `"$ac_path_SED" --version 2>&1` in
4062
ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4065
$as_echo_n 0123456789 >"conftest.in"
4068
cat "conftest.in" "conftest.in" >"conftest.tmp"
4069
mv "conftest.tmp" "conftest.in"
4070
cp "conftest.in" "conftest.nl"
4071
$as_echo '' >> "conftest.nl"
4072
"$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4073
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4074
as_fn_arith $ac_count + 1 && ac_count=$as_val
4075
if test $ac_count -gt ${ac_path_SED_max-0}; then
4076
# Best one so far, save it but keep looking for a better one
4077
ac_cv_path_SED="$ac_path_SED"
4078
ac_path_SED_max=$ac_count
4080
# 10*(2^10) chars as input seems more than enough
4081
test $ac_count -gt 10 && break
4083
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4086
$ac_path_SED_found && break 3
4091
if test -z "$ac_cv_path_SED"; then
4092
as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4099
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4100
$as_echo "$ac_cv_path_SED" >&6; }
4101
SED="$ac_cv_path_SED"
4105
# Extract the first word of "swig", so it can be a program name with args.
4106
set dummy swig; ac_word=$2
4107
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4108
$as_echo_n "checking for $ac_word... " >&6; }
4109
if test "${ac_cv_path_SWIG+set}" = set; then :
4110
$as_echo_n "(cached) " >&6
4114
ac_cv_path_SWIG="$SWIG" # Let the user override the test with a path.
4117
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4121
test -z "$as_dir" && as_dir=.
4122
for ac_exec_ext in '' $ac_executable_extensions; do
4123
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4124
ac_cv_path_SWIG="$as_dir/$ac_word$ac_exec_ext"
4125
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4135
SWIG=$ac_cv_path_SWIG
4136
if test -n "$SWIG"; then
4137
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SWIG" >&5
4138
$as_echo "$SWIG" >&6; }
4140
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4141
$as_echo "no" >&6; }
4149
# Extract the first word of "pod2man", so it can be a program name with args.
4150
set dummy pod2man; ac_word=$2
4151
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4152
$as_echo_n "checking for $ac_word... " >&6; }
4153
if test "${ac_cv_prog_POD2MAN+set}" = set; then :
4154
$as_echo_n "(cached) " >&6
4156
if test -n "$POD2MAN"; then
4157
ac_cv_prog_POD2MAN="$POD2MAN" # Let the user override the test.
4159
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4163
test -z "$as_dir" && as_dir=.
4164
for ac_exec_ext in '' $ac_executable_extensions; do
4165
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4166
ac_cv_prog_POD2MAN="pod2man"
4167
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4174
test -z "$ac_cv_prog_POD2MAN" && ac_cv_prog_POD2MAN="no"
4177
POD2MAN=$ac_cv_prog_POD2MAN
4178
if test -n "$POD2MAN"; then
4179
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $POD2MAN" >&5
4180
$as_echo "$POD2MAN" >&6; }
4182
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4183
$as_echo "no" >&6; }
4187
if test "$POD2MAN" = "no"; then
4189
The pod2man program was not found in the default path. pod2man is part of
4190
Perl, which can be retrieved from:
4192
http://www.perl.com/
4194
The latest version at this time is 5.6.1; it is available packaged as the
4197
http://www.perl.com/CPAN/src/stable.tar.gz
4202
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for Python" >&5
4203
$as_echo_n "checking Checking for Python... " >&6; }
4205
@%:@ Check whether --with-python was given.
4206
if test "${with_python+set}" = set; then :
4207
withval=$with_python; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
4208
$as_echo "$withval" >&6; }
4210
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4211
$as_echo "no" >&6; }
4214
if test "$with_python" = "yes"; then
4215
# Extract the first word of "python", so it can be a program name with args.
4216
set dummy python; ac_word=$2
4217
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4218
$as_echo_n "checking for $ac_word... " >&6; }
4219
if test "${ac_cv_path_PYTHON+set}" = set; then :
4220
$as_echo_n "(cached) " >&6
4224
ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4227
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4231
test -z "$as_dir" && as_dir=.
4232
for ac_exec_ext in '' $ac_executable_extensions; do
4233
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4234
ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4235
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4242
test -z "$ac_cv_path_PYTHON" && ac_cv_path_PYTHON="no"
4246
PYTHON=$ac_cv_path_PYTHON
4247
if test -n "$PYTHON"; then
4248
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
4249
$as_echo "$PYTHON" >&6; }
4251
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4252
$as_echo "no" >&6; }
4256
if test x$PYTHON = xno; then
4263
# Allow the use of a (user set) custom python version
4267
# Extract the first word of "python[$PYTHON_VERSION]", so it can be a program name with args.
4268
set dummy python$PYTHON_VERSION; ac_word=$2
4269
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4270
$as_echo_n "checking for $ac_word... " >&6; }
4271
if test "${ac_cv_path_PYTHON+set}" = set; then :
4272
$as_echo_n "(cached) " >&6
4276
ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4279
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4283
test -z "$as_dir" && as_dir=.
4284
for ac_exec_ext in '' $ac_executable_extensions; do
4285
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4286
ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4287
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4297
PYTHON=$ac_cv_path_PYTHON
4298
if test -n "$PYTHON"; then
4299
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
4300
$as_echo "$PYTHON" >&6; }
4302
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4303
$as_echo "no" >&6; }
4307
if test -z "$PYTHON"; then
4308
as_fn_error $? "Cannot find python$PYTHON_VERSION in your system path" "$LINENO" 5
4313
# Check for a version of Python >= 2.1.0
4315
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python >= '2.1.0'" >&5
4316
$as_echo_n "checking for a version of Python >= '2.1.0'... " >&6; }
4317
ac_supports_python_ver=`$PYTHON -c "import sys, string; \
4318
ver = string.split(sys.version)[0]; \
4319
print ver >= '2.1.0'"`
4320
if test "$ac_supports_python_ver" != "True"; then
4321
if test -z "$PYTHON_NOVERSIONCHECK"; then
4322
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4323
$as_echo "no" >&6; }
4324
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4325
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4327
This version of the AC@&t@_PYTHON_DEVEL macro
4328
doesn't work properly with versions of Python before
4329
2.1.0. You may need to re-run configure, setting the
4330
variables PYTHON_CPPFLAGS, PYTHON_LDFLAGS, PYTHON_SITE_PKG,
4331
PYTHON_EXTRA_LIBS and PYTHON_EXTRA_LDFLAGS by hand.
4332
Moreover, to disable this check, set PYTHON_NOVERSIONCHECK
4333
to something else than an empty string.
4335
See \`config.log' for more details" "$LINENO" 5 ; }
4337
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: skip at user request" >&5
4338
$as_echo "skip at user request" >&6; }
4341
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4342
$as_echo "yes" >&6; }
4346
# if the macro parameter ``version'' is set, honour it
4349
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a version of Python " >&5
4350
$as_echo_n "checking for a version of Python ... " >&6; }
4351
ac_supports_python_ver=`$PYTHON -c "import sys, string; \
4352
ver = string.split(sys.version)[0]; \
4354
if test "$ac_supports_python_ver" = "True"; then
4355
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4356
$as_echo "yes" >&6; }
4358
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4359
$as_echo "no" >&6; }
4360
as_fn_error $? "this package requires Python .
4361
If you have it installed, but it isn't the default Python
4362
interpreter in your system path, please pass the PYTHON_VERSION
4363
variable to configure. See \`\`configure --help'' for reference.
4370
# Check if you have distutils, else fail
4372
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the distutils Python package" >&5
4373
$as_echo_n "checking for the distutils Python package... " >&6; }
4374
ac_distutils_result=`$PYTHON -c "import distutils" 2>&1`
4375
if test -z "$ac_distutils_result"; then
4376
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4377
$as_echo "yes" >&6; }
4379
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4380
$as_echo "no" >&6; }
4381
as_fn_error $? "cannot import Python module \"distutils\".
4382
Please check your Python installation. The error was:
4383
$ac_distutils_result" "$LINENO" 5
4388
# Check for Python include path
4390
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python include path" >&5
4391
$as_echo_n "checking for Python include path... " >&6; }
4392
if test -z "$PYTHON_CPPFLAGS"; then
4393
python_path=`$PYTHON -c "import distutils.sysconfig; \
4394
print distutils.sysconfig.get_python_inc();"`
4395
if test -n "${python_path}"; then
4396
python_path="-I$python_path"
4398
PYTHON_CPPFLAGS=$python_path
4400
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CPPFLAGS" >&5
4401
$as_echo "$PYTHON_CPPFLAGS" >&6; }
4405
# Check for Python library path
4407
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python library path" >&5
4408
$as_echo_n "checking for Python library path... " >&6; }
4409
if test -z "$PYTHON_LDFLAGS"; then
4410
# (makes two attempts to ensure we've got a version number
4411
# from the interpreter)
4412
py_version=`$PYTHON -c "from distutils.sysconfig import *; \
4413
from string import join; \
4414
print join(get_config_vars('VERSION'))"`
4415
if test "$py_version" == "None"; then
4416
if test -n "$PYTHON_VERSION"; then
4417
py_version=$PYTHON_VERSION
4419
py_version=`$PYTHON -c "import sys; \
4420
print sys.version[:3]"`
4424
PYTHON_LDFLAGS=`$PYTHON -c "from distutils.sysconfig import *; \
4425
from string import join; \
4426
print '-L' + get_python_lib(0,1), \
4427
'-lpython';"`$py_version
4429
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5
4430
$as_echo "$PYTHON_LDFLAGS" >&6; }
4434
# Check for site packages
4436
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python site-packages path" >&5
4437
$as_echo_n "checking for Python site-packages path... " >&6; }
4438
if test -z "$PYTHON_SITE_PKG"; then
4439
PYTHON_SITE_PKG=`$PYTHON -c "import distutils.sysconfig; \
4440
print distutils.sysconfig.get_python_lib(0,0);"`
4442
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_SITE_PKG" >&5
4443
$as_echo "$PYTHON_SITE_PKG" >&6; }
4447
# libraries which must be linked in when embedding
4449
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra libraries" >&5
4450
$as_echo_n "checking python extra libraries... " >&6; }
4451
if test -z "$PYTHON_EXTRA_LIBS"; then
4452
PYTHON_EXTRA_LIBS=`$PYTHON -c "import distutils.sysconfig; \
4453
conf = distutils.sysconfig.get_config_var; \
4454
print conf('LOCALMODLIBS'), conf('LIBS')"`
4456
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LIBS" >&5
4457
$as_echo "$PYTHON_EXTRA_LIBS" >&6; }
4461
# linking flags needed when embedding
4463
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking python extra linking flags" >&5
4464
$as_echo_n "checking python extra linking flags... " >&6; }
4465
if test -z "$PYTHON_EXTRA_LDFLAGS"; then
4466
PYTHON_EXTRA_LDFLAGS=`$PYTHON -c "import distutils.sysconfig; \
4467
conf = distutils.sysconfig.get_config_var; \
4468
print conf('LINKFORSHARED')"`
4470
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_EXTRA_LDFLAGS" >&5
4471
$as_echo "$PYTHON_EXTRA_LDFLAGS" >&6; }
4475
# final check to see if everything compiles alright
4477
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking consistency of all components of python development environment" >&5
4478
$as_echo_n "checking consistency of all components of python development environment... " >&6; }
4480
ac_cpp='$CPP $CPPFLAGS'
4481
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4482
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4483
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4485
# save current global flags
4486
LIBS="$ac_save_LIBS $PYTHON_LDFLAGS"
4487
CPPFLAGS="$ac_save_CPPFLAGS $PYTHON_CPPFLAGS"
4488
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4489
/* end confdefs.h. */
4503
if ac_fn_c_try_link "$LINENO"; then :
4508
rm -f core conftest.err conftest.$ac_objext \
4509
conftest$ac_exeext conftest.$ac_ext
4511
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pythonexists" >&5
4512
$as_echo "$pythonexists" >&6; }
4514
if test ! "$pythonexists" = "yes"; then
4516
Could not link test program to Python. Maybe the main Python library has been
4517
installed in some non-standard library path. If so, pass it to configure,
4518
via the LDFLAGS environment variable.
4519
Example: ./configure LDFLAGS=\"-L/usr/non-standard-path/python/lib\"
4520
============================================================================
4522
You probably have to install the development version of the Python package
4523
for your distribution. The exact name of this package varies among them.
4524
============================================================================
4529
ac_cpp='$CPP $CPPFLAGS'
4530
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4531
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4532
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4534
# turn back to default flags
4535
CPPFLAGS="$ac_save_CPPFLAGS"
4536
LIBS="$ac_save_LIBS"
4546
# Find any Python interpreter.
4547
if test -z "$PYTHON"; then
4548
for ac_prog in python python2 python3 python3.0 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0
4550
# Extract the first word of "$ac_prog", so it can be a program name with args.
4551
set dummy $ac_prog; ac_word=$2
4552
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4553
$as_echo_n "checking for $ac_word... " >&6; }
4554
if test "${ac_cv_path_PYTHON+set}" = set; then :
4555
$as_echo_n "(cached) " >&6
4559
ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
4562
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4566
test -z "$as_dir" && as_dir=.
4567
for ac_exec_ext in '' $ac_executable_extensions; do
4568
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4569
ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
4570
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4580
PYTHON=$ac_cv_path_PYTHON
4581
if test -n "$PYTHON"; then
4582
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
4583
$as_echo "$PYTHON" >&6; }
4585
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4586
$as_echo "no" >&6; }
4590
test -n "$PYTHON" && break
4592
test -n "$PYTHON" || PYTHON=":"
4595
am_display_PYTHON=python
4598
if test "$PYTHON" = :; then
4599
as_fn_error $? "no suitable Python interpreter found" "$LINENO" 5
4603
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
4604
$as_echo_n "checking for $am_display_PYTHON version... " >&6; }
4605
if test "${am_cv_python_version+set}" = set; then :
4606
$as_echo_n "(cached) " >&6
4608
am_cv_python_version=`$PYTHON -c "import sys; sys.stdout.write(sys.version[:3])"`
4610
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
4611
$as_echo "$am_cv_python_version" >&6; }
4612
PYTHON_VERSION=$am_cv_python_version
4616
PYTHON_PREFIX='${prefix}'
4618
PYTHON_EXEC_PREFIX='${exec_prefix}'
4622
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
4623
$as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
4624
if test "${am_cv_python_platform+set}" = set; then :
4625
$as_echo_n "(cached) " >&6
4627
am_cv_python_platform=`$PYTHON -c "import sys; sys.stdout.write(sys.platform)"`
4629
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
4630
$as_echo "$am_cv_python_platform" >&6; }
4631
PYTHON_PLATFORM=$am_cv_python_platform
4636
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
4637
$as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
4638
if test "${am_cv_python_pythondir+set}" = set; then :
4639
$as_echo_n "(cached) " >&6
4641
if test "x$prefix" = xNONE
4643
am_py_prefix=$ac_default_prefix
4645
am_py_prefix=$prefix
4647
am_cv_python_pythondir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(0,0,prefix='$am_py_prefix'))" 2>/dev/null ||
4648
echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
4649
case $am_cv_python_pythondir in
4651
am__strip_prefix=`echo "$am_py_prefix" | sed 's|.|.|g'`
4652
am_cv_python_pythondir=`echo "$am_cv_python_pythondir" | sed "s,^$am__strip_prefix,$PYTHON_PREFIX,"`
4655
case $am_py_prefix in
4658
am_cv_python_pythondir=$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages
4665
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
4666
$as_echo "$am_cv_python_pythondir" >&6; }
4667
pythondir=$am_cv_python_pythondir
4671
pkgpythondir=\${pythondir}/$PACKAGE
4674
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
4675
$as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
4676
if test "${am_cv_python_pyexecdir+set}" = set; then :
4677
$as_echo_n "(cached) " >&6
4679
if test "x$exec_prefix" = xNONE
4681
am_py_exec_prefix=$am_py_prefix
4683
am_py_exec_prefix=$exec_prefix
4685
am_cv_python_pyexecdir=`$PYTHON -c "import sys; from distutils import sysconfig; sys.stdout.write(sysconfig.get_python_lib(1,0,prefix='$am_py_exec_prefix'))" 2>/dev/null ||
4686
echo "$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
4687
case $am_cv_python_pyexecdir in
4688
$am_py_exec_prefix*)
4689
am__strip_prefix=`echo "$am_py_exec_prefix" | sed 's|.|.|g'`
4690
am_cv_python_pyexecdir=`echo "$am_cv_python_pyexecdir" | sed "s,^$am__strip_prefix,$PYTHON_EXEC_PREFIX,"`
4693
case $am_py_exec_prefix in
4696
am_cv_python_pyexecdir=$PYTHON_EXEC_PREFIX/lib/python$PYTHON_VERSION/site-packages
4703
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
4704
$as_echo "$am_cv_python_pyexecdir" >&6; }
4705
pyexecdir=$am_cv_python_pyexecdir
4709
pkgpyexecdir=\${pyexecdir}/$PACKAGE
4719
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for perl" >&5
4720
$as_echo_n "checking Checking for perl... " >&6; }
4722
@%:@ Check whether --with-perl was given.
4723
if test "${with_perl+set}" = set; then :
4724
withval=$with_perl; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
4725
$as_echo "$withval" >&6; }
4727
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4728
$as_echo "no" >&6; }
4731
if test "$with_perl" = "yes"; then
4732
# Extract the first word of "perl", so it can be a program name with args.
4733
set dummy perl; ac_word=$2
4734
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4735
$as_echo_n "checking for $ac_word... " >&6; }
4736
if test "${ac_cv_path_PERL+set}" = set; then :
4737
$as_echo_n "(cached) " >&6
4741
ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4744
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4748
test -z "$as_dir" && as_dir=.
4749
for ac_exec_ext in '' $ac_executable_extensions; do
4750
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4751
ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4752
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4759
test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="no"
4763
PERL=$ac_cv_path_PERL
4764
if test -n "$PERL"; then
4765
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4766
$as_echo "$PERL" >&6; }
4768
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4769
$as_echo "no" >&6; }
4773
if test x$PERL = xno; then
4776
perl_includedir="`$PERL -e 'use Config; print $Config{archlib}'`/CORE"
4777
as_ac_File=`$as_echo "ac_cv_file_$perl_includedir/perl.h" | $as_tr_sh`
4778
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $perl_includedir/perl.h" >&5
4779
$as_echo_n "checking for $perl_includedir/perl.h... " >&6; }
4780
if eval "test \"\${$as_ac_File+set}\"" = set; then :
4781
$as_echo_n "(cached) " >&6
4783
test "$cross_compiling" = yes &&
4784
as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
4785
if test -r "$perl_includedir/perl.h"; then
4786
eval "$as_ac_File=yes"
4788
eval "$as_ac_File=no"
4791
eval ac_res=\$$as_ac_File
4792
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4793
$as_echo "$ac_res" >&6; }
4794
if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
4804
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking Checking for ruby" >&5
4805
$as_echo_n "checking Checking for ruby... " >&6; }
4807
@%:@ Check whether --with-ruby was given.
4808
if test "${with_ruby+set}" = set; then :
4809
withval=$with_ruby; { $as_echo "$as_me:${as_lineno-$LINENO}: result: $withval" >&5
4810
$as_echo "$withval" >&6; }
4812
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4813
$as_echo "no" >&6; }
4816
if test "$with_ruby" = "yes"; then
4817
# Extract the first word of "ruby", so it can be a program name with args.
4818
set dummy ruby; ac_word=$2
4819
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4820
$as_echo_n "checking for $ac_word... " >&6; }
4821
if test "${ac_cv_path_RUBY+set}" = set; then :
4822
$as_echo_n "(cached) " >&6
4826
ac_cv_path_RUBY="$RUBY" # Let the user override the test with a path.
4829
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4833
test -z "$as_dir" && as_dir=.
4834
for ac_exec_ext in '' $ac_executable_extensions; do
4835
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4836
ac_cv_path_RUBY="$as_dir/$ac_word$ac_exec_ext"
4837
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4847
RUBY=$ac_cv_path_RUBY
4848
if test -n "$RUBY"; then
4849
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUBY" >&5
4850
$as_echo "$RUBY" >&6; }
4852
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4853
$as_echo "no" >&6; }
4860
if test x$with_python = xyes; then
4862
HAVE_PYTHON_FALSE='#'
4864
HAVE_PYTHON_TRUE='#'
4868
if test x$with_perl = xyes; then
4876
if test x$with_ruby = xyes; then
4884
if test x$enable_rootlib = xyes; then
4886
BUILD_ROOTLIB_FALSE='#'
4888
BUILD_ROOTLIB_TRUE='#'
4889
BUILD_ROOTLIB_FALSE=
4894
ac_cpp='$CPP $CPPFLAGS'
4895
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4896
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4897
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4898
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4899
$as_echo_n "checking how to run the C preprocessor... " >&6; }
4900
# On Suns, sometimes $CPP names a directory.
4901
if test -n "$CPP" && test -d "$CPP"; then
4904
if test -z "$CPP"; then
4905
if test "${ac_cv_prog_CPP+set}" = set; then :
4906
$as_echo_n "(cached) " >&6
4908
# Double quotes because CPP needs to be expanded
4909
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4912
for ac_c_preproc_warn_flag in '' yes
4914
# Use a header file that comes with gcc, so configuring glibc
4915
# with a fresh cross-compiler works.
4916
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4917
# <limits.h> exists even on freestanding compilers.
4918
# On the NeXT, cc -E runs the code through the compiler's parser,
4919
# not just through cpp. "Syntax error" is here to catch this case.
4920
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4921
/* end confdefs.h. */
4923
@%:@ include <limits.h>
4925
@%:@ include <assert.h>
4929
if ac_fn_c_try_cpp "$LINENO"; then :
4932
# Broken: fails on valid input.
4935
rm -f conftest.err conftest.i conftest.$ac_ext
4937
# OK, works on sane cases. Now check whether nonexistent headers
4938
# can be detected and how.
4939
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4940
/* end confdefs.h. */
4941
@%:@include <ac_nonexistent.h>
4943
if ac_fn_c_try_cpp "$LINENO"; then :
4944
# Broken: success on invalid input.
4947
# Passes both tests.
4951
rm -f conftest.err conftest.i conftest.$ac_ext
4954
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4955
rm -f conftest.i conftest.err conftest.$ac_ext
4956
if $ac_preproc_ok; then :
4968
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4969
$as_echo "$CPP" >&6; }
4971
for ac_c_preproc_warn_flag in '' yes
4973
# Use a header file that comes with gcc, so configuring glibc
4974
# with a fresh cross-compiler works.
4975
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4976
# <limits.h> exists even on freestanding compilers.
4977
# On the NeXT, cc -E runs the code through the compiler's parser,
4978
# not just through cpp. "Syntax error" is here to catch this case.
4979
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4980
/* end confdefs.h. */
4982
@%:@ include <limits.h>
4984
@%:@ include <assert.h>
4988
if ac_fn_c_try_cpp "$LINENO"; then :
4991
# Broken: fails on valid input.
4994
rm -f conftest.err conftest.i conftest.$ac_ext
4996
# OK, works on sane cases. Now check whether nonexistent headers
4997
# can be detected and how.
4998
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4999
/* end confdefs.h. */
5000
@%:@include <ac_nonexistent.h>
5002
if ac_fn_c_try_cpp "$LINENO"; then :
5003
# Broken: success on invalid input.
5006
# Passes both tests.
5010
rm -f conftest.err conftest.i conftest.$ac_ext
5013
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5014
rm -f conftest.i conftest.err conftest.$ac_ext
5015
if $ac_preproc_ok; then :
5018
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5019
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5020
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5021
See \`config.log' for more details" "$LINENO" 5 ; }
5025
ac_cpp='$CPP $CPPFLAGS'
5026
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5027
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5028
ac_compiler_gnu=$ac_cv_c_compiler_gnu
5031
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5032
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5033
if test "${ac_cv_path_GREP+set}" = set; then :
5034
$as_echo_n "(cached) " >&6
5036
if test -z "$GREP"; then
5037
ac_path_GREP_found=false
5038
# Loop through the user's path and test for each of PROGNAME-LIST
5039
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5040
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5043
test -z "$as_dir" && as_dir=.
5044
for ac_prog in grep ggrep; do
5045
for ac_exec_ext in '' $ac_executable_extensions; do
5046
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5047
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5048
# Check for GNU ac_path_GREP and select it if it is found.
5049
# Check for GNU $ac_path_GREP
5050
case `"$ac_path_GREP" --version 2>&1` in
5052
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5055
$as_echo_n 0123456789 >"conftest.in"
5058
cat "conftest.in" "conftest.in" >"conftest.tmp"
5059
mv "conftest.tmp" "conftest.in"
5060
cp "conftest.in" "conftest.nl"
5061
$as_echo 'GREP' >> "conftest.nl"
5062
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5063
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5064
as_fn_arith $ac_count + 1 && ac_count=$as_val
5065
if test $ac_count -gt ${ac_path_GREP_max-0}; then
5066
# Best one so far, save it but keep looking for a better one
5067
ac_cv_path_GREP="$ac_path_GREP"
5068
ac_path_GREP_max=$ac_count
5070
# 10*(2^10) chars as input seems more than enough
5071
test $ac_count -gt 10 && break
5073
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5076
$ac_path_GREP_found && break 3
5081
if test -z "$ac_cv_path_GREP"; then
5082
as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5085
ac_cv_path_GREP=$GREP
5089
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5090
$as_echo "$ac_cv_path_GREP" >&6; }
5091
GREP="$ac_cv_path_GREP"
5094
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5095
$as_echo_n "checking for egrep... " >&6; }
5096
if test "${ac_cv_path_EGREP+set}" = set; then :
5097
$as_echo_n "(cached) " >&6
5099
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5100
then ac_cv_path_EGREP="$GREP -E"
5102
if test -z "$EGREP"; then
5103
ac_path_EGREP_found=false
5104
# Loop through the user's path and test for each of PROGNAME-LIST
5105
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5106
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5109
test -z "$as_dir" && as_dir=.
5110
for ac_prog in egrep; do
5111
for ac_exec_ext in '' $ac_executable_extensions; do
5112
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5113
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5114
# Check for GNU ac_path_EGREP and select it if it is found.
5115
# Check for GNU $ac_path_EGREP
5116
case `"$ac_path_EGREP" --version 2>&1` in
5118
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5121
$as_echo_n 0123456789 >"conftest.in"
5124
cat "conftest.in" "conftest.in" >"conftest.tmp"
5125
mv "conftest.tmp" "conftest.in"
5126
cp "conftest.in" "conftest.nl"
5127
$as_echo 'EGREP' >> "conftest.nl"
5128
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5129
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5130
as_fn_arith $ac_count + 1 && ac_count=$as_val
5131
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5132
# Best one so far, save it but keep looking for a better one
5133
ac_cv_path_EGREP="$ac_path_EGREP"
5134
ac_path_EGREP_max=$ac_count
5136
# 10*(2^10) chars as input seems more than enough
5137
test $ac_count -gt 10 && break
5139
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5142
$ac_path_EGREP_found && break 3
5147
if test -z "$ac_cv_path_EGREP"; then
5148
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5151
ac_cv_path_EGREP=$EGREP
5156
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5157
$as_echo "$ac_cv_path_EGREP" >&6; }
5158
EGREP="$ac_cv_path_EGREP"
5161
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5162
$as_echo_n "checking for ANSI C header files... " >&6; }
5163
if test "${ac_cv_header_stdc+set}" = set; then :
5164
$as_echo_n "(cached) " >&6
5166
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5167
/* end confdefs.h. */
5181
if ac_fn_c_try_compile "$LINENO"; then :
5182
ac_cv_header_stdc=yes
5184
ac_cv_header_stdc=no
5186
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5188
if test $ac_cv_header_stdc = yes; then
5189
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5190
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5191
/* end confdefs.h. */
5195
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5196
$EGREP "memchr" >/dev/null 2>&1; then :
5199
ac_cv_header_stdc=no
5205
if test $ac_cv_header_stdc = yes; then
5206
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5207
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5208
/* end confdefs.h. */
5212
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5213
$EGREP "free" >/dev/null 2>&1; then :
5216
ac_cv_header_stdc=no
5222
if test $ac_cv_header_stdc = yes; then
5223
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5224
if test "$cross_compiling" = yes; then :
5227
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5228
/* end confdefs.h. */
5231
#if ((' ' & 0x0FF) == 0x020)
5232
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5233
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5235
# define ISLOWER(c) \
5236
(('a' <= (c) && (c) <= 'i') \
5237
|| ('j' <= (c) && (c) <= 'r') \
5238
|| ('s' <= (c) && (c) <= 'z'))
5239
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5242
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5247
for (i = 0; i < 256; i++)
5248
if (XOR (islower (i), ISLOWER (i))
5249
|| toupper (i) != TOUPPER (i))
5254
if ac_fn_c_try_run "$LINENO"; then :
5257
ac_cv_header_stdc=no
5259
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5260
conftest.$ac_objext conftest.beam conftest.$ac_ext
5265
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5266
$as_echo "$ac_cv_header_stdc" >&6; }
5267
if test $ac_cv_header_stdc = yes; then
5269
$as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
5273
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5274
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5275
inttypes.h stdint.h unistd.h
5277
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5278
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5280
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5281
cat >>confdefs.h <<_ACEOF
5282
@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5290
for ac_header in unistd.h stdint.h
5292
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5293
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5294
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5295
cat >>confdefs.h <<_ACEOF
5296
@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5304
for ac_func in asprintf
5306
ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf"
5307
if test "x$ac_cv_func_asprintf" = x""yes; then :
5308
cat >>confdefs.h <<_ACEOF
5309
@%:@define HAVE_ASPRINTF 1
5316
if test "x$CC" != xcc; then
5317
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5318
$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5320
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5321
$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5323
set dummy $CC; ac_cc=`$as_echo "$2" |
5324
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5325
if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\"" = set; then :
5326
$as_echo_n "(cached) " >&6
5328
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5329
/* end confdefs.h. */
5339
# Make sure it works both with $CC and with simple cc.
5340
# We do the test twice because some compilers refuse to overwrite an
5341
# existing .o file with -o, though they will create one.
5342
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5344
if { { case "(($ac_try" in
5345
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5346
*) ac_try_echo=$ac_try;;
5348
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5349
$as_echo "$ac_try_echo"; } >&5
5350
(eval "$ac_try") 2>&5
5352
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5353
test $ac_status = 0; } &&
5354
test -f conftest2.$ac_objext && { { case "(($ac_try" in
5355
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5356
*) ac_try_echo=$ac_try;;
5358
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5359
$as_echo "$ac_try_echo"; } >&5
5360
(eval "$ac_try") 2>&5
5362
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5363
test $ac_status = 0; };
5365
eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5366
if test "x$CC" != xcc; then
5367
# Test first that cc exists at all.
5368
if { ac_try='cc -c conftest.$ac_ext >&5'
5369
{ { case "(($ac_try" in
5370
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5371
*) ac_try_echo=$ac_try;;
5373
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5374
$as_echo "$ac_try_echo"; } >&5
5375
(eval "$ac_try") 2>&5
5377
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5378
test $ac_status = 0; }; }; then
5379
ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5381
if { { case "(($ac_try" in
5382
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5383
*) ac_try_echo=$ac_try;;
5385
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5386
$as_echo "$ac_try_echo"; } >&5
5387
(eval "$ac_try") 2>&5
5389
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5390
test $ac_status = 0; } &&
5391
test -f conftest2.$ac_objext && { { case "(($ac_try" in
5392
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5393
*) ac_try_echo=$ac_try;;
5395
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5396
$as_echo "$ac_try_echo"; } >&5
5397
(eval "$ac_try") 2>&5
5399
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5400
test $ac_status = 0; };
5405
# cc exists but doesn't like -o.
5406
eval ac_cv_prog_cc_${ac_cc}_c_o=no
5411
eval ac_cv_prog_cc_${ac_cc}_c_o=no
5413
rm -f core conftest*
5416
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5417
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5418
$as_echo "yes" >&6; }
5420
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5421
$as_echo "no" >&6; }
5423
$as_echo "@%:@define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5427
# FIXME: we rely on the cache variable name because
5428
# there is no other way.
5430
am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5431
eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5432
if test "$am_t" != yes; then
5433
# Losing compiler, so override with the script.
5434
# FIXME: It is wrong to rewrite CC.
5435
# But if we don't then we get into trouble of one sort or another.
5436
# A longer-term fix would be to have automake use am__CC in this case,
5437
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5438
CC="$am_aux_dir/compile $CC"
5442
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5443
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5444
if test "${ac_cv_c_const+set}" = set; then :
5445
$as_echo_n "(cached) " >&6
5447
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5448
/* end confdefs.h. */
5453
/* FIXME: Include the comments suggested by Paul. */
5455
/* Ultrix mips cc rejects this. */
5456
typedef int charset[2];
5458
/* SunOS 4.1.1 cc rejects this. */
5459
char const *const *pcpcc;
5461
/* NEC SVR4.0.2 mips cc rejects this. */
5462
struct point {int x, y;};
5463
static struct point const zero = {0,0};
5464
/* AIX XL C 1.02.0.0 rejects this.
5465
It does not let you subtract one const X* pointer from another in
5466
an arm of an if-expression whose if-part is not a constant
5468
const char *g = "string";
5469
pcpcc = &g + (g ? g-g : 0);
5470
/* HPUX 7.0 cc rejects these. */
5472
ppc = (char**) pcpcc;
5473
pcpcc = (char const *const *) ppc;
5474
{ /* SCO 3.2v4 cc rejects this. */
5476
char const *s = 0 ? (char *) 0 : (char const *) 0;
5481
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5483
const int *foo = &x[0];
5486
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5487
typedef const int *iptr;
5491
{ /* AIX XL C 1.02.0.0 rejects this saying
5492
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5493
struct s { int j; const int *ap[3]; };
5494
struct s *b; b->j = 5;
5496
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5500
return !cs[0] && !zero.x;
5507
if ac_fn_c_try_compile "$LINENO"; then :
5512
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5514
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5515
$as_echo "$ac_cv_c_const" >&6; }
5516
if test $ac_cv_c_const = no; then
5518
$as_echo "@%:@define const /**/" >>confdefs.h
5524
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5525
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5530
macro_version='2.2.6b'
5531
macro_revision='1.3017'
5545
ltmain="$ac_aux_dir/ltmain.sh"
5547
# Make sure we can run config.sub.
5548
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5549
as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5551
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5552
$as_echo_n "checking build system type... " >&6; }
5553
if test "${ac_cv_build+set}" = set; then :
5554
$as_echo_n "(cached) " >&6
5556
ac_build_alias=$build_alias
5557
test "x$ac_build_alias" = x &&
5558
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5559
test "x$ac_build_alias" = x &&
5560
as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5561
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5562
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5565
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5566
$as_echo "$ac_cv_build" >&6; }
5567
case $ac_cv_build in
5569
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
5572
ac_save_IFS=$IFS; IFS='-'
5578
# Remember, the first character of IFS is used to create $*,
5579
# except with old shells:
5582
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5585
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5586
$as_echo_n "checking host system type... " >&6; }
5587
if test "${ac_cv_host+set}" = set; then :
5588
$as_echo_n "(cached) " >&6
5590
if test "x$host_alias" = x; then
5591
ac_cv_host=$ac_cv_build
5593
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5594
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5598
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5599
$as_echo "$ac_cv_host" >&6; }
5602
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
5605
ac_save_IFS=$IFS; IFS='-'
5611
# Remember, the first character of IFS is used to create $*,
5612
# except with old shells:
5615
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5618
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5619
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5620
if test "${ac_cv_path_SED+set}" = set; then :
5621
$as_echo_n "(cached) " >&6
5623
ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5624
for ac_i in 1 2 3 4 5 6 7; do
5625
ac_script="$ac_script$as_nl$ac_script"
5627
echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5628
{ ac_script=; unset ac_script;}
5629
if test -z "$SED"; then
5630
ac_path_SED_found=false
5631
# Loop through the user's path and test for each of PROGNAME-LIST
5632
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5636
test -z "$as_dir" && as_dir=.
5637
for ac_prog in sed gsed; do
5638
for ac_exec_ext in '' $ac_executable_extensions; do
5639
ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5640
{ test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5641
# Check for GNU ac_path_SED and select it if it is found.
5642
# Check for GNU $ac_path_SED
5643
case `"$ac_path_SED" --version 2>&1` in
5645
ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5648
$as_echo_n 0123456789 >"conftest.in"
5651
cat "conftest.in" "conftest.in" >"conftest.tmp"
5652
mv "conftest.tmp" "conftest.in"
5653
cp "conftest.in" "conftest.nl"
5654
$as_echo '' >> "conftest.nl"
5655
"$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5656
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5657
as_fn_arith $ac_count + 1 && ac_count=$as_val
5658
if test $ac_count -gt ${ac_path_SED_max-0}; then
5659
# Best one so far, save it but keep looking for a better one
5660
ac_cv_path_SED="$ac_path_SED"
5661
ac_path_SED_max=$ac_count
5663
# 10*(2^10) chars as input seems more than enough
5664
test $ac_count -gt 10 && break
5666
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5669
$ac_path_SED_found && break 3
5674
if test -z "$ac_cv_path_SED"; then
5675
as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5682
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5683
$as_echo "$ac_cv_path_SED" >&6; }
5684
SED="$ac_cv_path_SED"
5687
test -z "$SED" && SED=sed
5688
Xsed="$SED -e 1s/^X//"
5700
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5701
$as_echo_n "checking for fgrep... " >&6; }
5702
if test "${ac_cv_path_FGREP+set}" = set; then :
5703
$as_echo_n "(cached) " >&6
5705
if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5706
then ac_cv_path_FGREP="$GREP -F"
5708
if test -z "$FGREP"; then
5709
ac_path_FGREP_found=false
5710
# Loop through the user's path and test for each of PROGNAME-LIST
5711
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5712
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5715
test -z "$as_dir" && as_dir=.
5716
for ac_prog in fgrep; do
5717
for ac_exec_ext in '' $ac_executable_extensions; do
5718
ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5719
{ test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5720
# Check for GNU ac_path_FGREP and select it if it is found.
5721
# Check for GNU $ac_path_FGREP
5722
case `"$ac_path_FGREP" --version 2>&1` in
5724
ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5727
$as_echo_n 0123456789 >"conftest.in"
5730
cat "conftest.in" "conftest.in" >"conftest.tmp"
5731
mv "conftest.tmp" "conftest.in"
5732
cp "conftest.in" "conftest.nl"
5733
$as_echo 'FGREP' >> "conftest.nl"
5734
"$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5735
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5736
as_fn_arith $ac_count + 1 && ac_count=$as_val
5737
if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5738
# Best one so far, save it but keep looking for a better one
5739
ac_cv_path_FGREP="$ac_path_FGREP"
5740
ac_path_FGREP_max=$ac_count
5742
# 10*(2^10) chars as input seems more than enough
5743
test $ac_count -gt 10 && break
5745
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5748
$ac_path_FGREP_found && break 3
5753
if test -z "$ac_cv_path_FGREP"; then
5754
as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5757
ac_cv_path_FGREP=$FGREP
5762
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5763
$as_echo "$ac_cv_path_FGREP" >&6; }
5764
FGREP="$ac_cv_path_FGREP"
5767
test -z "$GREP" && GREP=grep
5787
@%:@ Check whether --with-gnu-ld was given.
5788
if test "${with_gnu_ld+set}" = set; then :
5789
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5795
if test "$GCC" = yes; then
5796
# Check if gcc -print-prog-name=ld gives a path.
5797
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5798
$as_echo_n "checking for ld used by $CC... " >&6; }
5801
# gcc leaves a trailing carriage return which upsets mingw
5802
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5804
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5807
# Accept absolute paths.
5809
re_direlt='/[^/][^/]*/\.\./'
5810
# Canonicalize the pathname of ld
5811
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5812
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5813
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5815
test -z "$LD" && LD="$ac_prog"
5818
# If it fails, then pretend we aren't using GCC.
5822
# If it is relative, then search for the first ld in PATH.
5826
elif test "$with_gnu_ld" = yes; then
5827
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5828
$as_echo_n "checking for GNU ld... " >&6; }
5830
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5831
$as_echo_n "checking for non-GNU ld... " >&6; }
5833
if test "${lt_cv_path_LD+set}" = set; then :
5834
$as_echo_n "(cached) " >&6
5836
if test -z "$LD"; then
5837
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5838
for ac_dir in $PATH; do
5840
test -z "$ac_dir" && ac_dir=.
5841
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5842
lt_cv_path_LD="$ac_dir/$ac_prog"
5843
# Check to see if the program is GNU ld. I'd rather use --version,
5844
# but apparently some variants of GNU ld only accept -v.
5845
# Break only if it was the GNU/non-GNU ld that we prefer.
5846
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5847
*GNU* | *'with BFD'*)
5848
test "$with_gnu_ld" != no && break
5851
test "$with_gnu_ld" != yes && break
5858
lt_cv_path_LD="$LD" # Let the user override the test with a path.
5863
if test -n "$LD"; then
5864
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5865
$as_echo "$LD" >&6; }
5867
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5868
$as_echo "no" >&6; }
5870
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5871
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5872
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5873
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5874
$as_echo_n "(cached) " >&6
5876
# I'd rather use --version here, but apparently some GNU lds only accept -v.
5877
case `$LD -v 2>&1 </dev/null` in
5878
*GNU* | *'with BFD'*)
5879
lt_cv_prog_gnu_ld=yes
5882
lt_cv_prog_gnu_ld=no
5886
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5887
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5888
with_gnu_ld=$lt_cv_prog_gnu_ld
5898
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5899
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5900
if test "${lt_cv_path_NM+set}" = set; then :
5901
$as_echo_n "(cached) " >&6
5903
if test -n "$NM"; then
5904
# Let the user override the test.
5907
lt_nm_to_check="${ac_tool_prefix}nm"
5908
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5909
lt_nm_to_check="$lt_nm_to_check nm"
5911
for lt_tmp_nm in $lt_nm_to_check; do
5912
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5913
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5915
test -z "$ac_dir" && ac_dir=.
5916
tmp_nm="$ac_dir/$lt_tmp_nm"
5917
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5918
# Check to see if the nm accepts a BSD-compat flag.
5919
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5920
# nm: unknown option "B" ignored
5921
# Tru64's nm complains that /dev/null is an invalid object file
5922
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5923
*/dev/null* | *'Invalid file or object type'*)
5924
lt_cv_path_NM="$tmp_nm -B"
5928
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5930
lt_cv_path_NM="$tmp_nm -p"
5934
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5935
continue # so that we can try to find one that supports BSD flags
5944
: ${lt_cv_path_NM=no}
5947
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5948
$as_echo "$lt_cv_path_NM" >&6; }
5949
if test "$lt_cv_path_NM" != "no"; then
5952
# Didn't find any BSD compatible name lister, look for dumpbin.
5953
if test -n "$ac_tool_prefix"; then
5954
for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5956
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5957
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5958
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5959
$as_echo_n "checking for $ac_word... " >&6; }
5960
if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5961
$as_echo_n "(cached) " >&6
5963
if test -n "$DUMPBIN"; then
5964
ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5966
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5970
test -z "$as_dir" && as_dir=.
5971
for ac_exec_ext in '' $ac_executable_extensions; do
5972
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5973
ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5974
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5983
DUMPBIN=$ac_cv_prog_DUMPBIN
5984
if test -n "$DUMPBIN"; then
5985
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5986
$as_echo "$DUMPBIN" >&6; }
5988
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5989
$as_echo "no" >&6; }
5993
test -n "$DUMPBIN" && break
5996
if test -z "$DUMPBIN"; then
5997
ac_ct_DUMPBIN=$DUMPBIN
5998
for ac_prog in "dumpbin -symbols" "link -dump -symbols"
6000
# Extract the first word of "$ac_prog", so it can be a program name with args.
6001
set dummy $ac_prog; ac_word=$2
6002
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6003
$as_echo_n "checking for $ac_word... " >&6; }
6004
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6005
$as_echo_n "(cached) " >&6
6007
if test -n "$ac_ct_DUMPBIN"; then
6008
ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6010
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6014
test -z "$as_dir" && as_dir=.
6015
for ac_exec_ext in '' $ac_executable_extensions; do
6016
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6017
ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6018
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6027
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6028
if test -n "$ac_ct_DUMPBIN"; then
6029
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6030
$as_echo "$ac_ct_DUMPBIN" >&6; }
6032
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6033
$as_echo "no" >&6; }
6037
test -n "$ac_ct_DUMPBIN" && break
6040
if test "x$ac_ct_DUMPBIN" = x; then
6043
case $cross_compiling:$ac_tool_warned in
6045
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6046
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6047
ac_tool_warned=yes ;;
6049
DUMPBIN=$ac_ct_DUMPBIN
6054
if test "$DUMPBIN" != ":"; then
6058
test -z "$NM" && NM=nm
6065
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6066
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
6067
if test "${lt_cv_nm_interface+set}" = set; then :
6068
$as_echo_n "(cached) " >&6
6070
lt_cv_nm_interface="BSD nm"
6071
echo "int some_variable = 0;" > conftest.$ac_ext
6072
(eval echo "\"\$as_me:__oline__: $ac_compile\"" >&5)
6073
(eval "$ac_compile" 2>conftest.err)
6074
cat conftest.err >&5
6075
(eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6076
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6077
cat conftest.err >&5
6078
(eval echo "\"\$as_me:__oline__: output\"" >&5)
6079
cat conftest.out >&5
6080
if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6081
lt_cv_nm_interface="MS dumpbin"
6085
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6086
$as_echo "$lt_cv_nm_interface" >&6; }
6088
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6089
$as_echo_n "checking whether ln -s works... " >&6; }
6091
if test "$LN_S" = "ln -s"; then
6092
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6093
$as_echo "yes" >&6; }
6095
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6096
$as_echo "no, using $LN_S" >&6; }
6099
# find the maximum length of command line arguments
6100
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6101
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6102
if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6103
$as_echo_n "(cached) " >&6
6110
# On DJGPP, this test can blow up pretty badly due to problems in libc
6111
# (any single argument exceeding 2000 bytes causes a buffer overrun
6112
# during glob expansion). Even if it were fixed, the result of this
6113
# check would be larger than it should be.
6114
lt_cv_sys_max_cmd_len=12288; # 12K is about right
6118
# Under GNU Hurd, this test is not required because there is
6119
# no limit to the length of command line arguments.
6120
# Libtool will interpret -1 as no limit whatsoever
6121
lt_cv_sys_max_cmd_len=-1;
6124
cygwin* | mingw* | cegcc*)
6125
# On Win9x/ME, this test blows up -- it succeeds, but takes
6126
# about 5 minutes as the teststring grows exponentially.
6127
# Worse, since 9x/ME are not pre-emptively multitasking,
6128
# you end up with a "frozen" computer, even though with patience
6129
# the test eventually succeeds (with a max line length of 256k).
6130
# Instead, let's just punt: use the minimum linelength reported by
6131
# all of the supported platforms: 8192 (on NT/2K/XP).
6132
lt_cv_sys_max_cmd_len=8192;
6136
# On AmigaOS with pdksh, this test takes hours, literally.
6137
# So we just punt and use a minimum line length of 8192.
6138
lt_cv_sys_max_cmd_len=8192;
6141
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6142
# This has been around since 386BSD, at least. Likely further.
6143
if test -x /sbin/sysctl; then
6144
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6145
elif test -x /usr/sbin/sysctl; then
6146
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6148
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6150
# And add a safety zone
6151
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6152
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6156
# We know the value 262144 and hardcode it with a safety zone (like BSD)
6157
lt_cv_sys_max_cmd_len=196608
6161
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6162
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6163
# nice to cause kernel panics so lets avoid the loop below.
6164
# First set a reasonable default.
6165
lt_cv_sys_max_cmd_len=16384
6167
if test -x /sbin/sysconfig; then
6168
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6169
*1*) lt_cv_sys_max_cmd_len=-1 ;;
6174
lt_cv_sys_max_cmd_len=102400
6176
sysv5* | sco5v6* | sysv4.2uw2*)
6177
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6178
if test -n "$kargmax"; then
6179
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6181
lt_cv_sys_max_cmd_len=32768
6185
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6186
if test -n "$lt_cv_sys_max_cmd_len"; then
6187
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6188
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6190
# Make teststring a little bigger before we do anything with it.
6191
# a 1K string should be a reasonable start.
6192
for i in 1 2 3 4 5 6 7 8 ; do
6193
teststring=$teststring$teststring
6195
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6196
# If test is not a shell built-in, we'll probably end up computing a
6197
# maximum length that is only half of the actual maximum length, but
6199
while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
6200
= "XX$teststring$teststring"; } >/dev/null 2>&1 &&
6201
test $i != 17 # 1/2 MB should be enough
6204
teststring=$teststring$teststring
6206
# Only check the string length outside the loop.
6207
lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6209
# Add a significant safety factor because C++ compilers can tack on
6210
# massive amounts of additional arguments before passing them to the
6211
# linker. It appears as though 1/2 is a usable value.
6212
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6219
if test -n $lt_cv_sys_max_cmd_len ; then
6220
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6221
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6223
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6224
$as_echo "none" >&6; }
6226
max_cmd_len=$lt_cv_sys_max_cmd_len
6237
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6238
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6239
# Try some XSI features
6242
test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6244
&& eval 'test $(( 1 + 1 )) -eq 2 \
6245
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6247
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6248
$as_echo "$xsi_shell" >&6; }
6251
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6252
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6254
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6256
&& lt_shell_append=yes
6257
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6258
$as_echo "$lt_shell_append" >&6; }
6261
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6271
# test EBCDIC or ASCII
6272
case `echo X|tr X '\101'` in
6273
A) # ASCII based system
6274
# \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6275
lt_SP2NL='tr \040 \012'
6276
lt_NL2SP='tr \015\012 \040\040'
6278
*) # EBCDIC based system
6279
lt_SP2NL='tr \100 \n'
6280
lt_NL2SP='tr \r\n \100\100'
6292
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6293
$as_echo_n "checking for $LD option to reload object files... " >&6; }
6294
if test "${lt_cv_ld_reload_flag+set}" = set; then :
6295
$as_echo_n "(cached) " >&6
6297
lt_cv_ld_reload_flag='-r'
6299
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6300
$as_echo "$lt_cv_ld_reload_flag" >&6; }
6301
reload_flag=$lt_cv_ld_reload_flag
6302
case $reload_flag in
6304
*) reload_flag=" $reload_flag" ;;
6306
reload_cmds='$LD$reload_flag -o $output$reload_objs'
6309
if test "$GCC" = yes; then
6310
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6312
reload_cmds='$LD$reload_flag -o $output$reload_objs'
6325
if test -n "$ac_tool_prefix"; then
6326
# Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6327
set dummy ${ac_tool_prefix}objdump; ac_word=$2
6328
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6329
$as_echo_n "checking for $ac_word... " >&6; }
6330
if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6331
$as_echo_n "(cached) " >&6
6333
if test -n "$OBJDUMP"; then
6334
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6336
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6340
test -z "$as_dir" && as_dir=.
6341
for ac_exec_ext in '' $ac_executable_extensions; do
6342
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6343
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6344
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6353
OBJDUMP=$ac_cv_prog_OBJDUMP
6354
if test -n "$OBJDUMP"; then
6355
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6356
$as_echo "$OBJDUMP" >&6; }
6358
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6359
$as_echo "no" >&6; }
6364
if test -z "$ac_cv_prog_OBJDUMP"; then
6365
ac_ct_OBJDUMP=$OBJDUMP
6366
# Extract the first word of "objdump", so it can be a program name with args.
6367
set dummy objdump; ac_word=$2
6368
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6369
$as_echo_n "checking for $ac_word... " >&6; }
6370
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6371
$as_echo_n "(cached) " >&6
6373
if test -n "$ac_ct_OBJDUMP"; then
6374
ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6376
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6380
test -z "$as_dir" && as_dir=.
6381
for ac_exec_ext in '' $ac_executable_extensions; do
6382
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6383
ac_cv_prog_ac_ct_OBJDUMP="objdump"
6384
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6393
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6394
if test -n "$ac_ct_OBJDUMP"; then
6395
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6396
$as_echo "$ac_ct_OBJDUMP" >&6; }
6398
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6399
$as_echo "no" >&6; }
6402
if test "x$ac_ct_OBJDUMP" = x; then
6405
case $cross_compiling:$ac_tool_warned in
6407
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6408
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6409
ac_tool_warned=yes ;;
6411
OBJDUMP=$ac_ct_OBJDUMP
6414
OBJDUMP="$ac_cv_prog_OBJDUMP"
6417
test -z "$OBJDUMP" && OBJDUMP=objdump
6427
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6428
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6429
if test "${lt_cv_deplibs_check_method+set}" = set; then :
6430
$as_echo_n "(cached) " >&6
6432
lt_cv_file_magic_cmd='$MAGIC_CMD'
6433
lt_cv_file_magic_test_file=
6434
lt_cv_deplibs_check_method='unknown'
6435
# Need to set the preceding variable on all platforms that support
6436
# interlibrary dependencies.
6437
# 'none' -- dependencies not supported.
6438
# `unknown' -- same as none, but documents that we really don't know.
6439
# 'pass_all' -- all dependencies passed with no checks.
6440
# 'test_compile' -- check by making test program.
6441
# 'file_magic [[regex]]' -- check by looking for files in library path
6442
# which responds to the $file_magic_cmd with a given extended regex.
6443
# If you have `file' or equivalent on your system and you're not sure
6444
# whether `pass_all' will *always* work, you probably want this one.
6448
lt_cv_deplibs_check_method=pass_all
6452
lt_cv_deplibs_check_method=pass_all
6456
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6457
lt_cv_file_magic_cmd='/usr/bin/file -L'
6458
lt_cv_file_magic_test_file=/shlib/libc.so
6462
# func_win32_libid is a shell function defined in ltmain.sh
6463
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6464
lt_cv_file_magic_cmd='func_win32_libid'
6468
# Base MSYS/MinGW do not provide the 'file' command needed by
6469
# func_win32_libid shell function, so use a weaker test based on 'objdump',
6470
# unless we find 'file', for example because we are cross-compiling.
6471
if ( file / ) >/dev/null 2>&1; then
6472
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6473
lt_cv_file_magic_cmd='func_win32_libid'
6475
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6476
lt_cv_file_magic_cmd='$OBJDUMP -f'
6481
# use the weaker test based on 'objdump'. See mingw*.
6482
lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6483
lt_cv_file_magic_cmd='$OBJDUMP -f'
6486
darwin* | rhapsody*)
6487
lt_cv_deplibs_check_method=pass_all
6490
freebsd* | dragonfly*)
6491
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6494
# Not sure whether the presence of OpenBSD here was a mistake.
6495
# Let's accept both of them until this is cleared up.
6496
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6497
lt_cv_file_magic_cmd=/usr/bin/file
6498
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6502
lt_cv_deplibs_check_method=pass_all
6507
lt_cv_deplibs_check_method=pass_all
6510
hpux10.20* | hpux11*)
6511
lt_cv_file_magic_cmd=/usr/bin/file
6514
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6515
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6518
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
6519
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6522
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6523
lt_cv_file_magic_test_file=/usr/lib/libc.sl
6529
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6530
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6533
irix5* | irix6* | nonstopux*)
6535
*-32|*"-32 ") libmagic=32-bit;;
6536
*-n32|*"-n32 ") libmagic=N32;;
6537
*-64|*"-64 ") libmagic=64-bit;;
6538
*) libmagic=never-match;;
6540
lt_cv_deplibs_check_method=pass_all
6543
# This must be Linux ELF.
6544
linux* | k*bsd*-gnu | kopensolaris*-gnu)
6545
lt_cv_deplibs_check_method=pass_all
6548
netbsd* | netbsdelf*-gnu)
6549
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6550
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6552
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6557
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6558
lt_cv_file_magic_cmd=/usr/bin/file
6559
lt_cv_file_magic_test_file=/usr/lib/libnls.so
6563
lt_cv_deplibs_check_method=pass_all
6567
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6568
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6570
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6574
osf3* | osf4* | osf5*)
6575
lt_cv_deplibs_check_method=pass_all
6579
lt_cv_deplibs_check_method=pass_all
6583
lt_cv_deplibs_check_method=pass_all
6586
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6587
lt_cv_deplibs_check_method=pass_all
6591
case $host_vendor in
6593
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]'
6594
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6597
lt_cv_deplibs_check_method=pass_all
6600
lt_cv_file_magic_cmd='/bin/file'
6601
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6604
lt_cv_file_magic_cmd='/bin/file'
6605
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6606
lt_cv_file_magic_test_file=/lib/libc.so
6609
lt_cv_deplibs_check_method=pass_all
6612
lt_cv_deplibs_check_method=pass_all
6618
lt_cv_deplibs_check_method=pass_all
6623
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6624
$as_echo "$lt_cv_deplibs_check_method" >&6; }
6625
file_magic_cmd=$lt_cv_file_magic_cmd
6626
deplibs_check_method=$lt_cv_deplibs_check_method
6627
test -z "$deplibs_check_method" && deplibs_check_method=unknown
6640
if test -n "$ac_tool_prefix"; then
6641
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6642
set dummy ${ac_tool_prefix}ar; ac_word=$2
6643
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6644
$as_echo_n "checking for $ac_word... " >&6; }
6645
if test "${ac_cv_prog_AR+set}" = set; then :
6646
$as_echo_n "(cached) " >&6
6648
if test -n "$AR"; then
6649
ac_cv_prog_AR="$AR" # Let the user override the test.
6651
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6655
test -z "$as_dir" && as_dir=.
6656
for ac_exec_ext in '' $ac_executable_extensions; do
6657
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6658
ac_cv_prog_AR="${ac_tool_prefix}ar"
6659
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6669
if test -n "$AR"; then
6670
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6671
$as_echo "$AR" >&6; }
6673
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6674
$as_echo "no" >&6; }
6679
if test -z "$ac_cv_prog_AR"; then
6681
# Extract the first word of "ar", so it can be a program name with args.
6682
set dummy ar; ac_word=$2
6683
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6684
$as_echo_n "checking for $ac_word... " >&6; }
6685
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6686
$as_echo_n "(cached) " >&6
6688
if test -n "$ac_ct_AR"; then
6689
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6691
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6695
test -z "$as_dir" && as_dir=.
6696
for ac_exec_ext in '' $ac_executable_extensions; do
6697
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6698
ac_cv_prog_ac_ct_AR="ar"
6699
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6708
ac_ct_AR=$ac_cv_prog_ac_ct_AR
6709
if test -n "$ac_ct_AR"; then
6710
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6711
$as_echo "$ac_ct_AR" >&6; }
6713
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6714
$as_echo "no" >&6; }
6717
if test "x$ac_ct_AR" = x; then
6720
case $cross_compiling:$ac_tool_warned in
6722
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6723
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6724
ac_tool_warned=yes ;;
6732
test -z "$AR" && AR=ar
6733
test -z "$AR_FLAGS" && AR_FLAGS=cru
6745
if test -n "$ac_tool_prefix"; then
6746
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6747
set dummy ${ac_tool_prefix}strip; ac_word=$2
6748
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6749
$as_echo_n "checking for $ac_word... " >&6; }
6750
if test "${ac_cv_prog_STRIP+set}" = set; then :
6751
$as_echo_n "(cached) " >&6
6753
if test -n "$STRIP"; then
6754
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6756
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6760
test -z "$as_dir" && as_dir=.
6761
for ac_exec_ext in '' $ac_executable_extensions; do
6762
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6763
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6764
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6773
STRIP=$ac_cv_prog_STRIP
6774
if test -n "$STRIP"; then
6775
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6776
$as_echo "$STRIP" >&6; }
6778
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6779
$as_echo "no" >&6; }
6784
if test -z "$ac_cv_prog_STRIP"; then
6786
# Extract the first word of "strip", so it can be a program name with args.
6787
set dummy strip; ac_word=$2
6788
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6789
$as_echo_n "checking for $ac_word... " >&6; }
6790
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6791
$as_echo_n "(cached) " >&6
6793
if test -n "$ac_ct_STRIP"; then
6794
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6796
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6800
test -z "$as_dir" && as_dir=.
6801
for ac_exec_ext in '' $ac_executable_extensions; do
6802
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6803
ac_cv_prog_ac_ct_STRIP="strip"
6804
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6813
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6814
if test -n "$ac_ct_STRIP"; then
6815
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6816
$as_echo "$ac_ct_STRIP" >&6; }
6818
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6819
$as_echo "no" >&6; }
6822
if test "x$ac_ct_STRIP" = x; then
6825
case $cross_compiling:$ac_tool_warned in
6827
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6828
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6829
ac_tool_warned=yes ;;
6834
STRIP="$ac_cv_prog_STRIP"
6837
test -z "$STRIP" && STRIP=:
6844
if test -n "$ac_tool_prefix"; then
6845
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6846
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6847
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6848
$as_echo_n "checking for $ac_word... " >&6; }
6849
if test "${ac_cv_prog_RANLIB+set}" = set; then :
6850
$as_echo_n "(cached) " >&6
6852
if test -n "$RANLIB"; then
6853
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6855
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6859
test -z "$as_dir" && as_dir=.
6860
for ac_exec_ext in '' $ac_executable_extensions; do
6861
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6862
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6863
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6872
RANLIB=$ac_cv_prog_RANLIB
6873
if test -n "$RANLIB"; then
6874
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6875
$as_echo "$RANLIB" >&6; }
6877
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6878
$as_echo "no" >&6; }
6883
if test -z "$ac_cv_prog_RANLIB"; then
6884
ac_ct_RANLIB=$RANLIB
6885
# Extract the first word of "ranlib", so it can be a program name with args.
6886
set dummy ranlib; ac_word=$2
6887
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6888
$as_echo_n "checking for $ac_word... " >&6; }
6889
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6890
$as_echo_n "(cached) " >&6
6892
if test -n "$ac_ct_RANLIB"; then
6893
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6895
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6899
test -z "$as_dir" && as_dir=.
6900
for ac_exec_ext in '' $ac_executable_extensions; do
6901
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6902
ac_cv_prog_ac_ct_RANLIB="ranlib"
6903
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6912
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6913
if test -n "$ac_ct_RANLIB"; then
6914
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6915
$as_echo "$ac_ct_RANLIB" >&6; }
6917
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6918
$as_echo "no" >&6; }
6921
if test "x$ac_ct_RANLIB" = x; then
6924
case $cross_compiling:$ac_tool_warned in
6926
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6927
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6928
ac_tool_warned=yes ;;
6930
RANLIB=$ac_ct_RANLIB
6933
RANLIB="$ac_cv_prog_RANLIB"
6936
test -z "$RANLIB" && RANLIB=:
6943
# Determine commands to create old-style static archives.
6944
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6945
old_postinstall_cmds='chmod 644 $oldlib'
6946
old_postuninstall_cmds=
6948
if test -n "$RANLIB"; then
6951
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6954
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6957
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6993
# If no C compiler was specified, use CC.
6996
# If no C compiler flags were specified, use CFLAGS.
6997
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6999
# Allow CC to be a program name with arguments.
7003
# Check for command to grab the raw symbol name followed by C symbol from nm.
7004
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7005
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7006
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7007
$as_echo_n "(cached) " >&6
7010
# These are sane defaults that work on at least a few old systems.
7011
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
7013
# Character class describing NM global symbol codes.
7014
symcode='[BCDEGRST]'
7016
# Regexp to match symbols that can be accessed directly from C.
7017
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7019
# Define system-specific variables.
7024
cygwin* | mingw* | pw32* | cegcc*)
7025
symcode='[ABCDGISTW]'
7028
if test "$host_cpu" = ia64; then
7029
symcode='[ABCDEGRST]'
7033
symcode='[BCDEGRST]'
7036
symcode='[BCDEGQRST]'
7047
sysv5* | sco5v6* | unixware* | OpenUNIX*)
7055
# If we're using GNU nm, then use its standard symbol codes.
7056
case `$NM -V 2>&1` in
7057
*GNU* | *'with BFD'*)
7058
symcode='[ABCDGIRSTW]' ;;
7061
# Transform an extracted symbol line into a proper C declaration.
7062
# Some systems (esp. on ia64) link data and code symbols differently,
7063
# so use this general approach.
7064
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7066
# Transform an extracted symbol line into symbol name and symbol address
7067
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7068
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'"
7070
# Handle CRLF in mingw tool chain
7074
opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7078
# Try without a prefix underscore, then with it.
7079
for ac_symprfx in "" "_"; do
7081
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7082
symxfrm="\\1 $ac_symprfx\\2 \\2"
7084
# Write the raw and C identifiers.
7085
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7086
# Fake it for dumpbin and say T for any non-static function
7087
# and D for any global variable.
7088
# Also find C++ and __fastcall symbols from MSVC++,
7089
# which start with @ or ?.
7090
lt_cv_sys_global_symbol_pipe="$AWK '"\
7091
" {last_section=section; section=\$ 3};"\
7092
" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7093
" \$ 0!~/External *\|/{next};"\
7094
" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7095
" {if(hide[section]) next};"\
7096
" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7097
" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7098
" s[1]~/^[@?]/{print s[1], s[1]; next};"\
7099
" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7100
" ' prfx=^$ac_symprfx"
7102
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7105
# Check to see that the pipe works correctly.
7109
cat > conftest.$ac_ext <<_LT_EOF
7114
void nm_test_func(void);
7115
void nm_test_func(void){}
7119
int main(){nm_test_var='a';nm_test_func();return(0);}
7122
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7123
(eval $ac_compile) 2>&5
7125
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7126
test $ac_status = 0; }; then
7127
# Now try to grab the symbols.
7129
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
7130
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7132
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7133
test $ac_status = 0; } && test -s "$nlist"; then
7134
# Try sorting and uniquifying the output.
7135
if sort "$nlist" | uniq > "$nlist"T; then
7136
mv -f "$nlist"T "$nlist"
7141
# Make sure that we snagged all the symbols we need.
7142
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7143
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7144
cat <<_LT_EOF > conftest.$ac_ext
7150
# Now generate the symbol file.
7151
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7153
cat <<_LT_EOF >> conftest.$ac_ext
7155
/* The mapping between symbol names and symbols. */
7160
lt__PROGRAM__LTX_preloaded_symbols[] =
7162
{ "@PROGRAM@", (void *) 0 },
7164
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7165
cat <<\_LT_EOF >> conftest.$ac_ext
7169
/* This works around a problem in FreeBSD linker */
7170
#ifdef FREEBSD_WORKAROUND
7171
static const void *lt_preloaded_setup() {
7172
return lt__PROGRAM__LTX_preloaded_symbols;
7180
# Now try linking the two files.
7181
mv conftest.$ac_objext conftstm.$ac_objext
7182
lt_save_LIBS="$LIBS"
7183
lt_save_CFLAGS="$CFLAGS"
7184
LIBS="conftstm.$ac_objext"
7185
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7186
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7187
(eval $ac_link) 2>&5
7189
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7190
test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7193
LIBS="$lt_save_LIBS"
7194
CFLAGS="$lt_save_CFLAGS"
7196
echo "cannot find nm_test_func in $nlist" >&5
7199
echo "cannot find nm_test_var in $nlist" >&5
7202
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7205
echo "$progname: failed program was:" >&5
7206
cat conftest.$ac_ext >&5
7208
rm -rf conftest* conftst*
7210
# Do not use the global_symbol_pipe unless it works.
7211
if test "$pipe_works" = yes; then
7214
lt_cv_sys_global_symbol_pipe=
7220
if test -z "$lt_cv_sys_global_symbol_pipe"; then
7221
lt_cv_sys_global_symbol_to_cdecl=
7223
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7224
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7225
$as_echo "failed" >&6; }
7227
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7228
$as_echo "ok" >&6; }
7252
@%:@ Check whether --enable-libtool-lock was given.
7253
if test "${enable_libtool_lock+set}" = set; then :
7254
enableval=$enable_libtool_lock;
7257
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7259
# Some flags need to be propagated to the compiler or linker for good
7263
# Find out which ABI we are using.
7264
echo 'int i;' > conftest.$ac_ext
7265
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7266
(eval $ac_compile) 2>&5
7268
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7269
test $ac_status = 0; }; then
7270
case `/usr/bin/file conftest.$ac_objext` in
7282
# Find out which ABI we are using.
7283
echo '#line __oline__ "configure"' > conftest.$ac_ext
7284
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7285
(eval $ac_compile) 2>&5
7287
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7288
test $ac_status = 0; }; then
7289
if test "$lt_cv_prog_gnu_ld" = yes; then
7290
case `/usr/bin/file conftest.$ac_objext` in
7292
LD="${LD-ld} -melf32bsmip"
7295
LD="${LD-ld} -melf32bmipn32"
7298
LD="${LD-ld} -melf64bmip"
7302
case `/usr/bin/file conftest.$ac_objext` in
7318
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7319
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7320
# Find out which ABI we are using.
7321
echo 'int i;' > conftest.$ac_ext
7322
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7323
(eval $ac_compile) 2>&5
7325
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7326
test $ac_status = 0; }; then
7327
case `/usr/bin/file conftest.o` in
7330
x86_64-*kfreebsd*-gnu)
7331
LD="${LD-ld} -m elf_i386_fbsd"
7334
LD="${LD-ld} -m elf_i386"
7336
ppc64-*linux*|powerpc64-*linux*)
7337
LD="${LD-ld} -m elf32ppclinux"
7340
LD="${LD-ld} -m elf_s390"
7343
LD="${LD-ld} -m elf32_sparc"
7349
x86_64-*kfreebsd*-gnu)
7350
LD="${LD-ld} -m elf_x86_64_fbsd"
7353
LD="${LD-ld} -m elf_x86_64"
7355
ppc*-*linux*|powerpc*-*linux*)
7356
LD="${LD-ld} -m elf64ppc"
7358
s390*-*linux*|s390*-*tpf*)
7359
LD="${LD-ld} -m elf64_s390"
7362
LD="${LD-ld} -m elf64_sparc"
7372
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
7373
SAVE_CFLAGS="$CFLAGS"
7374
CFLAGS="$CFLAGS -belf"
7375
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7376
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7377
if test "${lt_cv_cc_needs_belf+set}" = set; then :
7378
$as_echo_n "(cached) " >&6
7381
ac_cpp='$CPP $CPPFLAGS'
7382
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7383
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7384
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7386
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7387
/* end confdefs.h. */
7397
if ac_fn_c_try_link "$LINENO"; then :
7398
lt_cv_cc_needs_belf=yes
7400
lt_cv_cc_needs_belf=no
7402
rm -f core conftest.err conftest.$ac_objext \
7403
conftest$ac_exeext conftest.$ac_ext
7405
ac_cpp='$CPP $CPPFLAGS'
7406
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7407
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7408
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7411
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7412
$as_echo "$lt_cv_cc_needs_belf" >&6; }
7413
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7414
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7415
CFLAGS="$SAVE_CFLAGS"
7419
# Find out which ABI we are using.
7420
echo 'int i;' > conftest.$ac_ext
7421
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7422
(eval $ac_compile) 2>&5
7424
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7425
test $ac_status = 0; }; then
7426
case `/usr/bin/file conftest.o` in
7428
case $lt_cv_prog_gnu_ld in
7429
yes*) LD="${LD-ld} -m elf64_sparc" ;;
7431
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7443
need_locks="$enable_libtool_lock"
7447
rhapsody* | darwin*)
7448
if test -n "$ac_tool_prefix"; then
7449
# Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7450
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7451
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7452
$as_echo_n "checking for $ac_word... " >&6; }
7453
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7454
$as_echo_n "(cached) " >&6
7456
if test -n "$DSYMUTIL"; then
7457
ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7459
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7463
test -z "$as_dir" && as_dir=.
7464
for ac_exec_ext in '' $ac_executable_extensions; do
7465
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7466
ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7467
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7476
DSYMUTIL=$ac_cv_prog_DSYMUTIL
7477
if test -n "$DSYMUTIL"; then
7478
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7479
$as_echo "$DSYMUTIL" >&6; }
7481
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7482
$as_echo "no" >&6; }
7487
if test -z "$ac_cv_prog_DSYMUTIL"; then
7488
ac_ct_DSYMUTIL=$DSYMUTIL
7489
# Extract the first word of "dsymutil", so it can be a program name with args.
7490
set dummy dsymutil; ac_word=$2
7491
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7492
$as_echo_n "checking for $ac_word... " >&6; }
7493
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7494
$as_echo_n "(cached) " >&6
7496
if test -n "$ac_ct_DSYMUTIL"; then
7497
ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7499
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7503
test -z "$as_dir" && as_dir=.
7504
for ac_exec_ext in '' $ac_executable_extensions; do
7505
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7506
ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7507
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7516
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7517
if test -n "$ac_ct_DSYMUTIL"; then
7518
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7519
$as_echo "$ac_ct_DSYMUTIL" >&6; }
7521
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7522
$as_echo "no" >&6; }
7525
if test "x$ac_ct_DSYMUTIL" = x; then
7528
case $cross_compiling:$ac_tool_warned in
7530
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7531
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7532
ac_tool_warned=yes ;;
7534
DSYMUTIL=$ac_ct_DSYMUTIL
7537
DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7540
if test -n "$ac_tool_prefix"; then
7541
# Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7542
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7543
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7544
$as_echo_n "checking for $ac_word... " >&6; }
7545
if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7546
$as_echo_n "(cached) " >&6
7548
if test -n "$NMEDIT"; then
7549
ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7551
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7555
test -z "$as_dir" && as_dir=.
7556
for ac_exec_ext in '' $ac_executable_extensions; do
7557
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7558
ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7559
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7568
NMEDIT=$ac_cv_prog_NMEDIT
7569
if test -n "$NMEDIT"; then
7570
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7571
$as_echo "$NMEDIT" >&6; }
7573
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7574
$as_echo "no" >&6; }
7579
if test -z "$ac_cv_prog_NMEDIT"; then
7580
ac_ct_NMEDIT=$NMEDIT
7581
# Extract the first word of "nmedit", so it can be a program name with args.
7582
set dummy nmedit; ac_word=$2
7583
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7584
$as_echo_n "checking for $ac_word... " >&6; }
7585
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7586
$as_echo_n "(cached) " >&6
7588
if test -n "$ac_ct_NMEDIT"; then
7589
ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7591
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7595
test -z "$as_dir" && as_dir=.
7596
for ac_exec_ext in '' $ac_executable_extensions; do
7597
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7598
ac_cv_prog_ac_ct_NMEDIT="nmedit"
7599
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7608
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7609
if test -n "$ac_ct_NMEDIT"; then
7610
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7611
$as_echo "$ac_ct_NMEDIT" >&6; }
7613
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7614
$as_echo "no" >&6; }
7617
if test "x$ac_ct_NMEDIT" = x; then
7620
case $cross_compiling:$ac_tool_warned in
7622
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7623
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7624
ac_tool_warned=yes ;;
7626
NMEDIT=$ac_ct_NMEDIT
7629
NMEDIT="$ac_cv_prog_NMEDIT"
7632
if test -n "$ac_tool_prefix"; then
7633
# Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7634
set dummy ${ac_tool_prefix}lipo; ac_word=$2
7635
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7636
$as_echo_n "checking for $ac_word... " >&6; }
7637
if test "${ac_cv_prog_LIPO+set}" = set; then :
7638
$as_echo_n "(cached) " >&6
7640
if test -n "$LIPO"; then
7641
ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7643
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7647
test -z "$as_dir" && as_dir=.
7648
for ac_exec_ext in '' $ac_executable_extensions; do
7649
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7650
ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7651
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7660
LIPO=$ac_cv_prog_LIPO
7661
if test -n "$LIPO"; then
7662
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7663
$as_echo "$LIPO" >&6; }
7665
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7666
$as_echo "no" >&6; }
7671
if test -z "$ac_cv_prog_LIPO"; then
7673
# Extract the first word of "lipo", so it can be a program name with args.
7674
set dummy lipo; ac_word=$2
7675
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7676
$as_echo_n "checking for $ac_word... " >&6; }
7677
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7678
$as_echo_n "(cached) " >&6
7680
if test -n "$ac_ct_LIPO"; then
7681
ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7683
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7687
test -z "$as_dir" && as_dir=.
7688
for ac_exec_ext in '' $ac_executable_extensions; do
7689
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7690
ac_cv_prog_ac_ct_LIPO="lipo"
7691
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7700
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7701
if test -n "$ac_ct_LIPO"; then
7702
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7703
$as_echo "$ac_ct_LIPO" >&6; }
7705
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7706
$as_echo "no" >&6; }
7709
if test "x$ac_ct_LIPO" = x; then
7712
case $cross_compiling:$ac_tool_warned in
7714
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7715
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7716
ac_tool_warned=yes ;;
7721
LIPO="$ac_cv_prog_LIPO"
7724
if test -n "$ac_tool_prefix"; then
7725
# Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7726
set dummy ${ac_tool_prefix}otool; ac_word=$2
7727
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7728
$as_echo_n "checking for $ac_word... " >&6; }
7729
if test "${ac_cv_prog_OTOOL+set}" = set; then :
7730
$as_echo_n "(cached) " >&6
7732
if test -n "$OTOOL"; then
7733
ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7735
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7739
test -z "$as_dir" && as_dir=.
7740
for ac_exec_ext in '' $ac_executable_extensions; do
7741
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7742
ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7743
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7752
OTOOL=$ac_cv_prog_OTOOL
7753
if test -n "$OTOOL"; then
7754
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7755
$as_echo "$OTOOL" >&6; }
7757
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7758
$as_echo "no" >&6; }
7763
if test -z "$ac_cv_prog_OTOOL"; then
7765
# Extract the first word of "otool", so it can be a program name with args.
7766
set dummy otool; ac_word=$2
7767
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7768
$as_echo_n "checking for $ac_word... " >&6; }
7769
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7770
$as_echo_n "(cached) " >&6
7772
if test -n "$ac_ct_OTOOL"; then
7773
ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7775
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7779
test -z "$as_dir" && as_dir=.
7780
for ac_exec_ext in '' $ac_executable_extensions; do
7781
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7782
ac_cv_prog_ac_ct_OTOOL="otool"
7783
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7792
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7793
if test -n "$ac_ct_OTOOL"; then
7794
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7795
$as_echo "$ac_ct_OTOOL" >&6; }
7797
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7798
$as_echo "no" >&6; }
7801
if test "x$ac_ct_OTOOL" = x; then
7804
case $cross_compiling:$ac_tool_warned in
7806
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7807
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7808
ac_tool_warned=yes ;;
7813
OTOOL="$ac_cv_prog_OTOOL"
7816
if test -n "$ac_tool_prefix"; then
7817
# Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7818
set dummy ${ac_tool_prefix}otool64; ac_word=$2
7819
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7820
$as_echo_n "checking for $ac_word... " >&6; }
7821
if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7822
$as_echo_n "(cached) " >&6
7824
if test -n "$OTOOL64"; then
7825
ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7827
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7831
test -z "$as_dir" && as_dir=.
7832
for ac_exec_ext in '' $ac_executable_extensions; do
7833
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7834
ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7835
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7844
OTOOL64=$ac_cv_prog_OTOOL64
7845
if test -n "$OTOOL64"; then
7846
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7847
$as_echo "$OTOOL64" >&6; }
7849
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7850
$as_echo "no" >&6; }
7855
if test -z "$ac_cv_prog_OTOOL64"; then
7856
ac_ct_OTOOL64=$OTOOL64
7857
# Extract the first word of "otool64", so it can be a program name with args.
7858
set dummy otool64; ac_word=$2
7859
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7860
$as_echo_n "checking for $ac_word... " >&6; }
7861
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7862
$as_echo_n "(cached) " >&6
7864
if test -n "$ac_ct_OTOOL64"; then
7865
ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7867
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7871
test -z "$as_dir" && as_dir=.
7872
for ac_exec_ext in '' $ac_executable_extensions; do
7873
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7874
ac_cv_prog_ac_ct_OTOOL64="otool64"
7875
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7884
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7885
if test -n "$ac_ct_OTOOL64"; then
7886
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7887
$as_echo "$ac_ct_OTOOL64" >&6; }
7889
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7890
$as_echo "no" >&6; }
7893
if test "x$ac_ct_OTOOL64" = x; then
7896
case $cross_compiling:$ac_tool_warned in
7898
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7899
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7900
ac_tool_warned=yes ;;
7902
OTOOL64=$ac_ct_OTOOL64
7905
OTOOL64="$ac_cv_prog_OTOOL64"
7934
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7935
$as_echo_n "checking for -single_module linker flag... " >&6; }
7936
if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7937
$as_echo_n "(cached) " >&6
7939
lt_cv_apple_cc_single_mod=no
7940
if test -z "${LT_MULTI_MODULE}"; then
7941
# By default we will add the -single_module flag. You can override
7942
# by either setting the environment variable LT_MULTI_MODULE
7943
# non-empty at configure time, or by adding -multi_module to the
7945
rm -rf libconftest.dylib*
7946
echo "int foo(void){return 1;}" > conftest.c
7947
echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7948
-dynamiclib -Wl,-single_module conftest.c" >&5
7949
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7950
-dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7952
if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7953
lt_cv_apple_cc_single_mod=yes
7955
cat conftest.err >&5
7957
rm -rf libconftest.dylib*
7961
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7962
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7963
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7964
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7965
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7966
$as_echo_n "(cached) " >&6
7968
lt_cv_ld_exported_symbols_list=no
7969
save_LDFLAGS=$LDFLAGS
7970
echo "_main" > conftest.sym
7971
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7972
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7973
/* end confdefs.h. */
7983
if ac_fn_c_try_link "$LINENO"; then :
7984
lt_cv_ld_exported_symbols_list=yes
7986
lt_cv_ld_exported_symbols_list=no
7988
rm -f core conftest.err conftest.$ac_objext \
7989
conftest$ac_exeext conftest.$ac_ext
7990
LDFLAGS="$save_LDFLAGS"
7993
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7994
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7996
rhapsody* | darwin1.[012])
7997
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7999
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8000
darwin*) # darwin 5.x on
8001
# if running on 10.5 or later, the deployment target defaults
8002
# to the OS version, if on x86, and 10.4, the deployment
8003
# target defaults to 10.4. Don't you love it?
8004
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8005
10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8006
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8008
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8010
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8014
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8015
_lt_dar_single_mod='$single_module'
8017
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8018
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8020
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8022
if test "$DSYMUTIL" != ":"; then
8023
_lt_dsymutil='~$DSYMUTIL $lib || :'
8030
for ac_header in dlfcn.h
8032
ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8034
if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8035
cat >>confdefs.h <<_ACEOF
8036
@%:@define HAVE_DLFCN_H 1
8055
@%:@ Check whether --enable-shared was given.
8056
if test "${enable_shared+set}" = set; then :
8057
enableval=$enable_shared; p=${PACKAGE-default}
8059
yes) enable_shared=yes ;;
8060
no) enable_shared=no ;;
8063
# Look at the argument we got. We use all the common list separators.
8064
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8065
for pkg in $enableval; do
8067
if test "X$pkg" = "X$p"; then
8086
@%:@ Check whether --enable-static was given.
8087
if test "${enable_static+set}" = set; then :
8088
enableval=$enable_static; p=${PACKAGE-default}
8090
yes) enable_static=yes ;;
8091
no) enable_static=no ;;
8094
# Look at the argument we got. We use all the common list separators.
8095
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8096
for pkg in $enableval; do
8098
if test "X$pkg" = "X$p"; then
8118
@%:@ Check whether --with-pic was given.
8119
if test "${with_pic+set}" = set; then :
8120
withval=$with_pic; pic_mode="$withval"
8126
test -z "$pic_mode" && pic_mode=default
8134
@%:@ Check whether --enable-fast-install was given.
8135
if test "${enable_fast_install+set}" = set; then :
8136
enableval=$enable_fast_install; p=${PACKAGE-default}
8138
yes) enable_fast_install=yes ;;
8139
no) enable_fast_install=no ;;
8141
enable_fast_install=no
8142
# Look at the argument we got. We use all the common list separators.
8143
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8144
for pkg in $enableval; do
8146
if test "X$pkg" = "X$p"; then
8147
enable_fast_install=yes
8154
enable_fast_install=yes
8167
# This can be used to rebuild libtool when needed
8168
LIBTOOL_DEPS="$ltmain"
8170
# Always use our own libtool.
8171
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8197
test -z "$LN_S" && LN_S="ln -s"
8212
if test -n "${ZSH_VERSION+set}" ; then
8213
setopt NO_GLOB_SUBST
8216
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8217
$as_echo_n "checking for objdir... " >&6; }
8218
if test "${lt_cv_objdir+set}" = set; then :
8219
$as_echo_n "(cached) " >&6
8221
rm -f .libs 2>/dev/null
8222
mkdir .libs 2>/dev/null
8223
if test -d .libs; then
8226
# MS-DOS does not allow filenames that begin with a dot.
8229
rmdir .libs 2>/dev/null
8231
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8232
$as_echo "$lt_cv_objdir" >&6; }
8233
objdir=$lt_cv_objdir
8239
cat >>confdefs.h <<_ACEOF
8240
@%:@define LT_OBJDIR "$lt_cv_objdir/"
8261
# AIX sometimes has problems with the GCC collect2 program. For some
8262
# reason, if we set the COLLECT_NAMES environment variable, the problems
8263
# vanish in a puff of smoke.
8264
if test "X${COLLECT_NAMES+set}" != Xset; then
8266
export COLLECT_NAMES
8271
# Sed substitution that helps us do robust quoting. It backslashifies
8272
# metacharacters that are still active within double-quoted strings.
8273
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8275
# Same as above, but do not quote variable references.
8276
double_quote_subst='s/\(["`\\]\)/\\\1/g'
8278
# Sed substitution to delay expansion of an escaped shell variable in a
8279
# double_quote_subst'ed string.
8280
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8282
# Sed substitution to delay expansion of an escaped single quote.
8283
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8285
# Sed substitution to avoid accidental globbing in evaled expressions
8286
no_glob_subst='s/\*/\\\*/g'
8290
can_build_shared=yes
8292
# All known linkers require a `.a' archive for static linking (except MSVC,
8293
# which needs '.lib').
8296
with_gnu_ld="$lt_cv_prog_gnu_ld"
8299
old_CFLAGS="$CFLAGS"
8301
# Set sane defaults for various variables
8302
test -z "$CC" && CC=cc
8303
test -z "$LTCC" && LTCC=$CC
8304
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8305
test -z "$LD" && LD=ld
8306
test -z "$ac_objext" && ac_objext=o
8308
for cc_temp in $compiler""; do
8310
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8311
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8316
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8319
# Only perform the check for file, if the check method requires it
8320
test -z "$MAGIC_CMD" && MAGIC_CMD=file
8321
case $deplibs_check_method in
8323
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8324
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8325
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8326
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8327
$as_echo_n "(cached) " >&6
8331
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8334
lt_save_MAGIC_CMD="$MAGIC_CMD"
8335
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8336
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8337
for ac_dir in $ac_dummy; do
8339
test -z "$ac_dir" && ac_dir=.
8340
if test -f $ac_dir/${ac_tool_prefix}file; then
8341
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8342
if test -n "$file_magic_test_file"; then
8343
case $deplibs_check_method in
8345
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8346
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8347
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8348
$EGREP "$file_magic_regex" > /dev/null; then
8353
*** Warning: the command libtool uses to detect shared libraries,
8354
*** $file_magic_cmd, produces output that libtool cannot recognize.
8355
*** The result is that libtool may fail to recognize shared libraries
8356
*** as such. This will affect the creation of libtool libraries that
8357
*** depend on shared libraries, but programs linked with such libtool
8358
*** libraries will work regardless of this problem. Nevertheless, you
8359
*** may want to report the problem to your system manager and/or to
8360
*** bug-libtool@gnu.org
8370
MAGIC_CMD="$lt_save_MAGIC_CMD"
8375
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8376
if test -n "$MAGIC_CMD"; then
8377
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8378
$as_echo "$MAGIC_CMD" >&6; }
8380
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8381
$as_echo "no" >&6; }
8388
if test -z "$lt_cv_path_MAGIC_CMD"; then
8389
if test -n "$ac_tool_prefix"; then
8390
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8391
$as_echo_n "checking for file... " >&6; }
8392
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8393
$as_echo_n "(cached) " >&6
8397
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8400
lt_save_MAGIC_CMD="$MAGIC_CMD"
8401
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8402
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8403
for ac_dir in $ac_dummy; do
8405
test -z "$ac_dir" && ac_dir=.
8406
if test -f $ac_dir/file; then
8407
lt_cv_path_MAGIC_CMD="$ac_dir/file"
8408
if test -n "$file_magic_test_file"; then
8409
case $deplibs_check_method in
8411
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8412
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8413
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8414
$EGREP "$file_magic_regex" > /dev/null; then
8419
*** Warning: the command libtool uses to detect shared libraries,
8420
*** $file_magic_cmd, produces output that libtool cannot recognize.
8421
*** The result is that libtool may fail to recognize shared libraries
8422
*** as such. This will affect the creation of libtool libraries that
8423
*** depend on shared libraries, but programs linked with such libtool
8424
*** libraries will work regardless of this problem. Nevertheless, you
8425
*** may want to report the problem to your system manager and/or to
8426
*** bug-libtool@gnu.org
8436
MAGIC_CMD="$lt_save_MAGIC_CMD"
8441
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8442
if test -n "$MAGIC_CMD"; then
8443
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8444
$as_echo "$MAGIC_CMD" >&6; }
8446
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8447
$as_echo "no" >&6; }
8460
# Use C for the default configuration in the libtool script
8464
ac_cpp='$CPP $CPPFLAGS'
8465
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8466
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8467
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8470
# Source file extension for C test sources.
8473
# Object file extension for compiled C test sources.
8477
# Code to be used in simple compile tests
8478
lt_simple_compile_test_code="int some_variable = 0;"
8480
# Code to be used in simple link tests
8481
lt_simple_link_test_code='int main(){return(0);}'
8489
# If no C compiler was specified, use CC.
8492
# If no C compiler flags were specified, use CFLAGS.
8493
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8495
# Allow CC to be a program name with arguments.
8498
# Save the default compiler, since it gets overwritten when the other
8499
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8500
compiler_DEFAULT=$CC
8502
# save warnings/boilerplate of simple test code
8503
ac_outfile=conftest.$ac_objext
8504
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8505
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8506
_lt_compiler_boilerplate=`cat conftest.err`
8509
ac_outfile=conftest.$ac_objext
8510
echo "$lt_simple_link_test_code" >conftest.$ac_ext
8511
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8512
_lt_linker_boilerplate=`cat conftest.err`
8517
## There is no encapsulation within the following macros, do not change
8518
## the running order or otherwise move them around unless you know exactly
8519
## what you are doing...
8520
if test -n "$compiler"; then
8522
lt_prog_compiler_no_builtin_flag=
8524
if test "$GCC" = yes; then
8525
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8527
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8528
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8529
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8530
$as_echo_n "(cached) " >&6
8532
lt_cv_prog_compiler_rtti_exceptions=no
8533
ac_outfile=conftest.$ac_objext
8534
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8535
lt_compiler_flag="-fno-rtti -fno-exceptions"
8536
# Insert the option either (1) after the last *FLAGS variable, or
8537
# (2) before a word containing "conftest.", or (3) at the end.
8538
# Note that $ac_compile itself does not contain backslashes and begins
8539
# with a dollar sign (not a hyphen), so the echo should work correctly.
8540
# The option is referenced via a variable to avoid confusing sed.
8541
lt_compile=`echo "$ac_compile" | $SED \
8542
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8543
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8544
-e 's:$: $lt_compiler_flag:'`
8545
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
8546
(eval "$lt_compile" 2>conftest.err)
8548
cat conftest.err >&5
8549
echo "$as_me:__oline__: \$? = $ac_status" >&5
8550
if (exit $ac_status) && test -s "$ac_outfile"; then
8551
# The compiler can only warn and ignore the option if not recognized
8552
# So say no if there are warnings other than the usual output.
8553
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8554
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8555
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8556
lt_cv_prog_compiler_rtti_exceptions=yes
8562
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8563
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8565
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8566
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8578
lt_prog_compiler_wl=
8579
lt_prog_compiler_pic=
8580
lt_prog_compiler_static=
8582
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8583
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8585
if test "$GCC" = yes; then
8586
lt_prog_compiler_wl='-Wl,'
8587
lt_prog_compiler_static='-static'
8591
# All AIX code is PIC.
8592
if test "$host_cpu" = ia64; then
8593
# AIX 5 now supports IA64 processor
8594
lt_prog_compiler_static='-Bstatic'
8601
# see comment about AmigaOS4 .so support
8602
lt_prog_compiler_pic='-fPIC'
8605
# FIXME: we need at least 68020 code to build shared libraries, but
8606
# adding the `-m68020' flag to GCC prevents building anything better,
8608
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8613
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8614
# PIC is the default for these OSes.
8617
mingw* | cygwin* | pw32* | os2* | cegcc*)
8618
# This hack is so that the source file can tell whether it is being
8619
# built for inclusion in a dll (and should export symbols for example).
8620
# Although the cygwin gcc ignores -fPIC, still need this for old-style
8621
# (--disable-auto-import) libraries
8622
lt_prog_compiler_pic='-DDLL_EXPORT'
8625
darwin* | rhapsody*)
8626
# PIC is the default on this platform
8627
# Common symbols not allowed in MH_DYLIB files
8628
lt_prog_compiler_pic='-fno-common'
8632
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8633
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8634
# sets the default TLS model and affects inlining.
8640
lt_prog_compiler_pic='-fPIC'
8646
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
8647
# Instead, we relocate shared libraries at runtime.
8651
# Just because we use GCC doesn't mean we suddenly get shared libraries
8652
# on systems that don't support them.
8653
lt_prog_compiler_can_build_shared=no
8658
# QNX uses GNU C++, but need to define -shared option too, otherwise
8660
lt_prog_compiler_pic='-fPIC -shared'
8664
if test -d /usr/nec; then
8665
lt_prog_compiler_pic=-Kconform_pic
8670
lt_prog_compiler_pic='-fPIC'
8674
# PORTME Check for flag to pass linker flags through the system compiler.
8677
lt_prog_compiler_wl='-Wl,'
8678
if test "$host_cpu" = ia64; then
8679
# AIX 5 now supports IA64 processor
8680
lt_prog_compiler_static='-Bstatic'
8682
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8686
mingw* | cygwin* | pw32* | os2* | cegcc*)
8687
# This hack is so that the source file can tell whether it is being
8688
# built for inclusion in a dll (and should export symbols for example).
8689
lt_prog_compiler_pic='-DDLL_EXPORT'
8692
hpux9* | hpux10* | hpux11*)
8693
lt_prog_compiler_wl='-Wl,'
8694
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8701
lt_prog_compiler_pic='+Z'
8704
# Is there a better lt_prog_compiler_static that works with the bundled CC?
8705
lt_prog_compiler_static='${wl}-a ${wl}archive'
8708
irix5* | irix6* | nonstopux*)
8709
lt_prog_compiler_wl='-Wl,'
8710
# PIC (with -KPIC) is the default.
8711
lt_prog_compiler_static='-non_shared'
8714
linux* | k*bsd*-gnu | kopensolaris*-gnu)
8715
case $cc_basename in
8716
# old Intel for x86_64 which still supported -KPIC.
8718
lt_prog_compiler_wl='-Wl,'
8719
lt_prog_compiler_pic='-KPIC'
8720
lt_prog_compiler_static='-static'
8722
# icc used to be incompatible with GCC.
8723
# ICC 10 doesn't accept -KPIC any more.
8725
lt_prog_compiler_wl='-Wl,'
8726
lt_prog_compiler_pic='-fPIC'
8727
lt_prog_compiler_static='-static'
8729
# Lahey Fortran 8.1.
8731
lt_prog_compiler_wl='-Wl,'
8732
lt_prog_compiler_pic='--shared'
8733
lt_prog_compiler_static='--static'
8735
pgcc* | pgf77* | pgf90* | pgf95*)
8736
# Portland Group compilers (*not* the Pentium gcc compiler,
8737
# which looks to be a dead project)
8738
lt_prog_compiler_wl='-Wl,'
8739
lt_prog_compiler_pic='-fpic'
8740
lt_prog_compiler_static='-Bstatic'
8743
lt_prog_compiler_wl='-Wl,'
8744
# All Alpha code is PIC.
8745
lt_prog_compiler_static='-non_shared'
8748
# IBM XL C 8.0/Fortran 10.1 on PPC
8749
lt_prog_compiler_wl='-Wl,'
8750
lt_prog_compiler_pic='-qpic'
8751
lt_prog_compiler_static='-qstaticlink'
8754
case `$CC -V 2>&1 | sed 5q` in
8757
lt_prog_compiler_pic='-KPIC'
8758
lt_prog_compiler_static='-Bstatic'
8759
lt_prog_compiler_wl='-Wl,'
8762
# Sun Fortran 8.3 passes all unrecognized flags to the linker
8763
lt_prog_compiler_pic='-KPIC'
8764
lt_prog_compiler_static='-Bstatic'
8765
lt_prog_compiler_wl=''
8773
lt_prog_compiler_pic='-KPIC'
8774
lt_prog_compiler_static='-Bstatic'
8778
# QNX uses GNU C++, but need to define -shared option too, otherwise
8780
lt_prog_compiler_pic='-fPIC -shared'
8783
osf3* | osf4* | osf5*)
8784
lt_prog_compiler_wl='-Wl,'
8785
# All OSF/1 code is PIC.
8786
lt_prog_compiler_static='-non_shared'
8790
lt_prog_compiler_static='-non_shared'
8794
lt_prog_compiler_pic='-KPIC'
8795
lt_prog_compiler_static='-Bstatic'
8796
case $cc_basename in
8798
lt_prog_compiler_wl='-Qoption ld ';;
8800
lt_prog_compiler_wl='-Wl,';;
8805
lt_prog_compiler_wl='-Qoption ld '
8806
lt_prog_compiler_pic='-PIC'
8807
lt_prog_compiler_static='-Bstatic'
8810
sysv4 | sysv4.2uw2* | sysv4.3*)
8811
lt_prog_compiler_wl='-Wl,'
8812
lt_prog_compiler_pic='-KPIC'
8813
lt_prog_compiler_static='-Bstatic'
8817
if test -d /usr/nec ;then
8818
lt_prog_compiler_pic='-Kconform_pic'
8819
lt_prog_compiler_static='-Bstatic'
8823
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8824
lt_prog_compiler_wl='-Wl,'
8825
lt_prog_compiler_pic='-KPIC'
8826
lt_prog_compiler_static='-Bstatic'
8830
lt_prog_compiler_wl='-Wl,'
8831
lt_prog_compiler_can_build_shared=no
8835
lt_prog_compiler_pic='-pic'
8836
lt_prog_compiler_static='-Bstatic'
8840
lt_prog_compiler_can_build_shared=no
8846
# For platforms which do not support PIC, -DPIC is meaningless:
8848
lt_prog_compiler_pic=
8851
lt_prog_compiler_pic="$lt_prog_compiler_pic@&t@ -DPIC"
8854
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8855
$as_echo "$lt_prog_compiler_pic" >&6; }
8863
# Check to make sure the PIC flag actually works.
8865
if test -n "$lt_prog_compiler_pic"; then
8866
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8867
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8868
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8869
$as_echo_n "(cached) " >&6
8871
lt_cv_prog_compiler_pic_works=no
8872
ac_outfile=conftest.$ac_objext
8873
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8874
lt_compiler_flag="$lt_prog_compiler_pic@&t@ -DPIC"
8875
# Insert the option either (1) after the last *FLAGS variable, or
8876
# (2) before a word containing "conftest.", or (3) at the end.
8877
# Note that $ac_compile itself does not contain backslashes and begins
8878
# with a dollar sign (not a hyphen), so the echo should work correctly.
8879
# The option is referenced via a variable to avoid confusing sed.
8880
lt_compile=`echo "$ac_compile" | $SED \
8881
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8882
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8883
-e 's:$: $lt_compiler_flag:'`
8884
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
8885
(eval "$lt_compile" 2>conftest.err)
8887
cat conftest.err >&5
8888
echo "$as_me:__oline__: \$? = $ac_status" >&5
8889
if (exit $ac_status) && test -s "$ac_outfile"; then
8890
# The compiler can only warn and ignore the option if not recognized
8891
# So say no if there are warnings other than the usual output.
8892
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8893
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8894
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8895
lt_cv_prog_compiler_pic_works=yes
8901
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8902
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8904
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8905
case $lt_prog_compiler_pic in
8907
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8910
lt_prog_compiler_pic=
8911
lt_prog_compiler_can_build_shared=no
8922
# Check to make sure the static flag actually works.
8924
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8925
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8926
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8927
if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8928
$as_echo_n "(cached) " >&6
8930
lt_cv_prog_compiler_static_works=no
8931
save_LDFLAGS="$LDFLAGS"
8932
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8933
echo "$lt_simple_link_test_code" > conftest.$ac_ext
8934
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8935
# The linker can only warn and ignore the option if not recognized
8936
# So say no if there are warnings
8937
if test -s conftest.err; then
8938
# Append any errors to the config.log.
8939
cat conftest.err 1>&5
8940
$ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8941
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8942
if diff conftest.exp conftest.er2 >/dev/null; then
8943
lt_cv_prog_compiler_static_works=yes
8946
lt_cv_prog_compiler_static_works=yes
8950
LDFLAGS="$save_LDFLAGS"
8953
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8954
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8956
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8959
lt_prog_compiler_static=
8968
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8969
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8970
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8971
$as_echo_n "(cached) " >&6
8973
lt_cv_prog_compiler_c_o=no
8974
$RM -r conftest 2>/dev/null
8978
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8980
lt_compiler_flag="-o out/conftest2.$ac_objext"
8981
# Insert the option either (1) after the last *FLAGS variable, or
8982
# (2) before a word containing "conftest.", or (3) at the end.
8983
# Note that $ac_compile itself does not contain backslashes and begins
8984
# with a dollar sign (not a hyphen), so the echo should work correctly.
8985
lt_compile=`echo "$ac_compile" | $SED \
8986
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8987
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8988
-e 's:$: $lt_compiler_flag:'`
8989
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
8990
(eval "$lt_compile" 2>out/conftest.err)
8992
cat out/conftest.err >&5
8993
echo "$as_me:__oline__: \$? = $ac_status" >&5
8994
if (exit $ac_status) && test -s out/conftest2.$ac_objext
8996
# The compiler can only warn and ignore the option if not recognized
8997
# So say no if there are warnings
8998
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8999
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9000
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9001
lt_cv_prog_compiler_c_o=yes
9006
# SGI C++ compiler will create directory out/ii_files/ for
9007
# template instantiation
9008
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9009
$RM out/* && rmdir out
9015
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9016
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9023
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9024
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9025
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9026
$as_echo_n "(cached) " >&6
9028
lt_cv_prog_compiler_c_o=no
9029
$RM -r conftest 2>/dev/null
9033
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9035
lt_compiler_flag="-o out/conftest2.$ac_objext"
9036
# Insert the option either (1) after the last *FLAGS variable, or
9037
# (2) before a word containing "conftest.", or (3) at the end.
9038
# Note that $ac_compile itself does not contain backslashes and begins
9039
# with a dollar sign (not a hyphen), so the echo should work correctly.
9040
lt_compile=`echo "$ac_compile" | $SED \
9041
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9042
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9043
-e 's:$: $lt_compiler_flag:'`
9044
(eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
9045
(eval "$lt_compile" 2>out/conftest.err)
9047
cat out/conftest.err >&5
9048
echo "$as_me:__oline__: \$? = $ac_status" >&5
9049
if (exit $ac_status) && test -s out/conftest2.$ac_objext
9051
# The compiler can only warn and ignore the option if not recognized
9052
# So say no if there are warnings
9053
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9054
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9055
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9056
lt_cv_prog_compiler_c_o=yes
9061
# SGI C++ compiler will create directory out/ii_files/ for
9062
# template instantiation
9063
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9064
$RM out/* && rmdir out
9070
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9071
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9076
hard_links="nottested"
9077
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9078
# do not overwrite the value of need_locks provided by the user
9079
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9080
$as_echo_n "checking if we can lock with hard links... " >&6; }
9083
ln conftest.a conftest.b 2>/dev/null && hard_links=no
9085
ln conftest.a conftest.b 2>&5 || hard_links=no
9086
ln conftest.a conftest.b 2>/dev/null && hard_links=no
9087
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9088
$as_echo "$hard_links" >&6; }
9089
if test "$hard_links" = no; then
9090
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9091
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9103
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9104
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9107
allow_undefined_flag=
9108
always_export_symbols=no
9110
archive_expsym_cmds=
9111
compiler_needs_object=no
9112
enable_shared_with_static_runtimes=no
9113
export_dynamic_flag_spec=
9114
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9115
hardcode_automatic=no
9117
hardcode_direct_absolute=no
9118
hardcode_libdir_flag_spec=
9119
hardcode_libdir_flag_spec_ld=
9120
hardcode_libdir_separator=
9122
hardcode_shlibpath_var=unsupported
9124
link_all_deplibs=unknown
9127
old_archive_from_new_cmds=
9128
old_archive_from_expsyms_cmds=
9129
thread_safe_flag_spec=
9130
whole_archive_flag_spec=
9131
# include_expsyms should be a list of space-separated symbols to be *always*
9132
# included in the symbol list
9134
# exclude_expsyms can be an extended regexp of symbols to exclude
9135
# it will be wrapped by ` (' and `)$', so one must not match beginning or
9136
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9137
# as well as any symbol that contains `d'.
9138
exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9139
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9140
# platforms (ab)use it in PIC code, but their linkers get confused if
9141
# the symbol is explicitly referenced. Since portable code cannot
9142
# rely on this symbol name, it's probably fine to never include it in
9143
# preloaded symbol tables.
9144
# Exclude shared library initialization/finalization symbols.
9145
extract_expsyms_cmds=
9148
cygwin* | mingw* | pw32* | cegcc*)
9149
# FIXME: the MSVC++ port hasn't been tested in a loooong time
9150
# When not using gcc, we currently assume that we are using
9151
# Microsoft Visual C++.
9152
if test "$GCC" != yes; then
9157
# we just hope/assume this is gcc and not c89 (= MSVC++)
9163
linux* | k*bsd*-gnu)
9169
if test "$with_gnu_ld" = yes; then
9170
# If archive_cmds runs LD, not CC, wlarc should be empty
9173
# Set some defaults for GNU ld with shared library support. These
9174
# are reset later if shared libraries are not supported. Putting them
9175
# here allows them to be overridden if necessary.
9176
runpath_var=LD_RUN_PATH
9177
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9178
export_dynamic_flag_spec='${wl}--export-dynamic'
9179
# ancient GNU ld didn't support --whole-archive et. al.
9180
if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9181
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9183
whole_archive_flag_spec=
9185
supports_anon_versioning=no
9186
case `$LD -v 2>&1` in
9187
*GNU\ gold*) supports_anon_versioning=yes ;;
9188
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9189
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9190
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9191
*\ 2.11.*) ;; # other 2.11 versions
9192
*) supports_anon_versioning=yes ;;
9195
# See if GNU ld supports shared libraries.
9198
# On AIX/PPC, the GNU linker is very broken
9199
if test "$host_cpu" != ia64; then
9203
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9204
*** to be unable to reliably create shared libraries on AIX.
9205
*** Therefore, libtool is disabling shared libraries support. If you
9206
*** really care for shared libraries, you may want to modify your PATH
9207
*** so that a non-GNU linker is found, and then restart.
9216
# see comment about AmigaOS4 .so support
9217
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9218
archive_expsym_cmds=''
9221
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)'
9222
hardcode_libdir_flag_spec='-L$libdir'
9223
hardcode_minus_L=yes
9229
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9230
allow_undefined_flag=unsupported
9231
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9232
# support --undefined. This deserves some investigation. FIXME
9233
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9239
cygwin* | mingw* | pw32* | cegcc*)
9240
# _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9241
# as there is no search path for DLLs.
9242
hardcode_libdir_flag_spec='-L$libdir'
9243
allow_undefined_flag=unsupported
9244
always_export_symbols=no
9245
enable_shared_with_static_runtimes=yes
9246
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9248
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9249
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9250
# If the export-symbols file already is a .def file (1st line
9251
# is EXPORTS), use it as is; otherwise, prepend...
9252
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9253
cp $export_symbols $output_objdir/$soname.def;
9255
echo EXPORTS > $output_objdir/$soname.def;
9256
cat $export_symbols >> $output_objdir/$soname.def;
9258
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9266
hardcode_shlibpath_var=no
9267
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9268
export_dynamic_flag_spec='${wl}-E'
9269
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9270
# Instead, shared libraries are loaded at an image base (0x10000000 by
9271
# default) and relocated if they conflict, which is a slow very memory
9272
# consuming and fragmenting process. To avoid this, we pick a random,
9273
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9274
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
9275
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9276
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'
9279
gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9281
if test "$host_os" = linux-dietlibc; then
9282
case $cc_basename in
9283
diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9286
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9287
&& test "$tmp_diet" = no
9290
tmp_sharedflag='-shared'
9291
case $cc_basename,$host_cpu in
9292
pgcc*) # Portland Group C compiler
9293
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9294
tmp_addflag=' $pic_flag'
9296
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9297
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9298
tmp_addflag=' $pic_flag -Mnomain' ;;
9299
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9300
tmp_addflag=' -i_dynamic' ;;
9301
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9302
tmp_addflag=' -i_dynamic -nofor_main' ;;
9303
ifc* | ifort*) # Intel Fortran compiler
9304
tmp_addflag=' -nofor_main' ;;
9305
lf95*) # Lahey Fortran 8.1
9306
whole_archive_flag_spec=
9307
tmp_sharedflag='--shared' ;;
9308
xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9309
tmp_sharedflag='-qmkshrobj'
9312
case `$CC -V 2>&1 | sed 5q` in
9313
*Sun\ C*) # Sun C 5.9
9314
whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9315
compiler_needs_object=yes
9316
tmp_sharedflag='-G' ;;
9317
*Sun\ F*) # Sun Fortran 8.3
9318
tmp_sharedflag='-G' ;;
9320
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9322
if test "x$supports_anon_versioning" = xyes; then
9323
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9324
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9325
echo "local: *; };" >> $output_objdir/$libname.ver~
9326
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9329
case $cc_basename in
9331
# IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9332
whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9333
hardcode_libdir_flag_spec=
9334
hardcode_libdir_flag_spec_ld='-rpath $libdir'
9335
archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9336
if test "x$supports_anon_versioning" = xyes; then
9337
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9338
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9339
echo "local: *; };" >> $output_objdir/$libname.ver~
9340
$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9349
netbsd* | netbsdelf*-gnu)
9350
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9351
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9354
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9355
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9360
if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9364
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9365
*** create shared libraries on Solaris systems. Therefore, libtool
9366
*** is disabling shared libraries support. We urge you to upgrade GNU
9367
*** binutils to release 2.9.1 or newer. Another option is to modify
9368
*** your PATH or compiler configuration so that the native linker is
9369
*** used, and then restart.
9372
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9373
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9374
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9380
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9381
case `$LD -v 2>&1` in
9382
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9386
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9387
*** reliably create shared libraries on SCO systems. Therefore, libtool
9388
*** is disabling shared libraries support. We urge you to upgrade GNU
9389
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9390
*** your PATH or compiler configuration so that the native linker is
9391
*** used, and then restart.
9396
# For security reasons, it is highly recommended that you always
9397
# use absolute paths for naming shared libraries, and exclude the
9398
# DT_RUNPATH tag from executables and libraries. But doing so
9399
# requires that you compile everything twice, which is a pain.
9400
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9401
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9402
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9403
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9412
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9415
hardcode_shlibpath_var=no
9419
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9420
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9421
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9428
if test "$ld_shlibs" = no; then
9430
hardcode_libdir_flag_spec=
9431
export_dynamic_flag_spec=
9432
whole_archive_flag_spec=
9435
# PORTME fill in a description of your system's linker (not GNU ld)
9438
allow_undefined_flag=unsupported
9439
always_export_symbols=yes
9440
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'
9441
# Note: this linker hardcodes the directories in LIBPATH if there
9442
# are no directories specified by -L.
9443
hardcode_minus_L=yes
9444
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9445
# Neither direct hardcoding nor static linking is supported with a
9447
hardcode_direct=unsupported
9452
if test "$host_cpu" = ia64; then
9453
# On IA64, the linker does run time linking by default, so we don't
9454
# have to do anything special.
9455
aix_use_runtimelinking=no
9456
exp_sym_flag='-Bexport'
9459
# If we're using GNU nm, then we don't want the "-C" option.
9460
# -C means demangle to AIX nm, but means don't demangle with GNU nm
9461
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9462
export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9464
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'
9466
aix_use_runtimelinking=no
9468
# Test if we are trying to use run time linking or normal
9469
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9470
# need to do runtime linking.
9471
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9472
for ld_flag in $LDFLAGS; do
9473
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9474
aix_use_runtimelinking=yes
9481
exp_sym_flag='-bexport'
9482
no_entry_flag='-bnoentry'
9485
# When large executables or shared objects are built, AIX ld can
9486
# have problems creating the table of contents. If linking a library
9487
# or program results in "error TOC overflow" add -mminimal-toc to
9488
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9489
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9493
hardcode_direct_absolute=yes
9494
hardcode_libdir_separator=':'
9495
link_all_deplibs=yes
9496
file_list_spec='${wl}-f,'
9498
if test "$GCC" = yes; then
9499
case $host_os in aix4.[012]|aix4.[012].*)
9500
# We only want to do this on AIX 4.2 and lower, the check
9501
# below for broken collect2 doesn't work under 4.3+
9502
collect2name=`${CC} -print-prog-name=collect2`
9503
if test -f "$collect2name" &&
9504
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9506
# We have reworked collect2
9509
# We have old collect2
9510
hardcode_direct=unsupported
9511
# It fails to find uninstalled libraries when the uninstalled
9512
# path is not listed in the libpath. Setting hardcode_minus_L
9513
# to unsupported forces relinking
9514
hardcode_minus_L=yes
9515
hardcode_libdir_flag_spec='-L$libdir'
9516
hardcode_libdir_separator=
9520
shared_flag='-shared'
9521
if test "$aix_use_runtimelinking" = yes; then
9522
shared_flag="$shared_flag "'${wl}-G'
9527
if test "$host_cpu" = ia64; then
9528
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9529
# chokes on -Wl,-G. The following line is correct:
9532
if test "$aix_use_runtimelinking" = yes; then
9533
shared_flag='${wl}-G'
9535
shared_flag='${wl}-bM:SRE'
9540
export_dynamic_flag_spec='${wl}-bexpall'
9541
# It seems that -bexpall does not export symbols beginning with
9542
# underscore (_), so it is better to generate a list of symbols to export.
9543
always_export_symbols=yes
9544
if test "$aix_use_runtimelinking" = yes; then
9545
# Warning - without using the other runtime loading flags (-brtl),
9546
# -berok will link without error, but may produce a broken library.
9547
allow_undefined_flag='-berok'
9548
# Determine the default libpath from the value encoded in an
9550
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9551
/* end confdefs.h. */
9561
if ac_fn_c_try_link "$LINENO"; then :
9563
lt_aix_libpath_sed='
9564
/Import File Strings/,/^$/ {
9570
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9571
# Check for a 64-bit object if we didn't find anything.
9572
if test -z "$aix_libpath"; then
9573
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9576
rm -f core conftest.err conftest.$ac_objext \
9577
conftest$ac_exeext conftest.$ac_ext
9578
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9580
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9581
archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9583
if test "$host_cpu" = ia64; then
9584
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9585
allow_undefined_flag="-z nodefs"
9586
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"
9588
# Determine the default libpath from the value encoded in an
9590
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9591
/* end confdefs.h. */
9601
if ac_fn_c_try_link "$LINENO"; then :
9603
lt_aix_libpath_sed='
9604
/Import File Strings/,/^$/ {
9610
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9611
# Check for a 64-bit object if we didn't find anything.
9612
if test -z "$aix_libpath"; then
9613
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9616
rm -f core conftest.err conftest.$ac_objext \
9617
conftest$ac_exeext conftest.$ac_ext
9618
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9620
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9621
# Warning - without using the other run time loading flags,
9622
# -berok will link without error, but may produce a broken library.
9623
no_undefined_flag=' ${wl}-bernotok'
9624
allow_undefined_flag=' ${wl}-berok'
9625
# Exported symbols can be pulled into shared objects from archives
9626
whole_archive_flag_spec='$convenience'
9627
archive_cmds_need_lc=yes
9628
# This is similar to how AIX traditionally builds its shared libraries.
9629
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'
9637
# see comment about AmigaOS4 .so support
9638
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9639
archive_expsym_cmds=''
9642
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)'
9643
hardcode_libdir_flag_spec='-L$libdir'
9644
hardcode_minus_L=yes
9650
export_dynamic_flag_spec=-rdynamic
9653
cygwin* | mingw* | pw32* | cegcc*)
9654
# When not using gcc, we currently assume that we are using
9655
# Microsoft Visual C++.
9656
# hardcode_libdir_flag_spec is actually meaningless, as there is
9657
# no search path for DLLs.
9658
hardcode_libdir_flag_spec=' '
9659
allow_undefined_flag=unsupported
9660
# Tell ltmain to make .lib files, not .a files.
9662
# Tell ltmain to make .dll files, not .so files.
9664
# FIXME: Setting linknames here is a bad hack.
9665
archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9666
# The linker will automatically build a .lib file if we build a DLL.
9667
old_archive_from_new_cmds='true'
9668
# FIXME: Should let the user specify the lib program.
9669
old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9670
fix_srcfile_path='`cygpath -w "$srcfile"`'
9671
enable_shared_with_static_runtimes=yes
9674
darwin* | rhapsody*)
9677
archive_cmds_need_lc=no
9679
hardcode_automatic=yes
9680
hardcode_shlibpath_var=unsupported
9681
whole_archive_flag_spec=''
9682
link_all_deplibs=yes
9683
allow_undefined_flag="$_lt_dar_allow_undefined"
9684
case $cc_basename in
9685
ifort*) _lt_dar_can_shared=yes ;;
9686
*) _lt_dar_can_shared=$GCC ;;
9688
if test "$_lt_dar_can_shared" = "yes"; then
9689
output_verbose_link_cmd=echo
9690
archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9691
module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9692
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}"
9693
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}"
9702
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9703
hardcode_libdir_flag_spec='-L$libdir'
9704
hardcode_shlibpath_var=no
9711
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9712
# support. Future versions do this automatically, but an explicit c++rt0.o
9713
# does not break anything, and helps significantly (at the cost of a little
9716
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9717
hardcode_libdir_flag_spec='-R$libdir'
9719
hardcode_shlibpath_var=no
9722
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
9724
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9726
hardcode_minus_L=yes
9727
hardcode_shlibpath_var=no
9730
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9731
freebsd* | dragonfly*)
9732
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9733
hardcode_libdir_flag_spec='-R$libdir'
9735
hardcode_shlibpath_var=no
9739
if test "$GCC" = yes; then
9740
archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9742
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'
9744
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9745
hardcode_libdir_separator=:
9748
# hardcode_minus_L: Not really in the search PATH,
9749
# but as the default location of the library.
9750
hardcode_minus_L=yes
9751
export_dynamic_flag_spec='${wl}-E'
9755
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9756
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9758
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9760
if test "$with_gnu_ld" = no; then
9761
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9762
hardcode_libdir_flag_spec_ld='+b $libdir'
9763
hardcode_libdir_separator=:
9765
hardcode_direct_absolute=yes
9766
export_dynamic_flag_spec='${wl}-E'
9767
# hardcode_minus_L: Not really in the search PATH,
9768
# but as the default location of the library.
9769
hardcode_minus_L=yes
9774
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9777
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9780
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9783
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9789
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9792
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9795
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9799
if test "$with_gnu_ld" = no; then
9800
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9801
hardcode_libdir_separator=:
9806
hardcode_shlibpath_var=no
9810
hardcode_direct_absolute=yes
9811
export_dynamic_flag_spec='${wl}-E'
9813
# hardcode_minus_L: Not really in the search PATH,
9814
# but as the default location of the library.
9815
hardcode_minus_L=yes
9821
irix5* | irix6* | nonstopux*)
9822
if test "$GCC" = yes; then
9823
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9824
# Try to use the -exported_symbol ld option, if it does not
9825
# work, assume that -exports_file does not work either and
9826
# implicitly export all symbols.
9827
save_LDFLAGS="$LDFLAGS"
9828
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9829
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9830
/* end confdefs.h. */
9833
if ac_fn_c_try_link "$LINENO"; then :
9834
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9837
rm -f core conftest.err conftest.$ac_objext \
9838
conftest$ac_exeext conftest.$ac_ext
9839
LDFLAGS="$save_LDFLAGS"
9841
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9842
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9844
archive_cmds_need_lc='no'
9845
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9846
hardcode_libdir_separator=:
9848
link_all_deplibs=yes
9851
netbsd* | netbsdelf*-gnu)
9852
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9853
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9855
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9857
hardcode_libdir_flag_spec='-R$libdir'
9859
hardcode_shlibpath_var=no
9863
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9865
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9866
hardcode_libdir_separator=:
9867
hardcode_shlibpath_var=no
9874
if test -f /usr/libexec/ld.so; then
9876
hardcode_shlibpath_var=no
9877
hardcode_direct_absolute=yes
9878
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9879
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9880
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9881
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9882
export_dynamic_flag_spec='${wl}-E'
9885
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9886
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9887
hardcode_libdir_flag_spec='-R$libdir'
9890
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9891
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9901
hardcode_libdir_flag_spec='-L$libdir'
9902
hardcode_minus_L=yes
9903
allow_undefined_flag=unsupported
9904
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'
9905
old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9909
if test "$GCC" = yes; then
9910
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9911
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9913
allow_undefined_flag=' -expect_unresolved \*'
9914
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9916
archive_cmds_need_lc='no'
9917
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9918
hardcode_libdir_separator=:
9921
osf4* | osf5*) # as osf3* with the addition of -msym flag
9922
if test "$GCC" = yes; then
9923
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9924
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9925
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9927
allow_undefined_flag=' -expect_unresolved \*'
9928
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9929
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~
9930
$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9932
# Both c and cxx compiler support -rpath directly
9933
hardcode_libdir_flag_spec='-rpath $libdir'
9935
archive_cmds_need_lc='no'
9936
hardcode_libdir_separator=:
9940
no_undefined_flag=' -z defs'
9941
if test "$GCC" = yes; then
9943
archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9944
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9945
$CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9947
case `$CC -V 2>&1` in
9950
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9951
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9952
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9956
archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9957
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9958
$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9962
hardcode_libdir_flag_spec='-R$libdir'
9963
hardcode_shlibpath_var=no
9965
solaris2.[0-5] | solaris2.[0-5].*) ;;
9967
# The compiler driver will combine and reorder linker options,
9968
# but understands `-z linker_flag'. GCC discards it without `$wl',
9969
# but is careful enough not to reorder.
9970
# Supported since Solaris 2.6 (maybe 2.5.1?)
9971
if test "$GCC" = yes; then
9972
whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9974
whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9978
link_all_deplibs=yes
9982
if test "x$host_vendor" = xsequent; then
9983
# Use $CC to link under sequent, because it throws in some extra .o
9984
# files that make .init and .fini sections work.
9985
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9987
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9989
hardcode_libdir_flag_spec='-L$libdir'
9991
hardcode_minus_L=yes
9992
hardcode_shlibpath_var=no
9996
case $host_vendor in
9998
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9999
hardcode_direct=yes # is this really true???
10002
## LD is ld it makes a PLAMLIB
10003
## CC just makes a GrossModule.
10004
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10005
reload_cmds='$CC -r -o $output$reload_objs'
10009
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10010
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10013
runpath_var='LD_RUN_PATH'
10014
hardcode_shlibpath_var=no
10018
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10019
hardcode_shlibpath_var=no
10020
export_dynamic_flag_spec='-Bexport'
10024
if test -d /usr/nec; then
10025
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10026
hardcode_shlibpath_var=no
10027
runpath_var=LD_RUN_PATH
10028
hardcode_runpath_var=yes
10033
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10034
no_undefined_flag='${wl}-z,text'
10035
archive_cmds_need_lc=no
10036
hardcode_shlibpath_var=no
10037
runpath_var='LD_RUN_PATH'
10039
if test "$GCC" = yes; then
10040
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10041
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10043
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10044
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10048
sysv5* | sco3.2v5* | sco5v6*)
10049
# Note: We can NOT use -z defs as we might desire, because we do not
10050
# link with -lc, and that would cause any symbols used from libc to
10051
# always be unresolved, which means just about no library would
10052
# ever link correctly. If we're not using GNU ld we use -z text
10053
# though, which does catch some bad symbols but isn't as heavy-handed
10055
no_undefined_flag='${wl}-z,text'
10056
allow_undefined_flag='${wl}-z,nodefs'
10057
archive_cmds_need_lc=no
10058
hardcode_shlibpath_var=no
10059
hardcode_libdir_flag_spec='${wl}-R,$libdir'
10060
hardcode_libdir_separator=':'
10061
link_all_deplibs=yes
10062
export_dynamic_flag_spec='${wl}-Bexport'
10063
runpath_var='LD_RUN_PATH'
10065
if test "$GCC" = yes; then
10066
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10067
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10069
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10070
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10075
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10076
hardcode_libdir_flag_spec='-L$libdir'
10077
hardcode_shlibpath_var=no
10085
if test x$host_vendor = xsni; then
10087
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10088
export_dynamic_flag_spec='${wl}-Blargedynsym'
10094
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10095
$as_echo "$ld_shlibs" >&6; }
10096
test "$ld_shlibs" = no && can_build_shared=no
10098
with_gnu_ld=$with_gnu_ld
10115
# Do we need to explicitly link libc?
10117
case "x$archive_cmds_need_lc" in
10119
# Assume -lc should be added
10120
archive_cmds_need_lc=yes
10122
if test "$enable_shared" = yes && test "$GCC" = yes; then
10123
case $archive_cmds in
10125
# FIXME: we may have to deal with multi-command sequences.
10128
# Test whether the compiler implicitly links with -lc since on some
10129
# systems, -lgcc has to come before -lc. If gcc already passes -lc
10130
# to ld, don't add -lc before -lgcc.
10131
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10132
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10134
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10136
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10137
(eval $ac_compile) 2>&5
10139
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10140
test $ac_status = 0; } 2>conftest.err; then
10143
libobjs=conftest.$ac_objext
10145
wl=$lt_prog_compiler_wl
10146
pic_flag=$lt_prog_compiler_pic
10152
lt_save_allow_undefined_flag=$allow_undefined_flag
10153
allow_undefined_flag=
10154
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10155
(eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10157
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10158
test $ac_status = 0; }
10160
archive_cmds_need_lc=no
10162
archive_cmds_need_lc=yes
10164
allow_undefined_flag=$lt_save_allow_undefined_flag
10166
cat conftest.err 1>&5
10169
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
10170
$as_echo "$archive_cmds_need_lc" >&6; }
10333
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10334
$as_echo_n "checking dynamic linker characteristics... " >&6; }
10336
if test "$GCC" = yes; then
10338
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10339
*) lt_awk_arg="/^libraries:/" ;;
10341
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10342
if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10343
# if the path contains ";" then we assume it to be the separator
10344
# otherwise default to the standard path separator (i.e. ":") - it is
10345
# assumed that no part of a normal pathname contains ";" but that should
10346
# okay in the real world where ";" in dirpaths is itself problematic.
10347
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10349
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10351
# Ok, now we have the path, separated by spaces, we can step through it
10352
# and add multilib dir if necessary.
10353
lt_tmp_lt_search_path_spec=
10354
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10355
for lt_sys_path in $lt_search_path_spec; do
10356
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10357
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10359
test -d "$lt_sys_path" && \
10360
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10363
lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10364
BEGIN {RS=" "; FS="/|\n";} {
10367
for (lt_i = NF; lt_i > 0; lt_i--) {
10368
if ($lt_i != "" && $lt_i != ".") {
10369
if ($lt_i == "..") {
10372
if (lt_count == 0) {
10373
lt_foo="/" $lt_i lt_foo;
10380
if (lt_foo != "") { lt_freq[lt_foo]++; }
10381
if (lt_freq[lt_foo] == 1) { print lt_foo; }
10383
sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10385
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10387
library_names_spec=
10388
libname_spec='lib$name'
10392
postuninstall_cmds=
10396
shlibpath_overrides_runpath=unknown
10398
dynamic_linker="$host_os ld.so"
10399
sys_lib_dlsearch_path_spec="/lib /usr/lib"
10400
need_lib_prefix=unknown
10401
hardcode_into_libs=no
10403
# when you set need_version to no, make sure it does not cause -set_version
10404
# flags to be left without arguments
10405
need_version=unknown
10410
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10411
shlibpath_var=LIBPATH
10413
# AIX 3 has no versioning support, so we append a major version to the name.
10414
soname_spec='${libname}${release}${shared_ext}$major'
10421
hardcode_into_libs=yes
10422
if test "$host_cpu" = ia64; then
10423
# AIX 5 supports IA64
10424
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10425
shlibpath_var=LD_LIBRARY_PATH
10427
# With GCC up to 2.95.x, collect2 would create an import file
10428
# for dependence libraries. The import file would start with
10429
# the line `#! .'. This would cause the generated library to
10430
# depend on `.', always an invalid library. This was fixed in
10431
# development snapshots of GCC prior to 3.0.
10433
aix4 | aix4.[01] | aix4.[01].*)
10434
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10436
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10439
can_build_shared=no
10443
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10444
# soname into executable. Probably we can add versioning support to
10445
# collect2, so additional links can be useful in future.
10446
if test "$aix_use_runtimelinking" = yes; then
10447
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
10448
# instead of lib<name>.a to let people know that these are not
10449
# typical AIX shared libraries.
10450
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10452
# We preserve .a as extension for shared libraries through AIX4.2
10453
# and later when we are not doing run time linking.
10454
library_names_spec='${libname}${release}.a $libname.a'
10455
soname_spec='${libname}${release}${shared_ext}$major'
10457
shlibpath_var=LIBPATH
10464
# Since July 2007 AmigaOS4 officially supports .so libraries.
10465
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10466
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10469
library_names_spec='$libname.ixlibrary $libname.a'
10470
# Create ${libname}_ixlibrary.a entries in /sys/libs.
10471
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10477
library_names_spec='${libname}${shared_ext}'
10478
dynamic_linker="$host_os ld.so"
10479
shlibpath_var=LIBRARY_PATH
10485
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10486
soname_spec='${libname}${release}${shared_ext}$major'
10487
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10488
shlibpath_var=LD_LIBRARY_PATH
10489
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10490
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10491
# the default ld.so.conf also contains /usr/contrib/lib and
10492
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10493
# libtool to hard-code these into programs
10496
cygwin* | mingw* | pw32* | cegcc*)
10497
version_type=windows
10502
case $GCC,$host_os in
10503
yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10504
library_names_spec='$libname.dll.a'
10505
# DLL is installed to $(libdir)/../bin by postinstall_cmds
10506
postinstall_cmds='base_file=`basename \${file}`~
10507
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10508
dldir=$destdir/`dirname \$dlpath`~
10509
test -d \$dldir || mkdir -p \$dldir~
10510
$install_prog $dir/$dlname \$dldir/$dlname~
10511
chmod a+x \$dldir/$dlname~
10512
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10513
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10515
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10516
dlpath=$dir/\$dldll~
10518
shlibpath_overrides_runpath=yes
10522
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
10523
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10524
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10527
# MinGW DLLs use traditional 'lib' prefix
10528
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10529
sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10530
if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10531
# It is most probably a Windows format PATH printed by
10532
# mingw gcc, but we are running on Cygwin. Gcc prints its search
10533
# path with ; separators, and with drive letters. We can handle the
10534
# drive letters (cygwin fileutils understands them), so leave them,
10535
# especially as we might pass files found there to a mingw objdump,
10536
# which wouldn't understand a cygwinified path. Ahh.
10537
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10539
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10543
# pw32 DLLs use 'pw' prefix rather than 'lib'
10544
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10550
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10553
dynamic_linker='Win32 ld.exe'
10554
# FIXME: first we should search . and the directory the executable is in
10558
darwin* | rhapsody*)
10559
dynamic_linker="$host_os dyld"
10560
version_type=darwin
10563
library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10564
soname_spec='${libname}${release}${major}$shared_ext'
10565
shlibpath_overrides_runpath=yes
10566
shlibpath_var=DYLD_LIBRARY_PATH
10567
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10569
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10570
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10577
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10578
soname_spec='${libname}${release}${shared_ext}$major'
10579
shlibpath_var=LD_LIBRARY_PATH
10586
freebsd* | dragonfly*)
10587
# DragonFly does not have aout. When/if they implement a new
10588
# versioning mechanism, adjust this.
10589
if test -x /usr/bin/objformat; then
10590
objformat=`/usr/bin/objformat`
10593
freebsd[123]*) objformat=aout ;;
10594
*) objformat=elf ;;
10597
version_type=freebsd-$objformat
10598
case $version_type in
10600
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10605
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10609
shlibpath_var=LD_LIBRARY_PATH
10612
shlibpath_overrides_runpath=yes
10614
freebsd3.[01]* | freebsdelf3.[01]*)
10615
shlibpath_overrides_runpath=yes
10616
hardcode_into_libs=yes
10618
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10619
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10620
shlibpath_overrides_runpath=no
10621
hardcode_into_libs=yes
10623
*) # from 4.6 on, and DragonFly
10624
shlibpath_overrides_runpath=yes
10625
hardcode_into_libs=yes
10634
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10635
soname_spec='${libname}${release}${shared_ext}$major'
10636
shlibpath_var=LD_LIBRARY_PATH
10637
hardcode_into_libs=yes
10640
hpux9* | hpux10* | hpux11*)
10641
# Give a soname corresponding to the major version so that dld.sl refuses to
10642
# link against other versions.
10649
hardcode_into_libs=yes
10650
dynamic_linker="$host_os dld.so"
10651
shlibpath_var=LD_LIBRARY_PATH
10652
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10653
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10654
soname_spec='${libname}${release}${shared_ext}$major'
10655
if test "X$HPUX_IA64_MODE" = X32; then
10656
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10658
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10660
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10664
hardcode_into_libs=yes
10665
dynamic_linker="$host_os dld.sl"
10666
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10667
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10668
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10669
soname_spec='${libname}${release}${shared_ext}$major'
10670
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10671
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10675
dynamic_linker="$host_os dld.sl"
10676
shlibpath_var=SHLIB_PATH
10677
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10678
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10679
soname_spec='${libname}${release}${shared_ext}$major'
10682
# HP-UX runs *really* slowly unless shared libraries are mode 555.
10683
postinstall_cmds='chmod 555 $lib'
10690
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10691
soname_spec='${libname}${release}${shared_ext}$major'
10692
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10693
shlibpath_var=LD_LIBRARY_PATH
10694
shlibpath_overrides_runpath=no
10695
hardcode_into_libs=yes
10698
irix5* | irix6* | nonstopux*)
10700
nonstopux*) version_type=nonstopux ;;
10702
if test "$lt_cv_prog_gnu_ld" = yes; then
10710
soname_spec='${libname}${release}${shared_ext}$major'
10711
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10713
irix5* | nonstopux*)
10714
libsuff= shlibsuff=
10717
case $LD in # libtool.m4 will add one of these switches to LD
10718
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10719
libsuff= shlibsuff= libmagic=32-bit;;
10720
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10721
libsuff=32 shlibsuff=N32 libmagic=N32;;
10722
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10723
libsuff=64 shlibsuff=64 libmagic=64-bit;;
10724
*) libsuff= shlibsuff= libmagic=never-match;;
10728
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10729
shlibpath_overrides_runpath=no
10730
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10731
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10732
hardcode_into_libs=yes
10735
# No shared lib support for Linux oldld, aout, or coff.
10736
linux*oldld* | linux*aout* | linux*coff*)
10740
# This must be Linux ELF.
10741
linux* | k*bsd*-gnu | kopensolaris*-gnu)
10745
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10746
soname_spec='${libname}${release}${shared_ext}$major'
10747
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10748
shlibpath_var=LD_LIBRARY_PATH
10749
shlibpath_overrides_runpath=no
10750
# Some binutils ld are patched to set DT_RUNPATH
10751
save_LDFLAGS=$LDFLAGS
10752
save_libdir=$libdir
10753
eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10754
LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10755
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10756
/* end confdefs.h. */
10766
if ac_fn_c_try_link "$LINENO"; then :
10767
if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10768
shlibpath_overrides_runpath=yes
10771
rm -f core conftest.err conftest.$ac_objext \
10772
conftest$ac_exeext conftest.$ac_ext
10773
LDFLAGS=$save_LDFLAGS
10774
libdir=$save_libdir
10776
# This implies no fast_install, which is unacceptable.
10777
# Some rework will be needed to allow for fast_install
10778
# before this can be enabled.
10779
hardcode_into_libs=yes
10781
# Append ld.so.conf contents to the search path
10782
if test -f /etc/ld.so.conf; then
10783
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10784
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10787
# We used to test for /lib/ld.so.1 and disable shared libraries on
10788
# powerpc, because MkLinux only supported shared libraries with the
10789
# GNU dynamic linker. Since this was broken with cross compilers,
10790
# most powerpc-linux boxes support dynamic linking these days and
10791
# people can always --disable-shared, the test was removed, and we
10792
# assume the GNU/Linux dynamic linker is in use.
10793
dynamic_linker='GNU/Linux ld.so'
10800
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10801
soname_spec='${libname}${release}${shared_ext}$major'
10802
shlibpath_var=LD_LIBRARY_PATH
10803
shlibpath_overrides_runpath=no
10804
hardcode_into_libs=yes
10805
dynamic_linker='NetBSD ld.elf_so'
10812
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10813
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10814
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10815
dynamic_linker='NetBSD (a.out) ld.so'
10817
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10818
soname_spec='${libname}${release}${shared_ext}$major'
10819
dynamic_linker='NetBSD ld.elf_so'
10821
shlibpath_var=LD_LIBRARY_PATH
10822
shlibpath_overrides_runpath=yes
10823
hardcode_into_libs=yes
10828
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10829
shlibpath_var=LD_LIBRARY_PATH
10830
shlibpath_overrides_runpath=yes
10837
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10838
soname_spec='${libname}${release}${shared_ext}$major'
10839
shlibpath_var=LD_LIBRARY_PATH
10840
shlibpath_overrides_runpath=no
10841
hardcode_into_libs=yes
10842
dynamic_linker='ldqnx.so'
10847
sys_lib_dlsearch_path_spec="/usr/lib"
10849
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10851
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10852
*) need_version=no ;;
10854
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10855
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10856
shlibpath_var=LD_LIBRARY_PATH
10857
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10859
openbsd2.[89] | openbsd2.[89].*)
10860
shlibpath_overrides_runpath=no
10863
shlibpath_overrides_runpath=yes
10867
shlibpath_overrides_runpath=yes
10872
libname_spec='$name'
10875
library_names_spec='$libname${shared_ext} $libname.a'
10876
dynamic_linker='OS/2 ld.exe'
10877
shlibpath_var=LIBPATH
10880
osf3* | osf4* | osf5*)
10884
soname_spec='${libname}${release}${shared_ext}$major'
10885
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10886
shlibpath_var=LD_LIBRARY_PATH
10887
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10888
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10899
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10900
soname_spec='${libname}${release}${shared_ext}$major'
10901
shlibpath_var=LD_LIBRARY_PATH
10902
shlibpath_overrides_runpath=yes
10903
hardcode_into_libs=yes
10904
# ldd complains unless libraries are executable
10905
postinstall_cmds='chmod +x $lib'
10910
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10911
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10912
shlibpath_var=LD_LIBRARY_PATH
10913
shlibpath_overrides_runpath=yes
10914
if test "$with_gnu_ld" = yes; then
10922
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10923
soname_spec='${libname}${release}${shared_ext}$major'
10924
shlibpath_var=LD_LIBRARY_PATH
10925
case $host_vendor in
10927
shlibpath_overrides_runpath=no
10929
runpath_var=LD_RUN_PATH
10937
shlibpath_overrides_runpath=no
10938
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10944
if test -d /usr/nec ;then
10946
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10947
soname_spec='$libname${shared_ext}.$major'
10948
shlibpath_var=LD_LIBRARY_PATH
10952
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10953
version_type=freebsd-elf
10956
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10957
soname_spec='${libname}${release}${shared_ext}$major'
10958
shlibpath_var=LD_LIBRARY_PATH
10959
shlibpath_overrides_runpath=yes
10960
hardcode_into_libs=yes
10961
if test "$with_gnu_ld" = yes; then
10962
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10964
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10967
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10971
sys_lib_dlsearch_path_spec='/usr/lib'
10975
# TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10979
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10980
shlibpath_var=LD_LIBRARY_PATH
10981
shlibpath_overrides_runpath=no
10982
hardcode_into_libs=yes
10987
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10988
soname_spec='${libname}${release}${shared_ext}$major'
10989
shlibpath_var=LD_LIBRARY_PATH
10996
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10997
$as_echo "$dynamic_linker" >&6; }
10998
test "$dynamic_linker" = no && can_build_shared=no
11000
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11001
if test "$GCC" = yes; then
11002
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11005
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11006
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11008
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11009
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11098
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11099
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11101
if test -n "$hardcode_libdir_flag_spec" ||
11102
test -n "$runpath_var" ||
11103
test "X$hardcode_automatic" = "Xyes" ; then
11105
# We can hardcode non-existent directories.
11106
if test "$hardcode_direct" != no &&
11107
# If the only mechanism to avoid hardcoding is shlibpath_var, we
11108
# have to relink, otherwise we might link with an installed library
11109
# when we should be linking with a yet-to-be-installed one
11110
## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11111
test "$hardcode_minus_L" != no; then
11112
# Linking always hardcodes the temporary library directory.
11113
hardcode_action=relink
11115
# We can link without hardcoding, and we can hardcode nonexisting dirs.
11116
hardcode_action=immediate
11119
# We cannot hardcode anything, or else we can only hardcode existing
11121
hardcode_action=unsupported
11123
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11124
$as_echo "$hardcode_action" >&6; }
11126
if test "$hardcode_action" = relink ||
11127
test "$inherit_rpath" = yes; then
11128
# Fast installation is not supported
11129
enable_fast_install=no
11130
elif test "$shlibpath_overrides_runpath" = yes ||
11131
test "$enable_shared" = no; then
11132
# Fast installation is not necessary
11133
enable_fast_install=needless
11141
if test "x$enable_dlopen" != xyes; then
11142
enable_dlopen=unknown
11143
enable_dlopen_self=unknown
11144
enable_dlopen_self_static=unknown
11151
lt_cv_dlopen="load_add_on"
11153
lt_cv_dlopen_self=yes
11156
mingw* | pw32* | cegcc*)
11157
lt_cv_dlopen="LoadLibrary"
11162
lt_cv_dlopen="dlopen"
11167
# if libdl is installed we need to link against it
11168
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11169
$as_echo_n "checking for dlopen in -ldl... " >&6; }
11170
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11171
$as_echo_n "(cached) " >&6
11173
ac_check_lib_save_LIBS=$LIBS
11175
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11176
/* end confdefs.h. */
11178
/* Override any GCC internal prototype to avoid an error.
11179
Use char because int might match the return type of a GCC
11180
builtin and then its argument prototype would still apply. */
11193
if ac_fn_c_try_link "$LINENO"; then :
11194
ac_cv_lib_dl_dlopen=yes
11196
ac_cv_lib_dl_dlopen=no
11198
rm -f core conftest.err conftest.$ac_objext \
11199
conftest$ac_exeext conftest.$ac_ext
11200
LIBS=$ac_check_lib_save_LIBS
11202
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11203
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11204
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11205
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11208
lt_cv_dlopen="dyld"
11210
lt_cv_dlopen_self=yes
11217
ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11218
if test "x$ac_cv_func_shl_load" = x""yes; then :
11219
lt_cv_dlopen="shl_load"
11221
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11222
$as_echo_n "checking for shl_load in -ldld... " >&6; }
11223
if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11224
$as_echo_n "(cached) " >&6
11226
ac_check_lib_save_LIBS=$LIBS
11228
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11229
/* end confdefs.h. */
11231
/* Override any GCC internal prototype to avoid an error.
11232
Use char because int might match the return type of a GCC
11233
builtin and then its argument prototype would still apply. */
11241
return shl_load ();
11246
if ac_fn_c_try_link "$LINENO"; then :
11247
ac_cv_lib_dld_shl_load=yes
11249
ac_cv_lib_dld_shl_load=no
11251
rm -f core conftest.err conftest.$ac_objext \
11252
conftest$ac_exeext conftest.$ac_ext
11253
LIBS=$ac_check_lib_save_LIBS
11255
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11256
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11257
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11258
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11260
ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11261
if test "x$ac_cv_func_dlopen" = x""yes; then :
11262
lt_cv_dlopen="dlopen"
11264
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11265
$as_echo_n "checking for dlopen in -ldl... " >&6; }
11266
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11267
$as_echo_n "(cached) " >&6
11269
ac_check_lib_save_LIBS=$LIBS
11271
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11272
/* end confdefs.h. */
11274
/* Override any GCC internal prototype to avoid an error.
11275
Use char because int might match the return type of a GCC
11276
builtin and then its argument prototype would still apply. */
11289
if ac_fn_c_try_link "$LINENO"; then :
11290
ac_cv_lib_dl_dlopen=yes
11292
ac_cv_lib_dl_dlopen=no
11294
rm -f core conftest.err conftest.$ac_objext \
11295
conftest$ac_exeext conftest.$ac_ext
11296
LIBS=$ac_check_lib_save_LIBS
11298
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11299
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11300
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11301
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11303
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11304
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11305
if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11306
$as_echo_n "(cached) " >&6
11308
ac_check_lib_save_LIBS=$LIBS
11309
LIBS="-lsvld $LIBS"
11310
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11311
/* end confdefs.h. */
11313
/* Override any GCC internal prototype to avoid an error.
11314
Use char because int might match the return type of a GCC
11315
builtin and then its argument prototype would still apply. */
11328
if ac_fn_c_try_link "$LINENO"; then :
11329
ac_cv_lib_svld_dlopen=yes
11331
ac_cv_lib_svld_dlopen=no
11333
rm -f core conftest.err conftest.$ac_objext \
11334
conftest$ac_exeext conftest.$ac_ext
11335
LIBS=$ac_check_lib_save_LIBS
11337
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11338
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11339
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11340
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11342
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11343
$as_echo_n "checking for dld_link in -ldld... " >&6; }
11344
if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11345
$as_echo_n "(cached) " >&6
11347
ac_check_lib_save_LIBS=$LIBS
11349
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11350
/* end confdefs.h. */
11352
/* Override any GCC internal prototype to avoid an error.
11353
Use char because int might match the return type of a GCC
11354
builtin and then its argument prototype would still apply. */
11362
return dld_link ();
11367
if ac_fn_c_try_link "$LINENO"; then :
11368
ac_cv_lib_dld_dld_link=yes
11370
ac_cv_lib_dld_dld_link=no
11372
rm -f core conftest.err conftest.$ac_objext \
11373
conftest$ac_exeext conftest.$ac_ext
11374
LIBS=$ac_check_lib_save_LIBS
11376
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11377
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11378
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11379
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11400
if test "x$lt_cv_dlopen" != xno; then
11406
case $lt_cv_dlopen in
11408
save_CPPFLAGS="$CPPFLAGS"
11409
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11411
save_LDFLAGS="$LDFLAGS"
11412
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11415
LIBS="$lt_cv_dlopen_libs $LIBS"
11417
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11418
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11419
if test "${lt_cv_dlopen_self+set}" = set; then :
11420
$as_echo_n "(cached) " >&6
11422
if test "$cross_compiling" = yes; then :
11423
lt_cv_dlopen_self=cross
11425
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11426
lt_status=$lt_dlunknown
11427
cat > conftest.$ac_ext <<_LT_EOF
11428
#line __oline__ "configure"
11429
#include "confdefs.h"
11438
# define LT_DLGLOBAL RTLD_GLOBAL
11441
# define LT_DLGLOBAL DL_GLOBAL
11443
# define LT_DLGLOBAL 0
11447
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11448
find out it does not work in some platform. */
11449
#ifndef LT_DLLAZY_OR_NOW
11451
# define LT_DLLAZY_OR_NOW RTLD_LAZY
11454
# define LT_DLLAZY_OR_NOW DL_LAZY
11457
# define LT_DLLAZY_OR_NOW RTLD_NOW
11460
# define LT_DLLAZY_OR_NOW DL_NOW
11462
# define LT_DLLAZY_OR_NOW 0
11469
void fnord() { int i=42;}
11472
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11473
int status = $lt_dlunknown;
11477
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11478
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11479
/* dlclose (self); */
11487
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11488
(eval $ac_link) 2>&5
11490
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11491
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11492
(./conftest; exit; ) >&5 2>/dev/null
11494
case x$lt_status in
11495
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11496
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11497
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11500
# compilation failed
11501
lt_cv_dlopen_self=no
11508
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11509
$as_echo "$lt_cv_dlopen_self" >&6; }
11511
if test "x$lt_cv_dlopen_self" = xyes; then
11512
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11513
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11514
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11515
if test "${lt_cv_dlopen_self_static+set}" = set; then :
11516
$as_echo_n "(cached) " >&6
11518
if test "$cross_compiling" = yes; then :
11519
lt_cv_dlopen_self_static=cross
11521
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11522
lt_status=$lt_dlunknown
11523
cat > conftest.$ac_ext <<_LT_EOF
11524
#line __oline__ "configure"
11525
#include "confdefs.h"
11534
# define LT_DLGLOBAL RTLD_GLOBAL
11537
# define LT_DLGLOBAL DL_GLOBAL
11539
# define LT_DLGLOBAL 0
11543
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11544
find out it does not work in some platform. */
11545
#ifndef LT_DLLAZY_OR_NOW
11547
# define LT_DLLAZY_OR_NOW RTLD_LAZY
11550
# define LT_DLLAZY_OR_NOW DL_LAZY
11553
# define LT_DLLAZY_OR_NOW RTLD_NOW
11556
# define LT_DLLAZY_OR_NOW DL_NOW
11558
# define LT_DLLAZY_OR_NOW 0
11565
void fnord() { int i=42;}
11568
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11569
int status = $lt_dlunknown;
11573
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11574
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11575
/* dlclose (self); */
11583
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11584
(eval $ac_link) 2>&5
11586
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11587
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11588
(./conftest; exit; ) >&5 2>/dev/null
11590
case x$lt_status in
11591
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11592
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11593
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11596
# compilation failed
11597
lt_cv_dlopen_self_static=no
11604
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11605
$as_echo "$lt_cv_dlopen_self_static" >&6; }
11608
CPPFLAGS="$save_CPPFLAGS"
11609
LDFLAGS="$save_LDFLAGS"
11614
case $lt_cv_dlopen_self in
11615
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11616
*) enable_dlopen_self=unknown ;;
11619
case $lt_cv_dlopen_self_static in
11620
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11621
*) enable_dlopen_self_static=unknown ;;
11643
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11644
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11645
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11646
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11647
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11648
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11649
$as_echo "yes" >&6; }
11651
# FIXME - insert some real tests, host_os isn't really good enough
11654
if test -n "$STRIP" ; then
11655
striplib="$STRIP -x"
11656
old_striplib="$STRIP -S"
11657
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11658
$as_echo "yes" >&6; }
11660
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11661
$as_echo "no" >&6; }
11665
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11666
$as_echo "no" >&6; }
11682
# Report which library types will actually be built
11683
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11684
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11685
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11686
$as_echo "$can_build_shared" >&6; }
11688
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11689
$as_echo_n "checking whether to build shared libraries... " >&6; }
11690
test "$can_build_shared" = "no" && enable_shared=no
11692
# On AIX, shared libraries and static libraries use the same namespace, and
11693
# are all built from PIC.
11696
test "$enable_shared" = yes && enable_static=no
11697
if test -n "$RANLIB"; then
11698
archive_cmds="$archive_cmds~\$RANLIB \$lib"
11699
postinstall_cmds='$RANLIB $lib'
11704
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11705
test "$enable_shared" = yes && enable_static=no
11709
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11710
$as_echo "$enable_shared" >&6; }
11712
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11713
$as_echo_n "checking whether to build static libraries... " >&6; }
11714
# Make sure either enable_shared or enable_static is yes.
11715
test "$enable_shared" = yes || enable_static=yes
11716
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11717
$as_echo "$enable_static" >&6; }
11724
ac_cpp='$CPP $CPPFLAGS'
11725
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11726
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11727
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11743
ac_config_commands="$ac_config_commands libtool"
11748
# Only expand once:
11752
ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile swig/Makefile swig/perl/Makefile swig/perl/Makefile.PL swig/python/Makefile swig/python/setup.py swig/ruby/Makefile testsuite/Makefile testsuite/config/Makefile testsuite/libaalogparse.test/Makefile testsuite/lib/Makefile"
11754
cat >confcache <<\_ACEOF
11755
# This file is a shell script that caches the results of configure
11756
# tests run on this system so they can be shared between configure
11757
# scripts and configure runs, see configure's option --config-cache.
11758
# It is not useful on other systems. If it contains results you don't
11759
# want to keep, you may remove or edit it.
11761
# config.status only pays attention to the cache file if you give it
11762
# the --recheck option to rerun configure.
11764
# `ac_cv_env_foo' variables (set or unset) will be overridden when
11765
# loading this file, other *unset* `ac_cv_foo' will be assigned the
11766
# following values.
11770
# The following way of writing the cache mishandles newlines in values,
11771
# but we know of no workaround that is simple, portable, and efficient.
11772
# So, we kill variables containing newlines.
11773
# Ultrix sh set writes to stderr and can't be redirected directly,
11774
# and sets the high bit in the cache file unless we assign to the vars.
11776
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11777
eval ac_val=\$$ac_var
11781
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11782
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11785
_ | IFS | as_nl) ;; #(
11786
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11787
*) { eval $ac_var=; unset $ac_var;} ;;
11793
case $as_nl`(ac_space=' '; set) 2>&1` in #(
11794
*${as_nl}ac_space=\ *)
11795
# `set' does not quote correctly, so add quotes: double-quote
11796
# substitution turns \\\\ into \\, and sed turns \\ into \.
11799
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11802
# `set' quotes correctly as required by POSIX, so do not add quotes.
11803
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11812
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11814
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11816
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11817
if test -w "$cache_file"; then
11818
test "x$cache_file" != "x/dev/null" &&
11819
{ $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11820
$as_echo "$as_me: updating cache $cache_file" >&6;}
11821
cat confcache >$cache_file
11823
{ $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11824
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11829
test "x$prefix" = xNONE && prefix=$ac_default_prefix
11830
# Let make expand exec_prefix.
11831
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11833
# Transform confdefs.h into DEFS.
11834
# Protect against shell expansion while executing Makefile rules.
11835
# Protect against Makefile macro expansion.
11837
# If the first sed substitution is executed (which looks for macros that
11838
# take arguments), then branch to the quote section. Otherwise,
11839
# look for a macro that doesn't take arguments.
11849
s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
11851
s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
11855
s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
11868
DEFS=`sed -n "$ac_script" confdefs.h`
11874
for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
11875
# 1. Remove the extension, and $U if already installed.
11876
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11877
ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11878
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11879
# will be set to the directory where LIBOBJS objects are built.
11880
as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11881
as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11883
LIB@&t@OBJS=$ac_libobjs
11885
LTLIBOBJS=$ac_ltlibobjs
11888
if test -n "$EXEEXT"; then
11890
am__EXEEXT_FALSE='#'
11892
am__EXEEXT_TRUE='#'
11896
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
11897
as_fn_error $? "conditional \"AMDEP\" was never defined.
11898
Usually this means the macro was only invoked conditionally." "$LINENO" 5
11900
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
11901
as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
11902
Usually this means the macro was only invoked conditionally." "$LINENO" 5
11904
if test -z "${HAVE_PYTHON_TRUE}" && test -z "${HAVE_PYTHON_FALSE}"; then
11905
as_fn_error $? "conditional \"HAVE_PYTHON\" was never defined.
11906
Usually this means the macro was only invoked conditionally." "$LINENO" 5
11908
if test -z "${HAVE_PERL_TRUE}" && test -z "${HAVE_PERL_FALSE}"; then
11909
as_fn_error $? "conditional \"HAVE_PERL\" was never defined.
11910
Usually this means the macro was only invoked conditionally." "$LINENO" 5
11912
if test -z "${HAVE_RUBY_TRUE}" && test -z "${HAVE_RUBY_FALSE}"; then
11913
as_fn_error $? "conditional \"HAVE_RUBY\" was never defined.
11914
Usually this means the macro was only invoked conditionally." "$LINENO" 5
11916
if test -z "${BUILD_ROOTLIB_TRUE}" && test -z "${BUILD_ROOTLIB_FALSE}"; then
11917
as_fn_error $? "conditional \"BUILD_ROOTLIB\" was never defined.
11918
Usually this means the macro was only invoked conditionally." "$LINENO" 5
11921
: ${CONFIG_STATUS=./config.status}
11923
ac_clean_files_save=$ac_clean_files
11924
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11925
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11926
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11928
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11930
# Generated by $as_me.
11931
# Run this file to recreate the current configuration.
11932
# Compiler output produced by configure, useful for debugging
11933
# configure, is in config.log if it exists.
11936
ac_cs_recheck=false
11939
SHELL=\${CONFIG_SHELL-$SHELL}
11942
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11943
## -------------------- ##
11944
## M4sh Initialization. ##
11945
## -------------------- ##
11947
# Be more Bourne compatible
11948
DUALCASE=1; export DUALCASE # for MKS sh
11949
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11952
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11953
# is contrary to our usage. Disable this feature.
11954
alias -g '${1+"$@"}'='"$@"'
11955
setopt NO_GLOB_SUBST
11957
case `(set -o) 2>/dev/null` in @%:@(
11959
set -o posix ;; @%:@(
11969
# Printing a long string crashes Solaris 7 /usr/bin/printf.
11970
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11971
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11972
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11973
# Prefer a ksh shell builtin over an external printf program on Solaris,
11974
# but without wasting forks for bash or zsh.
11975
if test -z "$BASH_VERSION$ZSH_VERSION" \
11976
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11977
as_echo='print -r --'
11978
as_echo_n='print -rn --'
11979
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11980
as_echo='printf %s\n'
11981
as_echo_n='printf %s'
11983
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11984
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11985
as_echo_n='/usr/ucb/echo -n'
11987
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11988
as_echo_n_body='eval
11992
expr "X$arg" : "X\\(.*\\)$as_nl";
11993
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11995
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11997
export as_echo_n_body
11998
as_echo_n='sh -c $as_echo_n_body as_echo'
12000
export as_echo_body
12001
as_echo='sh -c $as_echo_body as_echo'
12004
# The user is always right.
12005
if test "${PATH_SEPARATOR+set}" != set; then
12007
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12008
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12015
# We need space, tab and new line, in precisely that order. Quoting is
12016
# there to prevent editors from complaining about space-tab.
12017
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12018
# splitting by setting IFS to empty value.)
12021
# Find who we are. Look in the path if we contain no directory separator.
12023
*[\\/]* ) as_myself=$0 ;;
12024
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12025
for as_dir in $PATH
12028
test -z "$as_dir" && as_dir=.
12029
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12035
# We did not find ourselves, most probably we were run as `sh COMMAND'
12036
# in which case we are not to be found in the path.
12037
if test "x$as_myself" = x; then
12040
if test ! -f "$as_myself"; then
12041
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12045
# Unset variables that we do not need and which cause bugs (e.g. in
12046
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12047
# suppresses any "Segmentation fault" message there. '((' could
12048
# trigger a bug in pdksh 5.2.14.
12049
for as_var in BASH_ENV ENV MAIL MAILPATH
12050
do eval test x\${$as_var+set} = xset \
12051
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12064
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12067
@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
12068
@%:@ ----------------------------------------
12069
@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12070
@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12071
@%:@ script with STATUS, using 1 if that was 0.
12074
as_status=$1; test $as_status -eq 0 && as_status=1
12076
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12077
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12079
$as_echo "$as_me: error: $2" >&2
12080
as_fn_exit $as_status
12084
@%:@ as_fn_set_status STATUS
12085
@%:@ -----------------------
12086
@%:@ Set @S|@? to STATUS, without forking.
12087
as_fn_set_status ()
12090
} @%:@ as_fn_set_status
12092
@%:@ as_fn_exit STATUS
12093
@%:@ -----------------
12094
@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12098
as_fn_set_status $1
12102
@%:@ as_fn_unset VAR
12103
@%:@ ---------------
12104
@%:@ Portably unset VAR.
12107
{ eval $1=; unset $1;}
12109
as_unset=as_fn_unset
12110
@%:@ as_fn_append VAR VALUE
12111
@%:@ ----------------------
12112
@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
12113
@%:@ advantage of any shell optimizations that allow amortized linear growth over
12114
@%:@ repeated appends, instead of the typical quadratic growth present in naive
12115
@%:@ implementations.
12116
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12117
eval 'as_fn_append ()
12128
@%:@ as_fn_arith ARG...
12129
@%:@ ------------------
12130
@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
12131
@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
12132
@%:@ must be portable across @S|@(()) and expr.
12133
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12134
eval 'as_fn_arith ()
12141
as_val=`expr "$@" || test $? -eq 1`
12146
if expr a : '\(a\)' >/dev/null 2>&1 &&
12147
test "X`expr 00001 : '.*\(...\)'`" = X001; then
12153
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12154
as_basename=basename
12159
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12165
as_me=`$as_basename -- "$0" ||
12166
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12167
X"$0" : 'X\(//\)$' \| \
12168
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12170
sed '/^.*\/\([^/][^/]*\)\/*$/{
12184
# Avoid depending upon Character Ranges.
12185
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12186
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12187
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12188
as_cr_digits='0123456789'
12189
as_cr_alnum=$as_cr_Letters$as_cr_digits
12191
ECHO_C= ECHO_N= ECHO_T=
12192
case `echo -n x` in @%:@(((((
12194
case `echo 'xy\c'` in
12195
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
12197
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12204
rm -f conf$$ conf$$.exe conf$$.file
12205
if test -d conf$$.dir; then
12206
rm -f conf$$.dir/conf$$.file
12209
mkdir conf$$.dir 2>/dev/null
12211
if (echo >conf$$.file) 2>/dev/null; then
12212
if ln -s conf$$.file conf$$ 2>/dev/null; then
12214
# ... but there are two gotchas:
12215
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12216
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12217
# In both cases, we have to default to `cp -p'.
12218
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12220
elif ln conf$$.file conf$$ 2>/dev/null; then
12228
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12229
rmdir conf$$.dir 2>/dev/null
12234
@%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
12239
-*) as_dir=./$as_dir;;
12241
test -d "$as_dir" || eval $as_mkdir_p || {
12245
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12246
*) as_qdir=$as_dir;;
12248
as_dirs="'$as_qdir' $as_dirs"
12249
as_dir=`$as_dirname -- "$as_dir" ||
12250
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12251
X"$as_dir" : 'X\(//\)[^/]' \| \
12252
X"$as_dir" : 'X\(//\)$' \| \
12253
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12254
$as_echo X"$as_dir" |
12255
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12259
/^X\(\/\/\)[^/].*/{
12272
test -d "$as_dir" && break
12274
test -z "$as_dirs" || eval "mkdir $as_dirs"
12275
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12278
} @%:@ as_fn_mkdir_p
12279
if mkdir -p . 2>/dev/null; then
12280
as_mkdir_p='mkdir -p "$as_dir"'
12282
test -d ./-p && rmdir ./-p
12286
if test -x / >/dev/null 2>&1; then
12287
as_test_x='test -x'
12289
if ls -dL / >/dev/null 2>&1; then
12296
if test -d "$1"; then
12302
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in @%:@((
12303
???[sx]*):;;*)false;;esac;fi
12307
as_executable_p=$as_test_x
12309
# Sed expression to map a string onto a valid CPP name.
12310
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12312
# Sed expression to map a string onto a valid variable name.
12313
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12317
## ----------------------------------- ##
12318
## Main body of $CONFIG_STATUS script. ##
12319
## ----------------------------------- ##
12321
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12323
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12324
# Save the log message, to keep $0 and so on meaningful, and to
12325
# report actual input values of CONFIG_FILES etc. instead of their
12326
# values after options handling.
12328
This file was extended by $as_me, which was
12329
generated by GNU Autoconf 2.67. Invocation command line was
12331
CONFIG_FILES = $CONFIG_FILES
12332
CONFIG_HEADERS = $CONFIG_HEADERS
12333
CONFIG_LINKS = $CONFIG_LINKS
12334
CONFIG_COMMANDS = $CONFIG_COMMANDS
12337
on `(hostname || uname -n) 2>/dev/null | sed 1q`
12342
case $ac_config_files in *"
12343
"*) set x $ac_config_files; shift; ac_config_files=$*;;
12348
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12349
# Files that config.status was made for.
12350
config_files="$ac_config_files"
12351
config_commands="$ac_config_commands"
12355
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12357
\`$as_me' instantiates files and other configuration actions
12358
from templates according to the current configuration. Unless the files
12359
and actions are specified as TAGs, all are instantiated by default.
12361
Usage: $0 [OPTION]... [TAG]...
12363
-h, --help print this help, then exit
12364
-V, --version print version number and configuration settings, then exit
12365
--config print configuration, then exit
12366
-q, --quiet, --silent
12367
do not print progress messages
12368
-d, --debug don't remove temporary files
12369
--recheck update $as_me by reconfiguring in the same conditions
12370
--file=FILE[:TEMPLATE]
12371
instantiate the configuration file FILE
12373
Configuration files:
12376
Configuration commands:
12379
Report bugs to the package provider."
12382
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12383
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12386
configured by $0, generated by GNU Autoconf 2.67,
12387
with options \\"\$ac_cs_config\\"
12389
Copyright (C) 2010 Free Software Foundation, Inc.
12390
This config.status script is free software; the Free Software Foundation
12391
gives unlimited permission to copy, distribute and modify it."
12398
test -n "\$AWK" || AWK=awk
12401
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12402
# The default lists apply if the user does not specify any file.
12408
ac_option=`expr "X$1" : 'X\([^=]*\)='`
12409
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12413
ac_option=`expr "X$1" : 'X\([^=]*\)='`
12425
# Handling of the options.
12426
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12428
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12429
$as_echo "$ac_cs_version"; exit ;;
12430
--config | --confi | --conf | --con | --co | --c )
12431
$as_echo "$ac_cs_config"; exit ;;
12432
--debug | --debu | --deb | --de | --d | -d )
12434
--file | --fil | --fi | --f )
12437
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12438
'') as_fn_error $? "missing file argument" ;;
12440
as_fn_append CONFIG_FILES " '$ac_optarg'"
12441
ac_need_defaults=false;;
12442
--he | --h | --help | --hel | -h )
12443
$as_echo "$ac_cs_usage"; exit ;;
12444
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
12445
| -silent | --silent | --silen | --sile | --sil | --si | --s)
12448
# This is an error.
12449
-*) as_fn_error $? "unrecognized option: \`$1'
12450
Try \`$0 --help' for more information." ;;
12452
*) as_fn_append ac_config_targets " $1"
12453
ac_need_defaults=false ;;
12459
ac_configure_extra_args=
12461
if $ac_cs_silent; then
12463
ac_configure_extra_args="$ac_configure_extra_args --silent"
12467
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12468
if \$ac_cs_recheck; then
12469
set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12471
\$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12472
CONFIG_SHELL='$SHELL'
12473
export CONFIG_SHELL
12478
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12482
sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
12483
@%:@@%:@ Running $as_me. @%:@@%:@
12489
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12493
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
12496
# The HP-UX ksh and POSIX shell print the target directory to stdout
12497
# if CDPATH is set.
12498
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12500
sed_quote_subst='$sed_quote_subst'
12501
double_quote_subst='$double_quote_subst'
12502
delay_variable_subst='$delay_variable_subst'
12503
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12504
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12505
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12506
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12507
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12508
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12509
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12510
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12511
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12512
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12513
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12514
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12515
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12516
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12517
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12518
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12519
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12520
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12521
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12522
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12523
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12524
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12525
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12526
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12527
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12528
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12529
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12530
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12531
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
12532
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12533
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12534
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12535
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12536
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12537
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12538
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12539
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12540
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12541
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12542
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12543
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12544
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12545
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12546
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12547
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
12548
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12549
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12550
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12551
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12552
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12553
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12554
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12555
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12556
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12557
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12558
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12559
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12560
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12561
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12562
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12563
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12564
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12565
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12566
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12567
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12568
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12569
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12570
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12571
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12572
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12573
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12574
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12575
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12576
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12577
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12578
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12579
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12580
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12581
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12582
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12583
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12584
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12585
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12586
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12587
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12588
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12589
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12590
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12591
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12592
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12593
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12594
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12595
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12596
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12597
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12598
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12599
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12600
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12601
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12602
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12603
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12604
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12605
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12606
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12607
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12608
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12609
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12610
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12611
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12612
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12613
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12614
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12615
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12616
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12617
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12618
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12619
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12620
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12623
LTCFLAGS='$LTCFLAGS'
12624
compiler='$compiler_DEFAULT'
12626
# Quote evaled strings.
12638
deplibs_check_method \
12647
lt_cv_sys_global_symbol_pipe \
12648
lt_cv_sys_global_symbol_to_cdecl \
12649
lt_cv_sys_global_symbol_to_c_name_address \
12650
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12653
lt_prog_compiler_no_builtin_flag \
12654
lt_prog_compiler_wl \
12655
lt_prog_compiler_pic \
12656
lt_prog_compiler_static \
12657
lt_cv_prog_compiler_c_o \
12665
export_dynamic_flag_spec \
12666
whole_archive_flag_spec \
12667
compiler_needs_object \
12669
allow_undefined_flag \
12670
no_undefined_flag \
12671
hardcode_libdir_flag_spec \
12672
hardcode_libdir_flag_spec_ld \
12673
hardcode_libdir_separator \
12678
variables_saved_for_relink \
12680
library_names_spec \
12685
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12686
*[\\\\\\\`\\"\\\$]*)
12687
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12690
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12695
# Double-quote double-evaled strings.
12696
for var in reload_cmds \
12697
old_postinstall_cmds \
12698
old_postuninstall_cmds \
12700
extract_expsyms_cmds \
12701
old_archive_from_new_cmds \
12702
old_archive_from_expsyms_cmds \
12704
archive_expsym_cmds \
12706
module_expsym_cmds \
12707
export_symbols_cmds \
12710
postuninstall_cmds \
12712
sys_lib_search_path_spec \
12713
sys_lib_dlsearch_path_spec; do
12714
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12715
*[\\\\\\\`\\"\\\$]*)
12716
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12719
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12724
# Fix-up fallback echo if it was mangled by the above quoting rules.
12726
*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12730
ac_aux_dir='$ac_aux_dir'
12731
xsi_shell='$xsi_shell'
12732
lt_shell_append='$lt_shell_append'
12734
# See if we are running on zsh, and set the options which allow our
12735
# commands through without removal of \ escapes INIT.
12736
if test -n "\${ZSH_VERSION+set}" ; then
12737
setopt NO_GLOB_SUBST
12743
TIMESTAMP='$TIMESTAMP'
12752
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12754
# Handling of arguments.
12755
for ac_config_target in $ac_config_targets
12757
case $ac_config_target in
12758
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
12759
"libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12760
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
12761
"doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
12762
"src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
12763
"swig/Makefile") CONFIG_FILES="$CONFIG_FILES swig/Makefile" ;;
12764
"swig/perl/Makefile") CONFIG_FILES="$CONFIG_FILES swig/perl/Makefile" ;;
12765
"swig/perl/Makefile.PL") CONFIG_FILES="$CONFIG_FILES swig/perl/Makefile.PL" ;;
12766
"swig/python/Makefile") CONFIG_FILES="$CONFIG_FILES swig/python/Makefile" ;;
12767
"swig/python/setup.py") CONFIG_FILES="$CONFIG_FILES swig/python/setup.py" ;;
12768
"swig/ruby/Makefile") CONFIG_FILES="$CONFIG_FILES swig/ruby/Makefile" ;;
12769
"testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
12770
"testsuite/config/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/config/Makefile" ;;
12771
"testsuite/libaalogparse.test/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/libaalogparse.test/Makefile" ;;
12772
"testsuite/lib/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/lib/Makefile" ;;
12774
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
12779
# If the user did not use the arguments to specify the items to instantiate,
12780
# then the envvar interface is used. Set only those that are not.
12781
# We use the long form for the default assignment because of an extremely
12782
# bizarre bug on SunOS 4.1.3.
12783
if $ac_need_defaults; then
12784
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12785
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12788
# Have a temporary directory for convenience. Make it in the build tree
12789
# simply because there is no reason against having it here, and in addition,
12790
# creating and moving files from /tmp can sometimes cause problems.
12791
# Hook for its removal unless debugging.
12792
# Note that there is a small window in which the directory will not be cleaned:
12793
# after its creation but before its name has been assigned to `$tmp'.
12797
trap 'exit_status=$?
12798
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12800
trap 'as_fn_exit 1' 1 2 13 15
12802
# Create a (secure) tmp directory for tmp files.
12805
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12806
test -n "$tmp" && test -d "$tmp"
12809
tmp=./conf$$-$RANDOM
12810
(umask 077 && mkdir "$tmp")
12811
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12813
# Set up the scripts for CONFIG_FILES section.
12814
# No need to generate them if there are no CONFIG_FILES.
12815
# This happens for instance with `./config.status config.h'.
12816
if test -n "$CONFIG_FILES"; then
12819
ac_cr=`echo X | tr X '\015'`
12820
# On cygwin, bash can eat \r inside `` if the user requested igncr.
12821
# But we know of no other shell where ac_cr would be empty at this
12822
# point, so we can use a bashism as a fallback.
12823
if test "x$ac_cr" = x; then
12824
eval ac_cr=\$\'\\r\'
12826
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12827
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12830
ac_cs_awk_cr=$ac_cr
12833
echo 'BEGIN {' >"$tmp/subs1.awk" &&
12838
echo "cat >conf$$subs.awk <<_ACEOF" &&
12839
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12841
} >conf$$subs.sh ||
12842
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12843
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12845
for ac_last_try in false false false false false :; do
12846
. ./conf$$subs.sh ||
12847
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12849
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12850
if test $ac_delim_n = $ac_delim_num; then
12852
elif $ac_last_try; then
12853
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12855
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12858
rm -f conf$$subs.sh
12860
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12861
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12865
s/^/S["/; s/!.*/"]=/
12875
s/\(.\{148\}\)..*/\1/
12877
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12882
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12889
s/\(.\{148\}\)..*/\1/
12891
s/["\\]/\\&/g; s/^/"/; s/$/"/
12895
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12900
' <conf$$subs.awk | sed '
12905
' >>$CONFIG_STATUS || ac_write_fail=1
12906
rm -f conf$$subs.awk
12907
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12909
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12910
for (key in S) S_is_set[key] = 1
12916
nfields = split(line, field, "@")
12918
len = length(field[1])
12919
for (i = 2; i < nfields; i++) {
12921
keylen = length(key)
12922
if (S_is_set[key]) {
12924
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12925
len += length(value) + length(field[++i])
12936
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12937
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12938
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12941
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12942
|| as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12945
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12946
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12947
# trailing colons and then remove the whole line if VPATH becomes empty
12948
# (actually we leave an empty line to preserve line numbers).
12949
if test "x$srcdir" = x.; then
12950
ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12968
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12969
fi # test -n "$CONFIG_FILES"
12972
eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
12977
:[FHLC]) ac_mode=$ac_tag; continue;;
12979
case $ac_mode$ac_tag in
12981
:L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
12982
:[FH]-) ac_tag=-:-;;
12983
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13000
-) ac_f="$tmp/stdin";;
13001
*) # Look for the file first in the build tree, then in the source tree
13002
# (if the path is not absolute). The absolute path cannot be DOS-style,
13003
# because $ac_f cannot contain `:'.
13007
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13009
as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
13011
case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13012
as_fn_append ac_file_inputs " '$ac_f'"
13015
# Let's still pretend it is `configure' which instantiates (i.e., don't
13016
# use $as_me), people would be surprised to read:
13017
# /* config.h. Generated by config.status. */
13018
configure_input='Generated from '`
13019
$as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13021
if test x"$ac_file" != x-; then
13022
configure_input="$ac_file. $configure_input"
13023
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13024
$as_echo "$as_me: creating $ac_file" >&6;}
13026
# Neutralize special characters interpreted by sed in replacement strings.
13027
case $configure_input in #(
13028
*\&* | *\|* | *\\* )
13029
ac_sed_conf_input=`$as_echo "$configure_input" |
13030
sed 's/[\\\\&|]/\\\\&/g'`;; #(
13031
*) ac_sed_conf_input=$configure_input;;
13035
*:-:* | *:-) cat >"$tmp/stdin" \
13036
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13041
ac_dir=`$as_dirname -- "$ac_file" ||
13042
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13043
X"$ac_file" : 'X\(//\)[^/]' \| \
13044
X"$ac_file" : 'X\(//\)$' \| \
13045
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13046
$as_echo X"$ac_file" |
13047
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13051
/^X\(\/\/\)[^/].*/{
13064
as_dir="$ac_dir"; as_fn_mkdir_p
13068
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13070
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13071
# A ".." for each directory in $ac_dir_suffix.
13072
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13073
case $ac_top_builddir_sub in
13074
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13075
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13078
ac_abs_top_builddir=$ac_pwd
13079
ac_abs_builddir=$ac_pwd$ac_dir_suffix
13080
# for backward compatibility:
13081
ac_top_builddir=$ac_top_build_prefix
13084
.) # We are building in place.
13086
ac_top_srcdir=$ac_top_builddir_sub
13087
ac_abs_top_srcdir=$ac_pwd ;;
13088
[\\/]* | ?:[\\/]* ) # Absolute name.
13089
ac_srcdir=$srcdir$ac_dir_suffix;
13090
ac_top_srcdir=$srcdir
13091
ac_abs_top_srcdir=$srcdir ;;
13092
*) # Relative name.
13093
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13094
ac_top_srcdir=$ac_top_build_prefix$srcdir
13095
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13097
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13107
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13108
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13110
ac_MKDIR_P=$MKDIR_P
13112
[\\/$]* | ?:[\\/]* ) ;;
13113
*/*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13117
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13118
# If the template does not know about datarootdir, expand it.
13119
# FIXME: This hack should be removed a few years after 2.60.
13120
ac_datarootdir_hack=; ac_datarootdir_seen=
13131
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13132
*datarootdir*) ac_datarootdir_seen=yes;;
13133
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13134
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13135
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13137
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13138
ac_datarootdir_hack='
13139
s&@datadir@&$datadir&g
13140
s&@docdir@&$docdir&g
13141
s&@infodir@&$infodir&g
13142
s&@localedir@&$localedir&g
13143
s&@mandir@&$mandir&g
13144
s&\\\${datarootdir}&$datarootdir&g' ;;
13148
# Neutralize VPATH when `$srcdir' = `.'.
13149
# Shell code in configure.ac might set extrasub.
13150
# FIXME: do we really want to maintain this feature?
13151
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13152
ac_sed_extra="$ac_vpsub
13155
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13157
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13158
s|@configure_input@|$ac_sed_conf_input|;t t
13159
s&@top_builddir@&$ac_top_builddir_sub&;t t
13160
s&@top_build_prefix@&$ac_top_build_prefix&;t t
13161
s&@srcdir@&$ac_srcdir&;t t
13162
s&@abs_srcdir@&$ac_abs_srcdir&;t t
13163
s&@top_srcdir@&$ac_top_srcdir&;t t
13164
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13165
s&@builddir@&$ac_builddir&;t t
13166
s&@abs_builddir@&$ac_abs_builddir&;t t
13167
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13168
s&@INSTALL@&$ac_INSTALL&;t t
13169
s&@MKDIR_P@&$ac_MKDIR_P&;t t
13170
$ac_datarootdir_hack
13172
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13173
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
13175
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13176
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13177
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13178
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13179
which seems to be undefined. Please make sure it is defined" >&5
13180
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13181
which seems to be undefined. Please make sure it is defined" >&2;}
13185
-) cat "$tmp/out" && rm -f "$tmp/out";;
13186
*) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13188
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
13192
:C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13193
$as_echo "$as_me: executing $ac_file commands" >&6;}
13198
case $ac_file$ac_mode in
13199
"depfiles":C) test x"$AMDEP_TRUE" != x"" || {
13200
# Autoconf 2.62 quotes --file arguments for eval, but not when files
13201
# are listed without --file. Let's play safe and only enable the eval
13202
# if we detect the quoting.
13203
case $CONFIG_FILES in
13204
*\'*) eval set x "$CONFIG_FILES" ;;
13205
*) set x $CONFIG_FILES ;;
13210
# Strip MF so we end up with the name of the file.
13211
mf=`echo "$mf" | sed -e 's/:.*$//'`
13212
# Check whether this is an Automake generated Makefile or not.
13213
# We used to match only the files named `Makefile.in', but
13214
# some people rename them; so instead we look at the file content.
13215
# Grep'ing the first line is not enough: some people post-process
13216
# each Makefile.in and add a new line on top of each file to say so.
13217
# Grep'ing the whole file is not good either: AIX grep has a line
13218
# limit of 2048, but all sed's we know have understand at least 4000.
13219
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
13220
dirpart=`$as_dirname -- "$mf" ||
13221
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13222
X"$mf" : 'X\(//\)[^/]' \| \
13223
X"$mf" : 'X\(//\)$' \| \
13224
X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
13226
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13230
/^X\(\/\/\)[^/].*/{
13246
# Extract the definition of DEPDIR, am__include, and am__quote
13247
# from the Makefile without running `make'.
13248
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
13249
test -z "$DEPDIR" && continue
13250
am__include=`sed -n 's/^am__include = //p' < "$mf"`
13251
test -z "am__include" && continue
13252
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
13253
# When using ansi2knr, U may be empty or an underscore; expand it
13254
U=`sed -n 's/^U = //p' < "$mf"`
13255
# Find all dependency output files, they are included files with
13256
# $(DEPDIR) in their names. We invoke sed twice because it is the
13257
# simplest approach to changing $(DEPDIR) to its actual value in the
13259
for file in `sed -n "
13260
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
13261
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
13262
# Make sure the directory exists.
13263
test -f "$dirpart/$file" && continue
13264
fdir=`$as_dirname -- "$file" ||
13265
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13266
X"$file" : 'X\(//\)[^/]' \| \
13267
X"$file" : 'X\(//\)$' \| \
13268
X"$file" : 'X\(/\)' \| . 2>/dev/null ||
13269
$as_echo X"$file" |
13270
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13274
/^X\(\/\/\)[^/].*/{
13287
as_dir=$dirpart/$fdir; as_fn_mkdir_p
13288
# echo "creating $dirpart/$file"
13289
echo '# dummy' > "$dirpart/$file"
13296
# See if we are running on zsh, and set the options which allow our
13297
# commands through without removal of \ escapes.
13298
if test -n "${ZSH_VERSION+set}" ; then
13299
setopt NO_GLOB_SUBST
13302
cfgfile="${ofile}T"
13303
trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13306
cat <<_LT_EOF >> "$cfgfile"
13309
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13310
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13311
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13312
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13314
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13315
# 2006, 2007, 2008 Free Software Foundation, Inc.
13316
# Written by Gordon Matzigkeit, 1996
13318
# This file is part of GNU Libtool.
13320
# GNU Libtool is free software; you can redistribute it and/or
13321
# modify it under the terms of the GNU General Public License as
13322
# published by the Free Software Foundation; either version 2 of
13323
# the License, or (at your option) any later version.
13325
# As a special exception to the GNU General Public License,
13326
# if you distribute this file as part of a program or library that
13327
# is built using GNU Libtool, you may include this file under the
13328
# same distribution terms that you use for the rest of that program.
13330
# GNU Libtool is distributed in the hope that it will be useful,
13331
# but WITHOUT ANY WARRANTY; without even the implied warranty of
13332
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13333
# GNU General Public License for more details.
13335
# You should have received a copy of the GNU General Public License
13336
# along with GNU Libtool; see the file COPYING. If not, a copy
13337
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13338
# obtained by writing to the Free Software Foundation, Inc.,
13339
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13342
# The names of the tagged configurations supported by this script.
13345
# ### BEGIN LIBTOOL CONFIG
13347
# Which release of libtool.m4 was used?
13348
macro_version=$macro_version
13349
macro_revision=$macro_revision
13351
# Whether or not to build shared libraries.
13352
build_libtool_libs=$enable_shared
13354
# Whether or not to build static libraries.
13355
build_old_libs=$enable_static
13357
# What type of objects to build.
13360
# Whether or not to optimize for fast installation.
13361
fast_install=$enable_fast_install
13364
host_alias=$host_alias
13368
# The build system.
13369
build_alias=$build_alias
13373
# A sed program that does not truncate output.
13376
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13377
Xsed="\$SED -e 1s/^X//"
13379
# A grep program that handles long lines.
13385
# A literal string matcher.
13388
# A BSD- or MS-compatible name lister.
13391
# Whether we need soft or hard links.
13394
# What is the maximum length of a command?
13395
max_cmd_len=$max_cmd_len
13397
# Object file suffix (normally "o").
13400
# Executable file suffix (normally "").
13403
# whether the shell understands "unset".
13406
# turn spaces into newlines.
13409
# turn newlines into spaces.
13412
# How to create reloadable object files.
13413
reload_flag=$lt_reload_flag
13414
reload_cmds=$lt_reload_cmds
13416
# An object symbol dumper.
13417
OBJDUMP=$lt_OBJDUMP
13419
# Method to check whether dependent libraries are shared objects.
13420
deplibs_check_method=$lt_deplibs_check_method
13422
# Command to use when deplibs_check_method == "file_magic".
13423
file_magic_cmd=$lt_file_magic_cmd
13427
AR_FLAGS=$lt_AR_FLAGS
13429
# A symbol stripping program.
13432
# Commands used to install an old-style archive.
13434
old_postinstall_cmds=$lt_old_postinstall_cmds
13435
old_postuninstall_cmds=$lt_old_postuninstall_cmds
13440
# LTCC compiler flags.
13441
LTCFLAGS=$lt_CFLAGS
13443
# Take the output of nm and produce a listing of raw symbols and C names.
13444
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13446
# Transform the output of nm in a proper C declaration.
13447
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13449
# Transform the output of nm in a C name address pair.
13450
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13452
# Transform the output of nm in a C name address pair when lib prefix is needed.
13453
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13455
# The name of the directory that contains temporary libtool files.
13458
# Shell to use when invoking shell scripts.
13461
# An echo program that does not interpret backslashes.
13464
# Used to examine libraries when file_magic_cmd begins with "file".
13465
MAGIC_CMD=$MAGIC_CMD
13467
# Must we lock files when doing compilation?
13468
need_locks=$lt_need_locks
13470
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13471
DSYMUTIL=$lt_DSYMUTIL
13473
# Tool to change global to local symbols on Mac OS X.
13476
# Tool to manipulate fat objects and archives on Mac OS X.
13479
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13482
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13483
OTOOL64=$lt_OTOOL64
13485
# Old archive suffix (normally "a").
13488
# Shared library suffix (normally ".so").
13489
shrext_cmds=$lt_shrext_cmds
13491
# The commands to extract the exported symbol list from a shared archive.
13492
extract_expsyms_cmds=$lt_extract_expsyms_cmds
13494
# Variables whose values should be saved in libtool wrapper scripts and
13495
# restored at link time.
13496
variables_saved_for_relink=$lt_variables_saved_for_relink
13498
# Do we need the "lib" prefix for modules?
13499
need_lib_prefix=$need_lib_prefix
13501
# Do we need a version for libraries?
13502
need_version=$need_version
13504
# Library versioning type.
13505
version_type=$version_type
13507
# Shared library runtime path variable.
13508
runpath_var=$runpath_var
13510
# Shared library path variable.
13511
shlibpath_var=$shlibpath_var
13513
# Is shlibpath searched before the hard-coded library search path?
13514
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13516
# Format of library name prefix.
13517
libname_spec=$lt_libname_spec
13519
# List of archive names. First name is the real one, the rest are links.
13520
# The last name is the one that the linker finds with -lNAME
13521
library_names_spec=$lt_library_names_spec
13523
# The coded name of the library, if different from the real name.
13524
soname_spec=$lt_soname_spec
13526
# Command to use after installation of a shared archive.
13527
postinstall_cmds=$lt_postinstall_cmds
13529
# Command to use after uninstallation of a shared archive.
13530
postuninstall_cmds=$lt_postuninstall_cmds
13532
# Commands used to finish a libtool library installation in a directory.
13533
finish_cmds=$lt_finish_cmds
13535
# As "finish_cmds", except a single script fragment to be evaled but
13537
finish_eval=$lt_finish_eval
13539
# Whether we should hardcode library paths into libraries.
13540
hardcode_into_libs=$hardcode_into_libs
13542
# Compile-time system search path for libraries.
13543
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13545
# Run-time system search path for libraries.
13546
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13548
# Whether dlopen is supported.
13549
dlopen_support=$enable_dlopen
13551
# Whether dlopen of programs is supported.
13552
dlopen_self=$enable_dlopen_self
13554
# Whether dlopen of statically linked programs is supported.
13555
dlopen_self_static=$enable_dlopen_self_static
13557
# Commands to strip libraries.
13558
old_striplib=$lt_old_striplib
13559
striplib=$lt_striplib
13562
# The linker used to build libraries.
13565
# Commands used to build an old-style archive.
13566
old_archive_cmds=$lt_old_archive_cmds
13568
# A language specific compiler.
13571
# Is the compiler the GNU compiler?
13574
# Compiler flag to turn off builtin functions.
13575
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13577
# How to pass a linker flag through the compiler.
13578
wl=$lt_lt_prog_compiler_wl
13580
# Additional compiler flags for building library objects.
13581
pic_flag=$lt_lt_prog_compiler_pic
13583
# Compiler flag to prevent dynamic linking.
13584
link_static_flag=$lt_lt_prog_compiler_static
13586
# Does compiler simultaneously support -c and -o options?
13587
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13589
# Whether or not to add -lc for building shared libraries.
13590
build_libtool_need_lc=$archive_cmds_need_lc
13592
# Whether or not to disallow shared libs when runtime libs are static.
13593
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13595
# Compiler flag to allow reflexive dlopens.
13596
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13598
# Compiler flag to generate shared objects directly from archives.
13599
whole_archive_flag_spec=$lt_whole_archive_flag_spec
13601
# Whether the compiler copes with passing no objects directly.
13602
compiler_needs_object=$lt_compiler_needs_object
13604
# Create an old-style archive from a shared archive.
13605
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13607
# Create a temporary old-style archive to link instead of a shared archive.
13608
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13610
# Commands used to build a shared archive.
13611
archive_cmds=$lt_archive_cmds
13612
archive_expsym_cmds=$lt_archive_expsym_cmds
13614
# Commands used to build a loadable module if different from building
13615
# a shared archive.
13616
module_cmds=$lt_module_cmds
13617
module_expsym_cmds=$lt_module_expsym_cmds
13619
# Whether we are building with GNU ld or not.
13620
with_gnu_ld=$lt_with_gnu_ld
13622
# Flag that allows shared libraries with undefined symbols to be built.
13623
allow_undefined_flag=$lt_allow_undefined_flag
13625
# Flag that enforces no undefined symbols.
13626
no_undefined_flag=$lt_no_undefined_flag
13628
# Flag to hardcode \$libdir into a binary during linking.
13629
# This must work even if \$libdir does not exist
13630
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13632
# If ld is used when linking, flag to hardcode \$libdir into a binary
13633
# during linking. This must work even if \$libdir does not exist.
13634
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13636
# Whether we need a single "-rpath" flag with a separated argument.
13637
hardcode_libdir_separator=$lt_hardcode_libdir_separator
13639
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13640
# DIR into the resulting binary.
13641
hardcode_direct=$hardcode_direct
13643
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13644
# DIR into the resulting binary and the resulting library dependency is
13645
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13646
# library is relocated.
13647
hardcode_direct_absolute=$hardcode_direct_absolute
13649
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13650
# into the resulting binary.
13651
hardcode_minus_L=$hardcode_minus_L
13653
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13654
# into the resulting binary.
13655
hardcode_shlibpath_var=$hardcode_shlibpath_var
13657
# Set to "yes" if building a shared library automatically hardcodes DIR
13658
# into the library and all subsequent libraries and executables linked
13660
hardcode_automatic=$hardcode_automatic
13662
# Set to yes if linker adds runtime paths of dependent libraries
13663
# to runtime path list.
13664
inherit_rpath=$inherit_rpath
13666
# Whether libtool must link a program against all its dependency libraries.
13667
link_all_deplibs=$link_all_deplibs
13669
# Fix the shell variable \$srcfile for the compiler.
13670
fix_srcfile_path=$lt_fix_srcfile_path
13672
# Set to "yes" if exported symbols are required.
13673
always_export_symbols=$always_export_symbols
13675
# The commands to list exported symbols.
13676
export_symbols_cmds=$lt_export_symbols_cmds
13678
# Symbols that should not be listed in the preloaded symbols.
13679
exclude_expsyms=$lt_exclude_expsyms
13681
# Symbols that must always be exported.
13682
include_expsyms=$lt_include_expsyms
13684
# Commands necessary for linking programs (against libraries) with templates.
13685
prelink_cmds=$lt_prelink_cmds
13687
# Specify filename containing input files.
13688
file_list_spec=$lt_file_list_spec
13690
# How to hardcode a shared library path into an executable.
13691
hardcode_action=$hardcode_action
13693
# ### END LIBTOOL CONFIG
13699
cat <<\_LT_EOF >> "$cfgfile"
13700
# AIX sometimes has problems with the GCC collect2 program. For some
13701
# reason, if we set the COLLECT_NAMES environment variable, the problems
13702
# vanish in a puff of smoke.
13703
if test "X${COLLECT_NAMES+set}" != Xset; then
13705
export COLLECT_NAMES
13712
ltmain="$ac_aux_dir/ltmain.sh"
13715
# We use sed instead of cat because bash on DJGPP gets confused if
13716
# if finds mixed CR/LF and LF-only lines. Since sed operates in
13717
# text mode, it properly converts lines to CR/LF. This bash problem
13718
# is reportedly fixed, but why not run on old versions too?
13719
sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13720
|| (rm -f "$cfgfile"; exit 1)
13724
cat << \_LT_EOF >> "$cfgfile"
13726
# func_dirname file append nondir_replacement
13727
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13728
# otherwise set result to NONDIR_REPLACEMENT.
13732
*/*) func_dirname_result="${1%/*}${2}" ;;
13733
* ) func_dirname_result="${3}" ;;
13737
# func_basename file
13740
func_basename_result="${1##*/}"
13743
# func_dirname_and_basename file append nondir_replacement
13744
# perform func_basename and func_dirname in a single function
13746
# dirname: Compute the dirname of FILE. If nonempty,
13747
# add APPEND to the result, otherwise set result
13748
# to NONDIR_REPLACEMENT.
13749
# value returned in "$func_dirname_result"
13750
# basename: Compute filename of FILE.
13751
# value retuned in "$func_basename_result"
13752
# Implementation must be kept synchronized with func_dirname
13753
# and func_basename. For efficiency, we do not delegate to
13754
# those functions but instead duplicate the functionality here.
13755
func_dirname_and_basename ()
13758
*/*) func_dirname_result="${1%/*}${2}" ;;
13759
* ) func_dirname_result="${3}" ;;
13761
func_basename_result="${1##*/}"
13764
# func_stripname prefix suffix name
13765
# strip PREFIX and SUFFIX off of NAME.
13766
# PREFIX and SUFFIX must not contain globbing or regex special
13767
# characters, hashes, percent signs, but SUFFIX may contain a leading
13768
# dot (in which case that matches only a dot).
13771
# pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13772
# positional parameters, so assign one to ordinary parameter first.
13773
func_stripname_result=${3}
13774
func_stripname_result=${func_stripname_result#"${1}"}
13775
func_stripname_result=${func_stripname_result%"${2}"}
13781
func_opt_split_opt=${1%%=*}
13782
func_opt_split_arg=${1#*=}
13789
*.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13790
*) func_lo2o_result=${1} ;;
13794
# func_xform libobj-or-source
13797
func_xform_result=${1%.*}.lo
13800
# func_arith arithmetic-term...
13803
func_arith_result=$(( $* ))
13807
# STRING may not start with a hyphen.
13810
func_len_result=${#1}
13815
*) # Bourne compatible functions.
13816
cat << \_LT_EOF >> "$cfgfile"
13818
# func_dirname file append nondir_replacement
13819
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13820
# otherwise set result to NONDIR_REPLACEMENT.
13823
# Extract subdirectory from the argument.
13824
func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13825
if test "X$func_dirname_result" = "X${1}"; then
13826
func_dirname_result="${3}"
13828
func_dirname_result="$func_dirname_result${2}"
13832
# func_basename file
13835
func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13839
# func_stripname prefix suffix name
13840
# strip PREFIX and SUFFIX off of NAME.
13841
# PREFIX and SUFFIX must not contain globbing or regex special
13842
# characters, hashes, percent signs, but SUFFIX may contain a leading
13843
# dot (in which case that matches only a dot).
13844
# func_strip_suffix prefix name
13848
.*) func_stripname_result=`$ECHO "X${3}" \
13849
| $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13850
*) func_stripname_result=`$ECHO "X${3}" \
13851
| $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13856
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13857
my_sed_long_arg='1s/^-[^=]*=//'
13862
func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13863
func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13869
func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13872
# func_xform libobj-or-source
13875
func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13878
# func_arith arithmetic-term...
13881
func_arith_result=`expr "$@"`
13885
# STRING may not start with a hyphen.
13888
func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13894
case $lt_shell_append in
13896
cat << \_LT_EOF >> "$cfgfile"
13898
# func_append var value
13899
# Append VALUE to the end of shell variable VAR.
13907
cat << \_LT_EOF >> "$cfgfile"
13909
# func_append var value
13910
# Append VALUE to the end of shell variable VAR.
13921
sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13922
|| (rm -f "$cfgfile"; exit 1)
13924
mv -f "$cfgfile" "$ofile" ||
13925
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13936
ac_clean_files=$ac_clean_files_save
13938
test $ac_write_fail = 0 ||
13939
as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13942
# configure is writing to config.log, and then calls config.status.
13943
# config.status does its own redirection, appending to config.log.
13944
# Unfortunately, on DOS this fails, as config.log is still kept open
13945
# by configure, so config.status won't be able to write to it; its
13946
# output is simply discarded. So we exec the FD to /dev/null,
13947
# effectively closing config.log, so it can be properly (re)opened and
13948
# appended to by config.status. When coming back to configure, we
13949
# need to make the FD available again.
13950
if test "$no_create" != yes; then
13952
ac_config_status_args=
13953
test "$silent" = yes &&
13954
ac_config_status_args="$ac_config_status_args --quiet"
13956
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
13958
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
13959
# would make configure fail if this is the last instruction.
13960
$ac_cs_success || as_fn_exit 1
13962
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
13963
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
13964
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}