2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.68 for FLRIG 1.3.15.
5
# Report bugs to <w1hkj AT w1hkj DOT com>.
7
# Copyright (C) 2009 Dave Freese, W1HKJ (w1hkj AT w1hkj DOT com)
10
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
11
# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
15
# This configure script is free software; the Free Software Foundation
16
# gives unlimited permission to copy, distribute and modify it.
17
## -------------------- ##
18
## M4sh Initialization. ##
19
## -------------------- ##
21
# Be more Bourne compatible
22
DUALCASE=1; export DUALCASE # for MKS sh
23
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27
# is contrary to our usage. Disable this feature.
28
alias -g '${1+"$@"}'='"$@"'
31
case `(set -o) 2>/dev/null` in #(
43
# Printing a long string crashes Solaris 7 /usr/bin/printf.
44
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47
# Prefer a ksh shell builtin over an external printf program on Solaris,
48
# but without wasting forks for bash or zsh.
49
if test -z "$BASH_VERSION$ZSH_VERSION" \
50
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
52
as_echo_n='print -rn --'
53
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
57
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
58
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
59
as_echo_n='/usr/ucb/echo -n'
61
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
66
expr "X$arg" : "X\\(.*\\)$as_nl";
67
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
69
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
72
as_echo_n='sh -c $as_echo_n_body as_echo'
75
as_echo='sh -c $as_echo_body as_echo'
78
# The user is always right.
79
if test "${PATH_SEPARATOR+set}" != set; then
81
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
82
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
89
# We need space, tab and new line, in precisely that order. Quoting is
90
# there to prevent editors from complaining about space-tab.
91
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
92
# splitting by setting IFS to empty value.)
95
# Find who we are. Look in the path if we contain no directory separator.
98
*[\\/]* ) as_myself=$0 ;;
99
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
103
test -z "$as_dir" && as_dir=.
104
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
110
# We did not find ourselves, most probably we were run as `sh COMMAND'
111
# in which case we are not to be found in the path.
112
if test "x$as_myself" = x; then
115
if test ! -f "$as_myself"; then
116
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
120
# Unset variables that we do not need and which cause bugs (e.g. in
121
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
122
# suppresses any "Segmentation fault" message there. '((' could
123
# trigger a bug in pdksh 5.2.14.
124
for as_var in BASH_ENV ENV MAIL MAILPATH
125
do eval test x\${$as_var+set} = xset \
126
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
139
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
141
if test "x$CONFIG_SHELL" = x; then
142
as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
145
# Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
146
# is contrary to our usage. Disable this feature.
147
alias -g '\${1+\"\$@\"}'='\"\$@\"'
150
case \`(set -o) 2>/dev/null\` in #(
158
as_required="as_fn_return () { (exit \$1); }
159
as_fn_success () { as_fn_return 0; }
160
as_fn_failure () { as_fn_return 1; }
161
as_fn_ret_success () { return 0; }
162
as_fn_ret_failure () { return 1; }
165
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
166
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
167
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
168
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
169
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
172
exitcode=1; echo positional parameters were not saved.
174
test x\$exitcode = x0 || exit 1"
175
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
176
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
177
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
178
test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
179
test \$(( 1 + 1 )) = 2 || exit 1"
180
if (eval "$as_required") 2>/dev/null; then :
185
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
188
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
193
test -z "$as_dir" && as_dir=.
197
for as_base in sh bash ksh sh5; do
198
# Try only shells that exist, to save several forks.
199
as_shell=$as_dir/$as_base
200
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
201
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
202
CONFIG_SHELL=$as_shell as_have_required=yes
203
if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
211
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
212
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
213
CONFIG_SHELL=$SHELL as_have_required=yes
218
if test "x$CONFIG_SHELL" != x; then :
219
# We cannot yet assume a decent shell, so we have to provide a
220
# neutralization value for shells without unset; and this also
221
# works around shells that cannot unset nonexistent variables.
222
# Preserve -v and -x to the replacement shell.
225
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
228
*v*x* | *x*v* ) as_opts=-vx ;;
233
exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
236
if test x$as_have_required = xno; then :
237
$as_echo "$0: This script requires a shell more modern than all"
238
$as_echo "$0: the shells that I found on your system."
239
if test x${ZSH_VERSION+set} = xset ; then
240
$as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
241
$as_echo "$0: be upgraded to zsh 4.3.4 or later."
243
$as_echo "$0: Please tell bug-autoconf@gnu.org and w1hkj AT w1hkj DOT
244
$0: com about your system, including any error possibly
245
$0: output before this message. Then install a modern
246
$0: shell, or manually run the script under such a shell if
247
$0: you do have one."
253
SHELL=${CONFIG_SHELL-/bin/sh}
255
# Unset more variables known to interfere with behavior of common tools.
256
CLICOLOR_FORCE= GREP_OPTIONS=
257
unset CLICOLOR_FORCE GREP_OPTIONS
259
## --------------------- ##
260
## M4sh Shell Functions. ##
261
## --------------------- ##
264
# Portably unset VAR.
267
{ eval $1=; unset $1;}
271
# as_fn_set_status STATUS
272
# -----------------------
273
# Set $? to STATUS, without forking.
281
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
291
# Create "$as_dir" as a directory, including parents if necessary.
296
-*) as_dir=./$as_dir;;
298
test -d "$as_dir" || eval $as_mkdir_p || {
302
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
305
as_dirs="'$as_qdir' $as_dirs"
306
as_dir=`$as_dirname -- "$as_dir" ||
307
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
308
X"$as_dir" : 'X\(//\)[^/]' \| \
309
X"$as_dir" : 'X\(//\)$' \| \
310
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
311
$as_echo X"$as_dir" |
312
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
329
test -d "$as_dir" && break
331
test -z "$as_dirs" || eval "mkdir $as_dirs"
332
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
336
# as_fn_append VAR VALUE
337
# ----------------------
338
# Append the text in VALUE to the end of the definition contained in VAR. Take
339
# advantage of any shell optimizations that allow amortized linear growth over
340
# repeated appends, instead of the typical quadratic growth present in naive
342
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
343
eval 'as_fn_append ()
356
# Perform arithmetic evaluation on the ARGs, and store the result in the
357
# global $as_val. Take advantage of shells that can avoid forks. The arguments
358
# must be portable across $(()) and expr.
359
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
367
as_val=`expr "$@" || test $? -eq 1`
372
# as_fn_error STATUS ERROR [LINENO LOG_FD]
373
# ----------------------------------------
374
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
375
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
376
# script with STATUS, using 1 if that was 0.
379
as_status=$1; test $as_status -eq 0 && as_status=1
381
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
382
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
384
$as_echo "$as_me: error: $2" >&2
385
as_fn_exit $as_status
388
if expr a : '\(a\)' >/dev/null 2>&1 &&
389
test "X`expr 00001 : '.*\(...\)'`" = X001; then
395
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
401
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
407
as_me=`$as_basename -- "$0" ||
408
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
409
X"$0" : 'X\(//\)$' \| \
410
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
412
sed '/^.*\/\([^/][^/]*\)\/*$/{
426
# Avoid depending upon Character Ranges.
427
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
428
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
429
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
430
as_cr_digits='0123456789'
431
as_cr_alnum=$as_cr_Letters$as_cr_digits
434
as_lineno_1=$LINENO as_lineno_1a=$LINENO
435
as_lineno_2=$LINENO as_lineno_2a=$LINENO
436
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
437
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
438
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
450
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
454
chmod +x "$as_me.lineno" ||
455
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
457
# Don't try to exec as it changes $[0], causing all sort of problems
458
# (the dirname of $[0] is not the place where we might find the
459
# original and so on. Autoconf is especially sensitive to this).
461
# Exit status is that of the last command.
465
ECHO_C= ECHO_N= ECHO_T=
466
case `echo -n x` in #(((((
468
case `echo 'xy\c'` in
469
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
471
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
478
rm -f conf$$ conf$$.exe conf$$.file
479
if test -d conf$$.dir; then
480
rm -f conf$$.dir/conf$$.file
483
mkdir conf$$.dir 2>/dev/null
485
if (echo >conf$$.file) 2>/dev/null; then
486
if ln -s conf$$.file conf$$ 2>/dev/null; then
488
# ... but there are two gotchas:
489
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
490
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
491
# In both cases, we have to default to `cp -p'.
492
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
494
elif ln conf$$.file conf$$ 2>/dev/null; then
502
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
503
rmdir conf$$.dir 2>/dev/null
505
if mkdir -p . 2>/dev/null; then
506
as_mkdir_p='mkdir -p "$as_dir"'
508
test -d ./-p && rmdir ./-p
512
if test -x / >/dev/null 2>&1; then
515
if ls -dL / >/dev/null 2>&1; then
522
if test -d "$1"; then
528
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
529
???[sx]*):;;*)false;;esac;fi
533
as_executable_p=$as_test_x
535
# Sed expression to map a string onto a valid CPP name.
536
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
538
# Sed expression to map a string onto a valid variable name.
539
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
542
test -n "$DJDIR" || exec 7<&0 </dev/null
546
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
547
# so uname gets run too.
548
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
553
ac_default_prefix=/usr/local
555
ac_config_libobj_dir=.
562
# Identity of this package.
564
PACKAGE_TARNAME='flrig'
565
PACKAGE_VERSION='1.3.15'
566
PACKAGE_STRING='FLRIG 1.3.15'
567
PACKAGE_BUGREPORT='w1hkj AT w1hkj DOT com'
570
ac_unique_file="src/rigs.cxx"
571
# Factoring default headers for most tests.
572
ac_includes_default="\
574
#ifdef HAVE_SYS_TYPES_H
575
# include <sys/types.h>
577
#ifdef HAVE_SYS_STAT_H
578
# include <sys/stat.h>
584
# ifdef HAVE_STDLIB_H
589
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
594
#ifdef HAVE_STRINGS_H
595
# include <strings.h>
597
#ifdef HAVE_INTTYPES_H
598
# include <inttypes.h>
607
ac_subst_vars='am__EXEEXT_FALSE
614
COMPAT_STRCASESTR_FALSE
615
COMPAT_STRCASESTR_TRUE
639
MAC_UNIVERSAL_LDFLAGS
691
INSTALL_STRIP_PROGRAM
750
program_transform_name
763
enable_option_checking
764
enable_dependency_tracking
772
ac_precious_vars='build_alias
799
# Initialize some variables set by options.
801
ac_init_version=false
802
ac_unrecognized_opts=
804
# The variables have the same names as the options, with
805
# dashes changed to underlines.
813
program_transform_name=s,x,x,
821
# Installation directory options.
822
# These are left unexpanded so users can "make install exec_prefix=/foo"
823
# and all the variables that are supposed to be based on exec_prefix
824
# by default will actually change.
825
# Use braces instead of parens because sh, perl, etc. also accept them.
826
# (The list follows the same order as the GNU Coding Standards.)
827
bindir='${exec_prefix}/bin'
828
sbindir='${exec_prefix}/sbin'
829
libexecdir='${exec_prefix}/libexec'
830
datarootdir='${prefix}/share'
831
datadir='${datarootdir}'
832
sysconfdir='${prefix}/etc'
833
sharedstatedir='${prefix}/com'
834
localstatedir='${prefix}/var'
835
includedir='${prefix}/include'
836
oldincludedir='/usr/include'
837
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
838
infodir='${datarootdir}/info'
843
libdir='${exec_prefix}/lib'
844
localedir='${datarootdir}/locale'
845
mandir='${datarootdir}/man'
851
# If the previous option needs an argument, assign it.
852
if test -n "$ac_prev"; then
853
eval $ac_prev=\$ac_option
859
*=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
864
# Accept the important Cygnus configure options, so we can diagnose typos.
866
case $ac_dashdash$ac_option in
870
-bindir | --bindir | --bindi | --bind | --bin | --bi)
872
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
875
-build | --build | --buil | --bui | --bu)
876
ac_prev=build_alias ;;
877
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
878
build_alias=$ac_optarg ;;
880
-cache-file | --cache-file | --cache-fil | --cache-fi \
881
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
882
ac_prev=cache_file ;;
883
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
884
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
885
cache_file=$ac_optarg ;;
888
cache_file=config.cache ;;
890
-datadir | --datadir | --datadi | --datad)
892
-datadir=* | --datadir=* | --datadi=* | --datad=*)
893
datadir=$ac_optarg ;;
895
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
896
| --dataroo | --dataro | --datar)
897
ac_prev=datarootdir ;;
898
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
899
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
900
datarootdir=$ac_optarg ;;
902
-disable-* | --disable-*)
903
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
904
# Reject names that are not valid shell variable names.
905
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
906
as_fn_error $? "invalid feature name: $ac_useropt"
907
ac_useropt_orig=$ac_useropt
908
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
909
case $ac_user_opts in
913
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
914
ac_unrecognized_sep=', ';;
916
eval enable_$ac_useropt=no ;;
918
-docdir | --docdir | --docdi | --doc | --do)
920
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
923
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
925
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
928
-enable-* | --enable-*)
929
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
930
# Reject names that are not valid shell variable names.
931
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
932
as_fn_error $? "invalid feature name: $ac_useropt"
933
ac_useropt_orig=$ac_useropt
934
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
935
case $ac_user_opts in
939
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
940
ac_unrecognized_sep=', ';;
942
eval enable_$ac_useropt=\$ac_optarg ;;
944
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
945
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
946
| --exec | --exe | --ex)
947
ac_prev=exec_prefix ;;
948
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
949
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
950
| --exec=* | --exe=* | --ex=*)
951
exec_prefix=$ac_optarg ;;
953
-gas | --gas | --ga | --g)
954
# Obsolete; use --with-gas.
957
-help | --help | --hel | --he | -h)
959
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
960
ac_init_help=recursive ;;
961
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
962
ac_init_help=short ;;
964
-host | --host | --hos | --ho)
965
ac_prev=host_alias ;;
966
-host=* | --host=* | --hos=* | --ho=*)
967
host_alias=$ac_optarg ;;
969
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
971
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
973
htmldir=$ac_optarg ;;
975
-includedir | --includedir | --includedi | --included | --include \
976
| --includ | --inclu | --incl | --inc)
977
ac_prev=includedir ;;
978
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
979
| --includ=* | --inclu=* | --incl=* | --inc=*)
980
includedir=$ac_optarg ;;
982
-infodir | --infodir | --infodi | --infod | --info | --inf)
984
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
985
infodir=$ac_optarg ;;
987
-libdir | --libdir | --libdi | --libd)
989
-libdir=* | --libdir=* | --libdi=* | --libd=*)
992
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
993
| --libexe | --libex | --libe)
994
ac_prev=libexecdir ;;
995
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
996
| --libexe=* | --libex=* | --libe=*)
997
libexecdir=$ac_optarg ;;
999
-localedir | --localedir | --localedi | --localed | --locale)
1000
ac_prev=localedir ;;
1001
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1002
localedir=$ac_optarg ;;
1004
-localstatedir | --localstatedir | --localstatedi | --localstated \
1005
| --localstate | --localstat | --localsta | --localst | --locals)
1006
ac_prev=localstatedir ;;
1007
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1008
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1009
localstatedir=$ac_optarg ;;
1011
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1013
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1014
mandir=$ac_optarg ;;
1016
-nfp | --nfp | --nf)
1017
# Obsolete; use --without-fp.
1020
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
1021
| --no-cr | --no-c | -n)
1024
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
1025
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1028
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1029
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1030
| --oldin | --oldi | --old | --ol | --o)
1031
ac_prev=oldincludedir ;;
1032
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1033
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1034
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1035
oldincludedir=$ac_optarg ;;
1037
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1039
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1040
prefix=$ac_optarg ;;
1042
-program-prefix | --program-prefix | --program-prefi | --program-pref \
1043
| --program-pre | --program-pr | --program-p)
1044
ac_prev=program_prefix ;;
1045
-program-prefix=* | --program-prefix=* | --program-prefi=* \
1046
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1047
program_prefix=$ac_optarg ;;
1049
-program-suffix | --program-suffix | --program-suffi | --program-suff \
1050
| --program-suf | --program-su | --program-s)
1051
ac_prev=program_suffix ;;
1052
-program-suffix=* | --program-suffix=* | --program-suffi=* \
1053
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1054
program_suffix=$ac_optarg ;;
1056
-program-transform-name | --program-transform-name \
1057
| --program-transform-nam | --program-transform-na \
1058
| --program-transform-n | --program-transform- \
1059
| --program-transform | --program-transfor \
1060
| --program-transfo | --program-transf \
1061
| --program-trans | --program-tran \
1062
| --progr-tra | --program-tr | --program-t)
1063
ac_prev=program_transform_name ;;
1064
-program-transform-name=* | --program-transform-name=* \
1065
| --program-transform-nam=* | --program-transform-na=* \
1066
| --program-transform-n=* | --program-transform-=* \
1067
| --program-transform=* | --program-transfor=* \
1068
| --program-transfo=* | --program-transf=* \
1069
| --program-trans=* | --program-tran=* \
1070
| --progr-tra=* | --program-tr=* | --program-t=*)
1071
program_transform_name=$ac_optarg ;;
1073
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1075
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1076
pdfdir=$ac_optarg ;;
1078
-psdir | --psdir | --psdi | --psd | --ps)
1080
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1083
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1084
| -silent | --silent | --silen | --sile | --sil)
1087
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1089
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1091
sbindir=$ac_optarg ;;
1093
-sharedstatedir | --sharedstatedir | --sharedstatedi \
1094
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1095
| --sharedst | --shareds | --shared | --share | --shar \
1097
ac_prev=sharedstatedir ;;
1098
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1099
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1100
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1102
sharedstatedir=$ac_optarg ;;
1104
-site | --site | --sit)
1106
-site=* | --site=* | --sit=*)
1109
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1111
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1112
srcdir=$ac_optarg ;;
1114
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1115
| --syscon | --sysco | --sysc | --sys | --sy)
1116
ac_prev=sysconfdir ;;
1117
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1118
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1119
sysconfdir=$ac_optarg ;;
1121
-target | --target | --targe | --targ | --tar | --ta | --t)
1122
ac_prev=target_alias ;;
1123
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1124
target_alias=$ac_optarg ;;
1126
-v | -verbose | --verbose | --verbos | --verbo | --verb)
1129
-version | --version | --versio | --versi | --vers | -V)
1130
ac_init_version=: ;;
1133
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1134
# Reject names that are not valid shell variable names.
1135
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1136
as_fn_error $? "invalid package name: $ac_useropt"
1137
ac_useropt_orig=$ac_useropt
1138
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1139
case $ac_user_opts in
1143
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1144
ac_unrecognized_sep=', ';;
1146
eval with_$ac_useropt=\$ac_optarg ;;
1148
-without-* | --without-*)
1149
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1150
# Reject names that are not valid shell variable names.
1151
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1152
as_fn_error $? "invalid package name: $ac_useropt"
1153
ac_useropt_orig=$ac_useropt
1154
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1155
case $ac_user_opts in
1159
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1160
ac_unrecognized_sep=', ';;
1162
eval with_$ac_useropt=no ;;
1165
# Obsolete; use --with-x.
1168
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1169
| --x-incl | --x-inc | --x-in | --x-i)
1170
ac_prev=x_includes ;;
1171
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1172
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1173
x_includes=$ac_optarg ;;
1175
-x-libraries | --x-libraries | --x-librarie | --x-librari \
1176
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1177
ac_prev=x_libraries ;;
1178
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1179
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1180
x_libraries=$ac_optarg ;;
1182
-*) as_fn_error $? "unrecognized option: \`$ac_option'
1183
Try \`$0 --help' for more information"
1187
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1188
# Reject names that are not valid shell variable names.
1189
case $ac_envvar in #(
1190
'' | [0-9]* | *[!_$as_cr_alnum]* )
1191
as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1193
eval $ac_envvar=\$ac_optarg
1194
export $ac_envvar ;;
1197
# FIXME: should be removed in autoconf 3.0.
1198
$as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1199
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1200
$as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1201
: "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1207
if test -n "$ac_prev"; then
1208
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1209
as_fn_error $? "missing argument to $ac_option"
1212
if test -n "$ac_unrecognized_opts"; then
1213
case $enable_option_checking in
1215
fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1216
*) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1220
# Check all directory arguments for consistency.
1221
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1222
datadir sysconfdir sharedstatedir localstatedir includedir \
1223
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1224
libdir localedir mandir
1226
eval ac_val=\$$ac_var
1227
# Remove trailing slashes.
1230
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1231
eval $ac_var=\$ac_val;;
1233
# Be sure to have absolute directory names.
1235
[\\/$]* | ?:[\\/]* ) continue;;
1236
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1238
as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1241
# There might be people who depend on the old broken behavior: `$host'
1242
# used to hold the argument of --host etc.
1243
# FIXME: To remove some day.
1246
target=$target_alias
1248
# FIXME: To remove some day.
1249
if test "x$host_alias" != x; then
1250
if test "x$build_alias" = x; then
1251
cross_compiling=maybe
1252
$as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1253
If a cross compiler is detected then cross compile mode will be used" >&2
1254
elif test "x$build_alias" != "x$host_alias"; then
1260
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1262
test "$silent" = yes && exec 6>/dev/null
1265
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1266
ac_ls_di=`ls -di .` &&
1267
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1268
as_fn_error $? "working directory cannot be determined"
1269
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1270
as_fn_error $? "pwd does not report name of working directory"
1273
# Find the source files, if location was not specified.
1274
if test -z "$srcdir"; then
1275
ac_srcdir_defaulted=yes
1276
# Try the directory containing this script, then the parent directory.
1277
ac_confdir=`$as_dirname -- "$as_myself" ||
1278
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1279
X"$as_myself" : 'X\(//\)[^/]' \| \
1280
X"$as_myself" : 'X\(//\)$' \| \
1281
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1282
$as_echo X"$as_myself" |
1283
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1301
if test ! -r "$srcdir/$ac_unique_file"; then
1305
ac_srcdir_defaulted=no
1307
if test ! -r "$srcdir/$ac_unique_file"; then
1308
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1309
as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1311
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1313
cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1315
# When building in place, set srcdir=.
1316
if test "$ac_abs_confdir" = "$ac_pwd"; then
1319
# Remove unnecessary trailing slashes from srcdir.
1320
# Double slashes in file names in object file debugging info
1321
# mess up M-x gdb in Emacs.
1323
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1325
for ac_var in $ac_precious_vars; do
1326
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1327
eval ac_env_${ac_var}_value=\$${ac_var}
1328
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1329
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1333
# Report the --help message.
1335
if test "$ac_init_help" = "long"; then
1336
# Omit some internal or obsolete options to make the list less imposing.
1337
# This message is too long to be a string in the A/UX 3.1 sh.
1339
\`configure' configures FLRIG 1.3.15 to adapt to many kinds of systems.
1341
Usage: $0 [OPTION]... [VAR=VALUE]...
1343
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1344
VAR=VALUE. See below for descriptions of some of the useful variables.
1346
Defaults for the options are specified in brackets.
1349
-h, --help display this help and exit
1350
--help=short display options specific to this package
1351
--help=recursive display the short help of all the included packages
1352
-V, --version display version information and exit
1353
-q, --quiet, --silent do not print \`checking ...' messages
1354
--cache-file=FILE cache test results in FILE [disabled]
1355
-C, --config-cache alias for \`--cache-file=config.cache'
1356
-n, --no-create do not create output files
1357
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1359
Installation directories:
1360
--prefix=PREFIX install architecture-independent files in PREFIX
1361
[$ac_default_prefix]
1362
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1365
By default, \`make install' will install all the files in
1366
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1367
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1368
for instance \`--prefix=\$HOME'.
1370
For better control, use the options below.
1372
Fine tuning of the installation directories:
1373
--bindir=DIR user executables [EPREFIX/bin]
1374
--sbindir=DIR system admin executables [EPREFIX/sbin]
1375
--libexecdir=DIR program executables [EPREFIX/libexec]
1376
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1377
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1378
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1379
--libdir=DIR object code libraries [EPREFIX/lib]
1380
--includedir=DIR C header files [PREFIX/include]
1381
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1382
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1383
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1384
--infodir=DIR info documentation [DATAROOTDIR/info]
1385
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1386
--mandir=DIR man documentation [DATAROOTDIR/man]
1387
--docdir=DIR documentation root [DATAROOTDIR/doc/flrig]
1388
--htmldir=DIR html documentation [DOCDIR]
1389
--dvidir=DIR dvi documentation [DOCDIR]
1390
--pdfdir=DIR pdf documentation [DOCDIR]
1391
--psdir=DIR ps documentation [DOCDIR]
1397
--program-prefix=PREFIX prepend PREFIX to installed program names
1398
--program-suffix=SUFFIX append SUFFIX to installed program names
1399
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
1402
--build=BUILD configure for building on BUILD [guessed]
1403
--host=HOST cross-compile to build programs to run on HOST [BUILD]
1404
--target=TARGET configure for building compilers for TARGET [HOST]
1408
if test -n "$ac_init_help"; then
1409
case $ac_init_help in
1410
short | recursive ) echo "Configuration of FLRIG 1.3.15:";;
1415
--disable-option-checking ignore unrecognized --enable/--with options
1416
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1417
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1418
--disable-dependency-tracking speeds up one-time build
1419
--enable-dependency-tracking do not reject slow dependency extractors
1420
--enable-static enable static linking for some libraries
1421
--enable-optimizations use x86 optimizations (none|sse|sse2|sse3|native)
1423
--enable-debug turn on debugging
1424
--enable-mac-universal build a universal binary on Mac OS X [no]
1427
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1428
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1429
--with-bfd[=DIR] search for libbfd in DIR/include and DIR/lib
1431
--with-ptw32[=DIR] search for pthreads-w32 in DIR/include and DIR/lib
1434
Some influential environment variables:
1435
CXX C++ compiler command
1436
CXXFLAGS C++ compiler flags
1437
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1438
nonstandard directory <lib dir>
1439
LIBS libraries to pass to the linker, e.g. -l<library>
1440
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1441
you have headers in a nonstandard directory <include dir>
1442
CC C compiler command
1443
CFLAGS C compiler flags
1445
PKG_CONFIG path to pkg-config utility
1447
directories to add to pkg-config's search path
1449
path overriding pkg-config's built-in search path
1450
X_CFLAGS C compiler flags for X, overriding pkg-config
1451
X_LIBS linker flags for X, overriding pkg-config
1452
BFD_CFLAGS C compiler flags for libbfd
1453
BFD_LIBS linker flags for libbfd
1455
C compiler flags for pthreads-w32
1456
PTW32_LIBS linker flags for pthreads-w32
1457
FLTK_CONFIG Path to fltk-config utility
1458
FLTK_CFLAGS C compiler flags for FLTK, overriding fltk-config
1459
FLTK_LIBS linker flags for FLTK, overriding fltk-config
1460
FLUID Fast Light User-Interface Designer
1462
Use these variables to override the choices made by `configure' or to help
1463
it to find libraries and programs with nonstandard names/locations.
1465
Report bugs to <w1hkj AT w1hkj DOT com>.
1470
if test "$ac_init_help" = "recursive"; then
1471
# If there are subdirs, report their specific --help.
1472
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1473
test -d "$ac_dir" ||
1474
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1479
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1481
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1482
# A ".." for each directory in $ac_dir_suffix.
1483
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1484
case $ac_top_builddir_sub in
1485
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1486
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1489
ac_abs_top_builddir=$ac_pwd
1490
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1491
# for backward compatibility:
1492
ac_top_builddir=$ac_top_build_prefix
1495
.) # We are building in place.
1497
ac_top_srcdir=$ac_top_builddir_sub
1498
ac_abs_top_srcdir=$ac_pwd ;;
1499
[\\/]* | ?:[\\/]* ) # Absolute name.
1500
ac_srcdir=$srcdir$ac_dir_suffix;
1501
ac_top_srcdir=$srcdir
1502
ac_abs_top_srcdir=$srcdir ;;
1504
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1505
ac_top_srcdir=$ac_top_build_prefix$srcdir
1506
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1508
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1510
cd "$ac_dir" || { ac_status=$?; continue; }
1511
# Check for guested configure.
1512
if test -f "$ac_srcdir/configure.gnu"; then
1514
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1515
elif test -f "$ac_srcdir/configure"; then
1517
$SHELL "$ac_srcdir/configure" --help=recursive
1519
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1521
cd "$ac_pwd" || { ac_status=$?; break; }
1525
test -n "$ac_init_help" && exit $ac_status
1526
if $ac_init_version; then
1528
FLRIG configure 1.3.15
1529
generated by GNU Autoconf 2.68
1531
Copyright (C) 2010 Free Software Foundation, Inc.
1532
This configure script is free software; the Free Software Foundation
1533
gives unlimited permission to copy, distribute and modify it.
1535
Copyright (C) 2009 Dave Freese, W1HKJ (w1hkj AT w1hkj DOT com)
1540
## ------------------------ ##
1541
## Autoconf initialization. ##
1542
## ------------------------ ##
1544
# ac_fn_cxx_try_compile LINENO
1545
# ----------------------------
1546
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1547
ac_fn_cxx_try_compile ()
1549
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1550
rm -f conftest.$ac_objext
1551
if { { ac_try="$ac_compile"
1553
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1554
*) ac_try_echo=$ac_try;;
1556
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1557
$as_echo "$ac_try_echo"; } >&5
1558
(eval "$ac_compile") 2>conftest.err
1560
if test -s conftest.err; then
1561
grep -v '^ *+' conftest.err >conftest.er1
1562
cat conftest.er1 >&5
1563
mv -f conftest.er1 conftest.err
1565
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1566
test $ac_status = 0; } && {
1567
test -z "$ac_cxx_werror_flag" ||
1568
test ! -s conftest.err
1569
} && test -s conftest.$ac_objext; then :
1572
$as_echo "$as_me: failed program was:" >&5
1573
sed 's/^/| /' conftest.$ac_ext >&5
1577
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1578
as_fn_set_status $ac_retval
1580
} # ac_fn_cxx_try_compile
1582
# ac_fn_c_try_compile LINENO
1583
# --------------------------
1584
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1585
ac_fn_c_try_compile ()
1587
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1588
rm -f conftest.$ac_objext
1589
if { { ac_try="$ac_compile"
1591
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1592
*) ac_try_echo=$ac_try;;
1594
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1595
$as_echo "$ac_try_echo"; } >&5
1596
(eval "$ac_compile") 2>conftest.err
1598
if test -s conftest.err; then
1599
grep -v '^ *+' conftest.err >conftest.er1
1600
cat conftest.er1 >&5
1601
mv -f conftest.er1 conftest.err
1603
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1604
test $ac_status = 0; } && {
1605
test -z "$ac_c_werror_flag" ||
1606
test ! -s conftest.err
1607
} && test -s conftest.$ac_objext; then :
1610
$as_echo "$as_me: failed program was:" >&5
1611
sed 's/^/| /' conftest.$ac_ext >&5
1615
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1616
as_fn_set_status $ac_retval
1618
} # ac_fn_c_try_compile
1620
# ac_fn_c_try_cpp LINENO
1621
# ----------------------
1622
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1625
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1626
if { { ac_try="$ac_cpp conftest.$ac_ext"
1628
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1629
*) ac_try_echo=$ac_try;;
1631
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1632
$as_echo "$ac_try_echo"; } >&5
1633
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1635
if test -s conftest.err; then
1636
grep -v '^ *+' conftest.err >conftest.er1
1637
cat conftest.er1 >&5
1638
mv -f conftest.er1 conftest.err
1640
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1641
test $ac_status = 0; } > conftest.i && {
1642
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1643
test ! -s conftest.err
1647
$as_echo "$as_me: failed program was:" >&5
1648
sed 's/^/| /' conftest.$ac_ext >&5
1652
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1653
as_fn_set_status $ac_retval
1657
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1658
# -------------------------------------------------------
1659
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1660
# the include files in INCLUDES and setting the cache variable VAR
1662
ac_fn_c_check_header_mongrel ()
1664
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1665
if eval \${$3+:} false; then :
1666
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1667
$as_echo_n "checking for $2... " >&6; }
1668
if eval \${$3+:} false; then :
1669
$as_echo_n "(cached) " >&6
1672
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1673
$as_echo "$ac_res" >&6; }
1675
# Is the header compilable?
1676
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1677
$as_echo_n "checking $2 usability... " >&6; }
1678
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1679
/* end confdefs.h. */
1683
if ac_fn_c_try_compile "$LINENO"; then :
1684
ac_header_compiler=yes
1686
ac_header_compiler=no
1688
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1689
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1690
$as_echo "$ac_header_compiler" >&6; }
1692
# Is the header present?
1693
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1694
$as_echo_n "checking $2 presence... " >&6; }
1695
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1696
/* end confdefs.h. */
1699
if ac_fn_c_try_cpp "$LINENO"; then :
1700
ac_header_preproc=yes
1702
ac_header_preproc=no
1704
rm -f conftest.err conftest.i conftest.$ac_ext
1705
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1706
$as_echo "$ac_header_preproc" >&6; }
1708
# So? What about this header?
1709
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1711
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1712
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1713
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1714
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1717
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1718
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1719
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1720
$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1721
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1722
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1723
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1724
$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1725
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1726
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1727
( $as_echo "## ------------------------------------- ##
1728
## Report this to w1hkj AT w1hkj DOT com ##
1729
## ------------------------------------- ##"
1730
) | sed "s/^/$as_me: WARNING: /" >&2
1733
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1734
$as_echo_n "checking for $2... " >&6; }
1735
if eval \${$3+:} false; then :
1736
$as_echo_n "(cached) " >&6
1738
eval "$3=\$ac_header_compiler"
1741
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1742
$as_echo "$ac_res" >&6; }
1744
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1746
} # ac_fn_c_check_header_mongrel
1748
# ac_fn_c_try_run LINENO
1749
# ----------------------
1750
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1751
# that executables *can* be run.
1754
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1755
if { { ac_try="$ac_link"
1757
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1758
*) ac_try_echo=$ac_try;;
1760
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1761
$as_echo "$ac_try_echo"; } >&5
1762
(eval "$ac_link") 2>&5
1764
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1765
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1766
{ { case "(($ac_try" in
1767
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1768
*) ac_try_echo=$ac_try;;
1770
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1771
$as_echo "$ac_try_echo"; } >&5
1772
(eval "$ac_try") 2>&5
1774
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1775
test $ac_status = 0; }; }; then :
1778
$as_echo "$as_me: program exited with status $ac_status" >&5
1779
$as_echo "$as_me: failed program was:" >&5
1780
sed 's/^/| /' conftest.$ac_ext >&5
1782
ac_retval=$ac_status
1784
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1785
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1786
as_fn_set_status $ac_retval
1790
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1791
# -------------------------------------------------------
1792
# Tests whether HEADER exists and can be compiled using the include files in
1793
# INCLUDES, setting the cache variable VAR accordingly.
1794
ac_fn_c_check_header_compile ()
1796
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1798
$as_echo_n "checking for $2... " >&6; }
1799
if eval \${$3+:} false; then :
1800
$as_echo_n "(cached) " >&6
1802
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1803
/* end confdefs.h. */
1807
if ac_fn_c_try_compile "$LINENO"; then :
1812
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1815
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1816
$as_echo "$ac_res" >&6; }
1817
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1819
} # ac_fn_c_check_header_compile
1821
# ac_fn_c_try_link LINENO
1822
# -----------------------
1823
# Try to link conftest.$ac_ext, and return whether this succeeded.
1826
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1827
rm -f conftest.$ac_objext conftest$ac_exeext
1828
if { { ac_try="$ac_link"
1830
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1831
*) ac_try_echo=$ac_try;;
1833
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1834
$as_echo "$ac_try_echo"; } >&5
1835
(eval "$ac_link") 2>conftest.err
1837
if test -s conftest.err; then
1838
grep -v '^ *+' conftest.err >conftest.er1
1839
cat conftest.er1 >&5
1840
mv -f conftest.er1 conftest.err
1842
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1843
test $ac_status = 0; } && {
1844
test -z "$ac_c_werror_flag" ||
1845
test ! -s conftest.err
1846
} && test -s conftest$ac_exeext && {
1847
test "$cross_compiling" = yes ||
1848
$as_test_x conftest$ac_exeext
1852
$as_echo "$as_me: failed program was:" >&5
1853
sed 's/^/| /' conftest.$ac_ext >&5
1857
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1858
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1859
# interfere with the next link command; also delete a directory that is
1860
# left behind by Apple's compiler. We do this before executing the actions.
1861
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1862
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1863
as_fn_set_status $ac_retval
1865
} # ac_fn_c_try_link
1867
# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1868
# -------------------------------------------
1869
# Tests whether TYPE exists after having included INCLUDES, setting cache
1870
# variable VAR accordingly.
1871
ac_fn_c_check_type ()
1873
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1874
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1875
$as_echo_n "checking for $2... " >&6; }
1876
if eval \${$3+:} false; then :
1877
$as_echo_n "(cached) " >&6
1880
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1881
/* end confdefs.h. */
1892
if ac_fn_c_try_compile "$LINENO"; then :
1893
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1894
/* end confdefs.h. */
1905
if ac_fn_c_try_compile "$LINENO"; then :
1910
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1912
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1915
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1916
$as_echo "$ac_res" >&6; }
1917
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1919
} # ac_fn_c_check_type
1921
# ac_fn_c_find_intX_t LINENO BITS VAR
1922
# -----------------------------------
1923
# Finds a signed integer type with width BITS, setting cache variable VAR
1925
ac_fn_c_find_intX_t ()
1927
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1928
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
1929
$as_echo_n "checking for int$2_t... " >&6; }
1930
if eval \${$3+:} false; then :
1931
$as_echo_n "(cached) " >&6
1934
# Order is important - never check a type that is potentially smaller
1935
# than half of the expected target width.
1936
for ac_type in int$2_t 'int' 'long int' \
1937
'long long int' 'short int' 'signed char'; do
1938
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1939
/* end confdefs.h. */
1940
$ac_includes_default
1941
enum { N = $2 / 2 - 1 };
1945
static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
1952
if ac_fn_c_try_compile "$LINENO"; then :
1953
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1954
/* end confdefs.h. */
1955
$ac_includes_default
1956
enum { N = $2 / 2 - 1 };
1960
static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
1961
< ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
1968
if ac_fn_c_try_compile "$LINENO"; then :
1975
eval "$3=\$ac_type" ;;
1978
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1980
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1981
if eval test \"x\$"$3"\" = x"no"; then :
1989
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1990
$as_echo "$ac_res" >&6; }
1991
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1993
} # ac_fn_c_find_intX_t
1995
# ac_fn_c_find_uintX_t LINENO BITS VAR
1996
# ------------------------------------
1997
# Finds an unsigned integer type with width BITS, setting cache variable VAR
1999
ac_fn_c_find_uintX_t ()
2001
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2002
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2003
$as_echo_n "checking for uint$2_t... " >&6; }
2004
if eval \${$3+:} false; then :
2005
$as_echo_n "(cached) " >&6
2008
# Order is important - never check a type that is potentially smaller
2009
# than half of the expected target width.
2010
for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2011
'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2012
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2013
/* end confdefs.h. */
2014
$ac_includes_default
2018
static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2025
if ac_fn_c_try_compile "$LINENO"; then :
2030
eval "$3=\$ac_type" ;;
2033
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2034
if eval test \"x\$"$3"\" = x"no"; then :
2042
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2043
$as_echo "$ac_res" >&6; }
2044
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2046
} # ac_fn_c_find_uintX_t
2048
# ac_fn_c_check_func LINENO FUNC VAR
2049
# ----------------------------------
2050
# Tests whether FUNC exists, setting the cache variable VAR accordingly
2051
ac_fn_c_check_func ()
2053
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2054
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2055
$as_echo_n "checking for $2... " >&6; }
2056
if eval \${$3+:} false; then :
2057
$as_echo_n "(cached) " >&6
2059
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2060
/* end confdefs.h. */
2061
/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2062
For example, HP-UX 11i <limits.h> declares gettimeofday. */
2063
#define $2 innocuous_$2
2065
/* System header to define __stub macros and hopefully few prototypes,
2066
which can conflict with char $2 (); below.
2067
Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2068
<limits.h> exists even on freestanding compilers. */
2071
# include <limits.h>
2073
# include <assert.h>
2078
/* Override any GCC internal prototype to avoid an error.
2079
Use char because int might match the return type of a GCC
2080
builtin and then its argument prototype would still apply. */
2085
/* The GNU C library defines this for functions which it implements
2086
to always fail with ENOSYS. Some functions are actually named
2087
something starting with __ and the normal name is an alias. */
2088
#if defined __stub_$2 || defined __stub___$2
2100
if ac_fn_c_try_link "$LINENO"; then :
2105
rm -f core conftest.err conftest.$ac_objext \
2106
conftest$ac_exeext conftest.$ac_ext
2109
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2110
$as_echo "$ac_res" >&6; }
2111
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2113
} # ac_fn_c_check_func
2115
# ac_fn_cxx_try_link LINENO
2116
# -------------------------
2117
# Try to link conftest.$ac_ext, and return whether this succeeded.
2118
ac_fn_cxx_try_link ()
2120
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2121
rm -f conftest.$ac_objext conftest$ac_exeext
2122
if { { ac_try="$ac_link"
2124
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2125
*) ac_try_echo=$ac_try;;
2127
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2128
$as_echo "$ac_try_echo"; } >&5
2129
(eval "$ac_link") 2>conftest.err
2131
if test -s conftest.err; then
2132
grep -v '^ *+' conftest.err >conftest.er1
2133
cat conftest.er1 >&5
2134
mv -f conftest.er1 conftest.err
2136
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2137
test $ac_status = 0; } && {
2138
test -z "$ac_cxx_werror_flag" ||
2139
test ! -s conftest.err
2140
} && test -s conftest$ac_exeext && {
2141
test "$cross_compiling" = yes ||
2142
$as_test_x conftest$ac_exeext
2146
$as_echo "$as_me: failed program was:" >&5
2147
sed 's/^/| /' conftest.$ac_ext >&5
2151
# Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2152
# created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2153
# interfere with the next link command; also delete a directory that is
2154
# left behind by Apple's compiler. We do this before executing the actions.
2155
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2156
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2157
as_fn_set_status $ac_retval
2159
} # ac_fn_cxx_try_link
2160
cat >config.log <<_ACEOF
2161
This file contains any messages produced by compilers while
2162
running configure, to aid debugging if configure makes a mistake.
2164
It was created by FLRIG $as_me 1.3.15, which was
2165
generated by GNU Autoconf 2.68. Invocation command line was
2177
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2178
uname -m = `(uname -m) 2>/dev/null || echo unknown`
2179
uname -r = `(uname -r) 2>/dev/null || echo unknown`
2180
uname -s = `(uname -s) 2>/dev/null || echo unknown`
2181
uname -v = `(uname -v) 2>/dev/null || echo unknown`
2183
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2184
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2186
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2187
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2188
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2189
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2190
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2191
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2192
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2196
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2200
test -z "$as_dir" && as_dir=.
2201
$as_echo "PATH: $as_dir"
2217
# Keep a trace of the command line.
2218
# Strip out --no-create and --no-recursion so they do not pile up.
2219
# Strip out --silent because we don't want to record it for future runs.
2220
# Also quote any args containing shell meta-characters.
2221
# Make two passes to allow for proper duplicate-argument suppression.
2225
ac_must_keep_next=false
2231
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2232
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
2233
| -silent | --silent | --silen | --sile | --sil)
2236
ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2239
1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2241
as_fn_append ac_configure_args1 " '$ac_arg'"
2242
if test $ac_must_keep_next = true; then
2243
ac_must_keep_next=false # Got value, back to normal.
2246
*=* | --config-cache | -C | -disable-* | --disable-* \
2247
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2248
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2249
| -with-* | --with-* | -without-* | --without-* | --x)
2250
case "$ac_configure_args0 " in
2251
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2254
-* ) ac_must_keep_next=true ;;
2257
as_fn_append ac_configure_args " '$ac_arg'"
2262
{ ac_configure_args0=; unset ac_configure_args0;}
2263
{ ac_configure_args1=; unset ac_configure_args1;}
2265
# When interrupted or exit'd, cleanup temporary files, and complete
2266
# config.log. We remove comments because anyway the quotes in there
2267
# would cause problems or look ugly.
2268
# WARNING: Use '\'' to represent an apostrophe within the trap.
2269
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2270
trap 'exit_status=$?
2271
# Save into config.log some information that might help in debugging.
2275
$as_echo "## ---------------- ##
2276
## Cache variables. ##
2277
## ---------------- ##"
2279
# The following way of writing the cache mishandles newlines in values,
2281
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2282
eval ac_val=\$$ac_var
2286
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2287
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2290
_ | IFS | as_nl) ;; #(
2291
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2292
*) { eval $ac_var=; unset $ac_var;} ;;
2297
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2298
*${as_nl}ac_space=\ *)
2300
"s/'\''/'\''\\\\'\'''\''/g;
2301
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2304
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2311
$as_echo "## ----------------- ##
2312
## Output variables. ##
2313
## ----------------- ##"
2315
for ac_var in $ac_subst_vars
2317
eval ac_val=\$$ac_var
2319
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2321
$as_echo "$ac_var='\''$ac_val'\''"
2325
if test -n "$ac_subst_files"; then
2326
$as_echo "## ------------------- ##
2327
## File substitutions. ##
2328
## ------------------- ##"
2330
for ac_var in $ac_subst_files
2332
eval ac_val=\$$ac_var
2334
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2336
$as_echo "$ac_var='\''$ac_val'\''"
2341
if test -s confdefs.h; then
2342
$as_echo "## ----------- ##
2349
test "$ac_signal" != 0 &&
2350
$as_echo "$as_me: caught signal $ac_signal"
2351
$as_echo "$as_me: exit $exit_status"
2353
rm -f core *.core core.conftest.* &&
2354
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2357
for ac_signal in 1 2 13 15; do
2358
trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2362
# confdefs.h avoids OS command line length limits that DEFS can exceed.
2363
rm -f -r conftest* confdefs.h
2365
$as_echo "/* confdefs.h */" > confdefs.h
2367
# Predefined preprocessor variables.
2369
cat >>confdefs.h <<_ACEOF
2370
#define PACKAGE_NAME "$PACKAGE_NAME"
2373
cat >>confdefs.h <<_ACEOF
2374
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2377
cat >>confdefs.h <<_ACEOF
2378
#define PACKAGE_VERSION "$PACKAGE_VERSION"
2381
cat >>confdefs.h <<_ACEOF
2382
#define PACKAGE_STRING "$PACKAGE_STRING"
2385
cat >>confdefs.h <<_ACEOF
2386
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2389
cat >>confdefs.h <<_ACEOF
2390
#define PACKAGE_URL "$PACKAGE_URL"
2394
# Let the site file select an alternate cache file if it wants to.
2395
# Prefer an explicitly selected file to automatically selected ones.
2398
if test -n "$CONFIG_SITE"; then
2399
# We do not want a PATH search for config.site.
2400
case $CONFIG_SITE in #((
2401
-*) ac_site_file1=./$CONFIG_SITE;;
2402
*/*) ac_site_file1=$CONFIG_SITE;;
2403
*) ac_site_file1=./$CONFIG_SITE;;
2405
elif test "x$prefix" != xNONE; then
2406
ac_site_file1=$prefix/share/config.site
2407
ac_site_file2=$prefix/etc/config.site
2409
ac_site_file1=$ac_default_prefix/share/config.site
2410
ac_site_file2=$ac_default_prefix/etc/config.site
2412
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2414
test "x$ac_site_file" = xNONE && continue
2415
if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2416
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2417
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2418
sed 's/^/| /' "$ac_site_file" >&5
2420
|| { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2421
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2422
as_fn_error $? "failed to load site script $ac_site_file
2423
See \`config.log' for more details" "$LINENO" 5; }
2427
if test -r "$cache_file"; then
2428
# Some versions of bash will fail to source /dev/null (special files
2429
# actually), so we avoid doing that. DJGPP emulates it as a regular file.
2430
if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2431
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2432
$as_echo "$as_me: loading cache $cache_file" >&6;}
2434
[\\/]* | ?:[\\/]* ) . "$cache_file";;
2435
*) . "./$cache_file";;
2439
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2440
$as_echo "$as_me: creating cache $cache_file" >&6;}
2444
# Check that the precious variables saved in the cache have kept the same
2446
ac_cache_corrupted=false
2447
for ac_var in $ac_precious_vars; do
2448
eval ac_old_set=\$ac_cv_env_${ac_var}_set
2449
eval ac_new_set=\$ac_env_${ac_var}_set
2450
eval ac_old_val=\$ac_cv_env_${ac_var}_value
2451
eval ac_new_val=\$ac_env_${ac_var}_value
2452
case $ac_old_set,$ac_new_set in
2454
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2455
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2456
ac_cache_corrupted=: ;;
2458
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2459
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2460
ac_cache_corrupted=: ;;
2463
if test "x$ac_old_val" != "x$ac_new_val"; then
2464
# differences in whitespace do not lead to failure.
2465
ac_old_val_w=`echo x $ac_old_val`
2466
ac_new_val_w=`echo x $ac_new_val`
2467
if test "$ac_old_val_w" != "$ac_new_val_w"; then
2468
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2469
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2470
ac_cache_corrupted=:
2472
{ $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2473
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2474
eval $ac_var=\$ac_old_val
2476
{ $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2477
$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2478
{ $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2479
$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2482
# Pass precious variables to config.status.
2483
if test "$ac_new_set" = set; then
2485
*\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2486
*) ac_arg=$ac_var=$ac_new_val ;;
2488
case " $ac_configure_args " in
2489
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2490
*) as_fn_append ac_configure_args " '$ac_arg'" ;;
2494
if $ac_cache_corrupted; then
2495
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2496
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2497
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2498
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2499
as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2501
## -------------------- ##
2502
## Main body of script. ##
2503
## -------------------- ##
2506
ac_cpp='$CPP $CPPFLAGS'
2507
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2508
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2509
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2513
FLRIG_VERSION_MAJOR=1
2515
FLRIG_VERSION_MINOR=3
2517
FLRIG_VERSION_PATCH=.15
2519
FLRIG_VERSION=1.3.15
2523
$as_echo "#define FLRIG_VERSION_MAJOR 1" >>confdefs.h
2526
$as_echo "#define FLRIG_VERSION_MINOR 3" >>confdefs.h
2529
$as_echo "#define FLRIG_VERSION_PATCH \".15\"" >>confdefs.h
2532
$as_echo "#define FLRIG_VERSION \"1.3.15\"" >>confdefs.h
2535
AC_CONFIG_ARGS=$ac_configure_args
2538
for ac_dir in build-aux "$srcdir"/build-aux; do
2539
if test -f "$ac_dir/install-sh"; then
2541
ac_install_sh="$ac_aux_dir/install-sh -c"
2543
elif test -f "$ac_dir/install.sh"; then
2545
ac_install_sh="$ac_aux_dir/install.sh -c"
2547
elif test -f "$ac_dir/shtool"; then
2549
ac_install_sh="$ac_aux_dir/shtool install -c"
2553
if test -z "$ac_aux_dir"; then
2554
as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2557
# These three variables are undocumented and unsupported,
2558
# and are intended to be withdrawn in a future Autoconf release.
2559
# They can cause serious problems if a builder's source tree is in a directory
2560
# whose full name contains unusual characters.
2561
ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2562
ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2563
ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2567
# define build, build_cpu, build_vendor, build_os
2568
# Make sure we can run config.sub.
2569
$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2570
as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2572
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2573
$as_echo_n "checking build system type... " >&6; }
2574
if ${ac_cv_build+:} false; then :
2575
$as_echo_n "(cached) " >&6
2577
ac_build_alias=$build_alias
2578
test "x$ac_build_alias" = x &&
2579
ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2580
test "x$ac_build_alias" = x &&
2581
as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2582
ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2583
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2586
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2587
$as_echo "$ac_cv_build" >&6; }
2588
case $ac_cv_build in
2590
*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2593
ac_save_IFS=$IFS; IFS='-'
2599
# Remember, the first character of IFS is used to create $*,
2600
# except with old shells:
2603
case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2606
# define host, host_cpu, host_vendor, host_os
2607
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2608
$as_echo_n "checking host system type... " >&6; }
2609
if ${ac_cv_host+:} false; then :
2610
$as_echo_n "(cached) " >&6
2612
if test "x$host_alias" = x; then
2613
ac_cv_host=$ac_cv_build
2615
ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2616
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2620
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2621
$as_echo "$ac_cv_host" >&6; }
2624
*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2627
ac_save_IFS=$IFS; IFS='-'
2633
# Remember, the first character of IFS is used to create $*,
2634
# except with old shells:
2637
case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2640
# define target, target_cpu, target_vendor, target_os
2641
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2642
$as_echo_n "checking target system type... " >&6; }
2643
if ${ac_cv_target+:} false; then :
2644
$as_echo_n "(cached) " >&6
2646
if test "x$target_alias" = x; then
2647
ac_cv_target=$ac_cv_host
2649
ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2650
as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2654
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2655
$as_echo "$ac_cv_target" >&6; }
2656
case $ac_cv_target in
2658
*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2660
target=$ac_cv_target
2661
ac_save_IFS=$IFS; IFS='-'
2667
# Remember, the first character of IFS is used to create $*,
2668
# except with old shells:
2671
case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2674
# The aliases save the names the user supplied, while $host etc.
2675
# will get canonicalized.
2676
test -n "$target_alias" &&
2677
test "$program_prefix$program_suffix$program_transform_name" = \
2679
program_prefix=${target_alias}-
2681
am__api_version='1.11'
2683
# Find a good install program. We prefer a C program (faster),
2684
# so one script is as good as another. But avoid the broken or
2685
# incompatible versions:
2686
# SysV /etc/install, /usr/sbin/install
2687
# SunOS /usr/etc/install
2688
# IRIX /sbin/install
2690
# AmigaOS /C/install, which installs bootblocks on floppy discs
2691
# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2692
# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2693
# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2694
# OS/2's system install, which has a completely different semantic
2695
# ./install, which can be erroneously created by make from ./install.sh.
2696
# Reject install programs that cannot install multiple files.
2697
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2698
$as_echo_n "checking for a BSD-compatible install... " >&6; }
2699
if test -z "$INSTALL"; then
2700
if ${ac_cv_path_install+:} false; then :
2701
$as_echo_n "(cached) " >&6
2703
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2707
test -z "$as_dir" && as_dir=.
2708
# Account for people who put trailing slashes in PATH elements.
2709
case $as_dir/ in #((
2710
./ | .// | /[cC]/* | \
2711
/etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2712
?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2715
# OSF1 and SCO ODT 3.0 have their own names for install.
2716
# Don't use installbsd from OSF since it installs stuff as root
2718
for ac_prog in ginstall scoinst install; do
2719
for ac_exec_ext in '' $ac_executable_extensions; do
2720
if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2721
if test $ac_prog = install &&
2722
grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2723
# AIX install. It has an incompatible calling convention.
2725
elif test $ac_prog = install &&
2726
grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2727
# program-specific install script used by HP pwplus--don't use.
2730
rm -rf conftest.one conftest.two conftest.dir
2731
echo one > conftest.one
2732
echo two > conftest.two
2734
if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2735
test -s conftest.one && test -s conftest.two &&
2736
test -s conftest.dir/conftest.one &&
2737
test -s conftest.dir/conftest.two
2739
ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2752
rm -rf conftest.one conftest.two conftest.dir
2755
if test "${ac_cv_path_install+set}" = set; then
2756
INSTALL=$ac_cv_path_install
2758
# As a last resort, use the slow shell script. Don't cache a
2759
# value for INSTALL within a source directory, because that will
2760
# break other packages using the cache if that directory is
2761
# removed, or if the value is a relative name.
2762
INSTALL=$ac_install_sh
2765
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2766
$as_echo "$INSTALL" >&6; }
2768
# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2769
# It thinks the first close brace ends the variable substitution.
2770
test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2772
test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2774
test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2776
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2777
$as_echo_n "checking whether build environment is sane... " >&6; }
2780
echo timestamp > conftest.file
2781
# Reject unsafe characters in $srcdir or the absolute working directory
2782
# name. Accept space and tab only in the latter.
2786
*[\\\"\#\$\&\'\`$am_lf]*)
2787
as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2790
*[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2791
as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2794
# Do `set' in a subshell so we don't clobber the current shell's
2795
# arguments. Must try -L first in case configure is actually a
2796
# symlink; some systems play weird games with the mod time of symlinks
2797
# (eg FreeBSD returns the mod time of the symlink's containing
2800
set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2801
if test "$*" = "X"; then
2803
set X `ls -t "$srcdir/configure" conftest.file`
2806
if test "$*" != "X $srcdir/configure conftest.file" \
2807
&& test "$*" != "X conftest.file $srcdir/configure"; then
2809
# If neither matched, then we have a broken ls. This can happen
2810
# if, for instance, CONFIG_SHELL is bash and it inherits a
2811
# broken ls alias from the environment. This has actually
2812
# happened. Such a system could not be considered "sane".
2813
as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2814
alias in your environment" "$LINENO" 5
2817
test "$2" = conftest.file
2823
as_fn_error $? "newly created file is older than distributed files!
2824
Check your system clock" "$LINENO" 5
2826
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2827
$as_echo "yes" >&6; }
2828
test "$program_prefix" != NONE &&
2829
program_transform_name="s&^&$program_prefix&;$program_transform_name"
2830
# Use a double $ so make ignores it.
2831
test "$program_suffix" != NONE &&
2832
program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2833
# Double any \ or $.
2834
# By default was `s,x,x', remove it if useless.
2835
ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2836
program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2838
# expand $ac_aux_dir to an absolute path
2839
am_aux_dir=`cd $ac_aux_dir && pwd`
2841
if test x"${MISSING+set}" != xset; then
2844
MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2846
MISSING="\${SHELL} $am_aux_dir/missing" ;;
2849
# Use eval to expand $SHELL
2850
if eval "$MISSING --run true"; then
2851
am_missing_run="$MISSING --run "
2854
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2855
$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2858
if test x"${install_sh}" != xset; then
2861
install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2863
install_sh="\${SHELL} $am_aux_dir/install-sh"
2867
# Installed binaries are usually stripped using `strip' when the user
2868
# run `make install-strip'. However `strip' might not be the right
2869
# tool to use in cross-compilation environments, therefore Automake
2870
# will honor the `STRIP' environment variable to overrule this program.
2871
if test "$cross_compiling" != no; then
2872
if test -n "$ac_tool_prefix"; then
2873
# Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2874
set dummy ${ac_tool_prefix}strip; ac_word=$2
2875
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2876
$as_echo_n "checking for $ac_word... " >&6; }
2877
if ${ac_cv_prog_STRIP+:} false; then :
2878
$as_echo_n "(cached) " >&6
2880
if test -n "$STRIP"; then
2881
ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2883
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2887
test -z "$as_dir" && as_dir=.
2888
for ac_exec_ext in '' $ac_executable_extensions; do
2889
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2890
ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2891
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2900
STRIP=$ac_cv_prog_STRIP
2901
if test -n "$STRIP"; then
2902
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2903
$as_echo "$STRIP" >&6; }
2905
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2906
$as_echo "no" >&6; }
2911
if test -z "$ac_cv_prog_STRIP"; then
2913
# Extract the first word of "strip", so it can be a program name with args.
2914
set dummy strip; ac_word=$2
2915
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2916
$as_echo_n "checking for $ac_word... " >&6; }
2917
if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2918
$as_echo_n "(cached) " >&6
2920
if test -n "$ac_ct_STRIP"; then
2921
ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2923
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2927
test -z "$as_dir" && as_dir=.
2928
for ac_exec_ext in '' $ac_executable_extensions; do
2929
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2930
ac_cv_prog_ac_ct_STRIP="strip"
2931
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2940
ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2941
if test -n "$ac_ct_STRIP"; then
2942
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2943
$as_echo "$ac_ct_STRIP" >&6; }
2945
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2946
$as_echo "no" >&6; }
2949
if test "x$ac_ct_STRIP" = x; then
2952
case $cross_compiling:$ac_tool_warned in
2954
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2955
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2956
ac_tool_warned=yes ;;
2961
STRIP="$ac_cv_prog_STRIP"
2965
INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2967
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2968
$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2969
if test -z "$MKDIR_P"; then
2970
if ${ac_cv_path_mkdir+:} false; then :
2971
$as_echo_n "(cached) " >&6
2973
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2974
for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2977
test -z "$as_dir" && as_dir=.
2978
for ac_prog in mkdir gmkdir; do
2979
for ac_exec_ext in '' $ac_executable_extensions; do
2980
{ test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2981
case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2982
'mkdir (GNU coreutils) '* | \
2983
'mkdir (coreutils) '* | \
2984
'mkdir (fileutils) '4.1*)
2985
ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2995
test -d ./--version && rmdir ./--version
2996
if test "${ac_cv_path_mkdir+set}" = set; then
2997
MKDIR_P="$ac_cv_path_mkdir -p"
2999
# As a last resort, use the slow shell script. Don't cache a
3000
# value for MKDIR_P within a source directory, because that will
3001
# break other packages using the cache if that directory is
3002
# removed, or if the value is a relative name.
3003
MKDIR_P="$ac_install_sh -d"
3006
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3007
$as_echo "$MKDIR_P" >&6; }
3011
[\\/$]* | ?:[\\/]*) ;;
3012
*/*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3015
for ac_prog in gawk mawk nawk awk
3017
# Extract the first word of "$ac_prog", so it can be a program name with args.
3018
set dummy $ac_prog; ac_word=$2
3019
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3020
$as_echo_n "checking for $ac_word... " >&6; }
3021
if ${ac_cv_prog_AWK+:} false; then :
3022
$as_echo_n "(cached) " >&6
3024
if test -n "$AWK"; then
3025
ac_cv_prog_AWK="$AWK" # Let the user override the test.
3027
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3031
test -z "$as_dir" && as_dir=.
3032
for ac_exec_ext in '' $ac_executable_extensions; do
3033
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3034
ac_cv_prog_AWK="$ac_prog"
3035
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3045
if test -n "$AWK"; then
3046
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3047
$as_echo "$AWK" >&6; }
3049
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3050
$as_echo "no" >&6; }
3054
test -n "$AWK" && break
3057
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3058
$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3060
ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3061
if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3062
$as_echo_n "(cached) " >&6
3064
cat >conftest.make <<\_ACEOF
3067
@echo '@@@%%%=$(MAKE)=@@@%%%'
3069
# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3070
case `${MAKE-make} -f conftest.make 2>/dev/null` in
3072
eval ac_cv_prog_make_${ac_make}_set=yes;;
3074
eval ac_cv_prog_make_${ac_make}_set=no;;
3078
if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3079
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3080
$as_echo "yes" >&6; }
3083
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3084
$as_echo "no" >&6; }
3085
SET_MAKE="MAKE=${MAKE-make}"
3088
rm -rf .tst 2>/dev/null
3089
mkdir .tst 2>/dev/null
3090
if test -d .tst; then
3095
rmdir .tst 2>/dev/null
3097
if test "`cd $srcdir && pwd`" != "`pwd`"; then
3098
# Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3099
# is not polluted with repeated "-I."
3100
am__isrc=' -I$(srcdir)'
3101
# test to see if srcdir already configured
3102
if test -f $srcdir/config.status; then
3103
as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3107
# test whether we have cygpath
3108
if test -z "$CYGPATH_W"; then
3109
if (cygpath --version) >/dev/null 2>/dev/null; then
3110
CYGPATH_W='cygpath -w'
3117
# Define the identity of the package.
3122
cat >>confdefs.h <<_ACEOF
3123
#define PACKAGE "$PACKAGE"
3127
cat >>confdefs.h <<_ACEOF
3128
#define VERSION "$VERSION"
3131
# Some tools Automake needs.
3133
ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3136
AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3139
AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3142
AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3145
MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3147
# We need awk for the "check" target. The system "awk" is bad on
3149
# Always define AMTAR for backward compatibility. Yes, it's still used
3150
# in the wild :-( We should find a proper way to deprecate it ...
3153
am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3160
#change the next config item for the specific application src's
3162
ac_config_headers="$ac_config_headers src/config.h"
3166
# Checks for programs.
3168
ac_cpp='$CXXCPP $CPPFLAGS'
3169
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3170
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3171
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3172
if test -z "$CXX"; then
3173
if test -n "$CCC"; then
3176
if test -n "$ac_tool_prefix"; then
3177
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3179
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3180
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3181
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3182
$as_echo_n "checking for $ac_word... " >&6; }
3183
if ${ac_cv_prog_CXX+:} false; then :
3184
$as_echo_n "(cached) " >&6
3186
if test -n "$CXX"; then
3187
ac_cv_prog_CXX="$CXX" # Let the user override the test.
3189
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3193
test -z "$as_dir" && as_dir=.
3194
for ac_exec_ext in '' $ac_executable_extensions; do
3195
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3196
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3197
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3207
if test -n "$CXX"; then
3208
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3209
$as_echo "$CXX" >&6; }
3211
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3212
$as_echo "no" >&6; }
3216
test -n "$CXX" && break
3219
if test -z "$CXX"; then
3221
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3223
# Extract the first word of "$ac_prog", so it can be a program name with args.
3224
set dummy $ac_prog; ac_word=$2
3225
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3226
$as_echo_n "checking for $ac_word... " >&6; }
3227
if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3228
$as_echo_n "(cached) " >&6
3230
if test -n "$ac_ct_CXX"; then
3231
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3233
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3237
test -z "$as_dir" && as_dir=.
3238
for ac_exec_ext in '' $ac_executable_extensions; do
3239
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3240
ac_cv_prog_ac_ct_CXX="$ac_prog"
3241
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3250
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3251
if test -n "$ac_ct_CXX"; then
3252
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3253
$as_echo "$ac_ct_CXX" >&6; }
3255
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3256
$as_echo "no" >&6; }
3260
test -n "$ac_ct_CXX" && break
3263
if test "x$ac_ct_CXX" = x; then
3266
case $cross_compiling:$ac_tool_warned in
3268
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3269
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3270
ac_tool_warned=yes ;;
3278
# Provide some information about the compiler.
3279
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3282
for ac_option in --version -v -V -qversion; do
3283
{ { ac_try="$ac_compiler $ac_option >&5"
3285
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3286
*) ac_try_echo=$ac_try;;
3288
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3289
$as_echo "$ac_try_echo"; } >&5
3290
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
3292
if test -s conftest.err; then
3294
... rest of stderr output deleted ...
3295
10q' conftest.err >conftest.er1
3296
cat conftest.er1 >&5
3298
rm -f conftest.er1 conftest.err
3299
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3300
test $ac_status = 0; }
3303
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3304
/* end confdefs.h. */
3314
ac_clean_files_save=$ac_clean_files
3315
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3316
# Try to create an executable without -o first, disregard a.out.
3317
# It will help us diagnose broken compilers, and finding out an intuition
3319
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3320
$as_echo_n "checking whether the C++ compiler works... " >&6; }
3321
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3323
# The possible output files:
3324
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3327
for ac_file in $ac_files
3330
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3331
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
3336
if { { ac_try="$ac_link_default"
3338
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3339
*) ac_try_echo=$ac_try;;
3341
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3342
$as_echo "$ac_try_echo"; } >&5
3343
(eval "$ac_link_default") 2>&5
3345
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3346
test $ac_status = 0; }; then :
3347
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3348
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3349
# in a Makefile. We should not override ac_cv_exeext if it was cached,
3350
# so that the user can short-circuit this test for compilers unknown to
3352
for ac_file in $ac_files ''
3354
test -f "$ac_file" || continue
3356
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3359
# We found the default executable, but exeext='' is most
3363
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3365
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3367
# We set ac_cv_exeext here because the later test for it is not
3368
# safe: cross compilers may not add the suffix if given an `-o'
3369
# argument, so we may need to know it at that point already.
3370
# Even if this section looks crufty: it has the advantage of
3377
test "$ac_cv_exeext" = no && ac_cv_exeext=
3382
if test -z "$ac_file"; then :
3383
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3384
$as_echo "no" >&6; }
3385
$as_echo "$as_me: failed program was:" >&5
3386
sed 's/^/| /' conftest.$ac_ext >&5
3388
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3389
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3390
as_fn_error 77 "C++ compiler cannot create executables
3391
See \`config.log' for more details" "$LINENO" 5; }
3393
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3394
$as_echo "yes" >&6; }
3396
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3397
$as_echo_n "checking for C++ compiler default output file name... " >&6; }
3398
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3399
$as_echo "$ac_file" >&6; }
3400
ac_exeext=$ac_cv_exeext
3402
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3403
ac_clean_files=$ac_clean_files_save
3404
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3405
$as_echo_n "checking for suffix of executables... " >&6; }
3406
if { { ac_try="$ac_link"
3408
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3409
*) ac_try_echo=$ac_try;;
3411
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3412
$as_echo "$ac_try_echo"; } >&5
3413
(eval "$ac_link") 2>&5
3415
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3416
test $ac_status = 0; }; then :
3417
# If both `conftest.exe' and `conftest' are `present' (well, observable)
3418
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3419
# work properly (i.e., refer to `conftest.exe'), while it won't with
3421
for ac_file in conftest.exe conftest conftest.*; do
3422
test -f "$ac_file" || continue
3424
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3425
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3431
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3432
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3433
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3434
See \`config.log' for more details" "$LINENO" 5; }
3436
rm -f conftest conftest$ac_cv_exeext
3437
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3438
$as_echo "$ac_cv_exeext" >&6; }
3440
rm -f conftest.$ac_ext
3441
EXEEXT=$ac_cv_exeext
3443
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3444
/* end confdefs.h. */
3449
FILE *f = fopen ("conftest.out", "w");
3450
return ferror (f) || fclose (f) != 0;
3456
ac_clean_files="$ac_clean_files conftest.out"
3457
# Check that the compiler produces executables we can run. If not, either
3458
# the compiler is broken, or we cross compile.
3459
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3460
$as_echo_n "checking whether we are cross compiling... " >&6; }
3461
if test "$cross_compiling" != yes; then
3462
{ { ac_try="$ac_link"
3464
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3465
*) ac_try_echo=$ac_try;;
3467
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3468
$as_echo "$ac_try_echo"; } >&5
3469
(eval "$ac_link") 2>&5
3471
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3472
test $ac_status = 0; }
3473
if { ac_try='./conftest$ac_cv_exeext'
3474
{ { case "(($ac_try" in
3475
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3476
*) ac_try_echo=$ac_try;;
3478
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3479
$as_echo "$ac_try_echo"; } >&5
3480
(eval "$ac_try") 2>&5
3482
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3483
test $ac_status = 0; }; }; then
3486
if test "$cross_compiling" = maybe; then
3489
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3490
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3491
as_fn_error $? "cannot run C++ compiled programs.
3492
If you meant to cross compile, use \`--host'.
3493
See \`config.log' for more details" "$LINENO" 5; }
3497
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3498
$as_echo "$cross_compiling" >&6; }
3500
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3501
ac_clean_files=$ac_clean_files_save
3502
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3503
$as_echo_n "checking for suffix of object files... " >&6; }
3504
if ${ac_cv_objext+:} false; then :
3505
$as_echo_n "(cached) " >&6
3507
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3508
/* end confdefs.h. */
3518
rm -f conftest.o conftest.obj
3519
if { { ac_try="$ac_compile"
3521
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3522
*) ac_try_echo=$ac_try;;
3524
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3525
$as_echo "$ac_try_echo"; } >&5
3526
(eval "$ac_compile") 2>&5
3528
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3529
test $ac_status = 0; }; then :
3530
for ac_file in conftest.o conftest.obj conftest.*; do
3531
test -f "$ac_file" || continue;
3533
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3534
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3539
$as_echo "$as_me: failed program was:" >&5
3540
sed 's/^/| /' conftest.$ac_ext >&5
3542
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3543
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3544
as_fn_error $? "cannot compute suffix of object files: cannot compile
3545
See \`config.log' for more details" "$LINENO" 5; }
3547
rm -f conftest.$ac_cv_objext conftest.$ac_ext
3549
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3550
$as_echo "$ac_cv_objext" >&6; }
3551
OBJEXT=$ac_cv_objext
3553
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3554
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3555
if ${ac_cv_cxx_compiler_gnu+:} false; then :
3556
$as_echo_n "(cached) " >&6
3558
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3559
/* end confdefs.h. */
3572
if ac_fn_cxx_try_compile "$LINENO"; then :
3577
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3578
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3581
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3582
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3583
if test $ac_compiler_gnu = yes; then
3588
ac_test_CXXFLAGS=${CXXFLAGS+set}
3589
ac_save_CXXFLAGS=$CXXFLAGS
3590
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3591
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3592
if ${ac_cv_prog_cxx_g+:} false; then :
3593
$as_echo_n "(cached) " >&6
3595
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3596
ac_cxx_werror_flag=yes
3599
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3600
/* end confdefs.h. */
3610
if ac_fn_cxx_try_compile "$LINENO"; then :
3611
ac_cv_prog_cxx_g=yes
3614
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3615
/* end confdefs.h. */
3625
if ac_fn_cxx_try_compile "$LINENO"; then :
3628
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3630
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3631
/* end confdefs.h. */
3641
if ac_fn_cxx_try_compile "$LINENO"; then :
3642
ac_cv_prog_cxx_g=yes
3644
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3646
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3648
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3649
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3651
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3652
$as_echo "$ac_cv_prog_cxx_g" >&6; }
3653
if test "$ac_test_CXXFLAGS" = set; then
3654
CXXFLAGS=$ac_save_CXXFLAGS
3655
elif test $ac_cv_prog_cxx_g = yes; then
3656
if test "$GXX" = yes; then
3662
if test "$GXX" = yes; then
3669
ac_cpp='$CPP $CPPFLAGS'
3670
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3671
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3672
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3673
DEPDIR="${am__leading_dot}deps"
3675
ac_config_commands="$ac_config_commands depfiles"
3678
am_make=${MAKE-make}
3679
cat > confinc << 'END'
3681
@echo this is the am__doit target
3684
# If we don't find an include directive, just comment out the code.
3685
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3686
$as_echo_n "checking for style of include used by $am_make... " >&6; }
3690
# First try GNU make style include.
3691
echo "include confinc" > confmf
3692
# Ignore all kinds of additional output from `make'.
3693
case `$am_make -s -f confmf 2> /dev/null` in #(
3694
*the\ am__doit\ target*)
3700
# Now try BSD make style include.
3701
if test "$am__include" = "#"; then
3702
echo '.include "confinc"' > confmf
3703
case `$am_make -s -f confmf 2> /dev/null` in #(
3704
*the\ am__doit\ target*)
3705
am__include=.include
3713
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3714
$as_echo "$_am_result" >&6; }
3715
rm -f confinc confmf
3717
# Check whether --enable-dependency-tracking was given.
3718
if test "${enable_dependency_tracking+set}" = set; then :
3719
enableval=$enable_dependency_tracking;
3722
if test "x$enable_dependency_tracking" != xno; then
3723
am_depcomp="$ac_aux_dir/depcomp"
3727
if test "x$enable_dependency_tracking" != xno; then
3737
depcc="$CXX" am_compiler_list=
3739
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3740
$as_echo_n "checking dependency style of $depcc... " >&6; }
3741
if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
3742
$as_echo_n "(cached) " >&6
3744
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3745
# We make a subdir and do the tests there. Otherwise we can end up
3746
# making bogus files that we don't know about and never remove. For
3747
# instance it was reported that on HP-UX the gcc test will end up
3748
# making a dummy file named `D' -- because `-MD' means `put the output
3752
# Copy depcomp to subdir because otherwise we won't find it if we're
3753
# using a relative directory.
3754
cp "$am_depcomp" conftest.dir
3756
# We will build objects and dependencies in a subdirectory because
3757
# it helps to detect inapplicable dependency modes. For instance
3758
# both Tru64's cc and ICC support -MD to output dependencies as a
3759
# side effect of compilation, but ICC will put the dependencies in
3760
# the current directory while Tru64 will put them in the object
3764
am_cv_CXX_dependencies_compiler_type=none
3765
if test "$am_compiler_list" = ""; then
3766
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3769
case " $depcc " in #(
3770
*\ -arch\ *\ -arch\ *) am__universal=true ;;
3773
for depmode in $am_compiler_list; do
3774
# Setup a source with many dependencies, because some compilers
3775
# like to wrap large dependency lists on column 80 (with \), and
3776
# we should not choose a depcomp mode which is confused by this.
3778
# We need to recreate these files for each test, as the compiler may
3779
# overwrite some of them when testing with obscure command lines.
3780
# This happens at least with the AIX C compiler.
3782
for i in 1 2 3 4 5 6; do
3783
echo '#include "conftst'$i'.h"' >> sub/conftest.c
3784
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3785
# Solaris 8's {/usr,}/bin/sh.
3786
touch sub/conftst$i.h
3788
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3790
# We check with `-c' and `-o' for the sake of the "dashmstdout"
3791
# mode. It turns out that the SunPro C++ compiler does not properly
3792
# handle `-M -o', and we need to detect this. Also, some Intel
3793
# versions had trouble with output in subdirs
3794
am__obj=sub/conftest.${OBJEXT-o}
3795
am__minus_obj="-o $am__obj"
3798
# This depmode causes a compiler race in universal mode.
3799
test "$am__universal" = false || continue
3802
# after this tag, mechanisms are not by side-effect, so they'll
3803
# only be used when explicitly requested
3804
if test "x$enable_dependency_tracking" = xyes; then
3810
msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3811
# This compiler won't grok `-c -o', but also, the minuso test has
3812
# not run yet. These depmodes are late enough in the game, and
3813
# so weak that their functioning should not be impacted.
3814
am__obj=conftest.${OBJEXT-o}
3819
if depmode=$depmode \
3820
source=sub/conftest.c object=$am__obj \
3821
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3822
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3823
>/dev/null 2>conftest.err &&
3824
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3825
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3826
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3827
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3828
# icc doesn't choke on unknown options, it will just issue warnings
3829
# or remarks (even with -Werror). So we grep stderr for any message
3830
# that says an option was ignored or not supported.
3831
# When given -MP, icc 7.0 and 7.1 complain thusly:
3832
# icc: Command line warning: ignoring option '-M'; no argument required
3833
# The diagnosis changed in icc 8.0:
3834
# icc: Command line remark: option '-MP' not supported
3835
if (grep 'ignoring option' conftest.err ||
3836
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3837
am_cv_CXX_dependencies_compiler_type=$depmode
3846
am_cv_CXX_dependencies_compiler_type=none
3850
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3851
$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3852
CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3855
test "x$enable_dependency_tracking" != xno \
3856
&& test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3857
am__fastdepCXX_TRUE=
3858
am__fastdepCXX_FALSE='#'
3860
am__fastdepCXX_TRUE='#'
3861
am__fastdepCXX_FALSE=
3866
ac_cpp='$CPP $CPPFLAGS'
3867
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3868
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3869
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3870
if test -n "$ac_tool_prefix"; then
3871
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3872
set dummy ${ac_tool_prefix}gcc; ac_word=$2
3873
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3874
$as_echo_n "checking for $ac_word... " >&6; }
3875
if ${ac_cv_prog_CC+:} false; then :
3876
$as_echo_n "(cached) " >&6
3878
if test -n "$CC"; then
3879
ac_cv_prog_CC="$CC" # Let the user override the test.
3881
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3885
test -z "$as_dir" && as_dir=.
3886
for ac_exec_ext in '' $ac_executable_extensions; do
3887
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3888
ac_cv_prog_CC="${ac_tool_prefix}gcc"
3889
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3899
if test -n "$CC"; then
3900
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3901
$as_echo "$CC" >&6; }
3903
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3904
$as_echo "no" >&6; }
3909
if test -z "$ac_cv_prog_CC"; then
3911
# Extract the first word of "gcc", so it can be a program name with args.
3912
set dummy gcc; ac_word=$2
3913
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3914
$as_echo_n "checking for $ac_word... " >&6; }
3915
if ${ac_cv_prog_ac_ct_CC+:} false; then :
3916
$as_echo_n "(cached) " >&6
3918
if test -n "$ac_ct_CC"; then
3919
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3921
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3925
test -z "$as_dir" && as_dir=.
3926
for ac_exec_ext in '' $ac_executable_extensions; do
3927
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3928
ac_cv_prog_ac_ct_CC="gcc"
3929
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3938
ac_ct_CC=$ac_cv_prog_ac_ct_CC
3939
if test -n "$ac_ct_CC"; then
3940
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3941
$as_echo "$ac_ct_CC" >&6; }
3943
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3944
$as_echo "no" >&6; }
3947
if test "x$ac_ct_CC" = x; then
3950
case $cross_compiling:$ac_tool_warned in
3952
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3953
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3954
ac_tool_warned=yes ;;
3962
if test -z "$CC"; then
3963
if test -n "$ac_tool_prefix"; then
3964
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3965
set dummy ${ac_tool_prefix}cc; ac_word=$2
3966
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3967
$as_echo_n "checking for $ac_word... " >&6; }
3968
if ${ac_cv_prog_CC+:} false; then :
3969
$as_echo_n "(cached) " >&6
3971
if test -n "$CC"; then
3972
ac_cv_prog_CC="$CC" # Let the user override the test.
3974
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3978
test -z "$as_dir" && as_dir=.
3979
for ac_exec_ext in '' $ac_executable_extensions; do
3980
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3981
ac_cv_prog_CC="${ac_tool_prefix}cc"
3982
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3992
if test -n "$CC"; then
3993
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3994
$as_echo "$CC" >&6; }
3996
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3997
$as_echo "no" >&6; }
4003
if test -z "$CC"; then
4004
# Extract the first word of "cc", so it can be a program name with args.
4005
set dummy cc; ac_word=$2
4006
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4007
$as_echo_n "checking for $ac_word... " >&6; }
4008
if ${ac_cv_prog_CC+:} false; then :
4009
$as_echo_n "(cached) " >&6
4011
if test -n "$CC"; then
4012
ac_cv_prog_CC="$CC" # Let the user override the test.
4015
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4019
test -z "$as_dir" && as_dir=.
4020
for ac_exec_ext in '' $ac_executable_extensions; do
4021
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4022
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4023
ac_prog_rejected=yes
4027
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4034
if test $ac_prog_rejected = yes; then
4035
# We found a bogon in the path, so make sure we never use it.
4036
set dummy $ac_cv_prog_CC
4038
if test $# != 0; then
4039
# We chose a different compiler from the bogus one.
4040
# However, it has the same basename, so the bogon will be chosen
4041
# first if we set CC to just the basename; use the full file name.
4043
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4049
if test -n "$CC"; then
4050
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4051
$as_echo "$CC" >&6; }
4053
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4054
$as_echo "no" >&6; }
4059
if test -z "$CC"; then
4060
if test -n "$ac_tool_prefix"; then
4061
for ac_prog in cl.exe
4063
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4064
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4065
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4066
$as_echo_n "checking for $ac_word... " >&6; }
4067
if ${ac_cv_prog_CC+:} false; then :
4068
$as_echo_n "(cached) " >&6
4070
if test -n "$CC"; then
4071
ac_cv_prog_CC="$CC" # Let the user override the test.
4073
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4077
test -z "$as_dir" && as_dir=.
4078
for ac_exec_ext in '' $ac_executable_extensions; do
4079
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4080
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4081
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4091
if test -n "$CC"; then
4092
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4093
$as_echo "$CC" >&6; }
4095
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4096
$as_echo "no" >&6; }
4100
test -n "$CC" && break
4103
if test -z "$CC"; then
4105
for ac_prog in cl.exe
4107
# Extract the first word of "$ac_prog", so it can be a program name with args.
4108
set dummy $ac_prog; ac_word=$2
4109
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4110
$as_echo_n "checking for $ac_word... " >&6; }
4111
if ${ac_cv_prog_ac_ct_CC+:} false; then :
4112
$as_echo_n "(cached) " >&6
4114
if test -n "$ac_ct_CC"; then
4115
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4117
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4121
test -z "$as_dir" && as_dir=.
4122
for ac_exec_ext in '' $ac_executable_extensions; do
4123
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4124
ac_cv_prog_ac_ct_CC="$ac_prog"
4125
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4134
ac_ct_CC=$ac_cv_prog_ac_ct_CC
4135
if test -n "$ac_ct_CC"; then
4136
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4137
$as_echo "$ac_ct_CC" >&6; }
4139
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4140
$as_echo "no" >&6; }
4144
test -n "$ac_ct_CC" && break
4147
if test "x$ac_ct_CC" = x; then
4150
case $cross_compiling:$ac_tool_warned in
4152
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4153
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4154
ac_tool_warned=yes ;;
4163
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4164
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4165
as_fn_error $? "no acceptable C compiler found in \$PATH
4166
See \`config.log' for more details" "$LINENO" 5; }
4168
# Provide some information about the compiler.
4169
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4172
for ac_option in --version -v -V -qversion; do
4173
{ { ac_try="$ac_compiler $ac_option >&5"
4175
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4176
*) ac_try_echo=$ac_try;;
4178
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4179
$as_echo "$ac_try_echo"; } >&5
4180
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
4182
if test -s conftest.err; then
4184
... rest of stderr output deleted ...
4185
10q' conftest.err >conftest.er1
4186
cat conftest.er1 >&5
4188
rm -f conftest.er1 conftest.err
4189
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4190
test $ac_status = 0; }
4193
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4194
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4195
if ${ac_cv_c_compiler_gnu+:} false; then :
4196
$as_echo_n "(cached) " >&6
4198
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4199
/* end confdefs.h. */
4212
if ac_fn_c_try_compile "$LINENO"; then :
4217
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4218
ac_cv_c_compiler_gnu=$ac_compiler_gnu
4221
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4222
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4223
if test $ac_compiler_gnu = yes; then
4228
ac_test_CFLAGS=${CFLAGS+set}
4229
ac_save_CFLAGS=$CFLAGS
4230
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4231
$as_echo_n "checking whether $CC accepts -g... " >&6; }
4232
if ${ac_cv_prog_cc_g+:} false; then :
4233
$as_echo_n "(cached) " >&6
4235
ac_save_c_werror_flag=$ac_c_werror_flag
4236
ac_c_werror_flag=yes
4239
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4240
/* end confdefs.h. */
4250
if ac_fn_c_try_compile "$LINENO"; then :
4254
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4255
/* end confdefs.h. */
4265
if ac_fn_c_try_compile "$LINENO"; then :
4268
ac_c_werror_flag=$ac_save_c_werror_flag
4270
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4271
/* end confdefs.h. */
4281
if ac_fn_c_try_compile "$LINENO"; then :
4284
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4286
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4288
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4289
ac_c_werror_flag=$ac_save_c_werror_flag
4291
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4292
$as_echo "$ac_cv_prog_cc_g" >&6; }
4293
if test "$ac_test_CFLAGS" = set; then
4294
CFLAGS=$ac_save_CFLAGS
4295
elif test $ac_cv_prog_cc_g = yes; then
4296
if test "$GCC" = yes; then
4302
if test "$GCC" = yes; then
4308
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4309
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4310
if ${ac_cv_prog_cc_c89+:} false; then :
4311
$as_echo_n "(cached) " >&6
4313
ac_cv_prog_cc_c89=no
4315
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4316
/* end confdefs.h. */
4319
#include <sys/types.h>
4320
#include <sys/stat.h>
4321
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4322
struct buf { int x; };
4323
FILE * (*rcsopen) (struct buf *, struct stat *, int);
4324
static char *e (p, i)
4330
static char *f (char * (*g) (char **, int), char **p, ...)
4335
s = g (p, va_arg (v,int));
4340
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4341
function prototypes and stuff, but not '\xHH' hex character constants.
4342
These don't provoke an error unfortunately, instead are silently treated
4343
as 'x'. The following induces an error, until -std is added to get
4344
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4345
array size at least. It's necessary to write '\x00'==0 to get something
4346
that's true only with -std. */
4347
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4349
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4350
inside strings and character constants. */
4352
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4354
int test (int i, double x);
4355
struct s1 {int (*f) (int a);};
4356
struct s2 {int (*f) (double a);};
4357
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4363
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4368
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4369
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4371
CC="$ac_save_CC $ac_arg"
4372
if ac_fn_c_try_compile "$LINENO"; then :
4373
ac_cv_prog_cc_c89=$ac_arg
4375
rm -f core conftest.err conftest.$ac_objext
4376
test "x$ac_cv_prog_cc_c89" != "xno" && break
4378
rm -f conftest.$ac_ext
4383
case "x$ac_cv_prog_cc_c89" in
4385
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4386
$as_echo "none needed" >&6; } ;;
4388
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4389
$as_echo "unsupported" >&6; } ;;
4391
CC="$CC $ac_cv_prog_cc_c89"
4392
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4393
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4395
if test "x$ac_cv_prog_cc_c89" != xno; then :
4400
ac_cpp='$CPP $CPPFLAGS'
4401
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4402
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4403
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4405
depcc="$CC" am_compiler_list=
4407
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4408
$as_echo_n "checking dependency style of $depcc... " >&6; }
4409
if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4410
$as_echo_n "(cached) " >&6
4412
if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4413
# We make a subdir and do the tests there. Otherwise we can end up
4414
# making bogus files that we don't know about and never remove. For
4415
# instance it was reported that on HP-UX the gcc test will end up
4416
# making a dummy file named `D' -- because `-MD' means `put the output
4420
# Copy depcomp to subdir because otherwise we won't find it if we're
4421
# using a relative directory.
4422
cp "$am_depcomp" conftest.dir
4424
# We will build objects and dependencies in a subdirectory because
4425
# it helps to detect inapplicable dependency modes. For instance
4426
# both Tru64's cc and ICC support -MD to output dependencies as a
4427
# side effect of compilation, but ICC will put the dependencies in
4428
# the current directory while Tru64 will put them in the object
4432
am_cv_CC_dependencies_compiler_type=none
4433
if test "$am_compiler_list" = ""; then
4434
am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4437
case " $depcc " in #(
4438
*\ -arch\ *\ -arch\ *) am__universal=true ;;
4441
for depmode in $am_compiler_list; do
4442
# Setup a source with many dependencies, because some compilers
4443
# like to wrap large dependency lists on column 80 (with \), and
4444
# we should not choose a depcomp mode which is confused by this.
4446
# We need to recreate these files for each test, as the compiler may
4447
# overwrite some of them when testing with obscure command lines.
4448
# This happens at least with the AIX C compiler.
4450
for i in 1 2 3 4 5 6; do
4451
echo '#include "conftst'$i'.h"' >> sub/conftest.c
4452
# Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4453
# Solaris 8's {/usr,}/bin/sh.
4454
touch sub/conftst$i.h
4456
echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4458
# We check with `-c' and `-o' for the sake of the "dashmstdout"
4459
# mode. It turns out that the SunPro C++ compiler does not properly
4460
# handle `-M -o', and we need to detect this. Also, some Intel
4461
# versions had trouble with output in subdirs
4462
am__obj=sub/conftest.${OBJEXT-o}
4463
am__minus_obj="-o $am__obj"
4466
# This depmode causes a compiler race in universal mode.
4467
test "$am__universal" = false || continue
4470
# after this tag, mechanisms are not by side-effect, so they'll
4471
# only be used when explicitly requested
4472
if test "x$enable_dependency_tracking" = xyes; then
4478
msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4479
# This compiler won't grok `-c -o', but also, the minuso test has
4480
# not run yet. These depmodes are late enough in the game, and
4481
# so weak that their functioning should not be impacted.
4482
am__obj=conftest.${OBJEXT-o}
4487
if depmode=$depmode \
4488
source=sub/conftest.c object=$am__obj \
4489
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4490
$SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4491
>/dev/null 2>conftest.err &&
4492
grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4493
grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4494
grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4495
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4496
# icc doesn't choke on unknown options, it will just issue warnings
4497
# or remarks (even with -Werror). So we grep stderr for any message
4498
# that says an option was ignored or not supported.
4499
# When given -MP, icc 7.0 and 7.1 complain thusly:
4500
# icc: Command line warning: ignoring option '-M'; no argument required
4501
# The diagnosis changed in icc 8.0:
4502
# icc: Command line remark: option '-MP' not supported
4503
if (grep 'ignoring option' conftest.err ||
4504
grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4505
am_cv_CC_dependencies_compiler_type=$depmode
4514
am_cv_CC_dependencies_compiler_type=none
4518
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4519
$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4520
CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4523
test "x$enable_dependency_tracking" != xno \
4524
&& test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4526
am__fastdepCC_FALSE='#'
4528
am__fastdepCC_TRUE='#'
4529
am__fastdepCC_FALSE=
4535
ac_cpp='$CPP $CPPFLAGS'
4536
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4537
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4538
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4539
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4540
$as_echo_n "checking how to run the C preprocessor... " >&6; }
4541
# On Suns, sometimes $CPP names a directory.
4542
if test -n "$CPP" && test -d "$CPP"; then
4545
if test -z "$CPP"; then
4546
if ${ac_cv_prog_CPP+:} false; then :
4547
$as_echo_n "(cached) " >&6
4549
# Double quotes because CPP needs to be expanded
4550
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4553
for ac_c_preproc_warn_flag in '' yes
4555
# Use a header file that comes with gcc, so configuring glibc
4556
# with a fresh cross-compiler works.
4557
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4558
# <limits.h> exists even on freestanding compilers.
4559
# On the NeXT, cc -E runs the code through the compiler's parser,
4560
# not just through cpp. "Syntax error" is here to catch this case.
4561
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4562
/* end confdefs.h. */
4564
# include <limits.h>
4566
# include <assert.h>
4570
if ac_fn_c_try_cpp "$LINENO"; then :
4573
# Broken: fails on valid input.
4576
rm -f conftest.err conftest.i conftest.$ac_ext
4578
# OK, works on sane cases. Now check whether nonexistent headers
4579
# can be detected and how.
4580
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4581
/* end confdefs.h. */
4582
#include <ac_nonexistent.h>
4584
if ac_fn_c_try_cpp "$LINENO"; then :
4585
# Broken: success on invalid input.
4588
# Passes both tests.
4592
rm -f conftest.err conftest.i conftest.$ac_ext
4595
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4596
rm -f conftest.i conftest.err conftest.$ac_ext
4597
if $ac_preproc_ok; then :
4609
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4610
$as_echo "$CPP" >&6; }
4612
for ac_c_preproc_warn_flag in '' yes
4614
# Use a header file that comes with gcc, so configuring glibc
4615
# with a fresh cross-compiler works.
4616
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4617
# <limits.h> exists even on freestanding compilers.
4618
# On the NeXT, cc -E runs the code through the compiler's parser,
4619
# not just through cpp. "Syntax error" is here to catch this case.
4620
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4621
/* end confdefs.h. */
4623
# include <limits.h>
4625
# include <assert.h>
4629
if ac_fn_c_try_cpp "$LINENO"; then :
4632
# Broken: fails on valid input.
4635
rm -f conftest.err conftest.i conftest.$ac_ext
4637
# OK, works on sane cases. Now check whether nonexistent headers
4638
# can be detected and how.
4639
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4640
/* end confdefs.h. */
4641
#include <ac_nonexistent.h>
4643
if ac_fn_c_try_cpp "$LINENO"; then :
4644
# Broken: success on invalid input.
4647
# Passes both tests.
4651
rm -f conftest.err conftest.i conftest.$ac_ext
4654
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4655
rm -f conftest.i conftest.err conftest.$ac_ext
4656
if $ac_preproc_ok; then :
4659
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4660
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4661
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4662
See \`config.log' for more details" "$LINENO" 5; }
4666
ac_cpp='$CPP $CPPFLAGS'
4667
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4668
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4669
ac_compiler_gnu=$ac_cv_c_compiler_gnu
4672
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4673
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4674
if ${ac_cv_path_GREP+:} false; then :
4675
$as_echo_n "(cached) " >&6
4677
if test -z "$GREP"; then
4678
ac_path_GREP_found=false
4679
# Loop through the user's path and test for each of PROGNAME-LIST
4680
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4681
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4684
test -z "$as_dir" && as_dir=.
4685
for ac_prog in grep ggrep; do
4686
for ac_exec_ext in '' $ac_executable_extensions; do
4687
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4688
{ test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4689
# Check for GNU ac_path_GREP and select it if it is found.
4690
# Check for GNU $ac_path_GREP
4691
case `"$ac_path_GREP" --version 2>&1` in
4693
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4696
$as_echo_n 0123456789 >"conftest.in"
4699
cat "conftest.in" "conftest.in" >"conftest.tmp"
4700
mv "conftest.tmp" "conftest.in"
4701
cp "conftest.in" "conftest.nl"
4702
$as_echo 'GREP' >> "conftest.nl"
4703
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4704
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4705
as_fn_arith $ac_count + 1 && ac_count=$as_val
4706
if test $ac_count -gt ${ac_path_GREP_max-0}; then
4707
# Best one so far, save it but keep looking for a better one
4708
ac_cv_path_GREP="$ac_path_GREP"
4709
ac_path_GREP_max=$ac_count
4711
# 10*(2^10) chars as input seems more than enough
4712
test $ac_count -gt 10 && break
4714
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4717
$ac_path_GREP_found && break 3
4722
if test -z "$ac_cv_path_GREP"; then
4723
as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4726
ac_cv_path_GREP=$GREP
4730
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4731
$as_echo "$ac_cv_path_GREP" >&6; }
4732
GREP="$ac_cv_path_GREP"
4735
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4736
$as_echo_n "checking for egrep... " >&6; }
4737
if ${ac_cv_path_EGREP+:} false; then :
4738
$as_echo_n "(cached) " >&6
4740
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4741
then ac_cv_path_EGREP="$GREP -E"
4743
if test -z "$EGREP"; then
4744
ac_path_EGREP_found=false
4745
# Loop through the user's path and test for each of PROGNAME-LIST
4746
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4747
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4750
test -z "$as_dir" && as_dir=.
4751
for ac_prog in egrep; do
4752
for ac_exec_ext in '' $ac_executable_extensions; do
4753
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4754
{ test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4755
# Check for GNU ac_path_EGREP and select it if it is found.
4756
# Check for GNU $ac_path_EGREP
4757
case `"$ac_path_EGREP" --version 2>&1` in
4759
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4762
$as_echo_n 0123456789 >"conftest.in"
4765
cat "conftest.in" "conftest.in" >"conftest.tmp"
4766
mv "conftest.tmp" "conftest.in"
4767
cp "conftest.in" "conftest.nl"
4768
$as_echo 'EGREP' >> "conftest.nl"
4769
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4770
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4771
as_fn_arith $ac_count + 1 && ac_count=$as_val
4772
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4773
# Best one so far, save it but keep looking for a better one
4774
ac_cv_path_EGREP="$ac_path_EGREP"
4775
ac_path_EGREP_max=$ac_count
4777
# 10*(2^10) chars as input seems more than enough
4778
test $ac_count -gt 10 && break
4780
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4783
$ac_path_EGREP_found && break 3
4788
if test -z "$ac_cv_path_EGREP"; then
4789
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4792
ac_cv_path_EGREP=$EGREP
4797
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4798
$as_echo "$ac_cv_path_EGREP" >&6; }
4799
EGREP="$ac_cv_path_EGREP"
4802
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4803
$as_echo_n "checking for ANSI C header files... " >&6; }
4804
if ${ac_cv_header_stdc+:} false; then :
4805
$as_echo_n "(cached) " >&6
4807
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4808
/* end confdefs.h. */
4822
if ac_fn_c_try_compile "$LINENO"; then :
4823
ac_cv_header_stdc=yes
4825
ac_cv_header_stdc=no
4827
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4829
if test $ac_cv_header_stdc = yes; then
4830
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4831
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4832
/* end confdefs.h. */
4836
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4837
$EGREP "memchr" >/dev/null 2>&1; then :
4840
ac_cv_header_stdc=no
4846
if test $ac_cv_header_stdc = yes; then
4847
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4848
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4849
/* end confdefs.h. */
4853
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4854
$EGREP "free" >/dev/null 2>&1; then :
4857
ac_cv_header_stdc=no
4863
if test $ac_cv_header_stdc = yes; then
4864
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4865
if test "$cross_compiling" = yes; then :
4868
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4869
/* end confdefs.h. */
4872
#if ((' ' & 0x0FF) == 0x020)
4873
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4874
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4876
# define ISLOWER(c) \
4877
(('a' <= (c) && (c) <= 'i') \
4878
|| ('j' <= (c) && (c) <= 'r') \
4879
|| ('s' <= (c) && (c) <= 'z'))
4880
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4883
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4888
for (i = 0; i < 256; i++)
4889
if (XOR (islower (i), ISLOWER (i))
4890
|| toupper (i) != TOUPPER (i))
4895
if ac_fn_c_try_run "$LINENO"; then :
4898
ac_cv_header_stdc=no
4900
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4901
conftest.$ac_objext conftest.beam conftest.$ac_ext
4906
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4907
$as_echo "$ac_cv_header_stdc" >&6; }
4908
if test $ac_cv_header_stdc = yes; then
4910
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4914
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4915
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4916
inttypes.h stdint.h unistd.h
4918
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4919
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4921
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4922
cat >>confdefs.h <<_ACEOF
4923
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4932
ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4933
if test "x$ac_cv_header_minix_config_h" = xyes; then :
4940
if test "$MINIX" = yes; then
4942
$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4945
$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4948
$as_echo "#define _MINIX 1" >>confdefs.h
4953
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4954
$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4955
if ${ac_cv_safe_to_define___extensions__+:} false; then :
4956
$as_echo_n "(cached) " >&6
4958
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4959
/* end confdefs.h. */
4961
# define __EXTENSIONS__ 1
4962
$ac_includes_default
4971
if ac_fn_c_try_compile "$LINENO"; then :
4972
ac_cv_safe_to_define___extensions__=yes
4974
ac_cv_safe_to_define___extensions__=no
4976
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4978
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4979
$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4980
test $ac_cv_safe_to_define___extensions__ = yes &&
4981
$as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4983
$as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4985
$as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4987
$as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4989
$as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4993
# Checks for header files.
4994
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4995
$as_echo_n "checking for ANSI C header files... " >&6; }
4996
if ${ac_cv_header_stdc+:} false; then :
4997
$as_echo_n "(cached) " >&6
4999
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5000
/* end confdefs.h. */
5014
if ac_fn_c_try_compile "$LINENO"; then :
5015
ac_cv_header_stdc=yes
5017
ac_cv_header_stdc=no
5019
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5021
if test $ac_cv_header_stdc = yes; then
5022
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5023
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5024
/* end confdefs.h. */
5028
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5029
$EGREP "memchr" >/dev/null 2>&1; then :
5032
ac_cv_header_stdc=no
5038
if test $ac_cv_header_stdc = yes; then
5039
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5040
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5041
/* end confdefs.h. */
5045
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5046
$EGREP "free" >/dev/null 2>&1; then :
5049
ac_cv_header_stdc=no
5055
if test $ac_cv_header_stdc = yes; then
5056
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5057
if test "$cross_compiling" = yes; then :
5060
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5061
/* end confdefs.h. */
5064
#if ((' ' & 0x0FF) == 0x020)
5065
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5066
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5068
# define ISLOWER(c) \
5069
(('a' <= (c) && (c) <= 'i') \
5070
|| ('j' <= (c) && (c) <= 'r') \
5071
|| ('s' <= (c) && (c) <= 'z'))
5072
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5075
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5080
for (i = 0; i < 256; i++)
5081
if (XOR (islower (i), ISLOWER (i))
5082
|| toupper (i) != TOUPPER (i))
5087
if ac_fn_c_try_run "$LINENO"; then :
5090
ac_cv_header_stdc=no
5092
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5093
conftest.$ac_objext conftest.beam conftest.$ac_ext
5098
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5099
$as_echo "$ac_cv_header_stdc" >&6; }
5100
if test $ac_cv_header_stdc = yes; then
5102
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5107
for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
5108
as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
5109
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
5110
$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
5111
if eval \${$as_ac_Header+:} false; then :
5112
$as_echo_n "(cached) " >&6
5114
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5115
/* end confdefs.h. */
5116
#include <sys/types.h>
5128
if ac_fn_c_try_compile "$LINENO"; then :
5129
eval "$as_ac_Header=yes"
5131
eval "$as_ac_Header=no"
5133
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5135
eval ac_res=\$$as_ac_Header
5136
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
5137
$as_echo "$ac_res" >&6; }
5138
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5139
cat >>confdefs.h <<_ACEOF
5140
#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
5143
ac_header_dirent=$ac_hdr; break
5147
# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
5148
if test $ac_header_dirent = dirent.h; then
5149
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5150
$as_echo_n "checking for library containing opendir... " >&6; }
5151
if ${ac_cv_search_opendir+:} false; then :
5152
$as_echo_n "(cached) " >&6
5154
ac_func_search_save_LIBS=$LIBS
5155
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5156
/* end confdefs.h. */
5158
/* Override any GCC internal prototype to avoid an error.
5159
Use char because int might match the return type of a GCC
5160
builtin and then its argument prototype would still apply. */
5173
for ac_lib in '' dir; do
5174
if test -z "$ac_lib"; then
5175
ac_res="none required"
5178
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5180
if ac_fn_c_try_link "$LINENO"; then :
5181
ac_cv_search_opendir=$ac_res
5183
rm -f core conftest.err conftest.$ac_objext \
5185
if ${ac_cv_search_opendir+:} false; then :
5189
if ${ac_cv_search_opendir+:} false; then :
5192
ac_cv_search_opendir=no
5195
LIBS=$ac_func_search_save_LIBS
5197
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5198
$as_echo "$ac_cv_search_opendir" >&6; }
5199
ac_res=$ac_cv_search_opendir
5200
if test "$ac_res" != no; then :
5201
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5206
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
5207
$as_echo_n "checking for library containing opendir... " >&6; }
5208
if ${ac_cv_search_opendir+:} false; then :
5209
$as_echo_n "(cached) " >&6
5211
ac_func_search_save_LIBS=$LIBS
5212
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5213
/* end confdefs.h. */
5215
/* Override any GCC internal prototype to avoid an error.
5216
Use char because int might match the return type of a GCC
5217
builtin and then its argument prototype would still apply. */
5230
for ac_lib in '' x; do
5231
if test -z "$ac_lib"; then
5232
ac_res="none required"
5235
LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5237
if ac_fn_c_try_link "$LINENO"; then :
5238
ac_cv_search_opendir=$ac_res
5240
rm -f core conftest.err conftest.$ac_objext \
5242
if ${ac_cv_search_opendir+:} false; then :
5246
if ${ac_cv_search_opendir+:} false; then :
5249
ac_cv_search_opendir=no
5252
LIBS=$ac_func_search_save_LIBS
5254
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
5255
$as_echo "$ac_cv_search_opendir" >&6; }
5256
ac_res=$ac_cv_search_opendir
5257
if test "$ac_res" != no; then :
5258
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5264
for ac_header in arpa/inet.h execinfo.h fcntl.h limits.h memory.h netdb.h netinet/in.h regex.h stdint.h stdlib.h string.h strings.h sys/ioctl.h sys/param.h sys/socket.h sys/time.h sys/utsname.h termios.h unistd.h values.h linux/ppdev.h dev/ppbus/ppi.h
5266
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5267
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5268
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5269
cat >>confdefs.h <<_ACEOF
5270
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5278
# Checks for typedefs, structures, and compiler characteristics.
5279
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
5280
$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
5281
if ${ac_cv_header_stdbool_h+:} false; then :
5282
$as_echo_n "(cached) " >&6
5284
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5285
/* end confdefs.h. */
5287
#include <stdbool.h>
5289
"error: bool is not defined"
5292
"error: false is not defined"
5295
"error: false is not 0"
5298
"error: true is not defined"
5301
"error: true is not 1"
5303
#ifndef __bool_true_false_are_defined
5304
"error: __bool_true_false_are_defined is not defined"
5307
struct s { _Bool s: 1; _Bool t; } s;
5309
char a[true == 1 ? 1 : -1];
5310
char b[false == 0 ? 1 : -1];
5311
char c[__bool_true_false_are_defined == 1 ? 1 : -1];
5312
char d[(bool) 0.5 == true ? 1 : -1];
5313
/* See body of main program for 'e'. */
5314
char f[(_Bool) 0.0 == false ? 1 : -1];
5316
char h[sizeof (_Bool)];
5318
enum { j = false, k = true, l = false * true, m = true * 256 };
5319
/* The following fails for
5320
HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
5322
char o[sizeof n == m * sizeof n[0] ? 1 : -1];
5323
char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
5324
/* Catch a bug in an HP-UX C compiler. See
5325
http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
5326
http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
5338
/* Refer to every declared value, to avoid compiler optimizations. */
5339
return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
5340
+ !m + !n + !o + !p + !q + !pq);
5346
if ac_fn_c_try_compile "$LINENO"; then :
5347
ac_cv_header_stdbool_h=yes
5349
ac_cv_header_stdbool_h=no
5351
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5353
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
5354
$as_echo "$ac_cv_header_stdbool_h" >&6; }
5355
ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
5356
if test "x$ac_cv_type__Bool" = xyes; then :
5358
cat >>confdefs.h <<_ACEOF
5359
#define HAVE__BOOL 1
5365
if test $ac_cv_header_stdbool_h = yes; then
5367
$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
5371
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5372
$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5373
if ${ac_cv_c_const+:} false; then :
5374
$as_echo_n "(cached) " >&6
5376
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5377
/* end confdefs.h. */
5382
/* FIXME: Include the comments suggested by Paul. */
5384
/* Ultrix mips cc rejects this. */
5385
typedef int charset[2];
5387
/* SunOS 4.1.1 cc rejects this. */
5388
char const *const *pcpcc;
5390
/* NEC SVR4.0.2 mips cc rejects this. */
5391
struct point {int x, y;};
5392
static struct point const zero = {0,0};
5393
/* AIX XL C 1.02.0.0 rejects this.
5394
It does not let you subtract one const X* pointer from another in
5395
an arm of an if-expression whose if-part is not a constant
5397
const char *g = "string";
5398
pcpcc = &g + (g ? g-g : 0);
5399
/* HPUX 7.0 cc rejects these. */
5401
ppc = (char**) pcpcc;
5402
pcpcc = (char const *const *) ppc;
5403
{ /* SCO 3.2v4 cc rejects this. */
5405
char const *s = 0 ? (char *) 0 : (char const *) 0;
5410
{ /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5412
const int *foo = &x[0];
5415
{ /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5416
typedef const int *iptr;
5420
{ /* AIX XL C 1.02.0.0 rejects this saying
5421
"k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5422
struct s { int j; const int *ap[3]; };
5423
struct s *b; b->j = 5;
5425
{ /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5429
return !cs[0] && !zero.x;
5436
if ac_fn_c_try_compile "$LINENO"; then :
5441
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5443
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5444
$as_echo "$ac_cv_c_const" >&6; }
5445
if test $ac_cv_c_const = no; then
5447
$as_echo "#define const /**/" >>confdefs.h
5451
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
5452
$as_echo_n "checking for inline... " >&6; }
5453
if ${ac_cv_c_inline+:} false; then :
5454
$as_echo_n "(cached) " >&6
5457
for ac_kw in inline __inline__ __inline; do
5458
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5459
/* end confdefs.h. */
5462
static $ac_kw foo_t static_foo () {return 0; }
5463
$ac_kw foo_t foo () {return 0; }
5467
if ac_fn_c_try_compile "$LINENO"; then :
5468
ac_cv_c_inline=$ac_kw
5470
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5471
test "$ac_cv_c_inline" != no && break
5475
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
5476
$as_echo "$ac_cv_c_inline" >&6; }
5478
case $ac_cv_c_inline in
5481
case $ac_cv_c_inline in
5483
*) ac_val=$ac_cv_c_inline;;
5485
cat >>confdefs.h <<_ACEOF
5487
#define inline $ac_val
5493
ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
5494
case $ac_cv_c_int16_t in #(
5498
cat >>confdefs.h <<_ACEOF
5499
#define int16_t $ac_cv_c_int16_t
5504
ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
5505
case $ac_cv_c_int32_t in #(
5509
cat >>confdefs.h <<_ACEOF
5510
#define int32_t $ac_cv_c_int32_t
5515
ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
5516
case $ac_cv_c_int64_t in #(
5520
cat >>confdefs.h <<_ACEOF
5521
#define int64_t $ac_cv_c_int64_t
5526
ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
5527
case $ac_cv_c_int8_t in #(
5531
cat >>confdefs.h <<_ACEOF
5532
#define int8_t $ac_cv_c_int8_t
5537
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
5538
$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
5539
if ${ac_cv_c_restrict+:} false; then :
5540
$as_echo_n "(cached) " >&6
5543
# The order here caters to the fact that C++ does not require restrict.
5544
for ac_kw in __restrict __restrict__ _Restrict restrict; do
5545
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5546
/* end confdefs.h. */
5547
typedef int * int_ptr;
5548
int foo (int_ptr $ac_kw ip) {
5562
if ac_fn_c_try_compile "$LINENO"; then :
5563
ac_cv_c_restrict=$ac_kw
5565
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5566
test "$ac_cv_c_restrict" != no && break
5570
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
5571
$as_echo "$ac_cv_c_restrict" >&6; }
5573
case $ac_cv_c_restrict in
5575
no) $as_echo "#define restrict /**/" >>confdefs.h
5577
*) cat >>confdefs.h <<_ACEOF
5578
#define restrict $ac_cv_c_restrict
5583
ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
5584
if test "x$ac_cv_type_size_t" = xyes; then :
5588
cat >>confdefs.h <<_ACEOF
5589
#define size_t unsigned int
5594
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
5595
$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
5596
if ${ac_cv_header_time+:} false; then :
5597
$as_echo_n "(cached) " >&6
5599
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5600
/* end confdefs.h. */
5601
#include <sys/types.h>
5602
#include <sys/time.h>
5608
if ((struct tm *) 0)
5614
if ac_fn_c_try_compile "$LINENO"; then :
5615
ac_cv_header_time=yes
5617
ac_cv_header_time=no
5619
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5621
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
5622
$as_echo "$ac_cv_header_time" >&6; }
5623
if test $ac_cv_header_time = yes; then
5625
$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
5629
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
5630
$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
5631
if ${ac_cv_struct_tm+:} false; then :
5632
$as_echo_n "(cached) " >&6
5634
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5635
/* end confdefs.h. */
5636
#include <sys/types.h>
5643
int *p = &tm.tm_sec;
5649
if ac_fn_c_try_compile "$LINENO"; then :
5650
ac_cv_struct_tm=time.h
5652
ac_cv_struct_tm=sys/time.h
5654
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5656
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
5657
$as_echo "$ac_cv_struct_tm" >&6; }
5658
if test $ac_cv_struct_tm = sys/time.h; then
5660
$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
5664
ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
5665
case $ac_cv_c_uint16_t in #(
5670
cat >>confdefs.h <<_ACEOF
5671
#define uint16_t $ac_cv_c_uint16_t
5676
ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
5677
case $ac_cv_c_uint32_t in #(
5681
$as_echo "#define _UINT32_T 1" >>confdefs.h
5684
cat >>confdefs.h <<_ACEOF
5685
#define uint32_t $ac_cv_c_uint32_t
5690
ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
5691
case $ac_cv_c_uint64_t in #(
5695
$as_echo "#define _UINT64_T 1" >>confdefs.h
5698
cat >>confdefs.h <<_ACEOF
5699
#define uint64_t $ac_cv_c_uint64_t
5704
ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
5705
case $ac_cv_c_uint8_t in #(
5709
$as_echo "#define _UINT8_T 1" >>confdefs.h
5712
cat >>confdefs.h <<_ACEOF
5713
#define uint8_t $ac_cv_c_uint8_t
5718
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
5719
$as_echo_n "checking for working volatile... " >&6; }
5720
if ${ac_cv_c_volatile+:} false; then :
5721
$as_echo_n "(cached) " >&6
5723
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5724
/* end confdefs.h. */
5731
int * volatile y = (int *) 0;
5737
if ac_fn_c_try_compile "$LINENO"; then :
5738
ac_cv_c_volatile=yes
5742
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5744
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
5745
$as_echo "$ac_cv_c_volatile" >&6; }
5746
if test $ac_cv_c_volatile = no; then
5748
$as_echo "#define volatile /**/" >>confdefs.h
5753
# Checks for library functions.
5754
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
5755
$as_echo_n "checking whether closedir returns void... " >&6; }
5756
if ${ac_cv_func_closedir_void+:} false; then :
5757
$as_echo_n "(cached) " >&6
5759
if test "$cross_compiling" = yes; then :
5760
ac_cv_func_closedir_void=yes
5762
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5763
/* end confdefs.h. */
5764
$ac_includes_default
5765
#include <$ac_header_dirent>
5773
return closedir (opendir (".")) != 0;
5778
if ac_fn_c_try_run "$LINENO"; then :
5779
ac_cv_func_closedir_void=no
5781
ac_cv_func_closedir_void=yes
5783
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5784
conftest.$ac_objext conftest.beam conftest.$ac_ext
5788
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
5789
$as_echo "$ac_cv_func_closedir_void" >&6; }
5790
if test $ac_cv_func_closedir_void = yes; then
5792
$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
5796
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
5797
$as_echo_n "checking for error_at_line... " >&6; }
5798
if ${ac_cv_lib_error_at_line+:} false; then :
5799
$as_echo_n "(cached) " >&6
5801
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5802
/* end confdefs.h. */
5807
error_at_line (0, 0, "", 0, "an error occurred");
5812
if ac_fn_c_try_link "$LINENO"; then :
5813
ac_cv_lib_error_at_line=yes
5815
ac_cv_lib_error_at_line=no
5817
rm -f core conftest.err conftest.$ac_objext \
5818
conftest$ac_exeext conftest.$ac_ext
5820
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
5821
$as_echo "$ac_cv_lib_error_at_line" >&6; }
5822
if test $ac_cv_lib_error_at_line = no; then
5823
case " $LIBOBJS " in
5824
*" error.$ac_objext "* ) ;;
5825
*) LIBOBJS="$LIBOBJS error.$ac_objext"
5831
if test $ac_cv_c_compiler_gnu = yes; then
5832
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
5833
$as_echo_n "checking whether $CC needs -traditional... " >&6; }
5834
if ${ac_cv_prog_gcc_traditional+:} false; then :
5835
$as_echo_n "(cached) " >&6
5837
ac_pattern="Autoconf.*'x'"
5838
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5839
/* end confdefs.h. */
5843
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5844
$EGREP "$ac_pattern" >/dev/null 2>&1; then :
5845
ac_cv_prog_gcc_traditional=yes
5847
ac_cv_prog_gcc_traditional=no
5852
if test $ac_cv_prog_gcc_traditional = no; then
5853
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5854
/* end confdefs.h. */
5858
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5859
$EGREP "$ac_pattern" >/dev/null 2>&1; then :
5860
ac_cv_prog_gcc_traditional=yes
5866
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
5867
$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
5868
if test $ac_cv_prog_gcc_traditional = yes; then
5869
CC="$CC -traditional"
5873
for ac_header in sys/select.h sys/socket.h
5875
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5876
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5877
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5878
cat >>confdefs.h <<_ACEOF
5879
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5886
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
5887
$as_echo_n "checking types of arguments for select... " >&6; }
5888
if ${ac_cv_func_select_args+:} false; then :
5889
$as_echo_n "(cached) " >&6
5891
for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
5892
for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
5893
for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
5894
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5895
/* end confdefs.h. */
5896
$ac_includes_default
5897
#ifdef HAVE_SYS_SELECT_H
5898
# include <sys/select.h>
5900
#ifdef HAVE_SYS_SOCKET_H
5901
# include <sys/socket.h>
5907
extern int select ($ac_arg1,
5908
$ac_arg234, $ac_arg234, $ac_arg234,
5914
if ac_fn_c_try_compile "$LINENO"; then :
5915
ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
5917
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5921
# Provide a safe default value.
5922
: "${ac_cv_func_select_args=int,int *,struct timeval *}"
5925
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
5926
$as_echo "$ac_cv_func_select_args" >&6; }
5927
ac_save_IFS=$IFS; IFS=','
5928
set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
5932
cat >>confdefs.h <<_ACEOF
5933
#define SELECT_TYPE_ARG1 $1
5937
cat >>confdefs.h <<_ACEOF
5938
#define SELECT_TYPE_ARG234 ($2)
5942
cat >>confdefs.h <<_ACEOF
5943
#define SELECT_TYPE_ARG5 ($3)
5948
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
5949
$as_echo_n "checking return type of signal handlers... " >&6; }
5950
if ${ac_cv_type_signal+:} false; then :
5951
$as_echo_n "(cached) " >&6
5953
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5954
/* end confdefs.h. */
5955
#include <sys/types.h>
5961
return *(signal (0, 0)) (0) == 1;
5966
if ac_fn_c_try_compile "$LINENO"; then :
5967
ac_cv_type_signal=int
5969
ac_cv_type_signal=void
5971
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5973
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
5974
$as_echo "$ac_cv_type_signal" >&6; }
5976
cat >>confdefs.h <<_ACEOF
5977
#define RETSIGTYPE $ac_cv_type_signal
5981
for ac_func in strftime
5983
ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
5984
if test "x$ac_cv_func_strftime" = xyes; then :
5985
cat >>confdefs.h <<_ACEOF
5986
#define HAVE_STRFTIME 1
5990
# strftime is in -lintl on SCO UNIX.
5991
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
5992
$as_echo_n "checking for strftime in -lintl... " >&6; }
5993
if ${ac_cv_lib_intl_strftime+:} false; then :
5994
$as_echo_n "(cached) " >&6
5996
ac_check_lib_save_LIBS=$LIBS
5998
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5999
/* end confdefs.h. */
6001
/* Override any GCC internal prototype to avoid an error.
6002
Use char because int might match the return type of a GCC
6003
builtin and then its argument prototype would still apply. */
6016
if ac_fn_c_try_link "$LINENO"; then :
6017
ac_cv_lib_intl_strftime=yes
6019
ac_cv_lib_intl_strftime=no
6021
rm -f core conftest.err conftest.$ac_objext \
6022
conftest$ac_exeext conftest.$ac_ext
6023
LIBS=$ac_check_lib_save_LIBS
6025
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
6026
$as_echo "$ac_cv_lib_intl_strftime" >&6; }
6027
if test "x$ac_cv_lib_intl_strftime" = xyes; then :
6028
$as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
6036
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
6037
$as_echo_n "checking for working strtod... " >&6; }
6038
if ${ac_cv_func_strtod+:} false; then :
6039
$as_echo_n "(cached) " >&6
6041
if test "$cross_compiling" = yes; then :
6042
ac_cv_func_strtod=no
6044
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6045
/* end confdefs.h. */
6047
$ac_includes_default
6055
/* Some versions of Linux strtod mis-parse strings with leading '+'. */
6056
char *string = " +69";
6059
value = strtod (string, &term);
6060
if (value != 69 || term != (string + 4))
6065
/* Under Solaris 2.4, strtod returns the wrong value for the
6066
terminating character under some conditions. */
6067
char *string = "NaN";
6069
strtod (string, &term);
6070
if (term != string && *(term - 1) == 0)
6077
if ac_fn_c_try_run "$LINENO"; then :
6078
ac_cv_func_strtod=yes
6080
ac_cv_func_strtod=no
6082
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6083
conftest.$ac_objext conftest.beam conftest.$ac_ext
6087
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
6088
$as_echo "$ac_cv_func_strtod" >&6; }
6089
if test $ac_cv_func_strtod = no; then
6090
case " $LIBOBJS " in
6091
*" strtod.$ac_objext "* ) ;;
6092
*) LIBOBJS="$LIBOBJS strtod.$ac_objext"
6096
ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
6097
if test "x$ac_cv_func_pow" = xyes; then :
6101
if test $ac_cv_func_pow = no; then
6102
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
6103
$as_echo_n "checking for pow in -lm... " >&6; }
6104
if ${ac_cv_lib_m_pow+:} false; then :
6105
$as_echo_n "(cached) " >&6
6107
ac_check_lib_save_LIBS=$LIBS
6109
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6110
/* end confdefs.h. */
6112
/* Override any GCC internal prototype to avoid an error.
6113
Use char because int might match the return type of a GCC
6114
builtin and then its argument prototype would still apply. */
6127
if ac_fn_c_try_link "$LINENO"; then :
6132
rm -f core conftest.err conftest.$ac_objext \
6133
conftest$ac_exeext conftest.$ac_ext
6134
LIBS=$ac_check_lib_save_LIBS
6136
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
6137
$as_echo "$ac_cv_lib_m_pow" >&6; }
6138
if test "x$ac_cv_lib_m_pow" = xyes; then :
6141
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
6142
$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
6149
for ac_func in getaddrinfo gethostbyname hstrerror gmtime_r localtime_r memmove memset mkdir select setenv snprintf socket socketpair strcasecmp strcasestr strchr strdup strerror strlcpy strncasecmp strrchr strstr strtol uname unsetenv vsnprintf
6151
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6152
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6153
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6154
cat >>confdefs.h <<_ACEOF
6155
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6163
# Set ac_cv_x to yes/no
6164
# Define USE_X in config.h
6165
# Substitute X_CFLAGS and X_LIBS in Makefile
6166
if test "x$target_darwin" = "xno" && test "x$target_win32" = "xno"; then
6174
if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6175
if test -n "$ac_tool_prefix"; then
6176
# Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6177
set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6178
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6179
$as_echo_n "checking for $ac_word... " >&6; }
6180
if ${ac_cv_path_PKG_CONFIG+:} false; then :
6181
$as_echo_n "(cached) " >&6
6185
ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6188
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6192
test -z "$as_dir" && as_dir=.
6193
for ac_exec_ext in '' $ac_executable_extensions; do
6194
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6195
ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6196
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6206
PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6207
if test -n "$PKG_CONFIG"; then
6208
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6209
$as_echo "$PKG_CONFIG" >&6; }
6211
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6212
$as_echo "no" >&6; }
6217
if test -z "$ac_cv_path_PKG_CONFIG"; then
6218
ac_pt_PKG_CONFIG=$PKG_CONFIG
6219
# Extract the first word of "pkg-config", so it can be a program name with args.
6220
set dummy pkg-config; ac_word=$2
6221
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6222
$as_echo_n "checking for $ac_word... " >&6; }
6223
if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
6224
$as_echo_n "(cached) " >&6
6226
case $ac_pt_PKG_CONFIG in
6228
ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6231
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6235
test -z "$as_dir" && as_dir=.
6236
for ac_exec_ext in '' $ac_executable_extensions; do
6237
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6238
ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6239
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6249
ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6250
if test -n "$ac_pt_PKG_CONFIG"; then
6251
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6252
$as_echo "$ac_pt_PKG_CONFIG" >&6; }
6254
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6255
$as_echo "no" >&6; }
6258
if test "x$ac_pt_PKG_CONFIG" = x; then
6261
case $cross_compiling:$ac_tool_warned in
6263
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6264
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6265
ac_tool_warned=yes ;;
6267
PKG_CONFIG=$ac_pt_PKG_CONFIG
6270
PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6274
if test -n "$PKG_CONFIG"; then
6275
_pkg_min_version=0.9.0
6276
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6277
$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6278
if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6279
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6280
$as_echo "yes" >&6; }
6282
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6283
$as_echo "no" >&6; }
6294
test "x$ac_cv_want_x" = "x" && ac_cv_want_x="check"
6295
case "x$ac_cv_want_x" in
6302
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
6303
$as_echo_n "checking for X... " >&6; }
6305
if test -n "$X_CFLAGS"; then
6306
pkg_cv_X_CFLAGS="$X_CFLAGS"
6307
elif test -n "$PKG_CONFIG"; then
6308
if test -n "$PKG_CONFIG" && \
6309
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
6310
($PKG_CONFIG --exists --print-errors "x11") 2>&5
6312
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6313
test $ac_status = 0; }; then
6314
pkg_cv_X_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
6315
test "x$?" != "x0" && pkg_failed=yes
6322
if test -n "$X_LIBS"; then
6323
pkg_cv_X_LIBS="$X_LIBS"
6324
elif test -n "$PKG_CONFIG"; then
6325
if test -n "$PKG_CONFIG" && \
6326
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
6327
($PKG_CONFIG --exists --print-errors "x11") 2>&5
6329
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6330
test $ac_status = 0; }; then
6331
pkg_cv_X_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
6332
test "x$?" != "x0" && pkg_failed=yes
6342
if test $pkg_failed = yes; then
6343
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6344
$as_echo "no" >&6; }
6346
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6347
_pkg_short_errors_supported=yes
6349
_pkg_short_errors_supported=no
6351
if test $_pkg_short_errors_supported = yes; then
6352
X_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1`
6354
X_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1`
6356
# Put the nasty error message in config.log where it belongs
6357
echo "$X_PKG_ERRORS" >&5
6360
elif test $pkg_failed = untried; then
6361
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6362
$as_echo "no" >&6; }
6365
X_CFLAGS=$pkg_cv_X_CFLAGS
6366
X_LIBS=$pkg_cv_X_LIBS
6367
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6368
$as_echo "yes" >&6; }
6375
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
6376
$as_echo_n "checking for X... " >&6; }
6378
if test -n "$X_CFLAGS"; then
6379
pkg_cv_X_CFLAGS="$X_CFLAGS"
6380
elif test -n "$PKG_CONFIG"; then
6381
if test -n "$PKG_CONFIG" && \
6382
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
6383
($PKG_CONFIG --exists --print-errors "x11") 2>&5
6385
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6386
test $ac_status = 0; }; then
6387
pkg_cv_X_CFLAGS=`$PKG_CONFIG --cflags "x11" 2>/dev/null`
6388
test "x$?" != "x0" && pkg_failed=yes
6395
if test -n "$X_LIBS"; then
6396
pkg_cv_X_LIBS="$X_LIBS"
6397
elif test -n "$PKG_CONFIG"; then
6398
if test -n "$PKG_CONFIG" && \
6399
{ { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11\""; } >&5
6400
($PKG_CONFIG --exists --print-errors "x11") 2>&5
6402
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6403
test $ac_status = 0; }; then
6404
pkg_cv_X_LIBS=`$PKG_CONFIG --libs "x11" 2>/dev/null`
6405
test "x$?" != "x0" && pkg_failed=yes
6415
if test $pkg_failed = yes; then
6416
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6417
$as_echo "no" >&6; }
6419
if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6420
_pkg_short_errors_supported=yes
6422
_pkg_short_errors_supported=no
6424
if test $_pkg_short_errors_supported = yes; then
6425
X_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "x11" 2>&1`
6427
X_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "x11" 2>&1`
6429
# Put the nasty error message in config.log where it belongs
6430
echo "$X_PKG_ERRORS" >&5
6432
as_fn_error $? "Package requirements (x11) were not met:
6436
Consider adjusting the PKG_CONFIG_PATH environment variable if you
6437
installed software in a non-standard prefix.
6439
Alternatively, you may set the environment variables X_CFLAGS
6440
and X_LIBS to avoid the need to call pkg-config.
6441
See the pkg-config man page for more details." "$LINENO" 5
6442
elif test $pkg_failed = untried; then
6443
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6444
$as_echo "no" >&6; }
6445
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6446
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6447
as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
6448
is in your PATH or set the PKG_CONFIG environment variable to the full
6451
Alternatively, you may set the environment variables X_CFLAGS
6452
and X_LIBS to avoid the need to call pkg-config.
6453
See the pkg-config man page for more details.
6455
To get pkg-config, see <http://pkg-config.freedesktop.org/>.
6456
See \`config.log' for more details" "$LINENO" 5; }
6458
X_CFLAGS=$pkg_cv_X_CFLAGS
6459
X_LIBS=$pkg_cv_X_LIBS
6460
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6461
$as_echo "yes" >&6; }
6464
# if we get here the test has succeeded
6469
if test "x$ac_cv_x" = "xyes"; then
6471
$as_echo "#define USE_X 1" >>confdefs.h
6473
pkg_x_version=`$PKG_CONFIG --modversion "x11" 2>/dev/null`
6476
$as_echo "#define USE_X 0" >>confdefs.h
6484
cat >>confdefs.h <<_ACEOF
6485
#define X_BUILD_VERSION "$pkg_x_version"
6493
# Checks for typedefs, structures, and compiler characteristics.
6494
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
6495
$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
6496
if ${ac_cv_header_stdbool_h+:} false; then :
6497
$as_echo_n "(cached) " >&6
6499
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6500
/* end confdefs.h. */
6502
#include <stdbool.h>
6504
"error: bool is not defined"
6507
"error: false is not defined"
6510
"error: false is not 0"
6513
"error: true is not defined"
6516
"error: true is not 1"
6518
#ifndef __bool_true_false_are_defined
6519
"error: __bool_true_false_are_defined is not defined"
6522
struct s { _Bool s: 1; _Bool t; } s;
6524
char a[true == 1 ? 1 : -1];
6525
char b[false == 0 ? 1 : -1];
6526
char c[__bool_true_false_are_defined == 1 ? 1 : -1];
6527
char d[(bool) 0.5 == true ? 1 : -1];
6528
/* See body of main program for 'e'. */
6529
char f[(_Bool) 0.0 == false ? 1 : -1];
6531
char h[sizeof (_Bool)];
6533
enum { j = false, k = true, l = false * true, m = true * 256 };
6534
/* The following fails for
6535
HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
6537
char o[sizeof n == m * sizeof n[0] ? 1 : -1];
6538
char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
6539
/* Catch a bug in an HP-UX C compiler. See
6540
http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
6541
http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
6553
/* Refer to every declared value, to avoid compiler optimizations. */
6554
return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
6555
+ !m + !n + !o + !p + !q + !pq);
6561
if ac_fn_c_try_compile "$LINENO"; then :
6562
ac_cv_header_stdbool_h=yes
6564
ac_cv_header_stdbool_h=no
6566
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6568
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
6569
$as_echo "$ac_cv_header_stdbool_h" >&6; }
6570
ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
6571
if test "x$ac_cv_type__Bool" = xyes; then :
6573
cat >>confdefs.h <<_ACEOF
6574
#define HAVE__BOOL 1
6580
if test $ac_cv_header_stdbool_h = yes; then
6582
$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
6586
ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6587
if test "x$ac_cv_type_size_t" = xyes; then :
6591
cat >>confdefs.h <<_ACEOF
6592
#define size_t unsigned int
6598
# Checks for library functions.
6599
for ac_func in strstr
6601
ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
6602
if test "x$ac_cv_func_strstr" = xyes; then :
6603
cat >>confdefs.h <<_ACEOF
6604
#define HAVE_STRSTR 1
6612
# Set ac_cv_static to yes/no
6613
# Substitute RTLIB in Makefile
6615
# Check whether --enable-static was given.
6616
if test "${enable_static+set}" = set; then :
6617
enableval=$enable_static; case "${enableval}" in
6618
yes|no) ac_cv_static="${enableval}" ;;
6619
*) as_fn_error $? "bad value ${enableval} for --enable-static" "$LINENO" 5 ;;
6628
# Set ac_cv_opt to arg
6629
# Substitute OPT_FLAGS in Makefile
6631
# Check whether --enable-optimizations was given.
6632
if test "${enable_optimizations+set}" = set; then :
6633
enableval=$enable_optimizations; case "${enableval}" in
6634
none|sse|sse2|sse3|native) ac_cv_opt="${enableval}" ;;
6635
*) as_fn_error $? "bad value ${enableval} for --enable-optimizations" "$LINENO" 5 ;;
6641
OPT_CFLAGS="-O2 -ffast-math -finline-functions -fomit-frame-pointer"
6642
case "$ac_cv_opt" in
6644
OPT_CFLAGS="$OPT_CFLAGS -msse -mfpmath=sse"
6647
OPT_CFLAGS="$OPT_CFLAGS -msse2 -mfpmath=sse"
6650
OPT_CFLAGS="$OPT_CFLAGS -msse3 -mfpmath=sse"
6653
OPT_CFLAGS="$OPT_CFLAGS -march=native -mfpmath=sse"
6663
# Set ac_cv_debug to yes/no
6665
# Set ENABLE_DEBUG Makefile conditional
6666
# Substitute RDYNAMIC in Makefile
6670
# Check whether --enable-debug was given.
6671
if test "${enable_debug+set}" = set; then :
6672
enableval=$enable_debug; case "${enableval}" in
6673
yes|no) ac_cv_debug="${enableval}" ;;
6674
*) as_fn_error $? "bad value ${enableval} for --enable-debug" "$LINENO" 5 ;;
6684
# Check whether --with-bfd was given.
6685
if test "${with_bfd+set}" = set; then :
6686
withval=$with_bfd; ac_cv_want_bfd="$withval"
6692
if test "x$ac_cv_debug" = "xyes" && test "x$ac_cv_want_bfd" != "xno" && \
6693
test "x$target_mingw32" = "xyes"; then
6694
if test "x$ac_cv_want_bfd" != "xyes"; then # set -I and -L switches
6695
bfd_default_cflags="-I${ac_cv_want_bfd}/include"
6696
bfd_default_libs="-L${ac_cv_want_bfd}/lib"
6698
# don't override the user-specified vars
6699
BFD_CFLAGS="${BFD_CFLAGS:-$bfd_default_cflags}"
6700
BFD_LIBS="${BFD_LIBS:-$bfd_default_libs}"
6701
ac_cv_want_bfd="yes"
6703
CPPFLAGS_saved="$CPPFLAGS"
6704
LDFLAGS_saved="$LDFLAGS"
6705
CPPFLAGS="$CPPFLAGS $BFD_CFLAGS"
6706
LDFLAGS="$LDFLAGS $BFD_LIBS"
6708
ac_fn_c_check_header_mongrel "$LINENO" "bfd.h" "ac_cv_header_bfd_h" "$ac_includes_default"
6709
if test "x$ac_cv_header_bfd_h" = xyes; then :
6710
ac_cv_have_bfd="yes"
6716
if test "x$ac_cv_have_bfd" = "xyes"; then
6717
bfd_other_libs="-liberty -lpsapi -limagehlp"
6718
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for bfd_set_format in -lbfd" >&5
6719
$as_echo_n "checking for bfd_set_format in -lbfd... " >&6; }
6720
if ${ac_cv_lib_bfd_bfd_set_format+:} false; then :
6721
$as_echo_n "(cached) " >&6
6723
ac_check_lib_save_LIBS=$LIBS
6724
LIBS="-lbfd $bfd_other_libs $LIBS"
6725
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6726
/* end confdefs.h. */
6728
/* Override any GCC internal prototype to avoid an error.
6729
Use char because int might match the return type of a GCC
6730
builtin and then its argument prototype would still apply. */
6734
char bfd_set_format ();
6738
return bfd_set_format ();
6743
if ac_fn_c_try_link "$LINENO"; then :
6744
ac_cv_lib_bfd_bfd_set_format=yes
6746
ac_cv_lib_bfd_bfd_set_format=no
6748
rm -f core conftest.err conftest.$ac_objext \
6749
conftest$ac_exeext conftest.$ac_ext
6750
LIBS=$ac_check_lib_save_LIBS
6752
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfd_bfd_set_format" >&5
6753
$as_echo "$ac_cv_lib_bfd_bfd_set_format" >&6; }
6754
if test "x$ac_cv_lib_bfd_bfd_set_format" = xyes; then :
6755
ac_cv_have_bfd="yes"
6761
CPPFLAGS="$CPPFLAGS_saved"
6762
LDFLAGS="$LDFLAGS_saved"
6763
if test "x$ac_cv_have_bfd" = "xyes"; then
6764
BFD_LIBS="$BFD_LIBS -lbfd $bfd_other_libs"
6768
if test "x$ac_cv_debug" = "xyes"; then
6769
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for debug info flag" >&5
6770
$as_echo_n "checking for debug info flag... " >&6; }
6771
if test "x$GXX" = "xyes"; then
6772
if test "x$target_mingw32" = "xyes"; then
6780
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gflag" >&5
6781
$as_echo "$gflag" >&6; }
6782
DEBUG_CFLAGS="-O0 -fno-inline-functions -fno-omit-frame-pointer $gflag -Wall"
6785
LDFLAGS_saved="$LDFLAGS"
6786
LDFLAGS="$LDFLAGS -rdynamic"
6788
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -rdynamic" >&5
6789
$as_echo_n "checking whether $CC supports -rdynamic... " >&6; }
6790
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6791
/* end confdefs.h. */
6801
if ac_fn_c_try_link "$LINENO"; then :
6806
rm -f core conftest.err conftest.$ac_objext \
6807
conftest$ac_exeext conftest.$ac_ext
6808
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rdynamic" >&5
6809
$as_echo "$ac_cv_rdynamic" >&6; }
6812
ac_cpp='$CXXCPP $CPPFLAGS'
6813
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6814
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6815
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6817
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports -rdynamic" >&5
6818
$as_echo_n "checking whether $CXX supports -rdynamic... " >&6; }
6819
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6820
/* end confdefs.h. */
6830
if ac_fn_cxx_try_link "$LINENO"; then :
6835
rm -f core conftest.err conftest.$ac_objext \
6836
conftest$ac_exeext conftest.$ac_ext
6837
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_rdynamic" >&5
6838
$as_echo "$ac_cv_rdynamic" >&6; }
6840
ac_cpp='$CPP $CPPFLAGS'
6841
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6842
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6843
ac_compiler_gnu=$ac_cv_c_compiler_gnu
6846
LDFLAGS="$LDFLAGS_saved"
6848
if test "x$ac_cv_rdynamic" = "xyes"; then
6854
{ $as_echo "$as_me:${as_lineno-$LINENO}: debugging enabled; overriding CXXFLAGS" >&5
6855
$as_echo "$as_me: debugging enabled; overriding CXXFLAGS" >&6;}
6857
if test "x$target_darwin" = "xyes"; then
6858
ac_cv_compat_stack=yes
6860
$as_echo "#define HAVE_DBG_STACK 1" >>confdefs.h
6862
elif test "x$target_mingw32" = "xyes" && test "x$ac_cv_have_bfd" = "xyes"; then
6863
ac_cv_compat_stack=yes
6865
$as_echo "#define HAVE_DBG_STACK 1" >>confdefs.h
6868
ac_cv_compat_stack=no
6870
$as_echo "#define HAVE_DBG_STACK 0" >>confdefs.h
6874
if test "x$ac_cv_debug" = "xyes"; then
6876
ENABLE_DEBUG_FALSE='#'
6878
ENABLE_DEBUG_TRUE='#'
6885
if test "x$ac_cv_compat_stack" = "xyes"; then
6887
COMPAT_STACK_FALSE='#'
6889
COMPAT_STACK_TRUE='#'
6897
# Set ac_cv_mac_universal to yes/no
6898
# Set DARWIN Makefile conditional
6899
# Substitute MAC_UNIVERSAL_CFLAGS and MAC_UNIVERSAL_LDFLAGS in Makefile
6901
case "$target_os" in
6910
# Check whether --enable-mac-universal was given.
6911
if test "${enable_mac_universal+set}" = set; then :
6912
enableval=$enable_mac_universal; case "${enableval}" in
6913
yes|no) ac_cv_mac_universal="${enableval}" ;;
6914
*) as_fn_error $? "bad value \"${enableval}\" for --enable-mac-universal" "$LINENO" 5 ;;
6917
ac_cv_mac_universal=no
6921
if test "x$target_darwin" = "xyes" && test "x$ac_cv_mac_universal" = "xyes"; then
6922
mac_minversion="-mmacosx-version-min=10.4"
6923
case "$target_os" in
6925
mac_arches="-arch i386 -arch ppc"
6926
mac_sysroot="-isysroot /Developer/SDKs/MacOSX10.4u.sdk"
6929
mac_arches="-arch i386 -arch ppc -arch x86_64 -arch ppc64"
6930
mac_sysroot="-isysroot /Developer/SDKs/MacOSX10.5.sdk"
6937
MAC_UNIVERSAL_CFLAGS="$mac_arches $mac_sysroot $mac_minversion"
6938
MAC_UNIVERSAL_LDFLAGS="$mac_arches"
6943
if test "x$target_darwin" = "xyes"; then
6953
# Set WIN32 Makefile conditional
6954
# Set HAVE_WINDRES Makefile conditional
6955
# Substitute WINDRES in Makefile
6957
case "$target_os" in
6960
target_mingw32="yes"
6962
*cygwin*|*win32*|*w32*)
6970
if test "x$target_win32" = "xyes"; then
6971
# Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
6972
set dummy ${ac_tool_prefix}windres; ac_word=$2
6973
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6974
$as_echo_n "checking for $ac_word... " >&6; }
6975
if ${ac_cv_prog_WINDRES+:} false; then :
6976
$as_echo_n "(cached) " >&6
6978
if test -n "$WINDRES"; then
6979
ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
6981
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6985
test -z "$as_dir" && as_dir=.
6986
for ac_exec_ext in '' $ac_executable_extensions; do
6987
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6988
ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
6989
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6998
WINDRES=$ac_cv_prog_WINDRES
6999
if test -n "$WINDRES"; then
7000
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
7001
$as_echo "$WINDRES" >&6; }
7003
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7004
$as_echo "no" >&6; }
7008
if test "x$WINDRES" = "x" ; then
7009
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The windres utility could not be found" >&5
7010
$as_echo "$as_me: WARNING: The windres utility could not be found" >&2;}
7013
$as_echo "#define __WOE32__ 1" >>confdefs.h
7017
if test "x$target_mingw32" = "xyes"; then
7018
# Extract the first word of "makensis", so it can be a program name with args.
7019
set dummy makensis; ac_word=$2
7020
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7021
$as_echo_n "checking for $ac_word... " >&6; }
7022
if ${ac_cv_prog_MAKENSIS+:} false; then :
7023
$as_echo_n "(cached) " >&6
7025
if test -n "$MAKENSIS"; then
7026
ac_cv_prog_MAKENSIS="$MAKENSIS" # Let the user override the test.
7028
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7032
test -z "$as_dir" && as_dir=.
7033
for ac_exec_ext in '' $ac_executable_extensions; do
7034
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7035
ac_cv_prog_MAKENSIS="makensis"
7036
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7045
MAKENSIS=$ac_cv_prog_MAKENSIS
7046
if test -n "$MAKENSIS"; then
7047
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKENSIS" >&5
7048
$as_echo "$MAKENSIS" >&6; }
7050
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7051
$as_echo "no" >&6; }
7058
if test "x$WINDRES" != "x"; then
7060
HAVE_WINDRES_FALSE='#'
7062
HAVE_WINDRES_TRUE='#'
7067
if test "x$MAKENSIS" != "x"; then
7075
if test "x$target_win32" = "xyes"; then
7083
if test "x$target_mingw32" = "xyes"; then
7097
# Check whether --with-ptw32 was given.
7098
if test "${with_ptw32+set}" = set; then :
7099
withval=$with_ptw32; ac_cv_want_ptw32="$withval"
7105
if test "x$ac_cv_want_ptw32" != "xno"; then
7106
if test "x$ac_cv_want_ptw32" != "xyes"; then # set -I and -L switches
7107
ptw32_default_cflags="-I${ac_cv_want_ptw32}/include"
7108
ptw32_default_libs="-L${ac_cv_want_ptw32}/lib"
7110
ptw32_default_libs="$ptw32_default_libs -lpthreadGC2 -lws2_32"
7112
# don't override the user-specified vars
7113
PTW32_CFLAGS="${PTW32_CFLAGS:-$ptw32_default_cflags}"
7114
PTW32_LIBS="${PTW32_LIBS:-$ptw32_default_libs}"
7115
ac_cv_want_ptw32="yes"
7123
# Substitute FLTK_CFLAGS and FLTK_LIBS in Makefile
7124
# Set FLUID variable
7125
# Set HAVE_FLUID Makefile conditional
7131
if test "x$FLTK_CFLAGS" = "x" && test "x$FLTK_LIBS" = "x"; then
7132
if test "x$FLTK_CONFIG" = "x"; then
7133
# Extract the first word of "fltk-config", so it can be a program name with args.
7134
set dummy fltk-config; ac_word=$2
7135
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7136
$as_echo_n "checking for $ac_word... " >&6; }
7137
if ${ac_cv_path_FLTK_CONFIG+:} false; then :
7138
$as_echo_n "(cached) " >&6
7140
case $FLTK_CONFIG in
7142
ac_cv_path_FLTK_CONFIG="$FLTK_CONFIG" # Let the user override the test with a path.
7145
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7149
test -z "$as_dir" && as_dir=.
7150
for ac_exec_ext in '' $ac_executable_extensions; do
7151
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7152
ac_cv_path_FLTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7153
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7160
test -z "$ac_cv_path_FLTK_CONFIG" && ac_cv_path_FLTK_CONFIG="no"
7164
FLTK_CONFIG=$ac_cv_path_FLTK_CONFIG
7165
if test -n "$FLTK_CONFIG"; then
7166
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLTK_CONFIG" >&5
7167
$as_echo "$FLTK_CONFIG" >&6; }
7169
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7170
$as_echo "no" >&6; }
7175
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fltk-config" >&5
7176
$as_echo_n "checking for fltk-config... " >&6; }
7177
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLTK_CONFIG" >&5
7178
$as_echo "$FLTK_CONFIG" >&6; }
7180
if test "$FLTK_CONFIG" = "no"; then
7182
*** The fltk-config script could not be found. Please install the development
7183
*** headers and libraries for FLTK 1.1.x, or set PATH to the directory that
7184
*** contains fltk-config.
7187
HAVE_FLTK_API_VERSION=no
7188
FLTK_API_VERSION="`$FLTK_CONFIG --api-version`"
7189
if test $? -ne 0; then
7190
as_fn_error $? "$FLTK_CONFIG failed" "$LINENO" 5
7192
if test "x$FLTK_API_VERSION" = "x1.1" || test "x$FLTK_API_VERSION" = "x1.3"; then
7193
HAVE_FLTK_API_VERSION=yes
7195
FLRIG_FLTK_API_MAJOR=${FLTK_API_VERSION%%.*}
7196
FLRIG_FLTK_API_MINOR=${FLTK_API_VERSION#*.}; FLRIG_FLTK_API_MINOR=${FLRIG_FLTK_API_MINOR%%.*}
7197
if test "${HAVE_FLTK_API_VERSION}" = "no"; then
7199
*** The version of FLTK found on your system provides API version $FLTK_API_VERSION.
7200
*** To build $PACKAGE you need a FLTK version that provides API 1.1 or 1.3.
7203
FLTK_CFLAGS=`$FLTK_CONFIG --cxxflags`
7204
if test "x$ac_cv_static" != "xyes"; then
7205
FLTK_LIBS=`$FLTK_CONFIG --ldflags --use-images`
7206
if test "x$target_mingw32" != "xyes"; then
7207
if test "x$target_darwin" != "xyes"; then
7208
if grep -q "lX11" <<< "$FLTK_LIBS"; then
7209
FLTK_LIBS="$FLTK_LIBS";
7211
FLTK_LIBS="$FLTK_LIBS -lm -lX11";
7216
FLTK_LIBS=`$FLTK_CONFIG --ldstaticflags --use-images`
7219
{ $as_echo "$as_me:${as_lineno-$LINENO}: not checking for FLTK" >&5
7220
$as_echo "$as_me: not checking for FLTK" >&6;}
7225
cat >>confdefs.h <<_ACEOF
7226
#define FLTK_BUILD_VERSION "`$FLTK_CONFIG --version`"
7230
cat >>confdefs.h <<_ACEOF
7231
#define FLRIG_FLTK_API_MAJOR $FLRIG_FLTK_API_MAJOR
7235
cat >>confdefs.h <<_ACEOF
7236
#define FLRIG_FLTK_API_MINOR $FLRIG_FLTK_API_MINOR
7241
# Extract the first word of "fluid", so it can be a program name with args.
7242
set dummy fluid; ac_word=$2
7243
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7244
$as_echo_n "checking for $ac_word... " >&6; }
7245
if ${ac_cv_prog_FLUID+:} false; then :
7246
$as_echo_n "(cached) " >&6
7248
if test -n "$FLUID"; then
7249
ac_cv_prog_FLUID="$FLUID" # Let the user override the test.
7251
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7255
test -z "$as_dir" && as_dir=.
7256
for ac_exec_ext in '' $ac_executable_extensions; do
7257
if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7258
ac_cv_prog_FLUID="fluid"
7259
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7268
FLUID=$ac_cv_prog_FLUID
7269
if test -n "$FLUID"; then
7270
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLUID" >&5
7271
$as_echo "$FLUID" >&6; }
7273
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7274
$as_echo "no" >&6; }
7278
if test -n "$FLUID"; then
7280
HAVE_FLUID_FALSE='#'
7289
# Set ac_cv_xmlrpc to yes/no
7290
# Substitute XMLRPC_CFLAGS and XMLRPC_LIBS in Makefile
7291
# Define USE_XMLRPC in config.h
7292
# Set ENABLE_XMLRPC Makefile conditional
7295
### Non-POSIX compatibility (i.e. mingw32)
7296
# Sets various Makefile conditionals; see m4/np-compat.m4
7301
if test "x$ac_cv_header_regex_h" != "xyes"; then
7303
COMPAT_REGEX_FALSE='#'
7305
COMPAT_REGEX_TRUE='#'
7310
if test "x$target_mingw32" = "xyes"; then
7311
sem_libs="pthreadGC2"
7313
sem_libs="pthread rt"
7317
if test "x$ac_cv_want_ptw32" = "xyes"; then
7318
CFLAGS_saved="$CFLAGS"
7319
LDFLAGS_saved="$LDFLAGS"
7320
EXTRA_LIBS_saved="$EXTRA_LIBS"
7321
CFLAGS="$CFLAGS $PTW32_CFLAGS"
7322
LDFLAGS="$LDFLAGS $PTW32_LIBS"
7330
LIBS_search_libs_save="$LIBS"
7332
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
7333
$as_echo_n "checking for library containing dlopen... " >&6; }
7334
if ${ac_cv_search_dlopen+:} false; then :
7335
$as_echo_n "(cached) " >&6
7337
ac_func_search_save_LIBS=$LIBS
7338
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7339
/* end confdefs.h. */
7341
/* Override any GCC internal prototype to avoid an error.
7342
Use char because int might match the return type of a GCC
7343
builtin and then its argument prototype would still apply. */
7356
for ac_lib in '' dl; do
7357
if test -z "$ac_lib"; then
7358
ac_res="none required"
7361
LIBS="-l$ac_lib $other_libs $ac_func_search_save_LIBS"
7363
if ac_fn_c_try_link "$LINENO"; then :
7364
ac_cv_search_dlopen=$ac_res
7366
rm -f core conftest.err conftest.$ac_objext \
7368
if ${ac_cv_search_dlopen+:} false; then :
7372
if ${ac_cv_search_dlopen+:} false; then :
7375
ac_cv_search_dlopen=no
7378
LIBS=$ac_func_search_save_LIBS
7380
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
7381
$as_echo "$ac_cv_search_dlopen" >&6; }
7382
ac_res=$ac_cv_search_dlopen
7383
if test "$ac_res" != no; then :
7384
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7385
ac_cv_have_func_dlopen=1
7387
ac_cv_have_func_dlopen=0
7390
if test "x$LIBS" != "x"; then
7391
echo "$EXTRA_LIBS" | grep -q -e "$LIBS" || EXTRA_LIBS="$EXTRA_LIBS $LIBS"
7394
cat >>confdefs.h <<_ACEOF
7395
#define HAVE_DLOPEN $ac_cv_have_func_dlopen
7398
LIBS="$LIBS_search_libs_save"
7405
LIBS_search_libs_save="$LIBS"
7407
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
7408
$as_echo_n "checking for library containing clock_gettime... " >&6; }
7409
if ${ac_cv_search_clock_gettime+:} false; then :
7410
$as_echo_n "(cached) " >&6
7412
ac_func_search_save_LIBS=$LIBS
7413
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7414
/* end confdefs.h. */
7416
/* Override any GCC internal prototype to avoid an error.
7417
Use char because int might match the return type of a GCC
7418
builtin and then its argument prototype would still apply. */
7422
char clock_gettime ();
7426
return clock_gettime ();
7431
for ac_lib in '' rt; do
7432
if test -z "$ac_lib"; then
7433
ac_res="none required"
7436
LIBS="-l$ac_lib $other_libs $ac_func_search_save_LIBS"
7438
if ac_fn_c_try_link "$LINENO"; then :
7439
ac_cv_search_clock_gettime=$ac_res
7441
rm -f core conftest.err conftest.$ac_objext \
7443
if ${ac_cv_search_clock_gettime+:} false; then :
7447
if ${ac_cv_search_clock_gettime+:} false; then :
7450
ac_cv_search_clock_gettime=no
7453
LIBS=$ac_func_search_save_LIBS
7455
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
7456
$as_echo "$ac_cv_search_clock_gettime" >&6; }
7457
ac_res=$ac_cv_search_clock_gettime
7458
if test "$ac_res" != no; then :
7459
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7460
ac_cv_have_func_clock_gettime=1
7462
ac_cv_have_func_clock_gettime=0
7465
if test "x$LIBS" != "x"; then
7466
echo "$EXTRA_LIBS" | grep -q -e "$LIBS" || EXTRA_LIBS="$EXTRA_LIBS $LIBS"
7469
cat >>confdefs.h <<_ACEOF
7470
#define HAVE_CLOCK_GETTIME $ac_cv_have_func_clock_gettime
7473
LIBS="$LIBS_search_libs_save"
7480
LIBS_search_libs_save="$LIBS"
7482
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_unlink" >&5
7483
$as_echo_n "checking for library containing sem_unlink... " >&6; }
7484
if ${ac_cv_search_sem_unlink+:} false; then :
7485
$as_echo_n "(cached) " >&6
7487
ac_func_search_save_LIBS=$LIBS
7488
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7489
/* end confdefs.h. */
7491
/* Override any GCC internal prototype to avoid an error.
7492
Use char because int might match the return type of a GCC
7493
builtin and then its argument prototype would still apply. */
7501
return sem_unlink ();
7506
for ac_lib in '' $sem_libs; do
7507
if test -z "$ac_lib"; then
7508
ac_res="none required"
7511
LIBS="-l$ac_lib $other_libs $ac_func_search_save_LIBS"
7513
if ac_fn_c_try_link "$LINENO"; then :
7514
ac_cv_search_sem_unlink=$ac_res
7516
rm -f core conftest.err conftest.$ac_objext \
7518
if ${ac_cv_search_sem_unlink+:} false; then :
7522
if ${ac_cv_search_sem_unlink+:} false; then :
7525
ac_cv_search_sem_unlink=no
7528
LIBS=$ac_func_search_save_LIBS
7530
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_unlink" >&5
7531
$as_echo "$ac_cv_search_sem_unlink" >&6; }
7532
ac_res=$ac_cv_search_sem_unlink
7533
if test "$ac_res" != no; then :
7534
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7535
ac_cv_have_func_sem_unlink=1
7537
ac_cv_have_func_sem_unlink=0
7540
if test "x$LIBS" != "x"; then
7541
echo "$EXTRA_LIBS" | grep -q -e "$LIBS" || EXTRA_LIBS="$EXTRA_LIBS $LIBS"
7544
cat >>confdefs.h <<_ACEOF
7545
#define HAVE_SEM_UNLINK $ac_cv_have_func_sem_unlink
7548
LIBS="$LIBS_search_libs_save"
7555
LIBS_search_libs_save="$LIBS"
7557
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sem_timedwait" >&5
7558
$as_echo_n "checking for library containing sem_timedwait... " >&6; }
7559
if ${ac_cv_search_sem_timedwait+:} false; then :
7560
$as_echo_n "(cached) " >&6
7562
ac_func_search_save_LIBS=$LIBS
7563
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7564
/* end confdefs.h. */
7566
/* Override any GCC internal prototype to avoid an error.
7567
Use char because int might match the return type of a GCC
7568
builtin and then its argument prototype would still apply. */
7572
char sem_timedwait ();
7576
return sem_timedwait ();
7581
for ac_lib in '' $sem_libs; do
7582
if test -z "$ac_lib"; then
7583
ac_res="none required"
7586
LIBS="-l$ac_lib $other_libs $ac_func_search_save_LIBS"
7588
if ac_fn_c_try_link "$LINENO"; then :
7589
ac_cv_search_sem_timedwait=$ac_res
7591
rm -f core conftest.err conftest.$ac_objext \
7593
if ${ac_cv_search_sem_timedwait+:} false; then :
7597
if ${ac_cv_search_sem_timedwait+:} false; then :
7600
ac_cv_search_sem_timedwait=no
7603
LIBS=$ac_func_search_save_LIBS
7605
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sem_timedwait" >&5
7606
$as_echo "$ac_cv_search_sem_timedwait" >&6; }
7607
ac_res=$ac_cv_search_sem_timedwait
7608
if test "$ac_res" != no; then :
7609
test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7610
ac_cv_have_func_sem_timedwait=1
7612
ac_cv_have_func_sem_timedwait=0
7615
if test "x$LIBS" != "x"; then
7616
echo "$EXTRA_LIBS" | grep -q -e "$LIBS" || EXTRA_LIBS="$EXTRA_LIBS $LIBS"
7619
cat >>confdefs.h <<_ACEOF
7620
#define HAVE_SEM_TIMEDWAIT $ac_cv_have_func_sem_timedwait
7623
LIBS="$LIBS_search_libs_save"
7627
if test "x$ac_cv_want_ptw32" = "xyes"; then
7628
CFLAGS="$CFLAGS_saved"
7629
LDFLAGS="$LDFLAGS_saved"
7630
EXTRA_LIBS="$EXTRA_LIBS_saved"
7634
if test "x$ac_cv_func_strcasestr" != "xyes"; then
7635
COMPAT_STRCASESTR_TRUE=
7636
COMPAT_STRCASESTR_FALSE='#'
7638
COMPAT_STRCASESTR_TRUE='#'
7639
COMPAT_STRCASESTR_FALSE=
7645
# Define various build variables in config.h
7647
# Define build flags and substitute in Makefile.in
7649
FLRIG_BUILD_CPPFLAGS="-I\$(srcdir) -I\$(srcdir)/include -I\$(srcdir)/xmlrpcpp"
7650
if test "x$target_win32" = "xyes"; then
7651
FLRIG_BUILD_CPPFLAGS="$FLRIG_BUILD_CPPFLAGS -D_WINDOWS"
7654
FLRIG_BUILD_CXXFLAGS="$FLTK_CFLAGS -pipe -Wall -fexceptions $OPT_CFLAGS $DEBUG_CFLAGS \
7656
if test "x$target_mingw32" = "xyes"; then
7657
FLRIG_BUILD_CXXFLAGS="-mthreads $FLRIG_BUILD_CXXFLAGS"
7660
FLRIG_BUILD_LDFLAGS=
7662
FLRIG_BUILD_LDADD="$FLTK_LIBS $EXTRA_LIBS $PTW32_LIBS"
7664
if test "x$ac_cv_debug" = "xyes"; then
7665
FLRIG_BUILD_CXXFLAGS="$FLRIG_BUILD_CXXFLAGS -UNDEBUG"
7666
FLRIG_BUILD_LDFLAGS="$FLRIG_BUILD_LDFLAGS $RDYNAMIC"
7668
FLRIG_BUILD_CXXFLAGS="$FLRIG_BUILD_CXXFLAGS -DNDEBUG"
7670
if test "x$target_mingw32" = "xyes"; then
7671
FLRIG_BUILD_LDFLAGS="-mthreads $FLRIG_BUILD_LDFLAGS"
7679
#define build variables for config.h
7681
cat >>confdefs.h <<_ACEOF
7682
#define BUILD_BUILD_PLATFORM "$build"
7686
cat >>confdefs.h <<_ACEOF
7687
#define BUILD_HOST_PLATFORM "$host"
7691
cat >>confdefs.h <<_ACEOF
7692
#define BUILD_TARGET_PLATFORM "$target"
7696
test "x$LC_ALL" != "x" && LC_ALL_saved="$LC_ALL"
7701
ac_sh_dq="\"`echo $ac_configure_args | sed 's/"/\\\\"/g'`\""
7704
cat >>confdefs.h <<_ACEOF
7705
#define BUILD_CONFIGURE_ARGS $ac_sh_dq
7710
ac_sh_dq="\"`date | sed 's/"/\\\\"/g'`\""
7713
cat >>confdefs.h <<_ACEOF
7714
#define BUILD_DATE $ac_sh_dq
7719
ac_sh_dq="\"`whoami | sed 's/"/\\\\"/g'`\""
7722
cat >>confdefs.h <<_ACEOF
7723
#define BUILD_USER $ac_sh_dq
7728
ac_sh_dq="\"`hostname | sed 's/"/\\\\"/g'`\""
7731
cat >>confdefs.h <<_ACEOF
7732
#define BUILD_HOST $ac_sh_dq
7737
ac_sh_dq="\"`$CXX -v 2>&1 | tail -1 | sed 's/"/\\\\"/g'`\""
7740
cat >>confdefs.h <<_ACEOF
7741
#define BUILD_COMPILER $ac_sh_dq
7746
ac_sh_dq="\"`echo $FLRIG_BUILD_CPPFLAGS $FLRIG_BUILD_CXXFLAGS | sed 's/"/\\\\"/g'`\""
7749
cat >>confdefs.h <<_ACEOF
7750
#define FLRIG_BUILD_CXXFLAGS $ac_sh_dq
7754
ac_sh_dq="\"`echo $FLRIG_BUILD_LDFLAGS $FLRIG_BUILD_LDADD | sed 's/"/\\\\"/g'`\""
7757
cat >>confdefs.h <<_ACEOF
7758
#define FLRIG_BUILD_LDFLAGS $ac_sh_dq
7762
if test "x$LC_ALL_saved" != "x"; then
7763
LC_ALL="$LC_ALL_saved"
7768
ac_config_files="$ac_config_files Makefile src/Makefile"
7771
cat >confcache <<\_ACEOF
7772
# This file is a shell script that caches the results of configure
7773
# tests run on this system so they can be shared between configure
7774
# scripts and configure runs, see configure's option --config-cache.
7775
# It is not useful on other systems. If it contains results you don't
7776
# want to keep, you may remove or edit it.
7778
# config.status only pays attention to the cache file if you give it
7779
# the --recheck option to rerun configure.
7781
# `ac_cv_env_foo' variables (set or unset) will be overridden when
7782
# loading this file, other *unset* `ac_cv_foo' will be assigned the
7787
# The following way of writing the cache mishandles newlines in values,
7788
# but we know of no workaround that is simple, portable, and efficient.
7789
# So, we kill variables containing newlines.
7790
# Ultrix sh set writes to stderr and can't be redirected directly,
7791
# and sets the high bit in the cache file unless we assign to the vars.
7793
for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7794
eval ac_val=\$$ac_var
7798
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7799
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7802
_ | IFS | as_nl) ;; #(
7803
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7804
*) { eval $ac_var=; unset $ac_var;} ;;
7810
case $as_nl`(ac_space=' '; set) 2>&1` in #(
7811
*${as_nl}ac_space=\ *)
7812
# `set' does not quote correctly, so add quotes: double-quote
7813
# substitution turns \\\\ into \\, and sed turns \\ into \.
7816
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7819
# `set' quotes correctly as required by POSIX, so do not add quotes.
7820
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7829
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7831
s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7833
if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7834
if test -w "$cache_file"; then
7835
if test "x$cache_file" != "x/dev/null"; then
7836
{ $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7837
$as_echo "$as_me: updating cache $cache_file" >&6;}
7838
if test ! -f "$cache_file" || test -h "$cache_file"; then
7839
cat confcache >"$cache_file"
7841
case $cache_file in #(
7843
mv -f confcache "$cache_file"$$ &&
7844
mv -f "$cache_file"$$ "$cache_file" ;; #(
7846
mv -f confcache "$cache_file" ;;
7851
{ $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7852
$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7857
test "x$prefix" = xNONE && prefix=$ac_default_prefix
7858
# Let make expand exec_prefix.
7859
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7861
DEFS=-DHAVE_CONFIG_H
7866
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7867
# 1. Remove the extension, and $U if already installed.
7868
ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7869
ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7870
# 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7871
# will be set to the directory where LIBOBJS objects are built.
7872
as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7873
as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7877
LTLIBOBJS=$ac_ltlibobjs
7880
if test -n "$EXEEXT"; then
7882
am__EXEEXT_FALSE='#'
7888
if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7889
as_fn_error $? "conditional \"AMDEP\" was never defined.
7890
Usually this means the macro was only invoked conditionally." "$LINENO" 5
7892
if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
7893
as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
7894
Usually this means the macro was only invoked conditionally." "$LINENO" 5
7896
if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7897
as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
7898
Usually this means the macro was only invoked conditionally." "$LINENO" 5
7900
if test -z "${ENABLE_DEBUG_TRUE}" && test -z "${ENABLE_DEBUG_FALSE}"; then
7901
as_fn_error $? "conditional \"ENABLE_DEBUG\" was never defined.
7902
Usually this means the macro was only invoked conditionally." "$LINENO" 5
7904
if test -z "${COMPAT_STACK_TRUE}" && test -z "${COMPAT_STACK_FALSE}"; then
7905
as_fn_error $? "conditional \"COMPAT_STACK\" was never defined.
7906
Usually this means the macro was only invoked conditionally." "$LINENO" 5
7908
if test -z "${DARWIN_TRUE}" && test -z "${DARWIN_FALSE}"; then
7909
as_fn_error $? "conditional \"DARWIN\" was never defined.
7910
Usually this means the macro was only invoked conditionally." "$LINENO" 5
7912
if test -z "${HAVE_WINDRES_TRUE}" && test -z "${HAVE_WINDRES_FALSE}"; then
7913
as_fn_error $? "conditional \"HAVE_WINDRES\" was never defined.
7914
Usually this means the macro was only invoked conditionally." "$LINENO" 5
7916
if test -z "${HAVE_NSIS_TRUE}" && test -z "${HAVE_NSIS_FALSE}"; then
7917
as_fn_error $? "conditional \"HAVE_NSIS\" was never defined.
7918
Usually this means the macro was only invoked conditionally." "$LINENO" 5
7920
if test -z "${WIN32_TRUE}" && test -z "${WIN32_FALSE}"; then
7921
as_fn_error $? "conditional \"WIN32\" was never defined.
7922
Usually this means the macro was only invoked conditionally." "$LINENO" 5
7924
if test -z "${MINGW32_TRUE}" && test -z "${MINGW32_FALSE}"; then
7925
as_fn_error $? "conditional \"MINGW32\" was never defined.
7926
Usually this means the macro was only invoked conditionally." "$LINENO" 5
7928
if test -z "${HAVE_FLUID_TRUE}" && test -z "${HAVE_FLUID_FALSE}"; then
7929
as_fn_error $? "conditional \"HAVE_FLUID\" was never defined.
7930
Usually this means the macro was only invoked conditionally." "$LINENO" 5
7932
if test -z "${COMPAT_REGEX_TRUE}" && test -z "${COMPAT_REGEX_FALSE}"; then
7933
as_fn_error $? "conditional \"COMPAT_REGEX\" was never defined.
7934
Usually this means the macro was only invoked conditionally." "$LINENO" 5
7936
if test -z "${COMPAT_STRCASESTR_TRUE}" && test -z "${COMPAT_STRCASESTR_FALSE}"; then
7937
as_fn_error $? "conditional \"COMPAT_STRCASESTR\" was never defined.
7938
Usually this means the macro was only invoked conditionally." "$LINENO" 5
7941
: "${CONFIG_STATUS=./config.status}"
7943
ac_clean_files_save=$ac_clean_files
7944
ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7945
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7946
$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7948
cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7950
# Generated by $as_me.
7951
# Run this file to recreate the current configuration.
7952
# Compiler output produced by configure, useful for debugging
7953
# configure, is in config.log if it exists.
7959
SHELL=\${CONFIG_SHELL-$SHELL}
7962
cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7963
## -------------------- ##
7964
## M4sh Initialization. ##
7965
## -------------------- ##
7967
# Be more Bourne compatible
7968
DUALCASE=1; export DUALCASE # for MKS sh
7969
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7972
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7973
# is contrary to our usage. Disable this feature.
7974
alias -g '${1+"$@"}'='"$@"'
7975
setopt NO_GLOB_SUBST
7977
case `(set -o) 2>/dev/null` in #(
7989
# Printing a long string crashes Solaris 7 /usr/bin/printf.
7990
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7991
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7992
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7993
# Prefer a ksh shell builtin over an external printf program on Solaris,
7994
# but without wasting forks for bash or zsh.
7995
if test -z "$BASH_VERSION$ZSH_VERSION" \
7996
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7997
as_echo='print -r --'
7998
as_echo_n='print -rn --'
7999
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8000
as_echo='printf %s\n'
8001
as_echo_n='printf %s'
8003
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8004
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8005
as_echo_n='/usr/ucb/echo -n'
8007
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8008
as_echo_n_body='eval
8012
expr "X$arg" : "X\\(.*\\)$as_nl";
8013
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8015
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8017
export as_echo_n_body
8018
as_echo_n='sh -c $as_echo_n_body as_echo'
8021
as_echo='sh -c $as_echo_body as_echo'
8024
# The user is always right.
8025
if test "${PATH_SEPARATOR+set}" != set; then
8027
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8028
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8035
# We need space, tab and new line, in precisely that order. Quoting is
8036
# there to prevent editors from complaining about space-tab.
8037
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
8038
# splitting by setting IFS to empty value.)
8041
# Find who we are. Look in the path if we contain no directory separator.
8044
*[\\/]* ) as_myself=$0 ;;
8045
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8049
test -z "$as_dir" && as_dir=.
8050
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8056
# We did not find ourselves, most probably we were run as `sh COMMAND'
8057
# in which case we are not to be found in the path.
8058
if test "x$as_myself" = x; then
8061
if test ! -f "$as_myself"; then
8062
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8066
# Unset variables that we do not need and which cause bugs (e.g. in
8067
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8068
# suppresses any "Segmentation fault" message there. '((' could
8069
# trigger a bug in pdksh 5.2.14.
8070
for as_var in BASH_ENV ENV MAIL MAILPATH
8071
do eval test x\${$as_var+set} = xset \
8072
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8085
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8088
# as_fn_error STATUS ERROR [LINENO LOG_FD]
8089
# ----------------------------------------
8090
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8091
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8092
# script with STATUS, using 1 if that was 0.
8095
as_status=$1; test $as_status -eq 0 && as_status=1
8097
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8098
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8100
$as_echo "$as_me: error: $2" >&2
8101
as_fn_exit $as_status
8105
# as_fn_set_status STATUS
8106
# -----------------------
8107
# Set $? to STATUS, without forking.
8111
} # as_fn_set_status
8115
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8125
# Portably unset VAR.
8128
{ eval $1=; unset $1;}
8130
as_unset=as_fn_unset
8131
# as_fn_append VAR VALUE
8132
# ----------------------
8133
# Append the text in VALUE to the end of the definition contained in VAR. Take
8134
# advantage of any shell optimizations that allow amortized linear growth over
8135
# repeated appends, instead of the typical quadratic growth present in naive
8137
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8138
eval 'as_fn_append ()
8149
# as_fn_arith ARG...
8150
# ------------------
8151
# Perform arithmetic evaluation on the ARGs, and store the result in the
8152
# global $as_val. Take advantage of shells that can avoid forks. The arguments
8153
# must be portable across $(()) and expr.
8154
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8155
eval 'as_fn_arith ()
8162
as_val=`expr "$@" || test $? -eq 1`
8167
if expr a : '\(a\)' >/dev/null 2>&1 &&
8168
test "X`expr 00001 : '.*\(...\)'`" = X001; then
8174
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8175
as_basename=basename
8180
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8186
as_me=`$as_basename -- "$0" ||
8187
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8188
X"$0" : 'X\(//\)$' \| \
8189
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8191
sed '/^.*\/\([^/][^/]*\)\/*$/{
8205
# Avoid depending upon Character Ranges.
8206
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8207
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8208
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8209
as_cr_digits='0123456789'
8210
as_cr_alnum=$as_cr_Letters$as_cr_digits
8212
ECHO_C= ECHO_N= ECHO_T=
8213
case `echo -n x` in #(((((
8215
case `echo 'xy\c'` in
8216
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
8218
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8225
rm -f conf$$ conf$$.exe conf$$.file
8226
if test -d conf$$.dir; then
8227
rm -f conf$$.dir/conf$$.file
8230
mkdir conf$$.dir 2>/dev/null
8232
if (echo >conf$$.file) 2>/dev/null; then
8233
if ln -s conf$$.file conf$$ 2>/dev/null; then
8235
# ... but there are two gotchas:
8236
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8237
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8238
# In both cases, we have to default to `cp -p'.
8239
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8241
elif ln conf$$.file conf$$ 2>/dev/null; then
8249
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8250
rmdir conf$$.dir 2>/dev/null
8255
# Create "$as_dir" as a directory, including parents if necessary.
8260
-*) as_dir=./$as_dir;;
8262
test -d "$as_dir" || eval $as_mkdir_p || {
8266
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8267
*) as_qdir=$as_dir;;
8269
as_dirs="'$as_qdir' $as_dirs"
8270
as_dir=`$as_dirname -- "$as_dir" ||
8271
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8272
X"$as_dir" : 'X\(//\)[^/]' \| \
8273
X"$as_dir" : 'X\(//\)$' \| \
8274
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8275
$as_echo X"$as_dir" |
8276
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8293
test -d "$as_dir" && break
8295
test -z "$as_dirs" || eval "mkdir $as_dirs"
8296
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8300
if mkdir -p . 2>/dev/null; then
8301
as_mkdir_p='mkdir -p "$as_dir"'
8303
test -d ./-p && rmdir ./-p
8307
if test -x / >/dev/null 2>&1; then
8310
if ls -dL / >/dev/null 2>&1; then
8317
if test -d "$1"; then
8323
case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
8324
???[sx]*):;;*)false;;esac;fi
8328
as_executable_p=$as_test_x
8330
# Sed expression to map a string onto a valid CPP name.
8331
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8333
# Sed expression to map a string onto a valid variable name.
8334
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8338
## ----------------------------------- ##
8339
## Main body of $CONFIG_STATUS script. ##
8340
## ----------------------------------- ##
8342
test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8344
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8345
# Save the log message, to keep $0 and so on meaningful, and to
8346
# report actual input values of CONFIG_FILES etc. instead of their
8347
# values after options handling.
8349
This file was extended by FLRIG $as_me 1.3.15, which was
8350
generated by GNU Autoconf 2.68. Invocation command line was
8352
CONFIG_FILES = $CONFIG_FILES
8353
CONFIG_HEADERS = $CONFIG_HEADERS
8354
CONFIG_LINKS = $CONFIG_LINKS
8355
CONFIG_COMMANDS = $CONFIG_COMMANDS
8358
on `(hostname || uname -n) 2>/dev/null | sed 1q`
8363
case $ac_config_files in *"
8364
"*) set x $ac_config_files; shift; ac_config_files=$*;;
8367
case $ac_config_headers in *"
8368
"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8372
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8373
# Files that config.status was made for.
8374
config_files="$ac_config_files"
8375
config_headers="$ac_config_headers"
8376
config_commands="$ac_config_commands"
8380
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8382
\`$as_me' instantiates files and other configuration actions
8383
from templates according to the current configuration. Unless the files
8384
and actions are specified as TAGs, all are instantiated by default.
8386
Usage: $0 [OPTION]... [TAG]...
8388
-h, --help print this help, then exit
8389
-V, --version print version number and configuration settings, then exit
8390
--config print configuration, then exit
8391
-q, --quiet, --silent
8392
do not print progress messages
8393
-d, --debug don't remove temporary files
8394
--recheck update $as_me by reconfiguring in the same conditions
8395
--file=FILE[:TEMPLATE]
8396
instantiate the configuration file FILE
8397
--header=FILE[:TEMPLATE]
8398
instantiate the configuration header FILE
8400
Configuration files:
8403
Configuration headers:
8406
Configuration commands:
8409
Report bugs to <w1hkj AT w1hkj DOT com>."
8412
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8413
ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8415
FLRIG config.status 1.3.15
8416
configured by $0, generated by GNU Autoconf 2.68,
8417
with options \\"\$ac_cs_config\\"
8419
Copyright (C) 2010 Free Software Foundation, Inc.
8420
This config.status script is free software; the Free Software Foundation
8421
gives unlimited permission to copy, distribute and modify it."
8428
test -n "\$AWK" || AWK=awk
8431
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8432
# The default lists apply if the user does not specify any file.
8438
ac_option=`expr "X$1" : 'X\([^=]*\)='`
8439
ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8443
ac_option=`expr "X$1" : 'X\([^=]*\)='`
8455
# Handling of the options.
8456
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8458
--version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8459
$as_echo "$ac_cs_version"; exit ;;
8460
--config | --confi | --conf | --con | --co | --c )
8461
$as_echo "$ac_cs_config"; exit ;;
8462
--debug | --debu | --deb | --de | --d | -d )
8464
--file | --fil | --fi | --f )
8467
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8468
'') as_fn_error $? "missing file argument" ;;
8470
as_fn_append CONFIG_FILES " '$ac_optarg'"
8471
ac_need_defaults=false;;
8472
--header | --heade | --head | --hea )
8475
*\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8477
as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8478
ac_need_defaults=false;;
8480
# Conflict between --help and --header
8481
as_fn_error $? "ambiguous option: \`$1'
8482
Try \`$0 --help' for more information.";;
8483
--help | --hel | -h )
8484
$as_echo "$ac_cs_usage"; exit ;;
8485
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
8486
| -silent | --silent | --silen | --sile | --sil | --si | --s)
8490
-*) as_fn_error $? "unrecognized option: \`$1'
8491
Try \`$0 --help' for more information." ;;
8493
*) as_fn_append ac_config_targets " $1"
8494
ac_need_defaults=false ;;
8500
ac_configure_extra_args=
8502
if $ac_cs_silent; then
8504
ac_configure_extra_args="$ac_configure_extra_args --silent"
8508
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8509
if \$ac_cs_recheck; then
8510
set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8512
\$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8513
CONFIG_SHELL='$SHELL'
8519
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8523
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8524
## Running $as_me. ##
8530
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8534
AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8538
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8540
# Handling of arguments.
8541
for ac_config_target in $ac_config_targets
8543
case $ac_config_target in
8544
"src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
8545
"depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
8546
"Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8547
"src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
8549
*) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8554
# If the user did not use the arguments to specify the items to instantiate,
8555
# then the envvar interface is used. Set only those that are not.
8556
# We use the long form for the default assignment because of an extremely
8557
# bizarre bug on SunOS 4.1.3.
8558
if $ac_need_defaults; then
8559
test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8560
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8561
test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
8564
# Have a temporary directory for convenience. Make it in the build tree
8565
# simply because there is no reason against having it here, and in addition,
8566
# creating and moving files from /tmp can sometimes cause problems.
8567
# Hook for its removal unless debugging.
8568
# Note that there is a small window in which the directory will not be cleaned:
8569
# after its creation but before its name has been assigned to `$tmp'.
8573
trap 'exit_status=$?
8575
{ test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8577
trap 'as_fn_exit 1' 1 2 13 15
8579
# Create a (secure) tmp directory for tmp files.
8582
tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8586
tmp=./conf$$-$RANDOM
8587
(umask 077 && mkdir "$tmp")
8588
} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8591
# Set up the scripts for CONFIG_FILES section.
8592
# No need to generate them if there are no CONFIG_FILES.
8593
# This happens for instance with `./config.status config.h'.
8594
if test -n "$CONFIG_FILES"; then
8597
ac_cr=`echo X | tr X '\015'`
8598
# On cygwin, bash can eat \r inside `` if the user requested igncr.
8599
# But we know of no other shell where ac_cr would be empty at this
8600
# point, so we can use a bashism as a fallback.
8601
if test "x$ac_cr" = x; then
8602
eval ac_cr=\$\'\\r\'
8604
ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8605
if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8611
echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8616
echo "cat >conf$$subs.awk <<_ACEOF" &&
8617
echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8620
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8621
ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8623
for ac_last_try in false false false false false :; do
8624
. ./conf$$subs.sh ||
8625
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8627
ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8628
if test $ac_delim_n = $ac_delim_num; then
8630
elif $ac_last_try; then
8631
as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8633
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8638
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8639
cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8643
s/^/S["/; s/!.*/"]=/
8653
s/\(.\{148\}\)..*/\1/
8655
s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8660
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8667
s/\(.\{148\}\)..*/\1/
8669
s/["\\]/\\&/g; s/^/"/; s/$/"/
8673
s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8678
' <conf$$subs.awk | sed '
8683
' >>$CONFIG_STATUS || ac_write_fail=1
8684
rm -f conf$$subs.awk
8685
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8687
cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8688
for (key in S) S_is_set[key] = 1
8694
nfields = split(line, field, "@")
8696
len = length(field[1])
8697
for (i = 2; i < nfields; i++) {
8699
keylen = length(key)
8700
if (S_is_set[key]) {
8702
line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8703
len += length(value) + length(field[++i])
8714
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8715
if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8716
sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8719
fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
8720
|| as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8723
# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8724
# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8725
# trailing colons and then remove the whole line if VPATH becomes empty
8726
# (actually we leave an empty line to preserve line numbers).
8727
if test "x$srcdir" = x.; then
8728
ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8746
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8747
fi # test -n "$CONFIG_FILES"
8749
# Set up the scripts for CONFIG_HEADERS section.
8750
# No need to generate them if there are no CONFIG_HEADERS.
8751
# This happens for instance with `./config.status Makefile'.
8752
if test -n "$CONFIG_HEADERS"; then
8753
cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
8757
# Transform confdefs.h into an awk script `defines.awk', embedded as
8758
# here-document in config.status, that substitutes the proper values into
8759
# config.h.in to produce config.h.
8761
# Create a delimiter string that does not exist in confdefs.h, to ease
8762
# handling of long lines.
8764
for ac_last_try in false false :; do
8765
ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
8766
if test -z "$ac_tt"; then
8768
elif $ac_last_try; then
8769
as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
8771
ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8775
# For the awk script, D is an array of macro values keyed by name,
8776
# likewise P contains macro parameters if any. Preserve backslash
8777
# newline sequences.
8779
ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8781
s/.\{148\}/&'"$ac_delim"'/g
8784
s/^[ ]*#[ ]*define[ ][ ]*/ /
8791
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8793
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8797
s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8798
D["\1"]=" \3\\\\\\n"\\/p
8800
s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8805
s/.\{148\}/&'"$ac_delim"'/g
8810
s/["\\]/\\&/g; s/^/"/; s/$/"/p
8813
s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8815
' <confdefs.h | sed '
8816
s/'"$ac_delim"'/"\\\
8817
"/g' >>$CONFIG_STATUS || ac_write_fail=1
8819
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8820
for (key in D) D_is_set[key] = 1
8823
/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8825
split(line, arg, " ")
8826
if (arg[1] == "#") {
8830
defundef = substr(arg[1], 2)
8833
split(mac1, mac2, "(") #)
8835
prefix = substr(line, 1, index(line, defundef) - 1)
8836
if (D_is_set[macro]) {
8837
# Preserve the white space surrounding the "#".
8838
print prefix "define", macro P[macro] D[macro]
8841
# Replace #undef with comments. This is necessary, for example,
8842
# in the case of _POSIX_SOURCE, which is predefined and required
8843
# on some systems where configure will not decide to define it.
8844
if (defundef == "undef") {
8845
print "/*", prefix defundef, macro, "*/"
8853
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8854
as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
8855
fi # test -n "$CONFIG_HEADERS"
8858
eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
8863
:[FHLC]) ac_mode=$ac_tag; continue;;
8865
case $ac_mode$ac_tag in
8867
:L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
8868
:[FH]-) ac_tag=-:-;;
8869
:[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8886
-) ac_f="$ac_tmp/stdin";;
8887
*) # Look for the file first in the build tree, then in the source tree
8888
# (if the path is not absolute). The absolute path cannot be DOS-style,
8889
# because $ac_f cannot contain `:'.
8893
*) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8895
as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8897
case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8898
as_fn_append ac_file_inputs " '$ac_f'"
8901
# Let's still pretend it is `configure' which instantiates (i.e., don't
8902
# use $as_me), people would be surprised to read:
8903
# /* config.h. Generated by config.status. */
8904
configure_input='Generated from '`
8905
$as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8907
if test x"$ac_file" != x-; then
8908
configure_input="$ac_file. $configure_input"
8909
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8910
$as_echo "$as_me: creating $ac_file" >&6;}
8912
# Neutralize special characters interpreted by sed in replacement strings.
8913
case $configure_input in #(
8914
*\&* | *\|* | *\\* )
8915
ac_sed_conf_input=`$as_echo "$configure_input" |
8916
sed 's/[\\\\&|]/\\\\&/g'`;; #(
8917
*) ac_sed_conf_input=$configure_input;;
8921
*:-:* | *:-) cat >"$ac_tmp/stdin" \
8922
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
8927
ac_dir=`$as_dirname -- "$ac_file" ||
8928
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8929
X"$ac_file" : 'X\(//\)[^/]' \| \
8930
X"$ac_file" : 'X\(//\)$' \| \
8931
X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8932
$as_echo X"$ac_file" |
8933
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8950
as_dir="$ac_dir"; as_fn_mkdir_p
8954
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8956
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8957
# A ".." for each directory in $ac_dir_suffix.
8958
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8959
case $ac_top_builddir_sub in
8960
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8961
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8964
ac_abs_top_builddir=$ac_pwd
8965
ac_abs_builddir=$ac_pwd$ac_dir_suffix
8966
# for backward compatibility:
8967
ac_top_builddir=$ac_top_build_prefix
8970
.) # We are building in place.
8972
ac_top_srcdir=$ac_top_builddir_sub
8973
ac_abs_top_srcdir=$ac_pwd ;;
8974
[\\/]* | ?:[\\/]* ) # Absolute name.
8975
ac_srcdir=$srcdir$ac_dir_suffix;
8976
ac_top_srcdir=$srcdir
8977
ac_abs_top_srcdir=$srcdir ;;
8979
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8980
ac_top_srcdir=$ac_top_build_prefix$srcdir
8981
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8983
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8993
[\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8994
*) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8998
[\\/$]* | ?:[\\/]* ) ;;
8999
*/*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
9003
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9004
# If the template does not know about datarootdir, expand it.
9005
# FIXME: This hack should be removed a few years after 2.60.
9006
ac_datarootdir_hack=; ac_datarootdir_seen=
9017
case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9018
*datarootdir*) ac_datarootdir_seen=yes;;
9019
*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9020
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9021
$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9023
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9024
ac_datarootdir_hack='
9025
s&@datadir@&$datadir&g
9026
s&@docdir@&$docdir&g
9027
s&@infodir@&$infodir&g
9028
s&@localedir@&$localedir&g
9029
s&@mandir@&$mandir&g
9030
s&\\\${datarootdir}&$datarootdir&g' ;;
9034
# Neutralize VPATH when `$srcdir' = `.'.
9035
# Shell code in configure.ac might set extrasub.
9036
# FIXME: do we really want to maintain this feature?
9037
cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9038
ac_sed_extra="$ac_vpsub
9041
cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9043
/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9044
s|@configure_input@|$ac_sed_conf_input|;t t
9045
s&@top_builddir@&$ac_top_builddir_sub&;t t
9046
s&@top_build_prefix@&$ac_top_build_prefix&;t t
9047
s&@srcdir@&$ac_srcdir&;t t
9048
s&@abs_srcdir@&$ac_abs_srcdir&;t t
9049
s&@top_srcdir@&$ac_top_srcdir&;t t
9050
s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9051
s&@builddir@&$ac_builddir&;t t
9052
s&@abs_builddir@&$ac_abs_builddir&;t t
9053
s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9054
s&@INSTALL@&$ac_INSTALL&;t t
9055
s&@MKDIR_P@&$ac_MKDIR_P&;t t
9056
$ac_datarootdir_hack
9058
eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
9059
>$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9061
test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9062
{ ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
9063
{ ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
9064
"$ac_tmp/out"`; test -z "$ac_out"; } &&
9065
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9066
which seems to be undefined. Please make sure it is defined" >&5
9067
$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9068
which seems to be undefined. Please make sure it is defined" >&2;}
9070
rm -f "$ac_tmp/stdin"
9072
-) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9073
*) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9075
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
9081
if test x"$ac_file" != x-; then
9083
$as_echo "/* $configure_input */" \
9084
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
9085
} >"$ac_tmp/config.h" \
9086
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
9087
if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
9088
{ $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9089
$as_echo "$as_me: $ac_file is unchanged" >&6;}
9092
mv "$ac_tmp/config.h" "$ac_file" \
9093
|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
9096
$as_echo "/* $configure_input */" \
9097
&& eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
9098
|| as_fn_error $? "could not create -" "$LINENO" 5
9100
# Compute "$ac_file"'s index in $config_headers.
9103
for _am_header in $config_headers :; do
9105
$_am_arg | $_am_arg:* )
9108
_am_stamp_count=`expr $_am_stamp_count + 1` ;;
9111
echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
9112
$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9113
X"$_am_arg" : 'X\(//\)[^/]' \| \
9114
X"$_am_arg" : 'X\(//\)$' \| \
9115
X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
9116
$as_echo X"$_am_arg" |
9117
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9133
s/.*/./; q'`/stamp-h$_am_stamp_count
9136
:C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9137
$as_echo "$as_me: executing $ac_file commands" >&6;}
9142
case $ac_file$ac_mode in
9143
"depfiles":C) test x"$AMDEP_TRUE" != x"" || {
9144
# Autoconf 2.62 quotes --file arguments for eval, but not when files
9145
# are listed without --file. Let's play safe and only enable the eval
9146
# if we detect the quoting.
9147
case $CONFIG_FILES in
9148
*\'*) eval set x "$CONFIG_FILES" ;;
9149
*) set x $CONFIG_FILES ;;
9154
# Strip MF so we end up with the name of the file.
9155
mf=`echo "$mf" | sed -e 's/:.*$//'`
9156
# Check whether this is an Automake generated Makefile or not.
9157
# We used to match only the files named `Makefile.in', but
9158
# some people rename them; so instead we look at the file content.
9159
# Grep'ing the first line is not enough: some people post-process
9160
# each Makefile.in and add a new line on top of each file to say so.
9161
# Grep'ing the whole file is not good either: AIX grep has a line
9162
# limit of 2048, but all sed's we know have understand at least 4000.
9163
if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
9164
dirpart=`$as_dirname -- "$mf" ||
9165
$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9166
X"$mf" : 'X\(//\)[^/]' \| \
9167
X"$mf" : 'X\(//\)$' \| \
9168
X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
9170
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9190
# Extract the definition of DEPDIR, am__include, and am__quote
9191
# from the Makefile without running `make'.
9192
DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9193
test -z "$DEPDIR" && continue
9194
am__include=`sed -n 's/^am__include = //p' < "$mf"`
9195
test -z "am__include" && continue
9196
am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9197
# When using ansi2knr, U may be empty or an underscore; expand it
9198
U=`sed -n 's/^U = //p' < "$mf"`
9199
# Find all dependency output files, they are included files with
9200
# $(DEPDIR) in their names. We invoke sed twice because it is the
9201
# simplest approach to changing $(DEPDIR) to its actual value in the
9203
for file in `sed -n "
9204
s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9205
sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9206
# Make sure the directory exists.
9207
test -f "$dirpart/$file" && continue
9208
fdir=`$as_dirname -- "$file" ||
9209
$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9210
X"$file" : 'X\(//\)[^/]' \| \
9211
X"$file" : 'X\(//\)$' \| \
9212
X"$file" : 'X\(/\)' \| . 2>/dev/null ||
9214
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9231
as_dir=$dirpart/$fdir; as_fn_mkdir_p
9232
# echo "creating $dirpart/$file"
9233
echo '# dummy' > "$dirpart/$file"
9245
ac_clean_files=$ac_clean_files_save
9247
test $ac_write_fail = 0 ||
9248
as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9251
# configure is writing to config.log, and then calls config.status.
9252
# config.status does its own redirection, appending to config.log.
9253
# Unfortunately, on DOS this fails, as config.log is still kept open
9254
# by configure, so config.status won't be able to write to it; its
9255
# output is simply discarded. So we exec the FD to /dev/null,
9256
# effectively closing config.log, so it can be properly (re)opened and
9257
# appended to by config.status. When coming back to configure, we
9258
# need to make the FD available again.
9259
if test "$no_create" != yes; then
9261
ac_config_status_args=
9262
test "$silent" = yes &&
9263
ac_config_status_args="$ac_config_status_args --quiet"
9265
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9267
# Use ||, not &&, to avoid exiting from the if with $? = 1, which
9268
# would make configure fail if this is the last instruction.
9269
$ac_cs_success || as_fn_exit 1
9271
if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9272
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9273
$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
9278
{ $as_echo "$as_me:${as_lineno-$LINENO}: result:
9279
Configuration summary:
9281
Version ..................... $VERSION
9283
Target OS ................... $target_os
9285
Static linking .............. $ac_cv_static
9286
CPU optimizations ........... $ac_cv_opt
9287
Debugging ................... $ac_cv_debug
9291
Configuration summary:
9293
Version ..................... $VERSION
9295
Target OS ................... $target_os
9297
Static linking .............. $ac_cv_static
9298
CPU optimizations ........... $ac_cv_opt
9299
Debugging ................... $ac_cv_debug