2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.61 for openocd 0.3.1.
5
# Report bugs to <OpenOCD Mailing List <openocd-development@lists.berlios.de>>.
7
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8
# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9
# This configure script is free software; the Free Software Foundation
10
# gives unlimited permission to copy, distribute and modify it.
11
## --------------------- ##
12
## M4sh Initialization. ##
13
## --------------------- ##
15
# Be more Bourne compatible
16
DUALCASE=1; export DUALCASE # for MKS sh
17
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21
# is contrary to our usage. Disable this feature.
22
alias -g '${1+"$@"}'='"$@"'
25
case `(set -o) 2>/dev/null` in
26
*posix*) set -o posix ;;
35
# Avoid depending upon Character Ranges.
36
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39
as_cr_digits='0123456789'
40
as_cr_alnum=$as_cr_Letters$as_cr_digits
42
# The user is always right.
43
if test "${PATH_SEPARATOR+set}" != set; then
44
echo "#! /bin/sh" >conf$$.sh
45
echo "exit 0" >>conf$$.sh
47
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
55
# Support unset when possible.
56
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
64
# We need space, tab and new line, in precisely that order. Quoting is
65
# there to prevent editors from complaining about space-tab.
66
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
67
# splitting by setting IFS to empty value.)
72
# Find who we are. Look in the path if we contain no directory separator.
74
*[\\/]* ) as_myself=$0 ;;
75
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
79
test -z "$as_dir" && as_dir=.
80
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
86
# We did not find ourselves, most probably we were run as `sh COMMAND'
87
# in which case we are not to be found in the path.
88
if test "x$as_myself" = x; then
91
if test ! -f "$as_myself"; then
92
echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
96
# Work around bugs in pre-3.0 UWIN ksh.
97
for as_var in ENV MAIL MAILPATH
98
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
106
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
107
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
110
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
111
eval $as_var=C; export $as_var
113
($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
117
# Required to use basename.
118
if expr a : '\(a\)' >/dev/null 2>&1 &&
119
test "X`expr 00001 : '.*\(...\)'`" = X001; then
125
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
132
# Name of the executable.
133
as_me=`$as_basename -- "$0" ||
134
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
135
X"$0" : 'X\(//\)$' \| \
136
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
138
sed '/^.*\/\([^/][^/]*\)\/*$/{
156
if test "x$CONFIG_SHELL" = x; then
157
if (eval ":") 2>/dev/null; then
163
if test $as_have_required = yes && (eval ":
173
as_func_ret_success () {
176
as_func_ret_failure () {
181
if as_func_success; then
185
echo as_func_success failed.
188
if as_func_failure; then
190
echo as_func_failure succeeded.
193
if as_func_ret_success; then
197
echo as_func_ret_success failed.
200
if as_func_ret_failure; then
202
echo as_func_ret_failure succeeded.
205
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
209
echo positional parameters were not saved.
212
test \$exitcode = 0) || { (exit 1); exit 1; }
217
test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
218
test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
219
") 2> /dev/null; then
223
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
224
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
227
test -z "$as_dir" && as_dir=.
230
for as_base in sh bash ksh sh5; do
231
as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
238
for as_shell in $as_candidate_shells $SHELL; do
239
# Try only shells that exist, to save several forks.
240
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
241
{ ("$as_shell") 2> /dev/null <<\_ASEOF
242
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
245
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
246
# is contrary to our usage. Disable this feature.
247
alias -g '${1+"$@"}'='"$@"'
250
case `(set -o) 2>/dev/null` in
251
*posix*) set -o posix ;;
260
CONFIG_SHELL=$as_shell
262
if { "$as_shell" 2> /dev/null <<\_ASEOF
263
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
266
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
267
# is contrary to our usage. Disable this feature.
268
alias -g '${1+"$@"}'='"$@"'
271
case `(set -o) 2>/dev/null` in
272
*posix*) set -o posix ;;
288
as_func_ret_success () {
291
as_func_ret_failure () {
296
if as_func_success; then
300
echo as_func_success failed.
303
if as_func_failure; then
305
echo as_func_failure succeeded.
308
if as_func_ret_success; then
312
echo as_func_ret_success failed.
315
if as_func_ret_failure; then
317
echo as_func_ret_failure succeeded.
320
if ( set x; as_func_ret_success y && test x = "$1" ); then
324
echo positional parameters were not saved.
327
test $exitcode = 0) || { (exit 1); exit 1; }
332
test "x$as_lineno_1" != "x$as_lineno_2" &&
333
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
344
if test "x$CONFIG_SHELL" != x; then
345
for as_var in BASH_ENV ENV
346
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
349
exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
353
if test $as_have_required = no; then
354
echo This script requires a shell more modern than all the
355
echo shells that I found on your system. Please install a
356
echo modern shell, or manually run the script under such a
357
echo shell if you do have one.
358
{ (exit 1); exit 1; }
368
(eval "as_func_return () {
377
as_func_ret_success () {
380
as_func_ret_failure () {
385
if as_func_success; then
389
echo as_func_success failed.
392
if as_func_failure; then
394
echo as_func_failure succeeded.
397
if as_func_ret_success; then
401
echo as_func_ret_success failed.
404
if as_func_ret_failure; then
406
echo as_func_ret_failure succeeded.
409
if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
413
echo positional parameters were not saved.
416
test \$exitcode = 0") || {
417
echo No shell found that supports shell functions.
418
echo Please tell autoconf@gnu.org about your system,
419
echo including any error possibly output before this
427
test "x$as_lineno_1" != "x$as_lineno_2" &&
428
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
430
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
431
# uniformly replaced by the line number. The first 'sed' inserts a
432
# line-number line after each line using $LINENO; the second 'sed'
433
# does the real work. The second script uses 'N' to pair each
434
# line-number line with the line containing $LINENO, and appends
435
# trailing '-' during substitution so that $LINENO is not a special
437
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
438
# scripts with optimization help from Paolo Bonzini. Blame Lee
439
# E. McMahon (1931-1989) for sed's syntax. :-)
451
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
455
chmod +x "$as_me.lineno" ||
456
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
457
{ (exit 1); exit 1; }; }
459
# Don't try to exec as it changes $[0], causing all sort of problems
460
# (the dirname of $[0] is not the place where we might find the
461
# original and so on. Autoconf is especially sensitive to this).
463
# Exit status is that of the last command.
468
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
474
ECHO_C= ECHO_N= ECHO_T=
478
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
485
if expr a : '\(a\)' >/dev/null 2>&1 &&
486
test "X`expr 00001 : '.*\(...\)'`" = X001; then
492
rm -f conf$$ conf$$.exe conf$$.file
493
if test -d conf$$.dir; then
494
rm -f conf$$.dir/conf$$.file
500
if ln -s conf$$.file conf$$ 2>/dev/null; then
502
# ... but there are two gotchas:
503
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
504
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
505
# In both cases, we have to default to `cp -p'.
506
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
508
elif ln conf$$.file conf$$ 2>/dev/null; then
513
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
514
rmdir conf$$.dir 2>/dev/null
516
if mkdir -p . 2>/dev/null; then
519
test -d ./-p && rmdir ./-p
523
if test -x / >/dev/null 2>&1; then
526
if ls -dL / >/dev/null 2>&1; then
533
if test -d "$1"; then
539
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
540
???[sx]*):;;*)false;;esac;fi
544
as_executable_p=$as_test_x
546
# Sed expression to map a string onto a valid CPP name.
547
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
549
# Sed expression to map a string onto a valid variable name.
550
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
# Check that we are running under the correct shell.
556
SHELL=${CONFIG_SHELL-/bin/sh}
560
# Remove one level of quotation (which was required for Make).
561
ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
566
if test "X$1" = X--no-reexec; then
567
# Discard the --no-reexec flag, and continue.
569
elif test "X$1" = X--fallback-echo; then
570
# Avoid inline document here, it may be left over
572
elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
573
# Yippee, $ECHO works!
576
# Restart under the correct shell.
577
exec $SHELL "$0" --no-reexec ${1+"$@"}
580
if test "X$1" = X--fallback-echo; then
581
# used as fallback echo
589
# The HP-UX ksh and POSIX shell print the target directory to stdout
591
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
593
if test -z "$lt_ECHO"; then
594
if test "X${echo_test_string+set}" != Xset; then
595
# find a string as large as possible, as long as the shell can cope with it
596
for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597
# expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598
if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
599
{ test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
606
if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
607
echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
608
test "X$echo_testing_string" = "X$echo_test_string"; then
611
# The Solaris, AIX, and Digital Unix default echo programs unquote
612
# backslashes. This makes it impossible to quote backslashes using
613
# echo "$something" | sed 's/\\/\\\\/g'
615
# So, first we look for a working echo in the user's PATH.
617
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
618
for dir in $PATH /usr/ucb; do
620
if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
621
test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
622
echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
623
test "X$echo_testing_string" = "X$echo_test_string"; then
630
if test "X$ECHO" = Xecho; then
631
# We didn't find a better echo, so look for alternatives.
632
if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
633
echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
634
test "X$echo_testing_string" = "X$echo_test_string"; then
635
# This shell has a builtin print -r that does the trick.
637
elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
638
test "X$CONFIG_SHELL" != X/bin/ksh; then
639
# If we have ksh, try running configure again with it.
640
ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
641
export ORIGINAL_CONFIG_SHELL
642
CONFIG_SHELL=/bin/ksh
644
exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
648
if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
649
echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
650
test "X$echo_testing_string" = "X$echo_test_string"; then
653
elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
654
test "X$echo_testing_string" = 'X\t' &&
655
echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
656
test "X$echo_testing_string" = "X$echo_test_string"; then
657
CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
659
SHELL="$CONFIG_SHELL"
661
ECHO="$CONFIG_SHELL $0 --fallback-echo"
662
elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
663
test "X$echo_testing_string" = 'X\t' &&
664
echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
665
test "X$echo_testing_string" = "X$echo_test_string"; then
666
ECHO="$CONFIG_SHELL $0 --fallback-echo"
668
# maybe with a smaller string...
671
for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
672
if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
679
if test "$prev" != 'sed 50q "$0"'; then
680
echo_test_string=`eval $prev`
681
export echo_test_string
682
exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684
# Oops. We lost completely, so just stick with echo.
693
# Copy echo and quote the copy suitably for passing to libtool from
694
# the Makefile, instead of quoting the original, which is used later.
696
if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
697
lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
703
exec 7<&0 </dev/null 6>&1
706
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
707
# so uname gets run too.
708
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
713
ac_default_prefix=/usr/local
715
ac_config_libobj_dir=.
721
SHELL=${CONFIG_SHELL-/bin/sh}
723
# Identity of this package.
724
PACKAGE_NAME='openocd'
725
PACKAGE_TARNAME='openocd'
726
PACKAGE_VERSION='0.3.1'
727
PACKAGE_STRING='openocd 0.3.1'
728
PACKAGE_BUGREPORT='OpenOCD Mailing List <openocd-development@lists.berlios.de>'
730
ac_unique_file="src/openocd.c"
731
# Factoring default headers for most tests.
732
ac_includes_default="\
734
#ifdef HAVE_SYS_TYPES_H
735
# include <sys/types.h>
737
#ifdef HAVE_SYS_STAT_H
738
# include <sys/stat.h>
744
# ifdef HAVE_STDLIB_H
749
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
754
#ifdef HAVE_STRINGS_H
755
# include <strings.h>
757
#ifdef HAVE_INTTYPES_H
758
# include <inttypes.h>
776
program_transform_name
818
INSTALL_STRIP_PROGRAM
827
MAINTAINER_MODE_FALSE
931
MINIDRIVER_DUMMY_TRUE
932
MINIDRIVER_DUMMY_FALSE
939
ac_precious_vars='build_alias
950
# Initialize some variables set by options.
952
ac_init_version=false
953
# The variables have the same names as the options, with
954
# dashes changed to underlines.
962
program_transform_name=s,x,x,
970
# Installation directory options.
971
# These are left unexpanded so users can "make install exec_prefix=/foo"
972
# and all the variables that are supposed to be based on exec_prefix
973
# by default will actually change.
974
# Use braces instead of parens because sh, perl, etc. also accept them.
975
# (The list follows the same order as the GNU Coding Standards.)
976
bindir='${exec_prefix}/bin'
977
sbindir='${exec_prefix}/sbin'
978
libexecdir='${exec_prefix}/libexec'
979
datarootdir='${prefix}/share'
980
datadir='${datarootdir}'
981
sysconfdir='${prefix}/etc'
982
sharedstatedir='${prefix}/com'
983
localstatedir='${prefix}/var'
984
includedir='${prefix}/include'
985
oldincludedir='/usr/include'
986
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
987
infodir='${datarootdir}/info'
992
libdir='${exec_prefix}/lib'
993
localedir='${datarootdir}/locale'
994
mandir='${datarootdir}/man'
1000
# If the previous option needs an argument, assign it.
1001
if test -n "$ac_prev"; then
1002
eval $ac_prev=\$ac_option
1008
*=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1012
# Accept the important Cygnus configure options, so we can diagnose typos.
1014
case $ac_dashdash$ac_option in
1018
-bindir | --bindir | --bindi | --bind | --bin | --bi)
1020
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1021
bindir=$ac_optarg ;;
1023
-build | --build | --buil | --bui | --bu)
1024
ac_prev=build_alias ;;
1025
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
1026
build_alias=$ac_optarg ;;
1028
-cache-file | --cache-file | --cache-fil | --cache-fi \
1029
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1030
ac_prev=cache_file ;;
1031
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1032
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1033
cache_file=$ac_optarg ;;
1035
--config-cache | -C)
1036
cache_file=config.cache ;;
1038
-datadir | --datadir | --datadi | --datad)
1040
-datadir=* | --datadir=* | --datadi=* | --datad=*)
1041
datadir=$ac_optarg ;;
1043
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1044
| --dataroo | --dataro | --datar)
1045
ac_prev=datarootdir ;;
1046
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1047
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1048
datarootdir=$ac_optarg ;;
1050
-disable-* | --disable-*)
1051
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1052
# Reject names that are not valid shell variable names.
1053
expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1054
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
1055
{ (exit 1); exit 1; }; }
1056
ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1057
eval enable_$ac_feature=no ;;
1059
-docdir | --docdir | --docdi | --doc | --do)
1061
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1062
docdir=$ac_optarg ;;
1064
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1066
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1067
dvidir=$ac_optarg ;;
1069
-enable-* | --enable-*)
1070
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1071
# Reject names that are not valid shell variable names.
1072
expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1073
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
1074
{ (exit 1); exit 1; }; }
1075
ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1076
eval enable_$ac_feature=\$ac_optarg ;;
1078
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1079
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1080
| --exec | --exe | --ex)
1081
ac_prev=exec_prefix ;;
1082
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1083
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1084
| --exec=* | --exe=* | --ex=*)
1085
exec_prefix=$ac_optarg ;;
1087
-gas | --gas | --ga | --g)
1088
# Obsolete; use --with-gas.
1091
-help | --help | --hel | --he | -h)
1092
ac_init_help=long ;;
1093
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1094
ac_init_help=recursive ;;
1095
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1096
ac_init_help=short ;;
1098
-host | --host | --hos | --ho)
1099
ac_prev=host_alias ;;
1100
-host=* | --host=* | --hos=* | --ho=*)
1101
host_alias=$ac_optarg ;;
1103
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1105
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1107
htmldir=$ac_optarg ;;
1109
-includedir | --includedir | --includedi | --included | --include \
1110
| --includ | --inclu | --incl | --inc)
1111
ac_prev=includedir ;;
1112
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1113
| --includ=* | --inclu=* | --incl=* | --inc=*)
1114
includedir=$ac_optarg ;;
1116
-infodir | --infodir | --infodi | --infod | --info | --inf)
1118
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1119
infodir=$ac_optarg ;;
1121
-libdir | --libdir | --libdi | --libd)
1123
-libdir=* | --libdir=* | --libdi=* | --libd=*)
1124
libdir=$ac_optarg ;;
1126
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1127
| --libexe | --libex | --libe)
1128
ac_prev=libexecdir ;;
1129
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1130
| --libexe=* | --libex=* | --libe=*)
1131
libexecdir=$ac_optarg ;;
1133
-localedir | --localedir | --localedi | --localed | --locale)
1134
ac_prev=localedir ;;
1135
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1136
localedir=$ac_optarg ;;
1138
-localstatedir | --localstatedir | --localstatedi | --localstated \
1139
| --localstate | --localstat | --localsta | --localst | --locals)
1140
ac_prev=localstatedir ;;
1141
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1142
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1143
localstatedir=$ac_optarg ;;
1145
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1147
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1148
mandir=$ac_optarg ;;
1150
-nfp | --nfp | --nf)
1151
# Obsolete; use --without-fp.
1154
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
1155
| --no-cr | --no-c | -n)
1158
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
1159
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1162
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1163
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1164
| --oldin | --oldi | --old | --ol | --o)
1165
ac_prev=oldincludedir ;;
1166
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1167
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1168
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1169
oldincludedir=$ac_optarg ;;
1171
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1173
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1174
prefix=$ac_optarg ;;
1176
-program-prefix | --program-prefix | --program-prefi | --program-pref \
1177
| --program-pre | --program-pr | --program-p)
1178
ac_prev=program_prefix ;;
1179
-program-prefix=* | --program-prefix=* | --program-prefi=* \
1180
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1181
program_prefix=$ac_optarg ;;
1183
-program-suffix | --program-suffix | --program-suffi | --program-suff \
1184
| --program-suf | --program-su | --program-s)
1185
ac_prev=program_suffix ;;
1186
-program-suffix=* | --program-suffix=* | --program-suffi=* \
1187
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1188
program_suffix=$ac_optarg ;;
1190
-program-transform-name | --program-transform-name \
1191
| --program-transform-nam | --program-transform-na \
1192
| --program-transform-n | --program-transform- \
1193
| --program-transform | --program-transfor \
1194
| --program-transfo | --program-transf \
1195
| --program-trans | --program-tran \
1196
| --progr-tra | --program-tr | --program-t)
1197
ac_prev=program_transform_name ;;
1198
-program-transform-name=* | --program-transform-name=* \
1199
| --program-transform-nam=* | --program-transform-na=* \
1200
| --program-transform-n=* | --program-transform-=* \
1201
| --program-transform=* | --program-transfor=* \
1202
| --program-transfo=* | --program-transf=* \
1203
| --program-trans=* | --program-tran=* \
1204
| --progr-tra=* | --program-tr=* | --program-t=*)
1205
program_transform_name=$ac_optarg ;;
1207
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1209
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1210
pdfdir=$ac_optarg ;;
1212
-psdir | --psdir | --psdi | --psd | --ps)
1214
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1217
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1218
| -silent | --silent | --silen | --sile | --sil)
1221
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1223
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1225
sbindir=$ac_optarg ;;
1227
-sharedstatedir | --sharedstatedir | --sharedstatedi \
1228
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1229
| --sharedst | --shareds | --shared | --share | --shar \
1231
ac_prev=sharedstatedir ;;
1232
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1233
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1234
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1236
sharedstatedir=$ac_optarg ;;
1238
-site | --site | --sit)
1240
-site=* | --site=* | --sit=*)
1243
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1245
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1246
srcdir=$ac_optarg ;;
1248
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1249
| --syscon | --sysco | --sysc | --sys | --sy)
1250
ac_prev=sysconfdir ;;
1251
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1252
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1253
sysconfdir=$ac_optarg ;;
1255
-target | --target | --targe | --targ | --tar | --ta | --t)
1256
ac_prev=target_alias ;;
1257
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1258
target_alias=$ac_optarg ;;
1260
-v | -verbose | --verbose | --verbos | --verbo | --verb)
1263
-version | --version | --versio | --versi | --vers | -V)
1264
ac_init_version=: ;;
1267
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1268
# Reject names that are not valid shell variable names.
1269
expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1270
{ echo "$as_me: error: invalid package name: $ac_package" >&2
1271
{ (exit 1); exit 1; }; }
1272
ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1273
eval with_$ac_package=\$ac_optarg ;;
1275
-without-* | --without-*)
1276
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1277
# Reject names that are not valid shell variable names.
1278
expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1279
{ echo "$as_me: error: invalid package name: $ac_package" >&2
1280
{ (exit 1); exit 1; }; }
1281
ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1282
eval with_$ac_package=no ;;
1285
# Obsolete; use --with-x.
1288
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1289
| --x-incl | --x-inc | --x-in | --x-i)
1290
ac_prev=x_includes ;;
1291
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1292
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1293
x_includes=$ac_optarg ;;
1295
-x-libraries | --x-libraries | --x-librarie | --x-librari \
1296
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1297
ac_prev=x_libraries ;;
1298
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1299
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1300
x_libraries=$ac_optarg ;;
1302
-*) { echo "$as_me: error: unrecognized option: $ac_option
1303
Try \`$0 --help' for more information." >&2
1304
{ (exit 1); exit 1; }; }
1308
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1309
# Reject names that are not valid shell variable names.
1310
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1311
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1312
{ (exit 1); exit 1; }; }
1313
eval $ac_envvar=\$ac_optarg
1314
export $ac_envvar ;;
1317
# FIXME: should be removed in autoconf 3.0.
1318
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1319
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1320
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1321
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1327
if test -n "$ac_prev"; then
1328
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1329
{ echo "$as_me: error: missing argument to $ac_option" >&2
1330
{ (exit 1); exit 1; }; }
1333
# Be sure to have absolute directory names.
1334
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1335
datadir sysconfdir sharedstatedir localstatedir includedir \
1336
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1337
libdir localedir mandir
1339
eval ac_val=\$$ac_var
1341
[\\/$]* | ?:[\\/]* ) continue;;
1342
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1344
{ echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1345
{ (exit 1); exit 1; }; }
1348
# There might be people who depend on the old broken behavior: `$host'
1349
# used to hold the argument of --host etc.
1350
# FIXME: To remove some day.
1353
target=$target_alias
1355
# FIXME: To remove some day.
1356
if test "x$host_alias" != x; then
1357
if test "x$build_alias" = x; then
1358
cross_compiling=maybe
1359
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1360
If a cross compiler is detected then cross compile mode will be used." >&2
1361
elif test "x$build_alias" != "x$host_alias"; then
1367
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1369
test "$silent" = yes && exec 6>/dev/null
1372
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1373
ac_ls_di=`ls -di .` &&
1374
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1375
{ echo "$as_me: error: Working directory cannot be determined" >&2
1376
{ (exit 1); exit 1; }; }
1377
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1378
{ echo "$as_me: error: pwd does not report name of working directory" >&2
1379
{ (exit 1); exit 1; }; }
1382
# Find the source files, if location was not specified.
1383
if test -z "$srcdir"; then
1384
ac_srcdir_defaulted=yes
1385
# Try the directory containing this script, then the parent directory.
1386
ac_confdir=`$as_dirname -- "$0" ||
1387
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1388
X"$0" : 'X\(//\)[^/]' \| \
1389
X"$0" : 'X\(//\)$' \| \
1390
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1392
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1410
if test ! -r "$srcdir/$ac_unique_file"; then
1414
ac_srcdir_defaulted=no
1416
if test ! -r "$srcdir/$ac_unique_file"; then
1417
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1418
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1419
{ (exit 1); exit 1; }; }
1421
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1423
cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1424
{ (exit 1); exit 1; }; }
1426
# When building in place, set srcdir=.
1427
if test "$ac_abs_confdir" = "$ac_pwd"; then
1430
# Remove unnecessary trailing slashes from srcdir.
1431
# Double slashes in file names in object file debugging info
1432
# mess up M-x gdb in Emacs.
1434
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1436
for ac_var in $ac_precious_vars; do
1437
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1438
eval ac_env_${ac_var}_value=\$${ac_var}
1439
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1440
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1444
# Report the --help message.
1446
if test "$ac_init_help" = "long"; then
1447
# Omit some internal or obsolete options to make the list less imposing.
1448
# This message is too long to be a string in the A/UX 3.1 sh.
1450
\`configure' configures openocd 0.3.1 to adapt to many kinds of systems.
1452
Usage: $0 [OPTION]... [VAR=VALUE]...
1454
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1455
VAR=VALUE. See below for descriptions of some of the useful variables.
1457
Defaults for the options are specified in brackets.
1460
-h, --help display this help and exit
1461
--help=short display options specific to this package
1462
--help=recursive display the short help of all the included packages
1463
-V, --version display version information and exit
1464
-q, --quiet, --silent do not print \`checking...' messages
1465
--cache-file=FILE cache test results in FILE [disabled]
1466
-C, --config-cache alias for \`--cache-file=config.cache'
1467
-n, --no-create do not create output files
1468
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1470
Installation directories:
1471
--prefix=PREFIX install architecture-independent files in PREFIX
1472
[$ac_default_prefix]
1473
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1476
By default, \`make install' will install all the files in
1477
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1478
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1479
for instance \`--prefix=\$HOME'.
1481
For better control, use the options below.
1483
Fine tuning of the installation directories:
1484
--bindir=DIR user executables [EPREFIX/bin]
1485
--sbindir=DIR system admin executables [EPREFIX/sbin]
1486
--libexecdir=DIR program executables [EPREFIX/libexec]
1487
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1488
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1489
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1490
--libdir=DIR object code libraries [EPREFIX/lib]
1491
--includedir=DIR C header files [PREFIX/include]
1492
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1493
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1494
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1495
--infodir=DIR info documentation [DATAROOTDIR/info]
1496
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1497
--mandir=DIR man documentation [DATAROOTDIR/man]
1498
--docdir=DIR documentation root [DATAROOTDIR/doc/openocd]
1499
--htmldir=DIR html documentation [DOCDIR]
1500
--dvidir=DIR dvi documentation [DOCDIR]
1501
--pdfdir=DIR pdf documentation [DOCDIR]
1502
--psdir=DIR ps documentation [DOCDIR]
1508
--program-prefix=PREFIX prepend PREFIX to installed program names
1509
--program-suffix=SUFFIX append SUFFIX to installed program names
1510
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1513
--build=BUILD configure for building on BUILD [guessed]
1514
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1518
if test -n "$ac_init_help"; then
1519
case $ac_init_help in
1520
short | recursive ) echo "Configuration of openocd 0.3.1:";;
1525
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1526
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1527
--enable-maintainer-mode enable make rules and dependencies not useful
1528
(and sometimes confusing) to the casual installer
1529
--disable-dependency-tracking speeds up one-time build
1530
--enable-dependency-tracking do not reject slow dependency extractors
1531
--enable-shared[=PKGS] build shared libraries [default=no]
1532
--enable-static[=PKGS] build static libraries [default=yes]
1533
--enable-fast-install[=PKGS]
1534
optimize for fast installation [default=yes]
1535
--disable-libtool-lock avoid locking (might break parallel builds)
1536
--disable-assert turn off assertions
1537
--disable-gccwarnings Disable compiler warnings
1538
--disable-wextra Disable extra compiler warnings
1539
--disable-werror Do not treat warnings as errors
1540
--enable-verbose Enable verbose JTAG I/O messages (for debugging).
1541
--enable-verbose-jtag-io
1542
Enable verbose JTAG I/O messages (for debugging).
1543
--enable-verbose-usb-io Enable verbose USB I/O messages (for debugging)
1544
--enable-verbose-usb-comms
1545
Enable verbose USB communication messages (for
1547
--enable-malloc-logging Include free space in logging messages (requires
1549
--enable-dummy Enable building the dummy port driver
1550
--enable-parport Enable building the pc parallel port driver
1551
--disable-parport-ppdev Disable use of ppdev (/dev/parportN) for parport
1553
--enable-parport-giveio Enable use of giveio for parport (for CygWin only)
1554
--enable-ft2232_libftdi Enable building support for FT2232 based devices
1555
using the libftdi driver, opensource alternate of
1557
--enable-ft2232_ftd2xx Enable building support for FT2232 based devices
1558
using the FTD2XX driver from ftdichip.com
1559
--enable-amtjtagaccel Enable building the Amontec JTAG-Accelerator driver
1560
--enable-ecosboard Enable building support for eCos based JTAG debugger
1561
--enable-zy1000 Enable ZY1000 interface
1562
--enable-ioutil Enable ioutil functions - useful for standalone
1563
OpenOCD implementations
1564
--enable-httpd Enable builtin httpd server - useful for standalone
1565
OpenOCD implementations
1566
--enable-ep93xx Enable building support for EP93xx based SBCs
1567
--enable-at91rm9200 Enable building support for AT91RM9200 based SBCs
1568
--enable-gw16012 Enable building support for the Gateworks GW16012
1570
--enable-presto_libftdi Enable building support for ASIX Presto Programmer
1571
using the libftdi driver
1572
--enable-presto_ftd2xx Enable building support for ASIX Presto Programmer
1573
using the FTD2XX driver
1574
--enable-usbprog Enable building support for the usbprog JTAG
1576
--enable-oocd_trace Enable building support for some prototype
1577
OpenOCD+trace ETM capture hardware
1578
--enable-jlink Enable building support for the Segger J-Link JTAG
1580
--enable-vsllink Enable building support for the Versaloon-Link JTAG
1582
--enable-rlink Enable building support for the Raisonance RLink
1584
--enable-arm-jtag-ew Enable building support for the Olimex ARM-JTAG-EW
1586
--enable-minidriver-dummy
1587
Enable the dummy minidriver.
1590
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1591
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1592
--with-pic try to use only PIC/non-PIC objects [default=use
1594
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
1595
--with-ftd2xx=<PATH> This option has been removed.
1596
--with-ftd2xx-win32-zipdir
1597
Where (CYGWIN/MINGW) the zip file from ftdichip.com
1598
was unpacked <default=search>
1599
--with-ftd2xx-linux-tardir
1600
Where (Linux/Unix) the tar file from ftdichip.com
1601
was unpacked <default=search>
1602
--with-ftd2xx-lib Use static or shared ftd2xx libs on default static
1604
Some influential environment variables:
1605
CC C compiler command
1606
CFLAGS C compiler flags
1607
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1608
nonstandard directory <lib dir>
1609
LIBS libraries to pass to the linker, e.g. -l<library>
1610
CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1611
you have headers in a nonstandard directory <include dir>
1614
Use these variables to override the choices made by `configure' or to help
1615
it to find libraries and programs with nonstandard names/locations.
1617
Report bugs to <OpenOCD Mailing List <openocd-development@lists.berlios.de>>.
1622
if test "$ac_init_help" = "recursive"; then
1623
# If there are subdirs, report their specific --help.
1624
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1625
test -d "$ac_dir" || continue
1629
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1631
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1632
# A ".." for each directory in $ac_dir_suffix.
1633
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1634
case $ac_top_builddir_sub in
1635
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1636
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1639
ac_abs_top_builddir=$ac_pwd
1640
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1641
# for backward compatibility:
1642
ac_top_builddir=$ac_top_build_prefix
1645
.) # We are building in place.
1647
ac_top_srcdir=$ac_top_builddir_sub
1648
ac_abs_top_srcdir=$ac_pwd ;;
1649
[\\/]* | ?:[\\/]* ) # Absolute name.
1650
ac_srcdir=$srcdir$ac_dir_suffix;
1651
ac_top_srcdir=$srcdir
1652
ac_abs_top_srcdir=$srcdir ;;
1654
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1655
ac_top_srcdir=$ac_top_build_prefix$srcdir
1656
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1658
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1660
cd "$ac_dir" || { ac_status=$?; continue; }
1661
# Check for guested configure.
1662
if test -f "$ac_srcdir/configure.gnu"; then
1664
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1665
elif test -f "$ac_srcdir/configure"; then
1667
$SHELL "$ac_srcdir/configure" --help=recursive
1669
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1671
cd "$ac_pwd" || { ac_status=$?; break; }
1675
test -n "$ac_init_help" && exit $ac_status
1676
if $ac_init_version; then
1678
openocd configure 0.3.1
1679
generated by GNU Autoconf 2.61
1681
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1682
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1683
This configure script is free software; the Free Software Foundation
1684
gives unlimited permission to copy, distribute and modify it.
1688
cat >config.log <<_ACEOF
1689
This file contains any messages produced by compilers while
1690
running configure, to aid debugging if configure makes a mistake.
1692
It was created by openocd $as_me 0.3.1, which was
1693
generated by GNU Autoconf 2.61. Invocation command line was
1705
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1706
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1707
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1708
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1709
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1711
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1712
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1714
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1715
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1716
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1717
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1718
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1719
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1720
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1724
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1728
test -z "$as_dir" && as_dir=.
1729
echo "PATH: $as_dir"
1745
# Keep a trace of the command line.
1746
# Strip out --no-create and --no-recursion so they do not pile up.
1747
# Strip out --silent because we don't want to record it for future runs.
1748
# Also quote any args containing shell meta-characters.
1749
# Make two passes to allow for proper duplicate-argument suppression.
1753
ac_must_keep_next=false
1759
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1760
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1761
| -silent | --silent | --silen | --sile | --sil)
1764
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1767
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1769
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1770
if test $ac_must_keep_next = true; then
1771
ac_must_keep_next=false # Got value, back to normal.
1774
*=* | --config-cache | -C | -disable-* | --disable-* \
1775
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1776
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1777
| -with-* | --with-* | -without-* | --without-* | --x)
1778
case "$ac_configure_args0 " in
1779
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1782
-* ) ac_must_keep_next=true ;;
1785
ac_configure_args="$ac_configure_args '$ac_arg'"
1790
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1791
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1793
# When interrupted or exit'd, cleanup temporary files, and complete
1794
# config.log. We remove comments because anyway the quotes in there
1795
# would cause problems or look ugly.
1796
# WARNING: Use '\'' to represent an apostrophe within the trap.
1797
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1798
trap 'exit_status=$?
1799
# Save into config.log some information that might help in debugging.
1804
## ---------------- ##
1805
## Cache variables. ##
1806
## ---------------- ##
1809
# The following way of writing the cache mishandles newlines in values,
1811
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1812
eval ac_val=\$$ac_var
1816
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1817
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1820
_ | IFS | as_nl) ;; #(
1821
*) $as_unset $ac_var ;;
1826
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1827
*${as_nl}ac_space=\ *)
1829
"s/'\''/'\''\\\\'\'''\''/g;
1830
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1833
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1841
## ----------------- ##
1842
## Output variables. ##
1843
## ----------------- ##
1846
for ac_var in $ac_subst_vars
1848
eval ac_val=\$$ac_var
1850
*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1852
echo "$ac_var='\''$ac_val'\''"
1856
if test -n "$ac_subst_files"; then
1858
## ------------------- ##
1859
## File substitutions. ##
1860
## ------------------- ##
1863
for ac_var in $ac_subst_files
1865
eval ac_val=\$$ac_var
1867
*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1869
echo "$ac_var='\''$ac_val'\''"
1874
if test -s confdefs.h; then
1884
test "$ac_signal" != 0 &&
1885
echo "$as_me: caught signal $ac_signal"
1886
echo "$as_me: exit $exit_status"
1888
rm -f core *.core core.conftest.* &&
1889
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1892
for ac_signal in 1 2 13 15; do
1893
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1897
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1898
rm -f -r conftest* confdefs.h
1900
# Predefined preprocessor variables.
1902
cat >>confdefs.h <<_ACEOF
1903
#define PACKAGE_NAME "$PACKAGE_NAME"
1907
cat >>confdefs.h <<_ACEOF
1908
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1912
cat >>confdefs.h <<_ACEOF
1913
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1917
cat >>confdefs.h <<_ACEOF
1918
#define PACKAGE_STRING "$PACKAGE_STRING"
1922
cat >>confdefs.h <<_ACEOF
1923
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1927
# Let the site file select an alternate cache file if it wants to.
1928
# Prefer explicitly selected file to automatically selected ones.
1929
if test -n "$CONFIG_SITE"; then
1930
set x "$CONFIG_SITE"
1931
elif test "x$prefix" != xNONE; then
1932
set x "$prefix/share/config.site" "$prefix/etc/config.site"
1934
set x "$ac_default_prefix/share/config.site" \
1935
"$ac_default_prefix/etc/config.site"
1940
if test -r "$ac_site_file"; then
1941
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1942
echo "$as_me: loading site script $ac_site_file" >&6;}
1943
sed 's/^/| /' "$ac_site_file" >&5
1948
if test -r "$cache_file"; then
1949
# Some versions of bash will fail to source /dev/null (special
1950
# files actually), so we avoid doing that.
1951
if test -f "$cache_file"; then
1952
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1953
echo "$as_me: loading cache $cache_file" >&6;}
1955
[\\/]* | ?:[\\/]* ) . "$cache_file";;
1956
*) . "./$cache_file";;
1960
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1961
echo "$as_me: creating cache $cache_file" >&6;}
1965
# Check that the precious variables saved in the cache have kept the same
1967
ac_cache_corrupted=false
1968
for ac_var in $ac_precious_vars; do
1969
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1970
eval ac_new_set=\$ac_env_${ac_var}_set
1971
eval ac_old_val=\$ac_cv_env_${ac_var}_value
1972
eval ac_new_val=\$ac_env_${ac_var}_value
1973
case $ac_old_set,$ac_new_set in
1975
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1976
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1977
ac_cache_corrupted=: ;;
1979
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1980
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1981
ac_cache_corrupted=: ;;
1984
if test "x$ac_old_val" != "x$ac_new_val"; then
1985
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1986
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1987
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1988
echo "$as_me: former value: $ac_old_val" >&2;}
1989
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1990
echo "$as_me: current value: $ac_new_val" >&2;}
1991
ac_cache_corrupted=:
1994
# Pass precious variables to config.status.
1995
if test "$ac_new_set" = set; then
1997
*\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1998
*) ac_arg=$ac_var=$ac_new_val ;;
2000
case " $ac_configure_args " in
2001
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2002
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2006
if $ac_cache_corrupted; then
2007
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2008
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2009
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2010
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2011
{ (exit 1); exit 1; }; }
2039
ac_cpp='$CPP $CPPFLAGS'
2040
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2041
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2042
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2047
am__api_version='1.10'
2050
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2051
if test -f "$ac_dir/install-sh"; then
2053
ac_install_sh="$ac_aux_dir/install-sh -c"
2055
elif test -f "$ac_dir/install.sh"; then
2057
ac_install_sh="$ac_aux_dir/install.sh -c"
2059
elif test -f "$ac_dir/shtool"; then
2061
ac_install_sh="$ac_aux_dir/shtool install -c"
2065
if test -z "$ac_aux_dir"; then
2066
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2067
echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2068
{ (exit 1); exit 1; }; }
2071
# These three variables are undocumented and unsupported,
2072
# and are intended to be withdrawn in a future Autoconf release.
2073
# They can cause serious problems if a builder's source tree is in a directory
2074
# whose full name contains unusual characters.
2075
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2076
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2077
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2080
# Find a good install program. We prefer a C program (faster),
2081
# so one script is as good as another. But avoid the broken or
2082
# incompatible versions:
2083
# SysV /etc/install, /usr/sbin/install
2084
# SunOS /usr/etc/install
2085
# IRIX /sbin/install
2087
# AmigaOS /C/install, which installs bootblocks on floppy discs
2088
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2089
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2090
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2091
# OS/2's system install, which has a completely different semantic
2092
# ./install, which can be erroneously created by make from ./install.sh.
2093
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2094
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2095
if test -z "$INSTALL"; then
2096
if test "${ac_cv_path_install+set}" = set; then
2097
echo $ECHO_N "(cached) $ECHO_C" >&6
2099
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2103
test -z "$as_dir" && as_dir=.
2104
# Account for people who put trailing slashes in PATH elements.
2106
./ | .// | /cC/* | \
2107
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2108
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2111
# OSF1 and SCO ODT 3.0 have their own names for install.
2112
# Don't use installbsd from OSF since it installs stuff as root
2114
for ac_prog in ginstall scoinst install; do
2115
for ac_exec_ext in '' $ac_executable_extensions; do
2116
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2117
if test $ac_prog = install &&
2118
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2119
# AIX install. It has an incompatible calling convention.
2121
elif test $ac_prog = install &&
2122
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2123
# program-specific install script used by HP pwplus--don't use.
2126
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2139
if test "${ac_cv_path_install+set}" = set; then
2140
INSTALL=$ac_cv_path_install
2142
# As a last resort, use the slow shell script. Don't cache a
2143
# value for INSTALL within a source directory, because that will
2144
# break other packages using the cache if that directory is
2145
# removed, or if the value is a relative name.
2146
INSTALL=$ac_install_sh
2149
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
2150
echo "${ECHO_T}$INSTALL" >&6; }
2152
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2153
# It thinks the first close brace ends the variable substitution.
2154
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2156
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2158
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2160
{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2161
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2164
echo timestamp > conftest.file
2165
# Do `set' in a subshell so we don't clobber the current shell's
2166
# arguments. Must try -L first in case configure is actually a
2167
# symlink; some systems play weird games with the mod time of symlinks
2168
# (eg FreeBSD returns the mod time of the symlink's containing
2171
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2172
if test "$*" = "X"; then
2174
set X `ls -t $srcdir/configure conftest.file`
2177
if test "$*" != "X $srcdir/configure conftest.file" \
2178
&& test "$*" != "X conftest.file $srcdir/configure"; then
2180
# If neither matched, then we have a broken ls. This can happen
2181
# if, for instance, CONFIG_SHELL is bash and it inherits a
2182
# broken ls alias from the environment. This has actually
2183
# happened. Such a system could not be considered "sane".
2184
{ { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2185
alias in your environment" >&5
2186
echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2187
alias in your environment" >&2;}
2188
{ (exit 1); exit 1; }; }
2191
test "$2" = conftest.file
2197
{ { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2198
Check your system clock" >&5
2199
echo "$as_me: error: newly created file is older than distributed files!
2200
Check your system clock" >&2;}
2201
{ (exit 1); exit 1; }; }
2203
{ echo "$as_me:$LINENO: result: yes" >&5
2204
echo "${ECHO_T}yes" >&6; }
2205
test "$program_prefix" != NONE &&
2206
program_transform_name="s&^&$program_prefix&;$program_transform_name"
2207
# Use a double $ so make ignores it.
2208
test "$program_suffix" != NONE &&
2209
program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2210
# Double any \ or $. echo might interpret backslashes.
2211
# By default was `s,x,x', remove it if useless.
2212
cat <<\_ACEOF >conftest.sed
2213
s/[\\$]/&&/g;s/;s,x,x,$//
2215
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2218
# expand $ac_aux_dir to an absolute path
2219
am_aux_dir=`cd $ac_aux_dir && pwd`
2221
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2222
# Use eval to expand $SHELL
2223
if eval "$MISSING --run true"; then
2224
am_missing_run="$MISSING --run "
2227
{ echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2228
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2231
{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2232
echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2233
if test -z "$MKDIR_P"; then
2234
if test "${ac_cv_path_mkdir+set}" = set; then
2235
echo $ECHO_N "(cached) $ECHO_C" >&6
2237
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2238
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2241
test -z "$as_dir" && as_dir=.
2242
for ac_prog in mkdir gmkdir; do
2243
for ac_exec_ext in '' $ac_executable_extensions; do
2244
{ test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2245
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2246
'mkdir (GNU coreutils) '* | \
2247
'mkdir (coreutils) '* | \
2248
'mkdir (fileutils) '4.1*)
2249
ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2259
if test "${ac_cv_path_mkdir+set}" = set; then
2260
MKDIR_P="$ac_cv_path_mkdir -p"
2262
# As a last resort, use the slow shell script. Don't cache a
2263
# value for MKDIR_P within a source directory, because that will
2264
# break other packages using the cache if that directory is
2265
# removed, or if the value is a relative name.
2266
test -d ./--version && rmdir ./--version
2267
MKDIR_P="$ac_install_sh -d"
2270
{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2271
echo "${ECHO_T}$MKDIR_P" >&6; }
2275
[\\/$]* | ?:[\\/]*) ;;
2276
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2279
for ac_prog in gawk mawk nawk awk
2281
# Extract the first word of "$ac_prog", so it can be a program name with args.
2282
set dummy $ac_prog; ac_word=$2
2283
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2284
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2285
if test "${ac_cv_prog_AWK+set}" = set; then
2286
echo $ECHO_N "(cached) $ECHO_C" >&6
2288
if test -n "$AWK"; then
2289
ac_cv_prog_AWK="$AWK" # Let the user override the test.
2291
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2295
test -z "$as_dir" && as_dir=.
2296
for ac_exec_ext in '' $ac_executable_extensions; do
2297
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2298
ac_cv_prog_AWK="$ac_prog"
2299
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2309
if test -n "$AWK"; then
2310
{ echo "$as_me:$LINENO: result: $AWK" >&5
2311
echo "${ECHO_T}$AWK" >&6; }
2313
{ echo "$as_me:$LINENO: result: no" >&5
2314
echo "${ECHO_T}no" >&6; }
2318
test -n "$AWK" && break
2321
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2322
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2323
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2324
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2325
echo $ECHO_N "(cached) $ECHO_C" >&6
2327
cat >conftest.make <<\_ACEOF
2330
@echo '@@@%%%=$(MAKE)=@@@%%%'
2332
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2333
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2335
eval ac_cv_prog_make_${ac_make}_set=yes;;
2337
eval ac_cv_prog_make_${ac_make}_set=no;;
2341
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2342
{ echo "$as_me:$LINENO: result: yes" >&5
2343
echo "${ECHO_T}yes" >&6; }
2346
{ echo "$as_me:$LINENO: result: no" >&5
2347
echo "${ECHO_T}no" >&6; }
2348
SET_MAKE="MAKE=${MAKE-make}"
2351
rm -rf .tst 2>/dev/null
2352
mkdir .tst 2>/dev/null
2353
if test -d .tst; then
2358
rmdir .tst 2>/dev/null
2360
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2361
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2362
# is not polluted with repeated "-I."
2363
am__isrc=' -I$(srcdir)'
2364
# test to see if srcdir already configured
2365
if test -f $srcdir/config.status; then
2366
{ { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2367
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2368
{ (exit 1); exit 1; }; }
2372
# test whether we have cygpath
2373
if test -z "$CYGPATH_W"; then
2374
if (cygpath --version) >/dev/null 2>/dev/null; then
2375
CYGPATH_W='cygpath -w'
2382
# Define the identity of the package.
2387
cat >>confdefs.h <<_ACEOF
2388
#define PACKAGE "$PACKAGE"
2392
cat >>confdefs.h <<_ACEOF
2393
#define VERSION "$VERSION"
2396
# Some tools Automake needs.
2398
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2401
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2404
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2407
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2410
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2412
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2414
# Installed binaries are usually stripped using `strip' when the user
2415
# run `make install-strip'. However `strip' might not be the right
2416
# tool to use in cross-compilation environments, therefore Automake
2417
# will honor the `STRIP' environment variable to overrule this program.
2418
if test "$cross_compiling" != no; then
2419
if test -n "$ac_tool_prefix"; then
2420
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2421
set dummy ${ac_tool_prefix}strip; ac_word=$2
2422
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2423
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2424
if test "${ac_cv_prog_STRIP+set}" = set; then
2425
echo $ECHO_N "(cached) $ECHO_C" >&6
2427
if test -n "$STRIP"; then
2428
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2430
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2434
test -z "$as_dir" && as_dir=.
2435
for ac_exec_ext in '' $ac_executable_extensions; do
2436
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2437
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2438
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2447
STRIP=$ac_cv_prog_STRIP
2448
if test -n "$STRIP"; then
2449
{ echo "$as_me:$LINENO: result: $STRIP" >&5
2450
echo "${ECHO_T}$STRIP" >&6; }
2452
{ echo "$as_me:$LINENO: result: no" >&5
2453
echo "${ECHO_T}no" >&6; }
2458
if test -z "$ac_cv_prog_STRIP"; then
2460
# Extract the first word of "strip", so it can be a program name with args.
2461
set dummy strip; ac_word=$2
2462
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2463
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2464
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2465
echo $ECHO_N "(cached) $ECHO_C" >&6
2467
if test -n "$ac_ct_STRIP"; then
2468
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2470
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2474
test -z "$as_dir" && as_dir=.
2475
for ac_exec_ext in '' $ac_executable_extensions; do
2476
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2477
ac_cv_prog_ac_ct_STRIP="strip"
2478
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2487
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2488
if test -n "$ac_ct_STRIP"; then
2489
{ echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2490
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2492
{ echo "$as_me:$LINENO: result: no" >&5
2493
echo "${ECHO_T}no" >&6; }
2496
if test "x$ac_ct_STRIP" = x; then
2499
case $cross_compiling:$ac_tool_warned in
2501
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2502
whose name does not start with the host triplet. If you think this
2503
configuration is useful to you, please write to autoconf@gnu.org." >&5
2504
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2505
whose name does not start with the host triplet. If you think this
2506
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2507
ac_tool_warned=yes ;;
2512
STRIP="$ac_cv_prog_STRIP"
2516
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2518
# We need awk for the "check" target. The system "awk" is bad on
2520
# Always define AMTAR for backward compatibility.
2522
AMTAR=${AMTAR-"${am_missing_run}tar"}
2524
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2530
{ echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2531
echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2532
# Check whether --enable-maintainer-mode was given.
2533
if test "${enable_maintainer_mode+set}" = set; then
2534
enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2536
USE_MAINTAINER_MODE=no
2539
{ echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2540
echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2541
if test $USE_MAINTAINER_MODE = yes; then
2542
MAINTAINER_MODE_TRUE=
2543
MAINTAINER_MODE_FALSE='#'
2545
MAINTAINER_MODE_TRUE='#'
2546
MAINTAINER_MODE_FALSE=
2549
MAINT=$MAINTAINER_MODE_TRUE
2553
ac_config_headers="$ac_config_headers config.h"
2559
ac_cpp='$CPP $CPPFLAGS'
2560
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2561
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2562
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2565
ac_cpp='$CPP $CPPFLAGS'
2566
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2567
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2568
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2569
if test -n "$ac_tool_prefix"; then
2570
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2571
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2572
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2573
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2574
if test "${ac_cv_prog_CC+set}" = set; then
2575
echo $ECHO_N "(cached) $ECHO_C" >&6
2577
if test -n "$CC"; then
2578
ac_cv_prog_CC="$CC" # Let the user override the test.
2580
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2584
test -z "$as_dir" && as_dir=.
2585
for ac_exec_ext in '' $ac_executable_extensions; do
2586
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2587
ac_cv_prog_CC="${ac_tool_prefix}gcc"
2588
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2598
if test -n "$CC"; then
2599
{ echo "$as_me:$LINENO: result: $CC" >&5
2600
echo "${ECHO_T}$CC" >&6; }
2602
{ echo "$as_me:$LINENO: result: no" >&5
2603
echo "${ECHO_T}no" >&6; }
2608
if test -z "$ac_cv_prog_CC"; then
2610
# Extract the first word of "gcc", so it can be a program name with args.
2611
set dummy gcc; ac_word=$2
2612
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2613
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2614
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2615
echo $ECHO_N "(cached) $ECHO_C" >&6
2617
if test -n "$ac_ct_CC"; then
2618
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2620
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2624
test -z "$as_dir" && as_dir=.
2625
for ac_exec_ext in '' $ac_executable_extensions; do
2626
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2627
ac_cv_prog_ac_ct_CC="gcc"
2628
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2637
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2638
if test -n "$ac_ct_CC"; then
2639
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2640
echo "${ECHO_T}$ac_ct_CC" >&6; }
2642
{ echo "$as_me:$LINENO: result: no" >&5
2643
echo "${ECHO_T}no" >&6; }
2646
if test "x$ac_ct_CC" = x; then
2649
case $cross_compiling:$ac_tool_warned in
2651
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2652
whose name does not start with the host triplet. If you think this
2653
configuration is useful to you, please write to autoconf@gnu.org." >&5
2654
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2655
whose name does not start with the host triplet. If you think this
2656
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2657
ac_tool_warned=yes ;;
2665
if test -z "$CC"; then
2666
if test -n "$ac_tool_prefix"; then
2667
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2668
set dummy ${ac_tool_prefix}cc; ac_word=$2
2669
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2670
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2671
if test "${ac_cv_prog_CC+set}" = set; then
2672
echo $ECHO_N "(cached) $ECHO_C" >&6
2674
if test -n "$CC"; then
2675
ac_cv_prog_CC="$CC" # Let the user override the test.
2677
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2681
test -z "$as_dir" && as_dir=.
2682
for ac_exec_ext in '' $ac_executable_extensions; do
2683
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2684
ac_cv_prog_CC="${ac_tool_prefix}cc"
2685
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2695
if test -n "$CC"; then
2696
{ echo "$as_me:$LINENO: result: $CC" >&5
2697
echo "${ECHO_T}$CC" >&6; }
2699
{ echo "$as_me:$LINENO: result: no" >&5
2700
echo "${ECHO_T}no" >&6; }
2706
if test -z "$CC"; then
2707
# Extract the first word of "cc", so it can be a program name with args.
2708
set dummy cc; ac_word=$2
2709
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2710
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2711
if test "${ac_cv_prog_CC+set}" = set; then
2712
echo $ECHO_N "(cached) $ECHO_C" >&6
2714
if test -n "$CC"; then
2715
ac_cv_prog_CC="$CC" # Let the user override the test.
2718
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2722
test -z "$as_dir" && as_dir=.
2723
for ac_exec_ext in '' $ac_executable_extensions; do
2724
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2725
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2726
ac_prog_rejected=yes
2730
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2737
if test $ac_prog_rejected = yes; then
2738
# We found a bogon in the path, so make sure we never use it.
2739
set dummy $ac_cv_prog_CC
2741
if test $# != 0; then
2742
# We chose a different compiler from the bogus one.
2743
# However, it has the same basename, so the bogon will be chosen
2744
# first if we set CC to just the basename; use the full file name.
2746
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2752
if test -n "$CC"; then
2753
{ echo "$as_me:$LINENO: result: $CC" >&5
2754
echo "${ECHO_T}$CC" >&6; }
2756
{ echo "$as_me:$LINENO: result: no" >&5
2757
echo "${ECHO_T}no" >&6; }
2762
if test -z "$CC"; then
2763
if test -n "$ac_tool_prefix"; then
2764
for ac_prog in cl.exe
2766
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2767
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2768
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2769
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2770
if test "${ac_cv_prog_CC+set}" = set; then
2771
echo $ECHO_N "(cached) $ECHO_C" >&6
2773
if test -n "$CC"; then
2774
ac_cv_prog_CC="$CC" # Let the user override the test.
2776
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2780
test -z "$as_dir" && as_dir=.
2781
for ac_exec_ext in '' $ac_executable_extensions; do
2782
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2783
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2784
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2794
if test -n "$CC"; then
2795
{ echo "$as_me:$LINENO: result: $CC" >&5
2796
echo "${ECHO_T}$CC" >&6; }
2798
{ echo "$as_me:$LINENO: result: no" >&5
2799
echo "${ECHO_T}no" >&6; }
2803
test -n "$CC" && break
2806
if test -z "$CC"; then
2808
for ac_prog in cl.exe
2810
# Extract the first word of "$ac_prog", so it can be a program name with args.
2811
set dummy $ac_prog; ac_word=$2
2812
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2813
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2814
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2815
echo $ECHO_N "(cached) $ECHO_C" >&6
2817
if test -n "$ac_ct_CC"; then
2818
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2820
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2824
test -z "$as_dir" && as_dir=.
2825
for ac_exec_ext in '' $ac_executable_extensions; do
2826
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2827
ac_cv_prog_ac_ct_CC="$ac_prog"
2828
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2837
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2838
if test -n "$ac_ct_CC"; then
2839
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2840
echo "${ECHO_T}$ac_ct_CC" >&6; }
2842
{ echo "$as_me:$LINENO: result: no" >&5
2843
echo "${ECHO_T}no" >&6; }
2847
test -n "$ac_ct_CC" && break
2850
if test "x$ac_ct_CC" = x; then
2853
case $cross_compiling:$ac_tool_warned in
2855
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2856
whose name does not start with the host triplet. If you think this
2857
configuration is useful to you, please write to autoconf@gnu.org." >&5
2858
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2859
whose name does not start with the host triplet. If you think this
2860
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2861
ac_tool_warned=yes ;;
2870
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2871
See \`config.log' for more details." >&5
2872
echo "$as_me: error: no acceptable C compiler found in \$PATH
2873
See \`config.log' for more details." >&2;}
2874
{ (exit 1); exit 1; }; }
2876
# Provide some information about the compiler.
2877
echo "$as_me:$LINENO: checking for C compiler version" >&5
2878
ac_compiler=`set X $ac_compile; echo $2`
2879
{ (ac_try="$ac_compiler --version >&5"
2881
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2882
*) ac_try_echo=$ac_try;;
2884
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2885
(eval "$ac_compiler --version >&5") 2>&5
2887
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2888
(exit $ac_status); }
2889
{ (ac_try="$ac_compiler -v >&5"
2891
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2892
*) ac_try_echo=$ac_try;;
2894
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2895
(eval "$ac_compiler -v >&5") 2>&5
2897
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2898
(exit $ac_status); }
2899
{ (ac_try="$ac_compiler -V >&5"
2901
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2902
*) ac_try_echo=$ac_try;;
2904
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2905
(eval "$ac_compiler -V >&5") 2>&5
2907
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2908
(exit $ac_status); }
2910
cat >conftest.$ac_ext <<_ACEOF
2913
cat confdefs.h >>conftest.$ac_ext
2914
cat >>conftest.$ac_ext <<_ACEOF
2915
/* end confdefs.h. */
2925
ac_clean_files_save=$ac_clean_files
2926
ac_clean_files="$ac_clean_files a.out a.exe b.out"
2927
# Try to create an executable without -o first, disregard a.out.
2928
# It will help us diagnose broken compilers, and finding out an intuition
2930
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2931
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2932
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2934
# List of possible output files, starting from the most likely.
2935
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2936
# only as a last resort. b.out is created by i960 compilers.
2937
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2939
# The IRIX 6 linker writes into existing files which may not be
2940
# executable, retaining their permissions. Remove them first so a
2941
# subsequent execution test works.
2943
for ac_file in $ac_files
2946
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2947
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
2952
if { (ac_try="$ac_link_default"
2954
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2955
*) ac_try_echo=$ac_try;;
2957
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2958
(eval "$ac_link_default") 2>&5
2960
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2961
(exit $ac_status); }; then
2962
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2963
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2964
# in a Makefile. We should not override ac_cv_exeext if it was cached,
2965
# so that the user can short-circuit this test for compilers unknown to
2967
for ac_file in $ac_files ''
2969
test -f "$ac_file" || continue
2971
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2974
# We found the default executable, but exeext='' is most
2978
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2980
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2982
# We set ac_cv_exeext here because the later test for it is not
2983
# safe: cross compilers may not add the suffix if given an `-o'
2984
# argument, so we may need to know it at that point already.
2985
# Even if this section looks crufty: it has the advantage of
2992
test "$ac_cv_exeext" = no && ac_cv_exeext=
2998
{ echo "$as_me:$LINENO: result: $ac_file" >&5
2999
echo "${ECHO_T}$ac_file" >&6; }
3000
if test -z "$ac_file"; then
3001
echo "$as_me: failed program was:" >&5
3002
sed 's/^/| /' conftest.$ac_ext >&5
3004
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
3005
See \`config.log' for more details." >&5
3006
echo "$as_me: error: C compiler cannot create executables
3007
See \`config.log' for more details." >&2;}
3008
{ (exit 77); exit 77; }; }
3011
ac_exeext=$ac_cv_exeext
3013
# Check that the compiler produces executables we can run. If not, either
3014
# the compiler is broken, or we cross compile.
3015
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3016
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3017
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3018
# If not cross compiling, check that we can run a simple program.
3019
if test "$cross_compiling" != yes; then
3020
if { ac_try='./$ac_file'
3021
{ (case "(($ac_try" in
3022
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3023
*) ac_try_echo=$ac_try;;
3025
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3026
(eval "$ac_try") 2>&5
3028
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029
(exit $ac_status); }; }; then
3032
if test "$cross_compiling" = maybe; then
3035
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3036
If you meant to cross compile, use \`--host'.
3037
See \`config.log' for more details." >&5
3038
echo "$as_me: error: cannot run C compiled programs.
3039
If you meant to cross compile, use \`--host'.
3040
See \`config.log' for more details." >&2;}
3041
{ (exit 1); exit 1; }; }
3045
{ echo "$as_me:$LINENO: result: yes" >&5
3046
echo "${ECHO_T}yes" >&6; }
3048
rm -f a.out a.exe conftest$ac_cv_exeext b.out
3049
ac_clean_files=$ac_clean_files_save
3050
# Check that the compiler produces executables we can run. If not, either
3051
# the compiler is broken, or we cross compile.
3052
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3053
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3054
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
3055
echo "${ECHO_T}$cross_compiling" >&6; }
3057
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
3058
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3059
if { (ac_try="$ac_link"
3061
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3062
*) ac_try_echo=$ac_try;;
3064
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3065
(eval "$ac_link") 2>&5
3067
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3068
(exit $ac_status); }; then
3069
# If both `conftest.exe' and `conftest' are `present' (well, observable)
3070
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3071
# work properly (i.e., refer to `conftest.exe'), while it won't with
3073
for ac_file in conftest.exe conftest conftest.*; do
3074
test -f "$ac_file" || continue
3076
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3077
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3083
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3084
See \`config.log' for more details." >&5
3085
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3086
See \`config.log' for more details." >&2;}
3087
{ (exit 1); exit 1; }; }
3090
rm -f conftest$ac_cv_exeext
3091
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3092
echo "${ECHO_T}$ac_cv_exeext" >&6; }
3094
rm -f conftest.$ac_ext
3095
EXEEXT=$ac_cv_exeext
3097
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
3098
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3099
if test "${ac_cv_objext+set}" = set; then
3100
echo $ECHO_N "(cached) $ECHO_C" >&6
3102
cat >conftest.$ac_ext <<_ACEOF
3105
cat confdefs.h >>conftest.$ac_ext
3106
cat >>conftest.$ac_ext <<_ACEOF
3107
/* end confdefs.h. */
3117
rm -f conftest.o conftest.obj
3118
if { (ac_try="$ac_compile"
3120
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3121
*) ac_try_echo=$ac_try;;
3123
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3124
(eval "$ac_compile") 2>&5
3126
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3127
(exit $ac_status); }; then
3128
for ac_file in conftest.o conftest.obj conftest.*; do
3129
test -f "$ac_file" || continue;
3131
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3132
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3137
echo "$as_me: failed program was:" >&5
3138
sed 's/^/| /' conftest.$ac_ext >&5
3140
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3141
See \`config.log' for more details." >&5
3142
echo "$as_me: error: cannot compute suffix of object files: cannot compile
3143
See \`config.log' for more details." >&2;}
3144
{ (exit 1); exit 1; }; }
3147
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3149
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3150
echo "${ECHO_T}$ac_cv_objext" >&6; }
3151
OBJEXT=$ac_cv_objext
3153
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3154
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3155
if test "${ac_cv_c_compiler_gnu+set}" = set; then
3156
echo $ECHO_N "(cached) $ECHO_C" >&6
3158
cat >conftest.$ac_ext <<_ACEOF
3161
cat confdefs.h >>conftest.$ac_ext
3162
cat >>conftest.$ac_ext <<_ACEOF
3163
/* end confdefs.h. */
3176
rm -f conftest.$ac_objext
3177
if { (ac_try="$ac_compile"
3179
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180
*) ac_try_echo=$ac_try;;
3182
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3183
(eval "$ac_compile") 2>conftest.er1
3185
grep -v '^ *+' conftest.er1 >conftest.err
3187
cat conftest.err >&5
3188
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189
(exit $ac_status); } && {
3190
test -z "$ac_c_werror_flag" ||
3191
test ! -s conftest.err
3192
} && test -s conftest.$ac_objext; then
3195
echo "$as_me: failed program was:" >&5
3196
sed 's/^/| /' conftest.$ac_ext >&5
3201
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3202
ac_cv_c_compiler_gnu=$ac_compiler_gnu
3205
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3206
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3207
GCC=`test $ac_compiler_gnu = yes && echo yes`
3208
ac_test_CFLAGS=${CFLAGS+set}
3209
ac_save_CFLAGS=$CFLAGS
3210
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3211
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3212
if test "${ac_cv_prog_cc_g+set}" = set; then
3213
echo $ECHO_N "(cached) $ECHO_C" >&6
3215
ac_save_c_werror_flag=$ac_c_werror_flag
3216
ac_c_werror_flag=yes
3219
cat >conftest.$ac_ext <<_ACEOF
3222
cat confdefs.h >>conftest.$ac_ext
3223
cat >>conftest.$ac_ext <<_ACEOF
3224
/* end confdefs.h. */
3234
rm -f conftest.$ac_objext
3235
if { (ac_try="$ac_compile"
3237
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3238
*) ac_try_echo=$ac_try;;
3240
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3241
(eval "$ac_compile") 2>conftest.er1
3243
grep -v '^ *+' conftest.er1 >conftest.err
3245
cat conftest.err >&5
3246
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247
(exit $ac_status); } && {
3248
test -z "$ac_c_werror_flag" ||
3249
test ! -s conftest.err
3250
} && test -s conftest.$ac_objext; then
3253
echo "$as_me: failed program was:" >&5
3254
sed 's/^/| /' conftest.$ac_ext >&5
3257
cat >conftest.$ac_ext <<_ACEOF
3260
cat confdefs.h >>conftest.$ac_ext
3261
cat >>conftest.$ac_ext <<_ACEOF
3262
/* end confdefs.h. */
3272
rm -f conftest.$ac_objext
3273
if { (ac_try="$ac_compile"
3275
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3276
*) ac_try_echo=$ac_try;;
3278
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3279
(eval "$ac_compile") 2>conftest.er1
3281
grep -v '^ *+' conftest.er1 >conftest.err
3283
cat conftest.err >&5
3284
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3285
(exit $ac_status); } && {
3286
test -z "$ac_c_werror_flag" ||
3287
test ! -s conftest.err
3288
} && test -s conftest.$ac_objext; then
3291
echo "$as_me: failed program was:" >&5
3292
sed 's/^/| /' conftest.$ac_ext >&5
3294
ac_c_werror_flag=$ac_save_c_werror_flag
3296
cat >conftest.$ac_ext <<_ACEOF
3299
cat confdefs.h >>conftest.$ac_ext
3300
cat >>conftest.$ac_ext <<_ACEOF
3301
/* end confdefs.h. */
3311
rm -f conftest.$ac_objext
3312
if { (ac_try="$ac_compile"
3314
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3315
*) ac_try_echo=$ac_try;;
3317
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3318
(eval "$ac_compile") 2>conftest.er1
3320
grep -v '^ *+' conftest.er1 >conftest.err
3322
cat conftest.err >&5
3323
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324
(exit $ac_status); } && {
3325
test -z "$ac_c_werror_flag" ||
3326
test ! -s conftest.err
3327
} && test -s conftest.$ac_objext; then
3330
echo "$as_me: failed program was:" >&5
3331
sed 's/^/| /' conftest.$ac_ext >&5
3336
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3339
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3342
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3343
ac_c_werror_flag=$ac_save_c_werror_flag
3345
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3346
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3347
if test "$ac_test_CFLAGS" = set; then
3348
CFLAGS=$ac_save_CFLAGS
3349
elif test $ac_cv_prog_cc_g = yes; then
3350
if test "$GCC" = yes; then
3356
if test "$GCC" = yes; then
3362
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3363
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3364
if test "${ac_cv_prog_cc_c89+set}" = set; then
3365
echo $ECHO_N "(cached) $ECHO_C" >&6
3367
ac_cv_prog_cc_c89=no
3369
cat >conftest.$ac_ext <<_ACEOF
3372
cat confdefs.h >>conftest.$ac_ext
3373
cat >>conftest.$ac_ext <<_ACEOF
3374
/* end confdefs.h. */
3377
#include <sys/types.h>
3378
#include <sys/stat.h>
3379
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3380
struct buf { int x; };
3381
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3382
static char *e (p, i)
3388
static char *f (char * (*g) (char **, int), char **p, ...)
3393
s = g (p, va_arg (v,int));
3398
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3399
function prototypes and stuff, but not '\xHH' hex character constants.
3400
These don't provoke an error unfortunately, instead are silently treated
3401
as 'x'. The following induces an error, until -std is added to get
3402
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3403
array size at least. It's necessary to write '\x00'==0 to get something
3404
that's true only with -std. */
3405
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3407
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3408
inside strings and character constants. */
3410
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3412
int test (int i, double x);
3413
struct s1 {int (*f) (int a);};
3414
struct s2 {int (*f) (double a);};
3415
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3421
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3426
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3427
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3429
CC="$ac_save_CC $ac_arg"
3430
rm -f conftest.$ac_objext
3431
if { (ac_try="$ac_compile"
3433
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3434
*) ac_try_echo=$ac_try;;
3436
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3437
(eval "$ac_compile") 2>conftest.er1
3439
grep -v '^ *+' conftest.er1 >conftest.err
3441
cat conftest.err >&5
3442
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443
(exit $ac_status); } && {
3444
test -z "$ac_c_werror_flag" ||
3445
test ! -s conftest.err
3446
} && test -s conftest.$ac_objext; then
3447
ac_cv_prog_cc_c89=$ac_arg
3449
echo "$as_me: failed program was:" >&5
3450
sed 's/^/| /' conftest.$ac_ext >&5
3455
rm -f core conftest.err conftest.$ac_objext
3456
test "x$ac_cv_prog_cc_c89" != "xno" && break
3458
rm -f conftest.$ac_ext
3463
case "x$ac_cv_prog_cc_c89" in
3465
{ echo "$as_me:$LINENO: result: none needed" >&5
3466
echo "${ECHO_T}none needed" >&6; } ;;
3468
{ echo "$as_me:$LINENO: result: unsupported" >&5
3469
echo "${ECHO_T}unsupported" >&6; } ;;
3471
CC="$CC $ac_cv_prog_cc_c89"
3472
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3473
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3478
ac_cpp='$CPP $CPPFLAGS'
3479
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3480
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3481
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3482
DEPDIR="${am__leading_dot}deps"
3484
ac_config_commands="$ac_config_commands depfiles"
3487
am_make=${MAKE-make}
3488
cat > confinc << 'END'
3493
# If we don't find an include directive, just comment out the code.
3494
{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3495
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3499
# First try GNU make style include.
3500
echo "include confinc" > confmf
3501
# We grep out `Entering directory' and `Leaving directory'
3502
# messages which can occur if `w' ends up in MAKEFLAGS.
3503
# In particular we don't look at `^make:' because GNU make might
3504
# be invoked under some other name (usually "gmake"), in which
3505
# case it prints its new name instead of `make'.
3506
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3511
# Now try BSD make style include.
3512
if test "$am__include" = "#"; then
3513
echo '.include "confinc"' > confmf
3514
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3515
am__include=.include
3522
{ echo "$as_me:$LINENO: result: $_am_result" >&5
3523
echo "${ECHO_T}$_am_result" >&6; }
3524
rm -f confinc confmf
3526
# Check whether --enable-dependency-tracking was given.
3527
if test "${enable_dependency_tracking+set}" = set; then
3528
enableval=$enable_dependency_tracking;
3531
if test "x$enable_dependency_tracking" != xno; then
3532
am_depcomp="$ac_aux_dir/depcomp"
3535
if test "x$enable_dependency_tracking" != xno; then
3545
depcc="$CC" am_compiler_list=
3547
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3548
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3549
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3550
echo $ECHO_N "(cached) $ECHO_C" >&6
3552
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3553
# We make a subdir and do the tests there. Otherwise we can end up
3554
# making bogus files that we don't know about and never remove. For
3555
# instance it was reported that on HP-UX the gcc test will end up
3556
# making a dummy file named `D' -- because `-MD' means `put the output
3559
# Copy depcomp to subdir because otherwise we won't find it if we're
3560
# using a relative directory.
3561
cp "$am_depcomp" conftest.dir
3563
# We will build objects and dependencies in a subdirectory because
3564
# it helps to detect inapplicable dependency modes. For instance
3565
# both Tru64's cc and ICC support -MD to output dependencies as a
3566
# side effect of compilation, but ICC will put the dependencies in
3567
# the current directory while Tru64 will put them in the object
3571
am_cv_CC_dependencies_compiler_type=none
3572
if test "$am_compiler_list" = ""; then
3573
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3575
for depmode in $am_compiler_list; do
3576
# Setup a source with many dependencies, because some compilers
3577
# like to wrap large dependency lists on column 80 (with \), and
3578
# we should not choose a depcomp mode which is confused by this.
3580
# We need to recreate these files for each test, as the compiler may
3581
# overwrite some of them when testing with obscure command lines.
3582
# This happens at least with the AIX C compiler.
3584
for i in 1 2 3 4 5 6; do
3585
echo '#include "conftst'$i'.h"' >> sub/conftest.c
3586
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3587
# Solaris 8's {/usr,}/bin/sh.
3588
touch sub/conftst$i.h
3590
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3594
# after this tag, mechanisms are not by side-effect, so they'll
3595
# only be used when explicitly requested
3596
if test "x$enable_dependency_tracking" = xyes; then
3604
# We check with `-c' and `-o' for the sake of the "dashmstdout"
3605
# mode. It turns out that the SunPro C++ compiler does not properly
3606
# handle `-M -o', and we need to detect this.
3607
if depmode=$depmode \
3608
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3609
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3610
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3611
>/dev/null 2>conftest.err &&
3612
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3613
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3614
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3615
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3616
# icc doesn't choke on unknown options, it will just issue warnings
3617
# or remarks (even with -Werror). So we grep stderr for any message
3618
# that says an option was ignored or not supported.
3619
# When given -MP, icc 7.0 and 7.1 complain thusly:
3620
# icc: Command line warning: ignoring option '-M'; no argument required
3621
# The diagnosis changed in icc 8.0:
3622
# icc: Command line remark: option '-MP' not supported
3623
if (grep 'ignoring option' conftest.err ||
3624
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3625
am_cv_CC_dependencies_compiler_type=$depmode
3634
am_cv_CC_dependencies_compiler_type=none
3638
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3639
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3640
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3643
test "x$enable_dependency_tracking" != xno \
3644
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3646
am__fastdepCC_FALSE='#'
3648
am__fastdepCC_TRUE='#'
3649
am__fastdepCC_FALSE=
3653
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
3654
echo $ECHO_N "checking for $CC option to accept ISO C99... $ECHO_C" >&6; }
3655
if test "${ac_cv_prog_cc_c99+set}" = set; then
3656
echo $ECHO_N "(cached) $ECHO_C" >&6
3658
ac_cv_prog_cc_c99=no
3660
cat >conftest.$ac_ext <<_ACEOF
3663
cat confdefs.h >>conftest.$ac_ext
3664
cat >>conftest.$ac_ext <<_ACEOF
3665
/* end confdefs.h. */
3667
#include <stdbool.h>
3672
// Check varargs macros. These examples are taken from C99 6.10.3.5.
3673
#define debug(...) fprintf (stderr, __VA_ARGS__)
3674
#define showlist(...) puts (#__VA_ARGS__)
3675
#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3677
test_varargs_macros (void)
3682
debug ("X = %d\n", x);
3683
showlist (The first, second, and third items.);
3684
report (x>y, "x is %d but y is %d", x, y);
3687
// Check long long types.
3688
#define BIG64 18446744073709551615ull
3689
#define BIG32 4294967295ul
3690
#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3692
your preprocessor is broken;
3696
your preprocessor is broken;
3698
static long long int bignum = -9223372036854775807LL;
3699
static unsigned long long int ubignum = BIG64;
3701
struct incomplete_array
3709
const wchar_t *name;
3713
typedef const char *ccp;
3716
test_restrict (ccp restrict text)
3718
// See if C++-style comments work.
3719
// Iterate through items via the restricted pointer.
3720
// Also check for declarations in for loops.
3721
for (unsigned int i = 0; *(text+i) != '\0'; ++i)
3726
// Check varargs and va_copy.
3728
test_varargs (const char *format, ...)
3731
va_start (args, format);
3733
va_copy (args_copy, args);
3744
str = va_arg (args_copy, const char *);
3747
number = va_arg (args_copy, int);
3750
fnumber = va_arg (args_copy, double);
3765
_Bool success = false;
3768
if (test_restrict ("String literal") == 0)
3770
char *restrict newvar = "Another string";
3773
test_varargs ("s, d' f .", "string", 65, 34.234);
3774
test_varargs_macros ();
3776
// Check flexible array members.
3777
struct incomplete_array *ia =
3778
malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3780
for (int i = 0; i < ia->datasize; ++i)
3781
ia->data[i] = i * 1.234;
3783
// Check named initializers.
3784
struct named_init ni = {
3786
.name = L"Test wide string",
3787
.average = 543.34343,
3792
int dynamic_array[ni.number];
3793
dynamic_array[ni.number - 1] = 543;
3795
// work around unused variable warnings
3796
return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
3797
|| dynamic_array[ni.number - 1] != 543);
3803
for ac_arg in '' -std=gnu99 -c99 -qlanglvl=extc99
3805
CC="$ac_save_CC $ac_arg"
3806
rm -f conftest.$ac_objext
3807
if { (ac_try="$ac_compile"
3809
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3810
*) ac_try_echo=$ac_try;;
3812
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3813
(eval "$ac_compile") 2>conftest.er1
3815
grep -v '^ *+' conftest.er1 >conftest.err
3817
cat conftest.err >&5
3818
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3819
(exit $ac_status); } && {
3820
test -z "$ac_c_werror_flag" ||
3821
test ! -s conftest.err
3822
} && test -s conftest.$ac_objext; then
3823
ac_cv_prog_cc_c99=$ac_arg
3825
echo "$as_me: failed program was:" >&5
3826
sed 's/^/| /' conftest.$ac_ext >&5
3831
rm -f core conftest.err conftest.$ac_objext
3832
test "x$ac_cv_prog_cc_c99" != "xno" && break
3834
rm -f conftest.$ac_ext
3839
case "x$ac_cv_prog_cc_c99" in
3841
{ echo "$as_me:$LINENO: result: none needed" >&5
3842
echo "${ECHO_T}none needed" >&6; } ;;
3844
{ echo "$as_me:$LINENO: result: unsupported" >&5
3845
echo "${ECHO_T}unsupported" >&6; } ;;
3847
CC="$CC $ac_cv_prog_cc_c99"
3848
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
3849
echo "${ECHO_T}$ac_cv_prog_cc_c99" >&6; } ;;
3854
if test "x$CC" != xcc; then
3855
{ echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3856
echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3858
{ echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3859
echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3861
set dummy $CC; ac_cc=`echo $2 |
3862
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3863
if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3864
echo $ECHO_N "(cached) $ECHO_C" >&6
3866
cat >conftest.$ac_ext <<_ACEOF
3869
cat confdefs.h >>conftest.$ac_ext
3870
cat >>conftest.$ac_ext <<_ACEOF
3871
/* end confdefs.h. */
3881
# Make sure it works both with $CC and with simple cc.
3882
# We do the test twice because some compilers refuse to overwrite an
3883
# existing .o file with -o, though they will create one.
3884
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3886
if { (case "(($ac_try" in
3887
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3888
*) ac_try_echo=$ac_try;;
3890
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3891
(eval "$ac_try") 2>&5
3893
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3894
(exit $ac_status); } &&
3895
test -f conftest2.$ac_objext && { (case "(($ac_try" in
3896
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3897
*) ac_try_echo=$ac_try;;
3899
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3900
(eval "$ac_try") 2>&5
3902
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3903
(exit $ac_status); };
3905
eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3906
if test "x$CC" != xcc; then
3907
# Test first that cc exists at all.
3908
if { ac_try='cc -c conftest.$ac_ext >&5'
3909
{ (case "(($ac_try" in
3910
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3911
*) ac_try_echo=$ac_try;;
3913
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3914
(eval "$ac_try") 2>&5
3916
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3917
(exit $ac_status); }; }; then
3918
ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3920
if { (case "(($ac_try" in
3921
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3922
*) ac_try_echo=$ac_try;;
3924
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3925
(eval "$ac_try") 2>&5
3927
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3928
(exit $ac_status); } &&
3929
test -f conftest2.$ac_objext && { (case "(($ac_try" in
3930
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3931
*) ac_try_echo=$ac_try;;
3933
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3934
(eval "$ac_try") 2>&5
3936
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3937
(exit $ac_status); };
3942
# cc exists but doesn't like -o.
3943
eval ac_cv_prog_cc_${ac_cc}_c_o=no
3948
eval ac_cv_prog_cc_${ac_cc}_c_o=no
3950
rm -f core conftest*
3953
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3954
{ echo "$as_me:$LINENO: result: yes" >&5
3955
echo "${ECHO_T}yes" >&6; }
3957
{ echo "$as_me:$LINENO: result: no" >&5
3958
echo "${ECHO_T}no" >&6; }
3960
cat >>confdefs.h <<\_ACEOF
3961
#define NO_MINUS_C_MINUS_O 1
3966
# FIXME: we rely on the cache variable name because
3967
# there is no other way.
3969
ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3970
if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3971
# Losing compiler, so override with the script.
3972
# FIXME: It is wrong to rewrite CC.
3973
# But if we don't then we get into trouble of one sort or another.
3974
# A longer-term fix would be to have automake use am__CC in this case,
3975
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3976
CC="$am_aux_dir/compile $CC"
3980
if test -n "$ac_tool_prefix"; then
3981
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
3982
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
3983
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3984
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3985
if test "${ac_cv_prog_RANLIB+set}" = set; then
3986
echo $ECHO_N "(cached) $ECHO_C" >&6
3988
if test -n "$RANLIB"; then
3989
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
3991
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3995
test -z "$as_dir" && as_dir=.
3996
for ac_exec_ext in '' $ac_executable_extensions; do
3997
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3998
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
3999
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4008
RANLIB=$ac_cv_prog_RANLIB
4009
if test -n "$RANLIB"; then
4010
{ echo "$as_me:$LINENO: result: $RANLIB" >&5
4011
echo "${ECHO_T}$RANLIB" >&6; }
4013
{ echo "$as_me:$LINENO: result: no" >&5
4014
echo "${ECHO_T}no" >&6; }
4019
if test -z "$ac_cv_prog_RANLIB"; then
4020
ac_ct_RANLIB=$RANLIB
4021
# Extract the first word of "ranlib", so it can be a program name with args.
4022
set dummy ranlib; ac_word=$2
4023
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4024
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4025
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4026
echo $ECHO_N "(cached) $ECHO_C" >&6
4028
if test -n "$ac_ct_RANLIB"; then
4029
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4031
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4035
test -z "$as_dir" && as_dir=.
4036
for ac_exec_ext in '' $ac_executable_extensions; do
4037
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4038
ac_cv_prog_ac_ct_RANLIB="ranlib"
4039
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4048
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4049
if test -n "$ac_ct_RANLIB"; then
4050
{ echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4051
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4053
{ echo "$as_me:$LINENO: result: no" >&5
4054
echo "${ECHO_T}no" >&6; }
4057
if test "x$ac_ct_RANLIB" = x; then
4060
case $cross_compiling:$ac_tool_warned in
4062
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4063
whose name does not start with the host triplet. If you think this
4064
configuration is useful to you, please write to autoconf@gnu.org." >&5
4065
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4066
whose name does not start with the host triplet. If you think this
4067
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4068
ac_tool_warned=yes ;;
4070
RANLIB=$ac_ct_RANLIB
4073
RANLIB="$ac_cv_prog_RANLIB"
4080
# Check whether --enable-shared was given.
4081
if test "${enable_shared+set}" = set; then
4082
enableval=$enable_shared; p=${PACKAGE-default}
4084
yes) enable_shared=yes ;;
4085
no) enable_shared=no ;;
4088
# Look at the argument we got. We use all the common list separators.
4089
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4090
for pkg in $enableval; do
4092
if test "X$pkg" = "X$p"; then
4113
{ echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4114
echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4119
macro_version='2.2.4'
4120
macro_revision='1.2976'
4134
ltmain="$ac_aux_dir/ltmain.sh"
4136
# Make sure we can run config.sub.
4137
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4138
{ { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4139
echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4140
{ (exit 1); exit 1; }; }
4142
{ echo "$as_me:$LINENO: checking build system type" >&5
4143
echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4144
if test "${ac_cv_build+set}" = set; then
4145
echo $ECHO_N "(cached) $ECHO_C" >&6
4147
ac_build_alias=$build_alias
4148
test "x$ac_build_alias" = x &&
4149
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4150
test "x$ac_build_alias" = x &&
4151
{ { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4152
echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4153
{ (exit 1); exit 1; }; }
4154
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4155
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4156
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4157
{ (exit 1); exit 1; }; }
4160
{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4161
echo "${ECHO_T}$ac_cv_build" >&6; }
4162
case $ac_cv_build in
4164
*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4165
echo "$as_me: error: invalid value of canonical build" >&2;}
4166
{ (exit 1); exit 1; }; };;
4169
ac_save_IFS=$IFS; IFS='-'
4175
# Remember, the first character of IFS is used to create $*,
4176
# except with old shells:
4179
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4182
{ echo "$as_me:$LINENO: checking host system type" >&5
4183
echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4184
if test "${ac_cv_host+set}" = set; then
4185
echo $ECHO_N "(cached) $ECHO_C" >&6
4187
if test "x$host_alias" = x; then
4188
ac_cv_host=$ac_cv_build
4190
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4191
{ { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4192
echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4193
{ (exit 1); exit 1; }; }
4197
{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4198
echo "${ECHO_T}$ac_cv_host" >&6; }
4201
*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4202
echo "$as_me: error: invalid value of canonical host" >&2;}
4203
{ (exit 1); exit 1; }; };;
4206
ac_save_IFS=$IFS; IFS='-'
4212
# Remember, the first character of IFS is used to create $*,
4213
# except with old shells:
4216
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4219
{ echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4220
echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
4221
if test "${ac_cv_path_SED+set}" = set; then
4222
echo $ECHO_N "(cached) $ECHO_C" >&6
4224
ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4225
for ac_i in 1 2 3 4 5 6 7; do
4226
ac_script="$ac_script$as_nl$ac_script"
4228
echo "$ac_script" | sed 99q >conftest.sed
4229
$as_unset ac_script || ac_script=
4230
# Extract the first word of "sed gsed" to use in msg output
4231
if test -z "$SED"; then
4232
set dummy sed gsed; ac_prog_name=$2
4233
if test "${ac_cv_path_SED+set}" = set; then
4234
echo $ECHO_N "(cached) $ECHO_C" >&6
4236
ac_path_SED_found=false
4237
# Loop through the user's path and test for each of PROGNAME-LIST
4238
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4242
test -z "$as_dir" && as_dir=.
4243
for ac_prog in sed gsed; do
4244
for ac_exec_ext in '' $ac_executable_extensions; do
4245
ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4246
{ test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4247
# Check for GNU ac_path_SED and select it if it is found.
4248
# Check for GNU $ac_path_SED
4249
case `"$ac_path_SED" --version 2>&1` in
4251
ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4254
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4257
cat "conftest.in" "conftest.in" >"conftest.tmp"
4258
mv "conftest.tmp" "conftest.in"
4259
cp "conftest.in" "conftest.nl"
4260
echo '' >> "conftest.nl"
4261
"$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4262
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4263
ac_count=`expr $ac_count + 1`
4264
if test $ac_count -gt ${ac_path_SED_max-0}; then
4265
# Best one so far, save it but keep looking for a better one
4266
ac_cv_path_SED="$ac_path_SED"
4267
ac_path_SED_max=$ac_count
4269
# 10*(2^10) chars as input seems more than enough
4270
test $ac_count -gt 10 && break
4272
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4276
$ac_path_SED_found && break 3
4286
SED="$ac_cv_path_SED"
4287
if test -z "$SED"; then
4288
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
4289
echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
4290
{ (exit 1); exit 1; }; }
4298
{ echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
4299
echo "${ECHO_T}$ac_cv_path_SED" >&6; }
4300
SED="$ac_cv_path_SED"
4303
test -z "$SED" && SED=sed
4304
Xsed="$SED -e 1s/^X//"
4316
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4317
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4318
if test "${ac_cv_path_GREP+set}" = set; then
4319
echo $ECHO_N "(cached) $ECHO_C" >&6
4321
# Extract the first word of "grep ggrep" to use in msg output
4322
if test -z "$GREP"; then
4323
set dummy grep ggrep; ac_prog_name=$2
4324
if test "${ac_cv_path_GREP+set}" = set; then
4325
echo $ECHO_N "(cached) $ECHO_C" >&6
4327
ac_path_GREP_found=false
4328
# Loop through the user's path and test for each of PROGNAME-LIST
4329
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4330
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4333
test -z "$as_dir" && as_dir=.
4334
for ac_prog in grep ggrep; do
4335
for ac_exec_ext in '' $ac_executable_extensions; do
4336
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4337
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4338
# Check for GNU ac_path_GREP and select it if it is found.
4339
# Check for GNU $ac_path_GREP
4340
case `"$ac_path_GREP" --version 2>&1` in
4342
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4345
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4348
cat "conftest.in" "conftest.in" >"conftest.tmp"
4349
mv "conftest.tmp" "conftest.in"
4350
cp "conftest.in" "conftest.nl"
4351
echo 'GREP' >> "conftest.nl"
4352
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4353
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4354
ac_count=`expr $ac_count + 1`
4355
if test $ac_count -gt ${ac_path_GREP_max-0}; then
4356
# Best one so far, save it but keep looking for a better one
4357
ac_cv_path_GREP="$ac_path_GREP"
4358
ac_path_GREP_max=$ac_count
4360
# 10*(2^10) chars as input seems more than enough
4361
test $ac_count -gt 10 && break
4363
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4367
$ac_path_GREP_found && break 3
4377
GREP="$ac_cv_path_GREP"
4378
if test -z "$GREP"; then
4379
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4380
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4381
{ (exit 1); exit 1; }; }
4385
ac_cv_path_GREP=$GREP
4390
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4391
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4392
GREP="$ac_cv_path_GREP"
4395
{ echo "$as_me:$LINENO: checking for egrep" >&5
4396
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4397
if test "${ac_cv_path_EGREP+set}" = set; then
4398
echo $ECHO_N "(cached) $ECHO_C" >&6
4400
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4401
then ac_cv_path_EGREP="$GREP -E"
4403
# Extract the first word of "egrep" to use in msg output
4404
if test -z "$EGREP"; then
4405
set dummy egrep; ac_prog_name=$2
4406
if test "${ac_cv_path_EGREP+set}" = set; then
4407
echo $ECHO_N "(cached) $ECHO_C" >&6
4409
ac_path_EGREP_found=false
4410
# Loop through the user's path and test for each of PROGNAME-LIST
4411
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4412
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4415
test -z "$as_dir" && as_dir=.
4416
for ac_prog in egrep; do
4417
for ac_exec_ext in '' $ac_executable_extensions; do
4418
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4419
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4420
# Check for GNU ac_path_EGREP and select it if it is found.
4421
# Check for GNU $ac_path_EGREP
4422
case `"$ac_path_EGREP" --version 2>&1` in
4424
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4427
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4430
cat "conftest.in" "conftest.in" >"conftest.tmp"
4431
mv "conftest.tmp" "conftest.in"
4432
cp "conftest.in" "conftest.nl"
4433
echo 'EGREP' >> "conftest.nl"
4434
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4435
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4436
ac_count=`expr $ac_count + 1`
4437
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4438
# Best one so far, save it but keep looking for a better one
4439
ac_cv_path_EGREP="$ac_path_EGREP"
4440
ac_path_EGREP_max=$ac_count
4442
# 10*(2^10) chars as input seems more than enough
4443
test $ac_count -gt 10 && break
4445
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4449
$ac_path_EGREP_found && break 3
4459
EGREP="$ac_cv_path_EGREP"
4460
if test -z "$EGREP"; then
4461
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4462
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4463
{ (exit 1); exit 1; }; }
4467
ac_cv_path_EGREP=$EGREP
4473
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4474
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4475
EGREP="$ac_cv_path_EGREP"
4478
{ echo "$as_me:$LINENO: checking for fgrep" >&5
4479
echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
4480
if test "${ac_cv_path_FGREP+set}" = set; then
4481
echo $ECHO_N "(cached) $ECHO_C" >&6
4483
if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4484
then ac_cv_path_FGREP="$GREP -F"
4486
# Extract the first word of "fgrep" to use in msg output
4487
if test -z "$FGREP"; then
4488
set dummy fgrep; ac_prog_name=$2
4489
if test "${ac_cv_path_FGREP+set}" = set; then
4490
echo $ECHO_N "(cached) $ECHO_C" >&6
4492
ac_path_FGREP_found=false
4493
# Loop through the user's path and test for each of PROGNAME-LIST
4494
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4495
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4498
test -z "$as_dir" && as_dir=.
4499
for ac_prog in fgrep; do
4500
for ac_exec_ext in '' $ac_executable_extensions; do
4501
ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4502
{ test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
4503
# Check for GNU ac_path_FGREP and select it if it is found.
4504
# Check for GNU $ac_path_FGREP
4505
case `"$ac_path_FGREP" --version 2>&1` in
4507
ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4510
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4513
cat "conftest.in" "conftest.in" >"conftest.tmp"
4514
mv "conftest.tmp" "conftest.in"
4515
cp "conftest.in" "conftest.nl"
4516
echo 'FGREP' >> "conftest.nl"
4517
"$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4518
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4519
ac_count=`expr $ac_count + 1`
4520
if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4521
# Best one so far, save it but keep looking for a better one
4522
ac_cv_path_FGREP="$ac_path_FGREP"
4523
ac_path_FGREP_max=$ac_count
4525
# 10*(2^10) chars as input seems more than enough
4526
test $ac_count -gt 10 && break
4528
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4532
$ac_path_FGREP_found && break 3
4542
FGREP="$ac_cv_path_FGREP"
4543
if test -z "$FGREP"; then
4544
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4545
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4546
{ (exit 1); exit 1; }; }
4550
ac_cv_path_FGREP=$FGREP
4556
{ echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
4557
echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
4558
FGREP="$ac_cv_path_FGREP"
4561
test -z "$GREP" && GREP=grep
4581
# Check whether --with-gnu-ld was given.
4582
if test "${with_gnu_ld+set}" = set; then
4583
withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4589
if test "$GCC" = yes; then
4590
# Check if gcc -print-prog-name=ld gives a path.
4591
{ echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4592
echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4595
# gcc leaves a trailing carriage return which upsets mingw
4596
ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4598
ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4601
# Accept absolute paths.
4603
re_direlt='/[^/][^/]*/\.\./'
4604
# Canonicalize the pathname of ld
4605
ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4606
while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4607
ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4609
test -z "$LD" && LD="$ac_prog"
4612
# If it fails, then pretend we aren't using GCC.
4616
# If it is relative, then search for the first ld in PATH.
4620
elif test "$with_gnu_ld" = yes; then
4621
{ echo "$as_me:$LINENO: checking for GNU ld" >&5
4622
echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4624
{ echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4625
echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4627
if test "${lt_cv_path_LD+set}" = set; then
4628
echo $ECHO_N "(cached) $ECHO_C" >&6
4630
if test -z "$LD"; then
4631
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4632
for ac_dir in $PATH; do
4634
test -z "$ac_dir" && ac_dir=.
4635
if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4636
lt_cv_path_LD="$ac_dir/$ac_prog"
4637
# Check to see if the program is GNU ld. I'd rather use --version,
4638
# but apparently some variants of GNU ld only accept -v.
4639
# Break only if it was the GNU/non-GNU ld that we prefer.
4640
case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4641
*GNU* | *'with BFD'*)
4642
test "$with_gnu_ld" != no && break
4645
test "$with_gnu_ld" != yes && break
4652
lt_cv_path_LD="$LD" # Let the user override the test with a path.
4657
if test -n "$LD"; then
4658
{ echo "$as_me:$LINENO: result: $LD" >&5
4659
echo "${ECHO_T}$LD" >&6; }
4661
{ echo "$as_me:$LINENO: result: no" >&5
4662
echo "${ECHO_T}no" >&6; }
4664
test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4665
echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4666
{ (exit 1); exit 1; }; }
4667
{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4668
echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4669
if test "${lt_cv_prog_gnu_ld+set}" = set; then
4670
echo $ECHO_N "(cached) $ECHO_C" >&6
4672
# I'd rather use --version here, but apparently some GNU lds only accept -v.
4673
case `$LD -v 2>&1 </dev/null` in
4674
*GNU* | *'with BFD'*)
4675
lt_cv_prog_gnu_ld=yes
4678
lt_cv_prog_gnu_ld=no
4682
{ echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4683
echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4684
with_gnu_ld=$lt_cv_prog_gnu_ld
4694
{ echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
4695
echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
4696
if test "${lt_cv_path_NM+set}" = set; then
4697
echo $ECHO_N "(cached) $ECHO_C" >&6
4699
if test -n "$NM"; then
4700
# Let the user override the test.
4703
lt_nm_to_check="${ac_tool_prefix}nm"
4704
if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4705
lt_nm_to_check="$lt_nm_to_check nm"
4707
for lt_tmp_nm in $lt_nm_to_check; do
4708
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4709
for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4711
test -z "$ac_dir" && ac_dir=.
4712
tmp_nm="$ac_dir/$lt_tmp_nm"
4713
if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4714
# Check to see if the nm accepts a BSD-compat flag.
4715
# Adding the `sed 1q' prevents false positives on HP-UX, which says:
4716
# nm: unknown option "B" ignored
4717
# Tru64's nm complains that /dev/null is an invalid object file
4718
case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4719
*/dev/null* | *'Invalid file or object type'*)
4720
lt_cv_path_NM="$tmp_nm -B"
4724
case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4726
lt_cv_path_NM="$tmp_nm -p"
4730
lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4731
continue # so that we can try to find one that supports BSD flags
4740
: ${lt_cv_path_NM=no}
4743
{ echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4744
echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4745
if test "$lt_cv_path_NM" != "no"; then
4748
# Didn't find any BSD compatible name lister, look for dumpbin.
4749
if test -n "$ac_tool_prefix"; then
4750
for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4752
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4753
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4754
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4755
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4756
if test "${ac_cv_prog_DUMPBIN+set}" = set; then
4757
echo $ECHO_N "(cached) $ECHO_C" >&6
4759
if test -n "$DUMPBIN"; then
4760
ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4762
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4766
test -z "$as_dir" && as_dir=.
4767
for ac_exec_ext in '' $ac_executable_extensions; do
4768
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4769
ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4770
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4779
DUMPBIN=$ac_cv_prog_DUMPBIN
4780
if test -n "$DUMPBIN"; then
4781
{ echo "$as_me:$LINENO: result: $DUMPBIN" >&5
4782
echo "${ECHO_T}$DUMPBIN" >&6; }
4784
{ echo "$as_me:$LINENO: result: no" >&5
4785
echo "${ECHO_T}no" >&6; }
4789
test -n "$DUMPBIN" && break
4792
if test -z "$DUMPBIN"; then
4793
ac_ct_DUMPBIN=$DUMPBIN
4794
for ac_prog in "dumpbin -symbols" "link -dump -symbols"
4796
# Extract the first word of "$ac_prog", so it can be a program name with args.
4797
set dummy $ac_prog; ac_word=$2
4798
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4799
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4800
if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
4801
echo $ECHO_N "(cached) $ECHO_C" >&6
4803
if test -n "$ac_ct_DUMPBIN"; then
4804
ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4806
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4810
test -z "$as_dir" && as_dir=.
4811
for ac_exec_ext in '' $ac_executable_extensions; do
4812
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4813
ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4814
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4823
ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4824
if test -n "$ac_ct_DUMPBIN"; then
4825
{ echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5
4826
echo "${ECHO_T}$ac_ct_DUMPBIN" >&6; }
4828
{ echo "$as_me:$LINENO: result: no" >&5
4829
echo "${ECHO_T}no" >&6; }
4833
test -n "$ac_ct_DUMPBIN" && break
4836
if test "x$ac_ct_DUMPBIN" = x; then
4839
case $cross_compiling:$ac_tool_warned in
4841
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4842
whose name does not start with the host triplet. If you think this
4843
configuration is useful to you, please write to autoconf@gnu.org." >&5
4844
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4845
whose name does not start with the host triplet. If you think this
4846
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4847
ac_tool_warned=yes ;;
4849
DUMPBIN=$ac_ct_DUMPBIN
4854
if test "$DUMPBIN" != ":"; then
4858
test -z "$NM" && NM=nm
4865
{ echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5
4866
echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6; }
4867
if test "${lt_cv_nm_interface+set}" = set; then
4868
echo $ECHO_N "(cached) $ECHO_C" >&6
4870
lt_cv_nm_interface="BSD nm"
4871
echo "int some_variable = 0;" > conftest.$ac_ext
4872
(eval echo "\"\$as_me:4872: $ac_compile\"" >&5)
4873
(eval "$ac_compile" 2>conftest.err)
4874
cat conftest.err >&5
4875
(eval echo "\"\$as_me:4875: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4876
(eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4877
cat conftest.err >&5
4878
(eval echo "\"\$as_me:4878: output\"" >&5)
4879
cat conftest.out >&5
4880
if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4881
lt_cv_nm_interface="MS dumpbin"
4885
{ echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5
4886
echo "${ECHO_T}$lt_cv_nm_interface" >&6; }
4888
{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
4889
echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4891
if test "$LN_S" = "ln -s"; then
4892
{ echo "$as_me:$LINENO: result: yes" >&5
4893
echo "${ECHO_T}yes" >&6; }
4895
{ echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4896
echo "${ECHO_T}no, using $LN_S" >&6; }
4899
# find the maximum length of command line arguments
4900
{ echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
4901
echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
4902
if test "${lt_cv_sys_max_cmd_len+set}" = set; then
4903
echo $ECHO_N "(cached) $ECHO_C" >&6
4910
# On DJGPP, this test can blow up pretty badly due to problems in libc
4911
# (any single argument exceeding 2000 bytes causes a buffer overrun
4912
# during glob expansion). Even if it were fixed, the result of this
4913
# check would be larger than it should be.
4914
lt_cv_sys_max_cmd_len=12288; # 12K is about right
4918
# Under GNU Hurd, this test is not required because there is
4919
# no limit to the length of command line arguments.
4920
# Libtool will interpret -1 as no limit whatsoever
4921
lt_cv_sys_max_cmd_len=-1;
4925
# On Win9x/ME, this test blows up -- it succeeds, but takes
4926
# about 5 minutes as the teststring grows exponentially.
4927
# Worse, since 9x/ME are not pre-emptively multitasking,
4928
# you end up with a "frozen" computer, even though with patience
4929
# the test eventually succeeds (with a max line length of 256k).
4930
# Instead, let's just punt: use the minimum linelength reported by
4931
# all of the supported platforms: 8192 (on NT/2K/XP).
4932
lt_cv_sys_max_cmd_len=8192;
4936
# On AmigaOS with pdksh, this test takes hours, literally.
4937
# So we just punt and use a minimum line length of 8192.
4938
lt_cv_sys_max_cmd_len=8192;
4941
netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4942
# This has been around since 386BSD, at least. Likely further.
4943
if test -x /sbin/sysctl; then
4944
lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4945
elif test -x /usr/sbin/sysctl; then
4946
lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4948
lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4950
# And add a safety zone
4951
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4952
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4956
# We know the value 262144 and hardcode it with a safety zone (like BSD)
4957
lt_cv_sys_max_cmd_len=196608
4961
# Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4962
# due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4963
# nice to cause kernel panics so lets avoid the loop below.
4964
# First set a reasonable default.
4965
lt_cv_sys_max_cmd_len=16384
4967
if test -x /sbin/sysconfig; then
4968
case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4969
*1*) lt_cv_sys_max_cmd_len=-1 ;;
4974
lt_cv_sys_max_cmd_len=102400
4976
sysv5* | sco5v6* | sysv4.2uw2*)
4977
kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4978
if test -n "$kargmax"; then
4979
lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4981
lt_cv_sys_max_cmd_len=32768
4985
lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4986
if test -n "$lt_cv_sys_max_cmd_len"; then
4987
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4988
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4990
# Make teststring a little bigger before we do anything with it.
4991
# a 1K string should be a reasonable start.
4992
for i in 1 2 3 4 5 6 7 8 ; do
4993
teststring=$teststring$teststring
4995
SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4996
# If test is not a shell built-in, we'll probably end up computing a
4997
# maximum length that is only half of the actual maximum length, but
4999
while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
5000
= "XX$teststring$teststring"; } >/dev/null 2>&1 &&
5001
test $i != 17 # 1/2 MB should be enough
5004
teststring=$teststring$teststring
5006
# Only check the string length outside the loop.
5007
lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5009
# Add a significant safety factor because C++ compilers can tack on
5010
# massive amounts of additional arguments before passing them to the
5011
# linker. It appears as though 1/2 is a usable value.
5012
lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5019
if test -n $lt_cv_sys_max_cmd_len ; then
5020
{ echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5021
echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
5023
{ echo "$as_me:$LINENO: result: none" >&5
5024
echo "${ECHO_T}none" >&6; }
5026
max_cmd_len=$lt_cv_sys_max_cmd_len
5037
{ echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5
5038
echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6; }
5039
# Try some XSI features
5042
test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5044
&& eval 'test $(( 1 + 1 )) -eq 2 \
5045
&& test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5047
{ echo "$as_me:$LINENO: result: $xsi_shell" >&5
5048
echo "${ECHO_T}$xsi_shell" >&6; }
5051
{ echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5
5052
echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6; }
5054
( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5056
&& lt_shell_append=yes
5057
{ echo "$as_me:$LINENO: result: $lt_shell_append" >&5
5058
echo "${ECHO_T}$lt_shell_append" >&6; }
5061
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5071
# test EBCDIC or ASCII
5072
case `echo X|tr X '\101'` in
5073
A) # ASCII based system
5074
# \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5075
lt_SP2NL='tr \040 \012'
5076
lt_NL2SP='tr \015\012 \040\040'
5078
*) # EBCDIC based system
5079
lt_SP2NL='tr \100 \n'
5080
lt_NL2SP='tr \r\n \100\100'
5092
{ echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5093
echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
5094
if test "${lt_cv_ld_reload_flag+set}" = set; then
5095
echo $ECHO_N "(cached) $ECHO_C" >&6
5097
lt_cv_ld_reload_flag='-r'
5099
{ echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5100
echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
5101
reload_flag=$lt_cv_ld_reload_flag
5102
case $reload_flag in
5104
*) reload_flag=" $reload_flag" ;;
5106
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5109
if test "$GCC" = yes; then
5110
reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5112
reload_cmds='$LD$reload_flag -o $output$reload_objs'
5126
{ echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
5127
echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
5128
if test "${lt_cv_deplibs_check_method+set}" = set; then
5129
echo $ECHO_N "(cached) $ECHO_C" >&6
5131
lt_cv_file_magic_cmd='$MAGIC_CMD'
5132
lt_cv_file_magic_test_file=
5133
lt_cv_deplibs_check_method='unknown'
5134
# Need to set the preceding variable on all platforms that support
5135
# interlibrary dependencies.
5136
# 'none' -- dependencies not supported.
5137
# `unknown' -- same as none, but documents that we really don't know.
5138
# 'pass_all' -- all dependencies passed with no checks.
5139
# 'test_compile' -- check by making test program.
5140
# 'file_magic [[regex]]' -- check by looking for files in library path
5141
# which responds to the $file_magic_cmd with a given extended regex.
5142
# If you have `file' or equivalent on your system and you're not sure
5143
# whether `pass_all' will *always* work, you probably want this one.
5147
lt_cv_deplibs_check_method=pass_all
5151
lt_cv_deplibs_check_method=pass_all
5155
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5156
lt_cv_file_magic_cmd='/usr/bin/file -L'
5157
lt_cv_file_magic_test_file=/shlib/libc.so
5161
# func_win32_libid is a shell function defined in ltmain.sh
5162
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5163
lt_cv_file_magic_cmd='func_win32_libid'
5167
# Base MSYS/MinGW do not provide the 'file' command needed by
5168
# func_win32_libid shell function, so use a weaker test based on 'objdump',
5169
# unless we find 'file', for example because we are cross-compiling.
5170
if ( file / ) >/dev/null 2>&1; then
5171
lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5172
lt_cv_file_magic_cmd='func_win32_libid'
5174
lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5175
lt_cv_file_magic_cmd='$OBJDUMP -f'
5179
darwin* | rhapsody*)
5180
lt_cv_deplibs_check_method=pass_all
5183
freebsd* | dragonfly*)
5184
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5187
# Not sure whether the presence of OpenBSD here was a mistake.
5188
# Let's accept both of them until this is cleared up.
5189
lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5190
lt_cv_file_magic_cmd=/usr/bin/file
5191
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5195
lt_cv_deplibs_check_method=pass_all
5200
lt_cv_deplibs_check_method=pass_all
5203
hpux10.20* | hpux11*)
5204
lt_cv_file_magic_cmd=/usr/bin/file
5207
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5208
lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5211
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]'
5212
lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5215
lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5216
lt_cv_file_magic_test_file=/usr/lib/libc.sl
5222
# PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5223
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5226
irix5* | irix6* | nonstopux*)
5228
*-32|*"-32 ") libmagic=32-bit;;
5229
*-n32|*"-n32 ") libmagic=N32;;
5230
*-64|*"-64 ") libmagic=64-bit;;
5231
*) libmagic=never-match;;
5233
lt_cv_deplibs_check_method=pass_all
5236
# This must be Linux ELF.
5237
linux* | k*bsd*-gnu)
5238
lt_cv_deplibs_check_method=pass_all
5241
netbsd* | netbsdelf*-gnu)
5242
if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5243
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5245
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5250
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5251
lt_cv_file_magic_cmd=/usr/bin/file
5252
lt_cv_file_magic_test_file=/usr/lib/libnls.so
5256
lt_cv_deplibs_check_method=pass_all
5260
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5261
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5263
lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5267
osf3* | osf4* | osf5*)
5268
lt_cv_deplibs_check_method=pass_all
5272
lt_cv_deplibs_check_method=pass_all
5276
lt_cv_deplibs_check_method=pass_all
5279
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5280
lt_cv_deplibs_check_method=pass_all
5284
case $host_vendor in
5286
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]'
5287
lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5290
lt_cv_deplibs_check_method=pass_all
5293
lt_cv_file_magic_cmd='/bin/file'
5294
lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5297
lt_cv_file_magic_cmd='/bin/file'
5298
lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5299
lt_cv_file_magic_test_file=/lib/libc.so
5302
lt_cv_deplibs_check_method=pass_all
5305
lt_cv_deplibs_check_method=pass_all
5311
lt_cv_deplibs_check_method=pass_all
5316
{ echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
5317
echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
5318
file_magic_cmd=$lt_cv_file_magic_cmd
5319
deplibs_check_method=$lt_cv_deplibs_check_method
5320
test -z "$deplibs_check_method" && deplibs_check_method=unknown
5333
if test -n "$ac_tool_prefix"; then
5334
# Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5335
set dummy ${ac_tool_prefix}ar; ac_word=$2
5336
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5337
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5338
if test "${ac_cv_prog_AR+set}" = set; then
5339
echo $ECHO_N "(cached) $ECHO_C" >&6
5341
if test -n "$AR"; then
5342
ac_cv_prog_AR="$AR" # Let the user override the test.
5344
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5348
test -z "$as_dir" && as_dir=.
5349
for ac_exec_ext in '' $ac_executable_extensions; do
5350
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5351
ac_cv_prog_AR="${ac_tool_prefix}ar"
5352
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5362
if test -n "$AR"; then
5363
{ echo "$as_me:$LINENO: result: $AR" >&5
5364
echo "${ECHO_T}$AR" >&6; }
5366
{ echo "$as_me:$LINENO: result: no" >&5
5367
echo "${ECHO_T}no" >&6; }
5372
if test -z "$ac_cv_prog_AR"; then
5374
# Extract the first word of "ar", so it can be a program name with args.
5375
set dummy ar; ac_word=$2
5376
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5377
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5378
if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5379
echo $ECHO_N "(cached) $ECHO_C" >&6
5381
if test -n "$ac_ct_AR"; then
5382
ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5384
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5388
test -z "$as_dir" && as_dir=.
5389
for ac_exec_ext in '' $ac_executable_extensions; do
5390
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5391
ac_cv_prog_ac_ct_AR="ar"
5392
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5401
ac_ct_AR=$ac_cv_prog_ac_ct_AR
5402
if test -n "$ac_ct_AR"; then
5403
{ echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5404
echo "${ECHO_T}$ac_ct_AR" >&6; }
5406
{ echo "$as_me:$LINENO: result: no" >&5
5407
echo "${ECHO_T}no" >&6; }
5410
if test "x$ac_ct_AR" = x; then
5413
case $cross_compiling:$ac_tool_warned in
5415
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5416
whose name does not start with the host triplet. If you think this
5417
configuration is useful to you, please write to autoconf@gnu.org." >&5
5418
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5419
whose name does not start with the host triplet. If you think this
5420
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5421
ac_tool_warned=yes ;;
5429
test -z "$AR" && AR=ar
5430
test -z "$AR_FLAGS" && AR_FLAGS=cru
5442
if test -n "$ac_tool_prefix"; then
5443
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5444
set dummy ${ac_tool_prefix}strip; ac_word=$2
5445
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5446
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5447
if test "${ac_cv_prog_STRIP+set}" = set; then
5448
echo $ECHO_N "(cached) $ECHO_C" >&6
5450
if test -n "$STRIP"; then
5451
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5453
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5457
test -z "$as_dir" && as_dir=.
5458
for ac_exec_ext in '' $ac_executable_extensions; do
5459
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5460
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5461
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5470
STRIP=$ac_cv_prog_STRIP
5471
if test -n "$STRIP"; then
5472
{ echo "$as_me:$LINENO: result: $STRIP" >&5
5473
echo "${ECHO_T}$STRIP" >&6; }
5475
{ echo "$as_me:$LINENO: result: no" >&5
5476
echo "${ECHO_T}no" >&6; }
5481
if test -z "$ac_cv_prog_STRIP"; then
5483
# Extract the first word of "strip", so it can be a program name with args.
5484
set dummy strip; ac_word=$2
5485
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5486
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5487
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5488
echo $ECHO_N "(cached) $ECHO_C" >&6
5490
if test -n "$ac_ct_STRIP"; then
5491
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5493
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5497
test -z "$as_dir" && as_dir=.
5498
for ac_exec_ext in '' $ac_executable_extensions; do
5499
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5500
ac_cv_prog_ac_ct_STRIP="strip"
5501
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5510
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5511
if test -n "$ac_ct_STRIP"; then
5512
{ echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5513
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
5515
{ echo "$as_me:$LINENO: result: no" >&5
5516
echo "${ECHO_T}no" >&6; }
5519
if test "x$ac_ct_STRIP" = x; then
5522
case $cross_compiling:$ac_tool_warned in
5524
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5525
whose name does not start with the host triplet. If you think this
5526
configuration is useful to you, please write to autoconf@gnu.org." >&5
5527
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5528
whose name does not start with the host triplet. If you think this
5529
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5530
ac_tool_warned=yes ;;
5535
STRIP="$ac_cv_prog_STRIP"
5538
test -z "$STRIP" && STRIP=:
5545
if test -n "$ac_tool_prefix"; then
5546
# Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5547
set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5548
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5549
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5550
if test "${ac_cv_prog_RANLIB+set}" = set; then
5551
echo $ECHO_N "(cached) $ECHO_C" >&6
5553
if test -n "$RANLIB"; then
5554
ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5556
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5560
test -z "$as_dir" && as_dir=.
5561
for ac_exec_ext in '' $ac_executable_extensions; do
5562
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5563
ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5564
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5573
RANLIB=$ac_cv_prog_RANLIB
5574
if test -n "$RANLIB"; then
5575
{ echo "$as_me:$LINENO: result: $RANLIB" >&5
5576
echo "${ECHO_T}$RANLIB" >&6; }
5578
{ echo "$as_me:$LINENO: result: no" >&5
5579
echo "${ECHO_T}no" >&6; }
5584
if test -z "$ac_cv_prog_RANLIB"; then
5585
ac_ct_RANLIB=$RANLIB
5586
# Extract the first word of "ranlib", so it can be a program name with args.
5587
set dummy ranlib; ac_word=$2
5588
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5589
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5590
if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5591
echo $ECHO_N "(cached) $ECHO_C" >&6
5593
if test -n "$ac_ct_RANLIB"; then
5594
ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5596
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5600
test -z "$as_dir" && as_dir=.
5601
for ac_exec_ext in '' $ac_executable_extensions; do
5602
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5603
ac_cv_prog_ac_ct_RANLIB="ranlib"
5604
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5613
ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5614
if test -n "$ac_ct_RANLIB"; then
5615
{ echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5616
echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5618
{ echo "$as_me:$LINENO: result: no" >&5
5619
echo "${ECHO_T}no" >&6; }
5622
if test "x$ac_ct_RANLIB" = x; then
5625
case $cross_compiling:$ac_tool_warned in
5627
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5628
whose name does not start with the host triplet. If you think this
5629
configuration is useful to you, please write to autoconf@gnu.org." >&5
5630
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5631
whose name does not start with the host triplet. If you think this
5632
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5633
ac_tool_warned=yes ;;
5635
RANLIB=$ac_ct_RANLIB
5638
RANLIB="$ac_cv_prog_RANLIB"
5641
test -z "$RANLIB" && RANLIB=:
5648
# Determine commands to create old-style static archives.
5649
old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
5650
old_postinstall_cmds='chmod 644 $oldlib'
5651
old_postuninstall_cmds=
5653
if test -n "$RANLIB"; then
5656
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
5659
old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
5662
old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
5698
# If no C compiler was specified, use CC.
5701
# If no C compiler flags were specified, use CFLAGS.
5702
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5704
# Allow CC to be a program name with arguments.
5708
# Check for command to grab the raw symbol name followed by C symbol from nm.
5709
{ echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5710
echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
5711
if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5712
echo $ECHO_N "(cached) $ECHO_C" >&6
5715
# These are sane defaults that work on at least a few old systems.
5716
# [They come from Ultrix. What could be older than Ultrix?!! ;)]
5718
# Character class describing NM global symbol codes.
5719
symcode='[BCDEGRST]'
5721
# Regexp to match symbols that can be accessed directly from C.
5722
sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5724
# Define system-specific variables.
5729
cygwin* | mingw* | pw32*)
5730
symcode='[ABCDGISTW]'
5733
if test "$host_cpu" = ia64; then
5734
symcode='[ABCDEGRST]'
5738
symcode='[BCDEGRST]'
5741
symcode='[BCDEGQRST]'
5752
sysv5* | sco5v6* | unixware* | OpenUNIX*)
5760
# If we're using GNU nm, then use its standard symbol codes.
5761
case `$NM -V 2>&1` in
5762
*GNU* | *'with BFD'*)
5763
symcode='[ABCDGIRSTW]' ;;
5766
# Transform an extracted symbol line into a proper C declaration.
5767
# Some systems (esp. on ia64) link data and code symbols differently,
5768
# so use this general approach.
5769
lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5771
# Transform an extracted symbol line into symbol name and symbol address
5772
lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
5773
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'"
5775
# Handle CRLF in mingw tool chain
5779
opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5783
# Try without a prefix underscore, then with it.
5784
for ac_symprfx in "" "_"; do
5786
# Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5787
symxfrm="\\1 $ac_symprfx\\2 \\2"
5789
# Write the raw and C identifiers.
5790
if test "$lt_cv_nm_interface" = "MS dumpbin"; then
5791
# Fake it for dumpbin and say T for any non-static function
5792
# and D for any global variable.
5793
# Also find C++ and __fastcall symbols from MSVC++,
5794
# which start with @ or ?.
5795
lt_cv_sys_global_symbol_pipe="$AWK '"\
5796
" {last_section=section; section=\$ 3};"\
5797
" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
5798
" \$ 0!~/External *\|/{next};"\
5799
" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
5800
" {if(hide[section]) next};"\
5801
" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
5802
" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
5803
" s[1]~/^[@?]/{print s[1], s[1]; next};"\
5804
" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
5805
" ' prfx=^$ac_symprfx"
5807
lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5810
# Check to see that the pipe works correctly.
5814
cat > conftest.$ac_ext <<_LT_EOF
5819
void nm_test_func(void);
5820
void nm_test_func(void){}
5824
int main(){nm_test_var='a';nm_test_func();return(0);}
5827
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5828
(eval $ac_compile) 2>&5
5830
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5831
(exit $ac_status); }; then
5832
# Now try to grab the symbols.
5834
if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5835
(eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5837
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5838
(exit $ac_status); } && test -s "$nlist"; then
5839
# Try sorting and uniquifying the output.
5840
if sort "$nlist" | uniq > "$nlist"T; then
5841
mv -f "$nlist"T "$nlist"
5846
# Make sure that we snagged all the symbols we need.
5847
if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
5848
if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
5849
cat <<_LT_EOF > conftest.$ac_ext
5855
# Now generate the symbol file.
5856
eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
5858
cat <<_LT_EOF >> conftest.$ac_ext
5860
/* The mapping between symbol names and symbols. */
5865
lt__PROGRAM__LTX_preloaded_symbols[] =
5867
{ "@PROGRAM@", (void *) 0 },
5869
$SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
5870
cat <<\_LT_EOF >> conftest.$ac_ext
5874
/* This works around a problem in FreeBSD linker */
5875
#ifdef FREEBSD_WORKAROUND
5876
static const void *lt_preloaded_setup() {
5877
return lt__PROGRAM__LTX_preloaded_symbols;
5885
# Now try linking the two files.
5886
mv conftest.$ac_objext conftstm.$ac_objext
5887
lt_save_LIBS="$LIBS"
5888
lt_save_CFLAGS="$CFLAGS"
5889
LIBS="conftstm.$ac_objext"
5890
CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5891
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5892
(eval $ac_link) 2>&5
5894
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895
(exit $ac_status); } && test -s conftest${ac_exeext}; then
5898
LIBS="$lt_save_LIBS"
5899
CFLAGS="$lt_save_CFLAGS"
5901
echo "cannot find nm_test_func in $nlist" >&5
5904
echo "cannot find nm_test_var in $nlist" >&5
5907
echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5910
echo "$progname: failed program was:" >&5
5911
cat conftest.$ac_ext >&5
5913
rm -rf conftest* conftst*
5915
# Do not use the global_symbol_pipe unless it works.
5916
if test "$pipe_works" = yes; then
5919
lt_cv_sys_global_symbol_pipe=
5925
if test -z "$lt_cv_sys_global_symbol_pipe"; then
5926
lt_cv_sys_global_symbol_to_cdecl=
5928
if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5929
{ echo "$as_me:$LINENO: result: failed" >&5
5930
echo "${ECHO_T}failed" >&6; }
5932
{ echo "$as_me:$LINENO: result: ok" >&5
5933
echo "${ECHO_T}ok" >&6; }
5958
# Check whether --enable-libtool-lock was given.
5959
if test "${enable_libtool_lock+set}" = set; then
5960
enableval=$enable_libtool_lock;
5963
test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5965
# Some flags need to be propagated to the compiler or linker for good
5969
# Find out which ABI we are using.
5970
echo 'int i;' > conftest.$ac_ext
5971
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5972
(eval $ac_compile) 2>&5
5974
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975
(exit $ac_status); }; then
5976
case `/usr/bin/file conftest.$ac_objext` in
5988
# Find out which ABI we are using.
5989
echo '#line 5989 "configure"' > conftest.$ac_ext
5990
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5991
(eval $ac_compile) 2>&5
5993
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5994
(exit $ac_status); }; then
5995
if test "$lt_cv_prog_gnu_ld" = yes; then
5996
case `/usr/bin/file conftest.$ac_objext` in
5998
LD="${LD-ld} -melf32bsmip"
6001
LD="${LD-ld} -melf32bmipn32"
6004
LD="${LD-ld} -melf64bmip"
6008
case `/usr/bin/file conftest.$ac_objext` in
6024
x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6025
s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6026
# Find out which ABI we are using.
6027
echo 'int i;' > conftest.$ac_ext
6028
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6029
(eval $ac_compile) 2>&5
6031
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032
(exit $ac_status); }; then
6033
case `/usr/bin/file conftest.o` in
6036
x86_64-*kfreebsd*-gnu)
6037
LD="${LD-ld} -m elf_i386_fbsd"
6040
LD="${LD-ld} -m elf_i386"
6042
ppc64-*linux*|powerpc64-*linux*)
6043
LD="${LD-ld} -m elf32ppclinux"
6046
LD="${LD-ld} -m elf_s390"
6049
LD="${LD-ld} -m elf32_sparc"
6055
x86_64-*kfreebsd*-gnu)
6056
LD="${LD-ld} -m elf_x86_64_fbsd"
6059
LD="${LD-ld} -m elf_x86_64"
6061
ppc*-*linux*|powerpc*-*linux*)
6062
LD="${LD-ld} -m elf64ppc"
6064
s390*-*linux*|s390*-*tpf*)
6065
LD="${LD-ld} -m elf64_s390"
6068
LD="${LD-ld} -m elf64_sparc"
6078
# On SCO OpenServer 5, we need -belf to get full-featured binaries.
6079
SAVE_CFLAGS="$CFLAGS"
6080
CFLAGS="$CFLAGS -belf"
6081
{ echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6082
echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
6083
if test "${lt_cv_cc_needs_belf+set}" = set; then
6084
echo $ECHO_N "(cached) $ECHO_C" >&6
6087
ac_cpp='$CPP $CPPFLAGS'
6088
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6089
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6090
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6092
cat >conftest.$ac_ext <<_ACEOF
6095
cat confdefs.h >>conftest.$ac_ext
6096
cat >>conftest.$ac_ext <<_ACEOF
6097
/* end confdefs.h. */
6107
rm -f conftest.$ac_objext conftest$ac_exeext
6108
if { (ac_try="$ac_link"
6110
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6111
*) ac_try_echo=$ac_try;;
6113
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6114
(eval "$ac_link") 2>conftest.er1
6116
grep -v '^ *+' conftest.er1 >conftest.err
6118
cat conftest.err >&5
6119
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120
(exit $ac_status); } && {
6121
test -z "$ac_c_werror_flag" ||
6122
test ! -s conftest.err
6123
} && test -s conftest$ac_exeext &&
6124
$as_test_x conftest$ac_exeext; then
6125
lt_cv_cc_needs_belf=yes
6127
echo "$as_me: failed program was:" >&5
6128
sed 's/^/| /' conftest.$ac_ext >&5
6130
lt_cv_cc_needs_belf=no
6133
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6134
conftest$ac_exeext conftest.$ac_ext
6136
ac_cpp='$CPP $CPPFLAGS'
6137
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6138
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6139
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6142
{ echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6143
echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
6144
if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6145
# this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6146
CFLAGS="$SAVE_CFLAGS"
6150
# Find out which ABI we are using.
6151
echo 'int i;' > conftest.$ac_ext
6152
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6153
(eval $ac_compile) 2>&5
6155
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6156
(exit $ac_status); }; then
6157
case `/usr/bin/file conftest.o` in
6159
case $lt_cv_prog_gnu_ld in
6160
yes*) LD="${LD-ld} -m elf64_sparc" ;;
6162
if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6174
need_locks="$enable_libtool_lock"
6178
rhapsody* | darwin*)
6179
if test -n "$ac_tool_prefix"; then
6180
# Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6181
set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6182
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6183
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6184
if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6185
echo $ECHO_N "(cached) $ECHO_C" >&6
6187
if test -n "$DSYMUTIL"; then
6188
ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6190
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6194
test -z "$as_dir" && as_dir=.
6195
for ac_exec_ext in '' $ac_executable_extensions; do
6196
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6197
ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6198
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6207
DSYMUTIL=$ac_cv_prog_DSYMUTIL
6208
if test -n "$DSYMUTIL"; then
6209
{ echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6210
echo "${ECHO_T}$DSYMUTIL" >&6; }
6212
{ echo "$as_me:$LINENO: result: no" >&5
6213
echo "${ECHO_T}no" >&6; }
6218
if test -z "$ac_cv_prog_DSYMUTIL"; then
6219
ac_ct_DSYMUTIL=$DSYMUTIL
6220
# Extract the first word of "dsymutil", so it can be a program name with args.
6221
set dummy dsymutil; ac_word=$2
6222
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6223
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6224
if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6225
echo $ECHO_N "(cached) $ECHO_C" >&6
6227
if test -n "$ac_ct_DSYMUTIL"; then
6228
ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6230
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6234
test -z "$as_dir" && as_dir=.
6235
for ac_exec_ext in '' $ac_executable_extensions; do
6236
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6237
ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6238
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6247
ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6248
if test -n "$ac_ct_DSYMUTIL"; then
6249
{ echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6250
echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
6252
{ echo "$as_me:$LINENO: result: no" >&5
6253
echo "${ECHO_T}no" >&6; }
6256
if test "x$ac_ct_DSYMUTIL" = x; then
6259
case $cross_compiling:$ac_tool_warned in
6261
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6262
whose name does not start with the host triplet. If you think this
6263
configuration is useful to you, please write to autoconf@gnu.org." >&5
6264
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6265
whose name does not start with the host triplet. If you think this
6266
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6267
ac_tool_warned=yes ;;
6269
DSYMUTIL=$ac_ct_DSYMUTIL
6272
DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6275
if test -n "$ac_tool_prefix"; then
6276
# Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6277
set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6278
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6279
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6280
if test "${ac_cv_prog_NMEDIT+set}" = set; then
6281
echo $ECHO_N "(cached) $ECHO_C" >&6
6283
if test -n "$NMEDIT"; then
6284
ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6286
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6290
test -z "$as_dir" && as_dir=.
6291
for ac_exec_ext in '' $ac_executable_extensions; do
6292
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6293
ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6294
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6303
NMEDIT=$ac_cv_prog_NMEDIT
6304
if test -n "$NMEDIT"; then
6305
{ echo "$as_me:$LINENO: result: $NMEDIT" >&5
6306
echo "${ECHO_T}$NMEDIT" >&6; }
6308
{ echo "$as_me:$LINENO: result: no" >&5
6309
echo "${ECHO_T}no" >&6; }
6314
if test -z "$ac_cv_prog_NMEDIT"; then
6315
ac_ct_NMEDIT=$NMEDIT
6316
# Extract the first word of "nmedit", so it can be a program name with args.
6317
set dummy nmedit; ac_word=$2
6318
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6319
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6320
if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6321
echo $ECHO_N "(cached) $ECHO_C" >&6
6323
if test -n "$ac_ct_NMEDIT"; then
6324
ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6326
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6330
test -z "$as_dir" && as_dir=.
6331
for ac_exec_ext in '' $ac_executable_extensions; do
6332
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6333
ac_cv_prog_ac_ct_NMEDIT="nmedit"
6334
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6343
ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6344
if test -n "$ac_ct_NMEDIT"; then
6345
{ echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6346
echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
6348
{ echo "$as_me:$LINENO: result: no" >&5
6349
echo "${ECHO_T}no" >&6; }
6352
if test "x$ac_ct_NMEDIT" = x; then
6355
case $cross_compiling:$ac_tool_warned in
6357
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6358
whose name does not start with the host triplet. If you think this
6359
configuration is useful to you, please write to autoconf@gnu.org." >&5
6360
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6361
whose name does not start with the host triplet. If you think this
6362
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6363
ac_tool_warned=yes ;;
6365
NMEDIT=$ac_ct_NMEDIT
6368
NMEDIT="$ac_cv_prog_NMEDIT"
6371
if test -n "$ac_tool_prefix"; then
6372
# Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6373
set dummy ${ac_tool_prefix}lipo; ac_word=$2
6374
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6375
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6376
if test "${ac_cv_prog_LIPO+set}" = set; then
6377
echo $ECHO_N "(cached) $ECHO_C" >&6
6379
if test -n "$LIPO"; then
6380
ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6382
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6386
test -z "$as_dir" && as_dir=.
6387
for ac_exec_ext in '' $ac_executable_extensions; do
6388
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6389
ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6390
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6399
LIPO=$ac_cv_prog_LIPO
6400
if test -n "$LIPO"; then
6401
{ echo "$as_me:$LINENO: result: $LIPO" >&5
6402
echo "${ECHO_T}$LIPO" >&6; }
6404
{ echo "$as_me:$LINENO: result: no" >&5
6405
echo "${ECHO_T}no" >&6; }
6410
if test -z "$ac_cv_prog_LIPO"; then
6412
# Extract the first word of "lipo", so it can be a program name with args.
6413
set dummy lipo; ac_word=$2
6414
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6415
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6416
if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then
6417
echo $ECHO_N "(cached) $ECHO_C" >&6
6419
if test -n "$ac_ct_LIPO"; then
6420
ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # 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_ac_ct_LIPO="lipo"
6430
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6439
ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6440
if test -n "$ac_ct_LIPO"; then
6441
{ echo "$as_me:$LINENO: result: $ac_ct_LIPO" >&5
6442
echo "${ECHO_T}$ac_ct_LIPO" >&6; }
6444
{ echo "$as_me:$LINENO: result: no" >&5
6445
echo "${ECHO_T}no" >&6; }
6448
if test "x$ac_ct_LIPO" = x; then
6451
case $cross_compiling:$ac_tool_warned in
6453
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6454
whose name does not start with the host triplet. If you think this
6455
configuration is useful to you, please write to autoconf@gnu.org." >&5
6456
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6457
whose name does not start with the host triplet. If you think this
6458
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6459
ac_tool_warned=yes ;;
6464
LIPO="$ac_cv_prog_LIPO"
6467
if test -n "$ac_tool_prefix"; then
6468
# Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
6469
set dummy ${ac_tool_prefix}otool; ac_word=$2
6470
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6471
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6472
if test "${ac_cv_prog_OTOOL+set}" = set; then
6473
echo $ECHO_N "(cached) $ECHO_C" >&6
6475
if test -n "$OTOOL"; then
6476
ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
6478
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6482
test -z "$as_dir" && as_dir=.
6483
for ac_exec_ext in '' $ac_executable_extensions; do
6484
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6485
ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
6486
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6495
OTOOL=$ac_cv_prog_OTOOL
6496
if test -n "$OTOOL"; then
6497
{ echo "$as_me:$LINENO: result: $OTOOL" >&5
6498
echo "${ECHO_T}$OTOOL" >&6; }
6500
{ echo "$as_me:$LINENO: result: no" >&5
6501
echo "${ECHO_T}no" >&6; }
6506
if test -z "$ac_cv_prog_OTOOL"; then
6508
# Extract the first word of "otool", so it can be a program name with args.
6509
set dummy otool; ac_word=$2
6510
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6511
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6512
if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then
6513
echo $ECHO_N "(cached) $ECHO_C" >&6
6515
if test -n "$ac_ct_OTOOL"; then
6516
ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
6518
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6522
test -z "$as_dir" && as_dir=.
6523
for ac_exec_ext in '' $ac_executable_extensions; do
6524
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6525
ac_cv_prog_ac_ct_OTOOL="otool"
6526
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6535
ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
6536
if test -n "$ac_ct_OTOOL"; then
6537
{ echo "$as_me:$LINENO: result: $ac_ct_OTOOL" >&5
6538
echo "${ECHO_T}$ac_ct_OTOOL" >&6; }
6540
{ echo "$as_me:$LINENO: result: no" >&5
6541
echo "${ECHO_T}no" >&6; }
6544
if test "x$ac_ct_OTOOL" = x; then
6547
case $cross_compiling:$ac_tool_warned in
6549
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6550
whose name does not start with the host triplet. If you think this
6551
configuration is useful to you, please write to autoconf@gnu.org." >&5
6552
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6553
whose name does not start with the host triplet. If you think this
6554
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6555
ac_tool_warned=yes ;;
6560
OTOOL="$ac_cv_prog_OTOOL"
6563
if test -n "$ac_tool_prefix"; then
6564
# Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
6565
set dummy ${ac_tool_prefix}otool64; ac_word=$2
6566
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6567
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6568
if test "${ac_cv_prog_OTOOL64+set}" = set; then
6569
echo $ECHO_N "(cached) $ECHO_C" >&6
6571
if test -n "$OTOOL64"; then
6572
ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
6574
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6578
test -z "$as_dir" && as_dir=.
6579
for ac_exec_ext in '' $ac_executable_extensions; do
6580
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6581
ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
6582
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6591
OTOOL64=$ac_cv_prog_OTOOL64
6592
if test -n "$OTOOL64"; then
6593
{ echo "$as_me:$LINENO: result: $OTOOL64" >&5
6594
echo "${ECHO_T}$OTOOL64" >&6; }
6596
{ echo "$as_me:$LINENO: result: no" >&5
6597
echo "${ECHO_T}no" >&6; }
6602
if test -z "$ac_cv_prog_OTOOL64"; then
6603
ac_ct_OTOOL64=$OTOOL64
6604
# Extract the first word of "otool64", so it can be a program name with args.
6605
set dummy otool64; ac_word=$2
6606
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
6607
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6608
if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then
6609
echo $ECHO_N "(cached) $ECHO_C" >&6
6611
if test -n "$ac_ct_OTOOL64"; then
6612
ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
6614
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6618
test -z "$as_dir" && as_dir=.
6619
for ac_exec_ext in '' $ac_executable_extensions; do
6620
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6621
ac_cv_prog_ac_ct_OTOOL64="otool64"
6622
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6631
ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
6632
if test -n "$ac_ct_OTOOL64"; then
6633
{ echo "$as_me:$LINENO: result: $ac_ct_OTOOL64" >&5
6634
echo "${ECHO_T}$ac_ct_OTOOL64" >&6; }
6636
{ echo "$as_me:$LINENO: result: no" >&5
6637
echo "${ECHO_T}no" >&6; }
6640
if test "x$ac_ct_OTOOL64" = x; then
6643
case $cross_compiling:$ac_tool_warned in
6645
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6646
whose name does not start with the host triplet. If you think this
6647
configuration is useful to you, please write to autoconf@gnu.org." >&5
6648
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6649
whose name does not start with the host triplet. If you think this
6650
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6651
ac_tool_warned=yes ;;
6653
OTOOL64=$ac_ct_OTOOL64
6656
OTOOL64="$ac_cv_prog_OTOOL64"
6685
{ echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6686
echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
6687
if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6688
echo $ECHO_N "(cached) $ECHO_C" >&6
6690
lt_cv_apple_cc_single_mod=no
6691
if test -z "${LT_MULTI_MODULE}"; then
6692
# By default we will add the -single_module flag. You can override
6693
# by either setting the environment variable LT_MULTI_MODULE
6694
# non-empty at configure time, or by adding -multi_module to the
6696
rm -rf libconftest.dylib*
6697
echo "int foo(void){return 1;}" > conftest.c
6698
echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6699
-dynamiclib -Wl,-single_module conftest.c" >&5
6700
$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6701
-dynamiclib -Wl,-single_module conftest.c 2>conftest.err
6703
if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
6704
lt_cv_apple_cc_single_mod=yes
6706
cat conftest.err >&5
6708
rm -rf libconftest.dylib*
6712
{ echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6713
echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
6714
{ echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6715
echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
6716
if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6717
echo $ECHO_N "(cached) $ECHO_C" >&6
6719
lt_cv_ld_exported_symbols_list=no
6720
save_LDFLAGS=$LDFLAGS
6721
echo "_main" > conftest.sym
6722
LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6723
cat >conftest.$ac_ext <<_ACEOF
6726
cat confdefs.h >>conftest.$ac_ext
6727
cat >>conftest.$ac_ext <<_ACEOF
6728
/* end confdefs.h. */
6738
rm -f conftest.$ac_objext conftest$ac_exeext
6739
if { (ac_try="$ac_link"
6741
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6742
*) ac_try_echo=$ac_try;;
6744
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6745
(eval "$ac_link") 2>conftest.er1
6747
grep -v '^ *+' conftest.er1 >conftest.err
6749
cat conftest.err >&5
6750
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6751
(exit $ac_status); } && {
6752
test -z "$ac_c_werror_flag" ||
6753
test ! -s conftest.err
6754
} && test -s conftest$ac_exeext &&
6755
$as_test_x conftest$ac_exeext; then
6756
lt_cv_ld_exported_symbols_list=yes
6758
echo "$as_me: failed program was:" >&5
6759
sed 's/^/| /' conftest.$ac_ext >&5
6761
lt_cv_ld_exported_symbols_list=no
6764
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6765
conftest$ac_exeext conftest.$ac_ext
6766
LDFLAGS="$save_LDFLAGS"
6769
{ echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6770
echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
6772
rhapsody* | darwin1.[012])
6773
_lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6775
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6776
darwin*) # darwin 5.x on
6777
# if running on 10.5 or later, the deployment target defaults
6778
# to the OS version, if on x86, and 10.4, the deployment
6779
# target defaults to 10.4. Don't you love it?
6780
case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6781
10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6782
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6784
_lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6786
_lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6790
if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6791
_lt_dar_single_mod='$single_module'
6793
if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6794
_lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6796
_lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
6798
if test "$DSYMUTIL" != ":"; then
6799
_lt_dsymutil='~$DSYMUTIL $lib || :'
6807
ac_cpp='$CPP $CPPFLAGS'
6808
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6809
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6810
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6811
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6812
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
6813
# On Suns, sometimes $CPP names a directory.
6814
if test -n "$CPP" && test -d "$CPP"; then
6817
if test -z "$CPP"; then
6818
if test "${ac_cv_prog_CPP+set}" = set; then
6819
echo $ECHO_N "(cached) $ECHO_C" >&6
6821
# Double quotes because CPP needs to be expanded
6822
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6825
for ac_c_preproc_warn_flag in '' yes
6827
# Use a header file that comes with gcc, so configuring glibc
6828
# with a fresh cross-compiler works.
6829
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6830
# <limits.h> exists even on freestanding compilers.
6831
# On the NeXT, cc -E runs the code through the compiler's parser,
6832
# not just through cpp. "Syntax error" is here to catch this case.
6833
cat >conftest.$ac_ext <<_ACEOF
6836
cat confdefs.h >>conftest.$ac_ext
6837
cat >>conftest.$ac_ext <<_ACEOF
6838
/* end confdefs.h. */
6840
# include <limits.h>
6842
# include <assert.h>
6846
if { (ac_try="$ac_cpp conftest.$ac_ext"
6848
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6849
*) ac_try_echo=$ac_try;;
6851
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6852
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6854
grep -v '^ *+' conftest.er1 >conftest.err
6856
cat conftest.err >&5
6857
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6858
(exit $ac_status); } >/dev/null && {
6859
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6860
test ! -s conftest.err
6864
echo "$as_me: failed program was:" >&5
6865
sed 's/^/| /' conftest.$ac_ext >&5
6867
# Broken: fails on valid input.
6871
rm -f conftest.err conftest.$ac_ext
6873
# OK, works on sane cases. Now check whether nonexistent headers
6874
# can be detected and how.
6875
cat >conftest.$ac_ext <<_ACEOF
6878
cat confdefs.h >>conftest.$ac_ext
6879
cat >>conftest.$ac_ext <<_ACEOF
6880
/* end confdefs.h. */
6881
#include <ac_nonexistent.h>
6883
if { (ac_try="$ac_cpp conftest.$ac_ext"
6885
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6886
*) ac_try_echo=$ac_try;;
6888
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6889
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6891
grep -v '^ *+' conftest.er1 >conftest.err
6893
cat conftest.err >&5
6894
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6895
(exit $ac_status); } >/dev/null && {
6896
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6897
test ! -s conftest.err
6899
# Broken: success on invalid input.
6902
echo "$as_me: failed program was:" >&5
6903
sed 's/^/| /' conftest.$ac_ext >&5
6905
# Passes both tests.
6910
rm -f conftest.err conftest.$ac_ext
6913
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6914
rm -f conftest.err conftest.$ac_ext
6915
if $ac_preproc_ok; then
6927
{ echo "$as_me:$LINENO: result: $CPP" >&5
6928
echo "${ECHO_T}$CPP" >&6; }
6930
for ac_c_preproc_warn_flag in '' yes
6932
# Use a header file that comes with gcc, so configuring glibc
6933
# with a fresh cross-compiler works.
6934
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6935
# <limits.h> exists even on freestanding compilers.
6936
# On the NeXT, cc -E runs the code through the compiler's parser,
6937
# not just through cpp. "Syntax error" is here to catch this case.
6938
cat >conftest.$ac_ext <<_ACEOF
6941
cat confdefs.h >>conftest.$ac_ext
6942
cat >>conftest.$ac_ext <<_ACEOF
6943
/* end confdefs.h. */
6945
# include <limits.h>
6947
# include <assert.h>
6951
if { (ac_try="$ac_cpp conftest.$ac_ext"
6953
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6954
*) ac_try_echo=$ac_try;;
6956
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6957
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6959
grep -v '^ *+' conftest.er1 >conftest.err
6961
cat conftest.err >&5
6962
echo "$as_me:$LINENO: \$? = $ac_status" >&5
6963
(exit $ac_status); } >/dev/null && {
6964
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6965
test ! -s conftest.err
6969
echo "$as_me: failed program was:" >&5
6970
sed 's/^/| /' conftest.$ac_ext >&5
6972
# Broken: fails on valid input.
6976
rm -f conftest.err conftest.$ac_ext
6978
# OK, works on sane cases. Now check whether nonexistent headers
6979
# can be detected and how.
6980
cat >conftest.$ac_ext <<_ACEOF
6983
cat confdefs.h >>conftest.$ac_ext
6984
cat >>conftest.$ac_ext <<_ACEOF
6985
/* end confdefs.h. */
6986
#include <ac_nonexistent.h>
6988
if { (ac_try="$ac_cpp conftest.$ac_ext"
6990
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6991
*) ac_try_echo=$ac_try;;
6993
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6994
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6996
grep -v '^ *+' conftest.er1 >conftest.err
6998
cat conftest.err >&5
6999
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000
(exit $ac_status); } >/dev/null && {
7001
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7002
test ! -s conftest.err
7004
# Broken: success on invalid input.
7007
echo "$as_me: failed program was:" >&5
7008
sed 's/^/| /' conftest.$ac_ext >&5
7010
# Passes both tests.
7015
rm -f conftest.err conftest.$ac_ext
7018
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7019
rm -f conftest.err conftest.$ac_ext
7020
if $ac_preproc_ok; then
7023
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7024
See \`config.log' for more details." >&5
7025
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7026
See \`config.log' for more details." >&2;}
7027
{ (exit 1); exit 1; }; }
7031
ac_cpp='$CPP $CPPFLAGS'
7032
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7033
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7034
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7037
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7038
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7039
if test "${ac_cv_header_stdc+set}" = set; then
7040
echo $ECHO_N "(cached) $ECHO_C" >&6
7042
cat >conftest.$ac_ext <<_ACEOF
7045
cat confdefs.h >>conftest.$ac_ext
7046
cat >>conftest.$ac_ext <<_ACEOF
7047
/* end confdefs.h. */
7061
rm -f conftest.$ac_objext
7062
if { (ac_try="$ac_compile"
7064
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7065
*) ac_try_echo=$ac_try;;
7067
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7068
(eval "$ac_compile") 2>conftest.er1
7070
grep -v '^ *+' conftest.er1 >conftest.err
7072
cat conftest.err >&5
7073
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7074
(exit $ac_status); } && {
7075
test -z "$ac_c_werror_flag" ||
7076
test ! -s conftest.err
7077
} && test -s conftest.$ac_objext; then
7078
ac_cv_header_stdc=yes
7080
echo "$as_me: failed program was:" >&5
7081
sed 's/^/| /' conftest.$ac_ext >&5
7083
ac_cv_header_stdc=no
7086
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7088
if test $ac_cv_header_stdc = yes; then
7089
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7090
cat >conftest.$ac_ext <<_ACEOF
7093
cat confdefs.h >>conftest.$ac_ext
7094
cat >>conftest.$ac_ext <<_ACEOF
7095
/* end confdefs.h. */
7099
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7100
$EGREP "memchr" >/dev/null 2>&1; then
7103
ac_cv_header_stdc=no
7109
if test $ac_cv_header_stdc = yes; then
7110
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7111
cat >conftest.$ac_ext <<_ACEOF
7114
cat confdefs.h >>conftest.$ac_ext
7115
cat >>conftest.$ac_ext <<_ACEOF
7116
/* end confdefs.h. */
7120
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7121
$EGREP "free" >/dev/null 2>&1; then
7124
ac_cv_header_stdc=no
7130
if test $ac_cv_header_stdc = yes; then
7131
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7132
if test "$cross_compiling" = yes; then
7135
cat >conftest.$ac_ext <<_ACEOF
7138
cat confdefs.h >>conftest.$ac_ext
7139
cat >>conftest.$ac_ext <<_ACEOF
7140
/* end confdefs.h. */
7143
#if ((' ' & 0x0FF) == 0x020)
7144
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7145
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7147
# define ISLOWER(c) \
7148
(('a' <= (c) && (c) <= 'i') \
7149
|| ('j' <= (c) && (c) <= 'r') \
7150
|| ('s' <= (c) && (c) <= 'z'))
7151
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7154
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7159
for (i = 0; i < 256; i++)
7160
if (XOR (islower (i), ISLOWER (i))
7161
|| toupper (i) != TOUPPER (i))
7166
rm -f conftest$ac_exeext
7167
if { (ac_try="$ac_link"
7169
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7170
*) ac_try_echo=$ac_try;;
7172
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7173
(eval "$ac_link") 2>&5
7175
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7176
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7177
{ (case "(($ac_try" in
7178
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7179
*) ac_try_echo=$ac_try;;
7181
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7182
(eval "$ac_try") 2>&5
7184
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7185
(exit $ac_status); }; }; then
7188
echo "$as_me: program exited with status $ac_status" >&5
7189
echo "$as_me: failed program was:" >&5
7190
sed 's/^/| /' conftest.$ac_ext >&5
7193
ac_cv_header_stdc=no
7195
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7201
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7202
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7203
if test $ac_cv_header_stdc = yes; then
7205
cat >>confdefs.h <<\_ACEOF
7206
#define STDC_HEADERS 1
7211
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7221
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7222
inttypes.h stdint.h unistd.h
7224
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7225
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7226
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7227
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7228
echo $ECHO_N "(cached) $ECHO_C" >&6
7230
cat >conftest.$ac_ext <<_ACEOF
7233
cat confdefs.h >>conftest.$ac_ext
7234
cat >>conftest.$ac_ext <<_ACEOF
7235
/* end confdefs.h. */
7236
$ac_includes_default
7238
#include <$ac_header>
7240
rm -f conftest.$ac_objext
7241
if { (ac_try="$ac_compile"
7243
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7244
*) ac_try_echo=$ac_try;;
7246
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7247
(eval "$ac_compile") 2>conftest.er1
7249
grep -v '^ *+' conftest.er1 >conftest.err
7251
cat conftest.err >&5
7252
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7253
(exit $ac_status); } && {
7254
test -z "$ac_c_werror_flag" ||
7255
test ! -s conftest.err
7256
} && test -s conftest.$ac_objext; then
7257
eval "$as_ac_Header=yes"
7259
echo "$as_me: failed program was:" >&5
7260
sed 's/^/| /' conftest.$ac_ext >&5
7262
eval "$as_ac_Header=no"
7265
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7267
ac_res=`eval echo '${'$as_ac_Header'}'`
7268
{ echo "$as_me:$LINENO: result: $ac_res" >&5
7269
echo "${ECHO_T}$ac_res" >&6; }
7270
if test `eval echo '${'$as_ac_Header'}'` = yes; then
7271
cat >>confdefs.h <<_ACEOF
7272
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7281
for ac_header in dlfcn.h
7283
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7284
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7285
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7286
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7287
echo $ECHO_N "(cached) $ECHO_C" >&6
7289
cat >conftest.$ac_ext <<_ACEOF
7292
cat confdefs.h >>conftest.$ac_ext
7293
cat >>conftest.$ac_ext <<_ACEOF
7294
/* end confdefs.h. */
7295
$ac_includes_default
7297
#include <$ac_header>
7299
rm -f conftest.$ac_objext
7300
if { (ac_try="$ac_compile"
7302
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7303
*) ac_try_echo=$ac_try;;
7305
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7306
(eval "$ac_compile") 2>conftest.er1
7308
grep -v '^ *+' conftest.er1 >conftest.err
7310
cat conftest.err >&5
7311
echo "$as_me:$LINENO: \$? = $ac_status" >&5
7312
(exit $ac_status); } && {
7313
test -z "$ac_c_werror_flag" ||
7314
test ! -s conftest.err
7315
} && test -s conftest.$ac_objext; then
7316
eval "$as_ac_Header=yes"
7318
echo "$as_me: failed program was:" >&5
7319
sed 's/^/| /' conftest.$ac_ext >&5
7321
eval "$as_ac_Header=no"
7324
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7326
ac_res=`eval echo '${'$as_ac_Header'}'`
7327
{ echo "$as_me:$LINENO: result: $ac_res" >&5
7328
echo "${ECHO_T}$ac_res" >&6; }
7329
if test `eval echo '${'$as_ac_Header'}'` = yes; then
7330
cat >>confdefs.h <<_ACEOF
7331
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7351
# Check whether --enable-static was given.
7352
if test "${enable_static+set}" = set; then
7353
enableval=$enable_static; p=${PACKAGE-default}
7355
yes) enable_static=yes ;;
7356
no) enable_static=no ;;
7359
# Look at the argument we got. We use all the common list separators.
7360
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7361
for pkg in $enableval; do
7363
if test "X$pkg" = "X$p"; then
7383
# Check whether --with-pic was given.
7384
if test "${with_pic+set}" = set; then
7385
withval=$with_pic; pic_mode="$withval"
7391
test -z "$pic_mode" && pic_mode=default
7399
# Check whether --enable-fast-install was given.
7400
if test "${enable_fast_install+set}" = set; then
7401
enableval=$enable_fast_install; p=${PACKAGE-default}
7403
yes) enable_fast_install=yes ;;
7404
no) enable_fast_install=no ;;
7406
enable_fast_install=no
7407
# Look at the argument we got. We use all the common list separators.
7408
lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7409
for pkg in $enableval; do
7411
if test "X$pkg" = "X$p"; then
7412
enable_fast_install=yes
7419
enable_fast_install=yes
7432
# This can be used to rebuild libtool when needed
7433
LIBTOOL_DEPS="$ltmain"
7435
# Always use our own libtool.
7436
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7462
test -z "$LN_S" && LN_S="ln -s"
7477
if test -n "${ZSH_VERSION+set}" ; then
7478
setopt NO_GLOB_SUBST
7481
{ echo "$as_me:$LINENO: checking for objdir" >&5
7482
echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
7483
if test "${lt_cv_objdir+set}" = set; then
7484
echo $ECHO_N "(cached) $ECHO_C" >&6
7486
rm -f .libs 2>/dev/null
7487
mkdir .libs 2>/dev/null
7488
if test -d .libs; then
7491
# MS-DOS does not allow filenames that begin with a dot.
7494
rmdir .libs 2>/dev/null
7496
{ echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7497
echo "${ECHO_T}$lt_cv_objdir" >&6; }
7498
objdir=$lt_cv_objdir
7504
cat >>confdefs.h <<_ACEOF
7505
#define LT_OBJDIR "$lt_cv_objdir/"
7526
# AIX sometimes has problems with the GCC collect2 program. For some
7527
# reason, if we set the COLLECT_NAMES environment variable, the problems
7528
# vanish in a puff of smoke.
7529
if test "X${COLLECT_NAMES+set}" != Xset; then
7531
export COLLECT_NAMES
7536
# Sed substitution that helps us do robust quoting. It backslashifies
7537
# metacharacters that are still active within double-quoted strings.
7538
sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7540
# Same as above, but do not quote variable references.
7541
double_quote_subst='s/\(["`\\]\)/\\\1/g'
7543
# Sed substitution to delay expansion of an escaped shell variable in a
7544
# double_quote_subst'ed string.
7545
delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7547
# Sed substitution to delay expansion of an escaped single quote.
7548
delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7550
# Sed substitution to avoid accidental globbing in evaled expressions
7551
no_glob_subst='s/\*/\\\*/g'
7555
can_build_shared=yes
7557
# All known linkers require a `.a' archive for static linking (except MSVC,
7558
# which needs '.lib').
7561
with_gnu_ld="$lt_cv_prog_gnu_ld"
7564
old_CFLAGS="$CFLAGS"
7566
# Set sane defaults for various variables
7567
test -z "$CC" && CC=cc
7568
test -z "$LTCC" && LTCC=$CC
7569
test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7570
test -z "$LD" && LD=ld
7571
test -z "$ac_objext" && ac_objext=o
7573
for cc_temp in $compiler""; do
7575
compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7576
distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7581
cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7584
# Only perform the check for file, if the check method requires it
7585
test -z "$MAGIC_CMD" && MAGIC_CMD=file
7586
case $deplibs_check_method in
7588
if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7589
{ echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7590
echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7591
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7592
echo $ECHO_N "(cached) $ECHO_C" >&6
7596
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7599
lt_save_MAGIC_CMD="$MAGIC_CMD"
7600
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7601
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7602
for ac_dir in $ac_dummy; do
7604
test -z "$ac_dir" && ac_dir=.
7605
if test -f $ac_dir/${ac_tool_prefix}file; then
7606
lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7607
if test -n "$file_magic_test_file"; then
7608
case $deplibs_check_method in
7610
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7611
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7612
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7613
$EGREP "$file_magic_regex" > /dev/null; then
7618
*** Warning: the command libtool uses to detect shared libraries,
7619
*** $file_magic_cmd, produces output that libtool cannot recognize.
7620
*** The result is that libtool may fail to recognize shared libraries
7621
*** as such. This will affect the creation of libtool libraries that
7622
*** depend on shared libraries, but programs linked with such libtool
7623
*** libraries will work regardless of this problem. Nevertheless, you
7624
*** may want to report the problem to your system manager and/or to
7625
*** bug-libtool@gnu.org
7635
MAGIC_CMD="$lt_save_MAGIC_CMD"
7640
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7641
if test -n "$MAGIC_CMD"; then
7642
{ echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7643
echo "${ECHO_T}$MAGIC_CMD" >&6; }
7645
{ echo "$as_me:$LINENO: result: no" >&5
7646
echo "${ECHO_T}no" >&6; }
7653
if test -z "$lt_cv_path_MAGIC_CMD"; then
7654
if test -n "$ac_tool_prefix"; then
7655
{ echo "$as_me:$LINENO: checking for file" >&5
7656
echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7657
if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7658
echo $ECHO_N "(cached) $ECHO_C" >&6
7662
lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7665
lt_save_MAGIC_CMD="$MAGIC_CMD"
7666
lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7667
ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7668
for ac_dir in $ac_dummy; do
7670
test -z "$ac_dir" && ac_dir=.
7671
if test -f $ac_dir/file; then
7672
lt_cv_path_MAGIC_CMD="$ac_dir/file"
7673
if test -n "$file_magic_test_file"; then
7674
case $deplibs_check_method in
7676
file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7677
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7678
if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7679
$EGREP "$file_magic_regex" > /dev/null; then
7684
*** Warning: the command libtool uses to detect shared libraries,
7685
*** $file_magic_cmd, produces output that libtool cannot recognize.
7686
*** The result is that libtool may fail to recognize shared libraries
7687
*** as such. This will affect the creation of libtool libraries that
7688
*** depend on shared libraries, but programs linked with such libtool
7689
*** libraries will work regardless of this problem. Nevertheless, you
7690
*** may want to report the problem to your system manager and/or to
7691
*** bug-libtool@gnu.org
7701
MAGIC_CMD="$lt_save_MAGIC_CMD"
7706
MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7707
if test -n "$MAGIC_CMD"; then
7708
{ echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7709
echo "${ECHO_T}$MAGIC_CMD" >&6; }
7711
{ echo "$as_me:$LINENO: result: no" >&5
7712
echo "${ECHO_T}no" >&6; }
7725
# Use C for the default configuration in the libtool script
7729
ac_cpp='$CPP $CPPFLAGS'
7730
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7731
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7732
ac_compiler_gnu=$ac_cv_c_compiler_gnu
7735
# Source file extension for C test sources.
7738
# Object file extension for compiled C test sources.
7742
# Code to be used in simple compile tests
7743
lt_simple_compile_test_code="int some_variable = 0;"
7745
# Code to be used in simple link tests
7746
lt_simple_link_test_code='int main(){return(0);}'
7754
# If no C compiler was specified, use CC.
7757
# If no C compiler flags were specified, use CFLAGS.
7758
LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7760
# Allow CC to be a program name with arguments.
7763
# Save the default compiler, since it gets overwritten when the other
7764
# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
7765
compiler_DEFAULT=$CC
7767
# save warnings/boilerplate of simple test code
7768
ac_outfile=conftest.$ac_objext
7769
echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7770
eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7771
_lt_compiler_boilerplate=`cat conftest.err`
7774
ac_outfile=conftest.$ac_objext
7775
echo "$lt_simple_link_test_code" >conftest.$ac_ext
7776
eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7777
_lt_linker_boilerplate=`cat conftest.err`
7781
if test -n "$compiler"; then
7783
lt_prog_compiler_no_builtin_flag=
7785
if test "$GCC" = yes; then
7786
lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7788
{ echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7789
echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7790
if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7791
echo $ECHO_N "(cached) $ECHO_C" >&6
7793
lt_cv_prog_compiler_rtti_exceptions=no
7794
ac_outfile=conftest.$ac_objext
7795
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7796
lt_compiler_flag="-fno-rtti -fno-exceptions"
7797
# Insert the option either (1) after the last *FLAGS variable, or
7798
# (2) before a word containing "conftest.", or (3) at the end.
7799
# Note that $ac_compile itself does not contain backslashes and begins
7800
# with a dollar sign (not a hyphen), so the echo should work correctly.
7801
# The option is referenced via a variable to avoid confusing sed.
7802
lt_compile=`echo "$ac_compile" | $SED \
7803
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7804
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7805
-e 's:$: $lt_compiler_flag:'`
7806
(eval echo "\"\$as_me:7806: $lt_compile\"" >&5)
7807
(eval "$lt_compile" 2>conftest.err)
7809
cat conftest.err >&5
7810
echo "$as_me:7810: \$? = $ac_status" >&5
7811
if (exit $ac_status) && test -s "$ac_outfile"; then
7812
# The compiler can only warn and ignore the option if not recognized
7813
# So say no if there are warnings other than the usual output.
7814
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7815
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7816
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7817
lt_cv_prog_compiler_rtti_exceptions=yes
7823
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7824
echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7826
if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7827
lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7839
lt_prog_compiler_wl=
7840
lt_prog_compiler_pic=
7841
lt_prog_compiler_static=
7843
{ echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7844
echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7846
if test "$GCC" = yes; then
7847
lt_prog_compiler_wl='-Wl,'
7848
lt_prog_compiler_static='-static'
7852
# All AIX code is PIC.
7853
if test "$host_cpu" = ia64; then
7854
# AIX 5 now supports IA64 processor
7855
lt_prog_compiler_static='-Bstatic'
7862
# see comment about AmigaOS4 .so support
7863
lt_prog_compiler_pic='-fPIC'
7866
# FIXME: we need at least 68020 code to build shared libraries, but
7867
# adding the `-m68020' flag to GCC prevents building anything better,
7869
lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7874
beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7875
# PIC is the default for these OSes.
7878
mingw* | cygwin* | pw32* | os2*)
7879
# This hack is so that the source file can tell whether it is being
7880
# built for inclusion in a dll (and should export symbols for example).
7881
# Although the cygwin gcc ignores -fPIC, still need this for old-style
7882
# (--disable-auto-import) libraries
7883
lt_prog_compiler_pic='-DDLL_EXPORT'
7886
darwin* | rhapsody*)
7887
# PIC is the default on this platform
7888
# Common symbols not allowed in MH_DYLIB files
7889
lt_prog_compiler_pic='-fno-common'
7893
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7900
lt_prog_compiler_pic='-fPIC'
7906
# Interix 3.x gcc -fpic/-fPIC options generate broken code.
7907
# Instead, we relocate shared libraries at runtime.
7911
# Just because we use GCC doesn't mean we suddenly get shared libraries
7912
# on systems that don't support them.
7913
lt_prog_compiler_can_build_shared=no
7918
# QNX uses GNU C++, but need to define -shared option too, otherwise
7920
lt_prog_compiler_pic='-fPIC -shared'
7924
if test -d /usr/nec; then
7925
lt_prog_compiler_pic=-Kconform_pic
7930
lt_prog_compiler_pic='-fPIC'
7934
# PORTME Check for flag to pass linker flags through the system compiler.
7937
lt_prog_compiler_wl='-Wl,'
7938
if test "$host_cpu" = ia64; then
7939
# AIX 5 now supports IA64 processor
7940
lt_prog_compiler_static='-Bstatic'
7942
lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7946
mingw* | cygwin* | pw32* | os2*)
7947
# This hack is so that the source file can tell whether it is being
7948
# built for inclusion in a dll (and should export symbols for example).
7949
lt_prog_compiler_pic='-DDLL_EXPORT'
7952
hpux9* | hpux10* | hpux11*)
7953
lt_prog_compiler_wl='-Wl,'
7954
# PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7961
lt_prog_compiler_pic='+Z'
7964
# Is there a better lt_prog_compiler_static that works with the bundled CC?
7965
lt_prog_compiler_static='${wl}-a ${wl}archive'
7968
irix5* | irix6* | nonstopux*)
7969
lt_prog_compiler_wl='-Wl,'
7970
# PIC (with -KPIC) is the default.
7971
lt_prog_compiler_static='-non_shared'
7974
linux* | k*bsd*-gnu)
7975
case $cc_basename in
7976
icc* | ecc* | ifort*)
7977
lt_prog_compiler_wl='-Wl,'
7978
lt_prog_compiler_pic='-KPIC'
7979
lt_prog_compiler_static='-static'
7981
pgcc* | pgf77* | pgf90* | pgf95*)
7982
# Portland Group compilers (*not* the Pentium gcc compiler,
7983
# which looks to be a dead project)
7984
lt_prog_compiler_wl='-Wl,'
7985
lt_prog_compiler_pic='-fpic'
7986
lt_prog_compiler_static='-Bstatic'
7989
lt_prog_compiler_wl='-Wl,'
7990
# All Alpha code is PIC.
7991
lt_prog_compiler_static='-non_shared'
7994
# IBM XL C 8.0/Fortran 10.1 on PPC
7995
lt_prog_compiler_wl='-Wl,'
7996
lt_prog_compiler_pic='-qpic'
7997
lt_prog_compiler_static='-qstaticlink'
8000
case `$CC -V 2>&1 | sed 5q` in
8003
lt_prog_compiler_pic='-KPIC'
8004
lt_prog_compiler_static='-Bstatic'
8005
lt_prog_compiler_wl='-Wl,'
8008
# Sun Fortran 8.3 passes all unrecognized flags to the linker
8009
lt_prog_compiler_pic='-KPIC'
8010
lt_prog_compiler_static='-Bstatic'
8011
lt_prog_compiler_wl=''
8019
lt_prog_compiler_pic='-KPIC'
8020
lt_prog_compiler_static='-Bstatic'
8024
# QNX uses GNU C++, but need to define -shared option too, otherwise
8026
lt_prog_compiler_pic='-fPIC -shared'
8029
osf3* | osf4* | osf5*)
8030
lt_prog_compiler_wl='-Wl,'
8031
# All OSF/1 code is PIC.
8032
lt_prog_compiler_static='-non_shared'
8036
lt_prog_compiler_static='-non_shared'
8040
lt_prog_compiler_pic='-KPIC'
8041
lt_prog_compiler_static='-Bstatic'
8042
case $cc_basename in
8044
lt_prog_compiler_wl='-Qoption ld ';;
8046
lt_prog_compiler_wl='-Wl,';;
8051
lt_prog_compiler_wl='-Qoption ld '
8052
lt_prog_compiler_pic='-PIC'
8053
lt_prog_compiler_static='-Bstatic'
8056
sysv4 | sysv4.2uw2* | sysv4.3*)
8057
lt_prog_compiler_wl='-Wl,'
8058
lt_prog_compiler_pic='-KPIC'
8059
lt_prog_compiler_static='-Bstatic'
8063
if test -d /usr/nec ;then
8064
lt_prog_compiler_pic='-Kconform_pic'
8065
lt_prog_compiler_static='-Bstatic'
8069
sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8070
lt_prog_compiler_wl='-Wl,'
8071
lt_prog_compiler_pic='-KPIC'
8072
lt_prog_compiler_static='-Bstatic'
8076
lt_prog_compiler_wl='-Wl,'
8077
lt_prog_compiler_can_build_shared=no
8081
lt_prog_compiler_pic='-pic'
8082
lt_prog_compiler_static='-Bstatic'
8086
lt_prog_compiler_can_build_shared=no
8092
# For platforms which do not support PIC, -DPIC is meaningless:
8094
lt_prog_compiler_pic=
8097
lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8100
{ echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8101
echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
8109
# Check to make sure the PIC flag actually works.
8111
if test -n "$lt_prog_compiler_pic"; then
8112
{ echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8113
echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
8114
if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
8115
echo $ECHO_N "(cached) $ECHO_C" >&6
8117
lt_cv_prog_compiler_pic_works=no
8118
ac_outfile=conftest.$ac_objext
8119
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8120
lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8121
# Insert the option either (1) after the last *FLAGS variable, or
8122
# (2) before a word containing "conftest.", or (3) at the end.
8123
# Note that $ac_compile itself does not contain backslashes and begins
8124
# with a dollar sign (not a hyphen), so the echo should work correctly.
8125
# The option is referenced via a variable to avoid confusing sed.
8126
lt_compile=`echo "$ac_compile" | $SED \
8127
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8128
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8129
-e 's:$: $lt_compiler_flag:'`
8130
(eval echo "\"\$as_me:8130: $lt_compile\"" >&5)
8131
(eval "$lt_compile" 2>conftest.err)
8133
cat conftest.err >&5
8134
echo "$as_me:8134: \$? = $ac_status" >&5
8135
if (exit $ac_status) && test -s "$ac_outfile"; then
8136
# The compiler can only warn and ignore the option if not recognized
8137
# So say no if there are warnings other than the usual output.
8138
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8139
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8140
if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8141
lt_cv_prog_compiler_pic_works=yes
8147
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
8148
echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
8150
if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8151
case $lt_prog_compiler_pic in
8153
*) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8156
lt_prog_compiler_pic=
8157
lt_prog_compiler_can_build_shared=no
8168
# Check to make sure the static flag actually works.
8170
wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8171
{ echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8172
echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
8173
if test "${lt_cv_prog_compiler_static_works+set}" = set; then
8174
echo $ECHO_N "(cached) $ECHO_C" >&6
8176
lt_cv_prog_compiler_static_works=no
8177
save_LDFLAGS="$LDFLAGS"
8178
LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8179
echo "$lt_simple_link_test_code" > conftest.$ac_ext
8180
if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8181
# The linker can only warn and ignore the option if not recognized
8182
# So say no if there are warnings
8183
if test -s conftest.err; then
8184
# Append any errors to the config.log.
8185
cat conftest.err 1>&5
8186
$ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8187
$SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8188
if diff conftest.exp conftest.er2 >/dev/null; then
8189
lt_cv_prog_compiler_static_works=yes
8192
lt_cv_prog_compiler_static_works=yes
8196
LDFLAGS="$save_LDFLAGS"
8199
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
8200
echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
8202
if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8205
lt_prog_compiler_static=
8214
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8215
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8216
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8217
echo $ECHO_N "(cached) $ECHO_C" >&6
8219
lt_cv_prog_compiler_c_o=no
8220
$RM -r conftest 2>/dev/null
8224
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8226
lt_compiler_flag="-o out/conftest2.$ac_objext"
8227
# Insert the option either (1) after the last *FLAGS variable, or
8228
# (2) before a word containing "conftest.", or (3) at the end.
8229
# Note that $ac_compile itself does not contain backslashes and begins
8230
# with a dollar sign (not a hyphen), so the echo should work correctly.
8231
lt_compile=`echo "$ac_compile" | $SED \
8232
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8233
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8234
-e 's:$: $lt_compiler_flag:'`
8235
(eval echo "\"\$as_me:8235: $lt_compile\"" >&5)
8236
(eval "$lt_compile" 2>out/conftest.err)
8238
cat out/conftest.err >&5
8239
echo "$as_me:8239: \$? = $ac_status" >&5
8240
if (exit $ac_status) && test -s out/conftest2.$ac_objext
8242
# The compiler can only warn and ignore the option if not recognized
8243
# So say no if there are warnings
8244
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8245
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8246
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8247
lt_cv_prog_compiler_c_o=yes
8252
# SGI C++ compiler will create directory out/ii_files/ for
8253
# template instantiation
8254
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8255
$RM out/* && rmdir out
8261
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8262
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8269
{ echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8270
echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
8271
if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8272
echo $ECHO_N "(cached) $ECHO_C" >&6
8274
lt_cv_prog_compiler_c_o=no
8275
$RM -r conftest 2>/dev/null
8279
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8281
lt_compiler_flag="-o out/conftest2.$ac_objext"
8282
# Insert the option either (1) after the last *FLAGS variable, or
8283
# (2) before a word containing "conftest.", or (3) at the end.
8284
# Note that $ac_compile itself does not contain backslashes and begins
8285
# with a dollar sign (not a hyphen), so the echo should work correctly.
8286
lt_compile=`echo "$ac_compile" | $SED \
8287
-e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8288
-e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8289
-e 's:$: $lt_compiler_flag:'`
8290
(eval echo "\"\$as_me:8290: $lt_compile\"" >&5)
8291
(eval "$lt_compile" 2>out/conftest.err)
8293
cat out/conftest.err >&5
8294
echo "$as_me:8294: \$? = $ac_status" >&5
8295
if (exit $ac_status) && test -s out/conftest2.$ac_objext
8297
# The compiler can only warn and ignore the option if not recognized
8298
# So say no if there are warnings
8299
$ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8300
$SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8301
if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8302
lt_cv_prog_compiler_c_o=yes
8307
# SGI C++ compiler will create directory out/ii_files/ for
8308
# template instantiation
8309
test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8310
$RM out/* && rmdir out
8316
{ echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8317
echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
8322
hard_links="nottested"
8323
if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8324
# do not overwrite the value of need_locks provided by the user
8325
{ echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8326
echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
8329
ln conftest.a conftest.b 2>/dev/null && hard_links=no
8331
ln conftest.a conftest.b 2>&5 || hard_links=no
8332
ln conftest.a conftest.b 2>/dev/null && hard_links=no
8333
{ echo "$as_me:$LINENO: result: $hard_links" >&5
8334
echo "${ECHO_T}$hard_links" >&6; }
8335
if test "$hard_links" = no; then
8336
{ echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8337
echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8349
{ echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8350
echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
8353
allow_undefined_flag=
8354
always_export_symbols=no
8356
archive_expsym_cmds=
8357
compiler_needs_object=no
8358
enable_shared_with_static_runtimes=no
8359
export_dynamic_flag_spec=
8360
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8361
hardcode_automatic=no
8363
hardcode_direct_absolute=no
8364
hardcode_libdir_flag_spec=
8365
hardcode_libdir_flag_spec_ld=
8366
hardcode_libdir_separator=
8368
hardcode_shlibpath_var=unsupported
8370
link_all_deplibs=unknown
8373
old_archive_from_new_cmds=
8374
old_archive_from_expsyms_cmds=
8375
thread_safe_flag_spec=
8376
whole_archive_flag_spec=
8377
# include_expsyms should be a list of space-separated symbols to be *always*
8378
# included in the symbol list
8380
# exclude_expsyms can be an extended regexp of symbols to exclude
8381
# it will be wrapped by ` (' and `)$', so one must not match beginning or
8382
# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8383
# as well as any symbol that contains `d'.
8384
exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8385
# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8386
# platforms (ab)use it in PIC code, but their linkers get confused if
8387
# the symbol is explicitly referenced. Since portable code cannot
8388
# rely on this symbol name, it's probably fine to never include it in
8389
# preloaded symbol tables.
8390
# Exclude shared library initialization/finalization symbols.
8391
extract_expsyms_cmds=
8394
cygwin* | mingw* | pw32*)
8395
# FIXME: the MSVC++ port hasn't been tested in a loooong time
8396
# When not using gcc, we currently assume that we are using
8397
# Microsoft Visual C++.
8398
if test "$GCC" != yes; then
8403
# we just hope/assume this is gcc and not c89 (= MSVC++)
8412
if test "$with_gnu_ld" = yes; then
8413
# If archive_cmds runs LD, not CC, wlarc should be empty
8416
# Set some defaults for GNU ld with shared library support. These
8417
# are reset later if shared libraries are not supported. Putting them
8418
# here allows them to be overridden if necessary.
8419
runpath_var=LD_RUN_PATH
8420
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8421
export_dynamic_flag_spec='${wl}--export-dynamic'
8422
# ancient GNU ld didn't support --whole-archive et. al.
8423
if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
8424
whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8426
whole_archive_flag_spec=
8428
supports_anon_versioning=no
8429
case `$LD -v 2>&1` in
8430
*\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8431
*\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8432
*\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8433
*\ 2.11.*) ;; # other 2.11 versions
8434
*) supports_anon_versioning=yes ;;
8437
# See if GNU ld supports shared libraries.
8440
# On AIX/PPC, the GNU linker is very broken
8441
if test "$host_cpu" != ia64; then
8445
*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8446
*** to be unable to reliably create shared libraries on AIX.
8447
*** Therefore, libtool is disabling shared libraries support. If you
8448
*** really care for shared libraries, you may want to modify your PATH
8449
*** so that a non-GNU linker is found, and then restart.
8458
# see comment about AmigaOS4 .so support
8459
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8460
archive_expsym_cmds=''
8463
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)'
8464
hardcode_libdir_flag_spec='-L$libdir'
8465
hardcode_minus_L=yes
8471
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8472
allow_undefined_flag=unsupported
8473
# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8474
# support --undefined. This deserves some investigation. FIXME
8475
archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8481
cygwin* | mingw* | pw32*)
8482
# _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8483
# as there is no search path for DLLs.
8484
hardcode_libdir_flag_spec='-L$libdir'
8485
allow_undefined_flag=unsupported
8486
always_export_symbols=no
8487
enable_shared_with_static_runtimes=yes
8488
export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8490
if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
8491
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8492
# If the export-symbols file already is a .def file (1st line
8493
# is EXPORTS), use it as is; otherwise, prepend...
8494
archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8495
cp $export_symbols $output_objdir/$soname.def;
8497
echo EXPORTS > $output_objdir/$soname.def;
8498
cat $export_symbols >> $output_objdir/$soname.def;
8500
$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8508
hardcode_shlibpath_var=no
8509
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8510
export_dynamic_flag_spec='${wl}-E'
8511
# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8512
# Instead, shared libraries are loaded at an image base (0x10000000 by
8513
# default) and relocated if they conflict, which is a slow very memory
8514
# consuming and fragmenting process. To avoid this, we pick a random,
8515
# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8516
# time. Moving up from 0x10000000 also allows more sbrk(2) space.
8517
archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8518
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'
8521
gnu* | linux* | tpf* | k*bsd*-gnu)
8523
if test "$host_os" = linux-dietlibc; then
8524
case $cc_basename in
8525
diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
8528
if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
8529
&& test "$tmp_diet" = no
8532
tmp_sharedflag='-shared'
8533
case $cc_basename,$host_cpu in
8534
pgcc*) # Portland Group C compiler
8535
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'
8536
tmp_addflag=' $pic_flag'
8538
pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8539
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'
8540
tmp_addflag=' $pic_flag -Mnomain' ;;
8541
ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8542
tmp_addflag=' -i_dynamic' ;;
8543
efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8544
tmp_addflag=' -i_dynamic -nofor_main' ;;
8545
ifc* | ifort*) # Intel Fortran compiler
8546
tmp_addflag=' -nofor_main' ;;
8547
xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
8548
tmp_sharedflag='-qmkshrobj'
8551
case `$CC -V 2>&1 | sed 5q` in
8552
*Sun\ C*) # Sun C 5.9
8553
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'
8554
compiler_needs_object=yes
8555
tmp_sharedflag='-G' ;;
8556
*Sun\ F*) # Sun Fortran 8.3
8557
tmp_sharedflag='-G' ;;
8559
archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8561
if test "x$supports_anon_versioning" = xyes; then
8562
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8563
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8564
echo "local: *; };" >> $output_objdir/$libname.ver~
8565
$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8568
case $cc_basename in
8570
# IBM XL Fortran 10.1 on PPC cannot create shared libs itself
8571
whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
8572
hardcode_libdir_flag_spec=
8573
hardcode_libdir_flag_spec_ld='-rpath $libdir'
8574
archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
8575
if test "x$supports_anon_versioning" = xyes; then
8576
archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
8577
cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8578
echo "local: *; };" >> $output_objdir/$libname.ver~
8579
$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
8588
netbsd* | netbsdelf*-gnu)
8589
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
8590
archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8593
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8594
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8599
if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
8603
*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8604
*** create shared libraries on Solaris systems. Therefore, libtool
8605
*** is disabling shared libraries support. We urge you to upgrade GNU
8606
*** binutils to release 2.9.1 or newer. Another option is to modify
8607
*** your PATH or compiler configuration so that the native linker is
8608
*** used, and then restart.
8611
elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8612
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8613
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8619
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8620
case `$LD -v 2>&1` in
8621
*\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8625
*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8626
*** reliably create shared libraries on SCO systems. Therefore, libtool
8627
*** is disabling shared libraries support. We urge you to upgrade GNU
8628
*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8629
*** your PATH or compiler configuration so that the native linker is
8630
*** used, and then restart.
8635
# For security reasons, it is highly recommended that you always
8636
# use absolute paths for naming shared libraries, and exclude the
8637
# DT_RUNPATH tag from executables and libraries. But doing so
8638
# requires that you compile everything twice, which is a pain.
8639
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8640
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8641
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8642
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8651
archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8654
hardcode_shlibpath_var=no
8658
if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
8659
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8660
archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8667
if test "$ld_shlibs" = no; then
8669
hardcode_libdir_flag_spec=
8670
export_dynamic_flag_spec=
8671
whole_archive_flag_spec=
8674
# PORTME fill in a description of your system's linker (not GNU ld)
8677
allow_undefined_flag=unsupported
8678
always_export_symbols=yes
8679
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'
8680
# Note: this linker hardcodes the directories in LIBPATH if there
8681
# are no directories specified by -L.
8682
hardcode_minus_L=yes
8683
if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8684
# Neither direct hardcoding nor static linking is supported with a
8686
hardcode_direct=unsupported
8691
if test "$host_cpu" = ia64; then
8692
# On IA64, the linker does run time linking by default, so we don't
8693
# have to do anything special.
8694
aix_use_runtimelinking=no
8695
exp_sym_flag='-Bexport'
8698
# If we're using GNU nm, then we don't want the "-C" option.
8699
# -C means demangle to AIX nm, but means don't demangle with GNU nm
8700
if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
8701
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'
8703
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'
8705
aix_use_runtimelinking=no
8707
# Test if we are trying to use run time linking or normal
8708
# AIX style linking. If -brtl is somewhere in LDFLAGS, we
8709
# need to do runtime linking.
8710
case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8711
for ld_flag in $LDFLAGS; do
8712
if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8713
aix_use_runtimelinking=yes
8720
exp_sym_flag='-bexport'
8721
no_entry_flag='-bnoentry'
8724
# When large executables or shared objects are built, AIX ld can
8725
# have problems creating the table of contents. If linking a library
8726
# or program results in "error TOC overflow" add -mminimal-toc to
8727
# CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8728
# enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8732
hardcode_direct_absolute=yes
8733
hardcode_libdir_separator=':'
8734
link_all_deplibs=yes
8735
file_list_spec='${wl}-f,'
8737
if test "$GCC" = yes; then
8738
case $host_os in aix4.[012]|aix4.[012].*)
8739
# We only want to do this on AIX 4.2 and lower, the check
8740
# below for broken collect2 doesn't work under 4.3+
8741
collect2name=`${CC} -print-prog-name=collect2`
8742
if test -f "$collect2name" &&
8743
strings "$collect2name" | $GREP resolve_lib_name >/dev/null
8745
# We have reworked collect2
8748
# We have old collect2
8749
hardcode_direct=unsupported
8750
# It fails to find uninstalled libraries when the uninstalled
8751
# path is not listed in the libpath. Setting hardcode_minus_L
8752
# to unsupported forces relinking
8753
hardcode_minus_L=yes
8754
hardcode_libdir_flag_spec='-L$libdir'
8755
hardcode_libdir_separator=
8759
shared_flag='-shared'
8760
if test "$aix_use_runtimelinking" = yes; then
8761
shared_flag="$shared_flag "'${wl}-G'
8766
if test "$host_cpu" = ia64; then
8767
# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8768
# chokes on -Wl,-G. The following line is correct:
8771
if test "$aix_use_runtimelinking" = yes; then
8772
shared_flag='${wl}-G'
8774
shared_flag='${wl}-bM:SRE'
8779
# It seems that -bexpall does not export symbols beginning with
8780
# underscore (_), so it is better to generate a list of symbols to export.
8781
always_export_symbols=yes
8782
if test "$aix_use_runtimelinking" = yes; then
8783
# Warning - without using the other runtime loading flags (-brtl),
8784
# -berok will link without error, but may produce a broken library.
8785
allow_undefined_flag='-berok'
8786
# Determine the default libpath from the value encoded in an
8788
cat >conftest.$ac_ext <<_ACEOF
8791
cat confdefs.h >>conftest.$ac_ext
8792
cat >>conftest.$ac_ext <<_ACEOF
8793
/* end confdefs.h. */
8803
rm -f conftest.$ac_objext conftest$ac_exeext
8804
if { (ac_try="$ac_link"
8806
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8807
*) ac_try_echo=$ac_try;;
8809
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8810
(eval "$ac_link") 2>conftest.er1
8812
grep -v '^ *+' conftest.er1 >conftest.err
8814
cat conftest.err >&5
8815
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816
(exit $ac_status); } && {
8817
test -z "$ac_c_werror_flag" ||
8818
test ! -s conftest.err
8819
} && test -s conftest$ac_exeext &&
8820
$as_test_x conftest$ac_exeext; then
8822
lt_aix_libpath_sed='
8823
/Import File Strings/,/^$/ {
8829
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8830
# Check for a 64-bit object if we didn't find anything.
8831
if test -z "$aix_libpath"; then
8832
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8835
echo "$as_me: failed program was:" >&5
8836
sed 's/^/| /' conftest.$ac_ext >&5
8841
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8842
conftest$ac_exeext conftest.$ac_ext
8843
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8845
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8846
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"
8848
if test "$host_cpu" = ia64; then
8849
hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8850
allow_undefined_flag="-z nodefs"
8851
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"
8853
# Determine the default libpath from the value encoded in an
8855
cat >conftest.$ac_ext <<_ACEOF
8858
cat confdefs.h >>conftest.$ac_ext
8859
cat >>conftest.$ac_ext <<_ACEOF
8860
/* end confdefs.h. */
8870
rm -f conftest.$ac_objext conftest$ac_exeext
8871
if { (ac_try="$ac_link"
8873
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8874
*) ac_try_echo=$ac_try;;
8876
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8877
(eval "$ac_link") 2>conftest.er1
8879
grep -v '^ *+' conftest.er1 >conftest.err
8881
cat conftest.err >&5
8882
echo "$as_me:$LINENO: \$? = $ac_status" >&5
8883
(exit $ac_status); } && {
8884
test -z "$ac_c_werror_flag" ||
8885
test ! -s conftest.err
8886
} && test -s conftest$ac_exeext &&
8887
$as_test_x conftest$ac_exeext; then
8889
lt_aix_libpath_sed='
8890
/Import File Strings/,/^$/ {
8896
aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8897
# Check for a 64-bit object if we didn't find anything.
8898
if test -z "$aix_libpath"; then
8899
aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8902
echo "$as_me: failed program was:" >&5
8903
sed 's/^/| /' conftest.$ac_ext >&5
8908
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8909
conftest$ac_exeext conftest.$ac_ext
8910
if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8912
hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8913
# Warning - without using the other run time loading flags,
8914
# -berok will link without error, but may produce a broken library.
8915
no_undefined_flag=' ${wl}-bernotok'
8916
allow_undefined_flag=' ${wl}-berok'
8917
# Exported symbols can be pulled into shared objects from archives
8918
whole_archive_flag_spec='$convenience'
8919
archive_cmds_need_lc=yes
8920
# This is similar to how AIX traditionally builds its shared libraries.
8921
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'
8929
# see comment about AmigaOS4 .so support
8930
archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8931
archive_expsym_cmds=''
8934
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)'
8935
hardcode_libdir_flag_spec='-L$libdir'
8936
hardcode_minus_L=yes
8942
export_dynamic_flag_spec=-rdynamic
8945
cygwin* | mingw* | pw32*)
8946
# When not using gcc, we currently assume that we are using
8947
# Microsoft Visual C++.
8948
# hardcode_libdir_flag_spec is actually meaningless, as there is
8949
# no search path for DLLs.
8950
hardcode_libdir_flag_spec=' '
8951
allow_undefined_flag=unsupported
8952
# Tell ltmain to make .lib files, not .a files.
8954
# Tell ltmain to make .dll files, not .so files.
8956
# FIXME: Setting linknames here is a bad hack.
8957
archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
8958
# The linker will automatically build a .lib file if we build a DLL.
8959
old_archive_from_new_cmds='true'
8960
# FIXME: Should let the user specify the lib program.
8961
old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8962
fix_srcfile_path='`cygpath -w "$srcfile"`'
8963
enable_shared_with_static_runtimes=yes
8966
darwin* | rhapsody*)
8969
archive_cmds_need_lc=no
8971
hardcode_automatic=yes
8972
hardcode_shlibpath_var=unsupported
8973
whole_archive_flag_spec=''
8974
link_all_deplibs=yes
8975
allow_undefined_flag="$_lt_dar_allow_undefined"
8976
if test "$GCC" = "yes"; then
8977
output_verbose_link_cmd=echo
8978
archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8979
module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8980
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}"
8981
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}"
8990
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8991
hardcode_libdir_flag_spec='-L$libdir'
8992
hardcode_shlibpath_var=no
8999
# FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9000
# support. Future versions do this automatically, but an explicit c++rt0.o
9001
# does not break anything, and helps significantly (at the cost of a little
9004
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9005
hardcode_libdir_flag_spec='-R$libdir'
9007
hardcode_shlibpath_var=no
9010
# Unfortunately, older versions of FreeBSD 2 do not have this feature.
9012
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9014
hardcode_minus_L=yes
9015
hardcode_shlibpath_var=no
9018
# FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9019
freebsd* | dragonfly*)
9020
archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9021
hardcode_libdir_flag_spec='-R$libdir'
9023
hardcode_shlibpath_var=no
9027
if test "$GCC" = yes; then
9028
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'
9030
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'
9032
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9033
hardcode_libdir_separator=:
9036
# hardcode_minus_L: Not really in the search PATH,
9037
# but as the default location of the library.
9038
hardcode_minus_L=yes
9039
export_dynamic_flag_spec='${wl}-E'
9043
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9044
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9046
archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9048
if test "$with_gnu_ld" = no; then
9049
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9050
hardcode_libdir_flag_spec_ld='+b $libdir'
9051
hardcode_libdir_separator=:
9053
hardcode_direct_absolute=yes
9054
export_dynamic_flag_spec='${wl}-E'
9055
# hardcode_minus_L: Not really in the search PATH,
9056
# but as the default location of the library.
9057
hardcode_minus_L=yes
9062
if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9065
archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9068
archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9071
archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9077
archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9080
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9083
archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9087
if test "$with_gnu_ld" = no; then
9088
hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9089
hardcode_libdir_separator=:
9094
hardcode_shlibpath_var=no
9098
hardcode_direct_absolute=yes
9099
export_dynamic_flag_spec='${wl}-E'
9101
# hardcode_minus_L: Not really in the search PATH,
9102
# but as the default location of the library.
9103
hardcode_minus_L=yes
9109
irix5* | irix6* | nonstopux*)
9110
if test "$GCC" = yes; then
9111
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'
9112
# Try to use the -exported_symbol ld option, if it does not
9113
# work, assume that -exports_file does not work either and
9114
# implicitly export all symbols.
9115
save_LDFLAGS="$LDFLAGS"
9116
LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9117
cat >conftest.$ac_ext <<_ACEOF
9120
rm -f conftest.$ac_objext conftest$ac_exeext
9121
if { (ac_try="$ac_link"
9123
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9124
*) ac_try_echo=$ac_try;;
9126
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9127
(eval "$ac_link") 2>conftest.er1
9129
grep -v '^ *+' conftest.er1 >conftest.err
9131
cat conftest.err >&5
9132
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133
(exit $ac_status); } && {
9134
test -z "$ac_c_werror_flag" ||
9135
test ! -s conftest.err
9136
} && test -s conftest$ac_exeext &&
9137
$as_test_x conftest$ac_exeext; then
9138
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'
9141
echo "$as_me: failed program was:" >&5
9142
sed 's/^/| /' conftest.$ac_ext >&5
9147
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9148
conftest$ac_exeext conftest.$ac_ext
9149
LDFLAGS="$save_LDFLAGS"
9151
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'
9152
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'
9154
archive_cmds_need_lc='no'
9155
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9156
hardcode_libdir_separator=:
9158
link_all_deplibs=yes
9161
netbsd* | netbsdelf*-gnu)
9162
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9163
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9165
archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9167
hardcode_libdir_flag_spec='-R$libdir'
9169
hardcode_shlibpath_var=no
9173
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9175
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9176
hardcode_libdir_separator=:
9177
hardcode_shlibpath_var=no
9184
if test -f /usr/libexec/ld.so; then
9186
hardcode_shlibpath_var=no
9187
hardcode_direct_absolute=yes
9188
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9189
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9190
archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9191
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9192
export_dynamic_flag_spec='${wl}-E'
9195
openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9196
archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9197
hardcode_libdir_flag_spec='-R$libdir'
9200
archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9201
hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9211
hardcode_libdir_flag_spec='-L$libdir'
9212
hardcode_minus_L=yes
9213
allow_undefined_flag=unsupported
9214
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'
9215
old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9219
if test "$GCC" = yes; then
9220
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9221
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'
9223
allow_undefined_flag=' -expect_unresolved \*'
9224
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'
9226
archive_cmds_need_lc='no'
9227
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9228
hardcode_libdir_separator=:
9231
osf4* | osf5*) # as osf3* with the addition of -msym flag
9232
if test "$GCC" = yes; then
9233
allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9234
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'
9235
hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9237
allow_undefined_flag=' -expect_unresolved \*'
9238
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'
9239
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~
9240
$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'
9242
# Both c and cxx compiler support -rpath directly
9243
hardcode_libdir_flag_spec='-rpath $libdir'
9245
archive_cmds_need_lc='no'
9246
hardcode_libdir_separator=:
9250
no_undefined_flag=' -z defs'
9251
if test "$GCC" = yes; then
9253
archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9254
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9255
$CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9257
case `$CC -V 2>&1` in
9260
archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9261
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9262
$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9266
archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9267
archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9268
$CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9272
hardcode_libdir_flag_spec='-R$libdir'
9273
hardcode_shlibpath_var=no
9275
solaris2.[0-5] | solaris2.[0-5].*) ;;
9277
# The compiler driver will combine and reorder linker options,
9278
# but understands `-z linker_flag'. GCC discards it without `$wl',
9279
# but is careful enough not to reorder.
9280
# Supported since Solaris 2.6 (maybe 2.5.1?)
9281
if test "$GCC" = yes; then
9282
whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9284
whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9288
link_all_deplibs=yes
9292
if test "x$host_vendor" = xsequent; then
9293
# Use $CC to link under sequent, because it throws in some extra .o
9294
# files that make .init and .fini sections work.
9295
archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9297
archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9299
hardcode_libdir_flag_spec='-L$libdir'
9301
hardcode_minus_L=yes
9302
hardcode_shlibpath_var=no
9306
case $host_vendor in
9308
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9309
hardcode_direct=yes # is this really true???
9312
## LD is ld it makes a PLAMLIB
9313
## CC just makes a GrossModule.
9314
archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9315
reload_cmds='$CC -r -o $output$reload_objs'
9319
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9320
hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9323
runpath_var='LD_RUN_PATH'
9324
hardcode_shlibpath_var=no
9328
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9329
hardcode_shlibpath_var=no
9330
export_dynamic_flag_spec='-Bexport'
9334
if test -d /usr/nec; then
9335
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9336
hardcode_shlibpath_var=no
9337
runpath_var=LD_RUN_PATH
9338
hardcode_runpath_var=yes
9343
sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9344
no_undefined_flag='${wl}-z,text'
9345
archive_cmds_need_lc=no
9346
hardcode_shlibpath_var=no
9347
runpath_var='LD_RUN_PATH'
9349
if test "$GCC" = yes; then
9350
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9351
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9353
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9354
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9358
sysv5* | sco3.2v5* | sco5v6*)
9359
# Note: We can NOT use -z defs as we might desire, because we do not
9360
# link with -lc, and that would cause any symbols used from libc to
9361
# always be unresolved, which means just about no library would
9362
# ever link correctly. If we're not using GNU ld we use -z text
9363
# though, which does catch some bad symbols but isn't as heavy-handed
9365
no_undefined_flag='${wl}-z,text'
9366
allow_undefined_flag='${wl}-z,nodefs'
9367
archive_cmds_need_lc=no
9368
hardcode_shlibpath_var=no
9369
hardcode_libdir_flag_spec='${wl}-R,$libdir'
9370
hardcode_libdir_separator=':'
9371
link_all_deplibs=yes
9372
export_dynamic_flag_spec='${wl}-Bexport'
9373
runpath_var='LD_RUN_PATH'
9375
if test "$GCC" = yes; then
9376
archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9377
archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9379
archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9380
archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9385
archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9386
hardcode_libdir_flag_spec='-L$libdir'
9387
hardcode_shlibpath_var=no
9395
if test x$host_vendor = xsni; then
9397
sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
9398
export_dynamic_flag_spec='${wl}-Blargedynsym'
9404
{ echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9405
echo "${ECHO_T}$ld_shlibs" >&6; }
9406
test "$ld_shlibs" = no && can_build_shared=no
9408
with_gnu_ld=$with_gnu_ld
9425
# Do we need to explicitly link libc?
9427
case "x$archive_cmds_need_lc" in
9429
# Assume -lc should be added
9430
archive_cmds_need_lc=yes
9432
if test "$enable_shared" = yes && test "$GCC" = yes; then
9433
case $archive_cmds in
9435
# FIXME: we may have to deal with multi-command sequences.
9438
# Test whether the compiler implicitly links with -lc since on some
9439
# systems, -lgcc has to come before -lc. If gcc already passes -lc
9440
# to ld, don't add -lc before -lgcc.
9441
{ echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9442
echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
9444
echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9446
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9447
(eval $ac_compile) 2>&5
9449
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9450
(exit $ac_status); } 2>conftest.err; then
9453
libobjs=conftest.$ac_objext
9455
wl=$lt_prog_compiler_wl
9456
pic_flag=$lt_prog_compiler_pic
9462
lt_save_allow_undefined_flag=$allow_undefined_flag
9463
allow_undefined_flag=
9464
if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5
9465
(eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
9467
echo "$as_me:$LINENO: \$? = $ac_status" >&5
9468
(exit $ac_status); }
9470
archive_cmds_need_lc=no
9472
archive_cmds_need_lc=yes
9474
allow_undefined_flag=$lt_save_allow_undefined_flag
9476
cat conftest.err 1>&5
9479
{ echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9480
echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9643
{ echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9644
echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9646
if test "$GCC" = yes; then
9648
darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9649
*) lt_awk_arg="/^libraries:/" ;;
9651
lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9652
if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
9653
# if the path contains ";" then we assume it to be the separator
9654
# otherwise default to the standard path separator (i.e. ":") - it is
9655
# assumed that no part of a normal pathname contains ";" but that should
9656
# okay in the real world where ";" in dirpaths is itself problematic.
9657
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9659
lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9661
# Ok, now we have the path, separated by spaces, we can step through it
9662
# and add multilib dir if necessary.
9663
lt_tmp_lt_search_path_spec=
9664
lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9665
for lt_sys_path in $lt_search_path_spec; do
9666
if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9667
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9669
test -d "$lt_sys_path" && \
9670
lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9673
lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
9674
BEGIN {RS=" "; FS="/|\n";} {
9677
for (lt_i = NF; lt_i > 0; lt_i--) {
9678
if ($lt_i != "" && $lt_i != ".") {
9679
if ($lt_i == "..") {
9682
if (lt_count == 0) {
9683
lt_foo="/" $lt_i lt_foo;
9690
if (lt_foo != "") { lt_freq[lt_foo]++; }
9691
if (lt_freq[lt_foo] == 1) { print lt_foo; }
9693
sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
9695
sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9698
libname_spec='lib$name'
9706
shlibpath_overrides_runpath=unknown
9708
dynamic_linker="$host_os ld.so"
9709
sys_lib_dlsearch_path_spec="/lib /usr/lib"
9710
need_lib_prefix=unknown
9711
hardcode_into_libs=no
9713
# when you set need_version to no, make sure it does not cause -set_version
9714
# flags to be left without arguments
9715
need_version=unknown
9720
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9721
shlibpath_var=LIBPATH
9723
# AIX 3 has no versioning support, so we append a major version to the name.
9724
soname_spec='${libname}${release}${shared_ext}$major'
9731
hardcode_into_libs=yes
9732
if test "$host_cpu" = ia64; then
9733
# AIX 5 supports IA64
9734
library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9735
shlibpath_var=LD_LIBRARY_PATH
9737
# With GCC up to 2.95.x, collect2 would create an import file
9738
# for dependence libraries. The import file would start with
9739
# the line `#! .'. This would cause the generated library to
9740
# depend on `.', always an invalid library. This was fixed in
9741
# development snapshots of GCC prior to 3.0.
9743
aix4 | aix4.[01] | aix4.[01].*)
9744
if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9746
echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
9753
# AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9754
# soname into executable. Probably we can add versioning support to
9755
# collect2, so additional links can be useful in future.
9756
if test "$aix_use_runtimelinking" = yes; then
9757
# If using run time linking (on AIX 4.2 or later) use lib<name>.so
9758
# instead of lib<name>.a to let people know that these are not
9759
# typical AIX shared libraries.
9760
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9762
# We preserve .a as extension for shared libraries through AIX4.2
9763
# and later when we are not doing run time linking.
9764
library_names_spec='${libname}${release}.a $libname.a'
9765
soname_spec='${libname}${release}${shared_ext}$major'
9767
shlibpath_var=LIBPATH
9774
# Since July 2007 AmigaOS4 officially supports .so libraries.
9775
# When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
9776
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9779
library_names_spec='$libname.ixlibrary $libname.a'
9780
# Create ${libname}_ixlibrary.a entries in /sys/libs.
9781
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'
9787
library_names_spec='${libname}${shared_ext}'
9788
dynamic_linker="$host_os ld.so"
9789
shlibpath_var=LIBRARY_PATH
9795
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9796
soname_spec='${libname}${release}${shared_ext}$major'
9797
finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9798
shlibpath_var=LD_LIBRARY_PATH
9799
sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9800
sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9801
# the default ld.so.conf also contains /usr/contrib/lib and
9802
# /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9803
# libtool to hard-code these into programs
9806
cygwin* | mingw* | pw32*)
9807
version_type=windows
9812
case $GCC,$host_os in
9813
yes,cygwin* | yes,mingw* | yes,pw32*)
9814
library_names_spec='$libname.dll.a'
9815
# DLL is installed to $(libdir)/../bin by postinstall_cmds
9816
postinstall_cmds='base_file=`basename \${file}`~
9817
dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
9818
dldir=$destdir/`dirname \$dlpath`~
9819
test -d \$dldir || mkdir -p \$dldir~
9820
$install_prog $dir/$dlname \$dldir/$dlname~
9821
chmod a+x \$dldir/$dlname~
9822
if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
9823
eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
9825
postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9826
dlpath=$dir/\$dldll~
9828
shlibpath_overrides_runpath=yes
9832
# Cygwin DLLs use 'cyg' prefix rather than 'lib'
9833
soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9834
sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9837
# MinGW DLLs use traditional 'lib' prefix
9838
soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9839
sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9840
if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
9841
# It is most probably a Windows format PATH printed by
9842
# mingw gcc, but we are running on Cygwin. Gcc prints its search
9843
# path with ; separators, and with drive letters. We can handle the
9844
# drive letters (cygwin fileutils understands them), so leave them,
9845
# especially as we might pass files found there to a mingw objdump,
9846
# which wouldn't understand a cygwinified path. Ahh.
9847
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9849
sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9853
# pw32 DLLs use 'pw' prefix rather than 'lib'
9854
library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9860
library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9863
dynamic_linker='Win32 ld.exe'
9864
# FIXME: first we should search . and the directory the executable is in
9868
darwin* | rhapsody*)
9869
dynamic_linker="$host_os dyld"
9873
library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9874
soname_spec='${libname}${release}${major}$shared_ext'
9875
shlibpath_overrides_runpath=yes
9876
shlibpath_var=DYLD_LIBRARY_PATH
9877
shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9879
sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9880
sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9887
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9888
soname_spec='${libname}${release}${shared_ext}$major'
9889
shlibpath_var=LD_LIBRARY_PATH
9896
freebsd* | dragonfly*)
9897
# DragonFly does not have aout. When/if they implement a new
9898
# versioning mechanism, adjust this.
9899
if test -x /usr/bin/objformat; then
9900
objformat=`/usr/bin/objformat`
9903
freebsd[123]*) objformat=aout ;;
9907
version_type=freebsd-$objformat
9908
case $version_type in
9910
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9915
library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9919
shlibpath_var=LD_LIBRARY_PATH
9922
shlibpath_overrides_runpath=yes
9924
freebsd3.[01]* | freebsdelf3.[01]*)
9925
shlibpath_overrides_runpath=yes
9926
hardcode_into_libs=yes
9928
freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9929
freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9930
shlibpath_overrides_runpath=no
9931
hardcode_into_libs=yes
9933
*) # from 4.6 on, and DragonFly
9934
shlibpath_overrides_runpath=yes
9935
hardcode_into_libs=yes
9944
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9945
soname_spec='${libname}${release}${shared_ext}$major'
9946
shlibpath_var=LD_LIBRARY_PATH
9947
hardcode_into_libs=yes
9950
hpux9* | hpux10* | hpux11*)
9951
# Give a soname corresponding to the major version so that dld.sl refuses to
9952
# link against other versions.
9959
hardcode_into_libs=yes
9960
dynamic_linker="$host_os dld.so"
9961
shlibpath_var=LD_LIBRARY_PATH
9962
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9963
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9964
soname_spec='${libname}${release}${shared_ext}$major'
9965
if test "X$HPUX_IA64_MODE" = X32; then
9966
sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9968
sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9970
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9974
hardcode_into_libs=yes
9975
dynamic_linker="$host_os dld.sl"
9976
shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9977
shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9978
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9979
soname_spec='${libname}${release}${shared_ext}$major'
9980
sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9981
sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9985
dynamic_linker="$host_os dld.sl"
9986
shlibpath_var=SHLIB_PATH
9987
shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9988
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9989
soname_spec='${libname}${release}${shared_ext}$major'
9992
# HP-UX runs *really* slowly unless shared libraries are mode 555.
9993
postinstall_cmds='chmod 555 $lib'
10000
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10001
soname_spec='${libname}${release}${shared_ext}$major'
10002
dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10003
shlibpath_var=LD_LIBRARY_PATH
10004
shlibpath_overrides_runpath=no
10005
hardcode_into_libs=yes
10008
irix5* | irix6* | nonstopux*)
10010
nonstopux*) version_type=nonstopux ;;
10012
if test "$lt_cv_prog_gnu_ld" = yes; then
10020
soname_spec='${libname}${release}${shared_ext}$major'
10021
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10023
irix5* | nonstopux*)
10024
libsuff= shlibsuff=
10027
case $LD in # libtool.m4 will add one of these switches to LD
10028
*-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10029
libsuff= shlibsuff= libmagic=32-bit;;
10030
*-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10031
libsuff=32 shlibsuff=N32 libmagic=N32;;
10032
*-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10033
libsuff=64 shlibsuff=64 libmagic=64-bit;;
10034
*) libsuff= shlibsuff= libmagic=never-match;;
10038
shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10039
shlibpath_overrides_runpath=no
10040
sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10041
sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10042
hardcode_into_libs=yes
10045
# No shared lib support for Linux oldld, aout, or coff.
10046
linux*oldld* | linux*aout* | linux*coff*)
10050
# This must be Linux ELF.
10051
linux* | k*bsd*-gnu)
10055
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10056
soname_spec='${libname}${release}${shared_ext}$major'
10057
finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10058
shlibpath_var=LD_LIBRARY_PATH
10059
shlibpath_overrides_runpath=no
10060
# Some binutils ld are patched to set DT_RUNPATH
10061
save_LDFLAGS=$LDFLAGS
10062
save_libdir=$libdir
10063
eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10064
LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10065
cat >conftest.$ac_ext <<_ACEOF
10068
cat confdefs.h >>conftest.$ac_ext
10069
cat >>conftest.$ac_ext <<_ACEOF
10070
/* end confdefs.h. */
10080
rm -f conftest.$ac_objext conftest$ac_exeext
10081
if { (ac_try="$ac_link"
10082
case "(($ac_try" in
10083
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10084
*) ac_try_echo=$ac_try;;
10086
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10087
(eval "$ac_link") 2>conftest.er1
10089
grep -v '^ *+' conftest.er1 >conftest.err
10091
cat conftest.err >&5
10092
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10093
(exit $ac_status); } && {
10094
test -z "$ac_c_werror_flag" ||
10095
test ! -s conftest.err
10096
} && test -s conftest$ac_exeext &&
10097
$as_test_x conftest$ac_exeext; then
10098
if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then
10099
shlibpath_overrides_runpath=yes
10103
echo "$as_me: failed program was:" >&5
10104
sed 's/^/| /' conftest.$ac_ext >&5
10109
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10110
conftest$ac_exeext conftest.$ac_ext
10111
LDFLAGS=$save_LDFLAGS
10112
libdir=$save_libdir
10114
# This implies no fast_install, which is unacceptable.
10115
# Some rework will be needed to allow for fast_install
10116
# before this can be enabled.
10117
hardcode_into_libs=yes
10119
# Append ld.so.conf contents to the search path
10120
if test -f /etc/ld.so.conf; then
10121
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' ' '`
10122
sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10125
# We used to test for /lib/ld.so.1 and disable shared libraries on
10126
# powerpc, because MkLinux only supported shared libraries with the
10127
# GNU dynamic linker. Since this was broken with cross compilers,
10128
# most powerpc-linux boxes support dynamic linking these days and
10129
# people can always --disable-shared, the test was removed, and we
10130
# assume the GNU/Linux dynamic linker is in use.
10131
dynamic_linker='GNU/Linux ld.so'
10138
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10139
soname_spec='${libname}${release}${shared_ext}$major'
10140
shlibpath_var=LD_LIBRARY_PATH
10141
shlibpath_overrides_runpath=no
10142
hardcode_into_libs=yes
10143
dynamic_linker='NetBSD ld.elf_so'
10150
if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10151
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10152
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10153
dynamic_linker='NetBSD (a.out) ld.so'
10155
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10156
soname_spec='${libname}${release}${shared_ext}$major'
10157
dynamic_linker='NetBSD ld.elf_so'
10159
shlibpath_var=LD_LIBRARY_PATH
10160
shlibpath_overrides_runpath=yes
10161
hardcode_into_libs=yes
10166
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10167
shlibpath_var=LD_LIBRARY_PATH
10168
shlibpath_overrides_runpath=yes
10175
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10176
soname_spec='${libname}${release}${shared_ext}$major'
10177
shlibpath_var=LD_LIBRARY_PATH
10178
shlibpath_overrides_runpath=no
10179
hardcode_into_libs=yes
10180
dynamic_linker='ldqnx.so'
10185
sys_lib_dlsearch_path_spec="/usr/lib"
10187
# Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10189
openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10190
*) need_version=no ;;
10192
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10193
finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10194
shlibpath_var=LD_LIBRARY_PATH
10195
if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10197
openbsd2.[89] | openbsd2.[89].*)
10198
shlibpath_overrides_runpath=no
10201
shlibpath_overrides_runpath=yes
10205
shlibpath_overrides_runpath=yes
10210
libname_spec='$name'
10213
library_names_spec='$libname${shared_ext} $libname.a'
10214
dynamic_linker='OS/2 ld.exe'
10215
shlibpath_var=LIBPATH
10218
osf3* | osf4* | osf5*)
10222
soname_spec='${libname}${release}${shared_ext}$major'
10223
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10224
shlibpath_var=LD_LIBRARY_PATH
10225
sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10226
sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10237
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10238
soname_spec='${libname}${release}${shared_ext}$major'
10239
shlibpath_var=LD_LIBRARY_PATH
10240
shlibpath_overrides_runpath=yes
10241
hardcode_into_libs=yes
10242
# ldd complains unless libraries are executable
10243
postinstall_cmds='chmod +x $lib'
10248
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10249
finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10250
shlibpath_var=LD_LIBRARY_PATH
10251
shlibpath_overrides_runpath=yes
10252
if test "$with_gnu_ld" = yes; then
10260
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10261
soname_spec='${libname}${release}${shared_ext}$major'
10262
shlibpath_var=LD_LIBRARY_PATH
10263
case $host_vendor in
10265
shlibpath_overrides_runpath=no
10267
runpath_var=LD_RUN_PATH
10275
shlibpath_overrides_runpath=no
10276
sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10282
if test -d /usr/nec ;then
10284
library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10285
soname_spec='$libname${shared_ext}.$major'
10286
shlibpath_var=LD_LIBRARY_PATH
10290
sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10291
version_type=freebsd-elf
10294
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10295
soname_spec='${libname}${release}${shared_ext}$major'
10296
shlibpath_var=LD_LIBRARY_PATH
10297
shlibpath_overrides_runpath=yes
10298
hardcode_into_libs=yes
10299
if test "$with_gnu_ld" = yes; then
10300
sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10302
sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10305
sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10309
sys_lib_dlsearch_path_spec='/usr/lib'
10313
# TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10317
library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10318
shlibpath_var=LD_LIBRARY_PATH
10319
shlibpath_overrides_runpath=no
10320
hardcode_into_libs=yes
10325
library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10326
soname_spec='${libname}${release}${shared_ext}$major'
10327
shlibpath_var=LD_LIBRARY_PATH
10334
{ echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10335
echo "${ECHO_T}$dynamic_linker" >&6; }
10336
test "$dynamic_linker" = no && can_build_shared=no
10338
variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10339
if test "$GCC" = yes; then
10340
variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10343
if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10344
sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10346
if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10347
sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10436
{ echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10437
echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
10439
if test -n "$hardcode_libdir_flag_spec" ||
10440
test -n "$runpath_var" ||
10441
test "X$hardcode_automatic" = "Xyes" ; then
10443
# We can hardcode non-existent directories.
10444
if test "$hardcode_direct" != no &&
10445
# If the only mechanism to avoid hardcoding is shlibpath_var, we
10446
# have to relink, otherwise we might link with an installed library
10447
# when we should be linking with a yet-to-be-installed one
10448
## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
10449
test "$hardcode_minus_L" != no; then
10450
# Linking always hardcodes the temporary library directory.
10451
hardcode_action=relink
10453
# We can link without hardcoding, and we can hardcode nonexisting dirs.
10454
hardcode_action=immediate
10457
# We cannot hardcode anything, or else we can only hardcode existing
10459
hardcode_action=unsupported
10461
{ echo "$as_me:$LINENO: result: $hardcode_action" >&5
10462
echo "${ECHO_T}$hardcode_action" >&6; }
10464
if test "$hardcode_action" = relink ||
10465
test "$inherit_rpath" = yes; then
10466
# Fast installation is not supported
10467
enable_fast_install=no
10468
elif test "$shlibpath_overrides_runpath" = yes ||
10469
test "$enable_shared" = no; then
10470
# Fast installation is not necessary
10471
enable_fast_install=needless
10479
if test "x$enable_dlopen" != xyes; then
10480
enable_dlopen=unknown
10481
enable_dlopen_self=unknown
10482
enable_dlopen_self_static=unknown
10489
lt_cv_dlopen="load_add_on"
10491
lt_cv_dlopen_self=yes
10495
lt_cv_dlopen="LoadLibrary"
10500
lt_cv_dlopen="dlopen"
10505
# if libdl is installed we need to link against it
10506
{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10507
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10508
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10509
echo $ECHO_N "(cached) $ECHO_C" >&6
10511
ac_check_lib_save_LIBS=$LIBS
10513
cat >conftest.$ac_ext <<_ACEOF
10516
cat confdefs.h >>conftest.$ac_ext
10517
cat >>conftest.$ac_ext <<_ACEOF
10518
/* end confdefs.h. */
10520
/* Override any GCC internal prototype to avoid an error.
10521
Use char because int might match the return type of a GCC
10522
builtin and then its argument prototype would still apply. */
10535
rm -f conftest.$ac_objext conftest$ac_exeext
10536
if { (ac_try="$ac_link"
10537
case "(($ac_try" in
10538
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10539
*) ac_try_echo=$ac_try;;
10541
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10542
(eval "$ac_link") 2>conftest.er1
10544
grep -v '^ *+' conftest.er1 >conftest.err
10546
cat conftest.err >&5
10547
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10548
(exit $ac_status); } && {
10549
test -z "$ac_c_werror_flag" ||
10550
test ! -s conftest.err
10551
} && test -s conftest$ac_exeext &&
10552
$as_test_x conftest$ac_exeext; then
10553
ac_cv_lib_dl_dlopen=yes
10555
echo "$as_me: failed program was:" >&5
10556
sed 's/^/| /' conftest.$ac_ext >&5
10558
ac_cv_lib_dl_dlopen=no
10561
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10562
conftest$ac_exeext conftest.$ac_ext
10563
LIBS=$ac_check_lib_save_LIBS
10565
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10566
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10567
if test $ac_cv_lib_dl_dlopen = yes; then
10568
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10571
lt_cv_dlopen="dyld"
10573
lt_cv_dlopen_self=yes
10580
{ echo "$as_me:$LINENO: checking for shl_load" >&5
10581
echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10582
if test "${ac_cv_func_shl_load+set}" = set; then
10583
echo $ECHO_N "(cached) $ECHO_C" >&6
10585
cat >conftest.$ac_ext <<_ACEOF
10588
cat confdefs.h >>conftest.$ac_ext
10589
cat >>conftest.$ac_ext <<_ACEOF
10590
/* end confdefs.h. */
10591
/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10592
For example, HP-UX 11i <limits.h> declares gettimeofday. */
10593
#define shl_load innocuous_shl_load
10595
/* System header to define __stub macros and hopefully few prototypes,
10596
which can conflict with char shl_load (); below.
10597
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10598
<limits.h> exists even on freestanding compilers. */
10601
# include <limits.h>
10603
# include <assert.h>
10608
/* Override any GCC internal prototype to avoid an error.
10609
Use char because int might match the return type of a GCC
10610
builtin and then its argument prototype would still apply. */
10615
/* The GNU C library defines this for functions which it implements
10616
to always fail with ENOSYS. Some functions are actually named
10617
something starting with __ and the normal name is an alias. */
10618
#if defined __stub_shl_load || defined __stub___shl_load
10625
return shl_load ();
10630
rm -f conftest.$ac_objext conftest$ac_exeext
10631
if { (ac_try="$ac_link"
10632
case "(($ac_try" in
10633
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10634
*) ac_try_echo=$ac_try;;
10636
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10637
(eval "$ac_link") 2>conftest.er1
10639
grep -v '^ *+' conftest.er1 >conftest.err
10641
cat conftest.err >&5
10642
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10643
(exit $ac_status); } && {
10644
test -z "$ac_c_werror_flag" ||
10645
test ! -s conftest.err
10646
} && test -s conftest$ac_exeext &&
10647
$as_test_x conftest$ac_exeext; then
10648
ac_cv_func_shl_load=yes
10650
echo "$as_me: failed program was:" >&5
10651
sed 's/^/| /' conftest.$ac_ext >&5
10653
ac_cv_func_shl_load=no
10656
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10657
conftest$ac_exeext conftest.$ac_ext
10659
{ echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10660
echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10661
if test $ac_cv_func_shl_load = yes; then
10662
lt_cv_dlopen="shl_load"
10664
{ echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10665
echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10666
if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10667
echo $ECHO_N "(cached) $ECHO_C" >&6
10669
ac_check_lib_save_LIBS=$LIBS
10671
cat >conftest.$ac_ext <<_ACEOF
10674
cat confdefs.h >>conftest.$ac_ext
10675
cat >>conftest.$ac_ext <<_ACEOF
10676
/* end confdefs.h. */
10678
/* Override any GCC internal prototype to avoid an error.
10679
Use char because int might match the return type of a GCC
10680
builtin and then its argument prototype would still apply. */
10688
return shl_load ();
10693
rm -f conftest.$ac_objext conftest$ac_exeext
10694
if { (ac_try="$ac_link"
10695
case "(($ac_try" in
10696
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10697
*) ac_try_echo=$ac_try;;
10699
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10700
(eval "$ac_link") 2>conftest.er1
10702
grep -v '^ *+' conftest.er1 >conftest.err
10704
cat conftest.err >&5
10705
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10706
(exit $ac_status); } && {
10707
test -z "$ac_c_werror_flag" ||
10708
test ! -s conftest.err
10709
} && test -s conftest$ac_exeext &&
10710
$as_test_x conftest$ac_exeext; then
10711
ac_cv_lib_dld_shl_load=yes
10713
echo "$as_me: failed program was:" >&5
10714
sed 's/^/| /' conftest.$ac_ext >&5
10716
ac_cv_lib_dld_shl_load=no
10719
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10720
conftest$ac_exeext conftest.$ac_ext
10721
LIBS=$ac_check_lib_save_LIBS
10723
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10724
echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10725
if test $ac_cv_lib_dld_shl_load = yes; then
10726
lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10728
{ echo "$as_me:$LINENO: checking for dlopen" >&5
10729
echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
10730
if test "${ac_cv_func_dlopen+set}" = set; then
10731
echo $ECHO_N "(cached) $ECHO_C" >&6
10733
cat >conftest.$ac_ext <<_ACEOF
10736
cat confdefs.h >>conftest.$ac_ext
10737
cat >>conftest.$ac_ext <<_ACEOF
10738
/* end confdefs.h. */
10739
/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10740
For example, HP-UX 11i <limits.h> declares gettimeofday. */
10741
#define dlopen innocuous_dlopen
10743
/* System header to define __stub macros and hopefully few prototypes,
10744
which can conflict with char dlopen (); below.
10745
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10746
<limits.h> exists even on freestanding compilers. */
10749
# include <limits.h>
10751
# include <assert.h>
10756
/* Override any GCC internal prototype to avoid an error.
10757
Use char because int might match the return type of a GCC
10758
builtin and then its argument prototype would still apply. */
10763
/* The GNU C library defines this for functions which it implements
10764
to always fail with ENOSYS. Some functions are actually named
10765
something starting with __ and the normal name is an alias. */
10766
#if defined __stub_dlopen || defined __stub___dlopen
10778
rm -f conftest.$ac_objext conftest$ac_exeext
10779
if { (ac_try="$ac_link"
10780
case "(($ac_try" in
10781
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10782
*) ac_try_echo=$ac_try;;
10784
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10785
(eval "$ac_link") 2>conftest.er1
10787
grep -v '^ *+' conftest.er1 >conftest.err
10789
cat conftest.err >&5
10790
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10791
(exit $ac_status); } && {
10792
test -z "$ac_c_werror_flag" ||
10793
test ! -s conftest.err
10794
} && test -s conftest$ac_exeext &&
10795
$as_test_x conftest$ac_exeext; then
10796
ac_cv_func_dlopen=yes
10798
echo "$as_me: failed program was:" >&5
10799
sed 's/^/| /' conftest.$ac_ext >&5
10801
ac_cv_func_dlopen=no
10804
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10805
conftest$ac_exeext conftest.$ac_ext
10807
{ echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10808
echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10809
if test $ac_cv_func_dlopen = yes; then
10810
lt_cv_dlopen="dlopen"
10812
{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10813
echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10814
if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10815
echo $ECHO_N "(cached) $ECHO_C" >&6
10817
ac_check_lib_save_LIBS=$LIBS
10819
cat >conftest.$ac_ext <<_ACEOF
10822
cat confdefs.h >>conftest.$ac_ext
10823
cat >>conftest.$ac_ext <<_ACEOF
10824
/* end confdefs.h. */
10826
/* Override any GCC internal prototype to avoid an error.
10827
Use char because int might match the return type of a GCC
10828
builtin and then its argument prototype would still apply. */
10841
rm -f conftest.$ac_objext conftest$ac_exeext
10842
if { (ac_try="$ac_link"
10843
case "(($ac_try" in
10844
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10845
*) ac_try_echo=$ac_try;;
10847
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10848
(eval "$ac_link") 2>conftest.er1
10850
grep -v '^ *+' conftest.er1 >conftest.err
10852
cat conftest.err >&5
10853
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10854
(exit $ac_status); } && {
10855
test -z "$ac_c_werror_flag" ||
10856
test ! -s conftest.err
10857
} && test -s conftest$ac_exeext &&
10858
$as_test_x conftest$ac_exeext; then
10859
ac_cv_lib_dl_dlopen=yes
10861
echo "$as_me: failed program was:" >&5
10862
sed 's/^/| /' conftest.$ac_ext >&5
10864
ac_cv_lib_dl_dlopen=no
10867
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10868
conftest$ac_exeext conftest.$ac_ext
10869
LIBS=$ac_check_lib_save_LIBS
10871
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10872
echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10873
if test $ac_cv_lib_dl_dlopen = yes; then
10874
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10876
{ echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10877
echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10878
if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10879
echo $ECHO_N "(cached) $ECHO_C" >&6
10881
ac_check_lib_save_LIBS=$LIBS
10882
LIBS="-lsvld $LIBS"
10883
cat >conftest.$ac_ext <<_ACEOF
10886
cat confdefs.h >>conftest.$ac_ext
10887
cat >>conftest.$ac_ext <<_ACEOF
10888
/* end confdefs.h. */
10890
/* Override any GCC internal prototype to avoid an error.
10891
Use char because int might match the return type of a GCC
10892
builtin and then its argument prototype would still apply. */
10905
rm -f conftest.$ac_objext conftest$ac_exeext
10906
if { (ac_try="$ac_link"
10907
case "(($ac_try" in
10908
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10909
*) ac_try_echo=$ac_try;;
10911
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10912
(eval "$ac_link") 2>conftest.er1
10914
grep -v '^ *+' conftest.er1 >conftest.err
10916
cat conftest.err >&5
10917
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10918
(exit $ac_status); } && {
10919
test -z "$ac_c_werror_flag" ||
10920
test ! -s conftest.err
10921
} && test -s conftest$ac_exeext &&
10922
$as_test_x conftest$ac_exeext; then
10923
ac_cv_lib_svld_dlopen=yes
10925
echo "$as_me: failed program was:" >&5
10926
sed 's/^/| /' conftest.$ac_ext >&5
10928
ac_cv_lib_svld_dlopen=no
10931
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10932
conftest$ac_exeext conftest.$ac_ext
10933
LIBS=$ac_check_lib_save_LIBS
10935
{ echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10936
echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10937
if test $ac_cv_lib_svld_dlopen = yes; then
10938
lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10940
{ echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10941
echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10942
if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10943
echo $ECHO_N "(cached) $ECHO_C" >&6
10945
ac_check_lib_save_LIBS=$LIBS
10947
cat >conftest.$ac_ext <<_ACEOF
10950
cat confdefs.h >>conftest.$ac_ext
10951
cat >>conftest.$ac_ext <<_ACEOF
10952
/* end confdefs.h. */
10954
/* Override any GCC internal prototype to avoid an error.
10955
Use char because int might match the return type of a GCC
10956
builtin and then its argument prototype would still apply. */
10964
return dld_link ();
10969
rm -f conftest.$ac_objext conftest$ac_exeext
10970
if { (ac_try="$ac_link"
10971
case "(($ac_try" in
10972
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10973
*) ac_try_echo=$ac_try;;
10975
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10976
(eval "$ac_link") 2>conftest.er1
10978
grep -v '^ *+' conftest.er1 >conftest.err
10980
cat conftest.err >&5
10981
echo "$as_me:$LINENO: \$? = $ac_status" >&5
10982
(exit $ac_status); } && {
10983
test -z "$ac_c_werror_flag" ||
10984
test ! -s conftest.err
10985
} && test -s conftest$ac_exeext &&
10986
$as_test_x conftest$ac_exeext; then
10987
ac_cv_lib_dld_dld_link=yes
10989
echo "$as_me: failed program was:" >&5
10990
sed 's/^/| /' conftest.$ac_ext >&5
10992
ac_cv_lib_dld_dld_link=no
10995
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10996
conftest$ac_exeext conftest.$ac_ext
10997
LIBS=$ac_check_lib_save_LIBS
10999
{ echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11000
echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11001
if test $ac_cv_lib_dld_dld_link = yes; then
11002
lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11023
if test "x$lt_cv_dlopen" != xno; then
11029
case $lt_cv_dlopen in
11031
save_CPPFLAGS="$CPPFLAGS"
11032
test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11034
save_LDFLAGS="$LDFLAGS"
11035
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11038
LIBS="$lt_cv_dlopen_libs $LIBS"
11040
{ echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
11041
echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
11042
if test "${lt_cv_dlopen_self+set}" = set; then
11043
echo $ECHO_N "(cached) $ECHO_C" >&6
11045
if test "$cross_compiling" = yes; then :
11046
lt_cv_dlopen_self=cross
11048
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11049
lt_status=$lt_dlunknown
11050
cat > conftest.$ac_ext <<_LT_EOF
11051
#line 11051 "configure"
11052
#include "confdefs.h"
11061
# define LT_DLGLOBAL RTLD_GLOBAL
11064
# define LT_DLGLOBAL DL_GLOBAL
11066
# define LT_DLGLOBAL 0
11070
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11071
find out it does not work in some platform. */
11072
#ifndef LT_DLLAZY_OR_NOW
11074
# define LT_DLLAZY_OR_NOW RTLD_LAZY
11077
# define LT_DLLAZY_OR_NOW DL_LAZY
11080
# define LT_DLLAZY_OR_NOW RTLD_NOW
11083
# define LT_DLLAZY_OR_NOW DL_NOW
11085
# define LT_DLLAZY_OR_NOW 0
11093
extern "C" void exit (int);
11096
void fnord() { int i=42;}
11099
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11100
int status = $lt_dlunknown;
11104
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11105
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11106
/* dlclose (self); */
11114
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11115
(eval $ac_link) 2>&5
11117
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11118
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11119
(./conftest; exit; ) >&5 2>/dev/null
11121
case x$lt_status in
11122
x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11123
x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11124
x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11127
# compilation failed
11128
lt_cv_dlopen_self=no
11135
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
11136
echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
11138
if test "x$lt_cv_dlopen_self" = xyes; then
11139
wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11140
{ echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
11141
echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
11142
if test "${lt_cv_dlopen_self_static+set}" = set; then
11143
echo $ECHO_N "(cached) $ECHO_C" >&6
11145
if test "$cross_compiling" = yes; then :
11146
lt_cv_dlopen_self_static=cross
11148
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11149
lt_status=$lt_dlunknown
11150
cat > conftest.$ac_ext <<_LT_EOF
11151
#line 11151 "configure"
11152
#include "confdefs.h"
11161
# define LT_DLGLOBAL RTLD_GLOBAL
11164
# define LT_DLGLOBAL DL_GLOBAL
11166
# define LT_DLGLOBAL 0
11170
/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11171
find out it does not work in some platform. */
11172
#ifndef LT_DLLAZY_OR_NOW
11174
# define LT_DLLAZY_OR_NOW RTLD_LAZY
11177
# define LT_DLLAZY_OR_NOW DL_LAZY
11180
# define LT_DLLAZY_OR_NOW RTLD_NOW
11183
# define LT_DLLAZY_OR_NOW DL_NOW
11185
# define LT_DLLAZY_OR_NOW 0
11193
extern "C" void exit (int);
11196
void fnord() { int i=42;}
11199
void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11200
int status = $lt_dlunknown;
11204
if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11205
else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11206
/* dlclose (self); */
11214
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11215
(eval $ac_link) 2>&5
11217
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11218
(exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11219
(./conftest; exit; ) >&5 2>/dev/null
11221
case x$lt_status in
11222
x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11223
x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11224
x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11227
# compilation failed
11228
lt_cv_dlopen_self_static=no
11235
{ echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
11236
echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
11239
CPPFLAGS="$save_CPPFLAGS"
11240
LDFLAGS="$save_LDFLAGS"
11245
case $lt_cv_dlopen_self in
11246
yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11247
*) enable_dlopen_self=unknown ;;
11250
case $lt_cv_dlopen_self_static in
11251
yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11252
*) enable_dlopen_self_static=unknown ;;
11274
{ echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11275
echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
11276
if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11277
test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11278
test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11279
{ echo "$as_me:$LINENO: result: yes" >&5
11280
echo "${ECHO_T}yes" >&6; }
11282
# FIXME - insert some real tests, host_os isn't really good enough
11285
if test -n "$STRIP" ; then
11286
striplib="$STRIP -x"
11287
old_striplib="$STRIP -S"
11288
{ echo "$as_me:$LINENO: result: yes" >&5
11289
echo "${ECHO_T}yes" >&6; }
11291
{ echo "$as_me:$LINENO: result: no" >&5
11292
echo "${ECHO_T}no" >&6; }
11296
{ echo "$as_me:$LINENO: result: no" >&5
11297
echo "${ECHO_T}no" >&6; }
11313
# Report which library types will actually be built
11314
{ echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
11315
echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
11316
{ echo "$as_me:$LINENO: result: $can_build_shared" >&5
11317
echo "${ECHO_T}$can_build_shared" >&6; }
11319
{ echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11320
echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
11321
test "$can_build_shared" = "no" && enable_shared=no
11323
# On AIX, shared libraries and static libraries use the same namespace, and
11324
# are all built from PIC.
11327
test "$enable_shared" = yes && enable_static=no
11328
if test -n "$RANLIB"; then
11329
archive_cmds="$archive_cmds~\$RANLIB \$lib"
11330
postinstall_cmds='$RANLIB $lib'
11335
if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11336
test "$enable_shared" = yes && enable_static=no
11340
{ echo "$as_me:$LINENO: result: $enable_shared" >&5
11341
echo "${ECHO_T}$enable_shared" >&6; }
11343
{ echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11344
echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
11345
# Make sure either enable_shared or enable_static is yes.
11346
test "$enable_shared" = yes || enable_static=yes
11347
{ echo "$as_me:$LINENO: result: $enable_static" >&5
11348
echo "${ECHO_T}$enable_static" >&6; }
11355
ac_cpp='$CPP $CPPFLAGS'
11356
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11357
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11358
ac_compiler_gnu=$ac_cv_c_compiler_gnu
11374
ac_config_commands="$ac_config_commands libtool"
11379
# Only expand once:
11385
{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
11386
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
11387
if test "${ac_cv_c_const+set}" = set; then
11388
echo $ECHO_N "(cached) $ECHO_C" >&6
11390
cat >conftest.$ac_ext <<_ACEOF
11393
cat confdefs.h >>conftest.$ac_ext
11394
cat >>conftest.$ac_ext <<_ACEOF
11395
/* end confdefs.h. */
11400
/* FIXME: Include the comments suggested by Paul. */
11401
#ifndef __cplusplus
11402
/* Ultrix mips cc rejects this. */
11403
typedef int charset[2];
11405
/* SunOS 4.1.1 cc rejects this. */
11406
char const *const *pcpcc;
11408
/* NEC SVR4.0.2 mips cc rejects this. */
11409
struct point {int x, y;};
11410
static struct point const zero = {0,0};
11411
/* AIX XL C 1.02.0.0 rejects this.
11412
It does not let you subtract one const X* pointer from another in
11413
an arm of an if-expression whose if-part is not a constant
11415
const char *g = "string";
11416
pcpcc = &g + (g ? g-g : 0);
11417
/* HPUX 7.0 cc rejects these. */
11419
ppc = (char**) pcpcc;
11420
pcpcc = (char const *const *) ppc;
11421
{ /* SCO 3.2v4 cc rejects this. */
11423
char const *s = 0 ? (char *) 0 : (char const *) 0;
11428
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
11429
int x[] = {25, 17};
11430
const int *foo = &x[0];
11433
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
11434
typedef const int *iptr;
11438
{ /* AIX XL C 1.02.0.0 rejects this saying
11439
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
11440
struct s { int j; const int *ap[3]; };
11441
struct s *b; b->j = 5;
11443
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
11444
const int foo = 10;
11445
if (!foo) return 0;
11447
return !cs[0] && !zero.x;
11454
rm -f conftest.$ac_objext
11455
if { (ac_try="$ac_compile"
11456
case "(($ac_try" in
11457
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11458
*) ac_try_echo=$ac_try;;
11460
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11461
(eval "$ac_compile") 2>conftest.er1
11463
grep -v '^ *+' conftest.er1 >conftest.err
11465
cat conftest.err >&5
11466
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11467
(exit $ac_status); } && {
11468
test -z "$ac_c_werror_flag" ||
11469
test ! -s conftest.err
11470
} && test -s conftest.$ac_objext; then
11473
echo "$as_me: failed program was:" >&5
11474
sed 's/^/| /' conftest.$ac_ext >&5
11479
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11481
{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
11482
echo "${ECHO_T}$ac_cv_c_const" >&6; }
11483
if test $ac_cv_c_const = no; then
11485
cat >>confdefs.h <<\_ACEOF
11492
{ echo "$as_me:$LINENO: checking for long long int" >&5
11493
echo $ECHO_N "checking for long long int... $ECHO_C" >&6; }
11494
if test "${ac_cv_type_long_long_int+set}" = set; then
11495
echo $ECHO_N "(cached) $ECHO_C" >&6
11497
cat >conftest.$ac_ext <<_ACEOF
11501
cat confdefs.h >>conftest.$ac_ext
11502
cat >>conftest.$ac_ext <<_ACEOF
11503
/* end confdefs.h. */
11504
/* Test preprocessor. */
11505
#if ! (-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
11506
error in preprocessor;
11508
#if ! (18446744073709551615ULL <= -1ull)
11509
error in preprocessor;
11511
/* Test literals. */
11512
long long int ll = 9223372036854775807ll;
11513
long long int nll = -9223372036854775807LL;
11514
unsigned long long int ull = 18446744073709551615ULL;
11515
/* Test constant expressions. */
11516
typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
11518
typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
11524
/* Test availability of runtime routines for shift and division. */
11525
long long int llmax = 9223372036854775807ll;
11526
unsigned long long int ullmax = 18446744073709551615ull;
11527
return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
11528
| (llmax / ll) | (llmax % ll)
11529
| (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
11530
| (ullmax / ull) | (ullmax % ull));
11536
rm -f conftest.$ac_objext conftest$ac_exeext
11537
if { (ac_try="$ac_link"
11538
case "(($ac_try" in
11539
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11540
*) ac_try_echo=$ac_try;;
11542
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11543
(eval "$ac_link") 2>conftest.er1
11545
grep -v '^ *+' conftest.er1 >conftest.err
11547
cat conftest.err >&5
11548
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11549
(exit $ac_status); } && {
11550
test -z "$ac_c_werror_flag" ||
11551
test ! -s conftest.err
11552
} && test -s conftest$ac_exeext &&
11553
$as_test_x conftest$ac_exeext; then
11554
if test "$cross_compiling" = yes; then
11555
ac_cv_type_long_long_int=yes
11557
cat >conftest.$ac_ext <<_ACEOF
11560
cat confdefs.h >>conftest.$ac_ext
11561
cat >>conftest.$ac_ext <<_ACEOF
11562
/* end confdefs.h. */
11563
#include <limits.h>
11566
(1LL << (sizeof (long long int) * CHAR_BIT - 2))
11567
# define LLONG_MAX (HALF - 1 + HALF)
11572
long long int n = 1;
11576
long long int m = n << i;
11579
if (LLONG_MAX / 2 < m)
11587
rm -f conftest$ac_exeext
11588
if { (ac_try="$ac_link"
11589
case "(($ac_try" in
11590
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11591
*) ac_try_echo=$ac_try;;
11593
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11594
(eval "$ac_link") 2>&5
11596
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11597
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11598
{ (case "(($ac_try" in
11599
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11600
*) ac_try_echo=$ac_try;;
11602
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11603
(eval "$ac_try") 2>&5
11605
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11606
(exit $ac_status); }; }; then
11607
ac_cv_type_long_long_int=yes
11609
echo "$as_me: program exited with status $ac_status" >&5
11610
echo "$as_me: failed program was:" >&5
11611
sed 's/^/| /' conftest.$ac_ext >&5
11613
( exit $ac_status )
11614
ac_cv_type_long_long_int=no
11616
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11621
echo "$as_me: failed program was:" >&5
11622
sed 's/^/| /' conftest.$ac_ext >&5
11624
ac_cv_type_long_long_int=no
11627
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11628
conftest$ac_exeext conftest.$ac_ext
11630
{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
11631
echo "${ECHO_T}$ac_cv_type_long_long_int" >&6; }
11632
if test $ac_cv_type_long_long_int = yes; then
11634
cat >>confdefs.h <<\_ACEOF
11635
#define HAVE_LONG_LONG_INT 1
11642
{ echo "$as_me:$LINENO: checking for library containing ioperm" >&5
11643
echo $ECHO_N "checking for library containing ioperm... $ECHO_C" >&6; }
11644
if test "${ac_cv_search_ioperm+set}" = set; then
11645
echo $ECHO_N "(cached) $ECHO_C" >&6
11647
ac_func_search_save_LIBS=$LIBS
11648
cat >conftest.$ac_ext <<_ACEOF
11651
cat confdefs.h >>conftest.$ac_ext
11652
cat >>conftest.$ac_ext <<_ACEOF
11653
/* end confdefs.h. */
11655
/* Override any GCC internal prototype to avoid an error.
11656
Use char because int might match the return type of a GCC
11657
builtin and then its argument prototype would still apply. */
11670
for ac_lib in '' ioperm; do
11671
if test -z "$ac_lib"; then
11672
ac_res="none required"
11675
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11677
rm -f conftest.$ac_objext conftest$ac_exeext
11678
if { (ac_try="$ac_link"
11679
case "(($ac_try" in
11680
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11681
*) ac_try_echo=$ac_try;;
11683
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11684
(eval "$ac_link") 2>conftest.er1
11686
grep -v '^ *+' conftest.er1 >conftest.err
11688
cat conftest.err >&5
11689
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11690
(exit $ac_status); } && {
11691
test -z "$ac_c_werror_flag" ||
11692
test ! -s conftest.err
11693
} && test -s conftest$ac_exeext &&
11694
$as_test_x conftest$ac_exeext; then
11695
ac_cv_search_ioperm=$ac_res
11697
echo "$as_me: failed program was:" >&5
11698
sed 's/^/| /' conftest.$ac_ext >&5
11703
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11705
if test "${ac_cv_search_ioperm+set}" = set; then
11709
if test "${ac_cv_search_ioperm+set}" = set; then
11712
ac_cv_search_ioperm=no
11714
rm conftest.$ac_ext
11715
LIBS=$ac_func_search_save_LIBS
11717
{ echo "$as_me:$LINENO: result: $ac_cv_search_ioperm" >&5
11718
echo "${ECHO_T}$ac_cv_search_ioperm" >&6; }
11719
ac_res=$ac_cv_search_ioperm
11720
if test "$ac_res" != no; then
11721
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11725
{ echo "$as_me:$LINENO: checking for library containing dlopen" >&5
11726
echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
11727
if test "${ac_cv_search_dlopen+set}" = set; then
11728
echo $ECHO_N "(cached) $ECHO_C" >&6
11730
ac_func_search_save_LIBS=$LIBS
11731
cat >conftest.$ac_ext <<_ACEOF
11734
cat confdefs.h >>conftest.$ac_ext
11735
cat >>conftest.$ac_ext <<_ACEOF
11736
/* end confdefs.h. */
11738
/* Override any GCC internal prototype to avoid an error.
11739
Use char because int might match the return type of a GCC
11740
builtin and then its argument prototype would still apply. */
11753
for ac_lib in '' dl; do
11754
if test -z "$ac_lib"; then
11755
ac_res="none required"
11758
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
11760
rm -f conftest.$ac_objext conftest$ac_exeext
11761
if { (ac_try="$ac_link"
11762
case "(($ac_try" in
11763
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11764
*) ac_try_echo=$ac_try;;
11766
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11767
(eval "$ac_link") 2>conftest.er1
11769
grep -v '^ *+' conftest.er1 >conftest.err
11771
cat conftest.err >&5
11772
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11773
(exit $ac_status); } && {
11774
test -z "$ac_c_werror_flag" ||
11775
test ! -s conftest.err
11776
} && test -s conftest$ac_exeext &&
11777
$as_test_x conftest$ac_exeext; then
11778
ac_cv_search_dlopen=$ac_res
11780
echo "$as_me: failed program was:" >&5
11781
sed 's/^/| /' conftest.$ac_ext >&5
11786
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11788
if test "${ac_cv_search_dlopen+set}" = set; then
11792
if test "${ac_cv_search_dlopen+set}" = set; then
11795
ac_cv_search_dlopen=no
11797
rm conftest.$ac_ext
11798
LIBS=$ac_func_search_save_LIBS
11800
{ echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
11801
echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
11802
ac_res=$ac_cv_search_dlopen
11803
if test "$ac_res" != no; then
11804
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
11810
for ac_header in sys/socket.h
11812
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11813
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11814
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11815
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11816
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11817
echo $ECHO_N "(cached) $ECHO_C" >&6
11819
ac_res=`eval echo '${'$as_ac_Header'}'`
11820
{ echo "$as_me:$LINENO: result: $ac_res" >&5
11821
echo "${ECHO_T}$ac_res" >&6; }
11823
# Is the header compilable?
11824
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11825
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11826
cat >conftest.$ac_ext <<_ACEOF
11829
cat confdefs.h >>conftest.$ac_ext
11830
cat >>conftest.$ac_ext <<_ACEOF
11831
/* end confdefs.h. */
11832
$ac_includes_default
11833
#include <$ac_header>
11835
rm -f conftest.$ac_objext
11836
if { (ac_try="$ac_compile"
11837
case "(($ac_try" in
11838
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11839
*) ac_try_echo=$ac_try;;
11841
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11842
(eval "$ac_compile") 2>conftest.er1
11844
grep -v '^ *+' conftest.er1 >conftest.err
11846
cat conftest.err >&5
11847
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11848
(exit $ac_status); } && {
11849
test -z "$ac_c_werror_flag" ||
11850
test ! -s conftest.err
11851
} && test -s conftest.$ac_objext; then
11852
ac_header_compiler=yes
11854
echo "$as_me: failed program was:" >&5
11855
sed 's/^/| /' conftest.$ac_ext >&5
11857
ac_header_compiler=no
11860
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11861
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11862
echo "${ECHO_T}$ac_header_compiler" >&6; }
11864
# Is the header present?
11865
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11866
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11867
cat >conftest.$ac_ext <<_ACEOF
11870
cat confdefs.h >>conftest.$ac_ext
11871
cat >>conftest.$ac_ext <<_ACEOF
11872
/* end confdefs.h. */
11873
#include <$ac_header>
11875
if { (ac_try="$ac_cpp conftest.$ac_ext"
11876
case "(($ac_try" in
11877
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11878
*) ac_try_echo=$ac_try;;
11880
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11881
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11883
grep -v '^ *+' conftest.er1 >conftest.err
11885
cat conftest.err >&5
11886
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11887
(exit $ac_status); } >/dev/null && {
11888
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11889
test ! -s conftest.err
11891
ac_header_preproc=yes
11893
echo "$as_me: failed program was:" >&5
11894
sed 's/^/| /' conftest.$ac_ext >&5
11896
ac_header_preproc=no
11899
rm -f conftest.err conftest.$ac_ext
11900
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11901
echo "${ECHO_T}$ac_header_preproc" >&6; }
11903
# So? What about this header?
11904
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11906
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11907
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11908
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11909
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11910
ac_header_preproc=yes
11913
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11914
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11915
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11916
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11917
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11918
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11919
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11920
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11921
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11922
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11923
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11924
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11926
## -------------------------------------------------------------------------- ##
11927
## Report this to OpenOCD Mailing List <openocd-development@lists.berlios.de> ##
11928
## -------------------------------------------------------------------------- ##
11930
) | sed "s/^/$as_me: WARNING: /" >&2
11933
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11934
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11935
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11936
echo $ECHO_N "(cached) $ECHO_C" >&6
11938
eval "$as_ac_Header=\$ac_header_preproc"
11940
ac_res=`eval echo '${'$as_ac_Header'}'`
11941
{ echo "$as_me:$LINENO: result: $ac_res" >&5
11942
echo "${ECHO_T}$ac_res" >&6; }
11945
if test `eval echo '${'$as_ac_Header'}'` = yes; then
11946
cat >>confdefs.h <<_ACEOF
11947
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11955
for ac_header in arpa/inet.h
11957
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11958
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11959
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11960
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11961
echo $ECHO_N "(cached) $ECHO_C" >&6
11963
cat >conftest.$ac_ext <<_ACEOF
11966
cat confdefs.h >>conftest.$ac_ext
11967
cat >>conftest.$ac_ext <<_ACEOF
11968
/* end confdefs.h. */
11970
#ifdef STDC_HEADERS
11971
# include <stdlib.h>
11972
# include <stddef.h>
11974
# ifdef HAVE_STDLIB_H
11975
# include <stdlib.h>
11978
#ifdef HAVE_SYS_SOCKET_H
11979
# include <sys/socket.h>
11983
#include <$ac_header>
11985
rm -f conftest.$ac_objext
11986
if { (ac_try="$ac_compile"
11987
case "(($ac_try" in
11988
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11989
*) ac_try_echo=$ac_try;;
11991
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11992
(eval "$ac_compile") 2>conftest.er1
11994
grep -v '^ *+' conftest.er1 >conftest.err
11996
cat conftest.err >&5
11997
echo "$as_me:$LINENO: \$? = $ac_status" >&5
11998
(exit $ac_status); } && {
11999
test -z "$ac_c_werror_flag" ||
12000
test ! -s conftest.err
12001
} && test -s conftest.$ac_objext; then
12002
eval "$as_ac_Header=yes"
12004
echo "$as_me: failed program was:" >&5
12005
sed 's/^/| /' conftest.$ac_ext >&5
12007
eval "$as_ac_Header=no"
12010
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12012
ac_res=`eval echo '${'$as_ac_Header'}'`
12013
{ echo "$as_me:$LINENO: result: $ac_res" >&5
12014
echo "${ECHO_T}$ac_res" >&6; }
12015
if test `eval echo '${'$as_ac_Header'}'` = yes; then
12016
cat >>confdefs.h <<_ACEOF
12017
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12025
for ac_header in elf.h
12027
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12028
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12029
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12030
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12031
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12032
echo $ECHO_N "(cached) $ECHO_C" >&6
12034
ac_res=`eval echo '${'$as_ac_Header'}'`
12035
{ echo "$as_me:$LINENO: result: $ac_res" >&5
12036
echo "${ECHO_T}$ac_res" >&6; }
12038
# Is the header compilable?
12039
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12040
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12041
cat >conftest.$ac_ext <<_ACEOF
12044
cat confdefs.h >>conftest.$ac_ext
12045
cat >>conftest.$ac_ext <<_ACEOF
12046
/* end confdefs.h. */
12047
$ac_includes_default
12048
#include <$ac_header>
12050
rm -f conftest.$ac_objext
12051
if { (ac_try="$ac_compile"
12052
case "(($ac_try" in
12053
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12054
*) ac_try_echo=$ac_try;;
12056
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12057
(eval "$ac_compile") 2>conftest.er1
12059
grep -v '^ *+' conftest.er1 >conftest.err
12061
cat conftest.err >&5
12062
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12063
(exit $ac_status); } && {
12064
test -z "$ac_c_werror_flag" ||
12065
test ! -s conftest.err
12066
} && test -s conftest.$ac_objext; then
12067
ac_header_compiler=yes
12069
echo "$as_me: failed program was:" >&5
12070
sed 's/^/| /' conftest.$ac_ext >&5
12072
ac_header_compiler=no
12075
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12076
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12077
echo "${ECHO_T}$ac_header_compiler" >&6; }
12079
# Is the header present?
12080
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12081
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12082
cat >conftest.$ac_ext <<_ACEOF
12085
cat confdefs.h >>conftest.$ac_ext
12086
cat >>conftest.$ac_ext <<_ACEOF
12087
/* end confdefs.h. */
12088
#include <$ac_header>
12090
if { (ac_try="$ac_cpp conftest.$ac_ext"
12091
case "(($ac_try" in
12092
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12093
*) ac_try_echo=$ac_try;;
12095
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12096
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12098
grep -v '^ *+' conftest.er1 >conftest.err
12100
cat conftest.err >&5
12101
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12102
(exit $ac_status); } >/dev/null && {
12103
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12104
test ! -s conftest.err
12106
ac_header_preproc=yes
12108
echo "$as_me: failed program was:" >&5
12109
sed 's/^/| /' conftest.$ac_ext >&5
12111
ac_header_preproc=no
12114
rm -f conftest.err conftest.$ac_ext
12115
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12116
echo "${ECHO_T}$ac_header_preproc" >&6; }
12118
# So? What about this header?
12119
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12121
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12122
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12123
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12124
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12125
ac_header_preproc=yes
12128
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12129
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12130
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12131
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12132
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12133
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12134
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12135
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12136
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12137
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12138
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12139
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12141
## -------------------------------------------------------------------------- ##
12142
## Report this to OpenOCD Mailing List <openocd-development@lists.berlios.de> ##
12143
## -------------------------------------------------------------------------- ##
12145
) | sed "s/^/$as_me: WARNING: /" >&2
12148
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12149
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12150
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12151
echo $ECHO_N "(cached) $ECHO_C" >&6
12153
eval "$as_ac_Header=\$ac_header_preproc"
12155
ac_res=`eval echo '${'$as_ac_Header'}'`
12156
{ echo "$as_me:$LINENO: result: $ac_res" >&5
12157
echo "${ECHO_T}$ac_res" >&6; }
12160
if test `eval echo '${'$as_ac_Header'}'` = yes; then
12161
cat >>confdefs.h <<_ACEOF
12162
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12170
for ac_header in dirent.h
12172
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12173
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12174
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12175
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12176
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12177
echo $ECHO_N "(cached) $ECHO_C" >&6
12179
ac_res=`eval echo '${'$as_ac_Header'}'`
12180
{ echo "$as_me:$LINENO: result: $ac_res" >&5
12181
echo "${ECHO_T}$ac_res" >&6; }
12183
# Is the header compilable?
12184
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12185
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12186
cat >conftest.$ac_ext <<_ACEOF
12189
cat confdefs.h >>conftest.$ac_ext
12190
cat >>conftest.$ac_ext <<_ACEOF
12191
/* end confdefs.h. */
12192
$ac_includes_default
12193
#include <$ac_header>
12195
rm -f conftest.$ac_objext
12196
if { (ac_try="$ac_compile"
12197
case "(($ac_try" in
12198
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12199
*) ac_try_echo=$ac_try;;
12201
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12202
(eval "$ac_compile") 2>conftest.er1
12204
grep -v '^ *+' conftest.er1 >conftest.err
12206
cat conftest.err >&5
12207
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208
(exit $ac_status); } && {
12209
test -z "$ac_c_werror_flag" ||
12210
test ! -s conftest.err
12211
} && test -s conftest.$ac_objext; then
12212
ac_header_compiler=yes
12214
echo "$as_me: failed program was:" >&5
12215
sed 's/^/| /' conftest.$ac_ext >&5
12217
ac_header_compiler=no
12220
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12221
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12222
echo "${ECHO_T}$ac_header_compiler" >&6; }
12224
# Is the header present?
12225
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12226
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12227
cat >conftest.$ac_ext <<_ACEOF
12230
cat confdefs.h >>conftest.$ac_ext
12231
cat >>conftest.$ac_ext <<_ACEOF
12232
/* end confdefs.h. */
12233
#include <$ac_header>
12235
if { (ac_try="$ac_cpp conftest.$ac_ext"
12236
case "(($ac_try" in
12237
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12238
*) ac_try_echo=$ac_try;;
12240
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12241
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12243
grep -v '^ *+' conftest.er1 >conftest.err
12245
cat conftest.err >&5
12246
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12247
(exit $ac_status); } >/dev/null && {
12248
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12249
test ! -s conftest.err
12251
ac_header_preproc=yes
12253
echo "$as_me: failed program was:" >&5
12254
sed 's/^/| /' conftest.$ac_ext >&5
12256
ac_header_preproc=no
12259
rm -f conftest.err conftest.$ac_ext
12260
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12261
echo "${ECHO_T}$ac_header_preproc" >&6; }
12263
# So? What about this header?
12264
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12266
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12267
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12268
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12269
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12270
ac_header_preproc=yes
12273
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12274
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12275
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12276
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12277
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12278
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12279
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12280
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12281
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12282
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12283
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12284
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12286
## -------------------------------------------------------------------------- ##
12287
## Report this to OpenOCD Mailing List <openocd-development@lists.berlios.de> ##
12288
## -------------------------------------------------------------------------- ##
12290
) | sed "s/^/$as_me: WARNING: /" >&2
12293
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12294
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12295
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12296
echo $ECHO_N "(cached) $ECHO_C" >&6
12298
eval "$as_ac_Header=\$ac_header_preproc"
12300
ac_res=`eval echo '${'$as_ac_Header'}'`
12301
{ echo "$as_me:$LINENO: result: $ac_res" >&5
12302
echo "${ECHO_T}$ac_res" >&6; }
12305
if test `eval echo '${'$as_ac_Header'}'` = yes; then
12306
cat >>confdefs.h <<_ACEOF
12307
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12315
for ac_header in fcntl.h
12317
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12318
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12319
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12320
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12321
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12322
echo $ECHO_N "(cached) $ECHO_C" >&6
12324
ac_res=`eval echo '${'$as_ac_Header'}'`
12325
{ echo "$as_me:$LINENO: result: $ac_res" >&5
12326
echo "${ECHO_T}$ac_res" >&6; }
12328
# Is the header compilable?
12329
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12330
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12331
cat >conftest.$ac_ext <<_ACEOF
12334
cat confdefs.h >>conftest.$ac_ext
12335
cat >>conftest.$ac_ext <<_ACEOF
12336
/* end confdefs.h. */
12337
$ac_includes_default
12338
#include <$ac_header>
12340
rm -f conftest.$ac_objext
12341
if { (ac_try="$ac_compile"
12342
case "(($ac_try" in
12343
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12344
*) ac_try_echo=$ac_try;;
12346
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12347
(eval "$ac_compile") 2>conftest.er1
12349
grep -v '^ *+' conftest.er1 >conftest.err
12351
cat conftest.err >&5
12352
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12353
(exit $ac_status); } && {
12354
test -z "$ac_c_werror_flag" ||
12355
test ! -s conftest.err
12356
} && test -s conftest.$ac_objext; then
12357
ac_header_compiler=yes
12359
echo "$as_me: failed program was:" >&5
12360
sed 's/^/| /' conftest.$ac_ext >&5
12362
ac_header_compiler=no
12365
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12366
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12367
echo "${ECHO_T}$ac_header_compiler" >&6; }
12369
# Is the header present?
12370
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12371
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12372
cat >conftest.$ac_ext <<_ACEOF
12375
cat confdefs.h >>conftest.$ac_ext
12376
cat >>conftest.$ac_ext <<_ACEOF
12377
/* end confdefs.h. */
12378
#include <$ac_header>
12380
if { (ac_try="$ac_cpp conftest.$ac_ext"
12381
case "(($ac_try" in
12382
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12383
*) ac_try_echo=$ac_try;;
12385
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12386
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12388
grep -v '^ *+' conftest.er1 >conftest.err
12390
cat conftest.err >&5
12391
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12392
(exit $ac_status); } >/dev/null && {
12393
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12394
test ! -s conftest.err
12396
ac_header_preproc=yes
12398
echo "$as_me: failed program was:" >&5
12399
sed 's/^/| /' conftest.$ac_ext >&5
12401
ac_header_preproc=no
12404
rm -f conftest.err conftest.$ac_ext
12405
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12406
echo "${ECHO_T}$ac_header_preproc" >&6; }
12408
# So? What about this header?
12409
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12411
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12412
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12413
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12414
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12415
ac_header_preproc=yes
12418
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12419
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12420
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12421
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12422
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12423
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12424
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12425
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12426
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12427
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12428
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12429
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12431
## -------------------------------------------------------------------------- ##
12432
## Report this to OpenOCD Mailing List <openocd-development@lists.berlios.de> ##
12433
## -------------------------------------------------------------------------- ##
12435
) | sed "s/^/$as_me: WARNING: /" >&2
12438
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12439
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12440
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12441
echo $ECHO_N "(cached) $ECHO_C" >&6
12443
eval "$as_ac_Header=\$ac_header_preproc"
12445
ac_res=`eval echo '${'$as_ac_Header'}'`
12446
{ echo "$as_me:$LINENO: result: $ac_res" >&5
12447
echo "${ECHO_T}$ac_res" >&6; }
12450
if test `eval echo '${'$as_ac_Header'}'` = yes; then
12451
cat >>confdefs.h <<_ACEOF
12452
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12460
for ac_header in ifaddrs.h
12462
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12463
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12464
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12465
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12466
echo $ECHO_N "(cached) $ECHO_C" >&6
12468
cat >conftest.$ac_ext <<_ACEOF
12471
cat confdefs.h >>conftest.$ac_ext
12472
cat >>conftest.$ac_ext <<_ACEOF
12473
/* end confdefs.h. */
12475
#ifdef STDC_HEADERS
12476
# include <stdlib.h>
12477
# include <stddef.h>
12479
# ifdef HAVE_STDLIB_H
12480
# include <stdlib.h>
12483
#ifdef HAVE_SYS_SOCKET_H
12484
# include <sys/socket.h>
12488
#include <$ac_header>
12490
rm -f conftest.$ac_objext
12491
if { (ac_try="$ac_compile"
12492
case "(($ac_try" in
12493
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12494
*) ac_try_echo=$ac_try;;
12496
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12497
(eval "$ac_compile") 2>conftest.er1
12499
grep -v '^ *+' conftest.er1 >conftest.err
12501
cat conftest.err >&5
12502
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12503
(exit $ac_status); } && {
12504
test -z "$ac_c_werror_flag" ||
12505
test ! -s conftest.err
12506
} && test -s conftest.$ac_objext; then
12507
eval "$as_ac_Header=yes"
12509
echo "$as_me: failed program was:" >&5
12510
sed 's/^/| /' conftest.$ac_ext >&5
12512
eval "$as_ac_Header=no"
12515
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12517
ac_res=`eval echo '${'$as_ac_Header'}'`
12518
{ echo "$as_me:$LINENO: result: $ac_res" >&5
12519
echo "${ECHO_T}$ac_res" >&6; }
12520
if test `eval echo '${'$as_ac_Header'}'` = yes; then
12521
cat >>confdefs.h <<_ACEOF
12522
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12530
for ac_header in malloc.h
12532
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12533
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12534
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12535
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12536
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12537
echo $ECHO_N "(cached) $ECHO_C" >&6
12539
ac_res=`eval echo '${'$as_ac_Header'}'`
12540
{ echo "$as_me:$LINENO: result: $ac_res" >&5
12541
echo "${ECHO_T}$ac_res" >&6; }
12543
# Is the header compilable?
12544
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12545
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12546
cat >conftest.$ac_ext <<_ACEOF
12549
cat confdefs.h >>conftest.$ac_ext
12550
cat >>conftest.$ac_ext <<_ACEOF
12551
/* end confdefs.h. */
12552
$ac_includes_default
12553
#include <$ac_header>
12555
rm -f conftest.$ac_objext
12556
if { (ac_try="$ac_compile"
12557
case "(($ac_try" in
12558
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12559
*) ac_try_echo=$ac_try;;
12561
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12562
(eval "$ac_compile") 2>conftest.er1
12564
grep -v '^ *+' conftest.er1 >conftest.err
12566
cat conftest.err >&5
12567
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12568
(exit $ac_status); } && {
12569
test -z "$ac_c_werror_flag" ||
12570
test ! -s conftest.err
12571
} && test -s conftest.$ac_objext; then
12572
ac_header_compiler=yes
12574
echo "$as_me: failed program was:" >&5
12575
sed 's/^/| /' conftest.$ac_ext >&5
12577
ac_header_compiler=no
12580
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12581
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12582
echo "${ECHO_T}$ac_header_compiler" >&6; }
12584
# Is the header present?
12585
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12586
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12587
cat >conftest.$ac_ext <<_ACEOF
12590
cat confdefs.h >>conftest.$ac_ext
12591
cat >>conftest.$ac_ext <<_ACEOF
12592
/* end confdefs.h. */
12593
#include <$ac_header>
12595
if { (ac_try="$ac_cpp conftest.$ac_ext"
12596
case "(($ac_try" in
12597
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12598
*) ac_try_echo=$ac_try;;
12600
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12601
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12603
grep -v '^ *+' conftest.er1 >conftest.err
12605
cat conftest.err >&5
12606
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12607
(exit $ac_status); } >/dev/null && {
12608
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12609
test ! -s conftest.err
12611
ac_header_preproc=yes
12613
echo "$as_me: failed program was:" >&5
12614
sed 's/^/| /' conftest.$ac_ext >&5
12616
ac_header_preproc=no
12619
rm -f conftest.err conftest.$ac_ext
12620
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12621
echo "${ECHO_T}$ac_header_preproc" >&6; }
12623
# So? What about this header?
12624
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12626
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12627
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12628
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12629
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12630
ac_header_preproc=yes
12633
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12634
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12635
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12636
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12637
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12638
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12639
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12640
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12641
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12642
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12643
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12644
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12646
## -------------------------------------------------------------------------- ##
12647
## Report this to OpenOCD Mailing List <openocd-development@lists.berlios.de> ##
12648
## -------------------------------------------------------------------------- ##
12650
) | sed "s/^/$as_me: WARNING: /" >&2
12653
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12654
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12655
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12656
echo $ECHO_N "(cached) $ECHO_C" >&6
12658
eval "$as_ac_Header=\$ac_header_preproc"
12660
ac_res=`eval echo '${'$as_ac_Header'}'`
12661
{ echo "$as_me:$LINENO: result: $ac_res" >&5
12662
echo "${ECHO_T}$ac_res" >&6; }
12665
if test `eval echo '${'$as_ac_Header'}'` = yes; then
12666
cat >>confdefs.h <<_ACEOF
12667
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12675
for ac_header in netdb.h
12677
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12678
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12679
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12680
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12681
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12682
echo $ECHO_N "(cached) $ECHO_C" >&6
12684
ac_res=`eval echo '${'$as_ac_Header'}'`
12685
{ echo "$as_me:$LINENO: result: $ac_res" >&5
12686
echo "${ECHO_T}$ac_res" >&6; }
12688
# Is the header compilable?
12689
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12690
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12691
cat >conftest.$ac_ext <<_ACEOF
12694
cat confdefs.h >>conftest.$ac_ext
12695
cat >>conftest.$ac_ext <<_ACEOF
12696
/* end confdefs.h. */
12697
$ac_includes_default
12698
#include <$ac_header>
12700
rm -f conftest.$ac_objext
12701
if { (ac_try="$ac_compile"
12702
case "(($ac_try" in
12703
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12704
*) ac_try_echo=$ac_try;;
12706
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12707
(eval "$ac_compile") 2>conftest.er1
12709
grep -v '^ *+' conftest.er1 >conftest.err
12711
cat conftest.err >&5
12712
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12713
(exit $ac_status); } && {
12714
test -z "$ac_c_werror_flag" ||
12715
test ! -s conftest.err
12716
} && test -s conftest.$ac_objext; then
12717
ac_header_compiler=yes
12719
echo "$as_me: failed program was:" >&5
12720
sed 's/^/| /' conftest.$ac_ext >&5
12722
ac_header_compiler=no
12725
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12726
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12727
echo "${ECHO_T}$ac_header_compiler" >&6; }
12729
# Is the header present?
12730
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12731
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12732
cat >conftest.$ac_ext <<_ACEOF
12735
cat confdefs.h >>conftest.$ac_ext
12736
cat >>conftest.$ac_ext <<_ACEOF
12737
/* end confdefs.h. */
12738
#include <$ac_header>
12740
if { (ac_try="$ac_cpp conftest.$ac_ext"
12741
case "(($ac_try" in
12742
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12743
*) ac_try_echo=$ac_try;;
12745
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12746
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12748
grep -v '^ *+' conftest.er1 >conftest.err
12750
cat conftest.err >&5
12751
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12752
(exit $ac_status); } >/dev/null && {
12753
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12754
test ! -s conftest.err
12756
ac_header_preproc=yes
12758
echo "$as_me: failed program was:" >&5
12759
sed 's/^/| /' conftest.$ac_ext >&5
12761
ac_header_preproc=no
12764
rm -f conftest.err conftest.$ac_ext
12765
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12766
echo "${ECHO_T}$ac_header_preproc" >&6; }
12768
# So? What about this header?
12769
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12771
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12772
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12773
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12774
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12775
ac_header_preproc=yes
12778
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12779
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12780
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12781
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12782
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12783
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12784
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12785
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12786
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12787
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12788
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12789
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12791
## -------------------------------------------------------------------------- ##
12792
## Report this to OpenOCD Mailing List <openocd-development@lists.berlios.de> ##
12793
## -------------------------------------------------------------------------- ##
12795
) | sed "s/^/$as_me: WARNING: /" >&2
12798
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12799
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12800
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12801
echo $ECHO_N "(cached) $ECHO_C" >&6
12803
eval "$as_ac_Header=\$ac_header_preproc"
12805
ac_res=`eval echo '${'$as_ac_Header'}'`
12806
{ echo "$as_me:$LINENO: result: $ac_res" >&5
12807
echo "${ECHO_T}$ac_res" >&6; }
12810
if test `eval echo '${'$as_ac_Header'}'` = yes; then
12811
cat >>confdefs.h <<_ACEOF
12812
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12820
for ac_header in netinet/in.h
12822
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12823
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12824
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12825
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12826
echo $ECHO_N "(cached) $ECHO_C" >&6
12828
cat >conftest.$ac_ext <<_ACEOF
12831
cat confdefs.h >>conftest.$ac_ext
12832
cat >>conftest.$ac_ext <<_ACEOF
12833
/* end confdefs.h. */
12835
#ifdef STDC_HEADERS
12836
# include <stdlib.h>
12837
# include <stddef.h>
12839
# ifdef HAVE_STDLIB_H
12840
# include <stdlib.h>
12843
#ifdef HAVE_SYS_SOCKET_H
12844
# include <sys/socket.h>
12848
#include <$ac_header>
12850
rm -f conftest.$ac_objext
12851
if { (ac_try="$ac_compile"
12852
case "(($ac_try" in
12853
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12854
*) ac_try_echo=$ac_try;;
12856
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12857
(eval "$ac_compile") 2>conftest.er1
12859
grep -v '^ *+' conftest.er1 >conftest.err
12861
cat conftest.err >&5
12862
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12863
(exit $ac_status); } && {
12864
test -z "$ac_c_werror_flag" ||
12865
test ! -s conftest.err
12866
} && test -s conftest.$ac_objext; then
12867
eval "$as_ac_Header=yes"
12869
echo "$as_me: failed program was:" >&5
12870
sed 's/^/| /' conftest.$ac_ext >&5
12872
eval "$as_ac_Header=no"
12875
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12877
ac_res=`eval echo '${'$as_ac_Header'}'`
12878
{ echo "$as_me:$LINENO: result: $ac_res" >&5
12879
echo "${ECHO_T}$ac_res" >&6; }
12880
if test `eval echo '${'$as_ac_Header'}'` = yes; then
12881
cat >>confdefs.h <<_ACEOF
12882
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12890
for ac_header in netinet/tcp.h
12892
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12893
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12894
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12895
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12896
echo $ECHO_N "(cached) $ECHO_C" >&6
12898
cat >conftest.$ac_ext <<_ACEOF
12901
cat confdefs.h >>conftest.$ac_ext
12902
cat >>conftest.$ac_ext <<_ACEOF
12903
/* end confdefs.h. */
12905
#ifdef STDC_HEADERS
12906
# include <stdlib.h>
12907
# include <stddef.h>
12909
# ifdef HAVE_STDLIB_H
12910
# include <stdlib.h>
12913
#ifdef HAVE_SYS_SOCKET_H
12914
# include <sys/socket.h>
12918
#include <$ac_header>
12920
rm -f conftest.$ac_objext
12921
if { (ac_try="$ac_compile"
12922
case "(($ac_try" in
12923
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12924
*) ac_try_echo=$ac_try;;
12926
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12927
(eval "$ac_compile") 2>conftest.er1
12929
grep -v '^ *+' conftest.er1 >conftest.err
12931
cat conftest.err >&5
12932
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12933
(exit $ac_status); } && {
12934
test -z "$ac_c_werror_flag" ||
12935
test ! -s conftest.err
12936
} && test -s conftest.$ac_objext; then
12937
eval "$as_ac_Header=yes"
12939
echo "$as_me: failed program was:" >&5
12940
sed 's/^/| /' conftest.$ac_ext >&5
12942
eval "$as_ac_Header=no"
12945
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12947
ac_res=`eval echo '${'$as_ac_Header'}'`
12948
{ echo "$as_me:$LINENO: result: $ac_res" >&5
12949
echo "${ECHO_T}$ac_res" >&6; }
12950
if test `eval echo '${'$as_ac_Header'}'` = yes; then
12951
cat >>confdefs.h <<_ACEOF
12952
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12960
for ac_header in pthread.h
12962
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12963
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12964
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12965
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12966
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12967
echo $ECHO_N "(cached) $ECHO_C" >&6
12969
ac_res=`eval echo '${'$as_ac_Header'}'`
12970
{ echo "$as_me:$LINENO: result: $ac_res" >&5
12971
echo "${ECHO_T}$ac_res" >&6; }
12973
# Is the header compilable?
12974
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12975
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12976
cat >conftest.$ac_ext <<_ACEOF
12979
cat confdefs.h >>conftest.$ac_ext
12980
cat >>conftest.$ac_ext <<_ACEOF
12981
/* end confdefs.h. */
12982
$ac_includes_default
12983
#include <$ac_header>
12985
rm -f conftest.$ac_objext
12986
if { (ac_try="$ac_compile"
12987
case "(($ac_try" in
12988
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12989
*) ac_try_echo=$ac_try;;
12991
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12992
(eval "$ac_compile") 2>conftest.er1
12994
grep -v '^ *+' conftest.er1 >conftest.err
12996
cat conftest.err >&5
12997
echo "$as_me:$LINENO: \$? = $ac_status" >&5
12998
(exit $ac_status); } && {
12999
test -z "$ac_c_werror_flag" ||
13000
test ! -s conftest.err
13001
} && test -s conftest.$ac_objext; then
13002
ac_header_compiler=yes
13004
echo "$as_me: failed program was:" >&5
13005
sed 's/^/| /' conftest.$ac_ext >&5
13007
ac_header_compiler=no
13010
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13011
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13012
echo "${ECHO_T}$ac_header_compiler" >&6; }
13014
# Is the header present?
13015
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
13016
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13017
cat >conftest.$ac_ext <<_ACEOF
13020
cat confdefs.h >>conftest.$ac_ext
13021
cat >>conftest.$ac_ext <<_ACEOF
13022
/* end confdefs.h. */
13023
#include <$ac_header>
13025
if { (ac_try="$ac_cpp conftest.$ac_ext"
13026
case "(($ac_try" in
13027
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13028
*) ac_try_echo=$ac_try;;
13030
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13031
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13033
grep -v '^ *+' conftest.er1 >conftest.err
13035
cat conftest.err >&5
13036
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13037
(exit $ac_status); } >/dev/null && {
13038
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13039
test ! -s conftest.err
13041
ac_header_preproc=yes
13043
echo "$as_me: failed program was:" >&5
13044
sed 's/^/| /' conftest.$ac_ext >&5
13046
ac_header_preproc=no
13049
rm -f conftest.err conftest.$ac_ext
13050
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13051
echo "${ECHO_T}$ac_header_preproc" >&6; }
13053
# So? What about this header?
13054
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13056
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13057
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13058
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13059
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13060
ac_header_preproc=yes
13063
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13064
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13065
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13066
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13067
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13068
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13069
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13070
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13071
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13072
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13073
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13074
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13076
## -------------------------------------------------------------------------- ##
13077
## Report this to OpenOCD Mailing List <openocd-development@lists.berlios.de> ##
13078
## -------------------------------------------------------------------------- ##
13080
) | sed "s/^/$as_me: WARNING: /" >&2
13083
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
13084
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13085
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13086
echo $ECHO_N "(cached) $ECHO_C" >&6
13088
eval "$as_ac_Header=\$ac_header_preproc"
13090
ac_res=`eval echo '${'$as_ac_Header'}'`
13091
{ echo "$as_me:$LINENO: result: $ac_res" >&5
13092
echo "${ECHO_T}$ac_res" >&6; }
13095
if test `eval echo '${'$as_ac_Header'}'` = yes; then
13096
cat >>confdefs.h <<_ACEOF
13097
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13105
for ac_header in strings.h
13107
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13108
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13109
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
13110
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13111
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13112
echo $ECHO_N "(cached) $ECHO_C" >&6
13114
ac_res=`eval echo '${'$as_ac_Header'}'`
13115
{ echo "$as_me:$LINENO: result: $ac_res" >&5
13116
echo "${ECHO_T}$ac_res" >&6; }
13118
# Is the header compilable?
13119
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
13120
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13121
cat >conftest.$ac_ext <<_ACEOF
13124
cat confdefs.h >>conftest.$ac_ext
13125
cat >>conftest.$ac_ext <<_ACEOF
13126
/* end confdefs.h. */
13127
$ac_includes_default
13128
#include <$ac_header>
13130
rm -f conftest.$ac_objext
13131
if { (ac_try="$ac_compile"
13132
case "(($ac_try" in
13133
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13134
*) ac_try_echo=$ac_try;;
13136
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13137
(eval "$ac_compile") 2>conftest.er1
13139
grep -v '^ *+' conftest.er1 >conftest.err
13141
cat conftest.err >&5
13142
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13143
(exit $ac_status); } && {
13144
test -z "$ac_c_werror_flag" ||
13145
test ! -s conftest.err
13146
} && test -s conftest.$ac_objext; then
13147
ac_header_compiler=yes
13149
echo "$as_me: failed program was:" >&5
13150
sed 's/^/| /' conftest.$ac_ext >&5
13152
ac_header_compiler=no
13155
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13156
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13157
echo "${ECHO_T}$ac_header_compiler" >&6; }
13159
# Is the header present?
13160
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
13161
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13162
cat >conftest.$ac_ext <<_ACEOF
13165
cat confdefs.h >>conftest.$ac_ext
13166
cat >>conftest.$ac_ext <<_ACEOF
13167
/* end confdefs.h. */
13168
#include <$ac_header>
13170
if { (ac_try="$ac_cpp conftest.$ac_ext"
13171
case "(($ac_try" in
13172
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13173
*) ac_try_echo=$ac_try;;
13175
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13176
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13178
grep -v '^ *+' conftest.er1 >conftest.err
13180
cat conftest.err >&5
13181
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13182
(exit $ac_status); } >/dev/null && {
13183
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13184
test ! -s conftest.err
13186
ac_header_preproc=yes
13188
echo "$as_me: failed program was:" >&5
13189
sed 's/^/| /' conftest.$ac_ext >&5
13191
ac_header_preproc=no
13194
rm -f conftest.err conftest.$ac_ext
13195
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13196
echo "${ECHO_T}$ac_header_preproc" >&6; }
13198
# So? What about this header?
13199
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13201
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13202
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13203
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13204
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13205
ac_header_preproc=yes
13208
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13209
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13210
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13211
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13212
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13213
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13214
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13215
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13216
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13217
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13218
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13219
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13221
## -------------------------------------------------------------------------- ##
13222
## Report this to OpenOCD Mailing List <openocd-development@lists.berlios.de> ##
13223
## -------------------------------------------------------------------------- ##
13225
) | sed "s/^/$as_me: WARNING: /" >&2
13228
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
13229
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13230
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13231
echo $ECHO_N "(cached) $ECHO_C" >&6
13233
eval "$as_ac_Header=\$ac_header_preproc"
13235
ac_res=`eval echo '${'$as_ac_Header'}'`
13236
{ echo "$as_me:$LINENO: result: $ac_res" >&5
13237
echo "${ECHO_T}$ac_res" >&6; }
13240
if test `eval echo '${'$as_ac_Header'}'` = yes; then
13241
cat >>confdefs.h <<_ACEOF
13242
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13250
for ac_header in sys/ioctl.h
13252
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13253
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13254
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
13255
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13256
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13257
echo $ECHO_N "(cached) $ECHO_C" >&6
13259
ac_res=`eval echo '${'$as_ac_Header'}'`
13260
{ echo "$as_me:$LINENO: result: $ac_res" >&5
13261
echo "${ECHO_T}$ac_res" >&6; }
13263
# Is the header compilable?
13264
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
13265
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13266
cat >conftest.$ac_ext <<_ACEOF
13269
cat confdefs.h >>conftest.$ac_ext
13270
cat >>conftest.$ac_ext <<_ACEOF
13271
/* end confdefs.h. */
13272
$ac_includes_default
13273
#include <$ac_header>
13275
rm -f conftest.$ac_objext
13276
if { (ac_try="$ac_compile"
13277
case "(($ac_try" in
13278
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13279
*) ac_try_echo=$ac_try;;
13281
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13282
(eval "$ac_compile") 2>conftest.er1
13284
grep -v '^ *+' conftest.er1 >conftest.err
13286
cat conftest.err >&5
13287
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13288
(exit $ac_status); } && {
13289
test -z "$ac_c_werror_flag" ||
13290
test ! -s conftest.err
13291
} && test -s conftest.$ac_objext; then
13292
ac_header_compiler=yes
13294
echo "$as_me: failed program was:" >&5
13295
sed 's/^/| /' conftest.$ac_ext >&5
13297
ac_header_compiler=no
13300
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13301
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13302
echo "${ECHO_T}$ac_header_compiler" >&6; }
13304
# Is the header present?
13305
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
13306
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13307
cat >conftest.$ac_ext <<_ACEOF
13310
cat confdefs.h >>conftest.$ac_ext
13311
cat >>conftest.$ac_ext <<_ACEOF
13312
/* end confdefs.h. */
13313
#include <$ac_header>
13315
if { (ac_try="$ac_cpp conftest.$ac_ext"
13316
case "(($ac_try" in
13317
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13318
*) ac_try_echo=$ac_try;;
13320
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13321
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13323
grep -v '^ *+' conftest.er1 >conftest.err
13325
cat conftest.err >&5
13326
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13327
(exit $ac_status); } >/dev/null && {
13328
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13329
test ! -s conftest.err
13331
ac_header_preproc=yes
13333
echo "$as_me: failed program was:" >&5
13334
sed 's/^/| /' conftest.$ac_ext >&5
13336
ac_header_preproc=no
13339
rm -f conftest.err conftest.$ac_ext
13340
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13341
echo "${ECHO_T}$ac_header_preproc" >&6; }
13343
# So? What about this header?
13344
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13346
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13347
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13348
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13349
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13350
ac_header_preproc=yes
13353
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13354
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13355
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13356
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13357
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13358
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13359
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13360
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13361
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13362
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13363
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13364
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13366
## -------------------------------------------------------------------------- ##
13367
## Report this to OpenOCD Mailing List <openocd-development@lists.berlios.de> ##
13368
## -------------------------------------------------------------------------- ##
13370
) | sed "s/^/$as_me: WARNING: /" >&2
13373
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
13374
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13375
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13376
echo $ECHO_N "(cached) $ECHO_C" >&6
13378
eval "$as_ac_Header=\$ac_header_preproc"
13380
ac_res=`eval echo '${'$as_ac_Header'}'`
13381
{ echo "$as_me:$LINENO: result: $ac_res" >&5
13382
echo "${ECHO_T}$ac_res" >&6; }
13385
if test `eval echo '${'$as_ac_Header'}'` = yes; then
13386
cat >>confdefs.h <<_ACEOF
13387
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13395
for ac_header in sys/param.h
13397
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13398
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13399
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
13400
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13401
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13402
echo $ECHO_N "(cached) $ECHO_C" >&6
13404
ac_res=`eval echo '${'$as_ac_Header'}'`
13405
{ echo "$as_me:$LINENO: result: $ac_res" >&5
13406
echo "${ECHO_T}$ac_res" >&6; }
13408
# Is the header compilable?
13409
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
13410
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13411
cat >conftest.$ac_ext <<_ACEOF
13414
cat confdefs.h >>conftest.$ac_ext
13415
cat >>conftest.$ac_ext <<_ACEOF
13416
/* end confdefs.h. */
13417
$ac_includes_default
13418
#include <$ac_header>
13420
rm -f conftest.$ac_objext
13421
if { (ac_try="$ac_compile"
13422
case "(($ac_try" in
13423
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13424
*) ac_try_echo=$ac_try;;
13426
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13427
(eval "$ac_compile") 2>conftest.er1
13429
grep -v '^ *+' conftest.er1 >conftest.err
13431
cat conftest.err >&5
13432
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13433
(exit $ac_status); } && {
13434
test -z "$ac_c_werror_flag" ||
13435
test ! -s conftest.err
13436
} && test -s conftest.$ac_objext; then
13437
ac_header_compiler=yes
13439
echo "$as_me: failed program was:" >&5
13440
sed 's/^/| /' conftest.$ac_ext >&5
13442
ac_header_compiler=no
13445
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13446
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13447
echo "${ECHO_T}$ac_header_compiler" >&6; }
13449
# Is the header present?
13450
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
13451
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13452
cat >conftest.$ac_ext <<_ACEOF
13455
cat confdefs.h >>conftest.$ac_ext
13456
cat >>conftest.$ac_ext <<_ACEOF
13457
/* end confdefs.h. */
13458
#include <$ac_header>
13460
if { (ac_try="$ac_cpp conftest.$ac_ext"
13461
case "(($ac_try" in
13462
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13463
*) ac_try_echo=$ac_try;;
13465
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13466
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13468
grep -v '^ *+' conftest.er1 >conftest.err
13470
cat conftest.err >&5
13471
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13472
(exit $ac_status); } >/dev/null && {
13473
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13474
test ! -s conftest.err
13476
ac_header_preproc=yes
13478
echo "$as_me: failed program was:" >&5
13479
sed 's/^/| /' conftest.$ac_ext >&5
13481
ac_header_preproc=no
13484
rm -f conftest.err conftest.$ac_ext
13485
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13486
echo "${ECHO_T}$ac_header_preproc" >&6; }
13488
# So? What about this header?
13489
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13491
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13492
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13493
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13494
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13495
ac_header_preproc=yes
13498
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13499
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13500
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13501
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13502
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13503
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13504
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13505
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13506
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13507
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13508
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13509
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13511
## -------------------------------------------------------------------------- ##
13512
## Report this to OpenOCD Mailing List <openocd-development@lists.berlios.de> ##
13513
## -------------------------------------------------------------------------- ##
13515
) | sed "s/^/$as_me: WARNING: /" >&2
13518
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
13519
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13520
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13521
echo $ECHO_N "(cached) $ECHO_C" >&6
13523
eval "$as_ac_Header=\$ac_header_preproc"
13525
ac_res=`eval echo '${'$as_ac_Header'}'`
13526
{ echo "$as_me:$LINENO: result: $ac_res" >&5
13527
echo "${ECHO_T}$ac_res" >&6; }
13530
if test `eval echo '${'$as_ac_Header'}'` = yes; then
13531
cat >>confdefs.h <<_ACEOF
13532
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13540
for ac_header in sys/poll.h
13542
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13543
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13544
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
13545
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13546
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13547
echo $ECHO_N "(cached) $ECHO_C" >&6
13549
ac_res=`eval echo '${'$as_ac_Header'}'`
13550
{ echo "$as_me:$LINENO: result: $ac_res" >&5
13551
echo "${ECHO_T}$ac_res" >&6; }
13553
# Is the header compilable?
13554
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
13555
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13556
cat >conftest.$ac_ext <<_ACEOF
13559
cat confdefs.h >>conftest.$ac_ext
13560
cat >>conftest.$ac_ext <<_ACEOF
13561
/* end confdefs.h. */
13562
$ac_includes_default
13563
#include <$ac_header>
13565
rm -f conftest.$ac_objext
13566
if { (ac_try="$ac_compile"
13567
case "(($ac_try" in
13568
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13569
*) ac_try_echo=$ac_try;;
13571
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13572
(eval "$ac_compile") 2>conftest.er1
13574
grep -v '^ *+' conftest.er1 >conftest.err
13576
cat conftest.err >&5
13577
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13578
(exit $ac_status); } && {
13579
test -z "$ac_c_werror_flag" ||
13580
test ! -s conftest.err
13581
} && test -s conftest.$ac_objext; then
13582
ac_header_compiler=yes
13584
echo "$as_me: failed program was:" >&5
13585
sed 's/^/| /' conftest.$ac_ext >&5
13587
ac_header_compiler=no
13590
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13591
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13592
echo "${ECHO_T}$ac_header_compiler" >&6; }
13594
# Is the header present?
13595
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
13596
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13597
cat >conftest.$ac_ext <<_ACEOF
13600
cat confdefs.h >>conftest.$ac_ext
13601
cat >>conftest.$ac_ext <<_ACEOF
13602
/* end confdefs.h. */
13603
#include <$ac_header>
13605
if { (ac_try="$ac_cpp conftest.$ac_ext"
13606
case "(($ac_try" in
13607
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13608
*) ac_try_echo=$ac_try;;
13610
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13611
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13613
grep -v '^ *+' conftest.er1 >conftest.err
13615
cat conftest.err >&5
13616
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13617
(exit $ac_status); } >/dev/null && {
13618
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13619
test ! -s conftest.err
13621
ac_header_preproc=yes
13623
echo "$as_me: failed program was:" >&5
13624
sed 's/^/| /' conftest.$ac_ext >&5
13626
ac_header_preproc=no
13629
rm -f conftest.err conftest.$ac_ext
13630
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13631
echo "${ECHO_T}$ac_header_preproc" >&6; }
13633
# So? What about this header?
13634
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13636
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13637
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13638
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13639
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13640
ac_header_preproc=yes
13643
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13644
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13645
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13646
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13647
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13648
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13649
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13650
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13651
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13652
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13653
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13654
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13656
## -------------------------------------------------------------------------- ##
13657
## Report this to OpenOCD Mailing List <openocd-development@lists.berlios.de> ##
13658
## -------------------------------------------------------------------------- ##
13660
) | sed "s/^/$as_me: WARNING: /" >&2
13663
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
13664
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13665
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13666
echo $ECHO_N "(cached) $ECHO_C" >&6
13668
eval "$as_ac_Header=\$ac_header_preproc"
13670
ac_res=`eval echo '${'$as_ac_Header'}'`
13671
{ echo "$as_me:$LINENO: result: $ac_res" >&5
13672
echo "${ECHO_T}$ac_res" >&6; }
13675
if test `eval echo '${'$as_ac_Header'}'` = yes; then
13676
cat >>confdefs.h <<_ACEOF
13677
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13685
for ac_header in sys/select.h
13687
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13688
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13689
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
13690
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13691
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13692
echo $ECHO_N "(cached) $ECHO_C" >&6
13694
ac_res=`eval echo '${'$as_ac_Header'}'`
13695
{ echo "$as_me:$LINENO: result: $ac_res" >&5
13696
echo "${ECHO_T}$ac_res" >&6; }
13698
# Is the header compilable?
13699
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
13700
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13701
cat >conftest.$ac_ext <<_ACEOF
13704
cat confdefs.h >>conftest.$ac_ext
13705
cat >>conftest.$ac_ext <<_ACEOF
13706
/* end confdefs.h. */
13707
$ac_includes_default
13708
#include <$ac_header>
13710
rm -f conftest.$ac_objext
13711
if { (ac_try="$ac_compile"
13712
case "(($ac_try" in
13713
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13714
*) ac_try_echo=$ac_try;;
13716
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13717
(eval "$ac_compile") 2>conftest.er1
13719
grep -v '^ *+' conftest.er1 >conftest.err
13721
cat conftest.err >&5
13722
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723
(exit $ac_status); } && {
13724
test -z "$ac_c_werror_flag" ||
13725
test ! -s conftest.err
13726
} && test -s conftest.$ac_objext; then
13727
ac_header_compiler=yes
13729
echo "$as_me: failed program was:" >&5
13730
sed 's/^/| /' conftest.$ac_ext >&5
13732
ac_header_compiler=no
13735
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13736
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13737
echo "${ECHO_T}$ac_header_compiler" >&6; }
13739
# Is the header present?
13740
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
13741
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13742
cat >conftest.$ac_ext <<_ACEOF
13745
cat confdefs.h >>conftest.$ac_ext
13746
cat >>conftest.$ac_ext <<_ACEOF
13747
/* end confdefs.h. */
13748
#include <$ac_header>
13750
if { (ac_try="$ac_cpp conftest.$ac_ext"
13751
case "(($ac_try" in
13752
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13753
*) ac_try_echo=$ac_try;;
13755
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13756
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13758
grep -v '^ *+' conftest.er1 >conftest.err
13760
cat conftest.err >&5
13761
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13762
(exit $ac_status); } >/dev/null && {
13763
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13764
test ! -s conftest.err
13766
ac_header_preproc=yes
13768
echo "$as_me: failed program was:" >&5
13769
sed 's/^/| /' conftest.$ac_ext >&5
13771
ac_header_preproc=no
13774
rm -f conftest.err conftest.$ac_ext
13775
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13776
echo "${ECHO_T}$ac_header_preproc" >&6; }
13778
# So? What about this header?
13779
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13781
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13782
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13783
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13784
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13785
ac_header_preproc=yes
13788
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13789
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13790
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13791
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13792
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13793
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13794
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13795
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13796
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13797
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13798
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13799
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13801
## -------------------------------------------------------------------------- ##
13802
## Report this to OpenOCD Mailing List <openocd-development@lists.berlios.de> ##
13803
## -------------------------------------------------------------------------- ##
13805
) | sed "s/^/$as_me: WARNING: /" >&2
13808
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
13809
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13810
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13811
echo $ECHO_N "(cached) $ECHO_C" >&6
13813
eval "$as_ac_Header=\$ac_header_preproc"
13815
ac_res=`eval echo '${'$as_ac_Header'}'`
13816
{ echo "$as_me:$LINENO: result: $ac_res" >&5
13817
echo "${ECHO_T}$ac_res" >&6; }
13820
if test `eval echo '${'$as_ac_Header'}'` = yes; then
13821
cat >>confdefs.h <<_ACEOF
13822
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13830
for ac_header in sys/stat.h
13832
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13833
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13834
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
13835
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13836
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13837
echo $ECHO_N "(cached) $ECHO_C" >&6
13839
ac_res=`eval echo '${'$as_ac_Header'}'`
13840
{ echo "$as_me:$LINENO: result: $ac_res" >&5
13841
echo "${ECHO_T}$ac_res" >&6; }
13843
# Is the header compilable?
13844
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
13845
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13846
cat >conftest.$ac_ext <<_ACEOF
13849
cat confdefs.h >>conftest.$ac_ext
13850
cat >>conftest.$ac_ext <<_ACEOF
13851
/* end confdefs.h. */
13852
$ac_includes_default
13853
#include <$ac_header>
13855
rm -f conftest.$ac_objext
13856
if { (ac_try="$ac_compile"
13857
case "(($ac_try" in
13858
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13859
*) ac_try_echo=$ac_try;;
13861
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13862
(eval "$ac_compile") 2>conftest.er1
13864
grep -v '^ *+' conftest.er1 >conftest.err
13866
cat conftest.err >&5
13867
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13868
(exit $ac_status); } && {
13869
test -z "$ac_c_werror_flag" ||
13870
test ! -s conftest.err
13871
} && test -s conftest.$ac_objext; then
13872
ac_header_compiler=yes
13874
echo "$as_me: failed program was:" >&5
13875
sed 's/^/| /' conftest.$ac_ext >&5
13877
ac_header_compiler=no
13880
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13881
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13882
echo "${ECHO_T}$ac_header_compiler" >&6; }
13884
# Is the header present?
13885
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
13886
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13887
cat >conftest.$ac_ext <<_ACEOF
13890
cat confdefs.h >>conftest.$ac_ext
13891
cat >>conftest.$ac_ext <<_ACEOF
13892
/* end confdefs.h. */
13893
#include <$ac_header>
13895
if { (ac_try="$ac_cpp conftest.$ac_ext"
13896
case "(($ac_try" in
13897
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13898
*) ac_try_echo=$ac_try;;
13900
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13901
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13903
grep -v '^ *+' conftest.er1 >conftest.err
13905
cat conftest.err >&5
13906
echo "$as_me:$LINENO: \$? = $ac_status" >&5
13907
(exit $ac_status); } >/dev/null && {
13908
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13909
test ! -s conftest.err
13911
ac_header_preproc=yes
13913
echo "$as_me: failed program was:" >&5
13914
sed 's/^/| /' conftest.$ac_ext >&5
13916
ac_header_preproc=no
13919
rm -f conftest.err conftest.$ac_ext
13920
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13921
echo "${ECHO_T}$ac_header_preproc" >&6; }
13923
# So? What about this header?
13924
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13926
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13927
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13928
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13929
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13930
ac_header_preproc=yes
13933
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13934
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13935
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13936
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13937
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13938
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13939
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13940
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13941
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13942
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13943
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13944
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13946
## -------------------------------------------------------------------------- ##
13947
## Report this to OpenOCD Mailing List <openocd-development@lists.berlios.de> ##
13948
## -------------------------------------------------------------------------- ##
13950
) | sed "s/^/$as_me: WARNING: /" >&2
13953
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
13954
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13955
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13956
echo $ECHO_N "(cached) $ECHO_C" >&6
13958
eval "$as_ac_Header=\$ac_header_preproc"
13960
ac_res=`eval echo '${'$as_ac_Header'}'`
13961
{ echo "$as_me:$LINENO: result: $ac_res" >&5
13962
echo "${ECHO_T}$ac_res" >&6; }
13965
if test `eval echo '${'$as_ac_Header'}'` = yes; then
13966
cat >>confdefs.h <<_ACEOF
13967
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13975
for ac_header in sys/time.h
13977
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13978
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13979
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
13980
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13981
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13982
echo $ECHO_N "(cached) $ECHO_C" >&6
13984
ac_res=`eval echo '${'$as_ac_Header'}'`
13985
{ echo "$as_me:$LINENO: result: $ac_res" >&5
13986
echo "${ECHO_T}$ac_res" >&6; }
13988
# Is the header compilable?
13989
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
13990
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13991
cat >conftest.$ac_ext <<_ACEOF
13994
cat confdefs.h >>conftest.$ac_ext
13995
cat >>conftest.$ac_ext <<_ACEOF
13996
/* end confdefs.h. */
13997
$ac_includes_default
13998
#include <$ac_header>
14000
rm -f conftest.$ac_objext
14001
if { (ac_try="$ac_compile"
14002
case "(($ac_try" in
14003
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14004
*) ac_try_echo=$ac_try;;
14006
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14007
(eval "$ac_compile") 2>conftest.er1
14009
grep -v '^ *+' conftest.er1 >conftest.err
14011
cat conftest.err >&5
14012
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14013
(exit $ac_status); } && {
14014
test -z "$ac_c_werror_flag" ||
14015
test ! -s conftest.err
14016
} && test -s conftest.$ac_objext; then
14017
ac_header_compiler=yes
14019
echo "$as_me: failed program was:" >&5
14020
sed 's/^/| /' conftest.$ac_ext >&5
14022
ac_header_compiler=no
14025
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14026
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14027
echo "${ECHO_T}$ac_header_compiler" >&6; }
14029
# Is the header present?
14030
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14031
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14032
cat >conftest.$ac_ext <<_ACEOF
14035
cat confdefs.h >>conftest.$ac_ext
14036
cat >>conftest.$ac_ext <<_ACEOF
14037
/* end confdefs.h. */
14038
#include <$ac_header>
14040
if { (ac_try="$ac_cpp conftest.$ac_ext"
14041
case "(($ac_try" in
14042
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14043
*) ac_try_echo=$ac_try;;
14045
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14046
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14048
grep -v '^ *+' conftest.er1 >conftest.err
14050
cat conftest.err >&5
14051
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14052
(exit $ac_status); } >/dev/null && {
14053
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14054
test ! -s conftest.err
14056
ac_header_preproc=yes
14058
echo "$as_me: failed program was:" >&5
14059
sed 's/^/| /' conftest.$ac_ext >&5
14061
ac_header_preproc=no
14064
rm -f conftest.err conftest.$ac_ext
14065
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14066
echo "${ECHO_T}$ac_header_preproc" >&6; }
14068
# So? What about this header?
14069
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14071
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14072
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14073
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14074
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14075
ac_header_preproc=yes
14078
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14079
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14080
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14081
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14082
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14083
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14084
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14085
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14086
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14087
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14088
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14089
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14091
## -------------------------------------------------------------------------- ##
14092
## Report this to OpenOCD Mailing List <openocd-development@lists.berlios.de> ##
14093
## -------------------------------------------------------------------------- ##
14095
) | sed "s/^/$as_me: WARNING: /" >&2
14098
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14099
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14100
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14101
echo $ECHO_N "(cached) $ECHO_C" >&6
14103
eval "$as_ac_Header=\$ac_header_preproc"
14105
ac_res=`eval echo '${'$as_ac_Header'}'`
14106
{ echo "$as_me:$LINENO: result: $ac_res" >&5
14107
echo "${ECHO_T}$ac_res" >&6; }
14110
if test `eval echo '${'$as_ac_Header'}'` = yes; then
14111
cat >>confdefs.h <<_ACEOF
14112
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14120
for ac_header in sys/types.h
14122
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14123
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14124
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14125
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14126
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14127
echo $ECHO_N "(cached) $ECHO_C" >&6
14129
ac_res=`eval echo '${'$as_ac_Header'}'`
14130
{ echo "$as_me:$LINENO: result: $ac_res" >&5
14131
echo "${ECHO_T}$ac_res" >&6; }
14133
# Is the header compilable?
14134
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14135
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14136
cat >conftest.$ac_ext <<_ACEOF
14139
cat confdefs.h >>conftest.$ac_ext
14140
cat >>conftest.$ac_ext <<_ACEOF
14141
/* end confdefs.h. */
14142
$ac_includes_default
14143
#include <$ac_header>
14145
rm -f conftest.$ac_objext
14146
if { (ac_try="$ac_compile"
14147
case "(($ac_try" in
14148
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14149
*) ac_try_echo=$ac_try;;
14151
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14152
(eval "$ac_compile") 2>conftest.er1
14154
grep -v '^ *+' conftest.er1 >conftest.err
14156
cat conftest.err >&5
14157
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14158
(exit $ac_status); } && {
14159
test -z "$ac_c_werror_flag" ||
14160
test ! -s conftest.err
14161
} && test -s conftest.$ac_objext; then
14162
ac_header_compiler=yes
14164
echo "$as_me: failed program was:" >&5
14165
sed 's/^/| /' conftest.$ac_ext >&5
14167
ac_header_compiler=no
14170
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14171
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14172
echo "${ECHO_T}$ac_header_compiler" >&6; }
14174
# Is the header present?
14175
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14176
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14177
cat >conftest.$ac_ext <<_ACEOF
14180
cat confdefs.h >>conftest.$ac_ext
14181
cat >>conftest.$ac_ext <<_ACEOF
14182
/* end confdefs.h. */
14183
#include <$ac_header>
14185
if { (ac_try="$ac_cpp conftest.$ac_ext"
14186
case "(($ac_try" in
14187
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14188
*) ac_try_echo=$ac_try;;
14190
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14191
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14193
grep -v '^ *+' conftest.er1 >conftest.err
14195
cat conftest.err >&5
14196
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14197
(exit $ac_status); } >/dev/null && {
14198
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14199
test ! -s conftest.err
14201
ac_header_preproc=yes
14203
echo "$as_me: failed program was:" >&5
14204
sed 's/^/| /' conftest.$ac_ext >&5
14206
ac_header_preproc=no
14209
rm -f conftest.err conftest.$ac_ext
14210
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14211
echo "${ECHO_T}$ac_header_preproc" >&6; }
14213
# So? What about this header?
14214
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14216
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14217
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14218
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14219
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14220
ac_header_preproc=yes
14223
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14224
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14225
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14226
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14227
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14228
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14229
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14230
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14231
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14232
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14233
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14234
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14236
## -------------------------------------------------------------------------- ##
14237
## Report this to OpenOCD Mailing List <openocd-development@lists.berlios.de> ##
14238
## -------------------------------------------------------------------------- ##
14240
) | sed "s/^/$as_me: WARNING: /" >&2
14243
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14244
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14245
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14246
echo $ECHO_N "(cached) $ECHO_C" >&6
14248
eval "$as_ac_Header=\$ac_header_preproc"
14250
ac_res=`eval echo '${'$as_ac_Header'}'`
14251
{ echo "$as_me:$LINENO: result: $ac_res" >&5
14252
echo "${ECHO_T}$ac_res" >&6; }
14255
if test `eval echo '${'$as_ac_Header'}'` = yes; then
14256
cat >>confdefs.h <<_ACEOF
14257
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14265
for ac_header in unistd.h
14267
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14268
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14269
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14270
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14271
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14272
echo $ECHO_N "(cached) $ECHO_C" >&6
14274
ac_res=`eval echo '${'$as_ac_Header'}'`
14275
{ echo "$as_me:$LINENO: result: $ac_res" >&5
14276
echo "${ECHO_T}$ac_res" >&6; }
14278
# Is the header compilable?
14279
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14280
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14281
cat >conftest.$ac_ext <<_ACEOF
14284
cat confdefs.h >>conftest.$ac_ext
14285
cat >>conftest.$ac_ext <<_ACEOF
14286
/* end confdefs.h. */
14287
$ac_includes_default
14288
#include <$ac_header>
14290
rm -f conftest.$ac_objext
14291
if { (ac_try="$ac_compile"
14292
case "(($ac_try" in
14293
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14294
*) ac_try_echo=$ac_try;;
14296
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14297
(eval "$ac_compile") 2>conftest.er1
14299
grep -v '^ *+' conftest.er1 >conftest.err
14301
cat conftest.err >&5
14302
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14303
(exit $ac_status); } && {
14304
test -z "$ac_c_werror_flag" ||
14305
test ! -s conftest.err
14306
} && test -s conftest.$ac_objext; then
14307
ac_header_compiler=yes
14309
echo "$as_me: failed program was:" >&5
14310
sed 's/^/| /' conftest.$ac_ext >&5
14312
ac_header_compiler=no
14315
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14316
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14317
echo "${ECHO_T}$ac_header_compiler" >&6; }
14319
# Is the header present?
14320
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14321
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14322
cat >conftest.$ac_ext <<_ACEOF
14325
cat confdefs.h >>conftest.$ac_ext
14326
cat >>conftest.$ac_ext <<_ACEOF
14327
/* end confdefs.h. */
14328
#include <$ac_header>
14330
if { (ac_try="$ac_cpp conftest.$ac_ext"
14331
case "(($ac_try" in
14332
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14333
*) ac_try_echo=$ac_try;;
14335
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14336
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14338
grep -v '^ *+' conftest.er1 >conftest.err
14340
cat conftest.err >&5
14341
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14342
(exit $ac_status); } >/dev/null && {
14343
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14344
test ! -s conftest.err
14346
ac_header_preproc=yes
14348
echo "$as_me: failed program was:" >&5
14349
sed 's/^/| /' conftest.$ac_ext >&5
14351
ac_header_preproc=no
14354
rm -f conftest.err conftest.$ac_ext
14355
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14356
echo "${ECHO_T}$ac_header_preproc" >&6; }
14358
# So? What about this header?
14359
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14361
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14362
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14363
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14364
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14365
ac_header_preproc=yes
14368
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14369
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14370
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14371
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14372
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14373
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14374
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14375
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14376
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14377
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14378
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14379
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14381
## -------------------------------------------------------------------------- ##
14382
## Report this to OpenOCD Mailing List <openocd-development@lists.berlios.de> ##
14383
## -------------------------------------------------------------------------- ##
14385
) | sed "s/^/$as_me: WARNING: /" >&2
14388
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14389
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14390
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14391
echo $ECHO_N "(cached) $ECHO_C" >&6
14393
eval "$as_ac_Header=\$ac_header_preproc"
14395
ac_res=`eval echo '${'$as_ac_Header'}'`
14396
{ echo "$as_me:$LINENO: result: $ac_res" >&5
14397
echo "${ECHO_T}$ac_res" >&6; }
14400
if test `eval echo '${'$as_ac_Header'}'` = yes; then
14401
cat >>confdefs.h <<_ACEOF
14402
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14410
for ac_header in net/if.h
14412
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14413
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14414
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14415
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14416
echo $ECHO_N "(cached) $ECHO_C" >&6
14418
cat >conftest.$ac_ext <<_ACEOF
14421
cat confdefs.h >>conftest.$ac_ext
14422
cat >>conftest.$ac_ext <<_ACEOF
14423
/* end confdefs.h. */
14425
#ifdef STDC_HEADERS
14426
# include <stdlib.h>
14427
# include <stddef.h>
14429
# ifdef HAVE_STDLIB_H
14430
# include <stdlib.h>
14433
#ifdef HAVE_SYS_SOCKET_H
14434
# include <sys/socket.h>
14438
#include <$ac_header>
14440
rm -f conftest.$ac_objext
14441
if { (ac_try="$ac_compile"
14442
case "(($ac_try" in
14443
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14444
*) ac_try_echo=$ac_try;;
14446
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14447
(eval "$ac_compile") 2>conftest.er1
14449
grep -v '^ *+' conftest.er1 >conftest.err
14451
cat conftest.err >&5
14452
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453
(exit $ac_status); } && {
14454
test -z "$ac_c_werror_flag" ||
14455
test ! -s conftest.err
14456
} && test -s conftest.$ac_objext; then
14457
eval "$as_ac_Header=yes"
14459
echo "$as_me: failed program was:" >&5
14460
sed 's/^/| /' conftest.$ac_ext >&5
14462
eval "$as_ac_Header=no"
14465
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14467
ac_res=`eval echo '${'$as_ac_Header'}'`
14468
{ echo "$as_me:$LINENO: result: $ac_res" >&5
14469
echo "${ECHO_T}$ac_res" >&6; }
14470
if test `eval echo '${'$as_ac_Header'}'` = yes; then
14471
cat >>confdefs.h <<_ACEOF
14472
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14481
{ echo "$as_me:$LINENO: checking whether to enable assertions" >&5
14482
echo $ECHO_N "checking whether to enable assertions... $ECHO_C" >&6; }
14483
# Check whether --enable-assert was given.
14484
if test "${enable_assert+set}" = set; then
14485
enableval=$enable_assert; { echo "$as_me:$LINENO: result: no" >&5
14486
echo "${ECHO_T}no" >&6; }
14488
cat >>confdefs.h <<\_ACEOF
14493
{ echo "$as_me:$LINENO: result: yes" >&5
14494
echo "${ECHO_T}yes" >&6; }
14498
{ echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
14499
echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; }
14500
if test "${ac_cv_header_stdbool_h+set}" = set; then
14501
echo $ECHO_N "(cached) $ECHO_C" >&6
14503
cat >conftest.$ac_ext <<_ACEOF
14506
cat confdefs.h >>conftest.$ac_ext
14507
cat >>conftest.$ac_ext <<_ACEOF
14508
/* end confdefs.h. */
14510
#include <stdbool.h>
14512
"error: bool is not defined"
14515
"error: false is not defined"
14518
"error: false is not 0"
14521
"error: true is not defined"
14524
"error: true is not 1"
14526
#ifndef __bool_true_false_are_defined
14527
"error: __bool_true_false_are_defined is not defined"
14530
struct s { _Bool s: 1; _Bool t; } s;
14532
char a[true == 1 ? 1 : -1];
14533
char b[false == 0 ? 1 : -1];
14534
char c[__bool_true_false_are_defined == 1 ? 1 : -1];
14535
char d[(bool) 0.5 == true ? 1 : -1];
14537
char f[(_Bool) 0.0 == false ? 1 : -1];
14539
char h[sizeof (_Bool)];
14540
char i[sizeof s.t];
14541
enum { j = false, k = true, l = false * true, m = true * 256 };
14543
char o[sizeof n == m * sizeof n[0] ? 1 : -1];
14544
char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
14545
# if defined __xlc__ || defined __GNUC__
14546
/* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
14547
reported by James Lemley on 2005-10-05; see
14548
http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
14549
This test is not quite right, since xlc is allowed to
14550
reject this program, as the initializer for xlcbug is
14551
not one of the forms that C requires support for.
14552
However, doing the test right would require a runtime
14553
test, and that would make cross-compilation harder.
14554
Let us hope that IBM fixes the xlc bug, and also adds
14555
support for this kind of constant expression. In the
14556
meantime, this test will reject xlc, which is OK, since
14557
our stdbool.h substitute should suffice. We also test
14558
this with GCC, where it should work, to detect more
14559
quickly whether someone messes up the test in the
14561
char digs[] = "0123456789";
14562
int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
14564
/* Catch a bug in an HP-UX C compiler. See
14565
http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
14566
http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
14577
/* Refer to every declared value, to avoid compiler optimizations. */
14578
return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
14579
+ !m + !n + !o + !p + !q + !pq);
14585
rm -f conftest.$ac_objext
14586
if { (ac_try="$ac_compile"
14587
case "(($ac_try" in
14588
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14589
*) ac_try_echo=$ac_try;;
14591
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14592
(eval "$ac_compile") 2>conftest.er1
14594
grep -v '^ *+' conftest.er1 >conftest.err
14596
cat conftest.err >&5
14597
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14598
(exit $ac_status); } && {
14599
test -z "$ac_c_werror_flag" ||
14600
test ! -s conftest.err
14601
} && test -s conftest.$ac_objext; then
14602
ac_cv_header_stdbool_h=yes
14604
echo "$as_me: failed program was:" >&5
14605
sed 's/^/| /' conftest.$ac_ext >&5
14607
ac_cv_header_stdbool_h=no
14610
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14612
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
14613
echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; }
14614
{ echo "$as_me:$LINENO: checking for _Bool" >&5
14615
echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; }
14616
if test "${ac_cv_type__Bool+set}" = set; then
14617
echo $ECHO_N "(cached) $ECHO_C" >&6
14619
cat >conftest.$ac_ext <<_ACEOF
14622
cat confdefs.h >>conftest.$ac_ext
14623
cat >>conftest.$ac_ext <<_ACEOF
14624
/* end confdefs.h. */
14625
$ac_includes_default
14626
typedef _Bool ac__type_new_;
14630
if ((ac__type_new_ *) 0)
14632
if (sizeof (ac__type_new_))
14638
rm -f conftest.$ac_objext
14639
if { (ac_try="$ac_compile"
14640
case "(($ac_try" in
14641
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14642
*) ac_try_echo=$ac_try;;
14644
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14645
(eval "$ac_compile") 2>conftest.er1
14647
grep -v '^ *+' conftest.er1 >conftest.err
14649
cat conftest.err >&5
14650
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14651
(exit $ac_status); } && {
14652
test -z "$ac_c_werror_flag" ||
14653
test ! -s conftest.err
14654
} && test -s conftest.$ac_objext; then
14655
ac_cv_type__Bool=yes
14657
echo "$as_me: failed program was:" >&5
14658
sed 's/^/| /' conftest.$ac_ext >&5
14660
ac_cv_type__Bool=no
14663
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14665
{ echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
14666
echo "${ECHO_T}$ac_cv_type__Bool" >&6; }
14667
if test $ac_cv_type__Bool = yes; then
14669
cat >>confdefs.h <<_ACEOF
14670
#define HAVE__BOOL 1
14676
if test $ac_cv_header_stdbool_h = yes; then
14678
cat >>confdefs.h <<\_ACEOF
14679
#define HAVE_STDBOOL_H 1
14684
{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14685
echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14686
if test "${ac_cv_header_time+set}" = set; then
14687
echo $ECHO_N "(cached) $ECHO_C" >&6
14689
cat >conftest.$ac_ext <<_ACEOF
14692
cat confdefs.h >>conftest.$ac_ext
14693
cat >>conftest.$ac_ext <<_ACEOF
14694
/* end confdefs.h. */
14695
#include <sys/types.h>
14696
#include <sys/time.h>
14702
if ((struct tm *) 0)
14708
rm -f conftest.$ac_objext
14709
if { (ac_try="$ac_compile"
14710
case "(($ac_try" in
14711
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14712
*) ac_try_echo=$ac_try;;
14714
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14715
(eval "$ac_compile") 2>conftest.er1
14717
grep -v '^ *+' conftest.er1 >conftest.err
14719
cat conftest.err >&5
14720
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14721
(exit $ac_status); } && {
14722
test -z "$ac_c_werror_flag" ||
14723
test ! -s conftest.err
14724
} && test -s conftest.$ac_objext; then
14725
ac_cv_header_time=yes
14727
echo "$as_me: failed program was:" >&5
14728
sed 's/^/| /' conftest.$ac_ext >&5
14730
ac_cv_header_time=no
14733
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14735
{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14736
echo "${ECHO_T}$ac_cv_header_time" >&6; }
14737
if test $ac_cv_header_time = yes; then
14739
cat >>confdefs.h <<\_ACEOF
14740
#define TIME_WITH_SYS_TIME 1
14746
{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
14747
echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
14748
if test "${ac_cv_c_bigendian+set}" = set; then
14749
echo $ECHO_N "(cached) $ECHO_C" >&6
14751
# See if sys/param.h defines the BYTE_ORDER macro.
14752
cat >conftest.$ac_ext <<_ACEOF
14755
cat confdefs.h >>conftest.$ac_ext
14756
cat >>conftest.$ac_ext <<_ACEOF
14757
/* end confdefs.h. */
14758
#include <sys/types.h>
14759
#include <sys/param.h>
14764
#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
14765
&& BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
14766
bogus endian macros
14773
rm -f conftest.$ac_objext
14774
if { (ac_try="$ac_compile"
14775
case "(($ac_try" in
14776
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14777
*) ac_try_echo=$ac_try;;
14779
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14780
(eval "$ac_compile") 2>conftest.er1
14782
grep -v '^ *+' conftest.er1 >conftest.err
14784
cat conftest.err >&5
14785
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14786
(exit $ac_status); } && {
14787
test -z "$ac_c_werror_flag" ||
14788
test ! -s conftest.err
14789
} && test -s conftest.$ac_objext; then
14790
# It does; now see whether it defined to BIG_ENDIAN or not.
14791
cat >conftest.$ac_ext <<_ACEOF
14794
cat confdefs.h >>conftest.$ac_ext
14795
cat >>conftest.$ac_ext <<_ACEOF
14796
/* end confdefs.h. */
14797
#include <sys/types.h>
14798
#include <sys/param.h>
14803
#if BYTE_ORDER != BIG_ENDIAN
14811
rm -f conftest.$ac_objext
14812
if { (ac_try="$ac_compile"
14813
case "(($ac_try" in
14814
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14815
*) ac_try_echo=$ac_try;;
14817
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14818
(eval "$ac_compile") 2>conftest.er1
14820
grep -v '^ *+' conftest.er1 >conftest.err
14822
cat conftest.err >&5
14823
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14824
(exit $ac_status); } && {
14825
test -z "$ac_c_werror_flag" ||
14826
test ! -s conftest.err
14827
} && test -s conftest.$ac_objext; then
14828
ac_cv_c_bigendian=yes
14830
echo "$as_me: failed program was:" >&5
14831
sed 's/^/| /' conftest.$ac_ext >&5
14833
ac_cv_c_bigendian=no
14836
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14838
echo "$as_me: failed program was:" >&5
14839
sed 's/^/| /' conftest.$ac_ext >&5
14841
# It does not; compile a test program.
14842
if test "$cross_compiling" = yes; then
14843
# try to guess the endianness by grepping values into an object file
14844
ac_cv_c_bigendian=unknown
14845
cat >conftest.$ac_ext <<_ACEOF
14848
cat confdefs.h >>conftest.$ac_ext
14849
cat >>conftest.$ac_ext <<_ACEOF
14850
/* end confdefs.h. */
14851
short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14852
short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
14853
void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
14854
short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14855
short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
14856
void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
14860
_ascii (); _ebcdic ();
14865
rm -f conftest.$ac_objext
14866
if { (ac_try="$ac_compile"
14867
case "(($ac_try" in
14868
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14869
*) ac_try_echo=$ac_try;;
14871
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14872
(eval "$ac_compile") 2>conftest.er1
14874
grep -v '^ *+' conftest.er1 >conftest.err
14876
cat conftest.err >&5
14877
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14878
(exit $ac_status); } && {
14879
test -z "$ac_c_werror_flag" ||
14880
test ! -s conftest.err
14881
} && test -s conftest.$ac_objext; then
14882
if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
14883
ac_cv_c_bigendian=yes
14885
if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14886
if test "$ac_cv_c_bigendian" = unknown; then
14887
ac_cv_c_bigendian=no
14889
# finding both strings is unlikely to happen, but who knows?
14890
ac_cv_c_bigendian=unknown
14894
echo "$as_me: failed program was:" >&5
14895
sed 's/^/| /' conftest.$ac_ext >&5
14900
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14902
cat >conftest.$ac_ext <<_ACEOF
14905
cat confdefs.h >>conftest.$ac_ext
14906
cat >>conftest.$ac_ext <<_ACEOF
14907
/* end confdefs.h. */
14908
$ac_includes_default
14913
/* Are we little or big endian? From Harbison&Steele. */
14917
char c[sizeof (long int)];
14920
return u.c[sizeof (long int) - 1] == 1;
14926
rm -f conftest$ac_exeext
14927
if { (ac_try="$ac_link"
14928
case "(($ac_try" in
14929
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14930
*) ac_try_echo=$ac_try;;
14932
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14933
(eval "$ac_link") 2>&5
14935
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14936
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14937
{ (case "(($ac_try" in
14938
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14939
*) ac_try_echo=$ac_try;;
14941
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14942
(eval "$ac_try") 2>&5
14944
echo "$as_me:$LINENO: \$? = $ac_status" >&5
14945
(exit $ac_status); }; }; then
14946
ac_cv_c_bigendian=no
14948
echo "$as_me: program exited with status $ac_status" >&5
14949
echo "$as_me: failed program was:" >&5
14950
sed 's/^/| /' conftest.$ac_ext >&5
14952
( exit $ac_status )
14953
ac_cv_c_bigendian=yes
14955
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14961
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14963
{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14964
echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
14965
case $ac_cv_c_bigendian in
14968
cat >>confdefs.h <<\_ACEOF
14969
#define WORDS_BIGENDIAN 1
14975
{ { echo "$as_me:$LINENO: error: unknown endianness
14976
presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14977
echo "$as_me: error: unknown endianness
14978
presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14979
{ (exit 1); exit 1; }; } ;;
14984
for ac_func in strndup
14986
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14987
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14988
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14989
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14990
echo $ECHO_N "(cached) $ECHO_C" >&6
14992
cat >conftest.$ac_ext <<_ACEOF
14995
cat confdefs.h >>conftest.$ac_ext
14996
cat >>conftest.$ac_ext <<_ACEOF
14997
/* end confdefs.h. */
14998
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14999
For example, HP-UX 11i <limits.h> declares gettimeofday. */
15000
#define $ac_func innocuous_$ac_func
15002
/* System header to define __stub macros and hopefully few prototypes,
15003
which can conflict with char $ac_func (); below.
15004
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15005
<limits.h> exists even on freestanding compilers. */
15008
# include <limits.h>
15010
# include <assert.h>
15015
/* Override any GCC internal prototype to avoid an error.
15016
Use char because int might match the return type of a GCC
15017
builtin and then its argument prototype would still apply. */
15022
/* The GNU C library defines this for functions which it implements
15023
to always fail with ENOSYS. Some functions are actually named
15024
something starting with __ and the normal name is an alias. */
15025
#if defined __stub_$ac_func || defined __stub___$ac_func
15032
return $ac_func ();
15037
rm -f conftest.$ac_objext conftest$ac_exeext
15038
if { (ac_try="$ac_link"
15039
case "(($ac_try" in
15040
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15041
*) ac_try_echo=$ac_try;;
15043
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15044
(eval "$ac_link") 2>conftest.er1
15046
grep -v '^ *+' conftest.er1 >conftest.err
15048
cat conftest.err >&5
15049
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15050
(exit $ac_status); } && {
15051
test -z "$ac_c_werror_flag" ||
15052
test ! -s conftest.err
15053
} && test -s conftest$ac_exeext &&
15054
$as_test_x conftest$ac_exeext; then
15055
eval "$as_ac_var=yes"
15057
echo "$as_me: failed program was:" >&5
15058
sed 's/^/| /' conftest.$ac_ext >&5
15060
eval "$as_ac_var=no"
15063
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15064
conftest$ac_exeext conftest.$ac_ext
15066
ac_res=`eval echo '${'$as_ac_var'}'`
15067
{ echo "$as_me:$LINENO: result: $ac_res" >&5
15068
echo "${ECHO_T}$ac_res" >&6; }
15069
if test `eval echo '${'$as_ac_var'}'` = yes; then
15070
cat >>confdefs.h <<_ACEOF
15071
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15078
for ac_func in strnlen
15080
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15081
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
15082
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15083
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15084
echo $ECHO_N "(cached) $ECHO_C" >&6
15086
cat >conftest.$ac_ext <<_ACEOF
15089
cat confdefs.h >>conftest.$ac_ext
15090
cat >>conftest.$ac_ext <<_ACEOF
15091
/* end confdefs.h. */
15092
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15093
For example, HP-UX 11i <limits.h> declares gettimeofday. */
15094
#define $ac_func innocuous_$ac_func
15096
/* System header to define __stub macros and hopefully few prototypes,
15097
which can conflict with char $ac_func (); below.
15098
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15099
<limits.h> exists even on freestanding compilers. */
15102
# include <limits.h>
15104
# include <assert.h>
15109
/* Override any GCC internal prototype to avoid an error.
15110
Use char because int might match the return type of a GCC
15111
builtin and then its argument prototype would still apply. */
15116
/* The GNU C library defines this for functions which it implements
15117
to always fail with ENOSYS. Some functions are actually named
15118
something starting with __ and the normal name is an alias. */
15119
#if defined __stub_$ac_func || defined __stub___$ac_func
15126
return $ac_func ();
15131
rm -f conftest.$ac_objext conftest$ac_exeext
15132
if { (ac_try="$ac_link"
15133
case "(($ac_try" in
15134
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15135
*) ac_try_echo=$ac_try;;
15137
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15138
(eval "$ac_link") 2>conftest.er1
15140
grep -v '^ *+' conftest.er1 >conftest.err
15142
cat conftest.err >&5
15143
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15144
(exit $ac_status); } && {
15145
test -z "$ac_c_werror_flag" ||
15146
test ! -s conftest.err
15147
} && test -s conftest$ac_exeext &&
15148
$as_test_x conftest$ac_exeext; then
15149
eval "$as_ac_var=yes"
15151
echo "$as_me: failed program was:" >&5
15152
sed 's/^/| /' conftest.$ac_ext >&5
15154
eval "$as_ac_var=no"
15157
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15158
conftest$ac_exeext conftest.$ac_ext
15160
ac_res=`eval echo '${'$as_ac_var'}'`
15161
{ echo "$as_me:$LINENO: result: $ac_res" >&5
15162
echo "${ECHO_T}$ac_res" >&6; }
15163
if test `eval echo '${'$as_ac_var'}'` = yes; then
15164
cat >>confdefs.h <<_ACEOF
15165
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15172
for ac_func in gettimeofday
15174
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15175
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
15176
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15177
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15178
echo $ECHO_N "(cached) $ECHO_C" >&6
15180
cat >conftest.$ac_ext <<_ACEOF
15183
cat confdefs.h >>conftest.$ac_ext
15184
cat >>conftest.$ac_ext <<_ACEOF
15185
/* end confdefs.h. */
15186
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15187
For example, HP-UX 11i <limits.h> declares gettimeofday. */
15188
#define $ac_func innocuous_$ac_func
15190
/* System header to define __stub macros and hopefully few prototypes,
15191
which can conflict with char $ac_func (); below.
15192
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15193
<limits.h> exists even on freestanding compilers. */
15196
# include <limits.h>
15198
# include <assert.h>
15203
/* Override any GCC internal prototype to avoid an error.
15204
Use char because int might match the return type of a GCC
15205
builtin and then its argument prototype would still apply. */
15210
/* The GNU C library defines this for functions which it implements
15211
to always fail with ENOSYS. Some functions are actually named
15212
something starting with __ and the normal name is an alias. */
15213
#if defined __stub_$ac_func || defined __stub___$ac_func
15220
return $ac_func ();
15225
rm -f conftest.$ac_objext conftest$ac_exeext
15226
if { (ac_try="$ac_link"
15227
case "(($ac_try" in
15228
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15229
*) ac_try_echo=$ac_try;;
15231
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15232
(eval "$ac_link") 2>conftest.er1
15234
grep -v '^ *+' conftest.er1 >conftest.err
15236
cat conftest.err >&5
15237
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15238
(exit $ac_status); } && {
15239
test -z "$ac_c_werror_flag" ||
15240
test ! -s conftest.err
15241
} && test -s conftest$ac_exeext &&
15242
$as_test_x conftest$ac_exeext; then
15243
eval "$as_ac_var=yes"
15245
echo "$as_me: failed program was:" >&5
15246
sed 's/^/| /' conftest.$ac_ext >&5
15248
eval "$as_ac_var=no"
15251
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15252
conftest$ac_exeext conftest.$ac_ext
15254
ac_res=`eval echo '${'$as_ac_var'}'`
15255
{ echo "$as_me:$LINENO: result: $ac_res" >&5
15256
echo "${ECHO_T}$ac_res" >&6; }
15257
if test `eval echo '${'$as_ac_var'}'` = yes; then
15258
cat >>confdefs.h <<_ACEOF
15259
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15266
for ac_func in usleep
15268
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15269
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
15270
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15271
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15272
echo $ECHO_N "(cached) $ECHO_C" >&6
15274
cat >conftest.$ac_ext <<_ACEOF
15277
cat confdefs.h >>conftest.$ac_ext
15278
cat >>conftest.$ac_ext <<_ACEOF
15279
/* end confdefs.h. */
15280
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15281
For example, HP-UX 11i <limits.h> declares gettimeofday. */
15282
#define $ac_func innocuous_$ac_func
15284
/* System header to define __stub macros and hopefully few prototypes,
15285
which can conflict with char $ac_func (); below.
15286
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15287
<limits.h> exists even on freestanding compilers. */
15290
# include <limits.h>
15292
# include <assert.h>
15297
/* Override any GCC internal prototype to avoid an error.
15298
Use char because int might match the return type of a GCC
15299
builtin and then its argument prototype would still apply. */
15304
/* The GNU C library defines this for functions which it implements
15305
to always fail with ENOSYS. Some functions are actually named
15306
something starting with __ and the normal name is an alias. */
15307
#if defined __stub_$ac_func || defined __stub___$ac_func
15314
return $ac_func ();
15319
rm -f conftest.$ac_objext conftest$ac_exeext
15320
if { (ac_try="$ac_link"
15321
case "(($ac_try" in
15322
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15323
*) ac_try_echo=$ac_try;;
15325
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15326
(eval "$ac_link") 2>conftest.er1
15328
grep -v '^ *+' conftest.er1 >conftest.err
15330
cat conftest.err >&5
15331
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15332
(exit $ac_status); } && {
15333
test -z "$ac_c_werror_flag" ||
15334
test ! -s conftest.err
15335
} && test -s conftest$ac_exeext &&
15336
$as_test_x conftest$ac_exeext; then
15337
eval "$as_ac_var=yes"
15339
echo "$as_me: failed program was:" >&5
15340
sed 's/^/| /' conftest.$ac_ext >&5
15342
eval "$as_ac_var=no"
15345
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15346
conftest$ac_exeext conftest.$ac_ext
15348
ac_res=`eval echo '${'$as_ac_var'}'`
15349
{ echo "$as_me:$LINENO: result: $ac_res" >&5
15350
echo "${ECHO_T}$ac_res" >&6; }
15351
if test `eval echo '${'$as_ac_var'}'` = yes; then
15352
cat >>confdefs.h <<_ACEOF
15353
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15360
for ac_func in vasprintf
15362
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15363
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
15364
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15365
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15366
echo $ECHO_N "(cached) $ECHO_C" >&6
15368
cat >conftest.$ac_ext <<_ACEOF
15371
cat confdefs.h >>conftest.$ac_ext
15372
cat >>conftest.$ac_ext <<_ACEOF
15373
/* end confdefs.h. */
15374
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15375
For example, HP-UX 11i <limits.h> declares gettimeofday. */
15376
#define $ac_func innocuous_$ac_func
15378
/* System header to define __stub macros and hopefully few prototypes,
15379
which can conflict with char $ac_func (); below.
15380
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15381
<limits.h> exists even on freestanding compilers. */
15384
# include <limits.h>
15386
# include <assert.h>
15391
/* Override any GCC internal prototype to avoid an error.
15392
Use char because int might match the return type of a GCC
15393
builtin and then its argument prototype would still apply. */
15398
/* The GNU C library defines this for functions which it implements
15399
to always fail with ENOSYS. Some functions are actually named
15400
something starting with __ and the normal name is an alias. */
15401
#if defined __stub_$ac_func || defined __stub___$ac_func
15408
return $ac_func ();
15413
rm -f conftest.$ac_objext conftest$ac_exeext
15414
if { (ac_try="$ac_link"
15415
case "(($ac_try" in
15416
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15417
*) ac_try_echo=$ac_try;;
15419
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15420
(eval "$ac_link") 2>conftest.er1
15422
grep -v '^ *+' conftest.er1 >conftest.err
15424
cat conftest.err >&5
15425
echo "$as_me:$LINENO: \$? = $ac_status" >&5
15426
(exit $ac_status); } && {
15427
test -z "$ac_c_werror_flag" ||
15428
test ! -s conftest.err
15429
} && test -s conftest$ac_exeext &&
15430
$as_test_x conftest$ac_exeext; then
15431
eval "$as_ac_var=yes"
15433
echo "$as_me: failed program was:" >&5
15434
sed 's/^/| /' conftest.$ac_ext >&5
15436
eval "$as_ac_var=no"
15439
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15440
conftest$ac_exeext conftest.$ac_ext
15442
ac_res=`eval echo '${'$as_ac_var'}'`
15443
{ echo "$as_me:$LINENO: result: $ac_res" >&5
15444
echo "${ECHO_T}$ac_res" >&6; }
15445
if test `eval echo '${'$as_ac_var'}'` = yes; then
15446
cat >>confdefs.h <<_ACEOF
15447
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15461
if test $cross_compiling = no; then
15462
# guess-rev.sh only exists in the repository, not in the released archives
15463
as_ac_File=`echo "ac_cv_file_"$srcdir/guess-rev.sh"" | $as_tr_sh`
15464
{ echo "$as_me:$LINENO: checking for \"$srcdir/guess-rev.sh\"" >&5
15465
echo $ECHO_N "checking for \"$srcdir/guess-rev.sh\"... $ECHO_C" >&6; }
15466
if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then
15467
echo $ECHO_N "(cached) $ECHO_C" >&6
15469
test "$cross_compiling" = yes &&
15470
{ { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
15471
echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
15472
{ (exit 1); exit 1; }; }
15473
if test -r ""$srcdir/guess-rev.sh""; then
15474
eval "$as_ac_File=yes"
15476
eval "$as_ac_File=no"
15479
ac_res=`eval echo '${'$as_ac_File'}'`
15480
{ echo "$as_me:$LINENO: result: $ac_res" >&5
15481
echo "${ECHO_T}$ac_res" >&6; }
15482
if test `eval echo '${'$as_ac_File'}'` = yes; then
15489
{ echo "$as_me:$LINENO: checking whether to build a release" >&5
15490
echo $ECHO_N "checking whether to build a release... $ECHO_C" >&6; }
15491
if test $has_guess_rev = no; then
15496
{ echo "$as_me:$LINENO: result: $build_release" >&5
15497
echo "${ECHO_T}$build_release" >&6; }
15502
# We are not *ALWAYS* being installed in the standard place.
15503
# We may be installed in a "tool-build" specific location.
15504
# Normally with other packages - as part of a tool distro.
15505
# Thus - we should search that 'libdir' also.
15507
# And - if we are being installed there - the odds are
15508
# The libraries unique to what we are are there too.
15511
# Expand nd deal with NONE - just like configure will do later
15513
OCDxprefix=$exec_prefix
15514
test x"$OCDprefix" = xNONE && OCDprefix=$ac_default_prefix
15515
# Let make expand exec_prefix.
15516
test x"$OCDxprefix" = xNONE && OCDxprefix="$OCDprefix"
15518
# what matters is the "exec-prefix"
15519
if test "$OCDxprefix" != "$ac_default_prefix"
15521
# We are installing in a non-standard place
15522
# Nonstandard --prefix and/or --exec-prefix
15523
# We have an override of some sort.
15524
# use build specific install library dir
15526
LDFLAGS="$LDFLAGS -L$OCDxprefix/lib"
15527
# RPATH becomes an issue on Linux only
15528
if test $host_os = linux-gnu || test $host_os = linux ; then
15529
LDFLAGS="$LDFLAGS -Wl,-rpath,$OCDxprefix/lib"
15531
# The "INCDIR" is also usable
15532
CFLAGS="$CFLAGS -I$includedir"
15536
# Check whether --with-ftd2xx was given.
15537
if test "${with_ftd2xx+set}" = set; then
15538
withval=$with_ftd2xx;
15542
The option: --with-ftd2xx=<PATH> has been removed.
15543
On Linux, the new option is:
15545
--with-ftd2xx-linux-tardir=/path/to/files
15547
Where <path> is the path the the directory where the "tar.gz" file
15548
from FTDICHIP.COM was unpacked, for example:
15550
--with-ftd2xx-linux-tardir=${HOME}/libftd2xx0.4.16
15552
On Cygwin/MingW32, the new option is:
15554
--with-ftd2xx-win32-zipdir=/path/to/files
15556
Where <path> is the path to the directory where the "zip" file from
15557
FTDICHIP.COM was unpacked, for example:
15559
--with-ftd2xx-win32-zipdir=${HOME}/ftd2xx.cdm.files
15563
{ { echo "$as_me:$LINENO: error: Sorry Cannot continue" >&5
15564
echo "$as_me: error: Sorry Cannot continue" >&2;}
15565
{ (exit 1); exit 1; }; }
15572
#========================================
15573
# FTD2XXX support comes in 4 forms.
15574
# (1) win32 - via a zip file
15575
# (2) linux - via a tar file
15576
# (3) linux/cygwin/mingw - via libftdi
15577
# (4) darwin - installed under /usr/local
15579
# In case (1) and (2) we need to know where the package was unpacked.
15582
# Check whether --with-ftd2xx-win32-zipdir was given.
15583
if test "${with_ftd2xx_win32_zipdir+set}" = set; then
15584
withval=$with_ftd2xx_win32_zipdir;
15586
if test -d $with_ftd2xx_win32_zipdir
15588
with_ftd2xx_win32_zipdir=`cd $with_ftd2xx_win32_zipdir && pwd`
15589
{ echo "$as_me:$LINENO: Using: ftdichip.com library: $with_ftd2xx_win32_zipdir" >&5
15590
echo "$as_me: Using: ftdichip.com library: $with_ftd2xx_win32_zipdir" >&6;}
15592
{ { echo "$as_me:$LINENO: error: Parameter to --with-ftd2xx-win32-zipdir is not a dir: $with_ftd2xx_win32_zipdir" >&5
15593
echo "$as_me: error: Parameter to --with-ftd2xx-win32-zipdir is not a dir: $with_ftd2xx_win32_zipdir" >&2;}
15594
{ (exit 1); exit 1; }; }
15603
# Check whether --with-ftd2xx-linux-tardir was given.
15604
if test "${with_ftd2xx_linux_tardir+set}" = set; then
15605
withval=$with_ftd2xx_linux_tardir;
15607
if test $is_win32 = yes ; then
15608
{ { echo "$as_me:$LINENO: error: The option: --with-ftd2xx-linux-tardir is only usable on linux" >&5
15609
echo "$as_me: error: The option: --with-ftd2xx-linux-tardir is only usable on linux" >&2;}
15610
{ (exit 1); exit 1; }; }
15612
if test -d $with_ftd2xx_linux_tardir
15614
with_ftd2xx_linux_tardir=`cd $with_ftd2xx_linux_tardir && pwd`
15615
{ echo "$as_me:$LINENO: Using: ftdichip.com library: $with_ftd2xx_linux_tardir" >&5
15616
echo "$as_me: Using: ftdichip.com library: $with_ftd2xx_linux_tardir" >&6;}
15618
{ { echo "$as_me:$LINENO: error: Parameter to --with-ftd2xx-linux-tardir is not a dir: $with_ftd2xx_linux_tardir" >&5
15619
echo "$as_me: error: Parameter to --with-ftd2xx-linux-tardir is not a dir: $with_ftd2xx_linux_tardir" >&2;}
15620
{ (exit 1); exit 1; }; }
15629
# Check whether --with-ftd2xx-lib was given.
15630
if test "${with_ftd2xx_lib+set}" = set; then
15631
withval=$with_ftd2xx_lib;
15634
with_ftd2xx_lib=$withval
15637
with_ftd2xx_lib=$withval
15640
{ { echo "$as_me:$LINENO: error: Option: --with-ftd2xx-lib=static or --with-ftd2xx-lib=shared not, $withval" >&5
15641
echo "$as_me: error: Option: --with-ftd2xx-lib=static or --with-ftd2xx-lib=shared not, $withval" >&2;}
15642
{ (exit 1); exit 1; }; }
15648
# Default is static - it is simpler :-(
15649
with_ftd2xx_lib=static
15654
# Check whether --enable-gccwarnings was given.
15655
if test "${enable_gccwarnings+set}" = set; then
15656
enableval=$enable_gccwarnings; gcc_warnings=$enableval
15662
# Check whether --enable-wextra was given.
15663
if test "${enable_wextra+set}" = set; then
15664
enableval=$enable_wextra; gcc_wextra=$enableval
15666
gcc_wextra=$gcc_warnings
15670
# Check whether --enable-werror was given.
15671
if test "${enable_werror+set}" = set; then
15672
enableval=$enable_werror; gcc_werror=$enableval
15674
gcc_werror=$gcc_warnings
15678
# set default verbose options, overridden by following options
15683
# Check whether --enable-verbose was given.
15684
if test "${enable_verbose+set}" = set; then
15685
enableval=$enable_verbose;
15686
debug_jtag_io=$enableval
15687
debug_usb_io=$enableval
15688
debug_usb_comms=$enableval
15693
# Check whether --enable-verbose_jtag_io was given.
15694
if test "${enable_verbose_jtag_io+set}" = set; then
15695
enableval=$enable_verbose_jtag_io; debug_jtag_io=$enableval
15698
# Check whether --enable-verbose_usb_io was given.
15699
if test "${enable_verbose_usb_io+set}" = set; then
15700
enableval=$enable_verbose_usb_io; debug_usb_io=$enableval
15703
# Check whether --enable-verbose_usb_comms was given.
15704
if test "${enable_verbose_usb_comms+set}" = set; then
15705
enableval=$enable_verbose_usb_comms; debug_usb_comms=$enableval
15709
{ echo "$as_me:$LINENO: checking whether to enable verbose JTAG I/O messages" >&5
15710
echo $ECHO_N "checking whether to enable verbose JTAG I/O messages... $ECHO_C" >&6; };
15711
{ echo "$as_me:$LINENO: result: $debug_jtag_io" >&5
15712
echo "${ECHO_T}$debug_jtag_io" >&6; }
15713
if test $debug_jtag_io = yes; then
15715
cat >>confdefs.h <<\_ACEOF
15716
#define _DEBUG_JTAG_IO_ 1
15721
{ echo "$as_me:$LINENO: checking whether to enable verbose USB I/O messages" >&5
15722
echo $ECHO_N "checking whether to enable verbose USB I/O messages... $ECHO_C" >&6; };
15723
{ echo "$as_me:$LINENO: result: $debug_usb_io" >&5
15724
echo "${ECHO_T}$debug_usb_io" >&6; }
15725
if test $debug_usb_io = yes; then
15727
cat >>confdefs.h <<\_ACEOF
15728
#define _DEBUG_USB_IO_ 1
15733
{ echo "$as_me:$LINENO: checking whether to enable verbose USB communication messages" >&5
15734
echo $ECHO_N "checking whether to enable verbose USB communication messages... $ECHO_C" >&6; };
15735
{ echo "$as_me:$LINENO: result: $debug_usb_comms" >&5
15736
echo "${ECHO_T}$debug_usb_comms" >&6; }
15737
if test $debug_usb_comms = yes; then
15739
cat >>confdefs.h <<\_ACEOF
15740
#define _DEBUG_USB_COMMS_ 1
15747
# Check whether --enable-malloc_logging was given.
15748
if test "${enable_malloc_logging+set}" = set; then
15749
enableval=$enable_malloc_logging; debug_malloc=$enableval
15753
{ echo "$as_me:$LINENO: checking whether to enable malloc free space logging" >&5
15754
echo $ECHO_N "checking whether to enable malloc free space logging... $ECHO_C" >&6; };
15755
{ echo "$as_me:$LINENO: result: $debug_malloc" >&5
15756
echo "${ECHO_T}$debug_malloc" >&6; }
15757
if test $debug_malloc = yes; then
15759
cat >>confdefs.h <<\_ACEOF
15760
#define _DEBUG_FREE_SPACE_ 1
15766
# Check whether --enable-dummy was given.
15767
if test "${enable_dummy+set}" = set; then
15768
enableval=$enable_dummy; build_dummy=$enableval
15774
# Check whether --enable-parport was given.
15775
if test "${enable_parport+set}" = set; then
15776
enableval=$enable_parport; build_parport=$enableval
15782
# Check whether --enable-parport_ppdev was given.
15783
if test "${enable_parport_ppdev+set}" = set; then
15784
enableval=$enable_parport_ppdev; parport_use_ppdev=$enableval
15786
parport_use_ppdev=yes
15790
# Check whether --enable-parport_giveio was given.
15791
if test "${enable_parport_giveio+set}" = set; then
15792
enableval=$enable_parport_giveio; parport_use_giveio=$enableval
15794
parport_use_giveio=
15798
# Check whether --enable-ft2232_libftdi was given.
15799
if test "${enable_ft2232_libftdi+set}" = set; then
15800
enableval=$enable_ft2232_libftdi; build_ft2232_libftdi=$enableval
15802
build_ft2232_libftdi=no
15806
# Check whether --enable-ft2232_ftd2xx was given.
15807
if test "${enable_ft2232_ftd2xx+set}" = set; then
15808
enableval=$enable_ft2232_ftd2xx; build_ft2232_ftd2xx=$enableval
15810
build_ft2232_ftd2xx=no
15814
# Check whether --enable-amtjtagaccel was given.
15815
if test "${enable_amtjtagaccel+set}" = set; then
15816
enableval=$enable_amtjtagaccel; build_amtjtagaccel=$enableval
15818
build_amtjtagaccel=no
15822
# Check whether --enable-ecosboard was given.
15823
if test "${enable_ecosboard+set}" = set; then
15824
enableval=$enable_ecosboard; build_ecosboard=$enableval
15830
# Check whether --enable-zy1000 was given.
15831
if test "${enable_zy1000+set}" = set; then
15832
enableval=$enable_zy1000; build_zy1000=$enableval
15838
# Check whether --enable-ioutil was given.
15839
if test "${enable_ioutil+set}" = set; then
15840
enableval=$enable_ioutil; build_ioutil=$enableval
15846
# Check whether --enable-httpd was given.
15847
if test "${enable_httpd+set}" = set; then
15848
enableval=$enable_httpd; build_httpd=$enableval
15854
case "${host_cpu}" in
15856
# Check whether --enable-ep93xx was given.
15857
if test "${enable_ep93xx+set}" = set; then
15858
enableval=$enable_ep93xx; build_ep93xx=$enableval
15864
# Check whether --enable-at91rm9200 was given.
15865
if test "${enable_at91rm9200+set}" = set; then
15866
enableval=$enable_at91rm9200; build_at91rm9200=$enableval
15868
build_at91rm9200=no
15875
build_at91rm9200=no
15879
# Check whether --enable-gw16012 was given.
15880
if test "${enable_gw16012+set}" = set; then
15881
enableval=$enable_gw16012; build_gw16012=$enableval
15887
# Check whether --enable-presto_libftdi was given.
15888
if test "${enable_presto_libftdi+set}" = set; then
15889
enableval=$enable_presto_libftdi; build_presto_libftdi=$enableval
15891
build_presto_libftdi=no
15895
# Check whether --enable-presto_ftd2xx was given.
15896
if test "${enable_presto_ftd2xx+set}" = set; then
15897
enableval=$enable_presto_ftd2xx; build_presto_ftd2xx=$enableval
15899
build_presto_ftd2xx=no
15903
# Check whether --enable-usbprog was given.
15904
if test "${enable_usbprog+set}" = set; then
15905
enableval=$enable_usbprog; build_usbprog=$enableval
15911
# Check whether --enable-oocd_trace was given.
15912
if test "${enable_oocd_trace+set}" = set; then
15913
enableval=$enable_oocd_trace; build_oocd_trace=$enableval
15915
build_oocd_trace=no
15919
# Check whether --enable-jlink was given.
15920
if test "${enable_jlink+set}" = set; then
15921
enableval=$enable_jlink; build_jlink=$enableval
15927
# Check whether --enable-vsllink was given.
15928
if test "${enable_vsllink+set}" = set; then
15929
enableval=$enable_vsllink; build_vsllink=$enableval
15935
# Check whether --enable-rlink was given.
15936
if test "${enable_rlink+set}" = set; then
15937
enableval=$enable_rlink; build_rlink=$enableval
15943
# Check whether --enable-arm-jtag-ew was given.
15944
if test "${enable_arm_jtag_ew+set}" = set; then
15945
enableval=$enable_arm_jtag_ew; build_armjtagew=$enableval
15951
# Check whether --enable-minidriver_dummy was given.
15952
if test "${enable_minidriver_dummy+set}" = set; then
15953
enableval=$enable_minidriver_dummy; build_minidriver_dummy=$enableval
15955
build_minidriver_dummy=no
15960
build_minidriver=no
15961
{ echo "$as_me:$LINENO: checking whether to enable ZY1000 minidriver" >&5
15962
echo $ECHO_N "checking whether to enable ZY1000 minidriver... $ECHO_C" >&6; }
15963
if test $build_zy1000 = yes; then
15964
if test $build_minidriver = yes; then
15965
{ { echo "$as_me:$LINENO: error: Multiple minidriver options have been enabled." >&5
15966
echo "$as_me: error: Multiple minidriver options have been enabled." >&2;}
15967
{ (exit 1); exit 1; }; }
15970
cat >>confdefs.h <<\_ACEOF
15971
#define HAVE_JTAG_MINIDRIVER_H 1
15974
build_minidriver=yes
15976
{ echo "$as_me:$LINENO: result: $build_zy1000" >&5
15977
echo "${ECHO_T}$build_zy1000" >&6; }
15980
{ echo "$as_me:$LINENO: checking whether to enable dummy minidriver" >&5
15981
echo $ECHO_N "checking whether to enable dummy minidriver... $ECHO_C" >&6; }
15982
if test $build_minidriver_dummy = yes; then
15983
if test $build_minidriver = yes; then
15984
{ { echo "$as_me:$LINENO: error: Multiple minidriver options have been enabled." >&5
15985
echo "$as_me: error: Multiple minidriver options have been enabled." >&2;}
15986
{ (exit 1); exit 1; }; }
15988
build_minidriver=yes
15990
cat >>confdefs.h <<\_ACEOF
15991
#define BUILD_MINIDRIVER_DUMMY 1
15995
cat >>confdefs.h <<\_ACEOF
15996
#define HAVE_JTAG_MINIDRIVER_H 1
16000
{ echo "$as_me:$LINENO: result: $build_minidriver_dummy" >&5
16001
echo "${ECHO_T}$build_minidriver_dummy" >&6; }
16003
{ echo "$as_me:$LINENO: checking whether standard drivers can be built" >&5
16004
echo $ECHO_N "checking whether standard drivers can be built... $ECHO_C" >&6; }
16005
if test "$build_minidriver" = yes; then
16006
{ echo "$as_me:$LINENO: result: no" >&5
16007
echo "${ECHO_T}no" >&6; }
16008
{ echo "$as_me:$LINENO: WARNING: Using the minidriver disables all other drivers." >&5
16009
echo "$as_me: WARNING: Using the minidriver disables all other drivers." >&2;}
16012
{ echo "$as_me:$LINENO: result: yes" >&5
16013
echo "${ECHO_T}yes" >&6; }
16016
case "${host_cpu}" in
16020
if test x$parport_use_ppdev = xno; then
16021
{ echo "$as_me:$LINENO: WARNING: --disable-parport-ppdev is not supported by the host CPU" >&5
16022
echo "$as_me: WARNING: --disable-parport-ppdev is not supported by the host CPU" >&2;}
16024
parport_use_ppdev=yes
16031
parport_use_ppdev=no
16033
cat >conftest.$ac_ext <<_ACEOF
16036
cat confdefs.h >>conftest.$ac_ext
16037
cat >>conftest.$ac_ext <<_ACEOF
16038
/* end confdefs.h. */
16043
return __MINGW32__;
16048
rm -f conftest.$ac_objext
16049
if { (ac_try="$ac_compile"
16050
case "(($ac_try" in
16051
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16052
*) ac_try_echo=$ac_try;;
16054
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16055
(eval "$ac_compile") 2>conftest.er1
16057
grep -v '^ *+' conftest.er1 >conftest.err
16059
cat conftest.err >&5
16060
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16061
(exit $ac_status); } && {
16062
test -z "$ac_c_werror_flag" ||
16063
test ! -s conftest.err
16064
} && test -s conftest.$ac_objext; then
16067
echo "$as_me: failed program was:" >&5
16068
sed 's/^/| /' conftest.$ac_ext >&5
16073
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16074
if test $is_mingw = yes; then
16076
cat >>confdefs.h <<\_ACEOF
16080
if test x$parport_use_giveio = xno; then
16081
{ echo "$as_me:$LINENO: WARNING: --disable-parport-giveio is not supported by MinGW32 hosts" >&5
16082
echo "$as_me: WARNING: --disable-parport-giveio is not supported by MinGW32 hosts" >&2;}
16084
parport_use_giveio=yes
16089
cat >>confdefs.h <<\_ACEOF
16090
#define IS_CYGWIN 1
16093
# sys/io.h needed under cygwin for parport access
16094
if test $build_parport = yes; then
16096
for ac_header in sys/io.h
16098
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16099
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16100
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16101
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16102
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16103
echo $ECHO_N "(cached) $ECHO_C" >&6
16105
ac_res=`eval echo '${'$as_ac_Header'}'`
16106
{ echo "$as_me:$LINENO: result: $ac_res" >&5
16107
echo "${ECHO_T}$ac_res" >&6; }
16109
# Is the header compilable?
16110
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
16111
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16112
cat >conftest.$ac_ext <<_ACEOF
16115
cat confdefs.h >>conftest.$ac_ext
16116
cat >>conftest.$ac_ext <<_ACEOF
16117
/* end confdefs.h. */
16118
$ac_includes_default
16119
#include <$ac_header>
16121
rm -f conftest.$ac_objext
16122
if { (ac_try="$ac_compile"
16123
case "(($ac_try" in
16124
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16125
*) ac_try_echo=$ac_try;;
16127
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16128
(eval "$ac_compile") 2>conftest.er1
16130
grep -v '^ *+' conftest.er1 >conftest.err
16132
cat conftest.err >&5
16133
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16134
(exit $ac_status); } && {
16135
test -z "$ac_c_werror_flag" ||
16136
test ! -s conftest.err
16137
} && test -s conftest.$ac_objext; then
16138
ac_header_compiler=yes
16140
echo "$as_me: failed program was:" >&5
16141
sed 's/^/| /' conftest.$ac_ext >&5
16143
ac_header_compiler=no
16146
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16147
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16148
echo "${ECHO_T}$ac_header_compiler" >&6; }
16150
# Is the header present?
16151
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
16152
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16153
cat >conftest.$ac_ext <<_ACEOF
16156
cat confdefs.h >>conftest.$ac_ext
16157
cat >>conftest.$ac_ext <<_ACEOF
16158
/* end confdefs.h. */
16159
#include <$ac_header>
16161
if { (ac_try="$ac_cpp conftest.$ac_ext"
16162
case "(($ac_try" in
16163
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16164
*) ac_try_echo=$ac_try;;
16166
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16167
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16169
grep -v '^ *+' conftest.er1 >conftest.err
16171
cat conftest.err >&5
16172
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16173
(exit $ac_status); } >/dev/null && {
16174
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16175
test ! -s conftest.err
16177
ac_header_preproc=yes
16179
echo "$as_me: failed program was:" >&5
16180
sed 's/^/| /' conftest.$ac_ext >&5
16182
ac_header_preproc=no
16185
rm -f conftest.err conftest.$ac_ext
16186
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16187
echo "${ECHO_T}$ac_header_preproc" >&6; }
16189
# So? What about this header?
16190
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16192
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16193
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16194
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16195
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16196
ac_header_preproc=yes
16199
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16200
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16201
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16202
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16203
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16204
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16205
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16206
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16207
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16208
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16209
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16210
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16212
## -------------------------------------------------------------------------- ##
16213
## Report this to OpenOCD Mailing List <openocd-development@lists.berlios.de> ##
16214
## -------------------------------------------------------------------------- ##
16216
) | sed "s/^/$as_me: WARNING: /" >&2
16219
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
16220
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16221
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16222
echo $ECHO_N "(cached) $ECHO_C" >&6
16224
eval "$as_ac_Header=\$ac_header_preproc"
16226
ac_res=`eval echo '${'$as_ac_Header'}'`
16227
{ echo "$as_me:$LINENO: result: $ac_res" >&5
16228
echo "${ECHO_T}$ac_res" >&6; }
16231
if test `eval echo '${'$as_ac_Header'}'` = yes; then
16232
cat >>confdefs.h <<_ACEOF
16233
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16237
{ { echo "$as_me:$LINENO: error: Please install the cygwin ioperm package" >&5
16238
echo "$as_me: error: Please install the cygwin ioperm package" >&2;}
16239
{ (exit 1); exit 1; }; }
16248
cat >>confdefs.h <<\_ACEOF
16253
cat >>confdefs.h <<\_ACEOF
16254
#define IS_DARWIN 0
16261
parport_use_ppdev=no
16263
if test x$parport_use_giveio = xno; then
16264
{ echo "$as_me:$LINENO: WARNING: --disable-parport-giveio is not supported by MinGW32 hosts" >&5
16265
echo "$as_me: WARNING: --disable-parport-giveio is not supported by MinGW32 hosts" >&2;}
16267
parport_use_giveio=yes
16269
CFLAGS="$CFLAGS -D__USE_MINGW_ANSI_STDIO"
16272
cat >>confdefs.h <<\_ACEOF
16277
cat >>confdefs.h <<\_ACEOF
16282
cat >>confdefs.h <<\_ACEOF
16283
#define IS_DARWIN 0
16290
if test x$parport_use_giveio = xyes; then
16291
{ echo "$as_me:$LINENO: WARNING: --enable-parport-giveio cannot be used by Darwin hosts" >&5
16292
echo "$as_me: WARNING: --enable-parport-giveio cannot be used by Darwin hosts" >&2;}
16294
parport_use_giveio=no
16297
cat >>confdefs.h <<\_ACEOF
16298
#define IS_CYGWIN 0
16302
cat >>confdefs.h <<\_ACEOF
16307
cat >>confdefs.h <<\_ACEOF
16308
#define IS_DARWIN 1
16313
if test x$parport_use_giveio = xyes; then
16314
{ echo "$as_me:$LINENO: WARNING: --enable-parport-giveio cannot be used by $host hosts" >&5
16315
echo "$as_me: WARNING: --enable-parport-giveio cannot be used by $host hosts" >&2;}
16317
parport_use_giveio=no
16319
cat >>confdefs.h <<\_ACEOF
16320
#define IS_CYGWIN 0
16324
cat >>confdefs.h <<\_ACEOF
16329
cat >>confdefs.h <<\_ACEOF
16330
#define IS_DARWIN 0
16336
if test $build_parport = yes; then
16339
cat >>confdefs.h <<\_ACEOF
16340
#define BUILD_PARPORT 1
16345
cat >>confdefs.h <<\_ACEOF
16346
#define BUILD_PARPORT 0
16351
if test $build_dummy = yes; then
16354
cat >>confdefs.h <<\_ACEOF
16355
#define BUILD_DUMMY 1
16360
cat >>confdefs.h <<\_ACEOF
16361
#define BUILD_DUMMY 0
16366
if test $build_ep93xx = yes; then
16369
cat >>confdefs.h <<\_ACEOF
16370
#define BUILD_EP93XX 1
16375
cat >>confdefs.h <<\_ACEOF
16376
#define BUILD_EP93XX 0
16381
if test $build_ecosboard = yes; then
16383
cat >>confdefs.h <<\_ACEOF
16384
#define BUILD_ECOSBOARD 1
16389
cat >>confdefs.h <<\_ACEOF
16390
#define BUILD_ECOSBOARD 0
16395
if test $build_zy1000 = yes; then
16397
cat >>confdefs.h <<\_ACEOF
16398
#define BUILD_ZY1000 1
16403
cat >>confdefs.h <<\_ACEOF
16404
#define BUILD_ZY1000 0
16409
if test $build_ioutil = yes; then
16411
cat >>confdefs.h <<\_ACEOF
16412
#define BUILD_IOUTIL 1
16417
cat >>confdefs.h <<\_ACEOF
16418
#define BUILD_IOUTIL 0
16423
if test $build_httpd = yes; then
16425
cat >>confdefs.h <<\_ACEOF
16426
#define BUILD_HTTPD 1
16431
cat >>confdefs.h <<\_ACEOF
16432
#define BUILD_HTTPD 0
16437
if test $build_at91rm9200 = yes; then
16440
cat >>confdefs.h <<\_ACEOF
16441
#define BUILD_AT91RM9200 1
16446
cat >>confdefs.h <<\_ACEOF
16447
#define BUILD_AT91RM9200 0
16452
if test x$parport_use_ppdev = xyes; then
16454
cat >>confdefs.h <<\_ACEOF
16455
#define PARPORT_USE_PPDEV 1
16460
cat >>confdefs.h <<\_ACEOF
16461
#define PARPORT_USE_PPDEV 0
16466
if test x$parport_use_giveio = xyes; then
16468
cat >>confdefs.h <<\_ACEOF
16469
#define PARPORT_USE_GIVEIO 1
16474
cat >>confdefs.h <<\_ACEOF
16475
#define PARPORT_USE_GIVEIO 0
16480
if test $build_bitbang = yes; then
16482
cat >>confdefs.h <<\_ACEOF
16483
#define BUILD_BITBANG 1
16488
cat >>confdefs.h <<\_ACEOF
16489
#define BUILD_BITBANG 0
16494
if test $build_ft2232_libftdi = yes; then
16496
cat >>confdefs.h <<\_ACEOF
16497
#define BUILD_FT2232_LIBFTDI 1
16502
cat >>confdefs.h <<\_ACEOF
16503
#define BUILD_FT2232_LIBFTDI 0
16508
if test $build_ft2232_ftd2xx = yes; then
16510
cat >>confdefs.h <<\_ACEOF
16511
#define BUILD_FT2232_FTD2XX 1
16516
cat >>confdefs.h <<\_ACEOF
16517
#define BUILD_FT2232_FTD2XX 0
16522
if test $build_amtjtagaccel = yes; then
16524
cat >>confdefs.h <<\_ACEOF
16525
#define BUILD_AMTJTAGACCEL 1
16530
cat >>confdefs.h <<\_ACEOF
16531
#define BUILD_AMTJTAGACCEL 0
16536
if test $build_gw16012 = yes; then
16538
cat >>confdefs.h <<\_ACEOF
16539
#define BUILD_GW16012 1
16544
cat >>confdefs.h <<\_ACEOF
16545
#define BUILD_GW16012 0
16550
if test $build_presto_libftdi = yes; then
16553
cat >>confdefs.h <<\_ACEOF
16554
#define BUILD_PRESTO_LIBFTDI 1
16559
cat >>confdefs.h <<\_ACEOF
16560
#define BUILD_PRESTO_LIBFTDI 0
16565
if test $build_presto_ftd2xx = yes; then
16568
cat >>confdefs.h <<\_ACEOF
16569
#define BUILD_PRESTO_FTD2XX 1
16574
cat >>confdefs.h <<\_ACEOF
16575
#define BUILD_PRESTO_FTD2XX 0
16580
if test $build_bitq = yes; then
16582
cat >>confdefs.h <<\_ACEOF
16583
#define BUILD_BITQ 1
16588
cat >>confdefs.h <<\_ACEOF
16589
#define BUILD_BITQ 0
16594
if test $build_usbprog = yes; then
16596
cat >>confdefs.h <<\_ACEOF
16597
#define BUILD_USBPROG 1
16602
cat >>confdefs.h <<\_ACEOF
16603
#define BUILD_USBPROG 0
16608
if test $build_oocd_trace = yes; then
16610
cat >>confdefs.h <<\_ACEOF
16611
#define BUILD_OOCD_TRACE 1
16616
cat >>confdefs.h <<\_ACEOF
16617
#define BUILD_OOCD_TRACE 0
16622
if test $build_jlink = yes; then
16624
cat >>confdefs.h <<\_ACEOF
16625
#define BUILD_JLINK 1
16630
cat >>confdefs.h <<\_ACEOF
16631
#define BUILD_JLINK 0
16636
if test $build_vsllink = yes; then
16638
cat >>confdefs.h <<\_ACEOF
16639
#define BUILD_VSLLINK 1
16644
cat >>confdefs.h <<\_ACEOF
16645
#define BUILD_VSLLINK 0
16650
if test $build_rlink = yes; then
16652
cat >>confdefs.h <<\_ACEOF
16653
#define BUILD_RLINK 1
16658
cat >>confdefs.h <<\_ACEOF
16659
#define BUILD_RLINK 0
16664
if test $build_armjtagew = yes; then
16666
cat >>confdefs.h <<\_ACEOF
16667
#define BUILD_ARMJTAGEW 1
16672
cat >>confdefs.h <<\_ACEOF
16673
#define BUILD_ARMJTAGEW 0
16678
#-- Deal with MingW/Cygwin FTD2XX issues
16680
if test $is_win32 = yes; then
16681
if test "${with_ftd2xx_linux_tardir+set}" = set
16683
{ { echo "$as_me:$LINENO: error: The option: with_ftd2xx_linux_tardir is for LINUX only." >&5
16684
echo "$as_me: error: The option: with_ftd2xx_linux_tardir is for LINUX only." >&2;}
16685
{ (exit 1); exit 1; }; }
16688
if test $build_ft2232_ftd2xx = yes -o $build_presto_ftd2xx = yes ; then
16689
{ echo "$as_me:$LINENO: checking for ftd2xx.lib exists (win32)" >&5
16690
echo $ECHO_N "checking for ftd2xx.lib exists (win32)... $ECHO_C" >&6; }
16692
# if we are given a zipdir...
16693
if test "${with_ftd2xx_win32_zipdir+set}" = set
16695
# Set the CFLAGS for "ftd2xx.h"
16696
f=$with_ftd2xx_win32_zipdir/ftd2xx.h
16697
if test ! -f $f ; then
16698
{ { echo "$as_me:$LINENO: error: File: $f cannot be found" >&5
16699
echo "$as_me: error: File: $f cannot be found" >&2;}
16700
{ (exit 1); exit 1; }; }
16702
CFLAGS="$CFLAGS -I$with_ftd2xx_win32_zipdir"
16704
# And calculate the LDFLAGS for the machine
16705
case "$host_cpu" in
16707
LDFLAGS="$LDFLAGS -L$with_ftd2xx_win32_zipdir/i386"
16708
LIBS="$LIBS -lftd2xx"
16709
f=$with_ftd2xx_win32_zipdir/i386/ftd2xx.lib
16712
LDFLAGS="$LDFLAGS -L$with_ftd2xx_win32_zipdir/amd64"
16713
LIBS="$LIBS -lftd2xx"
16714
f=$with_ftd2xx_win32_zipdir/amd64/ftd2xx.lib
16717
{ { echo "$as_me:$LINENO: error: Unknown Win32 host cpu: $host_cpu" >&5
16718
echo "$as_me: error: Unknown Win32 host cpu: $host_cpu" >&2;}
16719
{ (exit 1); exit 1; }; }
16722
if test ! -f $f ; then
16723
{ { echo "$as_me:$LINENO: error: Library: $f not found" >&5
16724
echo "$as_me: error: Library: $f not found" >&2;}
16725
{ (exit 1); exit 1; }; }
16728
LIBS="$LIBS -lftd2xx"
16729
{ echo "$as_me:$LINENO: WARNING: ASSUMPTION: The (win32) FTDICHIP.COM files: ftd2xx.h and ftd2xx.lib are in a proper place" >&5
16730
echo "$as_me: WARNING: ASSUMPTION: The (win32) FTDICHIP.COM files: ftd2xx.h and ftd2xx.lib are in a proper place" >&2;}
16735
if test $is_darwin = yes ; then
16736
if test "${with_ftd2xx_win32_zipdir+set}" = set
16738
{ { echo "$as_me:$LINENO: error: The option: --with-ftd2xx-win32-zipdir is for win32 only" >&5
16739
echo "$as_me: error: The option: --with-ftd2xx-win32-zipdir is for win32 only" >&2;}
16740
{ (exit 1); exit 1; }; }
16742
if test "${with_ftd2xx_linux_tardir+set}" = set
16744
{ { echo "$as_me:$LINENO: error: The option: with_ftd2xx_linux_tardir is for LINUX only." >&5
16745
echo "$as_me: error: The option: with_ftd2xx_linux_tardir is for LINUX only." >&2;}
16746
{ (exit 1); exit 1; }; }
16749
if test $build_ft2232_ftd2xx = yes -o $build_presto_ftd2xx = yes ; then
16750
{ echo "$as_me:$LINENO: checking for libftd2xx.a (darwin)" >&5
16751
echo $ECHO_N "checking for libftd2xx.a (darwin)... $ECHO_C" >&6; }
16753
if test ! -f /usr/local/include/ftd2xx.h ; then
16754
{ { echo "$as_me:$LINENO: error: ftd2xx library from FTDICHIP.com seems to be missing, cannot find: /usr/local/include/ftd2xx.h" >&5
16755
echo "$as_me: error: ftd2xx library from FTDICHIP.com seems to be missing, cannot find: /usr/local/include/ftd2xx.h" >&2;}
16756
{ (exit 1); exit 1; }; }
16759
CFLAGS="$CFLAGS -I/usr/local/include"
16760
LDFLAGS="$LDFLAGS -L/usr/local/lib"
16761
LIBS="$LIBS -lftd2xx"
16762
{ echo "$as_me:$LINENO: result: -L/usr/local/lib -lftd2xx" >&5
16763
echo "${ECHO_T}-L/usr/local/lib -lftd2xx" >&6; }
16767
if test $is_win32 = no && test $is_darwin = no ; then
16769
if test "${with_ftd2xx_win32_zipdir+set}" = set
16771
{ { echo "$as_me:$LINENO: error: The option: --with-ftd2xx-win32-zipdir is for win32 only" >&5
16772
echo "$as_me: error: The option: --with-ftd2xx-win32-zipdir is for win32 only" >&2;}
16773
{ (exit 1); exit 1; }; }
16776
if test $build_ft2232_ftd2xx = yes -o $build_presto_ftd2xx = yes ; then
16778
if test $host_os != linux-gnu && test $host_os != linux ; then
16779
{ { echo "$as_me:$LINENO: error: The (linux) ftd2xx library from FTDICHIP.com is linux only. Try --enable-ft2232-libftdi instead" >&5
16780
echo "$as_me: error: The (linux) ftd2xx library from FTDICHIP.com is linux only. Try --enable-ft2232-libftdi instead" >&2;}
16781
{ (exit 1); exit 1; }; }
16783
# Are we given a TAR directory?
16784
if test "${with_ftd2xx_linux_tardir+set}" = set
16786
{ echo "$as_me:$LINENO: checking uninstalled ftd2xx distribution" >&5
16787
echo $ECHO_N "checking uninstalled ftd2xx distribution... $ECHO_C" >&6; }
16788
# The .H file is simple..
16789
FTD2XX_H=$with_ftd2xx_linux_tardir/ftd2xx.h
16790
if test ! -f "${FTD2XX_H}"; then
16791
{ { echo "$as_me:$LINENO: error: Option: --with-ftd2xx-linux-tardir appears wrong, cannot find: ${FTD2XX_H}" >&5
16792
echo "$as_me: error: Option: --with-ftd2xx-linux-tardir appears wrong, cannot find: ${FTD2XX_H}" >&2;}
16793
{ (exit 1); exit 1; }; }
16795
CFLAGS="$CFLAGS -I$with_ftd2xx_linux_tardir"
16796
FTD2XX_LDFLAGS="-L$with_ftd2xx_linux_tardir"
16797
FTD2XX_LIB="-lftd2xx"
16798
if test $with_ftd2xx_lib != shared; then
16799
# Test #1 - Future proof - if/when ftdichip fixes their distro.
16800
# Try it with the simple ".a" suffix.
16801
FTD2XX_LIB="$with_ftd2xx_linux_tardir/static_lib/libftd2xx.a"
16802
if test -f "${FTD2XX_LIB}"; then
16803
FTD2XX_LDFLAGS="${FTD2XX_LDFLAGS}/static_lib"
16806
# Grr.. perhaps it exists as a version number?
16807
FTD2XX_LIB="$with_ftd2xx_linux_tardir/static_lib/libftd2xx.a.*.*.*"
16808
count=`ls ${FTD2XX_LIB} | wc -l`
16809
if test $count -gt 1 ; then
16810
{ { echo "$as_me:$LINENO: error: Multiple libftd2xx.a files found in: $with_ftd2xx_linux_tardir/static_lib sorry cannot handle this yet" >&5
16811
echo "$as_me: error: Multiple libftd2xx.a files found in: $with_ftd2xx_linux_tardir/static_lib sorry cannot handle this yet" >&2;}
16812
{ (exit 1); exit 1; }; }
16814
if test $count -ne 1 ; then
16815
{ { echo "$as_me:$LINENO: error: Not found: $f, option: --with-ftd2xx-linux-tardir appears to be wrong" >&5
16816
echo "$as_me: error: Not found: $f, option: --with-ftd2xx-linux-tardir appears to be wrong" >&2;}
16817
{ (exit 1); exit 1; }; }
16819
# Because the "-l" rules do not understand version numbers...
16820
# we will just stuff the absolute path onto the LIBS variable
16821
FTD2XX_LIB="`ls ${FTD2XX_LIB}` -lpthread"
16825
LDFLAGS="${LDFLAGS} ${FTD2XX_LDFLAGS}"
16826
LIBS="${LIBS} ${FTD2XX_LIB}"
16827
{ echo "$as_me:$LINENO: result: ${FTD2XX_LDFLAGS} ${FTD2XX_LIB}" >&5
16828
echo "${ECHO_T}${FTD2XX_LDFLAGS} ${FTD2XX_LIB}" >&6; }
16830
if test "${ac_cv_header_ftd2xx_h+set}" = set; then
16831
{ echo "$as_me:$LINENO: checking for ftd2xx.h" >&5
16832
echo $ECHO_N "checking for ftd2xx.h... $ECHO_C" >&6; }
16833
if test "${ac_cv_header_ftd2xx_h+set}" = set; then
16834
echo $ECHO_N "(cached) $ECHO_C" >&6
16836
{ echo "$as_me:$LINENO: result: $ac_cv_header_ftd2xx_h" >&5
16837
echo "${ECHO_T}$ac_cv_header_ftd2xx_h" >&6; }
16839
# Is the header compilable?
16840
{ echo "$as_me:$LINENO: checking ftd2xx.h usability" >&5
16841
echo $ECHO_N "checking ftd2xx.h usability... $ECHO_C" >&6; }
16842
cat >conftest.$ac_ext <<_ACEOF
16845
cat confdefs.h >>conftest.$ac_ext
16846
cat >>conftest.$ac_ext <<_ACEOF
16847
/* end confdefs.h. */
16848
$ac_includes_default
16849
#include <ftd2xx.h>
16851
rm -f conftest.$ac_objext
16852
if { (ac_try="$ac_compile"
16853
case "(($ac_try" in
16854
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16855
*) ac_try_echo=$ac_try;;
16857
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16858
(eval "$ac_compile") 2>conftest.er1
16860
grep -v '^ *+' conftest.er1 >conftest.err
16862
cat conftest.err >&5
16863
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16864
(exit $ac_status); } && {
16865
test -z "$ac_c_werror_flag" ||
16866
test ! -s conftest.err
16867
} && test -s conftest.$ac_objext; then
16868
ac_header_compiler=yes
16870
echo "$as_me: failed program was:" >&5
16871
sed 's/^/| /' conftest.$ac_ext >&5
16873
ac_header_compiler=no
16876
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16877
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16878
echo "${ECHO_T}$ac_header_compiler" >&6; }
16880
# Is the header present?
16881
{ echo "$as_me:$LINENO: checking ftd2xx.h presence" >&5
16882
echo $ECHO_N "checking ftd2xx.h presence... $ECHO_C" >&6; }
16883
cat >conftest.$ac_ext <<_ACEOF
16886
cat confdefs.h >>conftest.$ac_ext
16887
cat >>conftest.$ac_ext <<_ACEOF
16888
/* end confdefs.h. */
16889
#include <ftd2xx.h>
16891
if { (ac_try="$ac_cpp conftest.$ac_ext"
16892
case "(($ac_try" in
16893
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16894
*) ac_try_echo=$ac_try;;
16896
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16897
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16899
grep -v '^ *+' conftest.er1 >conftest.err
16901
cat conftest.err >&5
16902
echo "$as_me:$LINENO: \$? = $ac_status" >&5
16903
(exit $ac_status); } >/dev/null && {
16904
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16905
test ! -s conftest.err
16907
ac_header_preproc=yes
16909
echo "$as_me: failed program was:" >&5
16910
sed 's/^/| /' conftest.$ac_ext >&5
16912
ac_header_preproc=no
16915
rm -f conftest.err conftest.$ac_ext
16916
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16917
echo "${ECHO_T}$ac_header_preproc" >&6; }
16919
# So? What about this header?
16920
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16922
{ echo "$as_me:$LINENO: WARNING: ftd2xx.h: accepted by the compiler, rejected by the preprocessor!" >&5
16923
echo "$as_me: WARNING: ftd2xx.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16924
{ echo "$as_me:$LINENO: WARNING: ftd2xx.h: proceeding with the compiler's result" >&5
16925
echo "$as_me: WARNING: ftd2xx.h: proceeding with the compiler's result" >&2;}
16926
ac_header_preproc=yes
16929
{ echo "$as_me:$LINENO: WARNING: ftd2xx.h: present but cannot be compiled" >&5
16930
echo "$as_me: WARNING: ftd2xx.h: present but cannot be compiled" >&2;}
16931
{ echo "$as_me:$LINENO: WARNING: ftd2xx.h: check for missing prerequisite headers?" >&5
16932
echo "$as_me: WARNING: ftd2xx.h: check for missing prerequisite headers?" >&2;}
16933
{ echo "$as_me:$LINENO: WARNING: ftd2xx.h: see the Autoconf documentation" >&5
16934
echo "$as_me: WARNING: ftd2xx.h: see the Autoconf documentation" >&2;}
16935
{ echo "$as_me:$LINENO: WARNING: ftd2xx.h: section \"Present But Cannot Be Compiled\"" >&5
16936
echo "$as_me: WARNING: ftd2xx.h: section \"Present But Cannot Be Compiled\"" >&2;}
16937
{ echo "$as_me:$LINENO: WARNING: ftd2xx.h: proceeding with the preprocessor's result" >&5
16938
echo "$as_me: WARNING: ftd2xx.h: proceeding with the preprocessor's result" >&2;}
16939
{ echo "$as_me:$LINENO: WARNING: ftd2xx.h: in the future, the compiler will take precedence" >&5
16940
echo "$as_me: WARNING: ftd2xx.h: in the future, the compiler will take precedence" >&2;}
16942
## -------------------------------------------------------------------------- ##
16943
## Report this to OpenOCD Mailing List <openocd-development@lists.berlios.de> ##
16944
## -------------------------------------------------------------------------- ##
16946
) | sed "s/^/$as_me: WARNING: /" >&2
16949
{ echo "$as_me:$LINENO: checking for ftd2xx.h" >&5
16950
echo $ECHO_N "checking for ftd2xx.h... $ECHO_C" >&6; }
16951
if test "${ac_cv_header_ftd2xx_h+set}" = set; then
16952
echo $ECHO_N "(cached) $ECHO_C" >&6
16954
ac_cv_header_ftd2xx_h=$ac_header_preproc
16956
{ echo "$as_me:$LINENO: result: $ac_cv_header_ftd2xx_h" >&5
16957
echo "${ECHO_T}$ac_cv_header_ftd2xx_h" >&6; }
16960
if test $ac_cv_header_ftd2xx_h = yes; then
16964
{ { echo "$as_me:$LINENO: error: You seem to be missing the FTD2xx driver header file." >&5
16965
echo "$as_me: error: You seem to be missing the FTD2xx driver header file." >&2;}
16966
{ (exit 1); exit 1; }; }
16971
{ echo "$as_me:$LINENO: checking for library containing FT_GetLibraryVersion" >&5
16972
echo $ECHO_N "checking for library containing FT_GetLibraryVersion... $ECHO_C" >&6; }
16973
if test "${ac_cv_search_FT_GetLibraryVersion+set}" = set; then
16974
echo $ECHO_N "(cached) $ECHO_C" >&6
16976
ac_func_search_save_LIBS=$LIBS
16977
cat >conftest.$ac_ext <<_ACEOF
16980
cat confdefs.h >>conftest.$ac_ext
16981
cat >>conftest.$ac_ext <<_ACEOF
16982
/* end confdefs.h. */
16984
/* Override any GCC internal prototype to avoid an error.
16985
Use char because int might match the return type of a GCC
16986
builtin and then its argument prototype would still apply. */
16990
char FT_GetLibraryVersion ();
16994
return FT_GetLibraryVersion ();
16999
for ac_lib in '' ftd2xx; do
17000
if test -z "$ac_lib"; then
17001
ac_res="none required"
17004
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
17006
rm -f conftest.$ac_objext conftest$ac_exeext
17007
if { (ac_try="$ac_link"
17008
case "(($ac_try" in
17009
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17010
*) ac_try_echo=$ac_try;;
17012
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17013
(eval "$ac_link") 2>conftest.er1
17015
grep -v '^ *+' conftest.er1 >conftest.err
17017
cat conftest.err >&5
17018
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17019
(exit $ac_status); } && {
17020
test -z "$ac_c_werror_flag" ||
17021
test ! -s conftest.err
17022
} && test -s conftest$ac_exeext &&
17023
$as_test_x conftest$ac_exeext; then
17024
ac_cv_search_FT_GetLibraryVersion=$ac_res
17026
echo "$as_me: failed program was:" >&5
17027
sed 's/^/| /' conftest.$ac_ext >&5
17032
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17034
if test "${ac_cv_search_FT_GetLibraryVersion+set}" = set; then
17038
if test "${ac_cv_search_FT_GetLibraryVersion+set}" = set; then
17041
ac_cv_search_FT_GetLibraryVersion=no
17043
rm conftest.$ac_ext
17044
LIBS=$ac_func_search_save_LIBS
17046
{ echo "$as_me:$LINENO: result: $ac_cv_search_FT_GetLibraryVersion" >&5
17047
echo "${ECHO_T}$ac_cv_search_FT_GetLibraryVersion" >&6; }
17048
ac_res=$ac_cv_search_FT_GetLibraryVersion
17049
if test "$ac_res" != no; then
17050
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17054
{ { echo "$as_me:$LINENO: error: You appear to be missing the FTD2xx driver library." >&5
17055
echo "$as_me: error: You appear to be missing the FTD2xx driver library." >&2;}
17056
{ (exit 1); exit 1; }; }
17064
if test $build_ft2232_ftd2xx = yes -o $build_presto_ftd2xx = yes; then
17066
# Before we go any further - make sure we can *BUILD* and *RUN*
17067
# a simple app with the "ftd2xx.lib" file - in what ever form we where given
17068
# We should be able to compile, link and run this test program now
17069
{ echo "$as_me:$LINENO: checking whether ftd2xx library works" >&5
17070
echo $ECHO_N "checking whether ftd2xx library works... $ECHO_C" >&6; }
17073
# Save the LDFLAGS for later..
17074
LDFLAGS_SAVE=$LDFLAGS
17075
CFLAGS_SAVE=$CFLAGS
17076
_LDFLAGS=`eval echo $LDFLAGS`
17077
_CFLAGS=`eval echo $CFLAGS`
17081
if test "$cross_compiling" = yes; then
17083
{ echo "$as_me:$LINENO: result: Skipping as we are cross-compiling" >&5
17084
echo "${ECHO_T}Skipping as we are cross-compiling" >&6; }
17087
cat >conftest.$ac_ext <<_ACEOF
17089
#include "confdefs.h"
17091
#include "windows.h"
17094
#include <ftd2xx.h>
17097
main( int argc, char **argv )
17100
FT_GetLibraryVersion( &x );
17105
rm -f conftest$ac_exeext
17106
if { (ac_try="$ac_link"
17107
case "(($ac_try" in
17108
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17109
*) ac_try_echo=$ac_try;;
17111
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17112
(eval "$ac_link") 2>&5
17114
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17115
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17116
{ (case "(($ac_try" in
17117
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17118
*) ac_try_echo=$ac_try;;
17120
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17121
(eval "$ac_try") 2>&5
17123
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17124
(exit $ac_status); }; }; then
17126
{ echo "$as_me:$LINENO: result: Success!" >&5
17127
echo "${ECHO_T}Success!" >&6; }
17130
echo "$as_me: program exited with status $ac_status" >&5
17131
echo "$as_me: failed program was:" >&5
17132
sed 's/^/| /' conftest.$ac_ext >&5
17134
( exit $ac_status )
17136
{ { echo "$as_me:$LINENO: error: Cannot build & run test program using ftd2xx.lib" >&5
17137
echo "$as_me: error: Cannot build & run test program using ftd2xx.lib" >&2;}
17138
{ (exit 1); exit 1; }; }
17141
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17146
{ echo "$as_me:$LINENO: checking for ftd2xx highspeed device support" >&5
17147
echo $ECHO_N "checking for ftd2xx highspeed device support... $ECHO_C" >&6; }
17148
cat >conftest.$ac_ext <<_ACEOF
17150
#include "confdefs.h"
17152
#include "windows.h"
17155
#include <ftd2xx.h>
17156
DWORD x = FT_DEVICE_4232H;
17159
rm -f conftest.$ac_objext
17160
if { (ac_try="$ac_compile"
17161
case "(($ac_try" in
17162
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17163
*) ac_try_echo=$ac_try;;
17165
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17166
(eval "$ac_compile") 2>conftest.er1
17168
grep -v '^ *+' conftest.er1 >conftest.err
17170
cat conftest.err >&5
17171
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17172
(exit $ac_status); } && {
17173
test -z "$ac_c_werror_flag" ||
17174
test ! -s conftest.err
17175
} && test -s conftest.$ac_objext; then
17178
cat >>confdefs.h <<\_ACEOF
17179
#define BUILD_FT2232_HIGHSPEED 1
17182
build_ft2232_highspeed=yes
17185
echo "$as_me: failed program was:" >&5
17186
sed 's/^/| /' conftest.$ac_ext >&5
17189
build_ft2232_highspeed=no
17193
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17194
{ echo "$as_me:$LINENO: result: $build_ft2232_highspeed" >&5
17195
echo "${ECHO_T}$build_ft2232_highspeed" >&6; }
17197
if test $build_ft2232_highspeed = no; then
17198
{ echo "$as_me:$LINENO: WARNING: You need a newer FTD2XX driver (version 2.04.16 or later)." >&5
17199
echo "$as_me: WARNING: You need a newer FTD2XX driver (version 2.04.16 or later)." >&2;}
17202
LDFLAGS=$LDFLAGS_SAVE
17203
CFLAGS=$CFLAGS_SAVE
17206
if test $build_ft2232_libftdi = yes ; then
17207
# We assume: the package is preinstalled in the proper place
17208
# these present as 2 libraries..
17209
LIBS="$LIBS -lftdi -lusb"
17211
# Try to build a small program.
17212
{ echo "$as_me:$LINENO: checking Build & Link with libftdi..." >&5
17213
echo $ECHO_N "checking Build & Link with libftdi...... $ECHO_C" >&6; }
17215
LDFLAGS_SAVE=$LDFLAGS
17216
CFLAGS_SAVE=$CFLAGS
17217
_LDFLAGS=`eval echo $LDFLAGS`
17218
_CFLAGS=`eval echo $CFLAGS`
17222
if test "$cross_compiling" = yes; then
17224
{ echo "$as_me:$LINENO: result: Skipping as we are cross-compiling" >&5
17225
echo "${ECHO_T}Skipping as we are cross-compiling" >&6; }
17228
cat >conftest.$ac_ext <<_ACEOF
17234
main( int argc, char **argv )
17236
struct ftdi_context *p;
17241
fprintf( stderr, "calling ftdi_new() failed\n");
17247
rm -f conftest$ac_exeext
17248
if { (ac_try="$ac_link"
17249
case "(($ac_try" in
17250
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17251
*) ac_try_echo=$ac_try;;
17253
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17254
(eval "$ac_link") 2>&5
17256
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17257
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17258
{ (case "(($ac_try" in
17259
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17260
*) ac_try_echo=$ac_try;;
17262
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17263
(eval "$ac_try") 2>&5
17265
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17266
(exit $ac_status); }; }; then
17268
{ echo "$as_me:$LINENO: result: Success" >&5
17269
echo "${ECHO_T}Success" >&6; }
17272
echo "$as_me: program exited with status $ac_status" >&5
17273
echo "$as_me: failed program was:" >&5
17274
sed 's/^/| /' conftest.$ac_ext >&5
17276
( exit $ac_status )
17278
{ { echo "$as_me:$LINENO: error: Cannot build & run test program using libftdi" >&5
17279
echo "$as_me: error: Cannot build & run test program using libftdi" >&2;}
17280
{ (exit 1); exit 1; }; }
17283
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17288
{ echo "$as_me:$LINENO: checking for libftdi highspeed device support" >&5
17289
echo $ECHO_N "checking for libftdi highspeed device support... $ECHO_C" >&6; }
17290
cat >conftest.$ac_ext <<_ACEOF
17294
enum ftdi_chip_type x = TYPE_2232H;
17297
rm -f conftest.$ac_objext
17298
if { (ac_try="$ac_compile"
17299
case "(($ac_try" in
17300
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17301
*) ac_try_echo=$ac_try;;
17303
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17304
(eval "$ac_compile") 2>conftest.er1
17306
grep -v '^ *+' conftest.er1 >conftest.err
17308
cat conftest.err >&5
17309
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17310
(exit $ac_status); } && {
17311
test -z "$ac_c_werror_flag" ||
17312
test ! -s conftest.err
17313
} && test -s conftest.$ac_objext; then
17316
cat >>confdefs.h <<\_ACEOF
17317
#define BUILD_FT2232_HIGHSPEED 1
17320
build_ft2232_highspeed=yes
17323
echo "$as_me: failed program was:" >&5
17324
sed 's/^/| /' conftest.$ac_ext >&5
17327
build_ft2232_highspeed=no
17331
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17332
{ echo "$as_me:$LINENO: result: $build_ft2232_highspeed" >&5
17333
echo "${ECHO_T}$build_ft2232_highspeed" >&6; }
17335
if test $build_ft2232_highspeed = no; then
17336
{ echo "$as_me:$LINENO: WARNING: You need a newer libftdi version (0.16 or later)." >&5
17337
echo "$as_me: WARNING: You need a newer libftdi version (0.16 or later)." >&2;}
17340
# Restore the 'unexpanded ldflags'
17341
LDFLAGS=$LDFLAGS_SAVE
17342
CFLAGS=$CFLAGS_SAVE
17345
# check for usb.h when a driver will require it
17346
if test $build_jlink = yes -o $build_vsllink = yes -o $build_usbprog = yes -o \
17347
$build_rlink = yes -o $build_armjtagew = yes
17350
for ac_header in usb.h
17352
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17353
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17354
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17355
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17356
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17357
echo $ECHO_N "(cached) $ECHO_C" >&6
17359
ac_res=`eval echo '${'$as_ac_Header'}'`
17360
{ echo "$as_me:$LINENO: result: $ac_res" >&5
17361
echo "${ECHO_T}$ac_res" >&6; }
17363
# Is the header compilable?
17364
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
17365
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17366
cat >conftest.$ac_ext <<_ACEOF
17369
cat confdefs.h >>conftest.$ac_ext
17370
cat >>conftest.$ac_ext <<_ACEOF
17371
/* end confdefs.h. */
17372
$ac_includes_default
17373
#include <$ac_header>
17375
rm -f conftest.$ac_objext
17376
if { (ac_try="$ac_compile"
17377
case "(($ac_try" in
17378
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17379
*) ac_try_echo=$ac_try;;
17381
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17382
(eval "$ac_compile") 2>conftest.er1
17384
grep -v '^ *+' conftest.er1 >conftest.err
17386
cat conftest.err >&5
17387
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17388
(exit $ac_status); } && {
17389
test -z "$ac_c_werror_flag" ||
17390
test ! -s conftest.err
17391
} && test -s conftest.$ac_objext; then
17392
ac_header_compiler=yes
17394
echo "$as_me: failed program was:" >&5
17395
sed 's/^/| /' conftest.$ac_ext >&5
17397
ac_header_compiler=no
17400
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17401
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17402
echo "${ECHO_T}$ac_header_compiler" >&6; }
17404
# Is the header present?
17405
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
17406
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17407
cat >conftest.$ac_ext <<_ACEOF
17410
cat confdefs.h >>conftest.$ac_ext
17411
cat >>conftest.$ac_ext <<_ACEOF
17412
/* end confdefs.h. */
17413
#include <$ac_header>
17415
if { (ac_try="$ac_cpp conftest.$ac_ext"
17416
case "(($ac_try" in
17417
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17418
*) ac_try_echo=$ac_try;;
17420
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17421
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17423
grep -v '^ *+' conftest.er1 >conftest.err
17425
cat conftest.err >&5
17426
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17427
(exit $ac_status); } >/dev/null && {
17428
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17429
test ! -s conftest.err
17431
ac_header_preproc=yes
17433
echo "$as_me: failed program was:" >&5
17434
sed 's/^/| /' conftest.$ac_ext >&5
17436
ac_header_preproc=no
17439
rm -f conftest.err conftest.$ac_ext
17440
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17441
echo "${ECHO_T}$ac_header_preproc" >&6; }
17443
# So? What about this header?
17444
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17446
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17447
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17448
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17449
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17450
ac_header_preproc=yes
17453
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17454
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17455
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17456
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17457
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17458
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17459
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17460
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17461
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17462
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17463
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17464
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17466
## -------------------------------------------------------------------------- ##
17467
## Report this to OpenOCD Mailing List <openocd-development@lists.berlios.de> ##
17468
## -------------------------------------------------------------------------- ##
17470
) | sed "s/^/$as_me: WARNING: /" >&2
17473
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
17474
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17475
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17476
echo $ECHO_N "(cached) $ECHO_C" >&6
17478
eval "$as_ac_Header=\$ac_header_preproc"
17480
ac_res=`eval echo '${'$as_ac_Header'}'`
17481
{ echo "$as_me:$LINENO: result: $ac_res" >&5
17482
echo "${ECHO_T}$ac_res" >&6; }
17485
if test `eval echo '${'$as_ac_Header'}'` = yes; then
17486
cat >>confdefs.h <<_ACEOF
17487
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17491
{ { echo "$as_me:$LINENO: error: usb.h is required to build some OpenOCD driver(s)" >&5
17492
echo "$as_me: error: usb.h is required to build some OpenOCD driver(s)" >&2;}
17493
{ (exit 1); exit 1; }; }
17500
if test $build_release = yes; then
17508
if test $build_parport = yes; then
17516
if test $build_dummy = yes; then
17524
if test x$parport_use_giveio = xyes; then
17532
if test $build_ep93xx = yes; then
17540
if test $build_ecosboard = yes; then
17542
ECOSBOARD_FALSE='#'
17548
if test $build_zy1000 = yes; then
17556
if test $build_ioutil = yes; then
17564
if test $build_httpd = yes; then
17572
if test $build_at91rm9200 = yes; then
17574
AT91RM9200_FALSE='#'
17576
AT91RM9200_TRUE='#'
17580
if test $build_bitbang = yes; then
17588
if test $build_ft2232_libftdi = yes; then
17589
FT2232_LIBFTDI_TRUE=
17590
FT2232_LIBFTDI_FALSE='#'
17592
FT2232_LIBFTDI_TRUE='#'
17593
FT2232_LIBFTDI_FALSE=
17596
if test $build_ft2232_ftd2xx = yes -o $build_ft2232_libftdi = yes; then
17597
FT2232_DRIVER_TRUE=
17598
FT2232_DRIVER_FALSE='#'
17600
FT2232_DRIVER_TRUE='#'
17601
FT2232_DRIVER_FALSE=
17604
if test $build_amtjtagaccel = yes; then
17606
AMTJTAGACCEL_FALSE='#'
17608
AMTJTAGACCEL_TRUE='#'
17609
AMTJTAGACCEL_FALSE=
17612
if test $build_gw16012 = yes; then
17620
if test $build_presto_libftdi = yes; then
17621
PRESTO_LIBFTDI_TRUE=
17622
PRESTO_LIBFTDI_FALSE='#'
17624
PRESTO_LIBFTDI_TRUE='#'
17625
PRESTO_LIBFTDI_FALSE=
17628
if test $build_presto_ftd2xx = yes -o $build_presto_libftdi = yes; then
17629
PRESTO_DRIVER_TRUE=
17630
PRESTO_DRIVER_FALSE='#'
17632
PRESTO_DRIVER_TRUE='#'
17633
PRESTO_DRIVER_FALSE=
17636
if test $build_usbprog = yes; then
17644
if test $build_oocd_trace = yes; then
17646
OOCD_TRACE_FALSE='#'
17648
OOCD_TRACE_TRUE='#'
17652
if test $build_jlink = yes; then
17660
if test $build_vsllink = yes; then
17668
if test $build_rlink = yes; then
17676
if test $build_armjtagew = yes; then
17678
ARMJTAGEW_FALSE='#'
17684
if test $is_cygwin = yes; then
17686
IS_CYGWIN_FALSE='#'
17692
if test $is_mingw = yes; then
17700
if test $is_win32 = yes; then
17708
if test $is_darwin = yes; then
17710
IS_DARWIN_FALSE='#'
17716
if test $build_bitq = yes; then
17725
if test $build_minidriver = yes; then
17727
MINIDRIVER_FALSE='#'
17729
MINIDRIVER_TRUE='#'
17733
if test $build_minidriver_dummy = yes; then
17734
MINIDRIVER_DUMMY_TRUE=
17735
MINIDRIVER_DUMMY_FALSE='#'
17737
MINIDRIVER_DUMMY_TRUE='#'
17738
MINIDRIVER_DUMMY_FALSE=
17742
# Look for environ alternatives. Possibility #1: is environ in unistd.h or stdlib.h?
17743
{ echo "$as_me:$LINENO: checking for environ in unistd.h and stdlib.h" >&5
17744
echo $ECHO_N "checking for environ in unistd.h and stdlib.h... $ECHO_C" >&6; }
17745
cat >conftest.$ac_ext <<_ACEOF
17747
#define _GNU_SOURCE
17748
#include <unistd.h>
17749
#include <stdlib.h>
17750
int main(int argc, char **argv) { char **ep = environ; }
17753
rm -f conftest.$ac_objext
17754
if { (ac_try="$ac_compile"
17755
case "(($ac_try" in
17756
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17757
*) ac_try_echo=$ac_try;;
17759
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17760
(eval "$ac_compile") 2>conftest.er1
17762
grep -v '^ *+' conftest.er1 >conftest.err
17764
cat conftest.err >&5
17765
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17766
(exit $ac_status); } && {
17767
test -z "$ac_c_werror_flag" ||
17768
test ! -s conftest.err
17769
} && test -s conftest.$ac_objext; then
17771
{ echo "$as_me:$LINENO: result: yes" >&5
17772
echo "${ECHO_T}yes" >&6; }
17776
echo "$as_me: failed program was:" >&5
17777
sed 's/^/| /' conftest.$ac_ext >&5
17780
{ echo "$as_me:$LINENO: result: no" >&5
17781
echo "${ECHO_T}no" >&6; }
17783
# Possibility #2: can environ be found in an available library?
17784
{ echo "$as_me:$LINENO: checking for extern environ" >&5
17785
echo $ECHO_N "checking for extern environ... $ECHO_C" >&6; }
17786
cat >conftest.$ac_ext <<_ACEOF
17788
extern char **environ;
17789
int main(int argc, char **argv) { char **ep = environ; }
17792
rm -f conftest.$ac_objext conftest$ac_exeext
17793
if { (ac_try="$ac_link"
17794
case "(($ac_try" in
17795
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17796
*) ac_try_echo=$ac_try;;
17798
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17799
(eval "$ac_link") 2>conftest.er1
17801
grep -v '^ *+' conftest.er1 >conftest.err
17803
cat conftest.err >&5
17804
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17805
(exit $ac_status); } && {
17806
test -z "$ac_c_werror_flag" ||
17807
test ! -s conftest.err
17808
} && test -s conftest$ac_exeext &&
17809
$as_test_x conftest$ac_exeext; then
17812
cat >>confdefs.h <<\_ACEOF
17813
#define NEED_ENVIRON_EXTERN 1
17819
echo "$as_me: failed program was:" >&5
17820
sed 's/^/| /' conftest.$ac_ext >&5
17827
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17828
conftest$ac_exeext conftest.$ac_ext
17829
{ echo "$as_me:$LINENO: result: ${has_environ}" >&5
17830
echo "${ECHO_T}${has_environ}" >&6; }
17834
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17836
if test "${has_environ}" != "yes" ; then
17837
{ { echo "$as_me:$LINENO: error: Could not find 'environ' in unistd.h or available libraries.
17838
See \`config.log' for more details." >&5
17839
echo "$as_me: error: Could not find 'environ' in unistd.h or available libraries.
17840
See \`config.log' for more details." >&2;}
17841
{ (exit 1); exit 1; }; }
17845
cat >>confdefs.h <<\_ACEOF
17846
#define _GNU_SOURCE 1
17850
# set default gcc warnings
17851
GCC_WARNINGS="-Wall -Wstrict-prototypes -Wformat-security"
17852
if test "${gcc_wextra}" = yes; then
17853
GCC_WARNINGS="${GCC_WARNINGS} -Wextra -Wno-unused-parameter"
17854
GCC_WARNINGS="${GCC_WARNINGS} -Wbad-function-cast"
17855
GCC_WARNINGS="${GCC_WARNINGS} -Wcast-align"
17856
GCC_WARNINGS="${GCC_WARNINGS} -Wredundant-decls"
17858
if test "${gcc_werror}" = yes; then
17859
GCC_WARNINGS="${GCC_WARNINGS} -Werror"
17862
# overide default gcc cflags
17863
if test $gcc_warnings = yes; then
17864
CFLAGS="$CFLAGS $GCC_WARNINGS"
17867
# Setup for compiling build tools
17868
{ echo "$as_me:$LINENO: checking for a C compiler for build tools" >&5
17869
echo $ECHO_N "checking for a C compiler for build tools... $ECHO_C" >&6; }
17870
if test $cross_compiling = yes; then
17871
for ac_prog in gcc cc
17873
# Extract the first word of "$ac_prog", so it can be a program name with args.
17874
set dummy $ac_prog; ac_word=$2
17875
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
17876
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
17877
if test "${ac_cv_prog_CC_FOR_BUILD+set}" = set; then
17878
echo $ECHO_N "(cached) $ECHO_C" >&6
17880
if test -n "$CC_FOR_BUILD"; then
17881
ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
17883
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17884
for as_dir in $PATH
17887
test -z "$as_dir" && as_dir=.
17888
for ac_exec_ext in '' $ac_executable_extensions; do
17889
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17890
ac_cv_prog_CC_FOR_BUILD="$ac_prog"
17891
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17900
CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
17901
if test -n "$CC_FOR_BUILD"; then
17902
{ echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
17903
echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
17905
{ echo "$as_me:$LINENO: result: no" >&5
17906
echo "${ECHO_T}no" >&6; }
17910
test -n "$CC_FOR_BUILD" && break
17913
CFLAGS_FOR_BUILD="-g -O2 $GCC_WARNINGS"
17916
CFLAGS_FOR_BUILD=$CFLAGS
17919
{ echo "$as_me:$LINENO: result: $CC_FOR_BUILD" >&5
17920
echo "${ECHO_T}$CC_FOR_BUILD" >&6; }
17924
{ echo "$as_me:$LINENO: checking for suffix of executable build tools" >&5
17925
echo $ECHO_N "checking for suffix of executable build tools... $ECHO_C" >&6; }
17926
if test $cross_compiling = yes; then
17927
cat >conftest.c <<\_______EOF
17933
for i in .exe ""; do
17934
compile="$CC_FOR_BUILD conftest.c -o conftest$i"
17935
if { (eval echo "$as_me:$LINENO: \"$compile\"") >&5
17936
(eval $compile) 2>&5
17938
echo "$as_me:$LINENO: \$? = $ac_status" >&5
17939
(exit $ac_status); }; then
17940
if (./conftest) 2>&5; then
17941
EXEEXT_FOR_BUILD=$i
17947
if test "${EXEEXT_FOR_BUILD+set}" != set; then
17948
{ { echo "$as_me:$LINENO: error: Cannot determine suffix of executable build tools" >&5
17949
echo "$as_me: error: Cannot determine suffix of executable build tools" >&2;}
17950
{ (exit 1); exit 1; }; }
17953
EXEEXT_FOR_BUILD=$EXEEXT
17955
{ echo "$as_me:$LINENO: result: $EXEEXT_FOR_BUILD" >&5
17956
echo "${ECHO_T}$EXEEXT_FOR_BUILD" >&6; }
17959
ac_config_files="$ac_config_files Makefile src/Makefile src/helper/Makefile src/jtag/Makefile src/xsvf/Makefile src/svf/Makefile src/target/Makefile src/server/Makefile src/flash/Makefile src/pld/Makefile doc/Makefile"
17961
cat >confcache <<\_ACEOF
17962
# This file is a shell script that caches the results of configure
17963
# tests run on this system so they can be shared between configure
17964
# scripts and configure runs, see configure's option --config-cache.
17965
# It is not useful on other systems. If it contains results you don't
17966
# want to keep, you may remove or edit it.
17968
# config.status only pays attention to the cache file if you give it
17969
# the --recheck option to rerun configure.
17971
# `ac_cv_env_foo' variables (set or unset) will be overridden when
17972
# loading this file, other *unset* `ac_cv_foo' will be assigned the
17973
# following values.
17977
# The following way of writing the cache mishandles newlines in values,
17978
# but we know of no workaround that is simple, portable, and efficient.
17979
# So, we kill variables containing newlines.
17980
# Ultrix sh set writes to stderr and can't be redirected directly,
17981
# and sets the high bit in the cache file unless we assign to the vars.
17983
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17984
eval ac_val=\$$ac_var
17988
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
17989
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
17992
_ | IFS | as_nl) ;; #(
17993
*) $as_unset $ac_var ;;
17999
case $as_nl`(ac_space=' '; set) 2>&1` in #(
18000
*${as_nl}ac_space=\ *)
18001
# `set' does not quote correctly, so add quotes (double-quote
18002
# substitution turns \\\\ into \\, and sed turns \\ into \).
18005
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18008
# `set' quotes correctly as required by POSIX, so do not add quotes.
18009
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18018
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18020
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18022
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18023
if test -w "$cache_file"; then
18024
test "x$cache_file" != "x/dev/null" &&
18025
{ echo "$as_me:$LINENO: updating cache $cache_file" >&5
18026
echo "$as_me: updating cache $cache_file" >&6;}
18027
cat confcache >$cache_file
18029
{ echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
18030
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18035
test "x$prefix" = xNONE && prefix=$ac_default_prefix
18036
# Let make expand exec_prefix.
18037
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18039
DEFS=-DHAVE_CONFIG_H
18043
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18044
# 1. Remove the extension, and $U if already installed.
18045
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18046
ac_i=`echo "$ac_i" | sed "$ac_script"`
18047
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18048
# will be set to the directory where LIBOBJS objects are built.
18049
ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18050
ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
18052
LIBOBJS=$ac_libobjs
18054
LTLIBOBJS=$ac_ltlibobjs
18057
if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
18058
{ { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
18059
Usually this means the macro was only invoked conditionally." >&5
18060
echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
18061
Usually this means the macro was only invoked conditionally." >&2;}
18062
{ (exit 1); exit 1; }; }
18064
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
18065
{ { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
18066
Usually this means the macro was only invoked conditionally." >&5
18067
echo "$as_me: error: conditional \"AMDEP\" was never defined.
18068
Usually this means the macro was only invoked conditionally." >&2;}
18069
{ (exit 1); exit 1; }; }
18071
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
18072
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
18073
Usually this means the macro was only invoked conditionally." >&5
18074
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
18075
Usually this means the macro was only invoked conditionally." >&2;}
18076
{ (exit 1); exit 1; }; }
18078
if test -z "${RELEASE_TRUE}" && test -z "${RELEASE_FALSE}"; then
18079
{ { echo "$as_me:$LINENO: error: conditional \"RELEASE\" was never defined.
18080
Usually this means the macro was only invoked conditionally." >&5
18081
echo "$as_me: error: conditional \"RELEASE\" was never defined.
18082
Usually this means the macro was only invoked conditionally." >&2;}
18083
{ (exit 1); exit 1; }; }
18085
if test -z "${PARPORT_TRUE}" && test -z "${PARPORT_FALSE}"; then
18086
{ { echo "$as_me:$LINENO: error: conditional \"PARPORT\" was never defined.
18087
Usually this means the macro was only invoked conditionally." >&5
18088
echo "$as_me: error: conditional \"PARPORT\" was never defined.
18089
Usually this means the macro was only invoked conditionally." >&2;}
18090
{ (exit 1); exit 1; }; }
18092
if test -z "${DUMMY_TRUE}" && test -z "${DUMMY_FALSE}"; then
18093
{ { echo "$as_me:$LINENO: error: conditional \"DUMMY\" was never defined.
18094
Usually this means the macro was only invoked conditionally." >&5
18095
echo "$as_me: error: conditional \"DUMMY\" was never defined.
18096
Usually this means the macro was only invoked conditionally." >&2;}
18097
{ (exit 1); exit 1; }; }
18099
if test -z "${GIVEIO_TRUE}" && test -z "${GIVEIO_FALSE}"; then
18100
{ { echo "$as_me:$LINENO: error: conditional \"GIVEIO\" was never defined.
18101
Usually this means the macro was only invoked conditionally." >&5
18102
echo "$as_me: error: conditional \"GIVEIO\" was never defined.
18103
Usually this means the macro was only invoked conditionally." >&2;}
18104
{ (exit 1); exit 1; }; }
18106
if test -z "${EP93XX_TRUE}" && test -z "${EP93XX_FALSE}"; then
18107
{ { echo "$as_me:$LINENO: error: conditional \"EP93XX\" was never defined.
18108
Usually this means the macro was only invoked conditionally." >&5
18109
echo "$as_me: error: conditional \"EP93XX\" was never defined.
18110
Usually this means the macro was only invoked conditionally." >&2;}
18111
{ (exit 1); exit 1; }; }
18113
if test -z "${ECOSBOARD_TRUE}" && test -z "${ECOSBOARD_FALSE}"; then
18114
{ { echo "$as_me:$LINENO: error: conditional \"ECOSBOARD\" was never defined.
18115
Usually this means the macro was only invoked conditionally." >&5
18116
echo "$as_me: error: conditional \"ECOSBOARD\" was never defined.
18117
Usually this means the macro was only invoked conditionally." >&2;}
18118
{ (exit 1); exit 1; }; }
18120
if test -z "${ZY1000_TRUE}" && test -z "${ZY1000_FALSE}"; then
18121
{ { echo "$as_me:$LINENO: error: conditional \"ZY1000\" was never defined.
18122
Usually this means the macro was only invoked conditionally." >&5
18123
echo "$as_me: error: conditional \"ZY1000\" was never defined.
18124
Usually this means the macro was only invoked conditionally." >&2;}
18125
{ (exit 1); exit 1; }; }
18127
if test -z "${IOUTIL_TRUE}" && test -z "${IOUTIL_FALSE}"; then
18128
{ { echo "$as_me:$LINENO: error: conditional \"IOUTIL\" was never defined.
18129
Usually this means the macro was only invoked conditionally." >&5
18130
echo "$as_me: error: conditional \"IOUTIL\" was never defined.
18131
Usually this means the macro was only invoked conditionally." >&2;}
18132
{ (exit 1); exit 1; }; }
18134
if test -z "${HTTPD_TRUE}" && test -z "${HTTPD_FALSE}"; then
18135
{ { echo "$as_me:$LINENO: error: conditional \"HTTPD\" was never defined.
18136
Usually this means the macro was only invoked conditionally." >&5
18137
echo "$as_me: error: conditional \"HTTPD\" was never defined.
18138
Usually this means the macro was only invoked conditionally." >&2;}
18139
{ (exit 1); exit 1; }; }
18141
if test -z "${AT91RM9200_TRUE}" && test -z "${AT91RM9200_FALSE}"; then
18142
{ { echo "$as_me:$LINENO: error: conditional \"AT91RM9200\" was never defined.
18143
Usually this means the macro was only invoked conditionally." >&5
18144
echo "$as_me: error: conditional \"AT91RM9200\" was never defined.
18145
Usually this means the macro was only invoked conditionally." >&2;}
18146
{ (exit 1); exit 1; }; }
18148
if test -z "${BITBANG_TRUE}" && test -z "${BITBANG_FALSE}"; then
18149
{ { echo "$as_me:$LINENO: error: conditional \"BITBANG\" was never defined.
18150
Usually this means the macro was only invoked conditionally." >&5
18151
echo "$as_me: error: conditional \"BITBANG\" was never defined.
18152
Usually this means the macro was only invoked conditionally." >&2;}
18153
{ (exit 1); exit 1; }; }
18155
if test -z "${FT2232_LIBFTDI_TRUE}" && test -z "${FT2232_LIBFTDI_FALSE}"; then
18156
{ { echo "$as_me:$LINENO: error: conditional \"FT2232_LIBFTDI\" was never defined.
18157
Usually this means the macro was only invoked conditionally." >&5
18158
echo "$as_me: error: conditional \"FT2232_LIBFTDI\" was never defined.
18159
Usually this means the macro was only invoked conditionally." >&2;}
18160
{ (exit 1); exit 1; }; }
18162
if test -z "${FT2232_DRIVER_TRUE}" && test -z "${FT2232_DRIVER_FALSE}"; then
18163
{ { echo "$as_me:$LINENO: error: conditional \"FT2232_DRIVER\" was never defined.
18164
Usually this means the macro was only invoked conditionally." >&5
18165
echo "$as_me: error: conditional \"FT2232_DRIVER\" was never defined.
18166
Usually this means the macro was only invoked conditionally." >&2;}
18167
{ (exit 1); exit 1; }; }
18169
if test -z "${AMTJTAGACCEL_TRUE}" && test -z "${AMTJTAGACCEL_FALSE}"; then
18170
{ { echo "$as_me:$LINENO: error: conditional \"AMTJTAGACCEL\" was never defined.
18171
Usually this means the macro was only invoked conditionally." >&5
18172
echo "$as_me: error: conditional \"AMTJTAGACCEL\" was never defined.
18173
Usually this means the macro was only invoked conditionally." >&2;}
18174
{ (exit 1); exit 1; }; }
18176
if test -z "${GW16012_TRUE}" && test -z "${GW16012_FALSE}"; then
18177
{ { echo "$as_me:$LINENO: error: conditional \"GW16012\" was never defined.
18178
Usually this means the macro was only invoked conditionally." >&5
18179
echo "$as_me: error: conditional \"GW16012\" was never defined.
18180
Usually this means the macro was only invoked conditionally." >&2;}
18181
{ (exit 1); exit 1; }; }
18183
if test -z "${PRESTO_LIBFTDI_TRUE}" && test -z "${PRESTO_LIBFTDI_FALSE}"; then
18184
{ { echo "$as_me:$LINENO: error: conditional \"PRESTO_LIBFTDI\" was never defined.
18185
Usually this means the macro was only invoked conditionally." >&5
18186
echo "$as_me: error: conditional \"PRESTO_LIBFTDI\" was never defined.
18187
Usually this means the macro was only invoked conditionally." >&2;}
18188
{ (exit 1); exit 1; }; }
18190
if test -z "${PRESTO_DRIVER_TRUE}" && test -z "${PRESTO_DRIVER_FALSE}"; then
18191
{ { echo "$as_me:$LINENO: error: conditional \"PRESTO_DRIVER\" was never defined.
18192
Usually this means the macro was only invoked conditionally." >&5
18193
echo "$as_me: error: conditional \"PRESTO_DRIVER\" was never defined.
18194
Usually this means the macro was only invoked conditionally." >&2;}
18195
{ (exit 1); exit 1; }; }
18197
if test -z "${USBPROG_TRUE}" && test -z "${USBPROG_FALSE}"; then
18198
{ { echo "$as_me:$LINENO: error: conditional \"USBPROG\" was never defined.
18199
Usually this means the macro was only invoked conditionally." >&5
18200
echo "$as_me: error: conditional \"USBPROG\" was never defined.
18201
Usually this means the macro was only invoked conditionally." >&2;}
18202
{ (exit 1); exit 1; }; }
18204
if test -z "${OOCD_TRACE_TRUE}" && test -z "${OOCD_TRACE_FALSE}"; then
18205
{ { echo "$as_me:$LINENO: error: conditional \"OOCD_TRACE\" was never defined.
18206
Usually this means the macro was only invoked conditionally." >&5
18207
echo "$as_me: error: conditional \"OOCD_TRACE\" was never defined.
18208
Usually this means the macro was only invoked conditionally." >&2;}
18209
{ (exit 1); exit 1; }; }
18211
if test -z "${JLINK_TRUE}" && test -z "${JLINK_FALSE}"; then
18212
{ { echo "$as_me:$LINENO: error: conditional \"JLINK\" was never defined.
18213
Usually this means the macro was only invoked conditionally." >&5
18214
echo "$as_me: error: conditional \"JLINK\" was never defined.
18215
Usually this means the macro was only invoked conditionally." >&2;}
18216
{ (exit 1); exit 1; }; }
18218
if test -z "${VSLLINK_TRUE}" && test -z "${VSLLINK_FALSE}"; then
18219
{ { echo "$as_me:$LINENO: error: conditional \"VSLLINK\" was never defined.
18220
Usually this means the macro was only invoked conditionally." >&5
18221
echo "$as_me: error: conditional \"VSLLINK\" was never defined.
18222
Usually this means the macro was only invoked conditionally." >&2;}
18223
{ (exit 1); exit 1; }; }
18225
if test -z "${RLINK_TRUE}" && test -z "${RLINK_FALSE}"; then
18226
{ { echo "$as_me:$LINENO: error: conditional \"RLINK\" was never defined.
18227
Usually this means the macro was only invoked conditionally." >&5
18228
echo "$as_me: error: conditional \"RLINK\" was never defined.
18229
Usually this means the macro was only invoked conditionally." >&2;}
18230
{ (exit 1); exit 1; }; }
18232
if test -z "${ARMJTAGEW_TRUE}" && test -z "${ARMJTAGEW_FALSE}"; then
18233
{ { echo "$as_me:$LINENO: error: conditional \"ARMJTAGEW\" was never defined.
18234
Usually this means the macro was only invoked conditionally." >&5
18235
echo "$as_me: error: conditional \"ARMJTAGEW\" was never defined.
18236
Usually this means the macro was only invoked conditionally." >&2;}
18237
{ (exit 1); exit 1; }; }
18239
if test -z "${IS_CYGWIN_TRUE}" && test -z "${IS_CYGWIN_FALSE}"; then
18240
{ { echo "$as_me:$LINENO: error: conditional \"IS_CYGWIN\" was never defined.
18241
Usually this means the macro was only invoked conditionally." >&5
18242
echo "$as_me: error: conditional \"IS_CYGWIN\" was never defined.
18243
Usually this means the macro was only invoked conditionally." >&2;}
18244
{ (exit 1); exit 1; }; }
18246
if test -z "${IS_MINGW_TRUE}" && test -z "${IS_MINGW_FALSE}"; then
18247
{ { echo "$as_me:$LINENO: error: conditional \"IS_MINGW\" was never defined.
18248
Usually this means the macro was only invoked conditionally." >&5
18249
echo "$as_me: error: conditional \"IS_MINGW\" was never defined.
18250
Usually this means the macro was only invoked conditionally." >&2;}
18251
{ (exit 1); exit 1; }; }
18253
if test -z "${IS_WIN32_TRUE}" && test -z "${IS_WIN32_FALSE}"; then
18254
{ { echo "$as_me:$LINENO: error: conditional \"IS_WIN32\" was never defined.
18255
Usually this means the macro was only invoked conditionally." >&5
18256
echo "$as_me: error: conditional \"IS_WIN32\" was never defined.
18257
Usually this means the macro was only invoked conditionally." >&2;}
18258
{ (exit 1); exit 1; }; }
18260
if test -z "${IS_DARWIN_TRUE}" && test -z "${IS_DARWIN_FALSE}"; then
18261
{ { echo "$as_me:$LINENO: error: conditional \"IS_DARWIN\" was never defined.
18262
Usually this means the macro was only invoked conditionally." >&5
18263
echo "$as_me: error: conditional \"IS_DARWIN\" was never defined.
18264
Usually this means the macro was only invoked conditionally." >&2;}
18265
{ (exit 1); exit 1; }; }
18267
if test -z "${BITQ_TRUE}" && test -z "${BITQ_FALSE}"; then
18268
{ { echo "$as_me:$LINENO: error: conditional \"BITQ\" was never defined.
18269
Usually this means the macro was only invoked conditionally." >&5
18270
echo "$as_me: error: conditional \"BITQ\" was never defined.
18271
Usually this means the macro was only invoked conditionally." >&2;}
18272
{ (exit 1); exit 1; }; }
18274
if test -z "${MINIDRIVER_TRUE}" && test -z "${MINIDRIVER_FALSE}"; then
18275
{ { echo "$as_me:$LINENO: error: conditional \"MINIDRIVER\" was never defined.
18276
Usually this means the macro was only invoked conditionally." >&5
18277
echo "$as_me: error: conditional \"MINIDRIVER\" was never defined.
18278
Usually this means the macro was only invoked conditionally." >&2;}
18279
{ (exit 1); exit 1; }; }
18281
if test -z "${MINIDRIVER_DUMMY_TRUE}" && test -z "${MINIDRIVER_DUMMY_FALSE}"; then
18282
{ { echo "$as_me:$LINENO: error: conditional \"MINIDRIVER_DUMMY\" was never defined.
18283
Usually this means the macro was only invoked conditionally." >&5
18284
echo "$as_me: error: conditional \"MINIDRIVER_DUMMY\" was never defined.
18285
Usually this means the macro was only invoked conditionally." >&2;}
18286
{ (exit 1); exit 1; }; }
18289
: ${CONFIG_STATUS=./config.status}
18290
ac_clean_files_save=$ac_clean_files
18291
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18292
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
18293
echo "$as_me: creating $CONFIG_STATUS" >&6;}
18294
cat >$CONFIG_STATUS <<_ACEOF
18296
# Generated by $as_me.
18297
# Run this file to recreate the current configuration.
18298
# Compiler output produced by configure, useful for debugging
18299
# configure, is in config.log if it exists.
18302
ac_cs_recheck=false
18304
SHELL=\${CONFIG_SHELL-$SHELL}
18307
cat >>$CONFIG_STATUS <<\_ACEOF
18308
## --------------------- ##
18309
## M4sh Initialization. ##
18310
## --------------------- ##
18312
# Be more Bourne compatible
18313
DUALCASE=1; export DUALCASE # for MKS sh
18314
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18317
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18318
# is contrary to our usage. Disable this feature.
18319
alias -g '${1+"$@"}'='"$@"'
18320
setopt NO_GLOB_SUBST
18322
case `(set -o) 2>/dev/null` in
18323
*posix*) set -o posix ;;
18332
# Avoid depending upon Character Ranges.
18333
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18334
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18335
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18336
as_cr_digits='0123456789'
18337
as_cr_alnum=$as_cr_Letters$as_cr_digits
18339
# The user is always right.
18340
if test "${PATH_SEPARATOR+set}" != set; then
18341
echo "#! /bin/sh" >conf$$.sh
18342
echo "exit 0" >>conf$$.sh
18344
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
18352
# Support unset when possible.
18353
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
18361
# We need space, tab and new line, in precisely that order. Quoting is
18362
# there to prevent editors from complaining about space-tab.
18363
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
18364
# splitting by setting IFS to empty value.)
18369
# Find who we are. Look in the path if we contain no directory separator.
18371
*[\\/]* ) as_myself=$0 ;;
18372
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18373
for as_dir in $PATH
18376
test -z "$as_dir" && as_dir=.
18377
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18383
# We did not find ourselves, most probably we were run as `sh COMMAND'
18384
# in which case we are not to be found in the path.
18385
if test "x$as_myself" = x; then
18388
if test ! -f "$as_myself"; then
18389
echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18390
{ (exit 1); exit 1; }
18393
# Work around bugs in pre-3.0 UWIN ksh.
18394
for as_var in ENV MAIL MAILPATH
18395
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18403
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
18404
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
18405
LC_TELEPHONE LC_TIME
18407
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
18408
eval $as_var=C; export $as_var
18410
($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
18414
# Required to use basename.
18415
if expr a : '\(a\)' >/dev/null 2>&1 &&
18416
test "X`expr 00001 : '.*\(...\)'`" = X001; then
18422
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18423
as_basename=basename
18429
# Name of the executable.
18430
as_me=`$as_basename -- "$0" ||
18431
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18432
X"$0" : 'X\(//\)$' \| \
18433
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18435
sed '/^.*\/\([^/][^/]*\)\/*$/{
18454
as_lineno_1=$LINENO
18455
as_lineno_2=$LINENO
18456
test "x$as_lineno_1" != "x$as_lineno_2" &&
18457
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
18459
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
18460
# uniformly replaced by the line number. The first 'sed' inserts a
18461
# line-number line after each line using $LINENO; the second 'sed'
18462
# does the real work. The second script uses 'N' to pair each
18463
# line-number line with the line containing $LINENO, and appends
18464
# trailing '-' during substitution so that $LINENO is not a special
18465
# case at line end.
18466
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
18467
# scripts with optimization help from Paolo Bonzini. Blame Lee
18468
# E. McMahon (1931-1989) for sed's syntax. :-)
18480
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
18483
' >$as_me.lineno &&
18484
chmod +x "$as_me.lineno" ||
18485
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
18486
{ (exit 1); exit 1; }; }
18488
# Don't try to exec as it changes $[0], causing all sort of problems
18489
# (the dirname of $[0] is not the place where we might find the
18490
# original and so on. Autoconf is especially sensitive to this).
18491
. "./$as_me.lineno"
18492
# Exit status is that of the last command.
18497
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18503
ECHO_C= ECHO_N= ECHO_T=
18504
case `echo -n x` in
18506
case `echo 'x\c'` in
18507
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
18514
if expr a : '\(a\)' >/dev/null 2>&1 &&
18515
test "X`expr 00001 : '.*\(...\)'`" = X001; then
18521
rm -f conf$$ conf$$.exe conf$$.file
18522
if test -d conf$$.dir; then
18523
rm -f conf$$.dir/conf$$.file
18529
if ln -s conf$$.file conf$$ 2>/dev/null; then
18531
# ... but there are two gotchas:
18532
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18533
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18534
# In both cases, we have to default to `cp -p'.
18535
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18537
elif ln conf$$.file conf$$ 2>/dev/null; then
18542
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18543
rmdir conf$$.dir 2>/dev/null
18545
if mkdir -p . 2>/dev/null; then
18548
test -d ./-p && rmdir ./-p
18552
if test -x / >/dev/null 2>&1; then
18553
as_test_x='test -x'
18555
if ls -dL / >/dev/null 2>&1; then
18562
if test -d "$1"; then
18568
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
18569
???[sx]*):;;*)false;;esac;fi
18573
as_executable_p=$as_test_x
18575
# Sed expression to map a string onto a valid CPP name.
18576
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18578
# Sed expression to map a string onto a valid variable name.
18579
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18584
# Save the log message, to keep $[0] and so on meaningful, and to
18585
# report actual input values of CONFIG_FILES etc. instead of their
18586
# values after options handling.
18588
This file was extended by openocd $as_me 0.3.1, which was
18589
generated by GNU Autoconf 2.61. Invocation command line was
18591
CONFIG_FILES = $CONFIG_FILES
18592
CONFIG_HEADERS = $CONFIG_HEADERS
18593
CONFIG_LINKS = $CONFIG_LINKS
18594
CONFIG_COMMANDS = $CONFIG_COMMANDS
18597
on `(hostname || uname -n) 2>/dev/null | sed 1q`
18602
cat >>$CONFIG_STATUS <<_ACEOF
18603
# Files that config.status was made for.
18604
config_files="$ac_config_files"
18605
config_headers="$ac_config_headers"
18606
config_commands="$ac_config_commands"
18610
cat >>$CONFIG_STATUS <<\_ACEOF
18612
\`$as_me' instantiates files from templates according to the
18613
current configuration.
18615
Usage: $0 [OPTIONS] [FILE]...
18617
-h, --help print this help, then exit
18618
-V, --version print version number and configuration settings, then exit
18619
-q, --quiet do not print progress messages
18620
-d, --debug don't remove temporary files
18621
--recheck update $as_me by reconfiguring in the same conditions
18622
--file=FILE[:TEMPLATE]
18623
instantiate the configuration file FILE
18624
--header=FILE[:TEMPLATE]
18625
instantiate the configuration header FILE
18627
Configuration files:
18630
Configuration headers:
18633
Configuration commands:
18636
Report bugs to <bug-autoconf@gnu.org>."
18639
cat >>$CONFIG_STATUS <<_ACEOF
18641
openocd config.status 0.3.1
18642
configured by $0, generated by GNU Autoconf 2.61,
18643
with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
18645
Copyright (C) 2006 Free Software Foundation, Inc.
18646
This config.status script is free software; the Free Software Foundation
18647
gives unlimited permission to copy, distribute and modify it."
18655
cat >>$CONFIG_STATUS <<\_ACEOF
18656
# If no file are specified by the user, then we need to provide default
18657
# value. By we need to know if files were specified by the user.
18663
ac_option=`expr "X$1" : 'X\([^=]*\)='`
18664
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18675
# Handling of the options.
18676
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18678
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18679
echo "$ac_cs_version"; exit ;;
18680
--debug | --debu | --deb | --de | --d | -d )
18682
--file | --fil | --fi | --f )
18684
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
18685
ac_need_defaults=false;;
18686
--header | --heade | --head | --hea )
18688
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
18689
ac_need_defaults=false;;
18691
# Conflict between --help and --header
18692
{ echo "$as_me: error: ambiguous option: $1
18693
Try \`$0 --help' for more information." >&2
18694
{ (exit 1); exit 1; }; };;
18695
--help | --hel | -h )
18696
echo "$ac_cs_usage"; exit ;;
18697
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
18698
| -silent | --silent | --silen | --sile | --sil | --si | --s)
18701
# This is an error.
18702
-*) { echo "$as_me: error: unrecognized option: $1
18703
Try \`$0 --help' for more information." >&2
18704
{ (exit 1); exit 1; }; } ;;
18706
*) ac_config_targets="$ac_config_targets $1"
18707
ac_need_defaults=false ;;
18713
ac_configure_extra_args=
18715
if $ac_cs_silent; then
18717
ac_configure_extra_args="$ac_configure_extra_args --silent"
18721
cat >>$CONFIG_STATUS <<_ACEOF
18722
if \$ac_cs_recheck; then
18723
echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
18724
CONFIG_SHELL=$SHELL
18725
export CONFIG_SHELL
18726
exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18730
cat >>$CONFIG_STATUS <<\_ACEOF
18734
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18735
## Running $as_me. ##
18741
cat >>$CONFIG_STATUS <<_ACEOF
18745
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18748
# The HP-UX ksh and POSIX shell print the target directory to stdout
18749
# if CDPATH is set.
18750
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18752
sed_quote_subst='$sed_quote_subst'
18753
double_quote_subst='$double_quote_subst'
18754
delay_variable_subst='$delay_variable_subst'
18755
enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
18756
macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
18757
macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
18758
enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
18759
pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
18760
enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
18761
host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
18762
host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
18763
host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
18764
build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
18765
build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
18766
build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
18767
SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
18768
Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
18769
GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
18770
EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
18771
FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
18772
LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
18773
NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
18774
LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
18775
max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
18776
ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
18777
exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
18778
lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
18779
lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
18780
lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
18781
reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
18782
reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18783
deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
18784
file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
18785
AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
18786
AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
18787
STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
18788
RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
18789
old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18790
old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18791
old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18792
CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
18793
CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
18794
compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
18795
GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
18796
lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
18797
lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
18798
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"`'
18799
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"`'
18800
objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
18801
SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
18802
ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
18803
MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
18804
lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
18805
lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
18806
lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
18807
lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
18808
lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
18809
need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
18810
DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
18811
NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
18812
LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
18813
OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
18814
OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
18815
libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
18816
shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18817
extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18818
archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
18819
enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
18820
export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18821
whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18822
compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
18823
old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18824
old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18825
archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18826
archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18827
module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18828
module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18829
with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
18830
allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
18831
no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
18832
hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
18833
hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
18834
hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
18835
hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
18836
hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
18837
hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
18838
hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18839
hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
18840
inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
18841
link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
18842
fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
18843
always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
18844
export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18845
exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
18846
include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
18847
prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18848
file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
18849
variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
18850
need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
18851
need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
18852
version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
18853
runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18854
shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
18855
shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
18856
libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
18857
library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
18858
soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
18859
postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18860
postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18861
finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
18862
finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
18863
hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
18864
sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
18865
sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
18866
hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
18867
enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
18868
enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
18869
enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
18870
old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
18871
striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
18874
LTCFLAGS='$LTCFLAGS'
18875
compiler='$compiler_DEFAULT'
18877
# Quote evaled strings.
18888
deplibs_check_method \
18897
lt_cv_sys_global_symbol_pipe \
18898
lt_cv_sys_global_symbol_to_cdecl \
18899
lt_cv_sys_global_symbol_to_c_name_address \
18900
lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18903
lt_prog_compiler_no_builtin_flag \
18904
lt_prog_compiler_wl \
18905
lt_prog_compiler_pic \
18906
lt_prog_compiler_static \
18907
lt_cv_prog_compiler_c_o \
18915
export_dynamic_flag_spec \
18916
whole_archive_flag_spec \
18917
compiler_needs_object \
18919
allow_undefined_flag \
18920
no_undefined_flag \
18921
hardcode_libdir_flag_spec \
18922
hardcode_libdir_flag_spec_ld \
18923
hardcode_libdir_separator \
18928
variables_saved_for_relink \
18930
library_names_spec \
18935
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
18936
*[\\\\\\\`\\"\\\$]*)
18937
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18940
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18945
# Double-quote double-evaled strings.
18946
for var in reload_cmds \
18947
old_postinstall_cmds \
18948
old_postuninstall_cmds \
18950
extract_expsyms_cmds \
18951
old_archive_from_new_cmds \
18952
old_archive_from_expsyms_cmds \
18954
archive_expsym_cmds \
18956
module_expsym_cmds \
18957
export_symbols_cmds \
18960
postuninstall_cmds \
18962
sys_lib_search_path_spec \
18963
sys_lib_dlsearch_path_spec; do
18964
case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
18965
*[\\\\\\\`\\"\\\$]*)
18966
eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18969
eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18974
# Fix-up fallback echo if it was mangled by the above quoting rules.
18976
*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
18980
ac_aux_dir='$ac_aux_dir'
18981
xsi_shell='$xsi_shell'
18982
lt_shell_append='$lt_shell_append'
18984
# See if we are running on zsh, and set the options which allow our
18985
# commands through without removal of \ escapes INIT.
18986
if test -n "\${ZSH_VERSION+set}" ; then
18987
setopt NO_GLOB_SUBST
18993
TIMESTAMP='$TIMESTAMP'
19002
cat >>$CONFIG_STATUS <<\_ACEOF
19004
# Handling of arguments.
19005
for ac_config_target in $ac_config_targets
19007
case $ac_config_target in
19008
"config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19009
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19010
"libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
19011
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19012
"src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19013
"src/helper/Makefile") CONFIG_FILES="$CONFIG_FILES src/helper/Makefile" ;;
19014
"src/jtag/Makefile") CONFIG_FILES="$CONFIG_FILES src/jtag/Makefile" ;;
19015
"src/xsvf/Makefile") CONFIG_FILES="$CONFIG_FILES src/xsvf/Makefile" ;;
19016
"src/svf/Makefile") CONFIG_FILES="$CONFIG_FILES src/svf/Makefile" ;;
19017
"src/target/Makefile") CONFIG_FILES="$CONFIG_FILES src/target/Makefile" ;;
19018
"src/server/Makefile") CONFIG_FILES="$CONFIG_FILES src/server/Makefile" ;;
19019
"src/flash/Makefile") CONFIG_FILES="$CONFIG_FILES src/flash/Makefile" ;;
19020
"src/pld/Makefile") CONFIG_FILES="$CONFIG_FILES src/pld/Makefile" ;;
19021
"doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
19023
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19024
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19025
{ (exit 1); exit 1; }; };;
19030
# If the user did not use the arguments to specify the items to instantiate,
19031
# then the envvar interface is used. Set only those that are not.
19032
# We use the long form for the default assignment because of an extremely
19033
# bizarre bug on SunOS 4.1.3.
19034
if $ac_need_defaults; then
19035
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19036
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19037
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19040
# Have a temporary directory for convenience. Make it in the build tree
19041
# simply because there is no reason against having it here, and in addition,
19042
# creating and moving files from /tmp can sometimes cause problems.
19043
# Hook for its removal unless debugging.
19044
# Note that there is a small window in which the directory will not be cleaned:
19045
# after its creation but before its name has been assigned to `$tmp'.
19049
trap 'exit_status=$?
19050
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
19052
trap '{ (exit 1); exit 1; }' 1 2 13 15
19054
# Create a (secure) tmp directory for tmp files.
19057
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19058
test -n "$tmp" && test -d "$tmp"
19061
tmp=./conf$$-$RANDOM
19062
(umask 077 && mkdir "$tmp")
19065
echo "$me: cannot create a temporary directory in ." >&2
19066
{ (exit 1); exit 1; }
19070
# Set up the sed scripts for CONFIG_FILES section.
19073
# No need to generate the scripts if there are no CONFIG_FILES.
19074
# This happens for instance when ./config.status config.h
19075
if test -n "$CONFIG_FILES"; then
19082
for ac_last_try in false false false false false :; do
19083
cat >conf$$subs.sed <<_ACEOF
19084
SHELL!$SHELL$ac_delim
19085
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
19086
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
19087
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
19088
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
19089
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
19090
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
19091
exec_prefix!$exec_prefix$ac_delim
19092
prefix!$prefix$ac_delim
19093
program_transform_name!$program_transform_name$ac_delim
19094
bindir!$bindir$ac_delim
19095
sbindir!$sbindir$ac_delim
19096
libexecdir!$libexecdir$ac_delim
19097
datarootdir!$datarootdir$ac_delim
19098
datadir!$datadir$ac_delim
19099
sysconfdir!$sysconfdir$ac_delim
19100
sharedstatedir!$sharedstatedir$ac_delim
19101
localstatedir!$localstatedir$ac_delim
19102
includedir!$includedir$ac_delim
19103
oldincludedir!$oldincludedir$ac_delim
19104
docdir!$docdir$ac_delim
19105
infodir!$infodir$ac_delim
19106
htmldir!$htmldir$ac_delim
19107
dvidir!$dvidir$ac_delim
19108
pdfdir!$pdfdir$ac_delim
19109
psdir!$psdir$ac_delim
19110
libdir!$libdir$ac_delim
19111
localedir!$localedir$ac_delim
19112
mandir!$mandir$ac_delim
19113
DEFS!$DEFS$ac_delim
19114
ECHO_C!$ECHO_C$ac_delim
19115
ECHO_N!$ECHO_N$ac_delim
19116
ECHO_T!$ECHO_T$ac_delim
19117
LIBS!$LIBS$ac_delim
19118
build_alias!$build_alias$ac_delim
19119
host_alias!$host_alias$ac_delim
19120
target_alias!$target_alias$ac_delim
19121
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
19122
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
19123
INSTALL_DATA!$INSTALL_DATA$ac_delim
19124
am__isrc!$am__isrc$ac_delim
19125
CYGPATH_W!$CYGPATH_W$ac_delim
19126
PACKAGE!$PACKAGE$ac_delim
19127
VERSION!$VERSION$ac_delim
19128
ACLOCAL!$ACLOCAL$ac_delim
19129
AUTOCONF!$AUTOCONF$ac_delim
19130
AUTOMAKE!$AUTOMAKE$ac_delim
19131
AUTOHEADER!$AUTOHEADER$ac_delim
19132
MAKEINFO!$MAKEINFO$ac_delim
19133
install_sh!$install_sh$ac_delim
19134
STRIP!$STRIP$ac_delim
19135
INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
19136
mkdir_p!$mkdir_p$ac_delim
19138
SET_MAKE!$SET_MAKE$ac_delim
19139
am__leading_dot!$am__leading_dot$ac_delim
19140
AMTAR!$AMTAR$ac_delim
19141
am__tar!$am__tar$ac_delim
19142
am__untar!$am__untar$ac_delim
19143
MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
19144
MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
19145
MAINT!$MAINT$ac_delim
19147
CFLAGS!$CFLAGS$ac_delim
19148
LDFLAGS!$LDFLAGS$ac_delim
19149
CPPFLAGS!$CPPFLAGS$ac_delim
19150
ac_ct_CC!$ac_ct_CC$ac_delim
19151
EXEEXT!$EXEEXT$ac_delim
19152
OBJEXT!$OBJEXT$ac_delim
19153
DEPDIR!$DEPDIR$ac_delim
19154
am__include!$am__include$ac_delim
19155
am__quote!$am__quote$ac_delim
19156
AMDEP_TRUE!$AMDEP_TRUE$ac_delim
19157
AMDEP_FALSE!$AMDEP_FALSE$ac_delim
19158
AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
19159
CCDEPMODE!$CCDEPMODE$ac_delim
19160
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
19161
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
19162
RANLIB!$RANLIB$ac_delim
19163
LIBTOOL!$LIBTOOL$ac_delim
19164
build!$build$ac_delim
19165
build_cpu!$build_cpu$ac_delim
19166
build_vendor!$build_vendor$ac_delim
19167
build_os!$build_os$ac_delim
19168
host!$host$ac_delim
19169
host_cpu!$host_cpu$ac_delim
19170
host_vendor!$host_vendor$ac_delim
19171
host_os!$host_os$ac_delim
19173
GREP!$GREP$ac_delim
19174
EGREP!$EGREP$ac_delim
19175
FGREP!$FGREP$ac_delim
19177
DUMPBIN!$DUMPBIN$ac_delim
19178
ac_ct_DUMPBIN!$ac_ct_DUMPBIN$ac_delim
19180
LN_S!$LN_S$ac_delim
19183
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
19185
elif $ac_last_try; then
19186
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19187
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19188
{ (exit 1); exit 1; }; }
19190
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19194
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19195
if test -n "$ac_eof"; then
19196
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19197
ac_eof=`expr $ac_eof + 1`
19200
cat >>$CONFIG_STATUS <<_ACEOF
19201
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
19202
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19205
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19206
s/^/s,@/; s/!/@,|#_!!_#|/
19209
s/'"$ac_delim"'$/,g/; t
19211
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19212
' >>$CONFIG_STATUS <conf$$subs.sed
19213
rm -f conf$$subs.sed
19214
cat >>$CONFIG_STATUS <<_ACEOF
19220
for ac_last_try in false false false false false :; do
19221
cat >conf$$subs.sed <<_ACEOF
19223
lt_ECHO!$lt_ECHO$ac_delim
19224
DSYMUTIL!$DSYMUTIL$ac_delim
19225
NMEDIT!$NMEDIT$ac_delim
19226
LIPO!$LIPO$ac_delim
19227
OTOOL!$OTOOL$ac_delim
19228
OTOOL64!$OTOOL64$ac_delim
19230
LIBTOOL_DEPS!$LIBTOOL_DEPS$ac_delim
19231
RELEASE_TRUE!$RELEASE_TRUE$ac_delim
19232
RELEASE_FALSE!$RELEASE_FALSE$ac_delim
19233
PARPORT_TRUE!$PARPORT_TRUE$ac_delim
19234
PARPORT_FALSE!$PARPORT_FALSE$ac_delim
19235
DUMMY_TRUE!$DUMMY_TRUE$ac_delim
19236
DUMMY_FALSE!$DUMMY_FALSE$ac_delim
19237
GIVEIO_TRUE!$GIVEIO_TRUE$ac_delim
19238
GIVEIO_FALSE!$GIVEIO_FALSE$ac_delim
19239
EP93XX_TRUE!$EP93XX_TRUE$ac_delim
19240
EP93XX_FALSE!$EP93XX_FALSE$ac_delim
19241
ECOSBOARD_TRUE!$ECOSBOARD_TRUE$ac_delim
19242
ECOSBOARD_FALSE!$ECOSBOARD_FALSE$ac_delim
19243
ZY1000_TRUE!$ZY1000_TRUE$ac_delim
19244
ZY1000_FALSE!$ZY1000_FALSE$ac_delim
19245
IOUTIL_TRUE!$IOUTIL_TRUE$ac_delim
19246
IOUTIL_FALSE!$IOUTIL_FALSE$ac_delim
19247
HTTPD_TRUE!$HTTPD_TRUE$ac_delim
19248
HTTPD_FALSE!$HTTPD_FALSE$ac_delim
19249
AT91RM9200_TRUE!$AT91RM9200_TRUE$ac_delim
19250
AT91RM9200_FALSE!$AT91RM9200_FALSE$ac_delim
19251
BITBANG_TRUE!$BITBANG_TRUE$ac_delim
19252
BITBANG_FALSE!$BITBANG_FALSE$ac_delim
19253
FT2232_LIBFTDI_TRUE!$FT2232_LIBFTDI_TRUE$ac_delim
19254
FT2232_LIBFTDI_FALSE!$FT2232_LIBFTDI_FALSE$ac_delim
19255
FT2232_DRIVER_TRUE!$FT2232_DRIVER_TRUE$ac_delim
19256
FT2232_DRIVER_FALSE!$FT2232_DRIVER_FALSE$ac_delim
19257
AMTJTAGACCEL_TRUE!$AMTJTAGACCEL_TRUE$ac_delim
19258
AMTJTAGACCEL_FALSE!$AMTJTAGACCEL_FALSE$ac_delim
19259
GW16012_TRUE!$GW16012_TRUE$ac_delim
19260
GW16012_FALSE!$GW16012_FALSE$ac_delim
19261
PRESTO_LIBFTDI_TRUE!$PRESTO_LIBFTDI_TRUE$ac_delim
19262
PRESTO_LIBFTDI_FALSE!$PRESTO_LIBFTDI_FALSE$ac_delim
19263
PRESTO_DRIVER_TRUE!$PRESTO_DRIVER_TRUE$ac_delim
19264
PRESTO_DRIVER_FALSE!$PRESTO_DRIVER_FALSE$ac_delim
19265
USBPROG_TRUE!$USBPROG_TRUE$ac_delim
19266
USBPROG_FALSE!$USBPROG_FALSE$ac_delim
19267
OOCD_TRACE_TRUE!$OOCD_TRACE_TRUE$ac_delim
19268
OOCD_TRACE_FALSE!$OOCD_TRACE_FALSE$ac_delim
19269
JLINK_TRUE!$JLINK_TRUE$ac_delim
19270
JLINK_FALSE!$JLINK_FALSE$ac_delim
19271
VSLLINK_TRUE!$VSLLINK_TRUE$ac_delim
19272
VSLLINK_FALSE!$VSLLINK_FALSE$ac_delim
19273
RLINK_TRUE!$RLINK_TRUE$ac_delim
19274
RLINK_FALSE!$RLINK_FALSE$ac_delim
19275
ARMJTAGEW_TRUE!$ARMJTAGEW_TRUE$ac_delim
19276
ARMJTAGEW_FALSE!$ARMJTAGEW_FALSE$ac_delim
19277
IS_CYGWIN_TRUE!$IS_CYGWIN_TRUE$ac_delim
19278
IS_CYGWIN_FALSE!$IS_CYGWIN_FALSE$ac_delim
19279
IS_MINGW_TRUE!$IS_MINGW_TRUE$ac_delim
19280
IS_MINGW_FALSE!$IS_MINGW_FALSE$ac_delim
19281
IS_WIN32_TRUE!$IS_WIN32_TRUE$ac_delim
19282
IS_WIN32_FALSE!$IS_WIN32_FALSE$ac_delim
19283
IS_DARWIN_TRUE!$IS_DARWIN_TRUE$ac_delim
19284
IS_DARWIN_FALSE!$IS_DARWIN_FALSE$ac_delim
19285
BITQ_TRUE!$BITQ_TRUE$ac_delim
19286
BITQ_FALSE!$BITQ_FALSE$ac_delim
19287
MINIDRIVER_TRUE!$MINIDRIVER_TRUE$ac_delim
19288
MINIDRIVER_FALSE!$MINIDRIVER_FALSE$ac_delim
19289
MINIDRIVER_DUMMY_TRUE!$MINIDRIVER_DUMMY_TRUE$ac_delim
19290
MINIDRIVER_DUMMY_FALSE!$MINIDRIVER_DUMMY_FALSE$ac_delim
19291
CC_FOR_BUILD!$CC_FOR_BUILD$ac_delim
19292
CFLAGS_FOR_BUILD!$CFLAGS_FOR_BUILD$ac_delim
19293
EXEEXT_FOR_BUILD!$EXEEXT_FOR_BUILD$ac_delim
19294
LIBOBJS!$LIBOBJS$ac_delim
19295
LTLIBOBJS!$LTLIBOBJS$ac_delim
19298
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 74; then
19300
elif $ac_last_try; then
19301
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
19302
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
19303
{ (exit 1); exit 1; }; }
19305
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19309
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
19310
if test -n "$ac_eof"; then
19311
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
19312
ac_eof=`expr $ac_eof + 1`
19315
cat >>$CONFIG_STATUS <<_ACEOF
19316
cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
19317
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
19320
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
19321
s/^/s,@/; s/!/@,|#_!!_#|/
19324
s/'"$ac_delim"'$/,g/; t
19326
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
19327
' >>$CONFIG_STATUS <conf$$subs.sed
19328
rm -f conf$$subs.sed
19329
cat >>$CONFIG_STATUS <<_ACEOF
19336
# VPATH may cause trouble with some makes, so we remove $(srcdir),
19337
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19338
# trailing colons and then remove the whole line if VPATH becomes empty
19339
# (actually we leave an empty line to preserve line numbers).
19340
if test "x$srcdir" = x.; then
19341
ac_vpsub='/^[ ]*VPATH[ ]*=/{
19342
s/:*\$(srcdir):*/:/
19343
s/:*\${srcdir}:*/:/
19345
s/^\([^=]*=[ ]*\):*/\1/
19351
cat >>$CONFIG_STATUS <<\_ACEOF
19352
fi # test -n "$CONFIG_FILES"
19355
for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
19358
:[FHLC]) ac_mode=$ac_tag; continue;;
19360
case $ac_mode$ac_tag in
19362
:L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
19363
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
19364
{ (exit 1); exit 1; }; };;
19365
:[FH]-) ac_tag=-:-;;
19366
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19383
-) ac_f="$tmp/stdin";;
19384
*) # Look for the file first in the build tree, then in the source tree
19385
# (if the path is not absolute). The absolute path cannot be DOS-style,
19386
# because $ac_f cannot contain `:'.
19390
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19392
{ { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
19393
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
19394
{ (exit 1); exit 1; }; };;
19396
ac_file_inputs="$ac_file_inputs $ac_f"
19399
# Let's still pretend it is `configure' which instantiates (i.e., don't
19400
# use $as_me), people would be surprised to read:
19401
# /* config.h. Generated by config.status. */
19402
configure_input="Generated from "`IFS=:
19403
echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
19404
if test x"$ac_file" != x-; then
19405
configure_input="$ac_file. $configure_input"
19406
{ echo "$as_me:$LINENO: creating $ac_file" >&5
19407
echo "$as_me: creating $ac_file" >&6;}
19411
*:-:* | *:-) cat >"$tmp/stdin";;
19416
ac_dir=`$as_dirname -- "$ac_file" ||
19417
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19418
X"$ac_file" : 'X\(//\)[^/]' \| \
19419
X"$ac_file" : 'X\(//\)$' \| \
19420
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19422
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19426
/^X\(\/\/\)[^/].*/{
19441
-*) as_dir=./$as_dir;;
19443
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19447
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19448
*) as_qdir=$as_dir;;
19450
as_dirs="'$as_qdir' $as_dirs"
19451
as_dir=`$as_dirname -- "$as_dir" ||
19452
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19453
X"$as_dir" : 'X\(//\)[^/]' \| \
19454
X"$as_dir" : 'X\(//\)$' \| \
19455
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19457
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19461
/^X\(\/\/\)[^/].*/{
19474
test -d "$as_dir" && break
19476
test -z "$as_dirs" || eval "mkdir $as_dirs"
19477
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19478
echo "$as_me: error: cannot create directory $as_dir" >&2;}
19479
{ (exit 1); exit 1; }; }; }
19483
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19485
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
19486
# A ".." for each directory in $ac_dir_suffix.
19487
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
19488
case $ac_top_builddir_sub in
19489
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19490
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19493
ac_abs_top_builddir=$ac_pwd
19494
ac_abs_builddir=$ac_pwd$ac_dir_suffix
19495
# for backward compatibility:
19496
ac_top_builddir=$ac_top_build_prefix
19499
.) # We are building in place.
19501
ac_top_srcdir=$ac_top_builddir_sub
19502
ac_abs_top_srcdir=$ac_pwd ;;
19503
[\\/]* | ?:[\\/]* ) # Absolute name.
19504
ac_srcdir=$srcdir$ac_dir_suffix;
19505
ac_top_srcdir=$srcdir
19506
ac_abs_top_srcdir=$srcdir ;;
19507
*) # Relative name.
19508
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19509
ac_top_srcdir=$ac_top_build_prefix$srcdir
19510
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19512
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19522
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19523
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19525
ac_MKDIR_P=$MKDIR_P
19527
[\\/$]* | ?:[\\/]* ) ;;
19528
*/*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
19532
cat >>$CONFIG_STATUS <<\_ACEOF
19533
# If the template does not know about datarootdir, expand it.
19534
# FIXME: This hack should be removed a few years after 2.60.
19535
ac_datarootdir_hack=; ac_datarootdir_seen=
19537
case `sed -n '/datarootdir/ {
19546
' $ac_file_inputs` in
19547
*datarootdir*) ac_datarootdir_seen=yes;;
19548
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19549
{ echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19550
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19552
cat >>$CONFIG_STATUS <<_ACEOF
19553
ac_datarootdir_hack='
19554
s&@datadir@&$datadir&g
19555
s&@docdir@&$docdir&g
19556
s&@infodir@&$infodir&g
19557
s&@localedir@&$localedir&g
19558
s&@mandir@&$mandir&g
19559
s&\\\${datarootdir}&$datarootdir&g' ;;
19563
# Neutralize VPATH when `$srcdir' = `.'.
19564
# Shell code in configure.ac might set extrasub.
19565
# FIXME: do we really want to maintain this feature?
19566
cat >>$CONFIG_STATUS <<_ACEOF
19570
cat >>$CONFIG_STATUS <<\_ACEOF
19572
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19573
s&@configure_input@&$configure_input&;t t
19574
s&@top_builddir@&$ac_top_builddir_sub&;t t
19575
s&@srcdir@&$ac_srcdir&;t t
19576
s&@abs_srcdir@&$ac_abs_srcdir&;t t
19577
s&@top_srcdir@&$ac_top_srcdir&;t t
19578
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19579
s&@builddir@&$ac_builddir&;t t
19580
s&@abs_builddir@&$ac_abs_builddir&;t t
19581
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19582
s&@INSTALL@&$ac_INSTALL&;t t
19583
s&@MKDIR_P@&$ac_MKDIR_P&;t t
19584
$ac_datarootdir_hack
19585
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
19587
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19588
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
19589
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
19590
{ echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19591
which seems to be undefined. Please make sure it is defined." >&5
19592
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19593
which seems to be undefined. Please make sure it is defined." >&2;}
19597
-) cat "$tmp/out"; rm -f "$tmp/out";;
19598
*) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
19607
# Transform confdefs.h into a sed script `conftest.defines', that
19608
# substitutes the proper values into config.h.in to produce config.h.
19609
rm -f conftest.defines conftest.tail
19610
# First, append a space to every undef/define line, to ease matching.
19611
echo 's/$/ /' >conftest.defines
19612
# Then, protect against being on the right side of a sed subst, or in
19613
# an unquoted here document, in config.status. If some macros were
19614
# called several times there might be several #defines for the same
19615
# symbol, which is useless. But do not sort them, since the last
19616
# AC_DEFINE must be honored.
19617
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19618
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
19619
# NAME is the cpp macro being defined, VALUE is the value it is being given.
19620
# PARAMS is the parameter list in the macro definition--in most cases, it's
19621
# just an empty string.
19622
ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
19623
ac_dB='\\)[ (].*,\\1define\\2'
19631
s/^[ ]*#[ ]*define[ ][ ]*//
19636
s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
19637
s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
19638
' >>conftest.defines
19640
# Remove the space that was appended to ease matching.
19641
# Then replace #undef with comments. This is necessary, for
19642
# example, in the case of _POSIX_SOURCE, which is predefined and required
19643
# on some systems where configure will not decide to define it.
19644
# (The regexp can be short, since the line contains either #define or #undef.)
19646
s,^[ #]*u.*,/* & */,' >>conftest.defines
19648
# Break up conftest.defines:
19649
ac_max_sed_lines=50
19651
# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
19652
# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
19653
# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
19655
ac_in='$ac_file_inputs'
19656
ac_out='"$tmp/out1"'
19657
ac_nxt='"$tmp/out2"'
19661
# Write a here document:
19662
cat >>$CONFIG_STATUS <<_ACEOF
19663
# First, check the format of the line:
19664
cat >"\$tmp/defines.sed" <<\\CEOF
19665
/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
19666
/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
19670
sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
19672
sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
19673
ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
19674
sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
19675
grep . conftest.tail >/dev/null || break
19676
rm -f conftest.defines
19677
mv conftest.tail conftest.defines
19679
rm -f conftest.defines conftest.tail
19681
echo "ac_result=$ac_in" >>$CONFIG_STATUS
19682
cat >>$CONFIG_STATUS <<\_ACEOF
19683
if test x"$ac_file" != x-; then
19684
echo "/* $configure_input */" >"$tmp/config.h"
19685
cat "$ac_result" >>"$tmp/config.h"
19686
if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
19687
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
19688
echo "$as_me: $ac_file is unchanged" >&6;}
19691
mv "$tmp/config.h" $ac_file
19694
echo "/* $configure_input */"
19698
# Compute $ac_file's index in $config_headers.
19701
for _am_header in $config_headers :; do
19702
case $_am_header in
19703
$_am_arg | $_am_arg:* )
19706
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
19709
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
19710
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19711
X"$_am_arg" : 'X\(//\)[^/]' \| \
19712
X"$_am_arg" : 'X\(//\)$' \| \
19713
X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
19715
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19719
/^X\(\/\/\)[^/].*/{
19731
s/.*/./; q'`/stamp-h$_am_stamp_count
19734
:C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
19735
echo "$as_me: executing $ac_file commands" >&6;}
19740
case $ac_file$ac_mode in
19741
"depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
19742
# Strip MF so we end up with the name of the file.
19743
mf=`echo "$mf" | sed -e 's/:.*$//'`
19744
# Check whether this is an Automake generated Makefile or not.
19745
# We used to match only the files named `Makefile.in', but
19746
# some people rename them; so instead we look at the file content.
19747
# Grep'ing the first line is not enough: some people post-process
19748
# each Makefile.in and add a new line on top of each file to say so.
19749
# Grep'ing the whole file is not good either: AIX grep has a line
19750
# limit of 2048, but all sed's we know have understand at least 4000.
19751
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19752
dirpart=`$as_dirname -- "$mf" ||
19753
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19754
X"$mf" : 'X\(//\)[^/]' \| \
19755
X"$mf" : 'X\(//\)$' \| \
19756
X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19758
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19762
/^X\(\/\/\)[^/].*/{
19778
# Extract the definition of DEPDIR, am__include, and am__quote
19779
# from the Makefile without running `make'.
19780
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19781
test -z "$DEPDIR" && continue
19782
am__include=`sed -n 's/^am__include = //p' < "$mf"`
19783
test -z "am__include" && continue
19784
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19785
# When using ansi2knr, U may be empty or an underscore; expand it
19786
U=`sed -n 's/^U = //p' < "$mf"`
19787
# Find all dependency output files, they are included files with
19788
# $(DEPDIR) in their names. We invoke sed twice because it is the
19789
# simplest approach to changing $(DEPDIR) to its actual value in the
19791
for file in `sed -n "
19792
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19793
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
19794
# Make sure the directory exists.
19795
test -f "$dirpart/$file" && continue
19796
fdir=`$as_dirname -- "$file" ||
19797
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19798
X"$file" : 'X\(//\)[^/]' \| \
19799
X"$file" : 'X\(//\)$' \| \
19800
X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19802
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19806
/^X\(\/\/\)[^/].*/{
19819
{ as_dir=$dirpart/$fdir
19821
-*) as_dir=./$as_dir;;
19823
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
19827
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
19828
*) as_qdir=$as_dir;;
19830
as_dirs="'$as_qdir' $as_dirs"
19831
as_dir=`$as_dirname -- "$as_dir" ||
19832
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19833
X"$as_dir" : 'X\(//\)[^/]' \| \
19834
X"$as_dir" : 'X\(//\)$' \| \
19835
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19837
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19841
/^X\(\/\/\)[^/].*/{
19854
test -d "$as_dir" && break
19856
test -z "$as_dirs" || eval "mkdir $as_dirs"
19857
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
19858
echo "$as_me: error: cannot create directory $as_dir" >&2;}
19859
{ (exit 1); exit 1; }; }; }
19860
# echo "creating $dirpart/$file"
19861
echo '# dummy' > "$dirpart/$file"
19867
# See if we are running on zsh, and set the options which allow our
19868
# commands through without removal of \ escapes.
19869
if test -n "${ZSH_VERSION+set}" ; then
19870
setopt NO_GLOB_SUBST
19873
cfgfile="${ofile}T"
19874
trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19877
cat <<_LT_EOF >> "$cfgfile"
19880
# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19881
# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19882
# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19883
# NOTE: Changes made to this file will be lost: look at ltmain.sh.
19885
# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19886
# 2006, 2007, 2008 Free Software Foundation, Inc.
19887
# Written by Gordon Matzigkeit, 1996
19889
# This file is part of GNU Libtool.
19891
# GNU Libtool is free software; you can redistribute it and/or
19892
# modify it under the terms of the GNU General Public License as
19893
# published by the Free Software Foundation; either version 2 of
19894
# the License, or (at your option) any later version.
19896
# As a special exception to the GNU General Public License,
19897
# if you distribute this file as part of a program or library that
19898
# is built using GNU Libtool, you may include this file under the
19899
# same distribution terms that you use for the rest of that program.
19901
# GNU Libtool is distributed in the hope that it will be useful,
19902
# but WITHOUT ANY WARRANTY; without even the implied warranty of
19903
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19904
# GNU General Public License for more details.
19906
# You should have received a copy of the GNU General Public License
19907
# along with GNU Libtool; see the file COPYING. If not, a copy
19908
# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19909
# obtained by writing to the Free Software Foundation, Inc.,
19910
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19913
# The names of the tagged configurations supported by this script.
19916
# ### BEGIN LIBTOOL CONFIG
19918
# Whether or not to build shared libraries.
19919
build_libtool_libs=$enable_shared
19921
# Which release of libtool.m4 was used?
19922
macro_version=$macro_version
19923
macro_revision=$macro_revision
19925
# Whether or not to build static libraries.
19926
build_old_libs=$enable_static
19928
# What type of objects to build.
19931
# Whether or not to optimize for fast installation.
19932
fast_install=$enable_fast_install
19935
host_alias=$host_alias
19939
# The build system.
19940
build_alias=$build_alias
19944
# A sed program that does not truncate output.
19947
# Sed that helps us avoid accidentally triggering echo(1) options like -n.
19948
Xsed="\$SED -e 1s/^X//"
19950
# A grep program that handles long lines.
19956
# A literal string matcher.
19959
# A BSD- or MS-compatible name lister.
19962
# Whether we need soft or hard links.
19965
# What is the maximum length of a command?
19966
max_cmd_len=$max_cmd_len
19968
# Object file suffix (normally "o").
19971
# Executable file suffix (normally "").
19974
# whether the shell understands "unset".
19977
# turn spaces into newlines.
19980
# turn newlines into spaces.
19983
# How to create reloadable object files.
19984
reload_flag=$lt_reload_flag
19985
reload_cmds=$lt_reload_cmds
19987
# Method to check whether dependent libraries are shared objects.
19988
deplibs_check_method=$lt_deplibs_check_method
19990
# Command to use when deplibs_check_method == "file_magic".
19991
file_magic_cmd=$lt_file_magic_cmd
19995
AR_FLAGS=$lt_AR_FLAGS
19997
# A symbol stripping program.
20000
# Commands used to install an old-style archive.
20002
old_postinstall_cmds=$lt_old_postinstall_cmds
20003
old_postuninstall_cmds=$lt_old_postuninstall_cmds
20008
# LTCC compiler flags.
20009
LTCFLAGS=$lt_CFLAGS
20011
# Take the output of nm and produce a listing of raw symbols and C names.
20012
global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20014
# Transform the output of nm in a proper C declaration.
20015
global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20017
# Transform the output of nm in a C name address pair.
20018
global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20020
# Transform the output of nm in a C name address pair when lib prefix is needed.
20021
global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
20023
# The name of the directory that contains temporary libtool files.
20026
# Shell to use when invoking shell scripts.
20029
# An echo program that does not interpret backslashes.
20032
# Used to examine libraries when file_magic_cmd begins with "file".
20033
MAGIC_CMD=$MAGIC_CMD
20035
# Must we lock files when doing compilation?
20036
need_locks=$lt_need_locks
20038
# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
20039
DSYMUTIL=$lt_DSYMUTIL
20041
# Tool to change global to local symbols on Mac OS X.
20044
# Tool to manipulate fat objects and archives on Mac OS X.
20047
# ldd/readelf like tool for Mach-O binaries on Mac OS X.
20050
# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
20051
OTOOL64=$lt_OTOOL64
20053
# Old archive suffix (normally "a").
20056
# Shared library suffix (normally ".so").
20057
shrext_cmds=$lt_shrext_cmds
20059
# The commands to extract the exported symbol list from a shared archive.
20060
extract_expsyms_cmds=$lt_extract_expsyms_cmds
20062
# Variables whose values should be saved in libtool wrapper scripts and
20063
# restored at link time.
20064
variables_saved_for_relink=$lt_variables_saved_for_relink
20066
# Do we need the "lib" prefix for modules?
20067
need_lib_prefix=$need_lib_prefix
20069
# Do we need a version for libraries?
20070
need_version=$need_version
20072
# Library versioning type.
20073
version_type=$version_type
20075
# Shared library runtime path variable.
20076
runpath_var=$runpath_var
20078
# Shared library path variable.
20079
shlibpath_var=$shlibpath_var
20081
# Is shlibpath searched before the hard-coded library search path?
20082
shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20084
# Format of library name prefix.
20085
libname_spec=$lt_libname_spec
20087
# List of archive names. First name is the real one, the rest are links.
20088
# The last name is the one that the linker finds with -lNAME
20089
library_names_spec=$lt_library_names_spec
20091
# The coded name of the library, if different from the real name.
20092
soname_spec=$lt_soname_spec
20094
# Command to use after installation of a shared archive.
20095
postinstall_cmds=$lt_postinstall_cmds
20097
# Command to use after uninstallation of a shared archive.
20098
postuninstall_cmds=$lt_postuninstall_cmds
20100
# Commands used to finish a libtool library installation in a directory.
20101
finish_cmds=$lt_finish_cmds
20103
# As "finish_cmds", except a single script fragment to be evaled but
20105
finish_eval=$lt_finish_eval
20107
# Whether we should hardcode library paths into libraries.
20108
hardcode_into_libs=$hardcode_into_libs
20110
# Compile-time system search path for libraries.
20111
sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20113
# Run-time system search path for libraries.
20114
sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20116
# Whether dlopen is supported.
20117
dlopen_support=$enable_dlopen
20119
# Whether dlopen of programs is supported.
20120
dlopen_self=$enable_dlopen_self
20122
# Whether dlopen of statically linked programs is supported.
20123
dlopen_self_static=$enable_dlopen_self_static
20125
# Commands to strip libraries.
20126
old_striplib=$lt_old_striplib
20127
striplib=$lt_striplib
20130
# The linker used to build libraries.
20133
# Commands used to build an old-style archive.
20134
old_archive_cmds=$lt_old_archive_cmds
20136
# A language specific compiler.
20139
# Is the compiler the GNU compiler?
20142
# Compiler flag to turn off builtin functions.
20143
no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
20145
# How to pass a linker flag through the compiler.
20146
wl=$lt_lt_prog_compiler_wl
20148
# Additional compiler flags for building library objects.
20149
pic_flag=$lt_lt_prog_compiler_pic
20151
# Compiler flag to prevent dynamic linking.
20152
link_static_flag=$lt_lt_prog_compiler_static
20154
# Does compiler simultaneously support -c and -o options?
20155
compiler_c_o=$lt_lt_cv_prog_compiler_c_o
20157
# Whether or not to add -lc for building shared libraries.
20158
build_libtool_need_lc=$archive_cmds_need_lc
20160
# Whether or not to disallow shared libs when runtime libs are static.
20161
allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
20163
# Compiler flag to allow reflexive dlopens.
20164
export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
20166
# Compiler flag to generate shared objects directly from archives.
20167
whole_archive_flag_spec=$lt_whole_archive_flag_spec
20169
# Whether the compiler copes with passing no objects directly.
20170
compiler_needs_object=$lt_compiler_needs_object
20172
# Create an old-style archive from a shared archive.
20173
old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
20175
# Create a temporary old-style archive to link instead of a shared archive.
20176
old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
20178
# Commands used to build a shared archive.
20179
archive_cmds=$lt_archive_cmds
20180
archive_expsym_cmds=$lt_archive_expsym_cmds
20182
# Commands used to build a loadable module if different from building
20183
# a shared archive.
20184
module_cmds=$lt_module_cmds
20185
module_expsym_cmds=$lt_module_expsym_cmds
20187
# Whether we are building with GNU ld or not.
20188
with_gnu_ld=$lt_with_gnu_ld
20190
# Flag that allows shared libraries with undefined symbols to be built.
20191
allow_undefined_flag=$lt_allow_undefined_flag
20193
# Flag that enforces no undefined symbols.
20194
no_undefined_flag=$lt_no_undefined_flag
20196
# Flag to hardcode \$libdir into a binary during linking.
20197
# This must work even if \$libdir does not exist
20198
hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
20200
# If ld is used when linking, flag to hardcode \$libdir into a binary
20201
# during linking. This must work even if \$libdir does not exist.
20202
hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
20204
# Whether we need a single "-rpath" flag with a separated argument.
20205
hardcode_libdir_separator=$lt_hardcode_libdir_separator
20207
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20208
# DIR into the resulting binary.
20209
hardcode_direct=$hardcode_direct
20211
# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
20212
# DIR into the resulting binary and the resulting library dependency is
20213
# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
20214
# library is relocated.
20215
hardcode_direct_absolute=$hardcode_direct_absolute
20217
# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
20218
# into the resulting binary.
20219
hardcode_minus_L=$hardcode_minus_L
20221
# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
20222
# into the resulting binary.
20223
hardcode_shlibpath_var=$hardcode_shlibpath_var
20225
# Set to "yes" if building a shared library automatically hardcodes DIR
20226
# into the library and all subsequent libraries and executables linked
20228
hardcode_automatic=$hardcode_automatic
20230
# Set to yes if linker adds runtime paths of dependent libraries
20231
# to runtime path list.
20232
inherit_rpath=$inherit_rpath
20234
# Whether libtool must link a program against all its dependency libraries.
20235
link_all_deplibs=$link_all_deplibs
20237
# Fix the shell variable \$srcfile for the compiler.
20238
fix_srcfile_path=$lt_fix_srcfile_path
20240
# Set to "yes" if exported symbols are required.
20241
always_export_symbols=$always_export_symbols
20243
# The commands to list exported symbols.
20244
export_symbols_cmds=$lt_export_symbols_cmds
20246
# Symbols that should not be listed in the preloaded symbols.
20247
exclude_expsyms=$lt_exclude_expsyms
20249
# Symbols that must always be exported.
20250
include_expsyms=$lt_include_expsyms
20252
# Commands necessary for linking programs (against libraries) with templates.
20253
prelink_cmds=$lt_prelink_cmds
20255
# Specify filename containing input files.
20256
file_list_spec=$lt_file_list_spec
20258
# How to hardcode a shared library path into an executable.
20259
hardcode_action=$hardcode_action
20261
# ### END LIBTOOL CONFIG
20267
cat <<\_LT_EOF >> "$cfgfile"
20268
# AIX sometimes has problems with the GCC collect2 program. For some
20269
# reason, if we set the COLLECT_NAMES environment variable, the problems
20270
# vanish in a puff of smoke.
20271
if test "X${COLLECT_NAMES+set}" != Xset; then
20273
export COLLECT_NAMES
20280
ltmain="$ac_aux_dir/ltmain.sh"
20283
# We use sed instead of cat because bash on DJGPP gets confused if
20284
# if finds mixed CR/LF and LF-only lines. Since sed operates in
20285
# text mode, it properly converts lines to CR/LF. This bash problem
20286
# is reportedly fixed, but why not run on old versions too?
20287
sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
20288
|| (rm -f "$cfgfile"; exit 1)
20292
cat << \_LT_EOF >> "$cfgfile"
20294
# func_dirname file append nondir_replacement
20295
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
20296
# otherwise set result to NONDIR_REPLACEMENT.
20300
*/*) func_dirname_result="${1%/*}${2}" ;;
20301
* ) func_dirname_result="${3}" ;;
20305
# func_basename file
20308
func_basename_result="${1##*/}"
20311
# func_dirname_and_basename file append nondir_replacement
20312
# perform func_basename and func_dirname in a single function
20314
# dirname: Compute the dirname of FILE. If nonempty,
20315
# add APPEND to the result, otherwise set result
20316
# to NONDIR_REPLACEMENT.
20317
# value returned in "$func_dirname_result"
20318
# basename: Compute filename of FILE.
20319
# value retuned in "$func_basename_result"
20320
# Implementation must be kept synchronized with func_dirname
20321
# and func_basename. For efficiency, we do not delegate to
20322
# those functions but instead duplicate the functionality here.
20323
func_dirname_and_basename ()
20326
*/*) func_dirname_result="${1%/*}${2}" ;;
20327
* ) func_dirname_result="${3}" ;;
20329
func_basename_result="${1##*/}"
20332
# func_stripname prefix suffix name
20333
# strip PREFIX and SUFFIX off of NAME.
20334
# PREFIX and SUFFIX must not contain globbing or regex special
20335
# characters, hashes, percent signs, but SUFFIX may contain a leading
20336
# dot (in which case that matches only a dot).
20339
# pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
20340
# positional parameters, so assign one to ordinary parameter first.
20341
func_stripname_result=${3}
20342
func_stripname_result=${func_stripname_result#"${1}"}
20343
func_stripname_result=${func_stripname_result%"${2}"}
20349
func_opt_split_opt=${1%%=*}
20350
func_opt_split_arg=${1#*=}
20357
*.lo) func_lo2o_result=${1%.lo}.${objext} ;;
20358
*) func_lo2o_result=${1} ;;
20362
# func_xform libobj-or-source
20365
func_xform_result=${1%.*}.lo
20368
# func_arith arithmetic-term...
20371
func_arith_result=$(( $* ))
20375
# STRING may not start with a hyphen.
20378
func_len_result=${#1}
20383
*) # Bourne compatible functions.
20384
cat << \_LT_EOF >> "$cfgfile"
20386
# func_dirname file append nondir_replacement
20387
# Compute the dirname of FILE. If nonempty, add APPEND to the result,
20388
# otherwise set result to NONDIR_REPLACEMENT.
20391
# Extract subdirectory from the argument.
20392
func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
20393
if test "X$func_dirname_result" = "X${1}"; then
20394
func_dirname_result="${3}"
20396
func_dirname_result="$func_dirname_result${2}"
20400
# func_basename file
20403
func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
20407
# func_stripname prefix suffix name
20408
# strip PREFIX and SUFFIX off of NAME.
20409
# PREFIX and SUFFIX must not contain globbing or regex special
20410
# characters, hashes, percent signs, but SUFFIX may contain a leading
20411
# dot (in which case that matches only a dot).
20412
# func_strip_suffix prefix name
20416
.*) func_stripname_result=`$ECHO "X${3}" \
20417
| $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
20418
*) func_stripname_result=`$ECHO "X${3}" \
20419
| $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
20424
my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
20425
my_sed_long_arg='1s/^-[^=]*=//'
20430
func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
20431
func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
20437
func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
20440
# func_xform libobj-or-source
20443
func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
20446
# func_arith arithmetic-term...
20449
func_arith_result=`expr "$@"`
20453
# STRING may not start with a hyphen.
20456
func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
20462
case $lt_shell_append in
20464
cat << \_LT_EOF >> "$cfgfile"
20466
# func_append var value
20467
# Append VALUE to the end of shell variable VAR.
20475
cat << \_LT_EOF >> "$cfgfile"
20477
# func_append var value
20478
# Append VALUE to the end of shell variable VAR.
20489
sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
20490
|| (rm -f "$cfgfile"; exit 1)
20492
mv -f "$cfgfile" "$ofile" ||
20493
(rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
20502
{ (exit 0); exit 0; }
20504
chmod +x $CONFIG_STATUS
20505
ac_clean_files=$ac_clean_files_save
20508
# configure is writing to config.log, and then calls config.status.
20509
# config.status does its own redirection, appending to config.log.
20510
# Unfortunately, on DOS this fails, as config.log is still kept open
20511
# by configure, so config.status won't be able to write to it; its
20512
# output is simply discarded. So we exec the FD to /dev/null,
20513
# effectively closing config.log, so it can be properly (re)opened and
20514
# appended to by config.status. When coming back to configure, we
20515
# need to make the FD available again.
20516
if test "$no_create" != yes; then
20518
ac_config_status_args=
20519
test "$silent" = yes &&
20520
ac_config_status_args="$ac_config_status_args --quiet"
20522
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20524
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
20525
# would make configure fail if this is the last instruction.
20526
$ac_cs_success || { (exit 1); exit 1; }