2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.61 for u3-tool 0.2.
5
# Report bugs to <daviedev@users.sourceforge.net>.
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'"
554
exec 7<&0 </dev/null 6>&1
557
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
558
# so uname gets run too.
559
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
ac_default_prefix=/usr/local
566
ac_config_libobj_dir=.
572
SHELL=${CONFIG_SHELL-/bin/sh}
574
# Identity of this package.
575
PACKAGE_NAME='u3-tool'
576
PACKAGE_TARNAME='u3-tool'
577
PACKAGE_VERSION='0.2'
578
PACKAGE_STRING='u3-tool 0.2'
579
PACKAGE_BUGREPORT='daviedev@users.sourceforge.net'
581
ac_unique_file="config.h.in"
582
# Factoring default headers for most tests.
583
ac_includes_default="\
585
#ifdef HAVE_SYS_TYPES_H
586
# include <sys/types.h>
588
#ifdef HAVE_SYS_STAT_H
589
# include <sys/stat.h>
595
# ifdef HAVE_STDLIB_H
600
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605
#ifdef HAVE_STRINGS_H
606
# include <strings.h>
608
#ifdef HAVE_INTTYPES_H
609
# include <inttypes.h>
627
program_transform_name
669
INSTALL_STRIP_PROGRAM
704
ac_precious_vars='build_alias
718
# Initialize some variables set by options.
720
ac_init_version=false
721
# The variables have the same names as the options, with
722
# dashes changed to underlines.
730
program_transform_name=s,x,x,
738
# Installation directory options.
739
# These are left unexpanded so users can "make install exec_prefix=/foo"
740
# and all the variables that are supposed to be based on exec_prefix
741
# by default will actually change.
742
# Use braces instead of parens because sh, perl, etc. also accept them.
743
# (The list follows the same order as the GNU Coding Standards.)
744
bindir='${exec_prefix}/bin'
745
sbindir='${exec_prefix}/sbin'
746
libexecdir='${exec_prefix}/libexec'
747
datarootdir='${prefix}/share'
748
datadir='${datarootdir}'
749
sysconfdir='${prefix}/etc'
750
sharedstatedir='${prefix}/com'
751
localstatedir='${prefix}/var'
752
includedir='${prefix}/include'
753
oldincludedir='/usr/include'
754
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
755
infodir='${datarootdir}/info'
760
libdir='${exec_prefix}/lib'
761
localedir='${datarootdir}/locale'
762
mandir='${datarootdir}/man'
768
# If the previous option needs an argument, assign it.
769
if test -n "$ac_prev"; then
770
eval $ac_prev=\$ac_option
776
*=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
780
# Accept the important Cygnus configure options, so we can diagnose typos.
782
case $ac_dashdash$ac_option in
786
-bindir | --bindir | --bindi | --bind | --bin | --bi)
788
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
791
-build | --build | --buil | --bui | --bu)
792
ac_prev=build_alias ;;
793
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
794
build_alias=$ac_optarg ;;
796
-cache-file | --cache-file | --cache-fil | --cache-fi \
797
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
798
ac_prev=cache_file ;;
799
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
800
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
801
cache_file=$ac_optarg ;;
804
cache_file=config.cache ;;
806
-datadir | --datadir | --datadi | --datad)
808
-datadir=* | --datadir=* | --datadi=* | --datad=*)
809
datadir=$ac_optarg ;;
811
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
812
| --dataroo | --dataro | --datar)
813
ac_prev=datarootdir ;;
814
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
815
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
816
datarootdir=$ac_optarg ;;
818
-disable-* | --disable-*)
819
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
820
# Reject names that are not valid shell variable names.
821
expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
822
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
823
{ (exit 1); exit 1; }; }
824
ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
825
eval enable_$ac_feature=no ;;
827
-docdir | --docdir | --docdi | --doc | --do)
829
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
832
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
834
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
837
-enable-* | --enable-*)
838
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
839
# Reject names that are not valid shell variable names.
840
expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
841
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2
842
{ (exit 1); exit 1; }; }
843
ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
844
eval enable_$ac_feature=\$ac_optarg ;;
846
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
847
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
848
| --exec | --exe | --ex)
849
ac_prev=exec_prefix ;;
850
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
851
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
852
| --exec=* | --exe=* | --ex=*)
853
exec_prefix=$ac_optarg ;;
855
-gas | --gas | --ga | --g)
856
# Obsolete; use --with-gas.
859
-help | --help | --hel | --he | -h)
861
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
862
ac_init_help=recursive ;;
863
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
864
ac_init_help=short ;;
866
-host | --host | --hos | --ho)
867
ac_prev=host_alias ;;
868
-host=* | --host=* | --hos=* | --ho=*)
869
host_alias=$ac_optarg ;;
871
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
873
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
875
htmldir=$ac_optarg ;;
877
-includedir | --includedir | --includedi | --included | --include \
878
| --includ | --inclu | --incl | --inc)
879
ac_prev=includedir ;;
880
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
881
| --includ=* | --inclu=* | --incl=* | --inc=*)
882
includedir=$ac_optarg ;;
884
-infodir | --infodir | --infodi | --infod | --info | --inf)
886
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
887
infodir=$ac_optarg ;;
889
-libdir | --libdir | --libdi | --libd)
891
-libdir=* | --libdir=* | --libdi=* | --libd=*)
894
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
895
| --libexe | --libex | --libe)
896
ac_prev=libexecdir ;;
897
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
898
| --libexe=* | --libex=* | --libe=*)
899
libexecdir=$ac_optarg ;;
901
-localedir | --localedir | --localedi | --localed | --locale)
903
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
904
localedir=$ac_optarg ;;
906
-localstatedir | --localstatedir | --localstatedi | --localstated \
907
| --localstate | --localstat | --localsta | --localst | --locals)
908
ac_prev=localstatedir ;;
909
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
910
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
911
localstatedir=$ac_optarg ;;
913
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
915
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
919
# Obsolete; use --without-fp.
922
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
923
| --no-cr | --no-c | -n)
926
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
927
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
930
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
931
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
932
| --oldin | --oldi | --old | --ol | --o)
933
ac_prev=oldincludedir ;;
934
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
935
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
936
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
937
oldincludedir=$ac_optarg ;;
939
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
941
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
944
-program-prefix | --program-prefix | --program-prefi | --program-pref \
945
| --program-pre | --program-pr | --program-p)
946
ac_prev=program_prefix ;;
947
-program-prefix=* | --program-prefix=* | --program-prefi=* \
948
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
949
program_prefix=$ac_optarg ;;
951
-program-suffix | --program-suffix | --program-suffi | --program-suff \
952
| --program-suf | --program-su | --program-s)
953
ac_prev=program_suffix ;;
954
-program-suffix=* | --program-suffix=* | --program-suffi=* \
955
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
956
program_suffix=$ac_optarg ;;
958
-program-transform-name | --program-transform-name \
959
| --program-transform-nam | --program-transform-na \
960
| --program-transform-n | --program-transform- \
961
| --program-transform | --program-transfor \
962
| --program-transfo | --program-transf \
963
| --program-trans | --program-tran \
964
| --progr-tra | --program-tr | --program-t)
965
ac_prev=program_transform_name ;;
966
-program-transform-name=* | --program-transform-name=* \
967
| --program-transform-nam=* | --program-transform-na=* \
968
| --program-transform-n=* | --program-transform-=* \
969
| --program-transform=* | --program-transfor=* \
970
| --program-transfo=* | --program-transf=* \
971
| --program-trans=* | --program-tran=* \
972
| --progr-tra=* | --program-tr=* | --program-t=*)
973
program_transform_name=$ac_optarg ;;
975
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
977
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
980
-psdir | --psdir | --psdi | --psd | --ps)
982
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
985
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
986
| -silent | --silent | --silen | --sile | --sil)
989
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
991
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
993
sbindir=$ac_optarg ;;
995
-sharedstatedir | --sharedstatedir | --sharedstatedi \
996
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
997
| --sharedst | --shareds | --shared | --share | --shar \
999
ac_prev=sharedstatedir ;;
1000
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1001
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1002
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1004
sharedstatedir=$ac_optarg ;;
1006
-site | --site | --sit)
1008
-site=* | --site=* | --sit=*)
1011
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1013
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1014
srcdir=$ac_optarg ;;
1016
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1017
| --syscon | --sysco | --sysc | --sys | --sy)
1018
ac_prev=sysconfdir ;;
1019
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1020
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1021
sysconfdir=$ac_optarg ;;
1023
-target | --target | --targe | --targ | --tar | --ta | --t)
1024
ac_prev=target_alias ;;
1025
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1026
target_alias=$ac_optarg ;;
1028
-v | -verbose | --verbose | --verbos | --verbo | --verb)
1031
-version | --version | --versio | --versi | --vers | -V)
1032
ac_init_version=: ;;
1035
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1036
# Reject names that are not valid shell variable names.
1037
expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1038
{ echo "$as_me: error: invalid package name: $ac_package" >&2
1039
{ (exit 1); exit 1; }; }
1040
ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1041
eval with_$ac_package=\$ac_optarg ;;
1043
-without-* | --without-*)
1044
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1045
# Reject names that are not valid shell variable names.
1046
expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1047
{ echo "$as_me: error: invalid package name: $ac_package" >&2
1048
{ (exit 1); exit 1; }; }
1049
ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1050
eval with_$ac_package=no ;;
1053
# Obsolete; use --with-x.
1056
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1057
| --x-incl | --x-inc | --x-in | --x-i)
1058
ac_prev=x_includes ;;
1059
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1060
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1061
x_includes=$ac_optarg ;;
1063
-x-libraries | --x-libraries | --x-librarie | --x-librari \
1064
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1065
ac_prev=x_libraries ;;
1066
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1067
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1068
x_libraries=$ac_optarg ;;
1070
-*) { echo "$as_me: error: unrecognized option: $ac_option
1071
Try \`$0 --help' for more information." >&2
1072
{ (exit 1); exit 1; }; }
1076
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1077
# Reject names that are not valid shell variable names.
1078
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1079
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1080
{ (exit 1); exit 1; }; }
1081
eval $ac_envvar=\$ac_optarg
1082
export $ac_envvar ;;
1085
# FIXME: should be removed in autoconf 3.0.
1086
echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1087
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1088
echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1089
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1095
if test -n "$ac_prev"; then
1096
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1097
{ echo "$as_me: error: missing argument to $ac_option" >&2
1098
{ (exit 1); exit 1; }; }
1101
# Be sure to have absolute directory names.
1102
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1103
datadir sysconfdir sharedstatedir localstatedir includedir \
1104
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1105
libdir localedir mandir
1107
eval ac_val=\$$ac_var
1109
[\\/$]* | ?:[\\/]* ) continue;;
1110
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1112
{ echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1113
{ (exit 1); exit 1; }; }
1116
# There might be people who depend on the old broken behavior: `$host'
1117
# used to hold the argument of --host etc.
1118
# FIXME: To remove some day.
1121
target=$target_alias
1123
# FIXME: To remove some day.
1124
if test "x$host_alias" != x; then
1125
if test "x$build_alias" = x; then
1126
cross_compiling=maybe
1127
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1128
If a cross compiler is detected then cross compile mode will be used." >&2
1129
elif test "x$build_alias" != "x$host_alias"; then
1135
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1137
test "$silent" = yes && exec 6>/dev/null
1140
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1141
ac_ls_di=`ls -di .` &&
1142
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1143
{ echo "$as_me: error: Working directory cannot be determined" >&2
1144
{ (exit 1); exit 1; }; }
1145
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1146
{ echo "$as_me: error: pwd does not report name of working directory" >&2
1147
{ (exit 1); exit 1; }; }
1150
# Find the source files, if location was not specified.
1151
if test -z "$srcdir"; then
1152
ac_srcdir_defaulted=yes
1153
# Try the directory containing this script, then the parent directory.
1154
ac_confdir=`$as_dirname -- "$0" ||
1155
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1156
X"$0" : 'X\(//\)[^/]' \| \
1157
X"$0" : 'X\(//\)$' \| \
1158
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1160
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1178
if test ! -r "$srcdir/$ac_unique_file"; then
1182
ac_srcdir_defaulted=no
1184
if test ! -r "$srcdir/$ac_unique_file"; then
1185
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1186
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1187
{ (exit 1); exit 1; }; }
1189
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1191
cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1192
{ (exit 1); exit 1; }; }
1194
# When building in place, set srcdir=.
1195
if test "$ac_abs_confdir" = "$ac_pwd"; then
1198
# Remove unnecessary trailing slashes from srcdir.
1199
# Double slashes in file names in object file debugging info
1200
# mess up M-x gdb in Emacs.
1202
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1204
for ac_var in $ac_precious_vars; do
1205
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1206
eval ac_env_${ac_var}_value=\$${ac_var}
1207
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1208
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1212
# Report the --help message.
1214
if test "$ac_init_help" = "long"; then
1215
# Omit some internal or obsolete options to make the list less imposing.
1216
# This message is too long to be a string in the A/UX 3.1 sh.
1218
\`configure' configures u3-tool 0.2 to adapt to many kinds of systems.
1220
Usage: $0 [OPTION]... [VAR=VALUE]...
1222
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1223
VAR=VALUE. See below for descriptions of some of the useful variables.
1225
Defaults for the options are specified in brackets.
1228
-h, --help display this help and exit
1229
--help=short display options specific to this package
1230
--help=recursive display the short help of all the included packages
1231
-V, --version display version information and exit
1232
-q, --quiet, --silent do not print \`checking...' messages
1233
--cache-file=FILE cache test results in FILE [disabled]
1234
-C, --config-cache alias for \`--cache-file=config.cache'
1235
-n, --no-create do not create output files
1236
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1238
Installation directories:
1239
--prefix=PREFIX install architecture-independent files in PREFIX
1240
[$ac_default_prefix]
1241
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1244
By default, \`make install' will install all the files in
1245
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1246
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1247
for instance \`--prefix=\$HOME'.
1249
For better control, use the options below.
1251
Fine tuning of the installation directories:
1252
--bindir=DIR user executables [EPREFIX/bin]
1253
--sbindir=DIR system admin executables [EPREFIX/sbin]
1254
--libexecdir=DIR program executables [EPREFIX/libexec]
1255
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1256
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1257
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1258
--libdir=DIR object code libraries [EPREFIX/lib]
1259
--includedir=DIR C header files [PREFIX/include]
1260
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1261
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1262
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1263
--infodir=DIR info documentation [DATAROOTDIR/info]
1264
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1265
--mandir=DIR man documentation [DATAROOTDIR/man]
1266
--docdir=DIR documentation root [DATAROOTDIR/doc/u3-tool]
1267
--htmldir=DIR html documentation [DOCDIR]
1268
--dvidir=DIR dvi documentation [DOCDIR]
1269
--pdfdir=DIR pdf documentation [DOCDIR]
1270
--psdir=DIR ps documentation [DOCDIR]
1276
--program-prefix=PREFIX prepend PREFIX to installed program names
1277
--program-suffix=SUFFIX append SUFFIX to installed program names
1278
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1282
if test -n "$ac_init_help"; then
1283
case $ac_init_help in
1284
short | recursive ) echo "Configuration of u3-tool 0.2:";;
1289
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1290
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1291
--disable-dependency-tracking speeds up one-time build
1292
--enable-dependency-tracking do not reject slow dependency extractors
1294
Some influential environment variables:
1295
CC C compiler command
1296
CFLAGS C compiler flags
1297
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1298
nonstandard directory <lib dir>
1299
LIBS libraries to pass to the linker, e.g. -l<library>
1300
CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1301
you have headers in a nonstandard directory <include dir>
1302
PKG_CONFIG path to pkg-config utility
1304
C compiler flags for LIBUSB, overriding pkg-config
1305
LIBUSB_LIBS linker flags for LIBUSB, overriding pkg-config
1308
Use these variables to override the choices made by `configure' or to help
1309
it to find libraries and programs with nonstandard names/locations.
1311
Report bugs to <daviedev@users.sourceforge.net>.
1316
if test "$ac_init_help" = "recursive"; then
1317
# If there are subdirs, report their specific --help.
1318
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1319
test -d "$ac_dir" || continue
1323
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1325
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1326
# A ".." for each directory in $ac_dir_suffix.
1327
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1328
case $ac_top_builddir_sub in
1329
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1330
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1333
ac_abs_top_builddir=$ac_pwd
1334
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1335
# for backward compatibility:
1336
ac_top_builddir=$ac_top_build_prefix
1339
.) # We are building in place.
1341
ac_top_srcdir=$ac_top_builddir_sub
1342
ac_abs_top_srcdir=$ac_pwd ;;
1343
[\\/]* | ?:[\\/]* ) # Absolute name.
1344
ac_srcdir=$srcdir$ac_dir_suffix;
1345
ac_top_srcdir=$srcdir
1346
ac_abs_top_srcdir=$srcdir ;;
1348
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1349
ac_top_srcdir=$ac_top_build_prefix$srcdir
1350
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1352
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1354
cd "$ac_dir" || { ac_status=$?; continue; }
1355
# Check for guested configure.
1356
if test -f "$ac_srcdir/configure.gnu"; then
1358
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1359
elif test -f "$ac_srcdir/configure"; then
1361
$SHELL "$ac_srcdir/configure" --help=recursive
1363
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1365
cd "$ac_pwd" || { ac_status=$?; break; }
1369
test -n "$ac_init_help" && exit $ac_status
1370
if $ac_init_version; then
1372
u3-tool configure 0.2
1373
generated by GNU Autoconf 2.61
1375
Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1376
2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1377
This configure script is free software; the Free Software Foundation
1378
gives unlimited permission to copy, distribute and modify it.
1382
cat >config.log <<_ACEOF
1383
This file contains any messages produced by compilers while
1384
running configure, to aid debugging if configure makes a mistake.
1386
It was created by u3-tool $as_me 0.2, which was
1387
generated by GNU Autoconf 2.61. Invocation command line was
1399
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1400
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1401
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1402
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1403
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1405
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1406
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1408
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1409
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1410
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1411
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1412
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1413
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1414
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1418
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1422
test -z "$as_dir" && as_dir=.
1423
echo "PATH: $as_dir"
1439
# Keep a trace of the command line.
1440
# Strip out --no-create and --no-recursion so they do not pile up.
1441
# Strip out --silent because we don't want to record it for future runs.
1442
# Also quote any args containing shell meta-characters.
1443
# Make two passes to allow for proper duplicate-argument suppression.
1447
ac_must_keep_next=false
1453
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1454
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1455
| -silent | --silent | --silen | --sile | --sil)
1458
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1461
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1463
ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1464
if test $ac_must_keep_next = true; then
1465
ac_must_keep_next=false # Got value, back to normal.
1468
*=* | --config-cache | -C | -disable-* | --disable-* \
1469
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1470
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1471
| -with-* | --with-* | -without-* | --without-* | --x)
1472
case "$ac_configure_args0 " in
1473
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1476
-* ) ac_must_keep_next=true ;;
1479
ac_configure_args="$ac_configure_args '$ac_arg'"
1484
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1485
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1487
# When interrupted or exit'd, cleanup temporary files, and complete
1488
# config.log. We remove comments because anyway the quotes in there
1489
# would cause problems or look ugly.
1490
# WARNING: Use '\'' to represent an apostrophe within the trap.
1491
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1492
trap 'exit_status=$?
1493
# Save into config.log some information that might help in debugging.
1498
## ---------------- ##
1499
## Cache variables. ##
1500
## ---------------- ##
1503
# The following way of writing the cache mishandles newlines in values,
1505
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1506
eval ac_val=\$$ac_var
1510
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1511
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1514
_ | IFS | as_nl) ;; #(
1515
*) $as_unset $ac_var ;;
1520
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1521
*${as_nl}ac_space=\ *)
1523
"s/'\''/'\''\\\\'\'''\''/g;
1524
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1527
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1535
## ----------------- ##
1536
## Output variables. ##
1537
## ----------------- ##
1540
for ac_var in $ac_subst_vars
1542
eval ac_val=\$$ac_var
1544
*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1546
echo "$ac_var='\''$ac_val'\''"
1550
if test -n "$ac_subst_files"; then
1552
## ------------------- ##
1553
## File substitutions. ##
1554
## ------------------- ##
1557
for ac_var in $ac_subst_files
1559
eval ac_val=\$$ac_var
1561
*\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1563
echo "$ac_var='\''$ac_val'\''"
1568
if test -s confdefs.h; then
1578
test "$ac_signal" != 0 &&
1579
echo "$as_me: caught signal $ac_signal"
1580
echo "$as_me: exit $exit_status"
1582
rm -f core *.core core.conftest.* &&
1583
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1586
for ac_signal in 1 2 13 15; do
1587
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1591
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1592
rm -f -r conftest* confdefs.h
1594
# Predefined preprocessor variables.
1596
cat >>confdefs.h <<_ACEOF
1597
#define PACKAGE_NAME "$PACKAGE_NAME"
1601
cat >>confdefs.h <<_ACEOF
1602
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1606
cat >>confdefs.h <<_ACEOF
1607
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1611
cat >>confdefs.h <<_ACEOF
1612
#define PACKAGE_STRING "$PACKAGE_STRING"
1616
cat >>confdefs.h <<_ACEOF
1617
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1621
# Let the site file select an alternate cache file if it wants to.
1622
# Prefer explicitly selected file to automatically selected ones.
1623
if test -n "$CONFIG_SITE"; then
1624
set x "$CONFIG_SITE"
1625
elif test "x$prefix" != xNONE; then
1626
set x "$prefix/share/config.site" "$prefix/etc/config.site"
1628
set x "$ac_default_prefix/share/config.site" \
1629
"$ac_default_prefix/etc/config.site"
1634
if test -r "$ac_site_file"; then
1635
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1636
echo "$as_me: loading site script $ac_site_file" >&6;}
1637
sed 's/^/| /' "$ac_site_file" >&5
1642
if test -r "$cache_file"; then
1643
# Some versions of bash will fail to source /dev/null (special
1644
# files actually), so we avoid doing that.
1645
if test -f "$cache_file"; then
1646
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5
1647
echo "$as_me: loading cache $cache_file" >&6;}
1649
[\\/]* | ?:[\\/]* ) . "$cache_file";;
1650
*) . "./$cache_file";;
1654
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5
1655
echo "$as_me: creating cache $cache_file" >&6;}
1659
# Check that the precious variables saved in the cache have kept the same
1661
ac_cache_corrupted=false
1662
for ac_var in $ac_precious_vars; do
1663
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1664
eval ac_new_set=\$ac_env_${ac_var}_set
1665
eval ac_old_val=\$ac_cv_env_${ac_var}_value
1666
eval ac_new_val=\$ac_env_${ac_var}_value
1667
case $ac_old_set,$ac_new_set in
1669
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1670
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1671
ac_cache_corrupted=: ;;
1673
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1674
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1675
ac_cache_corrupted=: ;;
1678
if test "x$ac_old_val" != "x$ac_new_val"; then
1679
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1680
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1681
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1682
echo "$as_me: former value: $ac_old_val" >&2;}
1683
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1684
echo "$as_me: current value: $ac_new_val" >&2;}
1685
ac_cache_corrupted=:
1688
# Pass precious variables to config.status.
1689
if test "$ac_new_set" = set; then
1691
*\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1692
*) ac_arg=$ac_var=$ac_new_val ;;
1694
case " $ac_configure_args " in
1695
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1696
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1700
if $ac_cache_corrupted; then
1701
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1702
echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1703
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1704
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1705
{ (exit 1); exit 1; }; }
1733
ac_cpp='$CPP $CPPFLAGS'
1734
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1735
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1736
ac_compiler_gnu=$ac_cv_c_compiler_gnu
1739
am__api_version='1.10'
1742
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1743
if test -f "$ac_dir/install-sh"; then
1745
ac_install_sh="$ac_aux_dir/install-sh -c"
1747
elif test -f "$ac_dir/install.sh"; then
1749
ac_install_sh="$ac_aux_dir/install.sh -c"
1751
elif test -f "$ac_dir/shtool"; then
1753
ac_install_sh="$ac_aux_dir/shtool install -c"
1757
if test -z "$ac_aux_dir"; then
1758
{ { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1759
echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1760
{ (exit 1); exit 1; }; }
1763
# These three variables are undocumented and unsupported,
1764
# and are intended to be withdrawn in a future Autoconf release.
1765
# They can cause serious problems if a builder's source tree is in a directory
1766
# whose full name contains unusual characters.
1767
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1768
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1769
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1772
# Find a good install program. We prefer a C program (faster),
1773
# so one script is as good as another. But avoid the broken or
1774
# incompatible versions:
1775
# SysV /etc/install, /usr/sbin/install
1776
# SunOS /usr/etc/install
1777
# IRIX /sbin/install
1779
# AmigaOS /C/install, which installs bootblocks on floppy discs
1780
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1781
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
1782
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1783
# OS/2's system install, which has a completely different semantic
1784
# ./install, which can be erroneously created by make from ./install.sh.
1785
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1786
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1787
if test -z "$INSTALL"; then
1788
if test "${ac_cv_path_install+set}" = set; then
1789
echo $ECHO_N "(cached) $ECHO_C" >&6
1791
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1795
test -z "$as_dir" && as_dir=.
1796
# Account for people who put trailing slashes in PATH elements.
1798
./ | .// | /cC/* | \
1799
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1800
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1803
# OSF1 and SCO ODT 3.0 have their own names for install.
1804
# Don't use installbsd from OSF since it installs stuff as root
1806
for ac_prog in ginstall scoinst install; do
1807
for ac_exec_ext in '' $ac_executable_extensions; do
1808
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1809
if test $ac_prog = install &&
1810
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1811
# AIX install. It has an incompatible calling convention.
1813
elif test $ac_prog = install &&
1814
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1815
# program-specific install script used by HP pwplus--don't use.
1818
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1831
if test "${ac_cv_path_install+set}" = set; then
1832
INSTALL=$ac_cv_path_install
1834
# As a last resort, use the slow shell script. Don't cache a
1835
# value for INSTALL within a source directory, because that will
1836
# break other packages using the cache if that directory is
1837
# removed, or if the value is a relative name.
1838
INSTALL=$ac_install_sh
1841
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
1842
echo "${ECHO_T}$INSTALL" >&6; }
1844
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1845
# It thinks the first close brace ends the variable substitution.
1846
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1848
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1850
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1852
{ echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1853
echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1856
echo timestamp > conftest.file
1857
# Do `set' in a subshell so we don't clobber the current shell's
1858
# arguments. Must try -L first in case configure is actually a
1859
# symlink; some systems play weird games with the mod time of symlinks
1860
# (eg FreeBSD returns the mod time of the symlink's containing
1863
set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1864
if test "$*" = "X"; then
1866
set X `ls -t $srcdir/configure conftest.file`
1869
if test "$*" != "X $srcdir/configure conftest.file" \
1870
&& test "$*" != "X conftest.file $srcdir/configure"; then
1872
# If neither matched, then we have a broken ls. This can happen
1873
# if, for instance, CONFIG_SHELL is bash and it inherits a
1874
# broken ls alias from the environment. This has actually
1875
# happened. Such a system could not be considered "sane".
1876
{ { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1877
alias in your environment" >&5
1878
echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1879
alias in your environment" >&2;}
1880
{ (exit 1); exit 1; }; }
1883
test "$2" = conftest.file
1889
{ { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1890
Check your system clock" >&5
1891
echo "$as_me: error: newly created file is older than distributed files!
1892
Check your system clock" >&2;}
1893
{ (exit 1); exit 1; }; }
1895
{ echo "$as_me:$LINENO: result: yes" >&5
1896
echo "${ECHO_T}yes" >&6; }
1897
test "$program_prefix" != NONE &&
1898
program_transform_name="s&^&$program_prefix&;$program_transform_name"
1899
# Use a double $ so make ignores it.
1900
test "$program_suffix" != NONE &&
1901
program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1902
# Double any \ or $. echo might interpret backslashes.
1903
# By default was `s,x,x', remove it if useless.
1904
cat <<\_ACEOF >conftest.sed
1905
s/[\\$]/&&/g;s/;s,x,x,$//
1907
program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1910
# expand $ac_aux_dir to an absolute path
1911
am_aux_dir=`cd $ac_aux_dir && pwd`
1913
test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1914
# Use eval to expand $SHELL
1915
if eval "$MISSING --run true"; then
1916
am_missing_run="$MISSING --run "
1919
{ echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1920
echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1923
{ echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
1924
echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
1925
if test -z "$MKDIR_P"; then
1926
if test "${ac_cv_path_mkdir+set}" = set; then
1927
echo $ECHO_N "(cached) $ECHO_C" >&6
1929
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1930
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
1933
test -z "$as_dir" && as_dir=.
1934
for ac_prog in mkdir gmkdir; do
1935
for ac_exec_ext in '' $ac_executable_extensions; do
1936
{ test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
1937
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
1938
'mkdir (GNU coreutils) '* | \
1939
'mkdir (coreutils) '* | \
1940
'mkdir (fileutils) '4.1*)
1941
ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
1951
if test "${ac_cv_path_mkdir+set}" = set; then
1952
MKDIR_P="$ac_cv_path_mkdir -p"
1954
# As a last resort, use the slow shell script. Don't cache a
1955
# value for MKDIR_P within a source directory, because that will
1956
# break other packages using the cache if that directory is
1957
# removed, or if the value is a relative name.
1958
test -d ./--version && rmdir ./--version
1959
MKDIR_P="$ac_install_sh -d"
1962
{ echo "$as_me:$LINENO: result: $MKDIR_P" >&5
1963
echo "${ECHO_T}$MKDIR_P" >&6; }
1967
[\\/$]* | ?:[\\/]*) ;;
1968
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
1971
for ac_prog in gawk mawk nawk awk
1973
# Extract the first word of "$ac_prog", so it can be a program name with args.
1974
set dummy $ac_prog; ac_word=$2
1975
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
1976
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1977
if test "${ac_cv_prog_AWK+set}" = set; then
1978
echo $ECHO_N "(cached) $ECHO_C" >&6
1980
if test -n "$AWK"; then
1981
ac_cv_prog_AWK="$AWK" # Let the user override the test.
1983
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1987
test -z "$as_dir" && as_dir=.
1988
for ac_exec_ext in '' $ac_executable_extensions; do
1989
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1990
ac_cv_prog_AWK="$ac_prog"
1991
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2001
if test -n "$AWK"; then
2002
{ echo "$as_me:$LINENO: result: $AWK" >&5
2003
echo "${ECHO_T}$AWK" >&6; }
2005
{ echo "$as_me:$LINENO: result: no" >&5
2006
echo "${ECHO_T}no" >&6; }
2010
test -n "$AWK" && break
2013
{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2014
echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2015
set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2016
if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2017
echo $ECHO_N "(cached) $ECHO_C" >&6
2019
cat >conftest.make <<\_ACEOF
2022
@echo '@@@%%%=$(MAKE)=@@@%%%'
2024
# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2025
case `${MAKE-make} -f conftest.make 2>/dev/null` in
2027
eval ac_cv_prog_make_${ac_make}_set=yes;;
2029
eval ac_cv_prog_make_${ac_make}_set=no;;
2033
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2034
{ echo "$as_me:$LINENO: result: yes" >&5
2035
echo "${ECHO_T}yes" >&6; }
2038
{ echo "$as_me:$LINENO: result: no" >&5
2039
echo "${ECHO_T}no" >&6; }
2040
SET_MAKE="MAKE=${MAKE-make}"
2043
rm -rf .tst 2>/dev/null
2044
mkdir .tst 2>/dev/null
2045
if test -d .tst; then
2050
rmdir .tst 2>/dev/null
2052
if test "`cd $srcdir && pwd`" != "`pwd`"; then
2053
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2054
# is not polluted with repeated "-I."
2055
am__isrc=' -I$(srcdir)'
2056
# test to see if srcdir already configured
2057
if test -f $srcdir/config.status; then
2058
{ { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2059
echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2060
{ (exit 1); exit 1; }; }
2064
# test whether we have cygpath
2065
if test -z "$CYGPATH_W"; then
2066
if (cygpath --version) >/dev/null 2>/dev/null; then
2067
CYGPATH_W='cygpath -w'
2074
# Define the identity of the package.
2079
cat >>confdefs.h <<_ACEOF
2080
#define PACKAGE "$PACKAGE"
2084
cat >>confdefs.h <<_ACEOF
2085
#define VERSION "$VERSION"
2088
# Some tools Automake needs.
2090
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2093
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2096
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2099
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2102
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2104
install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2106
# Installed binaries are usually stripped using `strip' when the user
2107
# run `make install-strip'. However `strip' might not be the right
2108
# tool to use in cross-compilation environments, therefore Automake
2109
# will honor the `STRIP' environment variable to overrule this program.
2110
if test "$cross_compiling" != no; then
2111
if test -n "$ac_tool_prefix"; then
2112
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2113
set dummy ${ac_tool_prefix}strip; ac_word=$2
2114
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2115
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2116
if test "${ac_cv_prog_STRIP+set}" = set; then
2117
echo $ECHO_N "(cached) $ECHO_C" >&6
2119
if test -n "$STRIP"; then
2120
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2122
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2126
test -z "$as_dir" && as_dir=.
2127
for ac_exec_ext in '' $ac_executable_extensions; do
2128
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2129
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2130
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2139
STRIP=$ac_cv_prog_STRIP
2140
if test -n "$STRIP"; then
2141
{ echo "$as_me:$LINENO: result: $STRIP" >&5
2142
echo "${ECHO_T}$STRIP" >&6; }
2144
{ echo "$as_me:$LINENO: result: no" >&5
2145
echo "${ECHO_T}no" >&6; }
2150
if test -z "$ac_cv_prog_STRIP"; then
2152
# Extract the first word of "strip", so it can be a program name with args.
2153
set dummy strip; ac_word=$2
2154
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2155
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2156
if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2157
echo $ECHO_N "(cached) $ECHO_C" >&6
2159
if test -n "$ac_ct_STRIP"; then
2160
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2162
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2166
test -z "$as_dir" && as_dir=.
2167
for ac_exec_ext in '' $ac_executable_extensions; do
2168
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2169
ac_cv_prog_ac_ct_STRIP="strip"
2170
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2179
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2180
if test -n "$ac_ct_STRIP"; then
2181
{ echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2182
echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2184
{ echo "$as_me:$LINENO: result: no" >&5
2185
echo "${ECHO_T}no" >&6; }
2188
if test "x$ac_ct_STRIP" = x; then
2191
case $cross_compiling:$ac_tool_warned in
2193
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2194
whose name does not start with the host triplet. If you think this
2195
configuration is useful to you, please write to autoconf@gnu.org." >&5
2196
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2197
whose name does not start with the host triplet. If you think this
2198
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2199
ac_tool_warned=yes ;;
2204
STRIP="$ac_cv_prog_STRIP"
2208
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2210
# We need awk for the "check" target. The system "awk" is bad on
2212
# Always define AMTAR for backward compatibility.
2214
AMTAR=${AMTAR-"${am_missing_run}tar"}
2216
am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2223
ac_config_headers="$ac_config_headers config.h"
2226
# Checks for programs.
2228
ac_cpp='$CPP $CPPFLAGS'
2229
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2230
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2231
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2232
if test -n "$ac_tool_prefix"; then
2233
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2234
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2235
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2236
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2237
if test "${ac_cv_prog_CC+set}" = set; then
2238
echo $ECHO_N "(cached) $ECHO_C" >&6
2240
if test -n "$CC"; then
2241
ac_cv_prog_CC="$CC" # Let the user override the test.
2243
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2247
test -z "$as_dir" && as_dir=.
2248
for ac_exec_ext in '' $ac_executable_extensions; do
2249
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2250
ac_cv_prog_CC="${ac_tool_prefix}gcc"
2251
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2261
if test -n "$CC"; then
2262
{ echo "$as_me:$LINENO: result: $CC" >&5
2263
echo "${ECHO_T}$CC" >&6; }
2265
{ echo "$as_me:$LINENO: result: no" >&5
2266
echo "${ECHO_T}no" >&6; }
2271
if test -z "$ac_cv_prog_CC"; then
2273
# Extract the first word of "gcc", so it can be a program name with args.
2274
set dummy gcc; ac_word=$2
2275
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2276
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2277
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2278
echo $ECHO_N "(cached) $ECHO_C" >&6
2280
if test -n "$ac_ct_CC"; then
2281
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2283
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2287
test -z "$as_dir" && as_dir=.
2288
for ac_exec_ext in '' $ac_executable_extensions; do
2289
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2290
ac_cv_prog_ac_ct_CC="gcc"
2291
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2300
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2301
if test -n "$ac_ct_CC"; then
2302
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2303
echo "${ECHO_T}$ac_ct_CC" >&6; }
2305
{ echo "$as_me:$LINENO: result: no" >&5
2306
echo "${ECHO_T}no" >&6; }
2309
if test "x$ac_ct_CC" = x; then
2312
case $cross_compiling:$ac_tool_warned in
2314
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2315
whose name does not start with the host triplet. If you think this
2316
configuration is useful to you, please write to autoconf@gnu.org." >&5
2317
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2318
whose name does not start with the host triplet. If you think this
2319
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2320
ac_tool_warned=yes ;;
2328
if test -z "$CC"; then
2329
if test -n "$ac_tool_prefix"; then
2330
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2331
set dummy ${ac_tool_prefix}cc; ac_word=$2
2332
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2333
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2334
if test "${ac_cv_prog_CC+set}" = set; then
2335
echo $ECHO_N "(cached) $ECHO_C" >&6
2337
if test -n "$CC"; then
2338
ac_cv_prog_CC="$CC" # Let the user override the test.
2340
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2344
test -z "$as_dir" && as_dir=.
2345
for ac_exec_ext in '' $ac_executable_extensions; do
2346
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2347
ac_cv_prog_CC="${ac_tool_prefix}cc"
2348
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2358
if test -n "$CC"; then
2359
{ echo "$as_me:$LINENO: result: $CC" >&5
2360
echo "${ECHO_T}$CC" >&6; }
2362
{ echo "$as_me:$LINENO: result: no" >&5
2363
echo "${ECHO_T}no" >&6; }
2369
if test -z "$CC"; then
2370
# Extract the first word of "cc", so it can be a program name with args.
2371
set dummy cc; ac_word=$2
2372
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2373
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2374
if test "${ac_cv_prog_CC+set}" = set; then
2375
echo $ECHO_N "(cached) $ECHO_C" >&6
2377
if test -n "$CC"; then
2378
ac_cv_prog_CC="$CC" # Let the user override the test.
2381
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2385
test -z "$as_dir" && as_dir=.
2386
for ac_exec_ext in '' $ac_executable_extensions; do
2387
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2388
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2389
ac_prog_rejected=yes
2393
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2400
if test $ac_prog_rejected = yes; then
2401
# We found a bogon in the path, so make sure we never use it.
2402
set dummy $ac_cv_prog_CC
2404
if test $# != 0; then
2405
# We chose a different compiler from the bogus one.
2406
# However, it has the same basename, so the bogon will be chosen
2407
# first if we set CC to just the basename; use the full file name.
2409
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2415
if test -n "$CC"; then
2416
{ echo "$as_me:$LINENO: result: $CC" >&5
2417
echo "${ECHO_T}$CC" >&6; }
2419
{ echo "$as_me:$LINENO: result: no" >&5
2420
echo "${ECHO_T}no" >&6; }
2425
if test -z "$CC"; then
2426
if test -n "$ac_tool_prefix"; then
2427
for ac_prog in cl.exe
2429
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2430
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2431
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2432
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2433
if test "${ac_cv_prog_CC+set}" = set; then
2434
echo $ECHO_N "(cached) $ECHO_C" >&6
2436
if test -n "$CC"; then
2437
ac_cv_prog_CC="$CC" # Let the user override the test.
2439
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2443
test -z "$as_dir" && as_dir=.
2444
for ac_exec_ext in '' $ac_executable_extensions; do
2445
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2446
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2447
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2457
if test -n "$CC"; then
2458
{ echo "$as_me:$LINENO: result: $CC" >&5
2459
echo "${ECHO_T}$CC" >&6; }
2461
{ echo "$as_me:$LINENO: result: no" >&5
2462
echo "${ECHO_T}no" >&6; }
2466
test -n "$CC" && break
2469
if test -z "$CC"; then
2471
for ac_prog in cl.exe
2473
# Extract the first word of "$ac_prog", so it can be a program name with args.
2474
set dummy $ac_prog; ac_word=$2
2475
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2476
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2477
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2478
echo $ECHO_N "(cached) $ECHO_C" >&6
2480
if test -n "$ac_ct_CC"; then
2481
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2483
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2487
test -z "$as_dir" && as_dir=.
2488
for ac_exec_ext in '' $ac_executable_extensions; do
2489
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2490
ac_cv_prog_ac_ct_CC="$ac_prog"
2491
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2500
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2501
if test -n "$ac_ct_CC"; then
2502
{ echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2503
echo "${ECHO_T}$ac_ct_CC" >&6; }
2505
{ echo "$as_me:$LINENO: result: no" >&5
2506
echo "${ECHO_T}no" >&6; }
2510
test -n "$ac_ct_CC" && break
2513
if test "x$ac_ct_CC" = x; then
2516
case $cross_compiling:$ac_tool_warned in
2518
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2519
whose name does not start with the host triplet. If you think this
2520
configuration is useful to you, please write to autoconf@gnu.org." >&5
2521
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2522
whose name does not start with the host triplet. If you think this
2523
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2524
ac_tool_warned=yes ;;
2533
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2534
See \`config.log' for more details." >&5
2535
echo "$as_me: error: no acceptable C compiler found in \$PATH
2536
See \`config.log' for more details." >&2;}
2537
{ (exit 1); exit 1; }; }
2539
# Provide some information about the compiler.
2540
echo "$as_me:$LINENO: checking for C compiler version" >&5
2541
ac_compiler=`set X $ac_compile; echo $2`
2542
{ (ac_try="$ac_compiler --version >&5"
2544
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2545
*) ac_try_echo=$ac_try;;
2547
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2548
(eval "$ac_compiler --version >&5") 2>&5
2550
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551
(exit $ac_status); }
2552
{ (ac_try="$ac_compiler -v >&5"
2554
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2555
*) ac_try_echo=$ac_try;;
2557
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2558
(eval "$ac_compiler -v >&5") 2>&5
2560
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561
(exit $ac_status); }
2562
{ (ac_try="$ac_compiler -V >&5"
2564
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2565
*) ac_try_echo=$ac_try;;
2567
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2568
(eval "$ac_compiler -V >&5") 2>&5
2570
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2571
(exit $ac_status); }
2573
cat >conftest.$ac_ext <<_ACEOF
2576
cat confdefs.h >>conftest.$ac_ext
2577
cat >>conftest.$ac_ext <<_ACEOF
2578
/* end confdefs.h. */
2588
ac_clean_files_save=$ac_clean_files
2589
ac_clean_files="$ac_clean_files a.out a.exe b.out"
2590
# Try to create an executable without -o first, disregard a.out.
2591
# It will help us diagnose broken compilers, and finding out an intuition
2593
{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2594
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2595
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2597
# List of possible output files, starting from the most likely.
2598
# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2599
# only as a last resort. b.out is created by i960 compilers.
2600
ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2602
# The IRIX 6 linker writes into existing files which may not be
2603
# executable, retaining their permissions. Remove them first so a
2604
# subsequent execution test works.
2606
for ac_file in $ac_files
2609
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2610
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
2615
if { (ac_try="$ac_link_default"
2617
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2618
*) ac_try_echo=$ac_try;;
2620
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2621
(eval "$ac_link_default") 2>&5
2623
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2624
(exit $ac_status); }; then
2625
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2626
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2627
# in a Makefile. We should not override ac_cv_exeext if it was cached,
2628
# so that the user can short-circuit this test for compilers unknown to
2630
for ac_file in $ac_files ''
2632
test -f "$ac_file" || continue
2634
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2637
# We found the default executable, but exeext='' is most
2641
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2643
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2645
# We set ac_cv_exeext here because the later test for it is not
2646
# safe: cross compilers may not add the suffix if given an `-o'
2647
# argument, so we may need to know it at that point already.
2648
# Even if this section looks crufty: it has the advantage of
2655
test "$ac_cv_exeext" = no && ac_cv_exeext=
2661
{ echo "$as_me:$LINENO: result: $ac_file" >&5
2662
echo "${ECHO_T}$ac_file" >&6; }
2663
if test -z "$ac_file"; then
2664
echo "$as_me: failed program was:" >&5
2665
sed 's/^/| /' conftest.$ac_ext >&5
2667
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2668
See \`config.log' for more details." >&5
2669
echo "$as_me: error: C compiler cannot create executables
2670
See \`config.log' for more details." >&2;}
2671
{ (exit 77); exit 77; }; }
2674
ac_exeext=$ac_cv_exeext
2676
# Check that the compiler produces executables we can run. If not, either
2677
# the compiler is broken, or we cross compile.
2678
{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2679
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2680
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2681
# If not cross compiling, check that we can run a simple program.
2682
if test "$cross_compiling" != yes; then
2683
if { ac_try='./$ac_file'
2684
{ (case "(($ac_try" in
2685
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2686
*) ac_try_echo=$ac_try;;
2688
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2689
(eval "$ac_try") 2>&5
2691
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692
(exit $ac_status); }; }; then
2695
if test "$cross_compiling" = maybe; then
2698
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2699
If you meant to cross compile, use \`--host'.
2700
See \`config.log' for more details." >&5
2701
echo "$as_me: error: cannot run C compiled programs.
2702
If you meant to cross compile, use \`--host'.
2703
See \`config.log' for more details." >&2;}
2704
{ (exit 1); exit 1; }; }
2708
{ echo "$as_me:$LINENO: result: yes" >&5
2709
echo "${ECHO_T}yes" >&6; }
2711
rm -f a.out a.exe conftest$ac_cv_exeext b.out
2712
ac_clean_files=$ac_clean_files_save
2713
# Check that the compiler produces executables we can run. If not, either
2714
# the compiler is broken, or we cross compile.
2715
{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2716
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2717
{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2718
echo "${ECHO_T}$cross_compiling" >&6; }
2720
{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2721
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2722
if { (ac_try="$ac_link"
2724
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2725
*) ac_try_echo=$ac_try;;
2727
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2728
(eval "$ac_link") 2>&5
2730
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731
(exit $ac_status); }; then
2732
# If both `conftest.exe' and `conftest' are `present' (well, observable)
2733
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2734
# work properly (i.e., refer to `conftest.exe'), while it won't with
2736
for ac_file in conftest.exe conftest conftest.*; do
2737
test -f "$ac_file" || continue
2739
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2740
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2746
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2747
See \`config.log' for more details." >&5
2748
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2749
See \`config.log' for more details." >&2;}
2750
{ (exit 1); exit 1; }; }
2753
rm -f conftest$ac_cv_exeext
2754
{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2755
echo "${ECHO_T}$ac_cv_exeext" >&6; }
2757
rm -f conftest.$ac_ext
2758
EXEEXT=$ac_cv_exeext
2760
{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2761
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2762
if test "${ac_cv_objext+set}" = set; then
2763
echo $ECHO_N "(cached) $ECHO_C" >&6
2765
cat >conftest.$ac_ext <<_ACEOF
2768
cat confdefs.h >>conftest.$ac_ext
2769
cat >>conftest.$ac_ext <<_ACEOF
2770
/* end confdefs.h. */
2780
rm -f conftest.o conftest.obj
2781
if { (ac_try="$ac_compile"
2783
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2784
*) ac_try_echo=$ac_try;;
2786
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2787
(eval "$ac_compile") 2>&5
2789
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2790
(exit $ac_status); }; then
2791
for ac_file in conftest.o conftest.obj conftest.*; do
2792
test -f "$ac_file" || continue;
2794
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2795
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2800
echo "$as_me: failed program was:" >&5
2801
sed 's/^/| /' conftest.$ac_ext >&5
2803
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2804
See \`config.log' for more details." >&5
2805
echo "$as_me: error: cannot compute suffix of object files: cannot compile
2806
See \`config.log' for more details." >&2;}
2807
{ (exit 1); exit 1; }; }
2810
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2812
{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2813
echo "${ECHO_T}$ac_cv_objext" >&6; }
2814
OBJEXT=$ac_cv_objext
2816
{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2817
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2818
if test "${ac_cv_c_compiler_gnu+set}" = set; then
2819
echo $ECHO_N "(cached) $ECHO_C" >&6
2821
cat >conftest.$ac_ext <<_ACEOF
2824
cat confdefs.h >>conftest.$ac_ext
2825
cat >>conftest.$ac_ext <<_ACEOF
2826
/* end confdefs.h. */
2839
rm -f conftest.$ac_objext
2840
if { (ac_try="$ac_compile"
2842
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2843
*) ac_try_echo=$ac_try;;
2845
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2846
(eval "$ac_compile") 2>conftest.er1
2848
grep -v '^ *+' conftest.er1 >conftest.err
2850
cat conftest.err >&5
2851
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2852
(exit $ac_status); } && {
2853
test -z "$ac_c_werror_flag" ||
2854
test ! -s conftest.err
2855
} && test -s conftest.$ac_objext; then
2858
echo "$as_me: failed program was:" >&5
2859
sed 's/^/| /' conftest.$ac_ext >&5
2864
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2865
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2868
{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2869
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2870
GCC=`test $ac_compiler_gnu = yes && echo yes`
2871
ac_test_CFLAGS=${CFLAGS+set}
2872
ac_save_CFLAGS=$CFLAGS
2873
{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2874
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2875
if test "${ac_cv_prog_cc_g+set}" = set; then
2876
echo $ECHO_N "(cached) $ECHO_C" >&6
2878
ac_save_c_werror_flag=$ac_c_werror_flag
2879
ac_c_werror_flag=yes
2882
cat >conftest.$ac_ext <<_ACEOF
2885
cat confdefs.h >>conftest.$ac_ext
2886
cat >>conftest.$ac_ext <<_ACEOF
2887
/* end confdefs.h. */
2897
rm -f conftest.$ac_objext
2898
if { (ac_try="$ac_compile"
2900
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2901
*) ac_try_echo=$ac_try;;
2903
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2904
(eval "$ac_compile") 2>conftest.er1
2906
grep -v '^ *+' conftest.er1 >conftest.err
2908
cat conftest.err >&5
2909
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910
(exit $ac_status); } && {
2911
test -z "$ac_c_werror_flag" ||
2912
test ! -s conftest.err
2913
} && test -s conftest.$ac_objext; then
2916
echo "$as_me: failed program was:" >&5
2917
sed 's/^/| /' conftest.$ac_ext >&5
2920
cat >conftest.$ac_ext <<_ACEOF
2923
cat confdefs.h >>conftest.$ac_ext
2924
cat >>conftest.$ac_ext <<_ACEOF
2925
/* end confdefs.h. */
2935
rm -f conftest.$ac_objext
2936
if { (ac_try="$ac_compile"
2938
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2939
*) ac_try_echo=$ac_try;;
2941
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2942
(eval "$ac_compile") 2>conftest.er1
2944
grep -v '^ *+' conftest.er1 >conftest.err
2946
cat conftest.err >&5
2947
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948
(exit $ac_status); } && {
2949
test -z "$ac_c_werror_flag" ||
2950
test ! -s conftest.err
2951
} && test -s conftest.$ac_objext; then
2954
echo "$as_me: failed program was:" >&5
2955
sed 's/^/| /' conftest.$ac_ext >&5
2957
ac_c_werror_flag=$ac_save_c_werror_flag
2959
cat >conftest.$ac_ext <<_ACEOF
2962
cat confdefs.h >>conftest.$ac_ext
2963
cat >>conftest.$ac_ext <<_ACEOF
2964
/* end confdefs.h. */
2974
rm -f conftest.$ac_objext
2975
if { (ac_try="$ac_compile"
2977
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2978
*) ac_try_echo=$ac_try;;
2980
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2981
(eval "$ac_compile") 2>conftest.er1
2983
grep -v '^ *+' conftest.er1 >conftest.err
2985
cat conftest.err >&5
2986
echo "$as_me:$LINENO: \$? = $ac_status" >&5
2987
(exit $ac_status); } && {
2988
test -z "$ac_c_werror_flag" ||
2989
test ! -s conftest.err
2990
} && test -s conftest.$ac_objext; then
2993
echo "$as_me: failed program was:" >&5
2994
sed 's/^/| /' conftest.$ac_ext >&5
2999
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3002
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3005
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3006
ac_c_werror_flag=$ac_save_c_werror_flag
3008
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3009
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3010
if test "$ac_test_CFLAGS" = set; then
3011
CFLAGS=$ac_save_CFLAGS
3012
elif test $ac_cv_prog_cc_g = yes; then
3013
if test "$GCC" = yes; then
3019
if test "$GCC" = yes; then
3025
{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3026
echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3027
if test "${ac_cv_prog_cc_c89+set}" = set; then
3028
echo $ECHO_N "(cached) $ECHO_C" >&6
3030
ac_cv_prog_cc_c89=no
3032
cat >conftest.$ac_ext <<_ACEOF
3035
cat confdefs.h >>conftest.$ac_ext
3036
cat >>conftest.$ac_ext <<_ACEOF
3037
/* end confdefs.h. */
3040
#include <sys/types.h>
3041
#include <sys/stat.h>
3042
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3043
struct buf { int x; };
3044
FILE * (*rcsopen) (struct buf *, struct stat *, int);
3045
static char *e (p, i)
3051
static char *f (char * (*g) (char **, int), char **p, ...)
3056
s = g (p, va_arg (v,int));
3061
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3062
function prototypes and stuff, but not '\xHH' hex character constants.
3063
These don't provoke an error unfortunately, instead are silently treated
3064
as 'x'. The following induces an error, until -std is added to get
3065
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3066
array size at least. It's necessary to write '\x00'==0 to get something
3067
that's true only with -std. */
3068
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3070
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3071
inside strings and character constants. */
3073
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3075
int test (int i, double x);
3076
struct s1 {int (*f) (int a);};
3077
struct s2 {int (*f) (double a);};
3078
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3084
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3089
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3090
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3092
CC="$ac_save_CC $ac_arg"
3093
rm -f conftest.$ac_objext
3094
if { (ac_try="$ac_compile"
3096
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097
*) ac_try_echo=$ac_try;;
3099
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3100
(eval "$ac_compile") 2>conftest.er1
3102
grep -v '^ *+' conftest.er1 >conftest.err
3104
cat conftest.err >&5
3105
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3106
(exit $ac_status); } && {
3107
test -z "$ac_c_werror_flag" ||
3108
test ! -s conftest.err
3109
} && test -s conftest.$ac_objext; then
3110
ac_cv_prog_cc_c89=$ac_arg
3112
echo "$as_me: failed program was:" >&5
3113
sed 's/^/| /' conftest.$ac_ext >&5
3118
rm -f core conftest.err conftest.$ac_objext
3119
test "x$ac_cv_prog_cc_c89" != "xno" && break
3121
rm -f conftest.$ac_ext
3126
case "x$ac_cv_prog_cc_c89" in
3128
{ echo "$as_me:$LINENO: result: none needed" >&5
3129
echo "${ECHO_T}none needed" >&6; } ;;
3131
{ echo "$as_me:$LINENO: result: unsupported" >&5
3132
echo "${ECHO_T}unsupported" >&6; } ;;
3134
CC="$CC $ac_cv_prog_cc_c89"
3135
{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3136
echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3141
ac_cpp='$CPP $CPPFLAGS'
3142
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3143
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3144
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3145
DEPDIR="${am__leading_dot}deps"
3147
ac_config_commands="$ac_config_commands depfiles"
3150
am_make=${MAKE-make}
3151
cat > confinc << 'END'
3156
# If we don't find an include directive, just comment out the code.
3157
{ echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3158
echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3162
# First try GNU make style include.
3163
echo "include confinc" > confmf
3164
# We grep out `Entering directory' and `Leaving directory'
3165
# messages which can occur if `w' ends up in MAKEFLAGS.
3166
# In particular we don't look at `^make:' because GNU make might
3167
# be invoked under some other name (usually "gmake"), in which
3168
# case it prints its new name instead of `make'.
3169
if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3174
# Now try BSD make style include.
3175
if test "$am__include" = "#"; then
3176
echo '.include "confinc"' > confmf
3177
if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3178
am__include=.include
3185
{ echo "$as_me:$LINENO: result: $_am_result" >&5
3186
echo "${ECHO_T}$_am_result" >&6; }
3187
rm -f confinc confmf
3189
# Check whether --enable-dependency-tracking was given.
3190
if test "${enable_dependency_tracking+set}" = set; then
3191
enableval=$enable_dependency_tracking;
3194
if test "x$enable_dependency_tracking" != xno; then
3195
am_depcomp="$ac_aux_dir/depcomp"
3198
if test "x$enable_dependency_tracking" != xno; then
3208
depcc="$CC" am_compiler_list=
3210
{ echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3211
echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3212
if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3213
echo $ECHO_N "(cached) $ECHO_C" >&6
3215
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3216
# We make a subdir and do the tests there. Otherwise we can end up
3217
# making bogus files that we don't know about and never remove. For
3218
# instance it was reported that on HP-UX the gcc test will end up
3219
# making a dummy file named `D' -- because `-MD' means `put the output
3222
# Copy depcomp to subdir because otherwise we won't find it if we're
3223
# using a relative directory.
3224
cp "$am_depcomp" conftest.dir
3226
# We will build objects and dependencies in a subdirectory because
3227
# it helps to detect inapplicable dependency modes. For instance
3228
# both Tru64's cc and ICC support -MD to output dependencies as a
3229
# side effect of compilation, but ICC will put the dependencies in
3230
# the current directory while Tru64 will put them in the object
3234
am_cv_CC_dependencies_compiler_type=none
3235
if test "$am_compiler_list" = ""; then
3236
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3238
for depmode in $am_compiler_list; do
3239
# Setup a source with many dependencies, because some compilers
3240
# like to wrap large dependency lists on column 80 (with \), and
3241
# we should not choose a depcomp mode which is confused by this.
3243
# We need to recreate these files for each test, as the compiler may
3244
# overwrite some of them when testing with obscure command lines.
3245
# This happens at least with the AIX C compiler.
3247
for i in 1 2 3 4 5 6; do
3248
echo '#include "conftst'$i'.h"' >> sub/conftest.c
3249
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3250
# Solaris 8's {/usr,}/bin/sh.
3251
touch sub/conftst$i.h
3253
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3257
# after this tag, mechanisms are not by side-effect, so they'll
3258
# only be used when explicitly requested
3259
if test "x$enable_dependency_tracking" = xyes; then
3267
# We check with `-c' and `-o' for the sake of the "dashmstdout"
3268
# mode. It turns out that the SunPro C++ compiler does not properly
3269
# handle `-M -o', and we need to detect this.
3270
if depmode=$depmode \
3271
source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3272
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3273
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3274
>/dev/null 2>conftest.err &&
3275
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3276
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3277
grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3278
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3279
# icc doesn't choke on unknown options, it will just issue warnings
3280
# or remarks (even with -Werror). So we grep stderr for any message
3281
# that says an option was ignored or not supported.
3282
# When given -MP, icc 7.0 and 7.1 complain thusly:
3283
# icc: Command line warning: ignoring option '-M'; no argument required
3284
# The diagnosis changed in icc 8.0:
3285
# icc: Command line remark: option '-MP' not supported
3286
if (grep 'ignoring option' conftest.err ||
3287
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3288
am_cv_CC_dependencies_compiler_type=$depmode
3297
am_cv_CC_dependencies_compiler_type=none
3301
{ echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3302
echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3303
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3306
test "x$enable_dependency_tracking" != xno \
3307
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3309
am__fastdepCC_FALSE='#'
3311
am__fastdepCC_TRUE='#'
3312
am__fastdepCC_FALSE=
3316
if test "x$CC" != xcc; then
3317
{ echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
3318
echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; }
3320
{ echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
3321
echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; }
3323
set dummy $CC; ac_cc=`echo $2 |
3324
sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3325
if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
3326
echo $ECHO_N "(cached) $ECHO_C" >&6
3328
cat >conftest.$ac_ext <<_ACEOF
3331
cat confdefs.h >>conftest.$ac_ext
3332
cat >>conftest.$ac_ext <<_ACEOF
3333
/* end confdefs.h. */
3343
# Make sure it works both with $CC and with simple cc.
3344
# We do the test twice because some compilers refuse to overwrite an
3345
# existing .o file with -o, though they will create one.
3346
ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3348
if { (case "(($ac_try" in
3349
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3350
*) ac_try_echo=$ac_try;;
3352
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3353
(eval "$ac_try") 2>&5
3355
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3356
(exit $ac_status); } &&
3357
test -f conftest2.$ac_objext && { (case "(($ac_try" in
3358
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3359
*) ac_try_echo=$ac_try;;
3361
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3362
(eval "$ac_try") 2>&5
3364
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3365
(exit $ac_status); };
3367
eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3368
if test "x$CC" != xcc; then
3369
# Test first that cc exists at all.
3370
if { ac_try='cc -c conftest.$ac_ext >&5'
3371
{ (case "(($ac_try" in
3372
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3373
*) ac_try_echo=$ac_try;;
3375
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3376
(eval "$ac_try") 2>&5
3378
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379
(exit $ac_status); }; }; then
3380
ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3382
if { (case "(($ac_try" in
3383
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3384
*) ac_try_echo=$ac_try;;
3386
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3387
(eval "$ac_try") 2>&5
3389
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390
(exit $ac_status); } &&
3391
test -f conftest2.$ac_objext && { (case "(($ac_try" in
3392
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3393
*) ac_try_echo=$ac_try;;
3395
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3396
(eval "$ac_try") 2>&5
3398
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399
(exit $ac_status); };
3404
# cc exists but doesn't like -o.
3405
eval ac_cv_prog_cc_${ac_cc}_c_o=no
3410
eval ac_cv_prog_cc_${ac_cc}_c_o=no
3412
rm -f core conftest*
3415
if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3416
{ echo "$as_me:$LINENO: result: yes" >&5
3417
echo "${ECHO_T}yes" >&6; }
3419
{ echo "$as_me:$LINENO: result: no" >&5
3420
echo "${ECHO_T}no" >&6; }
3422
cat >>confdefs.h <<\_ACEOF
3423
#define NO_MINUS_C_MINUS_O 1
3428
# FIXME: we rely on the cache variable name because
3429
# there is no other way.
3431
ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3432
if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then
3433
# Losing compiler, so override with the script.
3434
# FIXME: It is wrong to rewrite CC.
3435
# But if we don't then we get into trouble of one sort or another.
3436
# A longer-term fix would be to have automake use am__CC in this case,
3437
# and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3438
CC="$am_aux_dir/compile $CC"
3442
# Find a good install program. We prefer a C program (faster),
3443
# so one script is as good as another. But avoid the broken or
3444
# incompatible versions:
3445
# SysV /etc/install, /usr/sbin/install
3446
# SunOS /usr/etc/install
3447
# IRIX /sbin/install
3449
# AmigaOS /C/install, which installs bootblocks on floppy discs
3450
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3451
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3452
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3453
# OS/2's system install, which has a completely different semantic
3454
# ./install, which can be erroneously created by make from ./install.sh.
3455
{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3456
echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3457
if test -z "$INSTALL"; then
3458
if test "${ac_cv_path_install+set}" = set; then
3459
echo $ECHO_N "(cached) $ECHO_C" >&6
3461
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3465
test -z "$as_dir" && as_dir=.
3466
# Account for people who put trailing slashes in PATH elements.
3468
./ | .// | /cC/* | \
3469
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3470
?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3473
# OSF1 and SCO ODT 3.0 have their own names for install.
3474
# Don't use installbsd from OSF since it installs stuff as root
3476
for ac_prog in ginstall scoinst install; do
3477
for ac_exec_ext in '' $ac_executable_extensions; do
3478
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3479
if test $ac_prog = install &&
3480
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3481
# AIX install. It has an incompatible calling convention.
3483
elif test $ac_prog = install &&
3484
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3485
# program-specific install script used by HP pwplus--don't use.
3488
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3501
if test "${ac_cv_path_install+set}" = set; then
3502
INSTALL=$ac_cv_path_install
3504
# As a last resort, use the slow shell script. Don't cache a
3505
# value for INSTALL within a source directory, because that will
3506
# break other packages using the cache if that directory is
3507
# removed, or if the value is a relative name.
3508
INSTALL=$ac_install_sh
3511
{ echo "$as_me:$LINENO: result: $INSTALL" >&5
3512
echo "${ECHO_T}$INSTALL" >&6; }
3514
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3515
# It thinks the first close brace ends the variable substitution.
3516
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3518
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3520
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3523
# Checks for libraries.
3526
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3527
if test -n "$ac_tool_prefix"; then
3528
# Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3529
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3530
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3531
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3532
if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
3533
echo $ECHO_N "(cached) $ECHO_C" >&6
3537
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3540
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3544
test -z "$as_dir" && as_dir=.
3545
for ac_exec_ext in '' $ac_executable_extensions; do
3546
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3547
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3548
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3558
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3559
if test -n "$PKG_CONFIG"; then
3560
{ echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
3561
echo "${ECHO_T}$PKG_CONFIG" >&6; }
3563
{ echo "$as_me:$LINENO: result: no" >&5
3564
echo "${ECHO_T}no" >&6; }
3569
if test -z "$ac_cv_path_PKG_CONFIG"; then
3570
ac_pt_PKG_CONFIG=$PKG_CONFIG
3571
# Extract the first word of "pkg-config", so it can be a program name with args.
3572
set dummy pkg-config; ac_word=$2
3573
{ echo "$as_me:$LINENO: checking for $ac_word" >&5
3574
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3575
if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
3576
echo $ECHO_N "(cached) $ECHO_C" >&6
3578
case $ac_pt_PKG_CONFIG in
3580
ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3583
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3587
test -z "$as_dir" && as_dir=.
3588
for ac_exec_ext in '' $ac_executable_extensions; do
3589
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3590
ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3591
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3601
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3602
if test -n "$ac_pt_PKG_CONFIG"; then
3603
{ echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
3604
echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
3606
{ echo "$as_me:$LINENO: result: no" >&5
3607
echo "${ECHO_T}no" >&6; }
3610
if test "x$ac_pt_PKG_CONFIG" = x; then
3613
case $cross_compiling:$ac_tool_warned in
3615
{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3616
whose name does not start with the host triplet. If you think this
3617
configuration is useful to you, please write to autoconf@gnu.org." >&5
3618
echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3619
whose name does not start with the host triplet. If you think this
3620
configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3621
ac_tool_warned=yes ;;
3623
PKG_CONFIG=$ac_pt_PKG_CONFIG
3626
PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3630
if test -n "$PKG_CONFIG"; then
3631
_pkg_min_version=0.9.0
3632
{ echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
3633
echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
3634
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3635
{ echo "$as_me:$LINENO: result: yes" >&5
3636
echo "${ECHO_T}yes" >&6; }
3638
{ echo "$as_me:$LINENO: result: no" >&5
3639
echo "${ECHO_T}no" >&6; }
3646
{ echo "$as_me:$LINENO: checking for LIBUSB" >&5
3647
echo $ECHO_N "checking for LIBUSB... $ECHO_C" >&6; }
3649
if test -n "$PKG_CONFIG"; then
3650
if test -n "$LIBUSB_CFLAGS"; then
3651
pkg_cv_LIBUSB_CFLAGS="$LIBUSB_CFLAGS"
3653
if test -n "$PKG_CONFIG" && \
3654
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libusb\"") >&5
3655
($PKG_CONFIG --exists --print-errors "libusb") 2>&5
3657
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658
(exit $ac_status); }; then
3659
pkg_cv_LIBUSB_CFLAGS=`$PKG_CONFIG --cflags "libusb" 2>/dev/null`
3667
if test -n "$PKG_CONFIG"; then
3668
if test -n "$LIBUSB_LIBS"; then
3669
pkg_cv_LIBUSB_LIBS="$LIBUSB_LIBS"
3671
if test -n "$PKG_CONFIG" && \
3672
{ (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libusb\"") >&5
3673
($PKG_CONFIG --exists --print-errors "libusb") 2>&5
3675
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676
(exit $ac_status); }; then
3677
pkg_cv_LIBUSB_LIBS=`$PKG_CONFIG --libs "libusb" 2>/dev/null`
3688
if test $pkg_failed = yes; then
3690
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
3691
_pkg_short_errors_supported=yes
3693
_pkg_short_errors_supported=no
3695
if test $_pkg_short_errors_supported = yes; then
3696
LIBUSB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libusb"`
3698
LIBUSB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libusb"`
3700
# Put the nasty error message in config.log where it belongs
3701
echo "$LIBUSB_PKG_ERRORS" >&5
3703
{ echo "$as_me:$LINENO: result: no" >&5
3704
echo "${ECHO_T}no" >&6; }
3706
elif test $pkg_failed = untried; then
3709
LIBUSB_CFLAGS=$pkg_cv_LIBUSB_CFLAGS
3710
LIBUSB_LIBS=$pkg_cv_LIBUSB_LIBS
3711
{ echo "$as_me:$LINENO: result: yes" >&5
3712
echo "${ECHO_T}yes" >&6; }
3717
if test x$LIBUSB_MSG = xyes; then
3719
HAVE_LIBUSB_FALSE='#'
3721
HAVE_LIBUSB_TRUE='#'
3726
# Checks for header files.
3729
ac_cpp='$CPP $CPPFLAGS'
3730
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3731
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3732
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3733
{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3734
echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3735
# On Suns, sometimes $CPP names a directory.
3736
if test -n "$CPP" && test -d "$CPP"; then
3739
if test -z "$CPP"; then
3740
if test "${ac_cv_prog_CPP+set}" = set; then
3741
echo $ECHO_N "(cached) $ECHO_C" >&6
3743
# Double quotes because CPP needs to be expanded
3744
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3747
for ac_c_preproc_warn_flag in '' yes
3749
# Use a header file that comes with gcc, so configuring glibc
3750
# with a fresh cross-compiler works.
3751
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3752
# <limits.h> exists even on freestanding compilers.
3753
# On the NeXT, cc -E runs the code through the compiler's parser,
3754
# not just through cpp. "Syntax error" is here to catch this case.
3755
cat >conftest.$ac_ext <<_ACEOF
3758
cat confdefs.h >>conftest.$ac_ext
3759
cat >>conftest.$ac_ext <<_ACEOF
3760
/* end confdefs.h. */
3762
# include <limits.h>
3764
# include <assert.h>
3768
if { (ac_try="$ac_cpp conftest.$ac_ext"
3770
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3771
*) ac_try_echo=$ac_try;;
3773
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3774
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3776
grep -v '^ *+' conftest.er1 >conftest.err
3778
cat conftest.err >&5
3779
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780
(exit $ac_status); } >/dev/null && {
3781
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3782
test ! -s conftest.err
3786
echo "$as_me: failed program was:" >&5
3787
sed 's/^/| /' conftest.$ac_ext >&5
3789
# Broken: fails on valid input.
3793
rm -f conftest.err conftest.$ac_ext
3795
# OK, works on sane cases. Now check whether nonexistent headers
3796
# can be detected and how.
3797
cat >conftest.$ac_ext <<_ACEOF
3800
cat confdefs.h >>conftest.$ac_ext
3801
cat >>conftest.$ac_ext <<_ACEOF
3802
/* end confdefs.h. */
3803
#include <ac_nonexistent.h>
3805
if { (ac_try="$ac_cpp conftest.$ac_ext"
3807
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3808
*) ac_try_echo=$ac_try;;
3810
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3811
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3813
grep -v '^ *+' conftest.er1 >conftest.err
3815
cat conftest.err >&5
3816
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3817
(exit $ac_status); } >/dev/null && {
3818
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3819
test ! -s conftest.err
3821
# Broken: success on invalid input.
3824
echo "$as_me: failed program was:" >&5
3825
sed 's/^/| /' conftest.$ac_ext >&5
3827
# Passes both tests.
3832
rm -f conftest.err conftest.$ac_ext
3835
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3836
rm -f conftest.err conftest.$ac_ext
3837
if $ac_preproc_ok; then
3849
{ echo "$as_me:$LINENO: result: $CPP" >&5
3850
echo "${ECHO_T}$CPP" >&6; }
3852
for ac_c_preproc_warn_flag in '' yes
3854
# Use a header file that comes with gcc, so configuring glibc
3855
# with a fresh cross-compiler works.
3856
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3857
# <limits.h> exists even on freestanding compilers.
3858
# On the NeXT, cc -E runs the code through the compiler's parser,
3859
# not just through cpp. "Syntax error" is here to catch this case.
3860
cat >conftest.$ac_ext <<_ACEOF
3863
cat confdefs.h >>conftest.$ac_ext
3864
cat >>conftest.$ac_ext <<_ACEOF
3865
/* end confdefs.h. */
3867
# include <limits.h>
3869
# include <assert.h>
3873
if { (ac_try="$ac_cpp conftest.$ac_ext"
3875
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3876
*) ac_try_echo=$ac_try;;
3878
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3879
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3881
grep -v '^ *+' conftest.er1 >conftest.err
3883
cat conftest.err >&5
3884
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885
(exit $ac_status); } >/dev/null && {
3886
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3887
test ! -s conftest.err
3891
echo "$as_me: failed program was:" >&5
3892
sed 's/^/| /' conftest.$ac_ext >&5
3894
# Broken: fails on valid input.
3898
rm -f conftest.err conftest.$ac_ext
3900
# OK, works on sane cases. Now check whether nonexistent headers
3901
# can be detected and how.
3902
cat >conftest.$ac_ext <<_ACEOF
3905
cat confdefs.h >>conftest.$ac_ext
3906
cat >>conftest.$ac_ext <<_ACEOF
3907
/* end confdefs.h. */
3908
#include <ac_nonexistent.h>
3910
if { (ac_try="$ac_cpp conftest.$ac_ext"
3912
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3913
*) ac_try_echo=$ac_try;;
3915
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3916
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3918
grep -v '^ *+' conftest.er1 >conftest.err
3920
cat conftest.err >&5
3921
echo "$as_me:$LINENO: \$? = $ac_status" >&5
3922
(exit $ac_status); } >/dev/null && {
3923
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3924
test ! -s conftest.err
3926
# Broken: success on invalid input.
3929
echo "$as_me: failed program was:" >&5
3930
sed 's/^/| /' conftest.$ac_ext >&5
3932
# Passes both tests.
3937
rm -f conftest.err conftest.$ac_ext
3940
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3941
rm -f conftest.err conftest.$ac_ext
3942
if $ac_preproc_ok; then
3945
{ { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3946
See \`config.log' for more details." >&5
3947
echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3948
See \`config.log' for more details." >&2;}
3949
{ (exit 1); exit 1; }; }
3953
ac_cpp='$CPP $CPPFLAGS'
3954
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3955
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3956
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3959
{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3960
echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3961
if test "${ac_cv_path_GREP+set}" = set; then
3962
echo $ECHO_N "(cached) $ECHO_C" >&6
3964
# Extract the first word of "grep ggrep" to use in msg output
3965
if test -z "$GREP"; then
3966
set dummy grep ggrep; ac_prog_name=$2
3967
if test "${ac_cv_path_GREP+set}" = set; then
3968
echo $ECHO_N "(cached) $ECHO_C" >&6
3970
ac_path_GREP_found=false
3971
# Loop through the user's path and test for each of PROGNAME-LIST
3972
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3973
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3976
test -z "$as_dir" && as_dir=.
3977
for ac_prog in grep ggrep; do
3978
for ac_exec_ext in '' $ac_executable_extensions; do
3979
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3980
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3981
# Check for GNU ac_path_GREP and select it if it is found.
3982
# Check for GNU $ac_path_GREP
3983
case `"$ac_path_GREP" --version 2>&1` in
3985
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3988
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3991
cat "conftest.in" "conftest.in" >"conftest.tmp"
3992
mv "conftest.tmp" "conftest.in"
3993
cp "conftest.in" "conftest.nl"
3994
echo 'GREP' >> "conftest.nl"
3995
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3996
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3997
ac_count=`expr $ac_count + 1`
3998
if test $ac_count -gt ${ac_path_GREP_max-0}; then
3999
# Best one so far, save it but keep looking for a better one
4000
ac_cv_path_GREP="$ac_path_GREP"
4001
ac_path_GREP_max=$ac_count
4003
# 10*(2^10) chars as input seems more than enough
4004
test $ac_count -gt 10 && break
4006
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4010
$ac_path_GREP_found && break 3
4020
GREP="$ac_cv_path_GREP"
4021
if test -z "$GREP"; then
4022
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4023
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4024
{ (exit 1); exit 1; }; }
4028
ac_cv_path_GREP=$GREP
4033
{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4034
echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4035
GREP="$ac_cv_path_GREP"
4038
{ echo "$as_me:$LINENO: checking for egrep" >&5
4039
echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4040
if test "${ac_cv_path_EGREP+set}" = set; then
4041
echo $ECHO_N "(cached) $ECHO_C" >&6
4043
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4044
then ac_cv_path_EGREP="$GREP -E"
4046
# Extract the first word of "egrep" to use in msg output
4047
if test -z "$EGREP"; then
4048
set dummy egrep; ac_prog_name=$2
4049
if test "${ac_cv_path_EGREP+set}" = set; then
4050
echo $ECHO_N "(cached) $ECHO_C" >&6
4052
ac_path_EGREP_found=false
4053
# Loop through the user's path and test for each of PROGNAME-LIST
4054
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4055
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4058
test -z "$as_dir" && as_dir=.
4059
for ac_prog in egrep; do
4060
for ac_exec_ext in '' $ac_executable_extensions; do
4061
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4062
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4063
# Check for GNU ac_path_EGREP and select it if it is found.
4064
# Check for GNU $ac_path_EGREP
4065
case `"$ac_path_EGREP" --version 2>&1` in
4067
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4070
echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4073
cat "conftest.in" "conftest.in" >"conftest.tmp"
4074
mv "conftest.tmp" "conftest.in"
4075
cp "conftest.in" "conftest.nl"
4076
echo 'EGREP' >> "conftest.nl"
4077
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4078
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4079
ac_count=`expr $ac_count + 1`
4080
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4081
# Best one so far, save it but keep looking for a better one
4082
ac_cv_path_EGREP="$ac_path_EGREP"
4083
ac_path_EGREP_max=$ac_count
4085
# 10*(2^10) chars as input seems more than enough
4086
test $ac_count -gt 10 && break
4088
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4092
$ac_path_EGREP_found && break 3
4102
EGREP="$ac_cv_path_EGREP"
4103
if test -z "$EGREP"; then
4104
{ { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4105
echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4106
{ (exit 1); exit 1; }; }
4110
ac_cv_path_EGREP=$EGREP
4116
{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4117
echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4118
EGREP="$ac_cv_path_EGREP"
4121
{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4122
echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4123
if test "${ac_cv_header_stdc+set}" = set; then
4124
echo $ECHO_N "(cached) $ECHO_C" >&6
4126
cat >conftest.$ac_ext <<_ACEOF
4129
cat confdefs.h >>conftest.$ac_ext
4130
cat >>conftest.$ac_ext <<_ACEOF
4131
/* end confdefs.h. */
4145
rm -f conftest.$ac_objext
4146
if { (ac_try="$ac_compile"
4148
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4149
*) ac_try_echo=$ac_try;;
4151
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4152
(eval "$ac_compile") 2>conftest.er1
4154
grep -v '^ *+' conftest.er1 >conftest.err
4156
cat conftest.err >&5
4157
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4158
(exit $ac_status); } && {
4159
test -z "$ac_c_werror_flag" ||
4160
test ! -s conftest.err
4161
} && test -s conftest.$ac_objext; then
4162
ac_cv_header_stdc=yes
4164
echo "$as_me: failed program was:" >&5
4165
sed 's/^/| /' conftest.$ac_ext >&5
4167
ac_cv_header_stdc=no
4170
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4172
if test $ac_cv_header_stdc = yes; then
4173
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4174
cat >conftest.$ac_ext <<_ACEOF
4177
cat confdefs.h >>conftest.$ac_ext
4178
cat >>conftest.$ac_ext <<_ACEOF
4179
/* end confdefs.h. */
4183
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4184
$EGREP "memchr" >/dev/null 2>&1; then
4187
ac_cv_header_stdc=no
4193
if test $ac_cv_header_stdc = yes; then
4194
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4195
cat >conftest.$ac_ext <<_ACEOF
4198
cat confdefs.h >>conftest.$ac_ext
4199
cat >>conftest.$ac_ext <<_ACEOF
4200
/* end confdefs.h. */
4204
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4205
$EGREP "free" >/dev/null 2>&1; then
4208
ac_cv_header_stdc=no
4214
if test $ac_cv_header_stdc = yes; then
4215
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4216
if test "$cross_compiling" = yes; then
4219
cat >conftest.$ac_ext <<_ACEOF
4222
cat confdefs.h >>conftest.$ac_ext
4223
cat >>conftest.$ac_ext <<_ACEOF
4224
/* end confdefs.h. */
4227
#if ((' ' & 0x0FF) == 0x020)
4228
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4229
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4231
# define ISLOWER(c) \
4232
(('a' <= (c) && (c) <= 'i') \
4233
|| ('j' <= (c) && (c) <= 'r') \
4234
|| ('s' <= (c) && (c) <= 'z'))
4235
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4238
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4243
for (i = 0; i < 256; i++)
4244
if (XOR (islower (i), ISLOWER (i))
4245
|| toupper (i) != TOUPPER (i))
4250
rm -f conftest$ac_exeext
4251
if { (ac_try="$ac_link"
4253
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4254
*) ac_try_echo=$ac_try;;
4256
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4257
(eval "$ac_link") 2>&5
4259
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4261
{ (case "(($ac_try" in
4262
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4263
*) ac_try_echo=$ac_try;;
4265
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4266
(eval "$ac_try") 2>&5
4268
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269
(exit $ac_status); }; }; then
4272
echo "$as_me: program exited with status $ac_status" >&5
4273
echo "$as_me: failed program was:" >&5
4274
sed 's/^/| /' conftest.$ac_ext >&5
4277
ac_cv_header_stdc=no
4279
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4285
{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4286
echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4287
if test $ac_cv_header_stdc = yes; then
4289
cat >>confdefs.h <<\_ACEOF
4290
#define STDC_HEADERS 1
4295
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4305
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4306
inttypes.h stdint.h unistd.h
4308
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4309
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4310
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4311
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4312
echo $ECHO_N "(cached) $ECHO_C" >&6
4314
cat >conftest.$ac_ext <<_ACEOF
4317
cat confdefs.h >>conftest.$ac_ext
4318
cat >>conftest.$ac_ext <<_ACEOF
4319
/* end confdefs.h. */
4320
$ac_includes_default
4322
#include <$ac_header>
4324
rm -f conftest.$ac_objext
4325
if { (ac_try="$ac_compile"
4327
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4328
*) ac_try_echo=$ac_try;;
4330
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4331
(eval "$ac_compile") 2>conftest.er1
4333
grep -v '^ *+' conftest.er1 >conftest.err
4335
cat conftest.err >&5
4336
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337
(exit $ac_status); } && {
4338
test -z "$ac_c_werror_flag" ||
4339
test ! -s conftest.err
4340
} && test -s conftest.$ac_objext; then
4341
eval "$as_ac_Header=yes"
4343
echo "$as_me: failed program was:" >&5
4344
sed 's/^/| /' conftest.$ac_ext >&5
4346
eval "$as_ac_Header=no"
4349
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4351
ac_res=`eval echo '${'$as_ac_Header'}'`
4352
{ echo "$as_me:$LINENO: result: $ac_res" >&5
4353
echo "${ECHO_T}$ac_res" >&6; }
4354
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4355
cat >>confdefs.h <<_ACEOF
4356
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4372
for ac_header in arpa/inet.h fcntl.h stdint.h stdlib.h string.h sys/ioctl.h termios.h unistd.h
4374
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4375
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4376
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4377
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4378
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4379
echo $ECHO_N "(cached) $ECHO_C" >&6
4381
ac_res=`eval echo '${'$as_ac_Header'}'`
4382
{ echo "$as_me:$LINENO: result: $ac_res" >&5
4383
echo "${ECHO_T}$ac_res" >&6; }
4385
# Is the header compilable?
4386
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
4387
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
4388
cat >conftest.$ac_ext <<_ACEOF
4391
cat confdefs.h >>conftest.$ac_ext
4392
cat >>conftest.$ac_ext <<_ACEOF
4393
/* end confdefs.h. */
4394
$ac_includes_default
4395
#include <$ac_header>
4397
rm -f conftest.$ac_objext
4398
if { (ac_try="$ac_compile"
4400
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4401
*) ac_try_echo=$ac_try;;
4403
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4404
(eval "$ac_compile") 2>conftest.er1
4406
grep -v '^ *+' conftest.er1 >conftest.err
4408
cat conftest.err >&5
4409
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4410
(exit $ac_status); } && {
4411
test -z "$ac_c_werror_flag" ||
4412
test ! -s conftest.err
4413
} && test -s conftest.$ac_objext; then
4414
ac_header_compiler=yes
4416
echo "$as_me: failed program was:" >&5
4417
sed 's/^/| /' conftest.$ac_ext >&5
4419
ac_header_compiler=no
4422
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4423
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4424
echo "${ECHO_T}$ac_header_compiler" >&6; }
4426
# Is the header present?
4427
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
4428
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
4429
cat >conftest.$ac_ext <<_ACEOF
4432
cat confdefs.h >>conftest.$ac_ext
4433
cat >>conftest.$ac_ext <<_ACEOF
4434
/* end confdefs.h. */
4435
#include <$ac_header>
4437
if { (ac_try="$ac_cpp conftest.$ac_ext"
4439
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4440
*) ac_try_echo=$ac_try;;
4442
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4443
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4445
grep -v '^ *+' conftest.er1 >conftest.err
4447
cat conftest.err >&5
4448
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449
(exit $ac_status); } >/dev/null && {
4450
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4451
test ! -s conftest.err
4453
ac_header_preproc=yes
4455
echo "$as_me: failed program was:" >&5
4456
sed 's/^/| /' conftest.$ac_ext >&5
4458
ac_header_preproc=no
4461
rm -f conftest.err conftest.$ac_ext
4462
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4463
echo "${ECHO_T}$ac_header_preproc" >&6; }
4465
# So? What about this header?
4466
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4468
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4469
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4470
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4471
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4472
ac_header_preproc=yes
4475
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4476
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4477
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4478
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4479
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4480
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4481
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4482
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4483
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4484
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4485
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4486
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4488
## --------------------------------------------- ##
4489
## Report this to daviedev@users.sourceforge.net ##
4490
## --------------------------------------------- ##
4492
) | sed "s/^/$as_me: WARNING: /" >&2
4495
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
4496
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4497
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4498
echo $ECHO_N "(cached) $ECHO_C" >&6
4500
eval "$as_ac_Header=\$ac_header_preproc"
4502
ac_res=`eval echo '${'$as_ac_Header'}'`
4503
{ echo "$as_me:$LINENO: result: $ac_res" >&5
4504
echo "${ECHO_T}$ac_res" >&6; }
4507
if test `eval echo '${'$as_ac_Header'}'` = yes; then
4508
cat >>confdefs.h <<_ACEOF
4509
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4517
# Checks for typedefs, structures, and compiler characteristics.
4518
{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4519
echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
4520
if test "${ac_cv_c_const+set}" = set; then
4521
echo $ECHO_N "(cached) $ECHO_C" >&6
4523
cat >conftest.$ac_ext <<_ACEOF
4526
cat confdefs.h >>conftest.$ac_ext
4527
cat >>conftest.$ac_ext <<_ACEOF
4528
/* end confdefs.h. */
4533
/* FIXME: Include the comments suggested by Paul. */
4535
/* Ultrix mips cc rejects this. */
4536
typedef int charset[2];
4538
/* SunOS 4.1.1 cc rejects this. */
4539
char const *const *pcpcc;
4541
/* NEC SVR4.0.2 mips cc rejects this. */
4542
struct point {int x, y;};
4543
static struct point const zero = {0,0};
4544
/* AIX XL C 1.02.0.0 rejects this.
4545
It does not let you subtract one const X* pointer from another in
4546
an arm of an if-expression whose if-part is not a constant
4548
const char *g = "string";
4549
pcpcc = &g + (g ? g-g : 0);
4550
/* HPUX 7.0 cc rejects these. */
4552
ppc = (char**) pcpcc;
4553
pcpcc = (char const *const *) ppc;
4554
{ /* SCO 3.2v4 cc rejects this. */
4556
char const *s = 0 ? (char *) 0 : (char const *) 0;
4561
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4563
const int *foo = &x[0];
4566
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4567
typedef const int *iptr;
4571
{ /* AIX XL C 1.02.0.0 rejects this saying
4572
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4573
struct s { int j; const int *ap[3]; };
4574
struct s *b; b->j = 5;
4576
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4580
return !cs[0] && !zero.x;
4587
rm -f conftest.$ac_objext
4588
if { (ac_try="$ac_compile"
4590
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4591
*) ac_try_echo=$ac_try;;
4593
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4594
(eval "$ac_compile") 2>conftest.er1
4596
grep -v '^ *+' conftest.er1 >conftest.err
4598
cat conftest.err >&5
4599
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4600
(exit $ac_status); } && {
4601
test -z "$ac_c_werror_flag" ||
4602
test ! -s conftest.err
4603
} && test -s conftest.$ac_objext; then
4606
echo "$as_me: failed program was:" >&5
4607
sed 's/^/| /' conftest.$ac_ext >&5
4612
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4614
{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4615
echo "${ECHO_T}$ac_cv_c_const" >&6; }
4616
if test $ac_cv_c_const = no; then
4618
cat >>confdefs.h <<\_ACEOF
4624
{ echo "$as_me:$LINENO: checking for size_t" >&5
4625
echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
4626
if test "${ac_cv_type_size_t+set}" = set; then
4627
echo $ECHO_N "(cached) $ECHO_C" >&6
4629
cat >conftest.$ac_ext <<_ACEOF
4632
cat confdefs.h >>conftest.$ac_ext
4633
cat >>conftest.$ac_ext <<_ACEOF
4634
/* end confdefs.h. */
4635
$ac_includes_default
4636
typedef size_t ac__type_new_;
4640
if ((ac__type_new_ *) 0)
4642
if (sizeof (ac__type_new_))
4648
rm -f conftest.$ac_objext
4649
if { (ac_try="$ac_compile"
4651
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4652
*) ac_try_echo=$ac_try;;
4654
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4655
(eval "$ac_compile") 2>conftest.er1
4657
grep -v '^ *+' conftest.er1 >conftest.err
4659
cat conftest.err >&5
4660
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4661
(exit $ac_status); } && {
4662
test -z "$ac_c_werror_flag" ||
4663
test ! -s conftest.err
4664
} && test -s conftest.$ac_objext; then
4665
ac_cv_type_size_t=yes
4667
echo "$as_me: failed program was:" >&5
4668
sed 's/^/| /' conftest.$ac_ext >&5
4670
ac_cv_type_size_t=no
4673
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4675
{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
4676
echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
4677
if test $ac_cv_type_size_t = yes; then
4681
cat >>confdefs.h <<_ACEOF
4682
#define size_t unsigned int
4688
{ echo "$as_me:$LINENO: checking for uint16_t" >&5
4689
echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
4690
if test "${ac_cv_c_uint16_t+set}" = set; then
4691
echo $ECHO_N "(cached) $ECHO_C" >&6
4694
for ac_type in 'uint16_t' 'unsigned int' 'unsigned long int' \
4695
'unsigned long long int' 'unsigned short int' 'unsigned char'; do
4696
cat >conftest.$ac_ext <<_ACEOF
4699
cat confdefs.h >>conftest.$ac_ext
4700
cat >>conftest.$ac_ext <<_ACEOF
4701
/* end confdefs.h. */
4702
$ac_includes_default
4706
static int test_array [1 - 2 * !(($ac_type) -1 >> (16 - 1) == 1)];
4713
rm -f conftest.$ac_objext
4714
if { (ac_try="$ac_compile"
4716
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4717
*) ac_try_echo=$ac_try;;
4719
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4720
(eval "$ac_compile") 2>conftest.er1
4722
grep -v '^ *+' conftest.er1 >conftest.err
4724
cat conftest.err >&5
4725
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726
(exit $ac_status); } && {
4727
test -z "$ac_c_werror_flag" ||
4728
test ! -s conftest.err
4729
} && test -s conftest.$ac_objext; then
4731
uint16_t) ac_cv_c_uint16_t=yes ;;
4732
*) ac_cv_c_uint16_t=$ac_type ;;
4736
echo "$as_me: failed program was:" >&5
4737
sed 's/^/| /' conftest.$ac_ext >&5
4742
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4743
test "$ac_cv_c_uint16_t" != no && break
4746
{ echo "$as_me:$LINENO: result: $ac_cv_c_uint16_t" >&5
4747
echo "${ECHO_T}$ac_cv_c_uint16_t" >&6; }
4748
case $ac_cv_c_uint16_t in #(
4753
cat >>confdefs.h <<_ACEOF
4754
#define uint16_t $ac_cv_c_uint16_t
4760
{ echo "$as_me:$LINENO: checking for uint32_t" >&5
4761
echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
4762
if test "${ac_cv_c_uint32_t+set}" = set; then
4763
echo $ECHO_N "(cached) $ECHO_C" >&6
4766
for ac_type in 'uint32_t' 'unsigned int' 'unsigned long int' \
4767
'unsigned long long int' 'unsigned short int' 'unsigned char'; do
4768
cat >conftest.$ac_ext <<_ACEOF
4771
cat confdefs.h >>conftest.$ac_ext
4772
cat >>conftest.$ac_ext <<_ACEOF
4773
/* end confdefs.h. */
4774
$ac_includes_default
4778
static int test_array [1 - 2 * !(($ac_type) -1 >> (32 - 1) == 1)];
4785
rm -f conftest.$ac_objext
4786
if { (ac_try="$ac_compile"
4788
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4789
*) ac_try_echo=$ac_try;;
4791
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4792
(eval "$ac_compile") 2>conftest.er1
4794
grep -v '^ *+' conftest.er1 >conftest.err
4796
cat conftest.err >&5
4797
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4798
(exit $ac_status); } && {
4799
test -z "$ac_c_werror_flag" ||
4800
test ! -s conftest.err
4801
} && test -s conftest.$ac_objext; then
4803
uint32_t) ac_cv_c_uint32_t=yes ;;
4804
*) ac_cv_c_uint32_t=$ac_type ;;
4808
echo "$as_me: failed program was:" >&5
4809
sed 's/^/| /' conftest.$ac_ext >&5
4814
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4815
test "$ac_cv_c_uint32_t" != no && break
4818
{ echo "$as_me:$LINENO: result: $ac_cv_c_uint32_t" >&5
4819
echo "${ECHO_T}$ac_cv_c_uint32_t" >&6; }
4820
case $ac_cv_c_uint32_t in #(
4824
cat >>confdefs.h <<\_ACEOF
4829
cat >>confdefs.h <<_ACEOF
4830
#define uint32_t $ac_cv_c_uint32_t
4836
{ echo "$as_me:$LINENO: checking for uint64_t" >&5
4837
echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
4838
if test "${ac_cv_c_uint64_t+set}" = set; then
4839
echo $ECHO_N "(cached) $ECHO_C" >&6
4842
for ac_type in 'uint64_t' 'unsigned int' 'unsigned long int' \
4843
'unsigned long long int' 'unsigned short int' 'unsigned char'; do
4844
cat >conftest.$ac_ext <<_ACEOF
4847
cat confdefs.h >>conftest.$ac_ext
4848
cat >>conftest.$ac_ext <<_ACEOF
4849
/* end confdefs.h. */
4850
$ac_includes_default
4854
static int test_array [1 - 2 * !(($ac_type) -1 >> (64 - 1) == 1)];
4861
rm -f conftest.$ac_objext
4862
if { (ac_try="$ac_compile"
4864
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4865
*) ac_try_echo=$ac_try;;
4867
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4868
(eval "$ac_compile") 2>conftest.er1
4870
grep -v '^ *+' conftest.er1 >conftest.err
4872
cat conftest.err >&5
4873
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874
(exit $ac_status); } && {
4875
test -z "$ac_c_werror_flag" ||
4876
test ! -s conftest.err
4877
} && test -s conftest.$ac_objext; then
4879
uint64_t) ac_cv_c_uint64_t=yes ;;
4880
*) ac_cv_c_uint64_t=$ac_type ;;
4884
echo "$as_me: failed program was:" >&5
4885
sed 's/^/| /' conftest.$ac_ext >&5
4890
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4891
test "$ac_cv_c_uint64_t" != no && break
4894
{ echo "$as_me:$LINENO: result: $ac_cv_c_uint64_t" >&5
4895
echo "${ECHO_T}$ac_cv_c_uint64_t" >&6; }
4896
case $ac_cv_c_uint64_t in #(
4900
cat >>confdefs.h <<\_ACEOF
4905
cat >>confdefs.h <<_ACEOF
4906
#define uint64_t $ac_cv_c_uint64_t
4912
{ echo "$as_me:$LINENO: checking for uint8_t" >&5
4913
echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6; }
4914
if test "${ac_cv_c_uint8_t+set}" = set; then
4915
echo $ECHO_N "(cached) $ECHO_C" >&6
4918
for ac_type in 'uint8_t' 'unsigned int' 'unsigned long int' \
4919
'unsigned long long int' 'unsigned short int' 'unsigned char'; do
4920
cat >conftest.$ac_ext <<_ACEOF
4923
cat confdefs.h >>conftest.$ac_ext
4924
cat >>conftest.$ac_ext <<_ACEOF
4925
/* end confdefs.h. */
4926
$ac_includes_default
4930
static int test_array [1 - 2 * !(($ac_type) -1 >> (8 - 1) == 1)];
4937
rm -f conftest.$ac_objext
4938
if { (ac_try="$ac_compile"
4940
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4941
*) ac_try_echo=$ac_try;;
4943
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4944
(eval "$ac_compile") 2>conftest.er1
4946
grep -v '^ *+' conftest.er1 >conftest.err
4948
cat conftest.err >&5
4949
echo "$as_me:$LINENO: \$? = $ac_status" >&5
4950
(exit $ac_status); } && {
4951
test -z "$ac_c_werror_flag" ||
4952
test ! -s conftest.err
4953
} && test -s conftest.$ac_objext; then
4955
uint8_t) ac_cv_c_uint8_t=yes ;;
4956
*) ac_cv_c_uint8_t=$ac_type ;;
4960
echo "$as_me: failed program was:" >&5
4961
sed 's/^/| /' conftest.$ac_ext >&5
4966
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4967
test "$ac_cv_c_uint8_t" != no && break
4970
{ echo "$as_me:$LINENO: result: $ac_cv_c_uint8_t" >&5
4971
echo "${ECHO_T}$ac_cv_c_uint8_t" >&6; }
4972
case $ac_cv_c_uint8_t in #(
4976
cat >>confdefs.h <<\_ACEOF
4981
cat >>confdefs.h <<_ACEOF
4982
#define uint8_t $ac_cv_c_uint8_t
4988
# Checks for library functions.
4989
if test $ac_cv_c_compiler_gnu = yes; then
4990
{ echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4991
echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
4992
if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4993
echo $ECHO_N "(cached) $ECHO_C" >&6
4995
ac_pattern="Autoconf.*'x'"
4996
cat >conftest.$ac_ext <<_ACEOF
4999
cat confdefs.h >>conftest.$ac_ext
5000
cat >>conftest.$ac_ext <<_ACEOF
5001
/* end confdefs.h. */
5005
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5006
$EGREP "$ac_pattern" >/dev/null 2>&1; then
5007
ac_cv_prog_gcc_traditional=yes
5009
ac_cv_prog_gcc_traditional=no
5014
if test $ac_cv_prog_gcc_traditional = no; then
5015
cat >conftest.$ac_ext <<_ACEOF
5018
cat confdefs.h >>conftest.$ac_ext
5019
cat >>conftest.$ac_ext <<_ACEOF
5020
/* end confdefs.h. */
5024
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5025
$EGREP "$ac_pattern" >/dev/null 2>&1; then
5026
ac_cv_prog_gcc_traditional=yes
5032
{ echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
5033
echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
5034
if test $ac_cv_prog_gcc_traditional = yes; then
5035
CC="$CC -traditional"
5040
for ac_header in stdlib.h
5042
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5043
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5044
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5045
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5046
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5047
echo $ECHO_N "(cached) $ECHO_C" >&6
5049
ac_res=`eval echo '${'$as_ac_Header'}'`
5050
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5051
echo "${ECHO_T}$ac_res" >&6; }
5053
# Is the header compilable?
5054
{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
5055
echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5056
cat >conftest.$ac_ext <<_ACEOF
5059
cat confdefs.h >>conftest.$ac_ext
5060
cat >>conftest.$ac_ext <<_ACEOF
5061
/* end confdefs.h. */
5062
$ac_includes_default
5063
#include <$ac_header>
5065
rm -f conftest.$ac_objext
5066
if { (ac_try="$ac_compile"
5068
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5069
*) ac_try_echo=$ac_try;;
5071
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5072
(eval "$ac_compile") 2>conftest.er1
5074
grep -v '^ *+' conftest.er1 >conftest.err
5076
cat conftest.err >&5
5077
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078
(exit $ac_status); } && {
5079
test -z "$ac_c_werror_flag" ||
5080
test ! -s conftest.err
5081
} && test -s conftest.$ac_objext; then
5082
ac_header_compiler=yes
5084
echo "$as_me: failed program was:" >&5
5085
sed 's/^/| /' conftest.$ac_ext >&5
5087
ac_header_compiler=no
5090
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5091
{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5092
echo "${ECHO_T}$ac_header_compiler" >&6; }
5094
# Is the header present?
5095
{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
5096
echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5097
cat >conftest.$ac_ext <<_ACEOF
5100
cat confdefs.h >>conftest.$ac_ext
5101
cat >>conftest.$ac_ext <<_ACEOF
5102
/* end confdefs.h. */
5103
#include <$ac_header>
5105
if { (ac_try="$ac_cpp conftest.$ac_ext"
5107
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5108
*) ac_try_echo=$ac_try;;
5110
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5111
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5113
grep -v '^ *+' conftest.er1 >conftest.err
5115
cat conftest.err >&5
5116
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117
(exit $ac_status); } >/dev/null && {
5118
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5119
test ! -s conftest.err
5121
ac_header_preproc=yes
5123
echo "$as_me: failed program was:" >&5
5124
sed 's/^/| /' conftest.$ac_ext >&5
5126
ac_header_preproc=no
5129
rm -f conftest.err conftest.$ac_ext
5130
{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5131
echo "${ECHO_T}$ac_header_preproc" >&6; }
5133
# So? What about this header?
5134
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5136
{ echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5137
echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5138
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5139
echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5140
ac_header_preproc=yes
5143
{ echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5144
echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5145
{ echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5146
echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5147
{ echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5148
echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5149
{ echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5150
echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5151
{ echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5152
echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5153
{ echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5154
echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5156
## --------------------------------------------- ##
5157
## Report this to daviedev@users.sourceforge.net ##
5158
## --------------------------------------------- ##
5160
) | sed "s/^/$as_me: WARNING: /" >&2
5163
{ echo "$as_me:$LINENO: checking for $ac_header" >&5
5164
echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5165
if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5166
echo $ECHO_N "(cached) $ECHO_C" >&6
5168
eval "$as_ac_Header=\$ac_header_preproc"
5170
ac_res=`eval echo '${'$as_ac_Header'}'`
5171
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5172
echo "${ECHO_T}$ac_res" >&6; }
5175
if test `eval echo '${'$as_ac_Header'}'` = yes; then
5176
cat >>confdefs.h <<_ACEOF
5177
#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5184
{ echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
5185
echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6; }
5186
if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
5187
echo $ECHO_N "(cached) $ECHO_C" >&6
5189
if test "$cross_compiling" = yes; then
5190
ac_cv_func_malloc_0_nonnull=no
5192
cat >conftest.$ac_ext <<_ACEOF
5195
cat confdefs.h >>conftest.$ac_ext
5196
cat >>conftest.$ac_ext <<_ACEOF
5197
/* end confdefs.h. */
5198
#if defined STDC_HEADERS || defined HAVE_STDLIB_H
5199
# include <stdlib.h>
5207
return ! malloc (0);
5212
rm -f conftest$ac_exeext
5213
if { (ac_try="$ac_link"
5215
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5216
*) ac_try_echo=$ac_try;;
5218
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5219
(eval "$ac_link") 2>&5
5221
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5223
{ (case "(($ac_try" in
5224
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5225
*) ac_try_echo=$ac_try;;
5227
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5228
(eval "$ac_try") 2>&5
5230
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231
(exit $ac_status); }; }; then
5232
ac_cv_func_malloc_0_nonnull=yes
5234
echo "$as_me: program exited with status $ac_status" >&5
5235
echo "$as_me: failed program was:" >&5
5236
sed 's/^/| /' conftest.$ac_ext >&5
5239
ac_cv_func_malloc_0_nonnull=no
5241
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5246
{ echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
5247
echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6; }
5248
if test $ac_cv_func_malloc_0_nonnull = yes; then
5250
cat >>confdefs.h <<\_ACEOF
5251
#define HAVE_MALLOC 1
5255
cat >>confdefs.h <<\_ACEOF
5256
#define HAVE_MALLOC 0
5259
case " $LIBOBJS " in
5260
*" malloc.$ac_objext "* ) ;;
5261
*) LIBOBJS="$LIBOBJS malloc.$ac_objext"
5266
cat >>confdefs.h <<\_ACEOF
5267
#define malloc rpl_malloc
5274
{ echo "$as_me:$LINENO: checking for working memcmp" >&5
5275
echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; }
5276
if test "${ac_cv_func_memcmp_working+set}" = set; then
5277
echo $ECHO_N "(cached) $ECHO_C" >&6
5279
if test "$cross_compiling" = yes; then
5280
ac_cv_func_memcmp_working=no
5282
cat >conftest.$ac_ext <<_ACEOF
5285
cat confdefs.h >>conftest.$ac_ext
5286
cat >>conftest.$ac_ext <<_ACEOF
5287
/* end confdefs.h. */
5288
$ac_includes_default
5293
/* Some versions of memcmp are not 8-bit clean. */
5294
char c0 = '\100', c1 = '\200', c2 = '\201';
5295
if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
5298
/* The Next x86 OpenStep bug shows up only when comparing 16 bytes
5299
or more and with at least one buffer not starting on a 4-byte boundary.
5300
William Lewis provided this test program. */
5305
for (i = 0; i < 4; i++)
5309
strcpy (a, "--------01111111");
5310
strcpy (b, "--------10000000");
5311
if (memcmp (a, b, 16) >= 0)
5321
rm -f conftest$ac_exeext
5322
if { (ac_try="$ac_link"
5324
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5325
*) ac_try_echo=$ac_try;;
5327
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5328
(eval "$ac_link") 2>&5
5330
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5331
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5332
{ (case "(($ac_try" in
5333
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5334
*) ac_try_echo=$ac_try;;
5336
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5337
(eval "$ac_try") 2>&5
5339
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5340
(exit $ac_status); }; }; then
5341
ac_cv_func_memcmp_working=yes
5343
echo "$as_me: program exited with status $ac_status" >&5
5344
echo "$as_me: failed program was:" >&5
5345
sed 's/^/| /' conftest.$ac_ext >&5
5348
ac_cv_func_memcmp_working=no
5350
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5355
{ echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
5356
echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; }
5357
test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
5358
*" memcmp.$ac_objext "* ) ;;
5359
*) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
5364
{ echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
5365
echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; }
5366
if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
5367
echo $ECHO_N "(cached) $ECHO_C" >&6
5369
rm -f conftest.sym conftest.file
5371
if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
5372
if test "$cross_compiling" = yes; then
5373
ac_cv_func_lstat_dereferences_slashed_symlink=no
5375
cat >conftest.$ac_ext <<_ACEOF
5378
cat confdefs.h >>conftest.$ac_ext
5379
cat >>conftest.$ac_ext <<_ACEOF
5380
/* end confdefs.h. */
5381
$ac_includes_default
5386
/* Linux will dereference the symlink and fail.
5387
That is better in the sense that it means we will not
5388
have to compile and use the lstat wrapper. */
5389
return lstat ("conftest.sym/", &sbuf) == 0;
5394
rm -f conftest$ac_exeext
5395
if { (ac_try="$ac_link"
5397
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5398
*) ac_try_echo=$ac_try;;
5400
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5401
(eval "$ac_link") 2>&5
5403
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5405
{ (case "(($ac_try" in
5406
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5407
*) ac_try_echo=$ac_try;;
5409
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5410
(eval "$ac_try") 2>&5
5412
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5413
(exit $ac_status); }; }; then
5414
ac_cv_func_lstat_dereferences_slashed_symlink=yes
5416
echo "$as_me: program exited with status $ac_status" >&5
5417
echo "$as_me: failed program was:" >&5
5418
sed 's/^/| /' conftest.$ac_ext >&5
5421
ac_cv_func_lstat_dereferences_slashed_symlink=no
5423
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5428
# If the `ln -s' command failed, then we probably don't even
5429
# have an lstat function.
5430
ac_cv_func_lstat_dereferences_slashed_symlink=no
5432
rm -f conftest.sym conftest.file
5435
{ echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
5436
echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
5438
test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
5440
cat >>confdefs.h <<_ACEOF
5441
#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
5445
if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
5446
case " $LIBOBJS " in
5447
*" lstat.$ac_objext "* ) ;;
5448
*) LIBOBJS="$LIBOBJS lstat.$ac_objext"
5454
{ echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5
5455
echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; }
5456
if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then
5457
echo $ECHO_N "(cached) $ECHO_C" >&6
5459
if test "$cross_compiling" = yes; then
5460
ac_cv_func_stat_empty_string_bug=yes
5462
cat >conftest.$ac_ext <<_ACEOF
5465
cat confdefs.h >>conftest.$ac_ext
5466
cat >>conftest.$ac_ext <<_ACEOF
5467
/* end confdefs.h. */
5468
$ac_includes_default
5473
return stat ("", &sbuf) == 0;
5478
rm -f conftest$ac_exeext
5479
if { (ac_try="$ac_link"
5481
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5482
*) ac_try_echo=$ac_try;;
5484
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5485
(eval "$ac_link") 2>&5
5487
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488
(exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5489
{ (case "(($ac_try" in
5490
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5491
*) ac_try_echo=$ac_try;;
5493
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5494
(eval "$ac_try") 2>&5
5496
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5497
(exit $ac_status); }; }; then
5498
ac_cv_func_stat_empty_string_bug=no
5500
echo "$as_me: program exited with status $ac_status" >&5
5501
echo "$as_me: failed program was:" >&5
5502
sed 's/^/| /' conftest.$ac_ext >&5
5505
ac_cv_func_stat_empty_string_bug=yes
5507
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5512
{ echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5
5513
echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; }
5514
if test $ac_cv_func_stat_empty_string_bug = yes; then
5515
case " $LIBOBJS " in
5516
*" stat.$ac_objext "* ) ;;
5517
*) LIBOBJS="$LIBOBJS stat.$ac_objext"
5522
cat >>confdefs.h <<_ACEOF
5523
#define HAVE_STAT_EMPTY_STRING_BUG 1
5533
for ac_func in memset regcomp strdup strerror strtoul
5535
as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
5536
{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5537
echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5538
if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
5539
echo $ECHO_N "(cached) $ECHO_C" >&6
5541
cat >conftest.$ac_ext <<_ACEOF
5544
cat confdefs.h >>conftest.$ac_ext
5545
cat >>conftest.$ac_ext <<_ACEOF
5546
/* end confdefs.h. */
5547
/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5548
For example, HP-UX 11i <limits.h> declares gettimeofday. */
5549
#define $ac_func innocuous_$ac_func
5551
/* System header to define __stub macros and hopefully few prototypes,
5552
which can conflict with char $ac_func (); below.
5553
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5554
<limits.h> exists even on freestanding compilers. */
5557
# include <limits.h>
5559
# include <assert.h>
5564
/* Override any GCC internal prototype to avoid an error.
5565
Use char because int might match the return type of a GCC
5566
builtin and then its argument prototype would still apply. */
5571
/* The GNU C library defines this for functions which it implements
5572
to always fail with ENOSYS. Some functions are actually named
5573
something starting with __ and the normal name is an alias. */
5574
#if defined __stub_$ac_func || defined __stub___$ac_func
5586
rm -f conftest.$ac_objext conftest$ac_exeext
5587
if { (ac_try="$ac_link"
5589
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5590
*) ac_try_echo=$ac_try;;
5592
eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5593
(eval "$ac_link") 2>conftest.er1
5595
grep -v '^ *+' conftest.er1 >conftest.err
5597
cat conftest.err >&5
5598
echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599
(exit $ac_status); } && {
5600
test -z "$ac_c_werror_flag" ||
5601
test ! -s conftest.err
5602
} && test -s conftest$ac_exeext &&
5603
$as_test_x conftest$ac_exeext; then
5604
eval "$as_ac_var=yes"
5606
echo "$as_me: failed program was:" >&5
5607
sed 's/^/| /' conftest.$ac_ext >&5
5609
eval "$as_ac_var=no"
5612
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5613
conftest$ac_exeext conftest.$ac_ext
5615
ac_res=`eval echo '${'$as_ac_var'}'`
5616
{ echo "$as_me:$LINENO: result: $ac_res" >&5
5617
echo "${ECHO_T}$ac_res" >&6; }
5618
if test `eval echo '${'$as_ac_var'}'` = yes; then
5619
cat >>confdefs.h <<_ACEOF
5620
#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
5627
ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile"
5629
cat >confcache <<\_ACEOF
5630
# This file is a shell script that caches the results of configure
5631
# tests run on this system so they can be shared between configure
5632
# scripts and configure runs, see configure's option --config-cache.
5633
# It is not useful on other systems. If it contains results you don't
5634
# want to keep, you may remove or edit it.
5636
# config.status only pays attention to the cache file if you give it
5637
# the --recheck option to rerun configure.
5639
# `ac_cv_env_foo' variables (set or unset) will be overridden when
5640
# loading this file, other *unset* `ac_cv_foo' will be assigned the
5645
# The following way of writing the cache mishandles newlines in values,
5646
# but we know of no workaround that is simple, portable, and efficient.
5647
# So, we kill variables containing newlines.
5648
# Ultrix sh set writes to stderr and can't be redirected directly,
5649
# and sets the high bit in the cache file unless we assign to the vars.
5651
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5652
eval ac_val=\$$ac_var
5656
*_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
5657
echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
5660
_ | IFS | as_nl) ;; #(
5661
*) $as_unset $ac_var ;;
5667
case $as_nl`(ac_space=' '; set) 2>&1` in #(
5668
*${as_nl}ac_space=\ *)
5669
# `set' does not quote correctly, so add quotes (double-quote
5670
# substitution turns \\\\ into \\, and sed turns \\ into \).
5673
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5676
# `set' quotes correctly as required by POSIX, so do not add quotes.
5677
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5686
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5688
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5690
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5691
if test -w "$cache_file"; then
5692
test "x$cache_file" != "x/dev/null" &&
5693
{ echo "$as_me:$LINENO: updating cache $cache_file" >&5
5694
echo "$as_me: updating cache $cache_file" >&6;}
5695
cat confcache >$cache_file
5697
{ echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
5698
echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5703
test "x$prefix" = xNONE && prefix=$ac_default_prefix
5704
# Let make expand exec_prefix.
5705
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5707
DEFS=-DHAVE_CONFIG_H
5711
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5712
# 1. Remove the extension, and $U if already installed.
5713
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5714
ac_i=`echo "$ac_i" | sed "$ac_script"`
5715
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5716
# will be set to the directory where LIBOBJS objects are built.
5717
ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5718
ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
5722
LTLIBOBJS=$ac_ltlibobjs
5725
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
5726
{ { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
5727
Usually this means the macro was only invoked conditionally." >&5
5728
echo "$as_me: error: conditional \"AMDEP\" was never defined.
5729
Usually this means the macro was only invoked conditionally." >&2;}
5730
{ (exit 1); exit 1; }; }
5732
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
5733
{ { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
5734
Usually this means the macro was only invoked conditionally." >&5
5735
echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
5736
Usually this means the macro was only invoked conditionally." >&2;}
5737
{ (exit 1); exit 1; }; }
5739
if test -z "${HAVE_LIBUSB_TRUE}" && test -z "${HAVE_LIBUSB_FALSE}"; then
5740
{ { echo "$as_me:$LINENO: error: conditional \"HAVE_LIBUSB\" was never defined.
5741
Usually this means the macro was only invoked conditionally." >&5
5742
echo "$as_me: error: conditional \"HAVE_LIBUSB\" was never defined.
5743
Usually this means the macro was only invoked conditionally." >&2;}
5744
{ (exit 1); exit 1; }; }
5747
: ${CONFIG_STATUS=./config.status}
5748
ac_clean_files_save=$ac_clean_files
5749
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5750
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5751
echo "$as_me: creating $CONFIG_STATUS" >&6;}
5752
cat >$CONFIG_STATUS <<_ACEOF
5754
# Generated by $as_me.
5755
# Run this file to recreate the current configuration.
5756
# Compiler output produced by configure, useful for debugging
5757
# configure, is in config.log if it exists.
5762
SHELL=\${CONFIG_SHELL-$SHELL}
5765
cat >>$CONFIG_STATUS <<\_ACEOF
5766
## --------------------- ##
5767
## M4sh Initialization. ##
5768
## --------------------- ##
5770
# Be more Bourne compatible
5771
DUALCASE=1; export DUALCASE # for MKS sh
5772
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5775
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5776
# is contrary to our usage. Disable this feature.
5777
alias -g '${1+"$@"}'='"$@"'
5778
setopt NO_GLOB_SUBST
5780
case `(set -o) 2>/dev/null` in
5781
*posix*) set -o posix ;;
5790
# Avoid depending upon Character Ranges.
5791
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5792
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5793
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5794
as_cr_digits='0123456789'
5795
as_cr_alnum=$as_cr_Letters$as_cr_digits
5797
# The user is always right.
5798
if test "${PATH_SEPARATOR+set}" != set; then
5799
echo "#! /bin/sh" >conf$$.sh
5800
echo "exit 0" >>conf$$.sh
5802
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5810
# Support unset when possible.
5811
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5819
# We need space, tab and new line, in precisely that order. Quoting is
5820
# there to prevent editors from complaining about space-tab.
5821
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
5822
# splitting by setting IFS to empty value.)
5827
# Find who we are. Look in the path if we contain no directory separator.
5829
*[\\/]* ) as_myself=$0 ;;
5830
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5834
test -z "$as_dir" && as_dir=.
5835
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5841
# We did not find ourselves, most probably we were run as `sh COMMAND'
5842
# in which case we are not to be found in the path.
5843
if test "x$as_myself" = x; then
5846
if test ! -f "$as_myself"; then
5847
echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5848
{ (exit 1); exit 1; }
5851
# Work around bugs in pre-3.0 UWIN ksh.
5852
for as_var in ENV MAIL MAILPATH
5853
do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
5861
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5862
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5863
LC_TELEPHONE LC_TIME
5865
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5866
eval $as_var=C; export $as_var
5868
($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
5872
# Required to use basename.
5873
if expr a : '\(a\)' >/dev/null 2>&1 &&
5874
test "X`expr 00001 : '.*\(...\)'`" = X001; then
5880
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5881
as_basename=basename
5887
# Name of the executable.
5888
as_me=`$as_basename -- "$0" ||
5889
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5890
X"$0" : 'X\(//\)$' \| \
5891
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5893
sed '/^.*\/\([^/][^/]*\)\/*$/{
5914
test "x$as_lineno_1" != "x$as_lineno_2" &&
5915
test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
5917
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5918
# uniformly replaced by the line number. The first 'sed' inserts a
5919
# line-number line after each line using $LINENO; the second 'sed'
5920
# does the real work. The second script uses 'N' to pair each
5921
# line-number line with the line containing $LINENO, and appends
5922
# trailing '-' during substitution so that $LINENO is not a special
5924
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5925
# scripts with optimization help from Paolo Bonzini. Blame Lee
5926
# E. McMahon (1931-1989) for sed's syntax. :-)
5938
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
5942
chmod +x "$as_me.lineno" ||
5943
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
5944
{ (exit 1); exit 1; }; }
5946
# Don't try to exec as it changes $[0], causing all sort of problems
5947
# (the dirname of $[0] is not the place where we might find the
5948
# original and so on. Autoconf is especially sensitive to this).
5950
# Exit status is that of the last command.
5955
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5961
ECHO_C= ECHO_N= ECHO_T=
5964
case `echo 'x\c'` in
5965
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
5972
if expr a : '\(a\)' >/dev/null 2>&1 &&
5973
test "X`expr 00001 : '.*\(...\)'`" = X001; then
5979
rm -f conf$$ conf$$.exe conf$$.file
5980
if test -d conf$$.dir; then
5981
rm -f conf$$.dir/conf$$.file
5987
if ln -s conf$$.file conf$$ 2>/dev/null; then
5989
# ... but there are two gotchas:
5990
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5991
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5992
# In both cases, we have to default to `cp -p'.
5993
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5995
elif ln conf$$.file conf$$ 2>/dev/null; then
6000
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6001
rmdir conf$$.dir 2>/dev/null
6003
if mkdir -p . 2>/dev/null; then
6006
test -d ./-p && rmdir ./-p
6010
if test -x / >/dev/null 2>&1; then
6013
if ls -dL / >/dev/null 2>&1; then
6020
if test -d "$1"; then
6026
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
6027
???[sx]*):;;*)false;;esac;fi
6031
as_executable_p=$as_test_x
6033
# Sed expression to map a string onto a valid CPP name.
6034
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6036
# Sed expression to map a string onto a valid variable name.
6037
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6042
# Save the log message, to keep $[0] and so on meaningful, and to
6043
# report actual input values of CONFIG_FILES etc. instead of their
6044
# values after options handling.
6046
This file was extended by u3-tool $as_me 0.2, which was
6047
generated by GNU Autoconf 2.61. Invocation command line was
6049
CONFIG_FILES = $CONFIG_FILES
6050
CONFIG_HEADERS = $CONFIG_HEADERS
6051
CONFIG_LINKS = $CONFIG_LINKS
6052
CONFIG_COMMANDS = $CONFIG_COMMANDS
6055
on `(hostname || uname -n) 2>/dev/null | sed 1q`
6060
cat >>$CONFIG_STATUS <<_ACEOF
6061
# Files that config.status was made for.
6062
config_files="$ac_config_files"
6063
config_headers="$ac_config_headers"
6064
config_commands="$ac_config_commands"
6068
cat >>$CONFIG_STATUS <<\_ACEOF
6070
\`$as_me' instantiates files from templates according to the
6071
current configuration.
6073
Usage: $0 [OPTIONS] [FILE]...
6075
-h, --help print this help, then exit
6076
-V, --version print version number and configuration settings, then exit
6077
-q, --quiet do not print progress messages
6078
-d, --debug don't remove temporary files
6079
--recheck update $as_me by reconfiguring in the same conditions
6080
--file=FILE[:TEMPLATE]
6081
instantiate the configuration file FILE
6082
--header=FILE[:TEMPLATE]
6083
instantiate the configuration header FILE
6085
Configuration files:
6088
Configuration headers:
6091
Configuration commands:
6094
Report bugs to <bug-autoconf@gnu.org>."
6097
cat >>$CONFIG_STATUS <<_ACEOF
6099
u3-tool config.status 0.2
6100
configured by $0, generated by GNU Autoconf 2.61,
6101
with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
6103
Copyright (C) 2006 Free Software Foundation, Inc.
6104
This config.status script is free software; the Free Software Foundation
6105
gives unlimited permission to copy, distribute and modify it."
6113
cat >>$CONFIG_STATUS <<\_ACEOF
6114
# If no file are specified by the user, then we need to provide default
6115
# value. By we need to know if files were specified by the user.
6121
ac_option=`expr "X$1" : 'X\([^=]*\)='`
6122
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6133
# Handling of the options.
6134
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6136
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6137
echo "$ac_cs_version"; exit ;;
6138
--debug | --debu | --deb | --de | --d | -d )
6140
--file | --fil | --fi | --f )
6142
CONFIG_FILES="$CONFIG_FILES $ac_optarg"
6143
ac_need_defaults=false;;
6144
--header | --heade | --head | --hea )
6146
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
6147
ac_need_defaults=false;;
6149
# Conflict between --help and --header
6150
{ echo "$as_me: error: ambiguous option: $1
6151
Try \`$0 --help' for more information." >&2
6152
{ (exit 1); exit 1; }; };;
6153
--help | --hel | -h )
6154
echo "$ac_cs_usage"; exit ;;
6155
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
6156
| -silent | --silent | --silen | --sile | --sil | --si | --s)
6160
-*) { echo "$as_me: error: unrecognized option: $1
6161
Try \`$0 --help' for more information." >&2
6162
{ (exit 1); exit 1; }; } ;;
6164
*) ac_config_targets="$ac_config_targets $1"
6165
ac_need_defaults=false ;;
6171
ac_configure_extra_args=
6173
if $ac_cs_silent; then
6175
ac_configure_extra_args="$ac_configure_extra_args --silent"
6179
cat >>$CONFIG_STATUS <<_ACEOF
6180
if \$ac_cs_recheck; then
6181
echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
6184
exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6188
cat >>$CONFIG_STATUS <<\_ACEOF
6192
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6193
## Running $as_me. ##
6199
cat >>$CONFIG_STATUS <<_ACEOF
6203
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6207
cat >>$CONFIG_STATUS <<\_ACEOF
6209
# Handling of arguments.
6210
for ac_config_target in $ac_config_targets
6212
case $ac_config_target in
6213
"config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
6214
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
6215
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6216
"doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
6217
"src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
6219
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
6220
echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
6221
{ (exit 1); exit 1; }; };;
6226
# If the user did not use the arguments to specify the items to instantiate,
6227
# then the envvar interface is used. Set only those that are not.
6228
# We use the long form for the default assignment because of an extremely
6229
# bizarre bug on SunOS 4.1.3.
6230
if $ac_need_defaults; then
6231
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6232
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6233
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
6236
# Have a temporary directory for convenience. Make it in the build tree
6237
# simply because there is no reason against having it here, and in addition,
6238
# creating and moving files from /tmp can sometimes cause problems.
6239
# Hook for its removal unless debugging.
6240
# Note that there is a small window in which the directory will not be cleaned:
6241
# after its creation but before its name has been assigned to `$tmp'.
6245
trap 'exit_status=$?
6246
{ test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6248
trap '{ (exit 1); exit 1; }' 1 2 13 15
6250
# Create a (secure) tmp directory for tmp files.
6253
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6254
test -n "$tmp" && test -d "$tmp"
6257
tmp=./conf$$-$RANDOM
6258
(umask 077 && mkdir "$tmp")
6261
echo "$me: cannot create a temporary directory in ." >&2
6262
{ (exit 1); exit 1; }
6266
# Set up the sed scripts for CONFIG_FILES section.
6269
# No need to generate the scripts if there are no CONFIG_FILES.
6270
# This happens for instance when ./config.status config.h
6271
if test -n "$CONFIG_FILES"; then
6278
for ac_last_try in false false false false false :; do
6279
cat >conf$$subs.sed <<_ACEOF
6280
SHELL!$SHELL$ac_delim
6281
PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
6282
PACKAGE_NAME!$PACKAGE_NAME$ac_delim
6283
PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
6284
PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
6285
PACKAGE_STRING!$PACKAGE_STRING$ac_delim
6286
PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
6287
exec_prefix!$exec_prefix$ac_delim
6288
prefix!$prefix$ac_delim
6289
program_transform_name!$program_transform_name$ac_delim
6290
bindir!$bindir$ac_delim
6291
sbindir!$sbindir$ac_delim
6292
libexecdir!$libexecdir$ac_delim
6293
datarootdir!$datarootdir$ac_delim
6294
datadir!$datadir$ac_delim
6295
sysconfdir!$sysconfdir$ac_delim
6296
sharedstatedir!$sharedstatedir$ac_delim
6297
localstatedir!$localstatedir$ac_delim
6298
includedir!$includedir$ac_delim
6299
oldincludedir!$oldincludedir$ac_delim
6300
docdir!$docdir$ac_delim
6301
infodir!$infodir$ac_delim
6302
htmldir!$htmldir$ac_delim
6303
dvidir!$dvidir$ac_delim
6304
pdfdir!$pdfdir$ac_delim
6305
psdir!$psdir$ac_delim
6306
libdir!$libdir$ac_delim
6307
localedir!$localedir$ac_delim
6308
mandir!$mandir$ac_delim
6310
ECHO_C!$ECHO_C$ac_delim
6311
ECHO_N!$ECHO_N$ac_delim
6312
ECHO_T!$ECHO_T$ac_delim
6314
build_alias!$build_alias$ac_delim
6315
host_alias!$host_alias$ac_delim
6316
target_alias!$target_alias$ac_delim
6317
INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
6318
INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
6319
INSTALL_DATA!$INSTALL_DATA$ac_delim
6320
am__isrc!$am__isrc$ac_delim
6321
CYGPATH_W!$CYGPATH_W$ac_delim
6322
PACKAGE!$PACKAGE$ac_delim
6323
VERSION!$VERSION$ac_delim
6324
ACLOCAL!$ACLOCAL$ac_delim
6325
AUTOCONF!$AUTOCONF$ac_delim
6326
AUTOMAKE!$AUTOMAKE$ac_delim
6327
AUTOHEADER!$AUTOHEADER$ac_delim
6328
MAKEINFO!$MAKEINFO$ac_delim
6329
install_sh!$install_sh$ac_delim
6330
STRIP!$STRIP$ac_delim
6331
INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
6332
mkdir_p!$mkdir_p$ac_delim
6334
SET_MAKE!$SET_MAKE$ac_delim
6335
am__leading_dot!$am__leading_dot$ac_delim
6336
AMTAR!$AMTAR$ac_delim
6337
am__tar!$am__tar$ac_delim
6338
am__untar!$am__untar$ac_delim
6340
CFLAGS!$CFLAGS$ac_delim
6341
LDFLAGS!$LDFLAGS$ac_delim
6342
CPPFLAGS!$CPPFLAGS$ac_delim
6343
ac_ct_CC!$ac_ct_CC$ac_delim
6344
EXEEXT!$EXEEXT$ac_delim
6345
OBJEXT!$OBJEXT$ac_delim
6346
DEPDIR!$DEPDIR$ac_delim
6347
am__include!$am__include$ac_delim
6348
am__quote!$am__quote$ac_delim
6349
AMDEP_TRUE!$AMDEP_TRUE$ac_delim
6350
AMDEP_FALSE!$AMDEP_FALSE$ac_delim
6351
AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
6352
CCDEPMODE!$CCDEPMODE$ac_delim
6353
am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
6354
am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
6355
PKG_CONFIG!$PKG_CONFIG$ac_delim
6356
LIBUSB_CFLAGS!$LIBUSB_CFLAGS$ac_delim
6357
LIBUSB_LIBS!$LIBUSB_LIBS$ac_delim
6358
HAVE_LIBUSB_TRUE!$HAVE_LIBUSB_TRUE$ac_delim
6359
HAVE_LIBUSB_FALSE!$HAVE_LIBUSB_FALSE$ac_delim
6362
EGREP!$EGREP$ac_delim
6363
LIBOBJS!$LIBOBJS$ac_delim
6364
LTLIBOBJS!$LTLIBOBJS$ac_delim
6367
if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 85; then
6369
elif $ac_last_try; then
6370
{ { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
6371
echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
6372
{ (exit 1); exit 1; }; }
6374
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6378
ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
6379
if test -n "$ac_eof"; then
6380
ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
6381
ac_eof=`expr $ac_eof + 1`
6384
cat >>$CONFIG_STATUS <<_ACEOF
6385
cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
6386
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
6389
s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
6390
s/^/s,@/; s/!/@,|#_!!_#|/
6393
s/'"$ac_delim"'$/,g/; t
6395
N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
6396
' >>$CONFIG_STATUS <conf$$subs.sed
6397
rm -f conf$$subs.sed
6398
cat >>$CONFIG_STATUS <<_ACEOF
6405
# VPATH may cause trouble with some makes, so we remove $(srcdir),
6406
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
6407
# trailing colons and then remove the whole line if VPATH becomes empty
6408
# (actually we leave an empty line to preserve line numbers).
6409
if test "x$srcdir" = x.; then
6410
ac_vpsub='/^[ ]*VPATH[ ]*=/{
6414
s/^\([^=]*=[ ]*\):*/\1/
6420
cat >>$CONFIG_STATUS <<\_ACEOF
6421
fi # test -n "$CONFIG_FILES"
6424
for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
6427
:[FHLC]) ac_mode=$ac_tag; continue;;
6429
case $ac_mode$ac_tag in
6431
:L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
6432
echo "$as_me: error: Invalid tag $ac_tag." >&2;}
6433
{ (exit 1); exit 1; }; };;
6434
:[FH]-) ac_tag=-:-;;
6435
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6452
-) ac_f="$tmp/stdin";;
6453
*) # Look for the file first in the build tree, then in the source tree
6454
# (if the path is not absolute). The absolute path cannot be DOS-style,
6455
# because $ac_f cannot contain `:'.
6459
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6461
{ { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
6462
echo "$as_me: error: cannot find input file: $ac_f" >&2;}
6463
{ (exit 1); exit 1; }; };;
6465
ac_file_inputs="$ac_file_inputs $ac_f"
6468
# Let's still pretend it is `configure' which instantiates (i.e., don't
6469
# use $as_me), people would be surprised to read:
6470
# /* config.h. Generated by config.status. */
6471
configure_input="Generated from "`IFS=:
6472
echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
6473
if test x"$ac_file" != x-; then
6474
configure_input="$ac_file. $configure_input"
6475
{ echo "$as_me:$LINENO: creating $ac_file" >&5
6476
echo "$as_me: creating $ac_file" >&6;}
6480
*:-:* | *:-) cat >"$tmp/stdin";;
6485
ac_dir=`$as_dirname -- "$ac_file" ||
6486
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6487
X"$ac_file" : 'X\(//\)[^/]' \| \
6488
X"$ac_file" : 'X\(//\)$' \| \
6489
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6491
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6510
-*) as_dir=./$as_dir;;
6512
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
6516
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
6517
*) as_qdir=$as_dir;;
6519
as_dirs="'$as_qdir' $as_dirs"
6520
as_dir=`$as_dirname -- "$as_dir" ||
6521
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6522
X"$as_dir" : 'X\(//\)[^/]' \| \
6523
X"$as_dir" : 'X\(//\)$' \| \
6524
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6526
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6543
test -d "$as_dir" && break
6545
test -z "$as_dirs" || eval "mkdir $as_dirs"
6546
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
6547
echo "$as_me: error: cannot create directory $as_dir" >&2;}
6548
{ (exit 1); exit 1; }; }; }
6552
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6554
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
6555
# A ".." for each directory in $ac_dir_suffix.
6556
ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
6557
case $ac_top_builddir_sub in
6558
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6559
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6562
ac_abs_top_builddir=$ac_pwd
6563
ac_abs_builddir=$ac_pwd$ac_dir_suffix
6564
# for backward compatibility:
6565
ac_top_builddir=$ac_top_build_prefix
6568
.) # We are building in place.
6570
ac_top_srcdir=$ac_top_builddir_sub
6571
ac_abs_top_srcdir=$ac_pwd ;;
6572
[\\/]* | ?:[\\/]* ) # Absolute name.
6573
ac_srcdir=$srcdir$ac_dir_suffix;
6574
ac_top_srcdir=$srcdir
6575
ac_abs_top_srcdir=$srcdir ;;
6577
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6578
ac_top_srcdir=$ac_top_build_prefix$srcdir
6579
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6581
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6591
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
6592
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
6596
[\\/$]* | ?:[\\/]* ) ;;
6597
*/*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
6601
cat >>$CONFIG_STATUS <<\_ACEOF
6602
# If the template does not know about datarootdir, expand it.
6603
# FIXME: This hack should be removed a few years after 2.60.
6604
ac_datarootdir_hack=; ac_datarootdir_seen=
6606
case `sed -n '/datarootdir/ {
6615
' $ac_file_inputs` in
6616
*datarootdir*) ac_datarootdir_seen=yes;;
6617
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6618
{ echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6619
echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6621
cat >>$CONFIG_STATUS <<_ACEOF
6622
ac_datarootdir_hack='
6623
s&@datadir@&$datadir&g
6624
s&@docdir@&$docdir&g
6625
s&@infodir@&$infodir&g
6626
s&@localedir@&$localedir&g
6627
s&@mandir@&$mandir&g
6628
s&\\\${datarootdir}&$datarootdir&g' ;;
6632
# Neutralize VPATH when `$srcdir' = `.'.
6633
# Shell code in configure.ac might set extrasub.
6634
# FIXME: do we really want to maintain this feature?
6635
cat >>$CONFIG_STATUS <<_ACEOF
6639
cat >>$CONFIG_STATUS <<\_ACEOF
6641
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6642
s&@configure_input@&$configure_input&;t t
6643
s&@top_builddir@&$ac_top_builddir_sub&;t t
6644
s&@srcdir@&$ac_srcdir&;t t
6645
s&@abs_srcdir@&$ac_abs_srcdir&;t t
6646
s&@top_srcdir@&$ac_top_srcdir&;t t
6647
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6648
s&@builddir@&$ac_builddir&;t t
6649
s&@abs_builddir@&$ac_abs_builddir&;t t
6650
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6651
s&@INSTALL@&$ac_INSTALL&;t t
6652
s&@MKDIR_P@&$ac_MKDIR_P&;t t
6653
$ac_datarootdir_hack
6654
" $ac_file_inputs | sed -f "$tmp/subs-1.sed" >$tmp/out
6656
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6657
{ ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
6658
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
6659
{ echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6660
which seems to be undefined. Please make sure it is defined." >&5
6661
echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6662
which seems to be undefined. Please make sure it is defined." >&2;}
6666
-) cat "$tmp/out"; rm -f "$tmp/out";;
6667
*) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
6676
# Transform confdefs.h into a sed script `conftest.defines', that
6677
# substitutes the proper values into config.h.in to produce config.h.
6678
rm -f conftest.defines conftest.tail
6679
# First, append a space to every undef/define line, to ease matching.
6680
echo 's/$/ /' >conftest.defines
6681
# Then, protect against being on the right side of a sed subst, or in
6682
# an unquoted here document, in config.status. If some macros were
6683
# called several times there might be several #defines for the same
6684
# symbol, which is useless. But do not sort them, since the last
6685
# AC_DEFINE must be honored.
6686
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6687
# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
6688
# NAME is the cpp macro being defined, VALUE is the value it is being given.
6689
# PARAMS is the parameter list in the macro definition--in most cases, it's
6690
# just an empty string.
6691
ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
6692
ac_dB='\\)[ (].*,\\1define\\2'
6700
s/^[ ]*#[ ]*define[ ][ ]*//
6705
s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
6706
s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
6707
' >>conftest.defines
6709
# Remove the space that was appended to ease matching.
6710
# Then replace #undef with comments. This is necessary, for
6711
# example, in the case of _POSIX_SOURCE, which is predefined and required
6712
# on some systems where configure will not decide to define it.
6713
# (The regexp can be short, since the line contains either #define or #undef.)
6715
s,^[ #]*u.*,/* & */,' >>conftest.defines
6717
# Break up conftest.defines:
6720
# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
6721
# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
6722
# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
6724
ac_in='$ac_file_inputs'
6725
ac_out='"$tmp/out1"'
6726
ac_nxt='"$tmp/out2"'
6730
# Write a here document:
6731
cat >>$CONFIG_STATUS <<_ACEOF
6732
# First, check the format of the line:
6733
cat >"\$tmp/defines.sed" <<\\CEOF
6734
/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
6735
/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
6739
sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
6741
sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
6742
ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
6743
sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
6744
grep . conftest.tail >/dev/null || break
6745
rm -f conftest.defines
6746
mv conftest.tail conftest.defines
6748
rm -f conftest.defines conftest.tail
6750
echo "ac_result=$ac_in" >>$CONFIG_STATUS
6751
cat >>$CONFIG_STATUS <<\_ACEOF
6752
if test x"$ac_file" != x-; then
6753
echo "/* $configure_input */" >"$tmp/config.h"
6754
cat "$ac_result" >>"$tmp/config.h"
6755
if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
6756
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5
6757
echo "$as_me: $ac_file is unchanged" >&6;}
6760
mv "$tmp/config.h" $ac_file
6763
echo "/* $configure_input */"
6767
# Compute $ac_file's index in $config_headers.
6770
for _am_header in $config_headers :; do
6772
$_am_arg | $_am_arg:* )
6775
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
6778
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
6779
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6780
X"$_am_arg" : 'X\(//\)[^/]' \| \
6781
X"$_am_arg" : 'X\(//\)$' \| \
6782
X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
6784
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6800
s/.*/./; q'`/stamp-h$_am_stamp_count
6803
:C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
6804
echo "$as_me: executing $ac_file commands" >&6;}
6809
case $ac_file$ac_mode in
6810
"depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
6811
# Strip MF so we end up with the name of the file.
6812
mf=`echo "$mf" | sed -e 's/:.*$//'`
6813
# Check whether this is an Automake generated Makefile or not.
6814
# We used to match only the files named `Makefile.in', but
6815
# some people rename them; so instead we look at the file content.
6816
# Grep'ing the first line is not enough: some people post-process
6817
# each Makefile.in and add a new line on top of each file to say so.
6818
# Grep'ing the whole file is not good either: AIX grep has a line
6819
# limit of 2048, but all sed's we know have understand at least 4000.
6820
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
6821
dirpart=`$as_dirname -- "$mf" ||
6822
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6823
X"$mf" : 'X\(//\)[^/]' \| \
6824
X"$mf" : 'X\(//\)$' \| \
6825
X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
6827
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6847
# Extract the definition of DEPDIR, am__include, and am__quote
6848
# from the Makefile without running `make'.
6849
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
6850
test -z "$DEPDIR" && continue
6851
am__include=`sed -n 's/^am__include = //p' < "$mf"`
6852
test -z "am__include" && continue
6853
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
6854
# When using ansi2knr, U may be empty or an underscore; expand it
6855
U=`sed -n 's/^U = //p' < "$mf"`
6856
# Find all dependency output files, they are included files with
6857
# $(DEPDIR) in their names. We invoke sed twice because it is the
6858
# simplest approach to changing $(DEPDIR) to its actual value in the
6860
for file in `sed -n "
6861
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
6862
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
6863
# Make sure the directory exists.
6864
test -f "$dirpart/$file" && continue
6865
fdir=`$as_dirname -- "$file" ||
6866
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6867
X"$file" : 'X\(//\)[^/]' \| \
6868
X"$file" : 'X\(//\)$' \| \
6869
X"$file" : 'X\(/\)' \| . 2>/dev/null ||
6871
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6888
{ as_dir=$dirpart/$fdir
6890
-*) as_dir=./$as_dir;;
6892
test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
6896
*\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
6897
*) as_qdir=$as_dir;;
6899
as_dirs="'$as_qdir' $as_dirs"
6900
as_dir=`$as_dirname -- "$as_dir" ||
6901
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6902
X"$as_dir" : 'X\(//\)[^/]' \| \
6903
X"$as_dir" : 'X\(//\)$' \| \
6904
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6906
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6923
test -d "$as_dir" && break
6925
test -z "$as_dirs" || eval "mkdir $as_dirs"
6926
} || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
6927
echo "$as_me: error: cannot create directory $as_dir" >&2;}
6928
{ (exit 1); exit 1; }; }; }
6929
# echo "creating $dirpart/$file"
6930
echo '# dummy' > "$dirpart/$file"
6939
{ (exit 0); exit 0; }
6941
chmod +x $CONFIG_STATUS
6942
ac_clean_files=$ac_clean_files_save
6945
# configure is writing to config.log, and then calls config.status.
6946
# config.status does its own redirection, appending to config.log.
6947
# Unfortunately, on DOS this fails, as config.log is still kept open
6948
# by configure, so config.status won't be able to write to it; its
6949
# output is simply discarded. So we exec the FD to /dev/null,
6950
# effectively closing config.log, so it can be properly (re)opened and
6951
# appended to by config.status. When coming back to configure, we
6952
# need to make the FD available again.
6953
if test "$no_create" != yes; then
6955
ac_config_status_args=
6956
test "$silent" = yes &&
6957
ac_config_status_args="$ac_config_status_args --quiet"
6959
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6961
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
6962
# would make configure fail if this is the last instruction.
6963
$ac_cs_success || { (exit 1); exit 1; }
6969
echo "LibUSB used: ${LIBUSB_MSG}"