2
@%:@ Guess values for system-dependent variables and create Makefiles.
3
@%:@ Generated by GNU Autoconf 2.69 for osl 0.8.4.
5
@%:@ Report bugs to <cedric.bastoul@u-psud.fr,pouchet@cse.ohio-state.edu>.
8
@%:@ Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11
@%:@ This configure script is free software; the Free Software Foundation
12
@%:@ gives unlimited permission to copy, distribute and modify it.
13
## -------------------- ##
14
## M4sh Initialization. ##
15
## -------------------- ##
17
# Be more Bourne compatible
18
DUALCASE=1; export DUALCASE # for MKS sh
19
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23
# is contrary to our usage. Disable this feature.
24
alias -g '${1+"$@"}'='"$@"'
27
case `(set -o) 2>/dev/null` in @%:@(
39
# Printing a long string crashes Solaris 7 /usr/bin/printf.
40
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43
# Prefer a ksh shell builtin over an external printf program on Solaris,
44
# but without wasting forks for bash or zsh.
45
if test -z "$BASH_VERSION$ZSH_VERSION" \
46
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48
as_echo_n='print -rn --'
49
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55
as_echo_n='/usr/ucb/echo -n'
57
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62
expr "X$arg" : "X\\(.*\\)$as_nl";
63
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68
as_echo_n='sh -c $as_echo_n_body as_echo'
71
as_echo='sh -c $as_echo_body as_echo'
74
# The user is always right.
75
if test "${PATH_SEPARATOR+set}" != set; then
77
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85
# We need space, tab and new line, in precisely that order. Quoting is
86
# there to prevent editors from complaining about space-tab.
87
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88
# splitting by setting IFS to empty value.)
91
# Find who we are. Look in the path if we contain no directory separator.
94
*[\\/]* ) as_myself=$0 ;;
95
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99
test -z "$as_dir" && as_dir=.
100
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106
# We did not find ourselves, most probably we were run as `sh COMMAND'
107
# in which case we are not to be found in the path.
108
if test "x$as_myself" = x; then
111
if test ! -f "$as_myself"; then
112
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116
# Unset variables that we do not need and which cause bugs (e.g. in
117
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118
# suppresses any "Segmentation fault" message there. '((' could
119
# trigger a bug in pdksh 5.2.14.
120
for as_var in BASH_ENV ENV MAIL MAILPATH
121
do eval test x\${$as_var+set} = xset \
122
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
# Use a proper internal environment variable to ensure we don't fall
138
# into an infinite loop, continuously re-executing ourselves.
139
if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140
_as_can_reexec=no; export _as_can_reexec;
141
# We cannot yet assume a decent shell, so we have to provide a
142
# neutralization value for shells without unset; and this also
143
# works around shells that cannot unset nonexistent variables.
144
# Preserve -v and -x to the replacement shell.
147
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
149
*v*x* | *x*v* ) as_opts=-vx ;;
154
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155
# Admittedly, this is quite paranoid, since all the known shells bail
156
# out after a failed `exec'.
157
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
160
# We don't want this to propagate to other subprocesses.
161
{ _as_can_reexec=; unset _as_can_reexec;}
162
if test "x$CONFIG_SHELL" = x; then
163
as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
166
# Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167
# is contrary to our usage. Disable this feature.
168
alias -g '\${1+\"\$@\"}'='\"\$@\"'
171
case \`(set -o) 2>/dev/null\` in @%:@(
173
set -o posix ;; @%:@(
179
as_required="as_fn_return () { (exit \$1); }
180
as_fn_success () { as_fn_return 0; }
181
as_fn_failure () { as_fn_return 1; }
182
as_fn_ret_success () { return 0; }
183
as_fn_ret_failure () { return 1; }
186
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
193
exitcode=1; echo positional parameters were not saved.
195
test x\$exitcode = x0 || exit 1
197
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200
test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
202
test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204
ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205
ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206
PATH=/empty FPATH=/empty; export PATH FPATH
207
test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208
|| test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209
test \$(( 1 + 1 )) = 2 || exit 1"
210
if (eval "$as_required") 2>/dev/null; then :
215
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
218
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223
test -z "$as_dir" && as_dir=.
225
case $as_dir in @%:@(
227
for as_base in sh bash ksh sh5; do
228
# Try only shells that exist, to save several forks.
229
as_shell=$as_dir/$as_base
230
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232
CONFIG_SHELL=$as_shell as_have_required=yes
233
if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
241
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243
CONFIG_SHELL=$SHELL as_have_required=yes
248
if test "x$CONFIG_SHELL" != x; then :
250
# We cannot yet assume a decent shell, so we have to provide a
251
# neutralization value for shells without unset; and this also
252
# works around shells that cannot unset nonexistent variables.
253
# Preserve -v and -x to the replacement shell.
256
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
258
*v*x* | *x*v* ) as_opts=-vx ;;
263
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264
# Admittedly, this is quite paranoid, since all the known shells bail
265
# out after a failed `exec'.
266
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
270
if test x$as_have_required = xno; then :
271
$as_echo "$0: This script requires a shell more modern than all"
272
$as_echo "$0: the shells that I found on your system."
273
if test x${ZSH_VERSION+set} = xset ; then
274
$as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275
$as_echo "$0: be upgraded to zsh 4.3.4 or later."
277
$as_echo "$0: Please tell bug-autoconf@gnu.org and
278
$0: cedric.bastoul@u-psud.fr,pouchet@cse.ohio-state.edu
279
$0: about your system, including any error possibly output
280
$0: before this message. Then install a modern shell, or
281
$0: manually run the script under such a shell if you do
288
SHELL=${CONFIG_SHELL-/bin/sh}
290
# Unset more variables known to interfere with behavior of common tools.
291
CLICOLOR_FORCE= GREP_OPTIONS=
292
unset CLICOLOR_FORCE GREP_OPTIONS
294
## --------------------- ##
295
## M4sh Shell Functions. ##
296
## --------------------- ##
299
@%:@ Portably unset VAR.
302
{ eval $1=; unset $1;}
306
@%:@ as_fn_set_status STATUS
307
@%:@ -----------------------
308
@%:@ Set @S|@? to STATUS, without forking.
312
} @%:@ as_fn_set_status
314
@%:@ as_fn_exit STATUS
315
@%:@ -----------------
316
@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
326
@%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
331
-*) as_dir=./$as_dir;;
333
test -d "$as_dir" || eval $as_mkdir_p || {
337
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
340
as_dirs="'$as_qdir' $as_dirs"
341
as_dir=`$as_dirname -- "$as_dir" ||
342
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
343
X"$as_dir" : 'X\(//\)[^/]' \| \
344
X"$as_dir" : 'X\(//\)$' \| \
345
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
346
$as_echo X"$as_dir" |
347
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
364
test -d "$as_dir" && break
366
test -z "$as_dirs" || eval "mkdir $as_dirs"
367
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
372
@%:@ as_fn_executable_p FILE
373
@%:@ -----------------------
374
@%:@ Test if FILE is an executable regular file.
375
as_fn_executable_p ()
377
test -f "$1" && test -x "$1"
378
} @%:@ as_fn_executable_p
379
@%:@ as_fn_append VAR VALUE
380
@%:@ ----------------------
381
@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
382
@%:@ advantage of any shell optimizations that allow amortized linear growth over
383
@%:@ repeated appends, instead of the typical quadratic growth present in naive
384
@%:@ implementations.
385
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
386
eval 'as_fn_append ()
397
@%:@ as_fn_arith ARG...
398
@%:@ ------------------
399
@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
400
@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
401
@%:@ must be portable across @S|@(()) and expr.
402
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
410
as_val=`expr "$@" || test $? -eq 1`
415
@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
416
@%:@ ----------------------------------------
417
@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
418
@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
419
@%:@ script with STATUS, using 1 if that was 0.
422
as_status=$1; test $as_status -eq 0 && as_status=1
424
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
425
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
427
$as_echo "$as_me: error: $2" >&2
428
as_fn_exit $as_status
431
if expr a : '\(a\)' >/dev/null 2>&1 &&
432
test "X`expr 00001 : '.*\(...\)'`" = X001; then
438
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
444
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
450
as_me=`$as_basename -- "$0" ||
451
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
452
X"$0" : 'X\(//\)$' \| \
453
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
455
sed '/^.*\/\([^/][^/]*\)\/*$/{
469
# Avoid depending upon Character Ranges.
470
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
471
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
472
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
473
as_cr_digits='0123456789'
474
as_cr_alnum=$as_cr_Letters$as_cr_digits
477
as_lineno_1=$LINENO as_lineno_1a=$LINENO
478
as_lineno_2=$LINENO as_lineno_2a=$LINENO
479
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
480
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
481
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
493
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
497
chmod +x "$as_me.lineno" ||
498
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
500
# If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501
# already done that, so ensure we don't try to do so again and fall
502
# in an infinite loop. This has already happened in practice.
503
_as_can_reexec=no; export _as_can_reexec
504
# Don't try to exec as it changes $[0], causing all sort of problems
505
# (the dirname of $[0] is not the place where we might find the
506
# original and so on. Autoconf is especially sensitive to this).
508
# Exit status is that of the last command.
512
ECHO_C= ECHO_N= ECHO_T=
513
case `echo -n x` in @%:@(((((
515
case `echo 'xy\c'` in
516
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
518
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
525
rm -f conf$$ conf$$.exe conf$$.file
526
if test -d conf$$.dir; then
527
rm -f conf$$.dir/conf$$.file
530
mkdir conf$$.dir 2>/dev/null
532
if (echo >conf$$.file) 2>/dev/null; then
533
if ln -s conf$$.file conf$$ 2>/dev/null; then
535
# ... but there are two gotchas:
536
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
537
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
538
# In both cases, we have to default to `cp -pR'.
539
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
541
elif ln conf$$.file conf$$ 2>/dev/null; then
549
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
550
rmdir conf$$.dir 2>/dev/null
552
if mkdir -p . 2>/dev/null; then
553
as_mkdir_p='mkdir -p "$as_dir"'
555
test -d ./-p && rmdir ./-p
560
as_executable_p=as_fn_executable_p
562
# Sed expression to map a string onto a valid CPP name.
563
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
565
# Sed expression to map a string onto a valid variable name.
566
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
568
SHELL=${CONFIG_SHELL-/bin/sh}
571
test -n "$DJDIR" || exec 7<&0 </dev/null
575
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576
# so uname gets run too.
577
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
582
ac_default_prefix=/usr/local
584
ac_config_libobj_dir=.
591
# Identity of this package.
593
PACKAGE_TARNAME='osl'
594
PACKAGE_VERSION='0.8.4'
595
PACKAGE_STRING='osl 0.8.4'
596
PACKAGE_BUGREPORT='cedric.bastoul@u-psud.fr,pouchet@cse.ohio-state.edu'
599
ac_unique_file="include/osl/macros.h"
600
# Factoring default headers for most tests.
601
ac_includes_default="\
603
#ifdef HAVE_SYS_TYPES_H
604
# include <sys/types.h>
606
#ifdef HAVE_SYS_STAT_H
607
# include <sys/stat.h>
613
# ifdef HAVE_STDLIB_H
618
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
623
#ifdef HAVE_STRINGS_H
624
# include <strings.h>
626
#ifdef HAVE_INTTYPES_H
627
# include <inttypes.h>
636
ac_subst_vars='am__EXEEXT_FALSE
708
INSTALL_STRIP_PROGRAM
750
program_transform_name
763
enable_option_checking
765
enable_dependency_tracking
773
enable_portable_binary
780
ac_precious_vars='build_alias
791
# Initialize some variables set by options.
793
ac_init_version=false
794
ac_unrecognized_opts=
796
# The variables have the same names as the options, with
797
# dashes changed to underlines.
805
program_transform_name=s,x,x,
813
# Installation directory options.
814
# These are left unexpanded so users can "make install exec_prefix=/foo"
815
# and all the variables that are supposed to be based on exec_prefix
816
# by default will actually change.
817
# Use braces instead of parens because sh, perl, etc. also accept them.
818
# (The list follows the same order as the GNU Coding Standards.)
819
bindir='${exec_prefix}/bin'
820
sbindir='${exec_prefix}/sbin'
821
libexecdir='${exec_prefix}/libexec'
822
datarootdir='${prefix}/share'
823
datadir='${datarootdir}'
824
sysconfdir='${prefix}/etc'
825
sharedstatedir='${prefix}/com'
826
localstatedir='${prefix}/var'
827
includedir='${prefix}/include'
828
oldincludedir='/usr/include'
829
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
830
infodir='${datarootdir}/info'
835
libdir='${exec_prefix}/lib'
836
localedir='${datarootdir}/locale'
837
mandir='${datarootdir}/man'
843
# If the previous option needs an argument, assign it.
844
if test -n "$ac_prev"; then
845
eval $ac_prev=\$ac_option
851
*=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
856
# Accept the important Cygnus configure options, so we can diagnose typos.
858
case $ac_dashdash$ac_option in
862
-bindir | --bindir | --bindi | --bind | --bin | --bi)
864
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
867
-build | --build | --buil | --bui | --bu)
868
ac_prev=build_alias ;;
869
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
870
build_alias=$ac_optarg ;;
872
-cache-file | --cache-file | --cache-fil | --cache-fi \
873
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
874
ac_prev=cache_file ;;
875
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
876
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
877
cache_file=$ac_optarg ;;
880
cache_file=config.cache ;;
882
-datadir | --datadir | --datadi | --datad)
884
-datadir=* | --datadir=* | --datadi=* | --datad=*)
885
datadir=$ac_optarg ;;
887
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
888
| --dataroo | --dataro | --datar)
889
ac_prev=datarootdir ;;
890
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
891
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
892
datarootdir=$ac_optarg ;;
894
-disable-* | --disable-*)
895
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
896
# Reject names that are not valid shell variable names.
897
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
898
as_fn_error $? "invalid feature name: $ac_useropt"
899
ac_useropt_orig=$ac_useropt
900
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
901
case $ac_user_opts in
905
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
906
ac_unrecognized_sep=', ';;
908
eval enable_$ac_useropt=no ;;
910
-docdir | --docdir | --docdi | --doc | --do)
912
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
915
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
917
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
920
-enable-* | --enable-*)
921
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
922
# Reject names that are not valid shell variable names.
923
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
924
as_fn_error $? "invalid feature name: $ac_useropt"
925
ac_useropt_orig=$ac_useropt
926
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
927
case $ac_user_opts in
931
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
932
ac_unrecognized_sep=', ';;
934
eval enable_$ac_useropt=\$ac_optarg ;;
936
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
937
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
938
| --exec | --exe | --ex)
939
ac_prev=exec_prefix ;;
940
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
941
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
942
| --exec=* | --exe=* | --ex=*)
943
exec_prefix=$ac_optarg ;;
945
-gas | --gas | --ga | --g)
946
# Obsolete; use --with-gas.
949
-help | --help | --hel | --he | -h)
951
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
952
ac_init_help=recursive ;;
953
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
954
ac_init_help=short ;;
956
-host | --host | --hos | --ho)
957
ac_prev=host_alias ;;
958
-host=* | --host=* | --hos=* | --ho=*)
959
host_alias=$ac_optarg ;;
961
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
963
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
965
htmldir=$ac_optarg ;;
967
-includedir | --includedir | --includedi | --included | --include \
968
| --includ | --inclu | --incl | --inc)
969
ac_prev=includedir ;;
970
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
971
| --includ=* | --inclu=* | --incl=* | --inc=*)
972
includedir=$ac_optarg ;;
974
-infodir | --infodir | --infodi | --infod | --info | --inf)
976
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
977
infodir=$ac_optarg ;;
979
-libdir | --libdir | --libdi | --libd)
981
-libdir=* | --libdir=* | --libdi=* | --libd=*)
984
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
985
| --libexe | --libex | --libe)
986
ac_prev=libexecdir ;;
987
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
988
| --libexe=* | --libex=* | --libe=*)
989
libexecdir=$ac_optarg ;;
991
-localedir | --localedir | --localedi | --localed | --locale)
993
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
994
localedir=$ac_optarg ;;
996
-localstatedir | --localstatedir | --localstatedi | --localstated \
997
| --localstate | --localstat | --localsta | --localst | --locals)
998
ac_prev=localstatedir ;;
999
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1000
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1001
localstatedir=$ac_optarg ;;
1003
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1005
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1006
mandir=$ac_optarg ;;
1008
-nfp | --nfp | --nf)
1009
# Obsolete; use --without-fp.
1012
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
1013
| --no-cr | --no-c | -n)
1016
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
1017
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1020
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1021
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1022
| --oldin | --oldi | --old | --ol | --o)
1023
ac_prev=oldincludedir ;;
1024
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1025
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1026
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1027
oldincludedir=$ac_optarg ;;
1029
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1031
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1032
prefix=$ac_optarg ;;
1034
-program-prefix | --program-prefix | --program-prefi | --program-pref \
1035
| --program-pre | --program-pr | --program-p)
1036
ac_prev=program_prefix ;;
1037
-program-prefix=* | --program-prefix=* | --program-prefi=* \
1038
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1039
program_prefix=$ac_optarg ;;
1041
-program-suffix | --program-suffix | --program-suffi | --program-suff \
1042
| --program-suf | --program-su | --program-s)
1043
ac_prev=program_suffix ;;
1044
-program-suffix=* | --program-suffix=* | --program-suffi=* \
1045
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1046
program_suffix=$ac_optarg ;;
1048
-program-transform-name | --program-transform-name \
1049
| --program-transform-nam | --program-transform-na \
1050
| --program-transform-n | --program-transform- \
1051
| --program-transform | --program-transfor \
1052
| --program-transfo | --program-transf \
1053
| --program-trans | --program-tran \
1054
| --progr-tra | --program-tr | --program-t)
1055
ac_prev=program_transform_name ;;
1056
-program-transform-name=* | --program-transform-name=* \
1057
| --program-transform-nam=* | --program-transform-na=* \
1058
| --program-transform-n=* | --program-transform-=* \
1059
| --program-transform=* | --program-transfor=* \
1060
| --program-transfo=* | --program-transf=* \
1061
| --program-trans=* | --program-tran=* \
1062
| --progr-tra=* | --program-tr=* | --program-t=*)
1063
program_transform_name=$ac_optarg ;;
1065
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1067
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1068
pdfdir=$ac_optarg ;;
1070
-psdir | --psdir | --psdi | --psd | --ps)
1072
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1075
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1076
| -silent | --silent | --silen | --sile | --sil)
1079
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1081
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1083
sbindir=$ac_optarg ;;
1085
-sharedstatedir | --sharedstatedir | --sharedstatedi \
1086
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1087
| --sharedst | --shareds | --shared | --share | --shar \
1089
ac_prev=sharedstatedir ;;
1090
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1091
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1092
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1094
sharedstatedir=$ac_optarg ;;
1096
-site | --site | --sit)
1098
-site=* | --site=* | --sit=*)
1101
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1103
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1104
srcdir=$ac_optarg ;;
1106
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1107
| --syscon | --sysco | --sysc | --sys | --sy)
1108
ac_prev=sysconfdir ;;
1109
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1110
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1111
sysconfdir=$ac_optarg ;;
1113
-target | --target | --targe | --targ | --tar | --ta | --t)
1114
ac_prev=target_alias ;;
1115
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1116
target_alias=$ac_optarg ;;
1118
-v | -verbose | --verbose | --verbos | --verbo | --verb)
1121
-version | --version | --versio | --versi | --vers | -V)
1122
ac_init_version=: ;;
1125
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1126
# Reject names that are not valid shell variable names.
1127
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1128
as_fn_error $? "invalid package name: $ac_useropt"
1129
ac_useropt_orig=$ac_useropt
1130
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1131
case $ac_user_opts in
1135
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1136
ac_unrecognized_sep=', ';;
1138
eval with_$ac_useropt=\$ac_optarg ;;
1140
-without-* | --without-*)
1141
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1142
# Reject names that are not valid shell variable names.
1143
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1144
as_fn_error $? "invalid package name: $ac_useropt"
1145
ac_useropt_orig=$ac_useropt
1146
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1147
case $ac_user_opts in
1151
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1152
ac_unrecognized_sep=', ';;
1154
eval with_$ac_useropt=no ;;
1157
# Obsolete; use --with-x.
1160
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1161
| --x-incl | --x-inc | --x-in | --x-i)
1162
ac_prev=x_includes ;;
1163
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1164
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1165
x_includes=$ac_optarg ;;
1167
-x-libraries | --x-libraries | --x-librarie | --x-librari \
1168
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1169
ac_prev=x_libraries ;;
1170
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1171
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1172
x_libraries=$ac_optarg ;;
1174
-*) as_fn_error $? "unrecognized option: \`$ac_option'
1175
Try \`$0 --help' for more information"
1179
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1180
# Reject names that are not valid shell variable names.
1181
case $ac_envvar in #(
1182
'' | [0-9]* | *[!_$as_cr_alnum]* )
1183
as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1185
eval $ac_envvar=\$ac_optarg
1186
export $ac_envvar ;;
1189
# FIXME: should be removed in autoconf 3.0.
1190
$as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1191
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1192
$as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1193
: "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1199
if test -n "$ac_prev"; then
1200
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1201
as_fn_error $? "missing argument to $ac_option"
1204
if test -n "$ac_unrecognized_opts"; then
1205
case $enable_option_checking in
1207
fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1208
*) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1212
# Check all directory arguments for consistency.
1213
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1214
datadir sysconfdir sharedstatedir localstatedir includedir \
1215
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1216
libdir localedir mandir
1218
eval ac_val=\$$ac_var
1219
# Remove trailing slashes.
1222
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1223
eval $ac_var=\$ac_val;;
1225
# Be sure to have absolute directory names.
1227
[\\/$]* | ?:[\\/]* ) continue;;
1228
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1230
as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1233
# There might be people who depend on the old broken behavior: `$host'
1234
# used to hold the argument of --host etc.
1235
# FIXME: To remove some day.
1238
target=$target_alias
1240
# FIXME: To remove some day.
1241
if test "x$host_alias" != x; then
1242
if test "x$build_alias" = x; then
1243
cross_compiling=maybe
1244
elif test "x$build_alias" != "x$host_alias"; then
1250
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1252
test "$silent" = yes && exec 6>/dev/null
1255
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1256
ac_ls_di=`ls -di .` &&
1257
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1258
as_fn_error $? "working directory cannot be determined"
1259
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1260
as_fn_error $? "pwd does not report name of working directory"
1263
# Find the source files, if location was not specified.
1264
if test -z "$srcdir"; then
1265
ac_srcdir_defaulted=yes
1266
# Try the directory containing this script, then the parent directory.
1267
ac_confdir=`$as_dirname -- "$as_myself" ||
1268
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1269
X"$as_myself" : 'X\(//\)[^/]' \| \
1270
X"$as_myself" : 'X\(//\)$' \| \
1271
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1272
$as_echo X"$as_myself" |
1273
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1291
if test ! -r "$srcdir/$ac_unique_file"; then
1295
ac_srcdir_defaulted=no
1297
if test ! -r "$srcdir/$ac_unique_file"; then
1298
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1299
as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1301
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1303
cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1305
# When building in place, set srcdir=.
1306
if test "$ac_abs_confdir" = "$ac_pwd"; then
1309
# Remove unnecessary trailing slashes from srcdir.
1310
# Double slashes in file names in object file debugging info
1311
# mess up M-x gdb in Emacs.
1313
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1315
for ac_var in $ac_precious_vars; do
1316
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1317
eval ac_env_${ac_var}_value=\$${ac_var}
1318
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1319
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1323
# Report the --help message.
1325
if test "$ac_init_help" = "long"; then
1326
# Omit some internal or obsolete options to make the list less imposing.
1327
# This message is too long to be a string in the A/UX 3.1 sh.
1329
\`configure' configures osl 0.8.4 to adapt to many kinds of systems.
1331
Usage: $0 [OPTION]... [VAR=VALUE]...
1333
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1334
VAR=VALUE. See below for descriptions of some of the useful variables.
1336
Defaults for the options are specified in brackets.
1339
-h, --help display this help and exit
1340
--help=short display options specific to this package
1341
--help=recursive display the short help of all the included packages
1342
-V, --version display version information and exit
1343
-q, --quiet, --silent do not print \`checking ...' messages
1344
--cache-file=FILE cache test results in FILE [disabled]
1345
-C, --config-cache alias for \`--cache-file=config.cache'
1346
-n, --no-create do not create output files
1347
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1349
Installation directories:
1350
--prefix=PREFIX install architecture-independent files in PREFIX
1351
@<:@@S|@ac_default_prefix@:>@
1352
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1355
By default, \`make install' will install all the files in
1356
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1357
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1358
for instance \`--prefix=\$HOME'.
1360
For better control, use the options below.
1362
Fine tuning of the installation directories:
1363
--bindir=DIR user executables [EPREFIX/bin]
1364
--sbindir=DIR system admin executables [EPREFIX/sbin]
1365
--libexecdir=DIR program executables [EPREFIX/libexec]
1366
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1367
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1368
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1369
--libdir=DIR object code libraries [EPREFIX/lib]
1370
--includedir=DIR C header files [PREFIX/include]
1371
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1372
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1373
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1374
--infodir=DIR info documentation [DATAROOTDIR/info]
1375
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1376
--mandir=DIR man documentation [DATAROOTDIR/man]
1377
--docdir=DIR documentation root @<:@DATAROOTDIR/doc/osl@:>@
1378
--htmldir=DIR html documentation [DOCDIR]
1379
--dvidir=DIR dvi documentation [DOCDIR]
1380
--pdfdir=DIR pdf documentation [DOCDIR]
1381
--psdir=DIR ps documentation [DOCDIR]
1387
--program-prefix=PREFIX prepend PREFIX to installed program names
1388
--program-suffix=SUFFIX append SUFFIX to installed program names
1389
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1392
--build=BUILD configure for building on BUILD [guessed]
1393
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1397
if test -n "$ac_init_help"; then
1398
case $ac_init_help in
1399
short | recursive ) echo "Configuration of osl 0.8.4:";;
1404
--disable-option-checking ignore unrecognized --enable/--with options
1405
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1406
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1407
--enable-silent-rules less verbose build output (undo: `make V=1')
1408
--disable-silent-rules verbose build output (undo: `make V=0')
1409
--disable-dependency-tracking speeds up one-time build
1410
--enable-dependency-tracking do not reject slow dependency extractors
1411
--enable-shared@<:@=PKGS@:>@ build shared libraries @<:@default=yes@:>@
1412
--enable-static@<:@=PKGS@:>@ build static libraries @<:@default=yes@:>@
1413
--enable-fast-install@<:@=PKGS@:>@
1414
optimize for fast installation @<:@default=yes@:>@
1415
--disable-libtool-lock avoid locking (might break parallel builds)
1416
--enable-portable-binary
1417
disable compiler optimizations that would produce
1421
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1422
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1423
--with-pic@<:@=PKGS@:>@ try to use only PIC/non-PIC objects @<:@default=use
1425
--with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@
1426
--with-sysroot=DIR Search for dependent libraries within DIR
1427
(or the compiler's sysroot if not specified).
1428
--with-gcc-arch=<arch> use architecture <arch> for gcc -march/-mtune,
1430
--with-gmp=no|system|build
1432
--with-gmp-prefix=DIR Prefix of gmp installation
1433
--with-gmp-exec-prefix=DIR
1434
Exec prefix of gmp installation
1435
--with-gmp-builddir=DIR Location of gmp builddir
1437
Some influential environment variables:
1438
CC C compiler command
1439
CFLAGS C compiler flags
1440
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1441
nonstandard directory <lib dir>
1442
LIBS libraries to pass to the linker, e.g. -l<library>
1443
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1444
you have headers in a nonstandard directory <include dir>
1447
Use these variables to override the choices made by `configure' or to help
1448
it to find libraries and programs with nonstandard names/locations.
1450
Report bugs to <cedric.bastoul@u-psud.fr,pouchet@cse.ohio-state.edu>.
1455
if test "$ac_init_help" = "recursive"; then
1456
# If there are subdirs, report their specific --help.
1457
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1458
test -d "$ac_dir" ||
1459
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1464
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1466
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1467
# A ".." for each directory in $ac_dir_suffix.
1468
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1469
case $ac_top_builddir_sub in
1470
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1471
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1474
ac_abs_top_builddir=$ac_pwd
1475
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1476
# for backward compatibility:
1477
ac_top_builddir=$ac_top_build_prefix
1480
.) # We are building in place.
1482
ac_top_srcdir=$ac_top_builddir_sub
1483
ac_abs_top_srcdir=$ac_pwd ;;
1484
[\\/]* | ?:[\\/]* ) # Absolute name.
1485
ac_srcdir=$srcdir$ac_dir_suffix;
1486
ac_top_srcdir=$srcdir
1487
ac_abs_top_srcdir=$srcdir ;;
1489
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1490
ac_top_srcdir=$ac_top_build_prefix$srcdir
1491
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1493
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1495
cd "$ac_dir" || { ac_status=$?; continue; }
1496
# Check for guested configure.
1497
if test -f "$ac_srcdir/configure.gnu"; then
1499
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1500
elif test -f "$ac_srcdir/configure"; then
1502
$SHELL "$ac_srcdir/configure" --help=recursive
1504
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1506
cd "$ac_pwd" || { ac_status=$?; break; }
1510
test -n "$ac_init_help" && exit $ac_status
1511
if $ac_init_version; then
1514
generated by GNU Autoconf 2.69
1516
Copyright (C) 2012 Free Software Foundation, Inc.
1517
This configure script is free software; the Free Software Foundation
1518
gives unlimited permission to copy, distribute and modify it.
1523
## ------------------------ ##
1524
## Autoconf initialization. ##
1525
## ------------------------ ##
1527
@%:@ ac_fn_c_try_compile LINENO
1528
@%:@ --------------------------
1529
@%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
1530
ac_fn_c_try_compile ()
1532
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1533
rm -f conftest.$ac_objext
1534
if { { ac_try="$ac_compile"
1536
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1537
*) ac_try_echo=$ac_try;;
1539
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1540
$as_echo "$ac_try_echo"; } >&5
1541
(eval "$ac_compile") 2>conftest.err
1543
if test -s conftest.err; then
1544
grep -v '^ *+' conftest.err >conftest.er1
1545
cat conftest.er1 >&5
1546
mv -f conftest.er1 conftest.err
1548
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1549
test $ac_status = 0; } && {
1550
test -z "$ac_c_werror_flag" ||
1551
test ! -s conftest.err
1552
} && test -s conftest.$ac_objext; then :
1555
$as_echo "$as_me: failed program was:" >&5
1556
sed 's/^/| /' conftest.$ac_ext >&5
1560
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1561
as_fn_set_status $ac_retval
1563
} @%:@ ac_fn_c_try_compile
1565
@%:@ ac_fn_c_try_link LINENO
1566
@%:@ -----------------------
1567
@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
1570
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1571
rm -f conftest.$ac_objext conftest$ac_exeext
1572
if { { ac_try="$ac_link"
1574
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1575
*) ac_try_echo=$ac_try;;
1577
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1578
$as_echo "$ac_try_echo"; } >&5
1579
(eval "$ac_link") 2>conftest.err
1581
if test -s conftest.err; then
1582
grep -v '^ *+' conftest.err >conftest.er1
1583
cat conftest.er1 >&5
1584
mv -f conftest.er1 conftest.err
1586
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1587
test $ac_status = 0; } && {
1588
test -z "$ac_c_werror_flag" ||
1589
test ! -s conftest.err
1590
} && test -s conftest$ac_exeext && {
1591
test "$cross_compiling" = yes ||
1592
test -x conftest$ac_exeext
1596
$as_echo "$as_me: failed program was:" >&5
1597
sed 's/^/| /' conftest.$ac_ext >&5
1601
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1602
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1603
# interfere with the next link command; also delete a directory that is
1604
# left behind by Apple's compiler. We do this before executing the actions.
1605
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1606
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1607
as_fn_set_status $ac_retval
1609
} @%:@ ac_fn_c_try_link
1611
@%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1612
@%:@ -------------------------------------------------------
1613
@%:@ Tests whether HEADER exists and can be compiled using the include files in
1614
@%:@ INCLUDES, setting the cache variable VAR accordingly.
1615
ac_fn_c_check_header_compile ()
1617
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1618
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1619
$as_echo_n "checking for $2... " >&6; }
1620
if eval \${$3+:} false; then :
1621
$as_echo_n "(cached) " >&6
1623
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1624
/* end confdefs.h. */
1628
if ac_fn_c_try_compile "$LINENO"; then :
1633
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1636
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1637
$as_echo "$ac_res" >&6; }
1638
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1640
} @%:@ ac_fn_c_check_header_compile
1642
@%:@ ac_fn_c_try_cpp LINENO
1643
@%:@ ----------------------
1644
@%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
1647
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1648
if { { ac_try="$ac_cpp conftest.$ac_ext"
1650
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1651
*) ac_try_echo=$ac_try;;
1653
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1654
$as_echo "$ac_try_echo"; } >&5
1655
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1657
if test -s conftest.err; then
1658
grep -v '^ *+' conftest.err >conftest.er1
1659
cat conftest.er1 >&5
1660
mv -f conftest.er1 conftest.err
1662
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1663
test $ac_status = 0; } > conftest.i && {
1664
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1665
test ! -s conftest.err
1669
$as_echo "$as_me: failed program was:" >&5
1670
sed 's/^/| /' conftest.$ac_ext >&5
1674
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1675
as_fn_set_status $ac_retval
1677
} @%:@ ac_fn_c_try_cpp
1679
@%:@ ac_fn_c_try_run LINENO
1680
@%:@ ----------------------
1681
@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes
1682
@%:@ that executables *can* be run.
1685
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1686
if { { ac_try="$ac_link"
1688
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1689
*) ac_try_echo=$ac_try;;
1691
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1692
$as_echo "$ac_try_echo"; } >&5
1693
(eval "$ac_link") 2>&5
1695
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1696
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1697
{ { case "(($ac_try" in
1698
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1699
*) ac_try_echo=$ac_try;;
1701
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702
$as_echo "$ac_try_echo"; } >&5
1703
(eval "$ac_try") 2>&5
1705
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1706
test $ac_status = 0; }; }; then :
1709
$as_echo "$as_me: program exited with status $ac_status" >&5
1710
$as_echo "$as_me: failed program was:" >&5
1711
sed 's/^/| /' conftest.$ac_ext >&5
1713
ac_retval=$ac_status
1715
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1716
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1717
as_fn_set_status $ac_retval
1719
} @%:@ ac_fn_c_try_run
1721
@%:@ ac_fn_c_check_func LINENO FUNC VAR
1722
@%:@ ----------------------------------
1723
@%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly
1724
ac_fn_c_check_func ()
1726
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1727
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1728
$as_echo_n "checking for $2... " >&6; }
1729
if eval \${$3+:} false; then :
1730
$as_echo_n "(cached) " >&6
1732
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1733
/* end confdefs.h. */
1734
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1735
For example, HP-UX 11i <limits.h> declares gettimeofday. */
1736
#define $2 innocuous_$2
1738
/* System header to define __stub macros and hopefully few prototypes,
1739
which can conflict with char $2 (); below.
1740
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1741
<limits.h> exists even on freestanding compilers. */
1744
# include <limits.h>
1746
# include <assert.h>
1751
/* Override any GCC internal prototype to avoid an error.
1752
Use char because int might match the return type of a GCC
1753
builtin and then its argument prototype would still apply. */
1758
/* The GNU C library defines this for functions which it implements
1759
to always fail with ENOSYS. Some functions are actually named
1760
something starting with __ and the normal name is an alias. */
1761
#if defined __stub_$2 || defined __stub___$2
1773
if ac_fn_c_try_link "$LINENO"; then :
1778
rm -f core conftest.err conftest.$ac_objext \
1779
conftest$ac_exeext conftest.$ac_ext
1782
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1783
$as_echo "$ac_res" >&6; }
1784
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1786
} @%:@ ac_fn_c_check_func
1788
@%:@ ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1789
@%:@ -------------------------------------------
1790
@%:@ Tests whether TYPE exists after having included INCLUDES, setting cache
1791
@%:@ variable VAR accordingly.
1792
ac_fn_c_check_type ()
1794
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1795
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1796
$as_echo_n "checking for $2... " >&6; }
1797
if eval \${$3+:} false; then :
1798
$as_echo_n "(cached) " >&6
1801
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1802
/* end confdefs.h. */
1813
if ac_fn_c_try_compile "$LINENO"; then :
1814
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1815
/* end confdefs.h. */
1826
if ac_fn_c_try_compile "$LINENO"; then :
1831
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1833
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1836
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1837
$as_echo "$ac_res" >&6; }
1838
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1840
} @%:@ ac_fn_c_check_type
1842
@%:@ ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1843
@%:@ -------------------------------------------------------
1844
@%:@ Tests whether HEADER exists, giving a warning if it cannot be compiled using
1845
@%:@ the include files in INCLUDES and setting the cache variable VAR
1847
ac_fn_c_check_header_mongrel ()
1849
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1850
if eval \${$3+:} false; then :
1851
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1852
$as_echo_n "checking for $2... " >&6; }
1853
if eval \${$3+:} false; then :
1854
$as_echo_n "(cached) " >&6
1857
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1858
$as_echo "$ac_res" >&6; }
1860
# Is the header compilable?
1861
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1862
$as_echo_n "checking $2 usability... " >&6; }
1863
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1864
/* end confdefs.h. */
1868
if ac_fn_c_try_compile "$LINENO"; then :
1869
ac_header_compiler=yes
1871
ac_header_compiler=no
1873
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1874
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1875
$as_echo "$ac_header_compiler" >&6; }
1877
# Is the header present?
1878
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1879
$as_echo_n "checking $2 presence... " >&6; }
1880
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1881
/* end confdefs.h. */
1884
if ac_fn_c_try_cpp "$LINENO"; then :
1885
ac_header_preproc=yes
1887
ac_header_preproc=no
1889
rm -f conftest.err conftest.i conftest.$ac_ext
1890
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1891
$as_echo "$ac_header_preproc" >&6; }
1893
# So? What about this header?
1894
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1896
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1897
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1898
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1899
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1902
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1903
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1904
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1905
$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1906
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1907
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1908
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1909
$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1910
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1911
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1912
( $as_echo "## ppppppppppppppppppppppppppppppppppppppp ##
1913
## Report this to cedric.bastoul@u-psud.fr ##
1914
## ppppppppppppppppppppppppppppppppppppppp ##"
1915
) | sed "s/^/$as_me: WARNING: /" >&2
1918
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1919
$as_echo_n "checking for $2... " >&6; }
1920
if eval \${$3+:} false; then :
1921
$as_echo_n "(cached) " >&6
1923
eval "$3=\$ac_header_compiler"
1926
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1927
$as_echo "$ac_res" >&6; }
1929
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1931
} @%:@ ac_fn_c_check_header_mongrel
1932
cat >config.log <<_ACEOF
1933
This file contains any messages produced by compilers while
1934
running configure, to aid debugging if configure makes a mistake.
1936
It was created by osl $as_me 0.8.4, which was
1937
generated by GNU Autoconf 2.69. Invocation command line was
1949
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1950
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1951
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1952
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1953
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1955
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1956
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1958
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1959
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1960
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1961
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1962
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1963
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1964
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1968
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1972
test -z "$as_dir" && as_dir=.
1973
$as_echo "PATH: $as_dir"
1989
# Keep a trace of the command line.
1990
# Strip out --no-create and --no-recursion so they do not pile up.
1991
# Strip out --silent because we don't want to record it for future runs.
1992
# Also quote any args containing shell meta-characters.
1993
# Make two passes to allow for proper duplicate-argument suppression.
1997
ac_must_keep_next=false
2003
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2004
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
2005
| -silent | --silent | --silen | --sile | --sil)
2008
ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2011
1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2013
as_fn_append ac_configure_args1 " '$ac_arg'"
2014
if test $ac_must_keep_next = true; then
2015
ac_must_keep_next=false # Got value, back to normal.
2018
*=* | --config-cache | -C | -disable-* | --disable-* \
2019
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2020
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2021
| -with-* | --with-* | -without-* | --without-* | --x)
2022
case "$ac_configure_args0 " in
2023
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2026
-* ) ac_must_keep_next=true ;;
2029
as_fn_append ac_configure_args " '$ac_arg'"
2034
{ ac_configure_args0=; unset ac_configure_args0;}
2035
{ ac_configure_args1=; unset ac_configure_args1;}
2037
# When interrupted or exit'd, cleanup temporary files, and complete
2038
# config.log. We remove comments because anyway the quotes in there
2039
# would cause problems or look ugly.
2040
# WARNING: Use '\'' to represent an apostrophe within the trap.
2041
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2042
trap 'exit_status=$?
2043
# Save into config.log some information that might help in debugging.
2047
$as_echo "## ---------------- ##
2048
## Cache variables. ##
2049
## ---------------- ##"
2051
# The following way of writing the cache mishandles newlines in values,
2053
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2054
eval ac_val=\$$ac_var
2058
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2059
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2062
_ | IFS | as_nl) ;; #(
2063
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2064
*) { eval $ac_var=; unset $ac_var;} ;;
2069
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2070
*${as_nl}ac_space=\ *)
2072
"s/'\''/'\''\\\\'\'''\''/g;
2073
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2076
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2083
$as_echo "## ----------------- ##
2084
## Output variables. ##
2085
## ----------------- ##"
2087
for ac_var in $ac_subst_vars
2089
eval ac_val=\$$ac_var
2091
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2093
$as_echo "$ac_var='\''$ac_val'\''"
2097
if test -n "$ac_subst_files"; then
2098
$as_echo "## ------------------- ##
2099
## File substitutions. ##
2100
## ------------------- ##"
2102
for ac_var in $ac_subst_files
2104
eval ac_val=\$$ac_var
2106
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2108
$as_echo "$ac_var='\''$ac_val'\''"
2113
if test -s confdefs.h; then
2114
$as_echo "## ----------- ##
2121
test "$ac_signal" != 0 &&
2122
$as_echo "$as_me: caught signal $ac_signal"
2123
$as_echo "$as_me: exit $exit_status"
2125
rm -f core *.core core.conftest.* &&
2126
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2129
for ac_signal in 1 2 13 15; do
2130
trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2134
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2135
rm -f -r conftest* confdefs.h
2137
$as_echo "/* confdefs.h */" > confdefs.h
2139
# Predefined preprocessor variables.
2141
cat >>confdefs.h <<_ACEOF
2142
@%:@define PACKAGE_NAME "$PACKAGE_NAME"
2145
cat >>confdefs.h <<_ACEOF
2146
@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2149
cat >>confdefs.h <<_ACEOF
2150
@%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
2153
cat >>confdefs.h <<_ACEOF
2154
@%:@define PACKAGE_STRING "$PACKAGE_STRING"
2157
cat >>confdefs.h <<_ACEOF
2158
@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2161
cat >>confdefs.h <<_ACEOF
2162
@%:@define PACKAGE_URL "$PACKAGE_URL"
2166
# Let the site file select an alternate cache file if it wants to.
2167
# Prefer an explicitly selected file to automatically selected ones.
2170
if test -n "$CONFIG_SITE"; then
2171
# We do not want a PATH search for config.site.
2172
case $CONFIG_SITE in @%:@((
2173
-*) ac_site_file1=./$CONFIG_SITE;;
2174
*/*) ac_site_file1=$CONFIG_SITE;;
2175
*) ac_site_file1=./$CONFIG_SITE;;
2177
elif test "x$prefix" != xNONE; then
2178
ac_site_file1=$prefix/share/config.site
2179
ac_site_file2=$prefix/etc/config.site
2181
ac_site_file1=$ac_default_prefix/share/config.site
2182
ac_site_file2=$ac_default_prefix/etc/config.site
2184
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2186
test "x$ac_site_file" = xNONE && continue
2187
if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2188
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2189
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2190
sed 's/^/| /' "$ac_site_file" >&5
2192
|| { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2193
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2194
as_fn_error $? "failed to load site script $ac_site_file
2195
See \`config.log' for more details" "$LINENO" 5; }
2199
if test -r "$cache_file"; then
2200
# Some versions of bash will fail to source /dev/null (special files
2201
# actually), so we avoid doing that. DJGPP emulates it as a regular file.
2202
if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2203
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2204
$as_echo "$as_me: loading cache $cache_file" >&6;}
2206
[\\/]* | ?:[\\/]* ) . "$cache_file";;
2207
*) . "./$cache_file";;
2211
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2212
$as_echo "$as_me: creating cache $cache_file" >&6;}
2216
# Check that the precious variables saved in the cache have kept the same
2218
ac_cache_corrupted=false
2219
for ac_var in $ac_precious_vars; do
2220
eval ac_old_set=\$ac_cv_env_${ac_var}_set
2221
eval ac_new_set=\$ac_env_${ac_var}_set
2222
eval ac_old_val=\$ac_cv_env_${ac_var}_value
2223
eval ac_new_val=\$ac_env_${ac_var}_value
2224
case $ac_old_set,$ac_new_set in
2226
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2227
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2228
ac_cache_corrupted=: ;;
2230
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2231
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2232
ac_cache_corrupted=: ;;
2235
if test "x$ac_old_val" != "x$ac_new_val"; then
2236
# differences in whitespace do not lead to failure.
2237
ac_old_val_w=`echo x $ac_old_val`
2238
ac_new_val_w=`echo x $ac_new_val`
2239
if test "$ac_old_val_w" != "$ac_new_val_w"; then
2240
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2241
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2242
ac_cache_corrupted=:
2244
{ $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2245
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2246
eval $ac_var=\$ac_old_val
2248
{ $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2249
$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2250
{ $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2251
$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2254
# Pass precious variables to config.status.
2255
if test "$ac_new_set" = set; then
2257
*\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2258
*) ac_arg=$ac_var=$ac_new_val ;;
2260
case " $ac_configure_args " in
2261
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2262
*) as_fn_append ac_configure_args " '$ac_arg'" ;;
2266
if $ac_cache_corrupted; then
2267
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2268
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2269
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2270
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2271
as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2273
## -------------------- ##
2274
## Main body of script. ##
2275
## -------------------- ##
2278
ac_cpp='$CPP $CPPFLAGS'
2279
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2280
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2281
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2286
for ac_dir in autoconf "$srcdir"/autoconf; do
2287
if test -f "$ac_dir/install-sh"; then
2289
ac_install_sh="$ac_aux_dir/install-sh -c"
2291
elif test -f "$ac_dir/install.sh"; then
2293
ac_install_sh="$ac_aux_dir/install.sh -c"
2295
elif test -f "$ac_dir/shtool"; then
2297
ac_install_sh="$ac_aux_dir/shtool install -c"
2301
if test -z "$ac_aux_dir"; then
2302
as_fn_error $? "cannot find install-sh, install.sh, or shtool in autoconf \"$srcdir\"/autoconf" "$LINENO" 5
2305
# These three variables are undocumented and unsupported,
2306
# and are intended to be withdrawn in a future Autoconf release.
2307
# They can cause serious problems if a builder's source tree is in a directory
2308
# whose full name contains unusual characters.
2309
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2310
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2311
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2316
am__api_version='1.11'
2318
# Find a good install program. We prefer a C program (faster),
2319
# so one script is as good as another. But avoid the broken or
2320
# incompatible versions:
2321
# SysV /etc/install, /usr/sbin/install
2322
# SunOS /usr/etc/install
2323
# IRIX /sbin/install
2325
# AmigaOS /C/install, which installs bootblocks on floppy discs
2326
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2327
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2328
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2329
# OS/2's system install, which has a completely different semantic
2330
# ./install, which can be erroneously created by make from ./install.sh.
2331
# Reject install programs that cannot install multiple files.
2332
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2333
$as_echo_n "checking for a BSD-compatible install... " >&6; }
2334
if test -z "$INSTALL"; then
2335
if ${ac_cv_path_install+:} false; then :
2336
$as_echo_n "(cached) " >&6
2338
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2342
test -z "$as_dir" && as_dir=.
2343
# Account for people who put trailing slashes in PATH elements.
2344
case $as_dir/ in @%:@((
2345
./ | .// | /[cC]/* | \
2346
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2347
?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2350
# OSF1 and SCO ODT 3.0 have their own names for install.
2351
# Don't use installbsd from OSF since it installs stuff as root
2353
for ac_prog in ginstall scoinst install; do
2354
for ac_exec_ext in '' $ac_executable_extensions; do
2355
if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2356
if test $ac_prog = install &&
2357
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2358
# AIX install. It has an incompatible calling convention.
2360
elif test $ac_prog = install &&
2361
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2362
# program-specific install script used by HP pwplus--don't use.
2365
rm -rf conftest.one conftest.two conftest.dir
2366
echo one > conftest.one
2367
echo two > conftest.two
2369
if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2370
test -s conftest.one && test -s conftest.two &&
2371
test -s conftest.dir/conftest.one &&
2372
test -s conftest.dir/conftest.two
2374
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2387
rm -rf conftest.one conftest.two conftest.dir
2390
if test "${ac_cv_path_install+set}" = set; then
2391
INSTALL=$ac_cv_path_install
2393
# As a last resort, use the slow shell script. Don't cache a
2394
# value for INSTALL within a source directory, because that will
2395
# break other packages using the cache if that directory is
2396
# removed, or if the value is a relative name.
2397
INSTALL=$ac_install_sh
2400
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2401
$as_echo "$INSTALL" >&6; }
2403
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2404
# It thinks the first close brace ends the variable substitution.
2405
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2407
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2409
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2411
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2412
$as_echo_n "checking whether build environment is sane... " >&6; }
2415
echo timestamp > conftest.file
2416
# Reject unsafe characters in $srcdir or the absolute working directory
2417
# name. Accept space and tab only in the latter.
2421
*[\\\"\#\$\&\'\`$am_lf]*)
2422
as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2425
*[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2426
as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2429
# Do `set' in a subshell so we don't clobber the current shell's
2430
# arguments. Must try -L first in case configure is actually a
2431
# symlink; some systems play weird games with the mod time of symlinks
2432
# (eg FreeBSD returns the mod time of the symlink's containing
2435
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2436
if test "$*" = "X"; then
2438
set X `ls -t "$srcdir/configure" conftest.file`
2441
if test "$*" != "X $srcdir/configure conftest.file" \
2442
&& test "$*" != "X conftest.file $srcdir/configure"; then
2444
# If neither matched, then we have a broken ls. This can happen
2445
# if, for instance, CONFIG_SHELL is bash and it inherits a
2446
# broken ls alias from the environment. This has actually
2447
# happened. Such a system could not be considered "sane".
2448
as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2449
alias in your environment" "$LINENO" 5
2452
test "$2" = conftest.file
2458
as_fn_error $? "newly created file is older than distributed files!
2459
Check your system clock" "$LINENO" 5
2461
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2462
$as_echo "yes" >&6; }
2463
test "$program_prefix" != NONE &&
2464
program_transform_name="s&^&$program_prefix&;$program_transform_name"
2465
# Use a double $ so make ignores it.
2466
test "$program_suffix" != NONE &&
2467
program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2468
# Double any \ or $.
2469
# By default was `s,x,x', remove it if useless.
2470
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2471
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2473
# expand $ac_aux_dir to an absolute path
2474
am_aux_dir=`cd $ac_aux_dir && pwd`
2476
if test x"${MISSING+set}" != xset; then
2479
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2481
MISSING="\${SHELL} $am_aux_dir/missing" ;;
2484
# Use eval to expand $SHELL
2485
if eval "$MISSING --run true"; then
2486
am_missing_run="$MISSING --run "
2489
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2490
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2493
if test x"${install_sh}" != xset; then
2496
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2498
install_sh="\${SHELL} $am_aux_dir/install-sh"
2502
# Installed binaries are usually stripped using `strip' when the user
2503
# run `make install-strip'. However `strip' might not be the right
2504
# tool to use in cross-compilation environments, therefore Automake
2505
# will honor the `STRIP' environment variable to overrule this program.
2506
if test "$cross_compiling" != no; then
2507
if test -n "$ac_tool_prefix"; then
2508
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2509
set dummy ${ac_tool_prefix}strip; ac_word=$2
2510
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2511
$as_echo_n "checking for $ac_word... " >&6; }
2512
if ${ac_cv_prog_STRIP+:} false; then :
2513
$as_echo_n "(cached) " >&6
2515
if test -n "$STRIP"; then
2516
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2518
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2522
test -z "$as_dir" && as_dir=.
2523
for ac_exec_ext in '' $ac_executable_extensions; do
2524
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2525
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2526
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2535
STRIP=$ac_cv_prog_STRIP
2536
if test -n "$STRIP"; then
2537
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2538
$as_echo "$STRIP" >&6; }
2540
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2541
$as_echo "no" >&6; }
2546
if test -z "$ac_cv_prog_STRIP"; then
2548
# Extract the first word of "strip", so it can be a program name with args.
2549
set dummy strip; ac_word=$2
2550
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2551
$as_echo_n "checking for $ac_word... " >&6; }
2552
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2553
$as_echo_n "(cached) " >&6
2555
if test -n "$ac_ct_STRIP"; then
2556
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2558
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2562
test -z "$as_dir" && as_dir=.
2563
for ac_exec_ext in '' $ac_executable_extensions; do
2564
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2565
ac_cv_prog_ac_ct_STRIP="strip"
2566
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2575
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2576
if test -n "$ac_ct_STRIP"; then
2577
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2578
$as_echo "$ac_ct_STRIP" >&6; }
2580
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2581
$as_echo "no" >&6; }
2584
if test "x$ac_ct_STRIP" = x; then
2587
case $cross_compiling:$ac_tool_warned in
2589
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2590
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2591
ac_tool_warned=yes ;;
2596
STRIP="$ac_cv_prog_STRIP"
2600
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2602
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2603
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2604
if test -z "$MKDIR_P"; then
2605
if ${ac_cv_path_mkdir+:} false; then :
2606
$as_echo_n "(cached) " >&6
2608
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2609
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2612
test -z "$as_dir" && as_dir=.
2613
for ac_prog in mkdir gmkdir; do
2614
for ac_exec_ext in '' $ac_executable_extensions; do
2615
as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2616
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2617
'mkdir (GNU coreutils) '* | \
2618
'mkdir (coreutils) '* | \
2619
'mkdir (fileutils) '4.1*)
2620
ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2630
test -d ./--version && rmdir ./--version
2631
if test "${ac_cv_path_mkdir+set}" = set; then
2632
MKDIR_P="$ac_cv_path_mkdir -p"
2634
# As a last resort, use the slow shell script. Don't cache a
2635
# value for MKDIR_P within a source directory, because that will
2636
# break other packages using the cache if that directory is
2637
# removed, or if the value is a relative name.
2638
MKDIR_P="$ac_install_sh -d"
2641
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2642
$as_echo "$MKDIR_P" >&6; }
2646
[\\/$]* | ?:[\\/]*) ;;
2647
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2650
for ac_prog in gawk mawk nawk awk
2652
# Extract the first word of "$ac_prog", so it can be a program name with args.
2653
set dummy $ac_prog; ac_word=$2
2654
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2655
$as_echo_n "checking for $ac_word... " >&6; }
2656
if ${ac_cv_prog_AWK+:} false; then :
2657
$as_echo_n "(cached) " >&6
2659
if test -n "$AWK"; then
2660
ac_cv_prog_AWK="$AWK" # Let the user override the test.
2662
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2666
test -z "$as_dir" && as_dir=.
2667
for ac_exec_ext in '' $ac_executable_extensions; do
2668
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2669
ac_cv_prog_AWK="$ac_prog"
2670
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2680
if test -n "$AWK"; then
2681
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2682
$as_echo "$AWK" >&6; }
2684
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2685
$as_echo "no" >&6; }
2689
test -n "$AWK" && break
2692
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2693
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2695
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2696
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2697
$as_echo_n "(cached) " >&6
2699
cat >conftest.make <<\_ACEOF
2702
@echo '@@@%%%=$(MAKE)=@@@%%%'
2704
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2705
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2707
eval ac_cv_prog_make_${ac_make}_set=yes;;
2709
eval ac_cv_prog_make_${ac_make}_set=no;;
2713
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2714
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2715
$as_echo "yes" >&6; }
2718
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2719
$as_echo "no" >&6; }
2720
SET_MAKE="MAKE=${MAKE-make}"
2723
rm -rf .tst 2>/dev/null
2724
mkdir .tst 2>/dev/null
2725
if test -d .tst; then
2730
rmdir .tst 2>/dev/null
2732
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2733
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2734
# is not polluted with repeated "-I."
2735
am__isrc=' -I$(srcdir)'
2736
# test to see if srcdir already configured
2737
if test -f $srcdir/config.status; then
2738
as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2742
# test whether we have cygpath
2743
if test -z "$CYGPATH_W"; then
2744
if (cygpath --version) >/dev/null 2>/dev/null; then
2745
CYGPATH_W='cygpath -w'
2752
# Define the identity of the package.
2757
cat >>confdefs.h <<_ACEOF
2758
@%:@define PACKAGE "$PACKAGE"
2762
cat >>confdefs.h <<_ACEOF
2763
@%:@define VERSION "$VERSION"
2766
# Some tools Automake needs.
2768
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2771
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2774
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2777
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2780
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2782
# We need awk for the "check" target. The system "awk" is bad on
2784
# Always define AMTAR for backward compatibility. Yes, it's still used
2785
# in the wild :-( We should find a proper way to deprecate it ...
2788
am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2794
@%:@ Check whether --enable-silent-rules was given.
2795
if test "${enable_silent_rules+set}" = set; then :
2796
enableval=$enable_silent_rules;
2799
case $enable_silent_rules in
2800
yes) AM_DEFAULT_VERBOSITY=0;;
2801
no) AM_DEFAULT_VERBOSITY=1;;
2802
*) AM_DEFAULT_VERBOSITY=0;;
2804
am_make=${MAKE-make}
2805
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2806
$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2807
if ${am_cv_make_support_nested_variables+:} false; then :
2808
$as_echo_n "(cached) " >&6
2810
if $as_echo 'TRUE=$(BAR$(V))
2816
.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2817
am_cv_make_support_nested_variables=yes
2819
am_cv_make_support_nested_variables=no
2822
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2823
$as_echo "$am_cv_make_support_nested_variables" >&6; }
2824
if test $am_cv_make_support_nested_variables = yes; then
2826
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2828
AM_V=$AM_DEFAULT_VERBOSITY
2829
AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2838
ac_cpp='$CPP $CPPFLAGS'
2839
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2840
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2841
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2842
if test -n "$ac_tool_prefix"; then
2843
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2844
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2845
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2846
$as_echo_n "checking for $ac_word... " >&6; }
2847
if ${ac_cv_prog_CC+:} false; then :
2848
$as_echo_n "(cached) " >&6
2850
if test -n "$CC"; then
2851
ac_cv_prog_CC="$CC" # Let the user override the test.
2853
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2857
test -z "$as_dir" && as_dir=.
2858
for ac_exec_ext in '' $ac_executable_extensions; do
2859
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2860
ac_cv_prog_CC="${ac_tool_prefix}gcc"
2861
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2871
if test -n "$CC"; then
2872
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2873
$as_echo "$CC" >&6; }
2875
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2876
$as_echo "no" >&6; }
2881
if test -z "$ac_cv_prog_CC"; then
2883
# Extract the first word of "gcc", so it can be a program name with args.
2884
set dummy gcc; ac_word=$2
2885
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2886
$as_echo_n "checking for $ac_word... " >&6; }
2887
if ${ac_cv_prog_ac_ct_CC+:} false; then :
2888
$as_echo_n "(cached) " >&6
2890
if test -n "$ac_ct_CC"; then
2891
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2893
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2897
test -z "$as_dir" && as_dir=.
2898
for ac_exec_ext in '' $ac_executable_extensions; do
2899
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2900
ac_cv_prog_ac_ct_CC="gcc"
2901
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2910
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2911
if test -n "$ac_ct_CC"; then
2912
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2913
$as_echo "$ac_ct_CC" >&6; }
2915
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2916
$as_echo "no" >&6; }
2919
if test "x$ac_ct_CC" = x; then
2922
case $cross_compiling:$ac_tool_warned in
2924
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2925
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2926
ac_tool_warned=yes ;;
2934
if test -z "$CC"; then
2935
if test -n "$ac_tool_prefix"; then
2936
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2937
set dummy ${ac_tool_prefix}cc; ac_word=$2
2938
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2939
$as_echo_n "checking for $ac_word... " >&6; }
2940
if ${ac_cv_prog_CC+:} false; then :
2941
$as_echo_n "(cached) " >&6
2943
if test -n "$CC"; then
2944
ac_cv_prog_CC="$CC" # Let the user override the test.
2946
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2950
test -z "$as_dir" && as_dir=.
2951
for ac_exec_ext in '' $ac_executable_extensions; do
2952
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2953
ac_cv_prog_CC="${ac_tool_prefix}cc"
2954
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2964
if test -n "$CC"; then
2965
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2966
$as_echo "$CC" >&6; }
2968
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2969
$as_echo "no" >&6; }
2975
if test -z "$CC"; then
2976
# Extract the first word of "cc", so it can be a program name with args.
2977
set dummy cc; ac_word=$2
2978
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2979
$as_echo_n "checking for $ac_word... " >&6; }
2980
if ${ac_cv_prog_CC+:} false; then :
2981
$as_echo_n "(cached) " >&6
2983
if test -n "$CC"; then
2984
ac_cv_prog_CC="$CC" # Let the user override the test.
2987
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2991
test -z "$as_dir" && as_dir=.
2992
for ac_exec_ext in '' $ac_executable_extensions; do
2993
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2994
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2995
ac_prog_rejected=yes
2999
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3006
if test $ac_prog_rejected = yes; then
3007
# We found a bogon in the path, so make sure we never use it.
3008
set dummy $ac_cv_prog_CC
3010
if test $@%:@ != 0; then
3011
# We chose a different compiler from the bogus one.
3012
# However, it has the same basename, so the bogon will be chosen
3013
# first if we set CC to just the basename; use the full file name.
3015
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3021
if test -n "$CC"; then
3022
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3023
$as_echo "$CC" >&6; }
3025
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3026
$as_echo "no" >&6; }
3031
if test -z "$CC"; then
3032
if test -n "$ac_tool_prefix"; then
3033
for ac_prog in cl.exe
3035
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3036
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3037
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3038
$as_echo_n "checking for $ac_word... " >&6; }
3039
if ${ac_cv_prog_CC+:} false; then :
3040
$as_echo_n "(cached) " >&6
3042
if test -n "$CC"; then
3043
ac_cv_prog_CC="$CC" # Let the user override the test.
3045
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3049
test -z "$as_dir" && as_dir=.
3050
for ac_exec_ext in '' $ac_executable_extensions; do
3051
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3052
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3053
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3063
if test -n "$CC"; then
3064
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3065
$as_echo "$CC" >&6; }
3067
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3068
$as_echo "no" >&6; }
3072
test -n "$CC" && break
3075
if test -z "$CC"; then
3077
for ac_prog in cl.exe
3079
# Extract the first word of "$ac_prog", so it can be a program name with args.
3080
set dummy $ac_prog; ac_word=$2
3081
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3082
$as_echo_n "checking for $ac_word... " >&6; }
3083
if ${ac_cv_prog_ac_ct_CC+:} false; then :
3084
$as_echo_n "(cached) " >&6
3086
if test -n "$ac_ct_CC"; then
3087
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3089
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3093
test -z "$as_dir" && as_dir=.
3094
for ac_exec_ext in '' $ac_executable_extensions; do
3095
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3096
ac_cv_prog_ac_ct_CC="$ac_prog"
3097
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3106
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3107
if test -n "$ac_ct_CC"; then
3108
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3109
$as_echo "$ac_ct_CC" >&6; }
3111
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3112
$as_echo "no" >&6; }
3116
test -n "$ac_ct_CC" && break
3119
if test "x$ac_ct_CC" = x; then
3122
case $cross_compiling:$ac_tool_warned in
3124
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3125
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3126
ac_tool_warned=yes ;;
3135
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3136
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3137
as_fn_error $? "no acceptable C compiler found in \$PATH
3138
See \`config.log' for more details" "$LINENO" 5; }
3140
# Provide some information about the compiler.
3141
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3144
for ac_option in --version -v -V -qversion; do
3145
{ { ac_try="$ac_compiler $ac_option >&5"
3147
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3148
*) ac_try_echo=$ac_try;;
3150
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3151
$as_echo "$ac_try_echo"; } >&5
3152
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
3154
if test -s conftest.err; then
3156
... rest of stderr output deleted ...
3157
10q' conftest.err >conftest.er1
3158
cat conftest.er1 >&5
3160
rm -f conftest.er1 conftest.err
3161
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3162
test $ac_status = 0; }
3165
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3166
/* end confdefs.h. */
3176
ac_clean_files_save=$ac_clean_files
3177
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3178
# Try to create an executable without -o first, disregard a.out.
3179
# It will help us diagnose broken compilers, and finding out an intuition
3181
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3182
$as_echo_n "checking whether the C compiler works... " >&6; }
3183
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3185
# The possible output files:
3186
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3189
for ac_file in $ac_files
3192
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3193
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
3198
if { { ac_try="$ac_link_default"
3200
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3201
*) ac_try_echo=$ac_try;;
3203
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3204
$as_echo "$ac_try_echo"; } >&5
3205
(eval "$ac_link_default") 2>&5
3207
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3208
test $ac_status = 0; }; then :
3209
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3210
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3211
# in a Makefile. We should not override ac_cv_exeext if it was cached,
3212
# so that the user can short-circuit this test for compilers unknown to
3214
for ac_file in $ac_files ''
3216
test -f "$ac_file" || continue
3218
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3221
# We found the default executable, but exeext='' is most
3225
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3227
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3229
# We set ac_cv_exeext here because the later test for it is not
3230
# safe: cross compilers may not add the suffix if given an `-o'
3231
# argument, so we may need to know it at that point already.
3232
# Even if this section looks crufty: it has the advantage of
3239
test "$ac_cv_exeext" = no && ac_cv_exeext=
3244
if test -z "$ac_file"; then :
3245
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3246
$as_echo "no" >&6; }
3247
$as_echo "$as_me: failed program was:" >&5
3248
sed 's/^/| /' conftest.$ac_ext >&5
3250
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3251
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3252
as_fn_error 77 "C compiler cannot create executables
3253
See \`config.log' for more details" "$LINENO" 5; }
3255
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3256
$as_echo "yes" >&6; }
3258
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3259
$as_echo_n "checking for C compiler default output file name... " >&6; }
3260
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3261
$as_echo "$ac_file" >&6; }
3262
ac_exeext=$ac_cv_exeext
3264
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3265
ac_clean_files=$ac_clean_files_save
3266
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3267
$as_echo_n "checking for suffix of executables... " >&6; }
3268
if { { ac_try="$ac_link"
3270
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3271
*) ac_try_echo=$ac_try;;
3273
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3274
$as_echo "$ac_try_echo"; } >&5
3275
(eval "$ac_link") 2>&5
3277
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3278
test $ac_status = 0; }; then :
3279
# If both `conftest.exe' and `conftest' are `present' (well, observable)
3280
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3281
# work properly (i.e., refer to `conftest.exe'), while it won't with
3283
for ac_file in conftest.exe conftest conftest.*; do
3284
test -f "$ac_file" || continue
3286
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3287
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3293
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3294
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3295
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3296
See \`config.log' for more details" "$LINENO" 5; }
3298
rm -f conftest conftest$ac_cv_exeext
3299
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3300
$as_echo "$ac_cv_exeext" >&6; }
3302
rm -f conftest.$ac_ext
3303
EXEEXT=$ac_cv_exeext
3305
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3306
/* end confdefs.h. */
3307
@%:@include <stdio.h>
3311
FILE *f = fopen ("conftest.out", "w");
3312
return ferror (f) || fclose (f) != 0;
3318
ac_clean_files="$ac_clean_files conftest.out"
3319
# Check that the compiler produces executables we can run. If not, either
3320
# the compiler is broken, or we cross compile.
3321
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3322
$as_echo_n "checking whether we are cross compiling... " >&6; }
3323
if test "$cross_compiling" != yes; then
3324
{ { ac_try="$ac_link"
3326
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3327
*) ac_try_echo=$ac_try;;
3329
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3330
$as_echo "$ac_try_echo"; } >&5
3331
(eval "$ac_link") 2>&5
3333
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3334
test $ac_status = 0; }
3335
if { ac_try='./conftest$ac_cv_exeext'
3336
{ { case "(($ac_try" in
3337
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338
*) ac_try_echo=$ac_try;;
3340
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3341
$as_echo "$ac_try_echo"; } >&5
3342
(eval "$ac_try") 2>&5
3344
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3345
test $ac_status = 0; }; }; then
3348
if test "$cross_compiling" = maybe; then
3351
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3352
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3353
as_fn_error $? "cannot run C compiled programs.
3354
If you meant to cross compile, use \`--host'.
3355
See \`config.log' for more details" "$LINENO" 5; }
3359
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3360
$as_echo "$cross_compiling" >&6; }
3362
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3363
ac_clean_files=$ac_clean_files_save
3364
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3365
$as_echo_n "checking for suffix of object files... " >&6; }
3366
if ${ac_cv_objext+:} false; then :
3367
$as_echo_n "(cached) " >&6
3369
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3370
/* end confdefs.h. */
3380
rm -f conftest.o conftest.obj
3381
if { { ac_try="$ac_compile"
3383
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3384
*) ac_try_echo=$ac_try;;
3386
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3387
$as_echo "$ac_try_echo"; } >&5
3388
(eval "$ac_compile") 2>&5
3390
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3391
test $ac_status = 0; }; then :
3392
for ac_file in conftest.o conftest.obj conftest.*; do
3393
test -f "$ac_file" || continue;
3395
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3396
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3401
$as_echo "$as_me: failed program was:" >&5
3402
sed 's/^/| /' conftest.$ac_ext >&5
3404
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3405
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3406
as_fn_error $? "cannot compute suffix of object files: cannot compile
3407
See \`config.log' for more details" "$LINENO" 5; }
3409
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3411
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3412
$as_echo "$ac_cv_objext" >&6; }
3413
OBJEXT=$ac_cv_objext
3415
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3416
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3417
if ${ac_cv_c_compiler_gnu+:} false; then :
3418
$as_echo_n "(cached) " >&6
3420
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3421
/* end confdefs.h. */
3434
if ac_fn_c_try_compile "$LINENO"; then :
3439
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3440
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3443
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3444
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3445
if test $ac_compiler_gnu = yes; then
3450
ac_test_CFLAGS=${CFLAGS+set}
3451
ac_save_CFLAGS=$CFLAGS
3452
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3453
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3454
if ${ac_cv_prog_cc_g+:} false; then :
3455
$as_echo_n "(cached) " >&6
3457
ac_save_c_werror_flag=$ac_c_werror_flag
3458
ac_c_werror_flag=yes
3461
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3462
/* end confdefs.h. */
3472
if ac_fn_c_try_compile "$LINENO"; then :
3476
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3477
/* end confdefs.h. */
3487
if ac_fn_c_try_compile "$LINENO"; then :
3490
ac_c_werror_flag=$ac_save_c_werror_flag
3492
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3493
/* end confdefs.h. */
3503
if ac_fn_c_try_compile "$LINENO"; then :
3506
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3508
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3510
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3511
ac_c_werror_flag=$ac_save_c_werror_flag
3513
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3514
$as_echo "$ac_cv_prog_cc_g" >&6; }
3515
if test "$ac_test_CFLAGS" = set; then
3516
CFLAGS=$ac_save_CFLAGS
3517
elif test $ac_cv_prog_cc_g = yes; then
3518
if test "$GCC" = yes; then
3524
if test "$GCC" = yes; then
3530
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3531
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3532
if ${ac_cv_prog_cc_c89+:} false; then :
3533
$as_echo_n "(cached) " >&6
3535
ac_cv_prog_cc_c89=no
3537
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3538
/* end confdefs.h. */
3542
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3543
struct buf { int x; };
3544
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3545
static char *e (p, i)
3551
static char *f (char * (*g) (char **, int), char **p, ...)
3556
s = g (p, va_arg (v,int));
3561
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3562
function prototypes and stuff, but not '\xHH' hex character constants.
3563
These don't provoke an error unfortunately, instead are silently treated
3564
as 'x'. The following induces an error, until -std is added to get
3565
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3566
array size at least. It's necessary to write '\x00'==0 to get something
3567
that's true only with -std. */
3568
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3570
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3571
inside strings and character constants. */
3573
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3575
int test (int i, double x);
3576
struct s1 {int (*f) (int a);};
3577
struct s2 {int (*f) (double a);};
3578
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3584
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3589
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3590
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3592
CC="$ac_save_CC $ac_arg"
3593
if ac_fn_c_try_compile "$LINENO"; then :
3594
ac_cv_prog_cc_c89=$ac_arg
3596
rm -f core conftest.err conftest.$ac_objext
3597
test "x$ac_cv_prog_cc_c89" != "xno" && break
3599
rm -f conftest.$ac_ext
3604
case "x$ac_cv_prog_cc_c89" in
3606
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3607
$as_echo "none needed" >&6; } ;;
3609
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3610
$as_echo "unsupported" >&6; } ;;
3612
CC="$CC $ac_cv_prog_cc_c89"
3613
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3614
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3616
if test "x$ac_cv_prog_cc_c89" != xno; then :
3621
ac_cpp='$CPP $CPPFLAGS'
3622
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3623
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3624
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3625
DEPDIR="${am__leading_dot}deps"
3627
ac_config_commands="$ac_config_commands depfiles"
3630
am_make=${MAKE-make}
3631
cat > confinc << 'END'
3633
@echo this is the am__doit target
3636
# If we don't find an include directive, just comment out the code.
3637
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3638
$as_echo_n "checking for style of include used by $am_make... " >&6; }
3642
# First try GNU make style include.
3643
echo "include confinc" > confmf
3644
# Ignore all kinds of additional output from `make'.
3645
case `$am_make -s -f confmf 2> /dev/null` in #(
3646
*the\ am__doit\ target*)
3652
# Now try BSD make style include.
3653
if test "$am__include" = "#"; then
3654
echo '.include "confinc"' > confmf
3655
case `$am_make -s -f confmf 2> /dev/null` in #(
3656
*the\ am__doit\ target*)
3657
am__include=.include
3665
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3666
$as_echo "$_am_result" >&6; }
3667
rm -f confinc confmf
3669
@%:@ Check whether --enable-dependency-tracking was given.
3670
if test "${enable_dependency_tracking+set}" = set; then :
3671
enableval=$enable_dependency_tracking;
3674
if test "x$enable_dependency_tracking" != xno; then
3675
am_depcomp="$ac_aux_dir/depcomp"
3679
if test "x$enable_dependency_tracking" != xno; then
3689
depcc="$CC" am_compiler_list=
3691
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3692
$as_echo_n "checking dependency style of $depcc... " >&6; }
3693
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3694
$as_echo_n "(cached) " >&6
3696
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3697
# We make a subdir and do the tests there. Otherwise we can end up
3698
# making bogus files that we don't know about and never remove. For
3699
# instance it was reported that on HP-UX the gcc test will end up
3700
# making a dummy file named `D' -- because `-MD' means `put the output
3704
# Copy depcomp to subdir because otherwise we won't find it if we're
3705
# using a relative directory.
3706
cp "$am_depcomp" conftest.dir
3708
# We will build objects and dependencies in a subdirectory because
3709
# it helps to detect inapplicable dependency modes. For instance
3710
# both Tru64's cc and ICC support -MD to output dependencies as a
3711
# side effect of compilation, but ICC will put the dependencies in
3712
# the current directory while Tru64 will put them in the object
3716
am_cv_CC_dependencies_compiler_type=none
3717
if test "$am_compiler_list" = ""; then
3718
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3721
case " $depcc " in #(
3722
*\ -arch\ *\ -arch\ *) am__universal=true ;;
3725
for depmode in $am_compiler_list; do
3726
# Setup a source with many dependencies, because some compilers
3727
# like to wrap large dependency lists on column 80 (with \), and
3728
# we should not choose a depcomp mode which is confused by this.
3730
# We need to recreate these files for each test, as the compiler may
3731
# overwrite some of them when testing with obscure command lines.
3732
# This happens at least with the AIX C compiler.
3734
for i in 1 2 3 4 5 6; do
3735
echo '#include "conftst'$i'.h"' >> sub/conftest.c
3736
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3737
# Solaris 8's {/usr,}/bin/sh.
3738
touch sub/conftst$i.h
3740
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3742
# We check with `-c' and `-o' for the sake of the "dashmstdout"
3743
# mode. It turns out that the SunPro C++ compiler does not properly
3744
# handle `-M -o', and we need to detect this. Also, some Intel
3745
# versions had trouble with output in subdirs
3746
am__obj=sub/conftest.${OBJEXT-o}
3747
am__minus_obj="-o $am__obj"
3750
# This depmode causes a compiler race in universal mode.
3751
test "$am__universal" = false || continue
3754
# after this tag, mechanisms are not by side-effect, so they'll
3755
# only be used when explicitly requested
3756
if test "x$enable_dependency_tracking" = xyes; then
3762
msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3763
# This compiler won't grok `-c -o', but also, the minuso test has
3764
# not run yet. These depmodes are late enough in the game, and
3765
# so weak that their functioning should not be impacted.
3766
am__obj=conftest.${OBJEXT-o}
3771
if depmode=$depmode \
3772
source=sub/conftest.c object=$am__obj \
3773
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3774
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3775
>/dev/null 2>conftest.err &&
3776
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3777
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3778
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3779
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3780
# icc doesn't choke on unknown options, it will just issue warnings
3781
# or remarks (even with -Werror). So we grep stderr for any message
3782
# that says an option was ignored or not supported.
3783
# When given -MP, icc 7.0 and 7.1 complain thusly:
3784
# icc: Command line warning: ignoring option '-M'; no argument required
3785
# The diagnosis changed in icc 8.0:
3786
# icc: Command line remark: option '-MP' not supported
3787
if (grep 'ignoring option' conftest.err ||
3788
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3789
am_cv_CC_dependencies_compiler_type=$depmode
3798
am_cv_CC_dependencies_compiler_type=none
3802
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3803
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3804
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3807
test "x$enable_dependency_tracking" != xno \
3808
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3810
am__fastdepCC_FALSE='#'
3812
am__fastdepCC_TRUE='#'
3813
am__fastdepCC_FALSE=
3817
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3818
$as_echo_n "checking whether ln -s works... " >&6; }
3820
if test "$LN_S" = "ln -s"; then
3821
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3822
$as_echo "yes" >&6; }
3824
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3825
$as_echo "no, using $LN_S" >&6; }
3828
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3829
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3831
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3832
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3833
$as_echo_n "(cached) " >&6
3835
cat >conftest.make <<\_ACEOF
3838
@echo '@@@%%%=$(MAKE)=@@@%%%'
3840
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3841
case `${MAKE-make} -f conftest.make 2>/dev/null` in
3843
eval ac_cv_prog_make_${ac_make}_set=yes;;
3845
eval ac_cv_prog_make_${ac_make}_set=no;;
3849
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3850
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3851
$as_echo "yes" >&6; }
3854
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3855
$as_echo "no" >&6; }
3856
SET_MAKE="MAKE=${MAKE-make}"
3859
# Extract the first word of "cd", so it can be a program name with args.
3860
set dummy cd; ac_word=$2
3861
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3862
$as_echo_n "checking for $ac_word... " >&6; }
3863
if ${ac_cv_prog_CD+:} false; then :
3864
$as_echo_n "(cached) " >&6
3866
if test -n "$CD"; then
3867
ac_cv_prog_CD="$CD" # Let the user override the test.
3869
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3873
test -z "$as_dir" && as_dir=.
3874
for ac_exec_ext in '' $ac_executable_extensions; do
3875
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3877
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3887
if test -n "$CD"; then
3888
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CD" >&5
3889
$as_echo "$CD" >&6; }
3891
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3892
$as_echo "no" >&6; }
3899
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3900
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3905
macro_version='2.4.2'
3906
macro_revision='1.3337'
3920
ltmain="$ac_aux_dir/ltmain.sh"
3922
# Make sure we can run config.sub.
3923
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3924
as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3926
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3927
$as_echo_n "checking build system type... " >&6; }
3928
if ${ac_cv_build+:} false; then :
3929
$as_echo_n "(cached) " >&6
3931
ac_build_alias=$build_alias
3932
test "x$ac_build_alias" = x &&
3933
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3934
test "x$ac_build_alias" = x &&
3935
as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3936
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3937
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3940
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3941
$as_echo "$ac_cv_build" >&6; }
3942
case $ac_cv_build in
3944
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3947
ac_save_IFS=$IFS; IFS='-'
3953
# Remember, the first character of IFS is used to create $*,
3954
# except with old shells:
3957
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3960
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3961
$as_echo_n "checking host system type... " >&6; }
3962
if ${ac_cv_host+:} false; then :
3963
$as_echo_n "(cached) " >&6
3965
if test "x$host_alias" = x; then
3966
ac_cv_host=$ac_cv_build
3968
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3969
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3973
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3974
$as_echo "$ac_cv_host" >&6; }
3977
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3980
ac_save_IFS=$IFS; IFS='-'
3986
# Remember, the first character of IFS is used to create $*,
3987
# except with old shells:
3990
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3993
# Backslashify metacharacters that are still active within
3994
# double-quoted strings.
3995
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3997
# Same as above, but do not quote variable references.
3998
double_quote_subst='s/\(["`\\]\)/\\\1/g'
4000
# Sed substitution to delay expansion of an escaped shell variable in a
4001
# double_quote_subst'ed string.
4002
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4004
# Sed substitution to delay expansion of an escaped single quote.
4005
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4007
# Sed substitution to avoid accidental globbing in evaled expressions
4008
no_glob_subst='s/\*/\\\*/g'
4010
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4011
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4012
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4014
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4015
$as_echo_n "checking how to print strings... " >&6; }
4016
# Test print first, because it will be a builtin if present.
4017
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4018
test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4020
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4023
# Use this function as a fallback that always works.
4024
func_fallback_echo ()
4026
eval 'cat <<_LTECHO_EOF
4030
ECHO='func_fallback_echo'
4033
# func_echo_all arg...
4034
# Invoke $ECHO with all args, space-separated.
4041
printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4042
$as_echo "printf" >&6; } ;;
4043
print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4044
$as_echo "print -r" >&6; } ;;
4045
*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4046
$as_echo "cat" >&6; } ;;
4062
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4063
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4064
if ${ac_cv_path_SED+:} false; then :
4065
$as_echo_n "(cached) " >&6
4067
ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4068
for ac_i in 1 2 3 4 5 6 7; do
4069
ac_script="$ac_script$as_nl$ac_script"
4071
echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4072
{ ac_script=; unset ac_script;}
4073
if test -z "$SED"; then
4074
ac_path_SED_found=false
4075
# Loop through the user's path and test for each of PROGNAME-LIST
4076
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4080
test -z "$as_dir" && as_dir=.
4081
for ac_prog in sed gsed; do
4082
for ac_exec_ext in '' $ac_executable_extensions; do
4083
ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4084
as_fn_executable_p "$ac_path_SED" || continue
4085
# Check for GNU ac_path_SED and select it if it is found.
4086
# Check for GNU $ac_path_SED
4087
case `"$ac_path_SED" --version 2>&1` in
4089
ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4092
$as_echo_n 0123456789 >"conftest.in"
4095
cat "conftest.in" "conftest.in" >"conftest.tmp"
4096
mv "conftest.tmp" "conftest.in"
4097
cp "conftest.in" "conftest.nl"
4098
$as_echo '' >> "conftest.nl"
4099
"$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4100
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4101
as_fn_arith $ac_count + 1 && ac_count=$as_val
4102
if test $ac_count -gt ${ac_path_SED_max-0}; then
4103
# Best one so far, save it but keep looking for a better one
4104
ac_cv_path_SED="$ac_path_SED"
4105
ac_path_SED_max=$ac_count
4107
# 10*(2^10) chars as input seems more than enough
4108
test $ac_count -gt 10 && break
4110
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4113
$ac_path_SED_found && break 3
4118
if test -z "$ac_cv_path_SED"; then
4119
as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4126
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4127
$as_echo "$ac_cv_path_SED" >&6; }
4128
SED="$ac_cv_path_SED"
4131
test -z "$SED" && SED=sed
4132
Xsed="$SED -e 1s/^X//"
4144
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4145
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4146
if ${ac_cv_path_GREP+:} false; then :
4147
$as_echo_n "(cached) " >&6
4149
if test -z "$GREP"; then
4150
ac_path_GREP_found=false
4151
# Loop through the user's path and test for each of PROGNAME-LIST
4152
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4153
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4156
test -z "$as_dir" && as_dir=.
4157
for ac_prog in grep ggrep; do
4158
for ac_exec_ext in '' $ac_executable_extensions; do
4159
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4160
as_fn_executable_p "$ac_path_GREP" || continue
4161
# Check for GNU ac_path_GREP and select it if it is found.
4162
# Check for GNU $ac_path_GREP
4163
case `"$ac_path_GREP" --version 2>&1` in
4165
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4168
$as_echo_n 0123456789 >"conftest.in"
4171
cat "conftest.in" "conftest.in" >"conftest.tmp"
4172
mv "conftest.tmp" "conftest.in"
4173
cp "conftest.in" "conftest.nl"
4174
$as_echo 'GREP' >> "conftest.nl"
4175
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4176
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4177
as_fn_arith $ac_count + 1 && ac_count=$as_val
4178
if test $ac_count -gt ${ac_path_GREP_max-0}; then
4179
# Best one so far, save it but keep looking for a better one
4180
ac_cv_path_GREP="$ac_path_GREP"
4181
ac_path_GREP_max=$ac_count
4183
# 10*(2^10) chars as input seems more than enough
4184
test $ac_count -gt 10 && break
4186
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4189
$ac_path_GREP_found && break 3
4194
if test -z "$ac_cv_path_GREP"; then
4195
as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4198
ac_cv_path_GREP=$GREP
4202
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4203
$as_echo "$ac_cv_path_GREP" >&6; }
4204
GREP="$ac_cv_path_GREP"
4207
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4208
$as_echo_n "checking for egrep... " >&6; }
4209
if ${ac_cv_path_EGREP+:} false; then :
4210
$as_echo_n "(cached) " >&6
4212
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4213
then ac_cv_path_EGREP="$GREP -E"
4215
if test -z "$EGREP"; then
4216
ac_path_EGREP_found=false
4217
# Loop through the user's path and test for each of PROGNAME-LIST
4218
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4219
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4222
test -z "$as_dir" && as_dir=.
4223
for ac_prog in egrep; do
4224
for ac_exec_ext in '' $ac_executable_extensions; do
4225
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4226
as_fn_executable_p "$ac_path_EGREP" || continue
4227
# Check for GNU ac_path_EGREP and select it if it is found.
4228
# Check for GNU $ac_path_EGREP
4229
case `"$ac_path_EGREP" --version 2>&1` in
4231
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4234
$as_echo_n 0123456789 >"conftest.in"
4237
cat "conftest.in" "conftest.in" >"conftest.tmp"
4238
mv "conftest.tmp" "conftest.in"
4239
cp "conftest.in" "conftest.nl"
4240
$as_echo 'EGREP' >> "conftest.nl"
4241
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4242
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4243
as_fn_arith $ac_count + 1 && ac_count=$as_val
4244
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4245
# Best one so far, save it but keep looking for a better one
4246
ac_cv_path_EGREP="$ac_path_EGREP"
4247
ac_path_EGREP_max=$ac_count
4249
# 10*(2^10) chars as input seems more than enough
4250
test $ac_count -gt 10 && break
4252
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4255
$ac_path_EGREP_found && break 3
4260
if test -z "$ac_cv_path_EGREP"; then
4261
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4264
ac_cv_path_EGREP=$EGREP
4269
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4270
$as_echo "$ac_cv_path_EGREP" >&6; }
4271
EGREP="$ac_cv_path_EGREP"
4274
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4275
$as_echo_n "checking for fgrep... " >&6; }
4276
if ${ac_cv_path_FGREP+:} false; then :
4277
$as_echo_n "(cached) " >&6
4279
if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4280
then ac_cv_path_FGREP="$GREP -F"
4282
if test -z "$FGREP"; then
4283
ac_path_FGREP_found=false
4284
# Loop through the user's path and test for each of PROGNAME-LIST
4285
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4286
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4289
test -z "$as_dir" && as_dir=.
4290
for ac_prog in fgrep; do
4291
for ac_exec_ext in '' $ac_executable_extensions; do
4292
ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4293
as_fn_executable_p "$ac_path_FGREP" || continue
4294
# Check for GNU ac_path_FGREP and select it if it is found.
4295
# Check for GNU $ac_path_FGREP
4296
case `"$ac_path_FGREP" --version 2>&1` in
4298
ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4301
$as_echo_n 0123456789 >"conftest.in"
4304
cat "conftest.in" "conftest.in" >"conftest.tmp"
4305
mv "conftest.tmp" "conftest.in"
4306
cp "conftest.in" "conftest.nl"
4307
$as_echo 'FGREP' >> "conftest.nl"
4308
"$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4309
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4310
as_fn_arith $ac_count + 1 && ac_count=$as_val
4311
if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4312
# Best one so far, save it but keep looking for a better one
4313
ac_cv_path_FGREP="$ac_path_FGREP"
4314
ac_path_FGREP_max=$ac_count
4316
# 10*(2^10) chars as input seems more than enough
4317
test $ac_count -gt 10 && break
4319
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4322
$ac_path_FGREP_found && break 3
4327
if test -z "$ac_cv_path_FGREP"; then
4328
as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4331
ac_cv_path_FGREP=$FGREP
4336
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4337
$as_echo "$ac_cv_path_FGREP" >&6; }
4338
FGREP="$ac_cv_path_FGREP"
4341
test -z "$GREP" && GREP=grep
4361
@%:@ Check whether --with-gnu-ld was given.
4362
if test "${with_gnu_ld+set}" = set; then :
4363
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4369
if test "$GCC" = yes; then
4370
# Check if gcc -print-prog-name=ld gives a path.
4371
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4372
$as_echo_n "checking for ld used by $CC... " >&6; }
4375
# gcc leaves a trailing carriage return which upsets mingw
4376
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4378
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4381
# Accept absolute paths.
4383
re_direlt='/[^/][^/]*/\.\./'
4384
# Canonicalize the pathname of ld
4385
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4386
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4387
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4389
test -z "$LD" && LD="$ac_prog"
4392
# If it fails, then pretend we aren't using GCC.
4396
# If it is relative, then search for the first ld in PATH.
4400
elif test "$with_gnu_ld" = yes; then
4401
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4402
$as_echo_n "checking for GNU ld... " >&6; }
4404
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4405
$as_echo_n "checking for non-GNU ld... " >&6; }
4407
if ${lt_cv_path_LD+:} false; then :
4408
$as_echo_n "(cached) " >&6
4410
if test -z "$LD"; then
4411
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4412
for ac_dir in $PATH; do
4414
test -z "$ac_dir" && ac_dir=.
4415
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4416
lt_cv_path_LD="$ac_dir/$ac_prog"
4417
# Check to see if the program is GNU ld. I'd rather use --version,
4418
# but apparently some variants of GNU ld only accept -v.
4419
# Break only if it was the GNU/non-GNU ld that we prefer.
4420
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4421
*GNU* | *'with BFD'*)
4422
test "$with_gnu_ld" != no && break
4425
test "$with_gnu_ld" != yes && break
4432
lt_cv_path_LD="$LD" # Let the user override the test with a path.
4437
if test -n "$LD"; then
4438
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4439
$as_echo "$LD" >&6; }
4441
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4442
$as_echo "no" >&6; }
4444
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4445
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4446
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4447
if ${lt_cv_prog_gnu_ld+:} false; then :
4448
$as_echo_n "(cached) " >&6
4450
# I'd rather use --version here, but apparently some GNU lds only accept -v.
4451
case `$LD -v 2>&1 </dev/null` in
4452
*GNU* | *'with BFD'*)
4453
lt_cv_prog_gnu_ld=yes
4456
lt_cv_prog_gnu_ld=no
4460
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4461
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4462
with_gnu_ld=$lt_cv_prog_gnu_ld
4472
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4473
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4474
if ${lt_cv_path_NM+:} false; then :
4475
$as_echo_n "(cached) " >&6
4477
if test -n "$NM"; then
4478
# Let the user override the test.
4481
lt_nm_to_check="${ac_tool_prefix}nm"
4482
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4483
lt_nm_to_check="$lt_nm_to_check nm"
4485
for lt_tmp_nm in $lt_nm_to_check; do
4486
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4487
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4489
test -z "$ac_dir" && ac_dir=.
4490
tmp_nm="$ac_dir/$lt_tmp_nm"
4491
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4492
# Check to see if the nm accepts a BSD-compat flag.
4493
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4494
# nm: unknown option "B" ignored
4495
# Tru64's nm complains that /dev/null is an invalid object file
4496
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4497
*/dev/null* | *'Invalid file or object type'*)
4498
lt_cv_path_NM="$tmp_nm -B"
4502
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4504
lt_cv_path_NM="$tmp_nm -p"
4508
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4509
continue # so that we can try to find one that supports BSD flags
4518
: ${lt_cv_path_NM=no}
4521
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4522
$as_echo "$lt_cv_path_NM" >&6; }
4523
if test "$lt_cv_path_NM" != "no"; then
4526
# Didn't find any BSD compatible name lister, look for dumpbin.
4527
if test -n "$DUMPBIN"; then :
4528
# Let the user override the test.
4530
if test -n "$ac_tool_prefix"; then
4531
for ac_prog in dumpbin "link -dump"
4533
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4534
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4535
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4536
$as_echo_n "checking for $ac_word... " >&6; }
4537
if ${ac_cv_prog_DUMPBIN+:} false; then :
4538
$as_echo_n "(cached) " >&6
4540
if test -n "$DUMPBIN"; then
4541
ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4543
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4547
test -z "$as_dir" && as_dir=.
4548
for ac_exec_ext in '' $ac_executable_extensions; do
4549
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4550
ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4551
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4560
DUMPBIN=$ac_cv_prog_DUMPBIN
4561
if test -n "$DUMPBIN"; then
4562
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4563
$as_echo "$DUMPBIN" >&6; }
4565
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4566
$as_echo "no" >&6; }
4570
test -n "$DUMPBIN" && break
4573
if test -z "$DUMPBIN"; then
4574
ac_ct_DUMPBIN=$DUMPBIN
4575
for ac_prog in dumpbin "link -dump"
4577
# Extract the first word of "$ac_prog", so it can be a program name with args.
4578
set dummy $ac_prog; ac_word=$2
4579
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4580
$as_echo_n "checking for $ac_word... " >&6; }
4581
if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4582
$as_echo_n "(cached) " >&6
4584
if test -n "$ac_ct_DUMPBIN"; then
4585
ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4587
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4591
test -z "$as_dir" && as_dir=.
4592
for ac_exec_ext in '' $ac_executable_extensions; do
4593
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4594
ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4595
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4604
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4605
if test -n "$ac_ct_DUMPBIN"; then
4606
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4607
$as_echo "$ac_ct_DUMPBIN" >&6; }
4609
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4610
$as_echo "no" >&6; }
4614
test -n "$ac_ct_DUMPBIN" && break
4617
if test "x$ac_ct_DUMPBIN" = x; then
4620
case $cross_compiling:$ac_tool_warned in
4622
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4623
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4624
ac_tool_warned=yes ;;
4626
DUMPBIN=$ac_ct_DUMPBIN
4630
case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4632
DUMPBIN="$DUMPBIN -symbols"
4640
if test "$DUMPBIN" != ":"; then
4644
test -z "$NM" && NM=nm
4651
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4652
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
4653
if ${lt_cv_nm_interface+:} false; then :
4654
$as_echo_n "(cached) " >&6
4656
lt_cv_nm_interface="BSD nm"
4657
echo "int some_variable = 0;" > conftest.$ac_ext
4658
(eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4659
(eval "$ac_compile" 2>conftest.err)
4660
cat conftest.err >&5
4661
(eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4662
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4663
cat conftest.err >&5
4664
(eval echo "\"\$as_me:$LINENO: output\"" >&5)
4665
cat conftest.out >&5
4666
if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4667
lt_cv_nm_interface="MS dumpbin"
4671
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4672
$as_echo "$lt_cv_nm_interface" >&6; }
4674
# find the maximum length of command line arguments
4675
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4676
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
4677
if ${lt_cv_sys_max_cmd_len+:} false; then :
4678
$as_echo_n "(cached) " >&6
4685
# On DJGPP, this test can blow up pretty badly due to problems in libc
4686
# (any single argument exceeding 2000 bytes causes a buffer overrun
4687
# during glob expansion). Even if it were fixed, the result of this
4688
# check would be larger than it should be.
4689
lt_cv_sys_max_cmd_len=12288; # 12K is about right
4693
# Under GNU Hurd, this test is not required because there is
4694
# no limit to the length of command line arguments.
4695
# Libtool will interpret -1 as no limit whatsoever
4696
lt_cv_sys_max_cmd_len=-1;
4699
cygwin* | mingw* | cegcc*)
4700
# On Win9x/ME, this test blows up -- it succeeds, but takes
4701
# about 5 minutes as the teststring grows exponentially.
4702
# Worse, since 9x/ME are not pre-emptively multitasking,
4703
# you end up with a "frozen" computer, even though with patience
4704
# the test eventually succeeds (with a max line length of 256k).
4705
# Instead, let's just punt: use the minimum linelength reported by
4706
# all of the supported platforms: 8192 (on NT/2K/XP).
4707
lt_cv_sys_max_cmd_len=8192;
4711
# On MiNT this can take a long time and run out of memory.
4712
lt_cv_sys_max_cmd_len=8192;
4716
# On AmigaOS with pdksh, this test takes hours, literally.
4717
# So we just punt and use a minimum line length of 8192.
4718
lt_cv_sys_max_cmd_len=8192;
4721
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4722
# This has been around since 386BSD, at least. Likely further.
4723
if test -x /sbin/sysctl; then
4724
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4725
elif test -x /usr/sbin/sysctl; then
4726
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4728
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4730
# And add a safety zone
4731
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4732
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4736
# We know the value 262144 and hardcode it with a safety zone (like BSD)
4737
lt_cv_sys_max_cmd_len=196608
4741
# The test takes a long time on OS/2.
4742
lt_cv_sys_max_cmd_len=8192
4746
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4747
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4748
# nice to cause kernel panics so lets avoid the loop below.
4749
# First set a reasonable default.
4750
lt_cv_sys_max_cmd_len=16384
4752
if test -x /sbin/sysconfig; then
4753
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4754
*1*) lt_cv_sys_max_cmd_len=-1 ;;
4759
lt_cv_sys_max_cmd_len=102400
4761
sysv5* | sco5v6* | sysv4.2uw2*)
4762
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4763
if test -n "$kargmax"; then
4764
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4766
lt_cv_sys_max_cmd_len=32768
4770
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4771
if test -n "$lt_cv_sys_max_cmd_len" && \
4772
test undefined != "$lt_cv_sys_max_cmd_len"; then
4773
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4774
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4776
# Make teststring a little bigger before we do anything with it.
4777
# a 1K string should be a reasonable start.
4778
for i in 1 2 3 4 5 6 7 8 ; do
4779
teststring=$teststring$teststring
4781
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4782
# If test is not a shell built-in, we'll probably end up computing a
4783
# maximum length that is only half of the actual maximum length, but
4785
while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4786
= "X$teststring$teststring"; } >/dev/null 2>&1 &&
4787
test $i != 17 # 1/2 MB should be enough
4790
teststring=$teststring$teststring
4792
# Only check the string length outside the loop.
4793
lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4795
# Add a significant safety factor because C++ compilers can tack on
4796
# massive amounts of additional arguments before passing them to the
4797
# linker. It appears as though 1/2 is a usable value.
4798
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4805
if test -n $lt_cv_sys_max_cmd_len ; then
4806
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4807
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4809
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4810
$as_echo "none" >&6; }
4812
max_cmd_len=$lt_cv_sys_max_cmd_len
4823
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
4824
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
4825
# Try some XSI features
4828
test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
4830
&& eval 'test $(( 1 + 1 )) -eq 2 \
4831
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
4833
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
4834
$as_echo "$xsi_shell" >&6; }
4837
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
4838
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
4840
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
4842
&& lt_shell_append=yes
4843
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
4844
$as_echo "$lt_shell_append" >&6; }
4847
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
4857
# test EBCDIC or ASCII
4858
case `echo X|tr X '\101'` in
4859
A) # ASCII based system
4860
# \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
4861
lt_SP2NL='tr \040 \012'
4862
lt_NL2SP='tr \015\012 \040\040'
4864
*) # EBCDIC based system
4865
lt_SP2NL='tr \100 \n'
4866
lt_NL2SP='tr \r\n \100\100'
4878
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
4879
$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
4880
if ${lt_cv_to_host_file_cmd+:} false; then :
4881
$as_echo_n "(cached) " >&6
4886
*-*-mingw* ) # actually msys
4887
lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
4890
lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
4892
* ) # otherwise, assume *nix
4893
lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
4899
*-*-mingw* ) # actually msys
4900
lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
4903
lt_cv_to_host_file_cmd=func_convert_file_noop
4905
* ) # otherwise, assume *nix
4906
lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
4910
* ) # unhandled hosts (and "normal" native builds)
4911
lt_cv_to_host_file_cmd=func_convert_file_noop
4917
to_host_file_cmd=$lt_cv_to_host_file_cmd
4918
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
4919
$as_echo "$lt_cv_to_host_file_cmd" >&6; }
4925
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
4926
$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
4927
if ${lt_cv_to_tool_file_cmd+:} false; then :
4928
$as_echo_n "(cached) " >&6
4930
#assume ordinary cross tools, or native build.
4931
lt_cv_to_tool_file_cmd=func_convert_file_noop
4935
*-*-mingw* ) # actually msys
4936
lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
4944
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
4945
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
4946
$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
4952
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4953
$as_echo_n "checking for $LD option to reload object files... " >&6; }
4954
if ${lt_cv_ld_reload_flag+:} false; then :
4955
$as_echo_n "(cached) " >&6
4957
lt_cv_ld_reload_flag='-r'
4959
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4960
$as_echo "$lt_cv_ld_reload_flag" >&6; }
4961
reload_flag=$lt_cv_ld_reload_flag
4962
case $reload_flag in
4964
*) reload_flag=" $reload_flag" ;;
4966
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4968
cygwin* | mingw* | pw32* | cegcc*)
4969
if test "$GCC" != yes; then
4974
if test "$GCC" = yes; then
4975
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4977
reload_cmds='$LD$reload_flag -o $output$reload_objs'
4990
if test -n "$ac_tool_prefix"; then
4991
# Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
4992
set dummy ${ac_tool_prefix}objdump; ac_word=$2
4993
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4994
$as_echo_n "checking for $ac_word... " >&6; }
4995
if ${ac_cv_prog_OBJDUMP+:} false; then :
4996
$as_echo_n "(cached) " >&6
4998
if test -n "$OBJDUMP"; then
4999
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5001
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5005
test -z "$as_dir" && as_dir=.
5006
for ac_exec_ext in '' $ac_executable_extensions; do
5007
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5008
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5009
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5018
OBJDUMP=$ac_cv_prog_OBJDUMP
5019
if test -n "$OBJDUMP"; then
5020
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5021
$as_echo "$OBJDUMP" >&6; }
5023
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5024
$as_echo "no" >&6; }
5029
if test -z "$ac_cv_prog_OBJDUMP"; then
5030
ac_ct_OBJDUMP=$OBJDUMP
5031
# Extract the first word of "objdump", so it can be a program name with args.
5032
set dummy objdump; ac_word=$2
5033
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5034
$as_echo_n "checking for $ac_word... " >&6; }
5035
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5036
$as_echo_n "(cached) " >&6
5038
if test -n "$ac_ct_OBJDUMP"; then
5039
ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5041
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5045
test -z "$as_dir" && as_dir=.
5046
for ac_exec_ext in '' $ac_executable_extensions; do
5047
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5048
ac_cv_prog_ac_ct_OBJDUMP="objdump"
5049
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5058
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5059
if test -n "$ac_ct_OBJDUMP"; then
5060
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5061
$as_echo "$ac_ct_OBJDUMP" >&6; }
5063
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5064
$as_echo "no" >&6; }
5067
if test "x$ac_ct_OBJDUMP" = x; then
5070
case $cross_compiling:$ac_tool_warned in
5072
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5073
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5074
ac_tool_warned=yes ;;
5076
OBJDUMP=$ac_ct_OBJDUMP
5079
OBJDUMP="$ac_cv_prog_OBJDUMP"
5082
test -z "$OBJDUMP" && OBJDUMP=objdump
5092
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5093
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5094
if ${lt_cv_deplibs_check_method+:} false; then :
5095
$as_echo_n "(cached) " >&6
5097
lt_cv_file_magic_cmd='$MAGIC_CMD'
5098
lt_cv_file_magic_test_file=
5099
lt_cv_deplibs_check_method='unknown'
5100
# Need to set the preceding variable on all platforms that support
5101
# interlibrary dependencies.
5102
# 'none' -- dependencies not supported.
5103
# `unknown' -- same as none, but documents that we really don't know.
5104
# 'pass_all' -- all dependencies passed with no checks.
5105
# 'test_compile' -- check by making test program.
5106
# 'file_magic [[regex]]' -- check by looking for files in library path
5107
# which responds to the $file_magic_cmd with a given extended regex.
5108
# If you have `file' or equivalent on your system and you're not sure
5109
# whether `pass_all' will *always* work, you probably want this one.
5113
lt_cv_deplibs_check_method=pass_all
5117
lt_cv_deplibs_check_method=pass_all
5121
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5122
lt_cv_file_magic_cmd='/usr/bin/file -L'
5123
lt_cv_file_magic_test_file=/shlib/libc.so
5127
# func_win32_libid is a shell function defined in ltmain.sh
5128
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5129
lt_cv_file_magic_cmd='func_win32_libid'
5133
# Base MSYS/MinGW do not provide the 'file' command needed by
5134
# func_win32_libid shell function, so use a weaker test based on 'objdump',
5135
# unless we find 'file', for example because we are cross-compiling.
5136
# func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5137
if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5138
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5139
lt_cv_file_magic_cmd='func_win32_libid'
5141
# Keep this pattern in sync with the one in func_win32_libid.
5142
lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5143
lt_cv_file_magic_cmd='$OBJDUMP -f'
5148
# use the weaker test based on 'objdump'. See mingw*.
5149
lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5150
lt_cv_file_magic_cmd='$OBJDUMP -f'
5153
darwin* | rhapsody*)
5154
lt_cv_deplibs_check_method=pass_all
5157
freebsd* | dragonfly*)
5158
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5161
# Not sure whether the presence of OpenBSD here was a mistake.
5162
# Let's accept both of them until this is cleared up.
5163
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5164
lt_cv_file_magic_cmd=/usr/bin/file
5165
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5169
lt_cv_deplibs_check_method=pass_all
5174
lt_cv_deplibs_check_method=pass_all
5177
hpux10.20* | hpux11*)
5178
lt_cv_file_magic_cmd=/usr/bin/file
5181
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5182
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5185
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5186
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5189
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5190
lt_cv_file_magic_test_file=/usr/lib/libc.sl
5196
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5197
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5200
irix5* | irix6* | nonstopux*)
5202
*-32|*"-32 ") libmagic=32-bit;;
5203
*-n32|*"-n32 ") libmagic=N32;;
5204
*-64|*"-64 ") libmagic=64-bit;;
5205
*) libmagic=never-match;;
5207
lt_cv_deplibs_check_method=pass_all
5210
# This must be glibc/ELF.
5211
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5212
lt_cv_deplibs_check_method=pass_all
5215
netbsd* | netbsdelf*-gnu)
5216
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5217
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5219
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5224
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5225
lt_cv_file_magic_cmd=/usr/bin/file
5226
lt_cv_file_magic_test_file=/usr/lib/libnls.so
5230
lt_cv_deplibs_check_method=pass_all
5234
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5235
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5237
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5241
osf3* | osf4* | osf5*)
5242
lt_cv_deplibs_check_method=pass_all
5246
lt_cv_deplibs_check_method=pass_all
5250
lt_cv_deplibs_check_method=pass_all
5253
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5254
lt_cv_deplibs_check_method=pass_all
5258
case $host_vendor in
5260
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]'
5261
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5264
lt_cv_deplibs_check_method=pass_all
5267
lt_cv_file_magic_cmd='/bin/file'
5268
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5271
lt_cv_file_magic_cmd='/bin/file'
5272
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5273
lt_cv_file_magic_test_file=/lib/libc.so
5276
lt_cv_deplibs_check_method=pass_all
5279
lt_cv_deplibs_check_method=pass_all
5285
lt_cv_deplibs_check_method=pass_all
5290
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5291
$as_echo "$lt_cv_deplibs_check_method" >&6; }
5295
if test "$build" = "$host"; then
5298
if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5301
file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5307
file_magic_cmd=$lt_cv_file_magic_cmd
5308
deplibs_check_method=$lt_cv_deplibs_check_method
5309
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5332
if test -n "$ac_tool_prefix"; then
5333
# Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5334
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5335
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5336
$as_echo_n "checking for $ac_word... " >&6; }
5337
if ${ac_cv_prog_DLLTOOL+:} false; then :
5338
$as_echo_n "(cached) " >&6
5340
if test -n "$DLLTOOL"; then
5341
ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5343
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5347
test -z "$as_dir" && as_dir=.
5348
for ac_exec_ext in '' $ac_executable_extensions; do
5349
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5350
ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5351
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5360
DLLTOOL=$ac_cv_prog_DLLTOOL
5361
if test -n "$DLLTOOL"; then
5362
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5363
$as_echo "$DLLTOOL" >&6; }
5365
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5366
$as_echo "no" >&6; }
5371
if test -z "$ac_cv_prog_DLLTOOL"; then
5372
ac_ct_DLLTOOL=$DLLTOOL
5373
# Extract the first word of "dlltool", so it can be a program name with args.
5374
set dummy dlltool; ac_word=$2
5375
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5376
$as_echo_n "checking for $ac_word... " >&6; }
5377
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5378
$as_echo_n "(cached) " >&6
5380
if test -n "$ac_ct_DLLTOOL"; then
5381
ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5383
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5387
test -z "$as_dir" && as_dir=.
5388
for ac_exec_ext in '' $ac_executable_extensions; do
5389
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5390
ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5391
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5400
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5401
if test -n "$ac_ct_DLLTOOL"; then
5402
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5403
$as_echo "$ac_ct_DLLTOOL" >&6; }
5405
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5406
$as_echo "no" >&6; }
5409
if test "x$ac_ct_DLLTOOL" = x; then
5412
case $cross_compiling:$ac_tool_warned in
5414
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5415
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5416
ac_tool_warned=yes ;;
5418
DLLTOOL=$ac_ct_DLLTOOL
5421
DLLTOOL="$ac_cv_prog_DLLTOOL"
5424
test -z "$DLLTOOL" && DLLTOOL=dlltool
5435
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5436
$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5437
if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5438
$as_echo_n "(cached) " >&6
5440
lt_cv_sharedlib_from_linklib_cmd='unknown'
5443
cygwin* | mingw* | pw32* | cegcc*)
5444
# two different shell functions defined in ltmain.sh
5445
# decide which to use based on capabilities of $DLLTOOL
5446
case `$DLLTOOL --help 2>&1` in
5447
*--identify-strict*)
5448
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5451
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5456
# fallback: assume linklib IS sharedlib
5457
lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5462
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5463
$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5464
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5465
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5474
if test -n "$ac_tool_prefix"; then
5477
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5478
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5479
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5480
$as_echo_n "checking for $ac_word... " >&6; }
5481
if ${ac_cv_prog_AR+:} false; then :
5482
$as_echo_n "(cached) " >&6
5484
if test -n "$AR"; then
5485
ac_cv_prog_AR="$AR" # Let the user override the test.
5487
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5491
test -z "$as_dir" && as_dir=.
5492
for ac_exec_ext in '' $ac_executable_extensions; do
5493
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5494
ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5495
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5505
if test -n "$AR"; then
5506
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5507
$as_echo "$AR" >&6; }
5509
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5510
$as_echo "no" >&6; }
5514
test -n "$AR" && break
5517
if test -z "$AR"; then
5521
# Extract the first word of "$ac_prog", so it can be a program name with args.
5522
set dummy $ac_prog; ac_word=$2
5523
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5524
$as_echo_n "checking for $ac_word... " >&6; }
5525
if ${ac_cv_prog_ac_ct_AR+:} false; then :
5526
$as_echo_n "(cached) " >&6
5528
if test -n "$ac_ct_AR"; then
5529
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5531
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5535
test -z "$as_dir" && as_dir=.
5536
for ac_exec_ext in '' $ac_executable_extensions; do
5537
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5538
ac_cv_prog_ac_ct_AR="$ac_prog"
5539
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5548
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5549
if test -n "$ac_ct_AR"; then
5550
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5551
$as_echo "$ac_ct_AR" >&6; }
5553
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5554
$as_echo "no" >&6; }
5558
test -n "$ac_ct_AR" && break
5561
if test "x$ac_ct_AR" = x; then
5564
case $cross_compiling:$ac_tool_warned in
5566
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5567
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5568
ac_tool_warned=yes ;;
5587
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5588
$as_echo_n "checking for archiver @FILE support... " >&6; }
5589
if ${lt_cv_ar_at_file+:} false; then :
5590
$as_echo_n "(cached) " >&6
5593
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5594
/* end confdefs.h. */
5604
if ac_fn_c_try_compile "$LINENO"; then :
5605
echo conftest.$ac_objext > conftest.lst
5606
lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5607
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5608
(eval $lt_ar_try) 2>&5
5610
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5611
test $ac_status = 0; }
5612
if test "$ac_status" -eq 0; then
5613
# Ensure the archiver fails upon bogus file names.
5614
rm -f conftest.$ac_objext libconftest.a
5615
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5616
(eval $lt_ar_try) 2>&5
5618
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5619
test $ac_status = 0; }
5620
if test "$ac_status" -ne 0; then
5624
rm -f conftest.* libconftest.a
5627
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5630
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5631
$as_echo "$lt_cv_ar_at_file" >&6; }
5633
if test "x$lt_cv_ar_at_file" = xno; then
5636
archiver_list_spec=$lt_cv_ar_at_file
5645
if test -n "$ac_tool_prefix"; then
5646
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5647
set dummy ${ac_tool_prefix}strip; ac_word=$2
5648
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5649
$as_echo_n "checking for $ac_word... " >&6; }
5650
if ${ac_cv_prog_STRIP+:} false; then :
5651
$as_echo_n "(cached) " >&6
5653
if test -n "$STRIP"; then
5654
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5656
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5660
test -z "$as_dir" && as_dir=.
5661
for ac_exec_ext in '' $ac_executable_extensions; do
5662
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5663
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5664
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5673
STRIP=$ac_cv_prog_STRIP
5674
if test -n "$STRIP"; then
5675
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5676
$as_echo "$STRIP" >&6; }
5678
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5679
$as_echo "no" >&6; }
5684
if test -z "$ac_cv_prog_STRIP"; then
5686
# Extract the first word of "strip", so it can be a program name with args.
5687
set dummy strip; ac_word=$2
5688
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5689
$as_echo_n "checking for $ac_word... " >&6; }
5690
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5691
$as_echo_n "(cached) " >&6
5693
if test -n "$ac_ct_STRIP"; then
5694
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5696
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5700
test -z "$as_dir" && as_dir=.
5701
for ac_exec_ext in '' $ac_executable_extensions; do
5702
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5703
ac_cv_prog_ac_ct_STRIP="strip"
5704
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5713
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5714
if test -n "$ac_ct_STRIP"; then
5715
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5716
$as_echo "$ac_ct_STRIP" >&6; }
5718
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5719
$as_echo "no" >&6; }
5722
if test "x$ac_ct_STRIP" = x; then
5725
case $cross_compiling:$ac_tool_warned in
5727
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5728
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5729
ac_tool_warned=yes ;;
5734
STRIP="$ac_cv_prog_STRIP"
5737
test -z "$STRIP" && STRIP=:
5744
if test -n "$ac_tool_prefix"; then
5745
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5746
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5747
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5748
$as_echo_n "checking for $ac_word... " >&6; }
5749
if ${ac_cv_prog_RANLIB+:} false; then :
5750
$as_echo_n "(cached) " >&6
5752
if test -n "$RANLIB"; then
5753
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5755
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5759
test -z "$as_dir" && as_dir=.
5760
for ac_exec_ext in '' $ac_executable_extensions; do
5761
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5762
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5763
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5772
RANLIB=$ac_cv_prog_RANLIB
5773
if test -n "$RANLIB"; then
5774
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5775
$as_echo "$RANLIB" >&6; }
5777
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5778
$as_echo "no" >&6; }
5783
if test -z "$ac_cv_prog_RANLIB"; then
5784
ac_ct_RANLIB=$RANLIB
5785
# Extract the first word of "ranlib", so it can be a program name with args.
5786
set dummy ranlib; ac_word=$2
5787
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5788
$as_echo_n "checking for $ac_word... " >&6; }
5789
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5790
$as_echo_n "(cached) " >&6
5792
if test -n "$ac_ct_RANLIB"; then
5793
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5795
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5799
test -z "$as_dir" && as_dir=.
5800
for ac_exec_ext in '' $ac_executable_extensions; do
5801
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5802
ac_cv_prog_ac_ct_RANLIB="ranlib"
5803
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5812
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5813
if test -n "$ac_ct_RANLIB"; then
5814
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5815
$as_echo "$ac_ct_RANLIB" >&6; }
5817
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5818
$as_echo "no" >&6; }
5821
if test "x$ac_ct_RANLIB" = x; then
5824
case $cross_compiling:$ac_tool_warned in
5826
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5827
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5828
ac_tool_warned=yes ;;
5830
RANLIB=$ac_ct_RANLIB
5833
RANLIB="$ac_cv_prog_RANLIB"
5836
test -z "$RANLIB" && RANLIB=:
5843
# Determine commands to create old-style static archives.
5844
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5845
old_postinstall_cmds='chmod 644 $oldlib'
5846
old_postuninstall_cmds=
5848
if test -n "$RANLIB"; then
5851
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
5854
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
5857
old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
5862
lock_old_archive_extraction=yes ;;
5864
lock_old_archive_extraction=no ;;
5905
# If no C compiler was specified, use CC.
5908
# If no C compiler flags were specified, use CFLAGS.
5909
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5911
# Allow CC to be a program name with arguments.
5915
# Check for command to grab the raw symbol name followed by C symbol from nm.
5916
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
5917
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
5918
if ${lt_cv_sys_global_symbol_pipe+:} false; then :
5919
$as_echo_n "(cached) " >&6
5922
# These are sane defaults that work on at least a few old systems.
5923
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5925
# Character class describing NM global symbol codes.
5926
symcode='[BCDEGRST]'
5928
# Regexp to match symbols that can be accessed directly from C.
5929
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5931
# Define system-specific variables.
5936
cygwin* | mingw* | pw32* | cegcc*)
5937
symcode='[ABCDGISTW]'
5940
if test "$host_cpu" = ia64; then
5941
symcode='[ABCDEGRST]'
5945
symcode='[BCDEGRST]'
5948
symcode='[BCDEGQRST]'
5959
sysv5* | sco5v6* | unixware* | OpenUNIX*)
5967
# If we're using GNU nm, then use its standard symbol codes.
5968
case `$NM -V 2>&1` in
5969
*GNU* | *'with BFD'*)
5970
symcode='[ABCDGIRSTW]' ;;
5973
# Transform an extracted symbol line into a proper C declaration.
5974
# Some systems (esp. on ia64) link data and code symbols differently,
5975
# so use this general approach.
5976
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5978
# Transform an extracted symbol line into symbol name and symbol address
5979
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5980
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'"
5982
# Handle CRLF in mingw tool chain
5986
opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5990
# Try without a prefix underscore, then with it.
5991
for ac_symprfx in "" "_"; do
5993
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5994
symxfrm="\\1 $ac_symprfx\\2 \\2"
5996
# Write the raw and C identifiers.
5997
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5998
# Fake it for dumpbin and say T for any non-static function
5999
# and D for any global variable.
6000
# Also find C++ and __fastcall symbols from MSVC++,
6001
# which start with @ or ?.
6002
lt_cv_sys_global_symbol_pipe="$AWK '"\
6003
" {last_section=section; section=\$ 3};"\
6004
" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6005
" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6006
" \$ 0!~/External *\|/{next};"\
6007
" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6008
" {if(hide[section]) next};"\
6009
" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6010
" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6011
" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6012
" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6013
" ' prfx=^$ac_symprfx"
6015
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6017
lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6019
# Check to see that the pipe works correctly.
6023
cat > conftest.$ac_ext <<_LT_EOF
6028
void nm_test_func(void);
6029
void nm_test_func(void){}
6033
int main(){nm_test_var='a';nm_test_func();return(0);}
6036
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6037
(eval $ac_compile) 2>&5
6039
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6040
test $ac_status = 0; }; then
6041
# Now try to grab the symbols.
6043
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6044
(eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6046
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6047
test $ac_status = 0; } && test -s "$nlist"; then
6048
# Try sorting and uniquifying the output.
6049
if sort "$nlist" | uniq > "$nlist"T; then
6050
mv -f "$nlist"T "$nlist"
6055
# Make sure that we snagged all the symbols we need.
6056
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6057
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6058
cat <<_LT_EOF > conftest.$ac_ext
6059
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6060
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6061
/* DATA imports from DLLs on WIN32 con't be const, because runtime
6062
relocations are performed -- see ld's documentation on pseudo-relocs. */
6063
# define LT@&t@_DLSYM_CONST
6064
#elif defined(__osf__)
6065
/* This system does not cope well with relocations in const data. */
6066
# define LT@&t@_DLSYM_CONST
6068
# define LT@&t@_DLSYM_CONST const
6076
# Now generate the symbol file.
6077
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6079
cat <<_LT_EOF >> conftest.$ac_ext
6081
/* The mapping between symbol names and symbols. */
6082
LT@&t@_DLSYM_CONST struct {
6086
lt__PROGRAM__LTX_preloaded_symbols[] =
6088
{ "@PROGRAM@", (void *) 0 },
6090
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6091
cat <<\_LT_EOF >> conftest.$ac_ext
6095
/* This works around a problem in FreeBSD linker */
6096
#ifdef FREEBSD_WORKAROUND
6097
static const void *lt_preloaded_setup() {
6098
return lt__PROGRAM__LTX_preloaded_symbols;
6106
# Now try linking the two files.
6107
mv conftest.$ac_objext conftstm.$ac_objext
6108
lt_globsym_save_LIBS=$LIBS
6109
lt_globsym_save_CFLAGS=$CFLAGS
6110
LIBS="conftstm.$ac_objext"
6111
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6112
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6113
(eval $ac_link) 2>&5
6115
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6116
test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6119
LIBS=$lt_globsym_save_LIBS
6120
CFLAGS=$lt_globsym_save_CFLAGS
6122
echo "cannot find nm_test_func in $nlist" >&5
6125
echo "cannot find nm_test_var in $nlist" >&5
6128
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6131
echo "$progname: failed program was:" >&5
6132
cat conftest.$ac_ext >&5
6134
rm -rf conftest* conftst*
6136
# Do not use the global_symbol_pipe unless it works.
6137
if test "$pipe_works" = yes; then
6140
lt_cv_sys_global_symbol_pipe=
6146
if test -z "$lt_cv_sys_global_symbol_pipe"; then
6147
lt_cv_sys_global_symbol_to_cdecl=
6149
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6150
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6151
$as_echo "failed" >&6; }
6153
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6154
$as_echo "ok" >&6; }
6157
# Response file support.
6158
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6159
nm_file_list_spec='@'
6160
elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6161
nm_file_list_spec='@'
6190
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6191
$as_echo_n "checking for sysroot... " >&6; }
6193
@%:@ Check whether --with-sysroot was given.
6194
if test "${with_sysroot+set}" = set; then :
6195
withval=$with_sysroot;
6202
case ${with_sysroot} in #(
6204
if test "$GCC" = yes; then
6205
lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6209
lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6214
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6215
$as_echo "${with_sysroot}" >&6; }
6216
as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6220
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6221
$as_echo "${lt_sysroot:-no}" >&6; }
6227
@%:@ Check whether --enable-libtool-lock was given.
6228
if test "${enable_libtool_lock+set}" = set; then :
6229
enableval=$enable_libtool_lock;
6232
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6234
# Some flags need to be propagated to the compiler or linker for good
6238
# Find out which ABI we are using.
6239
echo 'int i;' > conftest.$ac_ext
6240
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6241
(eval $ac_compile) 2>&5
6243
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6244
test $ac_status = 0; }; then
6245
case `/usr/bin/file conftest.$ac_objext` in
6257
# Find out which ABI we are using.
6258
echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6259
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6260
(eval $ac_compile) 2>&5
6262
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6263
test $ac_status = 0; }; then
6264
if test "$lt_cv_prog_gnu_ld" = yes; then
6265
case `/usr/bin/file conftest.$ac_objext` in
6267
LD="${LD-ld} -melf32bsmip"
6270
LD="${LD-ld} -melf32bmipn32"
6273
LD="${LD-ld} -melf64bmip"
6277
case `/usr/bin/file conftest.$ac_objext` in
6293
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6294
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6295
# Find out which ABI we are using.
6296
echo 'int i;' > conftest.$ac_ext
6297
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6298
(eval $ac_compile) 2>&5
6300
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6301
test $ac_status = 0; }; then
6302
case `/usr/bin/file conftest.o` in
6305
x86_64-*kfreebsd*-gnu)
6306
LD="${LD-ld} -m elf_i386_fbsd"
6309
case `/usr/bin/file conftest.o` in
6311
LD="${LD-ld} -m elf32_x86_64"
6314
LD="${LD-ld} -m elf_i386"
6318
ppc64-*linux*|powerpc64-*linux*)
6319
LD="${LD-ld} -m elf32ppclinux"
6322
LD="${LD-ld} -m elf_s390"
6325
LD="${LD-ld} -m elf32_sparc"
6331
x86_64-*kfreebsd*-gnu)
6332
LD="${LD-ld} -m elf_x86_64_fbsd"
6335
LD="${LD-ld} -m elf_x86_64"
6337
ppc*-*linux*|powerpc*-*linux*)
6338
LD="${LD-ld} -m elf64ppc"
6340
s390*-*linux*|s390*-*tpf*)
6341
LD="${LD-ld} -m elf64_s390"
6344
LD="${LD-ld} -m elf64_sparc"
6354
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
6355
SAVE_CFLAGS="$CFLAGS"
6356
CFLAGS="$CFLAGS -belf"
6357
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6358
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6359
if ${lt_cv_cc_needs_belf+:} false; then :
6360
$as_echo_n "(cached) " >&6
6363
ac_cpp='$CPP $CPPFLAGS'
6364
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6365
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6366
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6368
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6369
/* end confdefs.h. */
6379
if ac_fn_c_try_link "$LINENO"; then :
6380
lt_cv_cc_needs_belf=yes
6382
lt_cv_cc_needs_belf=no
6384
rm -f core conftest.err conftest.$ac_objext \
6385
conftest$ac_exeext conftest.$ac_ext
6387
ac_cpp='$CPP $CPPFLAGS'
6388
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6389
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6390
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6393
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6394
$as_echo "$lt_cv_cc_needs_belf" >&6; }
6395
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6396
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6397
CFLAGS="$SAVE_CFLAGS"
6401
# Find out which ABI we are using.
6402
echo 'int i;' > conftest.$ac_ext
6403
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6404
(eval $ac_compile) 2>&5
6406
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6407
test $ac_status = 0; }; then
6408
case `/usr/bin/file conftest.o` in
6410
case $lt_cv_prog_gnu_ld in
6414
LD="${LD-ld} -m elf_x86_64"
6417
LD="${LD-ld} -m elf64_sparc"
6420
# GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6421
if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6426
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6438
need_locks="$enable_libtool_lock"
6440
if test -n "$ac_tool_prefix"; then
6441
# Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6442
set dummy ${ac_tool_prefix}mt; ac_word=$2
6443
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6444
$as_echo_n "checking for $ac_word... " >&6; }
6445
if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6446
$as_echo_n "(cached) " >&6
6448
if test -n "$MANIFEST_TOOL"; then
6449
ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6451
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6455
test -z "$as_dir" && as_dir=.
6456
for ac_exec_ext in '' $ac_executable_extensions; do
6457
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6458
ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6459
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6468
MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6469
if test -n "$MANIFEST_TOOL"; then
6470
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6471
$as_echo "$MANIFEST_TOOL" >&6; }
6473
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6474
$as_echo "no" >&6; }
6479
if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6480
ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6481
# Extract the first word of "mt", so it can be a program name with args.
6482
set dummy mt; ac_word=$2
6483
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6484
$as_echo_n "checking for $ac_word... " >&6; }
6485
if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6486
$as_echo_n "(cached) " >&6
6488
if test -n "$ac_ct_MANIFEST_TOOL"; then
6489
ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6491
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6495
test -z "$as_dir" && as_dir=.
6496
for ac_exec_ext in '' $ac_executable_extensions; do
6497
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6498
ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6499
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6508
ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6509
if test -n "$ac_ct_MANIFEST_TOOL"; then
6510
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6511
$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6513
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6514
$as_echo "no" >&6; }
6517
if test "x$ac_ct_MANIFEST_TOOL" = x; then
6520
case $cross_compiling:$ac_tool_warned in
6522
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6523
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6524
ac_tool_warned=yes ;;
6526
MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6529
MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6532
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6533
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6534
$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6535
if ${lt_cv_path_mainfest_tool+:} false; then :
6536
$as_echo_n "(cached) " >&6
6538
lt_cv_path_mainfest_tool=no
6539
echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6540
$MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6541
cat conftest.err >&5
6542
if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6543
lt_cv_path_mainfest_tool=yes
6547
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6548
$as_echo "$lt_cv_path_mainfest_tool" >&6; }
6549
if test "x$lt_cv_path_mainfest_tool" != xyes; then
6559
rhapsody* | darwin*)
6560
if test -n "$ac_tool_prefix"; then
6561
# Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6562
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6563
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6564
$as_echo_n "checking for $ac_word... " >&6; }
6565
if ${ac_cv_prog_DSYMUTIL+:} false; then :
6566
$as_echo_n "(cached) " >&6
6568
if test -n "$DSYMUTIL"; then
6569
ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6571
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6575
test -z "$as_dir" && as_dir=.
6576
for ac_exec_ext in '' $ac_executable_extensions; do
6577
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6578
ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6579
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6588
DSYMUTIL=$ac_cv_prog_DSYMUTIL
6589
if test -n "$DSYMUTIL"; then
6590
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6591
$as_echo "$DSYMUTIL" >&6; }
6593
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6594
$as_echo "no" >&6; }
6599
if test -z "$ac_cv_prog_DSYMUTIL"; then
6600
ac_ct_DSYMUTIL=$DSYMUTIL
6601
# Extract the first word of "dsymutil", so it can be a program name with args.
6602
set dummy dsymutil; ac_word=$2
6603
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6604
$as_echo_n "checking for $ac_word... " >&6; }
6605
if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6606
$as_echo_n "(cached) " >&6
6608
if test -n "$ac_ct_DSYMUTIL"; then
6609
ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6611
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6615
test -z "$as_dir" && as_dir=.
6616
for ac_exec_ext in '' $ac_executable_extensions; do
6617
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6618
ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6619
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6628
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6629
if test -n "$ac_ct_DSYMUTIL"; then
6630
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6631
$as_echo "$ac_ct_DSYMUTIL" >&6; }
6633
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6634
$as_echo "no" >&6; }
6637
if test "x$ac_ct_DSYMUTIL" = x; then
6640
case $cross_compiling:$ac_tool_warned in
6642
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6643
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6644
ac_tool_warned=yes ;;
6646
DSYMUTIL=$ac_ct_DSYMUTIL
6649
DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6652
if test -n "$ac_tool_prefix"; then
6653
# Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6654
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6655
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6656
$as_echo_n "checking for $ac_word... " >&6; }
6657
if ${ac_cv_prog_NMEDIT+:} false; then :
6658
$as_echo_n "(cached) " >&6
6660
if test -n "$NMEDIT"; then
6661
ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6663
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6667
test -z "$as_dir" && as_dir=.
6668
for ac_exec_ext in '' $ac_executable_extensions; do
6669
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6670
ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6671
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6680
NMEDIT=$ac_cv_prog_NMEDIT
6681
if test -n "$NMEDIT"; then
6682
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6683
$as_echo "$NMEDIT" >&6; }
6685
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6686
$as_echo "no" >&6; }
6691
if test -z "$ac_cv_prog_NMEDIT"; then
6692
ac_ct_NMEDIT=$NMEDIT
6693
# Extract the first word of "nmedit", so it can be a program name with args.
6694
set dummy nmedit; ac_word=$2
6695
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6696
$as_echo_n "checking for $ac_word... " >&6; }
6697
if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6698
$as_echo_n "(cached) " >&6
6700
if test -n "$ac_ct_NMEDIT"; then
6701
ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6703
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6707
test -z "$as_dir" && as_dir=.
6708
for ac_exec_ext in '' $ac_executable_extensions; do
6709
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6710
ac_cv_prog_ac_ct_NMEDIT="nmedit"
6711
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6720
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6721
if test -n "$ac_ct_NMEDIT"; then
6722
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6723
$as_echo "$ac_ct_NMEDIT" >&6; }
6725
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6726
$as_echo "no" >&6; }
6729
if test "x$ac_ct_NMEDIT" = x; then
6732
case $cross_compiling:$ac_tool_warned in
6734
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6735
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6736
ac_tool_warned=yes ;;
6738
NMEDIT=$ac_ct_NMEDIT
6741
NMEDIT="$ac_cv_prog_NMEDIT"
6744
if test -n "$ac_tool_prefix"; then
6745
# Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6746
set dummy ${ac_tool_prefix}lipo; ac_word=$2
6747
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6748
$as_echo_n "checking for $ac_word... " >&6; }
6749
if ${ac_cv_prog_LIPO+:} false; then :
6750
$as_echo_n "(cached) " >&6
6752
if test -n "$LIPO"; then
6753
ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6755
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6759
test -z "$as_dir" && as_dir=.
6760
for ac_exec_ext in '' $ac_executable_extensions; do
6761
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6762
ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6763
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6772
LIPO=$ac_cv_prog_LIPO
6773
if test -n "$LIPO"; then
6774
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6775
$as_echo "$LIPO" >&6; }
6777
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6778
$as_echo "no" >&6; }
6783
if test -z "$ac_cv_prog_LIPO"; then
6785
# Extract the first word of "lipo", so it can be a program name with args.
6786
set dummy lipo; ac_word=$2
6787
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6788
$as_echo_n "checking for $ac_word... " >&6; }
6789
if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6790
$as_echo_n "(cached) " >&6
6792
if test -n "$ac_ct_LIPO"; then
6793
ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6795
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6799
test -z "$as_dir" && as_dir=.
6800
for ac_exec_ext in '' $ac_executable_extensions; do
6801
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6802
ac_cv_prog_ac_ct_LIPO="lipo"
6803
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6812
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6813
if test -n "$ac_ct_LIPO"; then
6814
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6815
$as_echo "$ac_ct_LIPO" >&6; }
6817
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6818
$as_echo "no" >&6; }
6821
if test "x$ac_ct_LIPO" = x; then
6824
case $cross_compiling:$ac_tool_warned in
6826
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6827
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6828
ac_tool_warned=yes ;;
6833
LIPO="$ac_cv_prog_LIPO"
6836
if test -n "$ac_tool_prefix"; then
6837
# Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6838
set dummy ${ac_tool_prefix}otool; ac_word=$2
6839
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6840
$as_echo_n "checking for $ac_word... " >&6; }
6841
if ${ac_cv_prog_OTOOL+:} false; then :
6842
$as_echo_n "(cached) " >&6
6844
if test -n "$OTOOL"; then
6845
ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6847
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6851
test -z "$as_dir" && as_dir=.
6852
for ac_exec_ext in '' $ac_executable_extensions; do
6853
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6854
ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6855
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6864
OTOOL=$ac_cv_prog_OTOOL
6865
if test -n "$OTOOL"; then
6866
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
6867
$as_echo "$OTOOL" >&6; }
6869
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6870
$as_echo "no" >&6; }
6875
if test -z "$ac_cv_prog_OTOOL"; then
6877
# Extract the first word of "otool", so it can be a program name with args.
6878
set dummy otool; ac_word=$2
6879
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6880
$as_echo_n "checking for $ac_word... " >&6; }
6881
if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
6882
$as_echo_n "(cached) " >&6
6884
if test -n "$ac_ct_OTOOL"; then
6885
ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6887
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6891
test -z "$as_dir" && as_dir=.
6892
for ac_exec_ext in '' $ac_executable_extensions; do
6893
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6894
ac_cv_prog_ac_ct_OTOOL="otool"
6895
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6904
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6905
if test -n "$ac_ct_OTOOL"; then
6906
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
6907
$as_echo "$ac_ct_OTOOL" >&6; }
6909
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6910
$as_echo "no" >&6; }
6913
if test "x$ac_ct_OTOOL" = x; then
6916
case $cross_compiling:$ac_tool_warned in
6918
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6919
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6920
ac_tool_warned=yes ;;
6925
OTOOL="$ac_cv_prog_OTOOL"
6928
if test -n "$ac_tool_prefix"; then
6929
# Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6930
set dummy ${ac_tool_prefix}otool64; ac_word=$2
6931
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6932
$as_echo_n "checking for $ac_word... " >&6; }
6933
if ${ac_cv_prog_OTOOL64+:} false; then :
6934
$as_echo_n "(cached) " >&6
6936
if test -n "$OTOOL64"; then
6937
ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6939
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6943
test -z "$as_dir" && as_dir=.
6944
for ac_exec_ext in '' $ac_executable_extensions; do
6945
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6946
ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6947
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6956
OTOOL64=$ac_cv_prog_OTOOL64
6957
if test -n "$OTOOL64"; then
6958
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
6959
$as_echo "$OTOOL64" >&6; }
6961
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6962
$as_echo "no" >&6; }
6967
if test -z "$ac_cv_prog_OTOOL64"; then
6968
ac_ct_OTOOL64=$OTOOL64
6969
# Extract the first word of "otool64", so it can be a program name with args.
6970
set dummy otool64; ac_word=$2
6971
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6972
$as_echo_n "checking for $ac_word... " >&6; }
6973
if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
6974
$as_echo_n "(cached) " >&6
6976
if test -n "$ac_ct_OTOOL64"; then
6977
ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6979
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6983
test -z "$as_dir" && as_dir=.
6984
for ac_exec_ext in '' $ac_executable_extensions; do
6985
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6986
ac_cv_prog_ac_ct_OTOOL64="otool64"
6987
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6996
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6997
if test -n "$ac_ct_OTOOL64"; then
6998
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
6999
$as_echo "$ac_ct_OTOOL64" >&6; }
7001
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7002
$as_echo "no" >&6; }
7005
if test "x$ac_ct_OTOOL64" = x; then
7008
case $cross_compiling:$ac_tool_warned in
7010
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7011
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7012
ac_tool_warned=yes ;;
7014
OTOOL64=$ac_ct_OTOOL64
7017
OTOOL64="$ac_cv_prog_OTOOL64"
7046
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7047
$as_echo_n "checking for -single_module linker flag... " >&6; }
7048
if ${lt_cv_apple_cc_single_mod+:} false; then :
7049
$as_echo_n "(cached) " >&6
7051
lt_cv_apple_cc_single_mod=no
7052
if test -z "${LT_MULTI_MODULE}"; then
7053
# By default we will add the -single_module flag. You can override
7054
# by either setting the environment variable LT_MULTI_MODULE
7055
# non-empty at configure time, or by adding -multi_module to the
7057
rm -rf libconftest.dylib*
7058
echo "int foo(void){return 1;}" > conftest.c
7059
echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7060
-dynamiclib -Wl,-single_module conftest.c" >&5
7061
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7062
-dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7064
# If there is a non-empty error log, and "single_module"
7065
# appears in it, assume the flag caused a linker warning
7066
if test -s conftest.err && $GREP single_module conftest.err; then
7067
cat conftest.err >&5
7068
# Otherwise, if the output was created with a 0 exit code from
7069
# the compiler, it worked.
7070
elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7071
lt_cv_apple_cc_single_mod=yes
7073
cat conftest.err >&5
7075
rm -rf libconftest.dylib*
7079
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7080
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7082
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7083
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7084
if ${lt_cv_ld_exported_symbols_list+:} false; then :
7085
$as_echo_n "(cached) " >&6
7087
lt_cv_ld_exported_symbols_list=no
7088
save_LDFLAGS=$LDFLAGS
7089
echo "_main" > conftest.sym
7090
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7091
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7092
/* end confdefs.h. */
7102
if ac_fn_c_try_link "$LINENO"; then :
7103
lt_cv_ld_exported_symbols_list=yes
7105
lt_cv_ld_exported_symbols_list=no
7107
rm -f core conftest.err conftest.$ac_objext \
7108
conftest$ac_exeext conftest.$ac_ext
7109
LDFLAGS="$save_LDFLAGS"
7112
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7113
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7115
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7116
$as_echo_n "checking for -force_load linker flag... " >&6; }
7117
if ${lt_cv_ld_force_load+:} false; then :
7118
$as_echo_n "(cached) " >&6
7120
lt_cv_ld_force_load=no
7121
cat > conftest.c << _LT_EOF
7122
int forced_loaded() { return 2;}
7124
echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7125
$LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7126
echo "$AR cru libconftest.a conftest.o" >&5
7127
$AR cru libconftest.a conftest.o 2>&5
7128
echo "$RANLIB libconftest.a" >&5
7129
$RANLIB libconftest.a 2>&5
7130
cat > conftest.c << _LT_EOF
7131
int main() { return 0;}
7133
echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7134
$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7136
if test -s conftest.err && $GREP force_load conftest.err; then
7137
cat conftest.err >&5
7138
elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7139
lt_cv_ld_force_load=yes
7141
cat conftest.err >&5
7143
rm -f conftest.err libconftest.a conftest conftest.c
7144
rm -rf conftest.dSYM
7147
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7148
$as_echo "$lt_cv_ld_force_load" >&6; }
7150
rhapsody* | darwin1.[012])
7151
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7153
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7154
darwin*) # darwin 5.x on
7155
# if running on 10.5 or later, the deployment target defaults
7156
# to the OS version, if on x86, and 10.4, the deployment
7157
# target defaults to 10.4. Don't you love it?
7158
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7159
10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7160
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7162
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7164
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7168
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7169
_lt_dar_single_mod='$single_module'
7171
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7172
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7174
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7176
if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7177
_lt_dsymutil='~$DSYMUTIL $lib || :'
7185
ac_cpp='$CPP $CPPFLAGS'
7186
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7187
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7188
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7189
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7190
$as_echo_n "checking how to run the C preprocessor... " >&6; }
7191
# On Suns, sometimes $CPP names a directory.
7192
if test -n "$CPP" && test -d "$CPP"; then
7195
if test -z "$CPP"; then
7196
if ${ac_cv_prog_CPP+:} false; then :
7197
$as_echo_n "(cached) " >&6
7199
# Double quotes because CPP needs to be expanded
7200
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7203
for ac_c_preproc_warn_flag in '' yes
7205
# Use a header file that comes with gcc, so configuring glibc
7206
# with a fresh cross-compiler works.
7207
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7208
# <limits.h> exists even on freestanding compilers.
7209
# On the NeXT, cc -E runs the code through the compiler's parser,
7210
# not just through cpp. "Syntax error" is here to catch this case.
7211
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7212
/* end confdefs.h. */
7214
@%:@ include <limits.h>
7216
@%:@ include <assert.h>
7220
if ac_fn_c_try_cpp "$LINENO"; then :
7223
# Broken: fails on valid input.
7226
rm -f conftest.err conftest.i conftest.$ac_ext
7228
# OK, works on sane cases. Now check whether nonexistent headers
7229
# can be detected and how.
7230
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7231
/* end confdefs.h. */
7232
@%:@include <ac_nonexistent.h>
7234
if ac_fn_c_try_cpp "$LINENO"; then :
7235
# Broken: success on invalid input.
7238
# Passes both tests.
7242
rm -f conftest.err conftest.i conftest.$ac_ext
7245
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7246
rm -f conftest.i conftest.err conftest.$ac_ext
7247
if $ac_preproc_ok; then :
7259
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7260
$as_echo "$CPP" >&6; }
7262
for ac_c_preproc_warn_flag in '' yes
7264
# Use a header file that comes with gcc, so configuring glibc
7265
# with a fresh cross-compiler works.
7266
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7267
# <limits.h> exists even on freestanding compilers.
7268
# On the NeXT, cc -E runs the code through the compiler's parser,
7269
# not just through cpp. "Syntax error" is here to catch this case.
7270
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7271
/* end confdefs.h. */
7273
@%:@ include <limits.h>
7275
@%:@ include <assert.h>
7279
if ac_fn_c_try_cpp "$LINENO"; then :
7282
# Broken: fails on valid input.
7285
rm -f conftest.err conftest.i conftest.$ac_ext
7287
# OK, works on sane cases. Now check whether nonexistent headers
7288
# can be detected and how.
7289
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7290
/* end confdefs.h. */
7291
@%:@include <ac_nonexistent.h>
7293
if ac_fn_c_try_cpp "$LINENO"; then :
7294
# Broken: success on invalid input.
7297
# Passes both tests.
7301
rm -f conftest.err conftest.i conftest.$ac_ext
7304
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7305
rm -f conftest.i conftest.err conftest.$ac_ext
7306
if $ac_preproc_ok; then :
7309
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7310
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7311
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7312
See \`config.log' for more details" "$LINENO" 5; }
7316
ac_cpp='$CPP $CPPFLAGS'
7317
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7318
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7319
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7322
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7323
$as_echo_n "checking for ANSI C header files... " >&6; }
7324
if ${ac_cv_header_stdc+:} false; then :
7325
$as_echo_n "(cached) " >&6
7327
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7328
/* end confdefs.h. */
7342
if ac_fn_c_try_compile "$LINENO"; then :
7343
ac_cv_header_stdc=yes
7345
ac_cv_header_stdc=no
7347
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7349
if test $ac_cv_header_stdc = yes; then
7350
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7351
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7352
/* end confdefs.h. */
7356
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7357
$EGREP "memchr" >/dev/null 2>&1; then :
7360
ac_cv_header_stdc=no
7366
if test $ac_cv_header_stdc = yes; then
7367
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7368
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7369
/* end confdefs.h. */
7373
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7374
$EGREP "free" >/dev/null 2>&1; then :
7377
ac_cv_header_stdc=no
7383
if test $ac_cv_header_stdc = yes; then
7384
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7385
if test "$cross_compiling" = yes; then :
7388
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7389
/* end confdefs.h. */
7392
#if ((' ' & 0x0FF) == 0x020)
7393
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7394
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7396
# define ISLOWER(c) \
7397
(('a' <= (c) && (c) <= 'i') \
7398
|| ('j' <= (c) && (c) <= 'r') \
7399
|| ('s' <= (c) && (c) <= 'z'))
7400
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7403
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7408
for (i = 0; i < 256; i++)
7409
if (XOR (islower (i), ISLOWER (i))
7410
|| toupper (i) != TOUPPER (i))
7415
if ac_fn_c_try_run "$LINENO"; then :
7418
ac_cv_header_stdc=no
7420
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7421
conftest.$ac_objext conftest.beam conftest.$ac_ext
7426
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7427
$as_echo "$ac_cv_header_stdc" >&6; }
7428
if test $ac_cv_header_stdc = yes; then
7430
$as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
7434
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7435
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7436
inttypes.h stdint.h unistd.h
7438
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7439
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7441
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7442
cat >>confdefs.h <<_ACEOF
7443
@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7451
for ac_header in dlfcn.h
7453
ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7455
if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7456
cat >>confdefs.h <<_ACEOF
7457
@%:@define HAVE_DLFCN_H 1
7478
@%:@ Check whether --enable-shared was given.
7479
if test "${enable_shared+set}" = set; then :
7480
enableval=$enable_shared; p=${PACKAGE-default}
7482
yes) enable_shared=yes ;;
7483
no) enable_shared=no ;;
7486
# Look at the argument we got. We use all the common list separators.
7487
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7488
for pkg in $enableval; do
7490
if test "X$pkg" = "X$p"; then
7509
@%:@ Check whether --enable-static was given.
7510
if test "${enable_static+set}" = set; then :
7511
enableval=$enable_static; p=${PACKAGE-default}
7513
yes) enable_static=yes ;;
7514
no) enable_static=no ;;
7517
# Look at the argument we got. We use all the common list separators.
7518
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7519
for pkg in $enableval; do
7521
if test "X$pkg" = "X$p"; then
7541
@%:@ Check whether --with-pic was given.
7542
if test "${with_pic+set}" = set; then :
7543
withval=$with_pic; lt_p=${PACKAGE-default}
7545
yes|no) pic_mode=$withval ;;
7548
# Look at the argument we got. We use all the common list separators.
7549
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7550
for lt_pkg in $withval; do
7552
if test "X$lt_pkg" = "X$lt_p"; then
7564
test -z "$pic_mode" && pic_mode=default
7572
@%:@ Check whether --enable-fast-install was given.
7573
if test "${enable_fast_install+set}" = set; then :
7574
enableval=$enable_fast_install; p=${PACKAGE-default}
7576
yes) enable_fast_install=yes ;;
7577
no) enable_fast_install=no ;;
7579
enable_fast_install=no
7580
# Look at the argument we got. We use all the common list separators.
7581
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7582
for pkg in $enableval; do
7584
if test "X$pkg" = "X$p"; then
7585
enable_fast_install=yes
7592
enable_fast_install=yes
7605
# This can be used to rebuild libtool when needed
7606
LIBTOOL_DEPS="$ltmain"
7608
# Always use our own libtool.
7609
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7640
test -z "$LN_S" && LN_S="ln -s"
7655
if test -n "${ZSH_VERSION+set}" ; then
7656
setopt NO_GLOB_SUBST
7659
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7660
$as_echo_n "checking for objdir... " >&6; }
7661
if ${lt_cv_objdir+:} false; then :
7662
$as_echo_n "(cached) " >&6
7664
rm -f .libs 2>/dev/null
7665
mkdir .libs 2>/dev/null
7666
if test -d .libs; then
7669
# MS-DOS does not allow filenames that begin with a dot.
7672
rmdir .libs 2>/dev/null
7674
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7675
$as_echo "$lt_cv_objdir" >&6; }
7676
objdir=$lt_cv_objdir
7682
cat >>confdefs.h <<_ACEOF
7683
@%:@define LT_OBJDIR "$lt_cv_objdir/"
7691
# AIX sometimes has problems with the GCC collect2 program. For some
7692
# reason, if we set the COLLECT_NAMES environment variable, the problems
7693
# vanish in a puff of smoke.
7694
if test "X${COLLECT_NAMES+set}" != Xset; then
7696
export COLLECT_NAMES
7703
can_build_shared=yes
7705
# All known linkers require a `.a' archive for static linking (except MSVC,
7706
# which needs '.lib').
7709
with_gnu_ld="$lt_cv_prog_gnu_ld"
7712
old_CFLAGS="$CFLAGS"
7714
# Set sane defaults for various variables
7715
test -z "$CC" && CC=cc
7716
test -z "$LTCC" && LTCC=$CC
7717
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7718
test -z "$LD" && LD=ld
7719
test -z "$ac_objext" && ac_objext=o
7721
for cc_temp in $compiler""; do
7723
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7724
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7729
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
7732
# Only perform the check for file, if the check method requires it
7733
test -z "$MAGIC_CMD" && MAGIC_CMD=file
7734
case $deplibs_check_method in
7736
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7737
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7738
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7739
if ${lt_cv_path_MAGIC_CMD+:} false; then :
7740
$as_echo_n "(cached) " >&6
7744
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7747
lt_save_MAGIC_CMD="$MAGIC_CMD"
7748
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7749
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7750
for ac_dir in $ac_dummy; do
7752
test -z "$ac_dir" && ac_dir=.
7753
if test -f $ac_dir/${ac_tool_prefix}file; then
7754
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7755
if test -n "$file_magic_test_file"; then
7756
case $deplibs_check_method in
7758
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7759
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7760
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7761
$EGREP "$file_magic_regex" > /dev/null; then
7766
*** Warning: the command libtool uses to detect shared libraries,
7767
*** $file_magic_cmd, produces output that libtool cannot recognize.
7768
*** The result is that libtool may fail to recognize shared libraries
7769
*** as such. This will affect the creation of libtool libraries that
7770
*** depend on shared libraries, but programs linked with such libtool
7771
*** libraries will work regardless of this problem. Nevertheless, you
7772
*** may want to report the problem to your system manager and/or to
7773
*** bug-libtool@gnu.org
7783
MAGIC_CMD="$lt_save_MAGIC_CMD"
7788
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7789
if test -n "$MAGIC_CMD"; then
7790
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7791
$as_echo "$MAGIC_CMD" >&6; }
7793
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7794
$as_echo "no" >&6; }
7801
if test -z "$lt_cv_path_MAGIC_CMD"; then
7802
if test -n "$ac_tool_prefix"; then
7803
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7804
$as_echo_n "checking for file... " >&6; }
7805
if ${lt_cv_path_MAGIC_CMD+:} false; then :
7806
$as_echo_n "(cached) " >&6
7810
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7813
lt_save_MAGIC_CMD="$MAGIC_CMD"
7814
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7815
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7816
for ac_dir in $ac_dummy; do
7818
test -z "$ac_dir" && ac_dir=.
7819
if test -f $ac_dir/file; then
7820
lt_cv_path_MAGIC_CMD="$ac_dir/file"
7821
if test -n "$file_magic_test_file"; then
7822
case $deplibs_check_method in
7824
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7825
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7826
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7827
$EGREP "$file_magic_regex" > /dev/null; then
7832
*** Warning: the command libtool uses to detect shared libraries,
7833
*** $file_magic_cmd, produces output that libtool cannot recognize.
7834
*** The result is that libtool may fail to recognize shared libraries
7835
*** as such. This will affect the creation of libtool libraries that
7836
*** depend on shared libraries, but programs linked with such libtool
7837
*** libraries will work regardless of this problem. Nevertheless, you
7838
*** may want to report the problem to your system manager and/or to
7839
*** bug-libtool@gnu.org
7849
MAGIC_CMD="$lt_save_MAGIC_CMD"
7854
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7855
if test -n "$MAGIC_CMD"; then
7856
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7857
$as_echo "$MAGIC_CMD" >&6; }
7859
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7860
$as_echo "no" >&6; }
7873
# Use C for the default configuration in the libtool script
7877
ac_cpp='$CPP $CPPFLAGS'
7878
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7879
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7880
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7883
# Source file extension for C test sources.
7886
# Object file extension for compiled C test sources.
7890
# Code to be used in simple compile tests
7891
lt_simple_compile_test_code="int some_variable = 0;"
7893
# Code to be used in simple link tests
7894
lt_simple_link_test_code='int main(){return(0);}'
7902
# If no C compiler was specified, use CC.
7905
# If no C compiler flags were specified, use CFLAGS.
7906
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7908
# Allow CC to be a program name with arguments.
7911
# Save the default compiler, since it gets overwritten when the other
7912
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7913
compiler_DEFAULT=$CC
7915
# save warnings/boilerplate of simple test code
7916
ac_outfile=conftest.$ac_objext
7917
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7918
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7919
_lt_compiler_boilerplate=`cat conftest.err`
7922
ac_outfile=conftest.$ac_objext
7923
echo "$lt_simple_link_test_code" >conftest.$ac_ext
7924
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7925
_lt_linker_boilerplate=`cat conftest.err`
7930
## There is no encapsulation within the following macros, do not change
7931
## the running order or otherwise move them around unless you know exactly
7932
## what you are doing...
7933
if test -n "$compiler"; then
7935
lt_prog_compiler_no_builtin_flag=
7937
if test "$GCC" = yes; then
7938
case $cc_basename in
7940
lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
7942
lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
7945
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7946
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7947
if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7948
$as_echo_n "(cached) " >&6
7950
lt_cv_prog_compiler_rtti_exceptions=no
7951
ac_outfile=conftest.$ac_objext
7952
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7953
lt_compiler_flag="-fno-rtti -fno-exceptions"
7954
# Insert the option either (1) after the last *FLAGS variable, or
7955
# (2) before a word containing "conftest.", or (3) at the end.
7956
# Note that $ac_compile itself does not contain backslashes and begins
7957
# with a dollar sign (not a hyphen), so the echo should work correctly.
7958
# The option is referenced via a variable to avoid confusing sed.
7959
lt_compile=`echo "$ac_compile" | $SED \
7960
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7961
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7962
-e 's:$: $lt_compiler_flag:'`
7963
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
7964
(eval "$lt_compile" 2>conftest.err)
7966
cat conftest.err >&5
7967
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7968
if (exit $ac_status) && test -s "$ac_outfile"; then
7969
# The compiler can only warn and ignore the option if not recognized
7970
# So say no if there are warnings other than the usual output.
7971
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
7972
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7973
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7974
lt_cv_prog_compiler_rtti_exceptions=yes
7980
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7981
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7983
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7984
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7996
lt_prog_compiler_wl=
7997
lt_prog_compiler_pic=
7998
lt_prog_compiler_static=
8001
if test "$GCC" = yes; then
8002
lt_prog_compiler_wl='-Wl,'
8003
lt_prog_compiler_static='-static'
8007
# All AIX code is PIC.
8008
if test "$host_cpu" = ia64; then
8009
# AIX 5 now supports IA64 processor
8010
lt_prog_compiler_static='-Bstatic'
8017
# see comment about AmigaOS4 .so support
8018
lt_prog_compiler_pic='-fPIC'
8021
# FIXME: we need at least 68020 code to build shared libraries, but
8022
# adding the `-m68020' flag to GCC prevents building anything better,
8024
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8029
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8030
# PIC is the default for these OSes.
8033
mingw* | cygwin* | pw32* | os2* | cegcc*)
8034
# This hack is so that the source file can tell whether it is being
8035
# built for inclusion in a dll (and should export symbols for example).
8036
# Although the cygwin gcc ignores -fPIC, still need this for old-style
8037
# (--disable-auto-import) libraries
8038
lt_prog_compiler_pic='-DDLL_EXPORT'
8041
darwin* | rhapsody*)
8042
# PIC is the default on this platform
8043
# Common symbols not allowed in MH_DYLIB files
8044
lt_prog_compiler_pic='-fno-common'
8048
# PIC is the default for Haiku.
8049
# The "-static" flag exists, but is broken.
8050
lt_prog_compiler_static=
8054
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8055
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8056
# sets the default TLS model and affects inlining.
8062
lt_prog_compiler_pic='-fPIC'
8068
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
8069
# Instead, we relocate shared libraries at runtime.
8073
# Just because we use GCC doesn't mean we suddenly get shared libraries
8074
# on systems that don't support them.
8075
lt_prog_compiler_can_build_shared=no
8080
# QNX uses GNU C++, but need to define -shared option too, otherwise
8082
lt_prog_compiler_pic='-fPIC -shared'
8086
if test -d /usr/nec; then
8087
lt_prog_compiler_pic=-Kconform_pic
8092
lt_prog_compiler_pic='-fPIC'
8096
case $cc_basename in
8097
nvcc*) # Cuda Compiler Driver 2.2
8098
lt_prog_compiler_wl='-Xlinker '
8099
if test -n "$lt_prog_compiler_pic"; then
8100
lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8105
# PORTME Check for flag to pass linker flags through the system compiler.
8108
lt_prog_compiler_wl='-Wl,'
8109
if test "$host_cpu" = ia64; then
8110
# AIX 5 now supports IA64 processor
8111
lt_prog_compiler_static='-Bstatic'
8113
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8117
mingw* | cygwin* | pw32* | os2* | cegcc*)
8118
# This hack is so that the source file can tell whether it is being
8119
# built for inclusion in a dll (and should export symbols for example).
8120
lt_prog_compiler_pic='-DDLL_EXPORT'
8123
hpux9* | hpux10* | hpux11*)
8124
lt_prog_compiler_wl='-Wl,'
8125
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8132
lt_prog_compiler_pic='+Z'
8135
# Is there a better lt_prog_compiler_static that works with the bundled CC?
8136
lt_prog_compiler_static='${wl}-a ${wl}archive'
8139
irix5* | irix6* | nonstopux*)
8140
lt_prog_compiler_wl='-Wl,'
8141
# PIC (with -KPIC) is the default.
8142
lt_prog_compiler_static='-non_shared'
8145
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8146
case $cc_basename in
8147
# old Intel for x86_64 which still supported -KPIC.
8149
lt_prog_compiler_wl='-Wl,'
8150
lt_prog_compiler_pic='-KPIC'
8151
lt_prog_compiler_static='-static'
8153
# icc used to be incompatible with GCC.
8154
# ICC 10 doesn't accept -KPIC any more.
8156
lt_prog_compiler_wl='-Wl,'
8157
lt_prog_compiler_pic='-fPIC'
8158
lt_prog_compiler_static='-static'
8160
# Lahey Fortran 8.1.
8162
lt_prog_compiler_wl='-Wl,'
8163
lt_prog_compiler_pic='--shared'
8164
lt_prog_compiler_static='--static'
8167
# NAG Fortran compiler
8168
lt_prog_compiler_wl='-Wl,-Wl,,'
8169
lt_prog_compiler_pic='-PIC'
8170
lt_prog_compiler_static='-Bstatic'
8172
pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8173
# Portland Group compilers (*not* the Pentium gcc compiler,
8174
# which looks to be a dead project)
8175
lt_prog_compiler_wl='-Wl,'
8176
lt_prog_compiler_pic='-fpic'
8177
lt_prog_compiler_static='-Bstatic'
8180
lt_prog_compiler_wl='-Wl,'
8181
# All Alpha code is PIC.
8182
lt_prog_compiler_static='-non_shared'
8184
xl* | bgxl* | bgf* | mpixl*)
8185
# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8186
lt_prog_compiler_wl='-Wl,'
8187
lt_prog_compiler_pic='-qpic'
8188
lt_prog_compiler_static='-qstaticlink'
8191
case `$CC -V 2>&1 | sed 5q` in
8192
*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8193
# Sun Fortran 8.3 passes all unrecognized flags to the linker
8194
lt_prog_compiler_pic='-KPIC'
8195
lt_prog_compiler_static='-Bstatic'
8196
lt_prog_compiler_wl=''
8198
*Sun\ F* | *Sun*Fortran*)
8199
lt_prog_compiler_pic='-KPIC'
8200
lt_prog_compiler_static='-Bstatic'
8201
lt_prog_compiler_wl='-Qoption ld '
8205
lt_prog_compiler_pic='-KPIC'
8206
lt_prog_compiler_static='-Bstatic'
8207
lt_prog_compiler_wl='-Wl,'
8209
*Intel*\ [CF]*Compiler*)
8210
lt_prog_compiler_wl='-Wl,'
8211
lt_prog_compiler_pic='-fPIC'
8212
lt_prog_compiler_static='-static'
8215
lt_prog_compiler_wl='-Wl,'
8216
lt_prog_compiler_pic='-fpic'
8217
lt_prog_compiler_static='-Bstatic'
8225
lt_prog_compiler_pic='-KPIC'
8226
lt_prog_compiler_static='-Bstatic'
8230
# QNX uses GNU C++, but need to define -shared option too, otherwise
8232
lt_prog_compiler_pic='-fPIC -shared'
8235
osf3* | osf4* | osf5*)
8236
lt_prog_compiler_wl='-Wl,'
8237
# All OSF/1 code is PIC.
8238
lt_prog_compiler_static='-non_shared'
8242
lt_prog_compiler_static='-non_shared'
8246
lt_prog_compiler_pic='-KPIC'
8247
lt_prog_compiler_static='-Bstatic'
8248
case $cc_basename in
8249
f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8250
lt_prog_compiler_wl='-Qoption ld ';;
8252
lt_prog_compiler_wl='-Wl,';;
8257
lt_prog_compiler_wl='-Qoption ld '
8258
lt_prog_compiler_pic='-PIC'
8259
lt_prog_compiler_static='-Bstatic'
8262
sysv4 | sysv4.2uw2* | sysv4.3*)
8263
lt_prog_compiler_wl='-Wl,'
8264
lt_prog_compiler_pic='-KPIC'
8265
lt_prog_compiler_static='-Bstatic'
8269
if test -d /usr/nec ;then
8270
lt_prog_compiler_pic='-Kconform_pic'
8271
lt_prog_compiler_static='-Bstatic'
8275
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8276
lt_prog_compiler_wl='-Wl,'
8277
lt_prog_compiler_pic='-KPIC'
8278
lt_prog_compiler_static='-Bstatic'
8282
lt_prog_compiler_wl='-Wl,'
8283
lt_prog_compiler_can_build_shared=no
8287
lt_prog_compiler_pic='-pic'
8288
lt_prog_compiler_static='-Bstatic'
8292
lt_prog_compiler_can_build_shared=no
8298
# For platforms which do not support PIC, -DPIC is meaningless:
8300
lt_prog_compiler_pic=
8303
lt_prog_compiler_pic="$lt_prog_compiler_pic@&t@ -DPIC"
8307
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8308
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8309
if ${lt_cv_prog_compiler_pic+:} false; then :
8310
$as_echo_n "(cached) " >&6
8312
lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8314
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8315
$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8316
lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8319
# Check to make sure the PIC flag actually works.
8321
if test -n "$lt_prog_compiler_pic"; then
8322
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8323
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8324
if ${lt_cv_prog_compiler_pic_works+:} false; then :
8325
$as_echo_n "(cached) " >&6
8327
lt_cv_prog_compiler_pic_works=no
8328
ac_outfile=conftest.$ac_objext
8329
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8330
lt_compiler_flag="$lt_prog_compiler_pic@&t@ -DPIC"
8331
# Insert the option either (1) after the last *FLAGS variable, or
8332
# (2) before a word containing "conftest.", or (3) at the end.
8333
# Note that $ac_compile itself does not contain backslashes and begins
8334
# with a dollar sign (not a hyphen), so the echo should work correctly.
8335
# The option is referenced via a variable to avoid confusing sed.
8336
lt_compile=`echo "$ac_compile" | $SED \
8337
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8338
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8339
-e 's:$: $lt_compiler_flag:'`
8340
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8341
(eval "$lt_compile" 2>conftest.err)
8343
cat conftest.err >&5
8344
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8345
if (exit $ac_status) && test -s "$ac_outfile"; then
8346
# The compiler can only warn and ignore the option if not recognized
8347
# So say no if there are warnings other than the usual output.
8348
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8349
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8350
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8351
lt_cv_prog_compiler_pic_works=yes
8357
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8358
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8360
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8361
case $lt_prog_compiler_pic in
8363
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8366
lt_prog_compiler_pic=
8367
lt_prog_compiler_can_build_shared=no
8383
# Check to make sure the static flag actually works.
8385
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8386
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8387
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8388
if ${lt_cv_prog_compiler_static_works+:} false; then :
8389
$as_echo_n "(cached) " >&6
8391
lt_cv_prog_compiler_static_works=no
8392
save_LDFLAGS="$LDFLAGS"
8393
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8394
echo "$lt_simple_link_test_code" > conftest.$ac_ext
8395
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8396
# The linker can only warn and ignore the option if not recognized
8397
# So say no if there are warnings
8398
if test -s conftest.err; then
8399
# Append any errors to the config.log.
8400
cat conftest.err 1>&5
8401
$ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8402
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8403
if diff conftest.exp conftest.er2 >/dev/null; then
8404
lt_cv_prog_compiler_static_works=yes
8407
lt_cv_prog_compiler_static_works=yes
8411
LDFLAGS="$save_LDFLAGS"
8414
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8415
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8417
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8420
lt_prog_compiler_static=
8429
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8430
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8431
if ${lt_cv_prog_compiler_c_o+:} false; then :
8432
$as_echo_n "(cached) " >&6
8434
lt_cv_prog_compiler_c_o=no
8435
$RM -r conftest 2>/dev/null
8439
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8441
lt_compiler_flag="-o out/conftest2.$ac_objext"
8442
# Insert the option either (1) after the last *FLAGS variable, or
8443
# (2) before a word containing "conftest.", or (3) at the end.
8444
# Note that $ac_compile itself does not contain backslashes and begins
8445
# with a dollar sign (not a hyphen), so the echo should work correctly.
8446
lt_compile=`echo "$ac_compile" | $SED \
8447
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8448
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8449
-e 's:$: $lt_compiler_flag:'`
8450
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8451
(eval "$lt_compile" 2>out/conftest.err)
8453
cat out/conftest.err >&5
8454
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455
if (exit $ac_status) && test -s out/conftest2.$ac_objext
8457
# The compiler can only warn and ignore the option if not recognized
8458
# So say no if there are warnings
8459
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8460
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8461
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8462
lt_cv_prog_compiler_c_o=yes
8467
# SGI C++ compiler will create directory out/ii_files/ for
8468
# template instantiation
8469
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8470
$RM out/* && rmdir out
8476
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8477
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8484
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8485
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8486
if ${lt_cv_prog_compiler_c_o+:} false; then :
8487
$as_echo_n "(cached) " >&6
8489
lt_cv_prog_compiler_c_o=no
8490
$RM -r conftest 2>/dev/null
8494
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8496
lt_compiler_flag="-o out/conftest2.$ac_objext"
8497
# Insert the option either (1) after the last *FLAGS variable, or
8498
# (2) before a word containing "conftest.", or (3) at the end.
8499
# Note that $ac_compile itself does not contain backslashes and begins
8500
# with a dollar sign (not a hyphen), so the echo should work correctly.
8501
lt_compile=`echo "$ac_compile" | $SED \
8502
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8503
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8504
-e 's:$: $lt_compiler_flag:'`
8505
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8506
(eval "$lt_compile" 2>out/conftest.err)
8508
cat out/conftest.err >&5
8509
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510
if (exit $ac_status) && test -s out/conftest2.$ac_objext
8512
# The compiler can only warn and ignore the option if not recognized
8513
# So say no if there are warnings
8514
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8515
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8516
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8517
lt_cv_prog_compiler_c_o=yes
8522
# SGI C++ compiler will create directory out/ii_files/ for
8523
# template instantiation
8524
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8525
$RM out/* && rmdir out
8531
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8532
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8537
hard_links="nottested"
8538
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8539
# do not overwrite the value of need_locks provided by the user
8540
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8541
$as_echo_n "checking if we can lock with hard links... " >&6; }
8544
ln conftest.a conftest.b 2>/dev/null && hard_links=no
8546
ln conftest.a conftest.b 2>&5 || hard_links=no
8547
ln conftest.a conftest.b 2>/dev/null && hard_links=no
8548
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8549
$as_echo "$hard_links" >&6; }
8550
if test "$hard_links" = no; then
8551
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8552
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8564
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8565
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8568
allow_undefined_flag=
8569
always_export_symbols=no
8571
archive_expsym_cmds=
8572
compiler_needs_object=no
8573
enable_shared_with_static_runtimes=no
8574
export_dynamic_flag_spec=
8575
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8576
hardcode_automatic=no
8578
hardcode_direct_absolute=no
8579
hardcode_libdir_flag_spec=
8580
hardcode_libdir_separator=
8582
hardcode_shlibpath_var=unsupported
8584
link_all_deplibs=unknown
8587
old_archive_from_new_cmds=
8588
old_archive_from_expsyms_cmds=
8589
thread_safe_flag_spec=
8590
whole_archive_flag_spec=
8591
# include_expsyms should be a list of space-separated symbols to be *always*
8592
# included in the symbol list
8594
# exclude_expsyms can be an extended regexp of symbols to exclude
8595
# it will be wrapped by ` (' and `)$', so one must not match beginning or
8596
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8597
# as well as any symbol that contains `d'.
8598
exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8599
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8600
# platforms (ab)use it in PIC code, but their linkers get confused if
8601
# the symbol is explicitly referenced. Since portable code cannot
8602
# rely on this symbol name, it's probably fine to never include it in
8603
# preloaded symbol tables.
8604
# Exclude shared library initialization/finalization symbols.
8605
extract_expsyms_cmds=
8608
cygwin* | mingw* | pw32* | cegcc*)
8609
# FIXME: the MSVC++ port hasn't been tested in a loooong time
8610
# When not using gcc, we currently assume that we are using
8611
# Microsoft Visual C++.
8612
if test "$GCC" != yes; then
8617
# we just hope/assume this is gcc and not c89 (= MSVC++)
8623
linux* | k*bsd*-gnu | gnu*)
8630
# On some targets, GNU ld is compatible enough with the native linker
8631
# that we're better off using the native interface for both.
8632
lt_use_gnu_ld_interface=no
8633
if test "$with_gnu_ld" = yes; then
8636
# The AIX port of GNU ld has always aspired to compatibility
8637
# with the native linker. However, as the warning in the GNU ld
8638
# block says, versions before 2.19.5* couldn't really create working
8639
# shared libraries, regardless of the interface used.
8640
case `$LD -v 2>&1` in
8641
*\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8642
*\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8643
*\ \(GNU\ Binutils\)\ [3-9]*) ;;
8645
lt_use_gnu_ld_interface=yes
8650
lt_use_gnu_ld_interface=yes
8655
if test "$lt_use_gnu_ld_interface" = yes; then
8656
# If archive_cmds runs LD, not CC, wlarc should be empty
8659
# Set some defaults for GNU ld with shared library support. These
8660
# are reset later if shared libraries are not supported. Putting them
8661
# here allows them to be overridden if necessary.
8662
runpath_var=LD_RUN_PATH
8663
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8664
export_dynamic_flag_spec='${wl}--export-dynamic'
8665
# ancient GNU ld didn't support --whole-archive et. al.
8666
if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8667
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8669
whole_archive_flag_spec=
8671
supports_anon_versioning=no
8672
case `$LD -v 2>&1` in
8673
*GNU\ gold*) supports_anon_versioning=yes ;;
8674
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8675
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8676
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8677
*\ 2.11.*) ;; # other 2.11 versions
8678
*) supports_anon_versioning=yes ;;
8681
# See if GNU ld supports shared libraries.
8684
# On AIX/PPC, the GNU linker is very broken
8685
if test "$host_cpu" != ia64; then
8689
*** Warning: the GNU linker, at least up to release 2.19, is reported
8690
*** to be unable to reliably create shared libraries on AIX.
8691
*** Therefore, libtool is disabling shared libraries support. If you
8692
*** really care for shared libraries, you may want to install binutils
8693
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
8694
*** You will then need to restart the configuration process.
8703
# see comment about AmigaOS4 .so support
8704
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8705
archive_expsym_cmds=''
8708
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)'
8709
hardcode_libdir_flag_spec='-L$libdir'
8710
hardcode_minus_L=yes
8716
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8717
allow_undefined_flag=unsupported
8718
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8719
# support --undefined. This deserves some investigation. FIXME
8720
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8726
cygwin* | mingw* | pw32* | cegcc*)
8727
# _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8728
# as there is no search path for DLLs.
8729
hardcode_libdir_flag_spec='-L$libdir'
8730
export_dynamic_flag_spec='${wl}--export-all-symbols'
8731
allow_undefined_flag=unsupported
8732
always_export_symbols=no
8733
enable_shared_with_static_runtimes=yes
8734
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
8735
exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8737
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8738
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8739
# If the export-symbols file already is a .def file (1st line
8740
# is EXPORTS), use it as is; otherwise, prepend...
8741
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8742
cp $export_symbols $output_objdir/$soname.def;
8744
echo EXPORTS > $output_objdir/$soname.def;
8745
cat $export_symbols >> $output_objdir/$soname.def;
8747
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8754
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8755
link_all_deplibs=yes
8760
hardcode_shlibpath_var=no
8761
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8762
export_dynamic_flag_spec='${wl}-E'
8763
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8764
# Instead, shared libraries are loaded at an image base (0x10000000 by
8765
# default) and relocated if they conflict, which is a slow very memory
8766
# consuming and fragmenting process. To avoid this, we pick a random,
8767
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8768
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
8769
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8770
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'
8773
gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
8775
if test "$host_os" = linux-dietlibc; then
8776
case $cc_basename in
8777
diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8780
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8781
&& test "$tmp_diet" = no
8783
tmp_addflag=' $pic_flag'
8784
tmp_sharedflag='-shared'
8785
case $cc_basename,$host_cpu in
8786
pgcc*) # Portland Group C compiler
8787
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8788
tmp_addflag=' $pic_flag'
8790
pgf77* | pgf90* | pgf95* | pgfortran*)
8791
# Portland Group f77 and f90 compilers
8792
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8793
tmp_addflag=' $pic_flag -Mnomain' ;;
8794
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8795
tmp_addflag=' -i_dynamic' ;;
8796
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8797
tmp_addflag=' -i_dynamic -nofor_main' ;;
8798
ifc* | ifort*) # Intel Fortran compiler
8799
tmp_addflag=' -nofor_main' ;;
8800
lf95*) # Lahey Fortran 8.1
8801
whole_archive_flag_spec=
8802
tmp_sharedflag='--shared' ;;
8803
xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8804
tmp_sharedflag='-qmkshrobj'
8806
nvcc*) # Cuda Compiler Driver 2.2
8807
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8808
compiler_needs_object=yes
8811
case `$CC -V 2>&1 | sed 5q` in
8812
*Sun\ C*) # Sun C 5.9
8813
whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
8814
compiler_needs_object=yes
8815
tmp_sharedflag='-G' ;;
8816
*Sun\ F*) # Sun Fortran 8.3
8817
tmp_sharedflag='-G' ;;
8819
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8821
if test "x$supports_anon_versioning" = xyes; then
8822
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8823
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8824
echo "local: *; };" >> $output_objdir/$libname.ver~
8825
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8828
case $cc_basename in
8829
xlf* | bgf* | bgxlf* | mpixlf*)
8830
# IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8831
whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8832
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8833
archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
8834
if test "x$supports_anon_versioning" = xyes; then
8835
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8836
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8837
echo "local: *; };" >> $output_objdir/$libname.ver~
8838
$LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8847
netbsd* | netbsdelf*-gnu)
8848
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8849
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8852
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8853
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8858
if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8862
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8863
*** create shared libraries on Solaris systems. Therefore, libtool
8864
*** is disabling shared libraries support. We urge you to upgrade GNU
8865
*** binutils to release 2.9.1 or newer. Another option is to modify
8866
*** your PATH or compiler configuration so that the native linker is
8867
*** used, and then restart.
8870
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8871
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8872
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8878
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8879
case `$LD -v 2>&1` in
8880
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8884
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8885
*** reliably create shared libraries on SCO systems. Therefore, libtool
8886
*** is disabling shared libraries support. We urge you to upgrade GNU
8887
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8888
*** your PATH or compiler configuration so that the native linker is
8889
*** used, and then restart.
8894
# For security reasons, it is highly recommended that you always
8895
# use absolute paths for naming shared libraries, and exclude the
8896
# DT_RUNPATH tag from executables and libraries. But doing so
8897
# requires that you compile everything twice, which is a pain.
8898
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8899
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8900
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8901
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8910
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8913
hardcode_shlibpath_var=no
8917
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8918
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8919
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8926
if test "$ld_shlibs" = no; then
8928
hardcode_libdir_flag_spec=
8929
export_dynamic_flag_spec=
8930
whole_archive_flag_spec=
8933
# PORTME fill in a description of your system's linker (not GNU ld)
8936
allow_undefined_flag=unsupported
8937
always_export_symbols=yes
8938
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'
8939
# Note: this linker hardcodes the directories in LIBPATH if there
8940
# are no directories specified by -L.
8941
hardcode_minus_L=yes
8942
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8943
# Neither direct hardcoding nor static linking is supported with a
8945
hardcode_direct=unsupported
8950
if test "$host_cpu" = ia64; then
8951
# On IA64, the linker does run time linking by default, so we don't
8952
# have to do anything special.
8953
aix_use_runtimelinking=no
8954
exp_sym_flag='-Bexport'
8957
# If we're using GNU nm, then we don't want the "-C" option.
8958
# -C means demangle to AIX nm, but means don't demangle with GNU nm
8959
# Also, AIX nm treats weak defined symbols like other global
8960
# defined symbols, whereas GNU nm marks them as "W".
8961
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8962
export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
8964
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'
8966
aix_use_runtimelinking=no
8968
# Test if we are trying to use run time linking or normal
8969
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8970
# need to do runtime linking.
8971
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8972
for ld_flag in $LDFLAGS; do
8973
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8974
aix_use_runtimelinking=yes
8981
exp_sym_flag='-bexport'
8982
no_entry_flag='-bnoentry'
8985
# When large executables or shared objects are built, AIX ld can
8986
# have problems creating the table of contents. If linking a library
8987
# or program results in "error TOC overflow" add -mminimal-toc to
8988
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8989
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8993
hardcode_direct_absolute=yes
8994
hardcode_libdir_separator=':'
8995
link_all_deplibs=yes
8996
file_list_spec='${wl}-f,'
8998
if test "$GCC" = yes; then
8999
case $host_os in aix4.[012]|aix4.[012].*)
9000
# We only want to do this on AIX 4.2 and lower, the check
9001
# below for broken collect2 doesn't work under 4.3+
9002
collect2name=`${CC} -print-prog-name=collect2`
9003
if test -f "$collect2name" &&
9004
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9006
# We have reworked collect2
9009
# We have old collect2
9010
hardcode_direct=unsupported
9011
# It fails to find uninstalled libraries when the uninstalled
9012
# path is not listed in the libpath. Setting hardcode_minus_L
9013
# to unsupported forces relinking
9014
hardcode_minus_L=yes
9015
hardcode_libdir_flag_spec='-L$libdir'
9016
hardcode_libdir_separator=
9020
shared_flag='-shared'
9021
if test "$aix_use_runtimelinking" = yes; then
9022
shared_flag="$shared_flag "'${wl}-G'
9027
if test "$host_cpu" = ia64; then
9028
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9029
# chokes on -Wl,-G. The following line is correct:
9032
if test "$aix_use_runtimelinking" = yes; then
9033
shared_flag='${wl}-G'
9035
shared_flag='${wl}-bM:SRE'
9040
export_dynamic_flag_spec='${wl}-bexpall'
9041
# It seems that -bexpall does not export symbols beginning with
9042
# underscore (_), so it is better to generate a list of symbols to export.
9043
always_export_symbols=yes
9044
if test "$aix_use_runtimelinking" = yes; then
9045
# Warning - without using the other runtime loading flags (-brtl),
9046
# -berok will link without error, but may produce a broken library.
9047
allow_undefined_flag='-berok'
9048
# Determine the default libpath from the value encoded in an
9050
if test "${lt_cv_aix_libpath+set}" = set; then
9051
aix_libpath=$lt_cv_aix_libpath
9053
if ${lt_cv_aix_libpath_+:} false; then :
9054
$as_echo_n "(cached) " >&6
9056
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9057
/* end confdefs.h. */
9067
if ac_fn_c_try_link "$LINENO"; then :
9069
lt_aix_libpath_sed='
9070
/Import File Strings/,/^$/ {
9072
s/^0 *\([^ ]*\) *$/\1/
9076
lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9077
# Check for a 64-bit object if we didn't find anything.
9078
if test -z "$lt_cv_aix_libpath_"; then
9079
lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9082
rm -f core conftest.err conftest.$ac_objext \
9083
conftest$ac_exeext conftest.$ac_ext
9084
if test -z "$lt_cv_aix_libpath_"; then
9085
lt_cv_aix_libpath_="/usr/lib:/lib"
9090
aix_libpath=$lt_cv_aix_libpath_
9093
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9094
archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9096
if test "$host_cpu" = ia64; then
9097
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9098
allow_undefined_flag="-z nodefs"
9099
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"
9101
# Determine the default libpath from the value encoded in an
9103
if test "${lt_cv_aix_libpath+set}" = set; then
9104
aix_libpath=$lt_cv_aix_libpath
9106
if ${lt_cv_aix_libpath_+:} false; then :
9107
$as_echo_n "(cached) " >&6
9109
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9110
/* end confdefs.h. */
9120
if ac_fn_c_try_link "$LINENO"; then :
9122
lt_aix_libpath_sed='
9123
/Import File Strings/,/^$/ {
9125
s/^0 *\([^ ]*\) *$/\1/
9129
lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9130
# Check for a 64-bit object if we didn't find anything.
9131
if test -z "$lt_cv_aix_libpath_"; then
9132
lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9135
rm -f core conftest.err conftest.$ac_objext \
9136
conftest$ac_exeext conftest.$ac_ext
9137
if test -z "$lt_cv_aix_libpath_"; then
9138
lt_cv_aix_libpath_="/usr/lib:/lib"
9143
aix_libpath=$lt_cv_aix_libpath_
9146
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9147
# Warning - without using the other run time loading flags,
9148
# -berok will link without error, but may produce a broken library.
9149
no_undefined_flag=' ${wl}-bernotok'
9150
allow_undefined_flag=' ${wl}-berok'
9151
if test "$with_gnu_ld" = yes; then
9152
# We only use this code for GNU lds that support --whole-archive.
9153
whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9155
# Exported symbols can be pulled into shared objects from archives
9156
whole_archive_flag_spec='$convenience'
9158
archive_cmds_need_lc=yes
9159
# This is similar to how AIX traditionally builds its shared libraries.
9160
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'
9168
# see comment about AmigaOS4 .so support
9169
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9170
archive_expsym_cmds=''
9173
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)'
9174
hardcode_libdir_flag_spec='-L$libdir'
9175
hardcode_minus_L=yes
9181
export_dynamic_flag_spec=-rdynamic
9184
cygwin* | mingw* | pw32* | cegcc*)
9185
# When not using gcc, we currently assume that we are using
9186
# Microsoft Visual C++.
9187
# hardcode_libdir_flag_spec is actually meaningless, as there is
9188
# no search path for DLLs.
9189
case $cc_basename in
9192
hardcode_libdir_flag_spec=' '
9193
allow_undefined_flag=unsupported
9194
always_export_symbols=yes
9196
# Tell ltmain to make .lib files, not .a files.
9198
# Tell ltmain to make .dll files, not .so files.
9200
# FIXME: Setting linknames here is a bad hack.
9201
archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9202
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9203
sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9205
sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9207
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9209
# The linker will not automatically build a static lib if we build a DLL.
9210
# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9211
enable_shared_with_static_runtimes=yes
9212
exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9213
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9215
old_postinstall_cmds='chmod 644 $oldlib'
9216
postlink_cmds='lt_outputfile="@OUTPUT@"~
9217
lt_tool_outputfile="@TOOL_OUTPUT@"~
9218
case $lt_outputfile in
9221
lt_outputfile="$lt_outputfile.exe"
9222
lt_tool_outputfile="$lt_tool_outputfile.exe"
9225
if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9226
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9227
$RM "$lt_outputfile.manifest";
9231
# Assume MSVC wrapper
9232
hardcode_libdir_flag_spec=' '
9233
allow_undefined_flag=unsupported
9234
# Tell ltmain to make .lib files, not .a files.
9236
# Tell ltmain to make .dll files, not .so files.
9238
# FIXME: Setting linknames here is a bad hack.
9239
archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9240
# The linker will automatically build a .lib file if we build a DLL.
9241
old_archive_from_new_cmds='true'
9242
# FIXME: Should let the user specify the lib program.
9243
old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9244
enable_shared_with_static_runtimes=yes
9249
darwin* | rhapsody*)
9252
archive_cmds_need_lc=no
9254
hardcode_automatic=yes
9255
hardcode_shlibpath_var=unsupported
9256
if test "$lt_cv_ld_force_load" = "yes"; then
9257
whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9260
whole_archive_flag_spec=''
9262
link_all_deplibs=yes
9263
allow_undefined_flag="$_lt_dar_allow_undefined"
9264
case $cc_basename in
9265
ifort*) _lt_dar_can_shared=yes ;;
9266
*) _lt_dar_can_shared=$GCC ;;
9268
if test "$_lt_dar_can_shared" = "yes"; then
9269
output_verbose_link_cmd=func_echo_all
9270
archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9271
module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9272
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}"
9273
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}"
9282
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9283
hardcode_libdir_flag_spec='-L$libdir'
9284
hardcode_shlibpath_var=no
9287
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9288
# support. Future versions do this automatically, but an explicit c++rt0.o
9289
# does not break anything, and helps significantly (at the cost of a little
9292
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9293
hardcode_libdir_flag_spec='-R$libdir'
9295
hardcode_shlibpath_var=no
9298
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
9300
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9302
hardcode_minus_L=yes
9303
hardcode_shlibpath_var=no
9306
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9307
freebsd* | dragonfly*)
9308
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9309
hardcode_libdir_flag_spec='-R$libdir'
9311
hardcode_shlibpath_var=no
9315
if test "$GCC" = yes; then
9316
archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9318
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'
9320
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9321
hardcode_libdir_separator=:
9324
# hardcode_minus_L: Not really in the search PATH,
9325
# but as the default location of the library.
9326
hardcode_minus_L=yes
9327
export_dynamic_flag_spec='${wl}-E'
9331
if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9332
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9334
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9336
if test "$with_gnu_ld" = no; then
9337
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9338
hardcode_libdir_separator=:
9340
hardcode_direct_absolute=yes
9341
export_dynamic_flag_spec='${wl}-E'
9342
# hardcode_minus_L: Not really in the search PATH,
9343
# but as the default location of the library.
9344
hardcode_minus_L=yes
9349
if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9352
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9355
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9358
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9364
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9367
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9371
# Older versions of the 11.00 compiler do not understand -b yet
9372
# (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9373
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9374
$as_echo_n "checking if $CC understands -b... " >&6; }
9375
if ${lt_cv_prog_compiler__b+:} false; then :
9376
$as_echo_n "(cached) " >&6
9378
lt_cv_prog_compiler__b=no
9379
save_LDFLAGS="$LDFLAGS"
9380
LDFLAGS="$LDFLAGS -b"
9381
echo "$lt_simple_link_test_code" > conftest.$ac_ext
9382
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9383
# The linker can only warn and ignore the option if not recognized
9384
# So say no if there are warnings
9385
if test -s conftest.err; then
9386
# Append any errors to the config.log.
9387
cat conftest.err 1>&5
9388
$ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9389
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9390
if diff conftest.exp conftest.er2 >/dev/null; then
9391
lt_cv_prog_compiler__b=yes
9394
lt_cv_prog_compiler__b=yes
9398
LDFLAGS="$save_LDFLAGS"
9401
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9402
$as_echo "$lt_cv_prog_compiler__b" >&6; }
9404
if test x"$lt_cv_prog_compiler__b" = xyes; then
9405
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9407
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9413
if test "$with_gnu_ld" = no; then
9414
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9415
hardcode_libdir_separator=:
9420
hardcode_shlibpath_var=no
9424
hardcode_direct_absolute=yes
9425
export_dynamic_flag_spec='${wl}-E'
9427
# hardcode_minus_L: Not really in the search PATH,
9428
# but as the default location of the library.
9429
hardcode_minus_L=yes
9435
irix5* | irix6* | nonstopux*)
9436
if test "$GCC" = yes; then
9437
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9438
# Try to use the -exported_symbol ld option, if it does not
9439
# work, assume that -exports_file does not work either and
9440
# implicitly export all symbols.
9441
# This should be the same for all languages, so no per-tag cache variable.
9442
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9443
$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9444
if ${lt_cv_irix_exported_symbol+:} false; then :
9445
$as_echo_n "(cached) " >&6
9447
save_LDFLAGS="$LDFLAGS"
9448
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9449
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9450
/* end confdefs.h. */
9451
int foo (void) { return 0; }
9453
if ac_fn_c_try_link "$LINENO"; then :
9454
lt_cv_irix_exported_symbol=yes
9456
lt_cv_irix_exported_symbol=no
9458
rm -f core conftest.err conftest.$ac_objext \
9459
conftest$ac_exeext conftest.$ac_ext
9460
LDFLAGS="$save_LDFLAGS"
9462
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9463
$as_echo "$lt_cv_irix_exported_symbol" >&6; }
9464
if test "$lt_cv_irix_exported_symbol" = yes; then
9465
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9468
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9469
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9471
archive_cmds_need_lc='no'
9472
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9473
hardcode_libdir_separator=:
9475
link_all_deplibs=yes
9478
netbsd* | netbsdelf*-gnu)
9479
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9480
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9482
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9484
hardcode_libdir_flag_spec='-R$libdir'
9486
hardcode_shlibpath_var=no
9490
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9492
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9493
hardcode_libdir_separator=:
9494
hardcode_shlibpath_var=no
9501
if test -f /usr/libexec/ld.so; then
9503
hardcode_shlibpath_var=no
9504
hardcode_direct_absolute=yes
9505
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9506
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9507
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9508
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9509
export_dynamic_flag_spec='${wl}-E'
9512
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9513
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9514
hardcode_libdir_flag_spec='-R$libdir'
9517
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9518
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9528
hardcode_libdir_flag_spec='-L$libdir'
9529
hardcode_minus_L=yes
9530
allow_undefined_flag=unsupported
9531
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'
9532
old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9536
if test "$GCC" = yes; then
9537
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9538
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9540
allow_undefined_flag=' -expect_unresolved \*'
9541
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9543
archive_cmds_need_lc='no'
9544
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9545
hardcode_libdir_separator=:
9548
osf4* | osf5*) # as osf3* with the addition of -msym flag
9549
if test "$GCC" = yes; then
9550
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9551
archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9552
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9554
allow_undefined_flag=' -expect_unresolved \*'
9555
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9556
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~
9557
$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9559
# Both c and cxx compiler support -rpath directly
9560
hardcode_libdir_flag_spec='-rpath $libdir'
9562
archive_cmds_need_lc='no'
9563
hardcode_libdir_separator=:
9567
no_undefined_flag=' -z defs'
9568
if test "$GCC" = yes; then
9570
archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9571
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9572
$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9574
case `$CC -V 2>&1` in
9577
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9578
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9579
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9583
archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9584
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9585
$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9589
hardcode_libdir_flag_spec='-R$libdir'
9590
hardcode_shlibpath_var=no
9592
solaris2.[0-5] | solaris2.[0-5].*) ;;
9594
# The compiler driver will combine and reorder linker options,
9595
# but understands `-z linker_flag'. GCC discards it without `$wl',
9596
# but is careful enough not to reorder.
9597
# Supported since Solaris 2.6 (maybe 2.5.1?)
9598
if test "$GCC" = yes; then
9599
whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9601
whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9605
link_all_deplibs=yes
9609
if test "x$host_vendor" = xsequent; then
9610
# Use $CC to link under sequent, because it throws in some extra .o
9611
# files that make .init and .fini sections work.
9612
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9614
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9616
hardcode_libdir_flag_spec='-L$libdir'
9618
hardcode_minus_L=yes
9619
hardcode_shlibpath_var=no
9623
case $host_vendor in
9625
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9626
hardcode_direct=yes # is this really true???
9629
## LD is ld it makes a PLAMLIB
9630
## CC just makes a GrossModule.
9631
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9632
reload_cmds='$CC -r -o $output$reload_objs'
9636
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9637
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9640
runpath_var='LD_RUN_PATH'
9641
hardcode_shlibpath_var=no
9645
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9646
hardcode_shlibpath_var=no
9647
export_dynamic_flag_spec='-Bexport'
9651
if test -d /usr/nec; then
9652
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9653
hardcode_shlibpath_var=no
9654
runpath_var=LD_RUN_PATH
9655
hardcode_runpath_var=yes
9660
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9661
no_undefined_flag='${wl}-z,text'
9662
archive_cmds_need_lc=no
9663
hardcode_shlibpath_var=no
9664
runpath_var='LD_RUN_PATH'
9666
if test "$GCC" = yes; then
9667
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9668
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9670
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9671
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9675
sysv5* | sco3.2v5* | sco5v6*)
9676
# Note: We can NOT use -z defs as we might desire, because we do not
9677
# link with -lc, and that would cause any symbols used from libc to
9678
# always be unresolved, which means just about no library would
9679
# ever link correctly. If we're not using GNU ld we use -z text
9680
# though, which does catch some bad symbols but isn't as heavy-handed
9682
no_undefined_flag='${wl}-z,text'
9683
allow_undefined_flag='${wl}-z,nodefs'
9684
archive_cmds_need_lc=no
9685
hardcode_shlibpath_var=no
9686
hardcode_libdir_flag_spec='${wl}-R,$libdir'
9687
hardcode_libdir_separator=':'
9688
link_all_deplibs=yes
9689
export_dynamic_flag_spec='${wl}-Bexport'
9690
runpath_var='LD_RUN_PATH'
9692
if test "$GCC" = yes; then
9693
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9694
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9696
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9697
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
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
9712
if test x$host_vendor = xsni; then
9714
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9715
export_dynamic_flag_spec='${wl}-Blargedynsym'
9721
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
9722
$as_echo "$ld_shlibs" >&6; }
9723
test "$ld_shlibs" = no && can_build_shared=no
9725
with_gnu_ld=$with_gnu_ld
9742
# Do we need to explicitly link libc?
9744
case "x$archive_cmds_need_lc" in
9746
# Assume -lc should be added
9747
archive_cmds_need_lc=yes
9749
if test "$enable_shared" = yes && test "$GCC" = yes; then
9750
case $archive_cmds in
9752
# FIXME: we may have to deal with multi-command sequences.
9755
# Test whether the compiler implicitly links with -lc since on some
9756
# systems, -lgcc has to come before -lc. If gcc already passes -lc
9757
# to ld, don't add -lc before -lgcc.
9758
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
9759
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9760
if ${lt_cv_archive_cmds_need_lc+:} false; then :
9761
$as_echo_n "(cached) " >&6
9764
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9766
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9767
(eval $ac_compile) 2>&5
9769
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9770
test $ac_status = 0; } 2>conftest.err; then
9773
libobjs=conftest.$ac_objext
9775
wl=$lt_prog_compiler_wl
9776
pic_flag=$lt_prog_compiler_pic
9782
lt_save_allow_undefined_flag=$allow_undefined_flag
9783
allow_undefined_flag=
9784
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9785
(eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9787
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9788
test $ac_status = 0; }
9790
lt_cv_archive_cmds_need_lc=no
9792
lt_cv_archive_cmds_need_lc=yes
9794
allow_undefined_flag=$lt_save_allow_undefined_flag
9796
cat conftest.err 1>&5
9801
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
9802
$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
9803
archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
9961
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9962
$as_echo_n "checking dynamic linker characteristics... " >&6; }
9964
if test "$GCC" = yes; then
9966
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9967
*) lt_awk_arg="/^libraries:/" ;;
9970
mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
9971
*) lt_sed_strip_eq="s,=/,/,g" ;;
9973
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
9974
case $lt_search_path_spec in
9976
# if the path contains ";" then we assume it to be the separator
9977
# otherwise default to the standard path separator (i.e. ":") - it is
9978
# assumed that no part of a normal pathname contains ";" but that should
9979
# okay in the real world where ";" in dirpaths is itself problematic.
9980
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
9983
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
9986
# Ok, now we have the path, separated by spaces, we can step through it
9987
# and add multilib dir if necessary.
9988
lt_tmp_lt_search_path_spec=
9989
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9990
for lt_sys_path in $lt_search_path_spec; do
9991
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9992
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9994
test -d "$lt_sys_path" && \
9995
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9998
lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
9999
BEGIN {RS=" "; FS="/|\n";} {
10002
for (lt_i = NF; lt_i > 0; lt_i--) {
10003
if ($lt_i != "" && $lt_i != ".") {
10004
if ($lt_i == "..") {
10007
if (lt_count == 0) {
10008
lt_foo="/" $lt_i lt_foo;
10015
if (lt_foo != "") { lt_freq[lt_foo]++; }
10016
if (lt_freq[lt_foo] == 1) { print lt_foo; }
10018
# AWK program above erroneously prepends '/' to C:/dos/paths
10021
mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10022
$SED 's,/\([A-Za-z]:\),\1,g'` ;;
10024
sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10026
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10028
library_names_spec=
10029
libname_spec='lib$name'
10033
postuninstall_cmds=
10037
shlibpath_overrides_runpath=unknown
10039
dynamic_linker="$host_os ld.so"
10040
sys_lib_dlsearch_path_spec="/lib /usr/lib"
10041
need_lib_prefix=unknown
10042
hardcode_into_libs=no
10044
# when you set need_version to no, make sure it does not cause -set_version
10045
# flags to be left without arguments
10046
need_version=unknown
10050
version_type=linux # correct to gnu/linux during the next big refactor
10051
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10052
shlibpath_var=LIBPATH
10054
# AIX 3 has no versioning support, so we append a major version to the name.
10055
soname_spec='${libname}${release}${shared_ext}$major'
10059
version_type=linux # correct to gnu/linux during the next big refactor
10062
hardcode_into_libs=yes
10063
if test "$host_cpu" = ia64; then
10064
# AIX 5 supports IA64
10065
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10066
shlibpath_var=LD_LIBRARY_PATH
10068
# With GCC up to 2.95.x, collect2 would create an import file
10069
# for dependence libraries. The import file would start with
10070
# the line `#! .'. This would cause the generated library to
10071
# depend on `.', always an invalid library. This was fixed in
10072
# development snapshots of GCC prior to 3.0.
10074
aix4 | aix4.[01] | aix4.[01].*)
10075
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10077
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10080
can_build_shared=no
10084
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10085
# soname into executable. Probably we can add versioning support to
10086
# collect2, so additional links can be useful in future.
10087
if test "$aix_use_runtimelinking" = yes; then
10088
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
10089
# instead of lib<name>.a to let people know that these are not
10090
# typical AIX shared libraries.
10091
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10093
# We preserve .a as extension for shared libraries through AIX4.2
10094
# and later when we are not doing run time linking.
10095
library_names_spec='${libname}${release}.a $libname.a'
10096
soname_spec='${libname}${release}${shared_ext}$major'
10098
shlibpath_var=LIBPATH
10105
# Since July 2007 AmigaOS4 officially supports .so libraries.
10106
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10107
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10110
library_names_spec='$libname.ixlibrary $libname.a'
10111
# Create ${libname}_ixlibrary.a entries in /sys/libs.
10112
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10118
library_names_spec='${libname}${shared_ext}'
10119
dynamic_linker="$host_os ld.so"
10120
shlibpath_var=LIBRARY_PATH
10124
version_type=linux # correct to gnu/linux during the next big refactor
10126
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10127
soname_spec='${libname}${release}${shared_ext}$major'
10128
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10129
shlibpath_var=LD_LIBRARY_PATH
10130
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10131
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10132
# the default ld.so.conf also contains /usr/contrib/lib and
10133
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10134
# libtool to hard-code these into programs
10137
cygwin* | mingw* | pw32* | cegcc*)
10138
version_type=windows
10143
case $GCC,$cc_basename in
10146
library_names_spec='$libname.dll.a'
10147
# DLL is installed to $(libdir)/../bin by postinstall_cmds
10148
postinstall_cmds='base_file=`basename \${file}`~
10149
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10150
dldir=$destdir/`dirname \$dlpath`~
10151
test -d \$dldir || mkdir -p \$dldir~
10152
$install_prog $dir/$dlname \$dldir/$dlname~
10153
chmod a+x \$dldir/$dlname~
10154
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10155
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10157
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10158
dlpath=$dir/\$dldll~
10160
shlibpath_overrides_runpath=yes
10164
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
10165
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10167
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10170
# MinGW DLLs use traditional 'lib' prefix
10171
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10174
# pw32 DLLs use 'pw' prefix rather than 'lib'
10175
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10178
dynamic_linker='Win32 ld.exe'
10183
libname_spec='$name'
10184
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10185
library_names_spec='${libname}.dll.lib'
10189
sys_lib_search_path_spec=
10192
for lt_path in $LIB
10195
# Let DOS variable expansion print the short 8.3 style file name.
10196
lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10197
sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10200
# Convert to MSYS style.
10201
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10204
# Convert to unix form, then to dos form, then back to unix form
10205
# but this time dos style (no spaces!) so that the unix form looks
10206
# like /cygdrive/c/PROGRA~1:/cygdr...
10207
sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10208
sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10209
sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10212
sys_lib_search_path_spec="$LIB"
10213
if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10214
# It is most probably a Windows format PATH.
10215
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10217
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10219
# FIXME: find the short name or the path components, as spaces are
10220
# common. (e.g. "Program Files" -> "PROGRA~1")
10224
# DLL is installed to $(libdir)/../bin by postinstall_cmds
10225
postinstall_cmds='base_file=`basename \${file}`~
10226
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10227
dldir=$destdir/`dirname \$dlpath`~
10228
test -d \$dldir || mkdir -p \$dldir~
10229
$install_prog $dir/$dlname \$dldir/$dlname'
10230
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10231
dlpath=$dir/\$dldll~
10233
shlibpath_overrides_runpath=yes
10234
dynamic_linker='Win32 link.exe'
10238
# Assume MSVC wrapper
10239
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10240
dynamic_linker='Win32 ld.exe'
10243
# FIXME: first we should search . and the directory the executable is in
10247
darwin* | rhapsody*)
10248
dynamic_linker="$host_os dyld"
10249
version_type=darwin
10252
library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10253
soname_spec='${libname}${release}${major}$shared_ext'
10254
shlibpath_overrides_runpath=yes
10255
shlibpath_var=DYLD_LIBRARY_PATH
10256
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10258
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10259
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10263
version_type=linux # correct to gnu/linux during the next big refactor
10266
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10267
soname_spec='${libname}${release}${shared_ext}$major'
10268
shlibpath_var=LD_LIBRARY_PATH
10271
freebsd* | dragonfly*)
10272
# DragonFly does not have aout. When/if they implement a new
10273
# versioning mechanism, adjust this.
10274
if test -x /usr/bin/objformat; then
10275
objformat=`/usr/bin/objformat`
10278
freebsd[23].*) objformat=aout ;;
10279
*) objformat=elf ;;
10282
version_type=freebsd-$objformat
10283
case $version_type in
10285
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10290
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10294
shlibpath_var=LD_LIBRARY_PATH
10297
shlibpath_overrides_runpath=yes
10299
freebsd3.[01]* | freebsdelf3.[01]*)
10300
shlibpath_overrides_runpath=yes
10301
hardcode_into_libs=yes
10303
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10304
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10305
shlibpath_overrides_runpath=no
10306
hardcode_into_libs=yes
10308
*) # from 4.6 on, and DragonFly
10309
shlibpath_overrides_runpath=yes
10310
hardcode_into_libs=yes
10316
version_type=linux # correct to gnu/linux during the next big refactor
10319
dynamic_linker="$host_os runtime_loader"
10320
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10321
soname_spec='${libname}${release}${shared_ext}$major'
10322
shlibpath_var=LIBRARY_PATH
10323
shlibpath_overrides_runpath=yes
10324
sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10325
hardcode_into_libs=yes
10328
hpux9* | hpux10* | hpux11*)
10329
# Give a soname corresponding to the major version so that dld.sl refuses to
10330
# link against other versions.
10337
hardcode_into_libs=yes
10338
dynamic_linker="$host_os dld.so"
10339
shlibpath_var=LD_LIBRARY_PATH
10340
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10341
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10342
soname_spec='${libname}${release}${shared_ext}$major'
10343
if test "X$HPUX_IA64_MODE" = X32; then
10344
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10346
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10348
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10352
hardcode_into_libs=yes
10353
dynamic_linker="$host_os dld.sl"
10354
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10355
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10356
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10357
soname_spec='${libname}${release}${shared_ext}$major'
10358
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10359
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10363
dynamic_linker="$host_os dld.sl"
10364
shlibpath_var=SHLIB_PATH
10365
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10366
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10367
soname_spec='${libname}${release}${shared_ext}$major'
10370
# HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10371
postinstall_cmds='chmod 555 $lib'
10372
# or fails outright, so override atomically:
10373
install_override_mode=555
10377
version_type=linux # correct to gnu/linux during the next big refactor
10380
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10381
soname_spec='${libname}${release}${shared_ext}$major'
10382
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10383
shlibpath_var=LD_LIBRARY_PATH
10384
shlibpath_overrides_runpath=no
10385
hardcode_into_libs=yes
10388
irix5* | irix6* | nonstopux*)
10390
nonstopux*) version_type=nonstopux ;;
10392
if test "$lt_cv_prog_gnu_ld" = yes; then
10393
version_type=linux # correct to gnu/linux during the next big refactor
10400
soname_spec='${libname}${release}${shared_ext}$major'
10401
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10403
irix5* | nonstopux*)
10404
libsuff= shlibsuff=
10407
case $LD in # libtool.m4 will add one of these switches to LD
10408
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10409
libsuff= shlibsuff= libmagic=32-bit;;
10410
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10411
libsuff=32 shlibsuff=N32 libmagic=N32;;
10412
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10413
libsuff=64 shlibsuff=64 libmagic=64-bit;;
10414
*) libsuff= shlibsuff= libmagic=never-match;;
10418
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10419
shlibpath_overrides_runpath=no
10420
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10421
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10422
hardcode_into_libs=yes
10425
# No shared lib support for Linux oldld, aout, or coff.
10426
linux*oldld* | linux*aout* | linux*coff*)
10430
# This must be glibc/ELF.
10431
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10432
version_type=linux # correct to gnu/linux during the next big refactor
10435
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10436
soname_spec='${libname}${release}${shared_ext}$major'
10437
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10438
shlibpath_var=LD_LIBRARY_PATH
10439
shlibpath_overrides_runpath=no
10441
# Some binutils ld are patched to set DT_RUNPATH
10442
if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10443
$as_echo_n "(cached) " >&6
10445
lt_cv_shlibpath_overrides_runpath=no
10446
save_LDFLAGS=$LDFLAGS
10447
save_libdir=$libdir
10448
eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10449
LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10450
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10451
/* end confdefs.h. */
10461
if ac_fn_c_try_link "$LINENO"; then :
10462
if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10463
lt_cv_shlibpath_overrides_runpath=yes
10466
rm -f core conftest.err conftest.$ac_objext \
10467
conftest$ac_exeext conftest.$ac_ext
10468
LDFLAGS=$save_LDFLAGS
10469
libdir=$save_libdir
10473
shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10475
# This implies no fast_install, which is unacceptable.
10476
# Some rework will be needed to allow for fast_install
10477
# before this can be enabled.
10478
hardcode_into_libs=yes
10480
# Append ld.so.conf contents to the search path
10481
if test -f /etc/ld.so.conf; then
10482
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10483
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10486
# We used to test for /lib/ld.so.1 and disable shared libraries on
10487
# powerpc, because MkLinux only supported shared libraries with the
10488
# GNU dynamic linker. Since this was broken with cross compilers,
10489
# most powerpc-linux boxes support dynamic linking these days and
10490
# people can always --disable-shared, the test was removed, and we
10491
# assume the GNU/Linux dynamic linker is in use.
10492
dynamic_linker='GNU/Linux ld.so'
10499
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10500
soname_spec='${libname}${release}${shared_ext}$major'
10501
shlibpath_var=LD_LIBRARY_PATH
10502
shlibpath_overrides_runpath=no
10503
hardcode_into_libs=yes
10504
dynamic_linker='NetBSD ld.elf_so'
10511
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10512
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10513
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10514
dynamic_linker='NetBSD (a.out) ld.so'
10516
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10517
soname_spec='${libname}${release}${shared_ext}$major'
10518
dynamic_linker='NetBSD ld.elf_so'
10520
shlibpath_var=LD_LIBRARY_PATH
10521
shlibpath_overrides_runpath=yes
10522
hardcode_into_libs=yes
10526
version_type=linux # correct to gnu/linux during the next big refactor
10527
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10528
shlibpath_var=LD_LIBRARY_PATH
10529
shlibpath_overrides_runpath=yes
10536
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10537
soname_spec='${libname}${release}${shared_ext}$major'
10538
shlibpath_var=LD_LIBRARY_PATH
10539
shlibpath_overrides_runpath=no
10540
hardcode_into_libs=yes
10541
dynamic_linker='ldqnx.so'
10546
sys_lib_dlsearch_path_spec="/usr/lib"
10548
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10550
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10551
*) need_version=no ;;
10553
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10554
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10555
shlibpath_var=LD_LIBRARY_PATH
10556
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10558
openbsd2.[89] | openbsd2.[89].*)
10559
shlibpath_overrides_runpath=no
10562
shlibpath_overrides_runpath=yes
10566
shlibpath_overrides_runpath=yes
10571
libname_spec='$name'
10574
library_names_spec='$libname${shared_ext} $libname.a'
10575
dynamic_linker='OS/2 ld.exe'
10576
shlibpath_var=LIBPATH
10579
osf3* | osf4* | osf5*)
10583
soname_spec='${libname}${release}${shared_ext}$major'
10584
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10585
shlibpath_var=LD_LIBRARY_PATH
10586
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10587
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10595
version_type=linux # correct to gnu/linux during the next big refactor
10598
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10599
soname_spec='${libname}${release}${shared_ext}$major'
10600
shlibpath_var=LD_LIBRARY_PATH
10601
shlibpath_overrides_runpath=yes
10602
hardcode_into_libs=yes
10603
# ldd complains unless libraries are executable
10604
postinstall_cmds='chmod +x $lib'
10609
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10610
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10611
shlibpath_var=LD_LIBRARY_PATH
10612
shlibpath_overrides_runpath=yes
10613
if test "$with_gnu_ld" = yes; then
10620
version_type=linux # correct to gnu/linux during the next big refactor
10621
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10622
soname_spec='${libname}${release}${shared_ext}$major'
10623
shlibpath_var=LD_LIBRARY_PATH
10624
case $host_vendor in
10626
shlibpath_overrides_runpath=no
10628
runpath_var=LD_RUN_PATH
10636
shlibpath_overrides_runpath=no
10637
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10643
if test -d /usr/nec ;then
10644
version_type=linux # correct to gnu/linux during the next big refactor
10645
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10646
soname_spec='$libname${shared_ext}.$major'
10647
shlibpath_var=LD_LIBRARY_PATH
10651
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10652
version_type=freebsd-elf
10655
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10656
soname_spec='${libname}${release}${shared_ext}$major'
10657
shlibpath_var=LD_LIBRARY_PATH
10658
shlibpath_overrides_runpath=yes
10659
hardcode_into_libs=yes
10660
if test "$with_gnu_ld" = yes; then
10661
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10663
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10666
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10670
sys_lib_dlsearch_path_spec='/usr/lib'
10674
# TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10675
version_type=linux # correct to gnu/linux during the next big refactor
10678
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10679
shlibpath_var=LD_LIBRARY_PATH
10680
shlibpath_overrides_runpath=no
10681
hardcode_into_libs=yes
10685
version_type=linux # correct to gnu/linux during the next big refactor
10686
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10687
soname_spec='${libname}${release}${shared_ext}$major'
10688
shlibpath_var=LD_LIBRARY_PATH
10695
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10696
$as_echo "$dynamic_linker" >&6; }
10697
test "$dynamic_linker" = no && can_build_shared=no
10699
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10700
if test "$GCC" = yes; then
10701
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10704
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10705
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10707
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10708
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10802
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
10803
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
10805
if test -n "$hardcode_libdir_flag_spec" ||
10806
test -n "$runpath_var" ||
10807
test "X$hardcode_automatic" = "Xyes" ; then
10809
# We can hardcode non-existent directories.
10810
if test "$hardcode_direct" != no &&
10811
# If the only mechanism to avoid hardcoding is shlibpath_var, we
10812
# have to relink, otherwise we might link with an installed library
10813
# when we should be linking with a yet-to-be-installed one
10814
## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10815
test "$hardcode_minus_L" != no; then
10816
# Linking always hardcodes the temporary library directory.
10817
hardcode_action=relink
10819
# We can link without hardcoding, and we can hardcode nonexisting dirs.
10820
hardcode_action=immediate
10823
# We cannot hardcode anything, or else we can only hardcode existing
10825
hardcode_action=unsupported
10827
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
10828
$as_echo "$hardcode_action" >&6; }
10830
if test "$hardcode_action" = relink ||
10831
test "$inherit_rpath" = yes; then
10832
# Fast installation is not supported
10833
enable_fast_install=no
10834
elif test "$shlibpath_overrides_runpath" = yes ||
10835
test "$enable_shared" = no; then
10836
# Fast installation is not necessary
10837
enable_fast_install=needless
10845
if test "x$enable_dlopen" != xyes; then
10846
enable_dlopen=unknown
10847
enable_dlopen_self=unknown
10848
enable_dlopen_self_static=unknown
10855
lt_cv_dlopen="load_add_on"
10857
lt_cv_dlopen_self=yes
10860
mingw* | pw32* | cegcc*)
10861
lt_cv_dlopen="LoadLibrary"
10866
lt_cv_dlopen="dlopen"
10871
# if libdl is installed we need to link against it
10872
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10873
$as_echo_n "checking for dlopen in -ldl... " >&6; }
10874
if ${ac_cv_lib_dl_dlopen+:} false; then :
10875
$as_echo_n "(cached) " >&6
10877
ac_check_lib_save_LIBS=$LIBS
10879
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10880
/* end confdefs.h. */
10882
/* Override any GCC internal prototype to avoid an error.
10883
Use char because int might match the return type of a GCC
10884
builtin and then its argument prototype would still apply. */
10897
if ac_fn_c_try_link "$LINENO"; then :
10898
ac_cv_lib_dl_dlopen=yes
10900
ac_cv_lib_dl_dlopen=no
10902
rm -f core conftest.err conftest.$ac_objext \
10903
conftest$ac_exeext conftest.$ac_ext
10904
LIBS=$ac_check_lib_save_LIBS
10906
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
10907
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10908
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
10909
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10912
lt_cv_dlopen="dyld"
10914
lt_cv_dlopen_self=yes
10921
ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
10922
if test "x$ac_cv_func_shl_load" = xyes; then :
10923
lt_cv_dlopen="shl_load"
10925
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
10926
$as_echo_n "checking for shl_load in -ldld... " >&6; }
10927
if ${ac_cv_lib_dld_shl_load+:} false; then :
10928
$as_echo_n "(cached) " >&6
10930
ac_check_lib_save_LIBS=$LIBS
10932
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10933
/* end confdefs.h. */
10935
/* Override any GCC internal prototype to avoid an error.
10936
Use char because int might match the return type of a GCC
10937
builtin and then its argument prototype would still apply. */
10945
return shl_load ();
10950
if ac_fn_c_try_link "$LINENO"; then :
10951
ac_cv_lib_dld_shl_load=yes
10953
ac_cv_lib_dld_shl_load=no
10955
rm -f core conftest.err conftest.$ac_objext \
10956
conftest$ac_exeext conftest.$ac_ext
10957
LIBS=$ac_check_lib_save_LIBS
10959
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
10960
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10961
if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
10962
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10964
ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
10965
if test "x$ac_cv_func_dlopen" = xyes; then :
10966
lt_cv_dlopen="dlopen"
10968
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
10969
$as_echo_n "checking for dlopen in -ldl... " >&6; }
10970
if ${ac_cv_lib_dl_dlopen+:} false; then :
10971
$as_echo_n "(cached) " >&6
10973
ac_check_lib_save_LIBS=$LIBS
10975
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10976
/* end confdefs.h. */
10978
/* Override any GCC internal prototype to avoid an error.
10979
Use char because int might match the return type of a GCC
10980
builtin and then its argument prototype would still apply. */
10993
if ac_fn_c_try_link "$LINENO"; then :
10994
ac_cv_lib_dl_dlopen=yes
10996
ac_cv_lib_dl_dlopen=no
10998
rm -f core conftest.err conftest.$ac_objext \
10999
conftest$ac_exeext conftest.$ac_ext
11000
LIBS=$ac_check_lib_save_LIBS
11002
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11003
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11004
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11005
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11007
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11008
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11009
if ${ac_cv_lib_svld_dlopen+:} false; then :
11010
$as_echo_n "(cached) " >&6
11012
ac_check_lib_save_LIBS=$LIBS
11013
LIBS="-lsvld $LIBS"
11014
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11015
/* end confdefs.h. */
11017
/* Override any GCC internal prototype to avoid an error.
11018
Use char because int might match the return type of a GCC
11019
builtin and then its argument prototype would still apply. */
11032
if ac_fn_c_try_link "$LINENO"; then :
11033
ac_cv_lib_svld_dlopen=yes
11035
ac_cv_lib_svld_dlopen=no
11037
rm -f core conftest.err conftest.$ac_objext \
11038
conftest$ac_exeext conftest.$ac_ext
11039
LIBS=$ac_check_lib_save_LIBS
11041
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11042
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11043
if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11044
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11046
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11047
$as_echo_n "checking for dld_link in -ldld... " >&6; }
11048
if ${ac_cv_lib_dld_dld_link+:} false; then :
11049
$as_echo_n "(cached) " >&6
11051
ac_check_lib_save_LIBS=$LIBS
11053
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11054
/* end confdefs.h. */
11056
/* Override any GCC internal prototype to avoid an error.
11057
Use char because int might match the return type of a GCC
11058
builtin and then its argument prototype would still apply. */
11066
return dld_link ();
11071
if ac_fn_c_try_link "$LINENO"; then :
11072
ac_cv_lib_dld_dld_link=yes
11074
ac_cv_lib_dld_dld_link=no
11076
rm -f core conftest.err conftest.$ac_objext \
11077
conftest$ac_exeext conftest.$ac_ext
11078
LIBS=$ac_check_lib_save_LIBS
11080
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11081
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11082
if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11083
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11104
if test "x$lt_cv_dlopen" != xno; then
11110
case $lt_cv_dlopen in
11112
save_CPPFLAGS="$CPPFLAGS"
11113
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11115
save_LDFLAGS="$LDFLAGS"
11116
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11119
LIBS="$lt_cv_dlopen_libs $LIBS"
11121
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11122
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11123
if ${lt_cv_dlopen_self+:} false; then :
11124
$as_echo_n "(cached) " >&6
11126
if test "$cross_compiling" = yes; then :
11127
lt_cv_dlopen_self=cross
11129
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11130
lt_status=$lt_dlunknown
11131
cat > conftest.$ac_ext <<_LT_EOF
11132
#line $LINENO "configure"
11133
#include "confdefs.h"
11142
# define LT_DLGLOBAL RTLD_GLOBAL
11145
# define LT_DLGLOBAL DL_GLOBAL
11147
# define LT_DLGLOBAL 0
11151
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11152
find out it does not work in some platform. */
11153
#ifndef LT_DLLAZY_OR_NOW
11155
# define LT_DLLAZY_OR_NOW RTLD_LAZY
11158
# define LT_DLLAZY_OR_NOW DL_LAZY
11161
# define LT_DLLAZY_OR_NOW RTLD_NOW
11164
# define LT_DLLAZY_OR_NOW DL_NOW
11166
# define LT_DLLAZY_OR_NOW 0
11173
/* When -fvisbility=hidden is used, assume the code has been annotated
11174
correspondingly for the symbols needed. */
11175
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11176
int fnord () __attribute__((visibility("default")));
11179
int fnord () { return 42; }
11182
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11183
int status = $lt_dlunknown;
11187
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11190
if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11191
else puts (dlerror ());
11193
/* dlclose (self); */
11201
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11202
(eval $ac_link) 2>&5
11204
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11205
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11206
(./conftest; exit; ) >&5 2>/dev/null
11208
case x$lt_status in
11209
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11210
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11211
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11214
# compilation failed
11215
lt_cv_dlopen_self=no
11222
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11223
$as_echo "$lt_cv_dlopen_self" >&6; }
11225
if test "x$lt_cv_dlopen_self" = xyes; then
11226
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11227
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11228
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11229
if ${lt_cv_dlopen_self_static+:} false; then :
11230
$as_echo_n "(cached) " >&6
11232
if test "$cross_compiling" = yes; then :
11233
lt_cv_dlopen_self_static=cross
11235
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11236
lt_status=$lt_dlunknown
11237
cat > conftest.$ac_ext <<_LT_EOF
11238
#line $LINENO "configure"
11239
#include "confdefs.h"
11248
# define LT_DLGLOBAL RTLD_GLOBAL
11251
# define LT_DLGLOBAL DL_GLOBAL
11253
# define LT_DLGLOBAL 0
11257
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11258
find out it does not work in some platform. */
11259
#ifndef LT_DLLAZY_OR_NOW
11261
# define LT_DLLAZY_OR_NOW RTLD_LAZY
11264
# define LT_DLLAZY_OR_NOW DL_LAZY
11267
# define LT_DLLAZY_OR_NOW RTLD_NOW
11270
# define LT_DLLAZY_OR_NOW DL_NOW
11272
# define LT_DLLAZY_OR_NOW 0
11279
/* When -fvisbility=hidden is used, assume the code has been annotated
11280
correspondingly for the symbols needed. */
11281
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11282
int fnord () __attribute__((visibility("default")));
11285
int fnord () { return 42; }
11288
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11289
int status = $lt_dlunknown;
11293
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11296
if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11297
else puts (dlerror ());
11299
/* dlclose (self); */
11307
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11308
(eval $ac_link) 2>&5
11310
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11311
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11312
(./conftest; exit; ) >&5 2>/dev/null
11314
case x$lt_status in
11315
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11316
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11317
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11320
# compilation failed
11321
lt_cv_dlopen_self_static=no
11328
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11329
$as_echo "$lt_cv_dlopen_self_static" >&6; }
11332
CPPFLAGS="$save_CPPFLAGS"
11333
LDFLAGS="$save_LDFLAGS"
11338
case $lt_cv_dlopen_self in
11339
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11340
*) enable_dlopen_self=unknown ;;
11343
case $lt_cv_dlopen_self_static in
11344
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11345
*) enable_dlopen_self_static=unknown ;;
11367
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11368
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11369
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11370
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11371
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11372
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11373
$as_echo "yes" >&6; }
11375
# FIXME - insert some real tests, host_os isn't really good enough
11378
if test -n "$STRIP" ; then
11379
striplib="$STRIP -x"
11380
old_striplib="$STRIP -S"
11381
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11382
$as_echo "yes" >&6; }
11384
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11385
$as_echo "no" >&6; }
11389
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11390
$as_echo "no" >&6; }
11406
# Report which library types will actually be built
11407
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11408
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11409
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11410
$as_echo "$can_build_shared" >&6; }
11412
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11413
$as_echo_n "checking whether to build shared libraries... " >&6; }
11414
test "$can_build_shared" = "no" && enable_shared=no
11416
# On AIX, shared libraries and static libraries use the same namespace, and
11417
# are all built from PIC.
11420
test "$enable_shared" = yes && enable_static=no
11421
if test -n "$RANLIB"; then
11422
archive_cmds="$archive_cmds~\$RANLIB \$lib"
11423
postinstall_cmds='$RANLIB $lib'
11428
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11429
test "$enable_shared" = yes && enable_static=no
11433
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11434
$as_echo "$enable_shared" >&6; }
11436
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11437
$as_echo_n "checking whether to build static libraries... " >&6; }
11438
# Make sure either enable_shared or enable_static is yes.
11439
test "$enable_shared" = yes || enable_static=yes
11440
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11441
$as_echo "$enable_static" >&6; }
11448
ac_cpp='$CPP $CPPFLAGS'
11449
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11450
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11451
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11469
ac_config_commands="$ac_config_commands libtool"
11474
# Only expand once:
11477
for ac_prog in doxygen
11479
# Extract the first word of "$ac_prog", so it can be a program name with args.
11480
set dummy $ac_prog; ac_word=$2
11481
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11482
$as_echo_n "checking for $ac_word... " >&6; }
11483
if ${ac_cv_prog_DOXYGEN+:} false; then :
11484
$as_echo_n "(cached) " >&6
11486
if test -n "$DOXYGEN"; then
11487
ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
11489
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11490
for as_dir in $PATH
11493
test -z "$as_dir" && as_dir=.
11494
for ac_exec_ext in '' $ac_executable_extensions; do
11495
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11496
ac_cv_prog_DOXYGEN="$ac_prog"
11497
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11506
DOXYGEN=$ac_cv_prog_DOXYGEN
11507
if test -n "$DOXYGEN"; then
11508
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
11509
$as_echo "$DOXYGEN" >&6; }
11511
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11512
$as_echo "no" >&6; }
11516
test -n "$DOXYGEN" && break
11518
test -n "$DOXYGEN" || DOXYGEN="doxygen"
11522
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
11523
$as_echo_n "checking for C compiler vendor... " >&6; }
11524
if ${ax_cv_c_compiler_vendor+:} false; then :
11525
$as_echo_n "(cached) " >&6
11527
ax_cv_c_compiler_vendor=unknown
11528
# note: don't check for gcc first since some other compilers define __GNUC__
11529
for ventest in intel:__ICC,__ECC,__INTEL_COMPILER ibm:__xlc__,__xlC__,__IBMC__,__IBMCPP__ pathscale:__PATHCC__,__PATHSCALE__ gnu:__GNUC__ sun:__SUNPRO_C,__SUNPRO_CC hp:__HP_cc,__HP_aCC dec:__DECC,__DECCXX,__DECC_VER,__DECCXX_VER borland:__BORLANDC__,__TURBOC__ comeau:__COMO__ cray:_CRAYC kai:__KCC lcc:__LCC__ metrowerks:__MWERKS__ sgi:__sgi,sgi microsoft:_MSC_VER watcom:__WATCOMC__ portland:__PGI; do
11530
vencpp="defined("`echo $ventest | cut -d: -f2 | sed 's/,/) || defined(/g'`")"
11531
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11532
/* end confdefs.h. */
11546
if ac_fn_c_try_compile "$LINENO"; then :
11547
ax_cv_c_compiler_vendor=`echo $ventest | cut -d: -f1`; break
11549
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11553
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
11554
$as_echo "$ax_cv_c_compiler_vendor" >&6; }
11561
@%:@ Check whether --enable-portable-binary was given.
11562
if test "${enable_portable_binary+set}" = set; then :
11563
enableval=$enable_portable_binary; acx_maxopt_portable=$withval
11565
acx_maxopt_portable=no
11569
# Try to determine "good" native compiler flags if none specified via CFLAGS
11570
if test "$ac_test_CFLAGS" != "set"; then
11572
case $ax_cv_c_compiler_vendor in
11573
dec) CFLAGS="-newc -w0 -O5 -ansi_alias -ansi_args -fp_reorder -tune host"
11574
if test "x$acx_maxopt_portable" = xno; then
11575
CFLAGS="$CFLAGS -arch host"
11578
sun) CFLAGS="-native -fast -xO5 -dalign"
11579
if test "x$acx_maxopt_portable" = xyes; then
11580
CFLAGS="$CFLAGS -xarch=generic"
11583
hp) CFLAGS="+Oall +Optrs_ansi +DSnative"
11584
if test "x$acx_maxopt_portable" = xyes; then
11585
CFLAGS="$CFLAGS +DAportable"
11588
ibm) if test "x$acx_maxopt_portable" = xno; then
11589
xlc_opt="-qarch=auto -qtune=auto"
11591
xlc_opt="-qtune=auto"
11593
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $xlc_opt" >&5
11594
$as_echo_n "checking whether C compiler accepts $xlc_opt... " >&6; }
11595
ax_save_FLAGS=$CFLAGS
11597
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11598
/* end confdefs.h. */
11608
if ac_fn_c_try_compile "$LINENO"; then :
11609
eval `$as_echo "ax_cv_c_flags_$xlc_opt" | $as_tr_sh`=yes
11611
eval `$as_echo "ax_cv_c_flags_$xlc_opt" | $as_tr_sh`=no
11613
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11614
CFLAGS=$ax_save_FLAGS
11615
eval ax_check_compiler_flags=$`$as_echo "ax_cv_c_flags_$xlc_opt" | $as_tr_sh`
11616
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
11617
$as_echo "$ax_check_compiler_flags" >&6; }
11618
if test "x$ax_check_compiler_flags" = xyes; then
11619
CFLAGS="-O3 -qansialias -w $xlc_opt"
11621
CFLAGS="-O3 -qansialias -w"
11622
echo "******************************************************"
11623
echo "* You seem to have the IBM C compiler. It is *"
11624
echo "* recommended for best performance that you use: *"
11626
echo "* CFLAGS=-O3 -qarch=xxx -qtune=xxx -qansialias -w *"
11628
echo "* where xxx is pwr2, pwr3, 604, or whatever kind of *"
11629
echo "* CPU you have. (Set the CFLAGS environment var. *"
11630
echo "* and re-run configure.) For more info, man cc. *"
11631
echo "******************************************************"
11636
intel) CFLAGS="-O3 -ansi_alias"
11637
if test "x$acx_maxopt_portable" = xno; then
11638
icc_archflag=unknown
11642
# icc accepts gcc assembly syntax, so these should work:
11645
ac_cpp='$CPP $CPPFLAGS'
11646
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11647
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11648
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11650
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
11651
$as_echo_n "checking for x86 cpuid 0 output... " >&6; }
11652
if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
11653
$as_echo_n "(cached) " >&6
11655
if test "$cross_compiling" = yes; then :
11656
ax_cv_gcc_x86_cpuid_0=unknown
11658
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11659
/* end confdefs.h. */
11665
int op = 0, eax, ebx, ecx, edx;
11668
: "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
11670
f = fopen("conftest_cpuid", "w"); if (!f) return 1;
11671
fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
11679
if ac_fn_c_try_run "$LINENO"; then :
11680
ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
11682
ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
11684
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11685
conftest.$ac_objext conftest.beam conftest.$ac_ext
11689
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
11690
$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
11692
ac_cpp='$CPP $CPPFLAGS'
11693
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11694
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11695
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11700
ac_cpp='$CPP $CPPFLAGS'
11701
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11702
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11703
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11705
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
11706
$as_echo_n "checking for x86 cpuid 1 output... " >&6; }
11707
if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
11708
$as_echo_n "(cached) " >&6
11710
if test "$cross_compiling" = yes; then :
11711
ax_cv_gcc_x86_cpuid_1=unknown
11713
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11714
/* end confdefs.h. */
11720
int op = 1, eax, ebx, ecx, edx;
11723
: "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
11725
f = fopen("conftest_cpuid", "w"); if (!f) return 1;
11726
fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
11734
if ac_fn_c_try_run "$LINENO"; then :
11735
ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
11737
ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
11739
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11740
conftest.$ac_objext conftest.beam conftest.$ac_ext
11744
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
11745
$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
11747
ac_cpp='$CPP $CPPFLAGS'
11748
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11749
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11750
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11753
case $ax_cv_gcc_x86_cpuid_0 in # see AX_GCC_ARCHFLAG
11754
*:756e6547:*:*) # Intel
11755
case $ax_cv_gcc_x86_cpuid_1 in
11756
*6a?:*[234]:*:*|*6[789b]?:*:*:*) icc_flags="-xK";;
11757
*f3[347]:*:*:*|*f41347:*:*:*) icc_flags="-xP -xN -xW -xK";;
11758
*f??:*:*:*) icc_flags="-xN -xW -xK";;
11762
if test "x$icc_flags" != x; then
11763
for flag in $icc_flags; do
11764
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
11765
$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
11766
ax_save_FLAGS=$CFLAGS
11768
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11769
/* end confdefs.h. */
11779
if ac_fn_c_try_compile "$LINENO"; then :
11780
eval `$as_echo "ax_cv_c_flags_$flag" | $as_tr_sh`=yes
11782
eval `$as_echo "ax_cv_c_flags_$flag" | $as_tr_sh`=no
11784
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11785
CFLAGS=$ax_save_FLAGS
11786
eval ax_check_compiler_flags=$`$as_echo "ax_cv_c_flags_$flag" | $as_tr_sh`
11787
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
11788
$as_echo "$ax_check_compiler_flags" >&6; }
11789
if test "x$ax_check_compiler_flags" = xyes; then
11790
icc_archflag=$flag; break
11797
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for icc architecture flag" >&5
11798
$as_echo_n "checking for icc architecture flag... " >&6; }
11799
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $icc_archflag" >&5
11800
$as_echo "$icc_archflag" >&6; }
11801
if test "x$icc_archflag" != xunknown; then
11802
CFLAGS="$CFLAGS $icc_archflag"
11808
# default optimization flags for gcc on all systems
11809
CFLAGS="-O3 -fomit-frame-pointer"
11811
# -malign-double for x86 systems
11812
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -malign-double" >&5
11813
$as_echo_n "checking whether C compiler accepts -malign-double... " >&6; }
11814
if ${ax_cv_c_flags__malign_double+:} false; then :
11815
$as_echo_n "(cached) " >&6
11818
ax_save_FLAGS=$CFLAGS
11819
CFLAGS="-malign-double"
11820
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11821
/* end confdefs.h. */
11831
if ac_fn_c_try_compile "$LINENO"; then :
11832
ax_cv_c_flags__malign_double=yes
11834
ax_cv_c_flags__malign_double=no
11836
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11837
CFLAGS=$ax_save_FLAGS
11840
eval ax_check_compiler_flags=$ax_cv_c_flags__malign_double
11841
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
11842
$as_echo "$ax_check_compiler_flags" >&6; }
11843
if test "x$ax_check_compiler_flags" = xyes; then
11844
CFLAGS="$CFLAGS -malign-double"
11850
# -fstrict-aliasing for gcc-2.95+
11851
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -fstrict-aliasing" >&5
11852
$as_echo_n "checking whether C compiler accepts -fstrict-aliasing... " >&6; }
11853
if ${ax_cv_c_flags__fstrict_aliasing+:} false; then :
11854
$as_echo_n "(cached) " >&6
11857
ax_save_FLAGS=$CFLAGS
11858
CFLAGS="-fstrict-aliasing"
11859
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11860
/* end confdefs.h. */
11870
if ac_fn_c_try_compile "$LINENO"; then :
11871
ax_cv_c_flags__fstrict_aliasing=yes
11873
ax_cv_c_flags__fstrict_aliasing=no
11875
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11876
CFLAGS=$ax_save_FLAGS
11879
eval ax_check_compiler_flags=$ax_cv_c_flags__fstrict_aliasing
11880
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
11881
$as_echo "$ax_check_compiler_flags" >&6; }
11882
if test "x$ax_check_compiler_flags" = xyes; then
11883
CFLAGS="$CFLAGS -fstrict-aliasing"
11889
# note that we enable "unsafe" fp optimization with other compilers, too
11890
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts -ffast-math" >&5
11891
$as_echo_n "checking whether C compiler accepts -ffast-math... " >&6; }
11892
if ${ax_cv_c_flags__ffast_math+:} false; then :
11893
$as_echo_n "(cached) " >&6
11896
ax_save_FLAGS=$CFLAGS
11897
CFLAGS="-ffast-math"
11898
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11899
/* end confdefs.h. */
11909
if ac_fn_c_try_compile "$LINENO"; then :
11910
ax_cv_c_flags__ffast_math=yes
11912
ax_cv_c_flags__ffast_math=no
11914
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11915
CFLAGS=$ax_save_FLAGS
11918
eval ax_check_compiler_flags=$ax_cv_c_flags__ffast_math
11919
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
11920
$as_echo "$ax_check_compiler_flags" >&6; }
11921
if test "x$ax_check_compiler_flags" = xyes; then
11922
CFLAGS="$CFLAGS -ffast-math"
11932
@%:@ Check whether --with-gcc-arch was given.
11933
if test "${with_gcc_arch+set}" = set; then :
11934
withval=$with_gcc_arch; ax_gcc_arch=$withval
11940
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
11941
$as_echo_n "checking for gcc architecture flag... " >&6; }
11942
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
11944
if ${ax_cv_gcc_archflag+:} false; then :
11945
$as_echo_n "(cached) " >&6
11948
ax_cv_gcc_archflag="unknown"
11950
if test "$GCC" = yes; then
11952
if test "x$ax_gcc_arch" = xyes; then
11954
if test "$cross_compiling" = no; then
11956
i[3456]86*|x86_64*) # use cpuid codes, in part from x86info-1.7 by D. Jones
11959
ac_cpp='$CPP $CPPFLAGS'
11960
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11961
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11962
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11964
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
11965
$as_echo_n "checking for x86 cpuid 0 output... " >&6; }
11966
if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
11967
$as_echo_n "(cached) " >&6
11969
if test "$cross_compiling" = yes; then :
11970
ax_cv_gcc_x86_cpuid_0=unknown
11972
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11973
/* end confdefs.h. */
11979
int op = 0, eax, ebx, ecx, edx;
11982
: "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
11984
f = fopen("conftest_cpuid", "w"); if (!f) return 1;
11985
fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
11993
if ac_fn_c_try_run "$LINENO"; then :
11994
ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
11996
ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
11998
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11999
conftest.$ac_objext conftest.beam conftest.$ac_ext
12003
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
12004
$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
12006
ac_cpp='$CPP $CPPFLAGS'
12007
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12008
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12009
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12014
ac_cpp='$CPP $CPPFLAGS'
12015
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12016
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12017
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12019
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
12020
$as_echo_n "checking for x86 cpuid 1 output... " >&6; }
12021
if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
12022
$as_echo_n "(cached) " >&6
12024
if test "$cross_compiling" = yes; then :
12025
ax_cv_gcc_x86_cpuid_1=unknown
12027
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12028
/* end confdefs.h. */
12034
int op = 1, eax, ebx, ecx, edx;
12037
: "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12039
f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12040
fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12048
if ac_fn_c_try_run "$LINENO"; then :
12049
ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
12051
ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
12053
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12054
conftest.$ac_objext conftest.beam conftest.$ac_ext
12058
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
12059
$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
12061
ac_cpp='$CPP $CPPFLAGS'
12062
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12063
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12064
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12067
case $ax_cv_gcc_x86_cpuid_0 in
12068
*:756e6547:*:*) # Intel
12069
case $ax_cv_gcc_x86_cpuid_1 in
12070
*5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
12071
*5??:*:*:*) ax_gcc_arch=pentium ;;
12072
*6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
12073
*6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
12074
*6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
12075
*6[9d]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
12076
*6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
12077
*6??:*:*:*) ax_gcc_arch=pentiumpro ;;
12078
*f3[347]:*:*:*|*f41347:*:*:*)
12080
x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;;
12081
*) ax_gcc_arch="prescott pentium4 pentiumpro" ;;
12083
*f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";;
12085
*:68747541:*:*) # AMD
12086
case $ax_cv_gcc_x86_cpuid_1 in
12087
*5[67]?:*:*:*) ax_gcc_arch=k6 ;;
12088
*5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
12089
*5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
12090
*60?:*:*:*) ax_gcc_arch=k7 ;;
12091
*6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
12092
*6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
12093
*67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;;
12097
ac_cpp='$CPP $CPPFLAGS'
12098
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12099
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12100
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12102
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5
12103
$as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; }
12104
if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then :
12105
$as_echo_n "(cached) " >&6
12107
if test "$cross_compiling" = yes; then :
12108
ax_cv_gcc_x86_cpuid_0x80000006=unknown
12110
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12111
/* end confdefs.h. */
12117
int op = 0x80000006, eax, ebx, ecx, edx;
12120
: "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
12122
f = fopen("conftest_cpuid", "w"); if (!f) return 1;
12123
fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
12131
if ac_fn_c_try_run "$LINENO"; then :
12132
ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid
12134
ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid
12136
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12137
conftest.$ac_objext conftest.beam conftest.$ac_ext
12141
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5
12142
$as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; }
12144
ac_cpp='$CPP $CPPFLAGS'
12145
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12146
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12147
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12150
case $ax_cv_gcc_x86_cpuid_0x80000006 in
12151
*:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256
12152
ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
12153
*) ax_gcc_arch="athlon-4 athlon k7" ;;
12155
*f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
12156
*f5?:*:*:*) ax_gcc_arch="opteron k8" ;;
12157
*f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;;
12158
*f??:*:*:*) ax_gcc_arch="k8" ;;
12160
*:746e6543:*:*) # IDT
12161
case $ax_cv_gcc_x86_cpuid_1 in
12162
*54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
12163
*58?:*:*:*) ax_gcc_arch=winchip2 ;;
12164
*6[78]?:*:*:*) ax_gcc_arch=c3 ;;
12165
*69?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
12168
if test x"$ax_gcc_arch" = x; then # fallback
12170
i586*) ax_gcc_arch=pentium ;;
12171
i686*) ax_gcc_arch=pentiumpro ;;
12177
# Extract the first word of "prtdiag", so it can be a program name with args.
12178
set dummy prtdiag; ac_word=$2
12179
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12180
$as_echo_n "checking for $ac_word... " >&6; }
12181
if ${ac_cv_path_PRTDIAG+:} false; then :
12182
$as_echo_n "(cached) " >&6
12186
ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
12189
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12190
as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
12191
for as_dir in $as_dummy
12194
test -z "$as_dir" && as_dir=.
12195
for ac_exec_ext in '' $ac_executable_extensions; do
12196
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12197
ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
12198
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12205
test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
12209
PRTDIAG=$ac_cv_path_PRTDIAG
12210
if test -n "$PRTDIAG"; then
12211
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
12212
$as_echo "$PRTDIAG" >&6; }
12214
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12215
$as_echo "no" >&6; }
12219
cputype=`(((grep cpu /proc/cpuinfo | cut -d: -f2) ; ($PRTDIAG -v |grep -i sparc) ; grep -i cpu /var/run/dmesg.boot ) | head -n 1) 2> /dev/null`
12220
cputype=`echo "$cputype" | tr -d ' -' |tr $as_cr_LETTERS $as_cr_letters`
12222
*ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
12223
*ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
12224
*ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
12225
*supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
12226
*hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
12227
*cypress*) ax_gcc_arch=cypress ;;
12230
alphaev5) ax_gcc_arch=ev5 ;;
12231
alphaev56) ax_gcc_arch=ev56 ;;
12232
alphapca56) ax_gcc_arch="pca56 ev56" ;;
12233
alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
12234
alphaev6) ax_gcc_arch=ev6 ;;
12235
alphaev67) ax_gcc_arch=ev67 ;;
12236
alphaev68) ax_gcc_arch="ev68 ev67" ;;
12237
alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
12238
alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
12239
alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
12242
cputype=`((grep cpu /proc/cpuinfo | head -n 1 | cut -d: -f2 | cut -d, -f1 | sed 's/ //g') ; /usr/bin/machine ; /bin/machine; grep CPU /var/run/dmesg.boot | head -n 1 | cut -d" " -f2) 2> /dev/null`
12243
cputype=`echo $cputype | sed -e 's/ppc//g;s/ *//g'`
12245
*750*) ax_gcc_arch="750 G3" ;;
12246
*740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
12247
*74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
12248
*74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
12249
*970*) ax_gcc_arch="970 G5 power4";;
12250
*POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
12251
*POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
12252
603ev|8240) ax_gcc_arch="$cputype 603e 603";;
12253
*) ax_gcc_arch=$cputype ;;
12255
ax_gcc_arch="$ax_gcc_arch powerpc"
12258
fi # not cross-compiling
12261
if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
12262
for arch in $ax_gcc_arch; do
12263
if test "x$acx_maxopt_portable" = xyes; then # if we require portable code
12264
flags="-mtune=$arch"
12265
# -mcpu=$arch and m$arch generate nonportable code on every arch except
12266
# x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr.
12267
case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac
12269
flags="-march=$arch -mcpu=$arch -m$arch"
12271
for flag in $flags; do
12272
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
12273
$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
12274
ax_save_FLAGS=$CFLAGS
12276
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12277
/* end confdefs.h. */
12287
if ac_fn_c_try_compile "$LINENO"; then :
12288
eval `$as_echo "ax_cv_c_flags_$flag" | $as_tr_sh`=yes
12290
eval `$as_echo "ax_cv_c_flags_$flag" | $as_tr_sh`=no
12292
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12293
CFLAGS=$ax_save_FLAGS
12294
eval ax_check_compiler_flags=$`$as_echo "ax_cv_c_flags_$flag" | $as_tr_sh`
12295
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
12296
$as_echo "$ax_check_compiler_flags" >&6; }
12297
if test "x$ax_check_compiler_flags" = xyes; then
12298
ax_cv_gcc_archflag=$flag; break
12304
test "x$ax_cv_gcc_archflag" = xunknown || break
12312
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
12313
$as_echo_n "checking for gcc architecture flag... " >&6; }
12314
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
12315
$as_echo "$ax_cv_gcc_archflag" >&6; }
12316
if test "x$ax_cv_gcc_archflag" = xunknown; then
12319
CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
12325
if test -z "$CFLAGS"; then
12327
echo "********************************************************"
12328
echo "* WARNING: Don't know the best CFLAGS for this system *"
12329
echo "* Use ./configure CFLAGS=... to specify your own flags *"
12330
echo "* (otherwise, a default of CFLAGS=-O3 will be used) *"
12331
echo "********************************************************"
12336
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $CFLAGS" >&5
12337
$as_echo_n "checking whether C compiler accepts $CFLAGS... " >&6; }
12338
ax_save_FLAGS=$CFLAGS
12340
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12341
/* end confdefs.h. */
12351
if ac_fn_c_try_compile "$LINENO"; then :
12352
eval `$as_echo "ax_cv_c_flags_$CFLAGS" | $as_tr_sh`=yes
12354
eval `$as_echo "ax_cv_c_flags_$CFLAGS" | $as_tr_sh`=no
12356
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12357
CFLAGS=$ax_save_FLAGS
12358
eval ax_check_compiler_flags=$`$as_echo "ax_cv_c_flags_$CFLAGS" | $as_tr_sh`
12359
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_check_compiler_flags" >&5
12360
$as_echo "$ax_check_compiler_flags" >&6; }
12361
if test "x$ax_check_compiler_flags" = xyes; then
12366
echo "********************************************************"
12367
echo "* WARNING: The guessed CFLAGS don't seem to work with *"
12368
echo "* your compiler. *"
12369
echo "* Use ./configure CFLAGS=... to specify your own flags *"
12370
echo "********************************************************"
12380
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS_WARN for maximum warnings" >&5
12381
$as_echo_n "checking CFLAGS_WARN for maximum warnings... " >&6; }
12382
if ${ac_cv_cflags_warn_all+:} false; then :
12383
$as_echo_n "(cached) " >&6
12385
ac_cv_cflags_warn_all="no, unknown"
12388
ac_cpp='$CPP $CPPFLAGS'
12389
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12390
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12391
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12393
ac_save_CFLAGS="$CFLAGS"
12394
for ac_arg in "-pedantic % -Wall" "-xstrconst % -v" "-std1 % -verbose -w0 -warnprotos" "-qlanglvl=ansi % -qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd" "-ansi -ansiE % -fullwarn" "+ESlit % +w1" "-Xc % -pvctl,fullmsg" "-h conform % -h msglevel 2" #
12395
do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
12396
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12397
/* end confdefs.h. */
12407
if ac_fn_c_try_compile "$LINENO"; then :
12408
ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
12410
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12412
CFLAGS="$ac_save_CFLAGS"
12414
ac_cpp='$CPP $CPPFLAGS'
12415
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12416
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12417
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12421
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
12422
$as_echo "$ac_cv_cflags_warn_all" >&6; }
12423
case ".$ac_cv_cflags_warn_all" in
12428
if echo " $CFLAGS_WARN " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
12429
then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS_WARN does contain \$ac_cv_cflags_warn_all"; } >&5
12430
(: CFLAGS_WARN does contain $ac_cv_cflags_warn_all) 2>&5
12432
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12433
test $ac_status = 0; }
12434
else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS_WARN=\"\$CFLAGS_WARN \$ac_cv_cflags_warn_all\""; } >&5
12435
(: CFLAGS_WARN="$CFLAGS_WARN $ac_cv_cflags_warn_all") 2>&5
12437
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12438
test $ac_status = 0; }
12439
CFLAGS_WARN="$CFLAGS_WARN $ac_cv_cflags_warn_all"
12445
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12446
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12447
if ${ac_cv_c_const+:} false; then :
12448
$as_echo_n "(cached) " >&6
12450
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12451
/* end confdefs.h. */
12457
#ifndef __cplusplus
12458
/* Ultrix mips cc rejects this sort of thing. */
12459
typedef int charset[2];
12460
const charset cs = { 0, 0 };
12461
/* SunOS 4.1.1 cc rejects this. */
12462
char const *const *pcpcc;
12464
/* NEC SVR4.0.2 mips cc rejects this. */
12465
struct point {int x, y;};
12466
static struct point const zero = {0,0};
12467
/* AIX XL C 1.02.0.0 rejects this.
12468
It does not let you subtract one const X* pointer from another in
12469
an arm of an if-expression whose if-part is not a constant
12471
const char *g = "string";
12472
pcpcc = &g + (g ? g-g : 0);
12473
/* HPUX 7.0 cc rejects these. */
12475
ppc = (char**) pcpcc;
12476
pcpcc = (char const *const *) ppc;
12477
{ /* SCO 3.2v4 cc rejects this sort of thing. */
12480
char const *s = 0 ? (char *) 0 : (char const *) 0;
12485
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12486
int x[] = {25, 17};
12487
const int *foo = &x[0];
12490
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12491
typedef const int *iptr;
12495
{ /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12496
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12497
struct s { int j; const int *ap[3]; } bx;
12498
struct s *b = &bx; b->j = 5;
12500
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12501
const int foo = 10;
12502
if (!foo) return 0;
12504
return !cs[0] && !zero.x;
12511
if ac_fn_c_try_compile "$LINENO"; then :
12516
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12518
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12519
$as_echo "$ac_cv_c_const" >&6; }
12520
if test $ac_cv_c_const = no; then
12522
$as_echo "@%:@define const /**/" >>confdefs.h
12526
ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12527
if test "x$ac_cv_type_size_t" = xyes; then :
12531
cat >>confdefs.h <<_ACEOF
12532
@%:@define size_t unsigned int
12538
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12539
$as_echo_n "checking for ANSI C header files... " >&6; }
12540
if ${ac_cv_header_stdc+:} false; then :
12541
$as_echo_n "(cached) " >&6
12543
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12544
/* end confdefs.h. */
12545
#include <stdlib.h>
12546
#include <stdarg.h>
12547
#include <string.h>
12558
if ac_fn_c_try_compile "$LINENO"; then :
12559
ac_cv_header_stdc=yes
12561
ac_cv_header_stdc=no
12563
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12565
if test $ac_cv_header_stdc = yes; then
12566
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12567
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12568
/* end confdefs.h. */
12569
#include <string.h>
12572
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12573
$EGREP "memchr" >/dev/null 2>&1; then :
12576
ac_cv_header_stdc=no
12582
if test $ac_cv_header_stdc = yes; then
12583
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12584
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12585
/* end confdefs.h. */
12586
#include <stdlib.h>
12589
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12590
$EGREP "free" >/dev/null 2>&1; then :
12593
ac_cv_header_stdc=no
12599
if test $ac_cv_header_stdc = yes; then
12600
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12601
if test "$cross_compiling" = yes; then :
12604
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12605
/* end confdefs.h. */
12607
#include <stdlib.h>
12608
#if ((' ' & 0x0FF) == 0x020)
12609
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12610
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12612
# define ISLOWER(c) \
12613
(('a' <= (c) && (c) <= 'i') \
12614
|| ('j' <= (c) && (c) <= 'r') \
12615
|| ('s' <= (c) && (c) <= 'z'))
12616
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12619
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12624
for (i = 0; i < 256; i++)
12625
if (XOR (islower (i), ISLOWER (i))
12626
|| toupper (i) != TOUPPER (i))
12631
if ac_fn_c_try_run "$LINENO"; then :
12634
ac_cv_header_stdc=no
12636
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12637
conftest.$ac_objext conftest.beam conftest.$ac_ext
12642
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12643
$as_echo "$ac_cv_header_stdc" >&6; }
12644
if test $ac_cv_header_stdc = yes; then
12646
$as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
12650
for ac_header in errno.h stddef.h stdlib.h string.h strings.h unistd.h
12652
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12653
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12654
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12655
cat >>confdefs.h <<_ACEOF
12656
@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12664
for ac_func in strtol
12666
ac_fn_c_check_func "$LINENO" "strtol" "ac_cv_func_strtol"
12667
if test "x$ac_cv_func_strtol" = xyes; then :
12668
cat >>confdefs.h <<_ACEOF
12669
@%:@define HAVE_STRTOL 1
12679
gmp_flag="OSL_GMP_IS_HERE"
12683
@%:@ Check whether --with-gmp was given.
12684
if test "${with_gmp+set}" = set; then :
12691
@%:@ Check whether --with-gmp_prefix was given.
12692
if test "${with_gmp_prefix+set}" = set; then :
12693
withval=$with_gmp_prefix;
12697
@%:@ Check whether --with-gmp_exec_prefix was given.
12698
if test "${with_gmp_exec_prefix+set}" = set; then :
12699
withval=$with_gmp_exec_prefix;
12706
@%:@ Check whether --with-gmp_builddir was given.
12707
if test "${with_gmp_builddir+set}" = set; then :
12708
withval=$with_gmp_builddir;
12712
if test "x$with_gmp_prefix" != "x" -a "x$with_gmp_exec_prefix" = "x"; then
12713
with_gmp_exec_prefix=$with_gmp_prefix
12715
if test "x$with_gmp_prefix" != "x" -o "x$with_gmp_exec_prefix" != "x"; then
12716
if test "x$with_gmp" != "x" -a "x$with_gmp" != "xsystem"; then
12717
as_fn_error $? "Setting $with_gmp_prefix implies use of system gmp" "$LINENO" 5
12721
if test "x$with_gmp_builddir" != "x"; then
12722
if test "x$with_gmp" != "x" -a "x$with_gmp" != "xbuild"; then
12723
as_fn_error $? "Setting $with_gmp_builddir implies use of build gmp" "$LINENO" 5
12726
gmp_srcdir=`echo @abs_srcdir@ | $with_gmp_builddir/config.status --file=-`
12727
{ $as_echo "$as_me:${as_lineno-$LINENO}: gmp sources in $gmp_srcdir" >&5
12728
$as_echo "$as_me: gmp sources in $gmp_srcdir" >&6;}
12730
case "$with_gmp" in
12734
if test -d $srcdir/.git -a \
12735
-d $srcdir/gmp -a \
12736
! -d $srcdir/gmp/.git; then
12737
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: git repo detected, but submodule gmp not initialized" >&5
12738
$as_echo "$as_me: WARNING: git repo detected, but submodule gmp not initialized" >&2;}
12739
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You may want to run" >&5
12740
$as_echo "$as_me: WARNING: You may want to run" >&2;}
12741
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: git submodule init" >&5
12742
$as_echo "$as_me: WARNING: git submodule init" >&2;}
12743
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: git submodule update" >&5
12744
$as_echo "$as_me: WARNING: git submodule update" >&2;}
12745
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: sh autogen.sh" >&5
12746
$as_echo "$as_me: WARNING: sh autogen.sh" >&2;}
12748
if test -f $srcdir/gmp/configure -a "system" != "no"; then
12755
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which gmp to use" >&5
12756
$as_echo_n "checking which gmp to use... " >&6; }
12757
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_gmp" >&5
12758
$as_echo "$with_gmp" >&6; }
12762
case "$with_gmp" in
12764
CPPFLAGS="-D$gmp_flag -I$with_gmp_builddir $CPPFLAGS"
12765
LDFLAGS="-L$with_gmp_builddir/$lt_cv_objdir $LDFLAGS"
12768
CPPFLAGS="-D$gmp_flag $CPPFLAGS"
12769
if test "x$with_gmp_prefix" != "x"; then
12770
CPPFLAGS="-I$with_gmp_prefix/include $CPPFLAGS"
12773
if test "$with_gmp_exec_prefix" != "yes" ; then
12774
LDFLAGS="-L$with_gmp_exec_prefix/lib $LDFLAGS"
12778
case "$with_gmp" in
12780
ac_fn_c_check_header_mongrel "$LINENO" "gmp.h" "ac_cv_header_gmp_h" "$ac_includes_default"
12781
if test "x$ac_cv_header_gmp_h" = xyes; then :
12784
as_fn_error $? "\"Can't find gmp headers.\"" "$LINENO" 5
12788
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpz_init in -lgmp" >&5
12789
$as_echo_n "checking for __gmpz_init in -lgmp... " >&6; }
12790
if ${ac_cv_lib_gmp___gmpz_init+:} false; then :
12791
$as_echo_n "(cached) " >&6
12793
ac_check_lib_save_LIBS=$LIBS
12795
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12796
/* end confdefs.h. */
12798
/* Override any GCC internal prototype to avoid an error.
12799
Use char because int might match the return type of a GCC
12800
builtin and then its argument prototype would still apply. */
12804
char __gmpz_init ();
12808
return __gmpz_init ();
12813
if ac_fn_c_try_link "$LINENO"; then :
12814
ac_cv_lib_gmp___gmpz_init=yes
12816
ac_cv_lib_gmp___gmpz_init=no
12818
rm -f core conftest.err conftest.$ac_objext \
12819
conftest$ac_exeext conftest.$ac_ext
12820
LIBS=$ac_check_lib_save_LIBS
12822
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_init" >&5
12823
$as_echo "$ac_cv_lib_gmp___gmpz_init" >&6; }
12824
if test "x$ac_cv_lib_gmp___gmpz_init" = xyes; then :
12827
as_fn_error $? "\"Can't find gmp library.\"" "$LINENO" 5
12843
ac_config_files="$ac_config_files Makefile doc/Makefile doc/Doxyfile include/osl/scop.h tests/Makefile"
12846
cat >confcache <<\_ACEOF
12847
# This file is a shell script that caches the results of configure
12848
# tests run on this system so they can be shared between configure
12849
# scripts and configure runs, see configure's option --config-cache.
12850
# It is not useful on other systems. If it contains results you don't
12851
# want to keep, you may remove or edit it.
12853
# config.status only pays attention to the cache file if you give it
12854
# the --recheck option to rerun configure.
12856
# `ac_cv_env_foo' variables (set or unset) will be overridden when
12857
# loading this file, other *unset* `ac_cv_foo' will be assigned the
12858
# following values.
12862
# The following way of writing the cache mishandles newlines in values,
12863
# but we know of no workaround that is simple, portable, and efficient.
12864
# So, we kill variables containing newlines.
12865
# Ultrix sh set writes to stderr and can't be redirected directly,
12866
# and sets the high bit in the cache file unless we assign to the vars.
12868
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12869
eval ac_val=\$$ac_var
12873
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
12874
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
12877
_ | IFS | as_nl) ;; #(
12878
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
12879
*) { eval $ac_var=; unset $ac_var;} ;;
12885
case $as_nl`(ac_space=' '; set) 2>&1` in #(
12886
*${as_nl}ac_space=\ *)
12887
# `set' does not quote correctly, so add quotes: double-quote
12888
# substitution turns \\\\ into \\, and sed turns \\ into \.
12891
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
12894
# `set' quotes correctly as required by POSIX, so do not add quotes.
12895
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
12904
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12906
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12908
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12909
if test -w "$cache_file"; then
12910
if test "x$cache_file" != "x/dev/null"; then
12911
{ $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
12912
$as_echo "$as_me: updating cache $cache_file" >&6;}
12913
if test ! -f "$cache_file" || test -h "$cache_file"; then
12914
cat confcache >"$cache_file"
12916
case $cache_file in #(
12918
mv -f confcache "$cache_file"$$ &&
12919
mv -f "$cache_file"$$ "$cache_file" ;; #(
12921
mv -f confcache "$cache_file" ;;
12926
{ $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
12927
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
12932
test "x$prefix" = xNONE && prefix=$ac_default_prefix
12933
# Let make expand exec_prefix.
12934
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12936
# Transform confdefs.h into DEFS.
12937
# Protect against shell expansion while executing Makefile rules.
12938
# Protect against Makefile macro expansion.
12940
# If the first sed substitution is executed (which looks for macros that
12941
# take arguments), then branch to the quote section. Otherwise,
12942
# look for a macro that doesn't take arguments.
12952
s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
12954
s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
12958
s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
12971
DEFS=`sed -n "$ac_script" confdefs.h`
12977
for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
12978
# 1. Remove the extension, and $U if already installed.
12979
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
12980
ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
12981
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12982
# will be set to the directory where LIBOBJS objects are built.
12983
as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12984
as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
12986
LIB@&t@OBJS=$ac_libobjs
12988
LTLIBOBJS=$ac_ltlibobjs
12991
if test -n "$EXEEXT"; then
12993
am__EXEEXT_FALSE='#'
12995
am__EXEEXT_TRUE='#'
12999
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13000
as_fn_error $? "conditional \"AMDEP\" was never defined.
13001
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13003
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13004
as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13005
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13008
: "${CONFIG_STATUS=./config.status}"
13010
ac_clean_files_save=$ac_clean_files
13011
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13012
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13013
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13015
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13017
# Generated by $as_me.
13018
# Run this file to recreate the current configuration.
13019
# Compiler output produced by configure, useful for debugging
13020
# configure, is in config.log if it exists.
13023
ac_cs_recheck=false
13026
SHELL=\${CONFIG_SHELL-$SHELL}
13029
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13030
## -------------------- ##
13031
## M4sh Initialization. ##
13032
## -------------------- ##
13034
# Be more Bourne compatible
13035
DUALCASE=1; export DUALCASE # for MKS sh
13036
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13039
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13040
# is contrary to our usage. Disable this feature.
13041
alias -g '${1+"$@"}'='"$@"'
13042
setopt NO_GLOB_SUBST
13044
case `(set -o) 2>/dev/null` in @%:@(
13046
set -o posix ;; @%:@(
13056
# Printing a long string crashes Solaris 7 /usr/bin/printf.
13057
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13058
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13059
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13060
# Prefer a ksh shell builtin over an external printf program on Solaris,
13061
# but without wasting forks for bash or zsh.
13062
if test -z "$BASH_VERSION$ZSH_VERSION" \
13063
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13064
as_echo='print -r --'
13065
as_echo_n='print -rn --'
13066
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13067
as_echo='printf %s\n'
13068
as_echo_n='printf %s'
13070
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13071
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13072
as_echo_n='/usr/ucb/echo -n'
13074
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13075
as_echo_n_body='eval
13079
expr "X$arg" : "X\\(.*\\)$as_nl";
13080
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13082
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13084
export as_echo_n_body
13085
as_echo_n='sh -c $as_echo_n_body as_echo'
13087
export as_echo_body
13088
as_echo='sh -c $as_echo_body as_echo'
13091
# The user is always right.
13092
if test "${PATH_SEPARATOR+set}" != set; then
13094
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13095
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13102
# We need space, tab and new line, in precisely that order. Quoting is
13103
# there to prevent editors from complaining about space-tab.
13104
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13105
# splitting by setting IFS to empty value.)
13108
# Find who we are. Look in the path if we contain no directory separator.
13111
*[\\/]* ) as_myself=$0 ;;
13112
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13113
for as_dir in $PATH
13116
test -z "$as_dir" && as_dir=.
13117
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13123
# We did not find ourselves, most probably we were run as `sh COMMAND'
13124
# in which case we are not to be found in the path.
13125
if test "x$as_myself" = x; then
13128
if test ! -f "$as_myself"; then
13129
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13133
# Unset variables that we do not need and which cause bugs (e.g. in
13134
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13135
# suppresses any "Segmentation fault" message there. '((' could
13136
# trigger a bug in pdksh 5.2.14.
13137
for as_var in BASH_ENV ENV MAIL MAILPATH
13138
do eval test x\${$as_var+set} = xset \
13139
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13152
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13155
@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
13156
@%:@ ----------------------------------------
13157
@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13158
@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13159
@%:@ script with STATUS, using 1 if that was 0.
13162
as_status=$1; test $as_status -eq 0 && as_status=1
13164
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13165
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13167
$as_echo "$as_me: error: $2" >&2
13168
as_fn_exit $as_status
13172
@%:@ as_fn_set_status STATUS
13173
@%:@ -----------------------
13174
@%:@ Set @S|@? to STATUS, without forking.
13175
as_fn_set_status ()
13178
} @%:@ as_fn_set_status
13180
@%:@ as_fn_exit STATUS
13181
@%:@ -----------------
13182
@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13186
as_fn_set_status $1
13190
@%:@ as_fn_unset VAR
13191
@%:@ ---------------
13192
@%:@ Portably unset VAR.
13195
{ eval $1=; unset $1;}
13197
as_unset=as_fn_unset
13198
@%:@ as_fn_append VAR VALUE
13199
@%:@ ----------------------
13200
@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
13201
@%:@ advantage of any shell optimizations that allow amortized linear growth over
13202
@%:@ repeated appends, instead of the typical quadratic growth present in naive
13203
@%:@ implementations.
13204
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13205
eval 'as_fn_append ()
13216
@%:@ as_fn_arith ARG...
13217
@%:@ ------------------
13218
@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
13219
@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
13220
@%:@ must be portable across @S|@(()) and expr.
13221
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13222
eval 'as_fn_arith ()
13229
as_val=`expr "$@" || test $? -eq 1`
13234
if expr a : '\(a\)' >/dev/null 2>&1 &&
13235
test "X`expr 00001 : '.*\(...\)'`" = X001; then
13241
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13242
as_basename=basename
13247
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13253
as_me=`$as_basename -- "$0" ||
13254
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13255
X"$0" : 'X\(//\)$' \| \
13256
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13258
sed '/^.*\/\([^/][^/]*\)\/*$/{
13272
# Avoid depending upon Character Ranges.
13273
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13274
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13275
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13276
as_cr_digits='0123456789'
13277
as_cr_alnum=$as_cr_Letters$as_cr_digits
13279
ECHO_C= ECHO_N= ECHO_T=
13280
case `echo -n x` in @%:@(((((
13282
case `echo 'xy\c'` in
13283
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
13285
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13292
rm -f conf$$ conf$$.exe conf$$.file
13293
if test -d conf$$.dir; then
13294
rm -f conf$$.dir/conf$$.file
13297
mkdir conf$$.dir 2>/dev/null
13299
if (echo >conf$$.file) 2>/dev/null; then
13300
if ln -s conf$$.file conf$$ 2>/dev/null; then
13302
# ... but there are two gotchas:
13303
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13304
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13305
# In both cases, we have to default to `cp -pR'.
13306
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13308
elif ln conf$$.file conf$$ 2>/dev/null; then
13316
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13317
rmdir conf$$.dir 2>/dev/null
13322
@%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
13327
-*) as_dir=./$as_dir;;
13329
test -d "$as_dir" || eval $as_mkdir_p || {
13333
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13334
*) as_qdir=$as_dir;;
13336
as_dirs="'$as_qdir' $as_dirs"
13337
as_dir=`$as_dirname -- "$as_dir" ||
13338
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13339
X"$as_dir" : 'X\(//\)[^/]' \| \
13340
X"$as_dir" : 'X\(//\)$' \| \
13341
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13342
$as_echo X"$as_dir" |
13343
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13347
/^X\(\/\/\)[^/].*/{
13360
test -d "$as_dir" && break
13362
test -z "$as_dirs" || eval "mkdir $as_dirs"
13363
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13366
} @%:@ as_fn_mkdir_p
13367
if mkdir -p . 2>/dev/null; then
13368
as_mkdir_p='mkdir -p "$as_dir"'
13370
test -d ./-p && rmdir ./-p
13375
@%:@ as_fn_executable_p FILE
13376
@%:@ -----------------------
13377
@%:@ Test if FILE is an executable regular file.
13378
as_fn_executable_p ()
13380
test -f "$1" && test -x "$1"
13381
} @%:@ as_fn_executable_p
13382
as_test_x='test -x'
13383
as_executable_p=as_fn_executable_p
13385
# Sed expression to map a string onto a valid CPP name.
13386
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13388
# Sed expression to map a string onto a valid variable name.
13389
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13393
## ----------------------------------- ##
13394
## Main body of $CONFIG_STATUS script. ##
13395
## ----------------------------------- ##
13397
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13399
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13400
# Save the log message, to keep $0 and so on meaningful, and to
13401
# report actual input values of CONFIG_FILES etc. instead of their
13402
# values after options handling.
13404
This file was extended by osl $as_me 0.8.4, which was
13405
generated by GNU Autoconf 2.69. Invocation command line was
13407
CONFIG_FILES = $CONFIG_FILES
13408
CONFIG_HEADERS = $CONFIG_HEADERS
13409
CONFIG_LINKS = $CONFIG_LINKS
13410
CONFIG_COMMANDS = $CONFIG_COMMANDS
13413
on `(hostname || uname -n) 2>/dev/null | sed 1q`
13418
case $ac_config_files in *"
13419
"*) set x $ac_config_files; shift; ac_config_files=$*;;
13424
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13425
# Files that config.status was made for.
13426
config_files="$ac_config_files"
13427
config_commands="$ac_config_commands"
13431
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13433
\`$as_me' instantiates files and other configuration actions
13434
from templates according to the current configuration. Unless the files
13435
and actions are specified as TAGs, all are instantiated by default.
13437
Usage: $0 [OPTION]... [TAG]...
13439
-h, --help print this help, then exit
13440
-V, --version print version number and configuration settings, then exit
13441
--config print configuration, then exit
13442
-q, --quiet, --silent
13443
do not print progress messages
13444
-d, --debug don't remove temporary files
13445
--recheck update $as_me by reconfiguring in the same conditions
13446
--file=FILE[:TEMPLATE]
13447
instantiate the configuration file FILE
13449
Configuration files:
13452
Configuration commands:
13455
Report bugs to <cedric.bastoul@u-psud.fr,pouchet@cse.ohio-state.edu>."
13458
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13459
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13461
osl config.status 0.8.4
13462
configured by $0, generated by GNU Autoconf 2.69,
13463
with options \\"\$ac_cs_config\\"
13465
Copyright (C) 2012 Free Software Foundation, Inc.
13466
This config.status script is free software; the Free Software Foundation
13467
gives unlimited permission to copy, distribute and modify it."
13474
test -n "\$AWK" || AWK=awk
13477
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13478
# The default lists apply if the user does not specify any file.
13484
ac_option=`expr "X$1" : 'X\([^=]*\)='`
13485
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13489
ac_option=`expr "X$1" : 'X\([^=]*\)='`
13501
# Handling of the options.
13502
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13504
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13505
$as_echo "$ac_cs_version"; exit ;;
13506
--config | --confi | --conf | --con | --co | --c )
13507
$as_echo "$ac_cs_config"; exit ;;
13508
--debug | --debu | --deb | --de | --d | -d )
13510
--file | --fil | --fi | --f )
13513
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13514
'') as_fn_error $? "missing file argument" ;;
13516
as_fn_append CONFIG_FILES " '$ac_optarg'"
13517
ac_need_defaults=false;;
13518
--he | --h | --help | --hel | -h )
13519
$as_echo "$ac_cs_usage"; exit ;;
13520
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
13521
| -silent | --silent | --silen | --sile | --sil | --si | --s)
13524
# This is an error.
13525
-*) as_fn_error $? "unrecognized option: \`$1'
13526
Try \`$0 --help' for more information." ;;
13528
*) as_fn_append ac_config_targets " $1"
13529
ac_need_defaults=false ;;
13535
ac_configure_extra_args=
13537
if $ac_cs_silent; then
13539
ac_configure_extra_args="$ac_configure_extra_args --silent"
13543
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13544
if \$ac_cs_recheck; then
13545
set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13547
\$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13548
CONFIG_SHELL='$SHELL'
13549
export CONFIG_SHELL
13554
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13558
sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
13559
@%:@@%:@ Running $as_me. @%:@@%:@
13565
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13569
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13572
# The HP-UX ksh and POSIX shell print the target directory to stdout
13573
# if CDPATH is set.
13574
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13576
sed_quote_subst='$sed_quote_subst'
13577
double_quote_subst='$double_quote_subst'
13578
delay_variable_subst='$delay_variable_subst'
13579
macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13580
macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13581
enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13582
enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13583
pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13584
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13585
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13586
ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13587
PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13588
host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13589
host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13590
host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13591
build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13592
build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13593
build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13594
SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13595
Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13596
GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13597
EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13598
FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13599
LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13600
NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13601
LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13602
max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13603
ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13604
exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13605
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13606
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13607
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13608
lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13609
lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13610
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13611
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13612
OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13613
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13614
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13615
file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13616
want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13617
DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13618
sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13619
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13620
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13621
archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13622
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13623
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13624
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13625
old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13626
old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13627
lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13628
CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13629
CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13630
compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13631
GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13632
lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13633
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13634
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13635
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
13636
nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13637
lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13638
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13639
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13640
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13641
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13642
lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13643
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13644
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13645
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13646
MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13647
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13648
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13649
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13650
OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13651
OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13652
libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13653
shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13654
extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13655
archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13656
enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13657
export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13658
whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13659
compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13660
old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13661
old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13662
archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13663
archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13664
module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13665
module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13666
with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13667
allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13668
no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13669
hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13670
hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13671
hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13672
hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13673
hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13674
hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13675
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13676
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13677
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13678
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13679
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13680
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13681
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13682
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13683
postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13684
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13685
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13686
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13687
need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13688
version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13689
runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13690
shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13691
shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13692
libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13693
library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13694
soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13695
install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13696
postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13697
postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13698
finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13699
finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13700
hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13701
sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13702
sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13703
hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13704
enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13705
enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13706
enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13707
old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13708
striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13711
LTCFLAGS='$LTCFLAGS'
13712
compiler='$compiler_DEFAULT'
13714
# A function that is used when there is no print builtin or printf.
13715
func_fallback_echo ()
13717
eval 'cat <<_LTECHO_EOF
13722
# Quote evaled strings.
13737
deplibs_check_method \
13742
sharedlib_from_linklib_cmd \
13745
archiver_list_spec \
13751
lt_cv_sys_global_symbol_pipe \
13752
lt_cv_sys_global_symbol_to_cdecl \
13753
lt_cv_sys_global_symbol_to_c_name_address \
13754
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13755
nm_file_list_spec \
13756
lt_prog_compiler_no_builtin_flag \
13757
lt_prog_compiler_pic \
13758
lt_prog_compiler_wl \
13759
lt_prog_compiler_static \
13760
lt_cv_prog_compiler_c_o \
13769
export_dynamic_flag_spec \
13770
whole_archive_flag_spec \
13771
compiler_needs_object \
13773
allow_undefined_flag \
13774
no_undefined_flag \
13775
hardcode_libdir_flag_spec \
13776
hardcode_libdir_separator \
13780
variables_saved_for_relink \
13782
library_names_spec \
13784
install_override_mode \
13788
case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13789
*[\\\\\\\`\\"\\\$]*)
13790
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13793
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13798
# Double-quote double-evaled strings.
13799
for var in reload_cmds \
13800
old_postinstall_cmds \
13801
old_postuninstall_cmds \
13803
extract_expsyms_cmds \
13804
old_archive_from_new_cmds \
13805
old_archive_from_expsyms_cmds \
13807
archive_expsym_cmds \
13809
module_expsym_cmds \
13810
export_symbols_cmds \
13814
postuninstall_cmds \
13816
sys_lib_search_path_spec \
13817
sys_lib_dlsearch_path_spec; do
13818
case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13819
*[\\\\\\\`\\"\\\$]*)
13820
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13823
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13828
ac_aux_dir='$ac_aux_dir'
13829
xsi_shell='$xsi_shell'
13830
lt_shell_append='$lt_shell_append'
13832
# See if we are running on zsh, and set the options which allow our
13833
# commands through without removal of \ escapes INIT.
13834
if test -n "\${ZSH_VERSION+set}" ; then
13835
setopt NO_GLOB_SUBST
13841
TIMESTAMP='$TIMESTAMP'
13850
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13852
# Handling of arguments.
13853
for ac_config_target in $ac_config_targets
13855
case $ac_config_target in
13856
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13857
"libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13858
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13859
"doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13860
"doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;;
13861
"include/osl/scop.h") CONFIG_FILES="$CONFIG_FILES include/osl/scop.h" ;;
13862
"tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
13864
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13869
# If the user did not use the arguments to specify the items to instantiate,
13870
# then the envvar interface is used. Set only those that are not.
13871
# We use the long form for the default assignment because of an extremely
13872
# bizarre bug on SunOS 4.1.3.
13873
if $ac_need_defaults; then
13874
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13875
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13878
# Have a temporary directory for convenience. Make it in the build tree
13879
# simply because there is no reason against having it here, and in addition,
13880
# creating and moving files from /tmp can sometimes cause problems.
13881
# Hook for its removal unless debugging.
13882
# Note that there is a small window in which the directory will not be cleaned:
13883
# after its creation but before its name has been assigned to `$tmp'.
13887
trap 'exit_status=$?
13888
: "${ac_tmp:=$tmp}"
13889
{ test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
13891
trap 'as_fn_exit 1' 1 2 13 15
13893
# Create a (secure) tmp directory for tmp files.
13896
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13900
tmp=./conf$$-$RANDOM
13901
(umask 077 && mkdir "$tmp")
13902
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13905
# Set up the scripts for CONFIG_FILES section.
13906
# No need to generate them if there are no CONFIG_FILES.
13907
# This happens for instance with `./config.status config.h'.
13908
if test -n "$CONFIG_FILES"; then
13911
ac_cr=`echo X | tr X '\015'`
13912
# On cygwin, bash can eat \r inside `` if the user requested igncr.
13913
# But we know of no other shell where ac_cr would be empty at this
13914
# point, so we can use a bashism as a fallback.
13915
if test "x$ac_cr" = x; then
13916
eval ac_cr=\$\'\\r\'
13918
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13919
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
13922
ac_cs_awk_cr=$ac_cr
13925
echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
13930
echo "cat >conf$$subs.awk <<_ACEOF" &&
13931
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13933
} >conf$$subs.sh ||
13934
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13935
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
13937
for ac_last_try in false false false false false :; do
13938
. ./conf$$subs.sh ||
13939
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13941
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13942
if test $ac_delim_n = $ac_delim_num; then
13944
elif $ac_last_try; then
13945
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13947
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13950
rm -f conf$$subs.sh
13952
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13953
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
13957
s/^/S["/; s/!.*/"]=/
13967
s/\(.\{148\}\)..*/\1/
13969
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13974
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13981
s/\(.\{148\}\)..*/\1/
13983
s/["\\]/\\&/g; s/^/"/; s/$/"/
13987
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13992
' <conf$$subs.awk | sed '
13997
' >>$CONFIG_STATUS || ac_write_fail=1
13998
rm -f conf$$subs.awk
13999
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14001
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14002
for (key in S) S_is_set[key] = 1
14008
nfields = split(line, field, "@")
14010
len = length(field[1])
14011
for (i = 2; i < nfields; i++) {
14013
keylen = length(key)
14014
if (S_is_set[key]) {
14016
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14017
len += length(value) + length(field[++i])
14028
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14029
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14030
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14033
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14034
|| as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14037
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14038
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14039
# trailing colons and then remove the whole line if VPATH becomes empty
14040
# (actually we leave an empty line to preserve line numbers).
14041
if test "x$srcdir" = x.; then
14042
ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14060
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14061
fi # test -n "$CONFIG_FILES"
14064
eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
14069
:[FHLC]) ac_mode=$ac_tag; continue;;
14071
case $ac_mode$ac_tag in
14073
:L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14074
:[FH]-) ac_tag=-:-;;
14075
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14092
-) ac_f="$ac_tmp/stdin";;
14093
*) # Look for the file first in the build tree, then in the source tree
14094
# (if the path is not absolute). The absolute path cannot be DOS-style,
14095
# because $ac_f cannot contain `:'.
14099
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14101
as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14103
case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14104
as_fn_append ac_file_inputs " '$ac_f'"
14107
# Let's still pretend it is `configure' which instantiates (i.e., don't
14108
# use $as_me), people would be surprised to read:
14109
# /* config.h. Generated by config.status. */
14110
configure_input='Generated from '`
14111
$as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14113
if test x"$ac_file" != x-; then
14114
configure_input="$ac_file. $configure_input"
14115
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14116
$as_echo "$as_me: creating $ac_file" >&6;}
14118
# Neutralize special characters interpreted by sed in replacement strings.
14119
case $configure_input in #(
14120
*\&* | *\|* | *\\* )
14121
ac_sed_conf_input=`$as_echo "$configure_input" |
14122
sed 's/[\\\\&|]/\\\\&/g'`;; #(
14123
*) ac_sed_conf_input=$configure_input;;
14127
*:-:* | *:-) cat >"$ac_tmp/stdin" \
14128
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14133
ac_dir=`$as_dirname -- "$ac_file" ||
14134
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14135
X"$ac_file" : 'X\(//\)[^/]' \| \
14136
X"$ac_file" : 'X\(//\)$' \| \
14137
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14138
$as_echo X"$ac_file" |
14139
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14143
/^X\(\/\/\)[^/].*/{
14156
as_dir="$ac_dir"; as_fn_mkdir_p
14160
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14162
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14163
# A ".." for each directory in $ac_dir_suffix.
14164
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14165
case $ac_top_builddir_sub in
14166
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14167
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14170
ac_abs_top_builddir=$ac_pwd
14171
ac_abs_builddir=$ac_pwd$ac_dir_suffix
14172
# for backward compatibility:
14173
ac_top_builddir=$ac_top_build_prefix
14176
.) # We are building in place.
14178
ac_top_srcdir=$ac_top_builddir_sub
14179
ac_abs_top_srcdir=$ac_pwd ;;
14180
[\\/]* | ?:[\\/]* ) # Absolute name.
14181
ac_srcdir=$srcdir$ac_dir_suffix;
14182
ac_top_srcdir=$srcdir
14183
ac_abs_top_srcdir=$srcdir ;;
14184
*) # Relative name.
14185
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14186
ac_top_srcdir=$ac_top_build_prefix$srcdir
14187
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14189
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14199
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14200
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14202
ac_MKDIR_P=$MKDIR_P
14204
[\\/$]* | ?:[\\/]* ) ;;
14205
*/*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14209
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14210
# If the template does not know about datarootdir, expand it.
14211
# FIXME: This hack should be removed a few years after 2.60.
14212
ac_datarootdir_hack=; ac_datarootdir_seen=
14223
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14224
*datarootdir*) ac_datarootdir_seen=yes;;
14225
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14226
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14227
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14229
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14230
ac_datarootdir_hack='
14231
s&@datadir@&$datadir&g
14232
s&@docdir@&$docdir&g
14233
s&@infodir@&$infodir&g
14234
s&@localedir@&$localedir&g
14235
s&@mandir@&$mandir&g
14236
s&\\\${datarootdir}&$datarootdir&g' ;;
14240
# Neutralize VPATH when `$srcdir' = `.'.
14241
# Shell code in configure.ac might set extrasub.
14242
# FIXME: do we really want to maintain this feature?
14243
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14244
ac_sed_extra="$ac_vpsub
14247
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14249
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14250
s|@configure_input@|$ac_sed_conf_input|;t t
14251
s&@top_builddir@&$ac_top_builddir_sub&;t t
14252
s&@top_build_prefix@&$ac_top_build_prefix&;t t
14253
s&@srcdir@&$ac_srcdir&;t t
14254
s&@abs_srcdir@&$ac_abs_srcdir&;t t
14255
s&@top_srcdir@&$ac_top_srcdir&;t t
14256
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14257
s&@builddir@&$ac_builddir&;t t
14258
s&@abs_builddir@&$ac_abs_builddir&;t t
14259
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14260
s&@INSTALL@&$ac_INSTALL&;t t
14261
s&@MKDIR_P@&$ac_MKDIR_P&;t t
14262
$ac_datarootdir_hack
14264
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14265
>$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14267
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14268
{ ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14269
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14270
"$ac_tmp/out"`; test -z "$ac_out"; } &&
14271
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14272
which seems to be undefined. Please make sure it is defined" >&5
14273
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14274
which seems to be undefined. Please make sure it is defined" >&2;}
14276
rm -f "$ac_tmp/stdin"
14278
-) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14279
*) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14281
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
14285
:C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14286
$as_echo "$as_me: executing $ac_file commands" >&6;}
14291
case $ac_file$ac_mode in
14292
"depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14293
# Autoconf 2.62 quotes --file arguments for eval, but not when files
14294
# are listed without --file. Let's play safe and only enable the eval
14295
# if we detect the quoting.
14296
case $CONFIG_FILES in
14297
*\'*) eval set x "$CONFIG_FILES" ;;
14298
*) set x $CONFIG_FILES ;;
14303
# Strip MF so we end up with the name of the file.
14304
mf=`echo "$mf" | sed -e 's/:.*$//'`
14305
# Check whether this is an Automake generated Makefile or not.
14306
# We used to match only the files named `Makefile.in', but
14307
# some people rename them; so instead we look at the file content.
14308
# Grep'ing the first line is not enough: some people post-process
14309
# each Makefile.in and add a new line on top of each file to say so.
14310
# Grep'ing the whole file is not good either: AIX grep has a line
14311
# limit of 2048, but all sed's we know have understand at least 4000.
14312
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14313
dirpart=`$as_dirname -- "$mf" ||
14314
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14315
X"$mf" : 'X\(//\)[^/]' \| \
14316
X"$mf" : 'X\(//\)$' \| \
14317
X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14319
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14323
/^X\(\/\/\)[^/].*/{
14339
# Extract the definition of DEPDIR, am__include, and am__quote
14340
# from the Makefile without running `make'.
14341
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14342
test -z "$DEPDIR" && continue
14343
am__include=`sed -n 's/^am__include = //p' < "$mf"`
14344
test -z "am__include" && continue
14345
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14346
# When using ansi2knr, U may be empty or an underscore; expand it
14347
U=`sed -n 's/^U = //p' < "$mf"`
14348
# Find all dependency output files, they are included files with
14349
# $(DEPDIR) in their names. We invoke sed twice because it is the
14350
# simplest approach to changing $(DEPDIR) to its actual value in the
14352
for file in `sed -n "
14353
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14354
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14355
# Make sure the directory exists.
14356
test -f "$dirpart/$file" && continue
14357
fdir=`$as_dirname -- "$file" ||
14358
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14359
X"$file" : 'X\(//\)[^/]' \| \
14360
X"$file" : 'X\(//\)$' \| \
14361
X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14362
$as_echo X"$file" |
14363
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14367
/^X\(\/\/\)[^/].*/{
14380
as_dir=$dirpart/$fdir; as_fn_mkdir_p
14381
# echo "creating $dirpart/$file"
14382
echo '# dummy' > "$dirpart/$file"
14389
# See if we are running on zsh, and set the options which allow our
14390
# commands through without removal of \ escapes.
14391
if test -n "${ZSH_VERSION+set}" ; then
14392
setopt NO_GLOB_SUBST
14395
cfgfile="${ofile}T"
14396
trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14399
cat <<_LT_EOF >> "$cfgfile"
14402
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14403
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14404
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14405
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14407
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14408
# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14410
# Written by Gordon Matzigkeit, 1996
14412
# This file is part of GNU Libtool.
14414
# GNU Libtool is free software; you can redistribute it and/or
14415
# modify it under the terms of the GNU General Public License as
14416
# published by the Free Software Foundation; either version 2 of
14417
# the License, or (at your option) any later version.
14419
# As a special exception to the GNU General Public License,
14420
# if you distribute this file as part of a program or library that
14421
# is built using GNU Libtool, you may include this file under the
14422
# same distribution terms that you use for the rest of that program.
14424
# GNU Libtool is distributed in the hope that it will be useful,
14425
# but WITHOUT ANY WARRANTY; without even the implied warranty of
14426
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14427
# GNU General Public License for more details.
14429
# You should have received a copy of the GNU General Public License
14430
# along with GNU Libtool; see the file COPYING. If not, a copy
14431
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14432
# obtained by writing to the Free Software Foundation, Inc.,
14433
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14436
# The names of the tagged configurations supported by this script.
14439
# ### BEGIN LIBTOOL CONFIG
14441
# Which release of libtool.m4 was used?
14442
macro_version=$macro_version
14443
macro_revision=$macro_revision
14445
# Whether or not to build shared libraries.
14446
build_libtool_libs=$enable_shared
14448
# Whether or not to build static libraries.
14449
build_old_libs=$enable_static
14451
# What type of objects to build.
14454
# Whether or not to optimize for fast installation.
14455
fast_install=$enable_fast_install
14457
# Shell to use when invoking shell scripts.
14460
# An echo program that protects backslashes.
14463
# The PATH separator for the build system.
14464
PATH_SEPARATOR=$lt_PATH_SEPARATOR
14467
host_alias=$host_alias
14471
# The build system.
14472
build_alias=$build_alias
14476
# A sed program that does not truncate output.
14479
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14480
Xsed="\$SED -e 1s/^X//"
14482
# A grep program that handles long lines.
14488
# A literal string matcher.
14491
# A BSD- or MS-compatible name lister.
14494
# Whether we need soft or hard links.
14497
# What is the maximum length of a command?
14498
max_cmd_len=$max_cmd_len
14500
# Object file suffix (normally "o").
14503
# Executable file suffix (normally "").
14506
# whether the shell understands "unset".
14509
# turn spaces into newlines.
14512
# turn newlines into spaces.
14515
# convert \$build file names to \$host format.
14516
to_host_file_cmd=$lt_cv_to_host_file_cmd
14518
# convert \$build files to toolchain format.
14519
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14521
# An object symbol dumper.
14522
OBJDUMP=$lt_OBJDUMP
14524
# Method to check whether dependent libraries are shared objects.
14525
deplibs_check_method=$lt_deplibs_check_method
14527
# Command to use when deplibs_check_method = "file_magic".
14528
file_magic_cmd=$lt_file_magic_cmd
14530
# How to find potential files when deplibs_check_method = "file_magic".
14531
file_magic_glob=$lt_file_magic_glob
14533
# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14534
want_nocaseglob=$lt_want_nocaseglob
14536
# DLL creation program.
14537
DLLTOOL=$lt_DLLTOOL
14539
# Command to associate shared and link libraries.
14540
sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14545
# Flags to create an archive.
14546
AR_FLAGS=$lt_AR_FLAGS
14548
# How to feed a file listing to the archiver.
14549
archiver_list_spec=$lt_archiver_list_spec
14551
# A symbol stripping program.
14554
# Commands used to install an old-style archive.
14556
old_postinstall_cmds=$lt_old_postinstall_cmds
14557
old_postuninstall_cmds=$lt_old_postuninstall_cmds
14559
# Whether to use a lock for old archive extraction.
14560
lock_old_archive_extraction=$lock_old_archive_extraction
14565
# LTCC compiler flags.
14566
LTCFLAGS=$lt_CFLAGS
14568
# Take the output of nm and produce a listing of raw symbols and C names.
14569
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14571
# Transform the output of nm in a proper C declaration.
14572
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14574
# Transform the output of nm in a C name address pair.
14575
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14577
# Transform the output of nm in a C name address pair when lib prefix is needed.
14578
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14580
# Specify filename containing input files for \$NM.
14581
nm_file_list_spec=$lt_nm_file_list_spec
14583
# The root where to search for dependent libraries,and in which our libraries should be installed.
14584
lt_sysroot=$lt_sysroot
14586
# The name of the directory that contains temporary libtool files.
14589
# Used to examine libraries when file_magic_cmd begins with "file".
14590
MAGIC_CMD=$MAGIC_CMD
14592
# Must we lock files when doing compilation?
14593
need_locks=$lt_need_locks
14596
MANIFEST_TOOL=$lt_MANIFEST_TOOL
14598
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14599
DSYMUTIL=$lt_DSYMUTIL
14601
# Tool to change global to local symbols on Mac OS X.
14604
# Tool to manipulate fat objects and archives on Mac OS X.
14607
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14610
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14611
OTOOL64=$lt_OTOOL64
14613
# Old archive suffix (normally "a").
14616
# Shared library suffix (normally ".so").
14617
shrext_cmds=$lt_shrext_cmds
14619
# The commands to extract the exported symbol list from a shared archive.
14620
extract_expsyms_cmds=$lt_extract_expsyms_cmds
14622
# Variables whose values should be saved in libtool wrapper scripts and
14623
# restored at link time.
14624
variables_saved_for_relink=$lt_variables_saved_for_relink
14626
# Do we need the "lib" prefix for modules?
14627
need_lib_prefix=$need_lib_prefix
14629
# Do we need a version for libraries?
14630
need_version=$need_version
14632
# Library versioning type.
14633
version_type=$version_type
14635
# Shared library runtime path variable.
14636
runpath_var=$runpath_var
14638
# Shared library path variable.
14639
shlibpath_var=$shlibpath_var
14641
# Is shlibpath searched before the hard-coded library search path?
14642
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14644
# Format of library name prefix.
14645
libname_spec=$lt_libname_spec
14647
# List of archive names. First name is the real one, the rest are links.
14648
# The last name is the one that the linker finds with -lNAME
14649
library_names_spec=$lt_library_names_spec
14651
# The coded name of the library, if different from the real name.
14652
soname_spec=$lt_soname_spec
14654
# Permission mode override for installation of shared libraries.
14655
install_override_mode=$lt_install_override_mode
14657
# Command to use after installation of a shared archive.
14658
postinstall_cmds=$lt_postinstall_cmds
14660
# Command to use after uninstallation of a shared archive.
14661
postuninstall_cmds=$lt_postuninstall_cmds
14663
# Commands used to finish a libtool library installation in a directory.
14664
finish_cmds=$lt_finish_cmds
14666
# As "finish_cmds", except a single script fragment to be evaled but
14668
finish_eval=$lt_finish_eval
14670
# Whether we should hardcode library paths into libraries.
14671
hardcode_into_libs=$hardcode_into_libs
14673
# Compile-time system search path for libraries.
14674
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14676
# Run-time system search path for libraries.
14677
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14679
# Whether dlopen is supported.
14680
dlopen_support=$enable_dlopen
14682
# Whether dlopen of programs is supported.
14683
dlopen_self=$enable_dlopen_self
14685
# Whether dlopen of statically linked programs is supported.
14686
dlopen_self_static=$enable_dlopen_self_static
14688
# Commands to strip libraries.
14689
old_striplib=$lt_old_striplib
14690
striplib=$lt_striplib
14693
# The linker used to build libraries.
14696
# How to create reloadable object files.
14697
reload_flag=$lt_reload_flag
14698
reload_cmds=$lt_reload_cmds
14700
# Commands used to build an old-style archive.
14701
old_archive_cmds=$lt_old_archive_cmds
14703
# A language specific compiler.
14706
# Is the compiler the GNU compiler?
14709
# Compiler flag to turn off builtin functions.
14710
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14712
# Additional compiler flags for building library objects.
14713
pic_flag=$lt_lt_prog_compiler_pic
14715
# How to pass a linker flag through the compiler.
14716
wl=$lt_lt_prog_compiler_wl
14718
# Compiler flag to prevent dynamic linking.
14719
link_static_flag=$lt_lt_prog_compiler_static
14721
# Does compiler simultaneously support -c and -o options?
14722
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14724
# Whether or not to add -lc for building shared libraries.
14725
build_libtool_need_lc=$archive_cmds_need_lc
14727
# Whether or not to disallow shared libs when runtime libs are static.
14728
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14730
# Compiler flag to allow reflexive dlopens.
14731
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14733
# Compiler flag to generate shared objects directly from archives.
14734
whole_archive_flag_spec=$lt_whole_archive_flag_spec
14736
# Whether the compiler copes with passing no objects directly.
14737
compiler_needs_object=$lt_compiler_needs_object
14739
# Create an old-style archive from a shared archive.
14740
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14742
# Create a temporary old-style archive to link instead of a shared archive.
14743
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14745
# Commands used to build a shared archive.
14746
archive_cmds=$lt_archive_cmds
14747
archive_expsym_cmds=$lt_archive_expsym_cmds
14749
# Commands used to build a loadable module if different from building
14750
# a shared archive.
14751
module_cmds=$lt_module_cmds
14752
module_expsym_cmds=$lt_module_expsym_cmds
14754
# Whether we are building with GNU ld or not.
14755
with_gnu_ld=$lt_with_gnu_ld
14757
# Flag that allows shared libraries with undefined symbols to be built.
14758
allow_undefined_flag=$lt_allow_undefined_flag
14760
# Flag that enforces no undefined symbols.
14761
no_undefined_flag=$lt_no_undefined_flag
14763
# Flag to hardcode \$libdir into a binary during linking.
14764
# This must work even if \$libdir does not exist
14765
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14767
# Whether we need a single "-rpath" flag with a separated argument.
14768
hardcode_libdir_separator=$lt_hardcode_libdir_separator
14770
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14771
# DIR into the resulting binary.
14772
hardcode_direct=$hardcode_direct
14774
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
14775
# DIR into the resulting binary and the resulting library dependency is
14776
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
14777
# library is relocated.
14778
hardcode_direct_absolute=$hardcode_direct_absolute
14780
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
14781
# into the resulting binary.
14782
hardcode_minus_L=$hardcode_minus_L
14784
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
14785
# into the resulting binary.
14786
hardcode_shlibpath_var=$hardcode_shlibpath_var
14788
# Set to "yes" if building a shared library automatically hardcodes DIR
14789
# into the library and all subsequent libraries and executables linked
14791
hardcode_automatic=$hardcode_automatic
14793
# Set to yes if linker adds runtime paths of dependent libraries
14794
# to runtime path list.
14795
inherit_rpath=$inherit_rpath
14797
# Whether libtool must link a program against all its dependency libraries.
14798
link_all_deplibs=$link_all_deplibs
14800
# Set to "yes" if exported symbols are required.
14801
always_export_symbols=$always_export_symbols
14803
# The commands to list exported symbols.
14804
export_symbols_cmds=$lt_export_symbols_cmds
14806
# Symbols that should not be listed in the preloaded symbols.
14807
exclude_expsyms=$lt_exclude_expsyms
14809
# Symbols that must always be exported.
14810
include_expsyms=$lt_include_expsyms
14812
# Commands necessary for linking programs (against libraries) with templates.
14813
prelink_cmds=$lt_prelink_cmds
14815
# Commands necessary for finishing linking programs.
14816
postlink_cmds=$lt_postlink_cmds
14818
# Specify filename containing input files.
14819
file_list_spec=$lt_file_list_spec
14821
# How to hardcode a shared library path into an executable.
14822
hardcode_action=$hardcode_action
14824
# ### END LIBTOOL CONFIG
14830
cat <<\_LT_EOF >> "$cfgfile"
14831
# AIX sometimes has problems with the GCC collect2 program. For some
14832
# reason, if we set the COLLECT_NAMES environment variable, the problems
14833
# vanish in a puff of smoke.
14834
if test "X${COLLECT_NAMES+set}" != Xset; then
14836
export COLLECT_NAMES
14843
ltmain="$ac_aux_dir/ltmain.sh"
14846
# We use sed instead of cat because bash on DJGPP gets confused if
14847
# if finds mixed CR/LF and LF-only lines. Since sed operates in
14848
# text mode, it properly converts lines to CR/LF. This bash problem
14849
# is reportedly fixed, but why not run on old versions too?
14850
sed '$q' "$ltmain" >> "$cfgfile" \
14851
|| (rm -f "$cfgfile"; exit 1)
14853
if test x"$xsi_shell" = xyes; then
14854
sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
14858
\ */*) func_dirname_result="${1%/*}${2}" ;;\
14859
\ * ) func_dirname_result="${3}" ;;\
14861
} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
14862
&& mv -f "$cfgfile.tmp" "$cfgfile" \
14863
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14864
test 0 -eq $? || _lt_function_replace_fail=:
14867
sed -e '/^func_basename ()$/,/^} # func_basename /c\
14870
\ func_basename_result="${1##*/}"\
14871
} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
14872
&& mv -f "$cfgfile.tmp" "$cfgfile" \
14873
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14874
test 0 -eq $? || _lt_function_replace_fail=:
14877
sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
14878
func_dirname_and_basename ()\
14881
\ */*) func_dirname_result="${1%/*}${2}" ;;\
14882
\ * ) func_dirname_result="${3}" ;;\
14884
\ func_basename_result="${1##*/}"\
14885
} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
14886
&& mv -f "$cfgfile.tmp" "$cfgfile" \
14887
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14888
test 0 -eq $? || _lt_function_replace_fail=:
14891
sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
14894
\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
14895
\ # positional parameters, so assign one to ordinary parameter first.\
14896
\ func_stripname_result=${3}\
14897
\ func_stripname_result=${func_stripname_result#"${1}"}\
14898
\ func_stripname_result=${func_stripname_result%"${2}"}\
14899
} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
14900
&& mv -f "$cfgfile.tmp" "$cfgfile" \
14901
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14902
test 0 -eq $? || _lt_function_replace_fail=:
14905
sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
14906
func_split_long_opt ()\
14908
\ func_split_long_opt_name=${1%%=*}\
14909
\ func_split_long_opt_arg=${1#*=}\
14910
} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
14911
&& mv -f "$cfgfile.tmp" "$cfgfile" \
14912
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14913
test 0 -eq $? || _lt_function_replace_fail=:
14916
sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
14917
func_split_short_opt ()\
14919
\ func_split_short_opt_arg=${1#??}\
14920
\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
14921
} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
14922
&& mv -f "$cfgfile.tmp" "$cfgfile" \
14923
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14924
test 0 -eq $? || _lt_function_replace_fail=:
14927
sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
14931
\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
14932
\ *) func_lo2o_result=${1} ;;\
14934
} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
14935
&& mv -f "$cfgfile.tmp" "$cfgfile" \
14936
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14937
test 0 -eq $? || _lt_function_replace_fail=:
14940
sed -e '/^func_xform ()$/,/^} # func_xform /c\
14943
func_xform_result=${1%.*}.lo\
14944
} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
14945
&& mv -f "$cfgfile.tmp" "$cfgfile" \
14946
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14947
test 0 -eq $? || _lt_function_replace_fail=:
14950
sed -e '/^func_arith ()$/,/^} # func_arith /c\
14953
func_arith_result=$(( $* ))\
14954
} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
14955
&& mv -f "$cfgfile.tmp" "$cfgfile" \
14956
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14957
test 0 -eq $? || _lt_function_replace_fail=:
14960
sed -e '/^func_len ()$/,/^} # func_len /c\
14963
func_len_result=${#1}\
14964
} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
14965
&& mv -f "$cfgfile.tmp" "$cfgfile" \
14966
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14967
test 0 -eq $? || _lt_function_replace_fail=:
14971
if test x"$lt_shell_append" = xyes; then
14972
sed -e '/^func_append ()$/,/^} # func_append /c\
14975
eval "${1}+=\\${2}"\
14976
} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
14977
&& mv -f "$cfgfile.tmp" "$cfgfile" \
14978
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14979
test 0 -eq $? || _lt_function_replace_fail=:
14982
sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
14983
func_append_quoted ()\
14985
\ func_quote_for_eval "${2}"\
14986
\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
14987
} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
14988
&& mv -f "$cfgfile.tmp" "$cfgfile" \
14989
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14990
test 0 -eq $? || _lt_function_replace_fail=:
14993
# Save a `func_append' function call where possible by direct use of '+='
14994
sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
14995
&& mv -f "$cfgfile.tmp" "$cfgfile" \
14996
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
14997
test 0 -eq $? || _lt_function_replace_fail=:
14999
# Save a `func_append' function call even when '+=' is not available
15000
sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15001
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15002
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15003
test 0 -eq $? || _lt_function_replace_fail=:
15006
if test x"$_lt_function_replace_fail" = x":"; then
15007
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15008
$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15012
mv -f "$cfgfile" "$ofile" ||
15013
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15017
"Makefile":F) test -z "$CONFIG_HEADERS" || echo timestamp > source/stamp-h.in ;;
15018
"doc/Makefile":F) test -z "$CONFIG_HEADERS" || echo timestamp > source/stamp-h.in ;;
15019
"doc/Doxyfile":F) test -z "$CONFIG_HEADERS" || echo timestamp > source/stamp-h.in ;;
15020
"include/osl/scop.h":F) test -z "$CONFIG_HEADERS" || echo timestamp > source/stamp-h.in ;;
15021
"tests/Makefile":F) test -z "$CONFIG_HEADERS" || echo timestamp > source/stamp-h.in ;;
15029
ac_clean_files=$ac_clean_files_save
15031
test $ac_write_fail = 0 ||
15032
as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15035
# configure is writing to config.log, and then calls config.status.
15036
# config.status does its own redirection, appending to config.log.
15037
# Unfortunately, on DOS this fails, as config.log is still kept open
15038
# by configure, so config.status won't be able to write to it; its
15039
# output is simply discarded. So we exec the FD to /dev/null,
15040
# effectively closing config.log, so it can be properly (re)opened and
15041
# appended to by config.status. When coming back to configure, we
15042
# need to make the FD available again.
15043
if test "$no_create" != yes; then
15045
ac_config_status_args=
15046
test "$silent" = yes &&
15047
ac_config_status_args="$ac_config_status_args --quiet"
15049
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15051
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
15052
# would make configure fail if this is the last instruction.
15053
$ac_cs_success || as_fn_exit 1
15055
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15056
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15057
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15062
echo " /*-----------------------------------------------*"
15063
echo " * OpenScop Library configuration is OK *"
15064
echo " *-----------------------------------------------*/"
15065
echo "It appears that your system is OK to start the OpenScop Library compilation."
15066
echo "You need now to type \"make\". Then type \"make install\" to install it on your"
15067
echo "system (log as root if necessary)."