2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.67 for FreeType 2.4.4.
5
# Report bugs to <freetype@nongnu.org>.
8
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
13
# This configure script is free software; the Free Software Foundation
14
# gives unlimited permission to copy, distribute and modify it.
15
## -------------------- ##
16
## M4sh Initialization. ##
17
## -------------------- ##
19
# Be more Bourne compatible
20
DUALCASE=1; export DUALCASE # for MKS sh
21
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25
# is contrary to our usage. Disable this feature.
26
alias -g '${1+"$@"}'='"$@"'
29
case `(set -o) 2>/dev/null` in #(
41
# Printing a long string crashes Solaris 7 /usr/bin/printf.
42
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45
# Prefer a ksh shell builtin over an external printf program on Solaris,
46
# but without wasting forks for bash or zsh.
47
if test -z "$BASH_VERSION$ZSH_VERSION" \
48
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50
as_echo_n='print -rn --'
51
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57
as_echo_n='/usr/ucb/echo -n'
59
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64
expr "X$arg" : "X\\(.*\\)$as_nl";
65
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
70
as_echo_n='sh -c $as_echo_n_body as_echo'
73
as_echo='sh -c $as_echo_body as_echo'
76
# The user is always right.
77
if test "${PATH_SEPARATOR+set}" != set; then
79
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87
# We need space, tab and new line, in precisely that order. Quoting is
88
# there to prevent editors from complaining about space-tab.
89
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90
# splitting by setting IFS to empty value.)
93
# Find who we are. Look in the path if we contain no directory separator.
95
*[\\/]* ) as_myself=$0 ;;
96
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100
test -z "$as_dir" && as_dir=.
101
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107
# We did not find ourselves, most probably we were run as `sh COMMAND'
108
# in which case we are not to be found in the path.
109
if test "x$as_myself" = x; then
112
if test ! -f "$as_myself"; then
113
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117
# Unset variables that we do not need and which cause bugs (e.g. in
118
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119
# suppresses any "Segmentation fault" message there. '((' could
120
# trigger a bug in pdksh 5.2.14.
121
for as_var in BASH_ENV ENV MAIL MAILPATH
122
do eval test x\${$as_var+set} = xset \
123
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
136
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138
if test "x$CONFIG_SHELL" = x; then
139
as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
142
# Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143
# is contrary to our usage. Disable this feature.
144
alias -g '\${1+\"\$@\"}'='\"\$@\"'
147
case \`(set -o) 2>/dev/null\` in #(
155
as_required="as_fn_return () { (exit \$1); }
156
as_fn_success () { as_fn_return 0; }
157
as_fn_failure () { as_fn_return 1; }
158
as_fn_ret_success () { return 0; }
159
as_fn_ret_failure () { return 1; }
162
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169
exitcode=1; echo positional parameters were not saved.
171
test x\$exitcode = x0 || exit 1"
172
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175
test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176
test \$(( 1 + 1 )) = 2 || exit 1"
177
if (eval "$as_required") 2>/dev/null; then :
182
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
185
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
187
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
190
test -z "$as_dir" && as_dir=.
194
for as_base in sh bash ksh sh5; do
195
# Try only shells that exist, to save several forks.
196
as_shell=$as_dir/$as_base
197
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199
CONFIG_SHELL=$as_shell as_have_required=yes
200
if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
208
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210
CONFIG_SHELL=$SHELL as_have_required=yes
215
if test "x$CONFIG_SHELL" != x; then :
216
# We cannot yet assume a decent shell, so we have to provide a
217
# neutralization value for shells without unset; and this also
218
# works around shells that cannot unset nonexistent variables.
221
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
223
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
226
if test x$as_have_required = xno; then :
227
$as_echo "$0: This script requires a shell more modern than all"
228
$as_echo "$0: the shells that I found on your system."
229
if test x${ZSH_VERSION+set} = xset ; then
230
$as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231
$as_echo "$0: be upgraded to zsh 4.3.4 or later."
233
$as_echo "$0: Please tell bug-autoconf@gnu.org and
234
$0: freetype@nongnu.org about your system, including any
235
$0: error possibly output before this message. Then install
236
$0: a modern shell, or manually run the script under such a
237
$0: shell if you do have one."
243
SHELL=${CONFIG_SHELL-/bin/sh}
245
# Unset more variables known to interfere with behavior of common tools.
246
CLICOLOR_FORCE= GREP_OPTIONS=
247
unset CLICOLOR_FORCE GREP_OPTIONS
249
## --------------------- ##
250
## M4sh Shell Functions. ##
251
## --------------------- ##
254
# Portably unset VAR.
257
{ eval $1=; unset $1;}
261
# as_fn_set_status STATUS
262
# -----------------------
263
# Set $? to STATUS, without forking.
271
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281
# Create "$as_dir" as a directory, including parents if necessary.
286
-*) as_dir=./$as_dir;;
288
test -d "$as_dir" || eval $as_mkdir_p || {
292
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
295
as_dirs="'$as_qdir' $as_dirs"
296
as_dir=`$as_dirname -- "$as_dir" ||
297
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298
X"$as_dir" : 'X\(//\)[^/]' \| \
299
X"$as_dir" : 'X\(//\)$' \| \
300
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301
$as_echo X"$as_dir" |
302
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319
test -d "$as_dir" && break
321
test -z "$as_dirs" || eval "mkdir $as_dirs"
322
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
326
# as_fn_append VAR VALUE
327
# ----------------------
328
# Append the text in VALUE to the end of the definition contained in VAR. Take
329
# advantage of any shell optimizations that allow amortized linear growth over
330
# repeated appends, instead of the typical quadratic growth present in naive
332
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333
eval 'as_fn_append ()
346
# Perform arithmetic evaluation on the ARGs, and store the result in the
347
# global $as_val. Take advantage of shells that can avoid forks. The arguments
348
# must be portable across $(()) and expr.
349
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
357
as_val=`expr "$@" || test $? -eq 1`
362
# as_fn_error STATUS ERROR [LINENO LOG_FD]
363
# ----------------------------------------
364
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366
# script with STATUS, using 1 if that was 0.
369
as_status=$1; test $as_status -eq 0 && as_status=1
371
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
374
$as_echo "$as_me: error: $2" >&2
375
as_fn_exit $as_status
378
if expr a : '\(a\)' >/dev/null 2>&1 &&
379
test "X`expr 00001 : '.*\(...\)'`" = X001; then
385
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397
as_me=`$as_basename -- "$0" ||
398
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399
X"$0" : 'X\(//\)$' \| \
400
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
402
sed '/^.*\/\([^/][^/]*\)\/*$/{
416
# Avoid depending upon Character Ranges.
417
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420
as_cr_digits='0123456789'
421
as_cr_alnum=$as_cr_Letters$as_cr_digits
424
as_lineno_1=$LINENO as_lineno_1a=$LINENO
425
as_lineno_2=$LINENO as_lineno_2a=$LINENO
426
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
440
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444
chmod +x "$as_me.lineno" ||
445
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
447
# Don't try to exec as it changes $[0], causing all sort of problems
448
# (the dirname of $[0] is not the place where we might find the
449
# original and so on. Autoconf is especially sensitive to this).
451
# Exit status is that of the last command.
455
ECHO_C= ECHO_N= ECHO_T=
456
case `echo -n x` in #(((((
458
case `echo 'xy\c'` in
459
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
461
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
468
rm -f conf$$ conf$$.exe conf$$.file
469
if test -d conf$$.dir; then
470
rm -f conf$$.dir/conf$$.file
473
mkdir conf$$.dir 2>/dev/null
475
if (echo >conf$$.file) 2>/dev/null; then
476
if ln -s conf$$.file conf$$ 2>/dev/null; then
478
# ... but there are two gotchas:
479
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481
# In both cases, we have to default to `cp -p'.
482
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
484
elif ln conf$$.file conf$$ 2>/dev/null; then
492
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493
rmdir conf$$.dir 2>/dev/null
495
if mkdir -p . 2>/dev/null; then
496
as_mkdir_p='mkdir -p "$as_dir"'
498
test -d ./-p && rmdir ./-p
502
if test -x / >/dev/null 2>&1; then
505
if ls -dL / >/dev/null 2>&1; then
512
if test -d "$1"; then
518
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519
???[sx]*):;;*)false;;esac;fi
523
as_executable_p=$as_test_x
525
# Sed expression to map a string onto a valid CPP name.
526
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528
# Sed expression to map a string onto a valid variable name.
529
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
533
# Check that we are running under the correct shell.
534
SHELL=${CONFIG_SHELL-/bin/sh}
538
# Remove one level of quotation (which was required for Make).
539
ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
544
if test "X$1" = X--no-reexec; then
545
# Discard the --no-reexec flag, and continue.
547
elif test "X$1" = X--fallback-echo; then
548
# Avoid inline document here, it may be left over
550
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
551
# Yippee, $ECHO works!
554
# Restart under the correct shell.
555
exec $SHELL "$0" --no-reexec ${1+"$@"}
558
if test "X$1" = X--fallback-echo; then
559
# used as fallback echo
567
# The HP-UX ksh and POSIX shell print the target directory to stdout
569
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
571
if test -z "$lt_ECHO"; then
572
if test "X${echo_test_string+set}" != Xset; then
573
# find a string as large as possible, as long as the shell can cope with it
574
for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
575
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
576
if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
577
{ test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
584
if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
585
echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
586
test "X$echo_testing_string" = "X$echo_test_string"; then
589
# The Solaris, AIX, and Digital Unix default echo programs unquote
590
# backslashes. This makes it impossible to quote backslashes using
591
# echo "$something" | sed 's/\\/\\\\/g'
593
# So, first we look for a working echo in the user's PATH.
595
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
596
for dir in $PATH /usr/ucb; do
598
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
599
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
600
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
601
test "X$echo_testing_string" = "X$echo_test_string"; then
608
if test "X$ECHO" = Xecho; then
609
# We didn't find a better echo, so look for alternatives.
610
if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
611
echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
612
test "X$echo_testing_string" = "X$echo_test_string"; then
613
# This shell has a builtin print -r that does the trick.
615
elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
616
test "X$CONFIG_SHELL" != X/bin/ksh; then
617
# If we have ksh, try running configure again with it.
618
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
619
export ORIGINAL_CONFIG_SHELL
620
CONFIG_SHELL=/bin/ksh
622
exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
626
if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
627
echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
628
test "X$echo_testing_string" = "X$echo_test_string"; then
631
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
632
test "X$echo_testing_string" = 'X\t' &&
633
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
634
test "X$echo_testing_string" = "X$echo_test_string"; then
635
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
637
SHELL="$CONFIG_SHELL"
639
ECHO="$CONFIG_SHELL $0 --fallback-echo"
640
elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
641
test "X$echo_testing_string" = 'X\t' &&
642
echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
643
test "X$echo_testing_string" = "X$echo_test_string"; then
644
ECHO="$CONFIG_SHELL $0 --fallback-echo"
646
# maybe with a smaller string...
649
for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
650
if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
657
if test "$prev" != 'sed 50q "$0"'; then
658
echo_test_string=`eval $prev`
659
export echo_test_string
660
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
662
# Oops. We lost completely, so just stick with echo.
671
# Copy echo and quote the copy suitably for passing to libtool from
672
# the Makefile, instead of quoting the original, which is used later.
674
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
675
lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
681
test -n "$DJDIR" || exec 7<&0 </dev/null
685
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
686
# so uname gets run too.
687
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
692
ac_default_prefix=/usr/local
694
ac_config_libobj_dir=.
701
# Identity of this package.
702
PACKAGE_NAME='FreeType'
703
PACKAGE_TARNAME='freetype'
704
PACKAGE_VERSION='2.4.4'
705
PACKAGE_STRING='FreeType 2.4.4'
706
PACKAGE_BUGREPORT='freetype@nongnu.org'
709
ac_unique_file="ftconfig.in"
710
# Factoring default headers for most tests.
711
ac_includes_default="\
713
#ifdef HAVE_SYS_TYPES_H
714
# include <sys/types.h>
716
#ifdef HAVE_SYS_STAT_H
717
# include <sys/stat.h>
723
# ifdef HAVE_STDLIB_H
728
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
733
#ifdef HAVE_STRINGS_H
734
# include <strings.h>
736
#ifdef HAVE_INTTYPES_H
737
# include <inttypes.h>
747
ac_subst_vars='LTLIBOBJS
751
hardcode_libdir_flag_spec
833
program_transform_name
846
enable_option_checking
852
with_quickdraw_toolbox
853
with_quickdraw_carbon
862
ac_precious_vars='build_alias
873
# Initialize some variables set by options.
875
ac_init_version=false
876
ac_unrecognized_opts=
878
# The variables have the same names as the options, with
879
# dashes changed to underlines.
887
program_transform_name=s,x,x,
895
# Installation directory options.
896
# These are left unexpanded so users can "make install exec_prefix=/foo"
897
# and all the variables that are supposed to be based on exec_prefix
898
# by default will actually change.
899
# Use braces instead of parens because sh, perl, etc. also accept them.
900
# (The list follows the same order as the GNU Coding Standards.)
901
bindir='${exec_prefix}/bin'
902
sbindir='${exec_prefix}/sbin'
903
libexecdir='${exec_prefix}/libexec'
904
datarootdir='${prefix}/share'
905
datadir='${datarootdir}'
906
sysconfdir='${prefix}/etc'
907
sharedstatedir='${prefix}/com'
908
localstatedir='${prefix}/var'
909
includedir='${prefix}/include'
910
oldincludedir='/usr/include'
911
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
912
infodir='${datarootdir}/info'
917
libdir='${exec_prefix}/lib'
918
localedir='${datarootdir}/locale'
919
mandir='${datarootdir}/man'
925
# If the previous option needs an argument, assign it.
926
if test -n "$ac_prev"; then
927
eval $ac_prev=\$ac_option
933
*=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
938
# Accept the important Cygnus configure options, so we can diagnose typos.
940
case $ac_dashdash$ac_option in
944
-bindir | --bindir | --bindi | --bind | --bin | --bi)
946
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
949
-build | --build | --buil | --bui | --bu)
950
ac_prev=build_alias ;;
951
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
952
build_alias=$ac_optarg ;;
954
-cache-file | --cache-file | --cache-fil | --cache-fi \
955
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
956
ac_prev=cache_file ;;
957
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
958
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
959
cache_file=$ac_optarg ;;
962
cache_file=config.cache ;;
964
-datadir | --datadir | --datadi | --datad)
966
-datadir=* | --datadir=* | --datadi=* | --datad=*)
967
datadir=$ac_optarg ;;
969
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
970
| --dataroo | --dataro | --datar)
971
ac_prev=datarootdir ;;
972
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
973
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
974
datarootdir=$ac_optarg ;;
976
-disable-* | --disable-*)
977
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
978
# Reject names that are not valid shell variable names.
979
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
980
as_fn_error $? "invalid feature name: $ac_useropt"
981
ac_useropt_orig=$ac_useropt
982
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
983
case $ac_user_opts in
987
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
988
ac_unrecognized_sep=', ';;
990
eval enable_$ac_useropt=no ;;
992
-docdir | --docdir | --docdi | --doc | --do)
994
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
997
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
999
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1000
dvidir=$ac_optarg ;;
1002
-enable-* | --enable-*)
1003
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1004
# Reject names that are not valid shell variable names.
1005
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1006
as_fn_error $? "invalid feature name: $ac_useropt"
1007
ac_useropt_orig=$ac_useropt
1008
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1009
case $ac_user_opts in
1011
"enable_$ac_useropt"
1013
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1014
ac_unrecognized_sep=', ';;
1016
eval enable_$ac_useropt=\$ac_optarg ;;
1018
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1019
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1020
| --exec | --exe | --ex)
1021
ac_prev=exec_prefix ;;
1022
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1023
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1024
| --exec=* | --exe=* | --ex=*)
1025
exec_prefix=$ac_optarg ;;
1027
-gas | --gas | --ga | --g)
1028
# Obsolete; use --with-gas.
1031
-help | --help | --hel | --he | -h)
1032
ac_init_help=long ;;
1033
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1034
ac_init_help=recursive ;;
1035
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1036
ac_init_help=short ;;
1038
-host | --host | --hos | --ho)
1039
ac_prev=host_alias ;;
1040
-host=* | --host=* | --hos=* | --ho=*)
1041
host_alias=$ac_optarg ;;
1043
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1045
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1047
htmldir=$ac_optarg ;;
1049
-includedir | --includedir | --includedi | --included | --include \
1050
| --includ | --inclu | --incl | --inc)
1051
ac_prev=includedir ;;
1052
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1053
| --includ=* | --inclu=* | --incl=* | --inc=*)
1054
includedir=$ac_optarg ;;
1056
-infodir | --infodir | --infodi | --infod | --info | --inf)
1058
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1059
infodir=$ac_optarg ;;
1061
-libdir | --libdir | --libdi | --libd)
1063
-libdir=* | --libdir=* | --libdi=* | --libd=*)
1064
libdir=$ac_optarg ;;
1066
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1067
| --libexe | --libex | --libe)
1068
ac_prev=libexecdir ;;
1069
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1070
| --libexe=* | --libex=* | --libe=*)
1071
libexecdir=$ac_optarg ;;
1073
-localedir | --localedir | --localedi | --localed | --locale)
1074
ac_prev=localedir ;;
1075
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1076
localedir=$ac_optarg ;;
1078
-localstatedir | --localstatedir | --localstatedi | --localstated \
1079
| --localstate | --localstat | --localsta | --localst | --locals)
1080
ac_prev=localstatedir ;;
1081
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1082
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1083
localstatedir=$ac_optarg ;;
1085
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1087
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1088
mandir=$ac_optarg ;;
1090
-nfp | --nfp | --nf)
1091
# Obsolete; use --without-fp.
1094
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
1095
| --no-cr | --no-c | -n)
1098
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
1099
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1102
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1103
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1104
| --oldin | --oldi | --old | --ol | --o)
1105
ac_prev=oldincludedir ;;
1106
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1107
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1108
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1109
oldincludedir=$ac_optarg ;;
1111
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1113
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1114
prefix=$ac_optarg ;;
1116
-program-prefix | --program-prefix | --program-prefi | --program-pref \
1117
| --program-pre | --program-pr | --program-p)
1118
ac_prev=program_prefix ;;
1119
-program-prefix=* | --program-prefix=* | --program-prefi=* \
1120
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1121
program_prefix=$ac_optarg ;;
1123
-program-suffix | --program-suffix | --program-suffi | --program-suff \
1124
| --program-suf | --program-su | --program-s)
1125
ac_prev=program_suffix ;;
1126
-program-suffix=* | --program-suffix=* | --program-suffi=* \
1127
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1128
program_suffix=$ac_optarg ;;
1130
-program-transform-name | --program-transform-name \
1131
| --program-transform-nam | --program-transform-na \
1132
| --program-transform-n | --program-transform- \
1133
| --program-transform | --program-transfor \
1134
| --program-transfo | --program-transf \
1135
| --program-trans | --program-tran \
1136
| --progr-tra | --program-tr | --program-t)
1137
ac_prev=program_transform_name ;;
1138
-program-transform-name=* | --program-transform-name=* \
1139
| --program-transform-nam=* | --program-transform-na=* \
1140
| --program-transform-n=* | --program-transform-=* \
1141
| --program-transform=* | --program-transfor=* \
1142
| --program-transfo=* | --program-transf=* \
1143
| --program-trans=* | --program-tran=* \
1144
| --progr-tra=* | --program-tr=* | --program-t=*)
1145
program_transform_name=$ac_optarg ;;
1147
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1149
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1150
pdfdir=$ac_optarg ;;
1152
-psdir | --psdir | --psdi | --psd | --ps)
1154
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1157
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1158
| -silent | --silent | --silen | --sile | --sil)
1161
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1163
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1165
sbindir=$ac_optarg ;;
1167
-sharedstatedir | --sharedstatedir | --sharedstatedi \
1168
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1169
| --sharedst | --shareds | --shared | --share | --shar \
1171
ac_prev=sharedstatedir ;;
1172
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1173
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1174
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1176
sharedstatedir=$ac_optarg ;;
1178
-site | --site | --sit)
1180
-site=* | --site=* | --sit=*)
1183
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1185
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1186
srcdir=$ac_optarg ;;
1188
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1189
| --syscon | --sysco | --sysc | --sys | --sy)
1190
ac_prev=sysconfdir ;;
1191
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1192
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1193
sysconfdir=$ac_optarg ;;
1195
-target | --target | --targe | --targ | --tar | --ta | --t)
1196
ac_prev=target_alias ;;
1197
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1198
target_alias=$ac_optarg ;;
1200
-v | -verbose | --verbose | --verbos | --verbo | --verb)
1203
-version | --version | --versio | --versi | --vers | -V)
1204
ac_init_version=: ;;
1207
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1208
# Reject names that are not valid shell variable names.
1209
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1210
as_fn_error $? "invalid package name: $ac_useropt"
1211
ac_useropt_orig=$ac_useropt
1212
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1213
case $ac_user_opts in
1217
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1218
ac_unrecognized_sep=', ';;
1220
eval with_$ac_useropt=\$ac_optarg ;;
1222
-without-* | --without-*)
1223
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1224
# Reject names that are not valid shell variable names.
1225
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1226
as_fn_error $? "invalid package name: $ac_useropt"
1227
ac_useropt_orig=$ac_useropt
1228
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1229
case $ac_user_opts in
1233
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1234
ac_unrecognized_sep=', ';;
1236
eval with_$ac_useropt=no ;;
1239
# Obsolete; use --with-x.
1242
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1243
| --x-incl | --x-inc | --x-in | --x-i)
1244
ac_prev=x_includes ;;
1245
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1246
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1247
x_includes=$ac_optarg ;;
1249
-x-libraries | --x-libraries | --x-librarie | --x-librari \
1250
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1251
ac_prev=x_libraries ;;
1252
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1253
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1254
x_libraries=$ac_optarg ;;
1256
-*) as_fn_error $? "unrecognized option: \`$ac_option'
1257
Try \`$0 --help' for more information"
1261
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1262
# Reject names that are not valid shell variable names.
1263
case $ac_envvar in #(
1264
'' | [0-9]* | *[!_$as_cr_alnum]* )
1265
as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1267
eval $ac_envvar=\$ac_optarg
1268
export $ac_envvar ;;
1271
# FIXME: should be removed in autoconf 3.0.
1272
$as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1273
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1274
$as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1275
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1281
if test -n "$ac_prev"; then
1282
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1283
as_fn_error $? "missing argument to $ac_option"
1286
if test -n "$ac_unrecognized_opts"; then
1287
case $enable_option_checking in
1289
fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1290
*) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1294
# Check all directory arguments for consistency.
1295
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1296
datadir sysconfdir sharedstatedir localstatedir includedir \
1297
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1298
libdir localedir mandir
1300
eval ac_val=\$$ac_var
1301
# Remove trailing slashes.
1304
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1305
eval $ac_var=\$ac_val;;
1307
# Be sure to have absolute directory names.
1309
[\\/$]* | ?:[\\/]* ) continue;;
1310
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1312
as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1315
# There might be people who depend on the old broken behavior: `$host'
1316
# used to hold the argument of --host etc.
1317
# FIXME: To remove some day.
1320
target=$target_alias
1322
# FIXME: To remove some day.
1323
if test "x$host_alias" != x; then
1324
if test "x$build_alias" = x; then
1325
cross_compiling=maybe
1326
$as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1327
If a cross compiler is detected then cross compile mode will be used" >&2
1328
elif test "x$build_alias" != "x$host_alias"; then
1334
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1336
test "$silent" = yes && exec 6>/dev/null
1339
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1340
ac_ls_di=`ls -di .` &&
1341
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1342
as_fn_error $? "working directory cannot be determined"
1343
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1344
as_fn_error $? "pwd does not report name of working directory"
1347
# Find the source files, if location was not specified.
1348
if test -z "$srcdir"; then
1349
ac_srcdir_defaulted=yes
1350
# Try the directory containing this script, then the parent directory.
1351
ac_confdir=`$as_dirname -- "$as_myself" ||
1352
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1353
X"$as_myself" : 'X\(//\)[^/]' \| \
1354
X"$as_myself" : 'X\(//\)$' \| \
1355
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1356
$as_echo X"$as_myself" |
1357
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1375
if test ! -r "$srcdir/$ac_unique_file"; then
1379
ac_srcdir_defaulted=no
1381
if test ! -r "$srcdir/$ac_unique_file"; then
1382
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1383
as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1385
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1387
cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1389
# When building in place, set srcdir=.
1390
if test "$ac_abs_confdir" = "$ac_pwd"; then
1393
# Remove unnecessary trailing slashes from srcdir.
1394
# Double slashes in file names in object file debugging info
1395
# mess up M-x gdb in Emacs.
1397
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1399
for ac_var in $ac_precious_vars; do
1400
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1401
eval ac_env_${ac_var}_value=\$${ac_var}
1402
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1403
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1407
# Report the --help message.
1409
if test "$ac_init_help" = "long"; then
1410
# Omit some internal or obsolete options to make the list less imposing.
1411
# This message is too long to be a string in the A/UX 3.1 sh.
1413
\`configure' configures FreeType 2.4.4 to adapt to many kinds of systems.
1415
Usage: $0 [OPTION]... [VAR=VALUE]...
1417
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1418
VAR=VALUE. See below for descriptions of some of the useful variables.
1420
Defaults for the options are specified in brackets.
1423
-h, --help display this help and exit
1424
--help=short display options specific to this package
1425
--help=recursive display the short help of all the included packages
1426
-V, --version display version information and exit
1427
-q, --quiet, --silent do not print \`checking ...' messages
1428
--cache-file=FILE cache test results in FILE [disabled]
1429
-C, --config-cache alias for \`--cache-file=config.cache'
1430
-n, --no-create do not create output files
1431
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1433
Installation directories:
1434
--prefix=PREFIX install architecture-independent files in PREFIX
1435
[$ac_default_prefix]
1436
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1439
By default, \`make install' will install all the files in
1440
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1441
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1442
for instance \`--prefix=\$HOME'.
1444
For better control, use the options below.
1446
Fine tuning of the installation directories:
1447
--bindir=DIR user executables [EPREFIX/bin]
1448
--sbindir=DIR system admin executables [EPREFIX/sbin]
1449
--libexecdir=DIR program executables [EPREFIX/libexec]
1450
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1451
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1452
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1453
--libdir=DIR object code libraries [EPREFIX/lib]
1454
--includedir=DIR C header files [PREFIX/include]
1455
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1456
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1457
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1458
--infodir=DIR info documentation [DATAROOTDIR/info]
1459
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1460
--mandir=DIR man documentation [DATAROOTDIR/man]
1461
--docdir=DIR documentation root [DATAROOTDIR/doc/freetype]
1462
--htmldir=DIR html documentation [DOCDIR]
1463
--dvidir=DIR dvi documentation [DOCDIR]
1464
--pdfdir=DIR pdf documentation [DOCDIR]
1465
--psdir=DIR ps documentation [DOCDIR]
1471
--build=BUILD configure for building on BUILD [guessed]
1472
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1476
if test -n "$ac_init_help"; then
1477
case $ac_init_help in
1478
short | recursive ) echo "Configuration of FreeType 2.4.4:";;
1483
--disable-option-checking ignore unrecognized --enable/--with options
1484
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1485
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1486
--enable-biarch-config install biarch ftconfig.h to support multiple
1487
architectures by single file
1488
--enable-shared[=PKGS] build shared libraries [default=yes]
1489
--enable-static[=PKGS] build static libraries [default=yes]
1490
--enable-fast-install[=PKGS]
1491
optimize for fast installation [default=yes]
1492
--disable-libtool-lock avoid locking (might break parallel builds)
1495
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1496
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1497
--without-zlib use internal zlib instead of system-wide
1498
--with-old-mac-fonts allow Mac resource-based fonts to be used
1499
--with-fsspec use obsolete FSSpec API of MacOS, if available
1501
--with-fsref use Carbon FSRef API of MacOS, if available
1503
--with-quickdraw-toolbox
1504
use MacOS QuickDraw in ToolBox, if available
1506
--with-quickdraw-carbon use MacOS QuickDraw in Carbon, if available
1508
--with-ats use AppleTypeService, if available (default=yes)
1509
--with-pic try to use only PIC/non-PIC objects [default=use
1511
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
1513
Some influential environment variables:
1514
CC C compiler command
1515
CFLAGS C compiler flags
1516
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1517
nonstandard directory <lib dir>
1518
LIBS libraries to pass to the linker, e.g. -l<library>
1519
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1520
you have headers in a nonstandard directory <include dir>
1523
Use these variables to override the choices made by `configure' or to help
1524
it to find libraries and programs with nonstandard names/locations.
1526
Report bugs to <freetype@nongnu.org>.
1531
if test "$ac_init_help" = "recursive"; then
1532
# If there are subdirs, report their specific --help.
1533
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1534
test -d "$ac_dir" ||
1535
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1540
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1542
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1543
# A ".." for each directory in $ac_dir_suffix.
1544
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1545
case $ac_top_builddir_sub in
1546
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1547
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1550
ac_abs_top_builddir=$ac_pwd
1551
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1552
# for backward compatibility:
1553
ac_top_builddir=$ac_top_build_prefix
1556
.) # We are building in place.
1558
ac_top_srcdir=$ac_top_builddir_sub
1559
ac_abs_top_srcdir=$ac_pwd ;;
1560
[\\/]* | ?:[\\/]* ) # Absolute name.
1561
ac_srcdir=$srcdir$ac_dir_suffix;
1562
ac_top_srcdir=$srcdir
1563
ac_abs_top_srcdir=$srcdir ;;
1565
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1566
ac_top_srcdir=$ac_top_build_prefix$srcdir
1567
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1569
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1571
cd "$ac_dir" || { ac_status=$?; continue; }
1572
# Check for guested configure.
1573
if test -f "$ac_srcdir/configure.gnu"; then
1575
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1576
elif test -f "$ac_srcdir/configure"; then
1578
$SHELL "$ac_srcdir/configure" --help=recursive
1580
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1582
cd "$ac_pwd" || { ac_status=$?; break; }
1586
test -n "$ac_init_help" && exit $ac_status
1587
if $ac_init_version; then
1589
FreeType configure 2.4.4
1590
generated by GNU Autoconf 2.67
1592
Copyright (C) 2010 Free Software Foundation, Inc.
1593
This configure script is free software; the Free Software Foundation
1594
gives unlimited permission to copy, distribute and modify it.
1599
## ------------------------ ##
1600
## Autoconf initialization. ##
1601
## ------------------------ ##
1603
# ac_fn_c_try_compile LINENO
1604
# --------------------------
1605
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1606
ac_fn_c_try_compile ()
1608
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1609
rm -f conftest.$ac_objext
1610
if { { ac_try="$ac_compile"
1612
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1613
*) ac_try_echo=$ac_try;;
1615
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1616
$as_echo "$ac_try_echo"; } >&5
1617
(eval "$ac_compile") 2>conftest.err
1619
if test -s conftest.err; then
1620
grep -v '^ *+' conftest.err >conftest.er1
1621
cat conftest.er1 >&5
1622
mv -f conftest.er1 conftest.err
1624
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1625
test $ac_status = 0; } && {
1626
test -z "$ac_c_werror_flag" ||
1627
test ! -s conftest.err
1628
} && test -s conftest.$ac_objext; then :
1631
$as_echo "$as_me: failed program was:" >&5
1632
sed 's/^/| /' conftest.$ac_ext >&5
1636
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1637
as_fn_set_status $ac_retval
1639
} # ac_fn_c_try_compile
1641
# ac_fn_c_try_cpp LINENO
1642
# ----------------------
1643
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1646
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1647
if { { ac_try="$ac_cpp conftest.$ac_ext"
1649
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1650
*) ac_try_echo=$ac_try;;
1652
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1653
$as_echo "$ac_try_echo"; } >&5
1654
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1656
if test -s conftest.err; then
1657
grep -v '^ *+' conftest.err >conftest.er1
1658
cat conftest.er1 >&5
1659
mv -f conftest.er1 conftest.err
1661
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1662
test $ac_status = 0; } > conftest.i && {
1663
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1664
test ! -s conftest.err
1668
$as_echo "$as_me: failed program was:" >&5
1669
sed 's/^/| /' conftest.$ac_ext >&5
1673
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1674
as_fn_set_status $ac_retval
1678
# ac_fn_c_try_run LINENO
1679
# ----------------------
1680
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1681
# that executables *can* be run.
1684
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1685
if { { ac_try="$ac_link"
1687
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1688
*) ac_try_echo=$ac_try;;
1690
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1691
$as_echo "$ac_try_echo"; } >&5
1692
(eval "$ac_link") 2>&5
1694
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1695
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1696
{ { case "(($ac_try" in
1697
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698
*) ac_try_echo=$ac_try;;
1700
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701
$as_echo "$ac_try_echo"; } >&5
1702
(eval "$ac_try") 2>&5
1704
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1705
test $ac_status = 0; }; }; then :
1708
$as_echo "$as_me: program exited with status $ac_status" >&5
1709
$as_echo "$as_me: failed program was:" >&5
1710
sed 's/^/| /' conftest.$ac_ext >&5
1712
ac_retval=$ac_status
1714
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1715
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1716
as_fn_set_status $ac_retval
1720
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1721
# -------------------------------------------------------
1722
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1723
# the include files in INCLUDES and setting the cache variable VAR
1725
ac_fn_c_check_header_mongrel ()
1727
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1728
if eval "test \"\${$3+set}\"" = set; then :
1729
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1730
$as_echo_n "checking for $2... " >&6; }
1731
if eval "test \"\${$3+set}\"" = set; then :
1732
$as_echo_n "(cached) " >&6
1735
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1736
$as_echo "$ac_res" >&6; }
1738
# Is the header compilable?
1739
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1740
$as_echo_n "checking $2 usability... " >&6; }
1741
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1742
/* end confdefs.h. */
1746
if ac_fn_c_try_compile "$LINENO"; then :
1747
ac_header_compiler=yes
1749
ac_header_compiler=no
1751
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1752
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1753
$as_echo "$ac_header_compiler" >&6; }
1755
# Is the header present?
1756
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1757
$as_echo_n "checking $2 presence... " >&6; }
1758
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1759
/* end confdefs.h. */
1762
if ac_fn_c_try_cpp "$LINENO"; then :
1763
ac_header_preproc=yes
1765
ac_header_preproc=no
1767
rm -f conftest.err conftest.i conftest.$ac_ext
1768
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1769
$as_echo "$ac_header_preproc" >&6; }
1771
# So? What about this header?
1772
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1774
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1775
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1776
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1777
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1780
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1781
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1782
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1783
$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1784
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1785
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1786
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1787
$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1788
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1789
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1790
( $as_echo "## ---------------------------------- ##
1791
## Report this to freetype@nongnu.org ##
1792
## ---------------------------------- ##"[]
1793
) | sed "s/^/$as_me: WARNING: /" >&2
1796
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1797
$as_echo_n "checking for $2... " >&6; }
1798
if eval "test \"\${$3+set}\"" = set; then :
1799
$as_echo_n "(cached) " >&6
1801
eval "$3=\$ac_header_compiler"
1804
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1805
$as_echo "$ac_res" >&6; }
1807
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1809
} # ac_fn_c_check_header_mongrel
1811
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1812
# -------------------------------------------------------
1813
# Tests whether HEADER exists and can be compiled using the include files in
1814
# INCLUDES, setting the cache variable VAR accordingly.
1815
ac_fn_c_check_header_compile ()
1817
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1819
$as_echo_n "checking for $2... " >&6; }
1820
if eval "test \"\${$3+set}\"" = set; then :
1821
$as_echo_n "(cached) " >&6
1823
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1824
/* end confdefs.h. */
1828
if ac_fn_c_try_compile "$LINENO"; then :
1833
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1836
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1837
$as_echo "$ac_res" >&6; }
1838
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1840
} # ac_fn_c_check_header_compile
1842
# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1843
# --------------------------------------------
1844
# Tries to find the compile-time value of EXPR in a program that includes
1845
# INCLUDES, setting VAR accordingly. Returns whether the value could be
1847
ac_fn_c_compute_int ()
1849
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1850
if test "$cross_compiling" = yes; then
1851
# Depending upon the size, compute the lo and hi bounds.
1852
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1853
/* end confdefs.h. */
1858
static int test_array [1 - 2 * !(($2) >= 0)];
1865
if ac_fn_c_try_compile "$LINENO"; then :
1868
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1869
/* end confdefs.h. */
1874
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1881
if ac_fn_c_try_compile "$LINENO"; then :
1882
ac_hi=$ac_mid; break
1884
as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1885
if test $ac_lo -le $ac_mid; then
1889
as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1891
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1894
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1895
/* end confdefs.h. */
1900
static int test_array [1 - 2 * !(($2) < 0)];
1907
if ac_fn_c_try_compile "$LINENO"; then :
1910
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1911
/* end confdefs.h. */
1916
static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1923
if ac_fn_c_try_compile "$LINENO"; then :
1924
ac_lo=$ac_mid; break
1926
as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1927
if test $ac_mid -le $ac_hi; then
1931
as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1933
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1938
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1940
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1941
# Binary search between lo and hi bounds.
1942
while test "x$ac_lo" != "x$ac_hi"; do
1943
as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1944
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1945
/* end confdefs.h. */
1950
static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1957
if ac_fn_c_try_compile "$LINENO"; then :
1960
as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1962
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1965
?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1969
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1970
/* end confdefs.h. */
1972
static long int longval () { return $2; }
1973
static unsigned long int ulongval () { return $2; }
1980
FILE *f = fopen ("conftest.val", "w");
1985
long int i = longval ();
1988
fprintf (f, "%ld", i);
1992
unsigned long int i = ulongval ();
1995
fprintf (f, "%lu", i);
1997
/* Do not output a trailing newline, as this causes \r\n confusion
1998
on some platforms. */
1999
return ferror (f) || fclose (f) != 0;
2005
if ac_fn_c_try_run "$LINENO"; then :
2006
echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2010
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2011
conftest.$ac_objext conftest.beam conftest.$ac_ext
2015
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2016
as_fn_set_status $ac_retval
2018
} # ac_fn_c_compute_int
2020
# ac_fn_c_try_link LINENO
2021
# -----------------------
2022
# Try to link conftest.$ac_ext, and return whether this succeeded.
2025
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2026
rm -f conftest.$ac_objext conftest$ac_exeext
2027
if { { ac_try="$ac_link"
2029
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2030
*) ac_try_echo=$ac_try;;
2032
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2033
$as_echo "$ac_try_echo"; } >&5
2034
(eval "$ac_link") 2>conftest.err
2036
if test -s conftest.err; then
2037
grep -v '^ *+' conftest.err >conftest.er1
2038
cat conftest.er1 >&5
2039
mv -f conftest.er1 conftest.err
2041
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2042
test $ac_status = 0; } && {
2043
test -z "$ac_c_werror_flag" ||
2044
test ! -s conftest.err
2045
} && test -s conftest$ac_exeext && {
2046
test "$cross_compiling" = yes ||
2047
$as_test_x conftest$ac_exeext
2051
$as_echo "$as_me: failed program was:" >&5
2052
sed 's/^/| /' conftest.$ac_ext >&5
2056
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2057
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2058
# interfere with the next link command; also delete a directory that is
2059
# left behind by Apple's compiler. We do this before executing the actions.
2060
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2061
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2062
as_fn_set_status $ac_retval
2064
} # ac_fn_c_try_link
2066
# ac_fn_c_check_func LINENO FUNC VAR
2067
# ----------------------------------
2068
# Tests whether FUNC exists, setting the cache variable VAR accordingly
2069
ac_fn_c_check_func ()
2071
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2072
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2073
$as_echo_n "checking for $2... " >&6; }
2074
if eval "test \"\${$3+set}\"" = set; then :
2075
$as_echo_n "(cached) " >&6
2077
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2078
/* end confdefs.h. */
2079
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2080
For example, HP-UX 11i <limits.h> declares gettimeofday. */
2081
#define $2 innocuous_$2
2083
/* System header to define __stub macros and hopefully few prototypes,
2084
which can conflict with char $2 (); below.
2085
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2086
<limits.h> exists even on freestanding compilers. */
2089
# include <limits.h>
2091
# include <assert.h>
2096
/* Override any GCC internal prototype to avoid an error.
2097
Use char because int might match the return type of a GCC
2098
builtin and then its argument prototype would still apply. */
2103
/* The GNU C library defines this for functions which it implements
2104
to always fail with ENOSYS. Some functions are actually named
2105
something starting with __ and the normal name is an alias. */
2106
#if defined __stub_$2 || defined __stub___$2
2118
if ac_fn_c_try_link "$LINENO"; then :
2123
rm -f core conftest.err conftest.$ac_objext \
2124
conftest$ac_exeext conftest.$ac_ext
2127
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2128
$as_echo "$ac_res" >&6; }
2129
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2131
} # ac_fn_c_check_func
2133
# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2134
# ---------------------------------------------
2135
# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2137
ac_fn_c_check_decl ()
2139
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2140
as_decl_name=`echo $2|sed 's/ *(.*//'`
2141
as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2142
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2143
$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2144
if eval "test \"\${$3+set}\"" = set; then :
2145
$as_echo_n "(cached) " >&6
2147
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2148
/* end confdefs.h. */
2153
#ifndef $as_decl_name
2155
(void) $as_decl_use;
2157
(void) $as_decl_name;
2165
if ac_fn_c_try_compile "$LINENO"; then :
2170
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2173
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2174
$as_echo "$ac_res" >&6; }
2175
eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2177
} # ac_fn_c_check_decl
2178
cat >config.log <<_ACEOF
2179
This file contains any messages produced by compilers while
2180
running configure, to aid debugging if configure makes a mistake.
2182
It was created by FreeType $as_me 2.4.4, which was
2183
generated by GNU Autoconf 2.67. Invocation command line was
2195
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2196
uname -m = `(uname -m) 2>/dev/null || echo unknown`
2197
uname -r = `(uname -r) 2>/dev/null || echo unknown`
2198
uname -s = `(uname -s) 2>/dev/null || echo unknown`
2199
uname -v = `(uname -v) 2>/dev/null || echo unknown`
2201
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2202
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2204
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2205
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2206
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2207
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2208
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2209
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2210
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2214
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2218
test -z "$as_dir" && as_dir=.
2219
$as_echo "PATH: $as_dir"
2235
# Keep a trace of the command line.
2236
# Strip out --no-create and --no-recursion so they do not pile up.
2237
# Strip out --silent because we don't want to record it for future runs.
2238
# Also quote any args containing shell meta-characters.
2239
# Make two passes to allow for proper duplicate-argument suppression.
2243
ac_must_keep_next=false
2249
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2250
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
2251
| -silent | --silent | --silen | --sile | --sil)
2254
ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2257
1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2259
as_fn_append ac_configure_args1 " '$ac_arg'"
2260
if test $ac_must_keep_next = true; then
2261
ac_must_keep_next=false # Got value, back to normal.
2264
*=* | --config-cache | -C | -disable-* | --disable-* \
2265
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2266
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2267
| -with-* | --with-* | -without-* | --without-* | --x)
2268
case "$ac_configure_args0 " in
2269
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2272
-* ) ac_must_keep_next=true ;;
2275
as_fn_append ac_configure_args " '$ac_arg'"
2280
{ ac_configure_args0=; unset ac_configure_args0;}
2281
{ ac_configure_args1=; unset ac_configure_args1;}
2283
# When interrupted or exit'd, cleanup temporary files, and complete
2284
# config.log. We remove comments because anyway the quotes in there
2285
# would cause problems or look ugly.
2286
# WARNING: Use '\'' to represent an apostrophe within the trap.
2287
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2288
trap 'exit_status=$?
2289
# Save into config.log some information that might help in debugging.
2293
$as_echo "## ---------------- ##
2294
## Cache variables. ##
2295
## ---------------- ##"[]
2297
# The following way of writing the cache mishandles newlines in values,
2299
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2300
eval ac_val=\$$ac_var
2304
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2305
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2308
_ | IFS | as_nl) ;; #(
2309
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2310
*) { eval $ac_var=; unset $ac_var;} ;;
2315
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2316
*${as_nl}ac_space=\ *)
2318
"s/'\''/'\''\\\\'\'''\''/g;
2319
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2322
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2329
$as_echo "## ----------------- ##
2330
## Output variables. ##
2331
## ----------------- ##"[]
2333
for ac_var in $ac_subst_vars
2335
eval ac_val=\$$ac_var
2337
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2339
$as_echo "$ac_var='\''$ac_val'\''"
2343
if test -n "$ac_subst_files"; then
2344
$as_echo "## ------------------- ##
2345
## File substitutions. ##
2346
## ------------------- ##"[]
2348
for ac_var in $ac_subst_files
2350
eval ac_val=\$$ac_var
2352
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2354
$as_echo "$ac_var='\''$ac_val'\''"
2359
if test -s confdefs.h; then
2360
$as_echo "## ----------- ##
2362
## ----------- ##"[]
2367
test "$ac_signal" != 0 &&
2368
$as_echo "$as_me: caught signal $ac_signal"
2369
$as_echo "$as_me: exit $exit_status"
2371
rm -f core *.core core.conftest.* &&
2372
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2375
for ac_signal in 1 2 13 15; do
2376
trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2380
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2381
rm -f -r conftest* confdefs.h
2383
$as_echo "/* confdefs.h */" > confdefs.h
2385
# Predefined preprocessor variables.
2387
cat >>confdefs.h <<_ACEOF
2388
#define PACKAGE_NAME "$PACKAGE_NAME"
2391
cat >>confdefs.h <<_ACEOF
2392
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2395
cat >>confdefs.h <<_ACEOF
2396
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2399
cat >>confdefs.h <<_ACEOF
2400
#define PACKAGE_STRING "$PACKAGE_STRING"
2403
cat >>confdefs.h <<_ACEOF
2404
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2407
cat >>confdefs.h <<_ACEOF
2408
#define PACKAGE_URL "$PACKAGE_URL"
2412
# Let the site file select an alternate cache file if it wants to.
2413
# Prefer an explicitly selected file to automatically selected ones.
2416
if test -n "$CONFIG_SITE"; then
2417
# We do not want a PATH search for config.site.
2418
case $CONFIG_SITE in #((
2419
-*) ac_site_file1=./$CONFIG_SITE;;
2420
*/*) ac_site_file1=$CONFIG_SITE;;
2421
*) ac_site_file1=./$CONFIG_SITE;;
2423
elif test "x$prefix" != xNONE; then
2424
ac_site_file1=$prefix/share/config.site
2425
ac_site_file2=$prefix/etc/config.site
2427
ac_site_file1=$ac_default_prefix/share/config.site
2428
ac_site_file2=$ac_default_prefix/etc/config.site
2430
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2432
test "x$ac_site_file" = xNONE && continue
2433
if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2434
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2435
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2436
sed 's/^/| /' "$ac_site_file" >&5
2438
|| { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2439
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2440
as_fn_error $? "failed to load site script $ac_site_file
2441
See \`config.log' for more details" "$LINENO" 5; }
2445
if test -r "$cache_file"; then
2446
# Some versions of bash will fail to source /dev/null (special files
2447
# actually), so we avoid doing that. DJGPP emulates it as a regular file.
2448
if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2449
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2450
$as_echo "$as_me: loading cache $cache_file" >&6;}
2452
[\\/]* | ?:[\\/]* ) . "$cache_file";;
2453
*) . "./$cache_file";;
2457
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2458
$as_echo "$as_me: creating cache $cache_file" >&6;}
2462
as_fn_append ac_header_list " stdlib.h"
2463
as_fn_append ac_header_list " unistd.h"
2464
as_fn_append ac_header_list " sys/param.h"
2465
# Check that the precious variables saved in the cache have kept the same
2467
ac_cache_corrupted=false
2468
for ac_var in $ac_precious_vars; do
2469
eval ac_old_set=\$ac_cv_env_${ac_var}_set
2470
eval ac_new_set=\$ac_env_${ac_var}_set
2471
eval ac_old_val=\$ac_cv_env_${ac_var}_value
2472
eval ac_new_val=\$ac_env_${ac_var}_value
2473
case $ac_old_set,$ac_new_set in
2475
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2476
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2477
ac_cache_corrupted=: ;;
2479
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2480
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2481
ac_cache_corrupted=: ;;
2484
if test "x$ac_old_val" != "x$ac_new_val"; then
2485
# differences in whitespace do not lead to failure.
2486
ac_old_val_w=`echo x $ac_old_val`
2487
ac_new_val_w=`echo x $ac_new_val`
2488
if test "$ac_old_val_w" != "$ac_new_val_w"; then
2489
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2490
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2491
ac_cache_corrupted=:
2493
{ $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2494
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2495
eval $ac_var=\$ac_old_val
2497
{ $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2498
$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2499
{ $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2500
$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2503
# Pass precious variables to config.status.
2504
if test "$ac_new_set" = set; then
2506
*\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2507
*) ac_arg=$ac_var=$ac_new_val ;;
2509
case " $ac_configure_args " in
2510
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2511
*) as_fn_append ac_configure_args " '$ac_arg'" ;;
2515
if $ac_cache_corrupted; then
2516
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2517
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2518
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2519
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2520
as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2522
## -------------------- ##
2523
## Main body of script. ##
2524
## -------------------- ##
2527
ac_cpp='$CPP $CPPFLAGS'
2528
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2529
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2530
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2536
# Don't forget to update docs/VERSION.DLL!
2538
version_info='12:2:6'
2540
ft_version=`echo $version_info | tr : .`
2544
# checks for system type
2547
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2548
if test -f "$ac_dir/install-sh"; then
2550
ac_install_sh="$ac_aux_dir/install-sh -c"
2552
elif test -f "$ac_dir/install.sh"; then
2554
ac_install_sh="$ac_aux_dir/install.sh -c"
2556
elif test -f "$ac_dir/shtool"; then
2558
ac_install_sh="$ac_aux_dir/shtool install -c"
2562
if test -z "$ac_aux_dir"; then
2563
as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2566
# These three variables are undocumented and unsupported,
2567
# and are intended to be withdrawn in a future Autoconf release.
2568
# They can cause serious problems if a builder's source tree is in a directory
2569
# whose full name contains unusual characters.
2570
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2571
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2572
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2575
# Make sure we can run config.sub.
2576
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2577
as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2579
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2580
$as_echo_n "checking build system type... " >&6; }
2581
if test "${ac_cv_build+set}" = set; then :
2582
$as_echo_n "(cached) " >&6
2584
ac_build_alias=$build_alias
2585
test "x$ac_build_alias" = x &&
2586
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2587
test "x$ac_build_alias" = x &&
2588
as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2589
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2590
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2593
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2594
$as_echo "$ac_cv_build" >&6; }
2595
case $ac_cv_build in
2597
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2600
ac_save_IFS=$IFS; IFS='-'
2606
# Remember, the first character of IFS is used to create $*,
2607
# except with old shells:
2610
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2613
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2614
$as_echo_n "checking host system type... " >&6; }
2615
if test "${ac_cv_host+set}" = set; then :
2616
$as_echo_n "(cached) " >&6
2618
if test "x$host_alias" = x; then
2619
ac_cv_host=$ac_cv_build
2621
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2622
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2626
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2627
$as_echo "$ac_cv_host" >&6; }
2630
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2633
ac_save_IFS=$IFS; IFS='-'
2639
# Remember, the first character of IFS is used to create $*,
2640
# except with old shells:
2643
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2648
# checks for programs
2651
ac_cpp='$CPP $CPPFLAGS'
2652
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2653
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2654
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2655
if test -n "$ac_tool_prefix"; then
2656
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2657
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2658
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2659
$as_echo_n "checking for $ac_word... " >&6; }
2660
if test "${ac_cv_prog_CC+set}" = set; then :
2661
$as_echo_n "(cached) " >&6
2663
if test -n "$CC"; then
2664
ac_cv_prog_CC="$CC" # Let the user override the test.
2666
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2670
test -z "$as_dir" && as_dir=.
2671
for ac_exec_ext in '' $ac_executable_extensions; do
2672
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2673
ac_cv_prog_CC="${ac_tool_prefix}gcc"
2674
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2684
if test -n "$CC"; then
2685
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2686
$as_echo "$CC" >&6; }
2688
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2689
$as_echo "no" >&6; }
2694
if test -z "$ac_cv_prog_CC"; then
2696
# Extract the first word of "gcc", so it can be a program name with args.
2697
set dummy gcc; ac_word=$2
2698
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2699
$as_echo_n "checking for $ac_word... " >&6; }
2700
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2701
$as_echo_n "(cached) " >&6
2703
if test -n "$ac_ct_CC"; then
2704
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2706
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2710
test -z "$as_dir" && as_dir=.
2711
for ac_exec_ext in '' $ac_executable_extensions; do
2712
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2713
ac_cv_prog_ac_ct_CC="gcc"
2714
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2723
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2724
if test -n "$ac_ct_CC"; then
2725
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2726
$as_echo "$ac_ct_CC" >&6; }
2728
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2729
$as_echo "no" >&6; }
2732
if test "x$ac_ct_CC" = x; then
2735
case $cross_compiling:$ac_tool_warned in
2737
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2738
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2739
ac_tool_warned=yes ;;
2747
if test -z "$CC"; then
2748
if test -n "$ac_tool_prefix"; then
2749
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2750
set dummy ${ac_tool_prefix}cc; ac_word=$2
2751
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2752
$as_echo_n "checking for $ac_word... " >&6; }
2753
if test "${ac_cv_prog_CC+set}" = set; then :
2754
$as_echo_n "(cached) " >&6
2756
if test -n "$CC"; then
2757
ac_cv_prog_CC="$CC" # Let the user override the test.
2759
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2763
test -z "$as_dir" && as_dir=.
2764
for ac_exec_ext in '' $ac_executable_extensions; do
2765
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2766
ac_cv_prog_CC="${ac_tool_prefix}cc"
2767
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2777
if test -n "$CC"; then
2778
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2779
$as_echo "$CC" >&6; }
2781
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2782
$as_echo "no" >&6; }
2788
if test -z "$CC"; then
2789
# Extract the first word of "cc", so it can be a program name with args.
2790
set dummy cc; ac_word=$2
2791
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2792
$as_echo_n "checking for $ac_word... " >&6; }
2793
if test "${ac_cv_prog_CC+set}" = set; then :
2794
$as_echo_n "(cached) " >&6
2796
if test -n "$CC"; then
2797
ac_cv_prog_CC="$CC" # Let the user override the test.
2800
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2804
test -z "$as_dir" && as_dir=.
2805
for ac_exec_ext in '' $ac_executable_extensions; do
2806
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2807
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2808
ac_prog_rejected=yes
2812
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2819
if test $ac_prog_rejected = yes; then
2820
# We found a bogon in the path, so make sure we never use it.
2821
set dummy $ac_cv_prog_CC
2823
if test $# != 0; then
2824
# We chose a different compiler from the bogus one.
2825
# However, it has the same basename, so the bogon will be chosen
2826
# first if we set CC to just the basename; use the full file name.
2828
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2834
if test -n "$CC"; then
2835
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2836
$as_echo "$CC" >&6; }
2838
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2839
$as_echo "no" >&6; }
2844
if test -z "$CC"; then
2845
if test -n "$ac_tool_prefix"; then
2846
for ac_prog in cl.exe
2848
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2849
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2850
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2851
$as_echo_n "checking for $ac_word... " >&6; }
2852
if test "${ac_cv_prog_CC+set}" = set; then :
2853
$as_echo_n "(cached) " >&6
2855
if test -n "$CC"; then
2856
ac_cv_prog_CC="$CC" # Let the user override the test.
2858
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2862
test -z "$as_dir" && as_dir=.
2863
for ac_exec_ext in '' $ac_executable_extensions; do
2864
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2865
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2866
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2876
if test -n "$CC"; then
2877
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2878
$as_echo "$CC" >&6; }
2880
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2881
$as_echo "no" >&6; }
2885
test -n "$CC" && break
2888
if test -z "$CC"; then
2890
for ac_prog in cl.exe
2892
# Extract the first word of "$ac_prog", so it can be a program name with args.
2893
set dummy $ac_prog; ac_word=$2
2894
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2895
$as_echo_n "checking for $ac_word... " >&6; }
2896
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2897
$as_echo_n "(cached) " >&6
2899
if test -n "$ac_ct_CC"; then
2900
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2902
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906
test -z "$as_dir" && as_dir=.
2907
for ac_exec_ext in '' $ac_executable_extensions; do
2908
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2909
ac_cv_prog_ac_ct_CC="$ac_prog"
2910
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2919
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2920
if test -n "$ac_ct_CC"; then
2921
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2922
$as_echo "$ac_ct_CC" >&6; }
2924
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2925
$as_echo "no" >&6; }
2929
test -n "$ac_ct_CC" && break
2932
if test "x$ac_ct_CC" = x; then
2935
case $cross_compiling:$ac_tool_warned in
2937
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2938
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2939
ac_tool_warned=yes ;;
2948
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2949
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2950
as_fn_error $? "no acceptable C compiler found in \$PATH
2951
See \`config.log' for more details" "$LINENO" 5; }
2953
# Provide some information about the compiler.
2954
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2957
for ac_option in --version -v -V -qversion; do
2958
{ { ac_try="$ac_compiler $ac_option >&5"
2960
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2961
*) ac_try_echo=$ac_try;;
2963
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2964
$as_echo "$ac_try_echo"; } >&5
2965
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
2967
if test -s conftest.err; then
2969
... rest of stderr output deleted ...
2970
10q' conftest.err >conftest.er1
2971
cat conftest.er1 >&5
2973
rm -f conftest.er1 conftest.err
2974
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2975
test $ac_status = 0; }
2978
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2979
/* end confdefs.h. */
2989
ac_clean_files_save=$ac_clean_files
2990
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2991
# Try to create an executable without -o first, disregard a.out.
2992
# It will help us diagnose broken compilers, and finding out an intuition
2994
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2995
$as_echo_n "checking whether the C compiler works... " >&6; }
2996
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2998
# The possible output files:
2999
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3002
for ac_file in $ac_files
3005
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3006
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
3011
if { { ac_try="$ac_link_default"
3013
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3014
*) ac_try_echo=$ac_try;;
3016
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3017
$as_echo "$ac_try_echo"; } >&5
3018
(eval "$ac_link_default") 2>&5
3020
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3021
test $ac_status = 0; }; then :
3022
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3023
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3024
# in a Makefile. We should not override ac_cv_exeext if it was cached,
3025
# so that the user can short-circuit this test for compilers unknown to
3027
for ac_file in $ac_files ''
3029
test -f "$ac_file" || continue
3031
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3034
# We found the default executable, but exeext='' is most
3038
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3040
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3042
# We set ac_cv_exeext here because the later test for it is not
3043
# safe: cross compilers may not add the suffix if given an `-o'
3044
# argument, so we may need to know it at that point already.
3045
# Even if this section looks crufty: it has the advantage of
3052
test "$ac_cv_exeext" = no && ac_cv_exeext=
3057
if test -z "$ac_file"; then :
3058
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3059
$as_echo "no" >&6; }
3060
$as_echo "$as_me: failed program was:" >&5
3061
sed 's/^/| /' conftest.$ac_ext >&5
3063
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3064
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3065
as_fn_error 77 "C compiler cannot create executables
3066
See \`config.log' for more details" "$LINENO" 5; }
3068
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3069
$as_echo "yes" >&6; }
3071
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3072
$as_echo_n "checking for C compiler default output file name... " >&6; }
3073
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3074
$as_echo "$ac_file" >&6; }
3075
ac_exeext=$ac_cv_exeext
3077
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3078
ac_clean_files=$ac_clean_files_save
3079
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3080
$as_echo_n "checking for suffix of executables... " >&6; }
3081
if { { ac_try="$ac_link"
3083
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3084
*) ac_try_echo=$ac_try;;
3086
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3087
$as_echo "$ac_try_echo"; } >&5
3088
(eval "$ac_link") 2>&5
3090
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3091
test $ac_status = 0; }; then :
3092
# If both `conftest.exe' and `conftest' are `present' (well, observable)
3093
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3094
# work properly (i.e., refer to `conftest.exe'), while it won't with
3096
for ac_file in conftest.exe conftest conftest.*; do
3097
test -f "$ac_file" || continue
3099
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3100
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3106
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3107
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3108
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3109
See \`config.log' for more details" "$LINENO" 5; }
3111
rm -f conftest conftest$ac_cv_exeext
3112
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3113
$as_echo "$ac_cv_exeext" >&6; }
3115
rm -f conftest.$ac_ext
3116
EXEEXT=$ac_cv_exeext
3118
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3119
/* end confdefs.h. */
3124
FILE *f = fopen ("conftest.out", "w");
3125
return ferror (f) || fclose (f) != 0;
3131
ac_clean_files="$ac_clean_files conftest.out"
3132
# Check that the compiler produces executables we can run. If not, either
3133
# the compiler is broken, or we cross compile.
3134
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3135
$as_echo_n "checking whether we are cross compiling... " >&6; }
3136
if test "$cross_compiling" != yes; then
3137
{ { ac_try="$ac_link"
3139
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140
*) ac_try_echo=$ac_try;;
3142
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3143
$as_echo "$ac_try_echo"; } >&5
3144
(eval "$ac_link") 2>&5
3146
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3147
test $ac_status = 0; }
3148
if { ac_try='./conftest$ac_cv_exeext'
3149
{ { case "(($ac_try" in
3150
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3151
*) ac_try_echo=$ac_try;;
3153
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3154
$as_echo "$ac_try_echo"; } >&5
3155
(eval "$ac_try") 2>&5
3157
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3158
test $ac_status = 0; }; }; then
3161
if test "$cross_compiling" = maybe; then
3164
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3165
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3166
as_fn_error $? "cannot run C compiled programs.
3167
If you meant to cross compile, use \`--host'.
3168
See \`config.log' for more details" "$LINENO" 5; }
3172
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3173
$as_echo "$cross_compiling" >&6; }
3175
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3176
ac_clean_files=$ac_clean_files_save
3177
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3178
$as_echo_n "checking for suffix of object files... " >&6; }
3179
if test "${ac_cv_objext+set}" = set; then :
3180
$as_echo_n "(cached) " >&6
3182
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3183
/* end confdefs.h. */
3193
rm -f conftest.o conftest.obj
3194
if { { ac_try="$ac_compile"
3196
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3197
*) ac_try_echo=$ac_try;;
3199
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3200
$as_echo "$ac_try_echo"; } >&5
3201
(eval "$ac_compile") 2>&5
3203
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3204
test $ac_status = 0; }; then :
3205
for ac_file in conftest.o conftest.obj conftest.*; do
3206
test -f "$ac_file" || continue;
3208
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3209
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3214
$as_echo "$as_me: failed program was:" >&5
3215
sed 's/^/| /' conftest.$ac_ext >&5
3217
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3218
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3219
as_fn_error $? "cannot compute suffix of object files: cannot compile
3220
See \`config.log' for more details" "$LINENO" 5; }
3222
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3224
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3225
$as_echo "$ac_cv_objext" >&6; }
3226
OBJEXT=$ac_cv_objext
3228
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3229
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3230
if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3231
$as_echo_n "(cached) " >&6
3233
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3234
/* end confdefs.h. */
3247
if ac_fn_c_try_compile "$LINENO"; then :
3252
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3253
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3256
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3257
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3258
if test $ac_compiler_gnu = yes; then
3263
ac_test_CFLAGS=${CFLAGS+set}
3264
ac_save_CFLAGS=$CFLAGS
3265
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3266
$as_echo_n "checking whether $CC accepts -g... " >&6; }
3267
if test "${ac_cv_prog_cc_g+set}" = set; then :
3268
$as_echo_n "(cached) " >&6
3270
ac_save_c_werror_flag=$ac_c_werror_flag
3271
ac_c_werror_flag=yes
3274
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3275
/* end confdefs.h. */
3285
if ac_fn_c_try_compile "$LINENO"; then :
3289
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3290
/* end confdefs.h. */
3300
if ac_fn_c_try_compile "$LINENO"; then :
3303
ac_c_werror_flag=$ac_save_c_werror_flag
3305
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3306
/* end confdefs.h. */
3316
if ac_fn_c_try_compile "$LINENO"; then :
3319
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3321
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3323
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3324
ac_c_werror_flag=$ac_save_c_werror_flag
3326
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3327
$as_echo "$ac_cv_prog_cc_g" >&6; }
3328
if test "$ac_test_CFLAGS" = set; then
3329
CFLAGS=$ac_save_CFLAGS
3330
elif test $ac_cv_prog_cc_g = yes; then
3331
if test "$GCC" = yes; then
3337
if test "$GCC" = yes; then
3343
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3344
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3345
if test "${ac_cv_prog_cc_c89+set}" = set; then :
3346
$as_echo_n "(cached) " >&6
3348
ac_cv_prog_cc_c89=no
3350
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3351
/* end confdefs.h. */
3354
#include <sys/types.h>
3355
#include <sys/stat.h>
3356
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3357
struct buf { int x; };
3358
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3359
static char *e (p, i)
3365
static char *f (char * (*g) (char **, int), char **p, ...)
3370
s = g (p, va_arg (v,int));
3375
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3376
function prototypes and stuff, but not '\xHH' hex character constants.
3377
These don't provoke an error unfortunately, instead are silently treated
3378
as 'x'. The following induces an error, until -std is added to get
3379
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3380
array size at least. It's necessary to write '\x00'==0 to get something
3381
that's true only with -std. */
3382
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3384
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3385
inside strings and character constants. */
3387
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3389
int test (int i, double x);
3390
struct s1 {int (*f) (int a);};
3391
struct s2 {int (*f) (double a);};
3392
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3398
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3403
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3404
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3406
CC="$ac_save_CC $ac_arg"
3407
if ac_fn_c_try_compile "$LINENO"; then :
3408
ac_cv_prog_cc_c89=$ac_arg
3410
rm -f core conftest.err conftest.$ac_objext
3411
test "x$ac_cv_prog_cc_c89" != "xno" && break
3413
rm -f conftest.$ac_ext
3418
case "x$ac_cv_prog_cc_c89" in
3420
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3421
$as_echo "none needed" >&6; } ;;
3423
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3424
$as_echo "unsupported" >&6; } ;;
3426
CC="$CC $ac_cv_prog_cc_c89"
3427
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3428
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3430
if test "x$ac_cv_prog_cc_c89" != xno; then :
3435
ac_cpp='$CPP $CPPFLAGS'
3436
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3437
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3438
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3441
ac_cpp='$CPP $CPPFLAGS'
3442
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3443
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3444
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3445
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3446
$as_echo_n "checking how to run the C preprocessor... " >&6; }
3447
# On Suns, sometimes $CPP names a directory.
3448
if test -n "$CPP" && test -d "$CPP"; then
3451
if test -z "$CPP"; then
3452
if test "${ac_cv_prog_CPP+set}" = set; then :
3453
$as_echo_n "(cached) " >&6
3455
# Double quotes because CPP needs to be expanded
3456
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3459
for ac_c_preproc_warn_flag in '' yes
3461
# Use a header file that comes with gcc, so configuring glibc
3462
# with a fresh cross-compiler works.
3463
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3464
# <limits.h> exists even on freestanding compilers.
3465
# On the NeXT, cc -E runs the code through the compiler's parser,
3466
# not just through cpp. "Syntax error" is here to catch this case.
3467
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3468
/* end confdefs.h. */
3470
# include <limits.h>
3472
# include <assert.h>
3476
if ac_fn_c_try_cpp "$LINENO"; then :
3479
# Broken: fails on valid input.
3482
rm -f conftest.err conftest.i conftest.$ac_ext
3484
# OK, works on sane cases. Now check whether nonexistent headers
3485
# can be detected and how.
3486
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3487
/* end confdefs.h. */
3488
#include <ac_nonexistent.h>
3490
if ac_fn_c_try_cpp "$LINENO"; then :
3491
# Broken: success on invalid input.
3494
# Passes both tests.
3498
rm -f conftest.err conftest.i conftest.$ac_ext
3501
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3502
rm -f conftest.i conftest.err conftest.$ac_ext
3503
if $ac_preproc_ok; then :
3515
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3516
$as_echo "$CPP" >&6; }
3518
for ac_c_preproc_warn_flag in '' yes
3520
# Use a header file that comes with gcc, so configuring glibc
3521
# with a fresh cross-compiler works.
3522
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3523
# <limits.h> exists even on freestanding compilers.
3524
# On the NeXT, cc -E runs the code through the compiler's parser,
3525
# not just through cpp. "Syntax error" is here to catch this case.
3526
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3527
/* end confdefs.h. */
3529
# include <limits.h>
3531
# include <assert.h>
3535
if ac_fn_c_try_cpp "$LINENO"; then :
3538
# Broken: fails on valid input.
3541
rm -f conftest.err conftest.i conftest.$ac_ext
3543
# OK, works on sane cases. Now check whether nonexistent headers
3544
# can be detected and how.
3545
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3546
/* end confdefs.h. */
3547
#include <ac_nonexistent.h>
3549
if ac_fn_c_try_cpp "$LINENO"; then :
3550
# Broken: success on invalid input.
3553
# Passes both tests.
3557
rm -f conftest.err conftest.i conftest.$ac_ext
3560
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3561
rm -f conftest.i conftest.err conftest.$ac_ext
3562
if $ac_preproc_ok; then :
3565
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3566
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3567
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3568
See \`config.log' for more details" "$LINENO" 5; }
3572
ac_cpp='$CPP $CPPFLAGS'
3573
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3574
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3575
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3580
# checks for native programs to generate building tool
3582
if test ${cross_compiling} = yes; then
3583
# Extract the first word of "${build}-gcc", so it can be a program name with args.
3584
set dummy ${build}-gcc; ac_word=$2
3585
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3586
$as_echo_n "checking for $ac_word... " >&6; }
3587
if test "${ac_cv_prog_CC_BUILD+set}" = set; then :
3588
$as_echo_n "(cached) " >&6
3590
if test -n "$CC_BUILD"; then
3591
ac_cv_prog_CC_BUILD="$CC_BUILD" # Let the user override the test.
3593
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3597
test -z "$as_dir" && as_dir=.
3598
for ac_exec_ext in '' $ac_executable_extensions; do
3599
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3600
ac_cv_prog_CC_BUILD="${build}-gcc"
3601
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3610
CC_BUILD=$ac_cv_prog_CC_BUILD
3611
if test -n "$CC_BUILD"; then
3612
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_BUILD" >&5
3613
$as_echo "$CC_BUILD" >&6; }
3615
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3616
$as_echo "no" >&6; }
3620
test -z "${CC_BUILD}" && # Extract the first word of "gcc", so it can be a program name with args.
3621
set dummy gcc; ac_word=$2
3622
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3623
$as_echo_n "checking for $ac_word... " >&6; }
3624
if test "${ac_cv_prog_CC_BUILD+set}" = set; then :
3625
$as_echo_n "(cached) " >&6
3627
if test -n "$CC_BUILD"; then
3628
ac_cv_prog_CC_BUILD="$CC_BUILD" # Let the user override the test.
3630
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3634
test -z "$as_dir" && as_dir=.
3635
for ac_exec_ext in '' $ac_executable_extensions; do
3636
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3637
ac_cv_prog_CC_BUILD="gcc"
3638
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3647
CC_BUILD=$ac_cv_prog_CC_BUILD
3648
if test -n "$CC_BUILD"; then
3649
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_BUILD" >&5
3650
$as_echo "$CC_BUILD" >&6; }
3652
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3653
$as_echo "no" >&6; }
3657
test -z "${CC_BUILD}" && # Extract the first word of "cc", so it can be a program name with args.
3658
set dummy cc; ac_word=$2
3659
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3660
$as_echo_n "checking for $ac_word... " >&6; }
3661
if test "${ac_cv_prog_CC_BUILD+set}" = set; then :
3662
$as_echo_n "(cached) " >&6
3664
if test -n "$CC_BUILD"; then
3665
ac_cv_prog_CC_BUILD="$CC_BUILD" # Let the user override the test.
3668
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3672
test -z "$as_dir" && as_dir=.
3673
for ac_exec_ext in '' $ac_executable_extensions; do
3674
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3675
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3676
ac_prog_rejected=yes
3679
ac_cv_prog_CC_BUILD="cc"
3680
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3687
if test $ac_prog_rejected = yes; then
3688
# We found a bogon in the path, so make sure we never use it.
3689
set dummy $ac_cv_prog_CC_BUILD
3691
if test $# != 0; then
3692
# We chose a different compiler from the bogus one.
3693
# However, it has the same basename, so the bogon will be chosen
3694
# first if we set CC_BUILD to just the basename; use the full file name.
3696
ac_cv_prog_CC_BUILD="$as_dir/$ac_word${1+' '}$@"
3701
CC_BUILD=$ac_cv_prog_CC_BUILD
3702
if test -n "$CC_BUILD"; then
3703
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_BUILD" >&5
3704
$as_echo "$CC_BUILD" >&6; }
3706
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3707
$as_echo "no" >&6; }
3711
test -z "${CC_BUILD}" && as_fn_error $? "cannot find native C compiler" "$LINENO" 5
3713
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of native executables" >&5
3714
$as_echo_n "checking for suffix of native executables... " >&6; }
3715
rm -f a.* b.* a_out.exe conftest.*
3716
echo > conftest.c "int main() { return 0;}"
3717
${CC_BUILD} conftest.c || as_fn_error $? "native C compiler is not working" "$LINENO" 5
3719
if test -x a.out -o -x b.out -o -x conftest; then
3721
elif test -x a_out.exe -o -x conftest.exe; then
3723
elif test -x conftest.* ; then
3724
EXEEXT_BUILD=`echo conftest.* | sed -n '1s/^.*\././'`
3726
rm -f a.* b.* a_out.exe conftest.*
3727
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXEEXT_BUILD" >&5
3728
$as_echo "$EXEEXT_BUILD" >&6; }
3731
EXEEXT_BUILD=${EXEEXT}
3739
# get compiler flags right
3741
if test "x$GCC" = xyes; then
3743
XX_ANSIFLAGS="-pedantic -ansi"
3748
XX_CFLAGS="-std1 -g3"
3761
# auxiliary programs
3763
# Extract the first word of "rm", so it can be a program name with args.
3764
set dummy rm; ac_word=$2
3765
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3766
$as_echo_n "checking for $ac_word... " >&6; }
3767
if test "${ac_cv_prog_RMF+set}" = set; then :
3768
$as_echo_n "(cached) " >&6
3770
if test -n "$RMF"; then
3771
ac_cv_prog_RMF="$RMF" # Let the user override the test.
3773
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3777
test -z "$as_dir" && as_dir=.
3778
for ac_exec_ext in '' $ac_executable_extensions; do
3779
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3780
ac_cv_prog_RMF="rm -f"
3781
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3791
if test -n "$RMF"; then
3792
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMF" >&5
3793
$as_echo "$RMF" >&6; }
3795
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3796
$as_echo "no" >&6; }
3800
# Extract the first word of "rmdir", so it can be a program name with args.
3801
set dummy rmdir; ac_word=$2
3802
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3803
$as_echo_n "checking for $ac_word... " >&6; }
3804
if test "${ac_cv_prog_RMDIR+set}" = set; then :
3805
$as_echo_n "(cached) " >&6
3807
if test -n "$RMDIR"; then
3808
ac_cv_prog_RMDIR="$RMDIR" # Let the user override the test.
3810
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3814
test -z "$as_dir" && as_dir=.
3815
for ac_exec_ext in '' $ac_executable_extensions; do
3816
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3817
ac_cv_prog_RMDIR="rmdir"
3818
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3827
RMDIR=$ac_cv_prog_RMDIR
3828
if test -n "$RMDIR"; then
3829
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDIR" >&5
3830
$as_echo "$RMDIR" >&6; }
3832
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3833
$as_echo "no" >&6; }
3839
# Since this file will be finally moved to another directory we make
3840
# the path of the install script absolute. This small code snippet has
3841
# been taken from automake's `ylwrap' script.
3843
# Find a good install program. We prefer a C program (faster),
3844
# so one script is as good as another. But avoid the broken or
3845
# incompatible versions:
3846
# SysV /etc/install, /usr/sbin/install
3847
# SunOS /usr/etc/install
3848
# IRIX /sbin/install
3850
# AmigaOS /C/install, which installs bootblocks on floppy discs
3851
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3852
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3853
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3854
# OS/2's system install, which has a completely different semantic
3855
# ./install, which can be erroneously created by make from ./install.sh.
3856
# Reject install programs that cannot install multiple files.
3857
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3858
$as_echo_n "checking for a BSD-compatible install... " >&6; }
3859
if test -z "$INSTALL"; then
3860
if test "${ac_cv_path_install+set}" = set; then :
3861
$as_echo_n "(cached) " >&6
3863
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3867
test -z "$as_dir" && as_dir=.
3868
# Account for people who put trailing slashes in PATH elements.
3869
case $as_dir/ in #((
3870
./ | .// | /[cC]/* | \
3871
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3872
?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3875
# OSF1 and SCO ODT 3.0 have their own names for install.
3876
# Don't use installbsd from OSF since it installs stuff as root
3878
for ac_prog in ginstall scoinst install; do
3879
for ac_exec_ext in '' $ac_executable_extensions; do
3880
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3881
if test $ac_prog = install &&
3882
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3883
# AIX install. It has an incompatible calling convention.
3885
elif test $ac_prog = install &&
3886
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3887
# program-specific install script used by HP pwplus--don't use.
3890
rm -rf conftest.one conftest.two conftest.dir
3891
echo one > conftest.one
3892
echo two > conftest.two
3894
if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3895
test -s conftest.one && test -s conftest.two &&
3896
test -s conftest.dir/conftest.one &&
3897
test -s conftest.dir/conftest.two
3899
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3912
rm -rf conftest.one conftest.two conftest.dir
3915
if test "${ac_cv_path_install+set}" = set; then
3916
INSTALL=$ac_cv_path_install
3918
# As a last resort, use the slow shell script. Don't cache a
3919
# value for INSTALL within a source directory, because that will
3920
# break other packages using the cache if that directory is
3921
# removed, or if the value is a relative name.
3922
INSTALL=$ac_install_sh
3925
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3926
$as_echo "$INSTALL" >&6; }
3928
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3929
# It thinks the first close brace ends the variable substitution.
3930
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3932
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3934
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3940
INSTALL="`pwd`/$INSTALL" ;;
3944
# checks for header files
3948
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3949
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3950
if test "${ac_cv_path_GREP+set}" = set; then :
3951
$as_echo_n "(cached) " >&6
3953
if test -z "$GREP"; then
3954
ac_path_GREP_found=false
3955
# Loop through the user's path and test for each of PROGNAME-LIST
3956
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3957
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3960
test -z "$as_dir" && as_dir=.
3961
for ac_prog in grep ggrep; do
3962
for ac_exec_ext in '' $ac_executable_extensions; do
3963
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3964
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3965
# Check for GNU ac_path_GREP and select it if it is found.
3966
# Check for GNU $ac_path_GREP
3967
case `"$ac_path_GREP" --version 2>&1` in
3969
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3972
$as_echo_n 0123456789 >"conftest.in"
3975
cat "conftest.in" "conftest.in" >"conftest.tmp"
3976
mv "conftest.tmp" "conftest.in"
3977
cp "conftest.in" "conftest.nl"
3978
$as_echo 'GREP' >> "conftest.nl"
3979
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3980
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3981
as_fn_arith $ac_count + 1 && ac_count=$as_val
3982
if test $ac_count -gt ${ac_path_GREP_max-0}; then
3983
# Best one so far, save it but keep looking for a better one
3984
ac_cv_path_GREP="$ac_path_GREP"
3985
ac_path_GREP_max=$ac_count
3987
# 10*(2^10) chars as input seems more than enough
3988
test $ac_count -gt 10 && break
3990
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3993
$ac_path_GREP_found && break 3
3998
if test -z "$ac_cv_path_GREP"; then
3999
as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4002
ac_cv_path_GREP=$GREP
4006
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4007
$as_echo "$ac_cv_path_GREP" >&6; }
4008
GREP="$ac_cv_path_GREP"
4011
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4012
$as_echo_n "checking for egrep... " >&6; }
4013
if test "${ac_cv_path_EGREP+set}" = set; then :
4014
$as_echo_n "(cached) " >&6
4016
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4017
then ac_cv_path_EGREP="$GREP -E"
4019
if test -z "$EGREP"; then
4020
ac_path_EGREP_found=false
4021
# Loop through the user's path and test for each of PROGNAME-LIST
4022
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4023
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4026
test -z "$as_dir" && as_dir=.
4027
for ac_prog in egrep; do
4028
for ac_exec_ext in '' $ac_executable_extensions; do
4029
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4030
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4031
# Check for GNU ac_path_EGREP and select it if it is found.
4032
# Check for GNU $ac_path_EGREP
4033
case `"$ac_path_EGREP" --version 2>&1` in
4035
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4038
$as_echo_n 0123456789 >"conftest.in"
4041
cat "conftest.in" "conftest.in" >"conftest.tmp"
4042
mv "conftest.tmp" "conftest.in"
4043
cp "conftest.in" "conftest.nl"
4044
$as_echo 'EGREP' >> "conftest.nl"
4045
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4046
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4047
as_fn_arith $ac_count + 1 && ac_count=$as_val
4048
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4049
# Best one so far, save it but keep looking for a better one
4050
ac_cv_path_EGREP="$ac_path_EGREP"
4051
ac_path_EGREP_max=$ac_count
4053
# 10*(2^10) chars as input seems more than enough
4054
test $ac_count -gt 10 && break
4056
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4059
$ac_path_EGREP_found && break 3
4064
if test -z "$ac_cv_path_EGREP"; then
4065
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4068
ac_cv_path_EGREP=$EGREP
4073
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4074
$as_echo "$ac_cv_path_EGREP" >&6; }
4075
EGREP="$ac_cv_path_EGREP"
4078
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4079
$as_echo_n "checking for ANSI C header files... " >&6; }
4080
if test "${ac_cv_header_stdc+set}" = set; then :
4081
$as_echo_n "(cached) " >&6
4083
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4084
/* end confdefs.h. */
4098
if ac_fn_c_try_compile "$LINENO"; then :
4099
ac_cv_header_stdc=yes
4101
ac_cv_header_stdc=no
4103
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4105
if test $ac_cv_header_stdc = yes; then
4106
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4107
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4108
/* end confdefs.h. */
4112
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4113
$EGREP "memchr" >/dev/null 2>&1; then :
4116
ac_cv_header_stdc=no
4122
if test $ac_cv_header_stdc = yes; then
4123
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4124
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4125
/* end confdefs.h. */
4129
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4130
$EGREP "free" >/dev/null 2>&1; then :
4133
ac_cv_header_stdc=no
4139
if test $ac_cv_header_stdc = yes; then
4140
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4141
if test "$cross_compiling" = yes; then :
4144
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4145
/* end confdefs.h. */
4148
#if ((' ' & 0x0FF) == 0x020)
4149
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4150
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4152
# define ISLOWER(c) \
4153
(('a' <= (c) && (c) <= 'i') \
4154
|| ('j' <= (c) && (c) <= 'r') \
4155
|| ('s' <= (c) && (c) <= 'z'))
4156
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4159
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4164
for (i = 0; i < 256; i++)
4165
if (XOR (islower (i), ISLOWER (i))
4166
|| toupper (i) != TOUPPER (i))
4171
if ac_fn_c_try_run "$LINENO"; then :
4174
ac_cv_header_stdc=no
4176
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4177
conftest.$ac_objext conftest.beam conftest.$ac_ext
4182
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4183
$as_echo "$ac_cv_header_stdc" >&6; }
4184
if test $ac_cv_header_stdc = yes; then
4186
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4190
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4191
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4192
inttypes.h stdint.h unistd.h
4194
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4195
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4197
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4198
cat >>confdefs.h <<_ACEOF
4199
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4207
for ac_header in fcntl.h unistd.h
4209
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4210
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4211
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4212
cat >>confdefs.h <<_ACEOF
4213
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4222
# checks for typedefs, structures, and compiler characteristics
4224
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
4225
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
4226
if test "${ac_cv_c_const+set}" = set; then :
4227
$as_echo_n "(cached) " >&6
4229
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4230
/* end confdefs.h. */
4235
/* FIXME: Include the comments suggested by Paul. */
4237
/* Ultrix mips cc rejects this. */
4238
typedef int charset[2];
4240
/* SunOS 4.1.1 cc rejects this. */
4241
char const *const *pcpcc;
4243
/* NEC SVR4.0.2 mips cc rejects this. */
4244
struct point {int x, y;};
4245
static struct point const zero = {0,0};
4246
/* AIX XL C 1.02.0.0 rejects this.
4247
It does not let you subtract one const X* pointer from another in
4248
an arm of an if-expression whose if-part is not a constant
4250
const char *g = "string";
4251
pcpcc = &g + (g ? g-g : 0);
4252
/* HPUX 7.0 cc rejects these. */
4254
ppc = (char**) pcpcc;
4255
pcpcc = (char const *const *) ppc;
4256
{ /* SCO 3.2v4 cc rejects this. */
4258
char const *s = 0 ? (char *) 0 : (char const *) 0;
4263
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4265
const int *foo = &x[0];
4268
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4269
typedef const int *iptr;
4273
{ /* AIX XL C 1.02.0.0 rejects this saying
4274
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4275
struct s { int j; const int *ap[3]; };
4276
struct s *b; b->j = 5;
4278
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4282
return !cs[0] && !zero.x;
4289
if ac_fn_c_try_compile "$LINENO"; then :
4294
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4296
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
4297
$as_echo "$ac_cv_c_const" >&6; }
4298
if test $ac_cv_c_const = no; then
4300
$as_echo "#define const /**/" >>confdefs.h
4304
# The cast to long int works around a bug in the HP C Compiler
4305
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4306
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4307
# This bug is HP SR number 8606223364.
4308
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
4309
$as_echo_n "checking size of int... " >&6; }
4310
if test "${ac_cv_sizeof_int+set}" = set; then :
4311
$as_echo_n "(cached) " >&6
4313
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
4316
if test "$ac_cv_type_int" = yes; then
4317
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4318
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4319
as_fn_error 77 "cannot compute sizeof (int)
4320
See \`config.log' for more details" "$LINENO" 5; }
4327
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
4328
$as_echo "$ac_cv_sizeof_int" >&6; }
4332
cat >>confdefs.h <<_ACEOF
4333
#define SIZEOF_INT $ac_cv_sizeof_int
4337
# The cast to long int works around a bug in the HP C Compiler
4338
# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
4339
# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
4340
# This bug is HP SR number 8606223364.
4341
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
4342
$as_echo_n "checking size of long... " >&6; }
4343
if test "${ac_cv_sizeof_long+set}" = set; then :
4344
$as_echo_n "(cached) " >&6
4346
if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
4349
if test "$ac_cv_type_long" = yes; then
4350
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4351
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4352
as_fn_error 77 "cannot compute sizeof (long)
4353
See \`config.log' for more details" "$LINENO" 5; }
4360
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
4361
$as_echo "$ac_cv_sizeof_long" >&6; }
4365
cat >>confdefs.h <<_ACEOF
4366
#define SIZEOF_LONG $ac_cv_sizeof_long
4372
# check whether cpp computation of size of int and long in ftconfig.in works
4374
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking cpp computation of bit length in ftconfig.in works" >&5
4375
$as_echo_n "checking cpp computation of bit length in ftconfig.in works... " >&6; }
4376
orig_CPPFLAGS="${CPPFLAGS}"
4377
CPPFLAGS="-I${srcdir} -I. ${CPPFLAGS}"
4378
ac_clean_files="ft2build.h ftoption.h ftstdlib.h"
4379
touch ft2build.h ftoption.h ftstdlib.h
4381
cat > conftest.c <<\_ACEOF
4383
#define FT_CONFIG_OPTIONS_H "ftoption.h"
4384
#define FT_CONFIG_STANDARD_LIBRARY_H "ftstdlib.h"
4385
#define FT_UINT_MAX UINT_MAX
4386
#define FT_ULONG_MAX ULONG_MAX
4387
#include "ftconfig.in"
4389
echo >> conftest.c "#if FT_SIZEOF_INT == "${ac_cv_sizeof_int}
4390
echo >> conftest.c "ac_cpp_ft_sizeof_int="${ac_cv_sizeof_int}
4391
echo >> conftest.c "#endif"
4392
echo >> conftest.c "#if FT_SIZEOF_LONG == "${ac_cv_sizeof_long}
4393
echo >> conftest.c "ac_cpp_ft_sizeof_long="${ac_cv_sizeof_long}
4394
echo >> conftest.c "#endif"
4396
${CPP} ${CPPFLAGS} conftest.c | ${GREP} ac_cpp_ft > conftest.sh
4397
eval `cat conftest.sh`
4398
${RMF} conftest.c conftest.sh confft2build.h ftoption.h ftstdlib.h
4400
if test x != "x${ac_cpp_ft_sizeof_int}" \
4401
-a x != x"${ac_cpp_ft_sizeof_long}"; then
4402
unset ft_use_autoconf_sizeof_types
4404
ft_use_autoconf_sizeof_types=yes
4407
# Check whether --enable-biarch-config was given.
4408
if test "${enable_biarch_config+set}" = set; then :
4409
enableval=$enable_biarch_config;
4413
case :${ft_use_autoconf_sizeof_types}:${enable_biarch_config}: in
4415
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: broken but use it" >&5
4416
$as_echo "broken but use it" >&6; }
4417
unset ft_use_autoconf_sizeof_types
4420
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: works but ignore it" >&5
4421
$as_echo "works but ignore it" >&6; }
4422
ft_use_autoconf_sizeof_types=yes
4425
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4426
$as_echo "yes" >&6; }
4427
unset ft_use_autoconf_sizeof_types
4430
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4431
$as_echo "no" >&6; }
4432
ft_use_autoconf_sizeof_types=yes
4436
if test x"${ft_use_autoconf_sizeof_types}" = xyes; then
4437
$as_echo "#define FT_USE_AUTOCONF_SIZEOF_TYPES 1" >>confdefs.h
4441
CPPFLAGS="${orig_CPPFLAGS}"
4444
# checks for library functions
4446
# Here we check whether we can use our mmap file component.
4451
for ac_header in $ac_header_list
4453
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4454
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4456
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4457
cat >>confdefs.h <<_ACEOF
4458
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4472
for ac_func in getpagesize
4474
ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
4475
if test "x$ac_cv_func_getpagesize" = x""yes; then :
4476
cat >>confdefs.h <<_ACEOF
4477
#define HAVE_GETPAGESIZE 1
4483
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
4484
$as_echo_n "checking for working mmap... " >&6; }
4485
if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
4486
$as_echo_n "(cached) " >&6
4488
if test "$cross_compiling" = yes; then :
4489
ac_cv_func_mmap_fixed_mapped=no
4491
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4492
/* end confdefs.h. */
4493
$ac_includes_default
4494
/* malloc might have been renamed as rpl_malloc. */
4497
/* Thanks to Mike Haertel and Jim Avera for this test.
4498
Here is a matrix of mmap possibilities:
4499
mmap private not fixed
4500
mmap private fixed at somewhere currently unmapped
4501
mmap private fixed at somewhere already mapped
4502
mmap shared not fixed
4503
mmap shared fixed at somewhere currently unmapped
4504
mmap shared fixed at somewhere already mapped
4505
For private mappings, we should verify that changes cannot be read()
4506
back from the file, nor mmap's back from the file at a different
4507
address. (There have been systems where private was not correctly
4508
implemented like the infamous i386 svr4.0, and systems where the
4509
VM page cache was not coherent with the file system buffer cache
4510
like early versions of FreeBSD and possibly contemporary NetBSD.)
4511
For shared mappings, we should conversely verify that changes get
4512
propagated back to all the places they're supposed to be.
4514
Grep wants private fixed already mapped.
4515
The main things grep needs to know about mmap are:
4516
* does it exist and is it safe to write into the mmap'd area
4517
* how to use it (BSD variants) */
4520
#include <sys/mman.h>
4522
#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
4526
/* This mess was copied from the GNU getpagesize.h. */
4527
#ifndef HAVE_GETPAGESIZE
4528
# ifdef _SC_PAGESIZE
4529
# define getpagesize() sysconf(_SC_PAGESIZE)
4530
# else /* no _SC_PAGESIZE */
4531
# ifdef HAVE_SYS_PARAM_H
4532
# include <sys/param.h>
4533
# ifdef EXEC_PAGESIZE
4534
# define getpagesize() EXEC_PAGESIZE
4535
# else /* no EXEC_PAGESIZE */
4537
# define getpagesize() NBPG * CLSIZE
4540
# endif /* no CLSIZE */
4541
# else /* no NBPG */
4543
# define getpagesize() NBPC
4544
# else /* no NBPC */
4546
# define getpagesize() PAGESIZE
4547
# endif /* PAGESIZE */
4548
# endif /* no NBPC */
4549
# endif /* no NBPG */
4550
# endif /* no EXEC_PAGESIZE */
4551
# else /* no HAVE_SYS_PARAM_H */
4552
# define getpagesize() 8192 /* punt totally */
4553
# endif /* no HAVE_SYS_PARAM_H */
4554
# endif /* no _SC_PAGESIZE */
4556
#endif /* no HAVE_GETPAGESIZE */
4561
char *data, *data2, *data3;
4566
pagesize = getpagesize ();
4568
/* First, make a file with some known garbage in it. */
4569
data = (char *) malloc (pagesize);
4572
for (i = 0; i < pagesize; ++i)
4573
*(data + i) = rand ();
4575
fd = creat ("conftest.mmap", 0600);
4578
if (write (fd, data, pagesize) != pagesize)
4582
/* Next, check that the tail of a page is zero-filled. File must have
4583
non-zero length, otherwise we risk SIGBUS for entire page. */
4584
fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
4588
if (write (fd2, cdata2, 1) != 1)
4590
data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
4591
if (data2 == MAP_FAILED)
4593
for (i = 0; i < pagesize; ++i)
4597
if (munmap (data2, pagesize))
4600
/* Next, try to mmap the file at a fixed address which already has
4601
something else allocated at it. If we can, also make sure that
4602
we see the same garbage. */
4603
fd = open ("conftest.mmap", O_RDWR);
4606
if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
4607
MAP_PRIVATE | MAP_FIXED, fd, 0L))
4609
for (i = 0; i < pagesize; ++i)
4610
if (*(data + i) != *(data2 + i))
4613
/* Finally, make sure that changes to the mapped area do not
4614
percolate back to the file as seen by read(). (This is a bug on
4615
some variants of i386 svr4.0.) */
4616
for (i = 0; i < pagesize; ++i)
4617
*(data2 + i) = *(data2 + i) + 1;
4618
data3 = (char *) malloc (pagesize);
4621
if (read (fd, data3, pagesize) != pagesize)
4623
for (i = 0; i < pagesize; ++i)
4624
if (*(data + i) != *(data3 + i))
4630
if ac_fn_c_try_run "$LINENO"; then :
4631
ac_cv_func_mmap_fixed_mapped=yes
4633
ac_cv_func_mmap_fixed_mapped=no
4635
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4636
conftest.$ac_objext conftest.beam conftest.$ac_ext
4640
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
4641
$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
4642
if test $ac_cv_func_mmap_fixed_mapped = yes; then
4644
$as_echo "#define HAVE_MMAP 1" >>confdefs.h
4647
rm -f conftest.mmap conftest.txt
4649
if test "$ac_cv_func_mmap_fixed_mapped" != yes; then
4650
FTSYS_SRC='$(BASE_DIR)/ftsystem.c'
4652
FTSYS_SRC='$(BUILD_DIR)/ftsystem.c'
4654
ac_fn_c_check_decl "$LINENO" "munmap" "ac_cv_have_decl_munmap" "
4656
#ifdef HAVE_UNISTD_H
4659
#include <sys/mman.h>
4663
if test "x$ac_cv_have_decl_munmap" = x""yes; then :
4669
cat >>confdefs.h <<_ACEOF
4670
#define HAVE_DECL_MUNMAP $ac_have_decl
4674
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for munmap's first parameter type" >&5
4675
$as_echo_n "checking for munmap's first parameter type... " >&6; }
4676
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4677
/* end confdefs.h. */
4682
#include <sys/mman.h>
4683
int munmap(void *, size_t);
4688
if ac_fn_c_try_compile "$LINENO"; then :
4689
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: void *" >&5
4690
$as_echo "void *" >&6; }
4692
$as_echo "#define MUNMAP_USES_VOIDP /**/" >>confdefs.h
4695
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: char *" >&5
4696
$as_echo "char *" >&6; }
4698
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4703
for ac_func in memcpy memmove
4705
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
4706
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
4707
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
4708
cat >>confdefs.h <<_ACEOF
4709
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
4717
# check for system zlib
4719
# don't quote AS_HELP_STRING!
4721
# Check whether --with-zlib was given.
4722
if test "${with_zlib+set}" = set; then :
4726
if test x$with_zlib != xno && test -z "$LIBZ"; then
4727
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzsetparams in -lz" >&5
4728
$as_echo_n "checking for gzsetparams in -lz... " >&6; }
4729
if test "${ac_cv_lib_z_gzsetparams+set}" = set; then :
4730
$as_echo_n "(cached) " >&6
4732
ac_check_lib_save_LIBS=$LIBS
4734
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4735
/* end confdefs.h. */
4737
/* Override any GCC internal prototype to avoid an error.
4738
Use char because int might match the return type of a GCC
4739
builtin and then its argument prototype would still apply. */
4743
char gzsetparams ();
4747
return gzsetparams ();
4752
if ac_fn_c_try_link "$LINENO"; then :
4753
ac_cv_lib_z_gzsetparams=yes
4755
ac_cv_lib_z_gzsetparams=no
4757
rm -f core conftest.err conftest.$ac_objext \
4758
conftest$ac_exeext conftest.$ac_ext
4759
LIBS=$ac_check_lib_save_LIBS
4761
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzsetparams" >&5
4762
$as_echo "$ac_cv_lib_z_gzsetparams" >&6; }
4763
if test "x$ac_cv_lib_z_gzsetparams" = x""yes; then :
4764
ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
4765
if test "x$ac_cv_header_zlib_h" = x""yes; then :
4773
if test x$with_zlib != xno && test -n "$LIBZ"; then
4774
CFLAGS="$CFLAGS -DFT_CONFIG_OPTION_SYSTEM_ZLIB"
4775
LDFLAGS="$LDFLAGS $LIBZ"
4780
# Some options handling SDKs/archs in CFLAGS should be copied
4781
# to LDFLAGS. Apple TechNote 2137 recommends to include these
4782
# options in CFLAGS but not in LDFLAGS.
4787
while test $i -lt $#
4792
-isysroot|-arch) # options taking 1 argument
4794
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether CFLAGS and LDFLAGS share ${c} ${a}" >&5
4795
$as_echo_n "checking whether CFLAGS and LDFLAGS share ${c} ${a}... " >&6; }
4796
if expr " ${LDFLAGS} " : ".* ${c} *${a}.*" > /dev/null
4798
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4799
$as_echo "yes" >&6; }
4801
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no, copy to LDFLAGS" >&5
4802
$as_echo "no, copy to LDFLAGS" >&6; }
4803
LDFLAGS="${LDFLAGS} ${c} ${a}"
4807
-m32|-m64) # options taking no argument
4808
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: whether CFLAGS and LDFLAGS share ${c}" >&5
4809
$as_echo "whether CFLAGS and LDFLAGS share ${c}" >&6; }
4810
if expr " ${LDFLAGS} " : ".* ${c} *${a}.*" > /dev/null
4812
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4813
$as_echo "yes" >&6; }
4815
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no, copy to LDFLAGS" >&5
4816
$as_echo "no, copy to LDFLAGS" >&6; }
4817
LDFLAGS="${LDFLAGS} ${c}"
4821
# AC_MSG_RESULT([${c} is not copied to LDFLAGS])
4827
set ${save_config_args}
4830
# Whether to use Mac OS resource-based fonts.
4832
ftmac_c="" # src/base/ftmac.c should not be included in makefiles by default
4834
# don't quote AS_HELP_STRING!
4836
# Check whether --with-old-mac-fonts was given.
4837
if test "${with_old_mac_fonts+set}" = set; then :
4838
withval=$with_old_mac_fonts;
4841
if test x$with_old_mac_fonts = xyes; then
4842
orig_LDFLAGS="${LDFLAGS}"
4843
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CoreServices & ApplicationServices of Mac OS X" >&5
4844
$as_echo_n "checking CoreServices & ApplicationServices of Mac OS X... " >&6; }
4845
FT2_EXTRA_LIBS="-Wl,-framework,CoreServices -Wl,-framework,ApplicationServices"
4846
LDFLAGS="$LDFLAGS $FT2_EXTRA_LIBS"
4847
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4848
/* end confdefs.h. */
4852
#if defined(__GNUC__) && defined(__APPLE_CC__)
4853
# include <CoreServices/CoreServices.h>
4854
# include <ApplicationServices/ApplicationServices.h>
4856
# include <ConditionalMacros.h>
4876
if ac_fn_c_try_link "$LINENO"; then :
4877
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
4878
$as_echo "ok" >&6; }
4880
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking OS_INLINE macro is ANSI compatible" >&5
4881
$as_echo_n "checking OS_INLINE macro is ANSI compatible... " >&6; }
4882
orig_CFLAGS="$CFLAGS"
4883
CFLAGS="$CFLAGS $XX_CFLAGS $XX_ANSIFLAGS"
4884
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4885
/* end confdefs.h. */
4889
#if defined(__GNUC__) && defined(__APPLE_CC__)
4890
# include <CoreServices/CoreServices.h>
4891
# include <ApplicationServices/ApplicationServices.h>
4893
# include <ConditionalMacros.h>
4903
/* OSHostByteOrder() is typed as OS_INLINE */
4904
int32_t os_byte_order = OSHostByteOrder();
4907
if ( OSBigEndian != os_byte_order )
4915
if ac_fn_c_try_compile "$LINENO"; then :
4916
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
4917
$as_echo "ok" >&6; }
4918
CFLAGS="$orig_CFLAGS"
4919
CFLAGS="$CFLAGS -DHAVE_ANSI_OS_INLINE=1"
4922
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no, ANSI incompatible" >&5
4923
$as_echo "no, ANSI incompatible" >&6; }
4924
CFLAGS="$orig_CFLAGS"
4927
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4928
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking type ResourceIndex" >&5
4929
$as_echo_n "checking type ResourceIndex... " >&6; }
4930
orig_CFLAGS="$CFLAGS"
4931
CFLAGS="$CFLAGS $XX_CFLAGS $XX_ANSIFLAGS"
4932
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4933
/* end confdefs.h. */
4937
#if defined(__GNUC__) && defined(__APPLE_CC__)
4938
# include <CoreServices/CoreServices.h>
4939
# include <ApplicationServices/ApplicationServices.h>
4941
# include <ConditionalMacros.h>
4943
# include <Resources.h>
4952
ResourceIndex i = 0;
4960
if ac_fn_c_try_compile "$LINENO"; then :
4961
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
4962
$as_echo "ok" >&6; }
4963
CFLAGS="$orig_CFLAGS"
4964
CFLAGS="$CFLAGS -DHAVE_TYPE_RESOURCE_INDEX=1"
4967
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4968
$as_echo "no" >&6; }
4969
CFLAGS="$orig_CFLAGS"
4970
CFLAGS="$CFLAGS -DHAVE_TYPE_RESOURCE_INDEX=0"
4973
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4975
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
4976
$as_echo "not found" >&6; }
4978
LDFLAGS="${orig_LDFLAGS}"
4979
CFLAGS="$CFLAGS -DDARWIN_NO_CARBON"
4981
rm -f core conftest.err conftest.$ac_objext \
4982
conftest$ac_exeext conftest.$ac_ext
4986
CFLAGS="$CFLAGS -DDARWIN_NO_CARBON"
4993
# Whether to use FileManager which is deprecated since Mac OS X 10.4.
4996
# Check whether --with-fsspec was given.
4997
if test "${with_fsspec+set}" = set; then :
4998
withval=$with_fsspec;
5001
if test x$with_fsspec = xno; then
5002
CFLAGS="$CFLAGS -DHAVE_FSSPEC=0"
5003
elif test x$with_old_mac_fonts = xyes -a x$with_fsspec != x; then
5004
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking FSSpec-based FileManager" >&5
5005
$as_echo_n "checking FSSpec-based FileManager... " >&6; }
5006
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5007
/* end confdefs.h. */
5011
#if defined(__GNUC__) && defined(__APPLE_CC__)
5012
# include <CoreServices/CoreServices.h>
5013
# include <ApplicationServices/ApplicationServices.h>
5015
# include <ConditionalMacros.h>
5025
FCBPBPtr paramBlock;
5028
ConstStr255Param fileName;
5032
/* FSSpec functions: deprecated since Mac OS X 10.4 */
5033
PBGetFCBInfoSync( paramBlock );
5034
FSMakeFSSpec( vRefNum, dirID, fileName, spec );
5041
if ac_fn_c_try_link "$LINENO"; then :
5042
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5043
$as_echo "ok" >&6; }
5044
CFLAGS="$CFLAGS -DHAVE_FSSPEC=1"
5046
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5047
$as_echo "not found" >&6; }
5048
CFLAGS="$CFLAGS -DHAVE_FSSPEC=0"
5050
rm -f core conftest.err conftest.$ac_objext \
5051
conftest$ac_exeext conftest.$ac_ext
5055
# Whether to use FileManager in Carbon since MacOS 9.x.
5058
# Check whether --with-fsref was given.
5059
if test "${with_fsref+set}" = set; then :
5060
withval=$with_fsref;
5063
if test x$with_fsref = xno; then
5064
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
5066
FreeType2 built without FSRef API cannot load
5067
data-fork fonts on MacOS, except of XXX.dfont.
5069
$as_echo "$as_me: WARNING:
5071
FreeType2 built without FSRef API cannot load
5072
data-fork fonts on MacOS, except of XXX.dfont.
5074
CFLAGS="$CFLAGS -DHAVE_FSREF=0"
5075
elif test x$with_old_mac_fonts = xyes -a x$with_fsref != x; then
5076
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking FSRef-based FileManager" >&5
5077
$as_echo_n "checking FSRef-based FileManager... " >&6; }
5078
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5079
/* end confdefs.h. */
5083
#if defined(__GNUC__) && defined(__APPLE_CC__)
5084
# include <CoreServices/CoreServices.h>
5085
# include <ApplicationServices/ApplicationServices.h>
5087
# include <ConditionalMacros.h>
5099
ConstStr255Param fileName;
5101
Boolean* isDirectory;
5103
SInt16 desiredRefNum;
5105
SInt16* actualRefNum;
5106
HFSUniStr255* outForkName;
5107
FSVolumeRefNum volume;
5108
FSCatalogInfoBitmap whichInfo;
5109
FSCatalogInfo* catalogInfo;
5110
FSForkInfo* forkInfo;
5117
/* FSRef functions: no need to check? */
5118
FSGetForkCBInfo( desiredRefNum, volume, iterator,
5119
actualRefNum, forkInfo, ref,
5121
FSPathMakeRef( path, ref, isDirectory );
5124
FSpMakeFSRef ( spec, ref );
5125
FSGetCatalogInfo( ref, whichInfo, catalogInfo,
5126
outForkName, spec, ref );
5133
if ac_fn_c_try_link "$LINENO"; then :
5134
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5135
$as_echo "ok" >&6; }
5136
CFLAGS="$CFLAGS -DHAVE_FSREF=1"
5138
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5139
$as_echo "not found" >&6; }
5140
CFLAGS="$CFLAGS -DHAVE_FSREF=0"
5142
rm -f core conftest.err conftest.$ac_objext \
5143
conftest$ac_exeext conftest.$ac_ext
5147
# Whether to use QuickDraw API in ToolBox which is deprecated since
5151
# Check whether --with-quickdraw-toolbox was given.
5152
if test "${with_quickdraw_toolbox+set}" = set; then :
5153
withval=$with_quickdraw_toolbox;
5156
if test x$with_quickdraw_toolbox = xno; then
5157
CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_TOOLBOX=0"
5158
elif test x$with_old_mac_fonts = xyes -a x$with_quickdraw_toolbox != x; then
5159
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking QuickDraw FontManager functions in ToolBox" >&5
5160
$as_echo_n "checking QuickDraw FontManager functions in ToolBox... " >&6; }
5161
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5162
/* end confdefs.h. */
5166
#if defined(__GNUC__) && defined(__APPLE_CC__)
5167
# include <CoreServices/CoreServices.h>
5168
# include <ApplicationServices/ApplicationServices.h>
5170
# include <ConditionalMacros.h>
5181
SInt16 familyID = 0;
5182
FMInput* fmIn = NULL;
5183
FMOutput* fmOut = NULL;
5186
GetFontName( familyID, familyName );
5187
GetFNum( familyName, &familyID );
5188
fmOut = FMSwapFont( fmIn );
5195
if ac_fn_c_try_link "$LINENO"; then :
5196
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5197
$as_echo "ok" >&6; }
5198
CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_TOOLBOX=1"
5200
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5201
$as_echo "not found" >&6; }
5202
CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_TOOLBOX=0"
5204
rm -f core conftest.err conftest.$ac_objext \
5205
conftest$ac_exeext conftest.$ac_ext
5209
# Whether to use QuickDraw API in Carbon which is deprecated since
5213
# Check whether --with-quickdraw-carbon was given.
5214
if test "${with_quickdraw_carbon+set}" = set; then :
5215
withval=$with_quickdraw_carbon;
5218
if test x$with_quickdraw_carbon = xno; then
5219
CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_CARBON=0"
5220
elif test x$with_old_mac_fonts = xyes -a x$with_quickdraw_carbon != x; then
5221
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking QuickDraw FontManager functions in Carbon" >&5
5222
$as_echo_n "checking QuickDraw FontManager functions in Carbon... " >&6; }
5223
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5224
/* end confdefs.h. */
5228
#if defined(__GNUC__) && defined(__APPLE_CC__)
5229
# include <CoreServices/CoreServices.h>
5230
# include <ApplicationServices/ApplicationServices.h>
5232
# include <ConditionalMacros.h>
5242
FMFontFamilyIterator famIter;
5243
FMFontFamily family;
5245
FMFontFamilyInstanceIterator instIter;
5252
FMCreateFontFamilyIterator( NULL, NULL, kFMUseGlobalScopeOption,
5254
FMGetNextFontFamily( &famIter, &family );
5255
FMGetFontFamilyName( family, famNameStr );
5256
FMCreateFontFamilyInstanceIterator( family, &instIter );
5257
FMGetNextFontFamilyInstance( &instIter, &font, &style, &size );
5258
FMDisposeFontFamilyInstanceIterator( &instIter );
5259
FMDisposeFontFamilyIterator( &famIter );
5260
FMGetFontContainer( font, pathSpec );
5267
if ac_fn_c_try_link "$LINENO"; then :
5268
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5269
$as_echo "ok" >&6; }
5270
CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_CARBON=1"
5272
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5273
$as_echo "not found" >&6; }
5274
CFLAGS="$CFLAGS -DHAVE_QUICKDRAW_CARBON=0"
5276
rm -f core conftest.err conftest.$ac_objext \
5277
conftest$ac_exeext conftest.$ac_ext
5281
# Whether to use AppleTypeService since Mac OS X.
5283
# don't quote AS_HELP_STRING!
5285
# Check whether --with-ats was given.
5286
if test "${with_ats+set}" = set; then :
5290
if test x$with_ats = xno; then
5291
CFLAGS="$CFLAGS -DHAVE_ATS=0"
5292
elif test x$with_old_mac_fonts = xyes -a x$with_ats != x ; then
5293
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking AppleTypeService functions" >&5
5294
$as_echo_n "checking AppleTypeService functions... " >&6; }
5295
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5296
/* end confdefs.h. */
5300
#if defined(__GNUC__) && defined(__APPLE_CC__)
5301
# include <CoreServices/CoreServices.h>
5302
# include <ApplicationServices/ApplicationServices.h>
5304
# include <ConditionalMacros.h>
5317
ATSFontFindFromName( NULL, kATSOptionFlagsUnRestrictedScope );
5319
ATSFontGetFileSpecification( 0, pathSpec );
5327
if ac_fn_c_try_link "$LINENO"; then :
5328
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5329
$as_echo "ok" >&6; }
5330
CFLAGS="$CFLAGS -DHAVE_ATS=1"
5332
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
5333
$as_echo "not found" >&6; }
5334
CFLAGS="$CFLAGS -DHAVE_ATS=0"
5336
rm -f core conftest.err conftest.$ac_objext \
5337
conftest$ac_exeext conftest.$ac_ext
5341
*HAVE_FSSPEC* | *HAVE_FSREF* | *HAVE_QUICKDRAW* | *HAVE_ATS* )
5342
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
5344
FSSpec/FSRef/QuickDraw/ATS options are explicitly given,
5345
thus it is recommended to replace src/base/ftmac.c by builds/mac/ftmac.c.
5347
$as_echo "$as_me: WARNING:
5349
FSSpec/FSRef/QuickDraw/ATS options are explicitly given,
5350
thus it is recommended to replace src/base/ftmac.c by builds/mac/ftmac.c.
5352
CFLAGS="$CFLAGS "'-I$(TOP_DIR)/builds/mac/'
5369
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5370
$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5375
macro_version='2.2.6b'
5376
macro_revision='1.3017'
5390
ltmain="$ac_aux_dir/ltmain.sh"
5392
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5393
$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5394
if test "${ac_cv_path_SED+set}" = set; then :
5395
$as_echo_n "(cached) " >&6
5397
ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5398
for ac_i in 1 2 3 4 5 6 7; do
5399
ac_script="$ac_script$as_nl$ac_script"
5401
echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5402
{ ac_script=; unset ac_script;}
5403
if test -z "$SED"; then
5404
ac_path_SED_found=false
5405
# Loop through the user's path and test for each of PROGNAME-LIST
5406
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5410
test -z "$as_dir" && as_dir=.
5411
for ac_prog in sed gsed; do
5412
for ac_exec_ext in '' $ac_executable_extensions; do
5413
ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5414
{ test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5415
# Check for GNU ac_path_SED and select it if it is found.
5416
# Check for GNU $ac_path_SED
5417
case `"$ac_path_SED" --version 2>&1` in
5419
ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5422
$as_echo_n 0123456789 >"conftest.in"
5425
cat "conftest.in" "conftest.in" >"conftest.tmp"
5426
mv "conftest.tmp" "conftest.in"
5427
cp "conftest.in" "conftest.nl"
5428
$as_echo '' >> "conftest.nl"
5429
"$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5430
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5431
as_fn_arith $ac_count + 1 && ac_count=$as_val
5432
if test $ac_count -gt ${ac_path_SED_max-0}; then
5433
# Best one so far, save it but keep looking for a better one
5434
ac_cv_path_SED="$ac_path_SED"
5435
ac_path_SED_max=$ac_count
5437
# 10*(2^10) chars as input seems more than enough
5438
test $ac_count -gt 10 && break
5440
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5443
$ac_path_SED_found && break 3
5448
if test -z "$ac_cv_path_SED"; then
5449
as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5456
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5457
$as_echo "$ac_cv_path_SED" >&6; }
5458
SED="$ac_cv_path_SED"
5461
test -z "$SED" && SED=sed
5462
Xsed="$SED -e 1s/^X//"
5474
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5475
$as_echo_n "checking for fgrep... " >&6; }
5476
if test "${ac_cv_path_FGREP+set}" = set; then :
5477
$as_echo_n "(cached) " >&6
5479
if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5480
then ac_cv_path_FGREP="$GREP -F"
5482
if test -z "$FGREP"; then
5483
ac_path_FGREP_found=false
5484
# Loop through the user's path and test for each of PROGNAME-LIST
5485
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5486
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5489
test -z "$as_dir" && as_dir=.
5490
for ac_prog in fgrep; do
5491
for ac_exec_ext in '' $ac_executable_extensions; do
5492
ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5493
{ test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5494
# Check for GNU ac_path_FGREP and select it if it is found.
5495
# Check for GNU $ac_path_FGREP
5496
case `"$ac_path_FGREP" --version 2>&1` in
5498
ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5501
$as_echo_n 0123456789 >"conftest.in"
5504
cat "conftest.in" "conftest.in" >"conftest.tmp"
5505
mv "conftest.tmp" "conftest.in"
5506
cp "conftest.in" "conftest.nl"
5507
$as_echo 'FGREP' >> "conftest.nl"
5508
"$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5509
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5510
as_fn_arith $ac_count + 1 && ac_count=$as_val
5511
if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5512
# Best one so far, save it but keep looking for a better one
5513
ac_cv_path_FGREP="$ac_path_FGREP"
5514
ac_path_FGREP_max=$ac_count
5516
# 10*(2^10) chars as input seems more than enough
5517
test $ac_count -gt 10 && break
5519
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5522
$ac_path_FGREP_found && break 3
5527
if test -z "$ac_cv_path_FGREP"; then
5528
as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5531
ac_cv_path_FGREP=$FGREP
5536
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5537
$as_echo "$ac_cv_path_FGREP" >&6; }
5538
FGREP="$ac_cv_path_FGREP"
5541
test -z "$GREP" && GREP=grep
5561
# Check whether --with-gnu-ld was given.
5562
if test "${with_gnu_ld+set}" = set; then :
5563
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5569
if test "$GCC" = yes; then
5570
# Check if gcc -print-prog-name=ld gives a path.
5571
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5572
$as_echo_n "checking for ld used by $CC... " >&6; }
5575
# gcc leaves a trailing carriage return which upsets mingw
5576
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5578
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5581
# Accept absolute paths.
5583
re_direlt='/[^/][^/]*/\.\./'
5584
# Canonicalize the pathname of ld
5585
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5586
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5587
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5589
test -z "$LD" && LD="$ac_prog"
5592
# If it fails, then pretend we aren't using GCC.
5596
# If it is relative, then search for the first ld in PATH.
5600
elif test "$with_gnu_ld" = yes; then
5601
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5602
$as_echo_n "checking for GNU ld... " >&6; }
5604
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5605
$as_echo_n "checking for non-GNU ld... " >&6; }
5607
if test "${lt_cv_path_LD+set}" = set; then :
5608
$as_echo_n "(cached) " >&6
5610
if test -z "$LD"; then
5611
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5612
for ac_dir in $PATH; do
5614
test -z "$ac_dir" && ac_dir=.
5615
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5616
lt_cv_path_LD="$ac_dir/$ac_prog"
5617
# Check to see if the program is GNU ld. I'd rather use --version,
5618
# but apparently some variants of GNU ld only accept -v.
5619
# Break only if it was the GNU/non-GNU ld that we prefer.
5620
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5621
*GNU* | *'with BFD'*)
5622
test "$with_gnu_ld" != no && break
5625
test "$with_gnu_ld" != yes && break
5632
lt_cv_path_LD="$LD" # Let the user override the test with a path.
5637
if test -n "$LD"; then
5638
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5639
$as_echo "$LD" >&6; }
5641
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5642
$as_echo "no" >&6; }
5644
test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5645
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5646
$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5647
if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5648
$as_echo_n "(cached) " >&6
5650
# I'd rather use --version here, but apparently some GNU lds only accept -v.
5651
case `$LD -v 2>&1 </dev/null` in
5652
*GNU* | *'with BFD'*)
5653
lt_cv_prog_gnu_ld=yes
5656
lt_cv_prog_gnu_ld=no
5660
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5661
$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5662
with_gnu_ld=$lt_cv_prog_gnu_ld
5672
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5673
$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5674
if test "${lt_cv_path_NM+set}" = set; then :
5675
$as_echo_n "(cached) " >&6
5677
if test -n "$NM"; then
5678
# Let the user override the test.
5681
lt_nm_to_check="${ac_tool_prefix}nm"
5682
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5683
lt_nm_to_check="$lt_nm_to_check nm"
5685
for lt_tmp_nm in $lt_nm_to_check; do
5686
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5687
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5689
test -z "$ac_dir" && ac_dir=.
5690
tmp_nm="$ac_dir/$lt_tmp_nm"
5691
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5692
# Check to see if the nm accepts a BSD-compat flag.
5693
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5694
# nm: unknown option "B" ignored
5695
# Tru64's nm complains that /dev/null is an invalid object file
5696
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5697
*/dev/null* | *'Invalid file or object type'*)
5698
lt_cv_path_NM="$tmp_nm -B"
5702
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5704
lt_cv_path_NM="$tmp_nm -p"
5708
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5709
continue # so that we can try to find one that supports BSD flags
5718
: ${lt_cv_path_NM=no}
5721
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5722
$as_echo "$lt_cv_path_NM" >&6; }
5723
if test "$lt_cv_path_NM" != "no"; then
5726
# Didn't find any BSD compatible name lister, look for dumpbin.
5727
if test -n "$ac_tool_prefix"; then
5728
for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5730
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5731
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5732
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5733
$as_echo_n "checking for $ac_word... " >&6; }
5734
if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5735
$as_echo_n "(cached) " >&6
5737
if test -n "$DUMPBIN"; then
5738
ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5740
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5744
test -z "$as_dir" && as_dir=.
5745
for ac_exec_ext in '' $ac_executable_extensions; do
5746
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5747
ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5748
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5757
DUMPBIN=$ac_cv_prog_DUMPBIN
5758
if test -n "$DUMPBIN"; then
5759
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5760
$as_echo "$DUMPBIN" >&6; }
5762
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5763
$as_echo "no" >&6; }
5767
test -n "$DUMPBIN" && break
5770
if test -z "$DUMPBIN"; then
5771
ac_ct_DUMPBIN=$DUMPBIN
5772
for ac_prog in "dumpbin -symbols" "link -dump -symbols"
5774
# Extract the first word of "$ac_prog", so it can be a program name with args.
5775
set dummy $ac_prog; ac_word=$2
5776
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5777
$as_echo_n "checking for $ac_word... " >&6; }
5778
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5779
$as_echo_n "(cached) " >&6
5781
if test -n "$ac_ct_DUMPBIN"; then
5782
ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5784
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5788
test -z "$as_dir" && as_dir=.
5789
for ac_exec_ext in '' $ac_executable_extensions; do
5790
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5791
ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5792
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5801
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5802
if test -n "$ac_ct_DUMPBIN"; then
5803
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5804
$as_echo "$ac_ct_DUMPBIN" >&6; }
5806
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5807
$as_echo "no" >&6; }
5811
test -n "$ac_ct_DUMPBIN" && break
5814
if test "x$ac_ct_DUMPBIN" = x; then
5817
case $cross_compiling:$ac_tool_warned in
5819
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5820
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5821
ac_tool_warned=yes ;;
5823
DUMPBIN=$ac_ct_DUMPBIN
5828
if test "$DUMPBIN" != ":"; then
5832
test -z "$NM" && NM=nm
5839
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5840
$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5841
if test "${lt_cv_nm_interface+set}" = set; then :
5842
$as_echo_n "(cached) " >&6
5844
lt_cv_nm_interface="BSD nm"
5845
echo "int some_variable = 0;" > conftest.$ac_ext
5846
(eval echo "\"\$as_me:5846: $ac_compile\"" >&5)
5847
(eval "$ac_compile" 2>conftest.err)
5848
cat conftest.err >&5
5849
(eval echo "\"\$as_me:5849: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5850
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5851
cat conftest.err >&5
5852
(eval echo "\"\$as_me:5852: output\"" >&5)
5853
cat conftest.out >&5
5854
if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5855
lt_cv_nm_interface="MS dumpbin"
5859
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5860
$as_echo "$lt_cv_nm_interface" >&6; }
5862
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5863
$as_echo_n "checking whether ln -s works... " >&6; }
5865
if test "$LN_S" = "ln -s"; then
5866
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5867
$as_echo "yes" >&6; }
5869
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5870
$as_echo "no, using $LN_S" >&6; }
5873
# find the maximum length of command line arguments
5874
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5875
$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5876
if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5877
$as_echo_n "(cached) " >&6
5884
# On DJGPP, this test can blow up pretty badly due to problems in libc
5885
# (any single argument exceeding 2000 bytes causes a buffer overrun
5886
# during glob expansion). Even if it were fixed, the result of this
5887
# check would be larger than it should be.
5888
lt_cv_sys_max_cmd_len=12288; # 12K is about right
5892
# Under GNU Hurd, this test is not required because there is
5893
# no limit to the length of command line arguments.
5894
# Libtool will interpret -1 as no limit whatsoever
5895
lt_cv_sys_max_cmd_len=-1;
5898
cygwin* | mingw* | cegcc*)
5899
# On Win9x/ME, this test blows up -- it succeeds, but takes
5900
# about 5 minutes as the teststring grows exponentially.
5901
# Worse, since 9x/ME are not pre-emptively multitasking,
5902
# you end up with a "frozen" computer, even though with patience
5903
# the test eventually succeeds (with a max line length of 256k).
5904
# Instead, let's just punt: use the minimum linelength reported by
5905
# all of the supported platforms: 8192 (on NT/2K/XP).
5906
lt_cv_sys_max_cmd_len=8192;
5910
# On AmigaOS with pdksh, this test takes hours, literally.
5911
# So we just punt and use a minimum line length of 8192.
5912
lt_cv_sys_max_cmd_len=8192;
5915
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5916
# This has been around since 386BSD, at least. Likely further.
5917
if test -x /sbin/sysctl; then
5918
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5919
elif test -x /usr/sbin/sysctl; then
5920
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5922
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5924
# And add a safety zone
5925
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5926
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5930
# We know the value 262144 and hardcode it with a safety zone (like BSD)
5931
lt_cv_sys_max_cmd_len=196608
5935
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5936
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5937
# nice to cause kernel panics so lets avoid the loop below.
5938
# First set a reasonable default.
5939
lt_cv_sys_max_cmd_len=16384
5941
if test -x /sbin/sysconfig; then
5942
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5943
*1*) lt_cv_sys_max_cmd_len=-1 ;;
5948
lt_cv_sys_max_cmd_len=102400
5950
sysv5* | sco5v6* | sysv4.2uw2*)
5951
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5952
if test -n "$kargmax"; then
5953
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5955
lt_cv_sys_max_cmd_len=32768
5959
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5960
if test -n "$lt_cv_sys_max_cmd_len"; then
5961
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5962
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5964
# Make teststring a little bigger before we do anything with it.
5965
# a 1K string should be a reasonable start.
5966
for i in 1 2 3 4 5 6 7 8 ; do
5967
teststring=$teststring$teststring
5969
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5970
# If test is not a shell built-in, we'll probably end up computing a
5971
# maximum length that is only half of the actual maximum length, but
5973
while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5974
= "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5975
test $i != 17 # 1/2 MB should be enough
5978
teststring=$teststring$teststring
5980
# Only check the string length outside the loop.
5981
lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5983
# Add a significant safety factor because C++ compilers can tack on
5984
# massive amounts of additional arguments before passing them to the
5985
# linker. It appears as though 1/2 is a usable value.
5986
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5993
if test -n $lt_cv_sys_max_cmd_len ; then
5994
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5995
$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5997
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5998
$as_echo "none" >&6; }
6000
max_cmd_len=$lt_cv_sys_max_cmd_len
6011
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6012
$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6013
# Try some XSI features
6016
test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6018
&& eval 'test $(( 1 + 1 )) -eq 2 \
6019
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6021
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6022
$as_echo "$xsi_shell" >&6; }
6025
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6026
$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6028
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6030
&& lt_shell_append=yes
6031
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6032
$as_echo "$lt_shell_append" >&6; }
6035
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6045
# test EBCDIC or ASCII
6046
case `echo X|tr X '\101'` in
6047
A) # ASCII based system
6048
# \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6049
lt_SP2NL='tr \040 \012'
6050
lt_NL2SP='tr \015\012 \040\040'
6052
*) # EBCDIC based system
6053
lt_SP2NL='tr \100 \n'
6054
lt_NL2SP='tr \r\n \100\100'
6066
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6067
$as_echo_n "checking for $LD option to reload object files... " >&6; }
6068
if test "${lt_cv_ld_reload_flag+set}" = set; then :
6069
$as_echo_n "(cached) " >&6
6071
lt_cv_ld_reload_flag='-r'
6073
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6074
$as_echo "$lt_cv_ld_reload_flag" >&6; }
6075
reload_flag=$lt_cv_ld_reload_flag
6076
case $reload_flag in
6078
*) reload_flag=" $reload_flag" ;;
6080
reload_cmds='$LD$reload_flag -o $output$reload_objs'
6083
if test "$GCC" = yes; then
6084
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6086
reload_cmds='$LD$reload_flag -o $output$reload_objs'
6099
if test -n "$ac_tool_prefix"; then
6100
# Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6101
set dummy ${ac_tool_prefix}objdump; ac_word=$2
6102
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6103
$as_echo_n "checking for $ac_word... " >&6; }
6104
if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6105
$as_echo_n "(cached) " >&6
6107
if test -n "$OBJDUMP"; then
6108
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6110
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6114
test -z "$as_dir" && as_dir=.
6115
for ac_exec_ext in '' $ac_executable_extensions; do
6116
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6117
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6118
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6127
OBJDUMP=$ac_cv_prog_OBJDUMP
6128
if test -n "$OBJDUMP"; then
6129
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6130
$as_echo "$OBJDUMP" >&6; }
6132
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6133
$as_echo "no" >&6; }
6138
if test -z "$ac_cv_prog_OBJDUMP"; then
6139
ac_ct_OBJDUMP=$OBJDUMP
6140
# Extract the first word of "objdump", so it can be a program name with args.
6141
set dummy objdump; ac_word=$2
6142
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6143
$as_echo_n "checking for $ac_word... " >&6; }
6144
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6145
$as_echo_n "(cached) " >&6
6147
if test -n "$ac_ct_OBJDUMP"; then
6148
ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6150
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6154
test -z "$as_dir" && as_dir=.
6155
for ac_exec_ext in '' $ac_executable_extensions; do
6156
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6157
ac_cv_prog_ac_ct_OBJDUMP="objdump"
6158
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6167
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6168
if test -n "$ac_ct_OBJDUMP"; then
6169
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6170
$as_echo "$ac_ct_OBJDUMP" >&6; }
6172
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6173
$as_echo "no" >&6; }
6176
if test "x$ac_ct_OBJDUMP" = x; then
6179
case $cross_compiling:$ac_tool_warned in
6181
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6182
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6183
ac_tool_warned=yes ;;
6185
OBJDUMP=$ac_ct_OBJDUMP
6188
OBJDUMP="$ac_cv_prog_OBJDUMP"
6191
test -z "$OBJDUMP" && OBJDUMP=objdump
6198
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6199
$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6200
if test "${lt_cv_deplibs_check_method+set}" = set; then :
6201
$as_echo_n "(cached) " >&6
6203
lt_cv_file_magic_cmd='$MAGIC_CMD'
6204
lt_cv_file_magic_test_file=
6205
lt_cv_deplibs_check_method='unknown'
6206
# Need to set the preceding variable on all platforms that support
6207
# interlibrary dependencies.
6208
# 'none' -- dependencies not supported.
6209
# `unknown' -- same as none, but documents that we really don't know.
6210
# 'pass_all' -- all dependencies passed with no checks.
6211
# 'test_compile' -- check by making test program.
6212
# 'file_magic [[regex]]' -- check by looking for files in library path
6213
# which responds to the $file_magic_cmd with a given extended regex.
6214
# If you have `file' or equivalent on your system and you're not sure
6215
# whether `pass_all' will *always* work, you probably want this one.
6219
lt_cv_deplibs_check_method=pass_all
6223
lt_cv_deplibs_check_method=pass_all
6227
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6228
lt_cv_file_magic_cmd='/usr/bin/file -L'
6229
lt_cv_file_magic_test_file=/shlib/libc.so
6233
# func_win32_libid is a shell function defined in ltmain.sh
6234
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6235
lt_cv_file_magic_cmd='func_win32_libid'
6239
# Base MSYS/MinGW do not provide the 'file' command needed by
6240
# func_win32_libid shell function, so use a weaker test based on 'objdump',
6241
# unless we find 'file', for example because we are cross-compiling.
6242
if ( file / ) >/dev/null 2>&1; then
6243
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6244
lt_cv_file_magic_cmd='func_win32_libid'
6246
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6247
lt_cv_file_magic_cmd='$OBJDUMP -f'
6252
# use the weaker test based on 'objdump'. See mingw*.
6253
lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6254
lt_cv_file_magic_cmd='$OBJDUMP -f'
6257
darwin* | rhapsody*)
6258
lt_cv_deplibs_check_method=pass_all
6261
freebsd* | dragonfly*)
6262
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6265
# Not sure whether the presence of OpenBSD here was a mistake.
6266
# Let's accept both of them until this is cleared up.
6267
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6268
lt_cv_file_magic_cmd=/usr/bin/file
6269
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6273
lt_cv_deplibs_check_method=pass_all
6278
lt_cv_deplibs_check_method=pass_all
6281
hpux10.20* | hpux11*)
6282
lt_cv_file_magic_cmd=/usr/bin/file
6285
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6286
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6289
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
6290
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6293
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6294
lt_cv_file_magic_test_file=/usr/lib/libc.sl
6300
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6301
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6304
irix5* | irix6* | nonstopux*)
6306
*-32|*"-32 ") libmagic=32-bit;;
6307
*-n32|*"-n32 ") libmagic=N32;;
6308
*-64|*"-64 ") libmagic=64-bit;;
6309
*) libmagic=never-match;;
6311
lt_cv_deplibs_check_method=pass_all
6314
# This must be Linux ELF.
6315
linux* | k*bsd*-gnu)
6316
lt_cv_deplibs_check_method=pass_all
6320
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6321
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6323
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6328
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6329
lt_cv_file_magic_cmd=/usr/bin/file
6330
lt_cv_file_magic_test_file=/usr/lib/libnls.so
6334
lt_cv_deplibs_check_method=pass_all
6338
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6339
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6341
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6345
osf3* | osf4* | osf5*)
6346
lt_cv_deplibs_check_method=pass_all
6350
lt_cv_deplibs_check_method=pass_all
6354
lt_cv_deplibs_check_method=pass_all
6357
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6358
lt_cv_deplibs_check_method=pass_all
6362
case $host_vendor in
6364
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]'
6365
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6368
lt_cv_deplibs_check_method=pass_all
6371
lt_cv_file_magic_cmd='/bin/file'
6372
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6375
lt_cv_file_magic_cmd='/bin/file'
6376
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6377
lt_cv_file_magic_test_file=/lib/libc.so
6380
lt_cv_deplibs_check_method=pass_all
6383
lt_cv_deplibs_check_method=pass_all
6389
lt_cv_deplibs_check_method=pass_all
6394
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6395
$as_echo "$lt_cv_deplibs_check_method" >&6; }
6396
file_magic_cmd=$lt_cv_file_magic_cmd
6397
deplibs_check_method=$lt_cv_deplibs_check_method
6398
test -z "$deplibs_check_method" && deplibs_check_method=unknown
6411
if test -n "$ac_tool_prefix"; then
6412
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6413
set dummy ${ac_tool_prefix}ar; ac_word=$2
6414
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6415
$as_echo_n "checking for $ac_word... " >&6; }
6416
if test "${ac_cv_prog_AR+set}" = set; then :
6417
$as_echo_n "(cached) " >&6
6419
if test -n "$AR"; then
6420
ac_cv_prog_AR="$AR" # Let the user override the test.
6422
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6426
test -z "$as_dir" && as_dir=.
6427
for ac_exec_ext in '' $ac_executable_extensions; do
6428
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6429
ac_cv_prog_AR="${ac_tool_prefix}ar"
6430
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6440
if test -n "$AR"; then
6441
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6442
$as_echo "$AR" >&6; }
6444
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6445
$as_echo "no" >&6; }
6450
if test -z "$ac_cv_prog_AR"; then
6452
# Extract the first word of "ar", so it can be a program name with args.
6453
set dummy ar; ac_word=$2
6454
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6455
$as_echo_n "checking for $ac_word... " >&6; }
6456
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6457
$as_echo_n "(cached) " >&6
6459
if test -n "$ac_ct_AR"; then
6460
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6462
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6466
test -z "$as_dir" && as_dir=.
6467
for ac_exec_ext in '' $ac_executable_extensions; do
6468
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6469
ac_cv_prog_ac_ct_AR="ar"
6470
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6479
ac_ct_AR=$ac_cv_prog_ac_ct_AR
6480
if test -n "$ac_ct_AR"; then
6481
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6482
$as_echo "$ac_ct_AR" >&6; }
6484
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6485
$as_echo "no" >&6; }
6488
if test "x$ac_ct_AR" = x; then
6491
case $cross_compiling:$ac_tool_warned in
6493
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6494
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6495
ac_tool_warned=yes ;;
6503
test -z "$AR" && AR=ar
6504
test -z "$AR_FLAGS" && AR_FLAGS=cru
6516
if test -n "$ac_tool_prefix"; then
6517
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6518
set dummy ${ac_tool_prefix}strip; ac_word=$2
6519
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6520
$as_echo_n "checking for $ac_word... " >&6; }
6521
if test "${ac_cv_prog_STRIP+set}" = set; then :
6522
$as_echo_n "(cached) " >&6
6524
if test -n "$STRIP"; then
6525
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6527
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6531
test -z "$as_dir" && as_dir=.
6532
for ac_exec_ext in '' $ac_executable_extensions; do
6533
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6534
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6535
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6544
STRIP=$ac_cv_prog_STRIP
6545
if test -n "$STRIP"; then
6546
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6547
$as_echo "$STRIP" >&6; }
6549
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6550
$as_echo "no" >&6; }
6555
if test -z "$ac_cv_prog_STRIP"; then
6557
# Extract the first word of "strip", so it can be a program name with args.
6558
set dummy strip; ac_word=$2
6559
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6560
$as_echo_n "checking for $ac_word... " >&6; }
6561
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6562
$as_echo_n "(cached) " >&6
6564
if test -n "$ac_ct_STRIP"; then
6565
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6567
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6571
test -z "$as_dir" && as_dir=.
6572
for ac_exec_ext in '' $ac_executable_extensions; do
6573
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6574
ac_cv_prog_ac_ct_STRIP="strip"
6575
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6584
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6585
if test -n "$ac_ct_STRIP"; then
6586
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6587
$as_echo "$ac_ct_STRIP" >&6; }
6589
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6590
$as_echo "no" >&6; }
6593
if test "x$ac_ct_STRIP" = x; then
6596
case $cross_compiling:$ac_tool_warned in
6598
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6599
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6600
ac_tool_warned=yes ;;
6605
STRIP="$ac_cv_prog_STRIP"
6608
test -z "$STRIP" && STRIP=:
6615
if test -n "$ac_tool_prefix"; then
6616
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6617
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6618
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6619
$as_echo_n "checking for $ac_word... " >&6; }
6620
if test "${ac_cv_prog_RANLIB+set}" = set; then :
6621
$as_echo_n "(cached) " >&6
6623
if test -n "$RANLIB"; then
6624
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6626
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6630
test -z "$as_dir" && as_dir=.
6631
for ac_exec_ext in '' $ac_executable_extensions; do
6632
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6633
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6634
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6643
RANLIB=$ac_cv_prog_RANLIB
6644
if test -n "$RANLIB"; then
6645
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6646
$as_echo "$RANLIB" >&6; }
6648
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6649
$as_echo "no" >&6; }
6654
if test -z "$ac_cv_prog_RANLIB"; then
6655
ac_ct_RANLIB=$RANLIB
6656
# Extract the first word of "ranlib", so it can be a program name with args.
6657
set dummy ranlib; ac_word=$2
6658
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6659
$as_echo_n "checking for $ac_word... " >&6; }
6660
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6661
$as_echo_n "(cached) " >&6
6663
if test -n "$ac_ct_RANLIB"; then
6664
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6666
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6670
test -z "$as_dir" && as_dir=.
6671
for ac_exec_ext in '' $ac_executable_extensions; do
6672
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6673
ac_cv_prog_ac_ct_RANLIB="ranlib"
6674
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6683
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6684
if test -n "$ac_ct_RANLIB"; then
6685
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6686
$as_echo "$ac_ct_RANLIB" >&6; }
6688
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6689
$as_echo "no" >&6; }
6692
if test "x$ac_ct_RANLIB" = x; then
6695
case $cross_compiling:$ac_tool_warned in
6697
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6698
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6699
ac_tool_warned=yes ;;
6701
RANLIB=$ac_ct_RANLIB
6704
RANLIB="$ac_cv_prog_RANLIB"
6707
test -z "$RANLIB" && RANLIB=:
6714
# Determine commands to create old-style static archives.
6715
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6716
old_postinstall_cmds='chmod 644 $oldlib'
6717
old_postuninstall_cmds=
6719
if test -n "$RANLIB"; then
6722
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6725
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6728
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6764
# If no C compiler was specified, use CC.
6767
# If no C compiler flags were specified, use CFLAGS.
6768
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6770
# Allow CC to be a program name with arguments.
6774
# Check for command to grab the raw symbol name followed by C symbol from nm.
6775
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6776
$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6777
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6778
$as_echo_n "(cached) " >&6
6781
# These are sane defaults that work on at least a few old systems.
6782
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6784
# Character class describing NM global symbol codes.
6785
symcode='[BCDEGRST]'
6787
# Regexp to match symbols that can be accessed directly from C.
6788
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6790
# Define system-specific variables.
6795
cygwin* | mingw* | pw32* | cegcc*)
6796
symcode='[ABCDGISTW]'
6799
if test "$host_cpu" = ia64; then
6800
symcode='[ABCDEGRST]'
6804
symcode='[BCDEGRST]'
6807
symcode='[BCDEGQRST]'
6818
sysv5* | sco5v6* | unixware* | OpenUNIX*)
6826
# If we're using GNU nm, then use its standard symbol codes.
6827
case `$NM -V 2>&1` in
6828
*GNU* | *'with BFD'*)
6829
symcode='[ABCDGIRSTW]' ;;
6832
# Transform an extracted symbol line into a proper C declaration.
6833
# Some systems (esp. on ia64) link data and code symbols differently,
6834
# so use this general approach.
6835
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6837
# Transform an extracted symbol line into symbol name and symbol address
6838
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6839
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'"
6841
# Handle CRLF in mingw tool chain
6845
opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6849
# Try without a prefix underscore, then with it.
6850
for ac_symprfx in "" "_"; do
6852
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6853
symxfrm="\\1 $ac_symprfx\\2 \\2"
6855
# Write the raw and C identifiers.
6856
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6857
# Fake it for dumpbin and say T for any non-static function
6858
# and D for any global variable.
6859
# Also find C++ and __fastcall symbols from MSVC++,
6860
# which start with @ or ?.
6861
lt_cv_sys_global_symbol_pipe="$AWK '"\
6862
" {last_section=section; section=\$ 3};"\
6863
" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6864
" \$ 0!~/External *\|/{next};"\
6865
" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6866
" {if(hide[section]) next};"\
6867
" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6868
" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6869
" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6870
" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6871
" ' prfx=^$ac_symprfx"
6873
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6876
# Check to see that the pipe works correctly.
6880
cat > conftest.$ac_ext <<_LT_EOF
6885
void nm_test_func(void);
6886
void nm_test_func(void){}
6890
int main(){nm_test_var='a';nm_test_func();return(0);}
6893
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6894
(eval $ac_compile) 2>&5
6896
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6897
test $ac_status = 0; }; then
6898
# Now try to grab the symbols.
6900
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6901
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6903
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6904
test $ac_status = 0; } && test -s "$nlist"; then
6905
# Try sorting and uniquifying the output.
6906
if sort "$nlist" | uniq > "$nlist"T; then
6907
mv -f "$nlist"T "$nlist"
6912
# Make sure that we snagged all the symbols we need.
6913
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6914
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6915
cat <<_LT_EOF > conftest.$ac_ext
6921
# Now generate the symbol file.
6922
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6924
cat <<_LT_EOF >> conftest.$ac_ext
6926
/* The mapping between symbol names and symbols. */
6931
lt__PROGRAM__LTX_preloaded_symbols[] =
6933
{ "@PROGRAM@", (void *) 0 },
6935
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6936
cat <<\_LT_EOF >> conftest.$ac_ext
6940
/* This works around a problem in FreeBSD linker */
6941
#ifdef FREEBSD_WORKAROUND
6942
static const void *lt_preloaded_setup() {
6943
return lt__PROGRAM__LTX_preloaded_symbols;
6951
# Now try linking the two files.
6952
mv conftest.$ac_objext conftstm.$ac_objext
6953
lt_save_LIBS="$LIBS"
6954
lt_save_CFLAGS="$CFLAGS"
6955
LIBS="conftstm.$ac_objext"
6956
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6957
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6958
(eval $ac_link) 2>&5
6960
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6961
test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6964
LIBS="$lt_save_LIBS"
6965
CFLAGS="$lt_save_CFLAGS"
6967
echo "cannot find nm_test_func in $nlist" >&5
6970
echo "cannot find nm_test_var in $nlist" >&5
6973
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6976
echo "$progname: failed program was:" >&5
6977
cat conftest.$ac_ext >&5
6979
rm -rf conftest* conftst*
6981
# Do not use the global_symbol_pipe unless it works.
6982
if test "$pipe_works" = yes; then
6985
lt_cv_sys_global_symbol_pipe=
6991
if test -z "$lt_cv_sys_global_symbol_pipe"; then
6992
lt_cv_sys_global_symbol_to_cdecl=
6994
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6995
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6996
$as_echo "failed" >&6; }
6998
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6999
$as_echo "ok" >&6; }
7023
# Check whether --enable-libtool-lock was given.
7024
if test "${enable_libtool_lock+set}" = set; then :
7025
enableval=$enable_libtool_lock;
7028
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7030
# Some flags need to be propagated to the compiler or linker for good
7034
# Find out which ABI we are using.
7035
echo 'int i;' > conftest.$ac_ext
7036
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7037
(eval $ac_compile) 2>&5
7039
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7040
test $ac_status = 0; }; then
7041
case `/usr/bin/file conftest.$ac_objext` in
7053
# Find out which ABI we are using.
7054
echo '#line 7054 "configure"' > conftest.$ac_ext
7055
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7056
(eval $ac_compile) 2>&5
7058
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7059
test $ac_status = 0; }; then
7060
if test "$lt_cv_prog_gnu_ld" = yes; then
7061
case `/usr/bin/file conftest.$ac_objext` in
7063
LD="${LD-ld} -melf32bsmip"
7066
LD="${LD-ld} -melf32bmipn32"
7069
LD="${LD-ld} -melf64bmip"
7073
case `/usr/bin/file conftest.$ac_objext` in
7089
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7090
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7091
# Find out which ABI we are using.
7092
echo 'int i;' > conftest.$ac_ext
7093
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7094
(eval $ac_compile) 2>&5
7096
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7097
test $ac_status = 0; }; then
7098
case `/usr/bin/file conftest.o` in
7101
x86_64-*kfreebsd*-gnu)
7102
LD="${LD-ld} -m elf_i386_fbsd"
7105
LD="${LD-ld} -m elf_i386"
7107
ppc64-*linux*|powerpc64-*linux*)
7108
LD="${LD-ld} -m elf32ppclinux"
7111
LD="${LD-ld} -m elf_s390"
7114
LD="${LD-ld} -m elf32_sparc"
7120
x86_64-*kfreebsd*-gnu)
7121
LD="${LD-ld} -m elf_x86_64_fbsd"
7124
LD="${LD-ld} -m elf_x86_64"
7126
ppc*-*linux*|powerpc*-*linux*)
7127
LD="${LD-ld} -m elf64ppc"
7129
s390*-*linux*|s390*-*tpf*)
7130
LD="${LD-ld} -m elf64_s390"
7133
LD="${LD-ld} -m elf64_sparc"
7143
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
7144
SAVE_CFLAGS="$CFLAGS"
7145
CFLAGS="$CFLAGS -belf"
7146
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7147
$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7148
if test "${lt_cv_cc_needs_belf+set}" = set; then :
7149
$as_echo_n "(cached) " >&6
7152
ac_cpp='$CPP $CPPFLAGS'
7153
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7154
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7155
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7157
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7158
/* end confdefs.h. */
7168
if ac_fn_c_try_link "$LINENO"; then :
7169
lt_cv_cc_needs_belf=yes
7171
lt_cv_cc_needs_belf=no
7173
rm -f core conftest.err conftest.$ac_objext \
7174
conftest$ac_exeext conftest.$ac_ext
7176
ac_cpp='$CPP $CPPFLAGS'
7177
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7178
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7179
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7182
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7183
$as_echo "$lt_cv_cc_needs_belf" >&6; }
7184
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7185
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7186
CFLAGS="$SAVE_CFLAGS"
7190
# Find out which ABI we are using.
7191
echo 'int i;' > conftest.$ac_ext
7192
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7193
(eval $ac_compile) 2>&5
7195
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7196
test $ac_status = 0; }; then
7197
case `/usr/bin/file conftest.o` in
7199
case $lt_cv_prog_gnu_ld in
7200
yes*) LD="${LD-ld} -m elf64_sparc" ;;
7202
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7214
need_locks="$enable_libtool_lock"
7218
rhapsody* | darwin*)
7219
if test -n "$ac_tool_prefix"; then
7220
# Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7221
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7222
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7223
$as_echo_n "checking for $ac_word... " >&6; }
7224
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7225
$as_echo_n "(cached) " >&6
7227
if test -n "$DSYMUTIL"; then
7228
ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7230
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7234
test -z "$as_dir" && as_dir=.
7235
for ac_exec_ext in '' $ac_executable_extensions; do
7236
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7237
ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7238
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7247
DSYMUTIL=$ac_cv_prog_DSYMUTIL
7248
if test -n "$DSYMUTIL"; then
7249
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7250
$as_echo "$DSYMUTIL" >&6; }
7252
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7253
$as_echo "no" >&6; }
7258
if test -z "$ac_cv_prog_DSYMUTIL"; then
7259
ac_ct_DSYMUTIL=$DSYMUTIL
7260
# Extract the first word of "dsymutil", so it can be a program name with args.
7261
set dummy dsymutil; ac_word=$2
7262
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7263
$as_echo_n "checking for $ac_word... " >&6; }
7264
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7265
$as_echo_n "(cached) " >&6
7267
if test -n "$ac_ct_DSYMUTIL"; then
7268
ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7270
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7274
test -z "$as_dir" && as_dir=.
7275
for ac_exec_ext in '' $ac_executable_extensions; do
7276
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7277
ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7278
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7287
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7288
if test -n "$ac_ct_DSYMUTIL"; then
7289
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7290
$as_echo "$ac_ct_DSYMUTIL" >&6; }
7292
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7293
$as_echo "no" >&6; }
7296
if test "x$ac_ct_DSYMUTIL" = x; then
7299
case $cross_compiling:$ac_tool_warned in
7301
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7302
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7303
ac_tool_warned=yes ;;
7305
DSYMUTIL=$ac_ct_DSYMUTIL
7308
DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7311
if test -n "$ac_tool_prefix"; then
7312
# Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7313
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7314
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7315
$as_echo_n "checking for $ac_word... " >&6; }
7316
if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7317
$as_echo_n "(cached) " >&6
7319
if test -n "$NMEDIT"; then
7320
ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7322
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7326
test -z "$as_dir" && as_dir=.
7327
for ac_exec_ext in '' $ac_executable_extensions; do
7328
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7329
ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7330
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7339
NMEDIT=$ac_cv_prog_NMEDIT
7340
if test -n "$NMEDIT"; then
7341
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7342
$as_echo "$NMEDIT" >&6; }
7344
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7345
$as_echo "no" >&6; }
7350
if test -z "$ac_cv_prog_NMEDIT"; then
7351
ac_ct_NMEDIT=$NMEDIT
7352
# Extract the first word of "nmedit", so it can be a program name with args.
7353
set dummy nmedit; ac_word=$2
7354
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7355
$as_echo_n "checking for $ac_word... " >&6; }
7356
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7357
$as_echo_n "(cached) " >&6
7359
if test -n "$ac_ct_NMEDIT"; then
7360
ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7362
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7366
test -z "$as_dir" && as_dir=.
7367
for ac_exec_ext in '' $ac_executable_extensions; do
7368
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7369
ac_cv_prog_ac_ct_NMEDIT="nmedit"
7370
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7379
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7380
if test -n "$ac_ct_NMEDIT"; then
7381
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7382
$as_echo "$ac_ct_NMEDIT" >&6; }
7384
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7385
$as_echo "no" >&6; }
7388
if test "x$ac_ct_NMEDIT" = x; then
7391
case $cross_compiling:$ac_tool_warned in
7393
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7394
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7395
ac_tool_warned=yes ;;
7397
NMEDIT=$ac_ct_NMEDIT
7400
NMEDIT="$ac_cv_prog_NMEDIT"
7403
if test -n "$ac_tool_prefix"; then
7404
# Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7405
set dummy ${ac_tool_prefix}lipo; ac_word=$2
7406
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7407
$as_echo_n "checking for $ac_word... " >&6; }
7408
if test "${ac_cv_prog_LIPO+set}" = set; then :
7409
$as_echo_n "(cached) " >&6
7411
if test -n "$LIPO"; then
7412
ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7414
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7418
test -z "$as_dir" && as_dir=.
7419
for ac_exec_ext in '' $ac_executable_extensions; do
7420
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7421
ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7422
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7431
LIPO=$ac_cv_prog_LIPO
7432
if test -n "$LIPO"; then
7433
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7434
$as_echo "$LIPO" >&6; }
7436
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7437
$as_echo "no" >&6; }
7442
if test -z "$ac_cv_prog_LIPO"; then
7444
# Extract the first word of "lipo", so it can be a program name with args.
7445
set dummy lipo; ac_word=$2
7446
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7447
$as_echo_n "checking for $ac_word... " >&6; }
7448
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7449
$as_echo_n "(cached) " >&6
7451
if test -n "$ac_ct_LIPO"; then
7452
ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7454
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7458
test -z "$as_dir" && as_dir=.
7459
for ac_exec_ext in '' $ac_executable_extensions; do
7460
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7461
ac_cv_prog_ac_ct_LIPO="lipo"
7462
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7471
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7472
if test -n "$ac_ct_LIPO"; then
7473
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7474
$as_echo "$ac_ct_LIPO" >&6; }
7476
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7477
$as_echo "no" >&6; }
7480
if test "x$ac_ct_LIPO" = x; then
7483
case $cross_compiling:$ac_tool_warned in
7485
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7486
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7487
ac_tool_warned=yes ;;
7492
LIPO="$ac_cv_prog_LIPO"
7495
if test -n "$ac_tool_prefix"; then
7496
# Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7497
set dummy ${ac_tool_prefix}otool; ac_word=$2
7498
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7499
$as_echo_n "checking for $ac_word... " >&6; }
7500
if test "${ac_cv_prog_OTOOL+set}" = set; then :
7501
$as_echo_n "(cached) " >&6
7503
if test -n "$OTOOL"; then
7504
ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7506
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7510
test -z "$as_dir" && as_dir=.
7511
for ac_exec_ext in '' $ac_executable_extensions; do
7512
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7513
ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7514
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7523
OTOOL=$ac_cv_prog_OTOOL
7524
if test -n "$OTOOL"; then
7525
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7526
$as_echo "$OTOOL" >&6; }
7528
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7529
$as_echo "no" >&6; }
7534
if test -z "$ac_cv_prog_OTOOL"; then
7536
# Extract the first word of "otool", so it can be a program name with args.
7537
set dummy otool; ac_word=$2
7538
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7539
$as_echo_n "checking for $ac_word... " >&6; }
7540
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7541
$as_echo_n "(cached) " >&6
7543
if test -n "$ac_ct_OTOOL"; then
7544
ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7546
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7550
test -z "$as_dir" && as_dir=.
7551
for ac_exec_ext in '' $ac_executable_extensions; do
7552
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7553
ac_cv_prog_ac_ct_OTOOL="otool"
7554
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7563
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7564
if test -n "$ac_ct_OTOOL"; then
7565
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7566
$as_echo "$ac_ct_OTOOL" >&6; }
7568
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7569
$as_echo "no" >&6; }
7572
if test "x$ac_ct_OTOOL" = x; then
7575
case $cross_compiling:$ac_tool_warned in
7577
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7578
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7579
ac_tool_warned=yes ;;
7584
OTOOL="$ac_cv_prog_OTOOL"
7587
if test -n "$ac_tool_prefix"; then
7588
# Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7589
set dummy ${ac_tool_prefix}otool64; ac_word=$2
7590
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7591
$as_echo_n "checking for $ac_word... " >&6; }
7592
if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7593
$as_echo_n "(cached) " >&6
7595
if test -n "$OTOOL64"; then
7596
ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7598
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7602
test -z "$as_dir" && as_dir=.
7603
for ac_exec_ext in '' $ac_executable_extensions; do
7604
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7605
ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7606
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7615
OTOOL64=$ac_cv_prog_OTOOL64
7616
if test -n "$OTOOL64"; then
7617
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7618
$as_echo "$OTOOL64" >&6; }
7620
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7621
$as_echo "no" >&6; }
7626
if test -z "$ac_cv_prog_OTOOL64"; then
7627
ac_ct_OTOOL64=$OTOOL64
7628
# Extract the first word of "otool64", so it can be a program name with args.
7629
set dummy otool64; ac_word=$2
7630
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7631
$as_echo_n "checking for $ac_word... " >&6; }
7632
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7633
$as_echo_n "(cached) " >&6
7635
if test -n "$ac_ct_OTOOL64"; then
7636
ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7638
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7642
test -z "$as_dir" && as_dir=.
7643
for ac_exec_ext in '' $ac_executable_extensions; do
7644
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7645
ac_cv_prog_ac_ct_OTOOL64="otool64"
7646
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7655
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7656
if test -n "$ac_ct_OTOOL64"; then
7657
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7658
$as_echo "$ac_ct_OTOOL64" >&6; }
7660
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7661
$as_echo "no" >&6; }
7664
if test "x$ac_ct_OTOOL64" = x; then
7667
case $cross_compiling:$ac_tool_warned in
7669
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7670
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7671
ac_tool_warned=yes ;;
7673
OTOOL64=$ac_ct_OTOOL64
7676
OTOOL64="$ac_cv_prog_OTOOL64"
7705
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7706
$as_echo_n "checking for -single_module linker flag... " >&6; }
7707
if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7708
$as_echo_n "(cached) " >&6
7710
lt_cv_apple_cc_single_mod=no
7711
if test -z "${LT_MULTI_MODULE}"; then
7712
# By default we will add the -single_module flag. You can override
7713
# by either setting the environment variable LT_MULTI_MODULE
7714
# non-empty at configure time, or by adding -multi_module to the
7716
rm -rf libconftest.dylib*
7717
echo "int foo(void){return 1;}" > conftest.c
7718
echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7719
-dynamiclib -Wl,-single_module conftest.c" >&5
7720
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7721
-dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7723
if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7724
lt_cv_apple_cc_single_mod=yes
7726
cat conftest.err >&5
7728
rm -rf libconftest.dylib*
7732
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7733
$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7734
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7735
$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7736
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7737
$as_echo_n "(cached) " >&6
7739
lt_cv_ld_exported_symbols_list=no
7740
save_LDFLAGS=$LDFLAGS
7741
echo "_main" > conftest.sym
7742
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7743
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7744
/* end confdefs.h. */
7754
if ac_fn_c_try_link "$LINENO"; then :
7755
lt_cv_ld_exported_symbols_list=yes
7757
lt_cv_ld_exported_symbols_list=no
7759
rm -f core conftest.err conftest.$ac_objext \
7760
conftest$ac_exeext conftest.$ac_ext
7761
LDFLAGS="$save_LDFLAGS"
7764
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7765
$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7767
rhapsody* | darwin1.[012])
7768
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7770
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7771
darwin*) # darwin 5.x on
7772
# if running on 10.5 or later, the deployment target defaults
7773
# to the OS version, if on x86, and 10.4, the deployment
7774
# target defaults to 10.4. Don't you love it?
7775
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7776
10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7777
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7779
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7781
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7785
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7786
_lt_dar_single_mod='$single_module'
7788
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7789
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7791
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7793
if test "$DSYMUTIL" != ":"; then
7794
_lt_dsymutil='~$DSYMUTIL $lib || :'
7801
for ac_header in dlfcn.h
7803
ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7805
if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7806
cat >>confdefs.h <<_ACEOF
7807
#define HAVE_DLFCN_H 1
7817
enable_win32_dll=yes
7820
*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
7821
if test -n "$ac_tool_prefix"; then
7822
# Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7823
set dummy ${ac_tool_prefix}as; ac_word=$2
7824
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7825
$as_echo_n "checking for $ac_word... " >&6; }
7826
if test "${ac_cv_prog_AS+set}" = set; then :
7827
$as_echo_n "(cached) " >&6
7829
if test -n "$AS"; then
7830
ac_cv_prog_AS="$AS" # Let the user override the test.
7832
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7836
test -z "$as_dir" && as_dir=.
7837
for ac_exec_ext in '' $ac_executable_extensions; do
7838
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7839
ac_cv_prog_AS="${ac_tool_prefix}as"
7840
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7850
if test -n "$AS"; then
7851
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7852
$as_echo "$AS" >&6; }
7854
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7855
$as_echo "no" >&6; }
7860
if test -z "$ac_cv_prog_AS"; then
7862
# Extract the first word of "as", so it can be a program name with args.
7863
set dummy as; ac_word=$2
7864
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7865
$as_echo_n "checking for $ac_word... " >&6; }
7866
if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
7867
$as_echo_n "(cached) " >&6
7869
if test -n "$ac_ct_AS"; then
7870
ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7872
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7876
test -z "$as_dir" && as_dir=.
7877
for ac_exec_ext in '' $ac_executable_extensions; do
7878
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7879
ac_cv_prog_ac_ct_AS="as"
7880
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7889
ac_ct_AS=$ac_cv_prog_ac_ct_AS
7890
if test -n "$ac_ct_AS"; then
7891
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7892
$as_echo "$ac_ct_AS" >&6; }
7894
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7895
$as_echo "no" >&6; }
7898
if test "x$ac_ct_AS" = x; then
7901
case $cross_compiling:$ac_tool_warned in
7903
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7904
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7905
ac_tool_warned=yes ;;
7913
if test -n "$ac_tool_prefix"; then
7914
# Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7915
set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7916
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7917
$as_echo_n "checking for $ac_word... " >&6; }
7918
if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
7919
$as_echo_n "(cached) " >&6
7921
if test -n "$DLLTOOL"; then
7922
ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7924
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7928
test -z "$as_dir" && as_dir=.
7929
for ac_exec_ext in '' $ac_executable_extensions; do
7930
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7931
ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7932
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7941
DLLTOOL=$ac_cv_prog_DLLTOOL
7942
if test -n "$DLLTOOL"; then
7943
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7944
$as_echo "$DLLTOOL" >&6; }
7946
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7947
$as_echo "no" >&6; }
7952
if test -z "$ac_cv_prog_DLLTOOL"; then
7953
ac_ct_DLLTOOL=$DLLTOOL
7954
# Extract the first word of "dlltool", so it can be a program name with args.
7955
set dummy dlltool; ac_word=$2
7956
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7957
$as_echo_n "checking for $ac_word... " >&6; }
7958
if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
7959
$as_echo_n "(cached) " >&6
7961
if test -n "$ac_ct_DLLTOOL"; then
7962
ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7964
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7968
test -z "$as_dir" && as_dir=.
7969
for ac_exec_ext in '' $ac_executable_extensions; do
7970
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7971
ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7972
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7981
ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7982
if test -n "$ac_ct_DLLTOOL"; then
7983
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7984
$as_echo "$ac_ct_DLLTOOL" >&6; }
7986
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7987
$as_echo "no" >&6; }
7990
if test "x$ac_ct_DLLTOOL" = x; then
7993
case $cross_compiling:$ac_tool_warned in
7995
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7996
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7997
ac_tool_warned=yes ;;
7999
DLLTOOL=$ac_ct_DLLTOOL
8002
DLLTOOL="$ac_cv_prog_DLLTOOL"
8005
if test -n "$ac_tool_prefix"; then
8006
# Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8007
set dummy ${ac_tool_prefix}objdump; ac_word=$2
8008
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8009
$as_echo_n "checking for $ac_word... " >&6; }
8010
if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
8011
$as_echo_n "(cached) " >&6
8013
if test -n "$OBJDUMP"; then
8014
ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8016
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8020
test -z "$as_dir" && as_dir=.
8021
for ac_exec_ext in '' $ac_executable_extensions; do
8022
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8023
ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8024
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8033
OBJDUMP=$ac_cv_prog_OBJDUMP
8034
if test -n "$OBJDUMP"; then
8035
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8036
$as_echo "$OBJDUMP" >&6; }
8038
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8039
$as_echo "no" >&6; }
8044
if test -z "$ac_cv_prog_OBJDUMP"; then
8045
ac_ct_OBJDUMP=$OBJDUMP
8046
# Extract the first word of "objdump", so it can be a program name with args.
8047
set dummy objdump; ac_word=$2
8048
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8049
$as_echo_n "checking for $ac_word... " >&6; }
8050
if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
8051
$as_echo_n "(cached) " >&6
8053
if test -n "$ac_ct_OBJDUMP"; then
8054
ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8056
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8060
test -z "$as_dir" && as_dir=.
8061
for ac_exec_ext in '' $ac_executable_extensions; do
8062
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8063
ac_cv_prog_ac_ct_OBJDUMP="objdump"
8064
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8073
ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8074
if test -n "$ac_ct_OBJDUMP"; then
8075
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8076
$as_echo "$ac_ct_OBJDUMP" >&6; }
8078
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8079
$as_echo "no" >&6; }
8082
if test "x$ac_ct_OBJDUMP" = x; then
8085
case $cross_compiling:$ac_tool_warned in
8087
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8088
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8089
ac_tool_warned=yes ;;
8091
OBJDUMP=$ac_ct_OBJDUMP
8094
OBJDUMP="$ac_cv_prog_OBJDUMP"
8100
test -z "$AS" && AS=as
8106
test -z "$DLLTOOL" && DLLTOOL=dlltool
8112
test -z "$OBJDUMP" && OBJDUMP=objdump
8124
# Check whether --enable-shared was given.
8125
if test "${enable_shared+set}" = set; then :
8126
enableval=$enable_shared; p=${PACKAGE-default}
8128
yes) enable_shared=yes ;;
8129
no) enable_shared=no ;;
8132
# Look at the argument we got. We use all the common list separators.
8133
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8134
for pkg in $enableval; do
8136
if test "X$pkg" = "X$p"; then
8155
# Check whether --enable-static was given.
8156
if test "${enable_static+set}" = set; then :
8157
enableval=$enable_static; p=${PACKAGE-default}
8159
yes) enable_static=yes ;;
8160
no) enable_static=no ;;
8163
# Look at the argument we got. We use all the common list separators.
8164
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8165
for pkg in $enableval; do
8167
if test "X$pkg" = "X$p"; then
8187
# Check whether --with-pic was given.
8188
if test "${with_pic+set}" = set; then :
8189
withval=$with_pic; pic_mode="$withval"
8195
test -z "$pic_mode" && pic_mode=default
8203
# Check whether --enable-fast-install was given.
8204
if test "${enable_fast_install+set}" = set; then :
8205
enableval=$enable_fast_install; p=${PACKAGE-default}
8207
yes) enable_fast_install=yes ;;
8208
no) enable_fast_install=no ;;
8210
enable_fast_install=no
8211
# Look at the argument we got. We use all the common list separators.
8212
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8213
for pkg in $enableval; do
8215
if test "X$pkg" = "X$p"; then
8216
enable_fast_install=yes
8223
enable_fast_install=yes
8236
# This can be used to rebuild libtool when needed
8237
LIBTOOL_DEPS="$ltmain"
8239
# Always use our own libtool.
8240
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8266
test -z "$LN_S" && LN_S="ln -s"
8281
if test -n "${ZSH_VERSION+set}" ; then
8282
setopt NO_GLOB_SUBST
8285
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8286
$as_echo_n "checking for objdir... " >&6; }
8287
if test "${lt_cv_objdir+set}" = set; then :
8288
$as_echo_n "(cached) " >&6
8290
rm -f .libs 2>/dev/null
8291
mkdir .libs 2>/dev/null
8292
if test -d .libs; then
8295
# MS-DOS does not allow filenames that begin with a dot.
8298
rmdir .libs 2>/dev/null
8300
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8301
$as_echo "$lt_cv_objdir" >&6; }
8302
objdir=$lt_cv_objdir
8308
cat >>confdefs.h <<_ACEOF
8309
#define LT_OBJDIR "$lt_cv_objdir/"
8330
# AIX sometimes has problems with the GCC collect2 program. For some
8331
# reason, if we set the COLLECT_NAMES environment variable, the problems
8332
# vanish in a puff of smoke.
8333
if test "X${COLLECT_NAMES+set}" != Xset; then
8335
export COLLECT_NAMES
8340
# Sed substitution that helps us do robust quoting. It backslashifies
8341
# metacharacters that are still active within double-quoted strings.
8342
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8344
# Same as above, but do not quote variable references.
8345
double_quote_subst='s/\(["`\\]\)/\\\1/g'
8347
# Sed substitution to delay expansion of an escaped shell variable in a
8348
# double_quote_subst'ed string.
8349
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8351
# Sed substitution to delay expansion of an escaped single quote.
8352
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8354
# Sed substitution to avoid accidental globbing in evaled expressions
8355
no_glob_subst='s/\*/\\\*/g'
8359
can_build_shared=yes
8361
# All known linkers require a `.a' archive for static linking (except MSVC,
8362
# which needs '.lib').
8365
with_gnu_ld="$lt_cv_prog_gnu_ld"
8368
old_CFLAGS="$CFLAGS"
8370
# Set sane defaults for various variables
8371
test -z "$CC" && CC=cc
8372
test -z "$LTCC" && LTCC=$CC
8373
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8374
test -z "$LD" && LD=ld
8375
test -z "$ac_objext" && ac_objext=o
8377
for cc_temp in $compiler""; do
8379
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8380
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8385
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8388
# Only perform the check for file, if the check method requires it
8389
test -z "$MAGIC_CMD" && MAGIC_CMD=file
8390
case $deplibs_check_method in
8392
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8393
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8394
$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8395
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8396
$as_echo_n "(cached) " >&6
8400
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8403
lt_save_MAGIC_CMD="$MAGIC_CMD"
8404
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8405
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8406
for ac_dir in $ac_dummy; do
8408
test -z "$ac_dir" && ac_dir=.
8409
if test -f $ac_dir/${ac_tool_prefix}file; then
8410
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8411
if test -n "$file_magic_test_file"; then
8412
case $deplibs_check_method in
8414
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8415
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8416
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8417
$EGREP "$file_magic_regex" > /dev/null; then
8422
*** Warning: the command libtool uses to detect shared libraries,
8423
*** $file_magic_cmd, produces output that libtool cannot recognize.
8424
*** The result is that libtool may fail to recognize shared libraries
8425
*** as such. This will affect the creation of libtool libraries that
8426
*** depend on shared libraries, but programs linked with such libtool
8427
*** libraries will work regardless of this problem. Nevertheless, you
8428
*** may want to report the problem to your system manager and/or to
8429
*** bug-libtool@gnu.org
8439
MAGIC_CMD="$lt_save_MAGIC_CMD"
8444
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8445
if test -n "$MAGIC_CMD"; then
8446
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8447
$as_echo "$MAGIC_CMD" >&6; }
8449
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8450
$as_echo "no" >&6; }
8457
if test -z "$lt_cv_path_MAGIC_CMD"; then
8458
if test -n "$ac_tool_prefix"; then
8459
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8460
$as_echo_n "checking for file... " >&6; }
8461
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8462
$as_echo_n "(cached) " >&6
8466
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8469
lt_save_MAGIC_CMD="$MAGIC_CMD"
8470
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8471
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8472
for ac_dir in $ac_dummy; do
8474
test -z "$ac_dir" && ac_dir=.
8475
if test -f $ac_dir/file; then
8476
lt_cv_path_MAGIC_CMD="$ac_dir/file"
8477
if test -n "$file_magic_test_file"; then
8478
case $deplibs_check_method in
8480
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8481
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8482
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8483
$EGREP "$file_magic_regex" > /dev/null; then
8488
*** Warning: the command libtool uses to detect shared libraries,
8489
*** $file_magic_cmd, produces output that libtool cannot recognize.
8490
*** The result is that libtool may fail to recognize shared libraries
8491
*** as such. This will affect the creation of libtool libraries that
8492
*** depend on shared libraries, but programs linked with such libtool
8493
*** libraries will work regardless of this problem. Nevertheless, you
8494
*** may want to report the problem to your system manager and/or to
8495
*** bug-libtool@gnu.org
8505
MAGIC_CMD="$lt_save_MAGIC_CMD"
8510
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8511
if test -n "$MAGIC_CMD"; then
8512
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8513
$as_echo "$MAGIC_CMD" >&6; }
8515
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8516
$as_echo "no" >&6; }
8529
# Use C for the default configuration in the libtool script
8533
ac_cpp='$CPP $CPPFLAGS'
8534
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8535
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8536
ac_compiler_gnu=$ac_cv_c_compiler_gnu
8539
# Source file extension for C test sources.
8542
# Object file extension for compiled C test sources.
8546
# Code to be used in simple compile tests
8547
lt_simple_compile_test_code="int some_variable = 0;"
8549
# Code to be used in simple link tests
8550
lt_simple_link_test_code='int main(){return(0);}'
8558
# If no C compiler was specified, use CC.
8561
# If no C compiler flags were specified, use CFLAGS.
8562
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8564
# Allow CC to be a program name with arguments.
8567
# Save the default compiler, since it gets overwritten when the other
8568
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8569
compiler_DEFAULT=$CC
8571
# save warnings/boilerplate of simple test code
8572
ac_outfile=conftest.$ac_objext
8573
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8574
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8575
_lt_compiler_boilerplate=`cat conftest.err`
8578
ac_outfile=conftest.$ac_objext
8579
echo "$lt_simple_link_test_code" >conftest.$ac_ext
8580
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8581
_lt_linker_boilerplate=`cat conftest.err`
8585
if test -n "$compiler"; then
8587
lt_prog_compiler_no_builtin_flag=
8589
if test "$GCC" = yes; then
8590
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8592
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8593
$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8594
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8595
$as_echo_n "(cached) " >&6
8597
lt_cv_prog_compiler_rtti_exceptions=no
8598
ac_outfile=conftest.$ac_objext
8599
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8600
lt_compiler_flag="-fno-rtti -fno-exceptions"
8601
# Insert the option either (1) after the last *FLAGS variable, or
8602
# (2) before a word containing "conftest.", or (3) at the end.
8603
# Note that $ac_compile itself does not contain backslashes and begins
8604
# with a dollar sign (not a hyphen), so the echo should work correctly.
8605
# The option is referenced via a variable to avoid confusing sed.
8606
lt_compile=`echo "$ac_compile" | $SED \
8607
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8608
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8609
-e 's:$: $lt_compiler_flag:'`
8610
(eval echo "\"\$as_me:8610: $lt_compile\"" >&5)
8611
(eval "$lt_compile" 2>conftest.err)
8613
cat conftest.err >&5
8614
echo "$as_me:8614: \$? = $ac_status" >&5
8615
if (exit $ac_status) && test -s "$ac_outfile"; then
8616
# The compiler can only warn and ignore the option if not recognized
8617
# So say no if there are warnings other than the usual output.
8618
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8619
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8620
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8621
lt_cv_prog_compiler_rtti_exceptions=yes
8627
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8628
$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8630
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8631
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8643
lt_prog_compiler_wl=
8644
lt_prog_compiler_pic=
8645
lt_prog_compiler_static=
8647
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8648
$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8650
if test "$GCC" = yes; then
8651
lt_prog_compiler_wl='-Wl,'
8652
lt_prog_compiler_static='-static'
8656
# All AIX code is PIC.
8657
if test "$host_cpu" = ia64; then
8658
# AIX 5 now supports IA64 processor
8659
lt_prog_compiler_static='-Bstatic'
8666
# see comment about AmigaOS4 .so support
8667
lt_prog_compiler_pic='-fPIC'
8670
# FIXME: we need at least 68020 code to build shared libraries, but
8671
# adding the `-m68020' flag to GCC prevents building anything better,
8673
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8678
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8679
# PIC is the default for these OSes.
8682
mingw* | cygwin* | pw32* | os2* | cegcc*)
8683
# This hack is so that the source file can tell whether it is being
8684
# built for inclusion in a dll (and should export symbols for example).
8685
# Although the cygwin gcc ignores -fPIC, still need this for old-style
8686
# (--disable-auto-import) libraries
8687
lt_prog_compiler_pic='-DDLL_EXPORT'
8690
darwin* | rhapsody*)
8691
# PIC is the default on this platform
8692
# Common symbols not allowed in MH_DYLIB files
8693
lt_prog_compiler_pic='-fno-common'
8697
# PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8698
# PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8699
# sets the default TLS model and affects inlining.
8705
lt_prog_compiler_pic='-fPIC'
8711
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
8712
# Instead, we relocate shared libraries at runtime.
8716
# Just because we use GCC doesn't mean we suddenly get shared libraries
8717
# on systems that don't support them.
8718
lt_prog_compiler_can_build_shared=no
8723
# QNX uses GNU C++, but need to define -shared option too, otherwise
8725
lt_prog_compiler_pic='-fPIC -shared'
8729
if test -d /usr/nec; then
8730
lt_prog_compiler_pic=-Kconform_pic
8735
lt_prog_compiler_pic='-fPIC'
8739
# PORTME Check for flag to pass linker flags through the system compiler.
8742
lt_prog_compiler_wl='-Wl,'
8743
if test "$host_cpu" = ia64; then
8744
# AIX 5 now supports IA64 processor
8745
lt_prog_compiler_static='-Bstatic'
8747
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8751
mingw* | cygwin* | pw32* | os2* | cegcc*)
8752
# This hack is so that the source file can tell whether it is being
8753
# built for inclusion in a dll (and should export symbols for example).
8754
lt_prog_compiler_pic='-DDLL_EXPORT'
8757
hpux9* | hpux10* | hpux11*)
8758
lt_prog_compiler_wl='-Wl,'
8759
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8766
lt_prog_compiler_pic='+Z'
8769
# Is there a better lt_prog_compiler_static that works with the bundled CC?
8770
lt_prog_compiler_static='${wl}-a ${wl}archive'
8773
irix5* | irix6* | nonstopux*)
8774
lt_prog_compiler_wl='-Wl,'
8775
# PIC (with -KPIC) is the default.
8776
lt_prog_compiler_static='-non_shared'
8779
linux* | k*bsd*-gnu)
8780
case $cc_basename in
8781
# old Intel for x86_64 which still supported -KPIC.
8783
lt_prog_compiler_wl='-Wl,'
8784
lt_prog_compiler_pic='-KPIC'
8785
lt_prog_compiler_static='-static'
8787
# icc used to be incompatible with GCC.
8788
# ICC 10 doesn't accept -KPIC any more.
8790
lt_prog_compiler_wl='-Wl,'
8791
lt_prog_compiler_pic='-fPIC'
8792
lt_prog_compiler_static='-static'
8794
# Lahey Fortran 8.1.
8796
lt_prog_compiler_wl='-Wl,'
8797
lt_prog_compiler_pic='--shared'
8798
lt_prog_compiler_static='--static'
8800
pgcc* | pgf77* | pgf90* | pgf95*)
8801
# Portland Group compilers (*not* the Pentium gcc compiler,
8802
# which looks to be a dead project)
8803
lt_prog_compiler_wl='-Wl,'
8804
lt_prog_compiler_pic='-fpic'
8805
lt_prog_compiler_static='-Bstatic'
8808
lt_prog_compiler_wl='-Wl,'
8809
# All Alpha code is PIC.
8810
lt_prog_compiler_static='-non_shared'
8813
# IBM XL C 8.0/Fortran 10.1 on PPC
8814
lt_prog_compiler_wl='-Wl,'
8815
lt_prog_compiler_pic='-qpic'
8816
lt_prog_compiler_static='-qstaticlink'
8819
case `$CC -V 2>&1 | sed 5q` in
8822
lt_prog_compiler_pic='-KPIC'
8823
lt_prog_compiler_static='-Bstatic'
8824
lt_prog_compiler_wl='-Wl,'
8827
# Sun Fortran 8.3 passes all unrecognized flags to the linker
8828
lt_prog_compiler_pic='-KPIC'
8829
lt_prog_compiler_static='-Bstatic'
8830
lt_prog_compiler_wl=''
8838
lt_prog_compiler_pic='-KPIC'
8839
lt_prog_compiler_static='-Bstatic'
8843
# QNX uses GNU C++, but need to define -shared option too, otherwise
8845
lt_prog_compiler_pic='-fPIC -shared'
8848
osf3* | osf4* | osf5*)
8849
lt_prog_compiler_wl='-Wl,'
8850
# All OSF/1 code is PIC.
8851
lt_prog_compiler_static='-non_shared'
8855
lt_prog_compiler_static='-non_shared'
8859
lt_prog_compiler_pic='-KPIC'
8860
lt_prog_compiler_static='-Bstatic'
8861
case $cc_basename in
8863
lt_prog_compiler_wl='-Qoption ld ';;
8865
lt_prog_compiler_wl='-Wl,';;
8870
lt_prog_compiler_wl='-Qoption ld '
8871
lt_prog_compiler_pic='-PIC'
8872
lt_prog_compiler_static='-Bstatic'
8875
sysv4 | sysv4.2uw2* | sysv4.3*)
8876
lt_prog_compiler_wl='-Wl,'
8877
lt_prog_compiler_pic='-KPIC'
8878
lt_prog_compiler_static='-Bstatic'
8882
if test -d /usr/nec ;then
8883
lt_prog_compiler_pic='-Kconform_pic'
8884
lt_prog_compiler_static='-Bstatic'
8888
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8889
lt_prog_compiler_wl='-Wl,'
8890
lt_prog_compiler_pic='-KPIC'
8891
lt_prog_compiler_static='-Bstatic'
8895
lt_prog_compiler_wl='-Wl,'
8896
lt_prog_compiler_can_build_shared=no
8900
lt_prog_compiler_pic='-pic'
8901
lt_prog_compiler_static='-Bstatic'
8905
lt_prog_compiler_can_build_shared=no
8911
# For platforms which do not support PIC, -DPIC is meaningless:
8913
lt_prog_compiler_pic=
8916
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8919
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8920
$as_echo "$lt_prog_compiler_pic" >&6; }
8928
# Check to make sure the PIC flag actually works.
8930
if test -n "$lt_prog_compiler_pic"; then
8931
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8932
$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8933
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8934
$as_echo_n "(cached) " >&6
8936
lt_cv_prog_compiler_pic_works=no
8937
ac_outfile=conftest.$ac_objext
8938
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8939
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8940
# Insert the option either (1) after the last *FLAGS variable, or
8941
# (2) before a word containing "conftest.", or (3) at the end.
8942
# Note that $ac_compile itself does not contain backslashes and begins
8943
# with a dollar sign (not a hyphen), so the echo should work correctly.
8944
# The option is referenced via a variable to avoid confusing sed.
8945
lt_compile=`echo "$ac_compile" | $SED \
8946
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8947
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8948
-e 's:$: $lt_compiler_flag:'`
8949
(eval echo "\"\$as_me:8949: $lt_compile\"" >&5)
8950
(eval "$lt_compile" 2>conftest.err)
8952
cat conftest.err >&5
8953
echo "$as_me:8953: \$? = $ac_status" >&5
8954
if (exit $ac_status) && test -s "$ac_outfile"; then
8955
# The compiler can only warn and ignore the option if not recognized
8956
# So say no if there are warnings other than the usual output.
8957
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8958
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8959
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8960
lt_cv_prog_compiler_pic_works=yes
8966
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8967
$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8969
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8970
case $lt_prog_compiler_pic in
8972
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8975
lt_prog_compiler_pic=
8976
lt_prog_compiler_can_build_shared=no
8987
# Check to make sure the static flag actually works.
8989
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8990
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8991
$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8992
if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8993
$as_echo_n "(cached) " >&6
8995
lt_cv_prog_compiler_static_works=no
8996
save_LDFLAGS="$LDFLAGS"
8997
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8998
echo "$lt_simple_link_test_code" > conftest.$ac_ext
8999
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9000
# The linker can only warn and ignore the option if not recognized
9001
# So say no if there are warnings
9002
if test -s conftest.err; then
9003
# Append any errors to the config.log.
9004
cat conftest.err 1>&5
9005
$ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
9006
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9007
if diff conftest.exp conftest.er2 >/dev/null; then
9008
lt_cv_prog_compiler_static_works=yes
9011
lt_cv_prog_compiler_static_works=yes
9015
LDFLAGS="$save_LDFLAGS"
9018
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9019
$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9021
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9024
lt_prog_compiler_static=
9033
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9034
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9035
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9036
$as_echo_n "(cached) " >&6
9038
lt_cv_prog_compiler_c_o=no
9039
$RM -r conftest 2>/dev/null
9043
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9045
lt_compiler_flag="-o out/conftest2.$ac_objext"
9046
# Insert the option either (1) after the last *FLAGS variable, or
9047
# (2) before a word containing "conftest.", or (3) at the end.
9048
# Note that $ac_compile itself does not contain backslashes and begins
9049
# with a dollar sign (not a hyphen), so the echo should work correctly.
9050
lt_compile=`echo "$ac_compile" | $SED \
9051
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9052
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9053
-e 's:$: $lt_compiler_flag:'`
9054
(eval echo "\"\$as_me:9054: $lt_compile\"" >&5)
9055
(eval "$lt_compile" 2>out/conftest.err)
9057
cat out/conftest.err >&5
9058
echo "$as_me:9058: \$? = $ac_status" >&5
9059
if (exit $ac_status) && test -s out/conftest2.$ac_objext
9061
# The compiler can only warn and ignore the option if not recognized
9062
# So say no if there are warnings
9063
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9064
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9065
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9066
lt_cv_prog_compiler_c_o=yes
9071
# SGI C++ compiler will create directory out/ii_files/ for
9072
# template instantiation
9073
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9074
$RM out/* && rmdir out
9080
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9081
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9088
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9089
$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9090
if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9091
$as_echo_n "(cached) " >&6
9093
lt_cv_prog_compiler_c_o=no
9094
$RM -r conftest 2>/dev/null
9098
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9100
lt_compiler_flag="-o out/conftest2.$ac_objext"
9101
# Insert the option either (1) after the last *FLAGS variable, or
9102
# (2) before a word containing "conftest.", or (3) at the end.
9103
# Note that $ac_compile itself does not contain backslashes and begins
9104
# with a dollar sign (not a hyphen), so the echo should work correctly.
9105
lt_compile=`echo "$ac_compile" | $SED \
9106
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9107
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9108
-e 's:$: $lt_compiler_flag:'`
9109
(eval echo "\"\$as_me:9109: $lt_compile\"" >&5)
9110
(eval "$lt_compile" 2>out/conftest.err)
9112
cat out/conftest.err >&5
9113
echo "$as_me:9113: \$? = $ac_status" >&5
9114
if (exit $ac_status) && test -s out/conftest2.$ac_objext
9116
# The compiler can only warn and ignore the option if not recognized
9117
# So say no if there are warnings
9118
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
9119
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9120
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9121
lt_cv_prog_compiler_c_o=yes
9126
# SGI C++ compiler will create directory out/ii_files/ for
9127
# template instantiation
9128
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9129
$RM out/* && rmdir out
9135
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9136
$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9141
hard_links="nottested"
9142
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9143
# do not overwrite the value of need_locks provided by the user
9144
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9145
$as_echo_n "checking if we can lock with hard links... " >&6; }
9148
ln conftest.a conftest.b 2>/dev/null && hard_links=no
9150
ln conftest.a conftest.b 2>&5 || hard_links=no
9151
ln conftest.a conftest.b 2>/dev/null && hard_links=no
9152
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9153
$as_echo "$hard_links" >&6; }
9154
if test "$hard_links" = no; then
9155
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9156
$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9168
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9169
$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9172
allow_undefined_flag=
9173
always_export_symbols=no
9175
archive_expsym_cmds=
9176
compiler_needs_object=no
9177
enable_shared_with_static_runtimes=no
9178
export_dynamic_flag_spec=
9179
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9180
hardcode_automatic=no
9182
hardcode_direct_absolute=no
9183
hardcode_libdir_flag_spec=
9184
hardcode_libdir_flag_spec_ld=
9185
hardcode_libdir_separator=
9187
hardcode_shlibpath_var=unsupported
9189
link_all_deplibs=unknown
9192
old_archive_from_new_cmds=
9193
old_archive_from_expsyms_cmds=
9194
thread_safe_flag_spec=
9195
whole_archive_flag_spec=
9196
# include_expsyms should be a list of space-separated symbols to be *always*
9197
# included in the symbol list
9199
# exclude_expsyms can be an extended regexp of symbols to exclude
9200
# it will be wrapped by ` (' and `)$', so one must not match beginning or
9201
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9202
# as well as any symbol that contains `d'.
9203
exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9204
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9205
# platforms (ab)use it in PIC code, but their linkers get confused if
9206
# the symbol is explicitly referenced. Since portable code cannot
9207
# rely on this symbol name, it's probably fine to never include it in
9208
# preloaded symbol tables.
9209
# Exclude shared library initialization/finalization symbols.
9210
extract_expsyms_cmds=
9213
cygwin* | mingw* | pw32* | cegcc*)
9214
# FIXME: the MSVC++ port hasn't been tested in a loooong time
9215
# When not using gcc, we currently assume that we are using
9216
# Microsoft Visual C++.
9217
if test "$GCC" != yes; then
9222
# we just hope/assume this is gcc and not c89 (= MSVC++)
9231
if test "$with_gnu_ld" = yes; then
9232
# If archive_cmds runs LD, not CC, wlarc should be empty
9235
# Set some defaults for GNU ld with shared library support. These
9236
# are reset later if shared libraries are not supported. Putting them
9237
# here allows them to be overridden if necessary.
9238
runpath_var=LD_RUN_PATH
9239
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9240
export_dynamic_flag_spec='${wl}--export-dynamic'
9241
# ancient GNU ld didn't support --whole-archive et. al.
9242
if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9243
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9245
whole_archive_flag_spec=
9247
supports_anon_versioning=no
9248
case `$LD -v 2>&1` in
9249
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9250
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9251
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9252
*\ 2.11.*) ;; # other 2.11 versions
9253
*) supports_anon_versioning=yes ;;
9256
# See if GNU ld supports shared libraries.
9259
# On AIX/PPC, the GNU linker is very broken
9260
if test "$host_cpu" != ia64; then
9264
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
9265
*** to be unable to reliably create shared libraries on AIX.
9266
*** Therefore, libtool is disabling shared libraries support. If you
9267
*** really care for shared libraries, you may want to modify your PATH
9268
*** so that a non-GNU linker is found, and then restart.
9277
# see comment about AmigaOS4 .so support
9278
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9279
archive_expsym_cmds=''
9282
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)'
9283
hardcode_libdir_flag_spec='-L$libdir'
9284
hardcode_minus_L=yes
9290
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9291
allow_undefined_flag=unsupported
9292
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9293
# support --undefined. This deserves some investigation. FIXME
9294
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9300
cygwin* | mingw* | pw32* | cegcc*)
9301
# _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9302
# as there is no search path for DLLs.
9303
hardcode_libdir_flag_spec='-L$libdir'
9304
allow_undefined_flag=unsupported
9305
always_export_symbols=no
9306
enable_shared_with_static_runtimes=yes
9307
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9309
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9310
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9311
# If the export-symbols file already is a .def file (1st line
9312
# is EXPORTS), use it as is; otherwise, prepend...
9313
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9314
cp $export_symbols $output_objdir/$soname.def;
9316
echo EXPORTS > $output_objdir/$soname.def;
9317
cat $export_symbols >> $output_objdir/$soname.def;
9319
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9327
hardcode_shlibpath_var=no
9328
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9329
export_dynamic_flag_spec='${wl}-E'
9330
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9331
# Instead, shared libraries are loaded at an image base (0x10000000 by
9332
# default) and relocated if they conflict, which is a slow very memory
9333
# consuming and fragmenting process. To avoid this, we pick a random,
9334
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9335
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
9336
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9337
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'
9340
gnu* | linux* | tpf* | k*bsd*-gnu)
9342
if test "$host_os" = linux-dietlibc; then
9343
case $cc_basename in
9344
diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9347
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9348
&& test "$tmp_diet" = no
9351
tmp_sharedflag='-shared'
9352
case $cc_basename,$host_cpu in
9353
pgcc*) # Portland Group C compiler
9354
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9355
tmp_addflag=' $pic_flag'
9357
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
9358
whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9359
tmp_addflag=' $pic_flag -Mnomain' ;;
9360
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9361
tmp_addflag=' -i_dynamic' ;;
9362
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9363
tmp_addflag=' -i_dynamic -nofor_main' ;;
9364
ifc* | ifort*) # Intel Fortran compiler
9365
tmp_addflag=' -nofor_main' ;;
9366
lf95*) # Lahey Fortran 8.1
9367
whole_archive_flag_spec=
9368
tmp_sharedflag='--shared' ;;
9369
xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9370
tmp_sharedflag='-qmkshrobj'
9373
case `$CC -V 2>&1 | sed 5q` in
9374
*Sun\ C*) # Sun C 5.9
9375
whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
9376
compiler_needs_object=yes
9377
tmp_sharedflag='-G' ;;
9378
*Sun\ F*) # Sun Fortran 8.3
9379
tmp_sharedflag='-G' ;;
9381
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9383
if test "x$supports_anon_versioning" = xyes; then
9384
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9385
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9386
echo "local: *; };" >> $output_objdir/$libname.ver~
9387
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9390
case $cc_basename in
9392
# IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9393
whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9394
hardcode_libdir_flag_spec=
9395
hardcode_libdir_flag_spec_ld='-rpath $libdir'
9396
archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9397
if test "x$supports_anon_versioning" = xyes; then
9398
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9399
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9400
echo "local: *; };" >> $output_objdir/$libname.ver~
9401
$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9411
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9412
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9415
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9416
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9421
if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9425
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9426
*** create shared libraries on Solaris systems. Therefore, libtool
9427
*** is disabling shared libraries support. We urge you to upgrade GNU
9428
*** binutils to release 2.9.1 or newer. Another option is to modify
9429
*** your PATH or compiler configuration so that the native linker is
9430
*** used, and then restart.
9433
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9434
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9435
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9441
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9442
case `$LD -v 2>&1` in
9443
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9447
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9448
*** reliably create shared libraries on SCO systems. Therefore, libtool
9449
*** is disabling shared libraries support. We urge you to upgrade GNU
9450
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9451
*** your PATH or compiler configuration so that the native linker is
9452
*** used, and then restart.
9457
# For security reasons, it is highly recommended that you always
9458
# use absolute paths for naming shared libraries, and exclude the
9459
# DT_RUNPATH tag from executables and libraries. But doing so
9460
# requires that you compile everything twice, which is a pain.
9461
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9462
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9463
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9464
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9473
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9476
hardcode_shlibpath_var=no
9480
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9481
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9482
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9489
if test "$ld_shlibs" = no; then
9491
hardcode_libdir_flag_spec=
9492
export_dynamic_flag_spec=
9493
whole_archive_flag_spec=
9496
# PORTME fill in a description of your system's linker (not GNU ld)
9499
allow_undefined_flag=unsupported
9500
always_export_symbols=yes
9501
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'
9502
# Note: this linker hardcodes the directories in LIBPATH if there
9503
# are no directories specified by -L.
9504
hardcode_minus_L=yes
9505
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9506
# Neither direct hardcoding nor static linking is supported with a
9508
hardcode_direct=unsupported
9513
if test "$host_cpu" = ia64; then
9514
# On IA64, the linker does run time linking by default, so we don't
9515
# have to do anything special.
9516
aix_use_runtimelinking=no
9517
exp_sym_flag='-Bexport'
9520
# If we're using GNU nm, then we don't want the "-C" option.
9521
# -C means demangle to AIX nm, but means don't demangle with GNU nm
9522
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9523
export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9525
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'
9527
aix_use_runtimelinking=no
9529
# Test if we are trying to use run time linking or normal
9530
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9531
# need to do runtime linking.
9532
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9533
for ld_flag in $LDFLAGS; do
9534
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9535
aix_use_runtimelinking=yes
9542
exp_sym_flag='-bexport'
9543
no_entry_flag='-bnoentry'
9546
# When large executables or shared objects are built, AIX ld can
9547
# have problems creating the table of contents. If linking a library
9548
# or program results in "error TOC overflow" add -mminimal-toc to
9549
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9550
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9554
hardcode_direct_absolute=yes
9555
hardcode_libdir_separator=':'
9556
link_all_deplibs=yes
9557
file_list_spec='${wl}-f,'
9559
if test "$GCC" = yes; then
9560
case $host_os in aix4.[012]|aix4.[012].*)
9561
# We only want to do this on AIX 4.2 and lower, the check
9562
# below for broken collect2 doesn't work under 4.3+
9563
collect2name=`${CC} -print-prog-name=collect2`
9564
if test -f "$collect2name" &&
9565
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9567
# We have reworked collect2
9570
# We have old collect2
9571
hardcode_direct=unsupported
9572
# It fails to find uninstalled libraries when the uninstalled
9573
# path is not listed in the libpath. Setting hardcode_minus_L
9574
# to unsupported forces relinking
9575
hardcode_minus_L=yes
9576
hardcode_libdir_flag_spec='-L$libdir'
9577
hardcode_libdir_separator=
9581
shared_flag='-shared'
9582
if test "$aix_use_runtimelinking" = yes; then
9583
shared_flag="$shared_flag "'${wl}-G'
9587
if test "$host_cpu" = ia64; then
9588
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9589
# chokes on -Wl,-G. The following line is correct:
9592
if test "$aix_use_runtimelinking" = yes; then
9593
shared_flag='${wl}-G'
9595
shared_flag='${wl}-bM:SRE'
9600
export_dynamic_flag_spec='${wl}-bexpall'
9601
# It seems that -bexpall does not export symbols beginning with
9602
# underscore (_), so it is better to generate a list of symbols to export.
9603
always_export_symbols=yes
9604
if test "$aix_use_runtimelinking" = yes; then
9605
# Warning - without using the other runtime loading flags (-brtl),
9606
# -berok will link without error, but may produce a broken library.
9607
allow_undefined_flag='-berok'
9608
# Determine the default libpath from the value encoded in an
9610
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9611
/* end confdefs.h. */
9621
if ac_fn_c_try_link "$LINENO"; then :
9623
lt_aix_libpath_sed='
9624
/Import File Strings/,/^$/ {
9630
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9631
# Check for a 64-bit object if we didn't find anything.
9632
if test -z "$aix_libpath"; then
9633
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9636
rm -f core conftest.err conftest.$ac_objext \
9637
conftest$ac_exeext conftest.$ac_ext
9638
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9640
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9641
archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9643
if test "$host_cpu" = ia64; then
9644
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9645
allow_undefined_flag="-z nodefs"
9646
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"
9648
# Determine the default libpath from the value encoded in an
9650
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9651
/* end confdefs.h. */
9661
if ac_fn_c_try_link "$LINENO"; then :
9663
lt_aix_libpath_sed='
9664
/Import File Strings/,/^$/ {
9670
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9671
# Check for a 64-bit object if we didn't find anything.
9672
if test -z "$aix_libpath"; then
9673
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9676
rm -f core conftest.err conftest.$ac_objext \
9677
conftest$ac_exeext conftest.$ac_ext
9678
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9680
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9681
# Warning - without using the other run time loading flags,
9682
# -berok will link without error, but may produce a broken library.
9683
no_undefined_flag=' ${wl}-bernotok'
9684
allow_undefined_flag=' ${wl}-berok'
9685
# Exported symbols can be pulled into shared objects from archives
9686
whole_archive_flag_spec='$convenience'
9687
archive_cmds_need_lc=yes
9688
# This is similar to how AIX traditionally builds its shared libraries.
9689
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'
9697
# see comment about AmigaOS4 .so support
9698
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9699
archive_expsym_cmds=''
9702
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)'
9703
hardcode_libdir_flag_spec='-L$libdir'
9704
hardcode_minus_L=yes
9710
export_dynamic_flag_spec=-rdynamic
9713
cygwin* | mingw* | pw32* | cegcc*)
9714
# When not using gcc, we currently assume that we are using
9715
# Microsoft Visual C++.
9716
# hardcode_libdir_flag_spec is actually meaningless, as there is
9717
# no search path for DLLs.
9718
hardcode_libdir_flag_spec=' '
9719
allow_undefined_flag=unsupported
9720
# Tell ltmain to make .lib files, not .a files.
9722
# Tell ltmain to make .dll files, not .so files.
9724
# FIXME: Setting linknames here is a bad hack.
9725
archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
9726
# The linker will automatically build a .lib file if we build a DLL.
9727
old_archive_from_new_cmds='true'
9728
# FIXME: Should let the user specify the lib program.
9729
old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9730
fix_srcfile_path='`cygpath -w "$srcfile"`'
9731
enable_shared_with_static_runtimes=yes
9734
darwin* | rhapsody*)
9737
archive_cmds_need_lc=no
9739
hardcode_automatic=yes
9740
hardcode_shlibpath_var=unsupported
9741
whole_archive_flag_spec=''
9742
link_all_deplibs=yes
9743
allow_undefined_flag="$_lt_dar_allow_undefined"
9744
case $cc_basename in
9745
ifort*) _lt_dar_can_shared=yes ;;
9746
*) _lt_dar_can_shared=$GCC ;;
9748
if test "$_lt_dar_can_shared" = "yes"; then
9749
output_verbose_link_cmd=echo
9750
archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9751
module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9752
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}"
9753
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}"
9762
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9763
hardcode_libdir_flag_spec='-L$libdir'
9764
hardcode_shlibpath_var=no
9771
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9772
# support. Future versions do this automatically, but an explicit c++rt0.o
9773
# does not break anything, and helps significantly (at the cost of a little
9776
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9777
hardcode_libdir_flag_spec='-R$libdir'
9779
hardcode_shlibpath_var=no
9782
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
9784
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9786
hardcode_minus_L=yes
9787
hardcode_shlibpath_var=no
9790
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9791
freebsd* | dragonfly*)
9792
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9793
hardcode_libdir_flag_spec='-R$libdir'
9795
hardcode_shlibpath_var=no
9799
if test "$GCC" = yes; then
9800
archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9802
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'
9804
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9805
hardcode_libdir_separator=:
9808
# hardcode_minus_L: Not really in the search PATH,
9809
# but as the default location of the library.
9810
hardcode_minus_L=yes
9811
export_dynamic_flag_spec='${wl}-E'
9815
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9816
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9818
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9820
if test "$with_gnu_ld" = no; then
9821
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9822
hardcode_libdir_flag_spec_ld='+b $libdir'
9823
hardcode_libdir_separator=:
9825
hardcode_direct_absolute=yes
9826
export_dynamic_flag_spec='${wl}-E'
9827
# hardcode_minus_L: Not really in the search PATH,
9828
# but as the default location of the library.
9829
hardcode_minus_L=yes
9834
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9837
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9840
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9843
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9849
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9852
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9855
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9859
if test "$with_gnu_ld" = no; then
9860
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9861
hardcode_libdir_separator=:
9866
hardcode_shlibpath_var=no
9870
hardcode_direct_absolute=yes
9871
export_dynamic_flag_spec='${wl}-E'
9873
# hardcode_minus_L: Not really in the search PATH,
9874
# but as the default location of the library.
9875
hardcode_minus_L=yes
9881
irix5* | irix6* | nonstopux*)
9882
if test "$GCC" = yes; then
9883
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9884
# Try to use the -exported_symbol ld option, if it does not
9885
# work, assume that -exports_file does not work either and
9886
# implicitly export all symbols.
9887
save_LDFLAGS="$LDFLAGS"
9888
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9889
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9890
/* end confdefs.h. */
9893
if ac_fn_c_try_link "$LINENO"; then :
9894
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9897
rm -f core conftest.err conftest.$ac_objext \
9898
conftest$ac_exeext conftest.$ac_ext
9899
LDFLAGS="$save_LDFLAGS"
9901
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9902
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9904
archive_cmds_need_lc='no'
9905
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9906
hardcode_libdir_separator=:
9908
link_all_deplibs=yes
9912
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9913
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9915
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9917
hardcode_libdir_flag_spec='-R$libdir'
9919
hardcode_shlibpath_var=no
9923
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9925
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9926
hardcode_libdir_separator=:
9927
hardcode_shlibpath_var=no
9934
if test -f /usr/libexec/ld.so; then
9936
hardcode_shlibpath_var=no
9937
hardcode_direct_absolute=yes
9938
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9939
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9940
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9941
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9942
export_dynamic_flag_spec='${wl}-E'
9945
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9946
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9947
hardcode_libdir_flag_spec='-R$libdir'
9950
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9951
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9961
hardcode_libdir_flag_spec='-L$libdir'
9962
hardcode_minus_L=yes
9963
allow_undefined_flag=unsupported
9964
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'
9965
old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9969
if test "$GCC" = yes; then
9970
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9971
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9973
allow_undefined_flag=' -expect_unresolved \*'
9974
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9976
archive_cmds_need_lc='no'
9977
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9978
hardcode_libdir_separator=:
9981
osf4* | osf5*) # as osf3* with the addition of -msym flag
9982
if test "$GCC" = yes; then
9983
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9984
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9985
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9987
allow_undefined_flag=' -expect_unresolved \*'
9988
archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
9989
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~
9990
$CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
9992
# Both c and cxx compiler support -rpath directly
9993
hardcode_libdir_flag_spec='-rpath $libdir'
9995
archive_cmds_need_lc='no'
9996
hardcode_libdir_separator=:
10000
no_undefined_flag=' -z defs'
10001
if test "$GCC" = yes; then
10003
archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10004
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10005
$CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10007
case `$CC -V 2>&1` in
10010
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10011
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10012
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10016
archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10017
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10018
$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10022
hardcode_libdir_flag_spec='-R$libdir'
10023
hardcode_shlibpath_var=no
10025
solaris2.[0-5] | solaris2.[0-5].*) ;;
10027
# The compiler driver will combine and reorder linker options,
10028
# but understands `-z linker_flag'. GCC discards it without `$wl',
10029
# but is careful enough not to reorder.
10030
# Supported since Solaris 2.6 (maybe 2.5.1?)
10031
if test "$GCC" = yes; then
10032
whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10034
whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10038
link_all_deplibs=yes
10042
if test "x$host_vendor" = xsequent; then
10043
# Use $CC to link under sequent, because it throws in some extra .o
10044
# files that make .init and .fini sections work.
10045
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10047
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10049
hardcode_libdir_flag_spec='-L$libdir'
10050
hardcode_direct=yes
10051
hardcode_minus_L=yes
10052
hardcode_shlibpath_var=no
10056
case $host_vendor in
10058
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10059
hardcode_direct=yes # is this really true???
10062
## LD is ld it makes a PLAMLIB
10063
## CC just makes a GrossModule.
10064
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10065
reload_cmds='$CC -r -o $output$reload_objs'
10069
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10070
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10073
runpath_var='LD_RUN_PATH'
10074
hardcode_shlibpath_var=no
10078
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10079
hardcode_shlibpath_var=no
10080
export_dynamic_flag_spec='-Bexport'
10084
if test -d /usr/nec; then
10085
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10086
hardcode_shlibpath_var=no
10087
runpath_var=LD_RUN_PATH
10088
hardcode_runpath_var=yes
10093
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10094
no_undefined_flag='${wl}-z,text'
10095
archive_cmds_need_lc=no
10096
hardcode_shlibpath_var=no
10097
runpath_var='LD_RUN_PATH'
10099
if test "$GCC" = yes; then
10100
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10101
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10103
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10104
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10108
sysv5* | sco3.2v5* | sco5v6*)
10109
# Note: We can NOT use -z defs as we might desire, because we do not
10110
# link with -lc, and that would cause any symbols used from libc to
10111
# always be unresolved, which means just about no library would
10112
# ever link correctly. If we're not using GNU ld we use -z text
10113
# though, which does catch some bad symbols but isn't as heavy-handed
10115
no_undefined_flag='${wl}-z,text'
10116
allow_undefined_flag='${wl}-z,nodefs'
10117
archive_cmds_need_lc=no
10118
hardcode_shlibpath_var=no
10119
hardcode_libdir_flag_spec='${wl}-R,$libdir'
10120
hardcode_libdir_separator=':'
10121
link_all_deplibs=yes
10122
export_dynamic_flag_spec='${wl}-Bexport'
10123
runpath_var='LD_RUN_PATH'
10125
if test "$GCC" = yes; then
10126
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10127
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10129
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10130
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10135
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10136
hardcode_libdir_flag_spec='-L$libdir'
10137
hardcode_shlibpath_var=no
10145
if test x$host_vendor = xsni; then
10147
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10148
export_dynamic_flag_spec='${wl}-Blargedynsym'
10154
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10155
$as_echo "$ld_shlibs" >&6; }
10156
test "$ld_shlibs" = no && can_build_shared=no
10158
with_gnu_ld=$with_gnu_ld
10175
# Do we need to explicitly link libc?
10177
case "x$archive_cmds_need_lc" in
10179
# Assume -lc should be added
10180
archive_cmds_need_lc=yes
10182
if test "$enable_shared" = yes && test "$GCC" = yes; then
10183
case $archive_cmds in
10185
# FIXME: we may have to deal with multi-command sequences.
10188
# Test whether the compiler implicitly links with -lc since on some
10189
# systems, -lgcc has to come before -lc. If gcc already passes -lc
10190
# to ld, don't add -lc before -lgcc.
10191
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10192
$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10194
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10196
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10197
(eval $ac_compile) 2>&5
10199
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10200
test $ac_status = 0; } 2>conftest.err; then
10203
libobjs=conftest.$ac_objext
10205
wl=$lt_prog_compiler_wl
10206
pic_flag=$lt_prog_compiler_pic
10212
lt_save_allow_undefined_flag=$allow_undefined_flag
10213
allow_undefined_flag=
10214
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10215
(eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10217
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10218
test $ac_status = 0; }
10220
archive_cmds_need_lc=no
10222
archive_cmds_need_lc=yes
10224
allow_undefined_flag=$lt_save_allow_undefined_flag
10226
cat conftest.err 1>&5
10229
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
10230
$as_echo "$archive_cmds_need_lc" >&6; }
10393
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10394
$as_echo_n "checking dynamic linker characteristics... " >&6; }
10396
if test "$GCC" = yes; then
10398
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10399
*) lt_awk_arg="/^libraries:/" ;;
10401
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10402
if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
10403
# if the path contains ";" then we assume it to be the separator
10404
# otherwise default to the standard path separator (i.e. ":") - it is
10405
# assumed that no part of a normal pathname contains ";" but that should
10406
# okay in the real world where ";" in dirpaths is itself problematic.
10407
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
10409
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10411
# Ok, now we have the path, separated by spaces, we can step through it
10412
# and add multilib dir if necessary.
10413
lt_tmp_lt_search_path_spec=
10414
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10415
for lt_sys_path in $lt_search_path_spec; do
10416
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10417
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10419
test -d "$lt_sys_path" && \
10420
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10423
lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
10424
BEGIN {RS=" "; FS="/|\n";} {
10427
for (lt_i = NF; lt_i > 0; lt_i--) {
10428
if ($lt_i != "" && $lt_i != ".") {
10429
if ($lt_i == "..") {
10432
if (lt_count == 0) {
10433
lt_foo="/" $lt_i lt_foo;
10440
if (lt_foo != "") { lt_freq[lt_foo]++; }
10441
if (lt_freq[lt_foo] == 1) { print lt_foo; }
10443
sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
10445
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10447
library_names_spec=
10448
libname_spec='lib$name'
10452
postuninstall_cmds=
10456
shlibpath_overrides_runpath=unknown
10458
dynamic_linker="$host_os ld.so"
10459
sys_lib_dlsearch_path_spec="/lib /usr/lib"
10460
need_lib_prefix=unknown
10461
hardcode_into_libs=no
10463
# when you set need_version to no, make sure it does not cause -set_version
10464
# flags to be left without arguments
10465
need_version=unknown
10470
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10471
shlibpath_var=LIBPATH
10473
# AIX 3 has no versioning support, so we append a major version to the name.
10474
soname_spec='${libname}${release}${shared_ext}$major'
10481
hardcode_into_libs=yes
10482
if test "$host_cpu" = ia64; then
10483
# AIX 5 supports IA64
10484
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10485
shlibpath_var=LD_LIBRARY_PATH
10487
# With GCC up to 2.95.x, collect2 would create an import file
10488
# for dependence libraries. The import file would start with
10489
# the line `#! .'. This would cause the generated library to
10490
# depend on `.', always an invalid library. This was fixed in
10491
# development snapshots of GCC prior to 3.0.
10493
aix4 | aix4.[01] | aix4.[01].*)
10494
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10496
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10499
can_build_shared=no
10503
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10504
# soname into executable. Probably we can add versioning support to
10505
# collect2, so additional links can be useful in future.
10506
if test "$aix_use_runtimelinking" = yes; then
10507
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
10508
# instead of lib<name>.a to let people know that these are not
10509
# typical AIX shared libraries.
10510
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10512
# We preserve .a as extension for shared libraries through AIX4.2
10513
# and later when we are not doing run time linking.
10514
library_names_spec='${libname}${release}.a $libname.a'
10515
soname_spec='${libname}${release}${shared_ext}$major'
10517
shlibpath_var=LIBPATH
10524
# Since July 2007 AmigaOS4 officially supports .so libraries.
10525
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10526
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10529
library_names_spec='$libname.ixlibrary $libname.a'
10530
# Create ${libname}_ixlibrary.a entries in /sys/libs.
10531
finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10537
library_names_spec='${libname}${shared_ext}'
10538
dynamic_linker="$host_os ld.so"
10539
shlibpath_var=LIBRARY_PATH
10545
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10546
soname_spec='${libname}${release}${shared_ext}$major'
10547
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10548
shlibpath_var=LD_LIBRARY_PATH
10549
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10550
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10551
# the default ld.so.conf also contains /usr/contrib/lib and
10552
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10553
# libtool to hard-code these into programs
10556
cygwin* | mingw* | pw32* | cegcc*)
10557
version_type=windows
10562
case $GCC,$host_os in
10563
yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10564
library_names_spec='$libname.dll.a'
10565
# DLL is installed to $(libdir)/../bin by postinstall_cmds
10566
postinstall_cmds='base_file=`basename \${file}`~
10567
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10568
dldir=$destdir/`dirname \$dlpath`~
10569
test -d \$dldir || mkdir -p \$dldir~
10570
$install_prog $dir/$dlname \$dldir/$dlname~
10571
chmod a+x \$dldir/$dlname~
10572
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10573
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10575
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10576
dlpath=$dir/\$dldll~
10578
shlibpath_overrides_runpath=yes
10582
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
10583
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10584
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
10587
# MinGW DLLs use traditional 'lib' prefix
10588
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10589
sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
10590
if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10591
# It is most probably a Windows format PATH printed by
10592
# mingw gcc, but we are running on Cygwin. Gcc prints its search
10593
# path with ; separators, and with drive letters. We can handle the
10594
# drive letters (cygwin fileutils understands them), so leave them,
10595
# especially as we might pass files found there to a mingw objdump,
10596
# which wouldn't understand a cygwinified path. Ahh.
10597
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10599
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10603
# pw32 DLLs use 'pw' prefix rather than 'lib'
10604
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10610
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10613
dynamic_linker='Win32 ld.exe'
10614
# FIXME: first we should search . and the directory the executable is in
10618
darwin* | rhapsody*)
10619
dynamic_linker="$host_os dyld"
10620
version_type=darwin
10623
library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10624
soname_spec='${libname}${release}${major}$shared_ext'
10625
shlibpath_overrides_runpath=yes
10626
shlibpath_var=DYLD_LIBRARY_PATH
10627
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10629
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10630
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10637
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10638
soname_spec='${libname}${release}${shared_ext}$major'
10639
shlibpath_var=LD_LIBRARY_PATH
10646
freebsd* | dragonfly*)
10647
# DragonFly does not have aout. When/if they implement a new
10648
# versioning mechanism, adjust this.
10649
if test -x /usr/bin/objformat; then
10650
objformat=`/usr/bin/objformat`
10653
freebsd[123]*) objformat=aout ;;
10654
*) objformat=elf ;;
10657
version_type=freebsd-$objformat
10658
case $version_type in
10660
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10665
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10669
shlibpath_var=LD_LIBRARY_PATH
10672
shlibpath_overrides_runpath=yes
10674
freebsd3.[01]* | freebsdelf3.[01]*)
10675
shlibpath_overrides_runpath=yes
10676
hardcode_into_libs=yes
10678
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10679
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10680
shlibpath_overrides_runpath=no
10681
hardcode_into_libs=yes
10683
*) # from 4.6 on, and DragonFly
10684
shlibpath_overrides_runpath=yes
10685
hardcode_into_libs=yes
10694
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10695
soname_spec='${libname}${release}${shared_ext}$major'
10696
shlibpath_var=LD_LIBRARY_PATH
10697
hardcode_into_libs=yes
10700
hpux9* | hpux10* | hpux11*)
10701
# Give a soname corresponding to the major version so that dld.sl refuses to
10702
# link against other versions.
10709
hardcode_into_libs=yes
10710
dynamic_linker="$host_os dld.so"
10711
shlibpath_var=LD_LIBRARY_PATH
10712
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10713
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10714
soname_spec='${libname}${release}${shared_ext}$major'
10715
if test "X$HPUX_IA64_MODE" = X32; then
10716
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10718
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10720
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10724
hardcode_into_libs=yes
10725
dynamic_linker="$host_os dld.sl"
10726
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10727
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10728
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10729
soname_spec='${libname}${release}${shared_ext}$major'
10730
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10731
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10735
dynamic_linker="$host_os dld.sl"
10736
shlibpath_var=SHLIB_PATH
10737
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10738
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10739
soname_spec='${libname}${release}${shared_ext}$major'
10742
# HP-UX runs *really* slowly unless shared libraries are mode 555.
10743
postinstall_cmds='chmod 555 $lib'
10750
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10751
soname_spec='${libname}${release}${shared_ext}$major'
10752
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10753
shlibpath_var=LD_LIBRARY_PATH
10754
shlibpath_overrides_runpath=no
10755
hardcode_into_libs=yes
10758
irix5* | irix6* | nonstopux*)
10760
nonstopux*) version_type=nonstopux ;;
10762
if test "$lt_cv_prog_gnu_ld" = yes; then
10770
soname_spec='${libname}${release}${shared_ext}$major'
10771
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10773
irix5* | nonstopux*)
10774
libsuff= shlibsuff=
10777
case $LD in # libtool.m4 will add one of these switches to LD
10778
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10779
libsuff= shlibsuff= libmagic=32-bit;;
10780
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10781
libsuff=32 shlibsuff=N32 libmagic=N32;;
10782
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10783
libsuff=64 shlibsuff=64 libmagic=64-bit;;
10784
*) libsuff= shlibsuff= libmagic=never-match;;
10788
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10789
shlibpath_overrides_runpath=no
10790
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10791
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10792
hardcode_into_libs=yes
10795
# No shared lib support for Linux oldld, aout, or coff.
10796
linux*oldld* | linux*aout* | linux*coff*)
10800
# This must be Linux ELF.
10801
linux* | k*bsd*-gnu)
10805
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10806
soname_spec='${libname}${release}${shared_ext}$major'
10807
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10808
shlibpath_var=LD_LIBRARY_PATH
10809
shlibpath_overrides_runpath=no
10810
# Some binutils ld are patched to set DT_RUNPATH
10811
save_LDFLAGS=$LDFLAGS
10812
save_libdir=$libdir
10813
eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10814
LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10815
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10816
/* end confdefs.h. */
10826
if ac_fn_c_try_link "$LINENO"; then :
10827
if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10828
shlibpath_overrides_runpath=yes
10831
rm -f core conftest.err conftest.$ac_objext \
10832
conftest$ac_exeext conftest.$ac_ext
10833
LDFLAGS=$save_LDFLAGS
10834
libdir=$save_libdir
10836
# This implies no fast_install, which is unacceptable.
10837
# Some rework will be needed to allow for fast_install
10838
# before this can be enabled.
10839
hardcode_into_libs=yes
10841
# Append ld.so.conf contents to the search path
10842
if test -f /etc/ld.so.conf; then
10843
lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
10844
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10847
# We used to test for /lib/ld.so.1 and disable shared libraries on
10848
# powerpc, because MkLinux only supported shared libraries with the
10849
# GNU dynamic linker. Since this was broken with cross compilers,
10850
# most powerpc-linux boxes support dynamic linking these days and
10851
# people can always --disable-shared, the test was removed, and we
10852
# assume the GNU/Linux dynamic linker is in use.
10853
dynamic_linker='GNU/Linux ld.so'
10860
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10861
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10862
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10863
dynamic_linker='NetBSD (a.out) ld.so'
10865
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10866
soname_spec='${libname}${release}${shared_ext}$major'
10867
dynamic_linker='NetBSD ld.elf_so'
10869
shlibpath_var=LD_LIBRARY_PATH
10870
shlibpath_overrides_runpath=yes
10871
hardcode_into_libs=yes
10876
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10877
shlibpath_var=LD_LIBRARY_PATH
10878
shlibpath_overrides_runpath=yes
10885
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10886
soname_spec='${libname}${release}${shared_ext}$major'
10887
shlibpath_var=LD_LIBRARY_PATH
10888
shlibpath_overrides_runpath=no
10889
hardcode_into_libs=yes
10890
dynamic_linker='ldqnx.so'
10895
sys_lib_dlsearch_path_spec="/usr/lib"
10897
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10899
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10900
*) need_version=no ;;
10902
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10903
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10904
shlibpath_var=LD_LIBRARY_PATH
10905
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10907
openbsd2.[89] | openbsd2.[89].*)
10908
shlibpath_overrides_runpath=no
10911
shlibpath_overrides_runpath=yes
10915
shlibpath_overrides_runpath=yes
10920
libname_spec='$name'
10923
library_names_spec='$libname${shared_ext} $libname.a'
10924
dynamic_linker='OS/2 ld.exe'
10925
shlibpath_var=LIBPATH
10928
osf3* | osf4* | osf5*)
10932
soname_spec='${libname}${release}${shared_ext}$major'
10933
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10934
shlibpath_var=LD_LIBRARY_PATH
10935
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10936
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10947
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10948
soname_spec='${libname}${release}${shared_ext}$major'
10949
shlibpath_var=LD_LIBRARY_PATH
10950
shlibpath_overrides_runpath=yes
10951
hardcode_into_libs=yes
10952
# ldd complains unless libraries are executable
10953
postinstall_cmds='chmod +x $lib'
10958
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10959
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10960
shlibpath_var=LD_LIBRARY_PATH
10961
shlibpath_overrides_runpath=yes
10962
if test "$with_gnu_ld" = yes; then
10970
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10971
soname_spec='${libname}${release}${shared_ext}$major'
10972
shlibpath_var=LD_LIBRARY_PATH
10973
case $host_vendor in
10975
shlibpath_overrides_runpath=no
10977
runpath_var=LD_RUN_PATH
10985
shlibpath_overrides_runpath=no
10986
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10992
if test -d /usr/nec ;then
10994
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10995
soname_spec='$libname${shared_ext}.$major'
10996
shlibpath_var=LD_LIBRARY_PATH
11000
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11001
version_type=freebsd-elf
11004
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11005
soname_spec='${libname}${release}${shared_ext}$major'
11006
shlibpath_var=LD_LIBRARY_PATH
11007
shlibpath_overrides_runpath=yes
11008
hardcode_into_libs=yes
11009
if test "$with_gnu_ld" = yes; then
11010
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11012
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11015
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11019
sys_lib_dlsearch_path_spec='/usr/lib'
11023
# TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11027
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11028
shlibpath_var=LD_LIBRARY_PATH
11029
shlibpath_overrides_runpath=no
11030
hardcode_into_libs=yes
11035
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11036
soname_spec='${libname}${release}${shared_ext}$major'
11037
shlibpath_var=LD_LIBRARY_PATH
11044
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11045
$as_echo "$dynamic_linker" >&6; }
11046
test "$dynamic_linker" = no && can_build_shared=no
11048
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11049
if test "$GCC" = yes; then
11050
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11053
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11054
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11056
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11057
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11146
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11147
$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11149
if test -n "$hardcode_libdir_flag_spec" ||
11150
test -n "$runpath_var" ||
11151
test "X$hardcode_automatic" = "Xyes" ; then
11153
# We can hardcode non-existent directories.
11154
if test "$hardcode_direct" != no &&
11155
# If the only mechanism to avoid hardcoding is shlibpath_var, we
11156
# have to relink, otherwise we might link with an installed library
11157
# when we should be linking with a yet-to-be-installed one
11158
## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11159
test "$hardcode_minus_L" != no; then
11160
# Linking always hardcodes the temporary library directory.
11161
hardcode_action=relink
11163
# We can link without hardcoding, and we can hardcode nonexisting dirs.
11164
hardcode_action=immediate
11167
# We cannot hardcode anything, or else we can only hardcode existing
11169
hardcode_action=unsupported
11171
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11172
$as_echo "$hardcode_action" >&6; }
11174
if test "$hardcode_action" = relink ||
11175
test "$inherit_rpath" = yes; then
11176
# Fast installation is not supported
11177
enable_fast_install=no
11178
elif test "$shlibpath_overrides_runpath" = yes ||
11179
test "$enable_shared" = no; then
11180
# Fast installation is not necessary
11181
enable_fast_install=needless
11189
if test "x$enable_dlopen" != xyes; then
11190
enable_dlopen=unknown
11191
enable_dlopen_self=unknown
11192
enable_dlopen_self_static=unknown
11199
lt_cv_dlopen="load_add_on"
11201
lt_cv_dlopen_self=yes
11204
mingw* | pw32* | cegcc*)
11205
lt_cv_dlopen="LoadLibrary"
11210
lt_cv_dlopen="dlopen"
11215
# if libdl is installed we need to link against it
11216
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11217
$as_echo_n "checking for dlopen in -ldl... " >&6; }
11218
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11219
$as_echo_n "(cached) " >&6
11221
ac_check_lib_save_LIBS=$LIBS
11223
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11224
/* end confdefs.h. */
11226
/* Override any GCC internal prototype to avoid an error.
11227
Use char because int might match the return type of a GCC
11228
builtin and then its argument prototype would still apply. */
11241
if ac_fn_c_try_link "$LINENO"; then :
11242
ac_cv_lib_dl_dlopen=yes
11244
ac_cv_lib_dl_dlopen=no
11246
rm -f core conftest.err conftest.$ac_objext \
11247
conftest$ac_exeext conftest.$ac_ext
11248
LIBS=$ac_check_lib_save_LIBS
11250
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11251
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11252
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11253
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11256
lt_cv_dlopen="dyld"
11258
lt_cv_dlopen_self=yes
11265
ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11266
if test "x$ac_cv_func_shl_load" = x""yes; then :
11267
lt_cv_dlopen="shl_load"
11269
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11270
$as_echo_n "checking for shl_load in -ldld... " >&6; }
11271
if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11272
$as_echo_n "(cached) " >&6
11274
ac_check_lib_save_LIBS=$LIBS
11276
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11277
/* end confdefs.h. */
11279
/* Override any GCC internal prototype to avoid an error.
11280
Use char because int might match the return type of a GCC
11281
builtin and then its argument prototype would still apply. */
11289
return shl_load ();
11294
if ac_fn_c_try_link "$LINENO"; then :
11295
ac_cv_lib_dld_shl_load=yes
11297
ac_cv_lib_dld_shl_load=no
11299
rm -f core conftest.err conftest.$ac_objext \
11300
conftest$ac_exeext conftest.$ac_ext
11301
LIBS=$ac_check_lib_save_LIBS
11303
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11304
$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11305
if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11306
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11308
ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11309
if test "x$ac_cv_func_dlopen" = x""yes; then :
11310
lt_cv_dlopen="dlopen"
11312
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11313
$as_echo_n "checking for dlopen in -ldl... " >&6; }
11314
if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11315
$as_echo_n "(cached) " >&6
11317
ac_check_lib_save_LIBS=$LIBS
11319
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11320
/* end confdefs.h. */
11322
/* Override any GCC internal prototype to avoid an error.
11323
Use char because int might match the return type of a GCC
11324
builtin and then its argument prototype would still apply. */
11337
if ac_fn_c_try_link "$LINENO"; then :
11338
ac_cv_lib_dl_dlopen=yes
11340
ac_cv_lib_dl_dlopen=no
11342
rm -f core conftest.err conftest.$ac_objext \
11343
conftest$ac_exeext conftest.$ac_ext
11344
LIBS=$ac_check_lib_save_LIBS
11346
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11347
$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11348
if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11349
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11351
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11352
$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11353
if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11354
$as_echo_n "(cached) " >&6
11356
ac_check_lib_save_LIBS=$LIBS
11357
LIBS="-lsvld $LIBS"
11358
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11359
/* end confdefs.h. */
11361
/* Override any GCC internal prototype to avoid an error.
11362
Use char because int might match the return type of a GCC
11363
builtin and then its argument prototype would still apply. */
11376
if ac_fn_c_try_link "$LINENO"; then :
11377
ac_cv_lib_svld_dlopen=yes
11379
ac_cv_lib_svld_dlopen=no
11381
rm -f core conftest.err conftest.$ac_objext \
11382
conftest$ac_exeext conftest.$ac_ext
11383
LIBS=$ac_check_lib_save_LIBS
11385
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11386
$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11387
if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11388
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11390
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11391
$as_echo_n "checking for dld_link in -ldld... " >&6; }
11392
if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11393
$as_echo_n "(cached) " >&6
11395
ac_check_lib_save_LIBS=$LIBS
11397
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11398
/* end confdefs.h. */
11400
/* Override any GCC internal prototype to avoid an error.
11401
Use char because int might match the return type of a GCC
11402
builtin and then its argument prototype would still apply. */
11410
return dld_link ();
11415
if ac_fn_c_try_link "$LINENO"; then :
11416
ac_cv_lib_dld_dld_link=yes
11418
ac_cv_lib_dld_dld_link=no
11420
rm -f core conftest.err conftest.$ac_objext \
11421
conftest$ac_exeext conftest.$ac_ext
11422
LIBS=$ac_check_lib_save_LIBS
11424
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11425
$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11426
if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11427
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11448
if test "x$lt_cv_dlopen" != xno; then
11454
case $lt_cv_dlopen in
11456
save_CPPFLAGS="$CPPFLAGS"
11457
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11459
save_LDFLAGS="$LDFLAGS"
11460
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11463
LIBS="$lt_cv_dlopen_libs $LIBS"
11465
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11466
$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11467
if test "${lt_cv_dlopen_self+set}" = set; then :
11468
$as_echo_n "(cached) " >&6
11470
if test "$cross_compiling" = yes; then :
11471
lt_cv_dlopen_self=cross
11473
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11474
lt_status=$lt_dlunknown
11475
cat > conftest.$ac_ext <<_LT_EOF
11476
#line 11476 "configure"
11477
#include "confdefs.h"
11486
# define LT_DLGLOBAL RTLD_GLOBAL
11489
# define LT_DLGLOBAL DL_GLOBAL
11491
# define LT_DLGLOBAL 0
11495
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11496
find out it does not work in some platform. */
11497
#ifndef LT_DLLAZY_OR_NOW
11499
# define LT_DLLAZY_OR_NOW RTLD_LAZY
11502
# define LT_DLLAZY_OR_NOW DL_LAZY
11505
# define LT_DLLAZY_OR_NOW RTLD_NOW
11508
# define LT_DLLAZY_OR_NOW DL_NOW
11510
# define LT_DLLAZY_OR_NOW 0
11517
void fnord() { int i=42;}
11520
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11521
int status = $lt_dlunknown;
11525
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11526
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11527
/* dlclose (self); */
11535
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11536
(eval $ac_link) 2>&5
11538
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11539
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11540
(./conftest; exit; ) >&5 2>/dev/null
11542
case x$lt_status in
11543
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11544
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11545
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11548
# compilation failed
11549
lt_cv_dlopen_self=no
11556
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11557
$as_echo "$lt_cv_dlopen_self" >&6; }
11559
if test "x$lt_cv_dlopen_self" = xyes; then
11560
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11561
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11562
$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11563
if test "${lt_cv_dlopen_self_static+set}" = set; then :
11564
$as_echo_n "(cached) " >&6
11566
if test "$cross_compiling" = yes; then :
11567
lt_cv_dlopen_self_static=cross
11569
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11570
lt_status=$lt_dlunknown
11571
cat > conftest.$ac_ext <<_LT_EOF
11572
#line 11572 "configure"
11573
#include "confdefs.h"
11582
# define LT_DLGLOBAL RTLD_GLOBAL
11585
# define LT_DLGLOBAL DL_GLOBAL
11587
# define LT_DLGLOBAL 0
11591
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11592
find out it does not work in some platform. */
11593
#ifndef LT_DLLAZY_OR_NOW
11595
# define LT_DLLAZY_OR_NOW RTLD_LAZY
11598
# define LT_DLLAZY_OR_NOW DL_LAZY
11601
# define LT_DLLAZY_OR_NOW RTLD_NOW
11604
# define LT_DLLAZY_OR_NOW DL_NOW
11606
# define LT_DLLAZY_OR_NOW 0
11613
void fnord() { int i=42;}
11616
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11617
int status = $lt_dlunknown;
11621
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11622
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11623
/* dlclose (self); */
11631
if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11632
(eval $ac_link) 2>&5
11634
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11635
test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11636
(./conftest; exit; ) >&5 2>/dev/null
11638
case x$lt_status in
11639
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11640
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11641
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11644
# compilation failed
11645
lt_cv_dlopen_self_static=no
11652
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11653
$as_echo "$lt_cv_dlopen_self_static" >&6; }
11656
CPPFLAGS="$save_CPPFLAGS"
11657
LDFLAGS="$save_LDFLAGS"
11662
case $lt_cv_dlopen_self in
11663
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11664
*) enable_dlopen_self=unknown ;;
11667
case $lt_cv_dlopen_self_static in
11668
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11669
*) enable_dlopen_self_static=unknown ;;
11691
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11692
$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11693
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11694
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11695
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11696
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11697
$as_echo "yes" >&6; }
11699
# FIXME - insert some real tests, host_os isn't really good enough
11702
if test -n "$STRIP" ; then
11703
striplib="$STRIP -x"
11704
old_striplib="$STRIP -S"
11705
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11706
$as_echo "yes" >&6; }
11708
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11709
$as_echo "no" >&6; }
11713
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11714
$as_echo "no" >&6; }
11730
# Report which library types will actually be built
11731
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11732
$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11733
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11734
$as_echo "$can_build_shared" >&6; }
11736
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11737
$as_echo_n "checking whether to build shared libraries... " >&6; }
11738
test "$can_build_shared" = "no" && enable_shared=no
11740
# On AIX, shared libraries and static libraries use the same namespace, and
11741
# are all built from PIC.
11744
test "$enable_shared" = yes && enable_static=no
11745
if test -n "$RANLIB"; then
11746
archive_cmds="$archive_cmds~\$RANLIB \$lib"
11747
postinstall_cmds='$RANLIB $lib'
11752
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11753
test "$enable_shared" = yes && enable_static=no
11757
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11758
$as_echo "$enable_shared" >&6; }
11760
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11761
$as_echo_n "checking whether to build static libraries... " >&6; }
11762
# Make sure either enable_shared or enable_static is yes.
11763
test "$enable_shared" = yes || enable_static=yes
11764
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11765
$as_echo "$enable_static" >&6; }
11772
ac_cpp='$CPP $CPPFLAGS'
11773
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11774
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11775
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11791
ac_config_commands="$ac_config_commands libtool"
11796
# Only expand once:
11805
# configuration file -- stay in 8.3 limit
11807
# since #undef doesn't survive in configuration header files we replace
11808
# `/undef' with `#undef' after creating the output file
11810
ac_config_headers="$ac_config_headers ftconfig.h:ftconfig.in"
11813
# create the Unix-specific sub-Makefiles `builds/unix/unix-def.mk'
11814
# and `builds/unix/unix-cc.mk' that will be used by the build system
11816
ac_config_files="$ac_config_files unix-cc.mk:unix-cc.in unix-def.mk:unix-def.in freetype-config freetype2.pc:freetype2.in"
11819
# re-generate the Jamfile to use libtool now
11821
# AC_CONFIG_FILES([../../Jamfile:../../Jamfile.in])
11823
cat >confcache <<\_ACEOF
11824
# This file is a shell script that caches the results of configure
11825
# tests run on this system so they can be shared between configure
11826
# scripts and configure runs, see configure's option --config-cache.
11827
# It is not useful on other systems. If it contains results you don't
11828
# want to keep, you may remove or edit it.
11830
# config.status only pays attention to the cache file if you give it
11831
# the --recheck option to rerun configure.
11833
# `ac_cv_env_foo' variables (set or unset) will be overridden when
11834
# loading this file, other *unset* `ac_cv_foo' will be assigned the
11835
# following values.
11839
# The following way of writing the cache mishandles newlines in values,
11840
# but we know of no workaround that is simple, portable, and efficient.
11841
# So, we kill variables containing newlines.
11842
# Ultrix sh set writes to stderr and can't be redirected directly,
11843
# and sets the high bit in the cache file unless we assign to the vars.
11845
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
11846
eval ac_val=\$$ac_var
11850
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
11851
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
11854
_ | IFS | as_nl) ;; #(
11855
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
11856
*) { eval $ac_var=; unset $ac_var;} ;;
11862
case $as_nl`(ac_space=' '; set) 2>&1` in #(
11863
*${as_nl}ac_space=\ *)
11864
# `set' does not quote correctly, so add quotes: double-quote
11865
# substitution turns \\\\ into \\, and sed turns \\ into \.
11868
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
11871
# `set' quotes correctly as required by POSIX, so do not add quotes.
11872
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
11881
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
11883
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
11885
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
11886
if test -w "$cache_file"; then
11887
test "x$cache_file" != "x/dev/null" &&
11888
{ $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
11889
$as_echo "$as_me: updating cache $cache_file" >&6;}
11890
cat confcache >$cache_file
11892
{ $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
11893
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
11898
test "x$prefix" = xNONE && prefix=$ac_default_prefix
11899
# Let make expand exec_prefix.
11900
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
11902
DEFS=-DHAVE_CONFIG_H
11907
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
11908
# 1. Remove the extension, and $U if already installed.
11909
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
11910
ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
11911
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
11912
# will be set to the directory where LIBOBJS objects are built.
11913
as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
11914
as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
11916
LIBOBJS=$ac_libobjs
11918
LTLIBOBJS=$ac_ltlibobjs
11922
: ${CONFIG_STATUS=./config.status}
11924
ac_clean_files_save=$ac_clean_files
11925
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
11926
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
11927
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
11929
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
11931
# Generated by $as_me.
11932
# Run this file to recreate the current configuration.
11933
# Compiler output produced by configure, useful for debugging
11934
# configure, is in config.log if it exists.
11937
ac_cs_recheck=false
11940
SHELL=\${CONFIG_SHELL-$SHELL}
11943
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
11944
## -------------------- ##
11945
## M4sh Initialization. ##
11946
## -------------------- ##
11948
# Be more Bourne compatible
11949
DUALCASE=1; export DUALCASE # for MKS sh
11950
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
11953
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
11954
# is contrary to our usage. Disable this feature.
11955
alias -g '${1+"$@"}'='"$@"'
11956
setopt NO_GLOB_SUBST
11958
case `(set -o) 2>/dev/null` in #(
11970
# Printing a long string crashes Solaris 7 /usr/bin/printf.
11971
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
11972
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
11973
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
11974
# Prefer a ksh shell builtin over an external printf program on Solaris,
11975
# but without wasting forks for bash or zsh.
11976
if test -z "$BASH_VERSION$ZSH_VERSION" \
11977
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
11978
as_echo='print -r --'
11979
as_echo_n='print -rn --'
11980
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
11981
as_echo='printf %s\n'
11982
as_echo_n='printf %s'
11984
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
11985
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
11986
as_echo_n='/usr/ucb/echo -n'
11988
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
11989
as_echo_n_body='eval
11993
expr "X$arg" : "X\\(.*\\)$as_nl";
11994
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
11996
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
11998
export as_echo_n_body
11999
as_echo_n='sh -c $as_echo_n_body as_echo'
12001
export as_echo_body
12002
as_echo='sh -c $as_echo_body as_echo'
12005
# The user is always right.
12006
if test "${PATH_SEPARATOR+set}" != set; then
12008
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12009
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12016
# We need space, tab and new line, in precisely that order. Quoting is
12017
# there to prevent editors from complaining about space-tab.
12018
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12019
# splitting by setting IFS to empty value.)
12022
# Find who we are. Look in the path if we contain no directory separator.
12024
*[\\/]* ) as_myself=$0 ;;
12025
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12026
for as_dir in $PATH
12029
test -z "$as_dir" && as_dir=.
12030
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12036
# We did not find ourselves, most probably we were run as `sh COMMAND'
12037
# in which case we are not to be found in the path.
12038
if test "x$as_myself" = x; then
12041
if test ! -f "$as_myself"; then
12042
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
12046
# Unset variables that we do not need and which cause bugs (e.g. in
12047
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12048
# suppresses any "Segmentation fault" message there. '((' could
12049
# trigger a bug in pdksh 5.2.14.
12050
for as_var in BASH_ENV ENV MAIL MAILPATH
12051
do eval test x\${$as_var+set} = xset \
12052
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
12065
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12068
# as_fn_error STATUS ERROR [LINENO LOG_FD]
12069
# ----------------------------------------
12070
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12071
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
12072
# script with STATUS, using 1 if that was 0.
12075
as_status=$1; test $as_status -eq 0 && as_status=1
12077
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12078
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
12080
$as_echo "$as_me: error: $2" >&2
12081
as_fn_exit $as_status
12085
# as_fn_set_status STATUS
12086
# -----------------------
12087
# Set $? to STATUS, without forking.
12088
as_fn_set_status ()
12091
} # as_fn_set_status
12093
# as_fn_exit STATUS
12094
# -----------------
12095
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12099
as_fn_set_status $1
12105
# Portably unset VAR.
12108
{ eval $1=; unset $1;}
12110
as_unset=as_fn_unset
12111
# as_fn_append VAR VALUE
12112
# ----------------------
12113
# Append the text in VALUE to the end of the definition contained in VAR. Take
12114
# advantage of any shell optimizations that allow amortized linear growth over
12115
# repeated appends, instead of the typical quadratic growth present in naive
12117
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
12118
eval 'as_fn_append ()
12129
# as_fn_arith ARG...
12130
# ------------------
12131
# Perform arithmetic evaluation on the ARGs, and store the result in the
12132
# global $as_val. Take advantage of shells that can avoid forks. The arguments
12133
# must be portable across $(()) and expr.
12134
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
12135
eval 'as_fn_arith ()
12142
as_val=`expr "$@" || test $? -eq 1`
12147
if expr a : '\(a\)' >/dev/null 2>&1 &&
12148
test "X`expr 00001 : '.*\(...\)'`" = X001; then
12154
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
12155
as_basename=basename
12160
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
12166
as_me=`$as_basename -- "$0" ||
12167
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
12168
X"$0" : 'X\(//\)$' \| \
12169
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
12171
sed '/^.*\/\([^/][^/]*\)\/*$/{
12185
# Avoid depending upon Character Ranges.
12186
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
12187
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
12188
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
12189
as_cr_digits='0123456789'
12190
as_cr_alnum=$as_cr_Letters$as_cr_digits
12192
ECHO_C= ECHO_N= ECHO_T=
12193
case `echo -n x` in #(((((
12195
case `echo 'xy\c'` in
12196
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
12198
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
12205
rm -f conf$$ conf$$.exe conf$$.file
12206
if test -d conf$$.dir; then
12207
rm -f conf$$.dir/conf$$.file
12210
mkdir conf$$.dir 2>/dev/null
12212
if (echo >conf$$.file) 2>/dev/null; then
12213
if ln -s conf$$.file conf$$ 2>/dev/null; then
12215
# ... but there are two gotchas:
12216
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
12217
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
12218
# In both cases, we have to default to `cp -p'.
12219
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
12221
elif ln conf$$.file conf$$ 2>/dev/null; then
12229
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
12230
rmdir conf$$.dir 2>/dev/null
12235
# Create "$as_dir" as a directory, including parents if necessary.
12240
-*) as_dir=./$as_dir;;
12242
test -d "$as_dir" || eval $as_mkdir_p || {
12246
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
12247
*) as_qdir=$as_dir;;
12249
as_dirs="'$as_qdir' $as_dirs"
12250
as_dir=`$as_dirname -- "$as_dir" ||
12251
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
12252
X"$as_dir" : 'X\(//\)[^/]' \| \
12253
X"$as_dir" : 'X\(//\)$' \| \
12254
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
12255
$as_echo X"$as_dir" |
12256
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
12260
/^X\(\/\/\)[^/].*/{
12273
test -d "$as_dir" && break
12275
test -z "$as_dirs" || eval "mkdir $as_dirs"
12276
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
12280
if mkdir -p . 2>/dev/null; then
12281
as_mkdir_p='mkdir -p "$as_dir"'
12283
test -d ./-p && rmdir ./-p
12287
if test -x / >/dev/null 2>&1; then
12288
as_test_x='test -x'
12290
if ls -dL / >/dev/null 2>&1; then
12297
if test -d "$1"; then
12303
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
12304
???[sx]*):;;*)false;;esac;fi
12308
as_executable_p=$as_test_x
12310
# Sed expression to map a string onto a valid CPP name.
12311
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
12313
# Sed expression to map a string onto a valid variable name.
12314
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
12318
## ----------------------------------- ##
12319
## Main body of $CONFIG_STATUS script. ##
12320
## ----------------------------------- ##
12322
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
12324
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12325
# Save the log message, to keep $0 and so on meaningful, and to
12326
# report actual input values of CONFIG_FILES etc. instead of their
12327
# values after options handling.
12329
This file was extended by FreeType $as_me 2.4.4, which was
12330
generated by GNU Autoconf 2.67. Invocation command line was
12332
CONFIG_FILES = $CONFIG_FILES
12333
CONFIG_HEADERS = $CONFIG_HEADERS
12334
CONFIG_LINKS = $CONFIG_LINKS
12335
CONFIG_COMMANDS = $CONFIG_COMMANDS
12338
on `(hostname || uname -n) 2>/dev/null | sed 1q`
12343
case $ac_config_files in *"
12344
"*) set x $ac_config_files; shift; ac_config_files=$*;;
12347
case $ac_config_headers in *"
12348
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
12352
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12353
# Files that config.status was made for.
12354
config_files="$ac_config_files"
12355
config_headers="$ac_config_headers"
12356
config_commands="$ac_config_commands"
12360
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12362
\`$as_me' instantiates files and other configuration actions
12363
from templates according to the current configuration. Unless the files
12364
and actions are specified as TAGs, all are instantiated by default.
12366
Usage: $0 [OPTION]... [TAG]...
12368
-h, --help print this help, then exit
12369
-V, --version print version number and configuration settings, then exit
12370
--config print configuration, then exit
12371
-q, --quiet, --silent
12372
do not print progress messages
12373
-d, --debug don't remove temporary files
12374
--recheck update $as_me by reconfiguring in the same conditions
12375
--file=FILE[:TEMPLATE]
12376
instantiate the configuration file FILE
12377
--header=FILE[:TEMPLATE]
12378
instantiate the configuration header FILE
12380
Configuration files:
12383
Configuration headers:
12386
Configuration commands:
12389
Report bugs to <freetype@nongnu.org>."
12392
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12393
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
12395
FreeType config.status 2.4.4
12396
configured by $0, generated by GNU Autoconf 2.67,
12397
with options \\"\$ac_cs_config\\"
12399
Copyright (C) 2010 Free Software Foundation, Inc.
12400
This config.status script is free software; the Free Software Foundation
12401
gives unlimited permission to copy, distribute and modify it."
12406
test -n "\$AWK" || AWK=awk
12409
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12410
# The default lists apply if the user does not specify any file.
12416
ac_option=`expr "X$1" : 'X\([^=]*\)='`
12417
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
12421
ac_option=`expr "X$1" : 'X\([^=]*\)='`
12433
# Handling of the options.
12434
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
12436
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
12437
$as_echo "$ac_cs_version"; exit ;;
12438
--config | --confi | --conf | --con | --co | --c )
12439
$as_echo "$ac_cs_config"; exit ;;
12440
--debug | --debu | --deb | --de | --d | -d )
12442
--file | --fil | --fi | --f )
12445
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12446
'') as_fn_error $? "missing file argument" ;;
12448
as_fn_append CONFIG_FILES " '$ac_optarg'"
12449
ac_need_defaults=false;;
12450
--header | --heade | --head | --hea )
12453
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
12455
as_fn_append CONFIG_HEADERS " '$ac_optarg'"
12456
ac_need_defaults=false;;
12458
# Conflict between --help and --header
12459
as_fn_error $? "ambiguous option: \`$1'
12460
Try \`$0 --help' for more information.";;
12461
--help | --hel | -h )
12462
$as_echo "$ac_cs_usage"; exit ;;
12463
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
12464
| -silent | --silent | --silen | --sile | --sil | --si | --s)
12467
# This is an error.
12468
-*) as_fn_error $? "unrecognized option: \`$1'
12469
Try \`$0 --help' for more information." ;;
12471
*) as_fn_append ac_config_targets " $1"
12472
ac_need_defaults=false ;;
12478
ac_configure_extra_args=
12480
if $ac_cs_silent; then
12482
ac_configure_extra_args="$ac_configure_extra_args --silent"
12486
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12487
if \$ac_cs_recheck; then
12488
set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
12490
\$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
12491
CONFIG_SHELL='$SHELL'
12492
export CONFIG_SHELL
12497
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12501
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
12502
## Running $as_me. ##
12508
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12514
# The HP-UX ksh and POSIX shell print the target directory to stdout
12515
# if CDPATH is set.
12516
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12518
sed_quote_subst='$sed_quote_subst'
12519
double_quote_subst='$double_quote_subst'
12520
delay_variable_subst='$delay_variable_subst'
12521
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
12522
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
12523
AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
12524
DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12525
OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
12526
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
12527
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
12528
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
12529
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
12530
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
12531
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
12532
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
12533
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
12534
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
12535
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
12536
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
12537
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
12538
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
12539
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
12540
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
12541
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
12542
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
12543
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
12544
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
12545
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
12546
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
12547
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
12548
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
12549
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
12550
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
12551
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12552
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
12553
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
12554
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
12555
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12556
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
12557
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
12558
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12559
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12560
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12561
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
12562
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
12563
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
12564
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
12565
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
12566
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
12567
lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
12568
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12569
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
12570
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
12571
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
12572
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
12573
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
12574
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
12575
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
12576
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
12577
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
12578
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
12579
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
12580
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
12581
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
12582
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
12583
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
12584
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
12585
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12586
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12587
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
12588
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
12589
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12590
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12591
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
12592
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12593
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12594
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12595
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12596
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12597
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12598
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
12599
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12600
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
12601
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
12602
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
12603
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
12604
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
12605
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
12606
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
12607
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12608
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
12609
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
12610
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
12611
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
12612
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
12613
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12614
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12615
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
12616
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12617
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
12618
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
12619
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
12620
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
12621
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
12622
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12623
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
12624
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
12625
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12626
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
12627
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
12628
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12629
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12630
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
12631
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
12632
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
12633
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12634
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
12635
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
12636
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
12637
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
12638
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
12639
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
12640
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
12643
LTCFLAGS='$LTCFLAGS'
12644
compiler='$compiler_DEFAULT'
12646
# Quote evaled strings.
12657
deplibs_check_method \
12666
lt_cv_sys_global_symbol_pipe \
12667
lt_cv_sys_global_symbol_to_cdecl \
12668
lt_cv_sys_global_symbol_to_c_name_address \
12669
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
12672
lt_prog_compiler_no_builtin_flag \
12673
lt_prog_compiler_wl \
12674
lt_prog_compiler_pic \
12675
lt_prog_compiler_static \
12676
lt_cv_prog_compiler_c_o \
12684
export_dynamic_flag_spec \
12685
whole_archive_flag_spec \
12686
compiler_needs_object \
12688
allow_undefined_flag \
12689
no_undefined_flag \
12690
hardcode_libdir_flag_spec \
12691
hardcode_libdir_flag_spec_ld \
12692
hardcode_libdir_separator \
12697
variables_saved_for_relink \
12699
library_names_spec \
12704
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12705
*[\\\\\\\`\\"\\\$]*)
12706
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
12709
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12714
# Double-quote double-evaled strings.
12715
for var in reload_cmds \
12716
old_postinstall_cmds \
12717
old_postuninstall_cmds \
12719
extract_expsyms_cmds \
12720
old_archive_from_new_cmds \
12721
old_archive_from_expsyms_cmds \
12723
archive_expsym_cmds \
12725
module_expsym_cmds \
12726
export_symbols_cmds \
12729
postuninstall_cmds \
12731
sys_lib_search_path_spec \
12732
sys_lib_dlsearch_path_spec; do
12733
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
12734
*[\\\\\\\`\\"\\\$]*)
12735
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
12738
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
12743
# Fix-up fallback echo if it was mangled by the above quoting rules.
12745
*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
12749
ac_aux_dir='$ac_aux_dir'
12750
xsi_shell='$xsi_shell'
12751
lt_shell_append='$lt_shell_append'
12753
# See if we are running on zsh, and set the options which allow our
12754
# commands through without removal of \ escapes INIT.
12755
if test -n "\${ZSH_VERSION+set}" ; then
12756
setopt NO_GLOB_SUBST
12762
TIMESTAMP='$TIMESTAMP'
12771
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12773
# Handling of arguments.
12774
for ac_config_target in $ac_config_targets
12776
case $ac_config_target in
12777
"libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
12778
"ftconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS ftconfig.h:ftconfig.in" ;;
12779
"unix-cc.mk") CONFIG_FILES="$CONFIG_FILES unix-cc.mk:unix-cc.in" ;;
12780
"unix-def.mk") CONFIG_FILES="$CONFIG_FILES unix-def.mk:unix-def.in" ;;
12781
"freetype-config") CONFIG_FILES="$CONFIG_FILES freetype-config" ;;
12782
"freetype2.pc") CONFIG_FILES="$CONFIG_FILES freetype2.pc:freetype2.in" ;;
12784
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
12789
# If the user did not use the arguments to specify the items to instantiate,
12790
# then the envvar interface is used. Set only those that are not.
12791
# We use the long form for the default assignment because of an extremely
12792
# bizarre bug on SunOS 4.1.3.
12793
if $ac_need_defaults; then
12794
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
12795
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
12796
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
12799
# Have a temporary directory for convenience. Make it in the build tree
12800
# simply because there is no reason against having it here, and in addition,
12801
# creating and moving files from /tmp can sometimes cause problems.
12802
# Hook for its removal unless debugging.
12803
# Note that there is a small window in which the directory will not be cleaned:
12804
# after its creation but before its name has been assigned to `$tmp'.
12808
trap 'exit_status=$?
12809
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
12811
trap 'as_fn_exit 1' 1 2 13 15
12813
# Create a (secure) tmp directory for tmp files.
12816
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
12817
test -n "$tmp" && test -d "$tmp"
12820
tmp=./conf$$-$RANDOM
12821
(umask 077 && mkdir "$tmp")
12822
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
12824
# Set up the scripts for CONFIG_FILES section.
12825
# No need to generate them if there are no CONFIG_FILES.
12826
# This happens for instance with `./config.status config.h'.
12827
if test -n "$CONFIG_FILES"; then
12830
ac_cr=`echo X | tr X '\015'`
12831
# On cygwin, bash can eat \r inside `` if the user requested igncr.
12832
# But we know of no other shell where ac_cr would be empty at this
12833
# point, so we can use a bashism as a fallback.
12834
if test "x$ac_cr" = x; then
12835
eval ac_cr=\$\'\\r\'
12837
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
12838
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
12841
ac_cs_awk_cr=$ac_cr
12844
echo 'BEGIN {' >"$tmp/subs1.awk" &&
12849
echo "cat >conf$$subs.awk <<_ACEOF" &&
12850
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
12852
} >conf$$subs.sh ||
12853
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12854
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
12856
for ac_last_try in false false false false false :; do
12857
. ./conf$$subs.sh ||
12858
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12860
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
12861
if test $ac_delim_n = $ac_delim_num; then
12863
elif $ac_last_try; then
12864
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
12866
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
12869
rm -f conf$$subs.sh
12871
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12872
cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
12876
s/^/S["/; s/!.*/"]=/
12886
s/\(.\{148\}\)..*/\1/
12888
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
12893
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12900
s/\(.\{148\}\)..*/\1/
12902
s/["\\]/\\&/g; s/^/"/; s/$/"/
12906
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
12911
' <conf$$subs.awk | sed '
12916
' >>$CONFIG_STATUS || ac_write_fail=1
12917
rm -f conf$$subs.awk
12918
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
12920
cat >>"\$tmp/subs1.awk" <<_ACAWK &&
12921
for (key in S) S_is_set[key] = 1
12927
nfields = split(line, field, "@")
12929
len = length(field[1])
12930
for (i = 2; i < nfields; i++) {
12932
keylen = length(key)
12933
if (S_is_set[key]) {
12935
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
12936
len += length(value) + length(field[++i])
12947
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12948
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
12949
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
12952
fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
12953
|| as_fn_error $? "could not setup config files machinery" "$LINENO" 5
12956
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
12957
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
12958
# trailing colons and then remove the whole line if VPATH becomes empty
12959
# (actually we leave an empty line to preserve line numbers).
12960
if test "x$srcdir" = x.; then
12961
ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
12979
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
12980
fi # test -n "$CONFIG_FILES"
12982
# Set up the scripts for CONFIG_HEADERS section.
12983
# No need to generate them if there are no CONFIG_HEADERS.
12984
# This happens for instance with `./config.status Makefile'.
12985
if test -n "$CONFIG_HEADERS"; then
12986
cat >"$tmp/defines.awk" <<\_ACAWK ||
12990
# Transform confdefs.h into an awk script `defines.awk', embedded as
12991
# here-document in config.status, that substitutes the proper values into
12992
# config.h.in to produce config.h.
12994
# Create a delimiter string that does not exist in confdefs.h, to ease
12995
# handling of long lines.
12997
for ac_last_try in false false :; do
12998
ac_t=`sed -n "/$ac_delim/p" confdefs.h`
12999
if test -z "$ac_t"; then
13001
elif $ac_last_try; then
13002
as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
13004
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13008
# For the awk script, D is an array of macro values keyed by name,
13009
# likewise P contains macro parameters if any. Preserve backslash
13010
# newline sequences.
13012
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13014
s/.\{148\}/&'"$ac_delim"'/g
13017
s/^[ ]*#[ ]*define[ ][ ]*/ /
13024
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13026
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13030
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13031
D["\1"]=" \3\\\\\\n"\\/p
13033
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13038
s/.\{148\}/&'"$ac_delim"'/g
13043
s/["\\]/\\&/g; s/^/"/; s/$/"/p
13046
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13048
' <confdefs.h | sed '
13049
s/'"$ac_delim"'/"\\\
13050
"/g' >>$CONFIG_STATUS || ac_write_fail=1
13052
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13053
for (key in D) D_is_set[key] = 1
13056
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13058
split(line, arg, " ")
13059
if (arg[1] == "#") {
13063
defundef = substr(arg[1], 2)
13066
split(mac1, mac2, "(") #)
13068
prefix = substr(line, 1, index(line, defundef) - 1)
13069
if (D_is_set[macro]) {
13070
# Preserve the white space surrounding the "#".
13071
print prefix "define", macro P[macro] D[macro]
13074
# Replace #undef with comments. This is necessary, for example,
13075
# in the case of _POSIX_SOURCE, which is predefined and required
13076
# on some systems where configure will not decide to define it.
13077
if (defundef == "undef") {
13078
print "/*", prefix defundef, macro, "*/"
13086
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13087
as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
13088
fi # test -n "$CONFIG_HEADERS"
13091
eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
13096
:[FHLC]) ac_mode=$ac_tag; continue;;
13098
case $ac_mode$ac_tag in
13100
:L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
13101
:[FH]-) ac_tag=-:-;;
13102
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13119
-) ac_f="$tmp/stdin";;
13120
*) # Look for the file first in the build tree, then in the source tree
13121
# (if the path is not absolute). The absolute path cannot be DOS-style,
13122
# because $ac_f cannot contain `:'.
13126
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13128
as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
13130
case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
13131
as_fn_append ac_file_inputs " '$ac_f'"
13134
# Let's still pretend it is `configure' which instantiates (i.e., don't
13135
# use $as_me), people would be surprised to read:
13136
# /* config.h. Generated by config.status. */
13137
configure_input='Generated from '`
13138
$as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13140
if test x"$ac_file" != x-; then
13141
configure_input="$ac_file. $configure_input"
13142
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
13143
$as_echo "$as_me: creating $ac_file" >&6;}
13145
# Neutralize special characters interpreted by sed in replacement strings.
13146
case $configure_input in #(
13147
*\&* | *\|* | *\\* )
13148
ac_sed_conf_input=`$as_echo "$configure_input" |
13149
sed 's/[\\\\&|]/\\\\&/g'`;; #(
13150
*) ac_sed_conf_input=$configure_input;;
13154
*:-:* | *:-) cat >"$tmp/stdin" \
13155
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13160
ac_dir=`$as_dirname -- "$ac_file" ||
13161
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13162
X"$ac_file" : 'X\(//\)[^/]' \| \
13163
X"$ac_file" : 'X\(//\)$' \| \
13164
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13165
$as_echo X"$ac_file" |
13166
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13170
/^X\(\/\/\)[^/].*/{
13183
as_dir="$ac_dir"; as_fn_mkdir_p
13187
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13189
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13190
# A ".." for each directory in $ac_dir_suffix.
13191
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13192
case $ac_top_builddir_sub in
13193
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13194
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13197
ac_abs_top_builddir=$ac_pwd
13198
ac_abs_builddir=$ac_pwd$ac_dir_suffix
13199
# for backward compatibility:
13200
ac_top_builddir=$ac_top_build_prefix
13203
.) # We are building in place.
13205
ac_top_srcdir=$ac_top_builddir_sub
13206
ac_abs_top_srcdir=$ac_pwd ;;
13207
[\\/]* | ?:[\\/]* ) # Absolute name.
13208
ac_srcdir=$srcdir$ac_dir_suffix;
13209
ac_top_srcdir=$srcdir
13210
ac_abs_top_srcdir=$srcdir ;;
13211
*) # Relative name.
13212
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13213
ac_top_srcdir=$ac_top_build_prefix$srcdir
13214
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13216
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13226
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13227
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13231
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13232
# If the template does not know about datarootdir, expand it.
13233
# FIXME: This hack should be removed a few years after 2.60.
13234
ac_datarootdir_hack=; ac_datarootdir_seen=
13245
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
13246
*datarootdir*) ac_datarootdir_seen=yes;;
13247
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
13248
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
13249
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
13251
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13252
ac_datarootdir_hack='
13253
s&@datadir@&$datadir&g
13254
s&@docdir@&$docdir&g
13255
s&@infodir@&$infodir&g
13256
s&@localedir@&$localedir&g
13257
s&@mandir@&$mandir&g
13258
s&\\\${datarootdir}&$datarootdir&g' ;;
13262
# Neutralize VPATH when `$srcdir' = `.'.
13263
# Shell code in configure.ac might set extrasub.
13264
# FIXME: do we really want to maintain this feature?
13265
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13266
ac_sed_extra="$ac_vpsub
13269
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13271
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13272
s|@configure_input@|$ac_sed_conf_input|;t t
13273
s&@top_builddir@&$ac_top_builddir_sub&;t t
13274
s&@top_build_prefix@&$ac_top_build_prefix&;t t
13275
s&@srcdir@&$ac_srcdir&;t t
13276
s&@abs_srcdir@&$ac_abs_srcdir&;t t
13277
s&@top_srcdir@&$ac_top_srcdir&;t t
13278
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13279
s&@builddir@&$ac_builddir&;t t
13280
s&@abs_builddir@&$ac_abs_builddir&;t t
13281
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13282
s&@INSTALL@&$ac_INSTALL&;t t
13283
$ac_datarootdir_hack
13285
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
13286
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
13288
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
13289
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
13290
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
13291
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13292
which seems to be undefined. Please make sure it is defined" >&5
13293
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
13294
which seems to be undefined. Please make sure it is defined" >&2;}
13298
-) cat "$tmp/out" && rm -f "$tmp/out";;
13299
*) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
13301
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
13307
if test x"$ac_file" != x-; then
13309
$as_echo "/* $configure_input */" \
13310
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
13311
} >"$tmp/config.h" \
13312
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
13313
if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
13314
{ $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13315
$as_echo "$as_me: $ac_file is unchanged" >&6;}
13318
mv "$tmp/config.h" "$ac_file" \
13319
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
13322
$as_echo "/* $configure_input */" \
13323
&& eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
13324
|| as_fn_error $? "could not create -" "$LINENO" 5
13328
:C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
13329
$as_echo "$as_me: executing $ac_file commands" >&6;}
13334
case $ac_file$ac_mode in
13337
# See if we are running on zsh, and set the options which allow our
13338
# commands through without removal of \ escapes.
13339
if test -n "${ZSH_VERSION+set}" ; then
13340
setopt NO_GLOB_SUBST
13343
cfgfile="${ofile}T"
13344
trap "$RM \"$cfgfile\"; exit 1" 1 2 15
13347
cat <<_LT_EOF >> "$cfgfile"
13350
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
13351
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
13352
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
13354
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
13355
# 2006, 2007, 2008 Free Software Foundation, Inc.
13356
# Written by Gordon Matzigkeit, 1996
13358
# This file is part of GNU Libtool.
13360
# GNU Libtool is free software; you can redistribute it and/or
13361
# modify it under the terms of the GNU General Public License as
13362
# published by the Free Software Foundation; either version 2 of
13363
# the License, or (at your option) any later version.
13365
# As a special exception to the GNU General Public License,
13366
# if you distribute this file as part of a program or library that
13367
# is built using GNU Libtool, you may include this file under the
13368
# same distribution terms that you use for the rest of that program.
13370
# GNU Libtool is distributed in the hope that it will be useful,
13371
# but WITHOUT ANY WARRANTY; without even the implied warranty of
13372
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13373
# GNU General Public License for more details.
13375
# You should have received a copy of the GNU General Public License
13376
# along with GNU Libtool; see the file COPYING. If not, a copy
13377
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
13378
# obtained by writing to the Free Software Foundation, Inc.,
13379
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
13382
# The names of the tagged configurations supported by this script.
13385
# ### BEGIN LIBTOOL CONFIG
13387
# Which release of libtool.m4 was used?
13388
macro_version=$macro_version
13389
macro_revision=$macro_revision
13391
# Assembler program.
13394
# DLL creation program.
13397
# Object dumper program.
13400
# Whether or not to build shared libraries.
13401
build_libtool_libs=$enable_shared
13403
# Whether or not to build static libraries.
13404
build_old_libs=$enable_static
13406
# What type of objects to build.
13409
# Whether or not to optimize for fast installation.
13410
fast_install=$enable_fast_install
13413
host_alias=$host_alias
13417
# The build system.
13418
build_alias=$build_alias
13422
# A sed program that does not truncate output.
13425
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
13426
Xsed="\$SED -e 1s/^X//"
13428
# A grep program that handles long lines.
13434
# A literal string matcher.
13437
# A BSD- or MS-compatible name lister.
13440
# Whether we need soft or hard links.
13443
# What is the maximum length of a command?
13444
max_cmd_len=$max_cmd_len
13446
# Object file suffix (normally "o").
13449
# Executable file suffix (normally "").
13452
# whether the shell understands "unset".
13455
# turn spaces into newlines.
13458
# turn newlines into spaces.
13461
# How to create reloadable object files.
13462
reload_flag=$lt_reload_flag
13463
reload_cmds=$lt_reload_cmds
13465
# Method to check whether dependent libraries are shared objects.
13466
deplibs_check_method=$lt_deplibs_check_method
13468
# Command to use when deplibs_check_method == "file_magic".
13469
file_magic_cmd=$lt_file_magic_cmd
13473
AR_FLAGS=$lt_AR_FLAGS
13475
# A symbol stripping program.
13478
# Commands used to install an old-style archive.
13480
old_postinstall_cmds=$lt_old_postinstall_cmds
13481
old_postuninstall_cmds=$lt_old_postuninstall_cmds
13486
# LTCC compiler flags.
13487
LTCFLAGS=$lt_CFLAGS
13489
# Take the output of nm and produce a listing of raw symbols and C names.
13490
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13492
# Transform the output of nm in a proper C declaration.
13493
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13495
# Transform the output of nm in a C name address pair.
13496
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13498
# Transform the output of nm in a C name address pair when lib prefix is needed.
13499
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
13501
# The name of the directory that contains temporary libtool files.
13504
# Shell to use when invoking shell scripts.
13507
# An echo program that does not interpret backslashes.
13510
# Used to examine libraries when file_magic_cmd begins with "file".
13511
MAGIC_CMD=$MAGIC_CMD
13513
# Must we lock files when doing compilation?
13514
need_locks=$lt_need_locks
13516
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
13517
DSYMUTIL=$lt_DSYMUTIL
13519
# Tool to change global to local symbols on Mac OS X.
13522
# Tool to manipulate fat objects and archives on Mac OS X.
13525
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
13528
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
13529
OTOOL64=$lt_OTOOL64
13531
# Old archive suffix (normally "a").
13534
# Shared library suffix (normally ".so").
13535
shrext_cmds=$lt_shrext_cmds
13537
# The commands to extract the exported symbol list from a shared archive.
13538
extract_expsyms_cmds=$lt_extract_expsyms_cmds
13540
# Variables whose values should be saved in libtool wrapper scripts and
13541
# restored at link time.
13542
variables_saved_for_relink=$lt_variables_saved_for_relink
13544
# Do we need the "lib" prefix for modules?
13545
need_lib_prefix=$need_lib_prefix
13547
# Do we need a version for libraries?
13548
need_version=$need_version
13550
# Library versioning type.
13551
version_type=$version_type
13553
# Shared library runtime path variable.
13554
runpath_var=$runpath_var
13556
# Shared library path variable.
13557
shlibpath_var=$shlibpath_var
13559
# Is shlibpath searched before the hard-coded library search path?
13560
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13562
# Format of library name prefix.
13563
libname_spec=$lt_libname_spec
13565
# List of archive names. First name is the real one, the rest are links.
13566
# The last name is the one that the linker finds with -lNAME
13567
library_names_spec=$lt_library_names_spec
13569
# The coded name of the library, if different from the real name.
13570
soname_spec=$lt_soname_spec
13572
# Command to use after installation of a shared archive.
13573
postinstall_cmds=$lt_postinstall_cmds
13575
# Command to use after uninstallation of a shared archive.
13576
postuninstall_cmds=$lt_postuninstall_cmds
13578
# Commands used to finish a libtool library installation in a directory.
13579
finish_cmds=$lt_finish_cmds
13581
# As "finish_cmds", except a single script fragment to be evaled but
13583
finish_eval=$lt_finish_eval
13585
# Whether we should hardcode library paths into libraries.
13586
hardcode_into_libs=$hardcode_into_libs
13588
# Compile-time system search path for libraries.
13589
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13591
# Run-time system search path for libraries.
13592
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13594
# Whether dlopen is supported.
13595
dlopen_support=$enable_dlopen
13597
# Whether dlopen of programs is supported.
13598
dlopen_self=$enable_dlopen_self
13600
# Whether dlopen of statically linked programs is supported.
13601
dlopen_self_static=$enable_dlopen_self_static
13603
# Commands to strip libraries.
13604
old_striplib=$lt_old_striplib
13605
striplib=$lt_striplib
13608
# The linker used to build libraries.
13611
# Commands used to build an old-style archive.
13612
old_archive_cmds=$lt_old_archive_cmds
13614
# A language specific compiler.
13617
# Is the compiler the GNU compiler?
13620
# Compiler flag to turn off builtin functions.
13621
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
13623
# How to pass a linker flag through the compiler.
13624
wl=$lt_lt_prog_compiler_wl
13626
# Additional compiler flags for building library objects.
13627
pic_flag=$lt_lt_prog_compiler_pic
13629
# Compiler flag to prevent dynamic linking.
13630
link_static_flag=$lt_lt_prog_compiler_static
13632
# Does compiler simultaneously support -c and -o options?
13633
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
13635
# Whether or not to add -lc for building shared libraries.
13636
build_libtool_need_lc=$archive_cmds_need_lc
13638
# Whether or not to disallow shared libs when runtime libs are static.
13639
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
13641
# Compiler flag to allow reflexive dlopens.
13642
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
13644
# Compiler flag to generate shared objects directly from archives.
13645
whole_archive_flag_spec=$lt_whole_archive_flag_spec
13647
# Whether the compiler copes with passing no objects directly.
13648
compiler_needs_object=$lt_compiler_needs_object
13650
# Create an old-style archive from a shared archive.
13651
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
13653
# Create a temporary old-style archive to link instead of a shared archive.
13654
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
13656
# Commands used to build a shared archive.
13657
archive_cmds=$lt_archive_cmds
13658
archive_expsym_cmds=$lt_archive_expsym_cmds
13660
# Commands used to build a loadable module if different from building
13661
# a shared archive.
13662
module_cmds=$lt_module_cmds
13663
module_expsym_cmds=$lt_module_expsym_cmds
13665
# Whether we are building with GNU ld or not.
13666
with_gnu_ld=$lt_with_gnu_ld
13668
# Flag that allows shared libraries with undefined symbols to be built.
13669
allow_undefined_flag=$lt_allow_undefined_flag
13671
# Flag that enforces no undefined symbols.
13672
no_undefined_flag=$lt_no_undefined_flag
13674
# Flag to hardcode \$libdir into a binary during linking.
13675
# This must work even if \$libdir does not exist
13676
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
13678
# If ld is used when linking, flag to hardcode \$libdir into a binary
13679
# during linking. This must work even if \$libdir does not exist.
13680
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
13682
# Whether we need a single "-rpath" flag with a separated argument.
13683
hardcode_libdir_separator=$lt_hardcode_libdir_separator
13685
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13686
# DIR into the resulting binary.
13687
hardcode_direct=$hardcode_direct
13689
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
13690
# DIR into the resulting binary and the resulting library dependency is
13691
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
13692
# library is relocated.
13693
hardcode_direct_absolute=$hardcode_direct_absolute
13695
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
13696
# into the resulting binary.
13697
hardcode_minus_L=$hardcode_minus_L
13699
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
13700
# into the resulting binary.
13701
hardcode_shlibpath_var=$hardcode_shlibpath_var
13703
# Set to "yes" if building a shared library automatically hardcodes DIR
13704
# into the library and all subsequent libraries and executables linked
13706
hardcode_automatic=$hardcode_automatic
13708
# Set to yes if linker adds runtime paths of dependent libraries
13709
# to runtime path list.
13710
inherit_rpath=$inherit_rpath
13712
# Whether libtool must link a program against all its dependency libraries.
13713
link_all_deplibs=$link_all_deplibs
13715
# Fix the shell variable \$srcfile for the compiler.
13716
fix_srcfile_path=$lt_fix_srcfile_path
13718
# Set to "yes" if exported symbols are required.
13719
always_export_symbols=$always_export_symbols
13721
# The commands to list exported symbols.
13722
export_symbols_cmds=$lt_export_symbols_cmds
13724
# Symbols that should not be listed in the preloaded symbols.
13725
exclude_expsyms=$lt_exclude_expsyms
13727
# Symbols that must always be exported.
13728
include_expsyms=$lt_include_expsyms
13730
# Commands necessary for linking programs (against libraries) with templates.
13731
prelink_cmds=$lt_prelink_cmds
13733
# Specify filename containing input files.
13734
file_list_spec=$lt_file_list_spec
13736
# How to hardcode a shared library path into an executable.
13737
hardcode_action=$hardcode_action
13739
# ### END LIBTOOL CONFIG
13745
cat <<\_LT_EOF >> "$cfgfile"
13746
# AIX sometimes has problems with the GCC collect2 program. For some
13747
# reason, if we set the COLLECT_NAMES environment variable, the problems
13748
# vanish in a puff of smoke.
13749
if test "X${COLLECT_NAMES+set}" != Xset; then
13751
export COLLECT_NAMES
13758
ltmain="$ac_aux_dir/ltmain.sh"
13761
# We use sed instead of cat because bash on DJGPP gets confused if
13762
# if finds mixed CR/LF and LF-only lines. Since sed operates in
13763
# text mode, it properly converts lines to CR/LF. This bash problem
13764
# is reportedly fixed, but why not run on old versions too?
13765
sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
13766
|| (rm -f "$cfgfile"; exit 1)
13770
cat << \_LT_EOF >> "$cfgfile"
13772
# func_dirname file append nondir_replacement
13773
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13774
# otherwise set result to NONDIR_REPLACEMENT.
13778
*/*) func_dirname_result="${1%/*}${2}" ;;
13779
* ) func_dirname_result="${3}" ;;
13783
# func_basename file
13786
func_basename_result="${1##*/}"
13789
# func_dirname_and_basename file append nondir_replacement
13790
# perform func_basename and func_dirname in a single function
13792
# dirname: Compute the dirname of FILE. If nonempty,
13793
# add APPEND to the result, otherwise set result
13794
# to NONDIR_REPLACEMENT.
13795
# value returned in "$func_dirname_result"
13796
# basename: Compute filename of FILE.
13797
# value retuned in "$func_basename_result"
13798
# Implementation must be kept synchronized with func_dirname
13799
# and func_basename. For efficiency, we do not delegate to
13800
# those functions but instead duplicate the functionality here.
13801
func_dirname_and_basename ()
13804
*/*) func_dirname_result="${1%/*}${2}" ;;
13805
* ) func_dirname_result="${3}" ;;
13807
func_basename_result="${1##*/}"
13810
# func_stripname prefix suffix name
13811
# strip PREFIX and SUFFIX off of NAME.
13812
# PREFIX and SUFFIX must not contain globbing or regex special
13813
# characters, hashes, percent signs, but SUFFIX may contain a leading
13814
# dot (in which case that matches only a dot).
13817
# pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
13818
# positional parameters, so assign one to ordinary parameter first.
13819
func_stripname_result=${3}
13820
func_stripname_result=${func_stripname_result#"${1}"}
13821
func_stripname_result=${func_stripname_result%"${2}"}
13827
func_opt_split_opt=${1%%=*}
13828
func_opt_split_arg=${1#*=}
13835
*.lo) func_lo2o_result=${1%.lo}.${objext} ;;
13836
*) func_lo2o_result=${1} ;;
13840
# func_xform libobj-or-source
13843
func_xform_result=${1%.*}.lo
13846
# func_arith arithmetic-term...
13849
func_arith_result=$(( $* ))
13853
# STRING may not start with a hyphen.
13856
func_len_result=${#1}
13861
*) # Bourne compatible functions.
13862
cat << \_LT_EOF >> "$cfgfile"
13864
# func_dirname file append nondir_replacement
13865
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
13866
# otherwise set result to NONDIR_REPLACEMENT.
13869
# Extract subdirectory from the argument.
13870
func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
13871
if test "X$func_dirname_result" = "X${1}"; then
13872
func_dirname_result="${3}"
13874
func_dirname_result="$func_dirname_result${2}"
13878
# func_basename file
13881
func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
13885
# func_stripname prefix suffix name
13886
# strip PREFIX and SUFFIX off of NAME.
13887
# PREFIX and SUFFIX must not contain globbing or regex special
13888
# characters, hashes, percent signs, but SUFFIX may contain a leading
13889
# dot (in which case that matches only a dot).
13890
# func_strip_suffix prefix name
13894
.*) func_stripname_result=`$ECHO "X${3}" \
13895
| $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
13896
*) func_stripname_result=`$ECHO "X${3}" \
13897
| $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
13902
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
13903
my_sed_long_arg='1s/^-[^=]*=//'
13908
func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
13909
func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
13915
func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
13918
# func_xform libobj-or-source
13921
func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
13924
# func_arith arithmetic-term...
13927
func_arith_result=`expr "$@"`
13931
# STRING may not start with a hyphen.
13934
func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
13940
case $lt_shell_append in
13942
cat << \_LT_EOF >> "$cfgfile"
13944
# func_append var value
13945
# Append VALUE to the end of shell variable VAR.
13953
cat << \_LT_EOF >> "$cfgfile"
13955
# func_append var value
13956
# Append VALUE to the end of shell variable VAR.
13967
sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
13968
|| (rm -f "$cfgfile"; exit 1)
13970
mv -f "$cfgfile" "$ofile" ||
13971
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
13975
"ftconfig.h":H) mv ftconfig.h ftconfig.tmp
13976
sed 's|/undef|#undef|' < ftconfig.tmp > ftconfig.h
13985
ac_clean_files=$ac_clean_files_save
13987
test $ac_write_fail = 0 ||
13988
as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
13991
# configure is writing to config.log, and then calls config.status.
13992
# config.status does its own redirection, appending to config.log.
13993
# Unfortunately, on DOS this fails, as config.log is still kept open
13994
# by configure, so config.status won't be able to write to it; its
13995
# output is simply discarded. So we exec the FD to /dev/null,
13996
# effectively closing config.log, so it can be properly (re)opened and
13997
# appended to by config.status. When coming back to configure, we
13998
# need to make the FD available again.
13999
if test "$no_create" != yes; then
14001
ac_config_status_args=
14002
test "$silent" = yes &&
14003
ac_config_status_args="$ac_config_status_args --quiet"
14005
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14007
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
14008
# would make configure fail if this is the last instruction.
14009
$ac_cs_success || as_fn_exit 1
14011
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14012
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14013
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14017
# end of configure.raw