2
@%:@ Guess values for system-dependent variables and create Makefiles.
3
@%:@ Generated by GNU Autoconf 2.69 for libdvdread 4.2.0.
6
@%:@ Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9
@%:@ This configure script is free software; the Free Software Foundation
10
@%:@ gives unlimited permission to copy, distribute and modify it.
11
## -------------------- ##
12
## M4sh Initialization. ##
13
## -------------------- ##
15
# Be more Bourne compatible
16
DUALCASE=1; export DUALCASE # for MKS sh
17
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21
# is contrary to our usage. Disable this feature.
22
alias -g '${1+"$@"}'='"$@"'
25
case `(set -o) 2>/dev/null` in @%:@(
37
# Printing a long string crashes Solaris 7 /usr/bin/printf.
38
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41
# Prefer a ksh shell builtin over an external printf program on Solaris,
42
# but without wasting forks for bash or zsh.
43
if test -z "$BASH_VERSION$ZSH_VERSION" \
44
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46
as_echo_n='print -rn --'
47
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53
as_echo_n='/usr/ucb/echo -n'
55
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60
expr "X$arg" : "X\\(.*\\)$as_nl";
61
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66
as_echo_n='sh -c $as_echo_n_body as_echo'
69
as_echo='sh -c $as_echo_body as_echo'
72
# The user is always right.
73
if test "${PATH_SEPARATOR+set}" != set; then
75
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83
# We need space, tab and new line, in precisely that order. Quoting is
84
# there to prevent editors from complaining about space-tab.
85
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86
# splitting by setting IFS to empty value.)
89
# Find who we are. Look in the path if we contain no directory separator.
92
*[\\/]* ) as_myself=$0 ;;
93
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97
test -z "$as_dir" && as_dir=.
98
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104
# We did not find ourselves, most probably we were run as `sh COMMAND'
105
# in which case we are not to be found in the path.
106
if test "x$as_myself" = x; then
109
if test ! -f "$as_myself"; then
110
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114
# Unset variables that we do not need and which cause bugs (e.g. in
115
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116
# suppresses any "Segmentation fault" message there. '((' could
117
# trigger a bug in pdksh 5.2.14.
118
for as_var in BASH_ENV ENV MAIL MAILPATH
119
do eval test x\${$as_var+set} = xset \
120
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
133
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
# Use a proper internal environment variable to ensure we don't fall
136
# into an infinite loop, continuously re-executing ourselves.
137
if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138
_as_can_reexec=no; export _as_can_reexec;
139
# We cannot yet assume a decent shell, so we have to provide a
140
# neutralization value for shells without unset; and this also
141
# works around shells that cannot unset nonexistent variables.
142
# Preserve -v and -x to the replacement shell.
145
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
147
*v*x* | *x*v* ) as_opts=-vx ;;
152
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153
# Admittedly, this is quite paranoid, since all the known shells bail
154
# out after a failed `exec'.
155
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158
# We don't want this to propagate to other subprocesses.
159
{ _as_can_reexec=; unset _as_can_reexec;}
160
if test "x$CONFIG_SHELL" = x; then
161
as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164
# Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165
# is contrary to our usage. Disable this feature.
166
alias -g '\${1+\"\$@\"}'='\"\$@\"'
169
case \`(set -o) 2>/dev/null\` in @%:@(
171
set -o posix ;; @%:@(
177
as_required="as_fn_return () { (exit \$1); }
178
as_fn_success () { as_fn_return 0; }
179
as_fn_failure () { as_fn_return 1; }
180
as_fn_ret_success () { return 0; }
181
as_fn_ret_failure () { return 1; }
184
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
exitcode=1; echo positional parameters were not saved.
193
test x\$exitcode = x0 || exit 1
195
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198
test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
200
test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202
ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203
ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204
PATH=/empty FPATH=/empty; export PATH FPATH
205
test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206
|| test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207
test \$(( 1 + 1 )) = 2 || exit 1"
208
if (eval "$as_required") 2>/dev/null; then :
213
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221
test -z "$as_dir" && as_dir=.
223
case $as_dir in @%:@(
225
for as_base in sh bash ksh sh5; do
226
# Try only shells that exist, to save several forks.
227
as_shell=$as_dir/$as_base
228
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230
CONFIG_SHELL=$as_shell as_have_required=yes
231
if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
239
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241
CONFIG_SHELL=$SHELL as_have_required=yes
246
if test "x$CONFIG_SHELL" != x; then :
248
# We cannot yet assume a decent shell, so we have to provide a
249
# neutralization value for shells without unset; and this also
250
# works around shells that cannot unset nonexistent variables.
251
# Preserve -v and -x to the replacement shell.
254
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
256
*v*x* | *x*v* ) as_opts=-vx ;;
261
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262
# Admittedly, this is quite paranoid, since all the known shells bail
263
# out after a failed `exec'.
264
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
268
if test x$as_have_required = xno; then :
269
$as_echo "$0: This script requires a shell more modern than all"
270
$as_echo "$0: the shells that I found on your system."
271
if test x${ZSH_VERSION+set} = xset ; then
272
$as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273
$as_echo "$0: be upgraded to zsh 4.3.4 or later."
275
$as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276
$0: including any error possibly output before this
277
$0: message. Then install a modern shell, or manually run
278
$0: the script under such a shell if you do have one."
284
SHELL=${CONFIG_SHELL-/bin/sh}
286
# Unset more variables known to interfere with behavior of common tools.
287
CLICOLOR_FORCE= GREP_OPTIONS=
288
unset CLICOLOR_FORCE GREP_OPTIONS
290
## --------------------- ##
291
## M4sh Shell Functions. ##
292
## --------------------- ##
295
@%:@ Portably unset VAR.
298
{ eval $1=; unset $1;}
302
@%:@ as_fn_set_status STATUS
303
@%:@ -----------------------
304
@%:@ Set @S|@? to STATUS, without forking.
308
} @%:@ as_fn_set_status
310
@%:@ as_fn_exit STATUS
311
@%:@ -----------------
312
@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
322
@%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
327
-*) as_dir=./$as_dir;;
329
test -d "$as_dir" || eval $as_mkdir_p || {
333
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
336
as_dirs="'$as_qdir' $as_dirs"
337
as_dir=`$as_dirname -- "$as_dir" ||
338
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339
X"$as_dir" : 'X\(//\)[^/]' \| \
340
X"$as_dir" : 'X\(//\)$' \| \
341
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342
$as_echo X"$as_dir" |
343
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
360
test -d "$as_dir" && break
362
test -z "$as_dirs" || eval "mkdir $as_dirs"
363
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
368
@%:@ as_fn_executable_p FILE
369
@%:@ -----------------------
370
@%:@ Test if FILE is an executable regular file.
371
as_fn_executable_p ()
373
test -f "$1" && test -x "$1"
374
} @%:@ as_fn_executable_p
375
@%:@ as_fn_append VAR VALUE
376
@%:@ ----------------------
377
@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
378
@%:@ advantage of any shell optimizations that allow amortized linear growth over
379
@%:@ repeated appends, instead of the typical quadratic growth present in naive
380
@%:@ implementations.
381
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382
eval 'as_fn_append ()
393
@%:@ as_fn_arith ARG...
394
@%:@ ------------------
395
@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
396
@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
397
@%:@ must be portable across @S|@(()) and expr.
398
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
406
as_val=`expr "$@" || test $? -eq 1`
411
@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
412
@%:@ ----------------------------------------
413
@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414
@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415
@%:@ script with STATUS, using 1 if that was 0.
418
as_status=$1; test $as_status -eq 0 && as_status=1
420
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423
$as_echo "$as_me: error: $2" >&2
424
as_fn_exit $as_status
427
if expr a : '\(a\)' >/dev/null 2>&1 &&
428
test "X`expr 00001 : '.*\(...\)'`" = X001; then
434
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
440
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
446
as_me=`$as_basename -- "$0" ||
447
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448
X"$0" : 'X\(//\)$' \| \
449
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
451
sed '/^.*\/\([^/][^/]*\)\/*$/{
465
# Avoid depending upon Character Ranges.
466
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469
as_cr_digits='0123456789'
470
as_cr_alnum=$as_cr_Letters$as_cr_digits
473
as_lineno_1=$LINENO as_lineno_1a=$LINENO
474
as_lineno_2=$LINENO as_lineno_2a=$LINENO
475
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
489
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493
chmod +x "$as_me.lineno" ||
494
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
496
# If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497
# already done that, so ensure we don't try to do so again and fall
498
# in an infinite loop. This has already happened in practice.
499
_as_can_reexec=no; export _as_can_reexec
500
# Don't try to exec as it changes $[0], causing all sort of problems
501
# (the dirname of $[0] is not the place where we might find the
502
# original and so on. Autoconf is especially sensitive to this).
504
# Exit status is that of the last command.
508
ECHO_C= ECHO_N= ECHO_T=
509
case `echo -n x` in @%:@(((((
511
case `echo 'xy\c'` in
512
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
514
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
521
rm -f conf$$ conf$$.exe conf$$.file
522
if test -d conf$$.dir; then
523
rm -f conf$$.dir/conf$$.file
526
mkdir conf$$.dir 2>/dev/null
528
if (echo >conf$$.file) 2>/dev/null; then
529
if ln -s conf$$.file conf$$ 2>/dev/null; then
531
# ... but there are two gotchas:
532
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534
# In both cases, we have to default to `cp -pR'.
535
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
537
elif ln conf$$.file conf$$ 2>/dev/null; then
545
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546
rmdir conf$$.dir 2>/dev/null
548
if mkdir -p . 2>/dev/null; then
549
as_mkdir_p='mkdir -p "$as_dir"'
551
test -d ./-p && rmdir ./-p
556
as_executable_p=as_fn_executable_p
558
# Sed expression to map a string onto a valid CPP name.
559
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561
# Sed expression to map a string onto a valid variable name.
562
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564
SHELL=${CONFIG_SHELL-/bin/sh}
567
test -n "$DJDIR" || exec 7<&0 </dev/null
571
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572
# so uname gets run too.
573
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
578
ac_default_prefix=/usr/local
580
ac_config_libobj_dir=.
587
# Identity of this package.
588
PACKAGE_NAME='libdvdread'
589
PACKAGE_TARNAME='libdvdread'
590
PACKAGE_VERSION='4.2.0'
591
PACKAGE_STRING='libdvdread 4.2.0'
595
ac_unique_file="src/dvdread/dvd_reader.h"
596
# Factoring default headers for most tests.
597
ac_includes_default="\
599
#ifdef HAVE_SYS_TYPES_H
600
# include <sys/types.h>
602
#ifdef HAVE_SYS_STAT_H
603
# include <sys/stat.h>
609
# ifdef HAVE_STDLIB_H
614
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619
#ifdef HAVE_STRINGS_H
620
# include <strings.h>
622
#ifdef HAVE_INTTYPES_H
623
# include <inttypes.h>
632
ac_subst_vars='am__EXEEXT_FALSE
704
INSTALL_STRIP_PROGRAM
746
program_transform_name
759
enable_option_checking
760
enable_dependency_tracking
771
ac_precious_vars='build_alias
782
# Initialize some variables set by options.
784
ac_init_version=false
785
ac_unrecognized_opts=
787
# The variables have the same names as the options, with
788
# dashes changed to underlines.
796
program_transform_name=s,x,x,
804
# Installation directory options.
805
# These are left unexpanded so users can "make install exec_prefix=/foo"
806
# and all the variables that are supposed to be based on exec_prefix
807
# by default will actually change.
808
# Use braces instead of parens because sh, perl, etc. also accept them.
809
# (The list follows the same order as the GNU Coding Standards.)
810
bindir='${exec_prefix}/bin'
811
sbindir='${exec_prefix}/sbin'
812
libexecdir='${exec_prefix}/libexec'
813
datarootdir='${prefix}/share'
814
datadir='${datarootdir}'
815
sysconfdir='${prefix}/etc'
816
sharedstatedir='${prefix}/com'
817
localstatedir='${prefix}/var'
818
includedir='${prefix}/include'
819
oldincludedir='/usr/include'
820
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
821
infodir='${datarootdir}/info'
826
libdir='${exec_prefix}/lib'
827
localedir='${datarootdir}/locale'
828
mandir='${datarootdir}/man'
834
# If the previous option needs an argument, assign it.
835
if test -n "$ac_prev"; then
836
eval $ac_prev=\$ac_option
842
*=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
847
# Accept the important Cygnus configure options, so we can diagnose typos.
849
case $ac_dashdash$ac_option in
853
-bindir | --bindir | --bindi | --bind | --bin | --bi)
855
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
858
-build | --build | --buil | --bui | --bu)
859
ac_prev=build_alias ;;
860
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
861
build_alias=$ac_optarg ;;
863
-cache-file | --cache-file | --cache-fil | --cache-fi \
864
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
865
ac_prev=cache_file ;;
866
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
867
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
868
cache_file=$ac_optarg ;;
871
cache_file=config.cache ;;
873
-datadir | --datadir | --datadi | --datad)
875
-datadir=* | --datadir=* | --datadi=* | --datad=*)
876
datadir=$ac_optarg ;;
878
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
879
| --dataroo | --dataro | --datar)
880
ac_prev=datarootdir ;;
881
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
882
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
883
datarootdir=$ac_optarg ;;
885
-disable-* | --disable-*)
886
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
887
# Reject names that are not valid shell variable names.
888
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
889
as_fn_error $? "invalid feature name: $ac_useropt"
890
ac_useropt_orig=$ac_useropt
891
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
892
case $ac_user_opts in
896
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
897
ac_unrecognized_sep=', ';;
899
eval enable_$ac_useropt=no ;;
901
-docdir | --docdir | --docdi | --doc | --do)
903
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
906
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
908
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
911
-enable-* | --enable-*)
912
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
913
# Reject names that are not valid shell variable names.
914
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
915
as_fn_error $? "invalid feature name: $ac_useropt"
916
ac_useropt_orig=$ac_useropt
917
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
918
case $ac_user_opts in
922
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
923
ac_unrecognized_sep=', ';;
925
eval enable_$ac_useropt=\$ac_optarg ;;
927
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
928
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
929
| --exec | --exe | --ex)
930
ac_prev=exec_prefix ;;
931
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
932
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
933
| --exec=* | --exe=* | --ex=*)
934
exec_prefix=$ac_optarg ;;
936
-gas | --gas | --ga | --g)
937
# Obsolete; use --with-gas.
940
-help | --help | --hel | --he | -h)
942
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
943
ac_init_help=recursive ;;
944
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
945
ac_init_help=short ;;
947
-host | --host | --hos | --ho)
948
ac_prev=host_alias ;;
949
-host=* | --host=* | --hos=* | --ho=*)
950
host_alias=$ac_optarg ;;
952
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
954
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
956
htmldir=$ac_optarg ;;
958
-includedir | --includedir | --includedi | --included | --include \
959
| --includ | --inclu | --incl | --inc)
960
ac_prev=includedir ;;
961
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
962
| --includ=* | --inclu=* | --incl=* | --inc=*)
963
includedir=$ac_optarg ;;
965
-infodir | --infodir | --infodi | --infod | --info | --inf)
967
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
968
infodir=$ac_optarg ;;
970
-libdir | --libdir | --libdi | --libd)
972
-libdir=* | --libdir=* | --libdi=* | --libd=*)
975
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
976
| --libexe | --libex | --libe)
977
ac_prev=libexecdir ;;
978
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
979
| --libexe=* | --libex=* | --libe=*)
980
libexecdir=$ac_optarg ;;
982
-localedir | --localedir | --localedi | --localed | --locale)
984
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
985
localedir=$ac_optarg ;;
987
-localstatedir | --localstatedir | --localstatedi | --localstated \
988
| --localstate | --localstat | --localsta | --localst | --locals)
989
ac_prev=localstatedir ;;
990
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
991
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
992
localstatedir=$ac_optarg ;;
994
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
996
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1000
# Obsolete; use --without-fp.
1003
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
1004
| --no-cr | --no-c | -n)
1007
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
1008
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1011
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1012
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1013
| --oldin | --oldi | --old | --ol | --o)
1014
ac_prev=oldincludedir ;;
1015
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1016
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1017
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1018
oldincludedir=$ac_optarg ;;
1020
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1022
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1023
prefix=$ac_optarg ;;
1025
-program-prefix | --program-prefix | --program-prefi | --program-pref \
1026
| --program-pre | --program-pr | --program-p)
1027
ac_prev=program_prefix ;;
1028
-program-prefix=* | --program-prefix=* | --program-prefi=* \
1029
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1030
program_prefix=$ac_optarg ;;
1032
-program-suffix | --program-suffix | --program-suffi | --program-suff \
1033
| --program-suf | --program-su | --program-s)
1034
ac_prev=program_suffix ;;
1035
-program-suffix=* | --program-suffix=* | --program-suffi=* \
1036
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1037
program_suffix=$ac_optarg ;;
1039
-program-transform-name | --program-transform-name \
1040
| --program-transform-nam | --program-transform-na \
1041
| --program-transform-n | --program-transform- \
1042
| --program-transform | --program-transfor \
1043
| --program-transfo | --program-transf \
1044
| --program-trans | --program-tran \
1045
| --progr-tra | --program-tr | --program-t)
1046
ac_prev=program_transform_name ;;
1047
-program-transform-name=* | --program-transform-name=* \
1048
| --program-transform-nam=* | --program-transform-na=* \
1049
| --program-transform-n=* | --program-transform-=* \
1050
| --program-transform=* | --program-transfor=* \
1051
| --program-transfo=* | --program-transf=* \
1052
| --program-trans=* | --program-tran=* \
1053
| --progr-tra=* | --program-tr=* | --program-t=*)
1054
program_transform_name=$ac_optarg ;;
1056
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1058
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1059
pdfdir=$ac_optarg ;;
1061
-psdir | --psdir | --psdi | --psd | --ps)
1063
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1066
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1067
| -silent | --silent | --silen | --sile | --sil)
1070
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1072
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1074
sbindir=$ac_optarg ;;
1076
-sharedstatedir | --sharedstatedir | --sharedstatedi \
1077
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1078
| --sharedst | --shareds | --shared | --share | --shar \
1080
ac_prev=sharedstatedir ;;
1081
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1082
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1083
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1085
sharedstatedir=$ac_optarg ;;
1087
-site | --site | --sit)
1089
-site=* | --site=* | --sit=*)
1092
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1094
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1095
srcdir=$ac_optarg ;;
1097
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1098
| --syscon | --sysco | --sysc | --sys | --sy)
1099
ac_prev=sysconfdir ;;
1100
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1101
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1102
sysconfdir=$ac_optarg ;;
1104
-target | --target | --targe | --targ | --tar | --ta | --t)
1105
ac_prev=target_alias ;;
1106
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1107
target_alias=$ac_optarg ;;
1109
-v | -verbose | --verbose | --verbos | --verbo | --verb)
1112
-version | --version | --versio | --versi | --vers | -V)
1113
ac_init_version=: ;;
1116
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1117
# Reject names that are not valid shell variable names.
1118
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1119
as_fn_error $? "invalid package name: $ac_useropt"
1120
ac_useropt_orig=$ac_useropt
1121
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1122
case $ac_user_opts in
1126
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1127
ac_unrecognized_sep=', ';;
1129
eval with_$ac_useropt=\$ac_optarg ;;
1131
-without-* | --without-*)
1132
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1133
# Reject names that are not valid shell variable names.
1134
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1135
as_fn_error $? "invalid package name: $ac_useropt"
1136
ac_useropt_orig=$ac_useropt
1137
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1138
case $ac_user_opts in
1142
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1143
ac_unrecognized_sep=', ';;
1145
eval with_$ac_useropt=no ;;
1148
# Obsolete; use --with-x.
1151
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1152
| --x-incl | --x-inc | --x-in | --x-i)
1153
ac_prev=x_includes ;;
1154
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1155
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1156
x_includes=$ac_optarg ;;
1158
-x-libraries | --x-libraries | --x-librarie | --x-librari \
1159
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1160
ac_prev=x_libraries ;;
1161
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1162
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1163
x_libraries=$ac_optarg ;;
1165
-*) as_fn_error $? "unrecognized option: \`$ac_option'
1166
Try \`$0 --help' for more information"
1170
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1171
# Reject names that are not valid shell variable names.
1172
case $ac_envvar in #(
1173
'' | [0-9]* | *[!_$as_cr_alnum]* )
1174
as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1176
eval $ac_envvar=\$ac_optarg
1177
export $ac_envvar ;;
1180
# FIXME: should be removed in autoconf 3.0.
1181
$as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1182
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1183
$as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1184
: "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1190
if test -n "$ac_prev"; then
1191
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1192
as_fn_error $? "missing argument to $ac_option"
1195
if test -n "$ac_unrecognized_opts"; then
1196
case $enable_option_checking in
1198
fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1199
*) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1203
# Check all directory arguments for consistency.
1204
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1205
datadir sysconfdir sharedstatedir localstatedir includedir \
1206
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1207
libdir localedir mandir
1209
eval ac_val=\$$ac_var
1210
# Remove trailing slashes.
1213
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1214
eval $ac_var=\$ac_val;;
1216
# Be sure to have absolute directory names.
1218
[\\/$]* | ?:[\\/]* ) continue;;
1219
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1221
as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1224
# There might be people who depend on the old broken behavior: `$host'
1225
# used to hold the argument of --host etc.
1226
# FIXME: To remove some day.
1229
target=$target_alias
1231
# FIXME: To remove some day.
1232
if test "x$host_alias" != x; then
1233
if test "x$build_alias" = x; then
1234
cross_compiling=maybe
1235
elif test "x$build_alias" != "x$host_alias"; then
1241
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1243
test "$silent" = yes && exec 6>/dev/null
1246
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1247
ac_ls_di=`ls -di .` &&
1248
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1249
as_fn_error $? "working directory cannot be determined"
1250
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1251
as_fn_error $? "pwd does not report name of working directory"
1254
# Find the source files, if location was not specified.
1255
if test -z "$srcdir"; then
1256
ac_srcdir_defaulted=yes
1257
# Try the directory containing this script, then the parent directory.
1258
ac_confdir=`$as_dirname -- "$as_myself" ||
1259
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1260
X"$as_myself" : 'X\(//\)[^/]' \| \
1261
X"$as_myself" : 'X\(//\)$' \| \
1262
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1263
$as_echo X"$as_myself" |
1264
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1282
if test ! -r "$srcdir/$ac_unique_file"; then
1286
ac_srcdir_defaulted=no
1288
if test ! -r "$srcdir/$ac_unique_file"; then
1289
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1290
as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1292
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1294
cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1296
# When building in place, set srcdir=.
1297
if test "$ac_abs_confdir" = "$ac_pwd"; then
1300
# Remove unnecessary trailing slashes from srcdir.
1301
# Double slashes in file names in object file debugging info
1302
# mess up M-x gdb in Emacs.
1304
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1306
for ac_var in $ac_precious_vars; do
1307
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1308
eval ac_env_${ac_var}_value=\$${ac_var}
1309
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1310
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1314
# Report the --help message.
1316
if test "$ac_init_help" = "long"; then
1317
# Omit some internal or obsolete options to make the list less imposing.
1318
# This message is too long to be a string in the A/UX 3.1 sh.
1320
\`configure' configures libdvdread 4.2.0 to adapt to many kinds of systems.
1322
Usage: $0 [OPTION]... [VAR=VALUE]...
1324
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1325
VAR=VALUE. See below for descriptions of some of the useful variables.
1327
Defaults for the options are specified in brackets.
1330
-h, --help display this help and exit
1331
--help=short display options specific to this package
1332
--help=recursive display the short help of all the included packages
1333
-V, --version display version information and exit
1334
-q, --quiet, --silent do not print \`checking ...' messages
1335
--cache-file=FILE cache test results in FILE [disabled]
1336
-C, --config-cache alias for \`--cache-file=config.cache'
1337
-n, --no-create do not create output files
1338
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1340
Installation directories:
1341
--prefix=PREFIX install architecture-independent files in PREFIX
1342
@<:@@S|@ac_default_prefix@:>@
1343
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1346
By default, \`make install' will install all the files in
1347
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1348
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1349
for instance \`--prefix=\$HOME'.
1351
For better control, use the options below.
1353
Fine tuning of the installation directories:
1354
--bindir=DIR user executables [EPREFIX/bin]
1355
--sbindir=DIR system admin executables [EPREFIX/sbin]
1356
--libexecdir=DIR program executables [EPREFIX/libexec]
1357
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1358
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1359
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1360
--libdir=DIR object code libraries [EPREFIX/lib]
1361
--includedir=DIR C header files [PREFIX/include]
1362
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1363
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1364
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1365
--infodir=DIR info documentation [DATAROOTDIR/info]
1366
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1367
--mandir=DIR man documentation [DATAROOTDIR/man]
1368
--docdir=DIR documentation root @<:@DATAROOTDIR/doc/libdvdread@:>@
1369
--htmldir=DIR html documentation [DOCDIR]
1370
--dvidir=DIR dvi documentation [DOCDIR]
1371
--pdfdir=DIR pdf documentation [DOCDIR]
1372
--psdir=DIR ps documentation [DOCDIR]
1378
--program-prefix=PREFIX prepend PREFIX to installed program names
1379
--program-suffix=SUFFIX append SUFFIX to installed program names
1380
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1383
--build=BUILD configure for building on BUILD [guessed]
1384
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1388
if test -n "$ac_init_help"; then
1389
case $ac_init_help in
1390
short | recursive ) echo "Configuration of libdvdread 4.2.0:";;
1395
--disable-option-checking ignore unrecognized --enable/--with options
1396
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1397
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1398
--disable-dependency-tracking speeds up one-time build
1399
--enable-dependency-tracking do not reject slow dependency extractors
1400
--enable-static@<:@=PKGS@:>@ build static libraries @<:@default=no@:>@
1401
--enable-shared@<:@=PKGS@:>@ build shared libraries @<:@default=yes@:>@
1402
--enable-fast-install@<:@=PKGS@:>@
1403
optimize for fast installation @<:@default=yes@:>@
1404
--disable-libtool-lock avoid locking (might break parallel builds)
1405
--enable-libdvdcss force linking against libdvdcss
1406
--enable-dlfcn use builtin dlfcn for mingw (default is auto)
1409
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1410
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1411
--with-pic@<:@=PKGS@:>@ try to use only PIC/non-PIC objects @<:@default=use
1413
--with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@
1414
--with-sysroot=DIR Search for dependent libraries within DIR
1415
(or the compiler's sysroot if not specified).
1417
Some influential environment variables:
1418
CC C compiler command
1419
CFLAGS C compiler flags
1420
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1421
nonstandard directory <lib dir>
1422
LIBS libraries to pass to the linker, e.g. -l<library>
1423
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1424
you have headers in a nonstandard directory <include dir>
1427
Use these variables to override the choices made by `configure' or to help
1428
it to find libraries and programs with nonstandard names/locations.
1430
Report bugs to the package provider.
1435
if test "$ac_init_help" = "recursive"; then
1436
# If there are subdirs, report their specific --help.
1437
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1438
test -d "$ac_dir" ||
1439
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1444
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1446
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1447
# A ".." for each directory in $ac_dir_suffix.
1448
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1449
case $ac_top_builddir_sub in
1450
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1451
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1454
ac_abs_top_builddir=$ac_pwd
1455
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1456
# for backward compatibility:
1457
ac_top_builddir=$ac_top_build_prefix
1460
.) # We are building in place.
1462
ac_top_srcdir=$ac_top_builddir_sub
1463
ac_abs_top_srcdir=$ac_pwd ;;
1464
[\\/]* | ?:[\\/]* ) # Absolute name.
1465
ac_srcdir=$srcdir$ac_dir_suffix;
1466
ac_top_srcdir=$srcdir
1467
ac_abs_top_srcdir=$srcdir ;;
1469
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1470
ac_top_srcdir=$ac_top_build_prefix$srcdir
1471
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1473
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1475
cd "$ac_dir" || { ac_status=$?; continue; }
1476
# Check for guested configure.
1477
if test -f "$ac_srcdir/configure.gnu"; then
1479
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1480
elif test -f "$ac_srcdir/configure"; then
1482
$SHELL "$ac_srcdir/configure" --help=recursive
1484
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1486
cd "$ac_pwd" || { ac_status=$?; break; }
1490
test -n "$ac_init_help" && exit $ac_status
1491
if $ac_init_version; then
1493
libdvdread configure 4.2.0
1494
generated by GNU Autoconf 2.69
1496
Copyright (C) 2012 Free Software Foundation, Inc.
1497
This configure script is free software; the Free Software Foundation
1498
gives unlimited permission to copy, distribute and modify it.
1503
## ------------------------ ##
1504
## Autoconf initialization. ##
1505
## ------------------------ ##
1507
@%:@ ac_fn_c_try_compile LINENO
1508
@%:@ --------------------------
1509
@%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
1510
ac_fn_c_try_compile ()
1512
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1513
rm -f conftest.$ac_objext
1514
if { { ac_try="$ac_compile"
1516
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1517
*) ac_try_echo=$ac_try;;
1519
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1520
$as_echo "$ac_try_echo"; } >&5
1521
(eval "$ac_compile") 2>conftest.err
1523
if test -s conftest.err; then
1524
grep -v '^ *+' conftest.err >conftest.er1
1525
cat conftest.er1 >&5
1526
mv -f conftest.er1 conftest.err
1528
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1529
test $ac_status = 0; } && {
1530
test -z "$ac_c_werror_flag" ||
1531
test ! -s conftest.err
1532
} && test -s conftest.$ac_objext; then :
1535
$as_echo "$as_me: failed program was:" >&5
1536
sed 's/^/| /' conftest.$ac_ext >&5
1540
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1541
as_fn_set_status $ac_retval
1543
} @%:@ ac_fn_c_try_compile
1545
@%:@ ac_fn_c_try_link LINENO
1546
@%:@ -----------------------
1547
@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
1550
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1551
rm -f conftest.$ac_objext conftest$ac_exeext
1552
if { { ac_try="$ac_link"
1554
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1555
*) ac_try_echo=$ac_try;;
1557
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1558
$as_echo "$ac_try_echo"; } >&5
1559
(eval "$ac_link") 2>conftest.err
1561
if test -s conftest.err; then
1562
grep -v '^ *+' conftest.err >conftest.er1
1563
cat conftest.er1 >&5
1564
mv -f conftest.er1 conftest.err
1566
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1567
test $ac_status = 0; } && {
1568
test -z "$ac_c_werror_flag" ||
1569
test ! -s conftest.err
1570
} && test -s conftest$ac_exeext && {
1571
test "$cross_compiling" = yes ||
1572
test -x conftest$ac_exeext
1576
$as_echo "$as_me: failed program was:" >&5
1577
sed 's/^/| /' conftest.$ac_ext >&5
1581
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1582
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1583
# interfere with the next link command; also delete a directory that is
1584
# left behind by Apple's compiler. We do this before executing the actions.
1585
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1586
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1587
as_fn_set_status $ac_retval
1589
} @%:@ ac_fn_c_try_link
1591
@%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1592
@%:@ -------------------------------------------------------
1593
@%:@ Tests whether HEADER exists and can be compiled using the include files in
1594
@%:@ INCLUDES, setting the cache variable VAR accordingly.
1595
ac_fn_c_check_header_compile ()
1597
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1598
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1599
$as_echo_n "checking for $2... " >&6; }
1600
if eval \${$3+:} false; then :
1601
$as_echo_n "(cached) " >&6
1603
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1604
/* end confdefs.h. */
1608
if ac_fn_c_try_compile "$LINENO"; then :
1613
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1616
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1617
$as_echo "$ac_res" >&6; }
1618
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1620
} @%:@ ac_fn_c_check_header_compile
1622
@%:@ ac_fn_c_try_cpp LINENO
1623
@%:@ ----------------------
1624
@%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
1627
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1628
if { { ac_try="$ac_cpp conftest.$ac_ext"
1630
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1631
*) ac_try_echo=$ac_try;;
1633
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1634
$as_echo "$ac_try_echo"; } >&5
1635
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1637
if test -s conftest.err; then
1638
grep -v '^ *+' conftest.err >conftest.er1
1639
cat conftest.er1 >&5
1640
mv -f conftest.er1 conftest.err
1642
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1643
test $ac_status = 0; } > conftest.i && {
1644
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1645
test ! -s conftest.err
1649
$as_echo "$as_me: failed program was:" >&5
1650
sed 's/^/| /' conftest.$ac_ext >&5
1654
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1655
as_fn_set_status $ac_retval
1657
} @%:@ ac_fn_c_try_cpp
1659
@%:@ ac_fn_c_try_run LINENO
1660
@%:@ ----------------------
1661
@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes
1662
@%:@ that executables *can* be run.
1665
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1666
if { { ac_try="$ac_link"
1668
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1669
*) ac_try_echo=$ac_try;;
1671
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1672
$as_echo "$ac_try_echo"; } >&5
1673
(eval "$ac_link") 2>&5
1675
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1676
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1677
{ { case "(($ac_try" in
1678
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1679
*) ac_try_echo=$ac_try;;
1681
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1682
$as_echo "$ac_try_echo"; } >&5
1683
(eval "$ac_try") 2>&5
1685
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1686
test $ac_status = 0; }; }; then :
1689
$as_echo "$as_me: program exited with status $ac_status" >&5
1690
$as_echo "$as_me: failed program was:" >&5
1691
sed 's/^/| /' conftest.$ac_ext >&5
1693
ac_retval=$ac_status
1695
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1696
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1697
as_fn_set_status $ac_retval
1699
} @%:@ ac_fn_c_try_run
1701
@%:@ ac_fn_c_check_func LINENO FUNC VAR
1702
@%:@ ----------------------------------
1703
@%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly
1704
ac_fn_c_check_func ()
1706
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1707
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1708
$as_echo_n "checking for $2... " >&6; }
1709
if eval \${$3+:} false; then :
1710
$as_echo_n "(cached) " >&6
1712
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1713
/* end confdefs.h. */
1714
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1715
For example, HP-UX 11i <limits.h> declares gettimeofday. */
1716
#define $2 innocuous_$2
1718
/* System header to define __stub macros and hopefully few prototypes,
1719
which can conflict with char $2 (); below.
1720
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1721
<limits.h> exists even on freestanding compilers. */
1724
# include <limits.h>
1726
# include <assert.h>
1731
/* Override any GCC internal prototype to avoid an error.
1732
Use char because int might match the return type of a GCC
1733
builtin and then its argument prototype would still apply. */
1738
/* The GNU C library defines this for functions which it implements
1739
to always fail with ENOSYS. Some functions are actually named
1740
something starting with __ and the normal name is an alias. */
1741
#if defined __stub_$2 || defined __stub___$2
1753
if ac_fn_c_try_link "$LINENO"; then :
1758
rm -f core conftest.err conftest.$ac_objext \
1759
conftest$ac_exeext conftest.$ac_ext
1762
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1763
$as_echo "$ac_res" >&6; }
1764
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1766
} @%:@ ac_fn_c_check_func
1768
@%:@ ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1769
@%:@ -------------------------------------------------------
1770
@%:@ Tests whether HEADER exists, giving a warning if it cannot be compiled using
1771
@%:@ the include files in INCLUDES and setting the cache variable VAR
1773
ac_fn_c_check_header_mongrel ()
1775
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1776
if eval \${$3+:} false; then :
1777
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1778
$as_echo_n "checking for $2... " >&6; }
1779
if eval \${$3+:} false; then :
1780
$as_echo_n "(cached) " >&6
1783
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1784
$as_echo "$ac_res" >&6; }
1786
# Is the header compilable?
1787
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1788
$as_echo_n "checking $2 usability... " >&6; }
1789
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1790
/* end confdefs.h. */
1794
if ac_fn_c_try_compile "$LINENO"; then :
1795
ac_header_compiler=yes
1797
ac_header_compiler=no
1799
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1800
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1801
$as_echo "$ac_header_compiler" >&6; }
1803
# Is the header present?
1804
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1805
$as_echo_n "checking $2 presence... " >&6; }
1806
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1807
/* end confdefs.h. */
1810
if ac_fn_c_try_cpp "$LINENO"; then :
1811
ac_header_preproc=yes
1813
ac_header_preproc=no
1815
rm -f conftest.err conftest.i conftest.$ac_ext
1816
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1817
$as_echo "$ac_header_preproc" >&6; }
1819
# So? What about this header?
1820
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1822
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1823
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1824
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1825
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1828
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1829
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1830
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1831
$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1832
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1833
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1834
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1835
$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1836
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1837
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1840
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1841
$as_echo_n "checking for $2... " >&6; }
1842
if eval \${$3+:} false; then :
1843
$as_echo_n "(cached) " >&6
1845
eval "$3=\$ac_header_compiler"
1848
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1849
$as_echo "$ac_res" >&6; }
1851
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1853
} @%:@ ac_fn_c_check_header_mongrel
1855
@%:@ ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1856
@%:@ -------------------------------------------
1857
@%:@ Tests whether TYPE exists after having included INCLUDES, setting cache
1858
@%:@ variable VAR accordingly.
1859
ac_fn_c_check_type ()
1861
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1862
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1863
$as_echo_n "checking for $2... " >&6; }
1864
if eval \${$3+:} false; then :
1865
$as_echo_n "(cached) " >&6
1868
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1869
/* end confdefs.h. */
1880
if ac_fn_c_try_compile "$LINENO"; then :
1881
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1882
/* end confdefs.h. */
1893
if ac_fn_c_try_compile "$LINENO"; then :
1898
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1900
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1903
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1904
$as_echo "$ac_res" >&6; }
1905
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1907
} @%:@ ac_fn_c_check_type
1908
cat >config.log <<_ACEOF
1909
This file contains any messages produced by compilers while
1910
running configure, to aid debugging if configure makes a mistake.
1912
It was created by libdvdread $as_me 4.2.0, which was
1913
generated by GNU Autoconf 2.69. Invocation command line was
1925
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1926
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1927
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1928
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1929
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1931
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1932
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1934
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1935
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1936
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1937
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1938
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1939
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1940
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1944
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1948
test -z "$as_dir" && as_dir=.
1949
$as_echo "PATH: $as_dir"
1965
# Keep a trace of the command line.
1966
# Strip out --no-create and --no-recursion so they do not pile up.
1967
# Strip out --silent because we don't want to record it for future runs.
1968
# Also quote any args containing shell meta-characters.
1969
# Make two passes to allow for proper duplicate-argument suppression.
1973
ac_must_keep_next=false
1979
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1980
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1981
| -silent | --silent | --silen | --sile | --sil)
1984
ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1987
1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1989
as_fn_append ac_configure_args1 " '$ac_arg'"
1990
if test $ac_must_keep_next = true; then
1991
ac_must_keep_next=false # Got value, back to normal.
1994
*=* | --config-cache | -C | -disable-* | --disable-* \
1995
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1996
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1997
| -with-* | --with-* | -without-* | --without-* | --x)
1998
case "$ac_configure_args0 " in
1999
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2002
-* ) ac_must_keep_next=true ;;
2005
as_fn_append ac_configure_args " '$ac_arg'"
2010
{ ac_configure_args0=; unset ac_configure_args0;}
2011
{ ac_configure_args1=; unset ac_configure_args1;}
2013
# When interrupted or exit'd, cleanup temporary files, and complete
2014
# config.log. We remove comments because anyway the quotes in there
2015
# would cause problems or look ugly.
2016
# WARNING: Use '\'' to represent an apostrophe within the trap.
2017
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2018
trap 'exit_status=$?
2019
# Save into config.log some information that might help in debugging.
2023
$as_echo "## ---------------- ##
2024
## Cache variables. ##
2025
## ---------------- ##"
2027
# The following way of writing the cache mishandles newlines in values,
2029
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2030
eval ac_val=\$$ac_var
2034
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2035
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2038
_ | IFS | as_nl) ;; #(
2039
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2040
*) { eval $ac_var=; unset $ac_var;} ;;
2045
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2046
*${as_nl}ac_space=\ *)
2048
"s/'\''/'\''\\\\'\'''\''/g;
2049
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2052
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2059
$as_echo "## ----------------- ##
2060
## Output variables. ##
2061
## ----------------- ##"
2063
for ac_var in $ac_subst_vars
2065
eval ac_val=\$$ac_var
2067
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2069
$as_echo "$ac_var='\''$ac_val'\''"
2073
if test -n "$ac_subst_files"; then
2074
$as_echo "## ------------------- ##
2075
## File substitutions. ##
2076
## ------------------- ##"
2078
for ac_var in $ac_subst_files
2080
eval ac_val=\$$ac_var
2082
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2084
$as_echo "$ac_var='\''$ac_val'\''"
2089
if test -s confdefs.h; then
2090
$as_echo "## ----------- ##
2097
test "$ac_signal" != 0 &&
2098
$as_echo "$as_me: caught signal $ac_signal"
2099
$as_echo "$as_me: exit $exit_status"
2101
rm -f core *.core core.conftest.* &&
2102
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2105
for ac_signal in 1 2 13 15; do
2106
trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2110
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2111
rm -f -r conftest* confdefs.h
2113
$as_echo "/* confdefs.h */" > confdefs.h
2115
# Predefined preprocessor variables.
2117
cat >>confdefs.h <<_ACEOF
2118
@%:@define PACKAGE_NAME "$PACKAGE_NAME"
2121
cat >>confdefs.h <<_ACEOF
2122
@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2125
cat >>confdefs.h <<_ACEOF
2126
@%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
2129
cat >>confdefs.h <<_ACEOF
2130
@%:@define PACKAGE_STRING "$PACKAGE_STRING"
2133
cat >>confdefs.h <<_ACEOF
2134
@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2137
cat >>confdefs.h <<_ACEOF
2138
@%:@define PACKAGE_URL "$PACKAGE_URL"
2142
# Let the site file select an alternate cache file if it wants to.
2143
# Prefer an explicitly selected file to automatically selected ones.
2146
if test -n "$CONFIG_SITE"; then
2147
# We do not want a PATH search for config.site.
2148
case $CONFIG_SITE in @%:@((
2149
-*) ac_site_file1=./$CONFIG_SITE;;
2150
*/*) ac_site_file1=$CONFIG_SITE;;
2151
*) ac_site_file1=./$CONFIG_SITE;;
2153
elif test "x$prefix" != xNONE; then
2154
ac_site_file1=$prefix/share/config.site
2155
ac_site_file2=$prefix/etc/config.site
2157
ac_site_file1=$ac_default_prefix/share/config.site
2158
ac_site_file2=$ac_default_prefix/etc/config.site
2160
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2162
test "x$ac_site_file" = xNONE && continue
2163
if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2164
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2165
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2166
sed 's/^/| /' "$ac_site_file" >&5
2168
|| { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2169
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2170
as_fn_error $? "failed to load site script $ac_site_file
2171
See \`config.log' for more details" "$LINENO" 5; }
2175
if test -r "$cache_file"; then
2176
# Some versions of bash will fail to source /dev/null (special files
2177
# actually), so we avoid doing that. DJGPP emulates it as a regular file.
2178
if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2179
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2180
$as_echo "$as_me: loading cache $cache_file" >&6;}
2182
[\\/]* | ?:[\\/]* ) . "$cache_file";;
2183
*) . "./$cache_file";;
2187
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2188
$as_echo "$as_me: creating cache $cache_file" >&6;}
2192
# Check that the precious variables saved in the cache have kept the same
2194
ac_cache_corrupted=false
2195
for ac_var in $ac_precious_vars; do
2196
eval ac_old_set=\$ac_cv_env_${ac_var}_set
2197
eval ac_new_set=\$ac_env_${ac_var}_set
2198
eval ac_old_val=\$ac_cv_env_${ac_var}_value
2199
eval ac_new_val=\$ac_env_${ac_var}_value
2200
case $ac_old_set,$ac_new_set in
2202
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2203
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2204
ac_cache_corrupted=: ;;
2206
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2207
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2208
ac_cache_corrupted=: ;;
2211
if test "x$ac_old_val" != "x$ac_new_val"; then
2212
# differences in whitespace do not lead to failure.
2213
ac_old_val_w=`echo x $ac_old_val`
2214
ac_new_val_w=`echo x $ac_new_val`
2215
if test "$ac_old_val_w" != "$ac_new_val_w"; then
2216
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2217
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2218
ac_cache_corrupted=:
2220
{ $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2221
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2222
eval $ac_var=\$ac_old_val
2224
{ $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2225
$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2226
{ $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2227
$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2230
# Pass precious variables to config.status.
2231
if test "$ac_new_set" = set; then
2233
*\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2234
*) ac_arg=$ac_var=$ac_new_val ;;
2236
case " $ac_configure_args " in
2237
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2238
*) as_fn_append ac_configure_args " '$ac_arg'" ;;
2242
if $ac_cache_corrupted; then
2243
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2244
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2245
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2246
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2247
as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2249
## -------------------- ##
2250
## Main body of script. ##
2251
## -------------------- ##
2254
ac_cpp='$CPP $CPPFLAGS'
2255
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2256
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2257
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2261
am__api_version='1.11'
2264
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2265
if test -f "$ac_dir/install-sh"; then
2267
ac_install_sh="$ac_aux_dir/install-sh -c"
2269
elif test -f "$ac_dir/install.sh"; then
2271
ac_install_sh="$ac_aux_dir/install.sh -c"
2273
elif test -f "$ac_dir/shtool"; then
2275
ac_install_sh="$ac_aux_dir/shtool install -c"
2279
if test -z "$ac_aux_dir"; then
2280
as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2283
# These three variables are undocumented and unsupported,
2284
# and are intended to be withdrawn in a future Autoconf release.
2285
# They can cause serious problems if a builder's source tree is in a directory
2286
# whose full name contains unusual characters.
2287
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2288
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2289
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2292
# Find a good install program. We prefer a C program (faster),
2293
# so one script is as good as another. But avoid the broken or
2294
# incompatible versions:
2295
# SysV /etc/install, /usr/sbin/install
2296
# SunOS /usr/etc/install
2297
# IRIX /sbin/install
2299
# AmigaOS /C/install, which installs bootblocks on floppy discs
2300
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2301
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2302
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2303
# OS/2's system install, which has a completely different semantic
2304
# ./install, which can be erroneously created by make from ./install.sh.
2305
# Reject install programs that cannot install multiple files.
2306
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2307
$as_echo_n "checking for a BSD-compatible install... " >&6; }
2308
if test -z "$INSTALL"; then
2309
if ${ac_cv_path_install+:} false; then :
2310
$as_echo_n "(cached) " >&6
2312
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2316
test -z "$as_dir" && as_dir=.
2317
# Account for people who put trailing slashes in PATH elements.
2318
case $as_dir/ in @%:@((
2319
./ | .// | /[cC]/* | \
2320
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2321
?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2324
# OSF1 and SCO ODT 3.0 have their own names for install.
2325
# Don't use installbsd from OSF since it installs stuff as root
2327
for ac_prog in ginstall scoinst install; do
2328
for ac_exec_ext in '' $ac_executable_extensions; do
2329
if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2330
if test $ac_prog = install &&
2331
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2332
# AIX install. It has an incompatible calling convention.
2334
elif test $ac_prog = install &&
2335
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2336
# program-specific install script used by HP pwplus--don't use.
2339
rm -rf conftest.one conftest.two conftest.dir
2340
echo one > conftest.one
2341
echo two > conftest.two
2343
if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2344
test -s conftest.one && test -s conftest.two &&
2345
test -s conftest.dir/conftest.one &&
2346
test -s conftest.dir/conftest.two
2348
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2361
rm -rf conftest.one conftest.two conftest.dir
2364
if test "${ac_cv_path_install+set}" = set; then
2365
INSTALL=$ac_cv_path_install
2367
# As a last resort, use the slow shell script. Don't cache a
2368
# value for INSTALL within a source directory, because that will
2369
# break other packages using the cache if that directory is
2370
# removed, or if the value is a relative name.
2371
INSTALL=$ac_install_sh
2374
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2375
$as_echo "$INSTALL" >&6; }
2377
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2378
# It thinks the first close brace ends the variable substitution.
2379
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2381
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2383
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2385
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2386
$as_echo_n "checking whether build environment is sane... " >&6; }
2389
echo timestamp > conftest.file
2390
# Reject unsafe characters in $srcdir or the absolute working directory
2391
# name. Accept space and tab only in the latter.
2395
*[\\\"\#\$\&\'\`$am_lf]*)
2396
as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2399
*[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2400
as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2403
# Do `set' in a subshell so we don't clobber the current shell's
2404
# arguments. Must try -L first in case configure is actually a
2405
# symlink; some systems play weird games with the mod time of symlinks
2406
# (eg FreeBSD returns the mod time of the symlink's containing
2409
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2410
if test "$*" = "X"; then
2412
set X `ls -t "$srcdir/configure" conftest.file`
2415
if test "$*" != "X $srcdir/configure conftest.file" \
2416
&& test "$*" != "X conftest.file $srcdir/configure"; then
2418
# If neither matched, then we have a broken ls. This can happen
2419
# if, for instance, CONFIG_SHELL is bash and it inherits a
2420
# broken ls alias from the environment. This has actually
2421
# happened. Such a system could not be considered "sane".
2422
as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2423
alias in your environment" "$LINENO" 5
2426
test "$2" = conftest.file
2432
as_fn_error $? "newly created file is older than distributed files!
2433
Check your system clock" "$LINENO" 5
2435
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2436
$as_echo "yes" >&6; }
2437
test "$program_prefix" != NONE &&
2438
program_transform_name="s&^&$program_prefix&;$program_transform_name"
2439
# Use a double $ so make ignores it.
2440
test "$program_suffix" != NONE &&
2441
program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2442
# Double any \ or $.
2443
# By default was `s,x,x', remove it if useless.
2444
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2445
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2447
# expand $ac_aux_dir to an absolute path
2448
am_aux_dir=`cd $ac_aux_dir && pwd`
2450
if test x"${MISSING+set}" != xset; then
2453
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2455
MISSING="\${SHELL} $am_aux_dir/missing" ;;
2458
# Use eval to expand $SHELL
2459
if eval "$MISSING --run true"; then
2460
am_missing_run="$MISSING --run "
2463
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2464
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2467
if test x"${install_sh}" != xset; then
2470
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2472
install_sh="\${SHELL} $am_aux_dir/install-sh"
2476
# Installed binaries are usually stripped using `strip' when the user
2477
# run `make install-strip'. However `strip' might not be the right
2478
# tool to use in cross-compilation environments, therefore Automake
2479
# will honor the `STRIP' environment variable to overrule this program.
2480
if test "$cross_compiling" != no; then
2481
if test -n "$ac_tool_prefix"; then
2482
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2483
set dummy ${ac_tool_prefix}strip; ac_word=$2
2484
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2485
$as_echo_n "checking for $ac_word... " >&6; }
2486
if ${ac_cv_prog_STRIP+:} false; then :
2487
$as_echo_n "(cached) " >&6
2489
if test -n "$STRIP"; then
2490
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2492
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2496
test -z "$as_dir" && as_dir=.
2497
for ac_exec_ext in '' $ac_executable_extensions; do
2498
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2499
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2500
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2509
STRIP=$ac_cv_prog_STRIP
2510
if test -n "$STRIP"; then
2511
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2512
$as_echo "$STRIP" >&6; }
2514
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2515
$as_echo "no" >&6; }
2520
if test -z "$ac_cv_prog_STRIP"; then
2522
# Extract the first word of "strip", so it can be a program name with args.
2523
set dummy strip; ac_word=$2
2524
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2525
$as_echo_n "checking for $ac_word... " >&6; }
2526
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2527
$as_echo_n "(cached) " >&6
2529
if test -n "$ac_ct_STRIP"; then
2530
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2532
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2536
test -z "$as_dir" && as_dir=.
2537
for ac_exec_ext in '' $ac_executable_extensions; do
2538
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2539
ac_cv_prog_ac_ct_STRIP="strip"
2540
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2549
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2550
if test -n "$ac_ct_STRIP"; then
2551
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2552
$as_echo "$ac_ct_STRIP" >&6; }
2554
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2555
$as_echo "no" >&6; }
2558
if test "x$ac_ct_STRIP" = x; then
2561
case $cross_compiling:$ac_tool_warned in
2563
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2564
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2565
ac_tool_warned=yes ;;
2570
STRIP="$ac_cv_prog_STRIP"
2574
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2576
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2577
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2578
if test -z "$MKDIR_P"; then
2579
if ${ac_cv_path_mkdir+:} false; then :
2580
$as_echo_n "(cached) " >&6
2582
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2583
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2586
test -z "$as_dir" && as_dir=.
2587
for ac_prog in mkdir gmkdir; do
2588
for ac_exec_ext in '' $ac_executable_extensions; do
2589
as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2590
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2591
'mkdir (GNU coreutils) '* | \
2592
'mkdir (coreutils) '* | \
2593
'mkdir (fileutils) '4.1*)
2594
ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2604
test -d ./--version && rmdir ./--version
2605
if test "${ac_cv_path_mkdir+set}" = set; then
2606
MKDIR_P="$ac_cv_path_mkdir -p"
2608
# As a last resort, use the slow shell script. Don't cache a
2609
# value for MKDIR_P within a source directory, because that will
2610
# break other packages using the cache if that directory is
2611
# removed, or if the value is a relative name.
2612
MKDIR_P="$ac_install_sh -d"
2615
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2616
$as_echo "$MKDIR_P" >&6; }
2620
[\\/$]* | ?:[\\/]*) ;;
2621
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2624
for ac_prog in gawk mawk nawk awk
2626
# Extract the first word of "$ac_prog", so it can be a program name with args.
2627
set dummy $ac_prog; ac_word=$2
2628
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2629
$as_echo_n "checking for $ac_word... " >&6; }
2630
if ${ac_cv_prog_AWK+:} false; then :
2631
$as_echo_n "(cached) " >&6
2633
if test -n "$AWK"; then
2634
ac_cv_prog_AWK="$AWK" # Let the user override the test.
2636
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2640
test -z "$as_dir" && as_dir=.
2641
for ac_exec_ext in '' $ac_executable_extensions; do
2642
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2643
ac_cv_prog_AWK="$ac_prog"
2644
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2654
if test -n "$AWK"; then
2655
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2656
$as_echo "$AWK" >&6; }
2658
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2659
$as_echo "no" >&6; }
2663
test -n "$AWK" && break
2666
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2667
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2669
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2670
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2671
$as_echo_n "(cached) " >&6
2673
cat >conftest.make <<\_ACEOF
2676
@echo '@@@%%%=$(MAKE)=@@@%%%'
2678
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2679
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2681
eval ac_cv_prog_make_${ac_make}_set=yes;;
2683
eval ac_cv_prog_make_${ac_make}_set=no;;
2687
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2688
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2689
$as_echo "yes" >&6; }
2692
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2693
$as_echo "no" >&6; }
2694
SET_MAKE="MAKE=${MAKE-make}"
2697
rm -rf .tst 2>/dev/null
2698
mkdir .tst 2>/dev/null
2699
if test -d .tst; then
2704
rmdir .tst 2>/dev/null
2706
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2707
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2708
# is not polluted with repeated "-I."
2709
am__isrc=' -I$(srcdir)'
2710
# test to see if srcdir already configured
2711
if test -f $srcdir/config.status; then
2712
as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2716
# test whether we have cygpath
2717
if test -z "$CYGPATH_W"; then
2718
if (cygpath --version) >/dev/null 2>/dev/null; then
2719
CYGPATH_W='cygpath -w'
2726
# Define the identity of the package.
2727
PACKAGE='libdvdread'
2731
cat >>confdefs.h <<_ACEOF
2732
@%:@define PACKAGE "$PACKAGE"
2736
cat >>confdefs.h <<_ACEOF
2737
@%:@define VERSION "$VERSION"
2740
# Some tools Automake needs.
2742
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2745
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2748
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2751
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2754
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2756
# We need awk for the "check" target. The system "awk" is bad on
2758
# Always define AMTAR for backward compatibility. Yes, it's still used
2759
# in the wild :-( We should find a proper way to deprecate it ...
2762
am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2769
ac_config_headers="$ac_config_headers config.h"
2771
# Make sure we can run config.sub.
2772
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2773
as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2775
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2776
$as_echo_n "checking build system type... " >&6; }
2777
if ${ac_cv_build+:} false; then :
2778
$as_echo_n "(cached) " >&6
2780
ac_build_alias=$build_alias
2781
test "x$ac_build_alias" = x &&
2782
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2783
test "x$ac_build_alias" = x &&
2784
as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2785
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2786
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2789
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2790
$as_echo "$ac_cv_build" >&6; }
2791
case $ac_cv_build in
2793
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2796
ac_save_IFS=$IFS; IFS='-'
2802
# Remember, the first character of IFS is used to create $*,
2803
# except with old shells:
2806
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2809
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2810
$as_echo_n "checking host system type... " >&6; }
2811
if ${ac_cv_host+:} false; then :
2812
$as_echo_n "(cached) " >&6
2814
if test "x$host_alias" = x; then
2815
ac_cv_host=$ac_cv_build
2817
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2818
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2822
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2823
$as_echo "$ac_cv_host" >&6; }
2826
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2829
ac_save_IFS=$IFS; IFS='-'
2835
# Remember, the first character of IFS is used to create $*,
2836
# except with old shells:
2839
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2853
DVDREAD_LT_CURRENT=5
2855
DVDREAD_LT_REVISION=2
2861
if test x$DVDREAD_BUILD != "x"; then
2862
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: *** build forced to $DVDREAD_BUILD ***" >&5
2863
$as_echo "*** build forced to $DVDREAD_BUILD ***" >&6; }
2864
build=$DVDREAD_BUILD
2870
saved_CFLAGS="$CFLAGS"
2871
DEPDIR="${am__leading_dot}deps"
2873
ac_config_commands="$ac_config_commands depfiles"
2876
am_make=${MAKE-make}
2877
cat > confinc << 'END'
2879
@echo this is the am__doit target
2882
# If we don't find an include directive, just comment out the code.
2883
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2884
$as_echo_n "checking for style of include used by $am_make... " >&6; }
2888
# First try GNU make style include.
2889
echo "include confinc" > confmf
2890
# Ignore all kinds of additional output from `make'.
2891
case `$am_make -s -f confmf 2> /dev/null` in #(
2892
*the\ am__doit\ target*)
2898
# Now try BSD make style include.
2899
if test "$am__include" = "#"; then
2900
echo '.include "confinc"' > confmf
2901
case `$am_make -s -f confmf 2> /dev/null` in #(
2902
*the\ am__doit\ target*)
2903
am__include=.include
2911
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2912
$as_echo "$_am_result" >&6; }
2913
rm -f confinc confmf
2915
@%:@ Check whether --enable-dependency-tracking was given.
2916
if test "${enable_dependency_tracking+set}" = set; then :
2917
enableval=$enable_dependency_tracking;
2920
if test "x$enable_dependency_tracking" != xno; then
2921
am_depcomp="$ac_aux_dir/depcomp"
2925
if test "x$enable_dependency_tracking" != xno; then
2935
ac_cpp='$CPP $CPPFLAGS'
2936
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2937
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2938
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2939
if test -n "$ac_tool_prefix"; then
2940
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2941
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2942
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2943
$as_echo_n "checking for $ac_word... " >&6; }
2944
if ${ac_cv_prog_CC+:} false; then :
2945
$as_echo_n "(cached) " >&6
2947
if test -n "$CC"; then
2948
ac_cv_prog_CC="$CC" # Let the user override the test.
2950
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2954
test -z "$as_dir" && as_dir=.
2955
for ac_exec_ext in '' $ac_executable_extensions; do
2956
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2957
ac_cv_prog_CC="${ac_tool_prefix}gcc"
2958
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2968
if test -n "$CC"; then
2969
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2970
$as_echo "$CC" >&6; }
2972
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2973
$as_echo "no" >&6; }
2978
if test -z "$ac_cv_prog_CC"; then
2980
# Extract the first word of "gcc", so it can be a program name with args.
2981
set dummy gcc; ac_word=$2
2982
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2983
$as_echo_n "checking for $ac_word... " >&6; }
2984
if ${ac_cv_prog_ac_ct_CC+:} false; then :
2985
$as_echo_n "(cached) " >&6
2987
if test -n "$ac_ct_CC"; then
2988
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2990
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2994
test -z "$as_dir" && as_dir=.
2995
for ac_exec_ext in '' $ac_executable_extensions; do
2996
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2997
ac_cv_prog_ac_ct_CC="gcc"
2998
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3007
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3008
if test -n "$ac_ct_CC"; then
3009
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3010
$as_echo "$ac_ct_CC" >&6; }
3012
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3013
$as_echo "no" >&6; }
3016
if test "x$ac_ct_CC" = x; then
3019
case $cross_compiling:$ac_tool_warned in
3021
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3022
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3023
ac_tool_warned=yes ;;
3031
if test -z "$CC"; then
3032
if test -n "$ac_tool_prefix"; then
3033
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3034
set dummy ${ac_tool_prefix}cc; ac_word=$2
3035
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3036
$as_echo_n "checking for $ac_word... " >&6; }
3037
if ${ac_cv_prog_CC+:} false; then :
3038
$as_echo_n "(cached) " >&6
3040
if test -n "$CC"; then
3041
ac_cv_prog_CC="$CC" # Let the user override the test.
3043
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3047
test -z "$as_dir" && as_dir=.
3048
for ac_exec_ext in '' $ac_executable_extensions; do
3049
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3050
ac_cv_prog_CC="${ac_tool_prefix}cc"
3051
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3061
if test -n "$CC"; then
3062
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3063
$as_echo "$CC" >&6; }
3065
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3066
$as_echo "no" >&6; }
3072
if test -z "$CC"; then
3073
# Extract the first word of "cc", so it can be a program name with args.
3074
set dummy cc; ac_word=$2
3075
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3076
$as_echo_n "checking for $ac_word... " >&6; }
3077
if ${ac_cv_prog_CC+:} false; then :
3078
$as_echo_n "(cached) " >&6
3080
if test -n "$CC"; then
3081
ac_cv_prog_CC="$CC" # Let the user override the test.
3084
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3088
test -z "$as_dir" && as_dir=.
3089
for ac_exec_ext in '' $ac_executable_extensions; do
3090
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3091
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3092
ac_prog_rejected=yes
3096
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3103
if test $ac_prog_rejected = yes; then
3104
# We found a bogon in the path, so make sure we never use it.
3105
set dummy $ac_cv_prog_CC
3107
if test $@%:@ != 0; then
3108
# We chose a different compiler from the bogus one.
3109
# However, it has the same basename, so the bogon will be chosen
3110
# first if we set CC to just the basename; use the full file name.
3112
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3118
if test -n "$CC"; then
3119
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3120
$as_echo "$CC" >&6; }
3122
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3123
$as_echo "no" >&6; }
3128
if test -z "$CC"; then
3129
if test -n "$ac_tool_prefix"; then
3130
for ac_prog in cl.exe
3132
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3133
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3134
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3135
$as_echo_n "checking for $ac_word... " >&6; }
3136
if ${ac_cv_prog_CC+:} false; then :
3137
$as_echo_n "(cached) " >&6
3139
if test -n "$CC"; then
3140
ac_cv_prog_CC="$CC" # Let the user override the test.
3142
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3146
test -z "$as_dir" && as_dir=.
3147
for ac_exec_ext in '' $ac_executable_extensions; do
3148
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3149
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3150
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3160
if test -n "$CC"; then
3161
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3162
$as_echo "$CC" >&6; }
3164
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3165
$as_echo "no" >&6; }
3169
test -n "$CC" && break
3172
if test -z "$CC"; then
3174
for ac_prog in cl.exe
3176
# Extract the first word of "$ac_prog", so it can be a program name with args.
3177
set dummy $ac_prog; ac_word=$2
3178
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3179
$as_echo_n "checking for $ac_word... " >&6; }
3180
if ${ac_cv_prog_ac_ct_CC+:} false; then :
3181
$as_echo_n "(cached) " >&6
3183
if test -n "$ac_ct_CC"; then
3184
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3186
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3190
test -z "$as_dir" && as_dir=.
3191
for ac_exec_ext in '' $ac_executable_extensions; do
3192
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3193
ac_cv_prog_ac_ct_CC="$ac_prog"
3194
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3203
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3204
if test -n "$ac_ct_CC"; then
3205
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3206
$as_echo "$ac_ct_CC" >&6; }
3208
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3209
$as_echo "no" >&6; }
3213
test -n "$ac_ct_CC" && break
3216
if test "x$ac_ct_CC" = x; then
3219
case $cross_compiling:$ac_tool_warned in
3221
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3222
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3223
ac_tool_warned=yes ;;
3232
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3233
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3234
as_fn_error $? "no acceptable C compiler found in \$PATH
3235
See \`config.log' for more details" "$LINENO" 5; }
3237
# Provide some information about the compiler.
3238
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3241
for ac_option in --version -v -V -qversion; do
3242
{ { ac_try="$ac_compiler $ac_option >&5"
3244
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3245
*) ac_try_echo=$ac_try;;
3247
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3248
$as_echo "$ac_try_echo"; } >&5
3249
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
3251
if test -s conftest.err; then
3253
... rest of stderr output deleted ...
3254
10q' conftest.err >conftest.er1
3255
cat conftest.er1 >&5
3257
rm -f conftest.er1 conftest.err
3258
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3259
test $ac_status = 0; }
3262
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3263
/* end confdefs.h. */
3273
ac_clean_files_save=$ac_clean_files
3274
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3275
# Try to create an executable without -o first, disregard a.out.
3276
# It will help us diagnose broken compilers, and finding out an intuition
3278
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3279
$as_echo_n "checking whether the C compiler works... " >&6; }
3280
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3282
# The possible output files:
3283
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3286
for ac_file in $ac_files
3289
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3290
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
3295
if { { ac_try="$ac_link_default"
3297
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3298
*) ac_try_echo=$ac_try;;
3300
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3301
$as_echo "$ac_try_echo"; } >&5
3302
(eval "$ac_link_default") 2>&5
3304
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3305
test $ac_status = 0; }; then :
3306
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3307
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3308
# in a Makefile. We should not override ac_cv_exeext if it was cached,
3309
# so that the user can short-circuit this test for compilers unknown to
3311
for ac_file in $ac_files ''
3313
test -f "$ac_file" || continue
3315
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3318
# We found the default executable, but exeext='' is most
3322
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3324
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3326
# We set ac_cv_exeext here because the later test for it is not
3327
# safe: cross compilers may not add the suffix if given an `-o'
3328
# argument, so we may need to know it at that point already.
3329
# Even if this section looks crufty: it has the advantage of
3336
test "$ac_cv_exeext" = no && ac_cv_exeext=
3341
if test -z "$ac_file"; then :
3342
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3343
$as_echo "no" >&6; }
3344
$as_echo "$as_me: failed program was:" >&5
3345
sed 's/^/| /' conftest.$ac_ext >&5
3347
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3348
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3349
as_fn_error 77 "C compiler cannot create executables
3350
See \`config.log' for more details" "$LINENO" 5; }
3352
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3353
$as_echo "yes" >&6; }
3355
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3356
$as_echo_n "checking for C compiler default output file name... " >&6; }
3357
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3358
$as_echo "$ac_file" >&6; }
3359
ac_exeext=$ac_cv_exeext
3361
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3362
ac_clean_files=$ac_clean_files_save
3363
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3364
$as_echo_n "checking for suffix of executables... " >&6; }
3365
if { { ac_try="$ac_link"
3367
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3368
*) ac_try_echo=$ac_try;;
3370
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3371
$as_echo "$ac_try_echo"; } >&5
3372
(eval "$ac_link") 2>&5
3374
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3375
test $ac_status = 0; }; then :
3376
# If both `conftest.exe' and `conftest' are `present' (well, observable)
3377
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3378
# work properly (i.e., refer to `conftest.exe'), while it won't with
3380
for ac_file in conftest.exe conftest conftest.*; do
3381
test -f "$ac_file" || continue
3383
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3384
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3390
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3391
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3392
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3393
See \`config.log' for more details" "$LINENO" 5; }
3395
rm -f conftest conftest$ac_cv_exeext
3396
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3397
$as_echo "$ac_cv_exeext" >&6; }
3399
rm -f conftest.$ac_ext
3400
EXEEXT=$ac_cv_exeext
3402
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3403
/* end confdefs.h. */
3404
@%:@include <stdio.h>
3408
FILE *f = fopen ("conftest.out", "w");
3409
return ferror (f) || fclose (f) != 0;
3415
ac_clean_files="$ac_clean_files conftest.out"
3416
# Check that the compiler produces executables we can run. If not, either
3417
# the compiler is broken, or we cross compile.
3418
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3419
$as_echo_n "checking whether we are cross compiling... " >&6; }
3420
if test "$cross_compiling" != yes; then
3421
{ { ac_try="$ac_link"
3423
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3424
*) ac_try_echo=$ac_try;;
3426
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3427
$as_echo "$ac_try_echo"; } >&5
3428
(eval "$ac_link") 2>&5
3430
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3431
test $ac_status = 0; }
3432
if { ac_try='./conftest$ac_cv_exeext'
3433
{ { case "(($ac_try" in
3434
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3435
*) ac_try_echo=$ac_try;;
3437
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3438
$as_echo "$ac_try_echo"; } >&5
3439
(eval "$ac_try") 2>&5
3441
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3442
test $ac_status = 0; }; }; then
3445
if test "$cross_compiling" = maybe; then
3448
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3449
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3450
as_fn_error $? "cannot run C compiled programs.
3451
If you meant to cross compile, use \`--host'.
3452
See \`config.log' for more details" "$LINENO" 5; }
3456
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3457
$as_echo "$cross_compiling" >&6; }
3459
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3460
ac_clean_files=$ac_clean_files_save
3461
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3462
$as_echo_n "checking for suffix of object files... " >&6; }
3463
if ${ac_cv_objext+:} false; then :
3464
$as_echo_n "(cached) " >&6
3466
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3467
/* end confdefs.h. */
3477
rm -f conftest.o conftest.obj
3478
if { { ac_try="$ac_compile"
3480
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3481
*) ac_try_echo=$ac_try;;
3483
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3484
$as_echo "$ac_try_echo"; } >&5
3485
(eval "$ac_compile") 2>&5
3487
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3488
test $ac_status = 0; }; then :
3489
for ac_file in conftest.o conftest.obj conftest.*; do
3490
test -f "$ac_file" || continue;
3492
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3493
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3498
$as_echo "$as_me: failed program was:" >&5
3499
sed 's/^/| /' conftest.$ac_ext >&5
3501
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3502
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3503
as_fn_error $? "cannot compute suffix of object files: cannot compile
3504
See \`config.log' for more details" "$LINENO" 5; }
3506
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3508
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3509
$as_echo "$ac_cv_objext" >&6; }
3510
OBJEXT=$ac_cv_objext
3512
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3513
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3514
if ${ac_cv_c_compiler_gnu+:} false; then :
3515
$as_echo_n "(cached) " >&6
3517
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3518
/* end confdefs.h. */
3531
if ac_fn_c_try_compile "$LINENO"; then :
3536
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3537
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3540
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3541
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3542
if test $ac_compiler_gnu = yes; then
3547
ac_test_CFLAGS=${CFLAGS+set}
3548
ac_save_CFLAGS=$CFLAGS
3549
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3550
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3551
if ${ac_cv_prog_cc_g+:} false; then :
3552
$as_echo_n "(cached) " >&6
3554
ac_save_c_werror_flag=$ac_c_werror_flag
3555
ac_c_werror_flag=yes
3558
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3559
/* end confdefs.h. */
3569
if ac_fn_c_try_compile "$LINENO"; then :
3573
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3574
/* end confdefs.h. */
3584
if ac_fn_c_try_compile "$LINENO"; then :
3587
ac_c_werror_flag=$ac_save_c_werror_flag
3589
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3590
/* end confdefs.h. */
3600
if ac_fn_c_try_compile "$LINENO"; then :
3603
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3605
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3607
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3608
ac_c_werror_flag=$ac_save_c_werror_flag
3610
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3611
$as_echo "$ac_cv_prog_cc_g" >&6; }
3612
if test "$ac_test_CFLAGS" = set; then
3613
CFLAGS=$ac_save_CFLAGS
3614
elif test $ac_cv_prog_cc_g = yes; then
3615
if test "$GCC" = yes; then
3621
if test "$GCC" = yes; then
3627
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3628
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3629
if ${ac_cv_prog_cc_c89+:} false; then :
3630
$as_echo_n "(cached) " >&6
3632
ac_cv_prog_cc_c89=no
3634
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3635
/* end confdefs.h. */
3639
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3640
struct buf { int x; };
3641
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3642
static char *e (p, i)
3648
static char *f (char * (*g) (char **, int), char **p, ...)
3653
s = g (p, va_arg (v,int));
3658
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3659
function prototypes and stuff, but not '\xHH' hex character constants.
3660
These don't provoke an error unfortunately, instead are silently treated
3661
as 'x'. The following induces an error, until -std is added to get
3662
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3663
array size at least. It's necessary to write '\x00'==0 to get something
3664
that's true only with -std. */
3665
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3667
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3668
inside strings and character constants. */
3670
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3672
int test (int i, double x);
3673
struct s1 {int (*f) (int a);};
3674
struct s2 {int (*f) (double a);};
3675
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3681
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3686
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3687
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3689
CC="$ac_save_CC $ac_arg"
3690
if ac_fn_c_try_compile "$LINENO"; then :
3691
ac_cv_prog_cc_c89=$ac_arg
3693
rm -f core conftest.err conftest.$ac_objext
3694
test "x$ac_cv_prog_cc_c89" != "xno" && break
3696
rm -f conftest.$ac_ext
3701
case "x$ac_cv_prog_cc_c89" in
3703
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3704
$as_echo "none needed" >&6; } ;;
3706
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3707
$as_echo "unsupported" >&6; } ;;
3709
CC="$CC $ac_cv_prog_cc_c89"
3710
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3711
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3713
if test "x$ac_cv_prog_cc_c89" != xno; then :
3718
ac_cpp='$CPP $CPPFLAGS'
3719
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3720
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3721
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3723
depcc="$CC" am_compiler_list=
3725
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3726
$as_echo_n "checking dependency style of $depcc... " >&6; }
3727
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3728
$as_echo_n "(cached) " >&6
3730
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3731
# We make a subdir and do the tests there. Otherwise we can end up
3732
# making bogus files that we don't know about and never remove. For
3733
# instance it was reported that on HP-UX the gcc test will end up
3734
# making a dummy file named `D' -- because `-MD' means `put the output
3738
# Copy depcomp to subdir because otherwise we won't find it if we're
3739
# using a relative directory.
3740
cp "$am_depcomp" conftest.dir
3742
# We will build objects and dependencies in a subdirectory because
3743
# it helps to detect inapplicable dependency modes. For instance
3744
# both Tru64's cc and ICC support -MD to output dependencies as a
3745
# side effect of compilation, but ICC will put the dependencies in
3746
# the current directory while Tru64 will put them in the object
3750
am_cv_CC_dependencies_compiler_type=none
3751
if test "$am_compiler_list" = ""; then
3752
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3755
case " $depcc " in #(
3756
*\ -arch\ *\ -arch\ *) am__universal=true ;;
3759
for depmode in $am_compiler_list; do
3760
# Setup a source with many dependencies, because some compilers
3761
# like to wrap large dependency lists on column 80 (with \), and
3762
# we should not choose a depcomp mode which is confused by this.
3764
# We need to recreate these files for each test, as the compiler may
3765
# overwrite some of them when testing with obscure command lines.
3766
# This happens at least with the AIX C compiler.
3768
for i in 1 2 3 4 5 6; do
3769
echo '#include "conftst'$i'.h"' >> sub/conftest.c
3770
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3771
# Solaris 8's {/usr,}/bin/sh.
3772
touch sub/conftst$i.h
3774
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3776
# We check with `-c' and `-o' for the sake of the "dashmstdout"
3777
# mode. It turns out that the SunPro C++ compiler does not properly
3778
# handle `-M -o', and we need to detect this. Also, some Intel
3779
# versions had trouble with output in subdirs
3780
am__obj=sub/conftest.${OBJEXT-o}
3781
am__minus_obj="-o $am__obj"
3784
# This depmode causes a compiler race in universal mode.
3785
test "$am__universal" = false || continue
3788
# after this tag, mechanisms are not by side-effect, so they'll
3789
# only be used when explicitly requested
3790
if test "x$enable_dependency_tracking" = xyes; then
3796
msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3797
# This compiler won't grok `-c -o', but also, the minuso test has
3798
# not run yet. These depmodes are late enough in the game, and
3799
# so weak that their functioning should not be impacted.
3800
am__obj=conftest.${OBJEXT-o}
3805
if depmode=$depmode \
3806
source=sub/conftest.c object=$am__obj \
3807
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3808
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3809
>/dev/null 2>conftest.err &&
3810
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3811
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3812
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3813
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3814
# icc doesn't choke on unknown options, it will just issue warnings
3815
# or remarks (even with -Werror). So we grep stderr for any message
3816
# that says an option was ignored or not supported.
3817
# When given -MP, icc 7.0 and 7.1 complain thusly:
3818
# icc: Command line warning: ignoring option '-M'; no argument required
3819
# The diagnosis changed in icc 8.0:
3820
# icc: Command line remark: option '-MP' not supported
3821
if (grep 'ignoring option' conftest.err ||
3822
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3823
am_cv_CC_dependencies_compiler_type=$depmode
3832
am_cv_CC_dependencies_compiler_type=none
3836
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3837
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3838
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3841
test "x$enable_dependency_tracking" != xno \
3842
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3844
am__fastdepCC_FALSE='#'
3846
am__fastdepCC_TRUE='#'
3847
am__fastdepCC_FALSE=
3852
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3853
$as_echo_n "checking for library containing strerror... " >&6; }
3854
if ${ac_cv_search_strerror+:} false; then :
3855
$as_echo_n "(cached) " >&6
3857
ac_func_search_save_LIBS=$LIBS
3858
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3859
/* end confdefs.h. */
3861
/* Override any GCC internal prototype to avoid an error.
3862
Use char because int might match the return type of a GCC
3863
builtin and then its argument prototype would still apply. */
3876
for ac_lib in '' cposix; do
3877
if test -z "$ac_lib"; then
3878
ac_res="none required"
3881
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3883
if ac_fn_c_try_link "$LINENO"; then :
3884
ac_cv_search_strerror=$ac_res
3886
rm -f core conftest.err conftest.$ac_objext \
3888
if ${ac_cv_search_strerror+:} false; then :
3892
if ${ac_cv_search_strerror+:} false; then :
3895
ac_cv_search_strerror=no
3898
LIBS=$ac_func_search_save_LIBS
3900
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3901
$as_echo "$ac_cv_search_strerror" >&6; }
3902
ac_res=$ac_cv_search_strerror
3903
if test "$ac_res" != no; then :
3904
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3908
CFLAGS="$saved_CFLAGS"
3910
ac_cpp='$CPP $CPPFLAGS'
3911
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3912
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3913
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3914
if test -n "$ac_tool_prefix"; then
3915
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3916
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3917
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3918
$as_echo_n "checking for $ac_word... " >&6; }
3919
if ${ac_cv_prog_CC+:} false; then :
3920
$as_echo_n "(cached) " >&6
3922
if test -n "$CC"; then
3923
ac_cv_prog_CC="$CC" # Let the user override the test.
3925
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3929
test -z "$as_dir" && as_dir=.
3930
for ac_exec_ext in '' $ac_executable_extensions; do
3931
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3932
ac_cv_prog_CC="${ac_tool_prefix}gcc"
3933
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3943
if test -n "$CC"; then
3944
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3945
$as_echo "$CC" >&6; }
3947
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3948
$as_echo "no" >&6; }
3953
if test -z "$ac_cv_prog_CC"; then
3955
# Extract the first word of "gcc", so it can be a program name with args.
3956
set dummy gcc; ac_word=$2
3957
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3958
$as_echo_n "checking for $ac_word... " >&6; }
3959
if ${ac_cv_prog_ac_ct_CC+:} false; then :
3960
$as_echo_n "(cached) " >&6
3962
if test -n "$ac_ct_CC"; then
3963
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3965
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3969
test -z "$as_dir" && as_dir=.
3970
for ac_exec_ext in '' $ac_executable_extensions; do
3971
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3972
ac_cv_prog_ac_ct_CC="gcc"
3973
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3982
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3983
if test -n "$ac_ct_CC"; then
3984
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3985
$as_echo "$ac_ct_CC" >&6; }
3987
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3988
$as_echo "no" >&6; }
3991
if test "x$ac_ct_CC" = x; then
3994
case $cross_compiling:$ac_tool_warned in
3996
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3997
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3998
ac_tool_warned=yes ;;
4006
if test -z "$CC"; then
4007
if test -n "$ac_tool_prefix"; then
4008
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4009
set dummy ${ac_tool_prefix}cc; ac_word=$2
4010
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4011
$as_echo_n "checking for $ac_word... " >&6; }
4012
if ${ac_cv_prog_CC+:} false; then :
4013
$as_echo_n "(cached) " >&6
4015
if test -n "$CC"; then
4016
ac_cv_prog_CC="$CC" # Let the user override the test.
4018
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4022
test -z "$as_dir" && as_dir=.
4023
for ac_exec_ext in '' $ac_executable_extensions; do
4024
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4025
ac_cv_prog_CC="${ac_tool_prefix}cc"
4026
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4036
if test -n "$CC"; then
4037
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4038
$as_echo "$CC" >&6; }
4040
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4041
$as_echo "no" >&6; }
4047
if test -z "$CC"; then
4048
# Extract the first word of "cc", so it can be a program name with args.
4049
set dummy cc; ac_word=$2
4050
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4051
$as_echo_n "checking for $ac_word... " >&6; }
4052
if ${ac_cv_prog_CC+:} false; then :
4053
$as_echo_n "(cached) " >&6
4055
if test -n "$CC"; then
4056
ac_cv_prog_CC="$CC" # Let the user override the test.
4059
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4063
test -z "$as_dir" && as_dir=.
4064
for ac_exec_ext in '' $ac_executable_extensions; do
4065
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4066
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4067
ac_prog_rejected=yes
4071
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4078
if test $ac_prog_rejected = yes; then
4079
# We found a bogon in the path, so make sure we never use it.
4080
set dummy $ac_cv_prog_CC
4082
if test $@%:@ != 0; then
4083
# We chose a different compiler from the bogus one.
4084
# However, it has the same basename, so the bogon will be chosen
4085
# first if we set CC to just the basename; use the full file name.
4087
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4093
if test -n "$CC"; then
4094
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4095
$as_echo "$CC" >&6; }
4097
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4098
$as_echo "no" >&6; }
4103
if test -z "$CC"; then
4104
if test -n "$ac_tool_prefix"; then
4105
for ac_prog in cl.exe
4107
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4108
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4109
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4110
$as_echo_n "checking for $ac_word... " >&6; }
4111
if ${ac_cv_prog_CC+:} false; then :
4112
$as_echo_n "(cached) " >&6
4114
if test -n "$CC"; then
4115
ac_cv_prog_CC="$CC" # Let the user override the test.
4117
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4121
test -z "$as_dir" && as_dir=.
4122
for ac_exec_ext in '' $ac_executable_extensions; do
4123
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4124
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4125
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4135
if test -n "$CC"; then
4136
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4137
$as_echo "$CC" >&6; }
4139
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4140
$as_echo "no" >&6; }
4144
test -n "$CC" && break
4147
if test -z "$CC"; then
4149
for ac_prog in cl.exe
4151
# Extract the first word of "$ac_prog", so it can be a program name with args.
4152
set dummy $ac_prog; ac_word=$2
4153
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4154
$as_echo_n "checking for $ac_word... " >&6; }
4155
if ${ac_cv_prog_ac_ct_CC+:} false; then :
4156
$as_echo_n "(cached) " >&6
4158
if test -n "$ac_ct_CC"; then
4159
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4161
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4165
test -z "$as_dir" && as_dir=.
4166
for ac_exec_ext in '' $ac_executable_extensions; do
4167
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4168
ac_cv_prog_ac_ct_CC="$ac_prog"
4169
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4178
ac_ct_CC=$ac_cv_prog_ac_ct_CC
4179
if test -n "$ac_ct_CC"; then
4180
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4181
$as_echo "$ac_ct_CC" >&6; }
4183
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4184
$as_echo "no" >&6; }
4188
test -n "$ac_ct_CC" && break
4191
if test "x$ac_ct_CC" = x; then
4194
case $cross_compiling:$ac_tool_warned in
4196
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4197
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4198
ac_tool_warned=yes ;;
4207
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4208
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4209
as_fn_error $? "no acceptable C compiler found in \$PATH
4210
See \`config.log' for more details" "$LINENO" 5; }
4212
# Provide some information about the compiler.
4213
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4216
for ac_option in --version -v -V -qversion; do
4217
{ { ac_try="$ac_compiler $ac_option >&5"
4219
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4220
*) ac_try_echo=$ac_try;;
4222
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4223
$as_echo "$ac_try_echo"; } >&5
4224
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
4226
if test -s conftest.err; then
4228
... rest of stderr output deleted ...
4229
10q' conftest.err >conftest.er1
4230
cat conftest.er1 >&5
4232
rm -f conftest.er1 conftest.err
4233
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4234
test $ac_status = 0; }
4237
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4238
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4239
if ${ac_cv_c_compiler_gnu+:} false; then :
4240
$as_echo_n "(cached) " >&6
4242
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4243
/* end confdefs.h. */
4256
if ac_fn_c_try_compile "$LINENO"; then :
4261
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4262
ac_cv_c_compiler_gnu=$ac_compiler_gnu
4265
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4266
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4267
if test $ac_compiler_gnu = yes; then
4272
ac_test_CFLAGS=${CFLAGS+set}
4273
ac_save_CFLAGS=$CFLAGS
4274
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4275
$as_echo_n "checking whether $CC accepts -g... " >&6; }
4276
if ${ac_cv_prog_cc_g+:} false; then :
4277
$as_echo_n "(cached) " >&6
4279
ac_save_c_werror_flag=$ac_c_werror_flag
4280
ac_c_werror_flag=yes
4283
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4284
/* end confdefs.h. */
4294
if ac_fn_c_try_compile "$LINENO"; then :
4298
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4299
/* end confdefs.h. */
4309
if ac_fn_c_try_compile "$LINENO"; then :
4312
ac_c_werror_flag=$ac_save_c_werror_flag
4314
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4315
/* end confdefs.h. */
4325
if ac_fn_c_try_compile "$LINENO"; then :
4328
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4330
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4332
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4333
ac_c_werror_flag=$ac_save_c_werror_flag
4335
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4336
$as_echo "$ac_cv_prog_cc_g" >&6; }
4337
if test "$ac_test_CFLAGS" = set; then
4338
CFLAGS=$ac_save_CFLAGS
4339
elif test $ac_cv_prog_cc_g = yes; then
4340
if test "$GCC" = yes; then
4346
if test "$GCC" = yes; then
4352
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4353
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4354
if ${ac_cv_prog_cc_c89+:} false; then :
4355
$as_echo_n "(cached) " >&6
4357
ac_cv_prog_cc_c89=no
4359
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4360
/* end confdefs.h. */
4364
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4365
struct buf { int x; };
4366
FILE * (*rcsopen) (struct buf *, struct stat *, int);
4367
static char *e (p, i)
4373
static char *f (char * (*g) (char **, int), char **p, ...)
4378
s = g (p, va_arg (v,int));
4383
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4384
function prototypes and stuff, but not '\xHH' hex character constants.
4385
These don't provoke an error unfortunately, instead are silently treated
4386
as 'x'. The following induces an error, until -std is added to get
4387
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4388
array size at least. It's necessary to write '\x00'==0 to get something
4389
that's true only with -std. */
4390
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4392
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4393
inside strings and character constants. */
4395
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4397
int test (int i, double x);
4398
struct s1 {int (*f) (int a);};
4399
struct s2 {int (*f) (double a);};
4400
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4406
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4411
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4412
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4414
CC="$ac_save_CC $ac_arg"
4415
if ac_fn_c_try_compile "$LINENO"; then :
4416
ac_cv_prog_cc_c89=$ac_arg
4418
rm -f core conftest.err conftest.$ac_objext
4419
test "x$ac_cv_prog_cc_c89" != "xno" && break
4421
rm -f conftest.$ac_ext
4426
case "x$ac_cv_prog_cc_c89" in
4428
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4429
$as_echo "none needed" >&6; } ;;
4431
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4432
$as_echo "unsupported" >&6; } ;;
4434
CC="$CC $ac_cv_prog_cc_c89"
4435
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4436
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4438
if test "x$ac_cv_prog_cc_c89" != xno; then :
4443
ac_cpp='$CPP $CPPFLAGS'
4444
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4445
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4446
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4448
depcc="$CC" am_compiler_list=
4450
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4451
$as_echo_n "checking dependency style of $depcc... " >&6; }
4452
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4453
$as_echo_n "(cached) " >&6
4455
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4456
# We make a subdir and do the tests there. Otherwise we can end up
4457
# making bogus files that we don't know about and never remove. For
4458
# instance it was reported that on HP-UX the gcc test will end up
4459
# making a dummy file named `D' -- because `-MD' means `put the output
4463
# Copy depcomp to subdir because otherwise we won't find it if we're
4464
# using a relative directory.
4465
cp "$am_depcomp" conftest.dir
4467
# We will build objects and dependencies in a subdirectory because
4468
# it helps to detect inapplicable dependency modes. For instance
4469
# both Tru64's cc and ICC support -MD to output dependencies as a
4470
# side effect of compilation, but ICC will put the dependencies in
4471
# the current directory while Tru64 will put them in the object
4475
am_cv_CC_dependencies_compiler_type=none
4476
if test "$am_compiler_list" = ""; then
4477
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4480
case " $depcc " in #(
4481
*\ -arch\ *\ -arch\ *) am__universal=true ;;
4484
for depmode in $am_compiler_list; do
4485
# Setup a source with many dependencies, because some compilers
4486
# like to wrap large dependency lists on column 80 (with \), and
4487
# we should not choose a depcomp mode which is confused by this.
4489
# We need to recreate these files for each test, as the compiler may
4490
# overwrite some of them when testing with obscure command lines.
4491
# This happens at least with the AIX C compiler.
4493
for i in 1 2 3 4 5 6; do
4494
echo '#include "conftst'$i'.h"' >> sub/conftest.c
4495
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4496
# Solaris 8's {/usr,}/bin/sh.
4497
touch sub/conftst$i.h
4499
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4501
# We check with `-c' and `-o' for the sake of the "dashmstdout"
4502
# mode. It turns out that the SunPro C++ compiler does not properly
4503
# handle `-M -o', and we need to detect this. Also, some Intel
4504
# versions had trouble with output in subdirs
4505
am__obj=sub/conftest.${OBJEXT-o}
4506
am__minus_obj="-o $am__obj"
4509
# This depmode causes a compiler race in universal mode.
4510
test "$am__universal" = false || continue
4513
# after this tag, mechanisms are not by side-effect, so they'll
4514
# only be used when explicitly requested
4515
if test "x$enable_dependency_tracking" = xyes; then
4521
msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4522
# This compiler won't grok `-c -o', but also, the minuso test has
4523
# not run yet. These depmodes are late enough in the game, and
4524
# so weak that their functioning should not be impacted.
4525
am__obj=conftest.${OBJEXT-o}
4530
if depmode=$depmode \
4531
source=sub/conftest.c object=$am__obj \
4532
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4533
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4534
>/dev/null 2>conftest.err &&
4535
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4536
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4537
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4538
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4539
# icc doesn't choke on unknown options, it will just issue warnings
4540
# or remarks (even with -Werror). So we grep stderr for any message
4541
# that says an option was ignored or not supported.
4542
# When given -MP, icc 7.0 and 7.1 complain thusly:
4543
# icc: Command line warning: ignoring option '-M'; no argument required
4544
# The diagnosis changed in icc 8.0:
4545
# icc: Command line remark: option '-MP' not supported
4546
if (grep 'ignoring option' conftest.err ||
4547
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4548
am_cv_CC_dependencies_compiler_type=$depmode
4557
am_cv_CC_dependencies_compiler_type=none
4561
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4562
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4563
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4566
test "x$enable_dependency_tracking" != xno \
4567
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4569
am__fastdepCC_FALSE='#'
4571
am__fastdepCC_TRUE='#'
4572
am__fastdepCC_FALSE=
4576
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4577
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4579
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4580
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4581
$as_echo_n "(cached) " >&6
4583
cat >conftest.make <<\_ACEOF
4586
@echo '@@@%%%=$(MAKE)=@@@%%%'
4588
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4589
case `${MAKE-make} -f conftest.make 2>/dev/null` in
4591
eval ac_cv_prog_make_${ac_make}_set=yes;;
4593
eval ac_cv_prog_make_${ac_make}_set=no;;
4597
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4598
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4599
$as_echo "yes" >&6; }
4602
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4603
$as_echo "no" >&6; }
4604
SET_MAKE="MAKE=${MAKE-make}"
4608
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4609
$as_echo_n "checking whether ln -s works... " >&6; }
4611
if test "$LN_S" = "ln -s"; then
4612
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4613
$as_echo "yes" >&6; }
4615
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4616
$as_echo "no, using $LN_S" >&6; }
4624
@%:@ Check whether --enable-static was given.
4625
if test "${enable_static+set}" = set; then :
4626
enableval=$enable_static; p=${PACKAGE-default}
4628
yes) enable_static=yes ;;
4629
no) enable_static=no ;;
4632
# Look at the argument we got. We use all the common list separators.
4633
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4634
for pkg in $enableval; do
4636
if test "X$pkg" = "X$p"; then
4657
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4658
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4663
macro_version='2.4.2'
4664
macro_revision='1.3337'
4678
ltmain="$ac_aux_dir/ltmain.sh"
4680
# Backslashify metacharacters that are still active within
4681
# double-quoted strings.
4682
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4684
# Same as above, but do not quote variable references.
4685
double_quote_subst='s/\(["`\\]\)/\\\1/g'
4687
# Sed substitution to delay expansion of an escaped shell variable in a
4688
# double_quote_subst'ed string.
4689
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4691
# Sed substitution to delay expansion of an escaped single quote.
4692
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4694
# Sed substitution to avoid accidental globbing in evaled expressions
4695
no_glob_subst='s/\*/\\\*/g'
4697
ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4698
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4699
ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4701
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4702
$as_echo_n "checking how to print strings... " >&6; }
4703
# Test print first, because it will be a builtin if present.
4704
if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4705
test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4707
elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4710
# Use this function as a fallback that always works.
4711
func_fallback_echo ()
4713
eval 'cat <<_LTECHO_EOF
4717
ECHO='func_fallback_echo'
4720
# func_echo_all arg...
4721
# Invoke $ECHO with all args, space-separated.
4728
printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4729
$as_echo "printf" >&6; } ;;
4730
print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4731
$as_echo "print -r" >&6; } ;;
4732
*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4733
$as_echo "cat" >&6; } ;;
4749
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4750
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4751
if ${ac_cv_path_SED+:} false; then :
4752
$as_echo_n "(cached) " >&6
4754
ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4755
for ac_i in 1 2 3 4 5 6 7; do
4756
ac_script="$ac_script$as_nl$ac_script"
4758
echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4759
{ ac_script=; unset ac_script;}
4760
if test -z "$SED"; then
4761
ac_path_SED_found=false
4762
# Loop through the user's path and test for each of PROGNAME-LIST
4763
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4767
test -z "$as_dir" && as_dir=.
4768
for ac_prog in sed gsed; do
4769
for ac_exec_ext in '' $ac_executable_extensions; do
4770
ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4771
as_fn_executable_p "$ac_path_SED" || continue
4772
# Check for GNU ac_path_SED and select it if it is found.
4773
# Check for GNU $ac_path_SED
4774
case `"$ac_path_SED" --version 2>&1` in
4776
ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4779
$as_echo_n 0123456789 >"conftest.in"
4782
cat "conftest.in" "conftest.in" >"conftest.tmp"
4783
mv "conftest.tmp" "conftest.in"
4784
cp "conftest.in" "conftest.nl"
4785
$as_echo '' >> "conftest.nl"
4786
"$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4787
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4788
as_fn_arith $ac_count + 1 && ac_count=$as_val
4789
if test $ac_count -gt ${ac_path_SED_max-0}; then
4790
# Best one so far, save it but keep looking for a better one
4791
ac_cv_path_SED="$ac_path_SED"
4792
ac_path_SED_max=$ac_count
4794
# 10*(2^10) chars as input seems more than enough
4795
test $ac_count -gt 10 && break
4797
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4800
$ac_path_SED_found && break 3
4805
if test -z "$ac_cv_path_SED"; then
4806
as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4813
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4814
$as_echo "$ac_cv_path_SED" >&6; }
4815
SED="$ac_cv_path_SED"
4818
test -z "$SED" && SED=sed
4819
Xsed="$SED -e 1s/^X//"
4831
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4832
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4833
if ${ac_cv_path_GREP+:} false; then :
4834
$as_echo_n "(cached) " >&6
4836
if test -z "$GREP"; then
4837
ac_path_GREP_found=false
4838
# Loop through the user's path and test for each of PROGNAME-LIST
4839
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4840
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4843
test -z "$as_dir" && as_dir=.
4844
for ac_prog in grep ggrep; do
4845
for ac_exec_ext in '' $ac_executable_extensions; do
4846
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4847
as_fn_executable_p "$ac_path_GREP" || continue
4848
# Check for GNU ac_path_GREP and select it if it is found.
4849
# Check for GNU $ac_path_GREP
4850
case `"$ac_path_GREP" --version 2>&1` in
4852
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4855
$as_echo_n 0123456789 >"conftest.in"
4858
cat "conftest.in" "conftest.in" >"conftest.tmp"
4859
mv "conftest.tmp" "conftest.in"
4860
cp "conftest.in" "conftest.nl"
4861
$as_echo 'GREP' >> "conftest.nl"
4862
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4863
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4864
as_fn_arith $ac_count + 1 && ac_count=$as_val
4865
if test $ac_count -gt ${ac_path_GREP_max-0}; then
4866
# Best one so far, save it but keep looking for a better one
4867
ac_cv_path_GREP="$ac_path_GREP"
4868
ac_path_GREP_max=$ac_count
4870
# 10*(2^10) chars as input seems more than enough
4871
test $ac_count -gt 10 && break
4873
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4876
$ac_path_GREP_found && break 3
4881
if test -z "$ac_cv_path_GREP"; then
4882
as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4885
ac_cv_path_GREP=$GREP
4889
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4890
$as_echo "$ac_cv_path_GREP" >&6; }
4891
GREP="$ac_cv_path_GREP"
4894
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4895
$as_echo_n "checking for egrep... " >&6; }
4896
if ${ac_cv_path_EGREP+:} false; then :
4897
$as_echo_n "(cached) " >&6
4899
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4900
then ac_cv_path_EGREP="$GREP -E"
4902
if test -z "$EGREP"; then
4903
ac_path_EGREP_found=false
4904
# Loop through the user's path and test for each of PROGNAME-LIST
4905
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4906
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4909
test -z "$as_dir" && as_dir=.
4910
for ac_prog in egrep; do
4911
for ac_exec_ext in '' $ac_executable_extensions; do
4912
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4913
as_fn_executable_p "$ac_path_EGREP" || continue
4914
# Check for GNU ac_path_EGREP and select it if it is found.
4915
# Check for GNU $ac_path_EGREP
4916
case `"$ac_path_EGREP" --version 2>&1` in
4918
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4921
$as_echo_n 0123456789 >"conftest.in"
4924
cat "conftest.in" "conftest.in" >"conftest.tmp"
4925
mv "conftest.tmp" "conftest.in"
4926
cp "conftest.in" "conftest.nl"
4927
$as_echo 'EGREP' >> "conftest.nl"
4928
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4929
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4930
as_fn_arith $ac_count + 1 && ac_count=$as_val
4931
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4932
# Best one so far, save it but keep looking for a better one
4933
ac_cv_path_EGREP="$ac_path_EGREP"
4934
ac_path_EGREP_max=$ac_count
4936
# 10*(2^10) chars as input seems more than enough
4937
test $ac_count -gt 10 && break
4939
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4942
$ac_path_EGREP_found && break 3
4947
if test -z "$ac_cv_path_EGREP"; then
4948
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4951
ac_cv_path_EGREP=$EGREP
4956
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4957
$as_echo "$ac_cv_path_EGREP" >&6; }
4958
EGREP="$ac_cv_path_EGREP"
4961
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4962
$as_echo_n "checking for fgrep... " >&6; }
4963
if ${ac_cv_path_FGREP+:} false; then :
4964
$as_echo_n "(cached) " >&6
4966
if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4967
then ac_cv_path_FGREP="$GREP -F"
4969
if test -z "$FGREP"; then
4970
ac_path_FGREP_found=false
4971
# Loop through the user's path and test for each of PROGNAME-LIST
4972
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4973
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4976
test -z "$as_dir" && as_dir=.
4977
for ac_prog in fgrep; do
4978
for ac_exec_ext in '' $ac_executable_extensions; do
4979
ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4980
as_fn_executable_p "$ac_path_FGREP" || continue
4981
# Check for GNU ac_path_FGREP and select it if it is found.
4982
# Check for GNU $ac_path_FGREP
4983
case `"$ac_path_FGREP" --version 2>&1` in
4985
ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4988
$as_echo_n 0123456789 >"conftest.in"
4991
cat "conftest.in" "conftest.in" >"conftest.tmp"
4992
mv "conftest.tmp" "conftest.in"
4993
cp "conftest.in" "conftest.nl"
4994
$as_echo 'FGREP' >> "conftest.nl"
4995
"$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4996
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4997
as_fn_arith $ac_count + 1 && ac_count=$as_val
4998
if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4999
# Best one so far, save it but keep looking for a better one
5000
ac_cv_path_FGREP="$ac_path_FGREP"
5001
ac_path_FGREP_max=$ac_count
5003
# 10*(2^10) chars as input seems more than enough
5004
test $ac_count -gt 10 && break
5006
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5009
$ac_path_FGREP_found && break 3
5014
if test -z "$ac_cv_path_FGREP"; then
5015
as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5018
ac_cv_path_FGREP=$FGREP
5023
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5024
$as_echo "$ac_cv_path_FGREP" >&6; }
5025
FGREP="$ac_cv_path_FGREP"
5028
test -z "$GREP" && GREP=grep
5048
@%:@ Check whether --with-gnu-ld was given.
5049
if test "${with_gnu_ld+set}" = set; then :
5050
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5056
if test "$GCC" = yes; then
5057
# Check if gcc -print-prog-name=ld gives a path.
5058
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5059
$as_echo_n "checking for ld used by $CC... " >&6; }
5062
# gcc leaves a trailing carriage return which upsets mingw
5063
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5065
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5068
# Accept absolute paths.
5070
re_direlt='/[^/][^/]*/\.\./'
5071
# Canonicalize the pathname of ld
5072
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5073
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5074
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5076
test -z "$LD" && LD="$ac_prog"
5079
# If it fails, then pretend we aren't using GCC.
5083
# If it is relative, then search for the first ld in PATH.
5087
elif test "$with_gnu_ld" = yes; then
5088
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5089
$as_echo_n "checking for GNU ld... " >&6; }
5091
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5092
$as_echo_n "checking for non-GNU ld... " >&6; }
5094
if ${lt_cv_path_LD+:} false; then :
5095
$as_echo_n "(cached) " >&6
5097
if test -z "$LD"; then
5098
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5099
for ac_dir in $PATH; do
5101
test -z "$ac_dir" && ac_dir=.
5102
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5103
lt_cv_path_LD="$ac_dir/$ac_prog"
5104
# Check to see if the program is GNU ld. I'd rather use --version,
5105
# but apparently some variants of GNU ld only accept -v.
5106
# Break only if it was the GNU/non-GNU ld that we prefer.
5107
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5108
*GNU* | *'with BFD'*)
5109
test "$with_gnu_ld" != no && break
5112
test "$with_gnu_ld" != yes && break
5119
lt_cv_path_LD="$LD" # Let the user override the test with a path.
5124
if test -n "$LD"; then
5125
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5126
$as_echo "$LD" >&6; }
5128
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5129
$as_echo "no" >&6; }
5131
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5132
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5133
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5134
if ${lt_cv_prog_gnu_ld+:} false; then :
5135
$as_echo_n "(cached) " >&6
5137
# I'd rather use --version here, but apparently some GNU lds only accept -v.
5138
case `$LD -v 2>&1 </dev/null` in
5139
*GNU* | *'with BFD'*)
5140
lt_cv_prog_gnu_ld=yes
5143
lt_cv_prog_gnu_ld=no
5147
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5148
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5149
with_gnu_ld=$lt_cv_prog_gnu_ld
5159
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5160
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5161
if ${lt_cv_path_NM+:} false; then :
5162
$as_echo_n "(cached) " >&6
5164
if test -n "$NM"; then
5165
# Let the user override the test.
5168
lt_nm_to_check="${ac_tool_prefix}nm"
5169
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5170
lt_nm_to_check="$lt_nm_to_check nm"
5172
for lt_tmp_nm in $lt_nm_to_check; do
5173
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5174
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5176
test -z "$ac_dir" && ac_dir=.
5177
tmp_nm="$ac_dir/$lt_tmp_nm"
5178
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5179
# Check to see if the nm accepts a BSD-compat flag.
5180
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5181
# nm: unknown option "B" ignored
5182
# Tru64's nm complains that /dev/null is an invalid object file
5183
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5184
*/dev/null* | *'Invalid file or object type'*)
5185
lt_cv_path_NM="$tmp_nm -B"
5189
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5191
lt_cv_path_NM="$tmp_nm -p"
5195
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5196
continue # so that we can try to find one that supports BSD flags
5205
: ${lt_cv_path_NM=no}
5208
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5209
$as_echo "$lt_cv_path_NM" >&6; }
5210
if test "$lt_cv_path_NM" != "no"; then
5213
# Didn't find any BSD compatible name lister, look for dumpbin.
5214
if test -n "$DUMPBIN"; then :
5215
# Let the user override the test.
5217
if test -n "$ac_tool_prefix"; then
5218
for ac_prog in dumpbin "link -dump"
5220
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5221
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5222
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5223
$as_echo_n "checking for $ac_word... " >&6; }
5224
if ${ac_cv_prog_DUMPBIN+:} false; then :
5225
$as_echo_n "(cached) " >&6
5227
if test -n "$DUMPBIN"; then
5228
ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5230
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5234
test -z "$as_dir" && as_dir=.
5235
for ac_exec_ext in '' $ac_executable_extensions; do
5236
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5237
ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5238
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5247
DUMPBIN=$ac_cv_prog_DUMPBIN
5248
if test -n "$DUMPBIN"; then
5249
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5250
$as_echo "$DUMPBIN" >&6; }
5252
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5253
$as_echo "no" >&6; }
5257
test -n "$DUMPBIN" && break
5260
if test -z "$DUMPBIN"; then
5261
ac_ct_DUMPBIN=$DUMPBIN
5262
for ac_prog in dumpbin "link -dump"
5264
# Extract the first word of "$ac_prog", so it can be a program name with args.
5265
set dummy $ac_prog; ac_word=$2
5266
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5267
$as_echo_n "checking for $ac_word... " >&6; }
5268
if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5269
$as_echo_n "(cached) " >&6
5271
if test -n "$ac_ct_DUMPBIN"; then
5272
ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5274
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5278
test -z "$as_dir" && as_dir=.
5279
for ac_exec_ext in '' $ac_executable_extensions; do
5280
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5281
ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5282
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5291
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5292
if test -n "$ac_ct_DUMPBIN"; then
5293
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5294
$as_echo "$ac_ct_DUMPBIN" >&6; }
5296
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5297
$as_echo "no" >&6; }
5301
test -n "$ac_ct_DUMPBIN" && break
5304
if test "x$ac_ct_DUMPBIN" = x; then
5307
case $cross_compiling:$ac_tool_warned in
5309
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5310
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5311
ac_tool_warned=yes ;;
5313
DUMPBIN=$ac_ct_DUMPBIN
5317
case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5319
DUMPBIN="$DUMPBIN -symbols"
5327
if test "$DUMPBIN" != ":"; then
5331
test -z "$NM" && NM=nm
5338
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5339
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5340
if ${lt_cv_nm_interface+:} false; then :
5341
$as_echo_n "(cached) " >&6
5343
lt_cv_nm_interface="BSD nm"
5344
echo "int some_variable = 0;" > conftest.$ac_ext
5345
(eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5346
(eval "$ac_compile" 2>conftest.err)
5347
cat conftest.err >&5
5348
(eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5349
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5350
cat conftest.err >&5
5351
(eval echo "\"\$as_me:$LINENO: output\"" >&5)
5352
cat conftest.out >&5
5353
if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5354
lt_cv_nm_interface="MS dumpbin"
5358
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5359
$as_echo "$lt_cv_nm_interface" >&6; }
5361
# find the maximum length of command line arguments
5362
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5363
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5364
if ${lt_cv_sys_max_cmd_len+:} false; then :
5365
$as_echo_n "(cached) " >&6
5372
# On DJGPP, this test can blow up pretty badly due to problems in libc
5373
# (any single argument exceeding 2000 bytes causes a buffer overrun
5374
# during glob expansion). Even if it were fixed, the result of this
5375
# check would be larger than it should be.
5376
lt_cv_sys_max_cmd_len=12288; # 12K is about right
5380
# Under GNU Hurd, this test is not required because there is
5381
# no limit to the length of command line arguments.
5382
# Libtool will interpret -1 as no limit whatsoever
5383
lt_cv_sys_max_cmd_len=-1;
5386
cygwin* | mingw* | cegcc*)
5387
# On Win9x/ME, this test blows up -- it succeeds, but takes
5388
# about 5 minutes as the teststring grows exponentially.
5389
# Worse, since 9x/ME are not pre-emptively multitasking,
5390
# you end up with a "frozen" computer, even though with patience
5391
# the test eventually succeeds (with a max line length of 256k).
5392
# Instead, let's just punt: use the minimum linelength reported by
5393
# all of the supported platforms: 8192 (on NT/2K/XP).
5394
lt_cv_sys_max_cmd_len=8192;
5398
# On MiNT this can take a long time and run out of memory.
5399
lt_cv_sys_max_cmd_len=8192;
5403
# On AmigaOS with pdksh, this test takes hours, literally.
5404
# So we just punt and use a minimum line length of 8192.
5405
lt_cv_sys_max_cmd_len=8192;
5408
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5409
# This has been around since 386BSD, at least. Likely further.
5410
if test -x /sbin/sysctl; then
5411
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5412
elif test -x /usr/sbin/sysctl; then
5413
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5415
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5417
# And add a safety zone
5418
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5419
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5423
# We know the value 262144 and hardcode it with a safety zone (like BSD)
5424
lt_cv_sys_max_cmd_len=196608
5428
# The test takes a long time on OS/2.
5429
lt_cv_sys_max_cmd_len=8192
5433
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5434
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5435
# nice to cause kernel panics so lets avoid the loop below.
5436
# First set a reasonable default.
5437
lt_cv_sys_max_cmd_len=16384
5439
if test -x /sbin/sysconfig; then
5440
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5441
*1*) lt_cv_sys_max_cmd_len=-1 ;;
5446
lt_cv_sys_max_cmd_len=102400
5448
sysv5* | sco5v6* | sysv4.2uw2*)
5449
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5450
if test -n "$kargmax"; then
5451
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5453
lt_cv_sys_max_cmd_len=32768
5457
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5458
if test -n "$lt_cv_sys_max_cmd_len" && \
5459
test undefined != "$lt_cv_sys_max_cmd_len"; then
5460
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5461
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5463
# Make teststring a little bigger before we do anything with it.
5464
# a 1K string should be a reasonable start.
5465
for i in 1 2 3 4 5 6 7 8 ; do
5466
teststring=$teststring$teststring
5468
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5469
# If test is not a shell built-in, we'll probably end up computing a
5470
# maximum length that is only half of the actual maximum length, but
5472
while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5473
= "X$teststring$teststring"; } >/dev/null 2>&1 &&
5474
test $i != 17 # 1/2 MB should be enough
5477
teststring=$teststring$teststring
5479
# Only check the string length outside the loop.
5480
lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5482
# Add a significant safety factor because C++ compilers can tack on
5483
# massive amounts of additional arguments before passing them to the
5484
# linker. It appears as though 1/2 is a usable value.
5485
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5492
if test -n $lt_cv_sys_max_cmd_len ; then
5493
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5494
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5496
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5497
$as_echo "none" >&6; }
5499
max_cmd_len=$lt_cv_sys_max_cmd_len
5510
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5511
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5512
# Try some XSI features
5515
test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5517
&& eval 'test $(( 1 + 1 )) -eq 2 \
5518
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5520
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5521
$as_echo "$xsi_shell" >&6; }
5524
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5525
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5527
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5529
&& lt_shell_append=yes
5530
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5531
$as_echo "$lt_shell_append" >&6; }
5534
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5544
# test EBCDIC or ASCII
5545
case `echo X|tr X '\101'` in
5546
A) # ASCII based system
5547
# \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5548
lt_SP2NL='tr \040 \012'
5549
lt_NL2SP='tr \015\012 \040\040'
5551
*) # EBCDIC based system
5552
lt_SP2NL='tr \100 \n'
5553
lt_NL2SP='tr \r\n \100\100'
5565
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5566
$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5567
if ${lt_cv_to_host_file_cmd+:} false; then :
5568
$as_echo_n "(cached) " >&6
5573
*-*-mingw* ) # actually msys
5574
lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5577
lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5579
* ) # otherwise, assume *nix
5580
lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5586
*-*-mingw* ) # actually msys
5587
lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5590
lt_cv_to_host_file_cmd=func_convert_file_noop
5592
* ) # otherwise, assume *nix
5593
lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5597
* ) # unhandled hosts (and "normal" native builds)
5598
lt_cv_to_host_file_cmd=func_convert_file_noop
5604
to_host_file_cmd=$lt_cv_to_host_file_cmd
5605
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5606
$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5612
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5613
$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5614
if ${lt_cv_to_tool_file_cmd+:} false; then :
5615
$as_echo_n "(cached) " >&6
5617
#assume ordinary cross tools, or native build.
5618
lt_cv_to_tool_file_cmd=func_convert_file_noop
5622
*-*-mingw* ) # actually msys
5623
lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5631
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5632
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5633
$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5639
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5640
$as_echo_n "checking for $LD option to reload object files... " >&6; }
5641
if ${lt_cv_ld_reload_flag+:} false; then :
5642
$as_echo_n "(cached) " >&6
5644
lt_cv_ld_reload_flag='-r'
5646
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5647
$as_echo "$lt_cv_ld_reload_flag" >&6; }
5648
reload_flag=$lt_cv_ld_reload_flag
5649
case $reload_flag in
5651
*) reload_flag=" $reload_flag" ;;
5653
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5655
cygwin* | mingw* | pw32* | cegcc*)
5656
if test "$GCC" != yes; then
5661
if test "$GCC" = yes; then
5662
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5664
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5677
if test -n "$ac_tool_prefix"; then
5678
# Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5679
set dummy ${ac_tool_prefix}objdump; ac_word=$2
5680
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5681
$as_echo_n "checking for $ac_word... " >&6; }
5682
if ${ac_cv_prog_OBJDUMP+:} false; then :
5683
$as_echo_n "(cached) " >&6
5685
if test -n "$OBJDUMP"; then
5686
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5688
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5692
test -z "$as_dir" && as_dir=.
5693
for ac_exec_ext in '' $ac_executable_extensions; do
5694
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5695
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5696
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5705
OBJDUMP=$ac_cv_prog_OBJDUMP
5706
if test -n "$OBJDUMP"; then
5707
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5708
$as_echo "$OBJDUMP" >&6; }
5710
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5711
$as_echo "no" >&6; }
5716
if test -z "$ac_cv_prog_OBJDUMP"; then
5717
ac_ct_OBJDUMP=$OBJDUMP
5718
# Extract the first word of "objdump", so it can be a program name with args.
5719
set dummy objdump; ac_word=$2
5720
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5721
$as_echo_n "checking for $ac_word... " >&6; }
5722
if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5723
$as_echo_n "(cached) " >&6
5725
if test -n "$ac_ct_OBJDUMP"; then
5726
ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5728
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5732
test -z "$as_dir" && as_dir=.
5733
for ac_exec_ext in '' $ac_executable_extensions; do
5734
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5735
ac_cv_prog_ac_ct_OBJDUMP="objdump"
5736
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5745
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5746
if test -n "$ac_ct_OBJDUMP"; then
5747
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5748
$as_echo "$ac_ct_OBJDUMP" >&6; }
5750
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5751
$as_echo "no" >&6; }
5754
if test "x$ac_ct_OBJDUMP" = x; then
5757
case $cross_compiling:$ac_tool_warned in
5759
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5760
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5761
ac_tool_warned=yes ;;
5763
OBJDUMP=$ac_ct_OBJDUMP
5766
OBJDUMP="$ac_cv_prog_OBJDUMP"
5769
test -z "$OBJDUMP" && OBJDUMP=objdump
5779
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5780
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5781
if ${lt_cv_deplibs_check_method+:} false; then :
5782
$as_echo_n "(cached) " >&6
5784
lt_cv_file_magic_cmd='$MAGIC_CMD'
5785
lt_cv_file_magic_test_file=
5786
lt_cv_deplibs_check_method='unknown'
5787
# Need to set the preceding variable on all platforms that support
5788
# interlibrary dependencies.
5789
# 'none' -- dependencies not supported.
5790
# `unknown' -- same as none, but documents that we really don't know.
5791
# 'pass_all' -- all dependencies passed with no checks.
5792
# 'test_compile' -- check by making test program.
5793
# 'file_magic [[regex]]' -- check by looking for files in library path
5794
# which responds to the $file_magic_cmd with a given extended regex.
5795
# If you have `file' or equivalent on your system and you're not sure
5796
# whether `pass_all' will *always* work, you probably want this one.
5800
lt_cv_deplibs_check_method=pass_all
5804
lt_cv_deplibs_check_method=pass_all
5808
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5809
lt_cv_file_magic_cmd='/usr/bin/file -L'
5810
lt_cv_file_magic_test_file=/shlib/libc.so
5814
# func_win32_libid is a shell function defined in ltmain.sh
5815
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5816
lt_cv_file_magic_cmd='func_win32_libid'
5820
# Base MSYS/MinGW do not provide the 'file' command needed by
5821
# func_win32_libid shell function, so use a weaker test based on 'objdump',
5822
# unless we find 'file', for example because we are cross-compiling.
5823
# func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5824
if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5825
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5826
lt_cv_file_magic_cmd='func_win32_libid'
5828
# Keep this pattern in sync with the one in func_win32_libid.
5829
lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5830
lt_cv_file_magic_cmd='$OBJDUMP -f'
5835
# use the weaker test based on 'objdump'. See mingw*.
5836
lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5837
lt_cv_file_magic_cmd='$OBJDUMP -f'
5840
darwin* | rhapsody*)
5841
lt_cv_deplibs_check_method=pass_all
5844
freebsd* | dragonfly*)
5845
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5848
# Not sure whether the presence of OpenBSD here was a mistake.
5849
# Let's accept both of them until this is cleared up.
5850
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5851
lt_cv_file_magic_cmd=/usr/bin/file
5852
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5856
lt_cv_deplibs_check_method=pass_all
5861
lt_cv_deplibs_check_method=pass_all
5864
hpux10.20* | hpux11*)
5865
lt_cv_file_magic_cmd=/usr/bin/file
5868
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5869
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5872
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]'
5873
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5876
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5877
lt_cv_file_magic_test_file=/usr/lib/libc.sl
5883
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5884
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5887
irix5* | irix6* | nonstopux*)
5889
*-32|*"-32 ") libmagic=32-bit;;
5890
*-n32|*"-n32 ") libmagic=N32;;
5891
*-64|*"-64 ") libmagic=64-bit;;
5892
*) libmagic=never-match;;
5894
lt_cv_deplibs_check_method=pass_all
5897
# This must be glibc/ELF.
5898
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5899
lt_cv_deplibs_check_method=pass_all
5902
netbsd* | netbsdelf*-gnu)
5903
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5904
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5906
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5911
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5912
lt_cv_file_magic_cmd=/usr/bin/file
5913
lt_cv_file_magic_test_file=/usr/lib/libnls.so
5917
lt_cv_deplibs_check_method=pass_all
5921
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5922
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5924
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5928
osf3* | osf4* | osf5*)
5929
lt_cv_deplibs_check_method=pass_all
5933
lt_cv_deplibs_check_method=pass_all
5937
lt_cv_deplibs_check_method=pass_all
5940
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5941
lt_cv_deplibs_check_method=pass_all
5945
case $host_vendor in
5947
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]'
5948
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5951
lt_cv_deplibs_check_method=pass_all
5954
lt_cv_file_magic_cmd='/bin/file'
5955
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5958
lt_cv_file_magic_cmd='/bin/file'
5959
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5960
lt_cv_file_magic_test_file=/lib/libc.so
5963
lt_cv_deplibs_check_method=pass_all
5966
lt_cv_deplibs_check_method=pass_all
5972
lt_cv_deplibs_check_method=pass_all
5977
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5978
$as_echo "$lt_cv_deplibs_check_method" >&6; }
5982
if test "$build" = "$host"; then
5985
if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5988
file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5994
file_magic_cmd=$lt_cv_file_magic_cmd
5995
deplibs_check_method=$lt_cv_deplibs_check_method
5996
test -z "$deplibs_check_method" && deplibs_check_method=unknown
6019
if test -n "$ac_tool_prefix"; then
6020
# Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6021
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6022
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6023
$as_echo_n "checking for $ac_word... " >&6; }
6024
if ${ac_cv_prog_DLLTOOL+:} false; then :
6025
$as_echo_n "(cached) " >&6
6027
if test -n "$DLLTOOL"; then
6028
ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6030
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6034
test -z "$as_dir" && as_dir=.
6035
for ac_exec_ext in '' $ac_executable_extensions; do
6036
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6037
ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6038
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6047
DLLTOOL=$ac_cv_prog_DLLTOOL
6048
if test -n "$DLLTOOL"; then
6049
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6050
$as_echo "$DLLTOOL" >&6; }
6052
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6053
$as_echo "no" >&6; }
6058
if test -z "$ac_cv_prog_DLLTOOL"; then
6059
ac_ct_DLLTOOL=$DLLTOOL
6060
# Extract the first word of "dlltool", so it can be a program name with args.
6061
set dummy dlltool; ac_word=$2
6062
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6063
$as_echo_n "checking for $ac_word... " >&6; }
6064
if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6065
$as_echo_n "(cached) " >&6
6067
if test -n "$ac_ct_DLLTOOL"; then
6068
ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6070
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6074
test -z "$as_dir" && as_dir=.
6075
for ac_exec_ext in '' $ac_executable_extensions; do
6076
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6077
ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6078
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6087
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6088
if test -n "$ac_ct_DLLTOOL"; then
6089
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6090
$as_echo "$ac_ct_DLLTOOL" >&6; }
6092
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6093
$as_echo "no" >&6; }
6096
if test "x$ac_ct_DLLTOOL" = x; then
6099
case $cross_compiling:$ac_tool_warned in
6101
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6102
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6103
ac_tool_warned=yes ;;
6105
DLLTOOL=$ac_ct_DLLTOOL
6108
DLLTOOL="$ac_cv_prog_DLLTOOL"
6111
test -z "$DLLTOOL" && DLLTOOL=dlltool
6122
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6123
$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6124
if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6125
$as_echo_n "(cached) " >&6
6127
lt_cv_sharedlib_from_linklib_cmd='unknown'
6130
cygwin* | mingw* | pw32* | cegcc*)
6131
# two different shell functions defined in ltmain.sh
6132
# decide which to use based on capabilities of $DLLTOOL
6133
case `$DLLTOOL --help 2>&1` in
6134
*--identify-strict*)
6135
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6138
lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6143
# fallback: assume linklib IS sharedlib
6144
lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6149
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6150
$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6151
sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6152
test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6160
if test -n "$ac_tool_prefix"; then
6163
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6164
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6165
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6166
$as_echo_n "checking for $ac_word... " >&6; }
6167
if ${ac_cv_prog_AR+:} false; then :
6168
$as_echo_n "(cached) " >&6
6170
if test -n "$AR"; then
6171
ac_cv_prog_AR="$AR" # Let the user override the test.
6173
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6177
test -z "$as_dir" && as_dir=.
6178
for ac_exec_ext in '' $ac_executable_extensions; do
6179
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6180
ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6181
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6191
if test -n "$AR"; then
6192
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6193
$as_echo "$AR" >&6; }
6195
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6196
$as_echo "no" >&6; }
6200
test -n "$AR" && break
6203
if test -z "$AR"; then
6207
# Extract the first word of "$ac_prog", so it can be a program name with args.
6208
set dummy $ac_prog; ac_word=$2
6209
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6210
$as_echo_n "checking for $ac_word... " >&6; }
6211
if ${ac_cv_prog_ac_ct_AR+:} false; then :
6212
$as_echo_n "(cached) " >&6
6214
if test -n "$ac_ct_AR"; then
6215
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6217
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6221
test -z "$as_dir" && as_dir=.
6222
for ac_exec_ext in '' $ac_executable_extensions; do
6223
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6224
ac_cv_prog_ac_ct_AR="$ac_prog"
6225
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6234
ac_ct_AR=$ac_cv_prog_ac_ct_AR
6235
if test -n "$ac_ct_AR"; then
6236
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6237
$as_echo "$ac_ct_AR" >&6; }
6239
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6240
$as_echo "no" >&6; }
6244
test -n "$ac_ct_AR" && break
6247
if test "x$ac_ct_AR" = x; then
6250
case $cross_compiling:$ac_tool_warned in
6252
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6253
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6254
ac_tool_warned=yes ;;
6273
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6274
$as_echo_n "checking for archiver @FILE support... " >&6; }
6275
if ${lt_cv_ar_at_file+:} false; then :
6276
$as_echo_n "(cached) " >&6
6279
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6280
/* end confdefs.h. */
6290
if ac_fn_c_try_compile "$LINENO"; then :
6291
echo conftest.$ac_objext > conftest.lst
6292
lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6293
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6294
(eval $lt_ar_try) 2>&5
6296
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6297
test $ac_status = 0; }
6298
if test "$ac_status" -eq 0; then
6299
# Ensure the archiver fails upon bogus file names.
6300
rm -f conftest.$ac_objext libconftest.a
6301
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6302
(eval $lt_ar_try) 2>&5
6304
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6305
test $ac_status = 0; }
6306
if test "$ac_status" -ne 0; then
6310
rm -f conftest.* libconftest.a
6313
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6316
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6317
$as_echo "$lt_cv_ar_at_file" >&6; }
6319
if test "x$lt_cv_ar_at_file" = xno; then
6322
archiver_list_spec=$lt_cv_ar_at_file
6331
if test -n "$ac_tool_prefix"; then
6332
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6333
set dummy ${ac_tool_prefix}strip; ac_word=$2
6334
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6335
$as_echo_n "checking for $ac_word... " >&6; }
6336
if ${ac_cv_prog_STRIP+:} false; then :
6337
$as_echo_n "(cached) " >&6
6339
if test -n "$STRIP"; then
6340
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6342
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6346
test -z "$as_dir" && as_dir=.
6347
for ac_exec_ext in '' $ac_executable_extensions; do
6348
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6349
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6350
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6359
STRIP=$ac_cv_prog_STRIP
6360
if test -n "$STRIP"; then
6361
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6362
$as_echo "$STRIP" >&6; }
6364
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6365
$as_echo "no" >&6; }
6370
if test -z "$ac_cv_prog_STRIP"; then
6372
# Extract the first word of "strip", so it can be a program name with args.
6373
set dummy strip; ac_word=$2
6374
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6375
$as_echo_n "checking for $ac_word... " >&6; }
6376
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6377
$as_echo_n "(cached) " >&6
6379
if test -n "$ac_ct_STRIP"; then
6380
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6382
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6386
test -z "$as_dir" && as_dir=.
6387
for ac_exec_ext in '' $ac_executable_extensions; do
6388
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6389
ac_cv_prog_ac_ct_STRIP="strip"
6390
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6399
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6400
if test -n "$ac_ct_STRIP"; then
6401
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6402
$as_echo "$ac_ct_STRIP" >&6; }
6404
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6405
$as_echo "no" >&6; }
6408
if test "x$ac_ct_STRIP" = x; then
6411
case $cross_compiling:$ac_tool_warned in
6413
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6414
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6415
ac_tool_warned=yes ;;
6420
STRIP="$ac_cv_prog_STRIP"
6423
test -z "$STRIP" && STRIP=:
6430
if test -n "$ac_tool_prefix"; then
6431
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6432
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6433
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6434
$as_echo_n "checking for $ac_word... " >&6; }
6435
if ${ac_cv_prog_RANLIB+:} false; then :
6436
$as_echo_n "(cached) " >&6
6438
if test -n "$RANLIB"; then
6439
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6441
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6445
test -z "$as_dir" && as_dir=.
6446
for ac_exec_ext in '' $ac_executable_extensions; do
6447
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6448
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6449
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6458
RANLIB=$ac_cv_prog_RANLIB
6459
if test -n "$RANLIB"; then
6460
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6461
$as_echo "$RANLIB" >&6; }
6463
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6464
$as_echo "no" >&6; }
6469
if test -z "$ac_cv_prog_RANLIB"; then
6470
ac_ct_RANLIB=$RANLIB
6471
# Extract the first word of "ranlib", so it can be a program name with args.
6472
set dummy ranlib; ac_word=$2
6473
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6474
$as_echo_n "checking for $ac_word... " >&6; }
6475
if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6476
$as_echo_n "(cached) " >&6
6478
if test -n "$ac_ct_RANLIB"; then
6479
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6481
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6485
test -z "$as_dir" && as_dir=.
6486
for ac_exec_ext in '' $ac_executable_extensions; do
6487
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6488
ac_cv_prog_ac_ct_RANLIB="ranlib"
6489
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6498
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6499
if test -n "$ac_ct_RANLIB"; then
6500
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6501
$as_echo "$ac_ct_RANLIB" >&6; }
6503
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6504
$as_echo "no" >&6; }
6507
if test "x$ac_ct_RANLIB" = x; then
6510
case $cross_compiling:$ac_tool_warned in
6512
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6513
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6514
ac_tool_warned=yes ;;
6516
RANLIB=$ac_ct_RANLIB
6519
RANLIB="$ac_cv_prog_RANLIB"
6522
test -z "$RANLIB" && RANLIB=:
6529
# Determine commands to create old-style static archives.
6530
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6531
old_postinstall_cmds='chmod 644 $oldlib'
6532
old_postuninstall_cmds=
6534
if test -n "$RANLIB"; then
6537
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6540
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6543
old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6548
lock_old_archive_extraction=yes ;;
6550
lock_old_archive_extraction=no ;;
6591
# If no C compiler was specified, use CC.
6594
# If no C compiler flags were specified, use CFLAGS.
6595
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6597
# Allow CC to be a program name with arguments.
6601
# Check for command to grab the raw symbol name followed by C symbol from nm.
6602
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6603
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6604
if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6605
$as_echo_n "(cached) " >&6
6608
# These are sane defaults that work on at least a few old systems.
6609
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6611
# Character class describing NM global symbol codes.
6612
symcode='[BCDEGRST]'
6614
# Regexp to match symbols that can be accessed directly from C.
6615
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6617
# Define system-specific variables.
6622
cygwin* | mingw* | pw32* | cegcc*)
6623
symcode='[ABCDGISTW]'
6626
if test "$host_cpu" = ia64; then
6627
symcode='[ABCDEGRST]'
6631
symcode='[BCDEGRST]'
6634
symcode='[BCDEGQRST]'
6645
sysv5* | sco5v6* | unixware* | OpenUNIX*)
6653
# If we're using GNU nm, then use its standard symbol codes.
6654
case `$NM -V 2>&1` in
6655
*GNU* | *'with BFD'*)
6656
symcode='[ABCDGIRSTW]' ;;
6659
# Transform an extracted symbol line into a proper C declaration.
6660
# Some systems (esp. on ia64) link data and code symbols differently,
6661
# so use this general approach.
6662
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6664
# Transform an extracted symbol line into symbol name and symbol address
6665
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6666
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'"
6668
# Handle CRLF in mingw tool chain
6672
opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6676
# Try without a prefix underscore, then with it.
6677
for ac_symprfx in "" "_"; do
6679
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6680
symxfrm="\\1 $ac_symprfx\\2 \\2"
6682
# Write the raw and C identifiers.
6683
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6684
# Fake it for dumpbin and say T for any non-static function
6685
# and D for any global variable.
6686
# Also find C++ and __fastcall symbols from MSVC++,
6687
# which start with @ or ?.
6688
lt_cv_sys_global_symbol_pipe="$AWK '"\
6689
" {last_section=section; section=\$ 3};"\
6690
" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6691
" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6692
" \$ 0!~/External *\|/{next};"\
6693
" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6694
" {if(hide[section]) next};"\
6695
" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6696
" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6697
" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6698
" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6699
" ' prfx=^$ac_symprfx"
6701
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6703
lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6705
# Check to see that the pipe works correctly.
6709
cat > conftest.$ac_ext <<_LT_EOF
6714
void nm_test_func(void);
6715
void nm_test_func(void){}
6719
int main(){nm_test_var='a';nm_test_func();return(0);}
6722
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6723
(eval $ac_compile) 2>&5
6725
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6726
test $ac_status = 0; }; then
6727
# Now try to grab the symbols.
6729
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6730
(eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6732
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6733
test $ac_status = 0; } && test -s "$nlist"; then
6734
# Try sorting and uniquifying the output.
6735
if sort "$nlist" | uniq > "$nlist"T; then
6736
mv -f "$nlist"T "$nlist"
6741
# Make sure that we snagged all the symbols we need.
6742
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6743
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6744
cat <<_LT_EOF > conftest.$ac_ext
6745
/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6746
#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6747
/* DATA imports from DLLs on WIN32 con't be const, because runtime
6748
relocations are performed -- see ld's documentation on pseudo-relocs. */
6749
# define LT@&t@_DLSYM_CONST
6750
#elif defined(__osf__)
6751
/* This system does not cope well with relocations in const data. */
6752
# define LT@&t@_DLSYM_CONST
6754
# define LT@&t@_DLSYM_CONST const
6762
# Now generate the symbol file.
6763
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6765
cat <<_LT_EOF >> conftest.$ac_ext
6767
/* The mapping between symbol names and symbols. */
6768
LT@&t@_DLSYM_CONST struct {
6772
lt__PROGRAM__LTX_preloaded_symbols[] =
6774
{ "@PROGRAM@", (void *) 0 },
6776
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6777
cat <<\_LT_EOF >> conftest.$ac_ext
6781
/* This works around a problem in FreeBSD linker */
6782
#ifdef FREEBSD_WORKAROUND
6783
static const void *lt_preloaded_setup() {
6784
return lt__PROGRAM__LTX_preloaded_symbols;
6792
# Now try linking the two files.
6793
mv conftest.$ac_objext conftstm.$ac_objext
6794
lt_globsym_save_LIBS=$LIBS
6795
lt_globsym_save_CFLAGS=$CFLAGS
6796
LIBS="conftstm.$ac_objext"
6797
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6798
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6799
(eval $ac_link) 2>&5
6801
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6802
test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6805
LIBS=$lt_globsym_save_LIBS
6806
CFLAGS=$lt_globsym_save_CFLAGS
6808
echo "cannot find nm_test_func in $nlist" >&5
6811
echo "cannot find nm_test_var in $nlist" >&5
6814
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6817
echo "$progname: failed program was:" >&5
6818
cat conftest.$ac_ext >&5
6820
rm -rf conftest* conftst*
6822
# Do not use the global_symbol_pipe unless it works.
6823
if test "$pipe_works" = yes; then
6826
lt_cv_sys_global_symbol_pipe=
6832
if test -z "$lt_cv_sys_global_symbol_pipe"; then
6833
lt_cv_sys_global_symbol_to_cdecl=
6835
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6836
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6837
$as_echo "failed" >&6; }
6839
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6840
$as_echo "ok" >&6; }
6843
# Response file support.
6844
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6845
nm_file_list_spec='@'
6846
elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6847
nm_file_list_spec='@'
6876
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6877
$as_echo_n "checking for sysroot... " >&6; }
6879
@%:@ Check whether --with-sysroot was given.
6880
if test "${with_sysroot+set}" = set; then :
6881
withval=$with_sysroot;
6888
case ${with_sysroot} in #(
6890
if test "$GCC" = yes; then
6891
lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6895
lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6900
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6901
$as_echo "${with_sysroot}" >&6; }
6902
as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6906
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6907
$as_echo "${lt_sysroot:-no}" >&6; }
6913
@%:@ Check whether --enable-libtool-lock was given.
6914
if test "${enable_libtool_lock+set}" = set; then :
6915
enableval=$enable_libtool_lock;
6918
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6920
# Some flags need to be propagated to the compiler or linker for good
6924
# Find out which ABI we are using.
6925
echo 'int i;' > conftest.$ac_ext
6926
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6927
(eval $ac_compile) 2>&5
6929
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6930
test $ac_status = 0; }; then
6931
case `/usr/bin/file conftest.$ac_objext` in
6943
# Find out which ABI we are using.
6944
echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6945
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6946
(eval $ac_compile) 2>&5
6948
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6949
test $ac_status = 0; }; then
6950
if test "$lt_cv_prog_gnu_ld" = yes; then
6951
case `/usr/bin/file conftest.$ac_objext` in
6953
LD="${LD-ld} -melf32bsmip"
6956
LD="${LD-ld} -melf32bmipn32"
6959
LD="${LD-ld} -melf64bmip"
6963
case `/usr/bin/file conftest.$ac_objext` in
6979
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6980
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6981
# Find out which ABI we are using.
6982
echo 'int i;' > conftest.$ac_ext
6983
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6984
(eval $ac_compile) 2>&5
6986
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6987
test $ac_status = 0; }; then
6988
case `/usr/bin/file conftest.o` in
6991
x86_64-*kfreebsd*-gnu)
6992
LD="${LD-ld} -m elf_i386_fbsd"
6995
case `/usr/bin/file conftest.o` in
6997
LD="${LD-ld} -m elf32_x86_64"
7000
LD="${LD-ld} -m elf_i386"
7004
ppc64-*linux*|powerpc64-*linux*)
7005
LD="${LD-ld} -m elf32ppclinux"
7008
LD="${LD-ld} -m elf_s390"
7011
LD="${LD-ld} -m elf32_sparc"
7017
x86_64-*kfreebsd*-gnu)
7018
LD="${LD-ld} -m elf_x86_64_fbsd"
7021
LD="${LD-ld} -m elf_x86_64"
7023
ppc*-*linux*|powerpc*-*linux*)
7024
LD="${LD-ld} -m elf64ppc"
7026
s390*-*linux*|s390*-*tpf*)
7027
LD="${LD-ld} -m elf64_s390"
7030
LD="${LD-ld} -m elf64_sparc"
7040
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
7041
SAVE_CFLAGS="$CFLAGS"
7042
CFLAGS="$CFLAGS -belf"
7043
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7044
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7045
if ${lt_cv_cc_needs_belf+:} false; then :
7046
$as_echo_n "(cached) " >&6
7049
ac_cpp='$CPP $CPPFLAGS'
7050
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7051
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7052
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7054
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7055
/* end confdefs.h. */
7065
if ac_fn_c_try_link "$LINENO"; then :
7066
lt_cv_cc_needs_belf=yes
7068
lt_cv_cc_needs_belf=no
7070
rm -f core conftest.err conftest.$ac_objext \
7071
conftest$ac_exeext conftest.$ac_ext
7073
ac_cpp='$CPP $CPPFLAGS'
7074
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7075
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7076
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7079
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7080
$as_echo "$lt_cv_cc_needs_belf" >&6; }
7081
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7082
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7083
CFLAGS="$SAVE_CFLAGS"
7087
# Find out which ABI we are using.
7088
echo 'int i;' > conftest.$ac_ext
7089
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7090
(eval $ac_compile) 2>&5
7092
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7093
test $ac_status = 0; }; then
7094
case `/usr/bin/file conftest.o` in
7096
case $lt_cv_prog_gnu_ld in
7100
LD="${LD-ld} -m elf_x86_64"
7103
LD="${LD-ld} -m elf64_sparc"
7106
# GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7107
if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7112
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7124
need_locks="$enable_libtool_lock"
7126
if test -n "$ac_tool_prefix"; then
7127
# Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7128
set dummy ${ac_tool_prefix}mt; ac_word=$2
7129
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7130
$as_echo_n "checking for $ac_word... " >&6; }
7131
if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7132
$as_echo_n "(cached) " >&6
7134
if test -n "$MANIFEST_TOOL"; then
7135
ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7137
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7141
test -z "$as_dir" && as_dir=.
7142
for ac_exec_ext in '' $ac_executable_extensions; do
7143
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7144
ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7145
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7154
MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7155
if test -n "$MANIFEST_TOOL"; then
7156
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7157
$as_echo "$MANIFEST_TOOL" >&6; }
7159
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7160
$as_echo "no" >&6; }
7165
if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7166
ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7167
# Extract the first word of "mt", so it can be a program name with args.
7168
set dummy mt; ac_word=$2
7169
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7170
$as_echo_n "checking for $ac_word... " >&6; }
7171
if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7172
$as_echo_n "(cached) " >&6
7174
if test -n "$ac_ct_MANIFEST_TOOL"; then
7175
ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7177
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7181
test -z "$as_dir" && as_dir=.
7182
for ac_exec_ext in '' $ac_executable_extensions; do
7183
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7184
ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7185
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7194
ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7195
if test -n "$ac_ct_MANIFEST_TOOL"; then
7196
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7197
$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
7199
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7200
$as_echo "no" >&6; }
7203
if test "x$ac_ct_MANIFEST_TOOL" = x; then
7206
case $cross_compiling:$ac_tool_warned in
7208
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7209
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7210
ac_tool_warned=yes ;;
7212
MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7215
MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7218
test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7219
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7220
$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7221
if ${lt_cv_path_mainfest_tool+:} false; then :
7222
$as_echo_n "(cached) " >&6
7224
lt_cv_path_mainfest_tool=no
7225
echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7226
$MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7227
cat conftest.err >&5
7228
if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7229
lt_cv_path_mainfest_tool=yes
7233
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7234
$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7235
if test "x$lt_cv_path_mainfest_tool" != xyes; then
7245
rhapsody* | darwin*)
7246
if test -n "$ac_tool_prefix"; then
7247
# Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7248
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7249
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7250
$as_echo_n "checking for $ac_word... " >&6; }
7251
if ${ac_cv_prog_DSYMUTIL+:} false; then :
7252
$as_echo_n "(cached) " >&6
7254
if test -n "$DSYMUTIL"; then
7255
ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7257
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7261
test -z "$as_dir" && as_dir=.
7262
for ac_exec_ext in '' $ac_executable_extensions; do
7263
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7264
ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7265
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7274
DSYMUTIL=$ac_cv_prog_DSYMUTIL
7275
if test -n "$DSYMUTIL"; then
7276
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7277
$as_echo "$DSYMUTIL" >&6; }
7279
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7280
$as_echo "no" >&6; }
7285
if test -z "$ac_cv_prog_DSYMUTIL"; then
7286
ac_ct_DSYMUTIL=$DSYMUTIL
7287
# Extract the first word of "dsymutil", so it can be a program name with args.
7288
set dummy dsymutil; ac_word=$2
7289
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7290
$as_echo_n "checking for $ac_word... " >&6; }
7291
if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7292
$as_echo_n "(cached) " >&6
7294
if test -n "$ac_ct_DSYMUTIL"; then
7295
ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7297
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7301
test -z "$as_dir" && as_dir=.
7302
for ac_exec_ext in '' $ac_executable_extensions; do
7303
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7304
ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7305
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7314
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7315
if test -n "$ac_ct_DSYMUTIL"; then
7316
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7317
$as_echo "$ac_ct_DSYMUTIL" >&6; }
7319
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7320
$as_echo "no" >&6; }
7323
if test "x$ac_ct_DSYMUTIL" = x; then
7326
case $cross_compiling:$ac_tool_warned in
7328
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7329
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7330
ac_tool_warned=yes ;;
7332
DSYMUTIL=$ac_ct_DSYMUTIL
7335
DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7338
if test -n "$ac_tool_prefix"; then
7339
# Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7340
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7341
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7342
$as_echo_n "checking for $ac_word... " >&6; }
7343
if ${ac_cv_prog_NMEDIT+:} false; then :
7344
$as_echo_n "(cached) " >&6
7346
if test -n "$NMEDIT"; then
7347
ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7349
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7353
test -z "$as_dir" && as_dir=.
7354
for ac_exec_ext in '' $ac_executable_extensions; do
7355
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7356
ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7357
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7366
NMEDIT=$ac_cv_prog_NMEDIT
7367
if test -n "$NMEDIT"; then
7368
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7369
$as_echo "$NMEDIT" >&6; }
7371
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7372
$as_echo "no" >&6; }
7377
if test -z "$ac_cv_prog_NMEDIT"; then
7378
ac_ct_NMEDIT=$NMEDIT
7379
# Extract the first word of "nmedit", so it can be a program name with args.
7380
set dummy nmedit; ac_word=$2
7381
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7382
$as_echo_n "checking for $ac_word... " >&6; }
7383
if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7384
$as_echo_n "(cached) " >&6
7386
if test -n "$ac_ct_NMEDIT"; then
7387
ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7389
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7393
test -z "$as_dir" && as_dir=.
7394
for ac_exec_ext in '' $ac_executable_extensions; do
7395
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7396
ac_cv_prog_ac_ct_NMEDIT="nmedit"
7397
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7406
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7407
if test -n "$ac_ct_NMEDIT"; then
7408
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7409
$as_echo "$ac_ct_NMEDIT" >&6; }
7411
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7412
$as_echo "no" >&6; }
7415
if test "x$ac_ct_NMEDIT" = x; then
7418
case $cross_compiling:$ac_tool_warned in
7420
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7421
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7422
ac_tool_warned=yes ;;
7424
NMEDIT=$ac_ct_NMEDIT
7427
NMEDIT="$ac_cv_prog_NMEDIT"
7430
if test -n "$ac_tool_prefix"; then
7431
# Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7432
set dummy ${ac_tool_prefix}lipo; ac_word=$2
7433
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7434
$as_echo_n "checking for $ac_word... " >&6; }
7435
if ${ac_cv_prog_LIPO+:} false; then :
7436
$as_echo_n "(cached) " >&6
7438
if test -n "$LIPO"; then
7439
ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7441
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7445
test -z "$as_dir" && as_dir=.
7446
for ac_exec_ext in '' $ac_executable_extensions; do
7447
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7448
ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7449
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7458
LIPO=$ac_cv_prog_LIPO
7459
if test -n "$LIPO"; then
7460
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7461
$as_echo "$LIPO" >&6; }
7463
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7464
$as_echo "no" >&6; }
7469
if test -z "$ac_cv_prog_LIPO"; then
7471
# Extract the first word of "lipo", so it can be a program name with args.
7472
set dummy lipo; ac_word=$2
7473
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7474
$as_echo_n "checking for $ac_word... " >&6; }
7475
if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7476
$as_echo_n "(cached) " >&6
7478
if test -n "$ac_ct_LIPO"; then
7479
ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7481
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7485
test -z "$as_dir" && as_dir=.
7486
for ac_exec_ext in '' $ac_executable_extensions; do
7487
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7488
ac_cv_prog_ac_ct_LIPO="lipo"
7489
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7498
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7499
if test -n "$ac_ct_LIPO"; then
7500
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7501
$as_echo "$ac_ct_LIPO" >&6; }
7503
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7504
$as_echo "no" >&6; }
7507
if test "x$ac_ct_LIPO" = x; then
7510
case $cross_compiling:$ac_tool_warned in
7512
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7513
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7514
ac_tool_warned=yes ;;
7519
LIPO="$ac_cv_prog_LIPO"
7522
if test -n "$ac_tool_prefix"; then
7523
# Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7524
set dummy ${ac_tool_prefix}otool; ac_word=$2
7525
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7526
$as_echo_n "checking for $ac_word... " >&6; }
7527
if ${ac_cv_prog_OTOOL+:} false; then :
7528
$as_echo_n "(cached) " >&6
7530
if test -n "$OTOOL"; then
7531
ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7533
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7537
test -z "$as_dir" && as_dir=.
7538
for ac_exec_ext in '' $ac_executable_extensions; do
7539
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7540
ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7541
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7550
OTOOL=$ac_cv_prog_OTOOL
7551
if test -n "$OTOOL"; then
7552
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7553
$as_echo "$OTOOL" >&6; }
7555
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7556
$as_echo "no" >&6; }
7561
if test -z "$ac_cv_prog_OTOOL"; then
7563
# Extract the first word of "otool", so it can be a program name with args.
7564
set dummy otool; ac_word=$2
7565
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7566
$as_echo_n "checking for $ac_word... " >&6; }
7567
if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7568
$as_echo_n "(cached) " >&6
7570
if test -n "$ac_ct_OTOOL"; then
7571
ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7573
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7577
test -z "$as_dir" && as_dir=.
7578
for ac_exec_ext in '' $ac_executable_extensions; do
7579
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7580
ac_cv_prog_ac_ct_OTOOL="otool"
7581
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7590
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7591
if test -n "$ac_ct_OTOOL"; then
7592
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7593
$as_echo "$ac_ct_OTOOL" >&6; }
7595
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7596
$as_echo "no" >&6; }
7599
if test "x$ac_ct_OTOOL" = x; then
7602
case $cross_compiling:$ac_tool_warned in
7604
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7605
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7606
ac_tool_warned=yes ;;
7611
OTOOL="$ac_cv_prog_OTOOL"
7614
if test -n "$ac_tool_prefix"; then
7615
# Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7616
set dummy ${ac_tool_prefix}otool64; ac_word=$2
7617
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7618
$as_echo_n "checking for $ac_word... " >&6; }
7619
if ${ac_cv_prog_OTOOL64+:} false; then :
7620
$as_echo_n "(cached) " >&6
7622
if test -n "$OTOOL64"; then
7623
ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7625
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7629
test -z "$as_dir" && as_dir=.
7630
for ac_exec_ext in '' $ac_executable_extensions; do
7631
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7632
ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7633
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7642
OTOOL64=$ac_cv_prog_OTOOL64
7643
if test -n "$OTOOL64"; then
7644
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7645
$as_echo "$OTOOL64" >&6; }
7647
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7648
$as_echo "no" >&6; }
7653
if test -z "$ac_cv_prog_OTOOL64"; then
7654
ac_ct_OTOOL64=$OTOOL64
7655
# Extract the first word of "otool64", so it can be a program name with args.
7656
set dummy otool64; ac_word=$2
7657
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7658
$as_echo_n "checking for $ac_word... " >&6; }
7659
if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7660
$as_echo_n "(cached) " >&6
7662
if test -n "$ac_ct_OTOOL64"; then
7663
ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7665
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7669
test -z "$as_dir" && as_dir=.
7670
for ac_exec_ext in '' $ac_executable_extensions; do
7671
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7672
ac_cv_prog_ac_ct_OTOOL64="otool64"
7673
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7682
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7683
if test -n "$ac_ct_OTOOL64"; then
7684
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7685
$as_echo "$ac_ct_OTOOL64" >&6; }
7687
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7688
$as_echo "no" >&6; }
7691
if test "x$ac_ct_OTOOL64" = x; then
7694
case $cross_compiling:$ac_tool_warned in
7696
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7697
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7698
ac_tool_warned=yes ;;
7700
OTOOL64=$ac_ct_OTOOL64
7703
OTOOL64="$ac_cv_prog_OTOOL64"
7732
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7733
$as_echo_n "checking for -single_module linker flag... " >&6; }
7734
if ${lt_cv_apple_cc_single_mod+:} false; then :
7735
$as_echo_n "(cached) " >&6
7737
lt_cv_apple_cc_single_mod=no
7738
if test -z "${LT_MULTI_MODULE}"; then
7739
# By default we will add the -single_module flag. You can override
7740
# by either setting the environment variable LT_MULTI_MODULE
7741
# non-empty at configure time, or by adding -multi_module to the
7743
rm -rf libconftest.dylib*
7744
echo "int foo(void){return 1;}" > conftest.c
7745
echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7746
-dynamiclib -Wl,-single_module conftest.c" >&5
7747
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7748
-dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7750
# If there is a non-empty error log, and "single_module"
7751
# appears in it, assume the flag caused a linker warning
7752
if test -s conftest.err && $GREP single_module conftest.err; then
7753
cat conftest.err >&5
7754
# Otherwise, if the output was created with a 0 exit code from
7755
# the compiler, it worked.
7756
elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7757
lt_cv_apple_cc_single_mod=yes
7759
cat conftest.err >&5
7761
rm -rf libconftest.dylib*
7765
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7766
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7768
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7769
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7770
if ${lt_cv_ld_exported_symbols_list+:} false; then :
7771
$as_echo_n "(cached) " >&6
7773
lt_cv_ld_exported_symbols_list=no
7774
save_LDFLAGS=$LDFLAGS
7775
echo "_main" > conftest.sym
7776
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7777
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7778
/* end confdefs.h. */
7788
if ac_fn_c_try_link "$LINENO"; then :
7789
lt_cv_ld_exported_symbols_list=yes
7791
lt_cv_ld_exported_symbols_list=no
7793
rm -f core conftest.err conftest.$ac_objext \
7794
conftest$ac_exeext conftest.$ac_ext
7795
LDFLAGS="$save_LDFLAGS"
7798
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7799
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7801
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7802
$as_echo_n "checking for -force_load linker flag... " >&6; }
7803
if ${lt_cv_ld_force_load+:} false; then :
7804
$as_echo_n "(cached) " >&6
7806
lt_cv_ld_force_load=no
7807
cat > conftest.c << _LT_EOF
7808
int forced_loaded() { return 2;}
7810
echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7811
$LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7812
echo "$AR cru libconftest.a conftest.o" >&5
7813
$AR cru libconftest.a conftest.o 2>&5
7814
echo "$RANLIB libconftest.a" >&5
7815
$RANLIB libconftest.a 2>&5
7816
cat > conftest.c << _LT_EOF
7817
int main() { return 0;}
7819
echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7820
$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7822
if test -s conftest.err && $GREP force_load conftest.err; then
7823
cat conftest.err >&5
7824
elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7825
lt_cv_ld_force_load=yes
7827
cat conftest.err >&5
7829
rm -f conftest.err libconftest.a conftest conftest.c
7830
rm -rf conftest.dSYM
7833
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7834
$as_echo "$lt_cv_ld_force_load" >&6; }
7836
rhapsody* | darwin1.[012])
7837
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7839
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7840
darwin*) # darwin 5.x on
7841
# if running on 10.5 or later, the deployment target defaults
7842
# to the OS version, if on x86, and 10.4, the deployment
7843
# target defaults to 10.4. Don't you love it?
7844
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7845
10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7846
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7848
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7850
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7854
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7855
_lt_dar_single_mod='$single_module'
7857
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7858
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7860
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7862
if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7863
_lt_dsymutil='~$DSYMUTIL $lib || :'
7871
ac_cpp='$CPP $CPPFLAGS'
7872
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7873
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7874
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7875
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7876
$as_echo_n "checking how to run the C preprocessor... " >&6; }
7877
# On Suns, sometimes $CPP names a directory.
7878
if test -n "$CPP" && test -d "$CPP"; then
7881
if test -z "$CPP"; then
7882
if ${ac_cv_prog_CPP+:} false; then :
7883
$as_echo_n "(cached) " >&6
7885
# Double quotes because CPP needs to be expanded
7886
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7889
for ac_c_preproc_warn_flag in '' yes
7891
# Use a header file that comes with gcc, so configuring glibc
7892
# with a fresh cross-compiler works.
7893
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7894
# <limits.h> exists even on freestanding compilers.
7895
# On the NeXT, cc -E runs the code through the compiler's parser,
7896
# not just through cpp. "Syntax error" is here to catch this case.
7897
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7898
/* end confdefs.h. */
7900
@%:@ include <limits.h>
7902
@%:@ include <assert.h>
7906
if ac_fn_c_try_cpp "$LINENO"; then :
7909
# Broken: fails on valid input.
7912
rm -f conftest.err conftest.i conftest.$ac_ext
7914
# OK, works on sane cases. Now check whether nonexistent headers
7915
# can be detected and how.
7916
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7917
/* end confdefs.h. */
7918
@%:@include <ac_nonexistent.h>
7920
if ac_fn_c_try_cpp "$LINENO"; then :
7921
# Broken: success on invalid input.
7924
# Passes both tests.
7928
rm -f conftest.err conftest.i conftest.$ac_ext
7931
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7932
rm -f conftest.i conftest.err conftest.$ac_ext
7933
if $ac_preproc_ok; then :
7945
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7946
$as_echo "$CPP" >&6; }
7948
for ac_c_preproc_warn_flag in '' yes
7950
# Use a header file that comes with gcc, so configuring glibc
7951
# with a fresh cross-compiler works.
7952
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7953
# <limits.h> exists even on freestanding compilers.
7954
# On the NeXT, cc -E runs the code through the compiler's parser,
7955
# not just through cpp. "Syntax error" is here to catch this case.
7956
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7957
/* end confdefs.h. */
7959
@%:@ include <limits.h>
7961
@%:@ include <assert.h>
7965
if ac_fn_c_try_cpp "$LINENO"; then :
7968
# Broken: fails on valid input.
7971
rm -f conftest.err conftest.i conftest.$ac_ext
7973
# OK, works on sane cases. Now check whether nonexistent headers
7974
# can be detected and how.
7975
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7976
/* end confdefs.h. */
7977
@%:@include <ac_nonexistent.h>
7979
if ac_fn_c_try_cpp "$LINENO"; then :
7980
# Broken: success on invalid input.
7983
# Passes both tests.
7987
rm -f conftest.err conftest.i conftest.$ac_ext
7990
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7991
rm -f conftest.i conftest.err conftest.$ac_ext
7992
if $ac_preproc_ok; then :
7995
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7996
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7997
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7998
See \`config.log' for more details" "$LINENO" 5; }
8002
ac_cpp='$CPP $CPPFLAGS'
8003
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8004
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8005
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8008
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8009
$as_echo_n "checking for ANSI C header files... " >&6; }
8010
if ${ac_cv_header_stdc+:} false; then :
8011
$as_echo_n "(cached) " >&6
8013
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8014
/* end confdefs.h. */
8028
if ac_fn_c_try_compile "$LINENO"; then :
8029
ac_cv_header_stdc=yes
8031
ac_cv_header_stdc=no
8033
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8035
if test $ac_cv_header_stdc = yes; then
8036
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8037
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8038
/* end confdefs.h. */
8042
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8043
$EGREP "memchr" >/dev/null 2>&1; then :
8046
ac_cv_header_stdc=no
8052
if test $ac_cv_header_stdc = yes; then
8053
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8054
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8055
/* end confdefs.h. */
8059
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8060
$EGREP "free" >/dev/null 2>&1; then :
8063
ac_cv_header_stdc=no
8069
if test $ac_cv_header_stdc = yes; then
8070
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8071
if test "$cross_compiling" = yes; then :
8074
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8075
/* end confdefs.h. */
8078
#if ((' ' & 0x0FF) == 0x020)
8079
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8080
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8082
# define ISLOWER(c) \
8083
(('a' <= (c) && (c) <= 'i') \
8084
|| ('j' <= (c) && (c) <= 'r') \
8085
|| ('s' <= (c) && (c) <= 'z'))
8086
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8089
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8094
for (i = 0; i < 256; i++)
8095
if (XOR (islower (i), ISLOWER (i))
8096
|| toupper (i) != TOUPPER (i))
8101
if ac_fn_c_try_run "$LINENO"; then :
8104
ac_cv_header_stdc=no
8106
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8107
conftest.$ac_objext conftest.beam conftest.$ac_ext
8112
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8113
$as_echo "$ac_cv_header_stdc" >&6; }
8114
if test $ac_cv_header_stdc = yes; then
8116
$as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
8120
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8121
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8122
inttypes.h stdint.h unistd.h
8124
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8125
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8127
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8128
cat >>confdefs.h <<_ACEOF
8129
@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8137
for ac_header in dlfcn.h
8139
ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8141
if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8142
cat >>confdefs.h <<_ACEOF
8143
@%:@define HAVE_DLFCN_H 1
8162
@%:@ Check whether --enable-shared was given.
8163
if test "${enable_shared+set}" = set; then :
8164
enableval=$enable_shared; p=${PACKAGE-default}
8166
yes) enable_shared=yes ;;
8167
no) enable_shared=no ;;
8170
# Look at the argument we got. We use all the common list separators.
8171
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8172
for pkg in $enableval; do
8174
if test "X$pkg" = "X$p"; then
8195
@%:@ Check whether --with-pic was given.
8196
if test "${with_pic+set}" = set; then :
8197
withval=$with_pic; lt_p=${PACKAGE-default}
8199
yes|no) pic_mode=$withval ;;
8202
# Look at the argument we got. We use all the common list separators.
8203
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8204
for lt_pkg in $withval; do
8206
if test "X$lt_pkg" = "X$lt_p"; then
8218
test -z "$pic_mode" && pic_mode=default
8226
@%:@ Check whether --enable-fast-install was given.
8227
if test "${enable_fast_install+set}" = set; then :
8228
enableval=$enable_fast_install; p=${PACKAGE-default}
8230
yes) enable_fast_install=yes ;;
8231
no) enable_fast_install=no ;;
8233
enable_fast_install=no
8234
# Look at the argument we got. We use all the common list separators.
8235
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8236
for pkg in $enableval; do
8238
if test "X$pkg" = "X$p"; then
8239
enable_fast_install=yes
8246
enable_fast_install=yes
8259
# This can be used to rebuild libtool when needed
8260
LIBTOOL_DEPS="$ltmain"
8262
# Always use our own libtool.
8263
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8294
test -z "$LN_S" && LN_S="ln -s"
8309
if test -n "${ZSH_VERSION+set}" ; then
8310
setopt NO_GLOB_SUBST
8313
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8314
$as_echo_n "checking for objdir... " >&6; }
8315
if ${lt_cv_objdir+:} false; then :
8316
$as_echo_n "(cached) " >&6
8318
rm -f .libs 2>/dev/null
8319
mkdir .libs 2>/dev/null
8320
if test -d .libs; then
8323
# MS-DOS does not allow filenames that begin with a dot.
8326
rmdir .libs 2>/dev/null
8328
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8329
$as_echo "$lt_cv_objdir" >&6; }
8330
objdir=$lt_cv_objdir
8336
cat >>confdefs.h <<_ACEOF
8337
@%:@define LT_OBJDIR "$lt_cv_objdir/"
8345
# AIX sometimes has problems with the GCC collect2 program. For some
8346
# reason, if we set the COLLECT_NAMES environment variable, the problems
8347
# vanish in a puff of smoke.
8348
if test "X${COLLECT_NAMES+set}" != Xset; then
8350
export COLLECT_NAMES
8357
can_build_shared=yes
8359
# All known linkers require a `.a' archive for static linking (except MSVC,
8360
# which needs '.lib').
8363
with_gnu_ld="$lt_cv_prog_gnu_ld"
8366
old_CFLAGS="$CFLAGS"
8368
# Set sane defaults for various variables
8369
test -z "$CC" && CC=cc
8370
test -z "$LTCC" && LTCC=$CC
8371
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8372
test -z "$LD" && LD=ld
8373
test -z "$ac_objext" && ac_objext=o
8375
for cc_temp in $compiler""; do
8377
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8378
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8383
cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8386
# Only perform the check for file, if the check method requires it
8387
test -z "$MAGIC_CMD" && MAGIC_CMD=file
8388
case $deplibs_check_method in
8390
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8391
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8392
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8393
if ${lt_cv_path_MAGIC_CMD+:} false; then :
8394
$as_echo_n "(cached) " >&6
8398
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8401
lt_save_MAGIC_CMD="$MAGIC_CMD"
8402
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8403
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8404
for ac_dir in $ac_dummy; do
8406
test -z "$ac_dir" && ac_dir=.
8407
if test -f $ac_dir/${ac_tool_prefix}file; then
8408
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8409
if test -n "$file_magic_test_file"; then
8410
case $deplibs_check_method in
8412
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8413
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8414
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8415
$EGREP "$file_magic_regex" > /dev/null; then
8420
*** Warning: the command libtool uses to detect shared libraries,
8421
*** $file_magic_cmd, produces output that libtool cannot recognize.
8422
*** The result is that libtool may fail to recognize shared libraries
8423
*** as such. This will affect the creation of libtool libraries that
8424
*** depend on shared libraries, but programs linked with such libtool
8425
*** libraries will work regardless of this problem. Nevertheless, you
8426
*** may want to report the problem to your system manager and/or to
8427
*** bug-libtool@gnu.org
8437
MAGIC_CMD="$lt_save_MAGIC_CMD"
8442
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8443
if test -n "$MAGIC_CMD"; then
8444
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8445
$as_echo "$MAGIC_CMD" >&6; }
8447
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8448
$as_echo "no" >&6; }
8455
if test -z "$lt_cv_path_MAGIC_CMD"; then
8456
if test -n "$ac_tool_prefix"; then
8457
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8458
$as_echo_n "checking for file... " >&6; }
8459
if ${lt_cv_path_MAGIC_CMD+:} false; then :
8460
$as_echo_n "(cached) " >&6
8464
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8467
lt_save_MAGIC_CMD="$MAGIC_CMD"
8468
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8469
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8470
for ac_dir in $ac_dummy; do
8472
test -z "$ac_dir" && ac_dir=.
8473
if test -f $ac_dir/file; then
8474
lt_cv_path_MAGIC_CMD="$ac_dir/file"
8475
if test -n "$file_magic_test_file"; then
8476
case $deplibs_check_method in
8478
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8479
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8480
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8481
$EGREP "$file_magic_regex" > /dev/null; then
8486
*** Warning: the command libtool uses to detect shared libraries,
8487
*** $file_magic_cmd, produces output that libtool cannot recognize.
8488
*** The result is that libtool may fail to recognize shared libraries
8489
*** as such. This will affect the creation of libtool libraries that
8490
*** depend on shared libraries, but programs linked with such libtool
8491
*** libraries will work regardless of this problem. Nevertheless, you
8492
*** may want to report the problem to your system manager and/or to
8493
*** bug-libtool@gnu.org
8503
MAGIC_CMD="$lt_save_MAGIC_CMD"
8508
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8509
if test -n "$MAGIC_CMD"; then
8510
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8511
$as_echo "$MAGIC_CMD" >&6; }
8513
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8514
$as_echo "no" >&6; }
8527
# Use C for the default configuration in the libtool script
8531
ac_cpp='$CPP $CPPFLAGS'
8532
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8533
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8534
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8537
# Source file extension for C test sources.
8540
# Object file extension for compiled C test sources.
8544
# Code to be used in simple compile tests
8545
lt_simple_compile_test_code="int some_variable = 0;"
8547
# Code to be used in simple link tests
8548
lt_simple_link_test_code='int main(){return(0);}'
8556
# If no C compiler was specified, use CC.
8559
# If no C compiler flags were specified, use CFLAGS.
8560
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8562
# Allow CC to be a program name with arguments.
8565
# Save the default compiler, since it gets overwritten when the other
8566
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8567
compiler_DEFAULT=$CC
8569
# save warnings/boilerplate of simple test code
8570
ac_outfile=conftest.$ac_objext
8571
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8572
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8573
_lt_compiler_boilerplate=`cat conftest.err`
8576
ac_outfile=conftest.$ac_objext
8577
echo "$lt_simple_link_test_code" >conftest.$ac_ext
8578
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8579
_lt_linker_boilerplate=`cat conftest.err`
8584
## There is no encapsulation within the following macros, do not change
8585
## the running order or otherwise move them around unless you know exactly
8586
## what you are doing...
8587
if test -n "$compiler"; then
8589
lt_prog_compiler_no_builtin_flag=
8591
if test "$GCC" = yes; then
8592
case $cc_basename in
8594
lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8596
lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8599
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8600
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8601
if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8602
$as_echo_n "(cached) " >&6
8604
lt_cv_prog_compiler_rtti_exceptions=no
8605
ac_outfile=conftest.$ac_objext
8606
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8607
lt_compiler_flag="-fno-rtti -fno-exceptions"
8608
# Insert the option either (1) after the last *FLAGS variable, or
8609
# (2) before a word containing "conftest.", or (3) at the end.
8610
# Note that $ac_compile itself does not contain backslashes and begins
8611
# with a dollar sign (not a hyphen), so the echo should work correctly.
8612
# The option is referenced via a variable to avoid confusing sed.
8613
lt_compile=`echo "$ac_compile" | $SED \
8614
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8615
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8616
-e 's:$: $lt_compiler_flag:'`
8617
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8618
(eval "$lt_compile" 2>conftest.err)
8620
cat conftest.err >&5
8621
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8622
if (exit $ac_status) && test -s "$ac_outfile"; then
8623
# The compiler can only warn and ignore the option if not recognized
8624
# So say no if there are warnings other than the usual output.
8625
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8626
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8627
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8628
lt_cv_prog_compiler_rtti_exceptions=yes
8634
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8635
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8637
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8638
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8650
lt_prog_compiler_wl=
8651
lt_prog_compiler_pic=
8652
lt_prog_compiler_static=
8655
if test "$GCC" = yes; then
8656
lt_prog_compiler_wl='-Wl,'
8657
lt_prog_compiler_static='-static'
8661
# All AIX code is PIC.
8662
if test "$host_cpu" = ia64; then
8663
# AIX 5 now supports IA64 processor
8664
lt_prog_compiler_static='-Bstatic'
8671
# see comment about AmigaOS4 .so support
8672
lt_prog_compiler_pic='-fPIC'
8675
# FIXME: we need at least 68020 code to build shared libraries, but
8676
# adding the `-m68020' flag to GCC prevents building anything better,
8678
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8683
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8684
# PIC is the default for these OSes.
8687
mingw* | cygwin* | pw32* | os2* | cegcc*)
8688
# This hack is so that the source file can tell whether it is being
8689
# built for inclusion in a dll (and should export symbols for example).
8690
# Although the cygwin gcc ignores -fPIC, still need this for old-style
8691
# (--disable-auto-import) libraries
8692
lt_prog_compiler_pic='-DDLL_EXPORT'
8695
darwin* | rhapsody*)
8696
# PIC is the default on this platform
8697
# Common symbols not allowed in MH_DYLIB files
8698
lt_prog_compiler_pic='-fno-common'
8702
# PIC is the default for Haiku.
8703
# The "-static" flag exists, but is broken.
8704
lt_prog_compiler_static=
8708
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8709
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8710
# sets the default TLS model and affects inlining.
8716
lt_prog_compiler_pic='-fPIC'
8722
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
8723
# Instead, we relocate shared libraries at runtime.
8727
# Just because we use GCC doesn't mean we suddenly get shared libraries
8728
# on systems that don't support them.
8729
lt_prog_compiler_can_build_shared=no
8734
# QNX uses GNU C++, but need to define -shared option too, otherwise
8736
lt_prog_compiler_pic='-fPIC -shared'
8740
if test -d /usr/nec; then
8741
lt_prog_compiler_pic=-Kconform_pic
8746
lt_prog_compiler_pic='-fPIC'
8750
case $cc_basename in
8751
nvcc*) # Cuda Compiler Driver 2.2
8752
lt_prog_compiler_wl='-Xlinker '
8753
if test -n "$lt_prog_compiler_pic"; then
8754
lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8759
# PORTME Check for flag to pass linker flags through the system compiler.
8762
lt_prog_compiler_wl='-Wl,'
8763
if test "$host_cpu" = ia64; then
8764
# AIX 5 now supports IA64 processor
8765
lt_prog_compiler_static='-Bstatic'
8767
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8771
mingw* | cygwin* | pw32* | os2* | cegcc*)
8772
# This hack is so that the source file can tell whether it is being
8773
# built for inclusion in a dll (and should export symbols for example).
8774
lt_prog_compiler_pic='-DDLL_EXPORT'
8777
hpux9* | hpux10* | hpux11*)
8778
lt_prog_compiler_wl='-Wl,'
8779
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8786
lt_prog_compiler_pic='+Z'
8789
# Is there a better lt_prog_compiler_static that works with the bundled CC?
8790
lt_prog_compiler_static='${wl}-a ${wl}archive'
8793
irix5* | irix6* | nonstopux*)
8794
lt_prog_compiler_wl='-Wl,'
8795
# PIC (with -KPIC) is the default.
8796
lt_prog_compiler_static='-non_shared'
8799
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8800
case $cc_basename in
8801
# old Intel for x86_64 which still supported -KPIC.
8803
lt_prog_compiler_wl='-Wl,'
8804
lt_prog_compiler_pic='-KPIC'
8805
lt_prog_compiler_static='-static'
8807
# icc used to be incompatible with GCC.
8808
# ICC 10 doesn't accept -KPIC any more.
8810
lt_prog_compiler_wl='-Wl,'
8811
lt_prog_compiler_pic='-fPIC'
8812
lt_prog_compiler_static='-static'
8814
# Lahey Fortran 8.1.
8816
lt_prog_compiler_wl='-Wl,'
8817
lt_prog_compiler_pic='--shared'
8818
lt_prog_compiler_static='--static'
8821
# NAG Fortran compiler
8822
lt_prog_compiler_wl='-Wl,-Wl,,'
8823
lt_prog_compiler_pic='-PIC'
8824
lt_prog_compiler_static='-Bstatic'
8826
pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8827
# Portland Group compilers (*not* the Pentium gcc compiler,
8828
# which looks to be a dead project)
8829
lt_prog_compiler_wl='-Wl,'
8830
lt_prog_compiler_pic='-fpic'
8831
lt_prog_compiler_static='-Bstatic'
8834
lt_prog_compiler_wl='-Wl,'
8835
# All Alpha code is PIC.
8836
lt_prog_compiler_static='-non_shared'
8838
xl* | bgxl* | bgf* | mpixl*)
8839
# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8840
lt_prog_compiler_wl='-Wl,'
8841
lt_prog_compiler_pic='-qpic'
8842
lt_prog_compiler_static='-qstaticlink'
8845
case `$CC -V 2>&1 | sed 5q` in
8846
*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8847
# Sun Fortran 8.3 passes all unrecognized flags to the linker
8848
lt_prog_compiler_pic='-KPIC'
8849
lt_prog_compiler_static='-Bstatic'
8850
lt_prog_compiler_wl=''
8852
*Sun\ F* | *Sun*Fortran*)
8853
lt_prog_compiler_pic='-KPIC'
8854
lt_prog_compiler_static='-Bstatic'
8855
lt_prog_compiler_wl='-Qoption ld '
8859
lt_prog_compiler_pic='-KPIC'
8860
lt_prog_compiler_static='-Bstatic'
8861
lt_prog_compiler_wl='-Wl,'
8863
*Intel*\ [CF]*Compiler*)
8864
lt_prog_compiler_wl='-Wl,'
8865
lt_prog_compiler_pic='-fPIC'
8866
lt_prog_compiler_static='-static'
8869
lt_prog_compiler_wl='-Wl,'
8870
lt_prog_compiler_pic='-fpic'
8871
lt_prog_compiler_static='-Bstatic'
8879
lt_prog_compiler_pic='-KPIC'
8880
lt_prog_compiler_static='-Bstatic'
8884
# QNX uses GNU C++, but need to define -shared option too, otherwise
8886
lt_prog_compiler_pic='-fPIC -shared'
8889
osf3* | osf4* | osf5*)
8890
lt_prog_compiler_wl='-Wl,'
8891
# All OSF/1 code is PIC.
8892
lt_prog_compiler_static='-non_shared'
8896
lt_prog_compiler_static='-non_shared'
8900
lt_prog_compiler_pic='-KPIC'
8901
lt_prog_compiler_static='-Bstatic'
8902
case $cc_basename in
8903
f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8904
lt_prog_compiler_wl='-Qoption ld ';;
8906
lt_prog_compiler_wl='-Wl,';;
8911
lt_prog_compiler_wl='-Qoption ld '
8912
lt_prog_compiler_pic='-PIC'
8913
lt_prog_compiler_static='-Bstatic'
8916
sysv4 | sysv4.2uw2* | sysv4.3*)
8917
lt_prog_compiler_wl='-Wl,'
8918
lt_prog_compiler_pic='-KPIC'
8919
lt_prog_compiler_static='-Bstatic'
8923
if test -d /usr/nec ;then
8924
lt_prog_compiler_pic='-Kconform_pic'
8925
lt_prog_compiler_static='-Bstatic'
8929
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8930
lt_prog_compiler_wl='-Wl,'
8931
lt_prog_compiler_pic='-KPIC'
8932
lt_prog_compiler_static='-Bstatic'
8936
lt_prog_compiler_wl='-Wl,'
8937
lt_prog_compiler_can_build_shared=no
8941
lt_prog_compiler_pic='-pic'
8942
lt_prog_compiler_static='-Bstatic'
8946
lt_prog_compiler_can_build_shared=no
8952
# For platforms which do not support PIC, -DPIC is meaningless:
8954
lt_prog_compiler_pic=
8957
lt_prog_compiler_pic="$lt_prog_compiler_pic@&t@ -DPIC"
8961
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8962
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8963
if ${lt_cv_prog_compiler_pic+:} false; then :
8964
$as_echo_n "(cached) " >&6
8966
lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8968
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8969
$as_echo "$lt_cv_prog_compiler_pic" >&6; }
8970
lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8973
# Check to make sure the PIC flag actually works.
8975
if test -n "$lt_prog_compiler_pic"; then
8976
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8977
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8978
if ${lt_cv_prog_compiler_pic_works+:} false; then :
8979
$as_echo_n "(cached) " >&6
8981
lt_cv_prog_compiler_pic_works=no
8982
ac_outfile=conftest.$ac_objext
8983
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8984
lt_compiler_flag="$lt_prog_compiler_pic@&t@ -DPIC"
8985
# Insert the option either (1) after the last *FLAGS variable, or
8986
# (2) before a word containing "conftest.", or (3) at the end.
8987
# Note that $ac_compile itself does not contain backslashes and begins
8988
# with a dollar sign (not a hyphen), so the echo should work correctly.
8989
# The option is referenced via a variable to avoid confusing sed.
8990
lt_compile=`echo "$ac_compile" | $SED \
8991
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8992
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8993
-e 's:$: $lt_compiler_flag:'`
8994
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8995
(eval "$lt_compile" 2>conftest.err)
8997
cat conftest.err >&5
8998
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8999
if (exit $ac_status) && test -s "$ac_outfile"; then
9000
# The compiler can only warn and ignore the option if not recognized
9001
# So say no if there are warnings other than the usual output.
9002
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9003
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9004
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9005
lt_cv_prog_compiler_pic_works=yes
9011
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9012
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9014
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9015
case $lt_prog_compiler_pic in
9017
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9020
lt_prog_compiler_pic=
9021
lt_prog_compiler_can_build_shared=no
9037
# Check to make sure the static flag actually works.
9039
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9040
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9041
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9042
if ${lt_cv_prog_compiler_static_works+:} false; then :
9043
$as_echo_n "(cached) " >&6
9045
lt_cv_prog_compiler_static_works=no
9046
save_LDFLAGS="$LDFLAGS"
9047
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9048
echo "$lt_simple_link_test_code" > conftest.$ac_ext
9049
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9050
# The linker can only warn and ignore the option if not recognized
9051
# So say no if there are warnings
9052
if test -s conftest.err; then
9053
# Append any errors to the config.log.
9054
cat conftest.err 1>&5
9055
$ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9056
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9057
if diff conftest.exp conftest.er2 >/dev/null; then
9058
lt_cv_prog_compiler_static_works=yes
9061
lt_cv_prog_compiler_static_works=yes
9065
LDFLAGS="$save_LDFLAGS"
9068
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9069
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9071
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9074
lt_prog_compiler_static=
9083
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9084
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9085
if ${lt_cv_prog_compiler_c_o+:} false; then :
9086
$as_echo_n "(cached) " >&6
9088
lt_cv_prog_compiler_c_o=no
9089
$RM -r conftest 2>/dev/null
9093
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9095
lt_compiler_flag="-o out/conftest2.$ac_objext"
9096
# Insert the option either (1) after the last *FLAGS variable, or
9097
# (2) before a word containing "conftest.", or (3) at the end.
9098
# Note that $ac_compile itself does not contain backslashes and begins
9099
# with a dollar sign (not a hyphen), so the echo should work correctly.
9100
lt_compile=`echo "$ac_compile" | $SED \
9101
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9102
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9103
-e 's:$: $lt_compiler_flag:'`
9104
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9105
(eval "$lt_compile" 2>out/conftest.err)
9107
cat out/conftest.err >&5
9108
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9109
if (exit $ac_status) && test -s out/conftest2.$ac_objext
9111
# The compiler can only warn and ignore the option if not recognized
9112
# So say no if there are warnings
9113
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9114
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9115
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9116
lt_cv_prog_compiler_c_o=yes
9121
# SGI C++ compiler will create directory out/ii_files/ for
9122
# template instantiation
9123
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9124
$RM out/* && rmdir out
9130
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9131
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9138
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9139
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9140
if ${lt_cv_prog_compiler_c_o+:} false; then :
9141
$as_echo_n "(cached) " >&6
9143
lt_cv_prog_compiler_c_o=no
9144
$RM -r conftest 2>/dev/null
9148
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9150
lt_compiler_flag="-o out/conftest2.$ac_objext"
9151
# Insert the option either (1) after the last *FLAGS variable, or
9152
# (2) before a word containing "conftest.", or (3) at the end.
9153
# Note that $ac_compile itself does not contain backslashes and begins
9154
# with a dollar sign (not a hyphen), so the echo should work correctly.
9155
lt_compile=`echo "$ac_compile" | $SED \
9156
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9157
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9158
-e 's:$: $lt_compiler_flag:'`
9159
(eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9160
(eval "$lt_compile" 2>out/conftest.err)
9162
cat out/conftest.err >&5
9163
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9164
if (exit $ac_status) && test -s out/conftest2.$ac_objext
9166
# The compiler can only warn and ignore the option if not recognized
9167
# So say no if there are warnings
9168
$ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9169
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9170
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9171
lt_cv_prog_compiler_c_o=yes
9176
# SGI C++ compiler will create directory out/ii_files/ for
9177
# template instantiation
9178
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9179
$RM out/* && rmdir out
9185
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9186
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9191
hard_links="nottested"
9192
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9193
# do not overwrite the value of need_locks provided by the user
9194
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9195
$as_echo_n "checking if we can lock with hard links... " >&6; }
9198
ln conftest.a conftest.b 2>/dev/null && hard_links=no
9200
ln conftest.a conftest.b 2>&5 || hard_links=no
9201
ln conftest.a conftest.b 2>/dev/null && hard_links=no
9202
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9203
$as_echo "$hard_links" >&6; }
9204
if test "$hard_links" = no; then
9205
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9206
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9218
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9219
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9222
allow_undefined_flag=
9223
always_export_symbols=no
9225
archive_expsym_cmds=
9226
compiler_needs_object=no
9227
enable_shared_with_static_runtimes=no
9228
export_dynamic_flag_spec=
9229
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9230
hardcode_automatic=no
9232
hardcode_direct_absolute=no
9233
hardcode_libdir_flag_spec=
9234
hardcode_libdir_separator=
9236
hardcode_shlibpath_var=unsupported
9238
link_all_deplibs=unknown
9241
old_archive_from_new_cmds=
9242
old_archive_from_expsyms_cmds=
9243
thread_safe_flag_spec=
9244
whole_archive_flag_spec=
9245
# include_expsyms should be a list of space-separated symbols to be *always*
9246
# included in the symbol list
9248
# exclude_expsyms can be an extended regexp of symbols to exclude
9249
# it will be wrapped by ` (' and `)$', so one must not match beginning or
9250
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9251
# as well as any symbol that contains `d'.
9252
exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9253
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9254
# platforms (ab)use it in PIC code, but their linkers get confused if
9255
# the symbol is explicitly referenced. Since portable code cannot
9256
# rely on this symbol name, it's probably fine to never include it in
9257
# preloaded symbol tables.
9258
# Exclude shared library initialization/finalization symbols.
9259
extract_expsyms_cmds=
9262
cygwin* | mingw* | pw32* | cegcc*)
9263
# FIXME: the MSVC++ port hasn't been tested in a loooong time
9264
# When not using gcc, we currently assume that we are using
9265
# Microsoft Visual C++.
9266
if test "$GCC" != yes; then
9271
# we just hope/assume this is gcc and not c89 (= MSVC++)
9277
linux* | k*bsd*-gnu | gnu*)
9284
# On some targets, GNU ld is compatible enough with the native linker
9285
# that we're better off using the native interface for both.
9286
lt_use_gnu_ld_interface=no
9287
if test "$with_gnu_ld" = yes; then
9290
# The AIX port of GNU ld has always aspired to compatibility
9291
# with the native linker. However, as the warning in the GNU ld
9292
# block says, versions before 2.19.5* couldn't really create working
9293
# shared libraries, regardless of the interface used.
9294
case `$LD -v 2>&1` in
9295
*\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9296
*\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9297
*\ \(GNU\ Binutils\)\ [3-9]*) ;;
9299
lt_use_gnu_ld_interface=yes
9304
lt_use_gnu_ld_interface=yes
9309
if test "$lt_use_gnu_ld_interface" = yes; then
9310
# If archive_cmds runs LD, not CC, wlarc should be empty
9313
# Set some defaults for GNU ld with shared library support. These
9314
# are reset later if shared libraries are not supported. Putting them
9315
# here allows them to be overridden if necessary.
9316
runpath_var=LD_RUN_PATH
9317
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9318
export_dynamic_flag_spec='${wl}--export-dynamic'
9319
# ancient GNU ld didn't support --whole-archive et. al.
9320
if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9321
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9323
whole_archive_flag_spec=
9325
supports_anon_versioning=no
9326
case `$LD -v 2>&1` in
9327
*GNU\ gold*) supports_anon_versioning=yes ;;
9328
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9329
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9330
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9331
*\ 2.11.*) ;; # other 2.11 versions
9332
*) supports_anon_versioning=yes ;;
9335
# See if GNU ld supports shared libraries.
9338
# On AIX/PPC, the GNU linker is very broken
9339
if test "$host_cpu" != ia64; then
9343
*** Warning: the GNU linker, at least up to release 2.19, is reported
9344
*** to be unable to reliably create shared libraries on AIX.
9345
*** Therefore, libtool is disabling shared libraries support. If you
9346
*** really care for shared libraries, you may want to install binutils
9347
*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9348
*** You will then need to restart the configuration process.
9357
# see comment about AmigaOS4 .so support
9358
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9359
archive_expsym_cmds=''
9362
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)'
9363
hardcode_libdir_flag_spec='-L$libdir'
9364
hardcode_minus_L=yes
9370
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9371
allow_undefined_flag=unsupported
9372
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9373
# support --undefined. This deserves some investigation. FIXME
9374
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9380
cygwin* | mingw* | pw32* | cegcc*)
9381
# _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9382
# as there is no search path for DLLs.
9383
hardcode_libdir_flag_spec='-L$libdir'
9384
export_dynamic_flag_spec='${wl}--export-all-symbols'
9385
allow_undefined_flag=unsupported
9386
always_export_symbols=no
9387
enable_shared_with_static_runtimes=yes
9388
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'
9389
exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9391
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9392
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9393
# If the export-symbols file already is a .def file (1st line
9394
# is EXPORTS), use it as is; otherwise, prepend...
9395
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9396
cp $export_symbols $output_objdir/$soname.def;
9398
echo EXPORTS > $output_objdir/$soname.def;
9399
cat $export_symbols >> $output_objdir/$soname.def;
9401
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9408
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9409
link_all_deplibs=yes
9414
hardcode_shlibpath_var=no
9415
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9416
export_dynamic_flag_spec='${wl}-E'
9417
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9418
# Instead, shared libraries are loaded at an image base (0x10000000 by
9419
# default) and relocated if they conflict, which is a slow very memory
9420
# consuming and fragmenting process. To avoid this, we pick a random,
9421
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9422
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
9423
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9424
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'
9427
gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9429
if test "$host_os" = linux-dietlibc; then
9430
case $cc_basename in
9431
diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9434
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9435
&& test "$tmp_diet" = no
9437
tmp_addflag=' $pic_flag'
9438
tmp_sharedflag='-shared'
9439
case $cc_basename,$host_cpu in
9440
pgcc*) # Portland Group C compiler
9441
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'
9442
tmp_addflag=' $pic_flag'
9444
pgf77* | pgf90* | pgf95* | pgfortran*)
9445
# Portland Group f77 and f90 compilers
9446
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'
9447
tmp_addflag=' $pic_flag -Mnomain' ;;
9448
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9449
tmp_addflag=' -i_dynamic' ;;
9450
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9451
tmp_addflag=' -i_dynamic -nofor_main' ;;
9452
ifc* | ifort*) # Intel Fortran compiler
9453
tmp_addflag=' -nofor_main' ;;
9454
lf95*) # Lahey Fortran 8.1
9455
whole_archive_flag_spec=
9456
tmp_sharedflag='--shared' ;;
9457
xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9458
tmp_sharedflag='-qmkshrobj'
9460
nvcc*) # Cuda Compiler Driver 2.2
9461
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'
9462
compiler_needs_object=yes
9465
case `$CC -V 2>&1 | sed 5q` in
9466
*Sun\ C*) # Sun C 5.9
9467
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'
9468
compiler_needs_object=yes
9469
tmp_sharedflag='-G' ;;
9470
*Sun\ F*) # Sun Fortran 8.3
9471
tmp_sharedflag='-G' ;;
9473
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9475
if test "x$supports_anon_versioning" = xyes; then
9476
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9477
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9478
echo "local: *; };" >> $output_objdir/$libname.ver~
9479
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9482
case $cc_basename in
9483
xlf* | bgf* | bgxlf* | mpixlf*)
9484
# IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9485
whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9486
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9487
archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9488
if test "x$supports_anon_versioning" = xyes; then
9489
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9490
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9491
echo "local: *; };" >> $output_objdir/$libname.ver~
9492
$LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9501
netbsd* | netbsdelf*-gnu)
9502
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9503
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9506
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9507
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9512
if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9516
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9517
*** create shared libraries on Solaris systems. Therefore, libtool
9518
*** is disabling shared libraries support. We urge you to upgrade GNU
9519
*** binutils to release 2.9.1 or newer. Another option is to modify
9520
*** your PATH or compiler configuration so that the native linker is
9521
*** used, and then restart.
9524
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9525
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9526
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9532
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9533
case `$LD -v 2>&1` in
9534
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9538
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9539
*** reliably create shared libraries on SCO systems. Therefore, libtool
9540
*** is disabling shared libraries support. We urge you to upgrade GNU
9541
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9542
*** your PATH or compiler configuration so that the native linker is
9543
*** used, and then restart.
9548
# For security reasons, it is highly recommended that you always
9549
# use absolute paths for naming shared libraries, and exclude the
9550
# DT_RUNPATH tag from executables and libraries. But doing so
9551
# requires that you compile everything twice, which is a pain.
9552
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9553
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9554
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9555
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9564
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9567
hardcode_shlibpath_var=no
9571
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9572
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9573
archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9580
if test "$ld_shlibs" = no; then
9582
hardcode_libdir_flag_spec=
9583
export_dynamic_flag_spec=
9584
whole_archive_flag_spec=
9587
# PORTME fill in a description of your system's linker (not GNU ld)
9590
allow_undefined_flag=unsupported
9591
always_export_symbols=yes
9592
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'
9593
# Note: this linker hardcodes the directories in LIBPATH if there
9594
# are no directories specified by -L.
9595
hardcode_minus_L=yes
9596
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9597
# Neither direct hardcoding nor static linking is supported with a
9599
hardcode_direct=unsupported
9604
if test "$host_cpu" = ia64; then
9605
# On IA64, the linker does run time linking by default, so we don't
9606
# have to do anything special.
9607
aix_use_runtimelinking=no
9608
exp_sym_flag='-Bexport'
9611
# If we're using GNU nm, then we don't want the "-C" option.
9612
# -C means demangle to AIX nm, but means don't demangle with GNU nm
9613
# Also, AIX nm treats weak defined symbols like other global
9614
# defined symbols, whereas GNU nm marks them as "W".
9615
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9616
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'
9618
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'
9620
aix_use_runtimelinking=no
9622
# Test if we are trying to use run time linking or normal
9623
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9624
# need to do runtime linking.
9625
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9626
for ld_flag in $LDFLAGS; do
9627
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9628
aix_use_runtimelinking=yes
9635
exp_sym_flag='-bexport'
9636
no_entry_flag='-bnoentry'
9639
# When large executables or shared objects are built, AIX ld can
9640
# have problems creating the table of contents. If linking a library
9641
# or program results in "error TOC overflow" add -mminimal-toc to
9642
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9643
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9647
hardcode_direct_absolute=yes
9648
hardcode_libdir_separator=':'
9649
link_all_deplibs=yes
9650
file_list_spec='${wl}-f,'
9652
if test "$GCC" = yes; then
9653
case $host_os in aix4.[012]|aix4.[012].*)
9654
# We only want to do this on AIX 4.2 and lower, the check
9655
# below for broken collect2 doesn't work under 4.3+
9656
collect2name=`${CC} -print-prog-name=collect2`
9657
if test -f "$collect2name" &&
9658
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9660
# We have reworked collect2
9663
# We have old collect2
9664
hardcode_direct=unsupported
9665
# It fails to find uninstalled libraries when the uninstalled
9666
# path is not listed in the libpath. Setting hardcode_minus_L
9667
# to unsupported forces relinking
9668
hardcode_minus_L=yes
9669
hardcode_libdir_flag_spec='-L$libdir'
9670
hardcode_libdir_separator=
9674
shared_flag='-shared'
9675
if test "$aix_use_runtimelinking" = yes; then
9676
shared_flag="$shared_flag "'${wl}-G'
9681
if test "$host_cpu" = ia64; then
9682
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9683
# chokes on -Wl,-G. The following line is correct:
9686
if test "$aix_use_runtimelinking" = yes; then
9687
shared_flag='${wl}-G'
9689
shared_flag='${wl}-bM:SRE'
9694
export_dynamic_flag_spec='${wl}-bexpall'
9695
# It seems that -bexpall does not export symbols beginning with
9696
# underscore (_), so it is better to generate a list of symbols to export.
9697
always_export_symbols=yes
9698
if test "$aix_use_runtimelinking" = yes; then
9699
# Warning - without using the other runtime loading flags (-brtl),
9700
# -berok will link without error, but may produce a broken library.
9701
allow_undefined_flag='-berok'
9702
# Determine the default libpath from the value encoded in an
9704
if test "${lt_cv_aix_libpath+set}" = set; then
9705
aix_libpath=$lt_cv_aix_libpath
9707
if ${lt_cv_aix_libpath_+:} false; then :
9708
$as_echo_n "(cached) " >&6
9710
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9711
/* end confdefs.h. */
9721
if ac_fn_c_try_link "$LINENO"; then :
9723
lt_aix_libpath_sed='
9724
/Import File Strings/,/^$/ {
9726
s/^0 *\([^ ]*\) *$/\1/
9730
lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9731
# Check for a 64-bit object if we didn't find anything.
9732
if test -z "$lt_cv_aix_libpath_"; then
9733
lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9736
rm -f core conftest.err conftest.$ac_objext \
9737
conftest$ac_exeext conftest.$ac_ext
9738
if test -z "$lt_cv_aix_libpath_"; then
9739
lt_cv_aix_libpath_="/usr/lib:/lib"
9744
aix_libpath=$lt_cv_aix_libpath_
9747
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9748
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"
9750
if test "$host_cpu" = ia64; then
9751
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9752
allow_undefined_flag="-z nodefs"
9753
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"
9755
# Determine the default libpath from the value encoded in an
9757
if test "${lt_cv_aix_libpath+set}" = set; then
9758
aix_libpath=$lt_cv_aix_libpath
9760
if ${lt_cv_aix_libpath_+:} false; then :
9761
$as_echo_n "(cached) " >&6
9763
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9764
/* end confdefs.h. */
9774
if ac_fn_c_try_link "$LINENO"; then :
9776
lt_aix_libpath_sed='
9777
/Import File Strings/,/^$/ {
9779
s/^0 *\([^ ]*\) *$/\1/
9783
lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9784
# Check for a 64-bit object if we didn't find anything.
9785
if test -z "$lt_cv_aix_libpath_"; then
9786
lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9789
rm -f core conftest.err conftest.$ac_objext \
9790
conftest$ac_exeext conftest.$ac_ext
9791
if test -z "$lt_cv_aix_libpath_"; then
9792
lt_cv_aix_libpath_="/usr/lib:/lib"
9797
aix_libpath=$lt_cv_aix_libpath_
9800
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9801
# Warning - without using the other run time loading flags,
9802
# -berok will link without error, but may produce a broken library.
9803
no_undefined_flag=' ${wl}-bernotok'
9804
allow_undefined_flag=' ${wl}-berok'
9805
if test "$with_gnu_ld" = yes; then
9806
# We only use this code for GNU lds that support --whole-archive.
9807
whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9809
# Exported symbols can be pulled into shared objects from archives
9810
whole_archive_flag_spec='$convenience'
9812
archive_cmds_need_lc=yes
9813
# This is similar to how AIX traditionally builds its shared libraries.
9814
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'
9822
# see comment about AmigaOS4 .so support
9823
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9824
archive_expsym_cmds=''
9827
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)'
9828
hardcode_libdir_flag_spec='-L$libdir'
9829
hardcode_minus_L=yes
9835
export_dynamic_flag_spec=-rdynamic
9838
cygwin* | mingw* | pw32* | cegcc*)
9839
# When not using gcc, we currently assume that we are using
9840
# Microsoft Visual C++.
9841
# hardcode_libdir_flag_spec is actually meaningless, as there is
9842
# no search path for DLLs.
9843
case $cc_basename in
9846
hardcode_libdir_flag_spec=' '
9847
allow_undefined_flag=unsupported
9848
always_export_symbols=yes
9850
# Tell ltmain to make .lib files, not .a files.
9852
# Tell ltmain to make .dll files, not .so files.
9854
# FIXME: Setting linknames here is a bad hack.
9855
archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9856
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9857
sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9859
sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9861
$CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9863
# The linker will not automatically build a static lib if we build a DLL.
9864
# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9865
enable_shared_with_static_runtimes=yes
9866
exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9867
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9869
old_postinstall_cmds='chmod 644 $oldlib'
9870
postlink_cmds='lt_outputfile="@OUTPUT@"~
9871
lt_tool_outputfile="@TOOL_OUTPUT@"~
9872
case $lt_outputfile in
9875
lt_outputfile="$lt_outputfile.exe"
9876
lt_tool_outputfile="$lt_tool_outputfile.exe"
9879
if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9880
$MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9881
$RM "$lt_outputfile.manifest";
9885
# Assume MSVC wrapper
9886
hardcode_libdir_flag_spec=' '
9887
allow_undefined_flag=unsupported
9888
# Tell ltmain to make .lib files, not .a files.
9890
# Tell ltmain to make .dll files, not .so files.
9892
# FIXME: Setting linknames here is a bad hack.
9893
archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9894
# The linker will automatically build a .lib file if we build a DLL.
9895
old_archive_from_new_cmds='true'
9896
# FIXME: Should let the user specify the lib program.
9897
old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9898
enable_shared_with_static_runtimes=yes
9903
darwin* | rhapsody*)
9906
archive_cmds_need_lc=no
9908
hardcode_automatic=yes
9909
hardcode_shlibpath_var=unsupported
9910
if test "$lt_cv_ld_force_load" = "yes"; then
9911
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\"`'
9914
whole_archive_flag_spec=''
9916
link_all_deplibs=yes
9917
allow_undefined_flag="$_lt_dar_allow_undefined"
9918
case $cc_basename in
9919
ifort*) _lt_dar_can_shared=yes ;;
9920
*) _lt_dar_can_shared=$GCC ;;
9922
if test "$_lt_dar_can_shared" = "yes"; then
9923
output_verbose_link_cmd=func_echo_all
9924
archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9925
module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9926
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}"
9927
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}"
9936
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9937
hardcode_libdir_flag_spec='-L$libdir'
9938
hardcode_shlibpath_var=no
9941
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9942
# support. Future versions do this automatically, but an explicit c++rt0.o
9943
# does not break anything, and helps significantly (at the cost of a little
9946
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9947
hardcode_libdir_flag_spec='-R$libdir'
9949
hardcode_shlibpath_var=no
9952
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
9954
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9956
hardcode_minus_L=yes
9957
hardcode_shlibpath_var=no
9960
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9961
freebsd* | dragonfly*)
9962
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9963
hardcode_libdir_flag_spec='-R$libdir'
9965
hardcode_shlibpath_var=no
9969
if test "$GCC" = yes; then
9970
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'
9972
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'
9974
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9975
hardcode_libdir_separator=:
9978
# hardcode_minus_L: Not really in the search PATH,
9979
# but as the default location of the library.
9980
hardcode_minus_L=yes
9981
export_dynamic_flag_spec='${wl}-E'
9985
if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9986
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9988
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9990
if test "$with_gnu_ld" = no; then
9991
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9992
hardcode_libdir_separator=:
9994
hardcode_direct_absolute=yes
9995
export_dynamic_flag_spec='${wl}-E'
9996
# hardcode_minus_L: Not really in the search PATH,
9997
# but as the default location of the library.
9998
hardcode_minus_L=yes
10003
if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10006
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10009
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10012
archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10018
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10021
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10025
# Older versions of the 11.00 compiler do not understand -b yet
10026
# (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10027
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10028
$as_echo_n "checking if $CC understands -b... " >&6; }
10029
if ${lt_cv_prog_compiler__b+:} false; then :
10030
$as_echo_n "(cached) " >&6
10032
lt_cv_prog_compiler__b=no
10033
save_LDFLAGS="$LDFLAGS"
10034
LDFLAGS="$LDFLAGS -b"
10035
echo "$lt_simple_link_test_code" > conftest.$ac_ext
10036
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10037
# The linker can only warn and ignore the option if not recognized
10038
# So say no if there are warnings
10039
if test -s conftest.err; then
10040
# Append any errors to the config.log.
10041
cat conftest.err 1>&5
10042
$ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10043
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10044
if diff conftest.exp conftest.er2 >/dev/null; then
10045
lt_cv_prog_compiler__b=yes
10048
lt_cv_prog_compiler__b=yes
10052
LDFLAGS="$save_LDFLAGS"
10055
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10056
$as_echo "$lt_cv_prog_compiler__b" >&6; }
10058
if test x"$lt_cv_prog_compiler__b" = xyes; then
10059
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10061
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10067
if test "$with_gnu_ld" = no; then
10068
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10069
hardcode_libdir_separator=:
10074
hardcode_shlibpath_var=no
10077
hardcode_direct=yes
10078
hardcode_direct_absolute=yes
10079
export_dynamic_flag_spec='${wl}-E'
10081
# hardcode_minus_L: Not really in the search PATH,
10082
# but as the default location of the library.
10083
hardcode_minus_L=yes
10089
irix5* | irix6* | nonstopux*)
10090
if test "$GCC" = yes; then
10091
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'
10092
# Try to use the -exported_symbol ld option, if it does not
10093
# work, assume that -exports_file does not work either and
10094
# implicitly export all symbols.
10095
# This should be the same for all languages, so no per-tag cache variable.
10096
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10097
$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10098
if ${lt_cv_irix_exported_symbol+:} false; then :
10099
$as_echo_n "(cached) " >&6
10101
save_LDFLAGS="$LDFLAGS"
10102
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10103
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10104
/* end confdefs.h. */
10105
int foo (void) { return 0; }
10107
if ac_fn_c_try_link "$LINENO"; then :
10108
lt_cv_irix_exported_symbol=yes
10110
lt_cv_irix_exported_symbol=no
10112
rm -f core conftest.err conftest.$ac_objext \
10113
conftest$ac_exeext conftest.$ac_ext
10114
LDFLAGS="$save_LDFLAGS"
10116
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10117
$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10118
if test "$lt_cv_irix_exported_symbol" = yes; then
10119
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'
10122
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'
10123
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'
10125
archive_cmds_need_lc='no'
10126
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10127
hardcode_libdir_separator=:
10129
link_all_deplibs=yes
10132
netbsd* | netbsdelf*-gnu)
10133
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10134
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10136
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10138
hardcode_libdir_flag_spec='-R$libdir'
10139
hardcode_direct=yes
10140
hardcode_shlibpath_var=no
10144
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10145
hardcode_direct=yes
10146
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10147
hardcode_libdir_separator=:
10148
hardcode_shlibpath_var=no
10155
if test -f /usr/libexec/ld.so; then
10156
hardcode_direct=yes
10157
hardcode_shlibpath_var=no
10158
hardcode_direct_absolute=yes
10159
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10160
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10161
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10162
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10163
export_dynamic_flag_spec='${wl}-E'
10166
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10167
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10168
hardcode_libdir_flag_spec='-R$libdir'
10171
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10172
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10182
hardcode_libdir_flag_spec='-L$libdir'
10183
hardcode_minus_L=yes
10184
allow_undefined_flag=unsupported
10185
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'
10186
old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10190
if test "$GCC" = yes; then
10191
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10192
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'
10194
allow_undefined_flag=' -expect_unresolved \*'
10195
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'
10197
archive_cmds_need_lc='no'
10198
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10199
hardcode_libdir_separator=:
10202
osf4* | osf5*) # as osf3* with the addition of -msym flag
10203
if test "$GCC" = yes; then
10204
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10205
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'
10206
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10208
allow_undefined_flag=' -expect_unresolved \*'
10209
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'
10210
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~
10211
$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'
10213
# Both c and cxx compiler support -rpath directly
10214
hardcode_libdir_flag_spec='-rpath $libdir'
10216
archive_cmds_need_lc='no'
10217
hardcode_libdir_separator=:
10221
no_undefined_flag=' -z defs'
10222
if test "$GCC" = yes; then
10224
archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10225
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10226
$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'
10228
case `$CC -V 2>&1` in
10231
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10232
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10233
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10237
archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10238
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10239
$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10243
hardcode_libdir_flag_spec='-R$libdir'
10244
hardcode_shlibpath_var=no
10246
solaris2.[0-5] | solaris2.[0-5].*) ;;
10248
# The compiler driver will combine and reorder linker options,
10249
# but understands `-z linker_flag'. GCC discards it without `$wl',
10250
# but is careful enough not to reorder.
10251
# Supported since Solaris 2.6 (maybe 2.5.1?)
10252
if test "$GCC" = yes; then
10253
whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10255
whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10259
link_all_deplibs=yes
10263
if test "x$host_vendor" = xsequent; then
10264
# Use $CC to link under sequent, because it throws in some extra .o
10265
# files that make .init and .fini sections work.
10266
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10268
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10270
hardcode_libdir_flag_spec='-L$libdir'
10271
hardcode_direct=yes
10272
hardcode_minus_L=yes
10273
hardcode_shlibpath_var=no
10277
case $host_vendor in
10279
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10280
hardcode_direct=yes # is this really true???
10283
## LD is ld it makes a PLAMLIB
10284
## CC just makes a GrossModule.
10285
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10286
reload_cmds='$CC -r -o $output$reload_objs'
10290
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10291
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10294
runpath_var='LD_RUN_PATH'
10295
hardcode_shlibpath_var=no
10299
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10300
hardcode_shlibpath_var=no
10301
export_dynamic_flag_spec='-Bexport'
10305
if test -d /usr/nec; then
10306
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10307
hardcode_shlibpath_var=no
10308
runpath_var=LD_RUN_PATH
10309
hardcode_runpath_var=yes
10314
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10315
no_undefined_flag='${wl}-z,text'
10316
archive_cmds_need_lc=no
10317
hardcode_shlibpath_var=no
10318
runpath_var='LD_RUN_PATH'
10320
if test "$GCC" = yes; then
10321
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10322
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10324
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10325
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10329
sysv5* | sco3.2v5* | sco5v6*)
10330
# Note: We can NOT use -z defs as we might desire, because we do not
10331
# link with -lc, and that would cause any symbols used from libc to
10332
# always be unresolved, which means just about no library would
10333
# ever link correctly. If we're not using GNU ld we use -z text
10334
# though, which does catch some bad symbols but isn't as heavy-handed
10336
no_undefined_flag='${wl}-z,text'
10337
allow_undefined_flag='${wl}-z,nodefs'
10338
archive_cmds_need_lc=no
10339
hardcode_shlibpath_var=no
10340
hardcode_libdir_flag_spec='${wl}-R,$libdir'
10341
hardcode_libdir_separator=':'
10342
link_all_deplibs=yes
10343
export_dynamic_flag_spec='${wl}-Bexport'
10344
runpath_var='LD_RUN_PATH'
10346
if test "$GCC" = yes; then
10347
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10348
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10350
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10351
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10356
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10357
hardcode_libdir_flag_spec='-L$libdir'
10358
hardcode_shlibpath_var=no
10366
if test x$host_vendor = xsni; then
10368
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10369
export_dynamic_flag_spec='${wl}-Blargedynsym'
10375
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10376
$as_echo "$ld_shlibs" >&6; }
10377
test "$ld_shlibs" = no && can_build_shared=no
10379
with_gnu_ld=$with_gnu_ld
10396
# Do we need to explicitly link libc?
10398
case "x$archive_cmds_need_lc" in
10400
# Assume -lc should be added
10401
archive_cmds_need_lc=yes
10403
if test "$enable_shared" = yes && test "$GCC" = yes; then
10404
case $archive_cmds in
10406
# FIXME: we may have to deal with multi-command sequences.
10409
# Test whether the compiler implicitly links with -lc since on some
10410
# systems, -lgcc has to come before -lc. If gcc already passes -lc
10411
# to ld, don't add -lc before -lgcc.
10412
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10413
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10414
if ${lt_cv_archive_cmds_need_lc+:} false; then :
10415
$as_echo_n "(cached) " >&6
10418
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10420
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10421
(eval $ac_compile) 2>&5
10423
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10424
test $ac_status = 0; } 2>conftest.err; then
10427
libobjs=conftest.$ac_objext
10429
wl=$lt_prog_compiler_wl
10430
pic_flag=$lt_prog_compiler_pic
10436
lt_save_allow_undefined_flag=$allow_undefined_flag
10437
allow_undefined_flag=
10438
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10439
(eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10441
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10442
test $ac_status = 0; }
10444
lt_cv_archive_cmds_need_lc=no
10446
lt_cv_archive_cmds_need_lc=yes
10448
allow_undefined_flag=$lt_save_allow_undefined_flag
10450
cat conftest.err 1>&5
10455
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10456
$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10457
archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10615
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10616
$as_echo_n "checking dynamic linker characteristics... " >&6; }
10618
if test "$GCC" = yes; then
10620
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10621
*) lt_awk_arg="/^libraries:/" ;;
10624
mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10625
*) lt_sed_strip_eq="s,=/,/,g" ;;
10627
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10628
case $lt_search_path_spec in
10630
# if the path contains ";" then we assume it to be the separator
10631
# otherwise default to the standard path separator (i.e. ":") - it is
10632
# assumed that no part of a normal pathname contains ";" but that should
10633
# okay in the real world where ";" in dirpaths is itself problematic.
10634
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10637
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10640
# Ok, now we have the path, separated by spaces, we can step through it
10641
# and add multilib dir if necessary.
10642
lt_tmp_lt_search_path_spec=
10643
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10644
for lt_sys_path in $lt_search_path_spec; do
10645
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10646
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10648
test -d "$lt_sys_path" && \
10649
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10652
lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10653
BEGIN {RS=" "; FS="/|\n";} {
10656
for (lt_i = NF; lt_i > 0; lt_i--) {
10657
if ($lt_i != "" && $lt_i != ".") {
10658
if ($lt_i == "..") {
10661
if (lt_count == 0) {
10662
lt_foo="/" $lt_i lt_foo;
10669
if (lt_foo != "") { lt_freq[lt_foo]++; }
10670
if (lt_freq[lt_foo] == 1) { print lt_foo; }
10672
# AWK program above erroneously prepends '/' to C:/dos/paths
10675
mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10676
$SED 's,/\([A-Za-z]:\),\1,g'` ;;
10678
sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10680
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10682
library_names_spec=
10683
libname_spec='lib$name'
10687
postuninstall_cmds=
10691
shlibpath_overrides_runpath=unknown
10693
dynamic_linker="$host_os ld.so"
10694
sys_lib_dlsearch_path_spec="/lib /usr/lib"
10695
need_lib_prefix=unknown
10696
hardcode_into_libs=no
10698
# when you set need_version to no, make sure it does not cause -set_version
10699
# flags to be left without arguments
10700
need_version=unknown
10704
version_type=linux # correct to gnu/linux during the next big refactor
10705
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10706
shlibpath_var=LIBPATH
10708
# AIX 3 has no versioning support, so we append a major version to the name.
10709
soname_spec='${libname}${release}${shared_ext}$major'
10713
version_type=linux # correct to gnu/linux during the next big refactor
10716
hardcode_into_libs=yes
10717
if test "$host_cpu" = ia64; then
10718
# AIX 5 supports IA64
10719
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10720
shlibpath_var=LD_LIBRARY_PATH
10722
# With GCC up to 2.95.x, collect2 would create an import file
10723
# for dependence libraries. The import file would start with
10724
# the line `#! .'. This would cause the generated library to
10725
# depend on `.', always an invalid library. This was fixed in
10726
# development snapshots of GCC prior to 3.0.
10728
aix4 | aix4.[01] | aix4.[01].*)
10729
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10731
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10734
can_build_shared=no
10738
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10739
# soname into executable. Probably we can add versioning support to
10740
# collect2, so additional links can be useful in future.
10741
if test "$aix_use_runtimelinking" = yes; then
10742
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
10743
# instead of lib<name>.a to let people know that these are not
10744
# typical AIX shared libraries.
10745
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10747
# We preserve .a as extension for shared libraries through AIX4.2
10748
# and later when we are not doing run time linking.
10749
library_names_spec='${libname}${release}.a $libname.a'
10750
soname_spec='${libname}${release}${shared_ext}$major'
10752
shlibpath_var=LIBPATH
10759
# Since July 2007 AmigaOS4 officially supports .so libraries.
10760
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10761
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10764
library_names_spec='$libname.ixlibrary $libname.a'
10765
# Create ${libname}_ixlibrary.a entries in /sys/libs.
10766
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'
10772
library_names_spec='${libname}${shared_ext}'
10773
dynamic_linker="$host_os ld.so"
10774
shlibpath_var=LIBRARY_PATH
10778
version_type=linux # correct to gnu/linux during the next big refactor
10780
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10781
soname_spec='${libname}${release}${shared_ext}$major'
10782
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10783
shlibpath_var=LD_LIBRARY_PATH
10784
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10785
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10786
# the default ld.so.conf also contains /usr/contrib/lib and
10787
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10788
# libtool to hard-code these into programs
10791
cygwin* | mingw* | pw32* | cegcc*)
10792
version_type=windows
10797
case $GCC,$cc_basename in
10800
library_names_spec='$libname.dll.a'
10801
# DLL is installed to $(libdir)/../bin by postinstall_cmds
10802
postinstall_cmds='base_file=`basename \${file}`~
10803
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10804
dldir=$destdir/`dirname \$dlpath`~
10805
test -d \$dldir || mkdir -p \$dldir~
10806
$install_prog $dir/$dlname \$dldir/$dlname~
10807
chmod a+x \$dldir/$dlname~
10808
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10809
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10811
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10812
dlpath=$dir/\$dldll~
10814
shlibpath_overrides_runpath=yes
10818
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
10819
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10821
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10824
# MinGW DLLs use traditional 'lib' prefix
10825
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10828
# pw32 DLLs use 'pw' prefix rather than 'lib'
10829
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10832
dynamic_linker='Win32 ld.exe'
10837
libname_spec='$name'
10838
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10839
library_names_spec='${libname}.dll.lib'
10843
sys_lib_search_path_spec=
10846
for lt_path in $LIB
10849
# Let DOS variable expansion print the short 8.3 style file name.
10850
lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10851
sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10854
# Convert to MSYS style.
10855
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10858
# Convert to unix form, then to dos form, then back to unix form
10859
# but this time dos style (no spaces!) so that the unix form looks
10860
# like /cygdrive/c/PROGRA~1:/cygdr...
10861
sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10862
sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10863
sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10866
sys_lib_search_path_spec="$LIB"
10867
if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10868
# It is most probably a Windows format PATH.
10869
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10871
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10873
# FIXME: find the short name or the path components, as spaces are
10874
# common. (e.g. "Program Files" -> "PROGRA~1")
10878
# DLL is installed to $(libdir)/../bin by postinstall_cmds
10879
postinstall_cmds='base_file=`basename \${file}`~
10880
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10881
dldir=$destdir/`dirname \$dlpath`~
10882
test -d \$dldir || mkdir -p \$dldir~
10883
$install_prog $dir/$dlname \$dldir/$dlname'
10884
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10885
dlpath=$dir/\$dldll~
10887
shlibpath_overrides_runpath=yes
10888
dynamic_linker='Win32 link.exe'
10892
# Assume MSVC wrapper
10893
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10894
dynamic_linker='Win32 ld.exe'
10897
# FIXME: first we should search . and the directory the executable is in
10901
darwin* | rhapsody*)
10902
dynamic_linker="$host_os dyld"
10903
version_type=darwin
10906
library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10907
soname_spec='${libname}${release}${major}$shared_ext'
10908
shlibpath_overrides_runpath=yes
10909
shlibpath_var=DYLD_LIBRARY_PATH
10910
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10912
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10913
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10917
version_type=linux # correct to gnu/linux during the next big refactor
10920
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10921
soname_spec='${libname}${release}${shared_ext}$major'
10922
shlibpath_var=LD_LIBRARY_PATH
10925
freebsd* | dragonfly*)
10926
# DragonFly does not have aout. When/if they implement a new
10927
# versioning mechanism, adjust this.
10928
if test -x /usr/bin/objformat; then
10929
objformat=`/usr/bin/objformat`
10932
freebsd[23].*) objformat=aout ;;
10933
*) objformat=elf ;;
10936
version_type=freebsd-$objformat
10937
case $version_type in
10939
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10944
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10948
shlibpath_var=LD_LIBRARY_PATH
10951
shlibpath_overrides_runpath=yes
10953
freebsd3.[01]* | freebsdelf3.[01]*)
10954
shlibpath_overrides_runpath=yes
10955
hardcode_into_libs=yes
10957
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10958
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10959
shlibpath_overrides_runpath=no
10960
hardcode_into_libs=yes
10962
*) # from 4.6 on, and DragonFly
10963
shlibpath_overrides_runpath=yes
10964
hardcode_into_libs=yes
10970
version_type=linux # correct to gnu/linux during the next big refactor
10973
dynamic_linker="$host_os runtime_loader"
10974
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10975
soname_spec='${libname}${release}${shared_ext}$major'
10976
shlibpath_var=LIBRARY_PATH
10977
shlibpath_overrides_runpath=yes
10978
sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10979
hardcode_into_libs=yes
10982
hpux9* | hpux10* | hpux11*)
10983
# Give a soname corresponding to the major version so that dld.sl refuses to
10984
# link against other versions.
10991
hardcode_into_libs=yes
10992
dynamic_linker="$host_os dld.so"
10993
shlibpath_var=LD_LIBRARY_PATH
10994
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10995
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10996
soname_spec='${libname}${release}${shared_ext}$major'
10997
if test "X$HPUX_IA64_MODE" = X32; then
10998
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11000
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11002
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11006
hardcode_into_libs=yes
11007
dynamic_linker="$host_os dld.sl"
11008
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11009
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11010
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11011
soname_spec='${libname}${release}${shared_ext}$major'
11012
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11013
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11017
dynamic_linker="$host_os dld.sl"
11018
shlibpath_var=SHLIB_PATH
11019
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11020
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11021
soname_spec='${libname}${release}${shared_ext}$major'
11024
# HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11025
postinstall_cmds='chmod 555 $lib'
11026
# or fails outright, so override atomically:
11027
install_override_mode=555
11031
version_type=linux # correct to gnu/linux during the next big refactor
11034
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11035
soname_spec='${libname}${release}${shared_ext}$major'
11036
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11037
shlibpath_var=LD_LIBRARY_PATH
11038
shlibpath_overrides_runpath=no
11039
hardcode_into_libs=yes
11042
irix5* | irix6* | nonstopux*)
11044
nonstopux*) version_type=nonstopux ;;
11046
if test "$lt_cv_prog_gnu_ld" = yes; then
11047
version_type=linux # correct to gnu/linux during the next big refactor
11054
soname_spec='${libname}${release}${shared_ext}$major'
11055
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11057
irix5* | nonstopux*)
11058
libsuff= shlibsuff=
11061
case $LD in # libtool.m4 will add one of these switches to LD
11062
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11063
libsuff= shlibsuff= libmagic=32-bit;;
11064
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11065
libsuff=32 shlibsuff=N32 libmagic=N32;;
11066
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11067
libsuff=64 shlibsuff=64 libmagic=64-bit;;
11068
*) libsuff= shlibsuff= libmagic=never-match;;
11072
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11073
shlibpath_overrides_runpath=no
11074
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11075
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11076
hardcode_into_libs=yes
11079
# No shared lib support for Linux oldld, aout, or coff.
11080
linux*oldld* | linux*aout* | linux*coff*)
11084
# This must be glibc/ELF.
11085
linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11086
version_type=linux # correct to gnu/linux during the next big refactor
11089
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11090
soname_spec='${libname}${release}${shared_ext}$major'
11091
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11092
shlibpath_var=LD_LIBRARY_PATH
11093
shlibpath_overrides_runpath=no
11095
# Some binutils ld are patched to set DT_RUNPATH
11096
if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11097
$as_echo_n "(cached) " >&6
11099
lt_cv_shlibpath_overrides_runpath=no
11100
save_LDFLAGS=$LDFLAGS
11101
save_libdir=$libdir
11102
eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11103
LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11104
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11105
/* end confdefs.h. */
11115
if ac_fn_c_try_link "$LINENO"; then :
11116
if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11117
lt_cv_shlibpath_overrides_runpath=yes
11120
rm -f core conftest.err conftest.$ac_objext \
11121
conftest$ac_exeext conftest.$ac_ext
11122
LDFLAGS=$save_LDFLAGS
11123
libdir=$save_libdir
11127
shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11129
# This implies no fast_install, which is unacceptable.
11130
# Some rework will be needed to allow for fast_install
11131
# before this can be enabled.
11132
hardcode_into_libs=yes
11134
# Append ld.so.conf contents to the search path
11135
if test -f /etc/ld.so.conf; then
11136
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' ' '`
11137
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11140
# We used to test for /lib/ld.so.1 and disable shared libraries on
11141
# powerpc, because MkLinux only supported shared libraries with the
11142
# GNU dynamic linker. Since this was broken with cross compilers,
11143
# most powerpc-linux boxes support dynamic linking these days and
11144
# people can always --disable-shared, the test was removed, and we
11145
# assume the GNU/Linux dynamic linker is in use.
11146
dynamic_linker='GNU/Linux ld.so'
11153
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11154
soname_spec='${libname}${release}${shared_ext}$major'
11155
shlibpath_var=LD_LIBRARY_PATH
11156
shlibpath_overrides_runpath=no
11157
hardcode_into_libs=yes
11158
dynamic_linker='NetBSD ld.elf_so'
11165
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11166
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11167
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11168
dynamic_linker='NetBSD (a.out) ld.so'
11170
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11171
soname_spec='${libname}${release}${shared_ext}$major'
11172
dynamic_linker='NetBSD ld.elf_so'
11174
shlibpath_var=LD_LIBRARY_PATH
11175
shlibpath_overrides_runpath=yes
11176
hardcode_into_libs=yes
11180
version_type=linux # correct to gnu/linux during the next big refactor
11181
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11182
shlibpath_var=LD_LIBRARY_PATH
11183
shlibpath_overrides_runpath=yes
11190
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11191
soname_spec='${libname}${release}${shared_ext}$major'
11192
shlibpath_var=LD_LIBRARY_PATH
11193
shlibpath_overrides_runpath=no
11194
hardcode_into_libs=yes
11195
dynamic_linker='ldqnx.so'
11200
sys_lib_dlsearch_path_spec="/usr/lib"
11202
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11204
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11205
*) need_version=no ;;
11207
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11208
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11209
shlibpath_var=LD_LIBRARY_PATH
11210
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11212
openbsd2.[89] | openbsd2.[89].*)
11213
shlibpath_overrides_runpath=no
11216
shlibpath_overrides_runpath=yes
11220
shlibpath_overrides_runpath=yes
11225
libname_spec='$name'
11228
library_names_spec='$libname${shared_ext} $libname.a'
11229
dynamic_linker='OS/2 ld.exe'
11230
shlibpath_var=LIBPATH
11233
osf3* | osf4* | osf5*)
11237
soname_spec='${libname}${release}${shared_ext}$major'
11238
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11239
shlibpath_var=LD_LIBRARY_PATH
11240
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11241
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11249
version_type=linux # correct to gnu/linux during the next big refactor
11252
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11253
soname_spec='${libname}${release}${shared_ext}$major'
11254
shlibpath_var=LD_LIBRARY_PATH
11255
shlibpath_overrides_runpath=yes
11256
hardcode_into_libs=yes
11257
# ldd complains unless libraries are executable
11258
postinstall_cmds='chmod +x $lib'
11263
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11264
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11265
shlibpath_var=LD_LIBRARY_PATH
11266
shlibpath_overrides_runpath=yes
11267
if test "$with_gnu_ld" = yes; then
11274
version_type=linux # correct to gnu/linux during the next big refactor
11275
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11276
soname_spec='${libname}${release}${shared_ext}$major'
11277
shlibpath_var=LD_LIBRARY_PATH
11278
case $host_vendor in
11280
shlibpath_overrides_runpath=no
11282
runpath_var=LD_RUN_PATH
11290
shlibpath_overrides_runpath=no
11291
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11297
if test -d /usr/nec ;then
11298
version_type=linux # correct to gnu/linux during the next big refactor
11299
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11300
soname_spec='$libname${shared_ext}.$major'
11301
shlibpath_var=LD_LIBRARY_PATH
11305
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11306
version_type=freebsd-elf
11309
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11310
soname_spec='${libname}${release}${shared_ext}$major'
11311
shlibpath_var=LD_LIBRARY_PATH
11312
shlibpath_overrides_runpath=yes
11313
hardcode_into_libs=yes
11314
if test "$with_gnu_ld" = yes; then
11315
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11317
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11320
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11324
sys_lib_dlsearch_path_spec='/usr/lib'
11328
# TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11329
version_type=linux # correct to gnu/linux during the next big refactor
11332
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11333
shlibpath_var=LD_LIBRARY_PATH
11334
shlibpath_overrides_runpath=no
11335
hardcode_into_libs=yes
11339
version_type=linux # correct to gnu/linux during the next big refactor
11340
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11341
soname_spec='${libname}${release}${shared_ext}$major'
11342
shlibpath_var=LD_LIBRARY_PATH
11349
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11350
$as_echo "$dynamic_linker" >&6; }
11351
test "$dynamic_linker" = no && can_build_shared=no
11353
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11354
if test "$GCC" = yes; then
11355
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11358
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11359
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11361
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11362
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11456
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11457
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11459
if test -n "$hardcode_libdir_flag_spec" ||
11460
test -n "$runpath_var" ||
11461
test "X$hardcode_automatic" = "Xyes" ; then
11463
# We can hardcode non-existent directories.
11464
if test "$hardcode_direct" != no &&
11465
# If the only mechanism to avoid hardcoding is shlibpath_var, we
11466
# have to relink, otherwise we might link with an installed library
11467
# when we should be linking with a yet-to-be-installed one
11468
## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11469
test "$hardcode_minus_L" != no; then
11470
# Linking always hardcodes the temporary library directory.
11471
hardcode_action=relink
11473
# We can link without hardcoding, and we can hardcode nonexisting dirs.
11474
hardcode_action=immediate
11477
# We cannot hardcode anything, or else we can only hardcode existing
11479
hardcode_action=unsupported
11481
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11482
$as_echo "$hardcode_action" >&6; }
11484
if test "$hardcode_action" = relink ||
11485
test "$inherit_rpath" = yes; then
11486
# Fast installation is not supported
11487
enable_fast_install=no
11488
elif test "$shlibpath_overrides_runpath" = yes ||
11489
test "$enable_shared" = no; then
11490
# Fast installation is not necessary
11491
enable_fast_install=needless
11499
if test "x$enable_dlopen" != xyes; then
11500
enable_dlopen=unknown
11501
enable_dlopen_self=unknown
11502
enable_dlopen_self_static=unknown
11509
lt_cv_dlopen="load_add_on"
11511
lt_cv_dlopen_self=yes
11514
mingw* | pw32* | cegcc*)
11515
lt_cv_dlopen="LoadLibrary"
11520
lt_cv_dlopen="dlopen"
11525
# if libdl is installed we need to link against it
11526
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11527
$as_echo_n "checking for dlopen in -ldl... " >&6; }
11528
if ${ac_cv_lib_dl_dlopen+:} false; then :
11529
$as_echo_n "(cached) " >&6
11531
ac_check_lib_save_LIBS=$LIBS
11533
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11534
/* end confdefs.h. */
11536
/* Override any GCC internal prototype to avoid an error.
11537
Use char because int might match the return type of a GCC
11538
builtin and then its argument prototype would still apply. */
11551
if ac_fn_c_try_link "$LINENO"; then :
11552
ac_cv_lib_dl_dlopen=yes
11554
ac_cv_lib_dl_dlopen=no
11556
rm -f core conftest.err conftest.$ac_objext \
11557
conftest$ac_exeext conftest.$ac_ext
11558
LIBS=$ac_check_lib_save_LIBS
11560
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11561
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11562
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11563
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11566
lt_cv_dlopen="dyld"
11568
lt_cv_dlopen_self=yes
11575
ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11576
if test "x$ac_cv_func_shl_load" = xyes; then :
11577
lt_cv_dlopen="shl_load"
11579
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11580
$as_echo_n "checking for shl_load in -ldld... " >&6; }
11581
if ${ac_cv_lib_dld_shl_load+:} false; then :
11582
$as_echo_n "(cached) " >&6
11584
ac_check_lib_save_LIBS=$LIBS
11586
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11587
/* end confdefs.h. */
11589
/* Override any GCC internal prototype to avoid an error.
11590
Use char because int might match the return type of a GCC
11591
builtin and then its argument prototype would still apply. */
11599
return shl_load ();
11604
if ac_fn_c_try_link "$LINENO"; then :
11605
ac_cv_lib_dld_shl_load=yes
11607
ac_cv_lib_dld_shl_load=no
11609
rm -f core conftest.err conftest.$ac_objext \
11610
conftest$ac_exeext conftest.$ac_ext
11611
LIBS=$ac_check_lib_save_LIBS
11613
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11614
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11615
if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11616
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11618
ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11619
if test "x$ac_cv_func_dlopen" = xyes; then :
11620
lt_cv_dlopen="dlopen"
11622
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11623
$as_echo_n "checking for dlopen in -ldl... " >&6; }
11624
if ${ac_cv_lib_dl_dlopen+:} false; then :
11625
$as_echo_n "(cached) " >&6
11627
ac_check_lib_save_LIBS=$LIBS
11629
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11630
/* end confdefs.h. */
11632
/* Override any GCC internal prototype to avoid an error.
11633
Use char because int might match the return type of a GCC
11634
builtin and then its argument prototype would still apply. */
11647
if ac_fn_c_try_link "$LINENO"; then :
11648
ac_cv_lib_dl_dlopen=yes
11650
ac_cv_lib_dl_dlopen=no
11652
rm -f core conftest.err conftest.$ac_objext \
11653
conftest$ac_exeext conftest.$ac_ext
11654
LIBS=$ac_check_lib_save_LIBS
11656
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11657
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11658
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11659
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11661
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11662
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11663
if ${ac_cv_lib_svld_dlopen+:} false; then :
11664
$as_echo_n "(cached) " >&6
11666
ac_check_lib_save_LIBS=$LIBS
11667
LIBS="-lsvld $LIBS"
11668
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11669
/* end confdefs.h. */
11671
/* Override any GCC internal prototype to avoid an error.
11672
Use char because int might match the return type of a GCC
11673
builtin and then its argument prototype would still apply. */
11686
if ac_fn_c_try_link "$LINENO"; then :
11687
ac_cv_lib_svld_dlopen=yes
11689
ac_cv_lib_svld_dlopen=no
11691
rm -f core conftest.err conftest.$ac_objext \
11692
conftest$ac_exeext conftest.$ac_ext
11693
LIBS=$ac_check_lib_save_LIBS
11695
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11696
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11697
if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11698
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11700
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11701
$as_echo_n "checking for dld_link in -ldld... " >&6; }
11702
if ${ac_cv_lib_dld_dld_link+:} false; then :
11703
$as_echo_n "(cached) " >&6
11705
ac_check_lib_save_LIBS=$LIBS
11707
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11708
/* end confdefs.h. */
11710
/* Override any GCC internal prototype to avoid an error.
11711
Use char because int might match the return type of a GCC
11712
builtin and then its argument prototype would still apply. */
11720
return dld_link ();
11725
if ac_fn_c_try_link "$LINENO"; then :
11726
ac_cv_lib_dld_dld_link=yes
11728
ac_cv_lib_dld_dld_link=no
11730
rm -f core conftest.err conftest.$ac_objext \
11731
conftest$ac_exeext conftest.$ac_ext
11732
LIBS=$ac_check_lib_save_LIBS
11734
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11735
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11736
if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11737
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11758
if test "x$lt_cv_dlopen" != xno; then
11764
case $lt_cv_dlopen in
11766
save_CPPFLAGS="$CPPFLAGS"
11767
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11769
save_LDFLAGS="$LDFLAGS"
11770
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11773
LIBS="$lt_cv_dlopen_libs $LIBS"
11775
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11776
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11777
if ${lt_cv_dlopen_self+:} false; then :
11778
$as_echo_n "(cached) " >&6
11780
if test "$cross_compiling" = yes; then :
11781
lt_cv_dlopen_self=cross
11783
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11784
lt_status=$lt_dlunknown
11785
cat > conftest.$ac_ext <<_LT_EOF
11786
#line $LINENO "configure"
11787
#include "confdefs.h"
11796
# define LT_DLGLOBAL RTLD_GLOBAL
11799
# define LT_DLGLOBAL DL_GLOBAL
11801
# define LT_DLGLOBAL 0
11805
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11806
find out it does not work in some platform. */
11807
#ifndef LT_DLLAZY_OR_NOW
11809
# define LT_DLLAZY_OR_NOW RTLD_LAZY
11812
# define LT_DLLAZY_OR_NOW DL_LAZY
11815
# define LT_DLLAZY_OR_NOW RTLD_NOW
11818
# define LT_DLLAZY_OR_NOW DL_NOW
11820
# define LT_DLLAZY_OR_NOW 0
11827
/* When -fvisbility=hidden is used, assume the code has been annotated
11828
correspondingly for the symbols needed. */
11829
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11830
int fnord () __attribute__((visibility("default")));
11833
int fnord () { return 42; }
11836
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11837
int status = $lt_dlunknown;
11841
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11844
if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11845
else puts (dlerror ());
11847
/* dlclose (self); */
11855
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11856
(eval $ac_link) 2>&5
11858
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11859
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11860
(./conftest; exit; ) >&5 2>/dev/null
11862
case x$lt_status in
11863
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11864
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11865
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11868
# compilation failed
11869
lt_cv_dlopen_self=no
11876
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11877
$as_echo "$lt_cv_dlopen_self" >&6; }
11879
if test "x$lt_cv_dlopen_self" = xyes; then
11880
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11881
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11882
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11883
if ${lt_cv_dlopen_self_static+:} false; then :
11884
$as_echo_n "(cached) " >&6
11886
if test "$cross_compiling" = yes; then :
11887
lt_cv_dlopen_self_static=cross
11889
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11890
lt_status=$lt_dlunknown
11891
cat > conftest.$ac_ext <<_LT_EOF
11892
#line $LINENO "configure"
11893
#include "confdefs.h"
11902
# define LT_DLGLOBAL RTLD_GLOBAL
11905
# define LT_DLGLOBAL DL_GLOBAL
11907
# define LT_DLGLOBAL 0
11911
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11912
find out it does not work in some platform. */
11913
#ifndef LT_DLLAZY_OR_NOW
11915
# define LT_DLLAZY_OR_NOW RTLD_LAZY
11918
# define LT_DLLAZY_OR_NOW DL_LAZY
11921
# define LT_DLLAZY_OR_NOW RTLD_NOW
11924
# define LT_DLLAZY_OR_NOW DL_NOW
11926
# define LT_DLLAZY_OR_NOW 0
11933
/* When -fvisbility=hidden is used, assume the code has been annotated
11934
correspondingly for the symbols needed. */
11935
#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11936
int fnord () __attribute__((visibility("default")));
11939
int fnord () { return 42; }
11942
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11943
int status = $lt_dlunknown;
11947
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11950
if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11951
else puts (dlerror ());
11953
/* dlclose (self); */
11961
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11962
(eval $ac_link) 2>&5
11964
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11965
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11966
(./conftest; exit; ) >&5 2>/dev/null
11968
case x$lt_status in
11969
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11970
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11971
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11974
# compilation failed
11975
lt_cv_dlopen_self_static=no
11982
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11983
$as_echo "$lt_cv_dlopen_self_static" >&6; }
11986
CPPFLAGS="$save_CPPFLAGS"
11987
LDFLAGS="$save_LDFLAGS"
11992
case $lt_cv_dlopen_self in
11993
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11994
*) enable_dlopen_self=unknown ;;
11997
case $lt_cv_dlopen_self_static in
11998
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11999
*) enable_dlopen_self_static=unknown ;;
12021
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12022
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12023
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12024
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12025
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12026
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12027
$as_echo "yes" >&6; }
12029
# FIXME - insert some real tests, host_os isn't really good enough
12032
if test -n "$STRIP" ; then
12033
striplib="$STRIP -x"
12034
old_striplib="$STRIP -S"
12035
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12036
$as_echo "yes" >&6; }
12038
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12039
$as_echo "no" >&6; }
12043
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12044
$as_echo "no" >&6; }
12060
# Report which library types will actually be built
12061
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12062
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12063
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12064
$as_echo "$can_build_shared" >&6; }
12066
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12067
$as_echo_n "checking whether to build shared libraries... " >&6; }
12068
test "$can_build_shared" = "no" && enable_shared=no
12070
# On AIX, shared libraries and static libraries use the same namespace, and
12071
# are all built from PIC.
12074
test "$enable_shared" = yes && enable_static=no
12075
if test -n "$RANLIB"; then
12076
archive_cmds="$archive_cmds~\$RANLIB \$lib"
12077
postinstall_cmds='$RANLIB $lib'
12082
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12083
test "$enable_shared" = yes && enable_static=no
12087
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12088
$as_echo "$enable_shared" >&6; }
12090
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12091
$as_echo_n "checking whether to build static libraries... " >&6; }
12092
# Make sure either enable_shared or enable_static is yes.
12093
test "$enable_shared" = yes || enable_static=yes
12094
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12095
$as_echo "$enable_static" >&6; }
12102
ac_cpp='$CPP $CPPFLAGS'
12103
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12104
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12105
ac_compiler_gnu=$ac_cv_c_compiler_gnu
12123
ac_config_commands="$ac_config_commands libtool"
12128
# Only expand once:
12132
if ${CONFIG_SHELL} ./libtool --features | grep "enable static" >/dev/null; then
12139
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
12140
$as_echo_n "checking for ANSI C header files... " >&6; }
12141
if ${ac_cv_header_stdc+:} false; then :
12142
$as_echo_n "(cached) " >&6
12144
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12145
/* end confdefs.h. */
12146
#include <stdlib.h>
12147
#include <stdarg.h>
12148
#include <string.h>
12159
if ac_fn_c_try_compile "$LINENO"; then :
12160
ac_cv_header_stdc=yes
12162
ac_cv_header_stdc=no
12164
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12166
if test $ac_cv_header_stdc = yes; then
12167
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
12168
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12169
/* end confdefs.h. */
12170
#include <string.h>
12173
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12174
$EGREP "memchr" >/dev/null 2>&1; then :
12177
ac_cv_header_stdc=no
12183
if test $ac_cv_header_stdc = yes; then
12184
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
12185
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12186
/* end confdefs.h. */
12187
#include <stdlib.h>
12190
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12191
$EGREP "free" >/dev/null 2>&1; then :
12194
ac_cv_header_stdc=no
12200
if test $ac_cv_header_stdc = yes; then
12201
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
12202
if test "$cross_compiling" = yes; then :
12205
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12206
/* end confdefs.h. */
12208
#include <stdlib.h>
12209
#if ((' ' & 0x0FF) == 0x020)
12210
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
12211
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
12213
# define ISLOWER(c) \
12214
(('a' <= (c) && (c) <= 'i') \
12215
|| ('j' <= (c) && (c) <= 'r') \
12216
|| ('s' <= (c) && (c) <= 'z'))
12217
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
12220
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
12225
for (i = 0; i < 256; i++)
12226
if (XOR (islower (i), ISLOWER (i))
12227
|| toupper (i) != TOUPPER (i))
12232
if ac_fn_c_try_run "$LINENO"; then :
12235
ac_cv_header_stdc=no
12237
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12238
conftest.$ac_objext conftest.beam conftest.$ac_ext
12243
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
12244
$as_echo "$ac_cv_header_stdc" >&6; }
12245
if test $ac_cv_header_stdc = yes; then
12247
$as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
12251
ac_fn_c_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
12252
if test "x$ac_cv_header_unistd_h" = xyes; then :
12257
ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
12258
if test "x$ac_cv_header_string_h" = xyes; then :
12264
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
12265
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
12266
if ${ac_cv_c_const+:} false; then :
12267
$as_echo_n "(cached) " >&6
12269
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12270
/* end confdefs.h. */
12276
#ifndef __cplusplus
12277
/* Ultrix mips cc rejects this sort of thing. */
12278
typedef int charset[2];
12279
const charset cs = { 0, 0 };
12280
/* SunOS 4.1.1 cc rejects this. */
12281
char const *const *pcpcc;
12283
/* NEC SVR4.0.2 mips cc rejects this. */
12284
struct point {int x, y;};
12285
static struct point const zero = {0,0};
12286
/* AIX XL C 1.02.0.0 rejects this.
12287
It does not let you subtract one const X* pointer from another in
12288
an arm of an if-expression whose if-part is not a constant
12290
const char *g = "string";
12291
pcpcc = &g + (g ? g-g : 0);
12292
/* HPUX 7.0 cc rejects these. */
12294
ppc = (char**) pcpcc;
12295
pcpcc = (char const *const *) ppc;
12296
{ /* SCO 3.2v4 cc rejects this sort of thing. */
12299
char const *s = 0 ? (char *) 0 : (char const *) 0;
12304
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
12305
int x[] = {25, 17};
12306
const int *foo = &x[0];
12309
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
12310
typedef const int *iptr;
12314
{ /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
12315
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
12316
struct s { int j; const int *ap[3]; } bx;
12317
struct s *b = &bx; b->j = 5;
12319
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
12320
const int foo = 10;
12321
if (!foo) return 0;
12323
return !cs[0] && !zero.x;
12330
if ac_fn_c_try_compile "$LINENO"; then :
12335
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12337
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
12338
$as_echo "$ac_cv_c_const" >&6; }
12339
if test $ac_cv_c_const = no; then
12341
$as_echo "@%:@define const /**/" >>confdefs.h
12345
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
12346
$as_echo_n "checking for inline... " >&6; }
12347
if ${ac_cv_c_inline+:} false; then :
12348
$as_echo_n "(cached) " >&6
12351
for ac_kw in inline __inline__ __inline; do
12352
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12353
/* end confdefs.h. */
12354
#ifndef __cplusplus
12356
static $ac_kw foo_t static_foo () {return 0; }
12357
$ac_kw foo_t foo () {return 0; }
12361
if ac_fn_c_try_compile "$LINENO"; then :
12362
ac_cv_c_inline=$ac_kw
12364
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12365
test "$ac_cv_c_inline" != no && break
12369
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
12370
$as_echo "$ac_cv_c_inline" >&6; }
12372
case $ac_cv_c_inline in
12375
case $ac_cv_c_inline in
12377
*) ac_val=$ac_cv_c_inline;;
12379
cat >>confdefs.h <<_ACEOF
12380
#ifndef __cplusplus
12381
#define inline $ac_val
12387
ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
12388
if test "x$ac_cv_type_off_t" = xyes; then :
12392
cat >>confdefs.h <<_ACEOF
12393
@%:@define off_t long int
12398
ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
12399
if test "x$ac_cv_type_size_t" = xyes; then :
12403
cat >>confdefs.h <<_ACEOF
12404
@%:@define size_t unsigned int
12409
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12410
$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
12411
if ${ac_cv_c_bigendian+:} false; then :
12412
$as_echo_n "(cached) " >&6
12414
ac_cv_c_bigendian=unknown
12415
# See if we're dealing with a universal compiler.
12416
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12417
/* end confdefs.h. */
12418
#ifndef __APPLE_CC__
12419
not a universal capable compiler
12424
if ac_fn_c_try_compile "$LINENO"; then :
12426
# Check for potential -arch flags. It is not universal unless
12427
# there are at least two -arch flags with different values.
12430
for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12431
if test -n "$ac_prev"; then
12433
i?86 | x86_64 | ppc | ppc64)
12434
if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12437
ac_cv_c_bigendian=universal
12443
elif test "x$ac_word" = "x-arch"; then
12448
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12449
if test $ac_cv_c_bigendian = unknown; then
12450
# See if sys/param.h defines the BYTE_ORDER macro.
12451
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12452
/* end confdefs.h. */
12453
#include <sys/types.h>
12454
#include <sys/param.h>
12459
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12460
&& defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12462
bogus endian macros
12469
if ac_fn_c_try_compile "$LINENO"; then :
12470
# It does; now see whether it defined to BIG_ENDIAN or not.
12471
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12472
/* end confdefs.h. */
12473
#include <sys/types.h>
12474
#include <sys/param.h>
12479
#if BYTE_ORDER != BIG_ENDIAN
12487
if ac_fn_c_try_compile "$LINENO"; then :
12488
ac_cv_c_bigendian=yes
12490
ac_cv_c_bigendian=no
12492
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12494
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12496
if test $ac_cv_c_bigendian = unknown; then
12497
# See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12498
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12499
/* end confdefs.h. */
12500
#include <limits.h>
12505
#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12506
bogus endian macros
12513
if ac_fn_c_try_compile "$LINENO"; then :
12514
# It does; now see whether it defined to _BIG_ENDIAN or not.
12515
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12516
/* end confdefs.h. */
12517
#include <limits.h>
12522
#ifndef _BIG_ENDIAN
12530
if ac_fn_c_try_compile "$LINENO"; then :
12531
ac_cv_c_bigendian=yes
12533
ac_cv_c_bigendian=no
12535
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12537
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12539
if test $ac_cv_c_bigendian = unknown; then
12540
# Compile a test program.
12541
if test "$cross_compiling" = yes; then :
12542
# Try to guess by grepping values from an object file.
12543
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12544
/* end confdefs.h. */
12545
short int ascii_mm[] =
12546
{ 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12547
short int ascii_ii[] =
12548
{ 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12549
int use_ascii (int i) {
12550
return ascii_mm[i] + ascii_ii[i];
12552
short int ebcdic_ii[] =
12553
{ 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12554
short int ebcdic_mm[] =
12555
{ 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12556
int use_ebcdic (int i) {
12557
return ebcdic_mm[i] + ebcdic_ii[i];
12564
return use_ascii (foo) == use_ebcdic (foo);
12569
if ac_fn_c_try_compile "$LINENO"; then :
12570
if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12571
ac_cv_c_bigendian=yes
12573
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12574
if test "$ac_cv_c_bigendian" = unknown; then
12575
ac_cv_c_bigendian=no
12577
# finding both strings is unlikely to happen, but who knows?
12578
ac_cv_c_bigendian=unknown
12582
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12584
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12585
/* end confdefs.h. */
12586
$ac_includes_default
12591
/* Are we little or big endian? From Harbison&Steele. */
12595
char c[sizeof (long int)];
12598
return u.c[sizeof (long int) - 1] == 1;
12604
if ac_fn_c_try_run "$LINENO"; then :
12605
ac_cv_c_bigendian=no
12607
ac_cv_c_bigendian=yes
12609
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12610
conftest.$ac_objext conftest.beam conftest.$ac_ext
12615
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12616
$as_echo "$ac_cv_c_bigendian" >&6; }
12617
case $ac_cv_c_bigendian in #(
12619
$as_echo "@%:@define WORDS_BIGENDIAN 1" >>confdefs.h
12625
$as_echo "@%:@define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12629
as_fn_error $? "unknown endianness
12630
presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12635
*mingw32* | *cygwin*)
12636
for ac_func in gettimeofday
12638
ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
12639
if test "x$ac_cv_func_gettimeofday" = xyes; then :
12640
cat >>confdefs.h <<_ACEOF
12641
@%:@define HAVE_GETTIMEOFDAY 1
12652
@%:@ Check whether --enable-libdvdcss was given.
12653
if test "${enable_libdvdcss+set}" = set; then :
12654
enableval=$enable_libdvdcss;
12658
@%:@ Check whether --enable-dlfcn was given.
12659
if test "${enable_dlfcn+set}" = set; then :
12660
enableval=$enable_dlfcn; use_builtin_dlfcn=$enableval
12662
use_builtin_dlfcn=no
12666
if [ $use_builtin_dlfcn = "yes" ]; then
12668
$as_echo "@%:@define USING_BUILTIN_DLFCN 1" >>confdefs.h
12673
if test x"$enable_libdvdcss" != xyes; then
12676
if [ $use_builtin_dlfcn = "no" ]; then
12677
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
12678
$as_echo_n "checking for dlopen in -lc... " >&6; }
12679
if ${ac_cv_lib_c_dlopen+:} false; then :
12680
$as_echo_n "(cached) " >&6
12682
ac_check_lib_save_LIBS=$LIBS
12684
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12685
/* end confdefs.h. */
12687
/* Override any GCC internal prototype to avoid an error.
12688
Use char because int might match the return type of a GCC
12689
builtin and then its argument prototype would still apply. */
12702
if ac_fn_c_try_link "$LINENO"; then :
12703
ac_cv_lib_c_dlopen=yes
12705
ac_cv_lib_c_dlopen=no
12707
rm -f core conftest.err conftest.$ac_objext \
12708
conftest$ac_exeext conftest.$ac_ext
12709
LIBS=$ac_check_lib_save_LIBS
12711
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
12712
$as_echo "$ac_cv_lib_c_dlopen" >&6; }
12713
if test "x$ac_cv_lib_c_dlopen" = xyes; then :
12716
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12717
$as_echo_n "checking for dlopen in -ldl... " >&6; }
12718
if ${ac_cv_lib_dl_dlopen+:} false; then :
12719
$as_echo_n "(cached) " >&6
12721
ac_check_lib_save_LIBS=$LIBS
12723
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12724
/* end confdefs.h. */
12726
/* Override any GCC internal prototype to avoid an error.
12727
Use char because int might match the return type of a GCC
12728
builtin and then its argument prototype would still apply. */
12741
if ac_fn_c_try_link "$LINENO"; then :
12742
ac_cv_lib_dl_dlopen=yes
12744
ac_cv_lib_dl_dlopen=no
12746
rm -f core conftest.err conftest.$ac_objext \
12747
conftest$ac_exeext conftest.$ac_ext
12748
LIBS=$ac_check_lib_save_LIBS
12750
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12751
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12752
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12753
DYNAMIC_LD_LIBS="-ldl"
12755
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Using builtin dlopen" >&5
12756
$as_echo "$as_me: WARNING: Using builtin dlopen" >&2;}
12763
LDFLAGS="-no-undefined $LDFLAGS"
12766
LDFLAGS="-no-undefined $LDFLAGS"
12769
LDFLAGS="-no-undefined -Zbin-files $LDFLAGS"
12772
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lc" >&5
12773
$as_echo_n "checking for dlopen in -lc... " >&6; }
12774
if ${ac_cv_lib_c_dlopen+:} false; then :
12775
$as_echo_n "(cached) " >&6
12777
ac_check_lib_save_LIBS=$LIBS
12779
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12780
/* end confdefs.h. */
12782
/* Override any GCC internal prototype to avoid an error.
12783
Use char because int might match the return type of a GCC
12784
builtin and then its argument prototype would still apply. */
12797
if ac_fn_c_try_link "$LINENO"; then :
12798
ac_cv_lib_c_dlopen=yes
12800
ac_cv_lib_c_dlopen=no
12802
rm -f core conftest.err conftest.$ac_objext \
12803
conftest$ac_exeext conftest.$ac_ext
12804
LIBS=$ac_check_lib_save_LIBS
12806
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dlopen" >&5
12807
$as_echo "$ac_cv_lib_c_dlopen" >&6; }
12808
if test "x$ac_cv_lib_c_dlopen" = xyes; then :
12811
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12812
$as_echo_n "checking for dlopen in -ldl... " >&6; }
12813
if ${ac_cv_lib_dl_dlopen+:} false; then :
12814
$as_echo_n "(cached) " >&6
12816
ac_check_lib_save_LIBS=$LIBS
12818
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12819
/* end confdefs.h. */
12821
/* Override any GCC internal prototype to avoid an error.
12822
Use char because int might match the return type of a GCC
12823
builtin and then its argument prototype would still apply. */
12836
if ac_fn_c_try_link "$LINENO"; then :
12837
ac_cv_lib_dl_dlopen=yes
12839
ac_cv_lib_dl_dlopen=no
12841
rm -f core conftest.err conftest.$ac_objext \
12842
conftest$ac_exeext conftest.$ac_ext
12843
LIBS=$ac_check_lib_save_LIBS
12845
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12846
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12847
if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12848
DYNAMIC_LD_LIBS="-ldl"
12850
as_fn_error $? "dynamic linker needed" "$LINENO" 5
12861
*darwin*) CSS_LIBS="${CSS_LIBS} -Wl,-framework,CoreFoundation -Wl,-framework,IOKit"
12864
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dvdcss_interface_2 in -ldvdcss" >&5
12865
$as_echo_n "checking for dvdcss_interface_2 in -ldvdcss... " >&6; }
12866
if ${ac_cv_lib_dvdcss_dvdcss_interface_2+:} false; then :
12867
$as_echo_n "(cached) " >&6
12869
ac_check_lib_save_LIBS=$LIBS
12870
LIBS="-ldvdcss $LIBS"
12871
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12872
/* end confdefs.h. */
12874
/* Override any GCC internal prototype to avoid an error.
12875
Use char because int might match the return type of a GCC
12876
builtin and then its argument prototype would still apply. */
12880
char dvdcss_interface_2 ();
12884
return dvdcss_interface_2 ();
12889
if ac_fn_c_try_link "$LINENO"; then :
12890
ac_cv_lib_dvdcss_dvdcss_interface_2=yes
12892
ac_cv_lib_dvdcss_dvdcss_interface_2=no
12894
rm -f core conftest.err conftest.$ac_objext \
12895
conftest$ac_exeext conftest.$ac_ext
12896
LIBS=$ac_check_lib_save_LIBS
12898
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dvdcss_dvdcss_interface_2" >&5
12899
$as_echo "$ac_cv_lib_dvdcss_dvdcss_interface_2" >&6; }
12900
if test "x$ac_cv_lib_dvdcss_dvdcss_interface_2" = xyes; then :
12901
cat >>confdefs.h <<_ACEOF
12902
@%:@define HAVE_LIBDVDCSS 1
12905
LIBS="-ldvdcss $LIBS"
12908
as_fn_error $? "You need libdvdcss.so.2 or later" "$LINENO" 5
12911
for ac_header in dvdcss/dvdcss.h
12913
ac_fn_c_check_header_mongrel "$LINENO" "dvdcss/dvdcss.h" "ac_cv_header_dvdcss_dvdcss_h" "$ac_includes_default"
12914
if test "x$ac_cv_header_dvdcss_dvdcss_h" = xyes; then :
12915
cat >>confdefs.h <<_ACEOF
12916
@%:@define HAVE_DVDCSS_DVDCSS_H 1
12920
as_fn_error $? "You need libdvdcss (dvdcss.h)" "$LINENO" 5
12930
CFLAGS="-O3 -Wall -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE $CFLAGS"
12931
DEBUG_CFLAGS="-g -DDEBUG $CFLAGS"
12935
# Extract the first word of "doxygen", so it can be a program name with args.
12936
set dummy doxygen; ac_word=$2
12937
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12938
$as_echo_n "checking for $ac_word... " >&6; }
12939
if ${ac_cv_prog_DOXYGEN+:} false; then :
12940
$as_echo_n "(cached) " >&6
12942
if test -n "$DOXYGEN"; then
12943
ac_cv_prog_DOXYGEN="$DOXYGEN" # Let the user override the test.
12945
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12946
for as_dir in $PATH
12949
test -z "$as_dir" && as_dir=.
12950
for ac_exec_ext in '' $ac_executable_extensions; do
12951
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12952
ac_cv_prog_DOXYGEN="doxygen"
12953
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12960
test -z "$ac_cv_prog_DOXYGEN" && ac_cv_prog_DOXYGEN="no"
12963
DOXYGEN=$ac_cv_prog_DOXYGEN
12964
if test -n "$DOXYGEN"; then
12965
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
12966
$as_echo "$DOXYGEN" >&6; }
12968
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12969
$as_echo "no" >&6; }
12974
INCLUDES='-I$(top_srcdir) $(DVDREAD_CFLAGS)'
12977
ac_config_files="$ac_config_files Makefile src/Makefile misc/Makefile misc/dvdread-config misc/dvdread.pc misc/libdvdread.spec misc/relchk.sh m4/Makefile"
12979
cat >confcache <<\_ACEOF
12980
# This file is a shell script that caches the results of configure
12981
# tests run on this system so they can be shared between configure
12982
# scripts and configure runs, see configure's option --config-cache.
12983
# It is not useful on other systems. If it contains results you don't
12984
# want to keep, you may remove or edit it.
12986
# config.status only pays attention to the cache file if you give it
12987
# the --recheck option to rerun configure.
12989
# `ac_cv_env_foo' variables (set or unset) will be overridden when
12990
# loading this file, other *unset* `ac_cv_foo' will be assigned the
12991
# following values.
12995
# The following way of writing the cache mishandles newlines in values,
12996
# but we know of no workaround that is simple, portable, and efficient.
12997
# So, we kill variables containing newlines.
12998
# Ultrix sh set writes to stderr and can't be redirected directly,
12999
# and sets the high bit in the cache file unless we assign to the vars.
13001
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13002
eval ac_val=\$$ac_var
13006
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13007
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13010
_ | IFS | as_nl) ;; #(
13011
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13012
*) { eval $ac_var=; unset $ac_var;} ;;
13018
case $as_nl`(ac_space=' '; set) 2>&1` in #(
13019
*${as_nl}ac_space=\ *)
13020
# `set' does not quote correctly, so add quotes: double-quote
13021
# substitution turns \\\\ into \\, and sed turns \\ into \.
13024
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13027
# `set' quotes correctly as required by POSIX, so do not add quotes.
13028
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13037
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13039
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13041
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13042
if test -w "$cache_file"; then
13043
if test "x$cache_file" != "x/dev/null"; then
13044
{ $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13045
$as_echo "$as_me: updating cache $cache_file" >&6;}
13046
if test ! -f "$cache_file" || test -h "$cache_file"; then
13047
cat confcache >"$cache_file"
13049
case $cache_file in #(
13051
mv -f confcache "$cache_file"$$ &&
13052
mv -f "$cache_file"$$ "$cache_file" ;; #(
13054
mv -f confcache "$cache_file" ;;
13059
{ $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13060
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13065
test "x$prefix" = xNONE && prefix=$ac_default_prefix
13066
# Let make expand exec_prefix.
13067
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13069
DEFS=-DHAVE_CONFIG_H
13074
for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
13075
# 1. Remove the extension, and $U if already installed.
13076
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13077
ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13078
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13079
# will be set to the directory where LIBOBJS objects are built.
13080
as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13081
as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13083
LIB@&t@OBJS=$ac_libobjs
13085
LTLIBOBJS=$ac_ltlibobjs
13088
if test -n "$EXEEXT"; then
13090
am__EXEEXT_FALSE='#'
13092
am__EXEEXT_TRUE='#'
13096
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
13097
as_fn_error $? "conditional \"AMDEP\" was never defined.
13098
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13100
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13101
as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13102
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13104
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
13105
as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
13106
Usually this means the macro was only invoked conditionally." "$LINENO" 5
13110
: "${CONFIG_STATUS=./config.status}"
13112
ac_clean_files_save=$ac_clean_files
13113
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13114
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13115
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13117
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13119
# Generated by $as_me.
13120
# Run this file to recreate the current configuration.
13121
# Compiler output produced by configure, useful for debugging
13122
# configure, is in config.log if it exists.
13125
ac_cs_recheck=false
13128
SHELL=\${CONFIG_SHELL-$SHELL}
13131
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13132
## -------------------- ##
13133
## M4sh Initialization. ##
13134
## -------------------- ##
13136
# Be more Bourne compatible
13137
DUALCASE=1; export DUALCASE # for MKS sh
13138
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13141
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13142
# is contrary to our usage. Disable this feature.
13143
alias -g '${1+"$@"}'='"$@"'
13144
setopt NO_GLOB_SUBST
13146
case `(set -o) 2>/dev/null` in @%:@(
13148
set -o posix ;; @%:@(
13158
# Printing a long string crashes Solaris 7 /usr/bin/printf.
13159
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13160
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13161
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13162
# Prefer a ksh shell builtin over an external printf program on Solaris,
13163
# but without wasting forks for bash or zsh.
13164
if test -z "$BASH_VERSION$ZSH_VERSION" \
13165
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13166
as_echo='print -r --'
13167
as_echo_n='print -rn --'
13168
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13169
as_echo='printf %s\n'
13170
as_echo_n='printf %s'
13172
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13173
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13174
as_echo_n='/usr/ucb/echo -n'
13176
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13177
as_echo_n_body='eval
13181
expr "X$arg" : "X\\(.*\\)$as_nl";
13182
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13184
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13186
export as_echo_n_body
13187
as_echo_n='sh -c $as_echo_n_body as_echo'
13189
export as_echo_body
13190
as_echo='sh -c $as_echo_body as_echo'
13193
# The user is always right.
13194
if test "${PATH_SEPARATOR+set}" != set; then
13196
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13197
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13204
# We need space, tab and new line, in precisely that order. Quoting is
13205
# there to prevent editors from complaining about space-tab.
13206
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13207
# splitting by setting IFS to empty value.)
13210
# Find who we are. Look in the path if we contain no directory separator.
13213
*[\\/]* ) as_myself=$0 ;;
13214
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13215
for as_dir in $PATH
13218
test -z "$as_dir" && as_dir=.
13219
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13225
# We did not find ourselves, most probably we were run as `sh COMMAND'
13226
# in which case we are not to be found in the path.
13227
if test "x$as_myself" = x; then
13230
if test ! -f "$as_myself"; then
13231
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13235
# Unset variables that we do not need and which cause bugs (e.g. in
13236
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13237
# suppresses any "Segmentation fault" message there. '((' could
13238
# trigger a bug in pdksh 5.2.14.
13239
for as_var in BASH_ENV ENV MAIL MAILPATH
13240
do eval test x\${$as_var+set} = xset \
13241
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13254
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13257
@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
13258
@%:@ ----------------------------------------
13259
@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13260
@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13261
@%:@ script with STATUS, using 1 if that was 0.
13264
as_status=$1; test $as_status -eq 0 && as_status=1
13266
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13267
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
13269
$as_echo "$as_me: error: $2" >&2
13270
as_fn_exit $as_status
13274
@%:@ as_fn_set_status STATUS
13275
@%:@ -----------------------
13276
@%:@ Set @S|@? to STATUS, without forking.
13277
as_fn_set_status ()
13280
} @%:@ as_fn_set_status
13282
@%:@ as_fn_exit STATUS
13283
@%:@ -----------------
13284
@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13288
as_fn_set_status $1
13292
@%:@ as_fn_unset VAR
13293
@%:@ ---------------
13294
@%:@ Portably unset VAR.
13297
{ eval $1=; unset $1;}
13299
as_unset=as_fn_unset
13300
@%:@ as_fn_append VAR VALUE
13301
@%:@ ----------------------
13302
@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
13303
@%:@ advantage of any shell optimizations that allow amortized linear growth over
13304
@%:@ repeated appends, instead of the typical quadratic growth present in naive
13305
@%:@ implementations.
13306
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13307
eval 'as_fn_append ()
13318
@%:@ as_fn_arith ARG...
13319
@%:@ ------------------
13320
@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
13321
@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
13322
@%:@ must be portable across @S|@(()) and expr.
13323
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13324
eval 'as_fn_arith ()
13331
as_val=`expr "$@" || test $? -eq 1`
13336
if expr a : '\(a\)' >/dev/null 2>&1 &&
13337
test "X`expr 00001 : '.*\(...\)'`" = X001; then
13343
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13344
as_basename=basename
13349
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13355
as_me=`$as_basename -- "$0" ||
13356
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13357
X"$0" : 'X\(//\)$' \| \
13358
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13360
sed '/^.*\/\([^/][^/]*\)\/*$/{
13374
# Avoid depending upon Character Ranges.
13375
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13376
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13377
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13378
as_cr_digits='0123456789'
13379
as_cr_alnum=$as_cr_Letters$as_cr_digits
13381
ECHO_C= ECHO_N= ECHO_T=
13382
case `echo -n x` in @%:@(((((
13384
case `echo 'xy\c'` in
13385
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
13387
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13394
rm -f conf$$ conf$$.exe conf$$.file
13395
if test -d conf$$.dir; then
13396
rm -f conf$$.dir/conf$$.file
13399
mkdir conf$$.dir 2>/dev/null
13401
if (echo >conf$$.file) 2>/dev/null; then
13402
if ln -s conf$$.file conf$$ 2>/dev/null; then
13404
# ... but there are two gotchas:
13405
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13406
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13407
# In both cases, we have to default to `cp -pR'.
13408
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
13410
elif ln conf$$.file conf$$ 2>/dev/null; then
13418
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13419
rmdir conf$$.dir 2>/dev/null
13424
@%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
13429
-*) as_dir=./$as_dir;;
13431
test -d "$as_dir" || eval $as_mkdir_p || {
13435
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13436
*) as_qdir=$as_dir;;
13438
as_dirs="'$as_qdir' $as_dirs"
13439
as_dir=`$as_dirname -- "$as_dir" ||
13440
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13441
X"$as_dir" : 'X\(//\)[^/]' \| \
13442
X"$as_dir" : 'X\(//\)$' \| \
13443
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13444
$as_echo X"$as_dir" |
13445
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13449
/^X\(\/\/\)[^/].*/{
13462
test -d "$as_dir" && break
13464
test -z "$as_dirs" || eval "mkdir $as_dirs"
13465
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13468
} @%:@ as_fn_mkdir_p
13469
if mkdir -p . 2>/dev/null; then
13470
as_mkdir_p='mkdir -p "$as_dir"'
13472
test -d ./-p && rmdir ./-p
13477
@%:@ as_fn_executable_p FILE
13478
@%:@ -----------------------
13479
@%:@ Test if FILE is an executable regular file.
13480
as_fn_executable_p ()
13482
test -f "$1" && test -x "$1"
13483
} @%:@ as_fn_executable_p
13484
as_test_x='test -x'
13485
as_executable_p=as_fn_executable_p
13487
# Sed expression to map a string onto a valid CPP name.
13488
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13490
# Sed expression to map a string onto a valid variable name.
13491
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13495
## ----------------------------------- ##
13496
## Main body of $CONFIG_STATUS script. ##
13497
## ----------------------------------- ##
13499
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13501
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13502
# Save the log message, to keep $0 and so on meaningful, and to
13503
# report actual input values of CONFIG_FILES etc. instead of their
13504
# values after options handling.
13506
This file was extended by libdvdread $as_me 4.2.0, which was
13507
generated by GNU Autoconf 2.69. Invocation command line was
13509
CONFIG_FILES = $CONFIG_FILES
13510
CONFIG_HEADERS = $CONFIG_HEADERS
13511
CONFIG_LINKS = $CONFIG_LINKS
13512
CONFIG_COMMANDS = $CONFIG_COMMANDS
13515
on `(hostname || uname -n) 2>/dev/null | sed 1q`
13520
case $ac_config_files in *"
13521
"*) set x $ac_config_files; shift; ac_config_files=$*;;
13524
case $ac_config_headers in *"
13525
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13529
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13530
# Files that config.status was made for.
13531
config_files="$ac_config_files"
13532
config_headers="$ac_config_headers"
13533
config_commands="$ac_config_commands"
13537
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13539
\`$as_me' instantiates files and other configuration actions
13540
from templates according to the current configuration. Unless the files
13541
and actions are specified as TAGs, all are instantiated by default.
13543
Usage: $0 [OPTION]... [TAG]...
13545
-h, --help print this help, then exit
13546
-V, --version print version number and configuration settings, then exit
13547
--config print configuration, then exit
13548
-q, --quiet, --silent
13549
do not print progress messages
13550
-d, --debug don't remove temporary files
13551
--recheck update $as_me by reconfiguring in the same conditions
13552
--file=FILE[:TEMPLATE]
13553
instantiate the configuration file FILE
13554
--header=FILE[:TEMPLATE]
13555
instantiate the configuration header FILE
13557
Configuration files:
13560
Configuration headers:
13563
Configuration commands:
13566
Report bugs to the package provider."
13569
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13570
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13572
libdvdread config.status 4.2.0
13573
configured by $0, generated by GNU Autoconf 2.69,
13574
with options \\"\$ac_cs_config\\"
13576
Copyright (C) 2012 Free Software Foundation, Inc.
13577
This config.status script is free software; the Free Software Foundation
13578
gives unlimited permission to copy, distribute and modify it."
13585
test -n "\$AWK" || AWK=awk
13588
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13589
# The default lists apply if the user does not specify any file.
13595
ac_option=`expr "X$1" : 'X\([^=]*\)='`
13596
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13600
ac_option=`expr "X$1" : 'X\([^=]*\)='`
13612
# Handling of the options.
13613
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13615
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13616
$as_echo "$ac_cs_version"; exit ;;
13617
--config | --confi | --conf | --con | --co | --c )
13618
$as_echo "$ac_cs_config"; exit ;;
13619
--debug | --debu | --deb | --de | --d | -d )
13621
--file | --fil | --fi | --f )
13624
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13625
'') as_fn_error $? "missing file argument" ;;
13627
as_fn_append CONFIG_FILES " '$ac_optarg'"
13628
ac_need_defaults=false;;
13629
--header | --heade | --head | --hea )
13632
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13634
as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13635
ac_need_defaults=false;;
13637
# Conflict between --help and --header
13638
as_fn_error $? "ambiguous option: \`$1'
13639
Try \`$0 --help' for more information.";;
13640
--help | --hel | -h )
13641
$as_echo "$ac_cs_usage"; exit ;;
13642
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
13643
| -silent | --silent | --silen | --sile | --sil | --si | --s)
13646
# This is an error.
13647
-*) as_fn_error $? "unrecognized option: \`$1'
13648
Try \`$0 --help' for more information." ;;
13650
*) as_fn_append ac_config_targets " $1"
13651
ac_need_defaults=false ;;
13657
ac_configure_extra_args=
13659
if $ac_cs_silent; then
13661
ac_configure_extra_args="$ac_configure_extra_args --silent"
13665
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13666
if \$ac_cs_recheck; then
13667
set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13669
\$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13670
CONFIG_SHELL='$SHELL'
13671
export CONFIG_SHELL
13676
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13680
sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
13681
@%:@@%:@ Running $as_me. @%:@@%:@
13687
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13691
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
13694
# The HP-UX ksh and POSIX shell print the target directory to stdout
13695
# if CDPATH is set.
13696
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13698
sed_quote_subst='$sed_quote_subst'
13699
double_quote_subst='$double_quote_subst'
13700
delay_variable_subst='$delay_variable_subst'
13701
enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
13702
macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
13703
macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
13704
enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
13705
pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
13706
enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
13707
SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
13708
ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
13709
PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
13710
host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
13711
host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
13712
host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
13713
build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
13714
build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
13715
build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
13716
SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
13717
Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
13718
GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
13719
EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
13720
FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
13721
LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
13722
NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
13723
LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
13724
max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
13725
ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
13726
exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
13727
lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
13728
lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
13729
lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
13730
lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
13731
lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
13732
reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
13733
reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
13734
OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
13735
deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
13736
file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
13737
file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
13738
want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
13739
DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
13740
sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
13741
AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
13742
AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
13743
archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
13744
STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
13745
RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
13746
old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13747
old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13748
old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
13749
lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
13750
CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
13751
CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
13752
compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
13753
GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
13754
lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
13755
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
13756
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
13757
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"`'
13758
nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
13759
lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
13760
objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
13761
MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
13762
lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
13763
lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
13764
lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
13765
lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
13766
lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
13767
need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
13768
MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
13769
DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
13770
NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
13771
LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
13772
OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
13773
OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
13774
libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
13775
shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
13776
extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13777
archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
13778
enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
13779
export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
13780
whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
13781
compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
13782
old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
13783
old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
13784
archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
13785
archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13786
module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
13787
module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
13788
with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
13789
allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
13790
no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
13791
hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
13792
hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
13793
hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
13794
hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
13795
hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
13796
hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
13797
hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
13798
inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
13799
link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
13800
always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
13801
export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
13802
exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
13803
include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
13804
prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
13805
postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
13806
file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
13807
variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
13808
need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
13809
need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
13810
version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
13811
runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
13812
shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
13813
shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
13814
libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
13815
library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
13816
soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
13817
install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
13818
postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
13819
postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
13820
finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
13821
finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
13822
hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
13823
sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
13824
sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
13825
hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
13826
enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
13827
enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
13828
enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
13829
old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
13830
striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
13833
LTCFLAGS='$LTCFLAGS'
13834
compiler='$compiler_DEFAULT'
13836
# A function that is used when there is no print builtin or printf.
13837
func_fallback_echo ()
13839
eval 'cat <<_LTECHO_EOF
13844
# Quote evaled strings.
13859
deplibs_check_method \
13864
sharedlib_from_linklib_cmd \
13867
archiver_list_spec \
13873
lt_cv_sys_global_symbol_pipe \
13874
lt_cv_sys_global_symbol_to_cdecl \
13875
lt_cv_sys_global_symbol_to_c_name_address \
13876
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
13877
nm_file_list_spec \
13878
lt_prog_compiler_no_builtin_flag \
13879
lt_prog_compiler_pic \
13880
lt_prog_compiler_wl \
13881
lt_prog_compiler_static \
13882
lt_cv_prog_compiler_c_o \
13891
export_dynamic_flag_spec \
13892
whole_archive_flag_spec \
13893
compiler_needs_object \
13895
allow_undefined_flag \
13896
no_undefined_flag \
13897
hardcode_libdir_flag_spec \
13898
hardcode_libdir_separator \
13902
variables_saved_for_relink \
13904
library_names_spec \
13906
install_override_mode \
13910
case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13911
*[\\\\\\\`\\"\\\$]*)
13912
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
13915
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13920
# Double-quote double-evaled strings.
13921
for var in reload_cmds \
13922
old_postinstall_cmds \
13923
old_postuninstall_cmds \
13925
extract_expsyms_cmds \
13926
old_archive_from_new_cmds \
13927
old_archive_from_expsyms_cmds \
13929
archive_expsym_cmds \
13931
module_expsym_cmds \
13932
export_symbols_cmds \
13936
postuninstall_cmds \
13938
sys_lib_search_path_spec \
13939
sys_lib_dlsearch_path_spec; do
13940
case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
13941
*[\\\\\\\`\\"\\\$]*)
13942
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
13945
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
13950
ac_aux_dir='$ac_aux_dir'
13951
xsi_shell='$xsi_shell'
13952
lt_shell_append='$lt_shell_append'
13954
# See if we are running on zsh, and set the options which allow our
13955
# commands through without removal of \ escapes INIT.
13956
if test -n "\${ZSH_VERSION+set}" ; then
13957
setopt NO_GLOB_SUBST
13963
TIMESTAMP='$TIMESTAMP'
13972
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13974
# Handling of arguments.
13975
for ac_config_target in $ac_config_targets
13977
case $ac_config_target in
13978
"config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
13979
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
13980
"libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
13981
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13982
"src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13983
"misc/Makefile") CONFIG_FILES="$CONFIG_FILES misc/Makefile" ;;
13984
"misc/dvdread-config") CONFIG_FILES="$CONFIG_FILES misc/dvdread-config" ;;
13985
"misc/dvdread.pc") CONFIG_FILES="$CONFIG_FILES misc/dvdread.pc" ;;
13986
"misc/libdvdread.spec") CONFIG_FILES="$CONFIG_FILES misc/libdvdread.spec" ;;
13987
"misc/relchk.sh") CONFIG_FILES="$CONFIG_FILES misc/relchk.sh" ;;
13988
"m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
13990
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13995
# If the user did not use the arguments to specify the items to instantiate,
13996
# then the envvar interface is used. Set only those that are not.
13997
# We use the long form for the default assignment because of an extremely
13998
# bizarre bug on SunOS 4.1.3.
13999
if $ac_need_defaults; then
14000
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14001
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14002
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14005
# Have a temporary directory for convenience. Make it in the build tree
14006
# simply because there is no reason against having it here, and in addition,
14007
# creating and moving files from /tmp can sometimes cause problems.
14008
# Hook for its removal unless debugging.
14009
# Note that there is a small window in which the directory will not be cleaned:
14010
# after its creation but before its name has been assigned to `$tmp'.
14014
trap 'exit_status=$?
14015
: "${ac_tmp:=$tmp}"
14016
{ test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
14018
trap 'as_fn_exit 1' 1 2 13 15
14020
# Create a (secure) tmp directory for tmp files.
14023
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14027
tmp=./conf$$-$RANDOM
14028
(umask 077 && mkdir "$tmp")
14029
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14032
# Set up the scripts for CONFIG_FILES section.
14033
# No need to generate them if there are no CONFIG_FILES.
14034
# This happens for instance with `./config.status config.h'.
14035
if test -n "$CONFIG_FILES"; then
14038
ac_cr=`echo X | tr X '\015'`
14039
# On cygwin, bash can eat \r inside `` if the user requested igncr.
14040
# But we know of no other shell where ac_cr would be empty at this
14041
# point, so we can use a bashism as a fallback.
14042
if test "x$ac_cr" = x; then
14043
eval ac_cr=\$\'\\r\'
14045
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14046
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14049
ac_cs_awk_cr=$ac_cr
14052
echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
14057
echo "cat >conf$$subs.awk <<_ACEOF" &&
14058
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14060
} >conf$$subs.sh ||
14061
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14062
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
14064
for ac_last_try in false false false false false :; do
14065
. ./conf$$subs.sh ||
14066
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14068
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14069
if test $ac_delim_n = $ac_delim_num; then
14071
elif $ac_last_try; then
14072
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14074
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14077
rm -f conf$$subs.sh
14079
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14080
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
14084
s/^/S["/; s/!.*/"]=/
14094
s/\(.\{148\}\)..*/\1/
14096
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14101
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14108
s/\(.\{148\}\)..*/\1/
14110
s/["\\]/\\&/g; s/^/"/; s/$/"/
14114
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14119
' <conf$$subs.awk | sed '
14124
' >>$CONFIG_STATUS || ac_write_fail=1
14125
rm -f conf$$subs.awk
14126
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14128
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
14129
for (key in S) S_is_set[key] = 1
14135
nfields = split(line, field, "@")
14137
len = length(field[1])
14138
for (i = 2; i < nfields; i++) {
14140
keylen = length(key)
14141
if (S_is_set[key]) {
14143
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14144
len += length(value) + length(field[++i])
14155
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14156
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14157
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14160
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14161
|| as_fn_error $? "could not setup config files machinery" "$LINENO" 5
14164
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14165
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
14166
# trailing colons and then remove the whole line if VPATH becomes empty
14167
# (actually we leave an empty line to preserve line numbers).
14168
if test "x$srcdir" = x.; then
14169
ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14187
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14188
fi # test -n "$CONFIG_FILES"
14190
# Set up the scripts for CONFIG_HEADERS section.
14191
# No need to generate them if there are no CONFIG_HEADERS.
14192
# This happens for instance with `./config.status Makefile'.
14193
if test -n "$CONFIG_HEADERS"; then
14194
cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
14198
# Transform confdefs.h into an awk script `defines.awk', embedded as
14199
# here-document in config.status, that substitutes the proper values into
14200
# config.h.in to produce config.h.
14202
# Create a delimiter string that does not exist in confdefs.h, to ease
14203
# handling of long lines.
14205
for ac_last_try in false false :; do
14206
ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14207
if test -z "$ac_tt"; then
14209
elif $ac_last_try; then
14210
as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
14212
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14216
# For the awk script, D is an array of macro values keyed by name,
14217
# likewise P contains macro parameters if any. Preserve backslash
14218
# newline sequences.
14220
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14222
s/.\{148\}/&'"$ac_delim"'/g
14225
s/^[ ]*#[ ]*define[ ][ ]*/ /
14232
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14234
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14238
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14239
D["\1"]=" \3\\\\\\n"\\/p
14241
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14246
s/.\{148\}/&'"$ac_delim"'/g
14251
s/["\\]/\\&/g; s/^/"/; s/$/"/p
14254
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14256
' <confdefs.h | sed '
14257
s/'"$ac_delim"'/"\\\
14258
"/g' >>$CONFIG_STATUS || ac_write_fail=1
14260
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14261
for (key in D) D_is_set[key] = 1
14264
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14266
split(line, arg, " ")
14267
if (arg[1] == "#") {
14271
defundef = substr(arg[1], 2)
14274
split(mac1, mac2, "(") #)
14276
prefix = substr(line, 1, index(line, defundef) - 1)
14277
if (D_is_set[macro]) {
14278
# Preserve the white space surrounding the "#".
14279
print prefix "define", macro P[macro] D[macro]
14282
# Replace #undef with comments. This is necessary, for example,
14283
# in the case of _POSIX_SOURCE, which is predefined and required
14284
# on some systems where configure will not decide to define it.
14285
if (defundef == "undef") {
14286
print "/*", prefix defundef, macro, "*/"
14294
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14295
as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
14296
fi # test -n "$CONFIG_HEADERS"
14299
eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14304
:[FHLC]) ac_mode=$ac_tag; continue;;
14306
case $ac_mode$ac_tag in
14308
:L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
14309
:[FH]-) ac_tag=-:-;;
14310
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14327
-) ac_f="$ac_tmp/stdin";;
14328
*) # Look for the file first in the build tree, then in the source tree
14329
# (if the path is not absolute). The absolute path cannot be DOS-style,
14330
# because $ac_f cannot contain `:'.
14334
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14336
as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
14338
case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14339
as_fn_append ac_file_inputs " '$ac_f'"
14342
# Let's still pretend it is `configure' which instantiates (i.e., don't
14343
# use $as_me), people would be surprised to read:
14344
# /* config.h. Generated by config.status. */
14345
configure_input='Generated from '`
14346
$as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14348
if test x"$ac_file" != x-; then
14349
configure_input="$ac_file. $configure_input"
14350
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14351
$as_echo "$as_me: creating $ac_file" >&6;}
14353
# Neutralize special characters interpreted by sed in replacement strings.
14354
case $configure_input in #(
14355
*\&* | *\|* | *\\* )
14356
ac_sed_conf_input=`$as_echo "$configure_input" |
14357
sed 's/[\\\\&|]/\\\\&/g'`;; #(
14358
*) ac_sed_conf_input=$configure_input;;
14362
*:-:* | *:-) cat >"$ac_tmp/stdin" \
14363
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
14368
ac_dir=`$as_dirname -- "$ac_file" ||
14369
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14370
X"$ac_file" : 'X\(//\)[^/]' \| \
14371
X"$ac_file" : 'X\(//\)$' \| \
14372
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14373
$as_echo X"$ac_file" |
14374
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14378
/^X\(\/\/\)[^/].*/{
14391
as_dir="$ac_dir"; as_fn_mkdir_p
14395
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14397
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14398
# A ".." for each directory in $ac_dir_suffix.
14399
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14400
case $ac_top_builddir_sub in
14401
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14402
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14405
ac_abs_top_builddir=$ac_pwd
14406
ac_abs_builddir=$ac_pwd$ac_dir_suffix
14407
# for backward compatibility:
14408
ac_top_builddir=$ac_top_build_prefix
14411
.) # We are building in place.
14413
ac_top_srcdir=$ac_top_builddir_sub
14414
ac_abs_top_srcdir=$ac_pwd ;;
14415
[\\/]* | ?:[\\/]* ) # Absolute name.
14416
ac_srcdir=$srcdir$ac_dir_suffix;
14417
ac_top_srcdir=$srcdir
14418
ac_abs_top_srcdir=$srcdir ;;
14419
*) # Relative name.
14420
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14421
ac_top_srcdir=$ac_top_build_prefix$srcdir
14422
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
14424
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
14434
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14435
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14437
ac_MKDIR_P=$MKDIR_P
14439
[\\/$]* | ?:[\\/]* ) ;;
14440
*/*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14444
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14445
# If the template does not know about datarootdir, expand it.
14446
# FIXME: This hack should be removed a few years after 2.60.
14447
ac_datarootdir_hack=; ac_datarootdir_seen=
14458
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14459
*datarootdir*) ac_datarootdir_seen=yes;;
14460
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14461
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14462
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14464
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14465
ac_datarootdir_hack='
14466
s&@datadir@&$datadir&g
14467
s&@docdir@&$docdir&g
14468
s&@infodir@&$infodir&g
14469
s&@localedir@&$localedir&g
14470
s&@mandir@&$mandir&g
14471
s&\\\${datarootdir}&$datarootdir&g' ;;
14475
# Neutralize VPATH when `$srcdir' = `.'.
14476
# Shell code in configure.ac might set extrasub.
14477
# FIXME: do we really want to maintain this feature?
14478
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14479
ac_sed_extra="$ac_vpsub
14482
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14484
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14485
s|@configure_input@|$ac_sed_conf_input|;t t
14486
s&@top_builddir@&$ac_top_builddir_sub&;t t
14487
s&@top_build_prefix@&$ac_top_build_prefix&;t t
14488
s&@srcdir@&$ac_srcdir&;t t
14489
s&@abs_srcdir@&$ac_abs_srcdir&;t t
14490
s&@top_srcdir@&$ac_top_srcdir&;t t
14491
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14492
s&@builddir@&$ac_builddir&;t t
14493
s&@abs_builddir@&$ac_abs_builddir&;t t
14494
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14495
s&@INSTALL@&$ac_INSTALL&;t t
14496
s&@MKDIR_P@&$ac_MKDIR_P&;t t
14497
$ac_datarootdir_hack
14499
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
14500
>$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14502
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14503
{ ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14504
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14505
"$ac_tmp/out"`; test -z "$ac_out"; } &&
14506
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14507
which seems to be undefined. Please make sure it is defined" >&5
14508
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14509
which seems to be undefined. Please make sure it is defined" >&2;}
14511
rm -f "$ac_tmp/stdin"
14513
-) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14514
*) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14516
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
14522
if test x"$ac_file" != x-; then
14524
$as_echo "/* $configure_input */" \
14525
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
14526
} >"$ac_tmp/config.h" \
14527
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
14528
if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14529
{ $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14530
$as_echo "$as_me: $ac_file is unchanged" >&6;}
14533
mv "$ac_tmp/config.h" "$ac_file" \
14534
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
14537
$as_echo "/* $configure_input */" \
14538
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14539
|| as_fn_error $? "could not create -" "$LINENO" 5
14541
# Compute "$ac_file"'s index in $config_headers.
14544
for _am_header in $config_headers :; do
14545
case $_am_header in
14546
$_am_arg | $_am_arg:* )
14549
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
14552
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
14553
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14554
X"$_am_arg" : 'X\(//\)[^/]' \| \
14555
X"$_am_arg" : 'X\(//\)$' \| \
14556
X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
14557
$as_echo X"$_am_arg" |
14558
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14562
/^X\(\/\/\)[^/].*/{
14574
s/.*/./; q'`/stamp-h$_am_stamp_count
14577
:C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14578
$as_echo "$as_me: executing $ac_file commands" >&6;}
14583
case $ac_file$ac_mode in
14584
"depfiles":C) test x"$AMDEP_TRUE" != x"" || {
14585
# Autoconf 2.62 quotes --file arguments for eval, but not when files
14586
# are listed without --file. Let's play safe and only enable the eval
14587
# if we detect the quoting.
14588
case $CONFIG_FILES in
14589
*\'*) eval set x "$CONFIG_FILES" ;;
14590
*) set x $CONFIG_FILES ;;
14595
# Strip MF so we end up with the name of the file.
14596
mf=`echo "$mf" | sed -e 's/:.*$//'`
14597
# Check whether this is an Automake generated Makefile or not.
14598
# We used to match only the files named `Makefile.in', but
14599
# some people rename them; so instead we look at the file content.
14600
# Grep'ing the first line is not enough: some people post-process
14601
# each Makefile.in and add a new line on top of each file to say so.
14602
# Grep'ing the whole file is not good either: AIX grep has a line
14603
# limit of 2048, but all sed's we know have understand at least 4000.
14604
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
14605
dirpart=`$as_dirname -- "$mf" ||
14606
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14607
X"$mf" : 'X\(//\)[^/]' \| \
14608
X"$mf" : 'X\(//\)$' \| \
14609
X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
14611
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14615
/^X\(\/\/\)[^/].*/{
14631
# Extract the definition of DEPDIR, am__include, and am__quote
14632
# from the Makefile without running `make'.
14633
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
14634
test -z "$DEPDIR" && continue
14635
am__include=`sed -n 's/^am__include = //p' < "$mf"`
14636
test -z "am__include" && continue
14637
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
14638
# When using ansi2knr, U may be empty or an underscore; expand it
14639
U=`sed -n 's/^U = //p' < "$mf"`
14640
# Find all dependency output files, they are included files with
14641
# $(DEPDIR) in their names. We invoke sed twice because it is the
14642
# simplest approach to changing $(DEPDIR) to its actual value in the
14644
for file in `sed -n "
14645
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
14646
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
14647
# Make sure the directory exists.
14648
test -f "$dirpart/$file" && continue
14649
fdir=`$as_dirname -- "$file" ||
14650
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14651
X"$file" : 'X\(//\)[^/]' \| \
14652
X"$file" : 'X\(//\)$' \| \
14653
X"$file" : 'X\(/\)' \| . 2>/dev/null ||
14654
$as_echo X"$file" |
14655
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14659
/^X\(\/\/\)[^/].*/{
14672
as_dir=$dirpart/$fdir; as_fn_mkdir_p
14673
# echo "creating $dirpart/$file"
14674
echo '# dummy' > "$dirpart/$file"
14681
# See if we are running on zsh, and set the options which allow our
14682
# commands through without removal of \ escapes.
14683
if test -n "${ZSH_VERSION+set}" ; then
14684
setopt NO_GLOB_SUBST
14687
cfgfile="${ofile}T"
14688
trap "$RM \"$cfgfile\"; exit 1" 1 2 15
14691
cat <<_LT_EOF >> "$cfgfile"
14694
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14695
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
14696
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14697
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
14699
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
14700
# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
14702
# Written by Gordon Matzigkeit, 1996
14704
# This file is part of GNU Libtool.
14706
# GNU Libtool is free software; you can redistribute it and/or
14707
# modify it under the terms of the GNU General Public License as
14708
# published by the Free Software Foundation; either version 2 of
14709
# the License, or (at your option) any later version.
14711
# As a special exception to the GNU General Public License,
14712
# if you distribute this file as part of a program or library that
14713
# is built using GNU Libtool, you may include this file under the
14714
# same distribution terms that you use for the rest of that program.
14716
# GNU Libtool is distributed in the hope that it will be useful,
14717
# but WITHOUT ANY WARRANTY; without even the implied warranty of
14718
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14719
# GNU General Public License for more details.
14721
# You should have received a copy of the GNU General Public License
14722
# along with GNU Libtool; see the file COPYING. If not, a copy
14723
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
14724
# obtained by writing to the Free Software Foundation, Inc.,
14725
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14728
# The names of the tagged configurations supported by this script.
14731
# ### BEGIN LIBTOOL CONFIG
14733
# Whether or not to build static libraries.
14734
build_old_libs=$enable_static
14736
# Which release of libtool.m4 was used?
14737
macro_version=$macro_version
14738
macro_revision=$macro_revision
14740
# Whether or not to build shared libraries.
14741
build_libtool_libs=$enable_shared
14743
# What type of objects to build.
14746
# Whether or not to optimize for fast installation.
14747
fast_install=$enable_fast_install
14749
# Shell to use when invoking shell scripts.
14752
# An echo program that protects backslashes.
14755
# The PATH separator for the build system.
14756
PATH_SEPARATOR=$lt_PATH_SEPARATOR
14759
host_alias=$host_alias
14763
# The build system.
14764
build_alias=$build_alias
14768
# A sed program that does not truncate output.
14771
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
14772
Xsed="\$SED -e 1s/^X//"
14774
# A grep program that handles long lines.
14780
# A literal string matcher.
14783
# A BSD- or MS-compatible name lister.
14786
# Whether we need soft or hard links.
14789
# What is the maximum length of a command?
14790
max_cmd_len=$max_cmd_len
14792
# Object file suffix (normally "o").
14795
# Executable file suffix (normally "").
14798
# whether the shell understands "unset".
14801
# turn spaces into newlines.
14804
# turn newlines into spaces.
14807
# convert \$build file names to \$host format.
14808
to_host_file_cmd=$lt_cv_to_host_file_cmd
14810
# convert \$build files to toolchain format.
14811
to_tool_file_cmd=$lt_cv_to_tool_file_cmd
14813
# An object symbol dumper.
14814
OBJDUMP=$lt_OBJDUMP
14816
# Method to check whether dependent libraries are shared objects.
14817
deplibs_check_method=$lt_deplibs_check_method
14819
# Command to use when deplibs_check_method = "file_magic".
14820
file_magic_cmd=$lt_file_magic_cmd
14822
# How to find potential files when deplibs_check_method = "file_magic".
14823
file_magic_glob=$lt_file_magic_glob
14825
# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
14826
want_nocaseglob=$lt_want_nocaseglob
14828
# DLL creation program.
14829
DLLTOOL=$lt_DLLTOOL
14831
# Command to associate shared and link libraries.
14832
sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
14837
# Flags to create an archive.
14838
AR_FLAGS=$lt_AR_FLAGS
14840
# How to feed a file listing to the archiver.
14841
archiver_list_spec=$lt_archiver_list_spec
14843
# A symbol stripping program.
14846
# Commands used to install an old-style archive.
14848
old_postinstall_cmds=$lt_old_postinstall_cmds
14849
old_postuninstall_cmds=$lt_old_postuninstall_cmds
14851
# Whether to use a lock for old archive extraction.
14852
lock_old_archive_extraction=$lock_old_archive_extraction
14857
# LTCC compiler flags.
14858
LTCFLAGS=$lt_CFLAGS
14860
# Take the output of nm and produce a listing of raw symbols and C names.
14861
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14863
# Transform the output of nm in a proper C declaration.
14864
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14866
# Transform the output of nm in a C name address pair.
14867
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14869
# Transform the output of nm in a C name address pair when lib prefix is needed.
14870
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
14872
# Specify filename containing input files for \$NM.
14873
nm_file_list_spec=$lt_nm_file_list_spec
14875
# The root where to search for dependent libraries,and in which our libraries should be installed.
14876
lt_sysroot=$lt_sysroot
14878
# The name of the directory that contains temporary libtool files.
14881
# Used to examine libraries when file_magic_cmd begins with "file".
14882
MAGIC_CMD=$MAGIC_CMD
14884
# Must we lock files when doing compilation?
14885
need_locks=$lt_need_locks
14888
MANIFEST_TOOL=$lt_MANIFEST_TOOL
14890
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
14891
DSYMUTIL=$lt_DSYMUTIL
14893
# Tool to change global to local symbols on Mac OS X.
14896
# Tool to manipulate fat objects and archives on Mac OS X.
14899
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
14902
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
14903
OTOOL64=$lt_OTOOL64
14905
# Old archive suffix (normally "a").
14908
# Shared library suffix (normally ".so").
14909
shrext_cmds=$lt_shrext_cmds
14911
# The commands to extract the exported symbol list from a shared archive.
14912
extract_expsyms_cmds=$lt_extract_expsyms_cmds
14914
# Variables whose values should be saved in libtool wrapper scripts and
14915
# restored at link time.
14916
variables_saved_for_relink=$lt_variables_saved_for_relink
14918
# Do we need the "lib" prefix for modules?
14919
need_lib_prefix=$need_lib_prefix
14921
# Do we need a version for libraries?
14922
need_version=$need_version
14924
# Library versioning type.
14925
version_type=$version_type
14927
# Shared library runtime path variable.
14928
runpath_var=$runpath_var
14930
# Shared library path variable.
14931
shlibpath_var=$shlibpath_var
14933
# Is shlibpath searched before the hard-coded library search path?
14934
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14936
# Format of library name prefix.
14937
libname_spec=$lt_libname_spec
14939
# List of archive names. First name is the real one, the rest are links.
14940
# The last name is the one that the linker finds with -lNAME
14941
library_names_spec=$lt_library_names_spec
14943
# The coded name of the library, if different from the real name.
14944
soname_spec=$lt_soname_spec
14946
# Permission mode override for installation of shared libraries.
14947
install_override_mode=$lt_install_override_mode
14949
# Command to use after installation of a shared archive.
14950
postinstall_cmds=$lt_postinstall_cmds
14952
# Command to use after uninstallation of a shared archive.
14953
postuninstall_cmds=$lt_postuninstall_cmds
14955
# Commands used to finish a libtool library installation in a directory.
14956
finish_cmds=$lt_finish_cmds
14958
# As "finish_cmds", except a single script fragment to be evaled but
14960
finish_eval=$lt_finish_eval
14962
# Whether we should hardcode library paths into libraries.
14963
hardcode_into_libs=$hardcode_into_libs
14965
# Compile-time system search path for libraries.
14966
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14968
# Run-time system search path for libraries.
14969
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14971
# Whether dlopen is supported.
14972
dlopen_support=$enable_dlopen
14974
# Whether dlopen of programs is supported.
14975
dlopen_self=$enable_dlopen_self
14977
# Whether dlopen of statically linked programs is supported.
14978
dlopen_self_static=$enable_dlopen_self_static
14980
# Commands to strip libraries.
14981
old_striplib=$lt_old_striplib
14982
striplib=$lt_striplib
14985
# The linker used to build libraries.
14988
# How to create reloadable object files.
14989
reload_flag=$lt_reload_flag
14990
reload_cmds=$lt_reload_cmds
14992
# Commands used to build an old-style archive.
14993
old_archive_cmds=$lt_old_archive_cmds
14995
# A language specific compiler.
14998
# Is the compiler the GNU compiler?
15001
# Compiler flag to turn off builtin functions.
15002
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15004
# Additional compiler flags for building library objects.
15005
pic_flag=$lt_lt_prog_compiler_pic
15007
# How to pass a linker flag through the compiler.
15008
wl=$lt_lt_prog_compiler_wl
15010
# Compiler flag to prevent dynamic linking.
15011
link_static_flag=$lt_lt_prog_compiler_static
15013
# Does compiler simultaneously support -c and -o options?
15014
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15016
# Whether or not to add -lc for building shared libraries.
15017
build_libtool_need_lc=$archive_cmds_need_lc
15019
# Whether or not to disallow shared libs when runtime libs are static.
15020
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15022
# Compiler flag to allow reflexive dlopens.
15023
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15025
# Compiler flag to generate shared objects directly from archives.
15026
whole_archive_flag_spec=$lt_whole_archive_flag_spec
15028
# Whether the compiler copes with passing no objects directly.
15029
compiler_needs_object=$lt_compiler_needs_object
15031
# Create an old-style archive from a shared archive.
15032
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15034
# Create a temporary old-style archive to link instead of a shared archive.
15035
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15037
# Commands used to build a shared archive.
15038
archive_cmds=$lt_archive_cmds
15039
archive_expsym_cmds=$lt_archive_expsym_cmds
15041
# Commands used to build a loadable module if different from building
15042
# a shared archive.
15043
module_cmds=$lt_module_cmds
15044
module_expsym_cmds=$lt_module_expsym_cmds
15046
# Whether we are building with GNU ld or not.
15047
with_gnu_ld=$lt_with_gnu_ld
15049
# Flag that allows shared libraries with undefined symbols to be built.
15050
allow_undefined_flag=$lt_allow_undefined_flag
15052
# Flag that enforces no undefined symbols.
15053
no_undefined_flag=$lt_no_undefined_flag
15055
# Flag to hardcode \$libdir into a binary during linking.
15056
# This must work even if \$libdir does not exist
15057
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15059
# Whether we need a single "-rpath" flag with a separated argument.
15060
hardcode_libdir_separator=$lt_hardcode_libdir_separator
15062
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15063
# DIR into the resulting binary.
15064
hardcode_direct=$hardcode_direct
15066
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
15067
# DIR into the resulting binary and the resulting library dependency is
15068
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
15069
# library is relocated.
15070
hardcode_direct_absolute=$hardcode_direct_absolute
15072
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
15073
# into the resulting binary.
15074
hardcode_minus_L=$hardcode_minus_L
15076
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
15077
# into the resulting binary.
15078
hardcode_shlibpath_var=$hardcode_shlibpath_var
15080
# Set to "yes" if building a shared library automatically hardcodes DIR
15081
# into the library and all subsequent libraries and executables linked
15083
hardcode_automatic=$hardcode_automatic
15085
# Set to yes if linker adds runtime paths of dependent libraries
15086
# to runtime path list.
15087
inherit_rpath=$inherit_rpath
15089
# Whether libtool must link a program against all its dependency libraries.
15090
link_all_deplibs=$link_all_deplibs
15092
# Set to "yes" if exported symbols are required.
15093
always_export_symbols=$always_export_symbols
15095
# The commands to list exported symbols.
15096
export_symbols_cmds=$lt_export_symbols_cmds
15098
# Symbols that should not be listed in the preloaded symbols.
15099
exclude_expsyms=$lt_exclude_expsyms
15101
# Symbols that must always be exported.
15102
include_expsyms=$lt_include_expsyms
15104
# Commands necessary for linking programs (against libraries) with templates.
15105
prelink_cmds=$lt_prelink_cmds
15107
# Commands necessary for finishing linking programs.
15108
postlink_cmds=$lt_postlink_cmds
15110
# Specify filename containing input files.
15111
file_list_spec=$lt_file_list_spec
15113
# How to hardcode a shared library path into an executable.
15114
hardcode_action=$hardcode_action
15116
# ### END LIBTOOL CONFIG
15122
cat <<\_LT_EOF >> "$cfgfile"
15123
# AIX sometimes has problems with the GCC collect2 program. For some
15124
# reason, if we set the COLLECT_NAMES environment variable, the problems
15125
# vanish in a puff of smoke.
15126
if test "X${COLLECT_NAMES+set}" != Xset; then
15128
export COLLECT_NAMES
15135
ltmain="$ac_aux_dir/ltmain.sh"
15138
# We use sed instead of cat because bash on DJGPP gets confused if
15139
# if finds mixed CR/LF and LF-only lines. Since sed operates in
15140
# text mode, it properly converts lines to CR/LF. This bash problem
15141
# is reportedly fixed, but why not run on old versions too?
15142
sed '$q' "$ltmain" >> "$cfgfile" \
15143
|| (rm -f "$cfgfile"; exit 1)
15145
if test x"$xsi_shell" = xyes; then
15146
sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
15150
\ */*) func_dirname_result="${1%/*}${2}" ;;\
15151
\ * ) func_dirname_result="${3}" ;;\
15153
} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
15154
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15155
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15156
test 0 -eq $? || _lt_function_replace_fail=:
15159
sed -e '/^func_basename ()$/,/^} # func_basename /c\
15162
\ func_basename_result="${1##*/}"\
15163
} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
15164
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15165
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15166
test 0 -eq $? || _lt_function_replace_fail=:
15169
sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
15170
func_dirname_and_basename ()\
15173
\ */*) func_dirname_result="${1%/*}${2}" ;;\
15174
\ * ) func_dirname_result="${3}" ;;\
15176
\ func_basename_result="${1##*/}"\
15177
} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
15178
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15179
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15180
test 0 -eq $? || _lt_function_replace_fail=:
15183
sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
15186
\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
15187
\ # positional parameters, so assign one to ordinary parameter first.\
15188
\ func_stripname_result=${3}\
15189
\ func_stripname_result=${func_stripname_result#"${1}"}\
15190
\ func_stripname_result=${func_stripname_result%"${2}"}\
15191
} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
15192
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15193
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15194
test 0 -eq $? || _lt_function_replace_fail=:
15197
sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
15198
func_split_long_opt ()\
15200
\ func_split_long_opt_name=${1%%=*}\
15201
\ func_split_long_opt_arg=${1#*=}\
15202
} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
15203
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15204
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15205
test 0 -eq $? || _lt_function_replace_fail=:
15208
sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
15209
func_split_short_opt ()\
15211
\ func_split_short_opt_arg=${1#??}\
15212
\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
15213
} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
15214
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15215
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15216
test 0 -eq $? || _lt_function_replace_fail=:
15219
sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
15223
\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
15224
\ *) func_lo2o_result=${1} ;;\
15226
} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
15227
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15228
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15229
test 0 -eq $? || _lt_function_replace_fail=:
15232
sed -e '/^func_xform ()$/,/^} # func_xform /c\
15235
func_xform_result=${1%.*}.lo\
15236
} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
15237
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15238
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15239
test 0 -eq $? || _lt_function_replace_fail=:
15242
sed -e '/^func_arith ()$/,/^} # func_arith /c\
15245
func_arith_result=$(( $* ))\
15246
} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
15247
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15248
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15249
test 0 -eq $? || _lt_function_replace_fail=:
15252
sed -e '/^func_len ()$/,/^} # func_len /c\
15255
func_len_result=${#1}\
15256
} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
15257
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15258
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15259
test 0 -eq $? || _lt_function_replace_fail=:
15263
if test x"$lt_shell_append" = xyes; then
15264
sed -e '/^func_append ()$/,/^} # func_append /c\
15267
eval "${1}+=\\${2}"\
15268
} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
15269
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15270
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15271
test 0 -eq $? || _lt_function_replace_fail=:
15274
sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
15275
func_append_quoted ()\
15277
\ func_quote_for_eval "${2}"\
15278
\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
15279
} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
15280
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15281
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15282
test 0 -eq $? || _lt_function_replace_fail=:
15285
# Save a `func_append' function call where possible by direct use of '+='
15286
sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
15287
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15288
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15289
test 0 -eq $? || _lt_function_replace_fail=:
15291
# Save a `func_append' function call even when '+=' is not available
15292
sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
15293
&& mv -f "$cfgfile.tmp" "$cfgfile" \
15294
|| (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
15295
test 0 -eq $? || _lt_function_replace_fail=:
15298
if test x"$_lt_function_replace_fail" = x":"; then
15299
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
15300
$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
15304
mv -f "$cfgfile" "$ofile" ||
15305
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15316
ac_clean_files=$ac_clean_files_save
15318
test $ac_write_fail = 0 ||
15319
as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15322
# configure is writing to config.log, and then calls config.status.
15323
# config.status does its own redirection, appending to config.log.
15324
# Unfortunately, on DOS this fails, as config.log is still kept open
15325
# by configure, so config.status won't be able to write to it; its
15326
# output is simply discarded. So we exec the FD to /dev/null,
15327
# effectively closing config.log, so it can be properly (re)opened and
15328
# appended to by config.status. When coming back to configure, we
15329
# need to make the FD available again.
15330
if test "$no_create" != yes; then
15332
ac_config_status_args=
15333
test "$silent" = yes &&
15334
ac_config_status_args="$ac_config_status_args --quiet"
15336
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15338
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
15339
# would make configure fail if this is the last instruction.
15340
$ac_cs_success || as_fn_exit 1
15342
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15343
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
15344
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}