2
# Guess values for system-dependent variables and create Makefiles.
3
# Generated by GNU Autoconf 2.69 for Octave-Forge miscellaneous package 1.2.0+.
6
# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9
# This configure script is free software; the Free Software Foundation
10
# gives unlimited permission to copy, distribute and modify it.
11
## -------------------- ##
12
## M4sh Initialization. ##
13
## -------------------- ##
15
# Be more Bourne compatible
16
DUALCASE=1; export DUALCASE # for MKS sh
17
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20
# Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21
# is contrary to our usage. Disable this feature.
22
alias -g '${1+"$@"}'='"$@"'
25
case `(set -o) 2>/dev/null` in #(
37
# Printing a long string crashes Solaris 7 /usr/bin/printf.
38
as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40
as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41
# Prefer a ksh shell builtin over an external printf program on Solaris,
42
# but without wasting forks for bash or zsh.
43
if test -z "$BASH_VERSION$ZSH_VERSION" \
44
&& (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46
as_echo_n='print -rn --'
47
elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51
if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52
as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53
as_echo_n='/usr/ucb/echo -n'
55
as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60
expr "X$arg" : "X\\(.*\\)$as_nl";
61
arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63
expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66
as_echo_n='sh -c $as_echo_n_body as_echo'
69
as_echo='sh -c $as_echo_body as_echo'
72
# The user is always right.
73
if test "${PATH_SEPARATOR+set}" != set; then
75
(PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76
(PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83
# We need space, tab and new line, in precisely that order. Quoting is
84
# there to prevent editors from complaining about space-tab.
85
# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86
# splitting by setting IFS to empty value.)
89
# Find who we are. Look in the path if we contain no directory separator.
92
*[\\/]* ) as_myself=$0 ;;
93
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97
test -z "$as_dir" && as_dir=.
98
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104
# We did not find ourselves, most probably we were run as `sh COMMAND'
105
# in which case we are not to be found in the path.
106
if test "x$as_myself" = x; then
109
if test ! -f "$as_myself"; then
110
$as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114
# Unset variables that we do not need and which cause bugs (e.g. in
115
# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116
# suppresses any "Segmentation fault" message there. '((' could
117
# trigger a bug in pdksh 5.2.14.
118
for as_var in BASH_ENV ENV MAIL MAILPATH
119
do eval test x\${$as_var+set} = xset \
120
&& ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
133
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
# Use a proper internal environment variable to ensure we don't fall
136
# into an infinite loop, continuously re-executing ourselves.
137
if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138
_as_can_reexec=no; export _as_can_reexec;
139
# We cannot yet assume a decent shell, so we have to provide a
140
# neutralization value for shells without unset; and this also
141
# works around shells that cannot unset nonexistent variables.
142
# Preserve -v and -x to the replacement shell.
145
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
147
*v*x* | *x*v* ) as_opts=-vx ;;
152
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153
# Admittedly, this is quite paranoid, since all the known shells bail
154
# out after a failed `exec'.
155
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158
# We don't want this to propagate to other subprocesses.
159
{ _as_can_reexec=; unset _as_can_reexec;}
160
if test "x$CONFIG_SHELL" = x; then
161
as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164
# Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165
# is contrary to our usage. Disable this feature.
166
alias -g '\${1+\"\$@\"}'='\"\$@\"'
169
case \`(set -o) 2>/dev/null\` in #(
177
as_required="as_fn_return () { (exit \$1); }
178
as_fn_success () { as_fn_return 0; }
179
as_fn_failure () { as_fn_return 1; }
180
as_fn_ret_success () { return 0; }
181
as_fn_ret_failure () { return 1; }
184
as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185
as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186
as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187
as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188
if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
exitcode=1; echo positional parameters were not saved.
193
test x\$exitcode = x0 || exit 1
195
as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196
as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197
eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198
test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199
test \$(( 1 + 1 )) = 2 || exit 1"
200
if (eval "$as_required") 2>/dev/null; then :
205
if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
210
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213
test -z "$as_dir" && as_dir=.
217
for as_base in sh bash ksh sh5; do
218
# Try only shells that exist, to save several forks.
219
as_shell=$as_dir/$as_base
220
if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222
CONFIG_SHELL=$as_shell as_have_required=yes
223
if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
231
$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232
{ $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233
CONFIG_SHELL=$SHELL as_have_required=yes
238
if test "x$CONFIG_SHELL" != x; then :
240
# We cannot yet assume a decent shell, so we have to provide a
241
# neutralization value for shells without unset; and this also
242
# works around shells that cannot unset nonexistent variables.
243
# Preserve -v and -x to the replacement shell.
246
(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
248
*v*x* | *x*v* ) as_opts=-vx ;;
253
exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254
# Admittedly, this is quite paranoid, since all the known shells bail
255
# out after a failed `exec'.
256
$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260
if test x$as_have_required = xno; then :
261
$as_echo "$0: This script requires a shell more modern than all"
262
$as_echo "$0: the shells that I found on your system."
263
if test x${ZSH_VERSION+set} = xset ; then
264
$as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265
$as_echo "$0: be upgraded to zsh 4.3.4 or later."
267
$as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268
$0: including any error possibly output before this
269
$0: message. Then install a modern shell, or manually run
270
$0: the script under such a shell if you do have one."
276
SHELL=${CONFIG_SHELL-/bin/sh}
278
# Unset more variables known to interfere with behavior of common tools.
279
CLICOLOR_FORCE= GREP_OPTIONS=
280
unset CLICOLOR_FORCE GREP_OPTIONS
282
## --------------------- ##
283
## M4sh Shell Functions. ##
284
## --------------------- ##
287
# Portably unset VAR.
290
{ eval $1=; unset $1;}
294
# as_fn_set_status STATUS
295
# -----------------------
296
# Set $? to STATUS, without forking.
304
# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314
# Create "$as_dir" as a directory, including parents if necessary.
319
-*) as_dir=./$as_dir;;
321
test -d "$as_dir" || eval $as_mkdir_p || {
325
*\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328
as_dirs="'$as_qdir' $as_dirs"
329
as_dir=`$as_dirname -- "$as_dir" ||
330
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331
X"$as_dir" : 'X\(//\)[^/]' \| \
332
X"$as_dir" : 'X\(//\)$' \| \
333
X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334
$as_echo X"$as_dir" |
335
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352
test -d "$as_dir" && break
354
test -z "$as_dirs" || eval "mkdir $as_dirs"
355
} || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
360
# as_fn_executable_p FILE
361
# -----------------------
362
# Test if FILE is an executable regular file.
363
as_fn_executable_p ()
365
test -f "$1" && test -x "$1"
366
} # as_fn_executable_p
367
# as_fn_append VAR VALUE
368
# ----------------------
369
# Append the text in VALUE to the end of the definition contained in VAR. Take
370
# advantage of any shell optimizations that allow amortized linear growth over
371
# repeated appends, instead of the typical quadratic growth present in naive
373
if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374
eval 'as_fn_append ()
387
# Perform arithmetic evaluation on the ARGs, and store the result in the
388
# global $as_val. Take advantage of shells that can avoid forks. The arguments
389
# must be portable across $(()) and expr.
390
if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
398
as_val=`expr "$@" || test $? -eq 1`
403
# as_fn_error STATUS ERROR [LINENO LOG_FD]
404
# ----------------------------------------
405
# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406
# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407
# script with STATUS, using 1 if that was 0.
410
as_status=$1; test $as_status -eq 0 && as_status=1
412
as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413
$as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415
$as_echo "$as_me: error: $2" >&2
416
as_fn_exit $as_status
419
if expr a : '\(a\)' >/dev/null 2>&1 &&
420
test "X`expr 00001 : '.*\(...\)'`" = X001; then
426
if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432
if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
438
as_me=`$as_basename -- "$0" ||
439
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440
X"$0" : 'X\(//\)$' \| \
441
X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443
sed '/^.*\/\([^/][^/]*\)\/*$/{
457
# Avoid depending upon Character Ranges.
458
as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460
as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461
as_cr_digits='0123456789'
462
as_cr_alnum=$as_cr_Letters$as_cr_digits
465
as_lineno_1=$LINENO as_lineno_1a=$LINENO
466
as_lineno_2=$LINENO as_lineno_2a=$LINENO
467
eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468
test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469
# Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481
s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485
chmod +x "$as_me.lineno" ||
486
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
488
# If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489
# already done that, so ensure we don't try to do so again and fall
490
# in an infinite loop. This has already happened in practice.
491
_as_can_reexec=no; export _as_can_reexec
492
# Don't try to exec as it changes $[0], causing all sort of problems
493
# (the dirname of $[0] is not the place where we might find the
494
# original and so on. Autoconf is especially sensitive to this).
496
# Exit status is that of the last command.
500
ECHO_C= ECHO_N= ECHO_T=
501
case `echo -n x` in #(((((
503
case `echo 'xy\c'` in
504
*c*) ECHO_T=' ';; # ECHO_T is single tab character.
506
*) echo `echo ksh88 bug on AIX 6.1` > /dev/null
513
rm -f conf$$ conf$$.exe conf$$.file
514
if test -d conf$$.dir; then
515
rm -f conf$$.dir/conf$$.file
518
mkdir conf$$.dir 2>/dev/null
520
if (echo >conf$$.file) 2>/dev/null; then
521
if ln -s conf$$.file conf$$ 2>/dev/null; then
523
# ... but there are two gotchas:
524
# 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525
# 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526
# In both cases, we have to default to `cp -pR'.
527
ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
529
elif ln conf$$.file conf$$ 2>/dev/null; then
537
rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538
rmdir conf$$.dir 2>/dev/null
540
if mkdir -p . 2>/dev/null; then
541
as_mkdir_p='mkdir -p "$as_dir"'
543
test -d ./-p && rmdir ./-p
548
as_executable_p=as_fn_executable_p
550
# Sed expression to map a string onto a valid CPP name.
551
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553
# Sed expression to map a string onto a valid variable name.
554
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557
test -n "$DJDIR" || exec 7<&0 </dev/null
561
# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562
# so uname gets run too.
563
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
568
ac_default_prefix=/usr/local
570
ac_config_libobj_dir=.
577
# Identity of this package.
578
PACKAGE_NAME='Octave-Forge miscellaneous package'
579
PACKAGE_TARNAME='octave-forge-miscellaneous-package'
580
PACKAGE_VERSION='1.2.0+'
581
PACKAGE_STRING='Octave-Forge miscellaneous package 1.2.0+'
585
# Factoring default headers for most tests.
586
ac_includes_default="\
588
#ifdef HAVE_SYS_TYPES_H
589
# include <sys/types.h>
591
#ifdef HAVE_SYS_STAT_H
592
# include <sys/stat.h>
598
# ifdef HAVE_STDLIB_H
603
# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608
#ifdef HAVE_STRINGS_H
609
# include <strings.h>
611
#ifdef HAVE_INTTYPES_H
612
# include <inttypes.h>
621
ac_subst_vars='UNITS_AVAILABLE
662
program_transform_name
675
enable_option_checking
677
ac_precious_vars='build_alias
691
# Initialize some variables set by options.
693
ac_init_version=false
694
ac_unrecognized_opts=
696
# The variables have the same names as the options, with
697
# dashes changed to underlines.
705
program_transform_name=s,x,x,
713
# Installation directory options.
714
# These are left unexpanded so users can "make install exec_prefix=/foo"
715
# and all the variables that are supposed to be based on exec_prefix
716
# by default will actually change.
717
# Use braces instead of parens because sh, perl, etc. also accept them.
718
# (The list follows the same order as the GNU Coding Standards.)
719
bindir='${exec_prefix}/bin'
720
sbindir='${exec_prefix}/sbin'
721
libexecdir='${exec_prefix}/libexec'
722
datarootdir='${prefix}/share'
723
datadir='${datarootdir}'
724
sysconfdir='${prefix}/etc'
725
sharedstatedir='${prefix}/com'
726
localstatedir='${prefix}/var'
727
includedir='${prefix}/include'
728
oldincludedir='/usr/include'
729
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
730
infodir='${datarootdir}/info'
735
libdir='${exec_prefix}/lib'
736
localedir='${datarootdir}/locale'
737
mandir='${datarootdir}/man'
743
# If the previous option needs an argument, assign it.
744
if test -n "$ac_prev"; then
745
eval $ac_prev=\$ac_option
751
*=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
756
# Accept the important Cygnus configure options, so we can diagnose typos.
758
case $ac_dashdash$ac_option in
762
-bindir | --bindir | --bindi | --bind | --bin | --bi)
764
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
767
-build | --build | --buil | --bui | --bu)
768
ac_prev=build_alias ;;
769
-build=* | --build=* | --buil=* | --bui=* | --bu=*)
770
build_alias=$ac_optarg ;;
772
-cache-file | --cache-file | --cache-fil | --cache-fi \
773
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
774
ac_prev=cache_file ;;
775
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
776
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
777
cache_file=$ac_optarg ;;
780
cache_file=config.cache ;;
782
-datadir | --datadir | --datadi | --datad)
784
-datadir=* | --datadir=* | --datadi=* | --datad=*)
785
datadir=$ac_optarg ;;
787
-datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
788
| --dataroo | --dataro | --datar)
789
ac_prev=datarootdir ;;
790
-datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
791
| --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
792
datarootdir=$ac_optarg ;;
794
-disable-* | --disable-*)
795
ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
796
# Reject names that are not valid shell variable names.
797
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
798
as_fn_error $? "invalid feature name: $ac_useropt"
799
ac_useropt_orig=$ac_useropt
800
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
801
case $ac_user_opts in
805
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
806
ac_unrecognized_sep=', ';;
808
eval enable_$ac_useropt=no ;;
810
-docdir | --docdir | --docdi | --doc | --do)
812
-docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
815
-dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
817
-dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
820
-enable-* | --enable-*)
821
ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
822
# Reject names that are not valid shell variable names.
823
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
824
as_fn_error $? "invalid feature name: $ac_useropt"
825
ac_useropt_orig=$ac_useropt
826
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
827
case $ac_user_opts in
831
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
832
ac_unrecognized_sep=', ';;
834
eval enable_$ac_useropt=\$ac_optarg ;;
836
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
837
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
838
| --exec | --exe | --ex)
839
ac_prev=exec_prefix ;;
840
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
841
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
842
| --exec=* | --exe=* | --ex=*)
843
exec_prefix=$ac_optarg ;;
845
-gas | --gas | --ga | --g)
846
# Obsolete; use --with-gas.
849
-help | --help | --hel | --he | -h)
851
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
852
ac_init_help=recursive ;;
853
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
854
ac_init_help=short ;;
856
-host | --host | --hos | --ho)
857
ac_prev=host_alias ;;
858
-host=* | --host=* | --hos=* | --ho=*)
859
host_alias=$ac_optarg ;;
861
-htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
863
-htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
865
htmldir=$ac_optarg ;;
867
-includedir | --includedir | --includedi | --included | --include \
868
| --includ | --inclu | --incl | --inc)
869
ac_prev=includedir ;;
870
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
871
| --includ=* | --inclu=* | --incl=* | --inc=*)
872
includedir=$ac_optarg ;;
874
-infodir | --infodir | --infodi | --infod | --info | --inf)
876
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
877
infodir=$ac_optarg ;;
879
-libdir | --libdir | --libdi | --libd)
881
-libdir=* | --libdir=* | --libdi=* | --libd=*)
884
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
885
| --libexe | --libex | --libe)
886
ac_prev=libexecdir ;;
887
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
888
| --libexe=* | --libex=* | --libe=*)
889
libexecdir=$ac_optarg ;;
891
-localedir | --localedir | --localedi | --localed | --locale)
893
-localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
894
localedir=$ac_optarg ;;
896
-localstatedir | --localstatedir | --localstatedi | --localstated \
897
| --localstate | --localstat | --localsta | --localst | --locals)
898
ac_prev=localstatedir ;;
899
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
900
| --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
901
localstatedir=$ac_optarg ;;
903
-mandir | --mandir | --mandi | --mand | --man | --ma | --m)
905
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
909
# Obsolete; use --without-fp.
912
-no-create | --no-create | --no-creat | --no-crea | --no-cre \
913
| --no-cr | --no-c | -n)
916
-no-recursion | --no-recursion | --no-recursio | --no-recursi \
917
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
920
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
921
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
922
| --oldin | --oldi | --old | --ol | --o)
923
ac_prev=oldincludedir ;;
924
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
925
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
926
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
927
oldincludedir=$ac_optarg ;;
929
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
931
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
934
-program-prefix | --program-prefix | --program-prefi | --program-pref \
935
| --program-pre | --program-pr | --program-p)
936
ac_prev=program_prefix ;;
937
-program-prefix=* | --program-prefix=* | --program-prefi=* \
938
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
939
program_prefix=$ac_optarg ;;
941
-program-suffix | --program-suffix | --program-suffi | --program-suff \
942
| --program-suf | --program-su | --program-s)
943
ac_prev=program_suffix ;;
944
-program-suffix=* | --program-suffix=* | --program-suffi=* \
945
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
946
program_suffix=$ac_optarg ;;
948
-program-transform-name | --program-transform-name \
949
| --program-transform-nam | --program-transform-na \
950
| --program-transform-n | --program-transform- \
951
| --program-transform | --program-transfor \
952
| --program-transfo | --program-transf \
953
| --program-trans | --program-tran \
954
| --progr-tra | --program-tr | --program-t)
955
ac_prev=program_transform_name ;;
956
-program-transform-name=* | --program-transform-name=* \
957
| --program-transform-nam=* | --program-transform-na=* \
958
| --program-transform-n=* | --program-transform-=* \
959
| --program-transform=* | --program-transfor=* \
960
| --program-transfo=* | --program-transf=* \
961
| --program-trans=* | --program-tran=* \
962
| --progr-tra=* | --program-tr=* | --program-t=*)
963
program_transform_name=$ac_optarg ;;
965
-pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
967
-pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
970
-psdir | --psdir | --psdi | --psd | --ps)
972
-psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
975
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
976
| -silent | --silent | --silen | --sile | --sil)
979
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
981
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
983
sbindir=$ac_optarg ;;
985
-sharedstatedir | --sharedstatedir | --sharedstatedi \
986
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \
987
| --sharedst | --shareds | --shared | --share | --shar \
989
ac_prev=sharedstatedir ;;
990
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
991
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
992
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
994
sharedstatedir=$ac_optarg ;;
996
-site | --site | --sit)
998
-site=* | --site=* | --sit=*)
1001
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1003
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1004
srcdir=$ac_optarg ;;
1006
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1007
| --syscon | --sysco | --sysc | --sys | --sy)
1008
ac_prev=sysconfdir ;;
1009
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1010
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1011
sysconfdir=$ac_optarg ;;
1013
-target | --target | --targe | --targ | --tar | --ta | --t)
1014
ac_prev=target_alias ;;
1015
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1016
target_alias=$ac_optarg ;;
1018
-v | -verbose | --verbose | --verbos | --verbo | --verb)
1021
-version | --version | --versio | --versi | --vers | -V)
1022
ac_init_version=: ;;
1025
ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1026
# Reject names that are not valid shell variable names.
1027
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1028
as_fn_error $? "invalid package name: $ac_useropt"
1029
ac_useropt_orig=$ac_useropt
1030
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1031
case $ac_user_opts in
1035
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1036
ac_unrecognized_sep=', ';;
1038
eval with_$ac_useropt=\$ac_optarg ;;
1040
-without-* | --without-*)
1041
ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1042
# Reject names that are not valid shell variable names.
1043
expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1044
as_fn_error $? "invalid package name: $ac_useropt"
1045
ac_useropt_orig=$ac_useropt
1046
ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1047
case $ac_user_opts in
1051
*) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1052
ac_unrecognized_sep=', ';;
1054
eval with_$ac_useropt=no ;;
1057
# Obsolete; use --with-x.
1060
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1061
| --x-incl | --x-inc | --x-in | --x-i)
1062
ac_prev=x_includes ;;
1063
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1064
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1065
x_includes=$ac_optarg ;;
1067
-x-libraries | --x-libraries | --x-librarie | --x-librari \
1068
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1069
ac_prev=x_libraries ;;
1070
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1071
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1072
x_libraries=$ac_optarg ;;
1074
-*) as_fn_error $? "unrecognized option: \`$ac_option'
1075
Try \`$0 --help' for more information"
1079
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1080
# Reject names that are not valid shell variable names.
1081
case $ac_envvar in #(
1082
'' | [0-9]* | *[!_$as_cr_alnum]* )
1083
as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1085
eval $ac_envvar=\$ac_optarg
1086
export $ac_envvar ;;
1089
# FIXME: should be removed in autoconf 3.0.
1090
$as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1091
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1092
$as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1093
: "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1099
if test -n "$ac_prev"; then
1100
ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1101
as_fn_error $? "missing argument to $ac_option"
1104
if test -n "$ac_unrecognized_opts"; then
1105
case $enable_option_checking in
1107
fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1108
*) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1112
# Check all directory arguments for consistency.
1113
for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1114
datadir sysconfdir sharedstatedir localstatedir includedir \
1115
oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1116
libdir localedir mandir
1118
eval ac_val=\$$ac_var
1119
# Remove trailing slashes.
1122
ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1123
eval $ac_var=\$ac_val;;
1125
# Be sure to have absolute directory names.
1127
[\\/$]* | ?:[\\/]* ) continue;;
1128
NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1130
as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1133
# There might be people who depend on the old broken behavior: `$host'
1134
# used to hold the argument of --host etc.
1135
# FIXME: To remove some day.
1138
target=$target_alias
1140
# FIXME: To remove some day.
1141
if test "x$host_alias" != x; then
1142
if test "x$build_alias" = x; then
1143
cross_compiling=maybe
1144
elif test "x$build_alias" != "x$host_alias"; then
1150
test -n "$host_alias" && ac_tool_prefix=$host_alias-
1152
test "$silent" = yes && exec 6>/dev/null
1155
ac_pwd=`pwd` && test -n "$ac_pwd" &&
1156
ac_ls_di=`ls -di .` &&
1157
ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1158
as_fn_error $? "working directory cannot be determined"
1159
test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1160
as_fn_error $? "pwd does not report name of working directory"
1163
# Find the source files, if location was not specified.
1164
if test -z "$srcdir"; then
1165
ac_srcdir_defaulted=yes
1166
# Try the directory containing this script, then the parent directory.
1167
ac_confdir=`$as_dirname -- "$as_myself" ||
1168
$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1169
X"$as_myself" : 'X\(//\)[^/]' \| \
1170
X"$as_myself" : 'X\(//\)$' \| \
1171
X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1172
$as_echo X"$as_myself" |
1173
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1191
if test ! -r "$srcdir/$ac_unique_file"; then
1195
ac_srcdir_defaulted=no
1197
if test ! -r "$srcdir/$ac_unique_file"; then
1198
test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1199
as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1201
ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1203
cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1205
# When building in place, set srcdir=.
1206
if test "$ac_abs_confdir" = "$ac_pwd"; then
1209
# Remove unnecessary trailing slashes from srcdir.
1210
# Double slashes in file names in object file debugging info
1211
# mess up M-x gdb in Emacs.
1213
*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1215
for ac_var in $ac_precious_vars; do
1216
eval ac_env_${ac_var}_set=\${${ac_var}+set}
1217
eval ac_env_${ac_var}_value=\$${ac_var}
1218
eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1219
eval ac_cv_env_${ac_var}_value=\$${ac_var}
1223
# Report the --help message.
1225
if test "$ac_init_help" = "long"; then
1226
# Omit some internal or obsolete options to make the list less imposing.
1227
# This message is too long to be a string in the A/UX 3.1 sh.
1229
\`configure' configures Octave-Forge miscellaneous package 1.2.0+ to adapt to many kinds of systems.
1231
Usage: $0 [OPTION]... [VAR=VALUE]...
1233
To assign environment variables (e.g., CC, CFLAGS...), specify them as
1234
VAR=VALUE. See below for descriptions of some of the useful variables.
1236
Defaults for the options are specified in brackets.
1239
-h, --help display this help and exit
1240
--help=short display options specific to this package
1241
--help=recursive display the short help of all the included packages
1242
-V, --version display version information and exit
1243
-q, --quiet, --silent do not print \`checking ...' messages
1244
--cache-file=FILE cache test results in FILE [disabled]
1245
-C, --config-cache alias for \`--cache-file=config.cache'
1246
-n, --no-create do not create output files
1247
--srcdir=DIR find the sources in DIR [configure dir or \`..']
1249
Installation directories:
1250
--prefix=PREFIX install architecture-independent files in PREFIX
1251
[$ac_default_prefix]
1252
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1255
By default, \`make install' will install all the files in
1256
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1257
an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1258
for instance \`--prefix=\$HOME'.
1260
For better control, use the options below.
1262
Fine tuning of the installation directories:
1263
--bindir=DIR user executables [EPREFIX/bin]
1264
--sbindir=DIR system admin executables [EPREFIX/sbin]
1265
--libexecdir=DIR program executables [EPREFIX/libexec]
1266
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1267
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1268
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
1269
--libdir=DIR object code libraries [EPREFIX/lib]
1270
--includedir=DIR C header files [PREFIX/include]
1271
--oldincludedir=DIR C header files for non-gcc [/usr/include]
1272
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1273
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1274
--infodir=DIR info documentation [DATAROOTDIR/info]
1275
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1276
--mandir=DIR man documentation [DATAROOTDIR/man]
1277
--docdir=DIR documentation root
1278
[DATAROOTDIR/doc/octave-forge-miscellaneous-package]
1279
--htmldir=DIR html documentation [DOCDIR]
1280
--dvidir=DIR dvi documentation [DOCDIR]
1281
--pdfdir=DIR pdf documentation [DOCDIR]
1282
--psdir=DIR ps documentation [DOCDIR]
1289
if test -n "$ac_init_help"; then
1290
case $ac_init_help in
1291
short | recursive ) echo "Configuration of Octave-Forge miscellaneous package 1.2.0+:";;
1295
Some influential environment variables:
1296
CC C compiler command
1297
CFLAGS C compiler flags
1298
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1299
nonstandard directory <lib dir>
1300
LIBS libraries to pass to the linker, e.g. -l<library>
1301
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1302
you have headers in a nonstandard directory <include dir>
1304
CXX C++ compiler command
1305
CXXFLAGS C++ compiler flags
1307
Use these variables to override the choices made by `configure' or to help
1308
it to find libraries and programs with nonstandard names/locations.
1310
Report bugs to the package provider.
1315
if test "$ac_init_help" = "recursive"; then
1316
# If there are subdirs, report their specific --help.
1317
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1318
test -d "$ac_dir" ||
1319
{ cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1324
.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1326
ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1327
# A ".." for each directory in $ac_dir_suffix.
1328
ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1329
case $ac_top_builddir_sub in
1330
"") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1331
*) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1334
ac_abs_top_builddir=$ac_pwd
1335
ac_abs_builddir=$ac_pwd$ac_dir_suffix
1336
# for backward compatibility:
1337
ac_top_builddir=$ac_top_build_prefix
1340
.) # We are building in place.
1342
ac_top_srcdir=$ac_top_builddir_sub
1343
ac_abs_top_srcdir=$ac_pwd ;;
1344
[\\/]* | ?:[\\/]* ) # Absolute name.
1345
ac_srcdir=$srcdir$ac_dir_suffix;
1346
ac_top_srcdir=$srcdir
1347
ac_abs_top_srcdir=$srcdir ;;
1349
ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1350
ac_top_srcdir=$ac_top_build_prefix$srcdir
1351
ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1353
ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1355
cd "$ac_dir" || { ac_status=$?; continue; }
1356
# Check for guested configure.
1357
if test -f "$ac_srcdir/configure.gnu"; then
1359
$SHELL "$ac_srcdir/configure.gnu" --help=recursive
1360
elif test -f "$ac_srcdir/configure"; then
1362
$SHELL "$ac_srcdir/configure" --help=recursive
1364
$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1366
cd "$ac_pwd" || { ac_status=$?; break; }
1370
test -n "$ac_init_help" && exit $ac_status
1371
if $ac_init_version; then
1373
Octave-Forge miscellaneous package configure 1.2.0+
1374
generated by GNU Autoconf 2.69
1376
Copyright (C) 2012 Free Software Foundation, Inc.
1377
This configure script is free software; the Free Software Foundation
1378
gives unlimited permission to copy, distribute and modify it.
1383
## ------------------------ ##
1384
## Autoconf initialization. ##
1385
## ------------------------ ##
1387
# ac_fn_c_try_compile LINENO
1388
# --------------------------
1389
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1390
ac_fn_c_try_compile ()
1392
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1393
rm -f conftest.$ac_objext
1394
if { { ac_try="$ac_compile"
1396
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1397
*) ac_try_echo=$ac_try;;
1399
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1400
$as_echo "$ac_try_echo"; } >&5
1401
(eval "$ac_compile") 2>conftest.err
1403
if test -s conftest.err; then
1404
grep -v '^ *+' conftest.err >conftest.er1
1405
cat conftest.er1 >&5
1406
mv -f conftest.er1 conftest.err
1408
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1409
test $ac_status = 0; } && {
1410
test -z "$ac_c_werror_flag" ||
1411
test ! -s conftest.err
1412
} && test -s conftest.$ac_objext; then :
1415
$as_echo "$as_me: failed program was:" >&5
1416
sed 's/^/| /' conftest.$ac_ext >&5
1420
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1421
as_fn_set_status $ac_retval
1423
} # ac_fn_c_try_compile
1425
# ac_fn_c_try_cpp LINENO
1426
# ----------------------
1427
# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1430
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1431
if { { ac_try="$ac_cpp conftest.$ac_ext"
1433
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1434
*) ac_try_echo=$ac_try;;
1436
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1437
$as_echo "$ac_try_echo"; } >&5
1438
(eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1440
if test -s conftest.err; then
1441
grep -v '^ *+' conftest.err >conftest.er1
1442
cat conftest.er1 >&5
1443
mv -f conftest.er1 conftest.err
1445
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1446
test $ac_status = 0; } > conftest.i && {
1447
test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1448
test ! -s conftest.err
1452
$as_echo "$as_me: failed program was:" >&5
1453
sed 's/^/| /' conftest.$ac_ext >&5
1457
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1458
as_fn_set_status $ac_retval
1462
# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1463
# -------------------------------------------------------
1464
# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1465
# the include files in INCLUDES and setting the cache variable VAR
1467
ac_fn_c_check_header_mongrel ()
1469
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1470
if eval \${$3+:} false; then :
1471
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1472
$as_echo_n "checking for $2... " >&6; }
1473
if eval \${$3+:} false; then :
1474
$as_echo_n "(cached) " >&6
1477
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1478
$as_echo "$ac_res" >&6; }
1480
# Is the header compilable?
1481
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1482
$as_echo_n "checking $2 usability... " >&6; }
1483
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1484
/* end confdefs.h. */
1488
if ac_fn_c_try_compile "$LINENO"; then :
1489
ac_header_compiler=yes
1491
ac_header_compiler=no
1493
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1494
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1495
$as_echo "$ac_header_compiler" >&6; }
1497
# Is the header present?
1498
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1499
$as_echo_n "checking $2 presence... " >&6; }
1500
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1501
/* end confdefs.h. */
1504
if ac_fn_c_try_cpp "$LINENO"; then :
1505
ac_header_preproc=yes
1507
ac_header_preproc=no
1509
rm -f conftest.err conftest.i conftest.$ac_ext
1510
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1511
$as_echo "$ac_header_preproc" >&6; }
1513
# So? What about this header?
1514
case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1516
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1517
$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1518
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1519
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1522
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1523
$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1524
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1525
$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1526
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1527
$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1528
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1529
$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1530
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1531
$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1534
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1535
$as_echo_n "checking for $2... " >&6; }
1536
if eval \${$3+:} false; then :
1537
$as_echo_n "(cached) " >&6
1539
eval "$3=\$ac_header_compiler"
1542
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1543
$as_echo "$ac_res" >&6; }
1545
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1547
} # ac_fn_c_check_header_mongrel
1549
# ac_fn_c_try_run LINENO
1550
# ----------------------
1551
# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1552
# that executables *can* be run.
1555
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1556
if { { ac_try="$ac_link"
1558
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1559
*) ac_try_echo=$ac_try;;
1561
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1562
$as_echo "$ac_try_echo"; } >&5
1563
(eval "$ac_link") 2>&5
1565
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1566
test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1567
{ { case "(($ac_try" in
1568
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1569
*) ac_try_echo=$ac_try;;
1571
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1572
$as_echo "$ac_try_echo"; } >&5
1573
(eval "$ac_try") 2>&5
1575
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1576
test $ac_status = 0; }; }; then :
1579
$as_echo "$as_me: program exited with status $ac_status" >&5
1580
$as_echo "$as_me: failed program was:" >&5
1581
sed 's/^/| /' conftest.$ac_ext >&5
1583
ac_retval=$ac_status
1585
rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1586
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1587
as_fn_set_status $ac_retval
1591
# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1592
# -------------------------------------------------------
1593
# Tests whether HEADER exists and can be compiled using the include files in
1594
# INCLUDES, setting the cache variable VAR accordingly.
1595
ac_fn_c_check_header_compile ()
1597
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1598
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1599
$as_echo_n "checking for $2... " >&6; }
1600
if eval \${$3+:} false; then :
1601
$as_echo_n "(cached) " >&6
1603
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1604
/* end confdefs.h. */
1608
if ac_fn_c_try_compile "$LINENO"; then :
1613
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1616
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1617
$as_echo "$ac_res" >&6; }
1618
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1620
} # ac_fn_c_check_header_compile
1622
# ac_fn_cxx_try_compile LINENO
1623
# ----------------------------
1624
# Try to compile conftest.$ac_ext, and return whether this succeeded.
1625
ac_fn_cxx_try_compile ()
1627
as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1628
rm -f conftest.$ac_objext
1629
if { { ac_try="$ac_compile"
1631
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1632
*) ac_try_echo=$ac_try;;
1634
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1635
$as_echo "$ac_try_echo"; } >&5
1636
(eval "$ac_compile") 2>conftest.err
1638
if test -s conftest.err; then
1639
grep -v '^ *+' conftest.err >conftest.er1
1640
cat conftest.er1 >&5
1641
mv -f conftest.er1 conftest.err
1643
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1644
test $ac_status = 0; } && {
1645
test -z "$ac_cxx_werror_flag" ||
1646
test ! -s conftest.err
1647
} && test -s conftest.$ac_objext; then :
1650
$as_echo "$as_me: failed program was:" >&5
1651
sed 's/^/| /' conftest.$ac_ext >&5
1655
eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1656
as_fn_set_status $ac_retval
1658
} # ac_fn_cxx_try_compile
1659
cat >config.log <<_ACEOF
1660
This file contains any messages produced by compilers while
1661
running configure, to aid debugging if configure makes a mistake.
1663
It was created by Octave-Forge miscellaneous package $as_me 1.2.0+, which was
1664
generated by GNU Autoconf 2.69. Invocation command line was
1676
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1677
uname -m = `(uname -m) 2>/dev/null || echo unknown`
1678
uname -r = `(uname -r) 2>/dev/null || echo unknown`
1679
uname -s = `(uname -s) 2>/dev/null || echo unknown`
1680
uname -v = `(uname -v) 2>/dev/null || echo unknown`
1682
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1683
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1685
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1686
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1687
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1688
/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1689
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1690
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1691
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1695
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1699
test -z "$as_dir" && as_dir=.
1700
$as_echo "PATH: $as_dir"
1716
# Keep a trace of the command line.
1717
# Strip out --no-create and --no-recursion so they do not pile up.
1718
# Strip out --silent because we don't want to record it for future runs.
1719
# Also quote any args containing shell meta-characters.
1720
# Make two passes to allow for proper duplicate-argument suppression.
1724
ac_must_keep_next=false
1730
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1731
-q | -quiet | --quiet | --quie | --qui | --qu | --q \
1732
| -silent | --silent | --silen | --sile | --sil)
1735
ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1738
1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1740
as_fn_append ac_configure_args1 " '$ac_arg'"
1741
if test $ac_must_keep_next = true; then
1742
ac_must_keep_next=false # Got value, back to normal.
1745
*=* | --config-cache | -C | -disable-* | --disable-* \
1746
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1747
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1748
| -with-* | --with-* | -without-* | --without-* | --x)
1749
case "$ac_configure_args0 " in
1750
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1753
-* ) ac_must_keep_next=true ;;
1756
as_fn_append ac_configure_args " '$ac_arg'"
1761
{ ac_configure_args0=; unset ac_configure_args0;}
1762
{ ac_configure_args1=; unset ac_configure_args1;}
1764
# When interrupted or exit'd, cleanup temporary files, and complete
1765
# config.log. We remove comments because anyway the quotes in there
1766
# would cause problems or look ugly.
1767
# WARNING: Use '\'' to represent an apostrophe within the trap.
1768
# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1769
trap 'exit_status=$?
1770
# Save into config.log some information that might help in debugging.
1774
$as_echo "## ---------------- ##
1775
## Cache variables. ##
1776
## ---------------- ##"
1778
# The following way of writing the cache mishandles newlines in values,
1780
for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1781
eval ac_val=\$$ac_var
1785
*_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1786
$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1789
_ | IFS | as_nl) ;; #(
1790
BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1791
*) { eval $ac_var=; unset $ac_var;} ;;
1796
case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1797
*${as_nl}ac_space=\ *)
1799
"s/'\''/'\''\\\\'\'''\''/g;
1800
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1803
sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1810
$as_echo "## ----------------- ##
1811
## Output variables. ##
1812
## ----------------- ##"
1814
for ac_var in $ac_subst_vars
1816
eval ac_val=\$$ac_var
1818
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1820
$as_echo "$ac_var='\''$ac_val'\''"
1824
if test -n "$ac_subst_files"; then
1825
$as_echo "## ------------------- ##
1826
## File substitutions. ##
1827
## ------------------- ##"
1829
for ac_var in $ac_subst_files
1831
eval ac_val=\$$ac_var
1833
*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1835
$as_echo "$ac_var='\''$ac_val'\''"
1840
if test -s confdefs.h; then
1841
$as_echo "## ----------- ##
1848
test "$ac_signal" != 0 &&
1849
$as_echo "$as_me: caught signal $ac_signal"
1850
$as_echo "$as_me: exit $exit_status"
1852
rm -f core *.core core.conftest.* &&
1853
rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1856
for ac_signal in 1 2 13 15; do
1857
trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1861
# confdefs.h avoids OS command line length limits that DEFS can exceed.
1862
rm -f -r conftest* confdefs.h
1864
$as_echo "/* confdefs.h */" > confdefs.h
1866
# Predefined preprocessor variables.
1868
cat >>confdefs.h <<_ACEOF
1869
#define PACKAGE_NAME "$PACKAGE_NAME"
1872
cat >>confdefs.h <<_ACEOF
1873
#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1876
cat >>confdefs.h <<_ACEOF
1877
#define PACKAGE_VERSION "$PACKAGE_VERSION"
1880
cat >>confdefs.h <<_ACEOF
1881
#define PACKAGE_STRING "$PACKAGE_STRING"
1884
cat >>confdefs.h <<_ACEOF
1885
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1888
cat >>confdefs.h <<_ACEOF
1889
#define PACKAGE_URL "$PACKAGE_URL"
1893
# Let the site file select an alternate cache file if it wants to.
1894
# Prefer an explicitly selected file to automatically selected ones.
1897
if test -n "$CONFIG_SITE"; then
1898
# We do not want a PATH search for config.site.
1899
case $CONFIG_SITE in #((
1900
-*) ac_site_file1=./$CONFIG_SITE;;
1901
*/*) ac_site_file1=$CONFIG_SITE;;
1902
*) ac_site_file1=./$CONFIG_SITE;;
1904
elif test "x$prefix" != xNONE; then
1905
ac_site_file1=$prefix/share/config.site
1906
ac_site_file2=$prefix/etc/config.site
1908
ac_site_file1=$ac_default_prefix/share/config.site
1909
ac_site_file2=$ac_default_prefix/etc/config.site
1911
for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1913
test "x$ac_site_file" = xNONE && continue
1914
if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1915
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1916
$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1917
sed 's/^/| /' "$ac_site_file" >&5
1919
|| { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1920
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1921
as_fn_error $? "failed to load site script $ac_site_file
1922
See \`config.log' for more details" "$LINENO" 5; }
1926
if test -r "$cache_file"; then
1927
# Some versions of bash will fail to source /dev/null (special files
1928
# actually), so we avoid doing that. DJGPP emulates it as a regular file.
1929
if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1930
{ $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1931
$as_echo "$as_me: loading cache $cache_file" >&6;}
1933
[\\/]* | ?:[\\/]* ) . "$cache_file";;
1934
*) . "./$cache_file";;
1938
{ $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1939
$as_echo "$as_me: creating cache $cache_file" >&6;}
1943
# Check that the precious variables saved in the cache have kept the same
1945
ac_cache_corrupted=false
1946
for ac_var in $ac_precious_vars; do
1947
eval ac_old_set=\$ac_cv_env_${ac_var}_set
1948
eval ac_new_set=\$ac_env_${ac_var}_set
1949
eval ac_old_val=\$ac_cv_env_${ac_var}_value
1950
eval ac_new_val=\$ac_env_${ac_var}_value
1951
case $ac_old_set,$ac_new_set in
1953
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1954
$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1955
ac_cache_corrupted=: ;;
1957
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1958
$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1959
ac_cache_corrupted=: ;;
1962
if test "x$ac_old_val" != "x$ac_new_val"; then
1963
# differences in whitespace do not lead to failure.
1964
ac_old_val_w=`echo x $ac_old_val`
1965
ac_new_val_w=`echo x $ac_new_val`
1966
if test "$ac_old_val_w" != "$ac_new_val_w"; then
1967
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1968
$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1969
ac_cache_corrupted=:
1971
{ $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1972
$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1973
eval $ac_var=\$ac_old_val
1975
{ $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1976
$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1977
{ $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1978
$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1981
# Pass precious variables to config.status.
1982
if test "$ac_new_set" = set; then
1984
*\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1985
*) ac_arg=$ac_var=$ac_new_val ;;
1987
case " $ac_configure_args " in
1988
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1989
*) as_fn_append ac_configure_args " '$ac_arg'" ;;
1993
if $ac_cache_corrupted; then
1994
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1995
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1996
{ $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1997
$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1998
as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2000
## -------------------- ##
2001
## Main body of script. ##
2002
## -------------------- ##
2005
ac_cpp='$CPP $CPPFLAGS'
2006
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2007
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2008
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2012
## these are C headers required for text_waitbar
2014
ac_cpp='$CPP $CPPFLAGS'
2015
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2016
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2017
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2018
if test -n "$ac_tool_prefix"; then
2019
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2020
set dummy ${ac_tool_prefix}gcc; ac_word=$2
2021
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2022
$as_echo_n "checking for $ac_word... " >&6; }
2023
if ${ac_cv_prog_CC+:} false; then :
2024
$as_echo_n "(cached) " >&6
2026
if test -n "$CC"; then
2027
ac_cv_prog_CC="$CC" # Let the user override the test.
2029
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2033
test -z "$as_dir" && as_dir=.
2034
for ac_exec_ext in '' $ac_executable_extensions; do
2035
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2036
ac_cv_prog_CC="${ac_tool_prefix}gcc"
2037
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2047
if test -n "$CC"; then
2048
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2049
$as_echo "$CC" >&6; }
2051
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2052
$as_echo "no" >&6; }
2057
if test -z "$ac_cv_prog_CC"; then
2059
# Extract the first word of "gcc", so it can be a program name with args.
2060
set dummy gcc; ac_word=$2
2061
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2062
$as_echo_n "checking for $ac_word... " >&6; }
2063
if ${ac_cv_prog_ac_ct_CC+:} false; then :
2064
$as_echo_n "(cached) " >&6
2066
if test -n "$ac_ct_CC"; then
2067
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2069
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2073
test -z "$as_dir" && as_dir=.
2074
for ac_exec_ext in '' $ac_executable_extensions; do
2075
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2076
ac_cv_prog_ac_ct_CC="gcc"
2077
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2086
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2087
if test -n "$ac_ct_CC"; then
2088
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2089
$as_echo "$ac_ct_CC" >&6; }
2091
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2092
$as_echo "no" >&6; }
2095
if test "x$ac_ct_CC" = x; then
2098
case $cross_compiling:$ac_tool_warned in
2100
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2101
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2102
ac_tool_warned=yes ;;
2110
if test -z "$CC"; then
2111
if test -n "$ac_tool_prefix"; then
2112
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2113
set dummy ${ac_tool_prefix}cc; ac_word=$2
2114
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2115
$as_echo_n "checking for $ac_word... " >&6; }
2116
if ${ac_cv_prog_CC+:} false; then :
2117
$as_echo_n "(cached) " >&6
2119
if test -n "$CC"; then
2120
ac_cv_prog_CC="$CC" # Let the user override the test.
2122
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2126
test -z "$as_dir" && as_dir=.
2127
for ac_exec_ext in '' $ac_executable_extensions; do
2128
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2129
ac_cv_prog_CC="${ac_tool_prefix}cc"
2130
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2140
if test -n "$CC"; then
2141
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2142
$as_echo "$CC" >&6; }
2144
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2145
$as_echo "no" >&6; }
2151
if test -z "$CC"; then
2152
# Extract the first word of "cc", so it can be a program name with args.
2153
set dummy cc; ac_word=$2
2154
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2155
$as_echo_n "checking for $ac_word... " >&6; }
2156
if ${ac_cv_prog_CC+:} false; then :
2157
$as_echo_n "(cached) " >&6
2159
if test -n "$CC"; then
2160
ac_cv_prog_CC="$CC" # Let the user override the test.
2163
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2167
test -z "$as_dir" && as_dir=.
2168
for ac_exec_ext in '' $ac_executable_extensions; do
2169
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2170
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2171
ac_prog_rejected=yes
2175
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2182
if test $ac_prog_rejected = yes; then
2183
# We found a bogon in the path, so make sure we never use it.
2184
set dummy $ac_cv_prog_CC
2186
if test $# != 0; then
2187
# We chose a different compiler from the bogus one.
2188
# However, it has the same basename, so the bogon will be chosen
2189
# first if we set CC to just the basename; use the full file name.
2191
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2197
if test -n "$CC"; then
2198
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2199
$as_echo "$CC" >&6; }
2201
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2202
$as_echo "no" >&6; }
2207
if test -z "$CC"; then
2208
if test -n "$ac_tool_prefix"; then
2209
for ac_prog in cl.exe
2211
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2212
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2213
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2214
$as_echo_n "checking for $ac_word... " >&6; }
2215
if ${ac_cv_prog_CC+:} false; then :
2216
$as_echo_n "(cached) " >&6
2218
if test -n "$CC"; then
2219
ac_cv_prog_CC="$CC" # Let the user override the test.
2221
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2225
test -z "$as_dir" && as_dir=.
2226
for ac_exec_ext in '' $ac_executable_extensions; do
2227
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2228
ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2229
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2239
if test -n "$CC"; then
2240
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2241
$as_echo "$CC" >&6; }
2243
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2244
$as_echo "no" >&6; }
2248
test -n "$CC" && break
2251
if test -z "$CC"; then
2253
for ac_prog in cl.exe
2255
# Extract the first word of "$ac_prog", so it can be a program name with args.
2256
set dummy $ac_prog; ac_word=$2
2257
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2258
$as_echo_n "checking for $ac_word... " >&6; }
2259
if ${ac_cv_prog_ac_ct_CC+:} false; then :
2260
$as_echo_n "(cached) " >&6
2262
if test -n "$ac_ct_CC"; then
2263
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2265
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2269
test -z "$as_dir" && as_dir=.
2270
for ac_exec_ext in '' $ac_executable_extensions; do
2271
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2272
ac_cv_prog_ac_ct_CC="$ac_prog"
2273
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2282
ac_ct_CC=$ac_cv_prog_ac_ct_CC
2283
if test -n "$ac_ct_CC"; then
2284
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2285
$as_echo "$ac_ct_CC" >&6; }
2287
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2288
$as_echo "no" >&6; }
2292
test -n "$ac_ct_CC" && break
2295
if test "x$ac_ct_CC" = x; then
2298
case $cross_compiling:$ac_tool_warned in
2300
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2301
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2302
ac_tool_warned=yes ;;
2311
test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2312
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2313
as_fn_error $? "no acceptable C compiler found in \$PATH
2314
See \`config.log' for more details" "$LINENO" 5; }
2316
# Provide some information about the compiler.
2317
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2320
for ac_option in --version -v -V -qversion; do
2321
{ { ac_try="$ac_compiler $ac_option >&5"
2323
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2324
*) ac_try_echo=$ac_try;;
2326
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2327
$as_echo "$ac_try_echo"; } >&5
2328
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
2330
if test -s conftest.err; then
2332
... rest of stderr output deleted ...
2333
10q' conftest.err >conftest.er1
2334
cat conftest.er1 >&5
2336
rm -f conftest.er1 conftest.err
2337
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2338
test $ac_status = 0; }
2341
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2342
/* end confdefs.h. */
2352
ac_clean_files_save=$ac_clean_files
2353
ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2354
# Try to create an executable without -o first, disregard a.out.
2355
# It will help us diagnose broken compilers, and finding out an intuition
2357
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2358
$as_echo_n "checking whether the C compiler works... " >&6; }
2359
ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2361
# The possible output files:
2362
ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2365
for ac_file in $ac_files
2368
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2369
* ) ac_rmfiles="$ac_rmfiles $ac_file";;
2374
if { { ac_try="$ac_link_default"
2376
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2377
*) ac_try_echo=$ac_try;;
2379
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2380
$as_echo "$ac_try_echo"; } >&5
2381
(eval "$ac_link_default") 2>&5
2383
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2384
test $ac_status = 0; }; then :
2385
# Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2386
# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2387
# in a Makefile. We should not override ac_cv_exeext if it was cached,
2388
# so that the user can short-circuit this test for compilers unknown to
2390
for ac_file in $ac_files ''
2392
test -f "$ac_file" || continue
2394
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2397
# We found the default executable, but exeext='' is most
2401
if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2403
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2405
# We set ac_cv_exeext here because the later test for it is not
2406
# safe: cross compilers may not add the suffix if given an `-o'
2407
# argument, so we may need to know it at that point already.
2408
# Even if this section looks crufty: it has the advantage of
2415
test "$ac_cv_exeext" = no && ac_cv_exeext=
2420
if test -z "$ac_file"; then :
2421
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2422
$as_echo "no" >&6; }
2423
$as_echo "$as_me: failed program was:" >&5
2424
sed 's/^/| /' conftest.$ac_ext >&5
2426
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2427
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2428
as_fn_error 77 "C compiler cannot create executables
2429
See \`config.log' for more details" "$LINENO" 5; }
2431
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2432
$as_echo "yes" >&6; }
2434
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2435
$as_echo_n "checking for C compiler default output file name... " >&6; }
2436
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2437
$as_echo "$ac_file" >&6; }
2438
ac_exeext=$ac_cv_exeext
2440
rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2441
ac_clean_files=$ac_clean_files_save
2442
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2443
$as_echo_n "checking for suffix of executables... " >&6; }
2444
if { { ac_try="$ac_link"
2446
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2447
*) ac_try_echo=$ac_try;;
2449
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2450
$as_echo "$ac_try_echo"; } >&5
2451
(eval "$ac_link") 2>&5
2453
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2454
test $ac_status = 0; }; then :
2455
# If both `conftest.exe' and `conftest' are `present' (well, observable)
2456
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2457
# work properly (i.e., refer to `conftest.exe'), while it won't with
2459
for ac_file in conftest.exe conftest conftest.*; do
2460
test -f "$ac_file" || continue
2462
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2463
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2469
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2470
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2471
as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2472
See \`config.log' for more details" "$LINENO" 5; }
2474
rm -f conftest conftest$ac_cv_exeext
2475
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2476
$as_echo "$ac_cv_exeext" >&6; }
2478
rm -f conftest.$ac_ext
2479
EXEEXT=$ac_cv_exeext
2481
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2482
/* end confdefs.h. */
2487
FILE *f = fopen ("conftest.out", "w");
2488
return ferror (f) || fclose (f) != 0;
2494
ac_clean_files="$ac_clean_files conftest.out"
2495
# Check that the compiler produces executables we can run. If not, either
2496
# the compiler is broken, or we cross compile.
2497
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2498
$as_echo_n "checking whether we are cross compiling... " >&6; }
2499
if test "$cross_compiling" != yes; then
2500
{ { ac_try="$ac_link"
2502
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2503
*) ac_try_echo=$ac_try;;
2505
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2506
$as_echo "$ac_try_echo"; } >&5
2507
(eval "$ac_link") 2>&5
2509
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2510
test $ac_status = 0; }
2511
if { ac_try='./conftest$ac_cv_exeext'
2512
{ { case "(($ac_try" in
2513
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2514
*) ac_try_echo=$ac_try;;
2516
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2517
$as_echo "$ac_try_echo"; } >&5
2518
(eval "$ac_try") 2>&5
2520
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2521
test $ac_status = 0; }; }; then
2524
if test "$cross_compiling" = maybe; then
2527
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2528
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2529
as_fn_error $? "cannot run C compiled programs.
2530
If you meant to cross compile, use \`--host'.
2531
See \`config.log' for more details" "$LINENO" 5; }
2535
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2536
$as_echo "$cross_compiling" >&6; }
2538
rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2539
ac_clean_files=$ac_clean_files_save
2540
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2541
$as_echo_n "checking for suffix of object files... " >&6; }
2542
if ${ac_cv_objext+:} false; then :
2543
$as_echo_n "(cached) " >&6
2545
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2546
/* end confdefs.h. */
2556
rm -f conftest.o conftest.obj
2557
if { { ac_try="$ac_compile"
2559
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2560
*) ac_try_echo=$ac_try;;
2562
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2563
$as_echo "$ac_try_echo"; } >&5
2564
(eval "$ac_compile") 2>&5
2566
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2567
test $ac_status = 0; }; then :
2568
for ac_file in conftest.o conftest.obj conftest.*; do
2569
test -f "$ac_file" || continue;
2571
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2572
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2577
$as_echo "$as_me: failed program was:" >&5
2578
sed 's/^/| /' conftest.$ac_ext >&5
2580
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2581
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2582
as_fn_error $? "cannot compute suffix of object files: cannot compile
2583
See \`config.log' for more details" "$LINENO" 5; }
2585
rm -f conftest.$ac_cv_objext conftest.$ac_ext
2587
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2588
$as_echo "$ac_cv_objext" >&6; }
2589
OBJEXT=$ac_cv_objext
2591
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2592
$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2593
if ${ac_cv_c_compiler_gnu+:} false; then :
2594
$as_echo_n "(cached) " >&6
2596
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2597
/* end confdefs.h. */
2610
if ac_fn_c_try_compile "$LINENO"; then :
2615
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2616
ac_cv_c_compiler_gnu=$ac_compiler_gnu
2619
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2620
$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2621
if test $ac_compiler_gnu = yes; then
2626
ac_test_CFLAGS=${CFLAGS+set}
2627
ac_save_CFLAGS=$CFLAGS
2628
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2629
$as_echo_n "checking whether $CC accepts -g... " >&6; }
2630
if ${ac_cv_prog_cc_g+:} false; then :
2631
$as_echo_n "(cached) " >&6
2633
ac_save_c_werror_flag=$ac_c_werror_flag
2634
ac_c_werror_flag=yes
2637
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2638
/* end confdefs.h. */
2648
if ac_fn_c_try_compile "$LINENO"; then :
2652
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2653
/* end confdefs.h. */
2663
if ac_fn_c_try_compile "$LINENO"; then :
2666
ac_c_werror_flag=$ac_save_c_werror_flag
2668
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2669
/* end confdefs.h. */
2679
if ac_fn_c_try_compile "$LINENO"; then :
2682
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2684
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2686
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2687
ac_c_werror_flag=$ac_save_c_werror_flag
2689
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2690
$as_echo "$ac_cv_prog_cc_g" >&6; }
2691
if test "$ac_test_CFLAGS" = set; then
2692
CFLAGS=$ac_save_CFLAGS
2693
elif test $ac_cv_prog_cc_g = yes; then
2694
if test "$GCC" = yes; then
2700
if test "$GCC" = yes; then
2706
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2707
$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2708
if ${ac_cv_prog_cc_c89+:} false; then :
2709
$as_echo_n "(cached) " >&6
2711
ac_cv_prog_cc_c89=no
2713
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2714
/* end confdefs.h. */
2718
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2719
struct buf { int x; };
2720
FILE * (*rcsopen) (struct buf *, struct stat *, int);
2721
static char *e (p, i)
2727
static char *f (char * (*g) (char **, int), char **p, ...)
2732
s = g (p, va_arg (v,int));
2737
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2738
function prototypes and stuff, but not '\xHH' hex character constants.
2739
These don't provoke an error unfortunately, instead are silently treated
2740
as 'x'. The following induces an error, until -std is added to get
2741
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2742
array size at least. It's necessary to write '\x00'==0 to get something
2743
that's true only with -std. */
2744
int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2746
/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2747
inside strings and character constants. */
2749
int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2751
int test (int i, double x);
2752
struct s1 {int (*f) (int a);};
2753
struct s2 {int (*f) (double a);};
2754
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2760
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2765
for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2766
-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2768
CC="$ac_save_CC $ac_arg"
2769
if ac_fn_c_try_compile "$LINENO"; then :
2770
ac_cv_prog_cc_c89=$ac_arg
2772
rm -f core conftest.err conftest.$ac_objext
2773
test "x$ac_cv_prog_cc_c89" != "xno" && break
2775
rm -f conftest.$ac_ext
2780
case "x$ac_cv_prog_cc_c89" in
2782
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2783
$as_echo "none needed" >&6; } ;;
2785
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2786
$as_echo "unsupported" >&6; } ;;
2788
CC="$CC $ac_cv_prog_cc_c89"
2789
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2790
$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2792
if test "x$ac_cv_prog_cc_c89" != xno; then :
2797
ac_cpp='$CPP $CPPFLAGS'
2798
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2799
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2800
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2804
ac_cpp='$CPP $CPPFLAGS'
2805
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2806
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2807
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2808
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
2809
$as_echo_n "checking how to run the C preprocessor... " >&6; }
2810
# On Suns, sometimes $CPP names a directory.
2811
if test -n "$CPP" && test -d "$CPP"; then
2814
if test -z "$CPP"; then
2815
if ${ac_cv_prog_CPP+:} false; then :
2816
$as_echo_n "(cached) " >&6
2818
# Double quotes because CPP needs to be expanded
2819
for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2822
for ac_c_preproc_warn_flag in '' yes
2824
# Use a header file that comes with gcc, so configuring glibc
2825
# with a fresh cross-compiler works.
2826
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2827
# <limits.h> exists even on freestanding compilers.
2828
# On the NeXT, cc -E runs the code through the compiler's parser,
2829
# not just through cpp. "Syntax error" is here to catch this case.
2830
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2831
/* end confdefs.h. */
2833
# include <limits.h>
2835
# include <assert.h>
2839
if ac_fn_c_try_cpp "$LINENO"; then :
2842
# Broken: fails on valid input.
2845
rm -f conftest.err conftest.i conftest.$ac_ext
2847
# OK, works on sane cases. Now check whether nonexistent headers
2848
# can be detected and how.
2849
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2850
/* end confdefs.h. */
2851
#include <ac_nonexistent.h>
2853
if ac_fn_c_try_cpp "$LINENO"; then :
2854
# Broken: success on invalid input.
2857
# Passes both tests.
2861
rm -f conftest.err conftest.i conftest.$ac_ext
2864
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2865
rm -f conftest.i conftest.err conftest.$ac_ext
2866
if $ac_preproc_ok; then :
2878
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
2879
$as_echo "$CPP" >&6; }
2881
for ac_c_preproc_warn_flag in '' yes
2883
# Use a header file that comes with gcc, so configuring glibc
2884
# with a fresh cross-compiler works.
2885
# Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2886
# <limits.h> exists even on freestanding compilers.
2887
# On the NeXT, cc -E runs the code through the compiler's parser,
2888
# not just through cpp. "Syntax error" is here to catch this case.
2889
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2890
/* end confdefs.h. */
2892
# include <limits.h>
2894
# include <assert.h>
2898
if ac_fn_c_try_cpp "$LINENO"; then :
2901
# Broken: fails on valid input.
2904
rm -f conftest.err conftest.i conftest.$ac_ext
2906
# OK, works on sane cases. Now check whether nonexistent headers
2907
# can be detected and how.
2908
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2909
/* end confdefs.h. */
2910
#include <ac_nonexistent.h>
2912
if ac_fn_c_try_cpp "$LINENO"; then :
2913
# Broken: success on invalid input.
2916
# Passes both tests.
2920
rm -f conftest.err conftest.i conftest.$ac_ext
2923
# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2924
rm -f conftest.i conftest.err conftest.$ac_ext
2925
if $ac_preproc_ok; then :
2928
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2929
$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2930
as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
2931
See \`config.log' for more details" "$LINENO" 5; }
2935
ac_cpp='$CPP $CPPFLAGS'
2936
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2937
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2938
ac_compiler_gnu=$ac_cv_c_compiler_gnu
2941
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
2942
$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
2943
if ${ac_cv_path_GREP+:} false; then :
2944
$as_echo_n "(cached) " >&6
2946
if test -z "$GREP"; then
2947
ac_path_GREP_found=false
2948
# Loop through the user's path and test for each of PROGNAME-LIST
2949
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2950
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
2953
test -z "$as_dir" && as_dir=.
2954
for ac_prog in grep ggrep; do
2955
for ac_exec_ext in '' $ac_executable_extensions; do
2956
ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
2957
as_fn_executable_p "$ac_path_GREP" || continue
2958
# Check for GNU ac_path_GREP and select it if it is found.
2959
# Check for GNU $ac_path_GREP
2960
case `"$ac_path_GREP" --version 2>&1` in
2962
ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
2965
$as_echo_n 0123456789 >"conftest.in"
2968
cat "conftest.in" "conftest.in" >"conftest.tmp"
2969
mv "conftest.tmp" "conftest.in"
2970
cp "conftest.in" "conftest.nl"
2971
$as_echo 'GREP' >> "conftest.nl"
2972
"$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
2973
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2974
as_fn_arith $ac_count + 1 && ac_count=$as_val
2975
if test $ac_count -gt ${ac_path_GREP_max-0}; then
2976
# Best one so far, save it but keep looking for a better one
2977
ac_cv_path_GREP="$ac_path_GREP"
2978
ac_path_GREP_max=$ac_count
2980
# 10*(2^10) chars as input seems more than enough
2981
test $ac_count -gt 10 && break
2983
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2986
$ac_path_GREP_found && break 3
2991
if test -z "$ac_cv_path_GREP"; then
2992
as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
2995
ac_cv_path_GREP=$GREP
2999
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3000
$as_echo "$ac_cv_path_GREP" >&6; }
3001
GREP="$ac_cv_path_GREP"
3004
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3005
$as_echo_n "checking for egrep... " >&6; }
3006
if ${ac_cv_path_EGREP+:} false; then :
3007
$as_echo_n "(cached) " >&6
3009
if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3010
then ac_cv_path_EGREP="$GREP -E"
3012
if test -z "$EGREP"; then
3013
ac_path_EGREP_found=false
3014
# Loop through the user's path and test for each of PROGNAME-LIST
3015
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3016
for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3019
test -z "$as_dir" && as_dir=.
3020
for ac_prog in egrep; do
3021
for ac_exec_ext in '' $ac_executable_extensions; do
3022
ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3023
as_fn_executable_p "$ac_path_EGREP" || continue
3024
# Check for GNU ac_path_EGREP and select it if it is found.
3025
# Check for GNU $ac_path_EGREP
3026
case `"$ac_path_EGREP" --version 2>&1` in
3028
ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3031
$as_echo_n 0123456789 >"conftest.in"
3034
cat "conftest.in" "conftest.in" >"conftest.tmp"
3035
mv "conftest.tmp" "conftest.in"
3036
cp "conftest.in" "conftest.nl"
3037
$as_echo 'EGREP' >> "conftest.nl"
3038
"$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3039
diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3040
as_fn_arith $ac_count + 1 && ac_count=$as_val
3041
if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3042
# Best one so far, save it but keep looking for a better one
3043
ac_cv_path_EGREP="$ac_path_EGREP"
3044
ac_path_EGREP_max=$ac_count
3046
# 10*(2^10) chars as input seems more than enough
3047
test $ac_count -gt 10 && break
3049
rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3052
$ac_path_EGREP_found && break 3
3057
if test -z "$ac_cv_path_EGREP"; then
3058
as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3061
ac_cv_path_EGREP=$EGREP
3066
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3067
$as_echo "$ac_cv_path_EGREP" >&6; }
3068
EGREP="$ac_cv_path_EGREP"
3071
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3072
$as_echo_n "checking for ANSI C header files... " >&6; }
3073
if ${ac_cv_header_stdc+:} false; then :
3074
$as_echo_n "(cached) " >&6
3076
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3077
/* end confdefs.h. */
3091
if ac_fn_c_try_compile "$LINENO"; then :
3092
ac_cv_header_stdc=yes
3094
ac_cv_header_stdc=no
3096
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3098
if test $ac_cv_header_stdc = yes; then
3099
# SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3100
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3101
/* end confdefs.h. */
3105
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3106
$EGREP "memchr" >/dev/null 2>&1; then :
3109
ac_cv_header_stdc=no
3115
if test $ac_cv_header_stdc = yes; then
3116
# ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3117
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3118
/* end confdefs.h. */
3122
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3123
$EGREP "free" >/dev/null 2>&1; then :
3126
ac_cv_header_stdc=no
3132
if test $ac_cv_header_stdc = yes; then
3133
# /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3134
if test "$cross_compiling" = yes; then :
3137
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3138
/* end confdefs.h. */
3141
#if ((' ' & 0x0FF) == 0x020)
3142
# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3143
# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3145
# define ISLOWER(c) \
3146
(('a' <= (c) && (c) <= 'i') \
3147
|| ('j' <= (c) && (c) <= 'r') \
3148
|| ('s' <= (c) && (c) <= 'z'))
3149
# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3152
#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3157
for (i = 0; i < 256; i++)
3158
if (XOR (islower (i), ISLOWER (i))
3159
|| toupper (i) != TOUPPER (i))
3164
if ac_fn_c_try_run "$LINENO"; then :
3167
ac_cv_header_stdc=no
3169
rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3170
conftest.$ac_objext conftest.beam conftest.$ac_ext
3175
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3176
$as_echo "$ac_cv_header_stdc" >&6; }
3177
if test $ac_cv_header_stdc = yes; then
3179
$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3183
# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3184
for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3185
inttypes.h stdint.h unistd.h
3187
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3188
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3190
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3191
cat >>confdefs.h <<_ACEOF
3192
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3200
ac_fn_c_check_header_mongrel "$LINENO" "term.h" "ac_cv_header_term_h" "$ac_includes_default"
3201
if test "x$ac_cv_header_term_h" = xyes; then :
3204
ac_fn_c_check_header_mongrel "$LINENO" "termcap.h" "ac_cv_header_termcap_h" "$ac_includes_default"
3205
if test "x$ac_cv_header_termcap_h" = xyes; then :
3208
as_fn_error $? "Unable to find ncurses library headers." "$LINENO" 5
3219
ac_cpp='$CXXCPP $CPPFLAGS'
3220
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3221
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3222
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3223
if test -z "$CXX"; then
3224
if test -n "$CCC"; then
3227
if test -n "$ac_tool_prefix"; then
3228
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3230
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3231
set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3232
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3233
$as_echo_n "checking for $ac_word... " >&6; }
3234
if ${ac_cv_prog_CXX+:} false; then :
3235
$as_echo_n "(cached) " >&6
3237
if test -n "$CXX"; then
3238
ac_cv_prog_CXX="$CXX" # Let the user override the test.
3240
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3244
test -z "$as_dir" && as_dir=.
3245
for ac_exec_ext in '' $ac_executable_extensions; do
3246
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3247
ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3248
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3258
if test -n "$CXX"; then
3259
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3260
$as_echo "$CXX" >&6; }
3262
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3263
$as_echo "no" >&6; }
3267
test -n "$CXX" && break
3270
if test -z "$CXX"; then
3272
for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3274
# Extract the first word of "$ac_prog", so it can be a program name with args.
3275
set dummy $ac_prog; ac_word=$2
3276
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3277
$as_echo_n "checking for $ac_word... " >&6; }
3278
if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3279
$as_echo_n "(cached) " >&6
3281
if test -n "$ac_ct_CXX"; then
3282
ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3284
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3288
test -z "$as_dir" && as_dir=.
3289
for ac_exec_ext in '' $ac_executable_extensions; do
3290
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3291
ac_cv_prog_ac_ct_CXX="$ac_prog"
3292
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3301
ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3302
if test -n "$ac_ct_CXX"; then
3303
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3304
$as_echo "$ac_ct_CXX" >&6; }
3306
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3307
$as_echo "no" >&6; }
3311
test -n "$ac_ct_CXX" && break
3314
if test "x$ac_ct_CXX" = x; then
3317
case $cross_compiling:$ac_tool_warned in
3319
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3320
$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3321
ac_tool_warned=yes ;;
3329
# Provide some information about the compiler.
3330
$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3333
for ac_option in --version -v -V -qversion; do
3334
{ { ac_try="$ac_compiler $ac_option >&5"
3336
*\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3337
*) ac_try_echo=$ac_try;;
3339
eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3340
$as_echo "$ac_try_echo"; } >&5
3341
(eval "$ac_compiler $ac_option >&5") 2>conftest.err
3343
if test -s conftest.err; then
3345
... rest of stderr output deleted ...
3346
10q' conftest.err >conftest.er1
3347
cat conftest.er1 >&5
3349
rm -f conftest.er1 conftest.err
3350
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3351
test $ac_status = 0; }
3354
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3355
$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3356
if ${ac_cv_cxx_compiler_gnu+:} false; then :
3357
$as_echo_n "(cached) " >&6
3359
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3360
/* end confdefs.h. */
3373
if ac_fn_cxx_try_compile "$LINENO"; then :
3378
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3379
ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3382
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3383
$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3384
if test $ac_compiler_gnu = yes; then
3389
ac_test_CXXFLAGS=${CXXFLAGS+set}
3390
ac_save_CXXFLAGS=$CXXFLAGS
3391
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3392
$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3393
if ${ac_cv_prog_cxx_g+:} false; then :
3394
$as_echo_n "(cached) " >&6
3396
ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3397
ac_cxx_werror_flag=yes
3400
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3401
/* end confdefs.h. */
3411
if ac_fn_cxx_try_compile "$LINENO"; then :
3412
ac_cv_prog_cxx_g=yes
3415
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3416
/* end confdefs.h. */
3426
if ac_fn_cxx_try_compile "$LINENO"; then :
3429
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3431
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3432
/* end confdefs.h. */
3442
if ac_fn_cxx_try_compile "$LINENO"; then :
3443
ac_cv_prog_cxx_g=yes
3445
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3447
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3449
rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3450
ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3452
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3453
$as_echo "$ac_cv_prog_cxx_g" >&6; }
3454
if test "$ac_test_CXXFLAGS" = set; then
3455
CXXFLAGS=$ac_save_CXXFLAGS
3456
elif test $ac_cv_prog_cxx_g = yes; then
3457
if test "$GXX" = yes; then
3463
if test "$GXX" = yes; then
3470
ac_cpp='$CPP $CPPFLAGS'
3471
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3472
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3473
ac_compiler_gnu=$ac_cv_c_compiler_gnu
3476
ac_cpp='$CXXCPP $CPPFLAGS'
3477
ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3478
ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3479
ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3482
## this is required for the units.m function
3483
# Extract the first word of "units", so it can be a program name with args.
3484
set dummy units; ac_word=$2
3485
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3486
$as_echo_n "checking for $ac_word... " >&6; }
3487
if ${ac_cv_prog_UNITS_AVAILABLE+:} false; then :
3488
$as_echo_n "(cached) " >&6
3490
if test -n "$UNITS_AVAILABLE"; then
3491
ac_cv_prog_UNITS_AVAILABLE="$UNITS_AVAILABLE" # Let the user override the test.
3493
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3497
test -z "$as_dir" && as_dir=.
3498
for ac_exec_ext in '' $ac_executable_extensions; do
3499
if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3500
ac_cv_prog_UNITS_AVAILABLE="yes"
3501
$as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3510
UNITS_AVAILABLE=$ac_cv_prog_UNITS_AVAILABLE
3511
if test -n "$UNITS_AVAILABLE"; then
3512
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNITS_AVAILABLE" >&5
3513
$as_echo "$UNITS_AVAILABLE" >&6; }
3515
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3516
$as_echo "no" >&6; }
3520
if test x"$UNITS_AVAILABLE" != x"yes" ; then
3521
as_fn_error $? "The program GNU Units is required to install $PACKAGE_NAME." "$LINENO" 5