| 1 |
#! /bin/sh |
| 2 |
# Guess values for system-dependent variables and create Makefiles. |
| 3 |
# Generated by GNU Autoconf 2.59. |
| 4 |
# |
| 5 |
# Copyright (C) 2003 Free Software Foundation, Inc. |
| 6 |
# This configure script is free software; the Free Software Foundation |
| 7 |
# gives unlimited permission to copy, distribute and modify it. |
| 8 |
## --------------------- ## |
| 9 |
## M4sh Initialization. ## |
| 10 |
## --------------------- ## |
| 11 |
|
| 12 |
# Be Bourne compatible |
| 13 |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 14 |
emulate sh |
| 15 |
NULLCMD=: |
| 16 |
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 17 |
# is contrary to our usage. Disable this feature. |
| 18 |
alias -g '${1+"$@"}'='"$@"' |
| 19 |
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 20 |
set -o posix |
| 21 |
fi |
| 22 |
DUALCASE=1; export DUALCASE # for MKS sh |
| 23 |
|
| 24 |
# Support unset when possible. |
| 25 |
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 26 |
as_unset=unset |
| 27 |
else |
| 28 |
as_unset=false |
| 29 |
fi |
| 30 |
|
| 31 |
|
| 32 |
# Work around bugs in pre-3.0 UWIN ksh. |
| 33 |
$as_unset ENV MAIL MAILPATH |
| 34 |
PS1='$ ' |
| 35 |
PS2='> ' |
| 36 |
PS4='+ ' |
| 37 |
|
| 38 |
# NLS nuisances. |
| 39 |
for as_var in \ |
| 40 |
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 41 |
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 42 |
LC_TELEPHONE LC_TIME |
| 43 |
do |
| 44 |
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 45 |
eval $as_var=C; export $as_var |
| 46 |
else |
| 47 |
$as_unset $as_var |
| 48 |
fi |
| 49 |
done |
| 50 |
|
| 51 |
# Required to use basename. |
| 52 |
if expr a : '\(a\)' >/dev/null 2>&1; then |
| 53 |
as_expr=expr |
| 54 |
else |
| 55 |
as_expr=false |
| 56 |
fi |
| 57 |
|
| 58 |
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 59 |
as_basename=basename |
| 60 |
else |
| 61 |
as_basename=false |
| 62 |
fi |
| 63 |
|
| 64 |
|
| 65 |
# Name of the executable. |
| 66 |
as_me=`$as_basename "$0" || |
| 67 |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 68 |
X"$0" : 'X\(//\)$' \| \ |
| 69 |
X"$0" : 'X\(/\)$' \| \ |
| 70 |
. : '\(.\)' 2>/dev/null || |
| 71 |
echo X/"$0" | |
| 72 |
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 73 |
/^X\/\(\/\/\)$/{ s//\1/; q; } |
| 74 |
/^X\/\(\/\).*/{ s//\1/; q; } |
| 75 |
s/.*/./; q'` |
| 76 |
|
| 77 |
|
| 78 |
# PATH needs CR, and LINENO needs CR and PATH. |
| 79 |
# Avoid depending upon Character Ranges. |
| 80 |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 81 |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 82 |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 83 |
as_cr_digits='0123456789' |
| 84 |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 85 |
|
| 86 |
# The user is always right. |
| 87 |
if test "${PATH_SEPARATOR+set}" != set; then |
| 88 |
echo "#! /bin/sh" >conf$$.sh |
| 89 |
echo "exit 0" >>conf$$.sh |
| 90 |
chmod +x conf$$.sh |
| 91 |
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 92 |
PATH_SEPARATOR=';' |
| 93 |
else |
| 94 |
PATH_SEPARATOR=: |
| 95 |
fi |
| 96 |
rm -f conf$$.sh |
| 97 |
fi |
| 98 |
|
| 99 |
|
| 100 |
as_lineno_1=$LINENO |
| 101 |
as_lineno_2=$LINENO |
| 102 |
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 103 |
test "x$as_lineno_1" != "x$as_lineno_2" && |
| 104 |
test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 105 |
# Find who we are. Look in the path if we contain no path at all |
| 106 |
# relative or not. |
| 107 |
case $0 in |
| 108 |
*[\\/]* ) as_myself=$0 ;; |
| 109 |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 110 |
for as_dir in $PATH |
| 111 |
do |
| 112 |
IFS=$as_save_IFS |
| 113 |
test -z "$as_dir" && as_dir=. |
| 114 |
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 115 |
done |
| 116 |
|
| 117 |
;; |
| 118 |
esac |
| 119 |
# We did not find ourselves, most probably we were run as `sh COMMAND' |
| 120 |
# in which case we are not to be found in the path. |
| 121 |
if test "x$as_myself" = x; then |
| 122 |
as_myself=$0 |
| 123 |
fi |
| 124 |
if test ! -f "$as_myself"; then |
| 125 |
{ echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 |
| 126 |
{ (exit 1); exit 1; }; } |
| 127 |
fi |
| 128 |
case $CONFIG_SHELL in |
| 129 |
'') |
| 130 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 131 |
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 132 |
do |
| 133 |
IFS=$as_save_IFS |
| 134 |
test -z "$as_dir" && as_dir=. |
| 135 |
for as_base in sh bash ksh sh5; do |
| 136 |
case $as_dir in |
| 137 |
/*) |
| 138 |
if ("$as_dir/$as_base" -c ' |
| 139 |
as_lineno_1=$LINENO |
| 140 |
as_lineno_2=$LINENO |
| 141 |
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 142 |
test "x$as_lineno_1" != "x$as_lineno_2" && |
| 143 |
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 144 |
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 145 |
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
| 146 |
CONFIG_SHELL=$as_dir/$as_base |
| 147 |
export CONFIG_SHELL |
| 148 |
exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 149 |
fi;; |
| 150 |
esac |
| 151 |
done |
| 152 |
done |
| 153 |
;; |
| 154 |
esac |
| 155 |
|
| 156 |
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 157 |
# uniformly replaced by the line number. The first 'sed' inserts a |
| 158 |
# line-number line before each line; the second 'sed' does the real |
| 159 |
# work. The second script uses 'N' to pair each line-number line |
| 160 |
# with the numbered line, and appends trailing '-' during |
| 161 |
# substitution so that $LINENO is not a special case at line end. |
| 162 |
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 163 |
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 164 |
sed '=' <$as_myself | |
| 165 |
sed ' |
| 166 |
N |
| 167 |
s,$,-, |
| 168 |
: loop |
| 169 |
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 170 |
t loop |
| 171 |
s,-$,, |
| 172 |
s,^['$as_cr_digits']*\n,, |
| 173 |
' >$as_me.lineno && |
| 174 |
chmod +x $as_me.lineno || |
| 175 |
{ echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
| 176 |
{ (exit 1); exit 1; }; } |
| 177 |
|
| 178 |
# Don't try to exec as it changes $[0], causing all sort of problems |
| 179 |
# (the dirname of $[0] is not the place where we might find the |
| 180 |
# original and so on. Autoconf is especially sensible to this). |
| 181 |
. ./$as_me.lineno |
| 182 |
# Exit status is that of the last command. |
| 183 |
exit |
| 184 |
} |
| 185 |
|
| 186 |
|
| 187 |
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 188 |
*c*,-n*) ECHO_N= ECHO_C=' |
| 189 |
' ECHO_T=' ' ;; |
| 190 |
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 191 |
*) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 192 |
esac |
| 193 |
|
| 194 |
if expr a : '\(a\)' >/dev/null 2>&1; then |
| 195 |
as_expr=expr |
| 196 |
else |
| 197 |
as_expr=false |
| 198 |
fi |
| 199 |
|
| 200 |
rm -f conf$$ conf$$.exe conf$$.file |
| 201 |
echo >conf$$.file |
| 202 |
if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 203 |
# We could just check for DJGPP; but this test a) works b) is more generic |
| 204 |
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 205 |
if test -f conf$$.exe; then |
| 206 |
# Don't use ln at all; we don't have any links |
| 207 |
as_ln_s='cp -p' |
| 208 |
else |
| 209 |
as_ln_s='ln -s' |
| 210 |
fi |
| 211 |
elif ln conf$$.file conf$$ 2>/dev/null; then |
| 212 |
as_ln_s=ln |
| 213 |
else |
| 214 |
as_ln_s='cp -p' |
| 215 |
fi |
| 216 |
rm -f conf$$ conf$$.exe conf$$.file |
| 217 |
|
| 218 |
if mkdir -p . 2>/dev/null; then |
| 219 |
as_mkdir_p=: |
| 220 |
else |
| 221 |
test -d ./-p && rmdir ./-p |
| 222 |
as_mkdir_p=false |
| 223 |
fi |
| 224 |
|
| 225 |
as_executable_p="test -f" |
| 226 |
|
| 227 |
# Sed expression to map a string onto a valid CPP name. |
| 228 |
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 229 |
|
| 230 |
# Sed expression to map a string onto a valid variable name. |
| 231 |
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 232 |
|
| 233 |
|
| 234 |
# IFS |
| 235 |
# We need space, tab and new line, in precisely that order. |
| 236 |
as_nl=' |
| 237 |
' |
| 238 |
IFS=" $as_nl" |
| 239 |
|
| 240 |
# CDPATH. |
| 241 |
$as_unset CDPATH |
| 242 |
|
| 243 |
|
| 244 |
# Name of the host. |
| 245 |
# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 246 |
# so uname gets run too. |
| 247 |
ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 248 |
|
| 249 |
exec 6>&1 |
| 250 |
|
| 251 |
# |
| 252 |
# Initializations. |
| 253 |
# |
| 254 |
ac_default_prefix=/usr/local |
| 255 |
ac_config_libobj_dir=. |
| 256 |
cross_compiling=no |
| 257 |
subdirs= |
| 258 |
MFLAGS= |
| 259 |
MAKEFLAGS= |
| 260 |
SHELL=${CONFIG_SHELL-/bin/sh} |
| 261 |
|
| 262 |
# Maximum number of lines to put in a shell here document. |
| 263 |
# This variable seems obsolete. It should probably be removed, and |
| 264 |
# only ac_max_sed_lines should be used. |
| 265 |
: ${ac_max_here_lines=38} |
| 266 |
|
| 267 |
# Identity of this package. |
| 268 |
PACKAGE_NAME= |
| 269 |
PACKAGE_TARNAME= |
| 270 |
PACKAGE_VERSION= |
| 271 |
PACKAGE_STRING= |
| 272 |
PACKAGE_BUGREPORT= |
| 273 |
|
| 274 |
ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LIBOBJS LTLIBOBJS' |
| 275 |
ac_subst_files='' |
| 276 |
|
| 277 |
# Initialize some variables set by options. |
| 278 |
ac_init_help= |
| 279 |
ac_init_version=false |
| 280 |
# The variables have the same names as the options, with |
| 281 |
# dashes changed to underlines. |
| 282 |
cache_file=/dev/null |
| 283 |
exec_prefix=NONE |
| 284 |
no_create= |
| 285 |
no_recursion= |
| 286 |
prefix=NONE |
| 287 |
program_prefix=NONE |
| 288 |
program_suffix=NONE |
| 289 |
program_transform_name=s,x,x, |
| 290 |
silent= |
| 291 |
site= |
| 292 |
srcdir= |
| 293 |
verbose= |
| 294 |
x_includes=NONE |
| 295 |
x_libraries=NONE |
| 296 |
|
| 297 |
# Installation directory options. |
| 298 |
# These are left unexpanded so users can "make install exec_prefix=/foo" |
| 299 |
# and all the variables that are supposed to be based on exec_prefix |
| 300 |
# by default will actually change. |
| 301 |
# Use braces instead of parens because sh, perl, etc. also accept them. |
| 302 |
bindir='${exec_prefix}/bin' |
| 303 |
sbindir='${exec_prefix}/sbin' |
| 304 |
libexecdir='${exec_prefix}/libexec' |
| 305 |
datadir='${prefix}/share' |
| 306 |
sysconfdir='${prefix}/etc' |
| 307 |
sharedstatedir='${prefix}/com' |
| 308 |
localstatedir='${prefix}/var' |
| 309 |
libdir='${exec_prefix}/lib' |
| 310 |
includedir='${prefix}/include' |
| 311 |
oldincludedir='/usr/include' |
| 312 |
infodir='${prefix}/info' |
| 313 |
mandir='${prefix}/man' |
| 314 |
|
| 315 |
ac_prev= |
| 316 |
for ac_option |
| 317 |
do |
| 318 |
# If the previous option needs an argument, assign it. |
| 319 |
if test -n "$ac_prev"; then |
| 320 |
eval "$ac_prev=\$ac_option" |
| 321 |
ac_prev= |
| 322 |
continue |
| 323 |
fi |
| 324 |
|
| 325 |
ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
| 326 |
|
| 327 |
# Accept the important Cygnus configure options, so we can diagnose typos. |
| 328 |
|
| 329 |
case $ac_option in |
| 330 |
|
| 331 |
-bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 332 |
ac_prev=bindir ;; |
| 333 |
-bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
| 334 |
bindir=$ac_optarg ;; |
| 335 |
|
| 336 |
-build | --build | --buil | --bui | --bu) |
| 337 |
ac_prev=build_alias ;; |
| 338 |
-build=* | --build=* | --buil=* | --bui=* | --bu=*) |
| 339 |
build_alias=$ac_optarg ;; |
| 340 |
|
| 341 |
-cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 342 |
| --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 343 |
ac_prev=cache_file ;; |
| 344 |
-cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 345 |
| --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
| 346 |
cache_file=$ac_optarg ;; |
| 347 |
|
| 348 |
--config-cache | -C) |
| 349 |
cache_file=config.cache ;; |
| 350 |
|
| 351 |
-datadir | --datadir | --datadi | --datad | --data | --dat | --da) |
| 352 |
ac_prev=datadir ;; |
| 353 |
-datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ |
| 354 |
| --da=*) |
| 355 |
datadir=$ac_optarg ;; |
| 356 |
|
| 357 |
-disable-* | --disable-*) |
| 358 |
ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
| 359 |
# Reject names that are not valid shell variable names. |
| 360 |
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 361 |
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 362 |
{ (exit 1); exit 1; }; } |
| 363 |
ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 364 |
eval "enable_$ac_feature=no" ;; |
| 365 |
|
| 366 |
-enable-* | --enable-*) |
| 367 |
ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
| 368 |
# Reject names that are not valid shell variable names. |
| 369 |
expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 370 |
{ echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
| 371 |
{ (exit 1); exit 1; }; } |
| 372 |
ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
| 373 |
case $ac_option in |
| 374 |
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
| 375 |
*) ac_optarg=yes ;; |
| 376 |
esac |
| 377 |
eval "enable_$ac_feature='$ac_optarg'" ;; |
| 378 |
|
| 379 |
-exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 380 |
| --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 381 |
| --exec | --exe | --ex) |
| 382 |
ac_prev=exec_prefix ;; |
| 383 |
-exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 384 |
| --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 385 |
| --exec=* | --exe=* | --ex=*) |
| 386 |
exec_prefix=$ac_optarg ;; |
| 387 |
|
| 388 |
-gas | --gas | --ga | --g) |
| 389 |
# Obsolete; use --with-gas. |
| 390 |
with_gas=yes ;; |
| 391 |
|
| 392 |
-help | --help | --hel | --he | -h) |
| 393 |
ac_init_help=long ;; |
| 394 |
-help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 395 |
ac_init_help=recursive ;; |
| 396 |
-help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 397 |
ac_init_help=short ;; |
| 398 |
|
| 399 |
-host | --host | --hos | --ho) |
| 400 |
ac_prev=host_alias ;; |
| 401 |
-host=* | --host=* | --hos=* | --ho=*) |
| 402 |
host_alias=$ac_optarg ;; |
| 403 |
|
| 404 |
-includedir | --includedir | --includedi | --included | --include \ |
| 405 |
| --includ | --inclu | --incl | --inc) |
| 406 |
ac_prev=includedir ;; |
| 407 |
-includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 408 |
| --includ=* | --inclu=* | --incl=* | --inc=*) |
| 409 |
includedir=$ac_optarg ;; |
| 410 |
|
| 411 |
-infodir | --infodir | --infodi | --infod | --info | --inf) |
| 412 |
ac_prev=infodir ;; |
| 413 |
-infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
| 414 |
infodir=$ac_optarg ;; |
| 415 |
|
| 416 |
-libdir | --libdir | --libdi | --libd) |
| 417 |
ac_prev=libdir ;; |
| 418 |
-libdir=* | --libdir=* | --libdi=* | --libd=*) |
| 419 |
libdir=$ac_optarg ;; |
| 420 |
|
| 421 |
-libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 422 |
| --libexe | --libex | --libe) |
| 423 |
ac_prev=libexecdir ;; |
| 424 |
-libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 425 |
| --libexe=* | --libex=* | --libe=*) |
| 426 |
libexecdir=$ac_optarg ;; |
| 427 |
|
| 428 |
-localstatedir | --localstatedir | --localstatedi | --localstated \ |
| 429 |
| --localstate | --localstat | --localsta | --localst \ |
| 430 |
| --locals | --local | --loca | --loc | --lo) |
| 431 |
ac_prev=localstatedir ;; |
| 432 |
-localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
| 433 |
| --localstate=* | --localstat=* | --localsta=* | --localst=* \ |
| 434 |
| --locals=* | --local=* | --loca=* | --loc=* | --lo=*) |
| 435 |
localstatedir=$ac_optarg ;; |
| 436 |
|
| 437 |
-mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 438 |
ac_prev=mandir ;; |
| 439 |
-mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
| 440 |
mandir=$ac_optarg ;; |
| 441 |
|
| 442 |
-nfp | --nfp | --nf) |
| 443 |
# Obsolete; use --without-fp. |
| 444 |
with_fp=no ;; |
| 445 |
|
| 446 |
-no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
| 447 |
| --no-cr | --no-c | -n) |
| 448 |
no_create=yes ;; |
| 449 |
|
| 450 |
-no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 451 |
| --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 452 |
no_recursion=yes ;; |
| 453 |
|
| 454 |
-oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 455 |
| --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 456 |
| --oldin | --oldi | --old | --ol | --o) |
| 457 |
ac_prev=oldincludedir ;; |
| 458 |
-oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 459 |
| --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 460 |
| --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
| 461 |
oldincludedir=$ac_optarg ;; |
| 462 |
|
| 463 |
-prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 464 |
ac_prev=prefix ;; |
| 465 |
-prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
| 466 |
prefix=$ac_optarg ;; |
| 467 |
|
| 468 |
-program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 469 |
| --program-pre | --program-pr | --program-p) |
| 470 |
ac_prev=program_prefix ;; |
| 471 |
-program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 472 |
| --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
| 473 |
program_prefix=$ac_optarg ;; |
| 474 |
|
| 475 |
-program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 476 |
| --program-suf | --program-su | --program-s) |
| 477 |
ac_prev=program_suffix ;; |
| 478 |
-program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 479 |
| --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
| 480 |
program_suffix=$ac_optarg ;; |
| 481 |
|
| 482 |
-program-transform-name | --program-transform-name \ |
| 483 |
| --program-transform-nam | --program-transform-na \ |
| 484 |
| --program-transform-n | --program-transform- \ |
| 485 |
| --program-transform | --program-transfor \ |
| 486 |
| --program-transfo | --program-transf \ |
| 487 |
| --program-trans | --program-tran \ |
| 488 |
| --progr-tra | --program-tr | --program-t) |
| 489 |
ac_prev=program_transform_name ;; |
| 490 |
-program-transform-name=* | --program-transform-name=* \ |
| 491 |
| --program-transform-nam=* | --program-transform-na=* \ |
| 492 |
| --program-transform-n=* | --program-transform-=* \ |
| 493 |
| --program-transform=* | --program-transfor=* \ |
| 494 |
| --program-transfo=* | --program-transf=* \ |
| 495 |
| --program-trans=* | --program-tran=* \ |
| 496 |
| --progr-tra=* | --program-tr=* | --program-t=*) |
| 497 |
program_transform_name=$ac_optarg ;; |
| 498 |
|
| 499 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 500 |
| -silent | --silent | --silen | --sile | --sil) |
| 501 |
silent=yes ;; |
| 502 |
|
| 503 |
-sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 504 |
ac_prev=sbindir ;; |
| 505 |
-sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 506 |
| --sbi=* | --sb=*) |
| 507 |
sbindir=$ac_optarg ;; |
| 508 |
|
| 509 |
-sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 510 |
| --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 511 |
| --sharedst | --shareds | --shared | --share | --shar \ |
| 512 |
| --sha | --sh) |
| 513 |
ac_prev=sharedstatedir ;; |
| 514 |
-sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 515 |
| --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 516 |
| --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 517 |
| --sha=* | --sh=*) |
| 518 |
sharedstatedir=$ac_optarg ;; |
| 519 |
|
| 520 |
-site | --site | --sit) |
| 521 |
ac_prev=site ;; |
| 522 |
-site=* | --site=* | --sit=*) |
| 523 |
site=$ac_optarg ;; |
| 524 |
|
| 525 |
-srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 526 |
ac_prev=srcdir ;; |
| 527 |
-srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
| 528 |
srcdir=$ac_optarg ;; |
| 529 |
|
| 530 |
-sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 531 |
| --syscon | --sysco | --sysc | --sys | --sy) |
| 532 |
ac_prev=sysconfdir ;; |
| 533 |
-sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 534 |
| --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
| 535 |
sysconfdir=$ac_optarg ;; |
| 536 |
|
| 537 |
-target | --target | --targe | --targ | --tar | --ta | --t) |
| 538 |
ac_prev=target_alias ;; |
| 539 |
-target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
| 540 |
target_alias=$ac_optarg ;; |
| 541 |
|
| 542 |
-v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 543 |
verbose=yes ;; |
| 544 |
|
| 545 |
-version | --version | --versio | --versi | --vers | -V) |
| 546 |
ac_init_version=: ;; |
| 547 |
|
| 548 |
-with-* | --with-*) |
| 549 |
ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
| 550 |
# Reject names that are not valid shell variable names. |
| 551 |
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 552 |
{ echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 553 |
{ (exit 1); exit 1; }; } |
| 554 |
ac_package=`echo $ac_package| sed 's/-/_/g'` |
| 555 |
case $ac_option in |
| 556 |
*=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; |
| 557 |
*) ac_optarg=yes ;; |
| 558 |
esac |
| 559 |
eval "with_$ac_package='$ac_optarg'" ;; |
| 560 |
|
| 561 |
-without-* | --without-*) |
| 562 |
ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
| 563 |
# Reject names that are not valid shell variable names. |
| 564 |
expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
| 565 |
{ echo "$as_me: error: invalid package name: $ac_package" >&2 |
| 566 |
{ (exit 1); exit 1; }; } |
| 567 |
ac_package=`echo $ac_package | sed 's/-/_/g'` |
| 568 |
eval "with_$ac_package=no" ;; |
| 569 |
|
| 570 |
--x) |
| 571 |
# Obsolete; use --with-x. |
| 572 |
with_x=yes ;; |
| 573 |
|
| 574 |
-x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 575 |
| --x-incl | --x-inc | --x-in | --x-i) |
| 576 |
ac_prev=x_includes ;; |
| 577 |
-x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 578 |
| --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
| 579 |
x_includes=$ac_optarg ;; |
| 580 |
|
| 581 |
-x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 582 |
| --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 583 |
ac_prev=x_libraries ;; |
| 584 |
-x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 585 |
| --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
| 586 |
x_libraries=$ac_optarg ;; |
| 587 |
|
| 588 |
-*) { echo "$as_me: error: unrecognized option: $ac_option |
| 589 |
Try \`$0 --help' for more information." >&2 |
| 590 |
{ (exit 1); exit 1; }; } |
| 591 |
;; |
| 592 |
|
| 593 |
*=*) |
| 594 |
ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 595 |
# Reject names that are not valid shell variable names. |
| 596 |
expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
| 597 |
{ echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
| 598 |
{ (exit 1); exit 1; }; } |
| 599 |
ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` |
| 600 |
eval "$ac_envvar='$ac_optarg'" |
| 601 |
export $ac_envvar ;; |
| 602 |
|
| 603 |
*) |
| 604 |
# FIXME: should be removed in autoconf 3.0. |
| 605 |
echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
| 606 |
expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
| 607 |
echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
| 608 |
: ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
| 609 |
;; |
| 610 |
|
| 611 |
esac |
| 612 |
done |
| 613 |
|
| 614 |
if test -n "$ac_prev"; then |
| 615 |
ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
| 616 |
{ echo "$as_me: error: missing argument to $ac_option" >&2 |
| 617 |
{ (exit 1); exit 1; }; } |
| 618 |
fi |
| 619 |
|
| 620 |
# Be sure to have absolute paths. |
| 621 |
for ac_var in exec_prefix prefix |
| 622 |
do |
| 623 |
eval ac_val=$`echo $ac_var` |
| 624 |
case $ac_val in |
| 625 |
[\\/$]* | ?:[\\/]* | NONE | '' ) ;; |
| 626 |
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 627 |
{ (exit 1); exit 1; }; };; |
| 628 |
esac |
| 629 |
done |
| 630 |
|
| 631 |
# Be sure to have absolute paths. |
| 632 |
for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ |
| 633 |
localstatedir libdir includedir oldincludedir infodir mandir |
| 634 |
do |
| 635 |
eval ac_val=$`echo $ac_var` |
| 636 |
case $ac_val in |
| 637 |
[\\/$]* | ?:[\\/]* ) ;; |
| 638 |
*) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
| 639 |
{ (exit 1); exit 1; }; };; |
| 640 |
esac |
| 641 |
done |
| 642 |
|
| 643 |
# There might be people who depend on the old broken behavior: `$host' |
| 644 |
# used to hold the argument of --host etc. |
| 645 |
# FIXME: To remove some day. |
| 646 |
build=$build_alias |
| 647 |
host=$host_alias |
| 648 |
target=$target_alias |
| 649 |
|
| 650 |
# FIXME: To remove some day. |
| 651 |
if test "x$host_alias" != x; then |
| 652 |
if test "x$build_alias" = x; then |
| 653 |
cross_compiling=maybe |
| 654 |
echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
| 655 |
If a cross compiler is detected then cross compile mode will be used." >&2 |
| 656 |
elif test "x$build_alias" != "x$host_alias"; then |
| 657 |
cross_compiling=yes |
| 658 |
fi |
| 659 |
fi |
| 660 |
|
| 661 |
ac_tool_prefix= |
| 662 |
test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 663 |
|
| 664 |
test "$silent" = yes && exec 6>/dev/null |
| 665 |
|
| 666 |
|
| 667 |
# Find the source files, if location was not specified. |
| 668 |
if test -z "$srcdir"; then |
| 669 |
ac_srcdir_defaulted=yes |
| 670 |
# Try the directory containing this script, then its parent. |
| 671 |
ac_confdir=`(dirname "$0") 2>/dev/null || |
| 672 |
$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 673 |
X"$0" : 'X\(//\)[^/]' \| \ |
| 674 |
X"$0" : 'X\(//\)$' \| \ |
| 675 |
X"$0" : 'X\(/\)' \| \ |
| 676 |
. : '\(.\)' 2>/dev/null || |
| 677 |
echo X"$0" | |
| 678 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 679 |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 680 |
/^X\(\/\/\)$/{ s//\1/; q; } |
| 681 |
/^X\(\/\).*/{ s//\1/; q; } |
| 682 |
s/.*/./; q'` |
| 683 |
srcdir=$ac_confdir |
| 684 |
if test ! -r $srcdir/$ac_unique_file; then |
| 685 |
srcdir=.. |
| 686 |
fi |
| 687 |
else |
| 688 |
ac_srcdir_defaulted=no |
| 689 |
fi |
| 690 |
if test ! -r $srcdir/$ac_unique_file; then |
| 691 |
if test "$ac_srcdir_defaulted" = yes; then |
| 692 |
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
| 693 |
{ (exit 1); exit 1; }; } |
| 694 |
else |
| 695 |
{ echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
| 696 |
{ (exit 1); exit 1; }; } |
| 697 |
fi |
| 698 |
fi |
| 699 |
(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
| 700 |
{ echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 |
| 701 |
{ (exit 1); exit 1; }; } |
| 702 |
srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` |
| 703 |
ac_env_build_alias_set=${build_alias+set} |
| 704 |
ac_env_build_alias_value=$build_alias |
| 705 |
ac_cv_env_build_alias_set=${build_alias+set} |
| 706 |
ac_cv_env_build_alias_value=$build_alias |
| 707 |
ac_env_host_alias_set=${host_alias+set} |
| 708 |
ac_env_host_alias_value=$host_alias |
| 709 |
ac_cv_env_host_alias_set=${host_alias+set} |
| 710 |
ac_cv_env_host_alias_value=$host_alias |
| 711 |
ac_env_target_alias_set=${target_alias+set} |
| 712 |
ac_env_target_alias_value=$target_alias |
| 713 |
ac_cv_env_target_alias_set=${target_alias+set} |
| 714 |
ac_cv_env_target_alias_value=$target_alias |
| 715 |
ac_env_CC_set=${CC+set} |
| 716 |
ac_env_CC_value=$CC |
| 717 |
ac_cv_env_CC_set=${CC+set} |
| 718 |
ac_cv_env_CC_value=$CC |
| 719 |
ac_env_CFLAGS_set=${CFLAGS+set} |
| 720 |
ac_env_CFLAGS_value=$CFLAGS |
| 721 |
ac_cv_env_CFLAGS_set=${CFLAGS+set} |
| 722 |
ac_cv_env_CFLAGS_value=$CFLAGS |
| 723 |
ac_env_LDFLAGS_set=${LDFLAGS+set} |
| 724 |
ac_env_LDFLAGS_value=$LDFLAGS |
| 725 |
ac_cv_env_LDFLAGS_set=${LDFLAGS+set} |
| 726 |
ac_cv_env_LDFLAGS_value=$LDFLAGS |
| 727 |
ac_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 728 |
ac_env_CPPFLAGS_value=$CPPFLAGS |
| 729 |
ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} |
| 730 |
ac_cv_env_CPPFLAGS_value=$CPPFLAGS |
| 731 |
|
| 732 |
# |
| 733 |
# Report the --help message. |
| 734 |
# |
| 735 |
if test "$ac_init_help" = "long"; then |
| 736 |
# Omit some internal or obsolete options to make the list less imposing. |
| 737 |
# This message is too long to be a string in the A/UX 3.1 sh. |
| 738 |
cat <<_ACEOF |
| 739 |
\`configure' configures this package to adapt to many kinds of systems. |
| 740 |
|
| 741 |
Usage: $0 [OPTION]... [VAR=VALUE]... |
| 742 |
|
| 743 |
To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 744 |
VAR=VALUE. See below for descriptions of some of the useful variables. |
| 745 |
|
| 746 |
Defaults for the options are specified in brackets. |
| 747 |
|
| 748 |
Configuration: |
| 749 |
-h, --help display this help and exit |
| 750 |
--help=short display options specific to this package |
| 751 |
--help=recursive display the short help of all the included packages |
| 752 |
-V, --version display version information and exit |
| 753 |
-q, --quiet, --silent do not print \`checking...' messages |
| 754 |
--cache-file=FILE cache test results in FILE [disabled] |
| 755 |
-C, --config-cache alias for \`--cache-file=config.cache' |
| 756 |
-n, --no-create do not create output files |
| 757 |
--srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 758 |
|
| 759 |
_ACEOF |
| 760 |
|
| 761 |
cat <<_ACEOF |
| 762 |
Installation directories: |
| 763 |
--prefix=PREFIX install architecture-independent files in PREFIX |
| 764 |
[$ac_default_prefix] |
| 765 |
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
| 766 |
[PREFIX] |
| 767 |
|
| 768 |
By default, \`make install' will install all the files in |
| 769 |
\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 770 |
an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 771 |
for instance \`--prefix=\$HOME'. |
| 772 |
|
| 773 |
For better control, use the options below. |
| 774 |
|
| 775 |
Fine tuning of the installation directories: |
| 776 |
--bindir=DIR user executables [EPREFIX/bin] |
| 777 |
--sbindir=DIR system admin executables [EPREFIX/sbin] |
| 778 |
--libexecdir=DIR program executables [EPREFIX/libexec] |
| 779 |
--datadir=DIR read-only architecture-independent data [PREFIX/share] |
| 780 |
--sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 781 |
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 782 |
--localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 783 |
--libdir=DIR object code libraries [EPREFIX/lib] |
| 784 |
--includedir=DIR C header files [PREFIX/include] |
| 785 |
--oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 786 |
--infodir=DIR info documentation [PREFIX/info] |
| 787 |
--mandir=DIR man documentation [PREFIX/man] |
| 788 |
_ACEOF |
| 789 |
|
| 790 |
cat <<\_ACEOF |
| 791 |
_ACEOF |
| 792 |
fi |
| 793 |
|
| 794 |
if test -n "$ac_init_help"; then |
| 795 |
|
| 796 |
cat <<\_ACEOF |
| 797 |
|
| 798 |
Some influential environment variables: |
| 799 |
CC C compiler command |
| 800 |
CFLAGS C compiler flags |
| 801 |
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 802 |
nonstandard directory <lib dir> |
| 803 |
CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have |
| 804 |
headers in a nonstandard directory <include dir> |
| 805 |
|
| 806 |
Use these variables to override the choices made by `configure' or to help |
| 807 |
it to find libraries and programs with nonstandard names/locations. |
| 808 |
|
| 809 |
_ACEOF |
| 810 |
fi |
| 811 |
|
| 812 |
if test "$ac_init_help" = "recursive"; then |
| 813 |
# If there are subdirs, report their specific --help. |
| 814 |
ac_popdir=`pwd` |
| 815 |
for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
| 816 |
test -d $ac_dir || continue |
| 817 |
ac_builddir=. |
| 818 |
|
| 819 |
if test "$ac_dir" != .; then |
| 820 |
ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
| 821 |
# A "../" for each directory in $ac_dir_suffix. |
| 822 |
ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` |
| 823 |
else |
| 824 |
ac_dir_suffix= ac_top_builddir= |
| 825 |
fi |
| 826 |
|
| 827 |
case $srcdir in |
| 828 |
.) # No --srcdir option. We are building in place. |
| 829 |
ac_srcdir=. |
| 830 |
if test -z "$ac_top_builddir"; then |
| 831 |
ac_top_srcdir=. |
| 832 |
else |
| 833 |
ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` |
| 834 |
fi ;; |
| 835 |
[\\/]* | ?:[\\/]* ) # Absolute path. |
| 836 |
ac_srcdir=$srcdir$ac_dir_suffix; |
| 837 |
ac_top_srcdir=$srcdir ;; |
| 838 |
*) # Relative path. |
| 839 |
ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix |
| 840 |
ac_top_srcdir=$ac_top_builddir$srcdir ;; |
| 841 |
esac |
| 842 |
|
| 843 |
# Do not use `cd foo && pwd` to compute absolute paths, because |
| 844 |
# the directories may not exist. |
| 845 |
case `pwd` in |
| 846 |
.) ac_abs_builddir="$ac_dir";; |
| 847 |
*) |
| 848 |
case "$ac_dir" in |
| 849 |
.) ac_abs_builddir=`pwd`;; |
| 850 |
[\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; |
| 851 |
*) ac_abs_builddir=`pwd`/"$ac_dir";; |
| 852 |
esac;; |
| 853 |
esac |
| 854 |
case $ac_abs_builddir in |
| 855 |
.) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 856 |
*) |
| 857 |
case ${ac_top_builddir}. in |
| 858 |
.) ac_abs_top_builddir=$ac_abs_builddir;; |
| 859 |
[\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; |
| 860 |
*) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; |
| 861 |
esac;; |
| 862 |
esac |
| 863 |
case $ac_abs_builddir in |
| 864 |
.) ac_abs_srcdir=$ac_srcdir;; |
| 865 |
*) |
| 866 |
case $ac_srcdir in |
| 867 |
.) ac_abs_srcdir=$ac_abs_builddir;; |
| 868 |
[\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; |
| 869 |
*) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; |
| 870 |
esac;; |
| 871 |
esac |
| 872 |
case $ac_abs_builddir in |
| 873 |
.) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 874 |
*) |
| 875 |
case $ac_top_srcdir in |
| 876 |
.) ac_abs_top_srcdir=$ac_abs_builddir;; |
| 877 |
[\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; |
| 878 |
*) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; |
| 879 |
esac;; |
| 880 |
esac |
| 881 |
|
| 882 |
cd $ac_dir |
| 883 |
# Check for guested configure; otherwise get Cygnus style configure. |
| 884 |
if test -f $ac_srcdir/configure.gnu; then |
| 885 |
echo |
| 886 |
$SHELL $ac_srcdir/configure.gnu --help=recursive |
| 887 |
elif test -f $ac_srcdir/configure; then |
| 888 |
echo |
| 889 |
$SHELL $ac_srcdir/configure --help=recursive |
| 890 |
elif test -f $ac_srcdir/configure.ac || |
| 891 |
test -f $ac_srcdir/configure.in; then |
| 892 |
echo |
| 893 |
$ac_configure --help |
| 894 |
else |
| 895 |
echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
| 896 |
fi |
| 897 |
cd "$ac_popdir" |
| 898 |
done |
| 899 |
fi |
| 900 |
|
| 901 |
test -n "$ac_init_help" && exit 0 |
| 902 |
if $ac_init_version; then |
| 903 |
cat <<\_ACEOF |
| 904 |
|
| 905 |
Copyright (C) 2003 Free Software Foundation, Inc. |
| 906 |
This configure script is free software; the Free Software Foundation |
| 907 |
gives unlimited permission to copy, distribute and modify it. |
| 908 |
_ACEOF |
| 909 |
exit 0 |
| 910 |
fi |
| 911 |
exec 5>config.log |
| 912 |
cat >&5 <<_ACEOF |
| 913 |
This file contains any messages produced by compilers while |
| 914 |
running configure, to aid debugging if configure makes a mistake. |
| 915 |
|
| 916 |
It was created by $as_me, which was |
| 917 |
generated by GNU Autoconf 2.59. Invocation command line was |
| 918 |
|
| 919 |
$ $0 $@ |
| 920 |
|
| 921 |
_ACEOF |
| 922 |
{ |
| 923 |
cat <<_ASUNAME |
| 924 |
## --------- ## |
| 925 |
## Platform. ## |
| 926 |
## --------- ## |
| 927 |
|
| 928 |
hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 929 |
uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 930 |
uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 931 |
uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 932 |
uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 933 |
|
| 934 |
/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 935 |
/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 936 |
|
| 937 |
/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 938 |
/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 939 |
/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
| 940 |
hostinfo = `(hostinfo) 2>/dev/null || echo unknown` |
| 941 |
/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 942 |
/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 943 |
/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 944 |
|
| 945 |
_ASUNAME |
| 946 |
|
| 947 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 948 |
for as_dir in $PATH |
| 949 |
do |
| 950 |
IFS=$as_save_IFS |
| 951 |
test -z "$as_dir" && as_dir=. |
| 952 |
echo "PATH: $as_dir" |
| 953 |
done |
| 954 |
|
| 955 |
} >&5 |
| 956 |
|
| 957 |
cat >&5 <<_ACEOF |
| 958 |
|
| 959 |
|
| 960 |
## ----------- ## |
| 961 |
## Core tests. ## |
| 962 |
## ----------- ## |
| 963 |
|
| 964 |
_ACEOF |
| 965 |
|
| 966 |
|
| 967 |
# Keep a trace of the command line. |
| 968 |
# Strip out --no-create and --no-recursion so they do not pile up. |
| 969 |
# Strip out --silent because we don't want to record it for future runs. |
| 970 |
# Also quote any args containing shell meta-characters. |
| 971 |
# Make two passes to allow for proper duplicate-argument suppression. |
| 972 |
ac_configure_args= |
| 973 |
ac_configure_args0= |
| 974 |
ac_configure_args1= |
| 975 |
ac_sep= |
| 976 |
ac_must_keep_next=false |
| 977 |
for ac_pass in 1 2 |
| 978 |
do |
| 979 |
for ac_arg |
| 980 |
do |
| 981 |
case $ac_arg in |
| 982 |
-no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 983 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 984 |
| -silent | --silent | --silen | --sile | --sil) |
| 985 |
continue ;; |
| 986 |
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 987 |
ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 988 |
esac |
| 989 |
case $ac_pass in |
| 990 |
1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
| 991 |
2) |
| 992 |
ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
| 993 |
if test $ac_must_keep_next = true; then |
| 994 |
ac_must_keep_next=false # Got value, back to normal. |
| 995 |
else |
| 996 |
case $ac_arg in |
| 997 |
*=* | --config-cache | -C | -disable-* | --disable-* \ |
| 998 |
| -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 999 |
| -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 1000 |
| -with-* | --with-* | -without-* | --without-* | --x) |
| 1001 |
case "$ac_configure_args0 " in |
| 1002 |
"$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 1003 |
esac |
| 1004 |
;; |
| 1005 |
-* ) ac_must_keep_next=true ;; |
| 1006 |
esac |
| 1007 |
fi |
| 1008 |
ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" |
| 1009 |
# Get rid of the leading space. |
| 1010 |
ac_sep=" " |
| 1011 |
;; |
| 1012 |
esac |
| 1013 |
done |
| 1014 |
done |
| 1015 |
$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
| 1016 |
$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
| 1017 |
|
| 1018 |
# When interrupted or exit'd, cleanup temporary files, and complete |
| 1019 |
# config.log. We remove comments because anyway the quotes in there |
| 1020 |
# would cause problems or look ugly. |
| 1021 |
# WARNING: Be sure not to use single quotes in there, as some shells, |
| 1022 |
# such as our DU 5.0 friend, will then `close' the trap. |
| 1023 |
trap 'exit_status=$? |
| 1024 |
# Save into config.log some information that might help in debugging. |
| 1025 |
{ |
| 1026 |
echo |
| 1027 |
|
| 1028 |
cat <<\_ASBOX |
| 1029 |
## ---------------- ## |
| 1030 |
## Cache variables. ## |
| 1031 |
## ---------------- ## |
| 1032 |
_ASBOX |
| 1033 |
echo |
| 1034 |
# The following way of writing the cache mishandles newlines in values, |
| 1035 |
{ |
| 1036 |
(set) 2>&1 | |
| 1037 |
case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in |
| 1038 |
*ac_space=\ *) |
| 1039 |
sed -n \ |
| 1040 |
"s/'"'"'/'"'"'\\\\'"'"''"'"'/g; |
| 1041 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" |
| 1042 |
;; |
| 1043 |
*) |
| 1044 |
sed -n \ |
| 1045 |
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 1046 |
;; |
| 1047 |
esac; |
| 1048 |
} |
| 1049 |
echo |
| 1050 |
|
| 1051 |
cat <<\_ASBOX |
| 1052 |
## ----------------- ## |
| 1053 |
## Output variables. ## |
| 1054 |
## ----------------- ## |
| 1055 |
_ASBOX |
| 1056 |
echo |
| 1057 |
for ac_var in $ac_subst_vars |
| 1058 |
do |
| 1059 |
eval ac_val=$`echo $ac_var` |
| 1060 |
echo "$ac_var='"'"'$ac_val'"'"'" |
| 1061 |
done | sort |
| 1062 |
echo |
| 1063 |
|
| 1064 |
if test -n "$ac_subst_files"; then |
| 1065 |
cat <<\_ASBOX |
| 1066 |
## ------------- ## |
| 1067 |
## Output files. ## |
| 1068 |
## ------------- ## |
| 1069 |
_ASBOX |
| 1070 |
echo |
| 1071 |
for ac_var in $ac_subst_files |
| 1072 |
do |
| 1073 |
eval ac_val=$`echo $ac_var` |
| 1074 |
echo "$ac_var='"'"'$ac_val'"'"'" |
| 1075 |
done | sort |
| 1076 |
echo |
| 1077 |
fi |
| 1078 |
|
| 1079 |
if test -s confdefs.h; then |
| 1080 |
cat <<\_ASBOX |
| 1081 |
## ----------- ## |
| 1082 |
## confdefs.h. ## |
| 1083 |
## ----------- ## |
| 1084 |
_ASBOX |
| 1085 |
echo |
| 1086 |
sed "/^$/d" confdefs.h | sort |
| 1087 |
echo |
| 1088 |
fi |
| 1089 |
test "$ac_signal" != 0 && |
| 1090 |
echo "$as_me: caught signal $ac_signal" |
| 1091 |
echo "$as_me: exit $exit_status" |
| 1092 |
} >&5 |
| 1093 |
rm -f core *.core && |
| 1094 |
rm -rf conftest* confdefs* conf$$* $ac_clean_files && |
| 1095 |
exit $exit_status |
| 1096 |
' 0 |
| 1097 |
for ac_signal in 1 2 13 15; do |
| 1098 |
trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
| 1099 |
done |
| 1100 |
ac_signal=0 |
| 1101 |
|
| 1102 |
# confdefs.h avoids OS command line length limits that DEFS can exceed. |
| 1103 |
rm -rf conftest* confdefs.h |
| 1104 |
# AIX cpp loses on an empty file, so make sure it contains at least a newline. |
| 1105 |
echo >confdefs.h |
| 1106 |
|
| 1107 |
# Predefined preprocessor variables. |
| 1108 |
|
| 1109 |
cat >>confdefs.h <<_ACEOF |
| 1110 |
#define PACKAGE_NAME "$PACKAGE_NAME" |
| 1111 |
_ACEOF |
| 1112 |
|
| 1113 |
|
| 1114 |
cat >>confdefs.h <<_ACEOF |
| 1115 |
#define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 1116 |
_ACEOF |
| 1117 |
|
| 1118 |
|
| 1119 |
cat >>confdefs.h <<_ACEOF |
| 1120 |
#define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 1121 |
_ACEOF |
| 1122 |
|
| 1123 |
|
| 1124 |
cat >>confdefs.h <<_ACEOF |
| 1125 |
#define PACKAGE_STRING "$PACKAGE_STRING" |
| 1126 |
_ACEOF |
| 1127 |
|
| 1128 |
|
| 1129 |
cat >>confdefs.h <<_ACEOF |
| 1130 |
#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 1131 |
_ACEOF |
| 1132 |
|
| 1133 |
|
| 1134 |
# Let the site file select an alternate cache file if it wants to. |
| 1135 |
# Prefer explicitly selected file to automatically selected ones. |
| 1136 |
if test -z "$CONFIG_SITE"; then |
| 1137 |
if test "x$prefix" != xNONE; then |
| 1138 |
CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" |
| 1139 |
else |
| 1140 |
CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" |
| 1141 |
fi |
| 1142 |
fi |
| 1143 |
for ac_site_file in $CONFIG_SITE; do |
| 1144 |
if test -r "$ac_site_file"; then |
| 1145 |
{ echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
| 1146 |
echo "$as_me: loading site script $ac_site_file" >&6;} |
| 1147 |
sed 's/^/| /' "$ac_site_file" >&5 |
| 1148 |
. "$ac_site_file" |
| 1149 |
fi |
| 1150 |
done |
| 1151 |
|
| 1152 |
if test -r "$cache_file"; then |
| 1153 |
# Some versions of bash will fail to source /dev/null (special |
| 1154 |
# files actually), so we avoid doing that. |
| 1155 |
if test -f "$cache_file"; then |
| 1156 |
{ echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
| 1157 |
echo "$as_me: loading cache $cache_file" >&6;} |
| 1158 |
case $cache_file in |
| 1159 |
[\\/]* | ?:[\\/]* ) . $cache_file;; |
| 1160 |
*) . ./$cache_file;; |
| 1161 |
esac |
| 1162 |
fi |
| 1163 |
else |
| 1164 |
{ echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
| 1165 |
echo "$as_me: creating cache $cache_file" >&6;} |
| 1166 |
>$cache_file |
| 1167 |
fi |
| 1168 |
|
| 1169 |
# Check that the precious variables saved in the cache have kept the same |
| 1170 |
# value. |
| 1171 |
ac_cache_corrupted=false |
| 1172 |
for ac_var in `(set) 2>&1 | |
| 1173 |
sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do |
| 1174 |
eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 1175 |
eval ac_new_set=\$ac_env_${ac_var}_set |
| 1176 |
eval ac_old_val="\$ac_cv_env_${ac_var}_value" |
| 1177 |
eval ac_new_val="\$ac_env_${ac_var}_value" |
| 1178 |
case $ac_old_set,$ac_new_set in |
| 1179 |
set,) |
| 1180 |
{ echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
| 1181 |
echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
| 1182 |
ac_cache_corrupted=: ;; |
| 1183 |
,set) |
| 1184 |
{ echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
| 1185 |
echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
| 1186 |
ac_cache_corrupted=: ;; |
| 1187 |
,);; |
| 1188 |
*) |
| 1189 |
if test "x$ac_old_val" != "x$ac_new_val"; then |
| 1190 |
{ echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
| 1191 |
echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 1192 |
{ echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
| 1193 |
echo "$as_me: former value: $ac_old_val" >&2;} |
| 1194 |
{ echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
| 1195 |
echo "$as_me: current value: $ac_new_val" >&2;} |
| 1196 |
ac_cache_corrupted=: |
| 1197 |
fi;; |
| 1198 |
esac |
| 1199 |
# Pass precious variables to config.status. |
| 1200 |
if test "$ac_new_set" = set; then |
| 1201 |
case $ac_new_val in |
| 1202 |
*" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) |
| 1203 |
ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 1204 |
*) ac_arg=$ac_var=$ac_new_val ;; |
| 1205 |
esac |
| 1206 |
case " $ac_configure_args " in |
| 1207 |
*" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
| 1208 |
*) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
| 1209 |
esac |
| 1210 |
fi |
| 1211 |
done |
| 1212 |
if $ac_cache_corrupted; then |
| 1213 |
{ echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
| 1214 |
echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
| 1215 |
{ { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
| 1216 |
echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
| 1217 |
{ (exit 1); exit 1; }; } |
| 1218 |
fi |
| 1219 |
|
| 1220 |
ac_ext=c |
| 1221 |
ac_cpp='$CPP $CPPFLAGS' |
| 1222 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1223 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1224 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1225 |
|
| 1226 |
|
| 1227 |
|
| 1228 |
|
| 1229 |
|
| 1230 |
|
| 1231 |
|
| 1232 |
|
| 1233 |
|
| 1234 |
|
| 1235 |
|
| 1236 |
|
| 1237 |
|
| 1238 |
|
| 1239 |
|
| 1240 |
|
| 1241 |
|
| 1242 |
|
| 1243 |
|
| 1244 |
ac_config_headers="$ac_config_headers config.h" |
| 1245 |
|
| 1246 |
|
| 1247 |
ac_ext=c |
| 1248 |
ac_cpp='$CPP $CPPFLAGS' |
| 1249 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 1250 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 1251 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 1252 |
if test -n "$ac_tool_prefix"; then |
| 1253 |
# Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 1254 |
set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 1255 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1256 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1257 |
if test "${ac_cv_prog_CC+set}" = set; then |
| 1258 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1259 |
else |
| 1260 |
if test -n "$CC"; then |
| 1261 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1262 |
else |
| 1263 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1264 |
for as_dir in $PATH |
| 1265 |
do |
| 1266 |
IFS=$as_save_IFS |
| 1267 |
test -z "$as_dir" && as_dir=. |
| 1268 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 1269 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1270 |
ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 1271 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1272 |
break 2 |
| 1273 |
fi |
| 1274 |
done |
| 1275 |
done |
| 1276 |
|
| 1277 |
fi |
| 1278 |
fi |
| 1279 |
CC=$ac_cv_prog_CC |
| 1280 |
if test -n "$CC"; then |
| 1281 |
echo "$as_me:$LINENO: result: $CC" >&5 |
| 1282 |
echo "${ECHO_T}$CC" >&6 |
| 1283 |
else |
| 1284 |
echo "$as_me:$LINENO: result: no" >&5 |
| 1285 |
echo "${ECHO_T}no" >&6 |
| 1286 |
fi |
| 1287 |
|
| 1288 |
fi |
| 1289 |
if test -z "$ac_cv_prog_CC"; then |
| 1290 |
ac_ct_CC=$CC |
| 1291 |
# Extract the first word of "gcc", so it can be a program name with args. |
| 1292 |
set dummy gcc; ac_word=$2 |
| 1293 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1294 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1295 |
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1296 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1297 |
else |
| 1298 |
if test -n "$ac_ct_CC"; then |
| 1299 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1300 |
else |
| 1301 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1302 |
for as_dir in $PATH |
| 1303 |
do |
| 1304 |
IFS=$as_save_IFS |
| 1305 |
test -z "$as_dir" && as_dir=. |
| 1306 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 1307 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1308 |
ac_cv_prog_ac_ct_CC="gcc" |
| 1309 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1310 |
break 2 |
| 1311 |
fi |
| 1312 |
done |
| 1313 |
done |
| 1314 |
|
| 1315 |
fi |
| 1316 |
fi |
| 1317 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1318 |
if test -n "$ac_ct_CC"; then |
| 1319 |
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1320 |
echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1321 |
else |
| 1322 |
echo "$as_me:$LINENO: result: no" >&5 |
| 1323 |
echo "${ECHO_T}no" >&6 |
| 1324 |
fi |
| 1325 |
|
| 1326 |
CC=$ac_ct_CC |
| 1327 |
else |
| 1328 |
CC="$ac_cv_prog_CC" |
| 1329 |
fi |
| 1330 |
|
| 1331 |
if test -z "$CC"; then |
| 1332 |
if test -n "$ac_tool_prefix"; then |
| 1333 |
# Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 1334 |
set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 1335 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1336 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1337 |
if test "${ac_cv_prog_CC+set}" = set; then |
| 1338 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1339 |
else |
| 1340 |
if test -n "$CC"; then |
| 1341 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1342 |
else |
| 1343 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1344 |
for as_dir in $PATH |
| 1345 |
do |
| 1346 |
IFS=$as_save_IFS |
| 1347 |
test -z "$as_dir" && as_dir=. |
| 1348 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 1349 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1350 |
ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 1351 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1352 |
break 2 |
| 1353 |
fi |
| 1354 |
done |
| 1355 |
done |
| 1356 |
|
| 1357 |
fi |
| 1358 |
fi |
| 1359 |
CC=$ac_cv_prog_CC |
| 1360 |
if test -n "$CC"; then |
| 1361 |
echo "$as_me:$LINENO: result: $CC" >&5 |
| 1362 |
echo "${ECHO_T}$CC" >&6 |
| 1363 |
else |
| 1364 |
echo "$as_me:$LINENO: result: no" >&5 |
| 1365 |
echo "${ECHO_T}no" >&6 |
| 1366 |
fi |
| 1367 |
|
| 1368 |
fi |
| 1369 |
if test -z "$ac_cv_prog_CC"; then |
| 1370 |
ac_ct_CC=$CC |
| 1371 |
# Extract the first word of "cc", so it can be a program name with args. |
| 1372 |
set dummy cc; ac_word=$2 |
| 1373 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1374 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1375 |
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1376 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1377 |
else |
| 1378 |
if test -n "$ac_ct_CC"; then |
| 1379 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1380 |
else |
| 1381 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1382 |
for as_dir in $PATH |
| 1383 |
do |
| 1384 |
IFS=$as_save_IFS |
| 1385 |
test -z "$as_dir" && as_dir=. |
| 1386 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 1387 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1388 |
ac_cv_prog_ac_ct_CC="cc" |
| 1389 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1390 |
break 2 |
| 1391 |
fi |
| 1392 |
done |
| 1393 |
done |
| 1394 |
|
| 1395 |
fi |
| 1396 |
fi |
| 1397 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1398 |
if test -n "$ac_ct_CC"; then |
| 1399 |
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1400 |
echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1401 |
else |
| 1402 |
echo "$as_me:$LINENO: result: no" >&5 |
| 1403 |
echo "${ECHO_T}no" >&6 |
| 1404 |
fi |
| 1405 |
|
| 1406 |
CC=$ac_ct_CC |
| 1407 |
else |
| 1408 |
CC="$ac_cv_prog_CC" |
| 1409 |
fi |
| 1410 |
|
| 1411 |
fi |
| 1412 |
if test -z "$CC"; then |
| 1413 |
# Extract the first word of "cc", so it can be a program name with args. |
| 1414 |
set dummy cc; ac_word=$2 |
| 1415 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1416 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1417 |
if test "${ac_cv_prog_CC+set}" = set; then |
| 1418 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1419 |
else |
| 1420 |
if test -n "$CC"; then |
| 1421 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1422 |
else |
| 1423 |
ac_prog_rejected=no |
| 1424 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1425 |
for as_dir in $PATH |
| 1426 |
do |
| 1427 |
IFS=$as_save_IFS |
| 1428 |
test -z "$as_dir" && as_dir=. |
| 1429 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 1430 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1431 |
if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 1432 |
ac_prog_rejected=yes |
| 1433 |
continue |
| 1434 |
fi |
| 1435 |
ac_cv_prog_CC="cc" |
| 1436 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1437 |
break 2 |
| 1438 |
fi |
| 1439 |
done |
| 1440 |
done |
| 1441 |
|
| 1442 |
if test $ac_prog_rejected = yes; then |
| 1443 |
# We found a bogon in the path, so make sure we never use it. |
| 1444 |
set dummy $ac_cv_prog_CC |
| 1445 |
shift |
| 1446 |
if test $# != 0; then |
| 1447 |
# We chose a different compiler from the bogus one. |
| 1448 |
# However, it has the same basename, so the bogon will be chosen |
| 1449 |
# first if we set CC to just the basename; use the full file name. |
| 1450 |
shift |
| 1451 |
ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 1452 |
fi |
| 1453 |
fi |
| 1454 |
fi |
| 1455 |
fi |
| 1456 |
CC=$ac_cv_prog_CC |
| 1457 |
if test -n "$CC"; then |
| 1458 |
echo "$as_me:$LINENO: result: $CC" >&5 |
| 1459 |
echo "${ECHO_T}$CC" >&6 |
| 1460 |
else |
| 1461 |
echo "$as_me:$LINENO: result: no" >&5 |
| 1462 |
echo "${ECHO_T}no" >&6 |
| 1463 |
fi |
| 1464 |
|
| 1465 |
fi |
| 1466 |
if test -z "$CC"; then |
| 1467 |
if test -n "$ac_tool_prefix"; then |
| 1468 |
for ac_prog in cl |
| 1469 |
do |
| 1470 |
# Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 1471 |
set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 1472 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1473 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1474 |
if test "${ac_cv_prog_CC+set}" = set; then |
| 1475 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1476 |
else |
| 1477 |
if test -n "$CC"; then |
| 1478 |
ac_cv_prog_CC="$CC" # Let the user override the test. |
| 1479 |
else |
| 1480 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1481 |
for as_dir in $PATH |
| 1482 |
do |
| 1483 |
IFS=$as_save_IFS |
| 1484 |
test -z "$as_dir" && as_dir=. |
| 1485 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 1486 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1487 |
ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 1488 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1489 |
break 2 |
| 1490 |
fi |
| 1491 |
done |
| 1492 |
done |
| 1493 |
|
| 1494 |
fi |
| 1495 |
fi |
| 1496 |
CC=$ac_cv_prog_CC |
| 1497 |
if test -n "$CC"; then |
| 1498 |
echo "$as_me:$LINENO: result: $CC" >&5 |
| 1499 |
echo "${ECHO_T}$CC" >&6 |
| 1500 |
else |
| 1501 |
echo "$as_me:$LINENO: result: no" >&5 |
| 1502 |
echo "${ECHO_T}no" >&6 |
| 1503 |
fi |
| 1504 |
|
| 1505 |
test -n "$CC" && break |
| 1506 |
done |
| 1507 |
fi |
| 1508 |
if test -z "$CC"; then |
| 1509 |
ac_ct_CC=$CC |
| 1510 |
for ac_prog in cl |
| 1511 |
do |
| 1512 |
# Extract the first word of "$ac_prog", so it can be a program name with args. |
| 1513 |
set dummy $ac_prog; ac_word=$2 |
| 1514 |
echo "$as_me:$LINENO: checking for $ac_word" >&5 |
| 1515 |
echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 |
| 1516 |
if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
| 1517 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1518 |
else |
| 1519 |
if test -n "$ac_ct_CC"; then |
| 1520 |
ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 1521 |
else |
| 1522 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 1523 |
for as_dir in $PATH |
| 1524 |
do |
| 1525 |
IFS=$as_save_IFS |
| 1526 |
test -z "$as_dir" && as_dir=. |
| 1527 |
for ac_exec_ext in '' $ac_executable_extensions; do |
| 1528 |
if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then |
| 1529 |
ac_cv_prog_ac_ct_CC="$ac_prog" |
| 1530 |
echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 1531 |
break 2 |
| 1532 |
fi |
| 1533 |
done |
| 1534 |
done |
| 1535 |
|
| 1536 |
fi |
| 1537 |
fi |
| 1538 |
ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 1539 |
if test -n "$ac_ct_CC"; then |
| 1540 |
echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
| 1541 |
echo "${ECHO_T}$ac_ct_CC" >&6 |
| 1542 |
else |
| 1543 |
echo "$as_me:$LINENO: result: no" >&5 |
| 1544 |
echo "${ECHO_T}no" >&6 |
| 1545 |
fi |
| 1546 |
|
| 1547 |
test -n "$ac_ct_CC" && break |
| 1548 |
done |
| 1549 |
|
| 1550 |
CC=$ac_ct_CC |
| 1551 |
fi |
| 1552 |
|
| 1553 |
fi |
| 1554 |
|
| 1555 |
|
| 1556 |
test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
| 1557 |
See \`config.log' for more details." >&5 |
| 1558 |
echo "$as_me: error: no acceptable C compiler found in \$PATH |
| 1559 |
See \`config.log' for more details." >&2;} |
| 1560 |
{ (exit 1); exit 1; }; } |
| 1561 |
|
| 1562 |
# Provide some information about the compiler. |
| 1563 |
echo "$as_me:$LINENO:" \ |
| 1564 |
"checking for C compiler version" >&5 |
| 1565 |
ac_compiler=`set X $ac_compile; echo $2` |
| 1566 |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 |
| 1567 |
(eval $ac_compiler --version </dev/null >&5) 2>&5 |
| 1568 |
ac_status=$? |
| 1569 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1570 |
(exit $ac_status); } |
| 1571 |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 |
| 1572 |
(eval $ac_compiler -v </dev/null >&5) 2>&5 |
| 1573 |
ac_status=$? |
| 1574 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1575 |
(exit $ac_status); } |
| 1576 |
{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 |
| 1577 |
(eval $ac_compiler -V </dev/null >&5) 2>&5 |
| 1578 |
ac_status=$? |
| 1579 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1580 |
(exit $ac_status); } |
| 1581 |
|
| 1582 |
cat >conftest.$ac_ext <<_ACEOF |
| 1583 |
/* confdefs.h. */ |
| 1584 |
_ACEOF |
| 1585 |
cat confdefs.h >>conftest.$ac_ext |
| 1586 |
cat >>conftest.$ac_ext <<_ACEOF |
| 1587 |
/* end confdefs.h. */ |
| 1588 |
|
| 1589 |
int |
| 1590 |
main () |
| 1591 |
{ |
| 1592 |
|
| 1593 |
; |
| 1594 |
return 0; |
| 1595 |
} |
| 1596 |
_ACEOF |
| 1597 |
ac_clean_files_save=$ac_clean_files |
| 1598 |
ac_clean_files="$ac_clean_files a.out a.exe b.out" |
| 1599 |
# Try to create an executable without -o first, disregard a.out. |
| 1600 |
# It will help us diagnose broken compilers, and finding out an intuition |
| 1601 |
# of exeext. |
| 1602 |
echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
| 1603 |
echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 |
| 1604 |
ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 1605 |
if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 |
| 1606 |
(eval $ac_link_default) 2>&5 |
| 1607 |
ac_status=$? |
| 1608 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1609 |
(exit $ac_status); }; then |
| 1610 |
# Find the output, starting from the most likely. This scheme is |
| 1611 |
# not robust to junk in `.', hence go to wildcards (a.*) only as a last |
| 1612 |
# resort. |
| 1613 |
|
| 1614 |
# Be careful to initialize this variable, since it used to be cached. |
| 1615 |
# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. |
| 1616 |
ac_cv_exeext= |
| 1617 |
# b.out is created by i960 compilers. |
| 1618 |
for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out |
| 1619 |
do |
| 1620 |
test -f "$ac_file" || continue |
| 1621 |
case $ac_file in |
| 1622 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) |
| 1623 |
;; |
| 1624 |
conftest.$ac_ext ) |
| 1625 |
# This is the source file. |
| 1626 |
;; |
| 1627 |
[ab].out ) |
| 1628 |
# We found the default executable, but exeext='' is most |
| 1629 |
# certainly right. |
| 1630 |
break;; |
| 1631 |
*.* ) |
| 1632 |
ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1633 |
# FIXME: I believe we export ac_cv_exeext for Libtool, |
| 1634 |
# but it would be cool to find out if it's true. Does anybody |
| 1635 |
# maintain Libtool? --akim. |
| 1636 |
export ac_cv_exeext |
| 1637 |
break;; |
| 1638 |
* ) |
| 1639 |
break;; |
| 1640 |
esac |
| 1641 |
done |
| 1642 |
else |
| 1643 |
echo "$as_me: failed program was:" >&5 |
| 1644 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 1645 |
|
| 1646 |
{ { echo "$as_me:$LINENO: error: C compiler cannot create executables |
| 1647 |
See \`config.log' for more details." >&5 |
| 1648 |
echo "$as_me: error: C compiler cannot create executables |
| 1649 |
See \`config.log' for more details." >&2;} |
| 1650 |
{ (exit 77); exit 77; }; } |
| 1651 |
fi |
| 1652 |
|
| 1653 |
ac_exeext=$ac_cv_exeext |
| 1654 |
echo "$as_me:$LINENO: result: $ac_file" >&5 |
| 1655 |
echo "${ECHO_T}$ac_file" >&6 |
| 1656 |
|
| 1657 |
# Check the compiler produces executables we can run. If not, either |
| 1658 |
# the compiler is broken, or we cross compile. |
| 1659 |
echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
| 1660 |
echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 |
| 1661 |
# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
| 1662 |
# If not cross compiling, check that we can run a simple program. |
| 1663 |
if test "$cross_compiling" != yes; then |
| 1664 |
if { ac_try='./$ac_file' |
| 1665 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1666 |
(eval $ac_try) 2>&5 |
| 1667 |
ac_status=$? |
| 1668 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1669 |
(exit $ac_status); }; }; then |
| 1670 |
cross_compiling=no |
| 1671 |
else |
| 1672 |
if test "$cross_compiling" = maybe; then |
| 1673 |
cross_compiling=yes |
| 1674 |
else |
| 1675 |
{ { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
| 1676 |
If you meant to cross compile, use \`--host'. |
| 1677 |
See \`config.log' for more details." >&5 |
| 1678 |
echo "$as_me: error: cannot run C compiled programs. |
| 1679 |
If you meant to cross compile, use \`--host'. |
| 1680 |
See \`config.log' for more details." >&2;} |
| 1681 |
{ (exit 1); exit 1; }; } |
| 1682 |
fi |
| 1683 |
fi |
| 1684 |
fi |
| 1685 |
echo "$as_me:$LINENO: result: yes" >&5 |
| 1686 |
echo "${ECHO_T}yes" >&6 |
| 1687 |
|
| 1688 |
rm -f a.out a.exe conftest$ac_cv_exeext b.out |
| 1689 |
ac_clean_files=$ac_clean_files_save |
| 1690 |
# Check the compiler produces executables we can run. If not, either |
| 1691 |
# the compiler is broken, or we cross compile. |
| 1692 |
echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
| 1693 |
echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 |
| 1694 |
echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
| 1695 |
echo "${ECHO_T}$cross_compiling" >&6 |
| 1696 |
|
| 1697 |
echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
| 1698 |
echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 |
| 1699 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 1700 |
(eval $ac_link) 2>&5 |
| 1701 |
ac_status=$? |
| 1702 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1703 |
(exit $ac_status); }; then |
| 1704 |
# If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 1705 |
# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 1706 |
# work properly (i.e., refer to `conftest.exe'), while it won't with |
| 1707 |
# `rm'. |
| 1708 |
for ac_file in conftest.exe conftest conftest.*; do |
| 1709 |
test -f "$ac_file" || continue |
| 1710 |
case $ac_file in |
| 1711 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; |
| 1712 |
*.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 1713 |
export ac_cv_exeext |
| 1714 |
break;; |
| 1715 |
* ) break;; |
| 1716 |
esac |
| 1717 |
done |
| 1718 |
else |
| 1719 |
{ { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
| 1720 |
See \`config.log' for more details." >&5 |
| 1721 |
echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
| 1722 |
See \`config.log' for more details." >&2;} |
| 1723 |
{ (exit 1); exit 1; }; } |
| 1724 |
fi |
| 1725 |
|
| 1726 |
rm -f conftest$ac_cv_exeext |
| 1727 |
echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
| 1728 |
echo "${ECHO_T}$ac_cv_exeext" >&6 |
| 1729 |
|
| 1730 |
rm -f conftest.$ac_ext |
| 1731 |
EXEEXT=$ac_cv_exeext |
| 1732 |
ac_exeext=$EXEEXT |
| 1733 |
echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
| 1734 |
echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 |
| 1735 |
if test "${ac_cv_objext+set}" = set; then |
| 1736 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1737 |
else |
| 1738 |
cat >conftest.$ac_ext <<_ACEOF |
| 1739 |
/* confdefs.h. */ |
| 1740 |
_ACEOF |
| 1741 |
cat confdefs.h >>conftest.$ac_ext |
| 1742 |
cat >>conftest.$ac_ext <<_ACEOF |
| 1743 |
/* end confdefs.h. */ |
| 1744 |
|
| 1745 |
int |
| 1746 |
main () |
| 1747 |
{ |
| 1748 |
|
| 1749 |
; |
| 1750 |
return 0; |
| 1751 |
} |
| 1752 |
_ACEOF |
| 1753 |
rm -f conftest.o conftest.obj |
| 1754 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 1755 |
(eval $ac_compile) 2>&5 |
| 1756 |
ac_status=$? |
| 1757 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1758 |
(exit $ac_status); }; then |
| 1759 |
for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do |
| 1760 |
case $ac_file in |
| 1761 |
*.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; |
| 1762 |
*) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 1763 |
break;; |
| 1764 |
esac |
| 1765 |
done |
| 1766 |
else |
| 1767 |
echo "$as_me: failed program was:" >&5 |
| 1768 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 1769 |
|
| 1770 |
{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
| 1771 |
See \`config.log' for more details." >&5 |
| 1772 |
echo "$as_me: error: cannot compute suffix of object files: cannot compile |
| 1773 |
See \`config.log' for more details." >&2;} |
| 1774 |
{ (exit 1); exit 1; }; } |
| 1775 |
fi |
| 1776 |
|
| 1777 |
rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 1778 |
fi |
| 1779 |
echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
| 1780 |
echo "${ECHO_T}$ac_cv_objext" >&6 |
| 1781 |
OBJEXT=$ac_cv_objext |
| 1782 |
ac_objext=$OBJEXT |
| 1783 |
echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
| 1784 |
echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 |
| 1785 |
if test "${ac_cv_c_compiler_gnu+set}" = set; then |
| 1786 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1787 |
else |
| 1788 |
cat >conftest.$ac_ext <<_ACEOF |
| 1789 |
/* confdefs.h. */ |
| 1790 |
_ACEOF |
| 1791 |
cat confdefs.h >>conftest.$ac_ext |
| 1792 |
cat >>conftest.$ac_ext <<_ACEOF |
| 1793 |
/* end confdefs.h. */ |
| 1794 |
|
| 1795 |
int |
| 1796 |
main () |
| 1797 |
{ |
| 1798 |
#ifndef __GNUC__ |
| 1799 |
choke me |
| 1800 |
#endif |
| 1801 |
|
| 1802 |
; |
| 1803 |
return 0; |
| 1804 |
} |
| 1805 |
_ACEOF |
| 1806 |
rm -f conftest.$ac_objext |
| 1807 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 1808 |
(eval $ac_compile) 2>conftest.er1 |
| 1809 |
ac_status=$? |
| 1810 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 1811 |
rm -f conftest.er1 |
| 1812 |
cat conftest.err >&5 |
| 1813 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1814 |
(exit $ac_status); } && |
| 1815 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 1816 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1817 |
(eval $ac_try) 2>&5 |
| 1818 |
ac_status=$? |
| 1819 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1820 |
(exit $ac_status); }; } && |
| 1821 |
{ ac_try='test -s conftest.$ac_objext' |
| 1822 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1823 |
(eval $ac_try) 2>&5 |
| 1824 |
ac_status=$? |
| 1825 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1826 |
(exit $ac_status); }; }; then |
| 1827 |
ac_compiler_gnu=yes |
| 1828 |
else |
| 1829 |
echo "$as_me: failed program was:" >&5 |
| 1830 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 1831 |
|
| 1832 |
ac_compiler_gnu=no |
| 1833 |
fi |
| 1834 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1835 |
ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 1836 |
|
| 1837 |
fi |
| 1838 |
echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
| 1839 |
echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 |
| 1840 |
GCC=`test $ac_compiler_gnu = yes && echo yes` |
| 1841 |
ac_test_CFLAGS=${CFLAGS+set} |
| 1842 |
ac_save_CFLAGS=$CFLAGS |
| 1843 |
CFLAGS="-g" |
| 1844 |
echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
| 1845 |
echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 |
| 1846 |
if test "${ac_cv_prog_cc_g+set}" = set; then |
| 1847 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1848 |
else |
| 1849 |
cat >conftest.$ac_ext <<_ACEOF |
| 1850 |
/* confdefs.h. */ |
| 1851 |
_ACEOF |
| 1852 |
cat confdefs.h >>conftest.$ac_ext |
| 1853 |
cat >>conftest.$ac_ext <<_ACEOF |
| 1854 |
/* end confdefs.h. */ |
| 1855 |
|
| 1856 |
int |
| 1857 |
main () |
| 1858 |
{ |
| 1859 |
|
| 1860 |
; |
| 1861 |
return 0; |
| 1862 |
} |
| 1863 |
_ACEOF |
| 1864 |
rm -f conftest.$ac_objext |
| 1865 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 1866 |
(eval $ac_compile) 2>conftest.er1 |
| 1867 |
ac_status=$? |
| 1868 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 1869 |
rm -f conftest.er1 |
| 1870 |
cat conftest.err >&5 |
| 1871 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1872 |
(exit $ac_status); } && |
| 1873 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 1874 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1875 |
(eval $ac_try) 2>&5 |
| 1876 |
ac_status=$? |
| 1877 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1878 |
(exit $ac_status); }; } && |
| 1879 |
{ ac_try='test -s conftest.$ac_objext' |
| 1880 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1881 |
(eval $ac_try) 2>&5 |
| 1882 |
ac_status=$? |
| 1883 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1884 |
(exit $ac_status); }; }; then |
| 1885 |
ac_cv_prog_cc_g=yes |
| 1886 |
else |
| 1887 |
echo "$as_me: failed program was:" >&5 |
| 1888 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 1889 |
|
| 1890 |
ac_cv_prog_cc_g=no |
| 1891 |
fi |
| 1892 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1893 |
fi |
| 1894 |
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
| 1895 |
echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 |
| 1896 |
if test "$ac_test_CFLAGS" = set; then |
| 1897 |
CFLAGS=$ac_save_CFLAGS |
| 1898 |
elif test $ac_cv_prog_cc_g = yes; then |
| 1899 |
if test "$GCC" = yes; then |
| 1900 |
CFLAGS="-g -O2" |
| 1901 |
else |
| 1902 |
CFLAGS="-g" |
| 1903 |
fi |
| 1904 |
else |
| 1905 |
if test "$GCC" = yes; then |
| 1906 |
CFLAGS="-O2" |
| 1907 |
else |
| 1908 |
CFLAGS= |
| 1909 |
fi |
| 1910 |
fi |
| 1911 |
echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
| 1912 |
echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 |
| 1913 |
if test "${ac_cv_prog_cc_stdc+set}" = set; then |
| 1914 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 1915 |
else |
| 1916 |
ac_cv_prog_cc_stdc=no |
| 1917 |
ac_save_CC=$CC |
| 1918 |
cat >conftest.$ac_ext <<_ACEOF |
| 1919 |
/* confdefs.h. */ |
| 1920 |
_ACEOF |
| 1921 |
cat confdefs.h >>conftest.$ac_ext |
| 1922 |
cat >>conftest.$ac_ext <<_ACEOF |
| 1923 |
/* end confdefs.h. */ |
| 1924 |
#include <stdarg.h> |
| 1925 |
#include <stdio.h> |
| 1926 |
#include <sys/types.h> |
| 1927 |
#include <sys/stat.h> |
| 1928 |
/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 1929 |
struct buf { int x; }; |
| 1930 |
FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 1931 |
static char *e (p, i) |
| 1932 |
char **p; |
| 1933 |
int i; |
| 1934 |
{ |
| 1935 |
return p[i]; |
| 1936 |
} |
| 1937 |
static char *f (char * (*g) (char **, int), char **p, ...) |
| 1938 |
{ |
| 1939 |
char *s; |
| 1940 |
va_list v; |
| 1941 |
va_start (v,p); |
| 1942 |
s = g (p, va_arg (v,int)); |
| 1943 |
va_end (v); |
| 1944 |
return s; |
| 1945 |
} |
| 1946 |
|
| 1947 |
/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 1948 |
function prototypes and stuff, but not '\xHH' hex character constants. |
| 1949 |
These don't provoke an error unfortunately, instead are silently treated |
| 1950 |
as 'x'. The following induces an error, until -std1 is added to get |
| 1951 |
proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 1952 |
array size at least. It's necessary to write '\x00'==0 to get something |
| 1953 |
that's true only with -std1. */ |
| 1954 |
int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 1955 |
|
| 1956 |
int test (int i, double x); |
| 1957 |
struct s1 {int (*f) (int a);}; |
| 1958 |
struct s2 {int (*f) (double a);}; |
| 1959 |
int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 1960 |
int argc; |
| 1961 |
char **argv; |
| 1962 |
int |
| 1963 |
main () |
| 1964 |
{ |
| 1965 |
return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 1966 |
; |
| 1967 |
return 0; |
| 1968 |
} |
| 1969 |
_ACEOF |
| 1970 |
# Don't try gcc -ansi; that turns off useful extensions and |
| 1971 |
# breaks some systems' header files. |
| 1972 |
# AIX -qlanglvl=ansi |
| 1973 |
# Ultrix and OSF/1 -std1 |
| 1974 |
# HP-UX 10.20 and later -Ae |
| 1975 |
# HP-UX older versions -Aa -D_HPUX_SOURCE |
| 1976 |
# SVR4 -Xc -D__EXTENSIONS__ |
| 1977 |
for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 1978 |
do |
| 1979 |
CC="$ac_save_CC $ac_arg" |
| 1980 |
rm -f conftest.$ac_objext |
| 1981 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 1982 |
(eval $ac_compile) 2>conftest.er1 |
| 1983 |
ac_status=$? |
| 1984 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 1985 |
rm -f conftest.er1 |
| 1986 |
cat conftest.err >&5 |
| 1987 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1988 |
(exit $ac_status); } && |
| 1989 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 1990 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1991 |
(eval $ac_try) 2>&5 |
| 1992 |
ac_status=$? |
| 1993 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 1994 |
(exit $ac_status); }; } && |
| 1995 |
{ ac_try='test -s conftest.$ac_objext' |
| 1996 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 1997 |
(eval $ac_try) 2>&5 |
| 1998 |
ac_status=$? |
| 1999 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2000 |
(exit $ac_status); }; }; then |
| 2001 |
ac_cv_prog_cc_stdc=$ac_arg |
| 2002 |
break |
| 2003 |
else |
| 2004 |
echo "$as_me: failed program was:" >&5 |
| 2005 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 2006 |
|
| 2007 |
fi |
| 2008 |
rm -f conftest.err conftest.$ac_objext |
| 2009 |
done |
| 2010 |
rm -f conftest.$ac_ext conftest.$ac_objext |
| 2011 |
CC=$ac_save_CC |
| 2012 |
|
| 2013 |
fi |
| 2014 |
|
| 2015 |
case "x$ac_cv_prog_cc_stdc" in |
| 2016 |
x|xno) |
| 2017 |
echo "$as_me:$LINENO: result: none needed" >&5 |
| 2018 |
echo "${ECHO_T}none needed" >&6 ;; |
| 2019 |
*) |
| 2020 |
echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 |
| 2021 |
echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 |
| 2022 |
CC="$CC $ac_cv_prog_cc_stdc" ;; |
| 2023 |
esac |
| 2024 |
|
| 2025 |
# Some people use a C++ compiler to compile C. Since we use `exit', |
| 2026 |
# in C++ we need to declare it. In case someone uses the same compiler |
| 2027 |
# for both compiling C and C++ we need to have the C++ compiler decide |
| 2028 |
# the declaration of exit, since it's the most demanding environment. |
| 2029 |
cat >conftest.$ac_ext <<_ACEOF |
| 2030 |
#ifndef __cplusplus |
| 2031 |
choke me |
| 2032 |
#endif |
| 2033 |
_ACEOF |
| 2034 |
rm -f conftest.$ac_objext |
| 2035 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2036 |
(eval $ac_compile) 2>conftest.er1 |
| 2037 |
ac_status=$? |
| 2038 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 2039 |
rm -f conftest.er1 |
| 2040 |
cat conftest.err >&5 |
| 2041 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2042 |
(exit $ac_status); } && |
| 2043 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2044 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2045 |
(eval $ac_try) 2>&5 |
| 2046 |
ac_status=$? |
| 2047 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2048 |
(exit $ac_status); }; } && |
| 2049 |
{ ac_try='test -s conftest.$ac_objext' |
| 2050 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2051 |
(eval $ac_try) 2>&5 |
| 2052 |
ac_status=$? |
| 2053 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2054 |
(exit $ac_status); }; }; then |
| 2055 |
for ac_declaration in \ |
| 2056 |
'' \ |
| 2057 |
'extern "C" void std::exit (int) throw (); using std::exit;' \ |
| 2058 |
'extern "C" void std::exit (int); using std::exit;' \ |
| 2059 |
'extern "C" void exit (int) throw ();' \ |
| 2060 |
'extern "C" void exit (int);' \ |
| 2061 |
'void exit (int);' |
| 2062 |
do |
| 2063 |
cat >conftest.$ac_ext <<_ACEOF |
| 2064 |
/* confdefs.h. */ |
| 2065 |
_ACEOF |
| 2066 |
cat confdefs.h >>conftest.$ac_ext |
| 2067 |
cat >>conftest.$ac_ext <<_ACEOF |
| 2068 |
/* end confdefs.h. */ |
| 2069 |
$ac_declaration |
| 2070 |
#include <stdlib.h> |
| 2071 |
int |
| 2072 |
main () |
| 2073 |
{ |
| 2074 |
exit (42); |
| 2075 |
; |
| 2076 |
return 0; |
| 2077 |
} |
| 2078 |
_ACEOF |
| 2079 |
rm -f conftest.$ac_objext |
| 2080 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2081 |
(eval $ac_compile) 2>conftest.er1 |
| 2082 |
ac_status=$? |
| 2083 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 2084 |
rm -f conftest.er1 |
| 2085 |
cat conftest.err >&5 |
| 2086 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2087 |
(exit $ac_status); } && |
| 2088 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2089 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2090 |
(eval $ac_try) 2>&5 |
| 2091 |
ac_status=$? |
| 2092 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2093 |
(exit $ac_status); }; } && |
| 2094 |
{ ac_try='test -s conftest.$ac_objext' |
| 2095 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2096 |
(eval $ac_try) 2>&5 |
| 2097 |
ac_status=$? |
| 2098 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2099 |
(exit $ac_status); }; }; then |
| 2100 |
: |
| 2101 |
else |
| 2102 |
echo "$as_me: failed program was:" >&5 |
| 2103 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 2104 |
|
| 2105 |
continue |
| 2106 |
fi |
| 2107 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2108 |
cat >conftest.$ac_ext <<_ACEOF |
| 2109 |
/* confdefs.h. */ |
| 2110 |
_ACEOF |
| 2111 |
cat confdefs.h >>conftest.$ac_ext |
| 2112 |
cat >>conftest.$ac_ext <<_ACEOF |
| 2113 |
/* end confdefs.h. */ |
| 2114 |
$ac_declaration |
| 2115 |
int |
| 2116 |
main () |
| 2117 |
{ |
| 2118 |
exit (42); |
| 2119 |
; |
| 2120 |
return 0; |
| 2121 |
} |
| 2122 |
_ACEOF |
| 2123 |
rm -f conftest.$ac_objext |
| 2124 |
if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
| 2125 |
(eval $ac_compile) 2>conftest.er1 |
| 2126 |
ac_status=$? |
| 2127 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 2128 |
rm -f conftest.er1 |
| 2129 |
cat conftest.err >&5 |
| 2130 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2131 |
(exit $ac_status); } && |
| 2132 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2133 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2134 |
(eval $ac_try) 2>&5 |
| 2135 |
ac_status=$? |
| 2136 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2137 |
(exit $ac_status); }; } && |
| 2138 |
{ ac_try='test -s conftest.$ac_objext' |
| 2139 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2140 |
(eval $ac_try) 2>&5 |
| 2141 |
ac_status=$? |
| 2142 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2143 |
(exit $ac_status); }; }; then |
| 2144 |
break |
| 2145 |
else |
| 2146 |
echo "$as_me: failed program was:" >&5 |
| 2147 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 2148 |
|
| 2149 |
fi |
| 2150 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2151 |
done |
| 2152 |
rm -f conftest* |
| 2153 |
if test -n "$ac_declaration"; then |
| 2154 |
echo '#ifdef __cplusplus' >>confdefs.h |
| 2155 |
echo $ac_declaration >>confdefs.h |
| 2156 |
echo '#endif' >>confdefs.h |
| 2157 |
fi |
| 2158 |
|
| 2159 |
else |
| 2160 |
echo "$as_me: failed program was:" >&5 |
| 2161 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 2162 |
|
| 2163 |
fi |
| 2164 |
rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2165 |
ac_ext=c |
| 2166 |
ac_cpp='$CPP $CPPFLAGS' |
| 2167 |
ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2168 |
ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2169 |
ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2170 |
|
| 2171 |
|
| 2172 |
|
| 2173 |
echo "$as_me:$LINENO: checking for readahead" >&5 |
| 2174 |
echo $ECHO_N "checking for readahead... $ECHO_C" >&6 |
| 2175 |
if test "${ac_cv_readahead+set}" = set; then |
| 2176 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2177 |
else |
| 2178 |
cat >conftest.$ac_ext <<_ACEOF |
| 2179 |
|
| 2180 |
#include <fcntl.h> |
| 2181 |
int main(void) |
| 2182 |
{ |
| 2183 |
int fd = 0; |
| 2184 |
off64_t offset = 1; |
| 2185 |
size_t count = 2; |
| 2186 |
ssize_t res; |
| 2187 |
res = readahead (fd, offset, count); |
| 2188 |
return 0; |
| 2189 |
} |
| 2190 |
|
| 2191 |
_ACEOF |
| 2192 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 2193 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2194 |
(eval $ac_link) 2>conftest.er1 |
| 2195 |
ac_status=$? |
| 2196 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 2197 |
rm -f conftest.er1 |
| 2198 |
cat conftest.err >&5 |
| 2199 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2200 |
(exit $ac_status); } && |
| 2201 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2202 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2203 |
(eval $ac_try) 2>&5 |
| 2204 |
ac_status=$? |
| 2205 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2206 |
(exit $ac_status); }; } && |
| 2207 |
{ ac_try='test -s conftest$ac_exeext' |
| 2208 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2209 |
(eval $ac_try) 2>&5 |
| 2210 |
ac_status=$? |
| 2211 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2212 |
(exit $ac_status); }; }; then |
| 2213 |
ac_cv_readahead=yes |
| 2214 |
else |
| 2215 |
echo "$as_me: failed program was:" >&5 |
| 2216 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 2217 |
|
| 2218 |
ac_cv_readahead=no |
| 2219 |
fi |
| 2220 |
rm -f conftest.err conftest.$ac_objext \ |
| 2221 |
conftest$ac_exeext conftest.$ac_ext |
| 2222 |
fi |
| 2223 |
echo "$as_me:$LINENO: result: $ac_cv_readahead" >&5 |
| 2224 |
echo "${ECHO_T}$ac_cv_readahead" >&6 |
| 2225 |
test $ac_cv_readahead = yes && |
| 2226 |
cat >>confdefs.h <<\_ACEOF |
| 2227 |
#define HAVE_READAHEAD 1 |
| 2228 |
_ACEOF |
| 2229 |
|
| 2230 |
|
| 2231 |
echo "$as_me:$LINENO: checking for fdatasync" >&5 |
| 2232 |
echo $ECHO_N "checking for fdatasync... $ECHO_C" >&6 |
| 2233 |
if test "${ac_cv_fdatasync+set}" = set; then |
| 2234 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2235 |
else |
| 2236 |
cat >conftest.$ac_ext <<_ACEOF |
| 2237 |
|
| 2238 |
#include <unistd.h> |
| 2239 |
int main(void) |
| 2240 |
{ |
| 2241 |
int fd = 0; |
| 2242 |
fdatasync (fd); |
| 2243 |
return 0; |
| 2244 |
} |
| 2245 |
|
| 2246 |
_ACEOF |
| 2247 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 2248 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2249 |
(eval $ac_link) 2>conftest.er1 |
| 2250 |
ac_status=$? |
| 2251 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 2252 |
rm -f conftest.er1 |
| 2253 |
cat conftest.err >&5 |
| 2254 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2255 |
(exit $ac_status); } && |
| 2256 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2257 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2258 |
(eval $ac_try) 2>&5 |
| 2259 |
ac_status=$? |
| 2260 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2261 |
(exit $ac_status); }; } && |
| 2262 |
{ ac_try='test -s conftest$ac_exeext' |
| 2263 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2264 |
(eval $ac_try) 2>&5 |
| 2265 |
ac_status=$? |
| 2266 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2267 |
(exit $ac_status); }; }; then |
| 2268 |
ac_cv_fdatasync=yes |
| 2269 |
else |
| 2270 |
echo "$as_me: failed program was:" >&5 |
| 2271 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 2272 |
|
| 2273 |
ac_cv_fdatasync=no |
| 2274 |
fi |
| 2275 |
rm -f conftest.err conftest.$ac_objext \ |
| 2276 |
conftest$ac_exeext conftest.$ac_ext |
| 2277 |
fi |
| 2278 |
echo "$as_me:$LINENO: result: $ac_cv_fdatasync" >&5 |
| 2279 |
echo "${ECHO_T}$ac_cv_fdatasync" >&6 |
| 2280 |
test $ac_cv_fdatasync = yes && |
| 2281 |
cat >>confdefs.h <<\_ACEOF |
| 2282 |
#define HAVE_FDATASYNC 1 |
| 2283 |
_ACEOF |
| 2284 |
|
| 2285 |
|
| 2286 |
echo "$as_me:$LINENO: checking for pread and pwrite" >&5 |
| 2287 |
echo $ECHO_N "checking for pread and pwrite... $ECHO_C" >&6 |
| 2288 |
if test "${ac_cv_preadwrite+set}" = set; then |
| 2289 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2290 |
else |
| 2291 |
cat >conftest.$ac_ext <<_ACEOF |
| 2292 |
|
| 2293 |
#include <unistd.h> |
| 2294 |
int main(void) |
| 2295 |
{ |
| 2296 |
int fd = 0; |
| 2297 |
size_t count = 1; |
| 2298 |
char buf; |
| 2299 |
off_t offset = 1; |
| 2300 |
ssize_t res; |
| 2301 |
res = pread (fd, &buf, count, offset); |
| 2302 |
res = pwrite (fd, &buf, count, offset); |
| 2303 |
return 0; |
| 2304 |
} |
| 2305 |
|
| 2306 |
_ACEOF |
| 2307 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 2308 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2309 |
(eval $ac_link) 2>conftest.er1 |
| 2310 |
ac_status=$? |
| 2311 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 2312 |
rm -f conftest.er1 |
| 2313 |
cat conftest.err >&5 |
| 2314 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2315 |
(exit $ac_status); } && |
| 2316 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2317 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2318 |
(eval $ac_try) 2>&5 |
| 2319 |
ac_status=$? |
| 2320 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2321 |
(exit $ac_status); }; } && |
| 2322 |
{ ac_try='test -s conftest$ac_exeext' |
| 2323 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2324 |
(eval $ac_try) 2>&5 |
| 2325 |
ac_status=$? |
| 2326 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2327 |
(exit $ac_status); }; }; then |
| 2328 |
ac_cv_preadwrite=yes |
| 2329 |
else |
| 2330 |
echo "$as_me: failed program was:" >&5 |
| 2331 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 2332 |
|
| 2333 |
ac_cv_preadwrite=no |
| 2334 |
fi |
| 2335 |
rm -f conftest.err conftest.$ac_objext \ |
| 2336 |
conftest$ac_exeext conftest.$ac_ext |
| 2337 |
fi |
| 2338 |
echo "$as_me:$LINENO: result: $ac_cv_preadwrite" >&5 |
| 2339 |
echo "${ECHO_T}$ac_cv_preadwrite" >&6 |
| 2340 |
test $ac_cv_preadwrite = yes && |
| 2341 |
cat >>confdefs.h <<\_ACEOF |
| 2342 |
#define HAVE_PREADWRITE 1 |
| 2343 |
_ACEOF |
| 2344 |
|
| 2345 |
|
| 2346 |
echo "$as_me:$LINENO: checking for readdir_r" >&5 |
| 2347 |
echo $ECHO_N "checking for readdir_r... $ECHO_C" >&6 |
| 2348 |
if test "${ac_cv_readdir_r+set}" = set; then |
| 2349 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2350 |
else |
| 2351 |
cat >conftest.$ac_ext <<_ACEOF |
| 2352 |
|
| 2353 |
#include <dirent.h> |
| 2354 |
int main(void) |
| 2355 |
{ |
| 2356 |
DIR *dir = 0; |
| 2357 |
struct dirent ent, *eres; |
| 2358 |
int res = readdir_r (dir, &ent, &eres); |
| 2359 |
return 0; |
| 2360 |
} |
| 2361 |
|
| 2362 |
_ACEOF |
| 2363 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 2364 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2365 |
(eval $ac_link) 2>conftest.er1 |
| 2366 |
ac_status=$? |
| 2367 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 2368 |
rm -f conftest.er1 |
| 2369 |
cat conftest.err >&5 |
| 2370 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2371 |
(exit $ac_status); } && |
| 2372 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2373 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2374 |
(eval $ac_try) 2>&5 |
| 2375 |
ac_status=$? |
| 2376 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2377 |
(exit $ac_status); }; } && |
| 2378 |
{ ac_try='test -s conftest$ac_exeext' |
| 2379 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2380 |
(eval $ac_try) 2>&5 |
| 2381 |
ac_status=$? |
| 2382 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2383 |
(exit $ac_status); }; }; then |
| 2384 |
ac_cv_readdir_r=yes |
| 2385 |
else |
| 2386 |
echo "$as_me: failed program was:" >&5 |
| 2387 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 2388 |
|
| 2389 |
ac_cv_readdir_r=no |
| 2390 |
fi |
| 2391 |
rm -f conftest.err conftest.$ac_objext \ |
| 2392 |
conftest$ac_exeext conftest.$ac_ext |
| 2393 |
fi |
| 2394 |
echo "$as_me:$LINENO: result: $ac_cv_readdir_r" >&5 |
| 2395 |
echo "${ECHO_T}$ac_cv_readdir_r" >&6 |
| 2396 |
test $ac_cv_readdir_r = yes && |
| 2397 |
cat >>confdefs.h <<\_ACEOF |
| 2398 |
#define HAVE_READDIR_R 1 |
| 2399 |
_ACEOF |
| 2400 |
|
| 2401 |
|
| 2402 |
echo "$as_me:$LINENO: checking for sendfile" >&5 |
| 2403 |
echo $ECHO_N "checking for sendfile... $ECHO_C" >&6 |
| 2404 |
if test "${ac_cv_sendfile+set}" = set; then |
| 2405 |
echo $ECHO_N "(cached) $ECHO_C" >&6 |
| 2406 |
else |
| 2407 |
cat >conftest.$ac_ext <<_ACEOF |
| 2408 |
|
| 2409 |
# include <sys/types.h> |
| 2410 |
#if __linux |
| 2411 |
# include <sys/sendfile.h> |
| 2412 |
#elif __freebsd |
| 2413 |
# include <sys/socket.h> |
| 2414 |
# include <sys/uio.h> |
| 2415 |
#elif __hpux |
| 2416 |
# include <sys/socket.h> |
| 2417 |
#else |
| 2418 |
# error unsupported architecture |
| 2419 |
#endif |
| 2420 |
int main(void) |
| 2421 |
{ |
| 2422 |
int fd = 0; |
| 2423 |
off_t offset = 1; |
| 2424 |
size_t count = 2; |
| 2425 |
ssize_t res; |
| 2426 |
#if __linux |
| 2427 |
res = sendfile (fd, fd, offset, count); |
| 2428 |
#elif __freebsd |
| 2429 |
res = sendfile (fd, fd, offset, count, 0, &offset, 0); |
| 2430 |
#elif __hpux |
| 2431 |
res = sendfile (fd, fd, offset, count, 0, 0); |
| 2432 |
#endif |
| 2433 |
return 0; |
| 2434 |
} |
| 2435 |
|
| 2436 |
_ACEOF |
| 2437 |
rm -f conftest.$ac_objext conftest$ac_exeext |
| 2438 |
if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
| 2439 |
(eval $ac_link) 2>conftest.er1 |
| 2440 |
ac_status=$? |
| 2441 |
grep -v '^ *+' conftest.er1 >conftest.err |
| 2442 |
rm -f conftest.er1 |
| 2443 |
cat conftest.err >&5 |
| 2444 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2445 |
(exit $ac_status); } && |
| 2446 |
{ ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
| 2447 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2448 |
(eval $ac_try) 2>&5 |
| 2449 |
ac_status=$? |
| 2450 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2451 |
(exit $ac_status); }; } && |
| 2452 |
{ ac_try='test -s conftest$ac_exeext' |
| 2453 |
{ (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
| 2454 |
(eval $ac_try) 2>&5 |
| 2455 |
ac_status=$? |
| 2456 |
echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
| 2457 |
(exit $ac_status); }; }; then |
| 2458 |
ac_cv_sendfile=yes |
| 2459 |
else |
| 2460 |
echo "$as_me: failed program was:" >&5 |
| 2461 |
sed 's/^/| /' conftest.$ac_ext >&5 |
| 2462 |
|
| 2463 |
ac_cv_sendfile=no |
| 2464 |
fi |
| 2465 |
rm -f conftest.err conftest.$ac_objext \ |
| 2466 |
conftest$ac_exeext conftest.$ac_ext |
| 2467 |
fi |
| 2468 |
echo "$as_me:$LINENO: result: $ac_cv_sendfile" >&5 |
| 2469 |
echo "${ECHO_T}$ac_cv_sendfile" >&6 |
| 2470 |
test $ac_cv_sendfile = yes && |
| 2471 |
cat >>confdefs.h <<\_ACEOF |
| 2472 |
#define HAVE_SENDFILE 1 |
| 2473 |
_ACEOF |
| 2474 |
|
| 2475 |
|
| 2476 |
cat >confcache <<\_ACEOF |
| 2477 |
# This file is a shell script that caches the results of configure |
| 2478 |
# tests run on this system so they can be shared between configure |
| 2479 |
# scripts and configure runs, see configure's option --config-cache. |
| 2480 |
# It is not useful on other systems. If it contains results you don't |
| 2481 |
# want to keep, you may remove or edit it. |
| 2482 |
# |
| 2483 |
# config.status only pays attention to the cache file if you give it |
| 2484 |
# the --recheck option to rerun configure. |
| 2485 |
# |
| 2486 |
# `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 2487 |
# loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 2488 |
# following values. |
| 2489 |
|
| 2490 |
_ACEOF |
| 2491 |
|
| 2492 |
# The following way of writing the cache mishandles newlines in values, |
| 2493 |
# but we know of no workaround that is simple, portable, and efficient. |
| 2494 |
# So, don't put newlines in cache variables' values. |
| 2495 |
# Ultrix sh set writes to stderr and can't be redirected directly, |
| 2496 |
# and sets the high bit in the cache file unless we assign to the vars. |
| 2497 |
{ |
| 2498 |
(set) 2>&1 | |
| 2499 |
case `(ac_space=' '; set | grep ac_space) 2>&1` in |
| 2500 |
*ac_space=\ *) |
| 2501 |
# `set' does not quote correctly, so add quotes (double-quote |
| 2502 |
# substitution turns \\\\ into \\, and sed turns \\ into \). |
| 2503 |
sed -n \ |
| 2504 |
"s/'/'\\\\''/g; |
| 2505 |
s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
| 2506 |
;; |
| 2507 |
*) |
| 2508 |
# `set' quotes correctly as required by POSIX, so do not add quotes. |
| 2509 |
sed -n \ |
| 2510 |
"s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" |
| 2511 |
;; |
| 2512 |
esac; |
| 2513 |
} | |
| 2514 |
sed ' |
| 2515 |
t clear |
| 2516 |
: clear |
| 2517 |
s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 2518 |
t end |
| 2519 |
/^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 2520 |
: end' >>confcache |
| 2521 |
if diff $cache_file confcache >/dev/null 2>&1; then :; else |
| 2522 |
if test -w $cache_file; then |
| 2523 |
test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
| 2524 |
cat confcache >$cache_file |
| 2525 |
else |
| 2526 |
echo "not updating unwritable cache $cache_file" |
| 2527 |
fi |
| 2528 |
fi |
| 2529 |
rm -f confcache |
| 2530 |
|
| 2531 |
test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 2532 |
# Let make expand exec_prefix. |
| 2533 |
test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 2534 |
|
| 2535 |
# VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 2536 |
# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 2537 |
# trailing colons and then remove the whole line if VPATH becomes empty |
| 2538 |
# (actually we leave an empty line to preserve line numbers). |
| 2539 |
if test "x$srcdir" = x.; then |
| 2540 |
ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 2541 |
s/:*\$(srcdir):*/:/; |
| 2542 |
s/:*\${srcdir}:*/:/; |
| 2543 |
s/:*@srcdir@:*/:/; |
| 2544 |
s/^\([^=]*=[ ]*\):*/\1/; |
| 2545 |
s/:*$//; |
| 2546 |
s/^[^=]*=[ ]*$//; |
| 2547 |
}' |
| 2548 |
fi |
| 2549 |
|
| 2550 |
DEFS=-DHAVE_CONFIG_H |
| 2551 |
|
| 2552 |
ac_libobjs= |
| 2553 |
ac_ltlibobjs= |
| 2554 |
for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 2555 |
# 1. Remove the extension, and $U if already installed. |
| 2556 |
ac_i=`echo "$ac_i" | |
| 2557 |
sed 's/\$U\././;s/\.o$//;s/\.obj$//'` |
| 2558 |
# 2. Add them. |
| 2559 |
ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" |
| 2560 |
ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' |
| 2561 |
done |
| 2562 |
LIBOBJS=$ac_libobjs |
| 2563 |
|
| 2564 |
LTLIBOBJS=$ac_ltlibobjs |
| 2565 |
|
| 2566 |
|
| 2567 |
|
| 2568 |
: ${CONFIG_STATUS=./config.status} |
| 2569 |
ac_clean_files_save=$ac_clean_files |
| 2570 |
ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
| 2571 |
{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
| 2572 |
echo "$as_me: creating $CONFIG_STATUS" >&6;} |
| 2573 |
cat >$CONFIG_STATUS <<_ACEOF |
| 2574 |
#! $SHELL |
| 2575 |
# Generated by $as_me. |
| 2576 |
# Run this file to recreate the current configuration. |
| 2577 |
# Compiler output produced by configure, useful for debugging |
| 2578 |
# configure, is in config.log if it exists. |
| 2579 |
|
| 2580 |
debug=false |
| 2581 |
ac_cs_recheck=false |
| 2582 |
ac_cs_silent=false |
| 2583 |
SHELL=\${CONFIG_SHELL-$SHELL} |
| 2584 |
_ACEOF |
| 2585 |
|
| 2586 |
cat >>$CONFIG_STATUS <<\_ACEOF |
| 2587 |
## --------------------- ## |
| 2588 |
## M4sh Initialization. ## |
| 2589 |
## --------------------- ## |
| 2590 |
|
| 2591 |
# Be Bourne compatible |
| 2592 |
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
| 2593 |
emulate sh |
| 2594 |
NULLCMD=: |
| 2595 |
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
| 2596 |
# is contrary to our usage. Disable this feature. |
| 2597 |
alias -g '${1+"$@"}'='"$@"' |
| 2598 |
elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then |
| 2599 |
set -o posix |
| 2600 |
fi |
| 2601 |
DUALCASE=1; export DUALCASE # for MKS sh |
| 2602 |
|
| 2603 |
# Support unset when possible. |
| 2604 |
if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
| 2605 |
as_unset=unset |
| 2606 |
else |
| 2607 |
as_unset=false |
| 2608 |
fi |
| 2609 |
|
| 2610 |
|
| 2611 |
# Work around bugs in pre-3.0 UWIN ksh. |
| 2612 |
$as_unset ENV MAIL MAILPATH |
| 2613 |
PS1='$ ' |
| 2614 |
PS2='> ' |
| 2615 |
PS4='+ ' |
| 2616 |
|
| 2617 |
# NLS nuisances. |
| 2618 |
for as_var in \ |
| 2619 |
LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
| 2620 |
LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
| 2621 |
LC_TELEPHONE LC_TIME |
| 2622 |
do |
| 2623 |
if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
| 2624 |
eval $as_var=C; export $as_var |
| 2625 |
else |
| 2626 |
$as_unset $as_var |
| 2627 |
fi |
| 2628 |
done |
| 2629 |
|
| 2630 |
# Required to use basename. |
| 2631 |
if expr a : '\(a\)' >/dev/null 2>&1; then |
| 2632 |
as_expr=expr |
| 2633 |
else |
| 2634 |
as_expr=false |
| 2635 |
fi |
| 2636 |
|
| 2637 |
if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
| 2638 |
as_basename=basename |
| 2639 |
else |
| 2640 |
as_basename=false |
| 2641 |
fi |
| 2642 |
|
| 2643 |
|
| 2644 |
# Name of the executable. |
| 2645 |
as_me=`$as_basename "$0" || |
| 2646 |
$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 2647 |
X"$0" : 'X\(//\)$' \| \ |
| 2648 |
X"$0" : 'X\(/\)$' \| \ |
| 2649 |
. : '\(.\)' 2>/dev/null || |
| 2650 |
echo X/"$0" | |
| 2651 |
sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } |
| 2652 |
/^X\/\(\/\/\)$/{ s//\1/; q; } |
| 2653 |
/^X\/\(\/\).*/{ s//\1/; q; } |
| 2654 |
s/.*/./; q'` |
| 2655 |
|
| 2656 |
|
| 2657 |
# PATH needs CR, and LINENO needs CR and PATH. |
| 2658 |
# Avoid depending upon Character Ranges. |
| 2659 |
as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 2660 |
as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 2661 |
as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 2662 |
as_cr_digits='0123456789' |
| 2663 |
as_cr_alnum=$as_cr_Letters$as_cr_digits |
| 2664 |
|
| 2665 |
# The user is always right. |
| 2666 |
if test "${PATH_SEPARATOR+set}" != set; then |
| 2667 |
echo "#! /bin/sh" >conf$$.sh |
| 2668 |
echo "exit 0" >>conf$$.sh |
| 2669 |
chmod +x conf$$.sh |
| 2670 |
if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 2671 |
PATH_SEPARATOR=';' |
| 2672 |
else |
| 2673 |
PATH_SEPARATOR=: |
| 2674 |
fi |
| 2675 |
rm -f conf$$.sh |
| 2676 |
fi |
| 2677 |
|
| 2678 |
|
| 2679 |
as_lineno_1=$LINENO |
| 2680 |
as_lineno_2=$LINENO |
| 2681 |
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 2682 |
test "x$as_lineno_1" != "x$as_lineno_2" && |
| 2683 |
test "x$as_lineno_3" = "x$as_lineno_2" || { |
| 2684 |
# Find who we are. Look in the path if we contain no path at all |
| 2685 |
# relative or not. |
| 2686 |
case $0 in |
| 2687 |
*[\\/]* ) as_myself=$0 ;; |
| 2688 |
*) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2689 |
for as_dir in $PATH |
| 2690 |
do |
| 2691 |
IFS=$as_save_IFS |
| 2692 |
test -z "$as_dir" && as_dir=. |
| 2693 |
test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 2694 |
done |
| 2695 |
|
| 2696 |
;; |
| 2697 |
esac |
| 2698 |
# We did not find ourselves, most probably we were run as `sh COMMAND' |
| 2699 |
# in which case we are not to be found in the path. |
| 2700 |
if test "x$as_myself" = x; then |
| 2701 |
as_myself=$0 |
| 2702 |
fi |
| 2703 |
if test ! -f "$as_myself"; then |
| 2704 |
{ { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 |
| 2705 |
echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} |
| 2706 |
{ (exit 1); exit 1; }; } |
| 2707 |
fi |
| 2708 |
case $CONFIG_SHELL in |
| 2709 |
'') |
| 2710 |
as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2711 |
for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 2712 |
do |
| 2713 |
IFS=$as_save_IFS |
| 2714 |
test -z "$as_dir" && as_dir=. |
| 2715 |
for as_base in sh bash ksh sh5; do |
| 2716 |
case $as_dir in |
| 2717 |
/*) |
| 2718 |
if ("$as_dir/$as_base" -c ' |
| 2719 |
as_lineno_1=$LINENO |
| 2720 |
as_lineno_2=$LINENO |
| 2721 |
as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` |
| 2722 |
test "x$as_lineno_1" != "x$as_lineno_2" && |
| 2723 |
test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then |
| 2724 |
$as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } |
| 2725 |
$as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } |
| 2726 |
CONFIG_SHELL=$as_dir/$as_base |
| 2727 |
export CONFIG_SHELL |
| 2728 |
exec "$CONFIG_SHELL" "$0" ${1+"$@"} |
| 2729 |
fi;; |
| 2730 |
esac |
| 2731 |
done |
| 2732 |
done |
| 2733 |
;; |
| 2734 |
esac |
| 2735 |
|
| 2736 |
# Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
| 2737 |
# uniformly replaced by the line number. The first 'sed' inserts a |
| 2738 |
# line-number line before each line; the second 'sed' does the real |
| 2739 |
# work. The second script uses 'N' to pair each line-number line |
| 2740 |
# with the numbered line, and appends trailing '-' during |
| 2741 |
# substitution so that $LINENO is not a special case at line end. |
| 2742 |
# (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
| 2743 |
# second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) |
| 2744 |
sed '=' <$as_myself | |
| 2745 |
sed ' |
| 2746 |
N |
| 2747 |
s,$,-, |
| 2748 |
: loop |
| 2749 |
s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, |
| 2750 |
t loop |
| 2751 |
s,-$,, |
| 2752 |
s,^['$as_cr_digits']*\n,, |
| 2753 |
' >$as_me.lineno && |
| 2754 |
chmod +x $as_me.lineno || |
| 2755 |
{ { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 |
| 2756 |
echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} |
| 2757 |
{ (exit 1); exit 1; }; } |
| 2758 |
|
| 2759 |
# Don't try to exec as it changes $[0], causing all sort of problems |
| 2760 |
# (the dirname of $[0] is not the place where we might find the |
| 2761 |
# original and so on. Autoconf is especially sensible to this). |
| 2762 |
. ./$as_me.lineno |
| 2763 |
# Exit status is that of the last command. |
| 2764 |
exit |
| 2765 |
} |
| 2766 |
|
| 2767 |
|
| 2768 |
case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
| 2769 |
*c*,-n*) ECHO_N= ECHO_C=' |
| 2770 |
' ECHO_T=' ' ;; |
| 2771 |
*c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; |
| 2772 |
*) ECHO_N= ECHO_C='\c' ECHO_T= ;; |
| 2773 |
esac |
| 2774 |
|
| 2775 |
if expr a : '\(a\)' >/dev/null 2>&1; then |
| 2776 |
as_expr=expr |
| 2777 |
else |
| 2778 |
as_expr=false |
| 2779 |
fi |
| 2780 |
|
| 2781 |
rm -f conf$$ conf$$.exe conf$$.file |
| 2782 |
echo >conf$$.file |
| 2783 |
if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 2784 |
# We could just check for DJGPP; but this test a) works b) is more generic |
| 2785 |
# and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). |
| 2786 |
if test -f conf$$.exe; then |
| 2787 |
# Don't use ln at all; we don't have any links |
| 2788 |
as_ln_s='cp -p' |
| 2789 |
else |
| 2790 |
as_ln_s='ln -s' |
| 2791 |
fi |
| 2792 |
elif ln conf$$.file conf$$ 2>/dev/null; then |
| 2793 |
as_ln_s=ln |
| 2794 |
else |
| 2795 |
as_ln_s='cp -p' |
| 2796 |
fi |
| 2797 |
rm -f conf$$ conf$$.exe conf$$.file |
| 2798 |
|
| 2799 |
if mkdir -p . 2>/dev/null; then |
| 2800 |
as_mkdir_p=: |
| 2801 |
else |
| 2802 |
test -d ./-p && rmdir ./-p |
| 2803 |
as_mkdir_p=false |
| 2804 |
fi |
| 2805 |
|
| 2806 |
as_executable_p="test -f" |
| 2807 |
|
| 2808 |
# Sed expression to map a string onto a valid CPP name. |
| 2809 |
as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 2810 |
|
| 2811 |
# Sed expression to map a string onto a valid variable name. |
| 2812 |
as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 2813 |
|
| 2814 |
|
| 2815 |
# IFS |
| 2816 |
# We need space, tab and new line, in precisely that order. |
| 2817 |
as_nl=' |
| 2818 |
' |
| 2819 |
IFS=" $as_nl" |
| 2820 |
|
| 2821 |
# CDPATH. |
| 2822 |
$as_unset CDPATH |
| 2823 |
|
| 2824 |
exec 6>&1 |
| 2825 |
|
| 2826 |
# Open the log real soon, to keep \$[0] and so on meaningful, and to |
| 2827 |
# report actual input values of CONFIG_FILES etc. instead of their |
| 2828 |
# values after options handling. Logging --version etc. is OK. |
| 2829 |
exec 5>>config.log |
| 2830 |
{ |
| 2831 |
echo |
| 2832 |
sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 2833 |
## Running $as_me. ## |
| 2834 |
_ASBOX |
| 2835 |
} >&5 |
| 2836 |
cat >&5 <<_CSEOF |
| 2837 |
|
| 2838 |
This file was extended by $as_me, which was |
| 2839 |
generated by GNU Autoconf 2.59. Invocation command line was |
| 2840 |
|
| 2841 |
CONFIG_FILES = $CONFIG_FILES |
| 2842 |
CONFIG_HEADERS = $CONFIG_HEADERS |
| 2843 |
CONFIG_LINKS = $CONFIG_LINKS |
| 2844 |
CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 2845 |
$ $0 $@ |
| 2846 |
|
| 2847 |
_CSEOF |
| 2848 |
echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 |
| 2849 |
echo >&5 |
| 2850 |
_ACEOF |
| 2851 |
|
| 2852 |
# Files that config.status was made for. |
| 2853 |
if test -n "$ac_config_files"; then |
| 2854 |
echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS |
| 2855 |
fi |
| 2856 |
|
| 2857 |
if test -n "$ac_config_headers"; then |
| 2858 |
echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS |
| 2859 |
fi |
| 2860 |
|
| 2861 |
if test -n "$ac_config_links"; then |
| 2862 |
echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS |
| 2863 |
fi |
| 2864 |
|
| 2865 |
if test -n "$ac_config_commands"; then |
| 2866 |
echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS |
| 2867 |
fi |
| 2868 |
|
| 2869 |
cat >>$CONFIG_STATUS <<\_ACEOF |
| 2870 |
|
| 2871 |
ac_cs_usage="\ |
| 2872 |
\`$as_me' instantiates files from templates according to the |
| 2873 |
current configuration. |
| 2874 |
|
| 2875 |
Usage: $0 [OPTIONS] [FILE]... |
| 2876 |
|
| 2877 |
-h, --help print this help, then exit |
| 2878 |
-V, --version print version number, then exit |
| 2879 |
-q, --quiet do not print progress messages |
| 2880 |
-d, --debug don't remove temporary files |
| 2881 |
--recheck update $as_me by reconfiguring in the same conditions |
| 2882 |
--header=FILE[:TEMPLATE] |
| 2883 |
instantiate the configuration header FILE |
| 2884 |
|
| 2885 |
Configuration headers: |
| 2886 |
$config_headers |
| 2887 |
|
| 2888 |
Report bugs to <bug-autoconf@gnu.org>." |
| 2889 |
_ACEOF |
| 2890 |
|
| 2891 |
cat >>$CONFIG_STATUS <<_ACEOF |
| 2892 |
ac_cs_version="\\ |
| 2893 |
config.status |
| 2894 |
configured by $0, generated by GNU Autoconf 2.59, |
| 2895 |
with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" |
| 2896 |
|
| 2897 |
Copyright (C) 2003 Free Software Foundation, Inc. |
| 2898 |
This config.status script is free software; the Free Software Foundation |
| 2899 |
gives unlimited permission to copy, distribute and modify it." |
| 2900 |
srcdir=$srcdir |
| 2901 |
_ACEOF |
| 2902 |
|
| 2903 |
cat >>$CONFIG_STATUS <<\_ACEOF |
| 2904 |
# If no file are specified by the user, then we need to provide default |
| 2905 |
# value. By we need to know if files were specified by the user. |
| 2906 |
ac_need_defaults=: |
| 2907 |
while test $# != 0 |
| 2908 |
do |
| 2909 |
case $1 in |
| 2910 |
--*=*) |
| 2911 |
ac_option=`expr "x$1" : 'x\([^=]*\)='` |
| 2912 |
ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` |
| 2913 |
ac_shift=: |
| 2914 |
;; |
| 2915 |
-*) |
| 2916 |
ac_option=$1 |
| 2917 |
ac_optarg=$2 |
| 2918 |
ac_shift=shift |
| 2919 |
;; |
| 2920 |
*) # This is not an option, so the user has probably given explicit |
| 2921 |
# arguments. |
| 2922 |
ac_option=$1 |
| 2923 |
ac_need_defaults=false;; |
| 2924 |
esac |
| 2925 |
|
| 2926 |
case $ac_option in |
| 2927 |
# Handling of the options. |
| 2928 |
_ACEOF |
| 2929 |
cat >>$CONFIG_STATUS <<\_ACEOF |
| 2930 |
-recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 2931 |
ac_cs_recheck=: ;; |
| 2932 |
--version | --vers* | -V ) |
| 2933 |
echo "$ac_cs_version"; exit 0 ;; |
| 2934 |
--he | --h) |
| 2935 |
# Conflict between --help and --header |
| 2936 |
{ { echo "$as_me:$LINENO: error: ambiguous option: $1 |
| 2937 |
Try \`$0 --help' for more information." >&5 |
| 2938 |
echo "$as_me: error: ambiguous option: $1 |
| 2939 |
Try \`$0 --help' for more information." >&2;} |
| 2940 |
{ (exit 1); exit 1; }; };; |
| 2941 |
--help | --hel | -h ) |
| 2942 |
echo "$ac_cs_usage"; exit 0 ;; |
| 2943 |
--debug | --d* | -d ) |
| 2944 |
debug=: ;; |
| 2945 |
--file | --fil | --fi | --f ) |
| 2946 |
$ac_shift |
| 2947 |
CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
| 2948 |
ac_need_defaults=false;; |
| 2949 |
--header | --heade | --head | --hea ) |
| 2950 |
$ac_shift |
| 2951 |
CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
| 2952 |
ac_need_defaults=false;; |
| 2953 |
-q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 2954 |
| -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 2955 |
ac_cs_silent=: ;; |
| 2956 |
|
| 2957 |
# This is an error. |
| 2958 |
-*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 |
| 2959 |
Try \`$0 --help' for more information." >&5 |
| 2960 |
echo "$as_me: error: unrecognized option: $1 |
| 2961 |
Try \`$0 --help' for more information." >&2;} |
| 2962 |
{ (exit 1); exit 1; }; } ;; |
| 2963 |
|
| 2964 |
*) ac_config_targets="$ac_config_targets $1" ;; |
| 2965 |
|
| 2966 |
esac |
| 2967 |
shift |
| 2968 |
done |
| 2969 |
|
| 2970 |
ac_configure_extra_args= |
| 2971 |
|
| 2972 |
if $ac_cs_silent; then |
| 2973 |
exec 6>/dev/null |
| 2974 |
ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 2975 |
fi |
| 2976 |
|
| 2977 |
_ACEOF |
| 2978 |
cat >>$CONFIG_STATUS <<_ACEOF |
| 2979 |
if \$ac_cs_recheck; then |
| 2980 |
echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
| 2981 |
exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 2982 |
fi |
| 2983 |
|
| 2984 |
_ACEOF |
| 2985 |
|
| 2986 |
|
| 2987 |
|
| 2988 |
|
| 2989 |
|
| 2990 |
cat >>$CONFIG_STATUS <<\_ACEOF |
| 2991 |
for ac_config_target in $ac_config_targets |
| 2992 |
do |
| 2993 |
case "$ac_config_target" in |
| 2994 |
# Handling of arguments. |
| 2995 |
"config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
| 2996 |
*) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
| 2997 |
echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
| 2998 |
{ (exit 1); exit 1; }; };; |
| 2999 |
esac |
| 3000 |
done |
| 3001 |
|
| 3002 |
# If the user did not use the arguments to specify the items to instantiate, |
| 3003 |
# then the envvar interface is used. Set only those that are not. |
| 3004 |
# We use the long form for the default assignment because of an extremely |
| 3005 |
# bizarre bug on SunOS 4.1.3. |
| 3006 |
if $ac_need_defaults; then |
| 3007 |
test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
| 3008 |
fi |
| 3009 |
|
| 3010 |
# Have a temporary directory for convenience. Make it in the build tree |
| 3011 |
# simply because there is no reason to put it here, and in addition, |
| 3012 |
# creating and moving files from /tmp can sometimes cause problems. |
| 3013 |
# Create a temporary directory, and hook for its removal unless debugging. |
| 3014 |
$debug || |
| 3015 |
{ |
| 3016 |
trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 |
| 3017 |
trap '{ (exit 1); exit 1; }' 1 2 13 15 |
| 3018 |
} |
| 3019 |
|
| 3020 |
# Create a (secure) tmp directory for tmp files. |
| 3021 |
|
| 3022 |
{ |
| 3023 |
tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && |
| 3024 |
test -n "$tmp" && test -d "$tmp" |
| 3025 |
} || |
| 3026 |
{ |
| 3027 |
tmp=./confstat$$-$RANDOM |
| 3028 |
(umask 077 && mkdir $tmp) |
| 3029 |
} || |
| 3030 |
{ |
| 3031 |
echo "$me: cannot create a temporary directory in ." >&2 |
| 3032 |
{ (exit 1); exit 1; } |
| 3033 |
} |
| 3034 |
|
| 3035 |
_ACEOF |
| 3036 |
|
| 3037 |
cat >>$CONFIG_STATUS <<\_ACEOF |
| 3038 |
|
| 3039 |
# |
| 3040 |
# CONFIG_HEADER section. |
| 3041 |
# |
| 3042 |
|
| 3043 |
# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where |
| 3044 |
# NAME is the cpp macro being defined and VALUE is the value it is being given. |
| 3045 |
# |
| 3046 |
# ac_d sets the value in "#define NAME VALUE" lines. |
| 3047 |
ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
| 3048 |
ac_dB='[ ].*$,\1#\2' |
| 3049 |
ac_dC=' ' |
| 3050 |
ac_dD=',;t' |
| 3051 |
# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". |
| 3052 |
ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' |
| 3053 |
ac_uB='$,\1#\2define\3' |
| 3054 |
ac_uC=' ' |
| 3055 |
ac_uD=',;t' |
| 3056 |
|
| 3057 |
for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue |
| 3058 |
# Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
| 3059 |
case $ac_file in |
| 3060 |
- | *:- | *:-:* ) # input from stdin |
| 3061 |
cat >$tmp/stdin |
| 3062 |
ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 3063 |
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 3064 |
*:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` |
| 3065 |
ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; |
| 3066 |
* ) ac_file_in=$ac_file.in ;; |
| 3067 |
esac |
| 3068 |
|
| 3069 |
test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
| 3070 |
echo "$as_me: creating $ac_file" >&6;} |
| 3071 |
|
| 3072 |
# First look for the input files in the build tree, otherwise in the |
| 3073 |
# src tree. |
| 3074 |
ac_file_inputs=`IFS=: |
| 3075 |
for f in $ac_file_in; do |
| 3076 |
case $f in |
| 3077 |
-) echo $tmp/stdin ;; |
| 3078 |
[\\/$]*) |
| 3079 |
# Absolute (can't be DOS-style, as IFS=:) |
| 3080 |
test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 3081 |
echo "$as_me: error: cannot find input file: $f" >&2;} |
| 3082 |
{ (exit 1); exit 1; }; } |
| 3083 |
# Do quote $f, to prevent DOS paths from being IFS'd. |
| 3084 |
echo "$f";; |
| 3085 |
*) # Relative |
| 3086 |
if test -f "$f"; then |
| 3087 |
# Build tree |
| 3088 |
echo "$f" |
| 3089 |
elif test -f "$srcdir/$f"; then |
| 3090 |
# Source tree |
| 3091 |
echo "$srcdir/$f" |
| 3092 |
else |
| 3093 |
# /dev/null tree |
| 3094 |
{ { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 |
| 3095 |
echo "$as_me: error: cannot find input file: $f" >&2;} |
| 3096 |
{ (exit 1); exit 1; }; } |
| 3097 |
fi;; |
| 3098 |
esac |
| 3099 |
done` || { (exit 1); exit 1; } |
| 3100 |
# Remove the trailing spaces. |
| 3101 |
sed 's/[ ]*$//' $ac_file_inputs >$tmp/in |
| 3102 |
|
| 3103 |
_ACEOF |
| 3104 |
|
| 3105 |
# Transform confdefs.h into two sed scripts, `conftest.defines' and |
| 3106 |
# `conftest.undefs', that substitutes the proper values into |
| 3107 |
# config.h.in to produce config.h. The first handles `#define' |
| 3108 |
# templates, and the second `#undef' templates. |
| 3109 |
# And first: Protect against being on the right side of a sed subst in |
| 3110 |
# config.status. Protect against being in an unquoted here document |
| 3111 |
# in config.status. |
| 3112 |
rm -f conftest.defines conftest.undefs |
| 3113 |
# Using a here document instead of a string reduces the quoting nightmare. |
| 3114 |
# Putting comments in sed scripts is not portable. |
| 3115 |
# |
| 3116 |
# `end' is used to avoid that the second main sed command (meant for |
| 3117 |
# 0-ary CPP macros) applies to n-ary macro definitions. |
| 3118 |
# See the Autoconf documentation for `clear'. |
| 3119 |
cat >confdef2sed.sed <<\_ACEOF |
| 3120 |
s/[\\&,]/\\&/g |
| 3121 |
s,[\\$`],\\&,g |
| 3122 |
t clear |
| 3123 |
: clear |
| 3124 |
s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp |
| 3125 |
t end |
| 3126 |
s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp |
| 3127 |
: end |
| 3128 |
_ACEOF |
| 3129 |
# If some macros were called several times there might be several times |
| 3130 |
# the same #defines, which is useless. Nevertheless, we may not want to |
| 3131 |
# sort them, since we want the *last* AC-DEFINE to be honored. |
| 3132 |
uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines |
| 3133 |
sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs |
| 3134 |
rm -f confdef2sed.sed |
| 3135 |
|
| 3136 |
# This sed command replaces #undef with comments. This is necessary, for |
| 3137 |
# example, in the case of _POSIX_SOURCE, which is predefined and required |
| 3138 |
# on some systems where configure will not decide to define it. |
| 3139 |
cat >>conftest.undefs <<\_ACEOF |
| 3140 |
s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, |
| 3141 |
_ACEOF |
| 3142 |
|
| 3143 |
# Break up conftest.defines because some shells have a limit on the size |
| 3144 |
# of here documents, and old seds have small limits too (100 cmds). |
| 3145 |
echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS |
| 3146 |
echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS |
| 3147 |
echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS |
| 3148 |
echo ' :' >>$CONFIG_STATUS |
| 3149 |
rm -f conftest.tail |
| 3150 |
while grep . conftest.defines >/dev/null |
| 3151 |
do |
| 3152 |
# Write a limited-size here document to $tmp/defines.sed. |
| 3153 |
echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS |
| 3154 |
# Speed up: don't consider the non `#define' lines. |
| 3155 |
echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS |
| 3156 |
# Work around the forget-to-reset-the-flag bug. |
| 3157 |
echo 't clr' >>$CONFIG_STATUS |
| 3158 |
echo ': clr' >>$CONFIG_STATUS |
| 3159 |
sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS |
| 3160 |
echo 'CEOF |
| 3161 |
sed -f $tmp/defines.sed $tmp/in >$tmp/out |
| 3162 |
rm -f $tmp/in |
| 3163 |
mv $tmp/out $tmp/in |
| 3164 |
' >>$CONFIG_STATUS |
| 3165 |
sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail |
| 3166 |
rm -f conftest.defines |
| 3167 |
mv conftest.tail conftest.defines |
| 3168 |
done |
| 3169 |
rm -f conftest.defines |
| 3170 |
echo ' fi # grep' >>$CONFIG_STATUS |
| 3171 |
echo >>$CONFIG_STATUS |
| 3172 |
|
| 3173 |
# Break up conftest.undefs because some shells have a limit on the size |
| 3174 |
# of here documents, and old seds have small limits too (100 cmds). |
| 3175 |
echo ' # Handle all the #undef templates' >>$CONFIG_STATUS |
| 3176 |
rm -f conftest.tail |
| 3177 |
while grep . conftest.undefs >/dev/null |
| 3178 |
do |
| 3179 |
# Write a limited-size here document to $tmp/undefs.sed. |
| 3180 |
echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS |
| 3181 |
# Speed up: don't consider the non `#undef' |
| 3182 |
echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS |
| 3183 |
# Work around the forget-to-reset-the-flag bug. |
| 3184 |
echo 't clr' >>$CONFIG_STATUS |
| 3185 |
echo ': clr' >>$CONFIG_STATUS |
| 3186 |
sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS |
| 3187 |
echo 'CEOF |
| 3188 |
sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
| 3189 |
rm -f $tmp/in |
| 3190 |
mv $tmp/out $tmp/in |
| 3191 |
' >>$CONFIG_STATUS |
| 3192 |
sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail |
| 3193 |
rm -f conftest.undefs |
| 3194 |
mv conftest.tail conftest.undefs |
| 3195 |
done |
| 3196 |
rm -f conftest.undefs |
| 3197 |
|
| 3198 |
cat >>$CONFIG_STATUS <<\_ACEOF |
| 3199 |
# Let's still pretend it is `configure' which instantiates (i.e., don't |
| 3200 |
# use $as_me), people would be surprised to read: |
| 3201 |
# /* config.h. Generated by config.status. */ |
| 3202 |
if test x"$ac_file" = x-; then |
| 3203 |
echo "/* Generated by configure. */" >$tmp/config.h |
| 3204 |
else |
| 3205 |
echo "/* $ac_file. Generated by configure. */" >$tmp/config.h |
| 3206 |
fi |
| 3207 |
cat $tmp/in >>$tmp/config.h |
| 3208 |
rm -f $tmp/in |
| 3209 |
if test x"$ac_file" != x-; then |
| 3210 |
if diff $ac_file $tmp/config.h >/dev/null 2>&1; then |
| 3211 |
{ echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
| 3212 |
echo "$as_me: $ac_file is unchanged" >&6;} |
| 3213 |
else |
| 3214 |
ac_dir=`(dirname "$ac_file") 2>/dev/null || |
| 3215 |
$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 3216 |
X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 3217 |
X"$ac_file" : 'X\(//\)$' \| \ |
| 3218 |
X"$ac_file" : 'X\(/\)' \| \ |
| 3219 |
. : '\(.\)' 2>/dev/null || |
| 3220 |
echo X"$ac_file" | |
| 3221 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 3222 |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 3223 |
/^X\(\/\/\)$/{ s//\1/; q; } |
| 3224 |
/^X\(\/\).*/{ s//\1/; q; } |
| 3225 |
s/.*/./; q'` |
| 3226 |
{ if $as_mkdir_p; then |
| 3227 |
mkdir -p "$ac_dir" |
| 3228 |
else |
| 3229 |
as_dir="$ac_dir" |
| 3230 |
as_dirs= |
| 3231 |
while test ! -d "$as_dir"; do |
| 3232 |
as_dirs="$as_dir $as_dirs" |
| 3233 |
as_dir=`(dirname "$as_dir") 2>/dev/null || |
| 3234 |
$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 3235 |
X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 3236 |
X"$as_dir" : 'X\(//\)$' \| \ |
| 3237 |
X"$as_dir" : 'X\(/\)' \| \ |
| 3238 |
. : '\(.\)' 2>/dev/null || |
| 3239 |
echo X"$as_dir" | |
| 3240 |
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } |
| 3241 |
/^X\(\/\/\)[^/].*/{ s//\1/; q; } |
| 3242 |
/^X\(\/\/\)$/{ s//\1/; q; } |
| 3243 |
/^X\(\/\).*/{ s//\1/; q; } |
| 3244 |
s/.*/./; q'` |
| 3245 |
done |
| 3246 |
test ! -n "$as_dirs" || mkdir $as_dirs |
| 3247 |
fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 |
| 3248 |
echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} |
| 3249 |
{ (exit 1); exit 1; }; }; } |
| 3250 |
|
| 3251 |
rm -f $ac_file |
| 3252 |
mv $tmp/config.h $ac_file |
| 3253 |
fi |
| 3254 |
else |
| 3255 |
cat $tmp/config.h |
| 3256 |
rm -f $tmp/config.h |
| 3257 |
fi |
| 3258 |
done |
| 3259 |
_ACEOF |
| 3260 |
|
| 3261 |
cat >>$CONFIG_STATUS <<\_ACEOF |
| 3262 |
|
| 3263 |
{ (exit 0); exit 0; } |
| 3264 |
_ACEOF |
| 3265 |
chmod +x $CONFIG_STATUS |
| 3266 |
ac_clean_files=$ac_clean_files_save |
| 3267 |
|
| 3268 |
|
| 3269 |
# configure is writing to config.log, and then calls config.status. |
| 3270 |
# config.status does its own redirection, appending to config.log. |
| 3271 |
# Unfortunately, on DOS this fails, as config.log is still kept open |
| 3272 |
# by configure, so config.status won't be able to write to it; its |
| 3273 |
# output is simply discarded. So we exec the FD to /dev/null, |
| 3274 |
# effectively closing config.log, so it can be properly (re)opened and |
| 3275 |
# appended to by config.status. When coming back to configure, we |
| 3276 |
# need to make the FD available again. |
| 3277 |
if test "$no_create" != yes; then |
| 3278 |
ac_cs_success=: |
| 3279 |
ac_config_status_args= |
| 3280 |
test "$silent" = yes && |
| 3281 |
ac_config_status_args="$ac_config_status_args --quiet" |
| 3282 |
exec 5>/dev/null |
| 3283 |
$SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 3284 |
exec 5>>config.log |
| 3285 |
# Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 3286 |
# would make configure fail if this is the last instruction. |
| 3287 |
$ac_cs_success || { (exit 1); exit 1; } |
| 3288 |
fi |
| 3289 |
|