blob: 119e09c3097e974850402de8081d247833dfc03a [file] [log] [blame]
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001#! /bin/sh
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002# Guess values for system-dependent variables and create Makefiles.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003# Generated by GNU Autoconf 2.61.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004#
Theodore Ts'oe1052142006-10-21 21:46:47 -04005# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00007# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009## --------------------- ##
10## M4sh Initialization. ##
11## --------------------- ##
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
Theodore Ts'oe1052142006-10-21 21:46:47 -040021 setopt NO_GLOB_SUBST
22else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040023 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25esac
26
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050027fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040028
29
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050030
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050031
Theodore Ts'oe1052142006-10-21 21:46:47 -040032# PATH needs CR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050033# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51fi
52
Theodore Ts'oe1052142006-10-21 21:46:47 -040053# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56else
57 as_unset=false
58fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050059
Theodore Ts'oe1052142006-10-21 21:46:47 -040060
61# IFS
62# We need space, tab and new line, in precisely that order. Quoting is
63# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.)
66as_nl='
67'
68IFS=" "" $as_nl"
69
70# Find who we are. Look in the path if we contain no directory separator.
71case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050074for as_dir in $PATH
75do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done
Theodore Ts'oe1052142006-10-21 21:46:47 -040080IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050081
Theodore Ts'oe1052142006-10-21 21:46:47 -040082 ;;
83esac
84# We did not find ourselves, most probably we were run as `sh COMMAND'
85# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then
87 as_myself=$0
88fi
89if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92fi
93
94# Work around bugs in pre-3.0 UWIN ksh.
95for as_var in ENV MAIL MAILPATH
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97done
98PS1='$ '
99PS2='> '
100PS4='+ '
101
102# NLS nuisances.
103for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500112 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -0400113done
114
115# Required to use basename.
116if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119else
120 as_expr=false
121fi
122
123if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125else
126 as_basename=false
127fi
128
129
130# Name of the executable.
131as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
150# CDPATH.
151$as_unset CDPATH
152
153
154if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157else
158 as_have_required=no
159fi
160
161 if test $as_have_required = yes && (eval ":
162(as_func_return () {
163 (exit \$1)
164}
165as_func_success () {
166 as_func_return 0
167}
168as_func_failure () {
169 as_func_return 1
170}
171as_func_ret_success () {
172 return 0
173}
174as_func_ret_failure () {
175 return 1
176}
177
178exitcode=0
179if as_func_success; then
180 :
181else
182 exitcode=1
183 echo as_func_success failed.
184fi
185
186if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192 :
193else
194 exitcode=1
195 echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205else
206 exitcode=1
207 echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217") 2> /dev/null; then
218 :
219else
220 as_candidate_shells=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -0400226 case $as_dir in
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500227 /*)
Theodore Ts'oe1052142006-10-21 21:46:47 -0400228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232done
233IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -0400240if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250esac
251
Theodore Ts'oe1052142006-10-21 21:46:47 -0400252fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400253
Theodore Ts'oe1052142006-10-21 21:46:47 -0400254
255:
256_ASEOF
257}; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -0400261if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271esac
272
Theodore Ts'oe1052142006-10-21 21:46:47 -0400273fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400274
Theodore Ts'oe1052142006-10-21 21:46:47 -0400275
276:
277(as_func_return () {
278 (exit $1)
279}
280as_func_success () {
281 as_func_return 0
282}
283as_func_failure () {
284 as_func_return 1
285}
286as_func_ret_success () {
287 return 0
288}
289as_func_ret_failure () {
290 return 1
291}
292
293exitcode=0
294if as_func_success; then
295 :
296else
297 exitcode=1
298 echo as_func_success failed.
299fi
300
301if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
304fi
305
306if as_func_ret_success; then
307 :
308else
309 exitcode=1
310 echo as_func_ret_success failed.
311fi
312
313if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
316fi
317
318if ( set x; as_func_ret_success y && test x = "$1" ); then
319 :
320else
321 exitcode=1
322 echo positional parameters were not saved.
323fi
324
325test $exitcode = 0) || { (exit 1); exit 1; }
326
327(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500330 test "x$as_lineno_1" != "x$as_lineno_2" &&
Theodore Ts'oe1052142006-10-21 21:46:47 -0400331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333_ASEOF
334}; then
335 break
336fi
337
338fi
339
340 done
341
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348fi
349
350
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
357fi
358
359
360fi
361
362fi
363
364
365
366(eval "as_func_return () {
367 (exit \$1)
368}
369as_func_success () {
370 as_func_return 0
371}
372as_func_failure () {
373 as_func_return 1
374}
375as_func_ret_success () {
376 return 0
377}
378as_func_ret_failure () {
379 return 1
380}
381
382exitcode=0
383if as_func_success; then
384 :
385else
386 exitcode=1
387 echo as_func_success failed.
388fi
389
390if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
393fi
394
395if as_func_ret_success; then
396 :
397else
398 exitcode=1
399 echo as_func_ret_success failed.
400fi
401
402if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
405fi
406
407if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 :
409else
410 exitcode=1
411 echo positional parameters were not saved.
412fi
413
414test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
419}
420
421
422
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500427
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
Theodore Ts'oe1052142006-10-21 21:46:47 -0400430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Theodore Ts'oe1052142006-10-21 21:46:47 -0400436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500442 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -0400443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500447 N
Theodore Ts'oe1052142006-10-21 21:46:47 -0400448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500450 t loop
Theodore Ts'oe1052142006-10-21 21:46:47 -0400451 s/-\n.*//
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500452 ' >$as_me.lineno &&
Theodore Ts'oe1052142006-10-21 21:46:47 -0400453 chmod +x "$as_me.lineno" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
456
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
Theodore Ts'oe1052142006-10-21 21:46:47 -0400459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500461 # Exit status is that of the last command.
462 exit
463}
464
465
Theodore Ts'oe1052142006-10-21 21:46:47 -0400466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468else
469 as_dirname=false
470fi
471
472ECHO_C= ECHO_N= ECHO_T=
473case `echo -n x` in
474-n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
479*)
480 ECHO_N='-n';;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500481esac
482
Theodore Ts'oe1052142006-10-21 21:46:47 -0400483if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500485 as_expr=expr
486else
487 as_expr=false
488fi
489
490rm -f conf$$ conf$$.exe conf$$.file
Theodore Ts'oe1052142006-10-21 21:46:47 -0400491if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
496fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500497echo >conf$$.file
498if ln -s conf$$.file conf$$ 2>/dev/null; then
Theodore Ts'oe1052142006-10-21 21:46:47 -0400499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500505 as_ln_s='cp -p'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500506elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508else
509 as_ln_s='cp -p'
510fi
Theodore Ts'oe1052142006-10-21 21:46:47 -0400511rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512rmdir conf$$.dir 2>/dev/null
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500513
514if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
519fi
520
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400521if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400523else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
528 fi
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
540 '
Theodore Ts'oe1052142006-10-21 21:46:47 -0400541fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400542as_executable_p=$as_test_x
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500543
544# Sed expression to map a string onto a valid CPP name.
545as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547# Sed expression to map a string onto a valid variable name.
548as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500551
Theodore Ts'oe1052142006-10-21 21:46:47 -0400552exec 7<&0 </dev/null 6>&1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500553
554# Name of the host.
555# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556# so uname gets run too.
557ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500559#
560# Initializations.
561#
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000562ac_default_prefix=/usr/local
Theodore Ts'oe1052142006-10-21 21:46:47 -0400563ac_clean_files=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500564ac_config_libobj_dir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -0400565LIBOBJS=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500566cross_compiling=no
567subdirs=
568MFLAGS=
569MAKEFLAGS=
570SHELL=${CONFIG_SHELL-/bin/sh}
571
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500572# Identity of this package.
573PACKAGE_NAME=
574PACKAGE_TARNAME=
575PACKAGE_VERSION=
576PACKAGE_STRING=
577PACKAGE_BUGREPORT=
578
579ac_unique_file="version.h"
580# Factoring default headers for most tests.
581ac_includes_default="\
582#include <stdio.h>
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400583#ifdef HAVE_SYS_TYPES_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500584# include <sys/types.h>
585#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400586#ifdef HAVE_SYS_STAT_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500587# include <sys/stat.h>
588#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400589#ifdef STDC_HEADERS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500590# include <stdlib.h>
591# include <stddef.h>
592#else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400593# ifdef HAVE_STDLIB_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500594# include <stdlib.h>
595# endif
596#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400597#ifdef HAVE_STRING_H
598# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500599# include <memory.h>
600# endif
601# include <string.h>
602#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400603#ifdef HAVE_STRINGS_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500604# include <strings.h>
605#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400606#ifdef HAVE_INTTYPES_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500607# include <inttypes.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -0400608#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400609#ifdef HAVE_STDINT_H
Theodore Ts'oe1052142006-10-21 21:46:47 -0400610# include <stdint.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500611#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400612#ifdef HAVE_UNISTD_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500613# include <unistd.h>
614#endif"
615
Theodore Ts'oe1052142006-10-21 21:46:47 -0400616ac_subst_vars='SHELL
617PATH_SEPARATOR
618PACKAGE_NAME
619PACKAGE_TARNAME
620PACKAGE_VERSION
621PACKAGE_STRING
622PACKAGE_BUGREPORT
623exec_prefix
624prefix
625program_transform_name
626bindir
627sbindir
628libexecdir
629datarootdir
630datadir
631sysconfdir
632sharedstatedir
633localstatedir
634includedir
635oldincludedir
636docdir
637infodir
638htmldir
639dvidir
640pdfdir
641psdir
642libdir
643localedir
644mandir
645DEFS
646ECHO_C
647ECHO_N
648ECHO_T
649LIBS
650build_alias
651host_alias
652target_alias
653E2FSPROGS_YEAR
654E2FSPROGS_MONTH
655E2FSPROGS_DAY
656E2FSPROGS_VERSION
Andreas Dilger927566a2006-11-12 19:41:25 -0500657E2FSPROGS_PKGVER
Theodore Ts'oe1052142006-10-21 21:46:47 -0400658build
659build_cpu
660build_vendor
661build_os
662host
663host_cpu
664host_vendor
665host_os
666CC
667CFLAGS
668LDFLAGS
669CPPFLAGS
670ac_ct_CC
671EXEEXT
672OBJEXT
Theodore Ts'oe1052142006-10-21 21:46:47 -0400673CPP
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400674LD
Theodore Ts'oe1052142006-10-21 21:46:47 -0400675GREP
676EGREP
677LINUX_INCLUDE
678MAINTAINER_CMT
679HTREE_CMT
680ELF_CMT
681BSDLIB_CMT
682PROFILE_CMT
683CHECKER_CMT
684LIB_EXT
685STATIC_LIB_EXT
686PROFILED_LIB_EXT
Theodore Ts'oe1052142006-10-21 21:46:47 -0400687DEBUGFS_CMT
688IMAGER_CMT
689RESIZER_CMT
Theodore Ts'oe1052142006-10-21 21:46:47 -0400690FSCK_PROG
691FSCK_MAN
692E2INITRD_PROG
693E2INITRD_MAN
Theodore Ts'o5610f992007-12-31 11:16:56 -0500694UUIDD_CMT
Theodore Ts'oe1052142006-10-21 21:46:47 -0400695GETTEXT_PACKAGE
696PACKAGE
697VERSION
698SET_MAKE
699INSTALL_PROGRAM
700INSTALL_SCRIPT
701INSTALL_DATA
702MKINSTALLDIRS
703USE_NLS
704MSGFMT
705GMSGFMT
706XGETTEXT
707MSGMERGE
708RANLIB
709ALLOCA
710GLIBC21
711HAVE_POSIX_PRINTF
712HAVE_ASPRINTF
713HAVE_SNPRINTF
714HAVE_WPRINTF
715LIBICONV
716LTLIBICONV
717INTLBISON
718BUILD_INCLUDED_LIBINTL
719USE_INCLUDED_LIBINTL
720CATOBJEXT
721DATADIRNAME
722INSTOBJEXT
723GENCAT
724INTLOBJS
725INTL_LIBTOOL_SUFFIX_PREFIX
726INTLLIBS
727LIBINTL
728LTLIBINTL
729POSUB
730BINARY_TYPE
731LN
732LN_S
733MV
734CP
735RM
736CHMOD
737AWK
738SED
739PERL
740LDCONFIG
741AR
742STRIP
Manish Katiyar7321d942008-04-14 17:20:03 +0530743MAKEINFO
Theodore Ts'oe1052142006-10-21 21:46:47 -0400744BUILD_CC
745SIZEOF_SHORT
746SIZEOF_INT
747SIZEOF_LONG
748SIZEOF_LONG_LONG
749SOCKET_LIB
750DLOPEN_LIB
751UNI_DIFF_OPTS
752LINUX_CMT
753CYGWIN_CMT
754UNIX_CMT
755root_prefix
756root_bindir
757root_sbindir
758root_libdir
759root_sysconfdir
760LDFLAG_STATIC
761SS_DIR
762ET_DIR
763DO_TEST_SUITE
764INTL_FLAGS
765BUILD_CFLAGS
766BUILD_LDFLAGS
767LIBOBJS
768LTLIBOBJS'
769ac_subst_files='MCONFIG
770MAKEFILE_ELF
771MAKEFILE_BSDLIB
772MAKEFILE_PROFILE
773MAKEFILE_CHECKER
774MAKEFILE_LIBRARY
Theodore Ts'o488c75a2008-06-07 08:55:21 -0400775ASM_TYPES_HEADER
776PUBLIC_CONFIG_HEADER'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400777 ac_precious_vars='build_alias
778host_alias
779target_alias
780CC
781CFLAGS
782LDFLAGS
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400783LIBS
Theodore Ts'oe1052142006-10-21 21:46:47 -0400784CPPFLAGS
Theodore Ts'o7515a742008-08-26 23:56:00 -0400785CPP'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400786
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000787
788# Initialize some variables set by options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500789ac_init_help=
790ac_init_version=false
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000791# The variables have the same names as the options, with
792# dashes changed to underlines.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500793cache_file=/dev/null
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000794exec_prefix=NONE
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000795no_create=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000796no_recursion=
797prefix=NONE
798program_prefix=NONE
799program_suffix=NONE
800program_transform_name=s,x,x,
801silent=
802site=
803srcdir=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000804verbose=
805x_includes=NONE
806x_libraries=NONE
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500807
808# Installation directory options.
809# These are left unexpanded so users can "make install exec_prefix=/foo"
810# and all the variables that are supposed to be based on exec_prefix
811# by default will actually change.
812# Use braces instead of parens because sh, perl, etc. also accept them.
Theodore Ts'oe1052142006-10-21 21:46:47 -0400813# (The list follows the same order as the GNU Coding Standards.)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000814bindir='${exec_prefix}/bin'
815sbindir='${exec_prefix}/sbin'
816libexecdir='${exec_prefix}/libexec'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400817datarootdir='${prefix}/share'
818datadir='${datarootdir}'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000819sysconfdir='${prefix}/etc'
820sharedstatedir='${prefix}/com'
821localstatedir='${prefix}/var'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000822includedir='${prefix}/include'
823oldincludedir='/usr/include'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400824docdir='${datarootdir}/doc/${PACKAGE}'
825infodir='${datarootdir}/info'
826htmldir='${docdir}'
827dvidir='${docdir}'
828pdfdir='${docdir}'
829psdir='${docdir}'
830libdir='${exec_prefix}/lib'
831localedir='${datarootdir}/locale'
832mandir='${datarootdir}/man'
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000833
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000834ac_prev=
Theodore Ts'oe1052142006-10-21 21:46:47 -0400835ac_dashdash=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000836for ac_option
837do
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000838 # If the previous option needs an argument, assign it.
839 if test -n "$ac_prev"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -0400840 eval $ac_prev=\$ac_option
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000841 ac_prev=
842 continue
843 fi
844
Theodore Ts'oe1052142006-10-21 21:46:47 -0400845 case $ac_option in
846 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
847 *) ac_optarg=yes ;;
848 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000849
850 # Accept the important Cygnus configure options, so we can diagnose typos.
851
Theodore Ts'oe1052142006-10-21 21:46:47 -0400852 case $ac_dashdash$ac_option in
853 --)
854 ac_dashdash=yes ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000855
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000856 -bindir | --bindir | --bindi | --bind | --bin | --bi)
857 ac_prev=bindir ;;
858 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500859 bindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000860
861 -build | --build | --buil | --bui | --bu)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500862 ac_prev=build_alias ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000863 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500864 build_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000865
866 -cache-file | --cache-file | --cache-fil | --cache-fi \
867 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
868 ac_prev=cache_file ;;
869 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
870 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500871 cache_file=$ac_optarg ;;
872
873 --config-cache | -C)
874 cache_file=config.cache ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000875
Theodore Ts'oe1052142006-10-21 21:46:47 -0400876 -datadir | --datadir | --datadi | --datad)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000877 ac_prev=datadir ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400878 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500879 datadir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000880
Theodore Ts'oe1052142006-10-21 21:46:47 -0400881 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
882 | --dataroo | --dataro | --datar)
883 ac_prev=datarootdir ;;
884 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
885 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
886 datarootdir=$ac_optarg ;;
887
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000888 -disable-* | --disable-*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500889 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000890 # Reject names that are not valid shell variable names.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400891 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500892 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
893 { (exit 1); exit 1; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400894 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
Theodore Ts'oe1052142006-10-21 21:46:47 -0400895 eval enable_$ac_feature=no ;;
896
897 -docdir | --docdir | --docdi | --doc | --do)
898 ac_prev=docdir ;;
899 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
900 docdir=$ac_optarg ;;
901
902 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
903 ac_prev=dvidir ;;
904 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
905 dvidir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000906
907 -enable-* | --enable-*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500908 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000909 # Reject names that are not valid shell variable names.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400910 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500911 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
912 { (exit 1); exit 1; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400913 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
Theodore Ts'oe1052142006-10-21 21:46:47 -0400914 eval enable_$ac_feature=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000915
916 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
917 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
918 | --exec | --exe | --ex)
919 ac_prev=exec_prefix ;;
920 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
921 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
922 | --exec=* | --exe=* | --ex=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500923 exec_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000924
925 -gas | --gas | --ga | --g)
926 # Obsolete; use --with-gas.
927 with_gas=yes ;;
928
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500929 -help | --help | --hel | --he | -h)
930 ac_init_help=long ;;
931 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
932 ac_init_help=recursive ;;
933 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
934 ac_init_help=short ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000935
936 -host | --host | --hos | --ho)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500937 ac_prev=host_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000938 -host=* | --host=* | --hos=* | --ho=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500939 host_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000940
Theodore Ts'oe1052142006-10-21 21:46:47 -0400941 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
942 ac_prev=htmldir ;;
943 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
944 | --ht=*)
945 htmldir=$ac_optarg ;;
946
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000947 -includedir | --includedir | --includedi | --included | --include \
948 | --includ | --inclu | --incl | --inc)
949 ac_prev=includedir ;;
950 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
951 | --includ=* | --inclu=* | --incl=* | --inc=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500952 includedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000953
954 -infodir | --infodir | --infodi | --infod | --info | --inf)
955 ac_prev=infodir ;;
956 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500957 infodir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000958
959 -libdir | --libdir | --libdi | --libd)
960 ac_prev=libdir ;;
961 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500962 libdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000963
964 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
965 | --libexe | --libex | --libe)
966 ac_prev=libexecdir ;;
967 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
968 | --libexe=* | --libex=* | --libe=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500969 libexecdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000970
Theodore Ts'oe1052142006-10-21 21:46:47 -0400971 -localedir | --localedir | --localedi | --localed | --locale)
972 ac_prev=localedir ;;
973 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
974 localedir=$ac_optarg ;;
975
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000976 -localstatedir | --localstatedir | --localstatedi | --localstated \
Theodore Ts'oe1052142006-10-21 21:46:47 -0400977 | --localstate | --localstat | --localsta | --localst | --locals)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000978 ac_prev=localstatedir ;;
979 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Theodore Ts'oe1052142006-10-21 21:46:47 -0400980 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500981 localstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000982
983 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
984 ac_prev=mandir ;;
985 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500986 mandir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000987
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000988 -nfp | --nfp | --nf)
989 # Obsolete; use --without-fp.
990 with_fp=no ;;
991
992 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500993 | --no-cr | --no-c | -n)
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000994 no_create=yes ;;
995
996 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
997 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
998 no_recursion=yes ;;
999
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001000 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1001 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1002 | --oldin | --oldi | --old | --ol | --o)
1003 ac_prev=oldincludedir ;;
1004 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1005 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1006 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001007 oldincludedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001008
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001009 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1010 ac_prev=prefix ;;
1011 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001012 prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001013
1014 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1015 | --program-pre | --program-pr | --program-p)
1016 ac_prev=program_prefix ;;
1017 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1018 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001019 program_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001020
1021 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1022 | --program-suf | --program-su | --program-s)
1023 ac_prev=program_suffix ;;
1024 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1025 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001026 program_suffix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001027
1028 -program-transform-name | --program-transform-name \
1029 | --program-transform-nam | --program-transform-na \
1030 | --program-transform-n | --program-transform- \
1031 | --program-transform | --program-transfor \
1032 | --program-transfo | --program-transf \
1033 | --program-trans | --program-tran \
1034 | --progr-tra | --program-tr | --program-t)
1035 ac_prev=program_transform_name ;;
1036 -program-transform-name=* | --program-transform-name=* \
1037 | --program-transform-nam=* | --program-transform-na=* \
1038 | --program-transform-n=* | --program-transform-=* \
1039 | --program-transform=* | --program-transfor=* \
1040 | --program-transfo=* | --program-transf=* \
1041 | --program-trans=* | --program-tran=* \
1042 | --progr-tra=* | --program-tr=* | --program-t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001043 program_transform_name=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001044
Theodore Ts'oe1052142006-10-21 21:46:47 -04001045 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1046 ac_prev=pdfdir ;;
1047 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1048 pdfdir=$ac_optarg ;;
1049
1050 -psdir | --psdir | --psdi | --psd | --ps)
1051 ac_prev=psdir ;;
1052 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1053 psdir=$ac_optarg ;;
1054
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001055 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1056 | -silent | --silent | --silen | --sile | --sil)
1057 silent=yes ;;
1058
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001059 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1060 ac_prev=sbindir ;;
1061 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1062 | --sbi=* | --sb=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001063 sbindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001064
1065 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1066 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1067 | --sharedst | --shareds | --shared | --share | --shar \
1068 | --sha | --sh)
1069 ac_prev=sharedstatedir ;;
1070 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1071 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1072 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1073 | --sha=* | --sh=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001074 sharedstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001075
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001076 -site | --site | --sit)
1077 ac_prev=site ;;
1078 -site=* | --site=* | --sit=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001079 site=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001080
1081 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1082 ac_prev=srcdir ;;
1083 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001084 srcdir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001085
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001086 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1087 | --syscon | --sysco | --sysc | --sys | --sy)
1088 ac_prev=sysconfdir ;;
1089 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1090 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001091 sysconfdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001092
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001093 -target | --target | --targe | --targ | --tar | --ta | --t)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001094 ac_prev=target_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001095 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001096 target_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001097
1098 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1099 verbose=yes ;;
1100
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001101 -version | --version | --versio | --versi | --vers | -V)
1102 ac_init_version=: ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001103
1104 -with-* | --with-*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001105 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001106 # Reject names that are not valid shell variable names.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001107 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001108 { echo "$as_me: error: invalid package name: $ac_package" >&2
1109 { (exit 1); exit 1; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001110 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001111 eval with_$ac_package=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001112
1113 -without-* | --without-*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001114 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001115 # Reject names that are not valid shell variable names.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001116 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001117 { echo "$as_me: error: invalid package name: $ac_package" >&2
1118 { (exit 1); exit 1; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001119 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001120 eval with_$ac_package=no ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001121
1122 --x)
1123 # Obsolete; use --with-x.
1124 with_x=yes ;;
1125
1126 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1127 | --x-incl | --x-inc | --x-in | --x-i)
1128 ac_prev=x_includes ;;
1129 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1130 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001131 x_includes=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001132
1133 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1134 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1135 ac_prev=x_libraries ;;
1136 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1137 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001138 x_libraries=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001139
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001140 -*) { echo "$as_me: error: unrecognized option: $ac_option
1141Try \`$0 --help' for more information." >&2
1142 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001143 ;;
1144
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001145 *=*)
1146 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1147 # Reject names that are not valid shell variable names.
1148 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1149 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1150 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04001151 eval $ac_envvar=\$ac_optarg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001152 export $ac_envvar ;;
1153
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001154 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001155 # FIXME: should be removed in autoconf 3.0.
1156 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1157 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1158 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1159 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001160 ;;
1161
1162 esac
1163done
1164
1165if test -n "$ac_prev"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001166 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1167 { echo "$as_me: error: missing argument to $ac_option" >&2
1168 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001169fi
1170
Theodore Ts'oe1052142006-10-21 21:46:47 -04001171# Be sure to have absolute directory names.
1172for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1173 datadir sysconfdir sharedstatedir localstatedir includedir \
1174 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1175 libdir localedir mandir
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001176do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001177 eval ac_val=\$$ac_var
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001178 case $ac_val in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001179 [\\/$]* | ?:[\\/]* ) continue;;
1180 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001181 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001182 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1183 { (exit 1); exit 1; }; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001184done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001185
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001186# There might be people who depend on the old broken behavior: `$host'
1187# used to hold the argument of --host etc.
1188# FIXME: To remove some day.
1189build=$build_alias
1190host=$host_alias
1191target=$target_alias
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001192
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001193# FIXME: To remove some day.
1194if test "x$host_alias" != x; then
1195 if test "x$build_alias" = x; then
1196 cross_compiling=maybe
1197 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1198 If a cross compiler is detected then cross compile mode will be used." >&2
1199 elif test "x$build_alias" != "x$host_alias"; then
1200 cross_compiling=yes
1201 fi
1202fi
1203
1204ac_tool_prefix=
1205test -n "$host_alias" && ac_tool_prefix=$host_alias-
1206
1207test "$silent" = yes && exec 6>/dev/null
1208
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001209
Theodore Ts'oe1052142006-10-21 21:46:47 -04001210ac_pwd=`pwd` && test -n "$ac_pwd" &&
1211ac_ls_di=`ls -di .` &&
1212ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1213 { echo "$as_me: error: Working directory cannot be determined" >&2
1214 { (exit 1); exit 1; }; }
1215test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1216 { echo "$as_me: error: pwd does not report name of working directory" >&2
1217 { (exit 1); exit 1; }; }
1218
1219
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001220# Find the source files, if location was not specified.
1221if test -z "$srcdir"; then
1222 ac_srcdir_defaulted=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04001223 # Try the directory containing this script, then the parent directory.
1224 ac_confdir=`$as_dirname -- "$0" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001225$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1226 X"$0" : 'X\(//\)[^/]' \| \
1227 X"$0" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001228 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001229echo X"$0" |
Theodore Ts'oe1052142006-10-21 21:46:47 -04001230 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1231 s//\1/
1232 q
1233 }
1234 /^X\(\/\/\)[^/].*/{
1235 s//\1/
1236 q
1237 }
1238 /^X\(\/\/\)$/{
1239 s//\1/
1240 q
1241 }
1242 /^X\(\/\).*/{
1243 s//\1/
1244 q
1245 }
1246 s/.*/./; q'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001247 srcdir=$ac_confdir
Theodore Ts'oe1052142006-10-21 21:46:47 -04001248 if test ! -r "$srcdir/$ac_unique_file"; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001249 srcdir=..
1250 fi
1251else
1252 ac_srcdir_defaulted=no
1253fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001254if test ! -r "$srcdir/$ac_unique_file"; then
1255 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1256 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001257 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001258fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001259ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1260ac_abs_confdir=`(
1261 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001262 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04001263 pwd)`
1264# When building in place, set srcdir=.
1265if test "$ac_abs_confdir" = "$ac_pwd"; then
1266 srcdir=.
1267fi
1268# Remove unnecessary trailing slashes from srcdir.
1269# Double slashes in file names in object file debugging info
1270# mess up M-x gdb in Emacs.
1271case $srcdir in
1272*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1273esac
1274for ac_var in $ac_precious_vars; do
1275 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1276 eval ac_env_${ac_var}_value=\$${ac_var}
1277 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1278 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1279done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001280
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001281#
1282# Report the --help message.
1283#
1284if test "$ac_init_help" = "long"; then
1285 # Omit some internal or obsolete options to make the list less imposing.
1286 # This message is too long to be a string in the A/UX 3.1 sh.
1287 cat <<_ACEOF
1288\`configure' configures this package to adapt to many kinds of systems.
1289
1290Usage: $0 [OPTION]... [VAR=VALUE]...
1291
1292To assign environment variables (e.g., CC, CFLAGS...), specify them as
1293VAR=VALUE. See below for descriptions of some of the useful variables.
1294
1295Defaults for the options are specified in brackets.
1296
1297Configuration:
1298 -h, --help display this help and exit
1299 --help=short display options specific to this package
1300 --help=recursive display the short help of all the included packages
1301 -V, --version display version information and exit
1302 -q, --quiet, --silent do not print \`checking...' messages
1303 --cache-file=FILE cache test results in FILE [disabled]
1304 -C, --config-cache alias for \`--cache-file=config.cache'
1305 -n, --no-create do not create output files
1306 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1307
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001308Installation directories:
1309 --prefix=PREFIX install architecture-independent files in PREFIX
1310 [$ac_default_prefix]
1311 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1312 [PREFIX]
1313
1314By default, \`make install' will install all the files in
1315\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1316an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1317for instance \`--prefix=\$HOME'.
1318
1319For better control, use the options below.
1320
1321Fine tuning of the installation directories:
1322 --bindir=DIR user executables [EPREFIX/bin]
1323 --sbindir=DIR system admin executables [EPREFIX/sbin]
1324 --libexecdir=DIR program executables [EPREFIX/libexec]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001325 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1326 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1327 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1328 --libdir=DIR object code libraries [EPREFIX/lib]
1329 --includedir=DIR C header files [PREFIX/include]
1330 --oldincludedir=DIR C header files for non-gcc [/usr/include]
Theodore Ts'oe1052142006-10-21 21:46:47 -04001331 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1332 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1333 --infodir=DIR info documentation [DATAROOTDIR/info]
1334 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1335 --mandir=DIR man documentation [DATAROOTDIR/man]
1336 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1337 --htmldir=DIR html documentation [DOCDIR]
1338 --dvidir=DIR dvi documentation [DOCDIR]
1339 --pdfdir=DIR pdf documentation [DOCDIR]
1340 --psdir=DIR ps documentation [DOCDIR]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001341_ACEOF
1342
1343 cat <<\_ACEOF
1344
1345System types:
1346 --build=BUILD configure for building on BUILD [guessed]
1347 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1348_ACEOF
1349fi
1350
1351if test -n "$ac_init_help"; then
1352
1353 cat <<\_ACEOF
1354
1355Optional Features:
1356 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1357 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Theodore Ts'o98919bd2005-02-04 10:43:58 -05001358 --enable-maintainer-mode enable makefile rules useful for maintainers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001359 --enable-compression enable EXPERIMENTAL compression support
1360 --enable-htree enable EXPERIMENTAL htree directory support
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001361 --enable-elf-shlibs select ELF shared libraries
1362 --enable-bsd-shlibs select BSD shared libraries
1363 --enable-profile build profiling libraries
1364 --enable-checker build checker libraries
1365 --enable-jbd-debug enable journal debugging
1366 --enable-blkid-debug enable blkid debugging
1367 --enable-testio-debug enable the use of the test I/O manager for debugging
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001368 --disable-debugfs disable support of debugfs program
1369 --disable-imager disable support of e2image program
1370 --disable-resizer disable support of e2resize program
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001371 --enable-fsck build fsck wrapper program
1372 --enable-e2initrd-helper build e2initrd-helper program
Theodore Ts'o32493942007-12-31 10:45:01 -05001373 --disable-tls disable use of thread local support
Theodore Ts'o5610f992007-12-31 11:16:56 -05001374 --disable-uuidd disable building the uuid daemon
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001375 --disable-nls do not use Native Language Support
1376 --disable-rpath do not hardcode runtime library paths
1377
1378Optional Packages:
1379 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1380 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Theodore Ts'o32493942007-12-31 10:45:01 -05001381 --with-diet-libc use diet libc
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001382 --with-cc=COMPILER select compiler to use
1383 --with-linker=LINKER select linker to use
1384 --with-ccopts=CCOPTS select compiler command line options
1385 --with-ldopts=LDOPTS select linker command line options
1386 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
1387 --with-gnu-ld assume the C compiler uses GNU ld default=no
1388 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1389 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1390 --with-included-gettext use the GNU gettext library included here
1391 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1392 --without-libintl-prefix don't search for libintl in includedir and libdir
1393
1394Some influential environment variables:
1395 CC C compiler command
1396 CFLAGS C compiler flags
1397 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1398 nonstandard directory <lib dir>
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001399 LIBS libraries to pass to the linker, e.g. -l<library>
Theodore Ts'oe1052142006-10-21 21:46:47 -04001400 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1401 you have headers in a nonstandard directory <include dir>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001402 CPP C preprocessor
1403
1404Use these variables to override the choices made by `configure' or to help
1405it to find libraries and programs with nonstandard names/locations.
1406
1407_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001408ac_status=$?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001409fi
1410
1411if test "$ac_init_help" = "recursive"; then
1412 # If there are subdirs, report their specific --help.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001413 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Theodore Ts'oe1052142006-10-21 21:46:47 -04001414 test -d "$ac_dir" || continue
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001415 ac_builddir=.
1416
Theodore Ts'oe1052142006-10-21 21:46:47 -04001417case "$ac_dir" in
1418.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1419*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001420 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001421 # A ".." for each directory in $ac_dir_suffix.
1422 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1423 case $ac_top_builddir_sub in
1424 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1425 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1426 esac ;;
1427esac
1428ac_abs_top_builddir=$ac_pwd
1429ac_abs_builddir=$ac_pwd$ac_dir_suffix
1430# for backward compatibility:
1431ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001432
1433case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001434 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001435 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001436 ac_top_srcdir=$ac_top_builddir_sub
1437 ac_abs_top_srcdir=$ac_pwd ;;
1438 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001439 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001440 ac_top_srcdir=$srcdir
1441 ac_abs_top_srcdir=$srcdir ;;
1442 *) # Relative name.
1443 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1444 ac_top_srcdir=$ac_top_build_prefix$srcdir
1445 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001446esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001447ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001448
Theodore Ts'oe1052142006-10-21 21:46:47 -04001449 cd "$ac_dir" || { ac_status=$?; continue; }
1450 # Check for guested configure.
1451 if test -f "$ac_srcdir/configure.gnu"; then
1452 echo &&
1453 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1454 elif test -f "$ac_srcdir/configure"; then
1455 echo &&
1456 $SHELL "$ac_srcdir/configure" --help=recursive
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001457 else
1458 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Theodore Ts'oe1052142006-10-21 21:46:47 -04001459 fi || ac_status=$?
1460 cd "$ac_pwd" || { ac_status=$?; break; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001461 done
1462fi
1463
Theodore Ts'oe1052142006-10-21 21:46:47 -04001464test -n "$ac_init_help" && exit $ac_status
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001465if $ac_init_version; then
1466 cat <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001467configure
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001468generated by GNU Autoconf 2.61
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001469
Theodore Ts'oe1052142006-10-21 21:46:47 -04001470Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
14712002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001472This configure script is free software; the Free Software Foundation
1473gives unlimited permission to copy, distribute and modify it.
1474_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001475 exit
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001476fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001477cat >config.log <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001478This file contains any messages produced by compilers while
1479running configure, to aid debugging if configure makes a mistake.
1480
1481It was created by $as_me, which was
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001482generated by GNU Autoconf 2.61. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001483
1484 $ $0 $@
1485
1486_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001487exec 5>>config.log
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001488{
1489cat <<_ASUNAME
1490## --------- ##
1491## Platform. ##
1492## --------- ##
1493
1494hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1495uname -m = `(uname -m) 2>/dev/null || echo unknown`
1496uname -r = `(uname -r) 2>/dev/null || echo unknown`
1497uname -s = `(uname -s) 2>/dev/null || echo unknown`
1498uname -v = `(uname -v) 2>/dev/null || echo unknown`
1499
1500/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1501/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1502
1503/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1504/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1505/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001506/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001507/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1508/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1509/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1510
1511_ASUNAME
1512
1513as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1514for as_dir in $PATH
1515do
1516 IFS=$as_save_IFS
1517 test -z "$as_dir" && as_dir=.
1518 echo "PATH: $as_dir"
1519done
Theodore Ts'oe1052142006-10-21 21:46:47 -04001520IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001521
1522} >&5
1523
1524cat >&5 <<_ACEOF
1525
1526
1527## ----------- ##
1528## Core tests. ##
1529## ----------- ##
1530
1531_ACEOF
1532
1533
1534# Keep a trace of the command line.
1535# Strip out --no-create and --no-recursion so they do not pile up.
1536# Strip out --silent because we don't want to record it for future runs.
1537# Also quote any args containing shell meta-characters.
1538# Make two passes to allow for proper duplicate-argument suppression.
1539ac_configure_args=
1540ac_configure_args0=
1541ac_configure_args1=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001542ac_must_keep_next=false
1543for ac_pass in 1 2
1544do
1545 for ac_arg
1546 do
1547 case $ac_arg in
1548 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1549 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1550 | -silent | --silent | --silen | --sile | --sil)
1551 continue ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001552 *\'*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001553 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1554 esac
1555 case $ac_pass in
1556 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1557 2)
1558 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1559 if test $ac_must_keep_next = true; then
1560 ac_must_keep_next=false # Got value, back to normal.
1561 else
1562 case $ac_arg in
1563 *=* | --config-cache | -C | -disable-* | --disable-* \
1564 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1565 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1566 | -with-* | --with-* | -without-* | --without-* | --x)
1567 case "$ac_configure_args0 " in
1568 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1569 esac
1570 ;;
1571 -* ) ac_must_keep_next=true ;;
1572 esac
1573 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001574 ac_configure_args="$ac_configure_args '$ac_arg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001575 ;;
1576 esac
1577 done
1578done
1579$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1580$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1581
1582# When interrupted or exit'd, cleanup temporary files, and complete
1583# config.log. We remove comments because anyway the quotes in there
1584# would cause problems or look ugly.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001585# WARNING: Use '\'' to represent an apostrophe within the trap.
1586# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001587trap 'exit_status=$?
1588 # Save into config.log some information that might help in debugging.
1589 {
1590 echo
1591
1592 cat <<\_ASBOX
1593## ---------------- ##
1594## Cache variables. ##
1595## ---------------- ##
1596_ASBOX
1597 echo
1598 # The following way of writing the cache mishandles newlines in values,
Theodore Ts'oe1052142006-10-21 21:46:47 -04001599(
1600 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1601 eval ac_val=\$$ac_var
1602 case $ac_val in #(
1603 *${as_nl}*)
1604 case $ac_var in #(
1605 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1606echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1607 esac
1608 case $ac_var in #(
1609 _ | IFS | as_nl) ;; #(
1610 *) $as_unset $ac_var ;;
1611 esac ;;
1612 esac
1613 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001614 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -04001615 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1616 *${as_nl}ac_space=\ *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001617 sed -n \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001618 "s/'\''/'\''\\\\'\'''\''/g;
1619 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1620 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001621 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04001622 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001623 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001624 esac |
1625 sort
1626)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001627 echo
1628
1629 cat <<\_ASBOX
1630## ----------------- ##
1631## Output variables. ##
1632## ----------------- ##
1633_ASBOX
1634 echo
1635 for ac_var in $ac_subst_vars
1636 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001637 eval ac_val=\$$ac_var
1638 case $ac_val in
1639 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1640 esac
1641 echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001642 done | sort
1643 echo
1644
1645 if test -n "$ac_subst_files"; then
1646 cat <<\_ASBOX
Theodore Ts'oe1052142006-10-21 21:46:47 -04001647## ------------------- ##
1648## File substitutions. ##
1649## ------------------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001650_ASBOX
1651 echo
1652 for ac_var in $ac_subst_files
1653 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001654 eval ac_val=\$$ac_var
1655 case $ac_val in
1656 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1657 esac
1658 echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001659 done | sort
1660 echo
1661 fi
1662
1663 if test -s confdefs.h; then
1664 cat <<\_ASBOX
1665## ----------- ##
1666## confdefs.h. ##
1667## ----------- ##
1668_ASBOX
1669 echo
Theodore Ts'oe1052142006-10-21 21:46:47 -04001670 cat confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001671 echo
1672 fi
1673 test "$ac_signal" != 0 &&
1674 echo "$as_me: caught signal $ac_signal"
1675 echo "$as_me: exit $exit_status"
1676 } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04001677 rm -f core *.core core.conftest.* &&
1678 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001679 exit $exit_status
Theodore Ts'oe1052142006-10-21 21:46:47 -04001680' 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001681for ac_signal in 1 2 13 15; do
1682 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1683done
1684ac_signal=0
1685
1686# confdefs.h avoids OS command line length limits that DEFS can exceed.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001687rm -f -r conftest* confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001688
1689# Predefined preprocessor variables.
1690
1691cat >>confdefs.h <<_ACEOF
1692#define PACKAGE_NAME "$PACKAGE_NAME"
1693_ACEOF
1694
1695
1696cat >>confdefs.h <<_ACEOF
1697#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1698_ACEOF
1699
1700
1701cat >>confdefs.h <<_ACEOF
1702#define PACKAGE_VERSION "$PACKAGE_VERSION"
1703_ACEOF
1704
1705
1706cat >>confdefs.h <<_ACEOF
1707#define PACKAGE_STRING "$PACKAGE_STRING"
1708_ACEOF
1709
1710
1711cat >>confdefs.h <<_ACEOF
1712#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1713_ACEOF
1714
1715
1716# Let the site file select an alternate cache file if it wants to.
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001717# Prefer explicitly selected file to automatically selected ones.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001718if test -n "$CONFIG_SITE"; then
1719 set x "$CONFIG_SITE"
1720elif test "x$prefix" != xNONE; then
1721 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1722else
1723 set x "$ac_default_prefix/share/config.site" \
1724 "$ac_default_prefix/etc/config.site"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001725fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001726shift
1727for ac_site_file
1728do
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001729 if test -r "$ac_site_file"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001730 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1731echo "$as_me: loading site script $ac_site_file" >&6;}
1732 sed 's/^/| /' "$ac_site_file" >&5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001733 . "$ac_site_file"
1734 fi
1735done
1736
1737if test -r "$cache_file"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001738 # Some versions of bash will fail to source /dev/null (special
1739 # files actually), so we avoid doing that.
1740 if test -f "$cache_file"; then
1741 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1742echo "$as_me: loading cache $cache_file" >&6;}
1743 case $cache_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001744 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1745 *) . "./$cache_file";;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001746 esac
1747 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001748else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001749 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1750echo "$as_me: creating cache $cache_file" >&6;}
1751 >$cache_file
1752fi
1753
1754# Check that the precious variables saved in the cache have kept the same
1755# value.
1756ac_cache_corrupted=false
Theodore Ts'oe1052142006-10-21 21:46:47 -04001757for ac_var in $ac_precious_vars; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001758 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1759 eval ac_new_set=\$ac_env_${ac_var}_set
Theodore Ts'oe1052142006-10-21 21:46:47 -04001760 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1761 eval ac_new_val=\$ac_env_${ac_var}_value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001762 case $ac_old_set,$ac_new_set in
1763 set,)
1764 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1765echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1766 ac_cache_corrupted=: ;;
1767 ,set)
1768 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1769echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1770 ac_cache_corrupted=: ;;
1771 ,);;
1772 *)
1773 if test "x$ac_old_val" != "x$ac_new_val"; then
1774 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1775echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1776 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1777echo "$as_me: former value: $ac_old_val" >&2;}
1778 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1779echo "$as_me: current value: $ac_new_val" >&2;}
1780 ac_cache_corrupted=:
1781 fi;;
1782 esac
1783 # Pass precious variables to config.status.
1784 if test "$ac_new_set" = set; then
1785 case $ac_new_val in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001786 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001787 *) ac_arg=$ac_var=$ac_new_val ;;
1788 esac
1789 case " $ac_configure_args " in
1790 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1791 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1792 esac
1793 fi
1794done
1795if $ac_cache_corrupted; then
1796 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1797echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1798 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1799echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1800 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001801fi
1802
Theodore Ts'oe1052142006-10-21 21:46:47 -04001803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001819ac_ext=c
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001820ac_cpp='$CPP $CPPFLAGS'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001821ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1822ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1823ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001824
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001825
1826
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001827ac_aux_dir=
Theodore Ts'oe1052142006-10-21 21:46:47 -04001828for ac_dir in config "$srcdir"/config; do
1829 if test -f "$ac_dir/install-sh"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001830 ac_aux_dir=$ac_dir
1831 ac_install_sh="$ac_aux_dir/install-sh -c"
1832 break
Theodore Ts'oe1052142006-10-21 21:46:47 -04001833 elif test -f "$ac_dir/install.sh"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001834 ac_aux_dir=$ac_dir
1835 ac_install_sh="$ac_aux_dir/install.sh -c"
1836 break
Theodore Ts'oe1052142006-10-21 21:46:47 -04001837 elif test -f "$ac_dir/shtool"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001838 ac_aux_dir=$ac_dir
1839 ac_install_sh="$ac_aux_dir/shtool install -c"
1840 break
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001841 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001842done
1843if test -z "$ac_aux_dir"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04001844 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5
1845echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001846 { (exit 1); exit 1; }; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001847fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001848
1849# These three variables are undocumented and unsupported,
1850# and are intended to be withdrawn in a future Autoconf release.
1851# They can cause serious problems if a builder's source tree is in a directory
1852# whose full name contains unusual characters.
1853ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1854ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1855ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1856
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00001857
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001858MCONFIG=./MCONFIG
1859
Theodore Ts'o74becf31997-04-26 14:37:06 +00001860BINARY_TYPE=bin
1861E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
1862 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
1863DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
1864 | tr \" " "`
Theodore Ts'obff0cc92003-03-23 01:37:53 -05001865E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
Theodore Ts'o74becf31997-04-26 14:37:06 +00001866MONTH=`echo $DATE | awk -F- '{print $2}'`
1867YEAR=`echo $DATE | awk -F- '{print $3}'`
1868
Theodore Ts'o14790ed1999-01-12 23:32:52 +00001869if expr $YEAR ">" 1900 > /dev/null ; then
1870 E2FSPROGS_YEAR=$YEAR
1871elif expr $YEAR ">" 90 >/dev/null ; then
Theodore Ts'o74becf31997-04-26 14:37:06 +00001872 E2FSPROGS_YEAR=19$YEAR
1873else
1874 E2FSPROGS_YEAR=20$YEAR
1875fi
1876
1877case $MONTH in
Andreas Dilger927566a2006-11-12 19:41:25 -05001878Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
1879Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
1880Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
1881Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
1882May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
1883Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
1884Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
1885Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
1886Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
1887Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
1888Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
1889Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
Theodore Ts'o02d04db2008-08-22 10:52:42 -04001890*) { echo "$as_me:$LINENO: WARNING: Unknown month $MONTH??" >&5
1891echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
Theodore Ts'o74becf31997-04-26 14:37:06 +00001892esac
1893
Andreas Dilger927566a2006-11-12 19:41:25 -05001894base_ver=`echo $E2FSPROGS_VERSION | \
1895 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
Andreas Dilger927566a2006-11-12 19:41:25 -05001896
1897date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
1898
1899case $E2FSPROGS_VERSION in
1900*-WIP|pre-*)
Theodore Ts'oab063962008-07-07 16:07:43 -04001901 E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
Andreas Dilger927566a2006-11-12 19:41:25 -05001902 ;;
1903*)
1904 E2FSPROGS_PKGVER="$base_ver"
1905 ;;
1906esac
1907
1908unset DATE MONTH YEAR base_ver pre_vers date_spec
Theodore Ts'o02d04db2008-08-22 10:52:42 -04001909{ echo "$as_me:$LINENO: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
1910echo "${ECHO_T}Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
1911{ echo "$as_me:$LINENO: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
1912echo "${ECHO_T}Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +00001913
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001914
1915
1916
Andreas Dilger927566a2006-11-12 19:41:25 -05001917
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001918# Make sure we can run config.sub.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001919$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1920 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1921echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001922 { (exit 1); exit 1; }; }
1923
Theodore Ts'oe1052142006-10-21 21:46:47 -04001924{ echo "$as_me:$LINENO: checking build system type" >&5
1925echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001926if test "${ac_cv_build+set}" = set; then
1927 echo $ECHO_N "(cached) $ECHO_C" >&6
1928else
Theodore Ts'oe1052142006-10-21 21:46:47 -04001929 ac_build_alias=$build_alias
1930test "x$ac_build_alias" = x &&
1931 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1932test "x$ac_build_alias" = x &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001933 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1934echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1935 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04001936ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1937 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1938echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001939 { (exit 1); exit 1; }; }
1940
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001941fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001942{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1943echo "${ECHO_T}$ac_cv_build" >&6; }
1944case $ac_cv_build in
1945*-*-*) ;;
1946*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1947echo "$as_me: error: invalid value of canonical build" >&2;}
1948 { (exit 1); exit 1; }; };;
1949esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001950build=$ac_cv_build
Theodore Ts'oe1052142006-10-21 21:46:47 -04001951ac_save_IFS=$IFS; IFS='-'
1952set x $ac_cv_build
1953shift
1954build_cpu=$1
1955build_vendor=$2
1956shift; shift
1957# Remember, the first character of IFS is used to create $*,
1958# except with old shells:
1959build_os=$*
1960IFS=$ac_save_IFS
1961case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001962
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00001963
Theodore Ts'oe1052142006-10-21 21:46:47 -04001964{ echo "$as_me:$LINENO: checking host system type" >&5
1965echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001966if test "${ac_cv_host+set}" = set; then
1967 echo $ECHO_N "(cached) $ECHO_C" >&6
1968else
Theodore Ts'oe1052142006-10-21 21:46:47 -04001969 if test "x$host_alias" = x; then
1970 ac_cv_host=$ac_cv_build
1971else
1972 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1973 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
1974echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001975 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04001976fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04001977
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001978fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001979{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1980echo "${ECHO_T}$ac_cv_host" >&6; }
1981case $ac_cv_host in
1982*-*-*) ;;
1983*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
1984echo "$as_me: error: invalid value of canonical host" >&2;}
1985 { (exit 1); exit 1; }; };;
1986esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001987host=$ac_cv_host
Theodore Ts'oe1052142006-10-21 21:46:47 -04001988ac_save_IFS=$IFS; IFS='-'
1989set x $ac_cv_host
1990shift
1991host_cpu=$1
1992host_vendor=$2
1993shift; shift
1994# Remember, the first character of IFS is used to create $*,
1995# except with old shells:
1996host_os=$*
1997IFS=$ac_save_IFS
1998case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001999
2000
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04002001WITH_DIET_LIBC=
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002002
Theodore Ts'oe1052142006-10-21 21:46:47 -04002003# Check whether --with-diet-libc was given.
Theodore Ts'od21ae6c2003-05-05 09:00:24 -04002004if test "${with_diet_libc+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002005 withval=$with_diet_libc; CC="diet cc -nostdinc"
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04002006WITH_DIET_LIBC=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04002007{ echo "$as_me:$LINENO: result: CC=$CC" >&5
2008echo "${ECHO_T}CC=$CC" >&6; }
2009fi
2010
2011# Check whether --with-cc was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00002012if test "${with_cc+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002013 withval=$with_cc; { echo "$as_me:$LINENO: result: CC=$withval" >&5
2014echo "${ECHO_T}CC=$withval" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +00002015CC=$withval
2016else
2017 if test -z "$CC" ; then CC=cc; fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002018{ echo "$as_me:$LINENO: result: CC defaults to $CC" >&5
2019echo "${ECHO_T}CC defaults to $CC" >&6; }
2020fi
2021export CC
Theodore Ts'o74becf31997-04-26 14:37:06 +00002022
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002023ac_ext=c
2024ac_cpp='$CPP $CPPFLAGS'
2025ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2026ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2027ac_compiler_gnu=$ac_cv_c_compiler_gnu
2028if test -n "$ac_tool_prefix"; then
2029 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2030set dummy ${ac_tool_prefix}gcc; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002031{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2032echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002033if test "${ac_cv_prog_CC+set}" = set; then
2034 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002035else
2036 if test -n "$CC"; then
2037 ac_cv_prog_CC="$CC" # Let the user override the test.
2038else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2040for as_dir in $PATH
2041do
2042 IFS=$as_save_IFS
2043 test -z "$as_dir" && as_dir=.
2044 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002046 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2048 break 2
2049 fi
2050done
2051done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002052IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002053
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002054fi
2055fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002056CC=$ac_cv_prog_CC
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002057if test -n "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002058 { echo "$as_me:$LINENO: result: $CC" >&5
2059echo "${ECHO_T}$CC" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002060else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002061 { echo "$as_me:$LINENO: result: no" >&5
2062echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002063fi
2064
Theodore Ts'oe1052142006-10-21 21:46:47 -04002065
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002066fi
2067if test -z "$ac_cv_prog_CC"; then
2068 ac_ct_CC=$CC
2069 # Extract the first word of "gcc", so it can be a program name with args.
2070set dummy gcc; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002071{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2072echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002073if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2074 echo $ECHO_N "(cached) $ECHO_C" >&6
2075else
2076 if test -n "$ac_ct_CC"; then
2077 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2078else
2079as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2080for as_dir in $PATH
2081do
2082 IFS=$as_save_IFS
2083 test -z "$as_dir" && as_dir=.
2084 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002086 ac_cv_prog_ac_ct_CC="gcc"
2087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2088 break 2
2089 fi
2090done
2091done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002092IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002093
2094fi
2095fi
2096ac_ct_CC=$ac_cv_prog_ac_ct_CC
2097if test -n "$ac_ct_CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002098 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2099echo "${ECHO_T}$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002100else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002101 { echo "$as_me:$LINENO: result: no" >&5
2102echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002103fi
2104
Theodore Ts'oe1052142006-10-21 21:46:47 -04002105 if test "x$ac_ct_CC" = x; then
2106 CC=""
2107 else
2108 case $cross_compiling:$ac_tool_warned in
2109yes:)
2110{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2111whose name does not start with the host triplet. If you think this
2112configuration is useful to you, please write to autoconf@gnu.org." >&5
2113echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2114whose name does not start with the host triplet. If you think this
2115configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2116ac_tool_warned=yes ;;
2117esac
2118 CC=$ac_ct_CC
2119 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002120else
2121 CC="$ac_cv_prog_CC"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002122fi
2123
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002124if test -z "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002125 if test -n "$ac_tool_prefix"; then
2126 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002127set dummy ${ac_tool_prefix}cc; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002128{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2129echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002130if test "${ac_cv_prog_CC+set}" = set; then
2131 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002132else
2133 if test -n "$CC"; then
2134 ac_cv_prog_CC="$CC" # Let the user override the test.
2135else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2137for as_dir in $PATH
2138do
2139 IFS=$as_save_IFS
2140 test -z "$as_dir" && as_dir=.
2141 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002142 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002143 ac_cv_prog_CC="${ac_tool_prefix}cc"
2144 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2145 break 2
2146 fi
2147done
2148done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002149IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002150
2151fi
2152fi
2153CC=$ac_cv_prog_CC
2154if test -n "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002155 { echo "$as_me:$LINENO: result: $CC" >&5
2156echo "${ECHO_T}$CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002157else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002158 { echo "$as_me:$LINENO: result: no" >&5
2159echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002160fi
2161
Theodore Ts'oe1052142006-10-21 21:46:47 -04002162
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002163 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002164fi
2165if test -z "$CC"; then
2166 # Extract the first word of "cc", so it can be a program name with args.
2167set dummy cc; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002168{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2169echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002170if test "${ac_cv_prog_CC+set}" = set; then
2171 echo $ECHO_N "(cached) $ECHO_C" >&6
2172else
2173 if test -n "$CC"; then
2174 ac_cv_prog_CC="$CC" # Let the user override the test.
2175else
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002176 ac_prog_rejected=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002177as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2178for as_dir in $PATH
2179do
2180 IFS=$as_save_IFS
2181 test -z "$as_dir" && as_dir=.
2182 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002184 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2185 ac_prog_rejected=yes
2186 continue
2187 fi
2188 ac_cv_prog_CC="cc"
2189 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2190 break 2
2191 fi
2192done
2193done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002194IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002195
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002196if test $ac_prog_rejected = yes; then
2197 # We found a bogon in the path, so make sure we never use it.
2198 set dummy $ac_cv_prog_CC
2199 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002200 if test $# != 0; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002201 # We chose a different compiler from the bogus one.
2202 # However, it has the same basename, so the bogon will be chosen
2203 # first if we set CC to just the basename; use the full file name.
2204 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002205 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002206 fi
2207fi
2208fi
2209fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002210CC=$ac_cv_prog_CC
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002211if test -n "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002212 { echo "$as_me:$LINENO: result: $CC" >&5
2213echo "${ECHO_T}$CC" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002214else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002215 { echo "$as_me:$LINENO: result: no" >&5
2216echo "${ECHO_T}no" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002217fi
2218
Theodore Ts'oe1052142006-10-21 21:46:47 -04002219
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002220fi
2221if test -z "$CC"; then
2222 if test -n "$ac_tool_prefix"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002223 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002224 do
2225 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2226set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002227{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2228echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002229if test "${ac_cv_prog_CC+set}" = set; then
2230 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002231else
2232 if test -n "$CC"; then
2233 ac_cv_prog_CC="$CC" # Let the user override the test.
2234else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002235as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2236for as_dir in $PATH
2237do
2238 IFS=$as_save_IFS
2239 test -z "$as_dir" && as_dir=.
2240 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002242 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2244 break 2
2245 fi
2246done
2247done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002248IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002249
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002250fi
2251fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002252CC=$ac_cv_prog_CC
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002253if test -n "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002254 { echo "$as_me:$LINENO: result: $CC" >&5
2255echo "${ECHO_T}$CC" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002256else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002257 { echo "$as_me:$LINENO: result: no" >&5
2258echo "${ECHO_T}no" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002259fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002260
Theodore Ts'oe1052142006-10-21 21:46:47 -04002261
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002262 test -n "$CC" && break
2263 done
2264fi
2265if test -z "$CC"; then
2266 ac_ct_CC=$CC
Theodore Ts'oe1052142006-10-21 21:46:47 -04002267 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002268do
2269 # Extract the first word of "$ac_prog", so it can be a program name with args.
2270set dummy $ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04002271{ echo "$as_me:$LINENO: checking for $ac_word" >&5
2272echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002273if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2274 echo $ECHO_N "(cached) $ECHO_C" >&6
2275else
2276 if test -n "$ac_ct_CC"; then
2277 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2278else
2279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2280for as_dir in $PATH
2281do
2282 IFS=$as_save_IFS
2283 test -z "$as_dir" && as_dir=.
2284 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002285 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002286 ac_cv_prog_ac_ct_CC="$ac_prog"
2287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2288 break 2
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002289 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002290done
2291done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002292IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002293
2294fi
2295fi
2296ac_ct_CC=$ac_cv_prog_ac_ct_CC
2297if test -n "$ac_ct_CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002298 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2299echo "${ECHO_T}$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002300else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002301 { echo "$as_me:$LINENO: result: no" >&5
2302echo "${ECHO_T}no" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002303fi
2304
Theodore Ts'oe1052142006-10-21 21:46:47 -04002305
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002306 test -n "$ac_ct_CC" && break
2307done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002308
Theodore Ts'oe1052142006-10-21 21:46:47 -04002309 if test "x$ac_ct_CC" = x; then
2310 CC=""
2311 else
2312 case $cross_compiling:$ac_tool_warned in
2313yes:)
2314{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2315whose name does not start with the host triplet. If you think this
2316configuration is useful to you, please write to autoconf@gnu.org." >&5
2317echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2318whose name does not start with the host triplet. If you think this
2319configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2320ac_tool_warned=yes ;;
2321esac
2322 CC=$ac_ct_CC
2323 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002324fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002325
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002326fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002327
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002328
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002329test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2330See \`config.log' for more details." >&5
2331echo "$as_me: error: no acceptable C compiler found in \$PATH
2332See \`config.log' for more details." >&2;}
2333 { (exit 1); exit 1; }; }
2334
2335# Provide some information about the compiler.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002336echo "$as_me:$LINENO: checking for C compiler version" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002337ac_compiler=`set X $ac_compile; echo $2`
Theodore Ts'oe1052142006-10-21 21:46:47 -04002338{ (ac_try="$ac_compiler --version >&5"
2339case "(($ac_try" in
2340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2341 *) ac_try_echo=$ac_try;;
2342esac
2343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2344 (eval "$ac_compiler --version >&5") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002345 ac_status=$?
2346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2347 (exit $ac_status); }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002348{ (ac_try="$ac_compiler -v >&5"
2349case "(($ac_try" in
2350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2351 *) ac_try_echo=$ac_try;;
2352esac
2353eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2354 (eval "$ac_compiler -v >&5") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002355 ac_status=$?
2356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357 (exit $ac_status); }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002358{ (ac_try="$ac_compiler -V >&5"
2359case "(($ac_try" in
2360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2361 *) ac_try_echo=$ac_try;;
2362esac
2363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2364 (eval "$ac_compiler -V >&5") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002365 ac_status=$?
2366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2367 (exit $ac_status); }
2368
2369cat >conftest.$ac_ext <<_ACEOF
2370/* confdefs.h. */
2371_ACEOF
2372cat confdefs.h >>conftest.$ac_ext
2373cat >>conftest.$ac_ext <<_ACEOF
2374/* end confdefs.h. */
2375
2376int
2377main ()
2378{
2379
2380 ;
2381 return 0;
2382}
2383_ACEOF
2384ac_clean_files_save=$ac_clean_files
2385ac_clean_files="$ac_clean_files a.out a.exe b.out"
2386# Try to create an executable without -o first, disregard a.out.
2387# It will help us diagnose broken compilers, and finding out an intuition
2388# of exeext.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002389{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2390echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002391ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04002392#
2393# List of possible output files, starting from the most likely.
2394# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2395# only as a last resort. b.out is created by i960 compilers.
2396ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2397#
2398# The IRIX 6 linker writes into existing files which may not be
2399# executable, retaining their permissions. Remove them first so a
2400# subsequent execution test works.
2401ac_rmfiles=
2402for ac_file in $ac_files
2403do
2404 case $ac_file in
2405 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2406 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2407 esac
2408done
2409rm -f $ac_rmfiles
2410
2411if { (ac_try="$ac_link_default"
2412case "(($ac_try" in
2413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2414 *) ac_try_echo=$ac_try;;
2415esac
2416eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2417 (eval "$ac_link_default") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002418 ac_status=$?
2419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2420 (exit $ac_status); }; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002421 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2422# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2423# in a Makefile. We should not override ac_cv_exeext if it was cached,
2424# so that the user can short-circuit this test for compilers unknown to
2425# Autoconf.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002426for ac_file in $ac_files ''
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002427do
2428 test -f "$ac_file" || continue
2429 case $ac_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04002430 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002431 ;;
2432 [ab].out )
2433 # We found the default executable, but exeext='' is most
2434 # certainly right.
2435 break;;
2436 *.* )
Theodore Ts'oe1052142006-10-21 21:46:47 -04002437 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2438 then :; else
2439 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2440 fi
2441 # We set ac_cv_exeext here because the later test for it is not
2442 # safe: cross compilers may not add the suffix if given an `-o'
2443 # argument, so we may need to know it at that point already.
2444 # Even if this section looks crufty: it has the advantage of
2445 # actually working.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002446 break;;
2447 * )
2448 break;;
2449 esac
2450done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002451test "$ac_cv_exeext" = no && ac_cv_exeext=
2452
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002453else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002454 ac_file=''
2455fi
2456
2457{ echo "$as_me:$LINENO: result: $ac_file" >&5
2458echo "${ECHO_T}$ac_file" >&6; }
2459if test -z "$ac_file"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002460 echo "$as_me: failed program was:" >&5
2461sed 's/^/| /' conftest.$ac_ext >&5
2462
2463{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
2464See \`config.log' for more details." >&5
2465echo "$as_me: error: C compiler cannot create executables
2466See \`config.log' for more details." >&2;}
2467 { (exit 77); exit 77; }; }
2468fi
2469
2470ac_exeext=$ac_cv_exeext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002471
Theodore Ts'oe1052142006-10-21 21:46:47 -04002472# Check that the compiler produces executables we can run. If not, either
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002473# the compiler is broken, or we cross compile.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002474{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2475echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002476# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2477# If not cross compiling, check that we can run a simple program.
2478if test "$cross_compiling" != yes; then
2479 if { ac_try='./$ac_file'
Theodore Ts'oe1052142006-10-21 21:46:47 -04002480 { (case "(($ac_try" in
2481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2482 *) ac_try_echo=$ac_try;;
2483esac
2484eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2485 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002486 ac_status=$?
2487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2488 (exit $ac_status); }; }; then
2489 cross_compiling=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002490 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002491 if test "$cross_compiling" = maybe; then
2492 cross_compiling=yes
2493 else
2494 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2495If you meant to cross compile, use \`--host'.
2496See \`config.log' for more details." >&5
2497echo "$as_me: error: cannot run C compiled programs.
2498If you meant to cross compile, use \`--host'.
2499See \`config.log' for more details." >&2;}
2500 { (exit 1); exit 1; }; }
2501 fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002502 fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002503fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002504{ echo "$as_me:$LINENO: result: yes" >&5
2505echo "${ECHO_T}yes" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002506
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002507rm -f a.out a.exe conftest$ac_cv_exeext b.out
2508ac_clean_files=$ac_clean_files_save
Theodore Ts'oe1052142006-10-21 21:46:47 -04002509# Check that the compiler produces executables we can run. If not, either
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002510# the compiler is broken, or we cross compile.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002511{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2512echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2513{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2514echo "${ECHO_T}$cross_compiling" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002515
Theodore Ts'oe1052142006-10-21 21:46:47 -04002516{ echo "$as_me:$LINENO: checking for suffix of executables" >&5
2517echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2518if { (ac_try="$ac_link"
2519case "(($ac_try" in
2520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2521 *) ac_try_echo=$ac_try;;
2522esac
2523eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2524 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002525 ac_status=$?
2526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2527 (exit $ac_status); }; then
2528 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2529# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2530# work properly (i.e., refer to `conftest.exe'), while it won't with
2531# `rm'.
2532for ac_file in conftest.exe conftest conftest.*; do
2533 test -f "$ac_file" || continue
2534 case $ac_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04002535 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002536 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002537 break;;
2538 * ) break;;
2539 esac
2540done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002541else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002542 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2543See \`config.log' for more details." >&5
2544echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2545See \`config.log' for more details." >&2;}
2546 { (exit 1); exit 1; }; }
2547fi
2548
2549rm -f conftest$ac_cv_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04002550{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2551echo "${ECHO_T}$ac_cv_exeext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002552
2553rm -f conftest.$ac_ext
2554EXEEXT=$ac_cv_exeext
2555ac_exeext=$EXEEXT
Theodore Ts'oe1052142006-10-21 21:46:47 -04002556{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2557echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002558if test "${ac_cv_objext+set}" = set; then
2559 echo $ECHO_N "(cached) $ECHO_C" >&6
2560else
2561 cat >conftest.$ac_ext <<_ACEOF
2562/* confdefs.h. */
2563_ACEOF
2564cat confdefs.h >>conftest.$ac_ext
2565cat >>conftest.$ac_ext <<_ACEOF
2566/* end confdefs.h. */
2567
2568int
2569main ()
2570{
2571
2572 ;
2573 return 0;
2574}
2575_ACEOF
2576rm -f conftest.o conftest.obj
Theodore Ts'oe1052142006-10-21 21:46:47 -04002577if { (ac_try="$ac_compile"
2578case "(($ac_try" in
2579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2580 *) ac_try_echo=$ac_try;;
2581esac
2582eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2583 (eval "$ac_compile") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002584 ac_status=$?
2585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586 (exit $ac_status); }; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002587 for ac_file in conftest.o conftest.obj conftest.*; do
2588 test -f "$ac_file" || continue;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002589 case $ac_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04002590 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002591 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2592 break;;
2593 esac
2594done
2595else
2596 echo "$as_me: failed program was:" >&5
2597sed 's/^/| /' conftest.$ac_ext >&5
2598
2599{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2600See \`config.log' for more details." >&5
2601echo "$as_me: error: cannot compute suffix of object files: cannot compile
2602See \`config.log' for more details." >&2;}
2603 { (exit 1); exit 1; }; }
2604fi
2605
2606rm -f conftest.$ac_cv_objext conftest.$ac_ext
2607fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002608{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2609echo "${ECHO_T}$ac_cv_objext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002610OBJEXT=$ac_cv_objext
2611ac_objext=$OBJEXT
Theodore Ts'oe1052142006-10-21 21:46:47 -04002612{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2613echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002614if test "${ac_cv_c_compiler_gnu+set}" = set; then
2615 echo $ECHO_N "(cached) $ECHO_C" >&6
2616else
2617 cat >conftest.$ac_ext <<_ACEOF
2618/* confdefs.h. */
2619_ACEOF
2620cat confdefs.h >>conftest.$ac_ext
2621cat >>conftest.$ac_ext <<_ACEOF
2622/* end confdefs.h. */
2623
2624int
2625main ()
2626{
2627#ifndef __GNUC__
2628 choke me
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002629#endif
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002630
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002631 ;
2632 return 0;
2633}
2634_ACEOF
2635rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04002636if { (ac_try="$ac_compile"
2637case "(($ac_try" in
2638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2639 *) ac_try_echo=$ac_try;;
2640esac
2641eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2642 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002643 ac_status=$?
2644 grep -v '^ *+' conftest.er1 >conftest.err
2645 rm -f conftest.er1
2646 cat conftest.err >&5
2647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002648 (exit $ac_status); } && {
2649 test -z "$ac_c_werror_flag" ||
2650 test ! -s conftest.err
2651 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002652 ac_compiler_gnu=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002653else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002654 echo "$as_me: failed program was:" >&5
2655sed 's/^/| /' conftest.$ac_ext >&5
2656
Theodore Ts'oe1052142006-10-21 21:46:47 -04002657 ac_compiler_gnu=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002658fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002659
2660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002661ac_cv_c_compiler_gnu=$ac_compiler_gnu
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002662
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002663fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002664{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2665echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002666GCC=`test $ac_compiler_gnu = yes && echo yes`
2667ac_test_CFLAGS=${CFLAGS+set}
2668ac_save_CFLAGS=$CFLAGS
Theodore Ts'oe1052142006-10-21 21:46:47 -04002669{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2670echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002671if test "${ac_cv_prog_cc_g+set}" = set; then
2672 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002673else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002674 ac_save_c_werror_flag=$ac_c_werror_flag
2675 ac_c_werror_flag=yes
2676 ac_cv_prog_cc_g=no
2677 CFLAGS="-g"
2678 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002679/* confdefs.h. */
2680_ACEOF
2681cat confdefs.h >>conftest.$ac_ext
2682cat >>conftest.$ac_ext <<_ACEOF
2683/* end confdefs.h. */
2684
2685int
2686main ()
2687{
2688
2689 ;
2690 return 0;
2691}
2692_ACEOF
2693rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04002694if { (ac_try="$ac_compile"
2695case "(($ac_try" in
2696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2697 *) ac_try_echo=$ac_try;;
2698esac
2699eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2700 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002701 ac_status=$?
2702 grep -v '^ *+' conftest.er1 >conftest.err
2703 rm -f conftest.er1
2704 cat conftest.err >&5
2705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002706 (exit $ac_status); } && {
2707 test -z "$ac_c_werror_flag" ||
2708 test ! -s conftest.err
2709 } && test -s conftest.$ac_objext; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002710 ac_cv_prog_cc_g=yes
2711else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002712 echo "$as_me: failed program was:" >&5
2713sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002714
Theodore Ts'oe1052142006-10-21 21:46:47 -04002715 CFLAGS=""
2716 cat >conftest.$ac_ext <<_ACEOF
2717/* confdefs.h. */
2718_ACEOF
2719cat confdefs.h >>conftest.$ac_ext
2720cat >>conftest.$ac_ext <<_ACEOF
2721/* end confdefs.h. */
2722
2723int
2724main ()
2725{
2726
2727 ;
2728 return 0;
2729}
2730_ACEOF
2731rm -f conftest.$ac_objext
2732if { (ac_try="$ac_compile"
2733case "(($ac_try" in
2734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2735 *) ac_try_echo=$ac_try;;
2736esac
2737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2738 (eval "$ac_compile") 2>conftest.er1
2739 ac_status=$?
2740 grep -v '^ *+' conftest.er1 >conftest.err
2741 rm -f conftest.er1
2742 cat conftest.err >&5
2743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002744 (exit $ac_status); } && {
2745 test -z "$ac_c_werror_flag" ||
2746 test ! -s conftest.err
2747 } && test -s conftest.$ac_objext; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002748 :
2749else
2750 echo "$as_me: failed program was:" >&5
2751sed 's/^/| /' conftest.$ac_ext >&5
2752
2753 ac_c_werror_flag=$ac_save_c_werror_flag
2754 CFLAGS="-g"
2755 cat >conftest.$ac_ext <<_ACEOF
2756/* confdefs.h. */
2757_ACEOF
2758cat confdefs.h >>conftest.$ac_ext
2759cat >>conftest.$ac_ext <<_ACEOF
2760/* end confdefs.h. */
2761
2762int
2763main ()
2764{
2765
2766 ;
2767 return 0;
2768}
2769_ACEOF
2770rm -f conftest.$ac_objext
2771if { (ac_try="$ac_compile"
2772case "(($ac_try" in
2773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2774 *) ac_try_echo=$ac_try;;
2775esac
2776eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2777 (eval "$ac_compile") 2>conftest.er1
2778 ac_status=$?
2779 grep -v '^ *+' conftest.er1 >conftest.err
2780 rm -f conftest.er1
2781 cat conftest.err >&5
2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002783 (exit $ac_status); } && {
2784 test -z "$ac_c_werror_flag" ||
2785 test ! -s conftest.err
2786 } && test -s conftest.$ac_objext; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002787 ac_cv_prog_cc_g=yes
2788else
2789 echo "$as_me: failed program was:" >&5
2790sed 's/^/| /' conftest.$ac_ext >&5
2791
2792
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002793fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002794
2795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002796fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002797
2798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2799fi
2800
2801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2802 ac_c_werror_flag=$ac_save_c_werror_flag
2803fi
2804{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2805echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002806if test "$ac_test_CFLAGS" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002807 CFLAGS=$ac_save_CFLAGS
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002808elif test $ac_cv_prog_cc_g = yes; then
2809 if test "$GCC" = yes; then
2810 CFLAGS="-g -O2"
2811 else
2812 CFLAGS="-g"
2813 fi
2814else
2815 if test "$GCC" = yes; then
2816 CFLAGS="-O2"
2817 else
2818 CFLAGS=
2819 fi
2820fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002821{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2822echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2823if test "${ac_cv_prog_cc_c89+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002824 echo $ECHO_N "(cached) $ECHO_C" >&6
2825else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002826 ac_cv_prog_cc_c89=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002827ac_save_CC=$CC
2828cat >conftest.$ac_ext <<_ACEOF
2829/* confdefs.h. */
2830_ACEOF
2831cat confdefs.h >>conftest.$ac_ext
2832cat >>conftest.$ac_ext <<_ACEOF
2833/* end confdefs.h. */
2834#include <stdarg.h>
2835#include <stdio.h>
2836#include <sys/types.h>
2837#include <sys/stat.h>
2838/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2839struct buf { int x; };
2840FILE * (*rcsopen) (struct buf *, struct stat *, int);
2841static char *e (p, i)
2842 char **p;
2843 int i;
2844{
2845 return p[i];
2846}
2847static char *f (char * (*g) (char **, int), char **p, ...)
2848{
2849 char *s;
2850 va_list v;
2851 va_start (v,p);
2852 s = g (p, va_arg (v,int));
2853 va_end (v);
2854 return s;
2855}
2856
2857/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2858 function prototypes and stuff, but not '\xHH' hex character constants.
2859 These don't provoke an error unfortunately, instead are silently treated
Theodore Ts'oe1052142006-10-21 21:46:47 -04002860 as 'x'. The following induces an error, until -std is added to get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002861 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2862 array size at least. It's necessary to write '\x00'==0 to get something
Theodore Ts'oe1052142006-10-21 21:46:47 -04002863 that's true only with -std. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002864int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2865
Theodore Ts'oe1052142006-10-21 21:46:47 -04002866/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2867 inside strings and character constants. */
2868#define FOO(x) 'x'
2869int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2870
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002871int test (int i, double x);
2872struct s1 {int (*f) (int a);};
2873struct s2 {int (*f) (double a);};
2874int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2875int argc;
2876char **argv;
2877int
2878main ()
2879{
2880return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2881 ;
2882 return 0;
2883}
2884_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04002885for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2886 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002887do
2888 CC="$ac_save_CC $ac_arg"
2889 rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04002890if { (ac_try="$ac_compile"
2891case "(($ac_try" in
2892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2893 *) ac_try_echo=$ac_try;;
2894esac
2895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2896 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002897 ac_status=$?
2898 grep -v '^ *+' conftest.er1 >conftest.err
2899 rm -f conftest.er1
2900 cat conftest.err >&5
2901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002902 (exit $ac_status); } && {
2903 test -z "$ac_c_werror_flag" ||
2904 test ! -s conftest.err
2905 } && test -s conftest.$ac_objext; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04002906 ac_cv_prog_cc_c89=$ac_arg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002907else
2908 echo "$as_me: failed program was:" >&5
2909sed 's/^/| /' conftest.$ac_ext >&5
2910
Theodore Ts'oe1052142006-10-21 21:46:47 -04002911
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002912fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002913
2914rm -f core conftest.err conftest.$ac_objext
2915 test "x$ac_cv_prog_cc_c89" != "xno" && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002916done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002917rm -f conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002918CC=$ac_save_CC
2919
2920fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002921# AC_CACHE_VAL
2922case "x$ac_cv_prog_cc_c89" in
2923 x)
2924 { echo "$as_me:$LINENO: result: none needed" >&5
2925echo "${ECHO_T}none needed" >&6; } ;;
2926 xno)
2927 { echo "$as_me:$LINENO: result: unsupported" >&5
2928echo "${ECHO_T}unsupported" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002929 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04002930 CC="$CC $ac_cv_prog_cc_c89"
2931 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2932echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002933esac
2934
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002935
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002936ac_ext=c
2937ac_cpp='$CPP $CPPFLAGS'
2938ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2939ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2940ac_compiler_gnu=$ac_cv_c_compiler_gnu
2941
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002942ac_ext=c
2943ac_cpp='$CPP $CPPFLAGS'
2944ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2945ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2946ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'oe1052142006-10-21 21:46:47 -04002947{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2948echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002949# On Suns, sometimes $CPP names a directory.
2950if test -n "$CPP" && test -d "$CPP"; then
2951 CPP=
2952fi
2953if test -z "$CPP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002954 if test "${ac_cv_prog_CPP+set}" = set; then
2955 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002956else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002957 # Double quotes because CPP needs to be expanded
2958 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2959 do
2960 ac_preproc_ok=false
2961for ac_c_preproc_warn_flag in '' yes
2962do
2963 # Use a header file that comes with gcc, so configuring glibc
2964 # with a fresh cross-compiler works.
2965 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2966 # <limits.h> exists even on freestanding compilers.
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002967 # On the NeXT, cc -E runs the code through the compiler's parser,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002968 # not just through cpp. "Syntax error" is here to catch this case.
2969 cat >conftest.$ac_ext <<_ACEOF
2970/* confdefs.h. */
2971_ACEOF
2972cat confdefs.h >>conftest.$ac_ext
2973cat >>conftest.$ac_ext <<_ACEOF
2974/* end confdefs.h. */
2975#ifdef __STDC__
2976# include <limits.h>
2977#else
2978# include <assert.h>
2979#endif
2980 Syntax error
2981_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04002982if { (ac_try="$ac_cpp conftest.$ac_ext"
2983case "(($ac_try" in
2984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2985 *) ac_try_echo=$ac_try;;
2986esac
2987eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2988 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002989 ac_status=$?
2990 grep -v '^ *+' conftest.er1 >conftest.err
2991 rm -f conftest.er1
2992 cat conftest.err >&5
2993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04002994 (exit $ac_status); } >/dev/null && {
2995 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2996 test ! -s conftest.err
2997 }; then
Theodore Ts'of8bd9801999-10-26 04:19:45 +00002998 :
2999else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003000 echo "$as_me: failed program was:" >&5
3001sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003002
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003003 # Broken: fails on valid input.
3004continue
3005fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003006
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003007rm -f conftest.err conftest.$ac_ext
3008
Theodore Ts'oe1052142006-10-21 21:46:47 -04003009 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003010 # can be detected and how.
3011 cat >conftest.$ac_ext <<_ACEOF
3012/* confdefs.h. */
3013_ACEOF
3014cat confdefs.h >>conftest.$ac_ext
3015cat >>conftest.$ac_ext <<_ACEOF
3016/* end confdefs.h. */
3017#include <ac_nonexistent.h>
3018_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003019if { (ac_try="$ac_cpp conftest.$ac_ext"
3020case "(($ac_try" in
3021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022 *) ac_try_echo=$ac_try;;
3023esac
3024eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3025 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003026 ac_status=$?
3027 grep -v '^ *+' conftest.er1 >conftest.err
3028 rm -f conftest.er1
3029 cat conftest.err >&5
3030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003031 (exit $ac_status); } >/dev/null && {
3032 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3033 test ! -s conftest.err
3034 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003035 # Broken: success on invalid input.
3036continue
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003037else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003038 echo "$as_me: failed program was:" >&5
3039sed 's/^/| /' conftest.$ac_ext >&5
3040
3041 # Passes both tests.
3042ac_preproc_ok=:
3043break
3044fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003045
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003046rm -f conftest.err conftest.$ac_ext
3047
3048done
3049# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3050rm -f conftest.err conftest.$ac_ext
3051if $ac_preproc_ok; then
3052 break
3053fi
3054
3055 done
3056 ac_cv_prog_CPP=$CPP
3057
3058fi
3059 CPP=$ac_cv_prog_CPP
3060else
3061 ac_cv_prog_CPP=$CPP
3062fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003063{ echo "$as_me:$LINENO: result: $CPP" >&5
3064echo "${ECHO_T}$CPP" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003065ac_preproc_ok=false
3066for ac_c_preproc_warn_flag in '' yes
3067do
3068 # Use a header file that comes with gcc, so configuring glibc
3069 # with a fresh cross-compiler works.
3070 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3071 # <limits.h> exists even on freestanding compilers.
3072 # On the NeXT, cc -E runs the code through the compiler's parser,
3073 # not just through cpp. "Syntax error" is here to catch this case.
3074 cat >conftest.$ac_ext <<_ACEOF
3075/* confdefs.h. */
3076_ACEOF
3077cat confdefs.h >>conftest.$ac_ext
3078cat >>conftest.$ac_ext <<_ACEOF
3079/* end confdefs.h. */
3080#ifdef __STDC__
3081# include <limits.h>
3082#else
3083# include <assert.h>
3084#endif
3085 Syntax error
3086_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003087if { (ac_try="$ac_cpp conftest.$ac_ext"
3088case "(($ac_try" in
3089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3090 *) ac_try_echo=$ac_try;;
3091esac
3092eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3093 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003094 ac_status=$?
3095 grep -v '^ *+' conftest.er1 >conftest.err
3096 rm -f conftest.er1
3097 cat conftest.err >&5
3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003099 (exit $ac_status); } >/dev/null && {
3100 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3101 test ! -s conftest.err
3102 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003103 :
3104else
3105 echo "$as_me: failed program was:" >&5
3106sed 's/^/| /' conftest.$ac_ext >&5
3107
3108 # Broken: fails on valid input.
3109continue
3110fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003111
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003112rm -f conftest.err conftest.$ac_ext
3113
Theodore Ts'oe1052142006-10-21 21:46:47 -04003114 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003115 # can be detected and how.
3116 cat >conftest.$ac_ext <<_ACEOF
3117/* confdefs.h. */
3118_ACEOF
3119cat confdefs.h >>conftest.$ac_ext
3120cat >>conftest.$ac_ext <<_ACEOF
3121/* end confdefs.h. */
3122#include <ac_nonexistent.h>
3123_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003124if { (ac_try="$ac_cpp conftest.$ac_ext"
3125case "(($ac_try" in
3126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3127 *) ac_try_echo=$ac_try;;
3128esac
3129eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3130 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003131 ac_status=$?
3132 grep -v '^ *+' conftest.er1 >conftest.err
3133 rm -f conftest.er1
3134 cat conftest.err >&5
3135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003136 (exit $ac_status); } >/dev/null && {
3137 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3138 test ! -s conftest.err
3139 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003140 # Broken: success on invalid input.
3141continue
3142else
3143 echo "$as_me: failed program was:" >&5
3144sed 's/^/| /' conftest.$ac_ext >&5
3145
3146 # Passes both tests.
3147ac_preproc_ok=:
3148break
3149fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003150
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003151rm -f conftest.err conftest.$ac_ext
3152
3153done
3154# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3155rm -f conftest.err conftest.$ac_ext
3156if $ac_preproc_ok; then
3157 :
3158else
3159 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3160See \`config.log' for more details." >&5
3161echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3162See \`config.log' for more details." >&2;}
3163 { (exit 1); exit 1; }; }
3164fi
3165
3166ac_ext=c
3167ac_cpp='$CPP $CPPFLAGS'
3168ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3169ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3170ac_compiler_gnu=$ac_cv_c_compiler_gnu
3171
3172
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003173# Check whether --with-linker was given.
3174if test "${with_linker+set}" = set; then
3175 withval=$with_linker; { echo "$as_me:$LINENO: result: LD=$withval" >&5
3176echo "${ECHO_T}LD=$withval" >&6; }
3177LD=$withval
3178else
3179 if test -z "$LD" ; then LD=$CC; fi
3180{ echo "$as_me:$LINENO: result: LD defaults to $LD" >&5
3181echo "${ECHO_T}LD defaults to $LD" >&6; }
3182fi
3183export LD
3184
3185
3186# Check whether --with-ccopts was given.
3187if test "${with_ccopts+set}" = set; then
3188 withval=$with_ccopts; { echo "$as_me:$LINENO: result: CCOPTS is $withval" >&5
3189echo "${ECHO_T}CCOPTS is $withval" >&6; }
3190CFLAGS=$withval
3191fi
3192
3193
Theodore Ts'oe1052142006-10-21 21:46:47 -04003194{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3195echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3196if test "${ac_cv_path_GREP+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003197 echo $ECHO_N "(cached) $ECHO_C" >&6
3198else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003199 # Extract the first word of "grep ggrep" to use in msg output
3200if test -z "$GREP"; then
3201set dummy grep ggrep; ac_prog_name=$2
3202if test "${ac_cv_path_GREP+set}" = set; then
3203 echo $ECHO_N "(cached) $ECHO_C" >&6
3204else
3205 ac_path_GREP_found=false
3206# Loop through the user's path and test for each of PROGNAME-LIST
3207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3208for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3209do
3210 IFS=$as_save_IFS
3211 test -z "$as_dir" && as_dir=.
3212 for ac_prog in grep ggrep; do
3213 for ac_exec_ext in '' $ac_executable_extensions; do
3214 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003215 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
Theodore Ts'oe1052142006-10-21 21:46:47 -04003216 # Check for GNU ac_path_GREP and select it if it is found.
3217 # Check for GNU $ac_path_GREP
3218case `"$ac_path_GREP" --version 2>&1` in
3219*GNU*)
3220 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3221*)
3222 ac_count=0
3223 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3224 while :
3225 do
3226 cat "conftest.in" "conftest.in" >"conftest.tmp"
3227 mv "conftest.tmp" "conftest.in"
3228 cp "conftest.in" "conftest.nl"
3229 echo 'GREP' >> "conftest.nl"
3230 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3231 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3232 ac_count=`expr $ac_count + 1`
3233 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3234 # Best one so far, save it but keep looking for a better one
3235 ac_cv_path_GREP="$ac_path_GREP"
3236 ac_path_GREP_max=$ac_count
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003237 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003238 # 10*(2^10) chars as input seems more than enough
3239 test $ac_count -gt 10 && break
3240 done
3241 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3242esac
3243
3244
3245 $ac_path_GREP_found && break 3
3246 done
3247done
3248
3249done
3250IFS=$as_save_IFS
3251
3252
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003253fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003254
3255GREP="$ac_cv_path_GREP"
3256if test -z "$GREP"; then
3257 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3258echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3259 { (exit 1); exit 1; }; }
3260fi
3261
3262else
3263 ac_cv_path_GREP=$GREP
3264fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003265
3266
Theodore Ts'oe1052142006-10-21 21:46:47 -04003267fi
3268{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3269echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3270 GREP="$ac_cv_path_GREP"
3271
3272
3273{ echo "$as_me:$LINENO: checking for egrep" >&5
3274echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3275if test "${ac_cv_path_EGREP+set}" = set; then
3276 echo $ECHO_N "(cached) $ECHO_C" >&6
3277else
3278 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3279 then ac_cv_path_EGREP="$GREP -E"
3280 else
3281 # Extract the first word of "egrep" to use in msg output
3282if test -z "$EGREP"; then
3283set dummy egrep; ac_prog_name=$2
3284if test "${ac_cv_path_EGREP+set}" = set; then
3285 echo $ECHO_N "(cached) $ECHO_C" >&6
3286else
3287 ac_path_EGREP_found=false
3288# Loop through the user's path and test for each of PROGNAME-LIST
3289as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3290for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3291do
3292 IFS=$as_save_IFS
3293 test -z "$as_dir" && as_dir=.
3294 for ac_prog in egrep; do
3295 for ac_exec_ext in '' $ac_executable_extensions; do
3296 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003297 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
Theodore Ts'oe1052142006-10-21 21:46:47 -04003298 # Check for GNU ac_path_EGREP and select it if it is found.
3299 # Check for GNU $ac_path_EGREP
3300case `"$ac_path_EGREP" --version 2>&1` in
3301*GNU*)
3302 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3303*)
3304 ac_count=0
3305 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3306 while :
3307 do
3308 cat "conftest.in" "conftest.in" >"conftest.tmp"
3309 mv "conftest.tmp" "conftest.in"
3310 cp "conftest.in" "conftest.nl"
3311 echo 'EGREP' >> "conftest.nl"
3312 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3313 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3314 ac_count=`expr $ac_count + 1`
3315 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3316 # Best one so far, save it but keep looking for a better one
3317 ac_cv_path_EGREP="$ac_path_EGREP"
3318 ac_path_EGREP_max=$ac_count
3319 fi
3320 # 10*(2^10) chars as input seems more than enough
3321 test $ac_count -gt 10 && break
3322 done
3323 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3324esac
3325
3326
3327 $ac_path_EGREP_found && break 3
3328 done
3329done
3330
3331done
3332IFS=$as_save_IFS
3333
3334
3335fi
3336
3337EGREP="$ac_cv_path_EGREP"
3338if test -z "$EGREP"; then
3339 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3340echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3341 { (exit 1); exit 1; }; }
3342fi
3343
3344else
3345 ac_cv_path_EGREP=$EGREP
3346fi
3347
3348
3349 fi
3350fi
3351{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3352echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3353 EGREP="$ac_cv_path_EGREP"
3354
3355
3356{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3357echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003358if test "${ac_cv_header_stdc+set}" = set; then
3359 echo $ECHO_N "(cached) $ECHO_C" >&6
3360else
3361 cat >conftest.$ac_ext <<_ACEOF
3362/* confdefs.h. */
3363_ACEOF
3364cat confdefs.h >>conftest.$ac_ext
3365cat >>conftest.$ac_ext <<_ACEOF
3366/* end confdefs.h. */
3367#include <stdlib.h>
3368#include <stdarg.h>
3369#include <string.h>
3370#include <float.h>
3371
3372int
3373main ()
3374{
3375
3376 ;
3377 return 0;
3378}
3379_ACEOF
3380rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003381if { (ac_try="$ac_compile"
3382case "(($ac_try" in
3383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3384 *) ac_try_echo=$ac_try;;
3385esac
3386eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3387 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003388 ac_status=$?
3389 grep -v '^ *+' conftest.er1 >conftest.err
3390 rm -f conftest.er1
3391 cat conftest.err >&5
3392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003393 (exit $ac_status); } && {
3394 test -z "$ac_c_werror_flag" ||
3395 test ! -s conftest.err
3396 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003397 ac_cv_header_stdc=yes
3398else
3399 echo "$as_me: failed program was:" >&5
3400sed 's/^/| /' conftest.$ac_ext >&5
3401
Theodore Ts'oe1052142006-10-21 21:46:47 -04003402 ac_cv_header_stdc=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003403fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003404
3405rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003406
3407if test $ac_cv_header_stdc = yes; then
3408 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3409 cat >conftest.$ac_ext <<_ACEOF
3410/* confdefs.h. */
3411_ACEOF
3412cat confdefs.h >>conftest.$ac_ext
3413cat >>conftest.$ac_ext <<_ACEOF
3414/* end confdefs.h. */
3415#include <string.h>
3416
3417_ACEOF
3418if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3419 $EGREP "memchr" >/dev/null 2>&1; then
3420 :
3421else
3422 ac_cv_header_stdc=no
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003423fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003424rm -f conftest*
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003425
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003426fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003427
3428if test $ac_cv_header_stdc = yes; then
3429 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3430 cat >conftest.$ac_ext <<_ACEOF
3431/* confdefs.h. */
3432_ACEOF
3433cat confdefs.h >>conftest.$ac_ext
3434cat >>conftest.$ac_ext <<_ACEOF
3435/* end confdefs.h. */
3436#include <stdlib.h>
3437
3438_ACEOF
3439if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3440 $EGREP "free" >/dev/null 2>&1; then
3441 :
3442else
3443 ac_cv_header_stdc=no
3444fi
3445rm -f conftest*
3446
3447fi
3448
3449if test $ac_cv_header_stdc = yes; then
3450 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3451 if test "$cross_compiling" = yes; then
3452 :
3453else
3454 cat >conftest.$ac_ext <<_ACEOF
3455/* confdefs.h. */
3456_ACEOF
3457cat confdefs.h >>conftest.$ac_ext
3458cat >>conftest.$ac_ext <<_ACEOF
3459/* end confdefs.h. */
3460#include <ctype.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04003461#include <stdlib.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003462#if ((' ' & 0x0FF) == 0x020)
3463# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3464# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3465#else
3466# define ISLOWER(c) \
3467 (('a' <= (c) && (c) <= 'i') \
3468 || ('j' <= (c) && (c) <= 'r') \
3469 || ('s' <= (c) && (c) <= 'z'))
3470# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3471#endif
3472
3473#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3474int
3475main ()
3476{
3477 int i;
3478 for (i = 0; i < 256; i++)
3479 if (XOR (islower (i), ISLOWER (i))
3480 || toupper (i) != TOUPPER (i))
Theodore Ts'oe1052142006-10-21 21:46:47 -04003481 return 2;
3482 return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003483}
3484_ACEOF
3485rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003486if { (ac_try="$ac_link"
3487case "(($ac_try" in
3488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3489 *) ac_try_echo=$ac_try;;
3490esac
3491eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3492 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003493 ac_status=$?
3494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04003496 { (case "(($ac_try" in
3497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3498 *) ac_try_echo=$ac_try;;
3499esac
3500eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3501 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003502 ac_status=$?
3503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504 (exit $ac_status); }; }; then
3505 :
3506else
3507 echo "$as_me: program exited with status $ac_status" >&5
3508echo "$as_me: failed program was:" >&5
3509sed 's/^/| /' conftest.$ac_ext >&5
3510
3511( exit $ac_status )
3512ac_cv_header_stdc=no
3513fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003514rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3515fi
3516
3517
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003518fi
3519fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003520{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3521echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003522if test $ac_cv_header_stdc = yes; then
3523
3524cat >>confdefs.h <<\_ACEOF
3525#define STDC_HEADERS 1
3526_ACEOF
3527
3528fi
3529
3530# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3531
3532
3533
3534
3535
3536
3537
3538
3539
3540for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3541 inttypes.h stdint.h unistd.h
3542do
3543as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04003544{ echo "$as_me:$LINENO: checking for $ac_header" >&5
3545echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3546if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003547 echo $ECHO_N "(cached) $ECHO_C" >&6
3548else
3549 cat >conftest.$ac_ext <<_ACEOF
3550/* confdefs.h. */
3551_ACEOF
3552cat confdefs.h >>conftest.$ac_ext
3553cat >>conftest.$ac_ext <<_ACEOF
3554/* end confdefs.h. */
3555$ac_includes_default
3556
3557#include <$ac_header>
3558_ACEOF
3559rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003560if { (ac_try="$ac_compile"
3561case "(($ac_try" in
3562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3563 *) ac_try_echo=$ac_try;;
3564esac
3565eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3566 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003567 ac_status=$?
3568 grep -v '^ *+' conftest.er1 >conftest.err
3569 rm -f conftest.er1
3570 cat conftest.err >&5
3571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003572 (exit $ac_status); } && {
3573 test -z "$ac_c_werror_flag" ||
3574 test ! -s conftest.err
3575 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003576 eval "$as_ac_Header=yes"
3577else
3578 echo "$as_me: failed program was:" >&5
3579sed 's/^/| /' conftest.$ac_ext >&5
3580
Theodore Ts'oe1052142006-10-21 21:46:47 -04003581 eval "$as_ac_Header=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003582fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003583
3584rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003585fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003586ac_res=`eval echo '${'$as_ac_Header'}'`
3587 { echo "$as_me:$LINENO: result: $ac_res" >&5
3588echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003589if test `eval echo '${'$as_ac_Header'}'` = yes; then
3590 cat >>confdefs.h <<_ACEOF
3591#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3592_ACEOF
3593
3594fi
3595
3596done
3597
3598
3599if test "${ac_cv_header_linux_fs_h+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003600 { echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3601echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003602if test "${ac_cv_header_linux_fs_h+set}" = set; then
3603 echo $ECHO_N "(cached) $ECHO_C" >&6
3604fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003605{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3606echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003607else
3608 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04003609{ echo "$as_me:$LINENO: checking linux/fs.h usability" >&5
3610echo $ECHO_N "checking linux/fs.h usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003611cat >conftest.$ac_ext <<_ACEOF
3612/* confdefs.h. */
3613_ACEOF
3614cat confdefs.h >>conftest.$ac_ext
3615cat >>conftest.$ac_ext <<_ACEOF
3616/* end confdefs.h. */
3617$ac_includes_default
3618#include <linux/fs.h>
3619_ACEOF
3620rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003621if { (ac_try="$ac_compile"
3622case "(($ac_try" in
3623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3624 *) ac_try_echo=$ac_try;;
3625esac
3626eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3627 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003628 ac_status=$?
3629 grep -v '^ *+' conftest.er1 >conftest.err
3630 rm -f conftest.er1
3631 cat conftest.err >&5
3632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003633 (exit $ac_status); } && {
3634 test -z "$ac_c_werror_flag" ||
3635 test ! -s conftest.err
3636 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003637 ac_header_compiler=yes
3638else
3639 echo "$as_me: failed program was:" >&5
3640sed 's/^/| /' conftest.$ac_ext >&5
3641
Theodore Ts'oe1052142006-10-21 21:46:47 -04003642 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003643fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003644
3645rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3646{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3647echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003648
3649# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04003650{ echo "$as_me:$LINENO: checking linux/fs.h presence" >&5
3651echo $ECHO_N "checking linux/fs.h presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003652cat >conftest.$ac_ext <<_ACEOF
3653/* confdefs.h. */
3654_ACEOF
3655cat confdefs.h >>conftest.$ac_ext
3656cat >>conftest.$ac_ext <<_ACEOF
3657/* end confdefs.h. */
3658#include <linux/fs.h>
3659_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003660if { (ac_try="$ac_cpp conftest.$ac_ext"
3661case "(($ac_try" in
3662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3663 *) ac_try_echo=$ac_try;;
3664esac
3665eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3666 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003667 ac_status=$?
3668 grep -v '^ *+' conftest.er1 >conftest.err
3669 rm -f conftest.er1
3670 cat conftest.err >&5
3671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003672 (exit $ac_status); } >/dev/null && {
3673 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3674 test ! -s conftest.err
3675 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003676 ac_header_preproc=yes
3677else
3678 echo "$as_me: failed program was:" >&5
3679sed 's/^/| /' conftest.$ac_ext >&5
3680
3681 ac_header_preproc=no
3682fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003683
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003684rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003685{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3686echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003687
3688# So? What about this header?
3689case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3690 yes:no: )
3691 { echo "$as_me:$LINENO: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&5
3692echo "$as_me: WARNING: linux/fs.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3693 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the compiler's result" >&5
3694echo "$as_me: WARNING: linux/fs.h: proceeding with the compiler's result" >&2;}
3695 ac_header_preproc=yes
3696 ;;
3697 no:yes:* )
3698 { echo "$as_me:$LINENO: WARNING: linux/fs.h: present but cannot be compiled" >&5
3699echo "$as_me: WARNING: linux/fs.h: present but cannot be compiled" >&2;}
3700 { echo "$as_me:$LINENO: WARNING: linux/fs.h: check for missing prerequisite headers?" >&5
3701echo "$as_me: WARNING: linux/fs.h: check for missing prerequisite headers?" >&2;}
3702 { echo "$as_me:$LINENO: WARNING: linux/fs.h: see the Autoconf documentation" >&5
3703echo "$as_me: WARNING: linux/fs.h: see the Autoconf documentation" >&2;}
3704 { echo "$as_me:$LINENO: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&5
3705echo "$as_me: WARNING: linux/fs.h: section \"Present But Cannot Be Compiled\"" >&2;}
3706 { echo "$as_me:$LINENO: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&5
3707echo "$as_me: WARNING: linux/fs.h: proceeding with the preprocessor's result" >&2;}
3708 { echo "$as_me:$LINENO: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&5
3709echo "$as_me: WARNING: linux/fs.h: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04003710
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003711 ;;
3712esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04003713{ echo "$as_me:$LINENO: checking for linux/fs.h" >&5
3714echo $ECHO_N "checking for linux/fs.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003715if test "${ac_cv_header_linux_fs_h+set}" = set; then
3716 echo $ECHO_N "(cached) $ECHO_C" >&6
3717else
3718 ac_cv_header_linux_fs_h=$ac_header_preproc
3719fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003720{ echo "$as_me:$LINENO: result: $ac_cv_header_linux_fs_h" >&5
3721echo "${ECHO_T}$ac_cv_header_linux_fs_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003722
3723fi
3724if test $ac_cv_header_linux_fs_h = yes; then
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003725 linux_headers=yes
3726else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003727 linux_headers=no
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003728fi
3729
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003730
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003731if test "$linux_headers" != yes; then
3732 LINUX_INCLUDE='-I$(top_builddir)/include'
Theodore Ts'of8bd9801999-10-26 04:19:45 +00003733fi
3734
Theodore Ts'oe1052142006-10-21 21:46:47 -04003735{ echo "$as_me:$LINENO: checking for additional special compiler flags" >&5
3736echo $ECHO_N "checking for additional special compiler flags... $ECHO_C" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01003737if test "$GCC" = yes
3738then
3739 case "$host_cpu" in
3740 alpha) addcflags="-mieee" ;;
3741 esac
3742fi
3743if test "x$addcflags" != x
3744then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003745 { echo "$as_me:$LINENO: result: $addcflags" >&5
3746echo "${ECHO_T}$addcflags" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01003747 CFLAGS="$addcflags $CFLAGS"
3748else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003749 { echo "$as_me:$LINENO: result: (none)" >&5
3750echo "${ECHO_T}(none)" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01003751fi
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003752LIB_EXT=.a
3753STATIC_LIB_EXT=.a
3754PROFILE_LIB_EXT=.a
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003755
Theodore Ts'oe1052142006-10-21 21:46:47 -04003756# Check whether --with-ldopts was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003757if test "${with_ldopts+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003758 withval=$with_ldopts; { echo "$as_me:$LINENO: result: LDFLAGS is $withval" >&5
3759echo "${ECHO_T}LDFLAGS is $withval" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +00003760LDFLAGS=$withval
Theodore Ts'oe1052142006-10-21 21:46:47 -04003761fi
Theodore Ts'o74becf31997-04-26 14:37:06 +00003762
Theodore Ts'oe1052142006-10-21 21:46:47 -04003763
3764# Check whether --with-root-prefix was given.
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00003765if test "${with_root_prefix+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003766 withval=$with_root_prefix; root_prefix=$withval
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00003767else
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00003768 root_prefix=NONE
Theodore Ts'oe1052142006-10-21 21:46:47 -04003769fi
3770# Check whether --enable-maintainer-mode was given.
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003771if test "${enable_maintainer_mode+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003772 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003773then
3774 MAINTAINER_CMT=#
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003775 { echo "$as_me:$LINENO: result: Disabling maintainer mode" >&5
3776echo "${ECHO_T}Disabling maintainer mode" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003777else
3778 MAINTAINER_CMT=
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003779 { echo "$as_me:$LINENO: result: Enabling maintainer mode" >&5
3780echo "${ECHO_T}Enabling maintainer mode" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003781fi
3782
3783else
3784 MAINTAINER_CMT=#
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003785{ echo "$as_me:$LINENO: result: Disabling maintainer mode by default" >&5
3786echo "${ECHO_T}Disabling maintainer mode by default" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003787
Theodore Ts'oe1052142006-10-21 21:46:47 -04003788fi
Theodore Ts'o98919bd2005-02-04 10:43:58 -05003789
Theodore Ts'oe1052142006-10-21 21:46:47 -04003790
3791# Check whether --enable-compression was given.
Theodore Ts'o19178752000-02-11 15:55:07 +00003792if test "${enable_compression+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003793 enableval=$enable_compression; if test "$enableval" = "no"
Theodore Ts'o19178752000-02-11 15:55:07 +00003794then
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003795 { echo "$as_me:$LINENO: result: Disabling compression support" >&5
3796echo "${ECHO_T}Disabling compression support" >&6; }
Theodore Ts'o19178752000-02-11 15:55:07 +00003797else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003798 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o19178752000-02-11 15:55:07 +00003799#define ENABLE_COMPRESSION 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003800_ACEOF
Theodore Ts'o19178752000-02-11 15:55:07 +00003801
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003802 { echo "$as_me:$LINENO: result: Enabling compression support" >&5
3803echo "${ECHO_T}Enabling compression support" >&6; }
3804 { echo "$as_me:$LINENO: WARNING: Compression support is experimental" >&5
3805echo "$as_me: WARNING: Compression support is experimental" >&2;}
Theodore Ts'o19178752000-02-11 15:55:07 +00003806fi
3807
3808else
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003809 { echo "$as_me:$LINENO: result: Disabling compression support by default" >&5
3810echo "${ECHO_T}Disabling compression support by default" >&6; }
Theodore Ts'o19178752000-02-11 15:55:07 +00003811
Theodore Ts'oe1052142006-10-21 21:46:47 -04003812fi
3813
3814# Check whether --enable-htree was given.
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003815if test "${enable_htree+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003816 enableval=$enable_htree; if test "$enableval" = "no"
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003817then
3818 HTREE_CMT=#
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003819 { echo "$as_me:$LINENO: result: Disabling htree directory support" >&5
3820echo "${ECHO_T}Disabling htree directory support" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003821else
3822 HTREE_CMT=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003823 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003824#define ENABLE_HTREE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003825_ACEOF
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003826
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003827 { echo "$as_me:$LINENO: result: Enabling htree directory support" >&5
3828echo "${ECHO_T}Enabling htree directory support" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003829fi
3830
3831else
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04003832 HTREE_CMT=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003833cat >>confdefs.h <<\_ACEOF
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04003834#define ENABLE_HTREE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003835_ACEOF
Theodore Ts'o559ca6c2002-08-18 03:48:55 -04003836
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003837{ echo "$as_me:$LINENO: result: Enabling htree directory support by default" >&5
3838echo "${ECHO_T}Enabling htree directory support by default" >&6; }
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003839
Theodore Ts'oe1052142006-10-21 21:46:47 -04003840fi
Theodore Ts'o8fdc9982002-06-25 23:26:34 -04003841
Theodore Ts'oe1052142006-10-21 21:46:47 -04003842
Theodore Ts'oa4ece352008-01-01 20:05:04 -05003843E2_PKG_CONFIG_STATIC=--static
Theodore Ts'oe1052142006-10-21 21:46:47 -04003844# Check whether --enable-elf-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003845if test "${enable_elf_shlibs+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003846 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003847then
3848 ELF_CMT=#
3849 MAKEFILE_ELF=/dev/null
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003850 { echo "$as_me:$LINENO: result: Disabling ELF shared libraries" >&5
3851echo "${ECHO_T}Disabling ELF shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003852else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05003853 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003854 ELF_CMT=
3855 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
Theodore Ts'of5955dd2000-10-25 02:38:39 +00003856 case "$host_os" in
3857 solaris2.*)
3858 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
3859 ;;
3860 esac
Theodore Ts'o74becf31997-04-26 14:37:06 +00003861 BINARY_TYPE=elfbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003862 LIB_EXT=.so
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003863 { echo "$as_me:$LINENO: result: Enabling ELF shared libraries" >&5
3864echo "${ECHO_T}Enabling ELF shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003865fi
3866
3867else
3868 MAKEFILE_ELF=/dev/null
3869ELF_CMT=#
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003870{ echo "$as_me:$LINENO: result: Disabling ELF shared libraries by default" >&5
3871echo "${ECHO_T}Disabling ELF shared libraries by default" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003872
Theodore Ts'oe1052142006-10-21 21:46:47 -04003873fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003874
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003875
Theodore Ts'oe1052142006-10-21 21:46:47 -04003876
3877# Check whether --enable-bsd-shlibs was given.
Theodore Ts'o21c84b71997-04-29 16:15:03 +00003878if test "${enable_bsd_shlibs+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003879 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003880then
3881 BSDLIB_CMT=#
3882 MAKEFILE_BSDLIB=/dev/null
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003883 { echo "$as_me:$LINENO: result: Disabling BSD shared libraries" >&5
3884echo "${ECHO_T}Disabling BSD shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003885else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05003886 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003887 BSDLIB_CMT=
3888 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
Theodore Ts'oa4d09611997-04-29 14:28:00 +00003889 LIB_EXT=.so
Theodore Ts'oe1f07222003-03-14 02:25:36 -05003890 case "$host_os" in
Theodore Ts'oaa75ecc2003-03-17 10:01:22 -05003891 darwin*)
Theodore Ts'oe1f07222003-03-14 02:25:36 -05003892 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
3893 LIB_EXT=.dylib
3894 ;;
3895 esac
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003896 { echo "$as_me:$LINENO: result: Enabling BSD shared libraries" >&5
3897echo "${ECHO_T}Enabling BSD shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003898fi
3899
3900else
3901 MAKEFILE_BSDLIB=/dev/null
3902BSDLIB_CMT=#
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003903{ echo "$as_me:$LINENO: result: Disabling BSD shared libraries by default" >&5
3904echo "${ECHO_T}Disabling BSD shared libraries by default" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003905
Theodore Ts'oe1052142006-10-21 21:46:47 -04003906fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003907
Theodore Ts'o50e1e101997-04-26 13:58:21 +00003908
Theodore Ts'oe1052142006-10-21 21:46:47 -04003909
3910# Check whether --enable-profile was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003911if test "${enable_profile+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003912 enableval=$enable_profile; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003913then
3914 PROFILE_CMT=#
3915 MAKEFILE_PROFILE=/dev/null
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003916 { echo "$as_me:$LINENO: result: Disabling profiling libraries" >&5
3917echo "${ECHO_T}Disabling profiling libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003918else
3919 PROFILE_CMT=
3920 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
3921 PROFILED_LIB_EXT=_p.a
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003922 { echo "$as_me:$LINENO: result: Building profiling libraries" >&5
3923echo "${ECHO_T}Building profiling libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003924fi
3925
3926else
3927 PROFILE_CMT=#
3928MAKEFILE_PROFILE=/dev/null
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003929{ echo "$as_me:$LINENO: result: Disabling profiling libraries by default" >&5
3930echo "${ECHO_T}Disabling profiling libraries by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003931
Theodore Ts'oe1052142006-10-21 21:46:47 -04003932fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003933
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003934
Theodore Ts'oe1052142006-10-21 21:46:47 -04003935
3936# Check whether --enable-checker was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003937if test "${enable_checker+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003938 enableval=$enable_checker; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003939then
3940 CHECKER_CMT=#
3941 MAKEFILE_CHECKER=/dev/null
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003942 { echo "$as_me:$LINENO: result: Disabling checker libraries" >&5
3943echo "${ECHO_T}Disabling checker libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003944else
3945 CHECKER_CMT=
3946 MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003947 { echo "$as_me:$LINENO: result: Building checker libraries" >&5
3948echo "${ECHO_T}Building checker libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003949fi
3950
3951else
3952 CHECKER_CMT=#
3953MAKEFILE_CHECKER=/dev/null
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003954{ echo "$as_me:$LINENO: result: Disabling checker libraries by default" >&5
3955echo "${ECHO_T}Disabling checker libraries by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003956
Theodore Ts'oe1052142006-10-21 21:46:47 -04003957fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003958
3959
3960
3961
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00003962
Theodore Ts'oe1052142006-10-21 21:46:47 -04003963
3964# Check whether --enable-jbd-debug was given.
Theodore Ts'o782bebf2002-11-08 18:46:45 -05003965if test "${enable_jbd_debug+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003966 enableval=$enable_jbd_debug; if test "$enableval" = "no"
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00003967then
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003968 { echo "$as_me:$LINENO: result: Disabling journal debugging" >&5
3969echo "${ECHO_T}Disabling journal debugging" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00003970else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003971 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o8cf93332001-12-16 02:23:36 -05003972#define CONFIG_JBD_DEBUG 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003973_ACEOF
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00003974
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003975 { echo "$as_me:$LINENO: result: Enabling journal debugging" >&5
3976echo "${ECHO_T}Enabling journal debugging" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00003977fi
3978
3979else
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003980 { echo "$as_me:$LINENO: result: Disabling journal debugging by default" >&5
3981echo "${ECHO_T}Disabling journal debugging by default" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00003982
Theodore Ts'oe1052142006-10-21 21:46:47 -04003983fi
3984
3985# Check whether --enable-blkid-debug was given.
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003986if test "${enable_blkid_debug+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003987 enableval=$enable_blkid_debug; if test "$enableval" = "no"
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003988then
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003989 { echo "$as_me:$LINENO: result: Disabling blkid debugging" >&5
3990echo "${ECHO_T}Disabling blkid debugging" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003991else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003992 cat >>confdefs.h <<\_ACEOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003993#define CONFIG_BLKID_DEBUG 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003994_ACEOF
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003995
Theodore Ts'o02d04db2008-08-22 10:52:42 -04003996 { echo "$as_me:$LINENO: result: Enabling blkid debugging" >&5
3997echo "${ECHO_T}Enabling blkid debugging" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05003998fi
3999
4000else
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004001 { echo "$as_me:$LINENO: result: Disabling blkid debugging by default" >&5
4002echo "${ECHO_T}Disabling blkid debugging by default" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05004003
Theodore Ts'oe1052142006-10-21 21:46:47 -04004004fi
4005
4006# Check whether --enable-testio-debug was given.
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004007if test "${enable_testio_debug+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004008 enableval=$enable_testio_debug; if test "$enableval" = "no"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004009then
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004010 { echo "$as_me:$LINENO: result: Disabling testio debugging" >&5
4011echo "${ECHO_T}Disabling testio debugging" >&6; }
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004012else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004013 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004014#define CONFIG_TESTIO_DEBUG 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004015_ACEOF
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004016
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004017 { echo "$as_me:$LINENO: result: Enabling testio debugging" >&5
4018echo "${ECHO_T}Enabling testio debugging" >&6; }
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004019fi
4020
4021else
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004022 { echo "$as_me:$LINENO: result: Disabling testio debugging by default" >&5
4023echo "${ECHO_T}Disabling testio debugging by default" >&6; }
Theodore Ts'o2a29f132003-05-05 12:08:47 -04004024
Theodore Ts'oe1052142006-10-21 21:46:47 -04004025fi
4026
Theodore Ts'oe1052142006-10-21 21:46:47 -04004027# Check whether --enable-debugfs was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004028if test "${enable_debugfs+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004029 enableval=$enable_debugfs; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004030then
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004031 { echo "$as_me:$LINENO: result: Disabling debugfs support" >&5
4032echo "${ECHO_T}Disabling debugfs support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004033 DEBUGFS_CMT="#"
4034else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004035 DEBUGFS_CMT=
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004036 { echo "$as_me:$LINENO: result: Enabling debugfs support" >&5
4037echo "${ECHO_T}Enabling debugfs support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004038fi
4039
4040else
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004041 { echo "$as_me:$LINENO: result: Enabling debugfs support by default" >&5
4042echo "${ECHO_T}Enabling debugfs support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004043DEBUGFS_CMT=
4044
Theodore Ts'oe1052142006-10-21 21:46:47 -04004045fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004046
Theodore Ts'oe1052142006-10-21 21:46:47 -04004047
4048# Check whether --enable-imager was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004049if test "${enable_imager+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004050 enableval=$enable_imager; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004051then
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004052 { echo "$as_me:$LINENO: result: Disabling e2image support" >&5
4053echo "${ECHO_T}Disabling e2image support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004054 IMAGER_CMT="#"
4055else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004056 IMAGER_CMT=
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004057 { echo "$as_me:$LINENO: result: Enabling e2image support" >&5
4058echo "${ECHO_T}Enabling e2image support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004059fi
4060
4061else
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004062 { echo "$as_me:$LINENO: result: Enabling e2image support by default" >&5
4063echo "${ECHO_T}Enabling e2image support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004064IMAGER_CMT=
4065
Theodore Ts'oe1052142006-10-21 21:46:47 -04004066fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004067
Theodore Ts'oe1052142006-10-21 21:46:47 -04004068
4069# Check whether --enable-resizer was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004070if test "${enable_resizer+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004071 enableval=$enable_resizer; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004072then
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004073 { echo "$as_me:$LINENO: result: Disabling e2resize support" >&5
4074echo "${ECHO_T}Disabling e2resize support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004075 RESIZER_CMT="#"
4076else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004077 RESIZER_CMT=
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004078 { echo "$as_me:$LINENO: result: Enabling e2resize support" >&5
4079echo "${ECHO_T}Enabling e2resize support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004080fi
4081
4082else
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004083 { echo "$as_me:$LINENO: result: Enabling e2resize support by default" >&5
4084echo "${ECHO_T}Enabling e2resize support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004085RESIZER_CMT=
4086
Theodore Ts'oe1052142006-10-21 21:46:47 -04004087fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004088
Theodore Ts'oe1052142006-10-21 21:46:47 -04004089
Theodore Ts'oe1052142006-10-21 21:46:47 -04004090# Check whether --enable-fsck was given.
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004091if test "${enable_fsck+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004092 enableval=$enable_fsck; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004093then
4094 FSCK_PROG='' FSCK_MAN=''
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004095 { echo "$as_me:$LINENO: result: Not building fsck wrapper" >&5
4096echo "${ECHO_T}Not building fsck wrapper" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004097else
4098 FSCK_PROG=fsck FSCK_MAN=fsck.8
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004099 { echo "$as_me:$LINENO: result: Building fsck wrapper" >&5
4100echo "${ECHO_T}Building fsck wrapper" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004101fi
4102
4103else
4104 case "$host_os" in
Theodore Ts'oe3632402004-05-04 19:39:54 -04004105 gnu*)
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004106 FSCK_PROG='' FSCK_MAN=''
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004107 { echo "$as_me:$LINENO: result: Not building fsck wrapper by default" >&5
4108echo "${ECHO_T}Not building fsck wrapper by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004109 ;;
4110 *)
4111 FSCK_PROG=fsck FSCK_MAN=fsck.8
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004112 { echo "$as_me:$LINENO: result: Building fsck wrapper by default" >&5
4113echo "${ECHO_T}Building fsck wrapper by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004114esac
4115
Theodore Ts'oe1052142006-10-21 21:46:47 -04004116fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004117
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004118
Theodore Ts'oe1052142006-10-21 21:46:47 -04004119
4120# Check whether --enable-e2initrd-helper was given.
Theodore Ts'o5d407732004-09-18 14:53:14 -04004121if test "${enable_e2initrd_helper+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004122 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
Theodore Ts'o5d407732004-09-18 14:53:14 -04004123then
4124 E2INITRD_PROG='' E2INITRD_MAN=''
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004125 { echo "$as_me:$LINENO: result: Not building e2initrd helper" >&5
4126echo "${ECHO_T}Not building e2initrd helper" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04004127else
4128 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004129 { echo "$as_me:$LINENO: result: Building e2initrd helper" >&5
4130echo "${ECHO_T}Building e2initrd helper" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04004131fi
4132
4133else
4134 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004135{ echo "$as_me:$LINENO: result: Building e2initrd helper by default" >&5
4136echo "${ECHO_T}Building e2initrd helper by default" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04004137
Theodore Ts'oe1052142006-10-21 21:46:47 -04004138fi
Theodore Ts'o5d407732004-09-18 14:53:14 -04004139
4140
Theodore Ts'oe1052142006-10-21 21:46:47 -04004141
Theodore Ts'o32493942007-12-31 10:45:01 -05004142# Check whether --enable-tls was given.
4143if test "${enable_tls+set}" = set; then
4144 enableval=$enable_tls; if test "$enableval" = "no"
4145then
4146 try_tls=""
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004147 { echo "$as_me:$LINENO: result: Disabling thread local support" >&5
4148echo "${ECHO_T}Disabling thread local support" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05004149else
4150 try_tls="yes"
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004151 { echo "$as_me:$LINENO: result: Enabling thread local support" >&5
4152echo "${ECHO_T}Enabling thread local support" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05004153fi
4154
4155else
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04004156 if test -n "$WITH_DIET_LIBC"
4157then
4158 try_tls=""
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004159 { echo "$as_me:$LINENO: result: Diet libc does not support thread local support" >&5
4160echo "${ECHO_T}Diet libc does not support thread local support" >&6; }
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04004161else
4162 try_tls="yes"
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004163 { echo "$as_me:$LINENO: result: Try using thread local support by default" >&5
4164echo "${ECHO_T}Try using thread local support by default" >&6; }
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04004165fi
Theodore Ts'o32493942007-12-31 10:45:01 -05004166
4167fi
4168
4169if test "$try_tls" = "yes"
4170then
4171
4172 { echo "$as_me:$LINENO: checking for thread local storage (TLS) class" >&5
4173echo $ECHO_N "checking for thread local storage (TLS) class... $ECHO_C" >&6; }
4174 if test "${ac_cv_tls+set}" = set; then
4175 echo $ECHO_N "(cached) $ECHO_C" >&6
4176else
4177
4178 ax_tls_keywords="__thread __declspec(thread) none"
4179 for ax_tls_keyword in $ax_tls_keywords; do
4180 case $ax_tls_keyword in
4181 none) ac_cv_tls=none ; break ;;
4182 *)
4183 cat >conftest.$ac_ext <<_ACEOF
4184/* confdefs.h. */
4185_ACEOF
4186cat confdefs.h >>conftest.$ac_ext
4187cat >>conftest.$ac_ext <<_ACEOF
4188/* end confdefs.h. */
4189#include <stdlib.h>
4190 static void
4191 foo(void) {
4192 static $ax_tls_keyword int bar;
4193 exit(1);
4194 }
4195int
4196main ()
4197{
4198
4199 ;
4200 return 0;
4201}
4202_ACEOF
4203rm -f conftest.$ac_objext
4204if { (ac_try="$ac_compile"
4205case "(($ac_try" in
4206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4207 *) ac_try_echo=$ac_try;;
4208esac
4209eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4210 (eval "$ac_compile") 2>conftest.er1
4211 ac_status=$?
4212 grep -v '^ *+' conftest.er1 >conftest.err
4213 rm -f conftest.er1
4214 cat conftest.err >&5
4215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4216 (exit $ac_status); } && {
4217 test -z "$ac_c_werror_flag" ||
4218 test ! -s conftest.err
4219 } && test -s conftest.$ac_objext; then
4220 ac_cv_tls=$ax_tls_keyword ; break
4221else
4222 echo "$as_me: failed program was:" >&5
4223sed 's/^/| /' conftest.$ac_ext >&5
4224
4225 ac_cv_tls=none
4226
4227fi
4228
4229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4230 esac
4231 done
4232
4233fi
4234
4235
4236 if test "$ac_cv_tls" != "none"; then
4237
4238cat >>confdefs.h <<_ACEOF
4239#define TLS $ac_cv_tls
4240_ACEOF
4241
4242 fi
4243 { echo "$as_me:$LINENO: result: $ac_cv_tls" >&5
4244echo "${ECHO_T}$ac_cv_tls" >&6; }
4245
4246fi
Theodore Ts'o5610f992007-12-31 11:16:56 -05004247# Check whether --enable-uuidd was given.
4248if test "${enable_uuidd+set}" = set; then
4249 enableval=$enable_uuidd; if test "$enableval" = "no"
4250then
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004251 { echo "$as_me:$LINENO: result: Not building uuidd" >&5
4252echo "${ECHO_T}Not building uuidd" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05004253 UUIDD_CMT="#"
4254else
4255 cat >>confdefs.h <<\_ACEOF
4256#define USE_UUIDD 1
4257_ACEOF
4258
4259 UUIDD_CMT=""
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004260 { echo "$as_me:$LINENO: result: Building uuidd" >&5
4261echo "${ECHO_T}Building uuidd" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05004262fi
4263
4264else
4265 cat >>confdefs.h <<\_ACEOF
4266#define USE_UUIDD 1
4267_ACEOF
4268
4269UUIDD_CMT=""
Theodore Ts'o02d04db2008-08-22 10:52:42 -04004270{ echo "$as_me:$LINENO: result: Building uuidd by default" >&5
4271echo "${ECHO_T}Building uuidd by default" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05004272
4273fi
4274
4275
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004276MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
4277
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004278GETTEXT_PACKAGE=e2fsprogs
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004279PACKAGE=e2fsprogs
4280VERSION="$E2FSPROGS_VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004281VERSION=0.14.1
4282cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004283#define PACKAGE "$PACKAGE"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004284_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004285
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004286cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004287#define VERSION "$VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004288_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004289
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004290
4291
4292
4293
Theodore Ts'oe1052142006-10-21 21:46:47 -04004294{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4295echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
4296set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4297if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004298 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004299else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004300 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04004301SHELL = /bin/sh
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004302all:
Theodore Ts'oe1052142006-10-21 21:46:47 -04004303 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004304_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004305# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -04004306case `${MAKE-make} -f conftest.make 2>/dev/null` in
4307 *@@@%%%=?*=@@@%%%*)
4308 eval ac_cv_prog_make_${ac_make}_set=yes;;
4309 *)
4310 eval ac_cv_prog_make_${ac_make}_set=no;;
4311esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004312rm -f conftest.make
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004313fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004314if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4315 { echo "$as_me:$LINENO: result: yes" >&5
4316echo "${ECHO_T}yes" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004317 SET_MAKE=
4318else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004319 { echo "$as_me:$LINENO: result: no" >&5
4320echo "${ECHO_T}no" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004321 SET_MAKE="MAKE=${MAKE-make}"
4322fi
4323
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004324# Find a good install program. We prefer a C program (faster),
4325# so one script is as good as another. But avoid the broken or
4326# incompatible versions:
4327# SysV /etc/install, /usr/sbin/install
4328# SunOS /usr/etc/install
4329# IRIX /sbin/install
4330# AIX /bin/install
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004331# AmigaOS /C/install, which installs bootblocks on floppy discs
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004332# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4333# AFS /usr/afsws/bin/install, which mishandles nonexistent args
4334# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004335# OS/2's system install, which has a completely different semantic
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004336# ./install, which can be erroneously created by make from ./install.sh.
Theodore Ts'oe1052142006-10-21 21:46:47 -04004337{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4338echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004339if test -z "$INSTALL"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004340if test "${ac_cv_path_install+set}" = set; then
4341 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004342else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4344for as_dir in $PATH
4345do
4346 IFS=$as_save_IFS
4347 test -z "$as_dir" && as_dir=.
4348 # Account for people who put trailing slashes in PATH elements.
4349case $as_dir/ in
4350 ./ | .// | /cC/* | \
4351 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4352 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4353 /usr/ucb/* ) ;;
4354 *)
4355 # OSF1 and SCO ODT 3.0 have their own names for install.
4356 # Don't use installbsd from OSF since it installs stuff as root
4357 # by default.
4358 for ac_prog in ginstall scoinst install; do
4359 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004360 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004361 if test $ac_prog = install &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004362 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004363 # AIX install. It has an incompatible calling convention.
4364 :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004365 elif test $ac_prog = install &&
4366 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4367 # program-specific install script used by HP pwplus--don't use.
4368 :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004369 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004370 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4371 break 3
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004372 fi
4373 fi
4374 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004375 done
4376 ;;
4377esac
4378done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004379IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004380
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004381
4382fi
4383 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004384 INSTALL=$ac_cv_path_install
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004385 else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004386 # As a last resort, use the slow shell script. Don't cache a
4387 # value for INSTALL within a source directory, because that will
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004388 # break other packages using the cache if that directory is
Theodore Ts'oe1052142006-10-21 21:46:47 -04004389 # removed, or if the value is a relative name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004390 INSTALL=$ac_install_sh
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004391 fi
4392fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004393{ echo "$as_me:$LINENO: result: $INSTALL" >&5
4394echo "${ECHO_T}$INSTALL" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004395
4396# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4397# It thinks the first close brace ends the variable substitution.
4398test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4399
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004400test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004401
4402test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4403
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004404
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004405 MKINSTALLDIRS=
4406 if test -n "$ac_aux_dir"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004407 case "$ac_aux_dir" in
4408 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
4409 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
4410 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004411 fi
4412 if test -z "$MKINSTALLDIRS"; then
4413 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
4414 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04004415
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004416
4417
Theodore Ts'oe1052142006-10-21 21:46:47 -04004418 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
4419echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
4420 # Check whether --enable-nls was given.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004421if test "${enable_nls+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004422 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004423else
4424 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04004425fi
4426
4427 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
4428echo "${ECHO_T}$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004429
4430
4431
4432
4433
4434
4435# Prepare PATH_SEPARATOR.
4436# The user is always right.
4437if test "${PATH_SEPARATOR+set}" != set; then
4438 echo "#! /bin/sh" >conf$$.sh
4439 echo "exit 0" >>conf$$.sh
4440 chmod +x conf$$.sh
4441 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4442 PATH_SEPARATOR=';'
4443 else
4444 PATH_SEPARATOR=:
4445 fi
4446 rm -f conf$$.sh
4447fi
4448
4449# Find out how to test for executable files. Don't use a zero-byte file,
4450# as systems may use methods other than mode bits to determine executability.
4451cat >conf$$.file <<_ASEOF
4452#! /bin/sh
4453exit 0
4454_ASEOF
4455chmod +x conf$$.file
4456if test -x conf$$.file >/dev/null 2>&1; then
4457 ac_executable_p="test -x"
4458else
4459 ac_executable_p="test -f"
4460fi
4461rm -f conf$$.file
4462
4463# Extract the first word of "msgfmt", so it can be a program name with args.
4464set dummy msgfmt; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004465{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4466echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004467if test "${ac_cv_path_MSGFMT+set}" = set; then
4468 echo $ECHO_N "(cached) $ECHO_C" >&6
4469else
4470 case "$MSGFMT" in
4471 [\\/]* | ?:[\\/]*)
4472 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
4473 ;;
4474 *)
4475 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4476 for ac_dir in $PATH; do
4477 IFS="$ac_save_IFS"
4478 test -z "$ac_dir" && ac_dir=.
4479 for ac_exec_ext in '' $ac_executable_extensions; do
4480 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4481 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 &&
4482 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4483 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
4484 break 2
4485 fi
4486 fi
4487 done
4488 done
4489 IFS="$ac_save_IFS"
4490 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
4491 ;;
4492esac
4493fi
4494MSGFMT="$ac_cv_path_MSGFMT"
4495if test "$MSGFMT" != ":"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004496 { echo "$as_me:$LINENO: result: $MSGFMT" >&5
4497echo "${ECHO_T}$MSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004498else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004499 { echo "$as_me:$LINENO: result: no" >&5
4500echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004501fi
4502
4503 # Extract the first word of "gmsgfmt", so it can be a program name with args.
4504set dummy gmsgfmt; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004505{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4506echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004507if test "${ac_cv_path_GMSGFMT+set}" = set; then
4508 echo $ECHO_N "(cached) $ECHO_C" >&6
4509else
4510 case $GMSGFMT in
4511 [\\/]* | ?:[\\/]*)
4512 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
4513 ;;
4514 *)
4515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4516for as_dir in $PATH
4517do
4518 IFS=$as_save_IFS
4519 test -z "$as_dir" && as_dir=.
4520 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004522 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
4523 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4524 break 2
4525 fi
4526done
4527done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004528IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004529
4530 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
4531 ;;
4532esac
4533fi
4534GMSGFMT=$ac_cv_path_GMSGFMT
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004535if test -n "$GMSGFMT"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004536 { echo "$as_me:$LINENO: result: $GMSGFMT" >&5
4537echo "${ECHO_T}$GMSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004538else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004539 { echo "$as_me:$LINENO: result: no" >&5
4540echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004541fi
4542
4543
4544
Theodore Ts'oe1052142006-10-21 21:46:47 -04004545
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004546# Prepare PATH_SEPARATOR.
4547# The user is always right.
4548if test "${PATH_SEPARATOR+set}" != set; then
4549 echo "#! /bin/sh" >conf$$.sh
4550 echo "exit 0" >>conf$$.sh
4551 chmod +x conf$$.sh
4552 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4553 PATH_SEPARATOR=';'
4554 else
4555 PATH_SEPARATOR=:
4556 fi
4557 rm -f conf$$.sh
4558fi
4559
4560# Find out how to test for executable files. Don't use a zero-byte file,
4561# as systems may use methods other than mode bits to determine executability.
4562cat >conf$$.file <<_ASEOF
4563#! /bin/sh
4564exit 0
4565_ASEOF
4566chmod +x conf$$.file
4567if test -x conf$$.file >/dev/null 2>&1; then
4568 ac_executable_p="test -x"
4569else
4570 ac_executable_p="test -f"
4571fi
4572rm -f conf$$.file
4573
4574# Extract the first word of "xgettext", so it can be a program name with args.
4575set dummy xgettext; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004576{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4577echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004578if test "${ac_cv_path_XGETTEXT+set}" = set; then
4579 echo $ECHO_N "(cached) $ECHO_C" >&6
4580else
4581 case "$XGETTEXT" in
4582 [\\/]* | ?:[\\/]*)
4583 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
4584 ;;
4585 *)
4586 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4587 for ac_dir in $PATH; do
4588 IFS="$ac_save_IFS"
4589 test -z "$ac_dir" && ac_dir=.
4590 for ac_exec_ext in '' $ac_executable_extensions; do
4591 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4592 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4593 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4594 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
4595 break 2
4596 fi
4597 fi
4598 done
4599 done
4600 IFS="$ac_save_IFS"
4601 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
4602 ;;
4603esac
4604fi
4605XGETTEXT="$ac_cv_path_XGETTEXT"
4606if test "$XGETTEXT" != ":"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004607 { echo "$as_me:$LINENO: result: $XGETTEXT" >&5
4608echo "${ECHO_T}$XGETTEXT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004609else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004610 { echo "$as_me:$LINENO: result: no" >&5
4611echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004612fi
4613
4614 rm -f messages.po
4615
4616
4617# Prepare PATH_SEPARATOR.
4618# The user is always right.
4619if test "${PATH_SEPARATOR+set}" != set; then
4620 echo "#! /bin/sh" >conf$$.sh
4621 echo "exit 0" >>conf$$.sh
4622 chmod +x conf$$.sh
4623 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4624 PATH_SEPARATOR=';'
4625 else
4626 PATH_SEPARATOR=:
4627 fi
4628 rm -f conf$$.sh
4629fi
4630
4631# Find out how to test for executable files. Don't use a zero-byte file,
4632# as systems may use methods other than mode bits to determine executability.
4633cat >conf$$.file <<_ASEOF
4634#! /bin/sh
4635exit 0
4636_ASEOF
4637chmod +x conf$$.file
4638if test -x conf$$.file >/dev/null 2>&1; then
4639 ac_executable_p="test -x"
4640else
4641 ac_executable_p="test -f"
4642fi
4643rm -f conf$$.file
4644
4645# Extract the first word of "msgmerge", so it can be a program name with args.
4646set dummy msgmerge; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004647{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4648echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004649if test "${ac_cv_path_MSGMERGE+set}" = set; then
4650 echo $ECHO_N "(cached) $ECHO_C" >&6
4651else
4652 case "$MSGMERGE" in
4653 [\\/]* | ?:[\\/]*)
4654 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
4655 ;;
4656 *)
4657 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
4658 for ac_dir in $PATH; do
4659 IFS="$ac_save_IFS"
4660 test -z "$ac_dir" && ac_dir=.
4661 for ac_exec_ext in '' $ac_executable_extensions; do
4662 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
4663 if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then
4664 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
4665 break 2
4666 fi
4667 fi
4668 done
4669 done
4670 IFS="$ac_save_IFS"
4671 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
4672 ;;
4673esac
4674fi
4675MSGMERGE="$ac_cv_path_MSGMERGE"
4676if test "$MSGMERGE" != ":"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004677 { echo "$as_me:$LINENO: result: $MSGMERGE" >&5
4678echo "${ECHO_T}$MSGMERGE" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004679else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004680 { echo "$as_me:$LINENO: result: no" >&5
4681echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004682fi
4683
4684
4685 if test "$GMSGFMT" != ":"; then
4686 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 &&
4687 (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4688 : ;
4689 else
4690 GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04004691 { echo "$as_me:$LINENO: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5
4692echo "${ECHO_T}found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004693 GMSGFMT=":"
4694 fi
4695 fi
4696
4697 if test "$XGETTEXT" != ":"; then
4698 if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 &&
4699 (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
4700 : ;
4701 else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004702 { echo "$as_me:$LINENO: result: found xgettext program is not GNU xgettext; ignore it" >&5
4703echo "${ECHO_T}found xgettext program is not GNU xgettext; ignore it" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004704 XGETTEXT=":"
4705 fi
4706 rm -f messages.po
4707 fi
4708
Theodore Ts'oe1052142006-10-21 21:46:47 -04004709 ac_config_commands="$ac_config_commands default-1"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004710
4711
4712if test -n "$ac_tool_prefix"; then
4713 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4714set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004715{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4716echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004717if test "${ac_cv_prog_RANLIB+set}" = set; then
4718 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004719else
4720 if test -n "$RANLIB"; then
4721 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4722else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004723as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4724for as_dir in $PATH
4725do
4726 IFS=$as_save_IFS
4727 test -z "$as_dir" && as_dir=.
4728 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004730 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4732 break 2
4733 fi
4734done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004735done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004736IFS=$as_save_IFS
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00004737
4738fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004739fi
4740RANLIB=$ac_cv_prog_RANLIB
4741if test -n "$RANLIB"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004742 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4743echo "${ECHO_T}$RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004744else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004745 { echo "$as_me:$LINENO: result: no" >&5
4746echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004747fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004748
Theodore Ts'oe1052142006-10-21 21:46:47 -04004749
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004750fi
4751if test -z "$ac_cv_prog_RANLIB"; then
4752 ac_ct_RANLIB=$RANLIB
4753 # Extract the first word of "ranlib", so it can be a program name with args.
4754set dummy ranlib; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04004755{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4756echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004757if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4758 echo $ECHO_N "(cached) $ECHO_C" >&6
4759else
4760 if test -n "$ac_ct_RANLIB"; then
4761 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4762else
4763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4764for as_dir in $PATH
4765do
4766 IFS=$as_save_IFS
4767 test -z "$as_dir" && as_dir=.
4768 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004770 ac_cv_prog_ac_ct_RANLIB="ranlib"
4771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4772 break 2
4773 fi
4774done
4775done
Theodore Ts'oe1052142006-10-21 21:46:47 -04004776IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004777
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004778fi
4779fi
4780ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4781if test -n "$ac_ct_RANLIB"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04004782 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4783echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004784else
Theodore Ts'oe1052142006-10-21 21:46:47 -04004785 { echo "$as_me:$LINENO: result: no" >&5
4786echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004787fi
4788
Theodore Ts'oe1052142006-10-21 21:46:47 -04004789 if test "x$ac_ct_RANLIB" = x; then
4790 RANLIB=":"
4791 else
4792 case $cross_compiling:$ac_tool_warned in
4793yes:)
4794{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4795whose name does not start with the host triplet. If you think this
4796configuration is useful to you, please write to autoconf@gnu.org." >&5
4797echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4798whose name does not start with the host triplet. If you think this
4799configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4800ac_tool_warned=yes ;;
4801esac
4802 RANLIB=$ac_ct_RANLIB
4803 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004804else
4805 RANLIB="$ac_cv_prog_RANLIB"
4806fi
4807
4808
Theodore Ts'oe1052142006-10-21 21:46:47 -04004809 { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5
4810echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004811if test "${ac_cv_lib_cposix_strerror+set}" = set; then
4812 echo $ECHO_N "(cached) $ECHO_C" >&6
4813else
4814 ac_check_lib_save_LIBS=$LIBS
4815LIBS="-lcposix $LIBS"
4816cat >conftest.$ac_ext <<_ACEOF
4817/* confdefs.h. */
4818_ACEOF
4819cat confdefs.h >>conftest.$ac_ext
4820cat >>conftest.$ac_ext <<_ACEOF
4821/* end confdefs.h. */
4822
Theodore Ts'oe1052142006-10-21 21:46:47 -04004823/* Override any GCC internal prototype to avoid an error.
4824 Use char because int might match the return type of a GCC
4825 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004826#ifdef __cplusplus
4827extern "C"
4828#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004829char strerror ();
4830int
4831main ()
4832{
Theodore Ts'oe1052142006-10-21 21:46:47 -04004833return strerror ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004834 ;
4835 return 0;
4836}
4837_ACEOF
4838rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04004839if { (ac_try="$ac_link"
4840case "(($ac_try" in
4841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4842 *) ac_try_echo=$ac_try;;
4843esac
4844eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4845 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004846 ac_status=$?
4847 grep -v '^ *+' conftest.er1 >conftest.err
4848 rm -f conftest.er1
4849 cat conftest.err >&5
4850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004851 (exit $ac_status); } && {
4852 test -z "$ac_c_werror_flag" ||
4853 test ! -s conftest.err
4854 } && test -s conftest$ac_exeext &&
4855 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004856 ac_cv_lib_cposix_strerror=yes
4857else
4858 echo "$as_me: failed program was:" >&5
4859sed 's/^/| /' conftest.$ac_ext >&5
4860
Theodore Ts'oe1052142006-10-21 21:46:47 -04004861 ac_cv_lib_cposix_strerror=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004862fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004863
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004864rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004865 conftest$ac_exeext conftest.$ac_ext
4866LIBS=$ac_check_lib_save_LIBS
4867fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004868{ echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5
4869echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004870if test $ac_cv_lib_cposix_strerror = yes; then
4871 LIBS="$LIBS -lcposix"
4872fi
4873
4874
4875
Theodore Ts'oe1052142006-10-21 21:46:47 -04004876{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
4877echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004878if test "${ac_cv_c_const+set}" = set; then
4879 echo $ECHO_N "(cached) $ECHO_C" >&6
4880else
4881 cat >conftest.$ac_ext <<_ACEOF
4882/* confdefs.h. */
4883_ACEOF
4884cat confdefs.h >>conftest.$ac_ext
4885cat >>conftest.$ac_ext <<_ACEOF
4886/* end confdefs.h. */
4887
4888int
4889main ()
4890{
4891/* FIXME: Include the comments suggested by Paul. */
4892#ifndef __cplusplus
4893 /* Ultrix mips cc rejects this. */
4894 typedef int charset[2];
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004895 const charset cs;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004896 /* SunOS 4.1.1 cc rejects this. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004897 char const *const *pcpcc;
4898 char **ppc;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004899 /* NEC SVR4.0.2 mips cc rejects this. */
4900 struct point {int x, y;};
4901 static struct point const zero = {0,0};
4902 /* AIX XL C 1.02.0.0 rejects this.
4903 It does not let you subtract one const X* pointer from another in
4904 an arm of an if-expression whose if-part is not a constant
4905 expression */
4906 const char *g = "string";
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004907 pcpcc = &g + (g ? g-g : 0);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004908 /* HPUX 7.0 cc rejects these. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004909 ++pcpcc;
4910 ppc = (char**) pcpcc;
4911 pcpcc = (char const *const *) ppc;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004912 { /* SCO 3.2v4 cc rejects this. */
4913 char *t;
4914 char const *s = 0 ? (char *) 0 : (char const *) 0;
4915
4916 *t++ = 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04004917 if (s) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004918 }
4919 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4920 int x[] = {25, 17};
4921 const int *foo = &x[0];
4922 ++foo;
4923 }
4924 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4925 typedef const int *iptr;
4926 iptr p = 0;
4927 ++p;
4928 }
4929 { /* AIX XL C 1.02.0.0 rejects this saying
4930 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4931 struct s { int j; const int *ap[3]; };
4932 struct s *b; b->j = 5;
4933 }
4934 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4935 const int foo = 10;
Theodore Ts'oe1052142006-10-21 21:46:47 -04004936 if (!foo) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004937 }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004938 return !cs[0] && !zero.x;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004939#endif
4940
4941 ;
4942 return 0;
4943}
4944_ACEOF
4945rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04004946if { (ac_try="$ac_compile"
4947case "(($ac_try" in
4948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4949 *) ac_try_echo=$ac_try;;
4950esac
4951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4952 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004953 ac_status=$?
4954 grep -v '^ *+' conftest.er1 >conftest.err
4955 rm -f conftest.er1
4956 cat conftest.err >&5
4957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04004958 (exit $ac_status); } && {
4959 test -z "$ac_c_werror_flag" ||
4960 test ! -s conftest.err
4961 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004962 ac_cv_c_const=yes
4963else
4964 echo "$as_me: failed program was:" >&5
4965sed 's/^/| /' conftest.$ac_ext >&5
4966
Theodore Ts'oe1052142006-10-21 21:46:47 -04004967 ac_cv_c_const=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004968fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004969
4970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004971fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04004972{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
4973echo "${ECHO_T}$ac_cv_c_const" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004974if test $ac_cv_c_const = no; then
4975
4976cat >>confdefs.h <<\_ACEOF
4977#define const
4978_ACEOF
4979
4980fi
4981
4982
Theodore Ts'oe1052142006-10-21 21:46:47 -04004983 { echo "$as_me:$LINENO: checking for signed" >&5
4984echo $ECHO_N "checking for signed... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004985if test "${bh_cv_c_signed+set}" = set; then
4986 echo $ECHO_N "(cached) $ECHO_C" >&6
4987else
4988 cat >conftest.$ac_ext <<_ACEOF
4989/* confdefs.h. */
4990_ACEOF
4991cat confdefs.h >>conftest.$ac_ext
4992cat >>conftest.$ac_ext <<_ACEOF
4993/* end confdefs.h. */
4994
4995int
4996main ()
4997{
4998signed char x;
4999 ;
5000 return 0;
5001}
5002_ACEOF
5003rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005004if { (ac_try="$ac_compile"
5005case "(($ac_try" in
5006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5007 *) ac_try_echo=$ac_try;;
5008esac
5009eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5010 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005011 ac_status=$?
5012 grep -v '^ *+' conftest.er1 >conftest.err
5013 rm -f conftest.er1
5014 cat conftest.err >&5
5015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005016 (exit $ac_status); } && {
5017 test -z "$ac_c_werror_flag" ||
5018 test ! -s conftest.err
5019 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005020 bh_cv_c_signed=yes
5021else
5022 echo "$as_me: failed program was:" >&5
5023sed 's/^/| /' conftest.$ac_ext >&5
5024
Theodore Ts'oe1052142006-10-21 21:46:47 -04005025 bh_cv_c_signed=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005026fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005027
5028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005029fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005030{ echo "$as_me:$LINENO: result: $bh_cv_c_signed" >&5
5031echo "${ECHO_T}$bh_cv_c_signed" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005032 if test $bh_cv_c_signed = no; then
5033
5034cat >>confdefs.h <<\_ACEOF
5035#define signed
5036_ACEOF
5037
5038 fi
5039
Theodore Ts'oe1052142006-10-21 21:46:47 -04005040{ echo "$as_me:$LINENO: checking for inline" >&5
5041echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005042if test "${ac_cv_c_inline+set}" = set; then
5043 echo $ECHO_N "(cached) $ECHO_C" >&6
5044else
5045 ac_cv_c_inline=no
5046for ac_kw in inline __inline__ __inline; do
5047 cat >conftest.$ac_ext <<_ACEOF
5048/* confdefs.h. */
5049_ACEOF
5050cat confdefs.h >>conftest.$ac_ext
5051cat >>conftest.$ac_ext <<_ACEOF
5052/* end confdefs.h. */
5053#ifndef __cplusplus
5054typedef int foo_t;
5055static $ac_kw foo_t static_foo () {return 0; }
5056$ac_kw foo_t foo () {return 0; }
5057#endif
5058
5059_ACEOF
5060rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005061if { (ac_try="$ac_compile"
5062case "(($ac_try" in
5063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5064 *) ac_try_echo=$ac_try;;
5065esac
5066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5067 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005068 ac_status=$?
5069 grep -v '^ *+' conftest.er1 >conftest.err
5070 rm -f conftest.er1
5071 cat conftest.err >&5
5072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005073 (exit $ac_status); } && {
5074 test -z "$ac_c_werror_flag" ||
5075 test ! -s conftest.err
5076 } && test -s conftest.$ac_objext; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04005077 ac_cv_c_inline=$ac_kw
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005078else
5079 echo "$as_me: failed program was:" >&5
5080sed 's/^/| /' conftest.$ac_ext >&5
5081
Theodore Ts'oe1052142006-10-21 21:46:47 -04005082
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005083fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005084
5085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5086 test "$ac_cv_c_inline" != no && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005087done
5088
5089fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005090{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
5091echo "${ECHO_T}$ac_cv_c_inline" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005092
5093
5094case $ac_cv_c_inline in
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005095 inline | yes) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005096 *)
5097 case $ac_cv_c_inline in
5098 no) ac_val=;;
5099 *) ac_val=$ac_cv_c_inline;;
5100 esac
5101 cat >>confdefs.h <<_ACEOF
5102#ifndef __cplusplus
5103#define inline $ac_val
5104#endif
5105_ACEOF
5106 ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005107esac
5108
Theodore Ts'oe1052142006-10-21 21:46:47 -04005109{ echo "$as_me:$LINENO: checking for off_t" >&5
5110echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005111if test "${ac_cv_type_off_t+set}" = set; then
5112 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005113else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005114 cat >conftest.$ac_ext <<_ACEOF
5115/* confdefs.h. */
5116_ACEOF
5117cat confdefs.h >>conftest.$ac_ext
5118cat >>conftest.$ac_ext <<_ACEOF
5119/* end confdefs.h. */
5120$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -04005121typedef off_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005122int
5123main ()
5124{
Theodore Ts'oe1052142006-10-21 21:46:47 -04005125if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005126 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04005127if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005128 return 0;
5129 ;
5130 return 0;
5131}
5132_ACEOF
5133rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005134if { (ac_try="$ac_compile"
5135case "(($ac_try" in
5136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5137 *) ac_try_echo=$ac_try;;
5138esac
5139eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5140 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005141 ac_status=$?
5142 grep -v '^ *+' conftest.er1 >conftest.err
5143 rm -f conftest.er1
5144 cat conftest.err >&5
5145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005146 (exit $ac_status); } && {
5147 test -z "$ac_c_werror_flag" ||
5148 test ! -s conftest.err
5149 } && test -s conftest.$ac_objext; then
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005150 ac_cv_type_off_t=yes
5151else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005152 echo "$as_me: failed program was:" >&5
5153sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -04005154
Theodore Ts'oe1052142006-10-21 21:46:47 -04005155 ac_cv_type_off_t=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005156fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005157
5158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005159fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005160{ echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
5161echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005162if test $ac_cv_type_off_t = yes; then
5163 :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005164else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005165
5166cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04005167#define off_t long int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005168_ACEOF
5169
5170fi
5171
Theodore Ts'oe1052142006-10-21 21:46:47 -04005172{ echo "$as_me:$LINENO: checking for size_t" >&5
5173echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005174if test "${ac_cv_type_size_t+set}" = set; then
5175 echo $ECHO_N "(cached) $ECHO_C" >&6
5176else
5177 cat >conftest.$ac_ext <<_ACEOF
5178/* confdefs.h. */
5179_ACEOF
5180cat confdefs.h >>conftest.$ac_ext
5181cat >>conftest.$ac_ext <<_ACEOF
5182/* end confdefs.h. */
5183$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -04005184typedef size_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005185int
5186main ()
5187{
Theodore Ts'oe1052142006-10-21 21:46:47 -04005188if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005189 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04005190if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005191 return 0;
5192 ;
5193 return 0;
5194}
5195_ACEOF
5196rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005197if { (ac_try="$ac_compile"
5198case "(($ac_try" in
5199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5200 *) ac_try_echo=$ac_try;;
5201esac
5202eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5203 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005204 ac_status=$?
5205 grep -v '^ *+' conftest.er1 >conftest.err
5206 rm -f conftest.er1
5207 cat conftest.err >&5
5208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005209 (exit $ac_status); } && {
5210 test -z "$ac_c_werror_flag" ||
5211 test ! -s conftest.err
5212 } && test -s conftest.$ac_objext; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005213 ac_cv_type_size_t=yes
5214else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005215 echo "$as_me: failed program was:" >&5
5216sed 's/^/| /' conftest.$ac_ext >&5
5217
Theodore Ts'oe1052142006-10-21 21:46:47 -04005218 ac_cv_type_size_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005219fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005220
5221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005222fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005223{ echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
5224echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005225if test $ac_cv_type_size_t = yes; then
5226 :
5227else
5228
5229cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04005230#define size_t unsigned int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005231_ACEOF
5232
5233fi
5234
5235
Theodore Ts'oe1052142006-10-21 21:46:47 -04005236 { echo "$as_me:$LINENO: checking for long long" >&5
5237echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005238if test "${ac_cv_type_long_long+set}" = set; then
5239 echo $ECHO_N "(cached) $ECHO_C" >&6
5240else
5241 cat >conftest.$ac_ext <<_ACEOF
5242/* confdefs.h. */
5243_ACEOF
5244cat confdefs.h >>conftest.$ac_ext
5245cat >>conftest.$ac_ext <<_ACEOF
5246/* end confdefs.h. */
5247long long ll = 1LL; int i = 63;
5248int
5249main ()
5250{
5251long long llmax = (long long) -1;
5252 return ll << i | ll >> i | llmax / ll | llmax % ll;
5253 ;
5254 return 0;
5255}
5256_ACEOF
5257rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005258if { (ac_try="$ac_link"
5259case "(($ac_try" in
5260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5261 *) ac_try_echo=$ac_try;;
5262esac
5263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5264 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005265 ac_status=$?
5266 grep -v '^ *+' conftest.er1 >conftest.err
5267 rm -f conftest.er1
5268 cat conftest.err >&5
5269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005270 (exit $ac_status); } && {
5271 test -z "$ac_c_werror_flag" ||
5272 test ! -s conftest.err
5273 } && test -s conftest$ac_exeext &&
5274 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005275 ac_cv_type_long_long=yes
5276else
5277 echo "$as_me: failed program was:" >&5
5278sed 's/^/| /' conftest.$ac_ext >&5
5279
Theodore Ts'oe1052142006-10-21 21:46:47 -04005280 ac_cv_type_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005281fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005282
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005283rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005284 conftest$ac_exeext conftest.$ac_ext
5285fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005286{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
5287echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005288 if test $ac_cv_type_long_long = yes; then
5289
5290cat >>confdefs.h <<\_ACEOF
5291#define HAVE_LONG_LONG 1
5292_ACEOF
5293
5294 fi
5295
5296
Theodore Ts'oe1052142006-10-21 21:46:47 -04005297 { echo "$as_me:$LINENO: checking for long double" >&5
5298echo $ECHO_N "checking for long double... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005299if test "${gt_cv_c_long_double+set}" = set; then
5300 echo $ECHO_N "(cached) $ECHO_C" >&6
5301else
5302 if test "$GCC" = yes; then
5303 gt_cv_c_long_double=yes
5304 else
5305 cat >conftest.$ac_ext <<_ACEOF
5306/* confdefs.h. */
5307_ACEOF
5308cat confdefs.h >>conftest.$ac_ext
5309cat >>conftest.$ac_ext <<_ACEOF
5310/* end confdefs.h. */
5311
5312 /* The Stardent Vistra knows sizeof(long double), but does not support it. */
5313 long double foo = 0.0;
5314 /* On Ultrix 4.3 cc, long double is 4 and double is 8. */
5315 int array [2*(sizeof(long double) >= sizeof(double)) - 1];
5316
5317int
5318main ()
5319{
5320
5321 ;
5322 return 0;
5323}
5324_ACEOF
5325rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005326if { (ac_try="$ac_compile"
5327case "(($ac_try" in
5328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5329 *) ac_try_echo=$ac_try;;
5330esac
5331eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5332 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005333 ac_status=$?
5334 grep -v '^ *+' conftest.er1 >conftest.err
5335 rm -f conftest.er1
5336 cat conftest.err >&5
5337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005338 (exit $ac_status); } && {
5339 test -z "$ac_c_werror_flag" ||
5340 test ! -s conftest.err
5341 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005342 gt_cv_c_long_double=yes
5343else
5344 echo "$as_me: failed program was:" >&5
5345sed 's/^/| /' conftest.$ac_ext >&5
5346
Theodore Ts'oe1052142006-10-21 21:46:47 -04005347 gt_cv_c_long_double=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005348fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005349
5350rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005351 fi
5352fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005353{ echo "$as_me:$LINENO: result: $gt_cv_c_long_double" >&5
5354echo "${ECHO_T}$gt_cv_c_long_double" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005355 if test $gt_cv_c_long_double = yes; then
5356
5357cat >>confdefs.h <<\_ACEOF
5358#define HAVE_LONG_DOUBLE 1
5359_ACEOF
5360
5361 fi
5362
5363
Theodore Ts'oe1052142006-10-21 21:46:47 -04005364 { echo "$as_me:$LINENO: checking for wchar_t" >&5
5365echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005366if test "${gt_cv_c_wchar_t+set}" = set; then
5367 echo $ECHO_N "(cached) $ECHO_C" >&6
5368else
5369 cat >conftest.$ac_ext <<_ACEOF
5370/* confdefs.h. */
5371_ACEOF
5372cat confdefs.h >>conftest.$ac_ext
5373cat >>conftest.$ac_ext <<_ACEOF
5374/* end confdefs.h. */
5375#include <stddef.h>
5376 wchar_t foo = (wchar_t)'\0';
5377int
5378main ()
5379{
5380
5381 ;
5382 return 0;
5383}
5384_ACEOF
5385rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005386if { (ac_try="$ac_compile"
5387case "(($ac_try" in
5388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5389 *) ac_try_echo=$ac_try;;
5390esac
5391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5392 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005393 ac_status=$?
5394 grep -v '^ *+' conftest.er1 >conftest.err
5395 rm -f conftest.er1
5396 cat conftest.err >&5
5397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005398 (exit $ac_status); } && {
5399 test -z "$ac_c_werror_flag" ||
5400 test ! -s conftest.err
5401 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005402 gt_cv_c_wchar_t=yes
5403else
5404 echo "$as_me: failed program was:" >&5
5405sed 's/^/| /' conftest.$ac_ext >&5
5406
Theodore Ts'oe1052142006-10-21 21:46:47 -04005407 gt_cv_c_wchar_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005408fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005409
5410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005411fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005412{ echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
5413echo "${ECHO_T}$gt_cv_c_wchar_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005414 if test $gt_cv_c_wchar_t = yes; then
5415
5416cat >>confdefs.h <<\_ACEOF
5417#define HAVE_WCHAR_T 1
5418_ACEOF
5419
5420 fi
5421
5422
Theodore Ts'oe1052142006-10-21 21:46:47 -04005423 { echo "$as_me:$LINENO: checking for wint_t" >&5
5424echo $ECHO_N "checking for wint_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005425if test "${gt_cv_c_wint_t+set}" = set; then
5426 echo $ECHO_N "(cached) $ECHO_C" >&6
5427else
5428 cat >conftest.$ac_ext <<_ACEOF
5429/* confdefs.h. */
5430_ACEOF
5431cat confdefs.h >>conftest.$ac_ext
5432cat >>conftest.$ac_ext <<_ACEOF
5433/* end confdefs.h. */
5434#include <wchar.h>
5435 wint_t foo = (wchar_t)'\0';
5436int
5437main ()
5438{
5439
5440 ;
5441 return 0;
5442}
5443_ACEOF
5444rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005445if { (ac_try="$ac_compile"
5446case "(($ac_try" in
5447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5448 *) ac_try_echo=$ac_try;;
5449esac
5450eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5451 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005452 ac_status=$?
5453 grep -v '^ *+' conftest.er1 >conftest.err
5454 rm -f conftest.er1
5455 cat conftest.err >&5
5456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005457 (exit $ac_status); } && {
5458 test -z "$ac_c_werror_flag" ||
5459 test ! -s conftest.err
5460 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005461 gt_cv_c_wint_t=yes
5462else
5463 echo "$as_me: failed program was:" >&5
5464sed 's/^/| /' conftest.$ac_ext >&5
5465
Theodore Ts'oe1052142006-10-21 21:46:47 -04005466 gt_cv_c_wint_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005467fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005468
5469rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005470fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005471{ echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
5472echo "${ECHO_T}$gt_cv_c_wint_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005473 if test $gt_cv_c_wint_t = yes; then
5474
5475cat >>confdefs.h <<\_ACEOF
5476#define HAVE_WINT_T 1
5477_ACEOF
5478
5479 fi
5480
5481
Theodore Ts'oe1052142006-10-21 21:46:47 -04005482 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
5483echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005484if test "${jm_ac_cv_header_inttypes_h+set}" = set; then
5485 echo $ECHO_N "(cached) $ECHO_C" >&6
5486else
5487 cat >conftest.$ac_ext <<_ACEOF
5488/* confdefs.h. */
5489_ACEOF
5490cat confdefs.h >>conftest.$ac_ext
5491cat >>conftest.$ac_ext <<_ACEOF
5492/* end confdefs.h. */
5493#include <sys/types.h>
5494#include <inttypes.h>
5495int
5496main ()
5497{
5498uintmax_t i = (uintmax_t) -1;
5499 ;
5500 return 0;
5501}
5502_ACEOF
5503rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005504if { (ac_try="$ac_compile"
5505case "(($ac_try" in
5506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5507 *) ac_try_echo=$ac_try;;
5508esac
5509eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5510 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005511 ac_status=$?
5512 grep -v '^ *+' conftest.er1 >conftest.err
5513 rm -f conftest.er1
5514 cat conftest.err >&5
5515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005516 (exit $ac_status); } && {
5517 test -z "$ac_c_werror_flag" ||
5518 test ! -s conftest.err
5519 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005520 jm_ac_cv_header_inttypes_h=yes
5521else
5522 echo "$as_me: failed program was:" >&5
5523sed 's/^/| /' conftest.$ac_ext >&5
5524
Theodore Ts'oe1052142006-10-21 21:46:47 -04005525 jm_ac_cv_header_inttypes_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005526fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005527
5528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005529fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005530{ echo "$as_me:$LINENO: result: $jm_ac_cv_header_inttypes_h" >&5
5531echo "${ECHO_T}$jm_ac_cv_header_inttypes_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005532 if test $jm_ac_cv_header_inttypes_h = yes; then
5533
5534cat >>confdefs.h <<_ACEOF
5535#define HAVE_INTTYPES_H_WITH_UINTMAX 1
5536_ACEOF
5537
5538 fi
5539
5540
Theodore Ts'oe1052142006-10-21 21:46:47 -04005541 { echo "$as_me:$LINENO: checking for stdint.h" >&5
5542echo $ECHO_N "checking for stdint.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005543if test "${jm_ac_cv_header_stdint_h+set}" = set; then
5544 echo $ECHO_N "(cached) $ECHO_C" >&6
5545else
5546 cat >conftest.$ac_ext <<_ACEOF
5547/* confdefs.h. */
5548_ACEOF
5549cat confdefs.h >>conftest.$ac_ext
5550cat >>conftest.$ac_ext <<_ACEOF
5551/* end confdefs.h. */
5552#include <sys/types.h>
5553#include <stdint.h>
5554int
5555main ()
5556{
5557uintmax_t i = (uintmax_t) -1;
5558 ;
5559 return 0;
5560}
5561_ACEOF
5562rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005563if { (ac_try="$ac_compile"
5564case "(($ac_try" in
5565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5566 *) ac_try_echo=$ac_try;;
5567esac
5568eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5569 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005570 ac_status=$?
5571 grep -v '^ *+' conftest.er1 >conftest.err
5572 rm -f conftest.er1
5573 cat conftest.err >&5
5574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005575 (exit $ac_status); } && {
5576 test -z "$ac_c_werror_flag" ||
5577 test ! -s conftest.err
5578 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005579 jm_ac_cv_header_stdint_h=yes
5580else
5581 echo "$as_me: failed program was:" >&5
5582sed 's/^/| /' conftest.$ac_ext >&5
5583
Theodore Ts'oe1052142006-10-21 21:46:47 -04005584 jm_ac_cv_header_stdint_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005585fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005586
5587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005588fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005589{ echo "$as_me:$LINENO: result: $jm_ac_cv_header_stdint_h" >&5
5590echo "${ECHO_T}$jm_ac_cv_header_stdint_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005591 if test $jm_ac_cv_header_stdint_h = yes; then
5592
5593cat >>confdefs.h <<_ACEOF
5594#define HAVE_STDINT_H_WITH_UINTMAX 1
5595_ACEOF
5596
5597 fi
5598
5599
5600
5601
Theodore Ts'oe1052142006-10-21 21:46:47 -04005602 { echo "$as_me:$LINENO: checking for intmax_t" >&5
5603echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005604if test "${gt_cv_c_intmax_t+set}" = set; then
5605 echo $ECHO_N "(cached) $ECHO_C" >&6
5606else
5607 cat >conftest.$ac_ext <<_ACEOF
5608/* confdefs.h. */
5609_ACEOF
5610cat confdefs.h >>conftest.$ac_ext
5611cat >>conftest.$ac_ext <<_ACEOF
5612/* end confdefs.h. */
5613
5614#include <stddef.h>
5615#include <stdlib.h>
5616#if HAVE_STDINT_H_WITH_UINTMAX
5617#include <stdint.h>
5618#endif
5619#if HAVE_INTTYPES_H_WITH_UINTMAX
5620#include <inttypes.h>
5621#endif
5622
5623int
5624main ()
5625{
5626intmax_t x = -1;
5627 ;
5628 return 0;
5629}
5630_ACEOF
5631rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005632if { (ac_try="$ac_compile"
5633case "(($ac_try" in
5634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5635 *) ac_try_echo=$ac_try;;
5636esac
5637eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5638 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005639 ac_status=$?
5640 grep -v '^ *+' conftest.er1 >conftest.err
5641 rm -f conftest.er1
5642 cat conftest.err >&5
5643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005644 (exit $ac_status); } && {
5645 test -z "$ac_c_werror_flag" ||
5646 test ! -s conftest.err
5647 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005648 gt_cv_c_intmax_t=yes
5649else
5650 echo "$as_me: failed program was:" >&5
5651sed 's/^/| /' conftest.$ac_ext >&5
5652
Theodore Ts'oe1052142006-10-21 21:46:47 -04005653 gt_cv_c_intmax_t=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005654fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005655
5656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005657fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005658{ echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
5659echo "${ECHO_T}$gt_cv_c_intmax_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005660 if test $gt_cv_c_intmax_t = yes; then
5661
5662cat >>confdefs.h <<\_ACEOF
5663#define HAVE_INTMAX_T 1
5664_ACEOF
5665
5666 fi
5667
5668
5669
Theodore Ts'oe1052142006-10-21 21:46:47 -04005670 { echo "$as_me:$LINENO: checking whether printf() supports POSIX/XSI format strings" >&5
5671echo $ECHO_N "checking whether printf() supports POSIX/XSI format strings... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005672if test "${gt_cv_func_printf_posix+set}" = set; then
5673 echo $ECHO_N "(cached) $ECHO_C" >&6
5674else
5675
5676 if test "$cross_compiling" = yes; then
5677
5678 cat >conftest.$ac_ext <<_ACEOF
5679/* confdefs.h. */
5680_ACEOF
5681cat confdefs.h >>conftest.$ac_ext
5682cat >>conftest.$ac_ext <<_ACEOF
5683/* end confdefs.h. */
5684
5685#if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
5686 notposix
5687#endif
5688
5689_ACEOF
5690if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5691 $EGREP "notposix" >/dev/null 2>&1; then
5692 gt_cv_func_printf_posix="guessing no"
5693else
5694 gt_cv_func_printf_posix="guessing yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005695fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005696rm -f conftest*
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005697
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005698
5699else
5700 cat >conftest.$ac_ext <<_ACEOF
5701/* confdefs.h. */
5702_ACEOF
5703cat confdefs.h >>conftest.$ac_ext
5704cat >>conftest.$ac_ext <<_ACEOF
5705/* end confdefs.h. */
5706
5707#include <stdio.h>
5708#include <string.h>
5709/* The string "%2$d %1$d", with dollar characters protected from the shell's
5710 dollar expansion (possibly an autoconf bug). */
5711static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
5712static char buf[100];
5713int main ()
5714{
5715 sprintf (buf, format, 33, 55);
5716 return (strcmp (buf, "55 33") != 0);
5717}
5718_ACEOF
5719rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005720if { (ac_try="$ac_link"
5721case "(($ac_try" in
5722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5723 *) ac_try_echo=$ac_try;;
5724esac
5725eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5726 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005727 ac_status=$?
5728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04005730 { (case "(($ac_try" in
5731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5732 *) ac_try_echo=$ac_try;;
5733esac
5734eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5735 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005736 ac_status=$?
5737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738 (exit $ac_status); }; }; then
5739 gt_cv_func_printf_posix=yes
5740else
5741 echo "$as_me: program exited with status $ac_status" >&5
5742echo "$as_me: failed program was:" >&5
5743sed 's/^/| /' conftest.$ac_ext >&5
5744
5745( exit $ac_status )
5746gt_cv_func_printf_posix=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005747fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005748rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005749fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005750
Theodore Ts'oe1052142006-10-21 21:46:47 -04005751
5752
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005753fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005754{ echo "$as_me:$LINENO: result: $gt_cv_func_printf_posix" >&5
5755echo "${ECHO_T}$gt_cv_func_printf_posix" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005756 case $gt_cv_func_printf_posix in
5757 *yes)
5758
5759cat >>confdefs.h <<\_ACEOF
5760#define HAVE_POSIX_PRINTF 1
5761_ACEOF
5762
5763 ;;
5764 esac
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005765
5766# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
5767# for constant arguments. Useless!
Theodore Ts'oe1052142006-10-21 21:46:47 -04005768{ echo "$as_me:$LINENO: checking for working alloca.h" >&5
5769echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005770if test "${ac_cv_working_alloca_h+set}" = set; then
5771 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005772else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005773 cat >conftest.$ac_ext <<_ACEOF
5774/* confdefs.h. */
5775_ACEOF
5776cat confdefs.h >>conftest.$ac_ext
5777cat >>conftest.$ac_ext <<_ACEOF
5778/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005779#include <alloca.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005780int
5781main ()
5782{
5783char *p = (char *) alloca (2 * sizeof (int));
Theodore Ts'oe1052142006-10-21 21:46:47 -04005784 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005785 ;
5786 return 0;
5787}
5788_ACEOF
5789rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005790if { (ac_try="$ac_link"
5791case "(($ac_try" in
5792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5793 *) ac_try_echo=$ac_try;;
5794esac
5795eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5796 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005797 ac_status=$?
5798 grep -v '^ *+' conftest.er1 >conftest.err
5799 rm -f conftest.er1
5800 cat conftest.err >&5
5801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005802 (exit $ac_status); } && {
5803 test -z "$ac_c_werror_flag" ||
5804 test ! -s conftest.err
5805 } && test -s conftest$ac_exeext &&
5806 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005807 ac_cv_working_alloca_h=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005808else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005809 echo "$as_me: failed program was:" >&5
5810sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005811
Theodore Ts'oe1052142006-10-21 21:46:47 -04005812 ac_cv_working_alloca_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005813fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005814
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005815rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005816 conftest$ac_exeext conftest.$ac_ext
5817fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005818{ echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
5819echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005820if test $ac_cv_working_alloca_h = yes; then
5821
5822cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005823#define HAVE_ALLOCA_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005824_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005825
5826fi
5827
Theodore Ts'oe1052142006-10-21 21:46:47 -04005828{ echo "$as_me:$LINENO: checking for alloca" >&5
5829echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005830if test "${ac_cv_func_alloca_works+set}" = set; then
5831 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005832else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005833 cat >conftest.$ac_ext <<_ACEOF
5834/* confdefs.h. */
5835_ACEOF
5836cat confdefs.h >>conftest.$ac_ext
5837cat >>conftest.$ac_ext <<_ACEOF
5838/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005839#ifdef __GNUC__
5840# define alloca __builtin_alloca
5841#else
5842# ifdef _MSC_VER
5843# include <malloc.h>
5844# define alloca _alloca
5845# else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005846# ifdef HAVE_ALLOCA_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005847# include <alloca.h>
5848# else
5849# ifdef _AIX
5850 #pragma alloca
5851# else
5852# ifndef alloca /* predefined by HP cc +Olibcalls */
5853char *alloca ();
5854# endif
5855# endif
5856# endif
5857# endif
5858#endif
5859
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005860int
5861main ()
5862{
5863char *p = (char *) alloca (1);
Theodore Ts'oe1052142006-10-21 21:46:47 -04005864 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005865 ;
5866 return 0;
5867}
5868_ACEOF
5869rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04005870if { (ac_try="$ac_link"
5871case "(($ac_try" in
5872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5873 *) ac_try_echo=$ac_try;;
5874esac
5875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5876 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005877 ac_status=$?
5878 grep -v '^ *+' conftest.er1 >conftest.err
5879 rm -f conftest.er1
5880 cat conftest.err >&5
5881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005882 (exit $ac_status); } && {
5883 test -z "$ac_c_werror_flag" ||
5884 test ! -s conftest.err
5885 } && test -s conftest$ac_exeext &&
5886 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005887 ac_cv_func_alloca_works=yes
5888else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005889 echo "$as_me: failed program was:" >&5
5890sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005891
Theodore Ts'oe1052142006-10-21 21:46:47 -04005892 ac_cv_func_alloca_works=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005893fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005894
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04005895rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005896 conftest$ac_exeext conftest.$ac_ext
5897fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005898{ echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
5899echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005900
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005901if test $ac_cv_func_alloca_works = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005902
5903cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005904#define HAVE_ALLOCA 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005905_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005906
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005907else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005908 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
5909# that cause trouble. Some versions do not even contain alloca or
5910# contain a buggy version. If you still want to use their alloca,
5911# use ar to extract alloca.o from them instead of compiling alloca.c.
5912
Theodore Ts'oe1052142006-10-21 21:46:47 -04005913ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005914
5915cat >>confdefs.h <<\_ACEOF
5916#define C_ALLOCA 1
5917_ACEOF
5918
5919
Theodore Ts'oe1052142006-10-21 21:46:47 -04005920{ echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
5921echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005922if test "${ac_cv_os_cray+set}" = set; then
5923 echo $ECHO_N "(cached) $ECHO_C" >&6
5924else
5925 cat >conftest.$ac_ext <<_ACEOF
5926/* confdefs.h. */
5927_ACEOF
5928cat confdefs.h >>conftest.$ac_ext
5929cat >>conftest.$ac_ext <<_ACEOF
5930/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04005931#if defined CRAY && ! defined CRAY2
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005932webecray
5933#else
5934wenotbecray
5935#endif
5936
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005937_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005938if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005939 $EGREP "webecray" >/dev/null 2>&1; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005940 ac_cv_os_cray=yes
5941else
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005942 ac_cv_os_cray=no
5943fi
5944rm -f conftest*
5945
5946fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04005947{ echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
5948echo "${ECHO_T}$ac_cv_os_cray" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005949if test $ac_cv_os_cray = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005950 for ac_func in _getb67 GETB67 getb67; do
5951 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04005952{ echo "$as_me:$LINENO: checking for $ac_func" >&5
5953echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
5954if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005955 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005956else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005957 cat >conftest.$ac_ext <<_ACEOF
5958/* confdefs.h. */
5959_ACEOF
5960cat confdefs.h >>conftest.$ac_ext
5961cat >>conftest.$ac_ext <<_ACEOF
5962/* end confdefs.h. */
5963/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
5964 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5965#define $ac_func innocuous_$ac_func
5966
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005967/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005968 which can conflict with char $ac_func (); below.
5969 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5970 <limits.h> exists even on freestanding compilers. */
5971
5972#ifdef __STDC__
5973# include <limits.h>
5974#else
5975# include <assert.h>
5976#endif
5977
5978#undef $ac_func
5979
Theodore Ts'oe1052142006-10-21 21:46:47 -04005980/* Override any GCC internal prototype to avoid an error.
5981 Use char because int might match the return type of a GCC
5982 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005983#ifdef __cplusplus
5984extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005985#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005986char $ac_func ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005987/* The GNU C library defines this for functions which it implements
5988 to always fail with ENOSYS. Some functions are actually named
5989 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04005990#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005991choke me
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00005992#endif
5993
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005994int
5995main ()
5996{
Theodore Ts'oe1052142006-10-21 21:46:47 -04005997return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05005998 ;
5999 return 0;
6000}
6001_ACEOF
6002rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006003if { (ac_try="$ac_link"
6004case "(($ac_try" in
6005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6006 *) ac_try_echo=$ac_try;;
6007esac
6008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6009 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006010 ac_status=$?
6011 grep -v '^ *+' conftest.er1 >conftest.err
6012 rm -f conftest.er1
6013 cat conftest.err >&5
6014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006015 (exit $ac_status); } && {
6016 test -z "$ac_c_werror_flag" ||
6017 test ! -s conftest.err
6018 } && test -s conftest$ac_exeext &&
6019 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006020 eval "$as_ac_var=yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006021else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006022 echo "$as_me: failed program was:" >&5
6023sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006024
Theodore Ts'oe1052142006-10-21 21:46:47 -04006025 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006026fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006027
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006028rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006029 conftest$ac_exeext conftest.$ac_ext
6030fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006031ac_res=`eval echo '${'$as_ac_var'}'`
6032 { echo "$as_me:$LINENO: result: $ac_res" >&5
6033echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006034if test `eval echo '${'$as_ac_var'}'` = yes; then
6035
6036cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006037#define CRAY_STACKSEG_END $ac_func
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006038_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006039
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006040 break
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006041fi
6042
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006043 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006044fi
6045
Theodore Ts'oe1052142006-10-21 21:46:47 -04006046{ echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
6047echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006048if test "${ac_cv_c_stack_direction+set}" = set; then
6049 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006050else
6051 if test "$cross_compiling" = yes; then
6052 ac_cv_c_stack_direction=0
6053else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006054 cat >conftest.$ac_ext <<_ACEOF
6055/* confdefs.h. */
6056_ACEOF
6057cat confdefs.h >>conftest.$ac_ext
6058cat >>conftest.$ac_ext <<_ACEOF
6059/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006060$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006061int
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006062find_stack_direction ()
6063{
6064 static char *addr = 0;
6065 auto char dummy;
6066 if (addr == 0)
6067 {
6068 addr = &dummy;
6069 return find_stack_direction ();
6070 }
6071 else
6072 return (&dummy > addr) ? 1 : -1;
6073}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006074
6075int
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006076main ()
6077{
Theodore Ts'oe1052142006-10-21 21:46:47 -04006078 return find_stack_direction () < 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006079}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006080_ACEOF
6081rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006082if { (ac_try="$ac_link"
6083case "(($ac_try" in
6084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6085 *) ac_try_echo=$ac_try;;
6086esac
6087eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6088 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006089 ac_status=$?
6090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04006092 { (case "(($ac_try" in
6093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6094 *) ac_try_echo=$ac_try;;
6095esac
6096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6097 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006098 ac_status=$?
6099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6100 (exit $ac_status); }; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006101 ac_cv_c_stack_direction=1
6102else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006103 echo "$as_me: program exited with status $ac_status" >&5
6104echo "$as_me: failed program was:" >&5
6105sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006106
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006107( exit $ac_status )
6108ac_cv_c_stack_direction=-1
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006109fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006110rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006111fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006112
6113
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006114fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006115{ echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
6116echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006117
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006118cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006119#define STACK_DIRECTION $ac_cv_c_stack_direction
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006120_ACEOF
6121
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006122
6123fi
6124
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006125
6126
6127for ac_header in stdlib.h unistd.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006128do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006129as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04006130if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6131 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6132echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6133if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006134 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006135fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006136ac_res=`eval echo '${'$as_ac_Header'}'`
6137 { echo "$as_me:$LINENO: result: $ac_res" >&5
6138echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006139else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006140 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04006141{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6142echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006143cat >conftest.$ac_ext <<_ACEOF
6144/* confdefs.h. */
6145_ACEOF
6146cat confdefs.h >>conftest.$ac_ext
6147cat >>conftest.$ac_ext <<_ACEOF
6148/* end confdefs.h. */
6149$ac_includes_default
6150#include <$ac_header>
6151_ACEOF
6152rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006153if { (ac_try="$ac_compile"
6154case "(($ac_try" in
6155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6156 *) ac_try_echo=$ac_try;;
6157esac
6158eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6159 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006160 ac_status=$?
6161 grep -v '^ *+' conftest.er1 >conftest.err
6162 rm -f conftest.er1
6163 cat conftest.err >&5
6164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006165 (exit $ac_status); } && {
6166 test -z "$ac_c_werror_flag" ||
6167 test ! -s conftest.err
6168 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006169 ac_header_compiler=yes
6170else
6171 echo "$as_me: failed program was:" >&5
6172sed 's/^/| /' conftest.$ac_ext >&5
6173
Theodore Ts'oe1052142006-10-21 21:46:47 -04006174 ac_header_compiler=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006175fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006176
6177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6178{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6179echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006180
6181# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04006182{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6183echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006184cat >conftest.$ac_ext <<_ACEOF
6185/* confdefs.h. */
6186_ACEOF
6187cat confdefs.h >>conftest.$ac_ext
6188cat >>conftest.$ac_ext <<_ACEOF
6189/* end confdefs.h. */
6190#include <$ac_header>
6191_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006192if { (ac_try="$ac_cpp conftest.$ac_ext"
6193case "(($ac_try" in
6194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6195 *) ac_try_echo=$ac_try;;
6196esac
6197eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6198 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006199 ac_status=$?
6200 grep -v '^ *+' conftest.er1 >conftest.err
6201 rm -f conftest.er1
6202 cat conftest.err >&5
6203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006204 (exit $ac_status); } >/dev/null && {
6205 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6206 test ! -s conftest.err
6207 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006208 ac_header_preproc=yes
6209else
6210 echo "$as_me: failed program was:" >&5
6211sed 's/^/| /' conftest.$ac_ext >&5
6212
6213 ac_header_preproc=no
6214fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006215
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006216rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006217{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6218echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006219
6220# So? What about this header?
6221case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6222 yes:no: )
6223 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6224echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6225 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6226echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6227 ac_header_preproc=yes
6228 ;;
6229 no:yes:* )
6230 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6231echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6232 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6233echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6234 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6235echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6236 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6237echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6238 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6239echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6240 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6241echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04006242
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006243 ;;
6244esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04006245{ echo "$as_me:$LINENO: checking for $ac_header" >&5
6246echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6247if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006248 echo $ECHO_N "(cached) $ECHO_C" >&6
6249else
6250 eval "$as_ac_Header=\$ac_header_preproc"
6251fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006252ac_res=`eval echo '${'$as_ac_Header'}'`
6253 { echo "$as_me:$LINENO: result: $ac_res" >&5
6254echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006255
6256fi
6257if test `eval echo '${'$as_ac_Header'}'` = yes; then
6258 cat >>confdefs.h <<_ACEOF
6259#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6260_ACEOF
6261
6262fi
6263
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006264done
6265
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006266
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006267for ac_func in getpagesize
6268do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006269as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04006270{ echo "$as_me:$LINENO: checking for $ac_func" >&5
6271echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
6272if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006273 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006274else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006275 cat >conftest.$ac_ext <<_ACEOF
6276/* confdefs.h. */
6277_ACEOF
6278cat confdefs.h >>conftest.$ac_ext
6279cat >>conftest.$ac_ext <<_ACEOF
6280/* end confdefs.h. */
6281/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
6282 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6283#define $ac_func innocuous_$ac_func
6284
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006285/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006286 which can conflict with char $ac_func (); below.
6287 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6288 <limits.h> exists even on freestanding compilers. */
6289
6290#ifdef __STDC__
6291# include <limits.h>
6292#else
6293# include <assert.h>
6294#endif
6295
6296#undef $ac_func
6297
Theodore Ts'oe1052142006-10-21 21:46:47 -04006298/* Override any GCC internal prototype to avoid an error.
6299 Use char because int might match the return type of a GCC
6300 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006301#ifdef __cplusplus
6302extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006303#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006304char $ac_func ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006305/* The GNU C library defines this for functions which it implements
6306 to always fail with ENOSYS. Some functions are actually named
6307 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006308#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006309choke me
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006310#endif
6311
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006312int
6313main ()
6314{
Theodore Ts'oe1052142006-10-21 21:46:47 -04006315return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006316 ;
6317 return 0;
6318}
6319_ACEOF
6320rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006321if { (ac_try="$ac_link"
6322case "(($ac_try" in
6323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6324 *) ac_try_echo=$ac_try;;
6325esac
6326eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6327 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006328 ac_status=$?
6329 grep -v '^ *+' conftest.er1 >conftest.err
6330 rm -f conftest.er1
6331 cat conftest.err >&5
6332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006333 (exit $ac_status); } && {
6334 test -z "$ac_c_werror_flag" ||
6335 test ! -s conftest.err
6336 } && test -s conftest$ac_exeext &&
6337 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006338 eval "$as_ac_var=yes"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006339else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006340 echo "$as_me: failed program was:" >&5
6341sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006342
Theodore Ts'oe1052142006-10-21 21:46:47 -04006343 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006344fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006345
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006346rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006347 conftest$ac_exeext conftest.$ac_ext
6348fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006349ac_res=`eval echo '${'$as_ac_var'}'`
6350 { echo "$as_me:$LINENO: result: $ac_res" >&5
6351echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006352if test `eval echo '${'$as_ac_var'}'` = yes; then
6353 cat >>confdefs.h <<_ACEOF
6354#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
6355_ACEOF
6356
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006357fi
6358done
6359
Theodore Ts'oe1052142006-10-21 21:46:47 -04006360{ echo "$as_me:$LINENO: checking for working mmap" >&5
6361echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006362if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
6363 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006364else
6365 if test "$cross_compiling" = yes; then
6366 ac_cv_func_mmap_fixed_mapped=no
6367else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006368 cat >conftest.$ac_ext <<_ACEOF
6369/* confdefs.h. */
6370_ACEOF
6371cat confdefs.h >>conftest.$ac_ext
6372cat >>conftest.$ac_ext <<_ACEOF
6373/* end confdefs.h. */
6374$ac_includes_default
6375/* malloc might have been renamed as rpl_malloc. */
6376#undef malloc
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006377
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006378/* Thanks to Mike Haertel and Jim Avera for this test.
6379 Here is a matrix of mmap possibilities:
6380 mmap private not fixed
6381 mmap private fixed at somewhere currently unmapped
6382 mmap private fixed at somewhere already mapped
6383 mmap shared not fixed
6384 mmap shared fixed at somewhere currently unmapped
6385 mmap shared fixed at somewhere already mapped
6386 For private mappings, we should verify that changes cannot be read()
6387 back from the file, nor mmap's back from the file at a different
6388 address. (There have been systems where private was not correctly
6389 implemented like the infamous i386 svr4.0, and systems where the
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006390 VM page cache was not coherent with the file system buffer cache
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006391 like early versions of FreeBSD and possibly contemporary NetBSD.)
6392 For shared mappings, we should conversely verify that changes get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006393 propagated back to all the places they're supposed to be.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006394
6395 Grep wants private fixed already mapped.
6396 The main things grep needs to know about mmap are:
6397 * does it exist and is it safe to write into the mmap'd area
6398 * how to use it (BSD variants) */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006399
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006400#include <fcntl.h>
6401#include <sys/mman.h>
6402
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006403#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006404char *malloc ();
6405#endif
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006406
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006407/* This mess was copied from the GNU getpagesize.h. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006408#ifndef HAVE_GETPAGESIZE
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006409/* Assume that all systems that can run configure have sys/param.h. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006410# ifndef HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006411# define HAVE_SYS_PARAM_H 1
6412# endif
6413
6414# ifdef _SC_PAGESIZE
6415# define getpagesize() sysconf(_SC_PAGESIZE)
6416# else /* no _SC_PAGESIZE */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006417# ifdef HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006418# include <sys/param.h>
6419# ifdef EXEC_PAGESIZE
6420# define getpagesize() EXEC_PAGESIZE
6421# else /* no EXEC_PAGESIZE */
6422# ifdef NBPG
6423# define getpagesize() NBPG * CLSIZE
6424# ifndef CLSIZE
6425# define CLSIZE 1
6426# endif /* no CLSIZE */
6427# else /* no NBPG */
6428# ifdef NBPC
6429# define getpagesize() NBPC
6430# else /* no NBPC */
6431# ifdef PAGESIZE
6432# define getpagesize() PAGESIZE
6433# endif /* PAGESIZE */
6434# endif /* no NBPC */
6435# endif /* no NBPG */
6436# endif /* no EXEC_PAGESIZE */
6437# else /* no HAVE_SYS_PARAM_H */
6438# define getpagesize() 8192 /* punt totally */
6439# endif /* no HAVE_SYS_PARAM_H */
6440# endif /* no _SC_PAGESIZE */
6441
6442#endif /* no HAVE_GETPAGESIZE */
6443
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006444int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006445main ()
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006446{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006447 char *data, *data2, *data3;
6448 int i, pagesize;
6449 int fd;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006450
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006451 pagesize = getpagesize ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006452
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006453 /* First, make a file with some known garbage in it. */
6454 data = (char *) malloc (pagesize);
6455 if (!data)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006456 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006457 for (i = 0; i < pagesize; ++i)
6458 *(data + i) = rand ();
6459 umask (0);
6460 fd = creat ("conftest.mmap", 0600);
6461 if (fd < 0)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006462 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006463 if (write (fd, data, pagesize) != pagesize)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006464 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006465 close (fd);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006466
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006467 /* Next, try to mmap the file at a fixed address which already has
6468 something else allocated at it. If we can, also make sure that
6469 we see the same garbage. */
6470 fd = open ("conftest.mmap", O_RDWR);
6471 if (fd < 0)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006472 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006473 data2 = (char *) malloc (2 * pagesize);
6474 if (!data2)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006475 return 1;
6476 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006477 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
6478 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Theodore Ts'oe1052142006-10-21 21:46:47 -04006479 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006480 for (i = 0; i < pagesize; ++i)
6481 if (*(data + i) != *(data2 + i))
Theodore Ts'oe1052142006-10-21 21:46:47 -04006482 return 1;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006483
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006484 /* Finally, make sure that changes to the mapped area do not
6485 percolate back to the file as seen by read(). (This is a bug on
6486 some variants of i386 svr4.0.) */
6487 for (i = 0; i < pagesize; ++i)
6488 *(data2 + i) = *(data2 + i) + 1;
6489 data3 = (char *) malloc (pagesize);
6490 if (!data3)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006491 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006492 if (read (fd, data3, pagesize) != pagesize)
Theodore Ts'oe1052142006-10-21 21:46:47 -04006493 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006494 for (i = 0; i < pagesize; ++i)
6495 if (*(data + i) != *(data3 + i))
Theodore Ts'oe1052142006-10-21 21:46:47 -04006496 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006497 close (fd);
Theodore Ts'oe1052142006-10-21 21:46:47 -04006498 return 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006499}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006500_ACEOF
6501rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006502if { (ac_try="$ac_link"
6503case "(($ac_try" in
6504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6505 *) ac_try_echo=$ac_try;;
6506esac
6507eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6508 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006509 ac_status=$?
6510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04006512 { (case "(($ac_try" in
6513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6514 *) ac_try_echo=$ac_try;;
6515esac
6516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6517 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006518 ac_status=$?
6519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520 (exit $ac_status); }; }; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006521 ac_cv_func_mmap_fixed_mapped=yes
6522else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006523 echo "$as_me: program exited with status $ac_status" >&5
6524echo "$as_me: failed program was:" >&5
6525sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006526
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006527( exit $ac_status )
6528ac_cv_func_mmap_fixed_mapped=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006529fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006530rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006531fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006532
6533
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006534fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006535{ echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
6536echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006537if test $ac_cv_func_mmap_fixed_mapped = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006538
6539cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006540#define HAVE_MMAP 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006541_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006542
6543fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006544rm -f conftest.mmap
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006545
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006546
Theodore Ts'oe1052142006-10-21 21:46:47 -04006547 { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
6548echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006549if test "${ac_cv_gnu_library_2_1+set}" = set; then
6550 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006551else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006552 cat >conftest.$ac_ext <<_ACEOF
6553/* confdefs.h. */
6554_ACEOF
6555cat confdefs.h >>conftest.$ac_ext
6556cat >>conftest.$ac_ext <<_ACEOF
6557/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006558
6559#include <features.h>
6560#ifdef __GNU_LIBRARY__
6561 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
6562 Lucky GNU user
6563 #endif
6564#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006565
6566_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006567if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006568 $EGREP "Lucky GNU user" >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006569 ac_cv_gnu_library_2_1=yes
6570else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006571 ac_cv_gnu_library_2_1=no
6572fi
6573rm -f conftest*
6574
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006575
6576
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006577fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006578{ echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
6579echo "${ECHO_T}$ac_cv_gnu_library_2_1" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006580
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006581 GLIBC21="$ac_cv_gnu_library_2_1"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006582
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006583
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006584
6585
Theodore Ts'oe1052142006-10-21 21:46:47 -04006586 { echo "$as_me:$LINENO: checking whether integer division by zero raises SIGFPE" >&5
6587echo $ECHO_N "checking whether integer division by zero raises SIGFPE... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006588if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then
6589 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006590else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006591
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006592 if test "$cross_compiling" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006593
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006594 # Guess based on the CPU.
6595 case "$host_cpu" in
6596 alpha* | i3456786 | m68k | s390*)
6597 gt_cv_int_divbyzero_sigfpe="guessing yes";;
6598 *)
6599 gt_cv_int_divbyzero_sigfpe="guessing no";;
6600 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006601
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006602else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006603 cat >conftest.$ac_ext <<_ACEOF
6604/* confdefs.h. */
6605_ACEOF
6606cat confdefs.h >>conftest.$ac_ext
6607cat >>conftest.$ac_ext <<_ACEOF
6608/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006609
6610#include <stdlib.h>
6611#include <signal.h>
6612
6613static void
6614#ifdef __cplusplus
6615sigfpe_handler (int sig)
6616#else
6617sigfpe_handler (sig) int sig;
6618#endif
6619{
6620 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
6621 exit (sig != SIGFPE);
6622}
6623
6624int x = 1;
6625int y = 0;
6626int z;
6627int nan;
6628
6629int main ()
6630{
6631 signal (SIGFPE, sigfpe_handler);
6632/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
6633#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
6634 signal (SIGTRAP, sigfpe_handler);
6635#endif
6636/* Linux/SPARC yields signal SIGILL. */
6637#if defined (__sparc__) && defined (__linux__)
6638 signal (SIGILL, sigfpe_handler);
6639#endif
6640
6641 z = x / y;
6642 nan = y / y;
6643 exit (1);
6644}
6645
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006646_ACEOF
6647rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006648if { (ac_try="$ac_link"
6649case "(($ac_try" in
6650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6651 *) ac_try_echo=$ac_try;;
6652esac
6653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6654 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006655 ac_status=$?
6656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6657 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04006658 { (case "(($ac_try" in
6659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6660 *) ac_try_echo=$ac_try;;
6661esac
6662eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6663 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006664 ac_status=$?
6665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666 (exit $ac_status); }; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006667 gt_cv_int_divbyzero_sigfpe=yes
6668else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006669 echo "$as_me: program exited with status $ac_status" >&5
6670echo "$as_me: failed program was:" >&5
6671sed 's/^/| /' conftest.$ac_ext >&5
6672
6673( exit $ac_status )
6674gt_cv_int_divbyzero_sigfpe=no
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006675fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006676rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006677fi
6678
Theodore Ts'oe1052142006-10-21 21:46:47 -04006679
6680
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006681fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006682{ echo "$as_me:$LINENO: result: $gt_cv_int_divbyzero_sigfpe" >&5
6683echo "${ECHO_T}$gt_cv_int_divbyzero_sigfpe" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006684 case "$gt_cv_int_divbyzero_sigfpe" in
6685 *yes) value=1;;
6686 *) value=0;;
6687 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006688
6689cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006690#define INTDIV0_RAISES_SIGFPE $value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006691_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006692
6693
6694
Theodore Ts'oe1052142006-10-21 21:46:47 -04006695 { echo "$as_me:$LINENO: checking for unsigned long long" >&5
6696echo $ECHO_N "checking for unsigned long long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006697if test "${ac_cv_type_unsigned_long_long+set}" = set; then
6698 echo $ECHO_N "(cached) $ECHO_C" >&6
6699else
6700 cat >conftest.$ac_ext <<_ACEOF
6701/* confdefs.h. */
6702_ACEOF
6703cat confdefs.h >>conftest.$ac_ext
6704cat >>conftest.$ac_ext <<_ACEOF
6705/* end confdefs.h. */
6706unsigned long long ull = 1ULL; int i = 63;
6707int
6708main ()
6709{
6710unsigned long long ullmax = (unsigned long long) -1;
6711 return ull << i | ull >> i | ullmax / ull | ullmax % ull;
6712 ;
6713 return 0;
6714}
6715_ACEOF
6716rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006717if { (ac_try="$ac_link"
6718case "(($ac_try" in
6719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6720 *) ac_try_echo=$ac_try;;
6721esac
6722eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6723 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006724 ac_status=$?
6725 grep -v '^ *+' conftest.er1 >conftest.err
6726 rm -f conftest.er1
6727 cat conftest.err >&5
6728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006729 (exit $ac_status); } && {
6730 test -z "$ac_c_werror_flag" ||
6731 test ! -s conftest.err
6732 } && test -s conftest$ac_exeext &&
6733 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006734 ac_cv_type_unsigned_long_long=yes
6735else
6736 echo "$as_me: failed program was:" >&5
6737sed 's/^/| /' conftest.$ac_ext >&5
6738
Theodore Ts'oe1052142006-10-21 21:46:47 -04006739 ac_cv_type_unsigned_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006740fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006741
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006742rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006743 conftest$ac_exeext conftest.$ac_ext
6744fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006745{ echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long" >&5
6746echo "${ECHO_T}$ac_cv_type_unsigned_long_long" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006747 if test $ac_cv_type_unsigned_long_long = yes; then
6748
6749cat >>confdefs.h <<\_ACEOF
6750#define HAVE_UNSIGNED_LONG_LONG 1
6751_ACEOF
6752
6753 fi
6754
6755
6756
6757
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006758 if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006759
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006760 test $ac_cv_type_unsigned_long_long = yes \
6761 && ac_type='unsigned long long' \
6762 || ac_type='unsigned long'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006763
6764cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006765#define uintmax_t $ac_type
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006766_ACEOF
6767
6768 else
6769
6770cat >>confdefs.h <<\_ACEOF
6771#define HAVE_UINTMAX_T 1
6772_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006773
6774 fi
6775
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006776
Theodore Ts'oe1052142006-10-21 21:46:47 -04006777 { echo "$as_me:$LINENO: checking for inttypes.h" >&5
6778echo $ECHO_N "checking for inttypes.h... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006779if test "${gt_cv_header_inttypes_h+set}" = set; then
6780 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006781else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006782
6783 cat >conftest.$ac_ext <<_ACEOF
6784/* confdefs.h. */
6785_ACEOF
6786cat confdefs.h >>conftest.$ac_ext
6787cat >>conftest.$ac_ext <<_ACEOF
6788/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006789#include <sys/types.h>
6790#include <inttypes.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006791int
6792main ()
6793{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006794
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006795 ;
6796 return 0;
6797}
6798_ACEOF
6799rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006800if { (ac_try="$ac_compile"
6801case "(($ac_try" in
6802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6803 *) ac_try_echo=$ac_try;;
6804esac
6805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6806 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006807 ac_status=$?
6808 grep -v '^ *+' conftest.er1 >conftest.err
6809 rm -f conftest.er1
6810 cat conftest.err >&5
6811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006812 (exit $ac_status); } && {
6813 test -z "$ac_c_werror_flag" ||
6814 test ! -s conftest.err
6815 } && test -s conftest.$ac_objext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006816 gt_cv_header_inttypes_h=yes
6817else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006818 echo "$as_me: failed program was:" >&5
6819sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006820
Theodore Ts'oe1052142006-10-21 21:46:47 -04006821 gt_cv_header_inttypes_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006822fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006823
6824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006825
6826fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006827{ echo "$as_me:$LINENO: result: $gt_cv_header_inttypes_h" >&5
6828echo "${ECHO_T}$gt_cv_header_inttypes_h" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006829 if test $gt_cv_header_inttypes_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006830
6831cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006832#define HAVE_INTTYPES_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006833_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006834
6835 fi
6836
Theodore Ts'o07a0db12003-07-05 14:50:24 -04006837
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006838
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006839 if test $gt_cv_header_inttypes_h = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04006840 { echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
6841echo $ECHO_N "checking whether the inttypes.h PRIxNN macros are broken... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006842if test "${gt_cv_inttypes_pri_broken+set}" = set; then
6843 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006844else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006845
6846 cat >conftest.$ac_ext <<_ACEOF
6847/* confdefs.h. */
6848_ACEOF
6849cat confdefs.h >>conftest.$ac_ext
6850cat >>conftest.$ac_ext <<_ACEOF
6851/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006852#include <inttypes.h>
6853#ifdef PRId32
6854char *p = PRId32;
6855#endif
6856
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006857int
6858main ()
6859{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006860
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006861 ;
6862 return 0;
6863}
6864_ACEOF
6865rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006866if { (ac_try="$ac_compile"
6867case "(($ac_try" in
6868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6869 *) ac_try_echo=$ac_try;;
6870esac
6871eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6872 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006873 ac_status=$?
6874 grep -v '^ *+' conftest.er1 >conftest.err
6875 rm -f conftest.er1
6876 cat conftest.err >&5
6877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006878 (exit $ac_status); } && {
6879 test -z "$ac_c_werror_flag" ||
6880 test ! -s conftest.err
6881 } && test -s conftest.$ac_objext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006882 gt_cv_inttypes_pri_broken=no
6883else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006884 echo "$as_me: failed program was:" >&5
6885sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006886
Theodore Ts'oe1052142006-10-21 21:46:47 -04006887 gt_cv_inttypes_pri_broken=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006888fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006889
6890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006891
6892fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006893{ echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
6894echo "${ECHO_T}$gt_cv_inttypes_pri_broken" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006895 fi
6896 if test "$gt_cv_inttypes_pri_broken" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006897
6898cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006899#define PRI_MACROS_BROKEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006900_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006901
6902 fi
6903
6904
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006905
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006906for ac_header in stdint.h
6907do
6908as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04006909if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6910 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6911echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6912if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006913 echo $ECHO_N "(cached) $ECHO_C" >&6
6914fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006915ac_res=`eval echo '${'$as_ac_Header'}'`
6916 { echo "$as_me:$LINENO: result: $ac_res" >&5
6917echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006918else
6919 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04006920{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
6921echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006922cat >conftest.$ac_ext <<_ACEOF
6923/* confdefs.h. */
6924_ACEOF
6925cat confdefs.h >>conftest.$ac_ext
6926cat >>conftest.$ac_ext <<_ACEOF
6927/* end confdefs.h. */
6928$ac_includes_default
6929#include <$ac_header>
6930_ACEOF
6931rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006932if { (ac_try="$ac_compile"
6933case "(($ac_try" in
6934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6935 *) ac_try_echo=$ac_try;;
6936esac
6937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6938 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006939 ac_status=$?
6940 grep -v '^ *+' conftest.er1 >conftest.err
6941 rm -f conftest.er1
6942 cat conftest.err >&5
6943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006944 (exit $ac_status); } && {
6945 test -z "$ac_c_werror_flag" ||
6946 test ! -s conftest.err
6947 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006948 ac_header_compiler=yes
6949else
6950 echo "$as_me: failed program was:" >&5
6951sed 's/^/| /' conftest.$ac_ext >&5
6952
Theodore Ts'oe1052142006-10-21 21:46:47 -04006953 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006954fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006955
6956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6957{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6958echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006959
6960# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04006961{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
6962echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006963cat >conftest.$ac_ext <<_ACEOF
6964/* confdefs.h. */
6965_ACEOF
6966cat confdefs.h >>conftest.$ac_ext
6967cat >>conftest.$ac_ext <<_ACEOF
6968/* end confdefs.h. */
6969#include <$ac_header>
6970_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006971if { (ac_try="$ac_cpp conftest.$ac_ext"
6972case "(($ac_try" in
6973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6974 *) ac_try_echo=$ac_try;;
6975esac
6976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6977 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006978 ac_status=$?
6979 grep -v '^ *+' conftest.er1 >conftest.err
6980 rm -f conftest.er1
6981 cat conftest.err >&5
6982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006983 (exit $ac_status); } >/dev/null && {
6984 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6985 test ! -s conftest.err
6986 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006987 ac_header_preproc=yes
6988else
6989 echo "$as_me: failed program was:" >&5
6990sed 's/^/| /' conftest.$ac_ext >&5
6991
6992 ac_header_preproc=no
6993fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006994
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006995rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04006996{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6997echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006998
6999# So? What about this header?
7000case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7001 yes:no: )
7002 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7003echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7004 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7005echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7006 ac_header_preproc=yes
7007 ;;
7008 no:yes:* )
7009 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7010echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7011 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7012echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7013 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7014echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7015 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7016echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7017 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7018echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7019 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7020echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04007021
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007022 ;;
7023esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04007024{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7025echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7026if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007027 echo $ECHO_N "(cached) $ECHO_C" >&6
7028else
7029 eval "$as_ac_Header=\$ac_header_preproc"
7030fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007031ac_res=`eval echo '${'$as_ac_Header'}'`
7032 { echo "$as_me:$LINENO: result: $ac_res" >&5
7033echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007034
7035fi
7036if test `eval echo '${'$as_ac_Header'}'` = yes; then
7037 cat >>confdefs.h <<_ACEOF
7038#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7039_ACEOF
7040
7041fi
7042
7043done
7044
Theodore Ts'oe1052142006-10-21 21:46:47 -04007045 { echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
7046echo $ECHO_N "checking for SIZE_MAX... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007047 result=
7048 cat >conftest.$ac_ext <<_ACEOF
7049/* confdefs.h. */
7050_ACEOF
7051cat confdefs.h >>conftest.$ac_ext
7052cat >>conftest.$ac_ext <<_ACEOF
7053/* end confdefs.h. */
7054
7055#include <limits.h>
7056#if HAVE_STDINT_H
7057#include <stdint.h>
7058#endif
7059#ifdef SIZE_MAX
7060Found it
7061#endif
7062
7063_ACEOF
7064if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7065 $EGREP "Found it" >/dev/null 2>&1; then
7066 result=yes
7067fi
7068rm -f conftest*
7069
7070 if test -z "$result"; then
7071 if test "$cross_compiling" = yes; then
7072 # Depending upon the size, compute the lo and hi bounds.
7073cat >conftest.$ac_ext <<_ACEOF
7074/* confdefs.h. */
7075_ACEOF
7076cat confdefs.h >>conftest.$ac_ext
7077cat >>conftest.$ac_ext <<_ACEOF
7078/* end confdefs.h. */
7079#include <stddef.h>
7080int
7081main ()
7082{
7083static int test_array [1 - 2 * !((~(size_t)0 / 10) >= 0)];
7084test_array [0] = 0
7085
7086 ;
7087 return 0;
7088}
7089_ACEOF
7090rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007091if { (ac_try="$ac_compile"
7092case "(($ac_try" in
7093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7094 *) ac_try_echo=$ac_try;;
7095esac
7096eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7097 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007098 ac_status=$?
7099 grep -v '^ *+' conftest.er1 >conftest.err
7100 rm -f conftest.er1
7101 cat conftest.err >&5
7102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007103 (exit $ac_status); } && {
7104 test -z "$ac_c_werror_flag" ||
7105 test ! -s conftest.err
7106 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007107 ac_lo=0 ac_mid=0
7108 while :; do
7109 cat >conftest.$ac_ext <<_ACEOF
7110/* confdefs.h. */
7111_ACEOF
7112cat confdefs.h >>conftest.$ac_ext
7113cat >>conftest.$ac_ext <<_ACEOF
7114/* end confdefs.h. */
7115#include <stddef.h>
7116int
7117main ()
7118{
7119static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7120test_array [0] = 0
7121
7122 ;
7123 return 0;
7124}
7125_ACEOF
7126rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007127if { (ac_try="$ac_compile"
7128case "(($ac_try" in
7129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7130 *) ac_try_echo=$ac_try;;
7131esac
7132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7133 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007134 ac_status=$?
7135 grep -v '^ *+' conftest.er1 >conftest.err
7136 rm -f conftest.er1
7137 cat conftest.err >&5
7138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007139 (exit $ac_status); } && {
7140 test -z "$ac_c_werror_flag" ||
7141 test ! -s conftest.err
7142 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007143 ac_hi=$ac_mid; break
7144else
7145 echo "$as_me: failed program was:" >&5
7146sed 's/^/| /' conftest.$ac_ext >&5
7147
Theodore Ts'oe1052142006-10-21 21:46:47 -04007148 ac_lo=`expr $ac_mid + 1`
7149 if test $ac_lo -le $ac_mid; then
7150 ac_lo= ac_hi=
7151 break
7152 fi
7153 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007154fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007155
7156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007157 done
7158else
7159 echo "$as_me: failed program was:" >&5
7160sed 's/^/| /' conftest.$ac_ext >&5
7161
Theodore Ts'oe1052142006-10-21 21:46:47 -04007162 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007163/* confdefs.h. */
7164_ACEOF
7165cat confdefs.h >>conftest.$ac_ext
7166cat >>conftest.$ac_ext <<_ACEOF
7167/* end confdefs.h. */
7168#include <stddef.h>
7169int
7170main ()
7171{
7172static int test_array [1 - 2 * !((~(size_t)0 / 10) < 0)];
7173test_array [0] = 0
7174
7175 ;
7176 return 0;
7177}
7178_ACEOF
7179rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007180if { (ac_try="$ac_compile"
7181case "(($ac_try" in
7182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7183 *) ac_try_echo=$ac_try;;
7184esac
7185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7186 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007187 ac_status=$?
7188 grep -v '^ *+' conftest.er1 >conftest.err
7189 rm -f conftest.er1
7190 cat conftest.err >&5
7191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007192 (exit $ac_status); } && {
7193 test -z "$ac_c_werror_flag" ||
7194 test ! -s conftest.err
7195 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007196 ac_hi=-1 ac_mid=-1
7197 while :; do
7198 cat >conftest.$ac_ext <<_ACEOF
7199/* confdefs.h. */
7200_ACEOF
7201cat confdefs.h >>conftest.$ac_ext
7202cat >>conftest.$ac_ext <<_ACEOF
7203/* end confdefs.h. */
7204#include <stddef.h>
7205int
7206main ()
7207{
7208static int test_array [1 - 2 * !((~(size_t)0 / 10) >= $ac_mid)];
7209test_array [0] = 0
7210
7211 ;
7212 return 0;
7213}
7214_ACEOF
7215rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007216if { (ac_try="$ac_compile"
7217case "(($ac_try" in
7218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7219 *) ac_try_echo=$ac_try;;
7220esac
7221eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7222 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007223 ac_status=$?
7224 grep -v '^ *+' conftest.er1 >conftest.err
7225 rm -f conftest.er1
7226 cat conftest.err >&5
7227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007228 (exit $ac_status); } && {
7229 test -z "$ac_c_werror_flag" ||
7230 test ! -s conftest.err
7231 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007232 ac_lo=$ac_mid; break
7233else
7234 echo "$as_me: failed program was:" >&5
7235sed 's/^/| /' conftest.$ac_ext >&5
7236
Theodore Ts'oe1052142006-10-21 21:46:47 -04007237 ac_hi=`expr '(' $ac_mid ')' - 1`
7238 if test $ac_mid -le $ac_hi; then
7239 ac_lo= ac_hi=
7240 break
7241 fi
7242 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007243fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007244
7245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007246 done
7247else
7248 echo "$as_me: failed program was:" >&5
7249sed 's/^/| /' conftest.$ac_ext >&5
7250
Theodore Ts'oe1052142006-10-21 21:46:47 -04007251 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007252fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007253
7254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007255fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007256
7257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007258# Binary search between lo and hi bounds.
7259while test "x$ac_lo" != "x$ac_hi"; do
7260 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7261 cat >conftest.$ac_ext <<_ACEOF
7262/* confdefs.h. */
7263_ACEOF
7264cat confdefs.h >>conftest.$ac_ext
7265cat >>conftest.$ac_ext <<_ACEOF
7266/* end confdefs.h. */
7267#include <stddef.h>
7268int
7269main ()
7270{
7271static int test_array [1 - 2 * !((~(size_t)0 / 10) <= $ac_mid)];
7272test_array [0] = 0
7273
7274 ;
7275 return 0;
7276}
7277_ACEOF
7278rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007279if { (ac_try="$ac_compile"
7280case "(($ac_try" in
7281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7282 *) ac_try_echo=$ac_try;;
7283esac
7284eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7285 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007286 ac_status=$?
7287 grep -v '^ *+' conftest.er1 >conftest.err
7288 rm -f conftest.er1
7289 cat conftest.err >&5
7290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007291 (exit $ac_status); } && {
7292 test -z "$ac_c_werror_flag" ||
7293 test ! -s conftest.err
7294 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007295 ac_hi=$ac_mid
7296else
7297 echo "$as_me: failed program was:" >&5
7298sed 's/^/| /' conftest.$ac_ext >&5
7299
Theodore Ts'oe1052142006-10-21 21:46:47 -04007300 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007301fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007302
7303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007304done
7305case $ac_lo in
7306?*) res_hi=$ac_lo;;
7307'') result=? ;;
7308esac
7309else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007310 cat >conftest.$ac_ext <<_ACEOF
7311/* confdefs.h. */
7312_ACEOF
7313cat confdefs.h >>conftest.$ac_ext
7314cat >>conftest.$ac_ext <<_ACEOF
7315/* end confdefs.h. */
7316#include <stddef.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04007317static long int longval () { return ~(size_t)0 / 10; }
7318static unsigned long int ulongval () { return ~(size_t)0 / 10; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007319#include <stdio.h>
7320#include <stdlib.h>
7321int
7322main ()
7323{
7324
7325 FILE *f = fopen ("conftest.val", "w");
7326 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007327 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007328 if ((~(size_t)0 / 10) < 0)
7329 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04007330 long int i = longval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007331 if (i != (~(size_t)0 / 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007332 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007333 fprintf (f, "%ld\n", i);
7334 }
7335 else
7336 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04007337 unsigned long int i = ulongval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007338 if (i != (~(size_t)0 / 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007339 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007340 fprintf (f, "%lu\n", i);
7341 }
Theodore Ts'oe1052142006-10-21 21:46:47 -04007342 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007343
7344 ;
7345 return 0;
7346}
7347_ACEOF
7348rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007349if { (ac_try="$ac_link"
7350case "(($ac_try" in
7351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7352 *) ac_try_echo=$ac_try;;
7353esac
7354eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7355 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007356 ac_status=$?
7357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7358 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04007359 { (case "(($ac_try" in
7360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7361 *) ac_try_echo=$ac_try;;
7362esac
7363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7364 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007365 ac_status=$?
7366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7367 (exit $ac_status); }; }; then
7368 res_hi=`cat conftest.val`
7369else
7370 echo "$as_me: program exited with status $ac_status" >&5
7371echo "$as_me: failed program was:" >&5
7372sed 's/^/| /' conftest.$ac_ext >&5
7373
7374( exit $ac_status )
7375result=?
7376fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007377rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007378fi
7379rm -f conftest.val
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007380
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007381 if test "$cross_compiling" = yes; then
7382 # Depending upon the size, compute the lo and hi bounds.
7383cat >conftest.$ac_ext <<_ACEOF
7384/* confdefs.h. */
7385_ACEOF
7386cat confdefs.h >>conftest.$ac_ext
7387cat >>conftest.$ac_ext <<_ACEOF
7388/* end confdefs.h. */
7389#include <stddef.h>
7390int
7391main ()
7392{
7393static int test_array [1 - 2 * !((~(size_t)0 % 10) >= 0)];
7394test_array [0] = 0
7395
7396 ;
7397 return 0;
7398}
7399_ACEOF
7400rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007401if { (ac_try="$ac_compile"
7402case "(($ac_try" in
7403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7404 *) ac_try_echo=$ac_try;;
7405esac
7406eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7407 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007408 ac_status=$?
7409 grep -v '^ *+' conftest.er1 >conftest.err
7410 rm -f conftest.er1
7411 cat conftest.err >&5
7412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007413 (exit $ac_status); } && {
7414 test -z "$ac_c_werror_flag" ||
7415 test ! -s conftest.err
7416 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007417 ac_lo=0 ac_mid=0
7418 while :; do
7419 cat >conftest.$ac_ext <<_ACEOF
7420/* confdefs.h. */
7421_ACEOF
7422cat confdefs.h >>conftest.$ac_ext
7423cat >>conftest.$ac_ext <<_ACEOF
7424/* end confdefs.h. */
7425#include <stddef.h>
7426int
7427main ()
7428{
7429static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7430test_array [0] = 0
7431
7432 ;
7433 return 0;
7434}
7435_ACEOF
7436rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007437if { (ac_try="$ac_compile"
7438case "(($ac_try" in
7439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7440 *) ac_try_echo=$ac_try;;
7441esac
7442eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7443 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007444 ac_status=$?
7445 grep -v '^ *+' conftest.er1 >conftest.err
7446 rm -f conftest.er1
7447 cat conftest.err >&5
7448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007449 (exit $ac_status); } && {
7450 test -z "$ac_c_werror_flag" ||
7451 test ! -s conftest.err
7452 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007453 ac_hi=$ac_mid; break
7454else
7455 echo "$as_me: failed program was:" >&5
7456sed 's/^/| /' conftest.$ac_ext >&5
7457
Theodore Ts'oe1052142006-10-21 21:46:47 -04007458 ac_lo=`expr $ac_mid + 1`
7459 if test $ac_lo -le $ac_mid; then
7460 ac_lo= ac_hi=
7461 break
7462 fi
7463 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007464fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007465
7466rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007467 done
7468else
7469 echo "$as_me: failed program was:" >&5
7470sed 's/^/| /' conftest.$ac_ext >&5
7471
Theodore Ts'oe1052142006-10-21 21:46:47 -04007472 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007473/* confdefs.h. */
7474_ACEOF
7475cat confdefs.h >>conftest.$ac_ext
7476cat >>conftest.$ac_ext <<_ACEOF
7477/* end confdefs.h. */
7478#include <stddef.h>
7479int
7480main ()
7481{
7482static int test_array [1 - 2 * !((~(size_t)0 % 10) < 0)];
7483test_array [0] = 0
7484
7485 ;
7486 return 0;
7487}
7488_ACEOF
7489rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007490if { (ac_try="$ac_compile"
7491case "(($ac_try" in
7492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7493 *) ac_try_echo=$ac_try;;
7494esac
7495eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7496 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007497 ac_status=$?
7498 grep -v '^ *+' conftest.er1 >conftest.err
7499 rm -f conftest.er1
7500 cat conftest.err >&5
7501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007502 (exit $ac_status); } && {
7503 test -z "$ac_c_werror_flag" ||
7504 test ! -s conftest.err
7505 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007506 ac_hi=-1 ac_mid=-1
7507 while :; do
7508 cat >conftest.$ac_ext <<_ACEOF
7509/* confdefs.h. */
7510_ACEOF
7511cat confdefs.h >>conftest.$ac_ext
7512cat >>conftest.$ac_ext <<_ACEOF
7513/* end confdefs.h. */
7514#include <stddef.h>
7515int
7516main ()
7517{
7518static int test_array [1 - 2 * !((~(size_t)0 % 10) >= $ac_mid)];
7519test_array [0] = 0
7520
7521 ;
7522 return 0;
7523}
7524_ACEOF
7525rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007526if { (ac_try="$ac_compile"
7527case "(($ac_try" in
7528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7529 *) ac_try_echo=$ac_try;;
7530esac
7531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7532 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007533 ac_status=$?
7534 grep -v '^ *+' conftest.er1 >conftest.err
7535 rm -f conftest.er1
7536 cat conftest.err >&5
7537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007538 (exit $ac_status); } && {
7539 test -z "$ac_c_werror_flag" ||
7540 test ! -s conftest.err
7541 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007542 ac_lo=$ac_mid; break
7543else
7544 echo "$as_me: failed program was:" >&5
7545sed 's/^/| /' conftest.$ac_ext >&5
7546
Theodore Ts'oe1052142006-10-21 21:46:47 -04007547 ac_hi=`expr '(' $ac_mid ')' - 1`
7548 if test $ac_mid -le $ac_hi; then
7549 ac_lo= ac_hi=
7550 break
7551 fi
7552 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007553fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007554
7555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007556 done
7557else
7558 echo "$as_me: failed program was:" >&5
7559sed 's/^/| /' conftest.$ac_ext >&5
7560
Theodore Ts'oe1052142006-10-21 21:46:47 -04007561 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007562fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007563
7564rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007565fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007566
7567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007568# Binary search between lo and hi bounds.
7569while test "x$ac_lo" != "x$ac_hi"; do
7570 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7571 cat >conftest.$ac_ext <<_ACEOF
7572/* confdefs.h. */
7573_ACEOF
7574cat confdefs.h >>conftest.$ac_ext
7575cat >>conftest.$ac_ext <<_ACEOF
7576/* end confdefs.h. */
7577#include <stddef.h>
7578int
7579main ()
7580{
7581static int test_array [1 - 2 * !((~(size_t)0 % 10) <= $ac_mid)];
7582test_array [0] = 0
7583
7584 ;
7585 return 0;
7586}
7587_ACEOF
7588rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007589if { (ac_try="$ac_compile"
7590case "(($ac_try" in
7591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7592 *) ac_try_echo=$ac_try;;
7593esac
7594eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7595 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007596 ac_status=$?
7597 grep -v '^ *+' conftest.er1 >conftest.err
7598 rm -f conftest.er1
7599 cat conftest.err >&5
7600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007601 (exit $ac_status); } && {
7602 test -z "$ac_c_werror_flag" ||
7603 test ! -s conftest.err
7604 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007605 ac_hi=$ac_mid
7606else
7607 echo "$as_me: failed program was:" >&5
7608sed 's/^/| /' conftest.$ac_ext >&5
7609
Theodore Ts'oe1052142006-10-21 21:46:47 -04007610 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007611fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007612
7613rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007614done
7615case $ac_lo in
7616?*) res_lo=$ac_lo;;
7617'') result=? ;;
7618esac
7619else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007620 cat >conftest.$ac_ext <<_ACEOF
7621/* confdefs.h. */
7622_ACEOF
7623cat confdefs.h >>conftest.$ac_ext
7624cat >>conftest.$ac_ext <<_ACEOF
7625/* end confdefs.h. */
7626#include <stddef.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04007627static long int longval () { return ~(size_t)0 % 10; }
7628static unsigned long int ulongval () { return ~(size_t)0 % 10; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007629#include <stdio.h>
7630#include <stdlib.h>
7631int
7632main ()
7633{
7634
7635 FILE *f = fopen ("conftest.val", "w");
7636 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007637 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007638 if ((~(size_t)0 % 10) < 0)
7639 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04007640 long int i = longval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007641 if (i != (~(size_t)0 % 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007642 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007643 fprintf (f, "%ld\n", i);
7644 }
7645 else
7646 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04007647 unsigned long int i = ulongval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007648 if (i != (~(size_t)0 % 10))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007649 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007650 fprintf (f, "%lu\n", i);
7651 }
Theodore Ts'oe1052142006-10-21 21:46:47 -04007652 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007653
7654 ;
7655 return 0;
7656}
7657_ACEOF
7658rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007659if { (ac_try="$ac_link"
7660case "(($ac_try" in
7661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7662 *) ac_try_echo=$ac_try;;
7663esac
7664eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7665 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007666 ac_status=$?
7667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7668 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04007669 { (case "(($ac_try" in
7670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7671 *) ac_try_echo=$ac_try;;
7672esac
7673eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7674 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007675 ac_status=$?
7676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7677 (exit $ac_status); }; }; then
7678 res_lo=`cat conftest.val`
7679else
7680 echo "$as_me: program exited with status $ac_status" >&5
7681echo "$as_me: failed program was:" >&5
7682sed 's/^/| /' conftest.$ac_ext >&5
7683
7684( exit $ac_status )
7685result=?
7686fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007687rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007688fi
7689rm -f conftest.val
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007690
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007691 if test "$cross_compiling" = yes; then
7692 # Depending upon the size, compute the lo and hi bounds.
7693cat >conftest.$ac_ext <<_ACEOF
7694/* confdefs.h. */
7695_ACEOF
7696cat confdefs.h >>conftest.$ac_ext
7697cat >>conftest.$ac_ext <<_ACEOF
7698/* end confdefs.h. */
7699#include <stddef.h>
7700int
7701main ()
7702{
7703static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
7704test_array [0] = 0
7705
7706 ;
7707 return 0;
7708}
7709_ACEOF
7710rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007711if { (ac_try="$ac_compile"
7712case "(($ac_try" in
7713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7714 *) ac_try_echo=$ac_try;;
7715esac
7716eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7717 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007718 ac_status=$?
7719 grep -v '^ *+' conftest.er1 >conftest.err
7720 rm -f conftest.er1
7721 cat conftest.err >&5
7722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007723 (exit $ac_status); } && {
7724 test -z "$ac_c_werror_flag" ||
7725 test ! -s conftest.err
7726 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007727 ac_lo=0 ac_mid=0
7728 while :; do
7729 cat >conftest.$ac_ext <<_ACEOF
7730/* confdefs.h. */
7731_ACEOF
7732cat confdefs.h >>conftest.$ac_ext
7733cat >>conftest.$ac_ext <<_ACEOF
7734/* end confdefs.h. */
7735#include <stddef.h>
7736int
7737main ()
7738{
7739static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7740test_array [0] = 0
7741
7742 ;
7743 return 0;
7744}
7745_ACEOF
7746rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007747if { (ac_try="$ac_compile"
7748case "(($ac_try" in
7749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7750 *) ac_try_echo=$ac_try;;
7751esac
7752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7753 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007754 ac_status=$?
7755 grep -v '^ *+' conftest.er1 >conftest.err
7756 rm -f conftest.er1
7757 cat conftest.err >&5
7758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007759 (exit $ac_status); } && {
7760 test -z "$ac_c_werror_flag" ||
7761 test ! -s conftest.err
7762 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007763 ac_hi=$ac_mid; break
7764else
7765 echo "$as_me: failed program was:" >&5
7766sed 's/^/| /' conftest.$ac_ext >&5
7767
Theodore Ts'oe1052142006-10-21 21:46:47 -04007768 ac_lo=`expr $ac_mid + 1`
7769 if test $ac_lo -le $ac_mid; then
7770 ac_lo= ac_hi=
7771 break
7772 fi
7773 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007774fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007775
7776rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007777 done
7778else
7779 echo "$as_me: failed program was:" >&5
7780sed 's/^/| /' conftest.$ac_ext >&5
7781
Theodore Ts'oe1052142006-10-21 21:46:47 -04007782 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007783/* confdefs.h. */
7784_ACEOF
7785cat confdefs.h >>conftest.$ac_ext
7786cat >>conftest.$ac_ext <<_ACEOF
7787/* end confdefs.h. */
7788#include <stddef.h>
7789int
7790main ()
7791{
7792static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
7793test_array [0] = 0
7794
7795 ;
7796 return 0;
7797}
7798_ACEOF
7799rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007800if { (ac_try="$ac_compile"
7801case "(($ac_try" in
7802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7803 *) ac_try_echo=$ac_try;;
7804esac
7805eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7806 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007807 ac_status=$?
7808 grep -v '^ *+' conftest.er1 >conftest.err
7809 rm -f conftest.er1
7810 cat conftest.err >&5
7811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007812 (exit $ac_status); } && {
7813 test -z "$ac_c_werror_flag" ||
7814 test ! -s conftest.err
7815 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007816 ac_hi=-1 ac_mid=-1
7817 while :; do
7818 cat >conftest.$ac_ext <<_ACEOF
7819/* confdefs.h. */
7820_ACEOF
7821cat confdefs.h >>conftest.$ac_ext
7822cat >>conftest.$ac_ext <<_ACEOF
7823/* end confdefs.h. */
7824#include <stddef.h>
7825int
7826main ()
7827{
7828static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
7829test_array [0] = 0
7830
7831 ;
7832 return 0;
7833}
7834_ACEOF
7835rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007836if { (ac_try="$ac_compile"
7837case "(($ac_try" in
7838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7839 *) ac_try_echo=$ac_try;;
7840esac
7841eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7842 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007843 ac_status=$?
7844 grep -v '^ *+' conftest.er1 >conftest.err
7845 rm -f conftest.er1
7846 cat conftest.err >&5
7847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007848 (exit $ac_status); } && {
7849 test -z "$ac_c_werror_flag" ||
7850 test ! -s conftest.err
7851 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007852 ac_lo=$ac_mid; break
7853else
7854 echo "$as_me: failed program was:" >&5
7855sed 's/^/| /' conftest.$ac_ext >&5
7856
Theodore Ts'oe1052142006-10-21 21:46:47 -04007857 ac_hi=`expr '(' $ac_mid ')' - 1`
7858 if test $ac_mid -le $ac_hi; then
7859 ac_lo= ac_hi=
7860 break
7861 fi
7862 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007863fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007864
7865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007866 done
7867else
7868 echo "$as_me: failed program was:" >&5
7869sed 's/^/| /' conftest.$ac_ext >&5
7870
Theodore Ts'oe1052142006-10-21 21:46:47 -04007871 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007872fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007873
7874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007875fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007876
7877rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007878# Binary search between lo and hi bounds.
7879while test "x$ac_lo" != "x$ac_hi"; do
7880 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7881 cat >conftest.$ac_ext <<_ACEOF
7882/* confdefs.h. */
7883_ACEOF
7884cat confdefs.h >>conftest.$ac_ext
7885cat >>conftest.$ac_ext <<_ACEOF
7886/* end confdefs.h. */
7887#include <stddef.h>
7888int
7889main ()
7890{
7891static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
7892test_array [0] = 0
7893
7894 ;
7895 return 0;
7896}
7897_ACEOF
7898rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007899if { (ac_try="$ac_compile"
7900case "(($ac_try" in
7901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7902 *) ac_try_echo=$ac_try;;
7903esac
7904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7905 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007906 ac_status=$?
7907 grep -v '^ *+' conftest.er1 >conftest.err
7908 rm -f conftest.er1
7909 cat conftest.err >&5
7910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007911 (exit $ac_status); } && {
7912 test -z "$ac_c_werror_flag" ||
7913 test ! -s conftest.err
7914 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007915 ac_hi=$ac_mid
7916else
7917 echo "$as_me: failed program was:" >&5
7918sed 's/^/| /' conftest.$ac_ext >&5
7919
Theodore Ts'oe1052142006-10-21 21:46:47 -04007920 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007921fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007922
7923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007924done
7925case $ac_lo in
7926?*) fits_in_uint=$ac_lo;;
7927'') result=? ;;
7928esac
7929else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007930 cat >conftest.$ac_ext <<_ACEOF
7931/* confdefs.h. */
7932_ACEOF
7933cat confdefs.h >>conftest.$ac_ext
7934cat >>conftest.$ac_ext <<_ACEOF
7935/* end confdefs.h. */
7936#include <stddef.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -04007937static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
7938static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007939#include <stdio.h>
7940#include <stdlib.h>
7941int
7942main ()
7943{
7944
7945 FILE *f = fopen ("conftest.val", "w");
7946 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007947 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007948 if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
7949 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04007950 long int i = longval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007951 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007952 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007953 fprintf (f, "%ld\n", i);
7954 }
7955 else
7956 {
Theodore Ts'oe1052142006-10-21 21:46:47 -04007957 unsigned long int i = ulongval ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007958 if (i != (sizeof (size_t) <= sizeof (unsigned int)))
Theodore Ts'oe1052142006-10-21 21:46:47 -04007959 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007960 fprintf (f, "%lu\n", i);
7961 }
Theodore Ts'oe1052142006-10-21 21:46:47 -04007962 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007963
7964 ;
7965 return 0;
7966}
7967_ACEOF
7968rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04007969if { (ac_try="$ac_link"
7970case "(($ac_try" in
7971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7972 *) ac_try_echo=$ac_try;;
7973esac
7974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7975 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007976 ac_status=$?
7977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7978 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -04007979 { (case "(($ac_try" in
7980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7981 *) ac_try_echo=$ac_try;;
7982esac
7983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7984 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007985 ac_status=$?
7986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987 (exit $ac_status); }; }; then
7988 fits_in_uint=`cat conftest.val`
7989else
7990 echo "$as_me: program exited with status $ac_status" >&5
7991echo "$as_me: failed program was:" >&5
7992sed 's/^/| /' conftest.$ac_ext >&5
7993
7994( exit $ac_status )
7995result=?
7996fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007997rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007998fi
7999rm -f conftest.val
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008000
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008001 if test "$fits_in_uint" = 1; then
8002 cat >conftest.$ac_ext <<_ACEOF
8003/* confdefs.h. */
8004_ACEOF
8005cat confdefs.h >>conftest.$ac_ext
8006cat >>conftest.$ac_ext <<_ACEOF
8007/* end confdefs.h. */
8008#include <stddef.h>
8009 extern size_t foo;
8010 extern unsigned long foo;
8011
8012int
8013main ()
8014{
8015
8016 ;
8017 return 0;
8018}
8019_ACEOF
8020rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008021if { (ac_try="$ac_compile"
8022case "(($ac_try" in
8023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8024 *) ac_try_echo=$ac_try;;
8025esac
8026eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8027 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008028 ac_status=$?
8029 grep -v '^ *+' conftest.er1 >conftest.err
8030 rm -f conftest.er1
8031 cat conftest.err >&5
8032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008033 (exit $ac_status); } && {
8034 test -z "$ac_c_werror_flag" ||
8035 test ! -s conftest.err
8036 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008037 fits_in_uint=0
8038else
8039 echo "$as_me: failed program was:" >&5
8040sed 's/^/| /' conftest.$ac_ext >&5
8041
Theodore Ts'oe1052142006-10-21 21:46:47 -04008042
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008043fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008044
8045rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008046 fi
8047 if test -z "$result"; then
8048 if test "$fits_in_uint" = 1; then
8049 result="$res_hi$res_lo"U
8050 else
8051 result="$res_hi$res_lo"UL
8052 fi
8053 else
8054 result='~(size_t)0'
8055 fi
8056 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008057 { echo "$as_me:$LINENO: result: $result" >&5
8058echo "${ECHO_T}$result" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008059 if test "$result" != yes; then
8060
8061cat >>confdefs.h <<_ACEOF
8062#define SIZE_MAX $result
8063_ACEOF
8064
8065 fi
8066
8067
8068
8069
8070for ac_header in stdint.h
8071do
8072as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04008073if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8074 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8075echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8076if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008077 echo $ECHO_N "(cached) $ECHO_C" >&6
8078fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008079ac_res=`eval echo '${'$as_ac_Header'}'`
8080 { echo "$as_me:$LINENO: result: $ac_res" >&5
8081echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008082else
8083 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04008084{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8085echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008086cat >conftest.$ac_ext <<_ACEOF
8087/* confdefs.h. */
8088_ACEOF
8089cat confdefs.h >>conftest.$ac_ext
8090cat >>conftest.$ac_ext <<_ACEOF
8091/* end confdefs.h. */
8092$ac_includes_default
8093#include <$ac_header>
8094_ACEOF
8095rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008096if { (ac_try="$ac_compile"
8097case "(($ac_try" in
8098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8099 *) ac_try_echo=$ac_try;;
8100esac
8101eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8102 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008103 ac_status=$?
8104 grep -v '^ *+' conftest.er1 >conftest.err
8105 rm -f conftest.er1
8106 cat conftest.err >&5
8107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008108 (exit $ac_status); } && {
8109 test -z "$ac_c_werror_flag" ||
8110 test ! -s conftest.err
8111 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008112 ac_header_compiler=yes
8113else
8114 echo "$as_me: failed program was:" >&5
8115sed 's/^/| /' conftest.$ac_ext >&5
8116
Theodore Ts'oe1052142006-10-21 21:46:47 -04008117 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008118fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008119
8120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8121{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8122echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008123
8124# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04008125{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8126echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008127cat >conftest.$ac_ext <<_ACEOF
8128/* confdefs.h. */
8129_ACEOF
8130cat confdefs.h >>conftest.$ac_ext
8131cat >>conftest.$ac_ext <<_ACEOF
8132/* end confdefs.h. */
8133#include <$ac_header>
8134_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04008135if { (ac_try="$ac_cpp conftest.$ac_ext"
8136case "(($ac_try" in
8137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8138 *) ac_try_echo=$ac_try;;
8139esac
8140eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8141 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008142 ac_status=$?
8143 grep -v '^ *+' conftest.er1 >conftest.err
8144 rm -f conftest.er1
8145 cat conftest.err >&5
8146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008147 (exit $ac_status); } >/dev/null && {
8148 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8149 test ! -s conftest.err
8150 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008151 ac_header_preproc=yes
8152else
8153 echo "$as_me: failed program was:" >&5
8154sed 's/^/| /' conftest.$ac_ext >&5
8155
8156 ac_header_preproc=no
8157fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008158
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008159rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008160{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8161echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008162
8163# So? What about this header?
8164case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8165 yes:no: )
8166 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8167echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8168 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8169echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8170 ac_header_preproc=yes
8171 ;;
8172 no:yes:* )
8173 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8174echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8175 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8176echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8177 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8178echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8179 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8180echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8181 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8182echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8183 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8184echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04008185
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008186 ;;
8187esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04008188{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8189echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8190if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008191 echo $ECHO_N "(cached) $ECHO_C" >&6
8192else
8193 eval "$as_ac_Header=\$ac_header_preproc"
8194fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008195ac_res=`eval echo '${'$as_ac_Header'}'`
8196 { echo "$as_me:$LINENO: result: $ac_res" >&5
8197echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008198
8199fi
8200if test `eval echo '${'$as_ac_Header'}'` = yes; then
8201 cat >>confdefs.h <<_ACEOF
8202#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8203_ACEOF
8204
8205fi
8206
8207done
8208
8209
8210
8211 if test "X$prefix" = "XNONE"; then
8212 acl_final_prefix="$ac_default_prefix"
8213 else
8214 acl_final_prefix="$prefix"
8215 fi
8216 if test "X$exec_prefix" = "XNONE"; then
8217 acl_final_exec_prefix='${prefix}'
8218 else
8219 acl_final_exec_prefix="$exec_prefix"
8220 fi
8221 acl_save_prefix="$prefix"
8222 prefix="$acl_final_prefix"
8223 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8224 prefix="$acl_save_prefix"
8225
8226
Theodore Ts'oe1052142006-10-21 21:46:47 -04008227# Check whether --with-gnu-ld was given.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008228if test "${with_gnu_ld+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008229 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008230else
8231 with_gnu_ld=no
Theodore Ts'oe1052142006-10-21 21:46:47 -04008232fi
8233
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008234# Prepare PATH_SEPARATOR.
8235# The user is always right.
8236if test "${PATH_SEPARATOR+set}" != set; then
8237 echo "#! /bin/sh" >conf$$.sh
8238 echo "exit 0" >>conf$$.sh
8239 chmod +x conf$$.sh
8240 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8241 PATH_SEPARATOR=';'
8242 else
8243 PATH_SEPARATOR=:
8244 fi
8245 rm -f conf$$.sh
8246fi
8247ac_prog=ld
8248if test "$GCC" = yes; then
8249 # Check if gcc -print-prog-name=ld gives a path.
Theodore Ts'oe1052142006-10-21 21:46:47 -04008250 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
8251echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008252 case $host in
8253 *-*-mingw*)
8254 # gcc leaves a trailing carriage return which upsets mingw
8255 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8256 *)
8257 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8258 esac
8259 case $ac_prog in
8260 # Accept absolute paths.
8261 [\\/]* | [A-Za-z]:[\\/]*)
8262 re_direlt='/[^/][^/]*/\.\./'
8263 # Canonicalize the path of ld
8264 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
8265 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
8266 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
8267 done
8268 test -z "$LD" && LD="$ac_prog"
8269 ;;
8270 "")
8271 # If it fails, then pretend we aren't using GCC.
8272 ac_prog=ld
8273 ;;
8274 *)
8275 # If it is relative, then search for the first ld in PATH.
8276 with_gnu_ld=unknown
8277 ;;
8278 esac
8279elif test "$with_gnu_ld" = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008280 { echo "$as_me:$LINENO: checking for GNU ld" >&5
8281echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008282else
Theodore Ts'oe1052142006-10-21 21:46:47 -04008283 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
8284echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008285fi
8286if test "${acl_cv_path_LD+set}" = set; then
8287 echo $ECHO_N "(cached) $ECHO_C" >&6
8288else
8289 if test -z "$LD"; then
8290 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
8291 for ac_dir in $PATH; do
8292 test -z "$ac_dir" && ac_dir=.
8293 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8294 acl_cv_path_LD="$ac_dir/$ac_prog"
8295 # Check to see if the program is GNU ld. I'd rather use --version,
8296 # but apparently some GNU ld's only accept -v.
8297 # Break only if it was the GNU/non-GNU ld that we prefer.
8298 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
8299 *GNU* | *'with BFD'*)
8300 test "$with_gnu_ld" != no && break ;;
8301 *)
8302 test "$with_gnu_ld" != yes && break ;;
8303 esac
8304 fi
8305 done
8306 IFS="$ac_save_ifs"
8307else
8308 acl_cv_path_LD="$LD" # Let the user override the test with a path.
8309fi
8310fi
8311
8312LD="$acl_cv_path_LD"
8313if test -n "$LD"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008314 { echo "$as_me:$LINENO: result: $LD" >&5
8315echo "${ECHO_T}$LD" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008316else
Theodore Ts'oe1052142006-10-21 21:46:47 -04008317 { echo "$as_me:$LINENO: result: no" >&5
8318echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008319fi
8320test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
8321echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
8322 { (exit 1); exit 1; }; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04008323{ echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
8324echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008325if test "${acl_cv_prog_gnu_ld+set}" = set; then
8326 echo $ECHO_N "(cached) $ECHO_C" >&6
8327else
8328 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
8329case `$LD -v 2>&1 </dev/null` in
8330*GNU* | *'with BFD'*)
8331 acl_cv_prog_gnu_ld=yes ;;
8332*)
8333 acl_cv_prog_gnu_ld=no ;;
8334esac
8335fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008336{ echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
8337echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008338with_gnu_ld=$acl_cv_prog_gnu_ld
8339
8340
8341
Theodore Ts'oe1052142006-10-21 21:46:47 -04008342 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
8343echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008344if test "${acl_cv_rpath+set}" = set; then
8345 echo $ECHO_N "(cached) $ECHO_C" >&6
8346else
8347
8348 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8349 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8350 . ./conftest.sh
8351 rm -f ./conftest.sh
8352 acl_cv_rpath=done
8353
8354fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008355{ echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
8356echo "${ECHO_T}$acl_cv_rpath" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008357 wl="$acl_cv_wl"
8358 libext="$acl_cv_libext"
8359 shlibext="$acl_cv_shlibext"
8360 hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8361 hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8362 hardcode_direct="$acl_cv_hardcode_direct"
8363 hardcode_minus_L="$acl_cv_hardcode_minus_L"
Theodore Ts'oe1052142006-10-21 21:46:47 -04008364 # Check whether --enable-rpath was given.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008365if test "${enable_rpath+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008366 enableval=$enable_rpath; :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008367else
8368 enable_rpath=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04008369fi
8370
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008371
8372
8373
8374
8375
8376
8377
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008378 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008379
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008380 acl_save_prefix="$prefix"
8381 prefix="$acl_final_prefix"
8382 acl_save_exec_prefix="$exec_prefix"
8383 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008384
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008385 eval additional_includedir=\"$includedir\"
8386 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008387
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008388 exec_prefix="$acl_save_exec_prefix"
8389 prefix="$acl_save_prefix"
8390
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008391
Theodore Ts'oe1052142006-10-21 21:46:47 -04008392# Check whether --with-libiconv-prefix was given.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008393if test "${with_libiconv_prefix+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04008394 withval=$with_libiconv_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008395 if test "X$withval" = "Xno"; then
8396 use_additional=no
8397 else
8398 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008399
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008400 acl_save_prefix="$prefix"
8401 prefix="$acl_final_prefix"
8402 acl_save_exec_prefix="$exec_prefix"
8403 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008404
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008405 eval additional_includedir=\"$includedir\"
8406 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008407
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008408 exec_prefix="$acl_save_exec_prefix"
8409 prefix="$acl_save_prefix"
8410
8411 else
8412 additional_includedir="$withval/include"
8413 additional_libdir="$withval/lib"
8414 fi
8415 fi
8416
Theodore Ts'oe1052142006-10-21 21:46:47 -04008417fi
8418
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008419 LIBICONV=
8420 LTLIBICONV=
8421 INCICONV=
8422 rpathdirs=
8423 ltrpathdirs=
8424 names_already_handled=
8425 names_next_round='iconv '
8426 while test -n "$names_next_round"; do
8427 names_this_round="$names_next_round"
8428 names_next_round=
8429 for name in $names_this_round; do
8430 already_handled=
8431 for n in $names_already_handled; do
8432 if test "$n" = "$name"; then
8433 already_handled=yes
8434 break
8435 fi
8436 done
8437 if test -z "$already_handled"; then
8438 names_already_handled="$names_already_handled $name"
8439 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
8440 eval value=\"\$HAVE_LIB$uppername\"
8441 if test -n "$value"; then
8442 if test "$value" = yes; then
8443 eval value=\"\$LIB$uppername\"
8444 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8445 eval value=\"\$LTLIB$uppername\"
8446 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8447 else
8448 :
8449 fi
8450 else
8451 found_dir=
8452 found_la=
8453 found_so=
8454 found_a=
8455 if test $use_additional = yes; then
8456 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
8457 found_dir="$additional_libdir"
8458 found_so="$additional_libdir/lib$name.$shlibext"
8459 if test -f "$additional_libdir/lib$name.la"; then
8460 found_la="$additional_libdir/lib$name.la"
8461 fi
8462 else
8463 if test -f "$additional_libdir/lib$name.$libext"; then
8464 found_dir="$additional_libdir"
8465 found_a="$additional_libdir/lib$name.$libext"
8466 if test -f "$additional_libdir/lib$name.la"; then
8467 found_la="$additional_libdir/lib$name.la"
8468 fi
8469 fi
8470 fi
8471 fi
8472 if test "X$found_dir" = "X"; then
8473 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008474
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008475 acl_save_prefix="$prefix"
8476 prefix="$acl_final_prefix"
8477 acl_save_exec_prefix="$exec_prefix"
8478 exec_prefix="$acl_final_exec_prefix"
8479 eval x=\"$x\"
8480 exec_prefix="$acl_save_exec_prefix"
8481 prefix="$acl_save_prefix"
8482
8483 case "$x" in
8484 -L*)
8485 dir=`echo "X$x" | sed -e 's/^X-L//'`
8486 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
8487 found_dir="$dir"
8488 found_so="$dir/lib$name.$shlibext"
8489 if test -f "$dir/lib$name.la"; then
8490 found_la="$dir/lib$name.la"
8491 fi
8492 else
8493 if test -f "$dir/lib$name.$libext"; then
8494 found_dir="$dir"
8495 found_a="$dir/lib$name.$libext"
8496 if test -f "$dir/lib$name.la"; then
8497 found_la="$dir/lib$name.la"
8498 fi
8499 fi
8500 fi
8501 ;;
8502 esac
8503 if test "X$found_dir" != "X"; then
8504 break
8505 fi
8506 done
8507 fi
8508 if test "X$found_dir" != "X"; then
8509 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8510 if test "X$found_so" != "X"; then
8511 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
8512 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8513 else
8514 haveit=
8515 for x in $ltrpathdirs; do
8516 if test "X$x" = "X$found_dir"; then
8517 haveit=yes
8518 break
8519 fi
8520 done
8521 if test -z "$haveit"; then
8522 ltrpathdirs="$ltrpathdirs $found_dir"
8523 fi
8524 if test "$hardcode_direct" = yes; then
8525 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8526 else
8527 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
8528 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8529 haveit=
8530 for x in $rpathdirs; do
8531 if test "X$x" = "X$found_dir"; then
8532 haveit=yes
8533 break
8534 fi
8535 done
8536 if test -z "$haveit"; then
8537 rpathdirs="$rpathdirs $found_dir"
8538 fi
8539 else
8540 haveit=
8541 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008542
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008543 acl_save_prefix="$prefix"
8544 prefix="$acl_final_prefix"
8545 acl_save_exec_prefix="$exec_prefix"
8546 exec_prefix="$acl_final_exec_prefix"
8547 eval x=\"$x\"
8548 exec_prefix="$acl_save_exec_prefix"
8549 prefix="$acl_save_prefix"
8550
8551 if test "X$x" = "X-L$found_dir"; then
8552 haveit=yes
8553 break
8554 fi
8555 done
8556 if test -z "$haveit"; then
8557 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8558 fi
8559 if test "$hardcode_minus_L" != no; then
8560 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8561 else
8562 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8563 fi
8564 fi
8565 fi
8566 fi
8567 else
8568 if test "X$found_a" != "X"; then
8569 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8570 else
8571 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8572 fi
8573 fi
8574 additional_includedir=
8575 case "$found_dir" in
8576 */lib | */lib/)
8577 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
8578 additional_includedir="$basedir/include"
8579 ;;
8580 esac
8581 if test "X$additional_includedir" != "X"; then
8582 if test "X$additional_includedir" != "X/usr/include"; then
8583 haveit=
8584 if test "X$additional_includedir" = "X/usr/local/include"; then
8585 if test -n "$GCC"; then
8586 case $host_os in
8587 linux*) haveit=yes;;
8588 esac
8589 fi
8590 fi
8591 if test -z "$haveit"; then
8592 for x in $CPPFLAGS $INCICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008593
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008594 acl_save_prefix="$prefix"
8595 prefix="$acl_final_prefix"
8596 acl_save_exec_prefix="$exec_prefix"
8597 exec_prefix="$acl_final_exec_prefix"
8598 eval x=\"$x\"
8599 exec_prefix="$acl_save_exec_prefix"
8600 prefix="$acl_save_prefix"
8601
8602 if test "X$x" = "X-I$additional_includedir"; then
8603 haveit=yes
8604 break
8605 fi
8606 done
8607 if test -z "$haveit"; then
8608 if test -d "$additional_includedir"; then
8609 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8610 fi
8611 fi
8612 fi
8613 fi
8614 fi
8615 if test -n "$found_la"; then
8616 save_libdir="$libdir"
8617 case "$found_la" in
8618 */* | *\\*) . "$found_la" ;;
8619 *) . "./$found_la" ;;
8620 esac
8621 libdir="$save_libdir"
8622 for dep in $dependency_libs; do
8623 case "$dep" in
8624 -L*)
8625 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8626 if test "X$additional_libdir" != "X/usr/lib"; then
8627 haveit=
8628 if test "X$additional_libdir" = "X/usr/local/lib"; then
8629 if test -n "$GCC"; then
8630 case $host_os in
8631 linux*) haveit=yes;;
8632 esac
8633 fi
8634 fi
8635 if test -z "$haveit"; then
8636 haveit=
8637 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008638
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008639 acl_save_prefix="$prefix"
8640 prefix="$acl_final_prefix"
8641 acl_save_exec_prefix="$exec_prefix"
8642 exec_prefix="$acl_final_exec_prefix"
8643 eval x=\"$x\"
8644 exec_prefix="$acl_save_exec_prefix"
8645 prefix="$acl_save_prefix"
8646
8647 if test "X$x" = "X-L$additional_libdir"; then
8648 haveit=yes
8649 break
8650 fi
8651 done
8652 if test -z "$haveit"; then
8653 if test -d "$additional_libdir"; then
8654 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
8655 fi
8656 fi
8657 haveit=
8658 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008659
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008660 acl_save_prefix="$prefix"
8661 prefix="$acl_final_prefix"
8662 acl_save_exec_prefix="$exec_prefix"
8663 exec_prefix="$acl_final_exec_prefix"
8664 eval x=\"$x\"
8665 exec_prefix="$acl_save_exec_prefix"
8666 prefix="$acl_save_prefix"
8667
8668 if test "X$x" = "X-L$additional_libdir"; then
8669 haveit=yes
8670 break
8671 fi
8672 done
8673 if test -z "$haveit"; then
8674 if test -d "$additional_libdir"; then
8675 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
8676 fi
8677 fi
8678 fi
8679 fi
8680 ;;
8681 -R*)
8682 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8683 if test "$enable_rpath" != no; then
8684 haveit=
8685 for x in $rpathdirs; do
8686 if test "X$x" = "X$dir"; then
8687 haveit=yes
8688 break
8689 fi
8690 done
8691 if test -z "$haveit"; then
8692 rpathdirs="$rpathdirs $dir"
8693 fi
8694 haveit=
8695 for x in $ltrpathdirs; do
8696 if test "X$x" = "X$dir"; then
8697 haveit=yes
8698 break
8699 fi
8700 done
8701 if test -z "$haveit"; then
8702 ltrpathdirs="$ltrpathdirs $dir"
8703 fi
8704 fi
8705 ;;
8706 -l*)
8707 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8708 ;;
8709 *.la)
8710 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8711 ;;
8712 *)
8713 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8714 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8715 ;;
8716 esac
8717 done
8718 fi
8719 else
8720 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8721 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8722 fi
8723 fi
8724 fi
8725 done
8726 done
8727 if test "X$rpathdirs" != "X"; then
8728 if test -n "$hardcode_libdir_separator"; then
8729 alldirs=
8730 for found_dir in $rpathdirs; do
8731 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
8732 done
8733 acl_save_libdir="$libdir"
8734 libdir="$alldirs"
8735 eval flag=\"$hardcode_libdir_flag_spec\"
8736 libdir="$acl_save_libdir"
8737 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8738 else
8739 for found_dir in $rpathdirs; do
8740 acl_save_libdir="$libdir"
8741 libdir="$found_dir"
8742 eval flag=\"$hardcode_libdir_flag_spec\"
8743 libdir="$acl_save_libdir"
8744 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8745 done
8746 fi
8747 fi
8748 if test "X$ltrpathdirs" != "X"; then
8749 for found_dir in $ltrpathdirs; do
8750 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8751 done
8752 fi
8753
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008754
8755
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008756
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008757
8758
8759
8760
Theodore Ts'oe1052142006-10-21 21:46:47 -04008761 { echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
8762echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008763if test "${ac_cv_type_ptrdiff_t+set}" = set; then
8764 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008765else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008766 cat >conftest.$ac_ext <<_ACEOF
8767/* confdefs.h. */
8768_ACEOF
8769cat confdefs.h >>conftest.$ac_ext
8770cat >>conftest.$ac_ext <<_ACEOF
8771/* end confdefs.h. */
8772$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -04008773typedef ptrdiff_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008774int
8775main ()
8776{
Theodore Ts'oe1052142006-10-21 21:46:47 -04008777if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008778 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -04008779if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008780 return 0;
8781 ;
8782 return 0;
8783}
8784_ACEOF
8785rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008786if { (ac_try="$ac_compile"
8787case "(($ac_try" in
8788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8789 *) ac_try_echo=$ac_try;;
8790esac
8791eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8792 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008793 ac_status=$?
8794 grep -v '^ *+' conftest.er1 >conftest.err
8795 rm -f conftest.er1
8796 cat conftest.err >&5
8797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008798 (exit $ac_status); } && {
8799 test -z "$ac_c_werror_flag" ||
8800 test ! -s conftest.err
8801 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008802 ac_cv_type_ptrdiff_t=yes
8803else
8804 echo "$as_me: failed program was:" >&5
8805sed 's/^/| /' conftest.$ac_ext >&5
8806
Theodore Ts'oe1052142006-10-21 21:46:47 -04008807 ac_cv_type_ptrdiff_t=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008808fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008809
8810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008811fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008812{ echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
8813echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008814if test $ac_cv_type_ptrdiff_t = yes; then
8815 :
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008816else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008817
8818cat >>confdefs.h <<\_ACEOF
8819#define ptrdiff_t long
8820_ACEOF
8821
8822
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008823fi
8824
8825
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008826
8827
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008828
8829
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008830
8831
8832
8833
8834
8835for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008836stdlib.h string.h unistd.h sys/param.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008837do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008838as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04008839if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8840 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8841echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8842if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008843 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008844fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008845ac_res=`eval echo '${'$as_ac_Header'}'`
8846 { echo "$as_me:$LINENO: result: $ac_res" >&5
8847echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04008848else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008849 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -04008850{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
8851echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008852cat >conftest.$ac_ext <<_ACEOF
8853/* confdefs.h. */
8854_ACEOF
8855cat confdefs.h >>conftest.$ac_ext
8856cat >>conftest.$ac_ext <<_ACEOF
8857/* end confdefs.h. */
8858$ac_includes_default
8859#include <$ac_header>
8860_ACEOF
8861rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008862if { (ac_try="$ac_compile"
8863case "(($ac_try" in
8864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8865 *) ac_try_echo=$ac_try;;
8866esac
8867eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8868 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008869 ac_status=$?
8870 grep -v '^ *+' conftest.er1 >conftest.err
8871 rm -f conftest.er1
8872 cat conftest.err >&5
8873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008874 (exit $ac_status); } && {
8875 test -z "$ac_c_werror_flag" ||
8876 test ! -s conftest.err
8877 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008878 ac_header_compiler=yes
8879else
8880 echo "$as_me: failed program was:" >&5
8881sed 's/^/| /' conftest.$ac_ext >&5
8882
Theodore Ts'oe1052142006-10-21 21:46:47 -04008883 ac_header_compiler=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008884fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008885
8886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8887{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8888echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008889
8890# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -04008891{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
8892echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008893cat >conftest.$ac_ext <<_ACEOF
8894/* confdefs.h. */
8895_ACEOF
8896cat confdefs.h >>conftest.$ac_ext
8897cat >>conftest.$ac_ext <<_ACEOF
8898/* end confdefs.h. */
8899#include <$ac_header>
8900_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04008901if { (ac_try="$ac_cpp conftest.$ac_ext"
8902case "(($ac_try" in
8903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8904 *) ac_try_echo=$ac_try;;
8905esac
8906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8907 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008908 ac_status=$?
8909 grep -v '^ *+' conftest.er1 >conftest.err
8910 rm -f conftest.er1
8911 cat conftest.err >&5
8912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04008913 (exit $ac_status); } >/dev/null && {
8914 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8915 test ! -s conftest.err
8916 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008917 ac_header_preproc=yes
8918else
8919 echo "$as_me: failed program was:" >&5
8920sed 's/^/| /' conftest.$ac_ext >&5
8921
8922 ac_header_preproc=no
8923fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008924
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008925rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04008926{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8927echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008928
8929# So? What about this header?
8930case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8931 yes:no: )
8932 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8933echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8934 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8935echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8936 ac_header_preproc=yes
8937 ;;
8938 no:yes:* )
8939 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8940echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8941 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8942echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8943 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8944echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8945 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8946echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8947 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8948echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8949 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8950echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04008951
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008952 ;;
8953esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04008954{ echo "$as_me:$LINENO: checking for $ac_header" >&5
8955echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8956if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008957 echo $ECHO_N "(cached) $ECHO_C" >&6
8958else
8959 eval "$as_ac_Header=\$ac_header_preproc"
8960fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04008961ac_res=`eval echo '${'$as_ac_Header'}'`
8962 { echo "$as_me:$LINENO: result: $ac_res" >&5
8963echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008964
8965fi
8966if test `eval echo '${'$as_ac_Header'}'` = yes; then
8967 cat >>confdefs.h <<_ACEOF
8968#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8969_ACEOF
8970
8971fi
8972
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00008973done
8974
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008975
8976
8977
8978
8979
8980
8981
8982
8983
8984
8985
8986
8987
8988
8989
8990
8991
8992
8993
8994
8995
8996
8997
8998for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \
8999mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \
9000strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \
9001__fsetlocking
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009002do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009003as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -04009004{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9005echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9006if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009007 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009008else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009009 cat >conftest.$ac_ext <<_ACEOF
9010/* confdefs.h. */
9011_ACEOF
9012cat confdefs.h >>conftest.$ac_ext
9013cat >>conftest.$ac_ext <<_ACEOF
9014/* end confdefs.h. */
9015/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9016 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9017#define $ac_func innocuous_$ac_func
9018
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009019/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009020 which can conflict with char $ac_func (); below.
9021 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9022 <limits.h> exists even on freestanding compilers. */
9023
9024#ifdef __STDC__
9025# include <limits.h>
9026#else
9027# include <assert.h>
9028#endif
9029
9030#undef $ac_func
9031
Theodore Ts'oe1052142006-10-21 21:46:47 -04009032/* Override any GCC internal prototype to avoid an error.
9033 Use char because int might match the return type of a GCC
9034 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009035#ifdef __cplusplus
9036extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009037#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009038char $ac_func ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009039/* The GNU C library defines this for functions which it implements
9040 to always fail with ENOSYS. Some functions are actually named
9041 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04009042#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009043choke me
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009044#endif
9045
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009046int
9047main ()
9048{
Theodore Ts'oe1052142006-10-21 21:46:47 -04009049return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009050 ;
9051 return 0;
9052}
9053_ACEOF
9054rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009055if { (ac_try="$ac_link"
9056case "(($ac_try" in
9057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9058 *) ac_try_echo=$ac_try;;
9059esac
9060eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9061 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009062 ac_status=$?
9063 grep -v '^ *+' conftest.er1 >conftest.err
9064 rm -f conftest.er1
9065 cat conftest.err >&5
9066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009067 (exit $ac_status); } && {
9068 test -z "$ac_c_werror_flag" ||
9069 test ! -s conftest.err
9070 } && test -s conftest$ac_exeext &&
9071 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009072 eval "$as_ac_var=yes"
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009073else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009074 echo "$as_me: failed program was:" >&5
9075sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009076
Theodore Ts'oe1052142006-10-21 21:46:47 -04009077 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009078fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009079
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009080rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009081 conftest$ac_exeext conftest.$ac_ext
9082fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009083ac_res=`eval echo '${'$as_ac_var'}'`
9084 { echo "$as_me:$LINENO: result: $ac_res" >&5
9085echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009086if test `eval echo '${'$as_ac_var'}'` = yes; then
9087 cat >>confdefs.h <<_ACEOF
9088#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9089_ACEOF
9090
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009091fi
9092done
9093
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009094
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009095
Theodore Ts'oe1052142006-10-21 21:46:47 -04009096 { echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
9097echo $ECHO_N "checking whether _snprintf is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009098if test "${ac_cv_have_decl__snprintf+set}" = set; then
9099 echo $ECHO_N "(cached) $ECHO_C" >&6
9100else
9101 cat >conftest.$ac_ext <<_ACEOF
9102/* confdefs.h. */
9103_ACEOF
9104cat confdefs.h >>conftest.$ac_ext
9105cat >>conftest.$ac_ext <<_ACEOF
9106/* end confdefs.h. */
9107#include <stdio.h>
9108int
9109main ()
9110{
9111
9112#ifndef _snprintf
9113 char *p = (char *) _snprintf;
9114#endif
9115
9116 ;
9117 return 0;
9118}
9119_ACEOF
9120rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009121if { (ac_try="$ac_compile"
9122case "(($ac_try" in
9123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9124 *) ac_try_echo=$ac_try;;
9125esac
9126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9127 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009128 ac_status=$?
9129 grep -v '^ *+' conftest.er1 >conftest.err
9130 rm -f conftest.er1
9131 cat conftest.err >&5
9132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009133 (exit $ac_status); } && {
9134 test -z "$ac_c_werror_flag" ||
9135 test ! -s conftest.err
9136 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009137 ac_cv_have_decl__snprintf=yes
9138else
9139 echo "$as_me: failed program was:" >&5
9140sed 's/^/| /' conftest.$ac_ext >&5
9141
Theodore Ts'oe1052142006-10-21 21:46:47 -04009142 ac_cv_have_decl__snprintf=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009143fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009144
9145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009146fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009147{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
9148echo "${ECHO_T}$ac_cv_have_decl__snprintf" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009149 if test $ac_cv_have_decl__snprintf = yes; then
9150 gt_value=1
9151 else
9152 gt_value=0
9153 fi
9154
9155cat >>confdefs.h <<_ACEOF
9156#define HAVE_DECL__SNPRINTF $gt_value
9157_ACEOF
9158
9159
9160
Theodore Ts'oe1052142006-10-21 21:46:47 -04009161 { echo "$as_me:$LINENO: checking whether _snwprintf is declared" >&5
9162echo $ECHO_N "checking whether _snwprintf is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009163if test "${ac_cv_have_decl__snwprintf+set}" = set; then
9164 echo $ECHO_N "(cached) $ECHO_C" >&6
9165else
9166 cat >conftest.$ac_ext <<_ACEOF
9167/* confdefs.h. */
9168_ACEOF
9169cat confdefs.h >>conftest.$ac_ext
9170cat >>conftest.$ac_ext <<_ACEOF
9171/* end confdefs.h. */
9172#include <stdio.h>
9173int
9174main ()
9175{
9176
9177#ifndef _snwprintf
9178 char *p = (char *) _snwprintf;
9179#endif
9180
9181 ;
9182 return 0;
9183}
9184_ACEOF
9185rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009186if { (ac_try="$ac_compile"
9187case "(($ac_try" in
9188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9189 *) ac_try_echo=$ac_try;;
9190esac
9191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9192 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009193 ac_status=$?
9194 grep -v '^ *+' conftest.er1 >conftest.err
9195 rm -f conftest.er1
9196 cat conftest.err >&5
9197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009198 (exit $ac_status); } && {
9199 test -z "$ac_c_werror_flag" ||
9200 test ! -s conftest.err
9201 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009202 ac_cv_have_decl__snwprintf=yes
9203else
9204 echo "$as_me: failed program was:" >&5
9205sed 's/^/| /' conftest.$ac_ext >&5
9206
Theodore Ts'oe1052142006-10-21 21:46:47 -04009207 ac_cv_have_decl__snwprintf=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009208fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009209
9210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009211fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009212{ echo "$as_me:$LINENO: result: $ac_cv_have_decl__snwprintf" >&5
9213echo "${ECHO_T}$ac_cv_have_decl__snwprintf" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009214 if test $ac_cv_have_decl__snwprintf = yes; then
9215 gt_value=1
9216 else
9217 gt_value=0
9218 fi
9219
9220cat >>confdefs.h <<_ACEOF
9221#define HAVE_DECL__SNWPRINTF $gt_value
9222_ACEOF
9223
9224
9225
9226
Theodore Ts'oe1052142006-10-21 21:46:47 -04009227 { echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
9228echo $ECHO_N "checking whether feof_unlocked is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009229if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
9230 echo $ECHO_N "(cached) $ECHO_C" >&6
9231else
9232 cat >conftest.$ac_ext <<_ACEOF
9233/* confdefs.h. */
9234_ACEOF
9235cat confdefs.h >>conftest.$ac_ext
9236cat >>conftest.$ac_ext <<_ACEOF
9237/* end confdefs.h. */
9238#include <stdio.h>
9239int
9240main ()
9241{
9242
9243#ifndef feof_unlocked
9244 char *p = (char *) feof_unlocked;
9245#endif
9246
9247 ;
9248 return 0;
9249}
9250_ACEOF
9251rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009252if { (ac_try="$ac_compile"
9253case "(($ac_try" in
9254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9255 *) ac_try_echo=$ac_try;;
9256esac
9257eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9258 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009259 ac_status=$?
9260 grep -v '^ *+' conftest.er1 >conftest.err
9261 rm -f conftest.er1
9262 cat conftest.err >&5
9263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009264 (exit $ac_status); } && {
9265 test -z "$ac_c_werror_flag" ||
9266 test ! -s conftest.err
9267 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009268 ac_cv_have_decl_feof_unlocked=yes
9269else
9270 echo "$as_me: failed program was:" >&5
9271sed 's/^/| /' conftest.$ac_ext >&5
9272
Theodore Ts'oe1052142006-10-21 21:46:47 -04009273 ac_cv_have_decl_feof_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009274fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009275
9276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009277fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009278{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
9279echo "${ECHO_T}$ac_cv_have_decl_feof_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009280 if test $ac_cv_have_decl_feof_unlocked = yes; then
9281 gt_value=1
9282 else
9283 gt_value=0
9284 fi
9285
9286cat >>confdefs.h <<_ACEOF
9287#define HAVE_DECL_FEOF_UNLOCKED $gt_value
9288_ACEOF
9289
9290
9291
Theodore Ts'oe1052142006-10-21 21:46:47 -04009292 { echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
9293echo $ECHO_N "checking whether fgets_unlocked is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009294if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
9295 echo $ECHO_N "(cached) $ECHO_C" >&6
9296else
9297 cat >conftest.$ac_ext <<_ACEOF
9298/* confdefs.h. */
9299_ACEOF
9300cat confdefs.h >>conftest.$ac_ext
9301cat >>conftest.$ac_ext <<_ACEOF
9302/* end confdefs.h. */
9303#include <stdio.h>
9304int
9305main ()
9306{
9307
9308#ifndef fgets_unlocked
9309 char *p = (char *) fgets_unlocked;
9310#endif
9311
9312 ;
9313 return 0;
9314}
9315_ACEOF
9316rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009317if { (ac_try="$ac_compile"
9318case "(($ac_try" in
9319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9320 *) ac_try_echo=$ac_try;;
9321esac
9322eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9323 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009324 ac_status=$?
9325 grep -v '^ *+' conftest.er1 >conftest.err
9326 rm -f conftest.er1
9327 cat conftest.err >&5
9328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009329 (exit $ac_status); } && {
9330 test -z "$ac_c_werror_flag" ||
9331 test ! -s conftest.err
9332 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009333 ac_cv_have_decl_fgets_unlocked=yes
9334else
9335 echo "$as_me: failed program was:" >&5
9336sed 's/^/| /' conftest.$ac_ext >&5
9337
Theodore Ts'oe1052142006-10-21 21:46:47 -04009338 ac_cv_have_decl_fgets_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009339fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009340
9341rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009342fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009343{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
9344echo "${ECHO_T}$ac_cv_have_decl_fgets_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009345 if test $ac_cv_have_decl_fgets_unlocked = yes; then
9346 gt_value=1
9347 else
9348 gt_value=0
9349 fi
9350
9351cat >>confdefs.h <<_ACEOF
9352#define HAVE_DECL_FGETS_UNLOCKED $gt_value
9353_ACEOF
9354
9355
9356
Theodore Ts'oe1052142006-10-21 21:46:47 -04009357 { echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
9358echo $ECHO_N "checking whether getc_unlocked is declared... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009359if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
9360 echo $ECHO_N "(cached) $ECHO_C" >&6
9361else
9362 cat >conftest.$ac_ext <<_ACEOF
9363/* confdefs.h. */
9364_ACEOF
9365cat confdefs.h >>conftest.$ac_ext
9366cat >>conftest.$ac_ext <<_ACEOF
9367/* end confdefs.h. */
9368#include <stdio.h>
9369int
9370main ()
9371{
9372
9373#ifndef getc_unlocked
9374 char *p = (char *) getc_unlocked;
9375#endif
9376
9377 ;
9378 return 0;
9379}
9380_ACEOF
9381rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009382if { (ac_try="$ac_compile"
9383case "(($ac_try" in
9384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9385 *) ac_try_echo=$ac_try;;
9386esac
9387eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9388 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009389 ac_status=$?
9390 grep -v '^ *+' conftest.er1 >conftest.err
9391 rm -f conftest.er1
9392 cat conftest.err >&5
9393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009394 (exit $ac_status); } && {
9395 test -z "$ac_c_werror_flag" ||
9396 test ! -s conftest.err
9397 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009398 ac_cv_have_decl_getc_unlocked=yes
9399else
9400 echo "$as_me: failed program was:" >&5
9401sed 's/^/| /' conftest.$ac_ext >&5
9402
Theodore Ts'oe1052142006-10-21 21:46:47 -04009403 ac_cv_have_decl_getc_unlocked=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009404fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009405
9406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009407fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009408{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
9409echo "${ECHO_T}$ac_cv_have_decl_getc_unlocked" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009410 if test $ac_cv_have_decl_getc_unlocked = yes; then
9411 gt_value=1
9412 else
9413 gt_value=0
9414 fi
9415
9416cat >>confdefs.h <<_ACEOF
9417#define HAVE_DECL_GETC_UNLOCKED $gt_value
9418_ACEOF
9419
9420
9421
9422 case $gt_cv_func_printf_posix in
9423 *yes) HAVE_POSIX_PRINTF=1 ;;
9424 *) HAVE_POSIX_PRINTF=0 ;;
9425 esac
9426
9427 if test "$ac_cv_func_asprintf" = yes; then
9428 HAVE_ASPRINTF=1
9429 else
9430 HAVE_ASPRINTF=0
9431 fi
9432
9433 if test "$ac_cv_func_snprintf" = yes; then
9434 HAVE_SNPRINTF=1
9435 else
9436 HAVE_SNPRINTF=0
9437 fi
9438
9439 if test "$ac_cv_func_wprintf" = yes; then
9440 HAVE_WPRINTF=1
9441 else
9442 HAVE_WPRINTF=0
9443 fi
9444
9445
9446
9447
9448
9449
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009450
9451 am_save_CPPFLAGS="$CPPFLAGS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009452
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009453 for element in $INCICONV; do
9454 haveit=
9455 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009456
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009457 acl_save_prefix="$prefix"
9458 prefix="$acl_final_prefix"
9459 acl_save_exec_prefix="$exec_prefix"
9460 exec_prefix="$acl_final_exec_prefix"
9461 eval x=\"$x\"
9462 exec_prefix="$acl_save_exec_prefix"
9463 prefix="$acl_save_prefix"
9464
9465 if test "X$x" = "X$element"; then
9466 haveit=yes
9467 break
9468 fi
9469 done
9470 if test -z "$haveit"; then
9471 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9472 fi
9473 done
9474
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009475
Theodore Ts'oe1052142006-10-21 21:46:47 -04009476 { echo "$as_me:$LINENO: checking for iconv" >&5
9477echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009478if test "${am_cv_func_iconv+set}" = set; then
9479 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009480else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009481
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009482 am_cv_func_iconv="no, consider installing GNU libiconv"
9483 am_cv_lib_iconv=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009484 cat >conftest.$ac_ext <<_ACEOF
9485/* confdefs.h. */
9486_ACEOF
9487cat confdefs.h >>conftest.$ac_ext
9488cat >>conftest.$ac_ext <<_ACEOF
9489/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009490#include <stdlib.h>
9491#include <iconv.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009492int
9493main ()
9494{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009495iconv_t cd = iconv_open("","");
9496 iconv(cd,NULL,NULL,NULL,NULL);
9497 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009498 ;
9499 return 0;
9500}
9501_ACEOF
9502rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009503if { (ac_try="$ac_link"
9504case "(($ac_try" in
9505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9506 *) ac_try_echo=$ac_try;;
9507esac
9508eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9509 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009510 ac_status=$?
9511 grep -v '^ *+' conftest.er1 >conftest.err
9512 rm -f conftest.er1
9513 cat conftest.err >&5
9514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009515 (exit $ac_status); } && {
9516 test -z "$ac_c_werror_flag" ||
9517 test ! -s conftest.err
9518 } && test -s conftest$ac_exeext &&
9519 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009520 am_cv_func_iconv=yes
9521else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009522 echo "$as_me: failed program was:" >&5
9523sed 's/^/| /' conftest.$ac_ext >&5
9524
Theodore Ts'oe1052142006-10-21 21:46:47 -04009525
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009526fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009527
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009528rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009529 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009530 if test "$am_cv_func_iconv" != yes; then
9531 am_save_LIBS="$LIBS"
9532 LIBS="$LIBS $LIBICONV"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009533 cat >conftest.$ac_ext <<_ACEOF
9534/* confdefs.h. */
9535_ACEOF
9536cat confdefs.h >>conftest.$ac_ext
9537cat >>conftest.$ac_ext <<_ACEOF
9538/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009539#include <stdlib.h>
9540#include <iconv.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009541int
9542main ()
9543{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009544iconv_t cd = iconv_open("","");
9545 iconv(cd,NULL,NULL,NULL,NULL);
9546 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009547 ;
9548 return 0;
9549}
9550_ACEOF
9551rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009552if { (ac_try="$ac_link"
9553case "(($ac_try" in
9554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9555 *) ac_try_echo=$ac_try;;
9556esac
9557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9558 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009559 ac_status=$?
9560 grep -v '^ *+' conftest.er1 >conftest.err
9561 rm -f conftest.er1
9562 cat conftest.err >&5
9563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009564 (exit $ac_status); } && {
9565 test -z "$ac_c_werror_flag" ||
9566 test ! -s conftest.err
9567 } && test -s conftest$ac_exeext &&
9568 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009569 am_cv_lib_iconv=yes
9570 am_cv_func_iconv=yes
9571else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009572 echo "$as_me: failed program was:" >&5
9573sed 's/^/| /' conftest.$ac_ext >&5
9574
Theodore Ts'oe1052142006-10-21 21:46:47 -04009575
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009576fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009577
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009578rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009579 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009580 LIBS="$am_save_LIBS"
9581 fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009582
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009583fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009584{ echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
9585echo "${ECHO_T}$am_cv_func_iconv" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009586 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009587
9588cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009589#define HAVE_ICONV 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009590_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009591
9592 fi
9593 if test "$am_cv_lib_iconv" = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009594 { echo "$as_me:$LINENO: checking how to link with libiconv" >&5
9595echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; }
9596 { echo "$as_me:$LINENO: result: $LIBICONV" >&5
9597echo "${ECHO_T}$LIBICONV" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009598 else
9599 CPPFLAGS="$am_save_CPPFLAGS"
9600 LIBICONV=
9601 LTLIBICONV=
9602 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009603
9604
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009605
9606 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009607 { echo "$as_me:$LINENO: checking for iconv declaration" >&5
9608echo $ECHO_N "checking for iconv declaration... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009609 if test "${am_cv_proto_iconv+set}" = set; then
9610 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009611else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009612
9613 cat >conftest.$ac_ext <<_ACEOF
9614/* confdefs.h. */
9615_ACEOF
9616cat confdefs.h >>conftest.$ac_ext
9617cat >>conftest.$ac_ext <<_ACEOF
9618/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009619
9620#include <stdlib.h>
9621#include <iconv.h>
9622extern
9623#ifdef __cplusplus
9624"C"
9625#endif
9626#if defined(__STDC__) || defined(__cplusplus)
9627size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9628#else
9629size_t iconv();
9630#endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009631
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009632int
9633main ()
9634{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009635
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009636 ;
9637 return 0;
9638}
9639_ACEOF
9640rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009641if { (ac_try="$ac_compile"
9642case "(($ac_try" in
9643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9644 *) ac_try_echo=$ac_try;;
9645esac
9646eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9647 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009648 ac_status=$?
9649 grep -v '^ *+' conftest.er1 >conftest.err
9650 rm -f conftest.er1
9651 cat conftest.err >&5
9652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009653 (exit $ac_status); } && {
9654 test -z "$ac_c_werror_flag" ||
9655 test ! -s conftest.err
9656 } && test -s conftest.$ac_objext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009657 am_cv_proto_iconv_arg1=""
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009658else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009659 echo "$as_me: failed program was:" >&5
9660sed 's/^/| /' conftest.$ac_ext >&5
9661
Theodore Ts'oe1052142006-10-21 21:46:47 -04009662 am_cv_proto_iconv_arg1="const"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009663fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009664
9665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009666 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009667fi
9668
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009669 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04009670 { echo "$as_me:$LINENO: result: ${ac_t:-
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009671 }$am_cv_proto_iconv" >&5
9672echo "${ECHO_T}${ac_t:-
Theodore Ts'oe1052142006-10-21 21:46:47 -04009673 }$am_cv_proto_iconv" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009674
9675cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009676#define ICONV_CONST $am_cv_proto_iconv_arg1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009677_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009678
9679 fi
9680
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009681
Theodore Ts'oe1052142006-10-21 21:46:47 -04009682 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
9683echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009684if test "${am_cv_langinfo_codeset+set}" = set; then
9685 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009686else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009687 cat >conftest.$ac_ext <<_ACEOF
9688/* confdefs.h. */
9689_ACEOF
9690cat confdefs.h >>conftest.$ac_ext
9691cat >>conftest.$ac_ext <<_ACEOF
9692/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009693#include <langinfo.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009694int
9695main ()
9696{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009697char* cs = nl_langinfo(CODESET);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009698 ;
9699 return 0;
9700}
9701_ACEOF
9702rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009703if { (ac_try="$ac_link"
9704case "(($ac_try" in
9705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9706 *) ac_try_echo=$ac_try;;
9707esac
9708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9709 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009710 ac_status=$?
9711 grep -v '^ *+' conftest.er1 >conftest.err
9712 rm -f conftest.er1
9713 cat conftest.err >&5
9714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009715 (exit $ac_status); } && {
9716 test -z "$ac_c_werror_flag" ||
9717 test ! -s conftest.err
9718 } && test -s conftest$ac_exeext &&
9719 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009720 am_cv_langinfo_codeset=yes
9721else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009722 echo "$as_me: failed program was:" >&5
9723sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009724
Theodore Ts'oe1052142006-10-21 21:46:47 -04009725 am_cv_langinfo_codeset=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009726fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009727
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009728rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009729 conftest$ac_exeext conftest.$ac_ext
9730
9731fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009732{ echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
9733echo "${ECHO_T}$am_cv_langinfo_codeset" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009734 if test $am_cv_langinfo_codeset = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009735
9736cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009737#define HAVE_LANGINFO_CODESET 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009738_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009739
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009740 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009741
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009742 if test $ac_cv_header_locale_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009743
Theodore Ts'oe1052142006-10-21 21:46:47 -04009744 { echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5
9745echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009746if test "${am_cv_val_LC_MESSAGES+set}" = set; then
9747 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009748else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009749 cat >conftest.$ac_ext <<_ACEOF
9750/* confdefs.h. */
9751_ACEOF
9752cat confdefs.h >>conftest.$ac_ext
9753cat >>conftest.$ac_ext <<_ACEOF
9754/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009755#include <locale.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009756int
9757main ()
9758{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009759return LC_MESSAGES
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009760 ;
9761 return 0;
9762}
9763_ACEOF
9764rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009765if { (ac_try="$ac_link"
9766case "(($ac_try" in
9767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9768 *) ac_try_echo=$ac_try;;
9769esac
9770eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9771 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009772 ac_status=$?
9773 grep -v '^ *+' conftest.er1 >conftest.err
9774 rm -f conftest.er1
9775 cat conftest.err >&5
9776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009777 (exit $ac_status); } && {
9778 test -z "$ac_c_werror_flag" ||
9779 test ! -s conftest.err
9780 } && test -s conftest$ac_exeext &&
9781 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009782 am_cv_val_LC_MESSAGES=yes
9783else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009784 echo "$as_me: failed program was:" >&5
9785sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009786
Theodore Ts'oe1052142006-10-21 21:46:47 -04009787 am_cv_val_LC_MESSAGES=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009788fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009789
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009790rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009791 conftest$ac_exeext conftest.$ac_ext
9792fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009793{ echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5
9794echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009795 if test $am_cv_val_LC_MESSAGES = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009796
9797cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009798#define HAVE_LC_MESSAGES 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009799_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009800
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009801 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009802
9803 fi
9804
9805 for ac_prog in bison
9806do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009807 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009808set dummy $ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -04009809{ echo "$as_me:$LINENO: checking for $ac_word" >&5
9810echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009811if test "${ac_cv_prog_INTLBISON+set}" = set; then
9812 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009813else
9814 if test -n "$INTLBISON"; then
9815 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9816else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009817as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9818for as_dir in $PATH
9819do
9820 IFS=$as_save_IFS
9821 test -z "$as_dir" && as_dir=.
9822 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009824 ac_cv_prog_INTLBISON="$ac_prog"
9825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9826 break 2
9827 fi
9828done
9829done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009830IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009831
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009832fi
9833fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009834INTLBISON=$ac_cv_prog_INTLBISON
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009835if test -n "$INTLBISON"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009836 { echo "$as_me:$LINENO: result: $INTLBISON" >&5
9837echo "${ECHO_T}$INTLBISON" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009838else
Theodore Ts'oe1052142006-10-21 21:46:47 -04009839 { echo "$as_me:$LINENO: result: no" >&5
9840echo "${ECHO_T}no" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009841fi
9842
Theodore Ts'oe1052142006-10-21 21:46:47 -04009843
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009844 test -n "$INTLBISON" && break
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009845done
9846
9847 if test -z "$INTLBISON"; then
9848 ac_verc_fail=yes
9849 else
Theodore Ts'oe1052142006-10-21 21:46:47 -04009850 { echo "$as_me:$LINENO: checking version of bison" >&5
9851echo $ECHO_N "checking version of bison... $ECHO_C" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009852 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9853 case $ac_prog_version in
9854 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9855 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9856 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9857 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9858 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04009859 { echo "$as_me:$LINENO: result: $ac_prog_version" >&5
9860echo "${ECHO_T}$ac_prog_version" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009861 fi
9862 if test $ac_verc_fail = yes; then
9863 INTLBISON=:
9864 fi
9865
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009866
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009867
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009868
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009869
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009870
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009871
9872
9873
9874
9875
9876
9877
9878
9879
9880
Theodore Ts'oe1052142006-10-21 21:46:47 -04009881 { echo "$as_me:$LINENO: checking whether NLS is requested" >&5
9882echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; }
9883 # Check whether --enable-nls was given.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009884if test "${enable_nls+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009885 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009886else
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009887 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04009888fi
9889
9890 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
9891echo "${ECHO_T}$USE_NLS" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009892
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009893
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009894
9895
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009896 BUILD_INCLUDED_LIBINTL=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009897 USE_INCLUDED_LIBINTL=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009898
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009899 LIBINTL=
9900 LTLIBINTL=
9901 POSUB=
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009902
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009903 if test "$USE_NLS" = "yes"; then
9904 gt_use_preinstalled_gnugettext=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009905
Theodore Ts'oe1052142006-10-21 21:46:47 -04009906 { echo "$as_me:$LINENO: checking whether included gettext is requested" >&5
9907echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009908
Theodore Ts'oe1052142006-10-21 21:46:47 -04009909# Check whether --with-included-gettext was given.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009910if test "${with_included_gettext+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04009911 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009912else
9913 nls_cv_force_use_gnu_gettext=no
Theodore Ts'oe1052142006-10-21 21:46:47 -04009914fi
9915
9916 { echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5
9917echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009918
9919 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
9920 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009921
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009922
9923
9924
9925
9926
Theodore Ts'oe1052142006-10-21 21:46:47 -04009927 { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
9928echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009929if test "${gt_cv_func_gnugettext1_libc+set}" = set; then
9930 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009931else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009932 cat >conftest.$ac_ext <<_ACEOF
9933/* confdefs.h. */
9934_ACEOF
9935cat confdefs.h >>conftest.$ac_ext
9936cat >>conftest.$ac_ext <<_ACEOF
9937/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009938#include <libintl.h>
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009939extern int _nl_msg_cat_cntr;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009940extern int *_nl_domain_bindings;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009941int
9942main ()
9943{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009944bindtextdomain ("", "");
9945return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009946 ;
9947 return 0;
9948}
9949_ACEOF
9950rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009951if { (ac_try="$ac_link"
9952case "(($ac_try" in
9953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9954 *) ac_try_echo=$ac_try;;
9955esac
9956eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9957 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009958 ac_status=$?
9959 grep -v '^ *+' conftest.er1 >conftest.err
9960 rm -f conftest.er1
9961 cat conftest.err >&5
9962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009963 (exit $ac_status); } && {
9964 test -z "$ac_c_werror_flag" ||
9965 test ! -s conftest.err
9966 } && test -s conftest$ac_exeext &&
9967 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009968 gt_cv_func_gnugettext1_libc=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009969else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009970 echo "$as_me: failed program was:" >&5
9971sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009972
Theodore Ts'oe1052142006-10-21 21:46:47 -04009973 gt_cv_func_gnugettext1_libc=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009974fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009975
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04009976rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009977 conftest$ac_exeext conftest.$ac_ext
9978fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009979{ echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libc" >&5
9980echo "${ECHO_T}$gt_cv_func_gnugettext1_libc" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009981
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009982 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009983
9984
9985
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009986 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009987
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009988 acl_save_prefix="$prefix"
9989 prefix="$acl_final_prefix"
9990 acl_save_exec_prefix="$exec_prefix"
9991 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009992
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009993 eval additional_includedir=\"$includedir\"
9994 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009995
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009996 exec_prefix="$acl_save_exec_prefix"
9997 prefix="$acl_save_prefix"
9998
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009999
Theodore Ts'oe1052142006-10-21 21:46:47 -040010000# Check whether --with-libintl-prefix was given.
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010001if test "${with_libintl_prefix+set}" = set; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010002 withval=$with_libintl_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010003 if test "X$withval" = "Xno"; then
10004 use_additional=no
10005 else
10006 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010007
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010008 acl_save_prefix="$prefix"
10009 prefix="$acl_final_prefix"
10010 acl_save_exec_prefix="$exec_prefix"
10011 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010012
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010013 eval additional_includedir=\"$includedir\"
10014 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010015
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010016 exec_prefix="$acl_save_exec_prefix"
10017 prefix="$acl_save_prefix"
10018
10019 else
10020 additional_includedir="$withval/include"
10021 additional_libdir="$withval/lib"
10022 fi
10023 fi
10024
Theodore Ts'oe1052142006-10-21 21:46:47 -040010025fi
10026
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010027 LIBINTL=
10028 LTLIBINTL=
10029 INCINTL=
10030 rpathdirs=
10031 ltrpathdirs=
10032 names_already_handled=
10033 names_next_round='intl '
10034 while test -n "$names_next_round"; do
10035 names_this_round="$names_next_round"
10036 names_next_round=
10037 for name in $names_this_round; do
10038 already_handled=
10039 for n in $names_already_handled; do
10040 if test "$n" = "$name"; then
10041 already_handled=yes
10042 break
10043 fi
10044 done
10045 if test -z "$already_handled"; then
10046 names_already_handled="$names_already_handled $name"
10047 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
10048 eval value=\"\$HAVE_LIB$uppername\"
10049 if test -n "$value"; then
10050 if test "$value" = yes; then
10051 eval value=\"\$LIB$uppername\"
10052 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10053 eval value=\"\$LTLIB$uppername\"
10054 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10055 else
10056 :
10057 fi
10058 else
10059 found_dir=
10060 found_la=
10061 found_so=
10062 found_a=
10063 if test $use_additional = yes; then
10064 if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
10065 found_dir="$additional_libdir"
10066 found_so="$additional_libdir/lib$name.$shlibext"
10067 if test -f "$additional_libdir/lib$name.la"; then
10068 found_la="$additional_libdir/lib$name.la"
10069 fi
10070 else
10071 if test -f "$additional_libdir/lib$name.$libext"; then
10072 found_dir="$additional_libdir"
10073 found_a="$additional_libdir/lib$name.$libext"
10074 if test -f "$additional_libdir/lib$name.la"; then
10075 found_la="$additional_libdir/lib$name.la"
10076 fi
10077 fi
10078 fi
10079 fi
10080 if test "X$found_dir" = "X"; then
10081 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010082
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010083 acl_save_prefix="$prefix"
10084 prefix="$acl_final_prefix"
10085 acl_save_exec_prefix="$exec_prefix"
10086 exec_prefix="$acl_final_exec_prefix"
10087 eval x=\"$x\"
10088 exec_prefix="$acl_save_exec_prefix"
10089 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010090
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010091 case "$x" in
10092 -L*)
10093 dir=`echo "X$x" | sed -e 's/^X-L//'`
10094 if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
10095 found_dir="$dir"
10096 found_so="$dir/lib$name.$shlibext"
10097 if test -f "$dir/lib$name.la"; then
10098 found_la="$dir/lib$name.la"
10099 fi
10100 else
10101 if test -f "$dir/lib$name.$libext"; then
10102 found_dir="$dir"
10103 found_a="$dir/lib$name.$libext"
10104 if test -f "$dir/lib$name.la"; then
10105 found_la="$dir/lib$name.la"
10106 fi
10107 fi
10108 fi
10109 ;;
10110 esac
10111 if test "X$found_dir" != "X"; then
10112 break
10113 fi
10114 done
10115 fi
10116 if test "X$found_dir" != "X"; then
10117 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10118 if test "X$found_so" != "X"; then
10119 if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
10120 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10121 else
10122 haveit=
10123 for x in $ltrpathdirs; do
10124 if test "X$x" = "X$found_dir"; then
10125 haveit=yes
10126 break
10127 fi
10128 done
10129 if test -z "$haveit"; then
10130 ltrpathdirs="$ltrpathdirs $found_dir"
10131 fi
10132 if test "$hardcode_direct" = yes; then
10133 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10134 else
10135 if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
10136 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10137 haveit=
10138 for x in $rpathdirs; do
10139 if test "X$x" = "X$found_dir"; then
10140 haveit=yes
10141 break
10142 fi
10143 done
10144 if test -z "$haveit"; then
10145 rpathdirs="$rpathdirs $found_dir"
10146 fi
10147 else
10148 haveit=
10149 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010150
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010151 acl_save_prefix="$prefix"
10152 prefix="$acl_final_prefix"
10153 acl_save_exec_prefix="$exec_prefix"
10154 exec_prefix="$acl_final_exec_prefix"
10155 eval x=\"$x\"
10156 exec_prefix="$acl_save_exec_prefix"
10157 prefix="$acl_save_prefix"
10158
10159 if test "X$x" = "X-L$found_dir"; then
10160 haveit=yes
10161 break
10162 fi
10163 done
10164 if test -z "$haveit"; then
10165 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
10166 fi
10167 if test "$hardcode_minus_L" != no; then
10168 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10169 else
10170 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10171 fi
10172 fi
10173 fi
10174 fi
10175 else
10176 if test "X$found_a" != "X"; then
10177 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
10178 else
10179 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
10180 fi
10181 fi
10182 additional_includedir=
10183 case "$found_dir" in
10184 */lib | */lib/)
10185 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
10186 additional_includedir="$basedir/include"
10187 ;;
10188 esac
10189 if test "X$additional_includedir" != "X"; then
10190 if test "X$additional_includedir" != "X/usr/include"; then
10191 haveit=
10192 if test "X$additional_includedir" = "X/usr/local/include"; then
10193 if test -n "$GCC"; then
10194 case $host_os in
10195 linux*) haveit=yes;;
10196 esac
10197 fi
10198 fi
10199 if test -z "$haveit"; then
10200 for x in $CPPFLAGS $INCINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010201
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010202 acl_save_prefix="$prefix"
10203 prefix="$acl_final_prefix"
10204 acl_save_exec_prefix="$exec_prefix"
10205 exec_prefix="$acl_final_exec_prefix"
10206 eval x=\"$x\"
10207 exec_prefix="$acl_save_exec_prefix"
10208 prefix="$acl_save_prefix"
10209
10210 if test "X$x" = "X-I$additional_includedir"; then
10211 haveit=yes
10212 break
10213 fi
10214 done
10215 if test -z "$haveit"; then
10216 if test -d "$additional_includedir"; then
10217 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
10218 fi
10219 fi
10220 fi
10221 fi
10222 fi
10223 if test -n "$found_la"; then
10224 save_libdir="$libdir"
10225 case "$found_la" in
10226 */* | *\\*) . "$found_la" ;;
10227 *) . "./$found_la" ;;
10228 esac
10229 libdir="$save_libdir"
10230 for dep in $dependency_libs; do
10231 case "$dep" in
10232 -L*)
10233 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10234 if test "X$additional_libdir" != "X/usr/lib"; then
10235 haveit=
10236 if test "X$additional_libdir" = "X/usr/local/lib"; then
10237 if test -n "$GCC"; then
10238 case $host_os in
10239 linux*) haveit=yes;;
10240 esac
10241 fi
10242 fi
10243 if test -z "$haveit"; then
10244 haveit=
10245 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010246
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010247 acl_save_prefix="$prefix"
10248 prefix="$acl_final_prefix"
10249 acl_save_exec_prefix="$exec_prefix"
10250 exec_prefix="$acl_final_exec_prefix"
10251 eval x=\"$x\"
10252 exec_prefix="$acl_save_exec_prefix"
10253 prefix="$acl_save_prefix"
10254
10255 if test "X$x" = "X-L$additional_libdir"; then
10256 haveit=yes
10257 break
10258 fi
10259 done
10260 if test -z "$haveit"; then
10261 if test -d "$additional_libdir"; then
10262 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
10263 fi
10264 fi
10265 haveit=
10266 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010267
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010268 acl_save_prefix="$prefix"
10269 prefix="$acl_final_prefix"
10270 acl_save_exec_prefix="$exec_prefix"
10271 exec_prefix="$acl_final_exec_prefix"
10272 eval x=\"$x\"
10273 exec_prefix="$acl_save_exec_prefix"
10274 prefix="$acl_save_prefix"
10275
10276 if test "X$x" = "X-L$additional_libdir"; then
10277 haveit=yes
10278 break
10279 fi
10280 done
10281 if test -z "$haveit"; then
10282 if test -d "$additional_libdir"; then
10283 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
10284 fi
10285 fi
10286 fi
10287 fi
10288 ;;
10289 -R*)
10290 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10291 if test "$enable_rpath" != no; then
10292 haveit=
10293 for x in $rpathdirs; do
10294 if test "X$x" = "X$dir"; then
10295 haveit=yes
10296 break
10297 fi
10298 done
10299 if test -z "$haveit"; then
10300 rpathdirs="$rpathdirs $dir"
10301 fi
10302 haveit=
10303 for x in $ltrpathdirs; do
10304 if test "X$x" = "X$dir"; then
10305 haveit=yes
10306 break
10307 fi
10308 done
10309 if test -z "$haveit"; then
10310 ltrpathdirs="$ltrpathdirs $dir"
10311 fi
10312 fi
10313 ;;
10314 -l*)
10315 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10316 ;;
10317 *.la)
10318 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10319 ;;
10320 *)
10321 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
10322 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10323 ;;
10324 esac
10325 done
10326 fi
10327 else
10328 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10329 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
10330 fi
10331 fi
10332 fi
10333 done
10334 done
10335 if test "X$rpathdirs" != "X"; then
10336 if test -n "$hardcode_libdir_separator"; then
10337 alldirs=
10338 for found_dir in $rpathdirs; do
10339 alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
10340 done
10341 acl_save_libdir="$libdir"
10342 libdir="$alldirs"
10343 eval flag=\"$hardcode_libdir_flag_spec\"
10344 libdir="$acl_save_libdir"
10345 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10346 else
10347 for found_dir in $rpathdirs; do
10348 acl_save_libdir="$libdir"
10349 libdir="$found_dir"
10350 eval flag=\"$hardcode_libdir_flag_spec\"
10351 libdir="$acl_save_libdir"
10352 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10353 done
10354 fi
10355 fi
10356 if test "X$ltrpathdirs" != "X"; then
10357 for found_dir in $ltrpathdirs; do
10358 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
10359 done
10360 fi
10361
Theodore Ts'oe1052142006-10-21 21:46:47 -040010362 { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
10363echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010364if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then
10365 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010366else
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010367 gt_save_CPPFLAGS="$CPPFLAGS"
10368 CPPFLAGS="$CPPFLAGS $INCINTL"
10369 gt_save_LIBS="$LIBS"
10370 LIBS="$LIBS $LIBINTL"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010371 cat >conftest.$ac_ext <<_ACEOF
10372/* confdefs.h. */
10373_ACEOF
10374cat confdefs.h >>conftest.$ac_ext
10375cat >>conftest.$ac_ext <<_ACEOF
10376/* end confdefs.h. */
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050010377#include <libintl.h>
10378extern int _nl_msg_cat_cntr;
10379extern
10380#ifdef __cplusplus
10381"C"
10382#endif
10383const char *_nl_expand_alias ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010384int
10385main ()
10386{
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050010387bindtextdomain ("", "");
10388return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010389 ;
10390 return 0;
10391}
10392_ACEOF
10393rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010394if { (ac_try="$ac_link"
10395case "(($ac_try" in
10396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10397 *) ac_try_echo=$ac_try;;
10398esac
10399eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10400 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010401 ac_status=$?
10402 grep -v '^ *+' conftest.er1 >conftest.err
10403 rm -f conftest.er1
10404 cat conftest.err >&5
10405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010406 (exit $ac_status); } && {
10407 test -z "$ac_c_werror_flag" ||
10408 test ! -s conftest.err
10409 } && test -s conftest$ac_exeext &&
10410 $as_test_x conftest$ac_exeext; then
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050010411 gt_cv_func_gnugettext1_libintl=yes
10412else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010413 echo "$as_me: failed program was:" >&5
10414sed 's/^/| /' conftest.$ac_ext >&5
10415
Theodore Ts'oe1052142006-10-21 21:46:47 -040010416 gt_cv_func_gnugettext1_libintl=no
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050010417fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010418
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010419rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010420 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050010421 if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then
10422 LIBS="$LIBS $LIBICONV"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010423 cat >conftest.$ac_ext <<_ACEOF
10424/* confdefs.h. */
10425_ACEOF
10426cat confdefs.h >>conftest.$ac_ext
10427cat >>conftest.$ac_ext <<_ACEOF
10428/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010429#include <libintl.h>
10430extern int _nl_msg_cat_cntr;
10431extern
10432#ifdef __cplusplus
10433"C"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010434#endif
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010435const char *_nl_expand_alias ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010436int
10437main ()
10438{
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010439bindtextdomain ("", "");
10440return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010441 ;
10442 return 0;
10443}
10444_ACEOF
10445rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040010446if { (ac_try="$ac_link"
10447case "(($ac_try" in
10448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10449 *) ac_try_echo=$ac_try;;
10450esac
10451eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10452 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010453 ac_status=$?
10454 grep -v '^ *+' conftest.er1 >conftest.err
10455 rm -f conftest.er1
10456 cat conftest.err >&5
10457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010458 (exit $ac_status); } && {
10459 test -z "$ac_c_werror_flag" ||
10460 test ! -s conftest.err
10461 } && test -s conftest$ac_exeext &&
10462 $as_test_x conftest$ac_exeext; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010463 LIBINTL="$LIBINTL $LIBICONV"
10464 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10465 gt_cv_func_gnugettext1_libintl=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010466
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010467else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010468 echo "$as_me: failed program was:" >&5
10469sed 's/^/| /' conftest.$ac_ext >&5
10470
Theodore Ts'oe1052142006-10-21 21:46:47 -040010471
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010472fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010473
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010474rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010475 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010476 fi
10477 CPPFLAGS="$gt_save_CPPFLAGS"
10478 LIBS="$gt_save_LIBS"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010479fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010480{ echo "$as_me:$LINENO: result: $gt_cv_func_gnugettext1_libintl" >&5
10481echo "${ECHO_T}$gt_cv_func_gnugettext1_libintl" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010482 fi
10483
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010484 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
10485 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010486 && test "$PACKAGE" != gettext-runtime \
10487 && test "$PACKAGE" != gettext-tools; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010488 gt_use_preinstalled_gnugettext=yes
10489 else
10490 LIBINTL=
10491 LTLIBINTL=
10492 INCINTL=
10493 fi
10494
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010495
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010496 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
10497 nls_cv_use_gnu_gettext=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010498 fi
10499 fi
10500
10501 if test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010502 BUILD_INCLUDED_LIBINTL=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010503 USE_INCLUDED_LIBINTL=yes
10504 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV"
10505 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV"
10506 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010507 fi
10508
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010509 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10510 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10511 CATOBJEXT=.gmo
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010512 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010513
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010514
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010515 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10516 || test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010517
10518cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010519#define ENABLE_NLS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010520_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010521
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010522 else
10523 USE_NLS=no
10524 fi
10525 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010526
Theodore Ts'oe1052142006-10-21 21:46:47 -040010527 { echo "$as_me:$LINENO: checking whether to use NLS" >&5
10528echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; }
10529 { echo "$as_me:$LINENO: result: $USE_NLS" >&5
10530echo "${ECHO_T}$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010531 if test "$USE_NLS" = "yes"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010532 { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
10533echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010534 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10535 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
10536 gt_source="external libintl"
10537 else
10538 gt_source="libc"
10539 fi
10540 else
10541 gt_source="included intl directory"
10542 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010543 { echo "$as_me:$LINENO: result: $gt_source" >&5
10544echo "${ECHO_T}$gt_source" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010545 fi
10546
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010547 if test "$USE_NLS" = "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010548
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010549 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
10550 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010551 { echo "$as_me:$LINENO: checking how to link with libintl" >&5
10552echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; }
10553 { echo "$as_me:$LINENO: result: $LIBINTL" >&5
10554echo "${ECHO_T}$LIBINTL" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010555
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010556 for element in $INCINTL; do
10557 haveit=
10558 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010559
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010560 acl_save_prefix="$prefix"
10561 prefix="$acl_final_prefix"
10562 acl_save_exec_prefix="$exec_prefix"
10563 exec_prefix="$acl_final_exec_prefix"
10564 eval x=\"$x\"
10565 exec_prefix="$acl_save_exec_prefix"
10566 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010567
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010568 if test "X$x" = "X$element"; then
10569 haveit=yes
10570 break
10571 fi
10572 done
10573 if test -z "$haveit"; then
10574 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10575 fi
10576 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010577
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010578 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010579
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010580
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010581cat >>confdefs.h <<\_ACEOF
10582#define HAVE_GETTEXT 1
10583_ACEOF
10584
10585
10586cat >>confdefs.h <<\_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010587#define HAVE_DCGETTEXT 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010588_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010589
10590 fi
10591
10592 POSUB=po
10593 fi
10594
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010595
10596 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010597 BUILD_INCLUDED_LIBINTL=yes
10598 fi
10599
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010600
10601
10602
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010603
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010604 nls_cv_header_intl=
10605 nls_cv_header_libgt=
10606
10607 DATADIRNAME=share
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010608
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010609
10610 INSTOBJEXT=.mo
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010611
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010612
10613 GENCAT=gencat
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010614
10615
10616 if test "$USE_INCLUDED_LIBINTL" = yes; then
10617 INTLOBJS="\$(GETTOBJS)"
10618 fi
10619
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010620
10621 INTL_LIBTOOL_SUFFIX_PREFIX=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010622
10623
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010624
10625 INTLLIBS="$LIBINTL"
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010626
10627
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010628
10629
10630
10631
10632
Theodore Ts'oe1052142006-10-21 21:46:47 -040010633{ echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10634echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
10635set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10636if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010637 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010638else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010639 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040010640SHELL = /bin/sh
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010641all:
Theodore Ts'oe1052142006-10-21 21:46:47 -040010642 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010643_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010644# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -040010645case `${MAKE-make} -f conftest.make 2>/dev/null` in
10646 *@@@%%%=?*=@@@%%%*)
10647 eval ac_cv_prog_make_${ac_make}_set=yes;;
10648 *)
10649 eval ac_cv_prog_make_${ac_make}_set=no;;
10650esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010651rm -f conftest.make
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010652fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010653if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10654 { echo "$as_me:$LINENO: result: yes" >&5
10655echo "${ECHO_T}yes" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010656 SET_MAKE=
10657else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010658 { echo "$as_me:$LINENO: result: no" >&5
10659echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010660 SET_MAKE="MAKE=${MAKE-make}"
10661fi
10662
10663# Extract the first word of "ln", so it can be a program name with args.
10664set dummy ln; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010665{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10666echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010667if test "${ac_cv_path_LN+set}" = set; then
10668 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010669else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010670 case $LN in
10671 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010672 ac_cv_path_LN="$LN" # Let the user override the test with a path.
10673 ;;
10674 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10676for as_dir in $PATH
10677do
10678 IFS=$as_save_IFS
10679 test -z "$as_dir" && as_dir=.
10680 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010682 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
10683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10684 break 2
10685 fi
10686done
10687done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010688IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010689
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010690 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
10691 ;;
10692esac
10693fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010694LN=$ac_cv_path_LN
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010695if test -n "$LN"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010696 { echo "$as_me:$LINENO: result: $LN" >&5
10697echo "${ECHO_T}$LN" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010698else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010699 { echo "$as_me:$LINENO: result: no" >&5
10700echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010701fi
10702
Theodore Ts'oe1052142006-10-21 21:46:47 -040010703
10704{ echo "$as_me:$LINENO: checking whether ln -s works" >&5
10705echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010706LN_S=$as_ln_s
10707if test "$LN_S" = "ln -s"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010708 { echo "$as_me:$LINENO: result: yes" >&5
10709echo "${ECHO_T}yes" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010710else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010711 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
10712echo "${ECHO_T}no, using $LN_S" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000010713fi
10714
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010715# Extract the first word of "mv", so it can be a program name with args.
10716set dummy mv; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010717{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10718echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010719if test "${ac_cv_path_MV+set}" = set; then
10720 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010721else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010722 case $MV in
10723 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010724 ac_cv_path_MV="$MV" # Let the user override the test with a path.
10725 ;;
10726 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10728for as_dir in $PATH
10729do
10730 IFS=$as_save_IFS
10731 test -z "$as_dir" && as_dir=.
10732 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010734 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
10735 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10736 break 2
10737 fi
10738done
10739done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010740IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010741
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010742 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
10743 ;;
10744esac
10745fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010746MV=$ac_cv_path_MV
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010747if test -n "$MV"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010748 { echo "$as_me:$LINENO: result: $MV" >&5
10749echo "${ECHO_T}$MV" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010750else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010751 { echo "$as_me:$LINENO: result: no" >&5
10752echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010753fi
10754
Theodore Ts'oe1052142006-10-21 21:46:47 -040010755
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010756# Extract the first word of "cp", so it can be a program name with args.
10757set dummy cp; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010758{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10759echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010760if test "${ac_cv_path_CP+set}" = set; then
10761 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010762else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010763 case $CP in
10764 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010765 ac_cv_path_CP="$CP" # Let the user override the test with a path.
10766 ;;
10767 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10769for as_dir in $PATH
10770do
10771 IFS=$as_save_IFS
10772 test -z "$as_dir" && as_dir=.
10773 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010774 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010775 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
10776 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10777 break 2
10778 fi
10779done
10780done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010781IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010782
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010783 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
10784 ;;
10785esac
10786fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010787CP=$ac_cv_path_CP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010788if test -n "$CP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010789 { echo "$as_me:$LINENO: result: $CP" >&5
10790echo "${ECHO_T}$CP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010791else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010792 { echo "$as_me:$LINENO: result: no" >&5
10793echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010794fi
10795
Theodore Ts'oe1052142006-10-21 21:46:47 -040010796
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010797# Extract the first word of "rm", so it can be a program name with args.
10798set dummy rm; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010799{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10800echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010801if test "${ac_cv_path_RM+set}" = set; then
10802 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010803else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010804 case $RM in
10805 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010806 ac_cv_path_RM="$RM" # Let the user override the test with a path.
10807 ;;
10808 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10810for as_dir in $PATH
10811do
10812 IFS=$as_save_IFS
10813 test -z "$as_dir" && as_dir=.
10814 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010815 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010816 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
10817 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10818 break 2
10819 fi
10820done
10821done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010822IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010823
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010824 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
10825 ;;
10826esac
10827fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010828RM=$ac_cv_path_RM
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010829if test -n "$RM"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010830 { echo "$as_me:$LINENO: result: $RM" >&5
10831echo "${ECHO_T}$RM" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010832else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010833 { echo "$as_me:$LINENO: result: no" >&5
10834echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010835fi
10836
Theodore Ts'oe1052142006-10-21 21:46:47 -040010837
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010838# Extract the first word of "chmod", so it can be a program name with args.
10839set dummy chmod; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010840{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10841echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010842if test "${ac_cv_path_CHMOD+set}" = set; then
10843 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010844else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010845 case $CHMOD in
10846 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010847 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
10848 ;;
10849 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10851for as_dir in $PATH
10852do
10853 IFS=$as_save_IFS
10854 test -z "$as_dir" && as_dir=.
10855 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010857 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
10858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10859 break 2
10860 fi
10861done
10862done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010863IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010864
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010865 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
10866 ;;
10867esac
10868fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010869CHMOD=$ac_cv_path_CHMOD
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010870if test -n "$CHMOD"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010871 { echo "$as_me:$LINENO: result: $CHMOD" >&5
10872echo "${ECHO_T}$CHMOD" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010873else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010874 { echo "$as_me:$LINENO: result: no" >&5
10875echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010876fi
10877
Theodore Ts'oe1052142006-10-21 21:46:47 -040010878
Theodore Ts'o32237012005-01-17 19:13:39 -050010879for ac_prog in gawk mawk nawk awk
10880do
10881 # Extract the first word of "$ac_prog", so it can be a program name with args.
10882set dummy $ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040010883{ echo "$as_me:$LINENO: checking for $ac_word" >&5
10884echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'o32237012005-01-17 19:13:39 -050010885if test "${ac_cv_prog_AWK+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010886 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010887else
Theodore Ts'o32237012005-01-17 19:13:39 -050010888 if test -n "$AWK"; then
10889 ac_cv_prog_AWK="$AWK" # Let the user override the test.
10890else
10891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010892for as_dir in $PATH
10893do
10894 IFS=$as_save_IFS
10895 test -z "$as_dir" && as_dir=.
10896 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'o32237012005-01-17 19:13:39 -050010898 ac_cv_prog_AWK="$ac_prog"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10900 break 2
10901 fi
10902done
10903done
Theodore Ts'oe1052142006-10-21 21:46:47 -040010904IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010905
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010906fi
Theodore Ts'o32237012005-01-17 19:13:39 -050010907fi
10908AWK=$ac_cv_prog_AWK
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010909if test -n "$AWK"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040010910 { echo "$as_me:$LINENO: result: $AWK" >&5
10911echo "${ECHO_T}$AWK" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010912else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010913 { echo "$as_me:$LINENO: result: no" >&5
10914echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000010915fi
10916
Theodore Ts'oe1052142006-10-21 21:46:47 -040010917
Theodore Ts'o32237012005-01-17 19:13:39 -050010918 test -n "$AWK" && break
10919done
10920
Theodore Ts'oe1052142006-10-21 21:46:47 -040010921{ echo "$as_me:$LINENO: checking for egrep" >&5
10922echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
10923if test "${ac_cv_path_EGREP+set}" = set; then
Theodore Ts'o32237012005-01-17 19:13:39 -050010924 echo $ECHO_N "(cached) $ECHO_C" >&6
10925else
Theodore Ts'oe1052142006-10-21 21:46:47 -040010926 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
10927 then ac_cv_path_EGREP="$GREP -E"
10928 else
10929 # Extract the first word of "egrep" to use in msg output
10930if test -z "$EGREP"; then
10931set dummy egrep; ac_prog_name=$2
10932if test "${ac_cv_path_EGREP+set}" = set; then
10933 echo $ECHO_N "(cached) $ECHO_C" >&6
10934else
10935 ac_path_EGREP_found=false
10936# Loop through the user's path and test for each of PROGNAME-LIST
10937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10938for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10939do
10940 IFS=$as_save_IFS
10941 test -z "$as_dir" && as_dir=.
10942 for ac_prog in egrep; do
10943 for ac_exec_ext in '' $ac_executable_extensions; do
10944 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040010945 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
Theodore Ts'oe1052142006-10-21 21:46:47 -040010946 # Check for GNU ac_path_EGREP and select it if it is found.
10947 # Check for GNU $ac_path_EGREP
10948case `"$ac_path_EGREP" --version 2>&1` in
10949*GNU*)
10950 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
10951*)
10952 ac_count=0
10953 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
10954 while :
10955 do
10956 cat "conftest.in" "conftest.in" >"conftest.tmp"
10957 mv "conftest.tmp" "conftest.in"
10958 cp "conftest.in" "conftest.nl"
10959 echo 'EGREP' >> "conftest.nl"
10960 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
10961 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10962 ac_count=`expr $ac_count + 1`
10963 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
10964 # Best one so far, save it but keep looking for a better one
10965 ac_cv_path_EGREP="$ac_path_EGREP"
10966 ac_path_EGREP_max=$ac_count
Theodore Ts'o32237012005-01-17 19:13:39 -050010967 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010968 # 10*(2^10) chars as input seems more than enough
10969 test $ac_count -gt 10 && break
10970 done
10971 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10972esac
10973
10974
10975 $ac_path_EGREP_found && break 3
10976 done
10977done
10978
10979done
10980IFS=$as_save_IFS
10981
10982
Theodore Ts'o32237012005-01-17 19:13:39 -050010983fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040010984
10985EGREP="$ac_cv_path_EGREP"
10986if test -z "$EGREP"; then
10987 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
10988echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
10989 { (exit 1); exit 1; }; }
10990fi
10991
10992else
10993 ac_cv_path_EGREP=$EGREP
10994fi
10995
10996
10997 fi
10998fi
10999{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
11000echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
11001 EGREP="$ac_cv_path_EGREP"
Theodore Ts'o32237012005-01-17 19:13:39 -050011002
11003
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011004# Extract the first word of "sed", so it can be a program name with args.
11005set dummy sed; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011006{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11007echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011008if test "${ac_cv_path_SED+set}" = set; then
11009 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011010else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011011 case $SED in
11012 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011013 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11014 ;;
11015 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11017for as_dir in $PATH
11018do
11019 IFS=$as_save_IFS
11020 test -z "$as_dir" && as_dir=.
11021 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011023 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
11024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11025 break 2
11026 fi
11027done
11028done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011029IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011030
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011031 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11032 ;;
11033esac
11034fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011035SED=$ac_cv_path_SED
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011036if test -n "$SED"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011037 { echo "$as_me:$LINENO: result: $SED" >&5
11038echo "${ECHO_T}$SED" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011039else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011040 { echo "$as_me:$LINENO: result: no" >&5
11041echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011042fi
11043
Theodore Ts'oe1052142006-10-21 21:46:47 -040011044
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011045# Extract the first word of "perl", so it can be a program name with args.
11046set dummy perl; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011047{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11048echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011049if test "${ac_cv_path_PERL+set}" = set; then
11050 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011051else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011052 case $PERL in
11053 [\\/]* | ?:[\\/]*)
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011054 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11055 ;;
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011056 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11058for as_dir in $PATH
11059do
11060 IFS=$as_save_IFS
11061 test -z "$as_dir" && as_dir=.
11062 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011064 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
11065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11066 break 2
11067 fi
11068done
11069done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011070IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011071
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011072 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11073 ;;
11074esac
11075fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011076PERL=$ac_cv_path_PERL
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011077if test -n "$PERL"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011078 { echo "$as_me:$LINENO: result: $PERL" >&5
11079echo "${ECHO_T}$PERL" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011080else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011081 { echo "$as_me:$LINENO: result: no" >&5
11082echo "${ECHO_T}no" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011083fi
11084
Theodore Ts'oe1052142006-10-21 21:46:47 -040011085
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011086# Extract the first word of "ldconfig", so it can be a program name with args.
11087set dummy ldconfig; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011088{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11089echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011090if test "${ac_cv_path_LDCONFIG+set}" = set; then
11091 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011092else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011093 case $LDCONFIG in
11094 [\\/]* | ?:[\\/]*)
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011095 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
11096 ;;
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011097 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11099for as_dir in $PATH
11100do
11101 IFS=$as_save_IFS
11102 test -z "$as_dir" && as_dir=.
11103 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011104 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011105 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
11106 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11107 break 2
11108 fi
11109done
11110done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011111IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011112
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011113 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
11114 ;;
11115esac
11116fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011117LDCONFIG=$ac_cv_path_LDCONFIG
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011118if test -n "$LDCONFIG"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011119 { echo "$as_me:$LINENO: result: $LDCONFIG" >&5
11120echo "${ECHO_T}$LDCONFIG" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011121else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011122 { echo "$as_me:$LINENO: result: no" >&5
11123echo "${ECHO_T}no" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011124fi
11125
Theodore Ts'oe1052142006-10-21 21:46:47 -040011126
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011127if test -n "$ac_tool_prefix"; then
11128 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011129set dummy ${ac_tool_prefix}ar; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011130{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11131echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011132if test "${ac_cv_prog_AR+set}" = set; then
11133 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011134else
11135 if test -n "$AR"; then
11136 ac_cv_prog_AR="$AR" # Let the user override the test.
11137else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11139for as_dir in $PATH
11140do
11141 IFS=$as_save_IFS
11142 test -z "$as_dir" && as_dir=.
11143 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011145 ac_cv_prog_AR="${ac_tool_prefix}ar"
11146 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11147 break 2
11148 fi
11149done
11150done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011151IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011152
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011153fi
11154fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011155AR=$ac_cv_prog_AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011156if test -n "$AR"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011157 { echo "$as_me:$LINENO: result: $AR" >&5
11158echo "${ECHO_T}$AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011159else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011160 { echo "$as_me:$LINENO: result: no" >&5
11161echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011162fi
11163
Theodore Ts'oe1052142006-10-21 21:46:47 -040011164
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011165fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011166if test -z "$ac_cv_prog_AR"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011167 ac_ct_AR=$AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011168 # Extract the first word of "ar", so it can be a program name with args.
11169set dummy ar; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011170{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11171echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011172if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11173 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011174else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011175 if test -n "$ac_ct_AR"; then
11176 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011177else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11179for as_dir in $PATH
11180do
11181 IFS=$as_save_IFS
11182 test -z "$as_dir" && as_dir=.
11183 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011185 ac_cv_prog_ac_ct_AR="ar"
11186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11187 break 2
11188 fi
11189done
11190done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011191IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011192
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011193fi
11194fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011195ac_ct_AR=$ac_cv_prog_ac_ct_AR
11196if test -n "$ac_ct_AR"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011197 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11198echo "${ECHO_T}$ac_ct_AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011199else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011200 { echo "$as_me:$LINENO: result: no" >&5
11201echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011202fi
11203
Theodore Ts'oe1052142006-10-21 21:46:47 -040011204 if test "x$ac_ct_AR" = x; then
11205 AR="ar"
11206 else
11207 case $cross_compiling:$ac_tool_warned in
11208yes:)
11209{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11210whose name does not start with the host triplet. If you think this
11211configuration is useful to you, please write to autoconf@gnu.org." >&5
11212echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11213whose name does not start with the host triplet. If you think this
11214configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11215ac_tool_warned=yes ;;
11216esac
11217 AR=$ac_ct_AR
11218 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011219else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011220 AR="$ac_cv_prog_AR"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011221fi
11222
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011223if test -n "$ac_tool_prefix"; then
11224 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011225set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011226{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11227echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011228if test "${ac_cv_prog_RANLIB+set}" = set; then
11229 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011230else
11231 if test -n "$RANLIB"; then
11232 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11233else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11235for as_dir in $PATH
11236do
11237 IFS=$as_save_IFS
11238 test -z "$as_dir" && as_dir=.
11239 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011240 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011241 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11242 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11243 break 2
11244 fi
11245done
11246done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011247IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011248
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011249fi
11250fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011251RANLIB=$ac_cv_prog_RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011252if test -n "$RANLIB"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011253 { echo "$as_me:$LINENO: result: $RANLIB" >&5
11254echo "${ECHO_T}$RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011255else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011256 { echo "$as_me:$LINENO: result: no" >&5
11257echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011258fi
11259
Theodore Ts'oe1052142006-10-21 21:46:47 -040011260
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011261fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011262if test -z "$ac_cv_prog_RANLIB"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011263 ac_ct_RANLIB=$RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011264 # Extract the first word of "ranlib", so it can be a program name with args.
11265set dummy ranlib; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011266{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11267echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011268if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11269 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011270else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011271 if test -n "$ac_ct_RANLIB"; then
11272 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011273else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11275for as_dir in $PATH
11276do
11277 IFS=$as_save_IFS
11278 test -z "$as_dir" && as_dir=.
11279 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011281 ac_cv_prog_ac_ct_RANLIB="ranlib"
11282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11283 break 2
11284 fi
11285done
11286done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011287IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011288
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011289fi
11290fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011291ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11292if test -n "$ac_ct_RANLIB"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011293 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11294echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011295else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011296 { echo "$as_me:$LINENO: result: no" >&5
11297echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011298fi
11299
Theodore Ts'oe1052142006-10-21 21:46:47 -040011300 if test "x$ac_ct_RANLIB" = x; then
11301 RANLIB=":"
11302 else
11303 case $cross_compiling:$ac_tool_warned in
11304yes:)
11305{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11306whose name does not start with the host triplet. If you think this
11307configuration is useful to you, please write to autoconf@gnu.org." >&5
11308echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11309whose name does not start with the host triplet. If you think this
11310configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11311ac_tool_warned=yes ;;
11312esac
11313 RANLIB=$ac_ct_RANLIB
11314 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011315else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011316 RANLIB="$ac_cv_prog_RANLIB"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011317fi
11318
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011319if test -n "$ac_tool_prefix"; then
11320 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011321set dummy ${ac_tool_prefix}strip; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011322{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11323echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011324if test "${ac_cv_prog_STRIP+set}" = set; then
11325 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011326else
11327 if test -n "$STRIP"; then
11328 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11329else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11331for as_dir in $PATH
11332do
11333 IFS=$as_save_IFS
11334 test -z "$as_dir" && as_dir=.
11335 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011337 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11339 break 2
11340 fi
11341done
11342done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011343IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011344
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011345fi
11346fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011347STRIP=$ac_cv_prog_STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011348if test -n "$STRIP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011349 { echo "$as_me:$LINENO: result: $STRIP" >&5
11350echo "${ECHO_T}$STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011351else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011352 { echo "$as_me:$LINENO: result: no" >&5
11353echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011354fi
11355
Theodore Ts'oe1052142006-10-21 21:46:47 -040011356
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011357fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011358if test -z "$ac_cv_prog_STRIP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011359 ac_ct_STRIP=$STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011360 # Extract the first word of "strip", so it can be a program name with args.
11361set dummy strip; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011362{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11363echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011364if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11365 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011366else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011367 if test -n "$ac_ct_STRIP"; then
11368 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011369else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11371for as_dir in $PATH
11372do
11373 IFS=$as_save_IFS
11374 test -z "$as_dir" && as_dir=.
11375 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011377 ac_cv_prog_ac_ct_STRIP="strip"
11378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11379 break 2
11380 fi
11381done
11382done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011383IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011384
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011385fi
11386fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011387ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11388if test -n "$ac_ct_STRIP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011389 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11390echo "${ECHO_T}$ac_ct_STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011391else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011392 { echo "$as_me:$LINENO: result: no" >&5
11393echo "${ECHO_T}no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011394fi
11395
Theodore Ts'oe1052142006-10-21 21:46:47 -040011396 if test "x$ac_ct_STRIP" = x; then
11397 STRIP=":"
11398 else
11399 case $cross_compiling:$ac_tool_warned in
11400yes:)
11401{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
11402whose name does not start with the host triplet. If you think this
11403configuration is useful to you, please write to autoconf@gnu.org." >&5
11404echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
11405whose name does not start with the host triplet. If you think this
11406configuration is useful to you, please write to autoconf@gnu.org." >&2;}
11407ac_tool_warned=yes ;;
11408esac
11409 STRIP=$ac_ct_STRIP
11410 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011411else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011412 STRIP="$ac_cv_prog_STRIP"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011413fi
11414
Manish Katiyar7321d942008-04-14 17:20:03 +053011415# Extract the first word of "makeinfo", so it can be a program name with args.
11416set dummy makeinfo; ac_word=$2
11417{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11418echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11419if test "${ac_cv_prog_MAKEINFO+set}" = set; then
11420 echo $ECHO_N "(cached) $ECHO_C" >&6
11421else
11422 if test -n "$MAKEINFO"; then
11423 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
11424else
11425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11426for as_dir in $PATH
11427do
11428 IFS=$as_save_IFS
11429 test -z "$as_dir" && as_dir=.
11430 for ac_exec_ext in '' $ac_executable_extensions; do
11431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11432 ac_cv_prog_MAKEINFO="makeinfo"
11433 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11434 break 2
11435 fi
11436done
11437done
11438IFS=$as_save_IFS
11439
11440fi
11441fi
11442MAKEINFO=$ac_cv_prog_MAKEINFO
11443if test -n "$MAKEINFO"; then
11444 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
11445echo "${ECHO_T}$MAKEINFO" >&6; }
11446else
11447 { echo "$as_me:$LINENO: result: no" >&5
11448echo "${ECHO_T}no" >&6; }
11449fi
11450
11451
11452if test "_$MAKEINFO" = "_"; then
11453 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
11454else
11455 case "$MAKEINFO" in
11456 */missing.*)
11457 { echo "$as_me:$LINENO: WARNING:
11458*** Makeinfo is missing. Info documentation will not be built." >&5
11459echo "$as_me: WARNING:
11460*** Makeinfo is missing. Info documentation will not be built." >&2;}
11461 ;;
11462 *)
11463 ;;
11464 esac
11465fi
11466
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011467# Find a good install program. We prefer a C program (faster),
11468# so one script is as good as another. But avoid the broken or
11469# incompatible versions:
11470# SysV /etc/install, /usr/sbin/install
11471# SunOS /usr/etc/install
11472# IRIX /sbin/install
11473# AIX /bin/install
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011474# AmigaOS /C/install, which installs bootblocks on floppy discs
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +000011475# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011476# AFS /usr/afsws/bin/install, which mishandles nonexistent args
11477# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011478# OS/2's system install, which has a completely different semantic
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011479# ./install, which can be erroneously created by make from ./install.sh.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011480{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
11481echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011482if test -z "$INSTALL"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011483if test "${ac_cv_path_install+set}" = set; then
11484 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011485else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11487for as_dir in $PATH
11488do
11489 IFS=$as_save_IFS
11490 test -z "$as_dir" && as_dir=.
11491 # Account for people who put trailing slashes in PATH elements.
11492case $as_dir/ in
11493 ./ | .// | /cC/* | \
11494 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
11495 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
11496 /usr/ucb/* ) ;;
11497 *)
11498 # OSF1 and SCO ODT 3.0 have their own names for install.
11499 # Don't use installbsd from OSF since it installs stuff as root
11500 # by default.
11501 for ac_prog in ginstall scoinst install; do
11502 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011503 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011504 if test $ac_prog = install &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011505 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011506 # AIX install. It has an incompatible calling convention.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011507 :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011508 elif test $ac_prog = install &&
11509 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
11510 # program-specific install script used by HP pwplus--don't use.
11511 :
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011512 else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011513 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
11514 break 3
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011515 fi
11516 fi
11517 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011518 done
11519 ;;
11520esac
11521done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011522IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011523
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011524
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011525fi
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011526 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011527 INSTALL=$ac_cv_path_install
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011528 else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011529 # As a last resort, use the slow shell script. Don't cache a
11530 # value for INSTALL within a source directory, because that will
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011531 # break other packages using the cache if that directory is
Theodore Ts'oe1052142006-10-21 21:46:47 -040011532 # removed, or if the value is a relative name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011533 INSTALL=$ac_install_sh
Theodore Ts'o21c84b71997-04-29 16:15:03 +000011534 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011535fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011536{ echo "$as_me:$LINENO: result: $INSTALL" >&5
11537echo "${ECHO_T}$INSTALL" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011538
11539# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
11540# It thinks the first close brace ends the variable substitution.
11541test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
11542
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011543test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Theodore Ts'oa4bf69d1999-05-29 21:53:30 +000011544
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011545test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
11546
Theodore Ts'o6c133521999-07-03 20:37:03 +000011547# See if we need a separate native compiler.
11548if test $cross_compiling = no; then
11549 BUILD_CC="$CC"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011550
Theodore Ts'o6c133521999-07-03 20:37:03 +000011551else
11552 for ac_prog in gcc cc
11553do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011554 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'o6c133521999-07-03 20:37:03 +000011555set dummy $ac_prog; ac_word=$2
Theodore Ts'oe1052142006-10-21 21:46:47 -040011556{ echo "$as_me:$LINENO: checking for $ac_word" >&5
11557echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011558if test "${ac_cv_prog_BUILD_CC+set}" = set; then
11559 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o6c133521999-07-03 20:37:03 +000011560else
11561 if test -n "$BUILD_CC"; then
11562 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
11563else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11565for as_dir in $PATH
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011566do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011567 IFS=$as_save_IFS
11568 test -z "$as_dir" && as_dir=.
11569 for ac_exec_ext in '' $ac_executable_extensions; do
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011571 ac_cv_prog_BUILD_CC="$ac_prog"
11572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11573 break 2
11574 fi
11575done
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011576done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011577IFS=$as_save_IFS
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011578
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011579fi
11580fi
11581BUILD_CC=$ac_cv_prog_BUILD_CC
11582if test -n "$BUILD_CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011583 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
11584echo "${ECHO_T}$BUILD_CC" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011585else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011586 { echo "$as_me:$LINENO: result: no" >&5
11587echo "${ECHO_T}no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011588fi
11589
Theodore Ts'oe1052142006-10-21 21:46:47 -040011590
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011591 test -n "$BUILD_CC" && break
11592done
11593
11594fi
11595
Theodore Ts'o740837d2007-12-16 17:21:38 -050011596
11597
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011598
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608
11609
11610
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
Theodore Ts'o762c7c62005-04-06 14:44:16 -040011626
Theodore Ts'o106ad962007-04-04 21:26:37 -040011627
Christophe GRENIERe7cc6f72008-02-16 12:10:56 +010011628
11629
Theodore Ts'o3d058022008-07-12 22:06:30 -040011630
Theodore Ts'o6ec9ef12008-08-22 12:15:56 -040011631
11632for ac_header in dirent.h errno.h getopt.h malloc.h mntent.h paths.h setjmp.h signal.h stdarg.h stdint.h stdlib.h termios.h termio.h unistd.h utime.h linux/fd.h linux/major.h net/if_dl.h netinet/in.h sys/disklabel.h sys/file.h sys/ioctl.h sys/mkdev.h sys/mman.h sys/prctl.h sys/queue.h sys/resource.h sys/select.h sys/socket.h sys/sockio.h sys/stat.h sys/syscall.h sys/sysmacros.h sys/time.h sys/types.h sys/un.h sys/wait.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011633do
11634as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040011635if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11636 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11637echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11638if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011639 echo $ECHO_N "(cached) $ECHO_C" >&6
11640fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011641ac_res=`eval echo '${'$as_ac_Header'}'`
11642 { echo "$as_me:$LINENO: result: $ac_res" >&5
11643echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011644else
11645 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -040011646{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
11647echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011648cat >conftest.$ac_ext <<_ACEOF
11649/* confdefs.h. */
11650_ACEOF
11651cat confdefs.h >>conftest.$ac_ext
11652cat >>conftest.$ac_ext <<_ACEOF
11653/* end confdefs.h. */
11654$ac_includes_default
11655#include <$ac_header>
11656_ACEOF
11657rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040011658if { (ac_try="$ac_compile"
11659case "(($ac_try" in
11660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11661 *) ac_try_echo=$ac_try;;
11662esac
11663eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11664 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011665 ac_status=$?
11666 grep -v '^ *+' conftest.er1 >conftest.err
11667 rm -f conftest.er1
11668 cat conftest.err >&5
11669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011670 (exit $ac_status); } && {
11671 test -z "$ac_c_werror_flag" ||
11672 test ! -s conftest.err
11673 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011674 ac_header_compiler=yes
11675else
11676 echo "$as_me: failed program was:" >&5
11677sed 's/^/| /' conftest.$ac_ext >&5
11678
Theodore Ts'oe1052142006-10-21 21:46:47 -040011679 ac_header_compiler=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011680fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011681
11682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11683{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11684echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011685
11686# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -040011687{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
11688echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011689cat >conftest.$ac_ext <<_ACEOF
11690/* confdefs.h. */
11691_ACEOF
11692cat confdefs.h >>conftest.$ac_ext
11693cat >>conftest.$ac_ext <<_ACEOF
11694/* end confdefs.h. */
11695#include <$ac_header>
11696_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040011697if { (ac_try="$ac_cpp conftest.$ac_ext"
11698case "(($ac_try" in
11699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11700 *) ac_try_echo=$ac_try;;
11701esac
11702eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11703 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011704 ac_status=$?
11705 grep -v '^ *+' conftest.er1 >conftest.err
11706 rm -f conftest.er1
11707 cat conftest.err >&5
11708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011709 (exit $ac_status); } >/dev/null && {
11710 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11711 test ! -s conftest.err
11712 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011713 ac_header_preproc=yes
11714else
11715 echo "$as_me: failed program was:" >&5
11716sed 's/^/| /' conftest.$ac_ext >&5
11717
11718 ac_header_preproc=no
11719fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011720
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011721rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -040011722{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11723echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011724
11725# So? What about this header?
11726case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11727 yes:no: )
11728 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11729echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11730 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11731echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11732 ac_header_preproc=yes
11733 ;;
11734 no:yes:* )
11735 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11736echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11737 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11738echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11739 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11740echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11741 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11742echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11743 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11744echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11745 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11746echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040011747
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011748 ;;
11749esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040011750{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11751echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11752if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011753 echo $ECHO_N "(cached) $ECHO_C" >&6
11754else
11755 eval "$as_ac_Header=\$ac_header_preproc"
11756fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011757ac_res=`eval echo '${'$as_ac_Header'}'`
11758 { echo "$as_me:$LINENO: result: $ac_res" >&5
11759echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011760
11761fi
11762if test `eval echo '${'$as_ac_Header'}'` = yes; then
11763 cat >>confdefs.h <<_ACEOF
11764#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11765_ACEOF
11766
11767fi
11768
11769done
11770
11771
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011772
11773for ac_header in sys/disk.h sys/mount.h
11774do
11775as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040011776{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11777echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11778if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011779 echo $ECHO_N "(cached) $ECHO_C" >&6
11780else
11781 cat >conftest.$ac_ext <<_ACEOF
11782/* confdefs.h. */
11783_ACEOF
11784cat confdefs.h >>conftest.$ac_ext
11785cat >>conftest.$ac_ext <<_ACEOF
11786/* end confdefs.h. */
11787
11788#if HAVE_SYS_QUEUE_H
11789#include <sys/queue.h>
11790#endif
11791
11792
11793#include <$ac_header>
11794_ACEOF
11795rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040011796if { (ac_try="$ac_compile"
11797case "(($ac_try" in
11798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11799 *) ac_try_echo=$ac_try;;
11800esac
11801eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11802 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011803 ac_status=$?
11804 grep -v '^ *+' conftest.er1 >conftest.err
11805 rm -f conftest.er1
11806 cat conftest.err >&5
11807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011808 (exit $ac_status); } && {
11809 test -z "$ac_c_werror_flag" ||
11810 test ! -s conftest.err
11811 } && test -s conftest.$ac_objext; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011812 eval "$as_ac_Header=yes"
11813else
11814 echo "$as_me: failed program was:" >&5
11815sed 's/^/| /' conftest.$ac_ext >&5
11816
Theodore Ts'oe1052142006-10-21 21:46:47 -040011817 eval "$as_ac_Header=no"
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011818fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011819
11820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011821fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011822ac_res=`eval echo '${'$as_ac_Header'}'`
11823 { echo "$as_me:$LINENO: result: $ac_res" >&5
11824echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011825if test `eval echo '${'$as_ac_Header'}'` = yes; then
11826 cat >>confdefs.h <<_ACEOF
11827#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11828_ACEOF
11829
11830fi
11831
11832done
11833
11834
11835for ac_header in net/if.h
11836do
11837as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040011838{ echo "$as_me:$LINENO: checking for $ac_header" >&5
11839echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11840if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011841 echo $ECHO_N "(cached) $ECHO_C" >&6
11842else
11843 cat >conftest.$ac_ext <<_ACEOF
11844/* confdefs.h. */
11845_ACEOF
11846cat confdefs.h >>conftest.$ac_ext
11847cat >>conftest.$ac_ext <<_ACEOF
11848/* end confdefs.h. */
11849
11850#if HAVE_SYS_TYPES_H
11851#include <sys/types.h>
11852#endif
11853#if HAVE_SYS_SOCKET
11854#include <sys/socket.h>
11855#endif
11856
11857
11858#include <$ac_header>
11859_ACEOF
11860rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040011861if { (ac_try="$ac_compile"
11862case "(($ac_try" in
11863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11864 *) ac_try_echo=$ac_try;;
11865esac
11866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11867 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011868 ac_status=$?
11869 grep -v '^ *+' conftest.er1 >conftest.err
11870 rm -f conftest.er1
11871 cat conftest.err >&5
11872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011873 (exit $ac_status); } && {
11874 test -z "$ac_c_werror_flag" ||
11875 test ! -s conftest.err
11876 } && test -s conftest.$ac_objext; then
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011877 eval "$as_ac_Header=yes"
11878else
11879 echo "$as_me: failed program was:" >&5
11880sed 's/^/| /' conftest.$ac_ext >&5
11881
Theodore Ts'oe1052142006-10-21 21:46:47 -040011882 eval "$as_ac_Header=no"
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011883fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011884
11885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011886fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011887ac_res=`eval echo '${'$as_ac_Header'}'`
11888 { echo "$as_me:$LINENO: result: $ac_res" >&5
11889echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050011890if test `eval echo '${'$as_ac_Header'}'` = yes; then
11891 cat >>confdefs.h <<_ACEOF
11892#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11893_ACEOF
11894
11895fi
11896
11897done
11898
11899
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011900for ac_func in vprintf
11901do
11902as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040011903{ echo "$as_me:$LINENO: checking for $ac_func" >&5
11904echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11905if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011906 echo $ECHO_N "(cached) $ECHO_C" >&6
11907else
11908 cat >conftest.$ac_ext <<_ACEOF
11909/* confdefs.h. */
11910_ACEOF
11911cat confdefs.h >>conftest.$ac_ext
11912cat >>conftest.$ac_ext <<_ACEOF
11913/* end confdefs.h. */
11914/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11915 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11916#define $ac_func innocuous_$ac_func
11917
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011918/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011919 which can conflict with char $ac_func (); below.
11920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11921 <limits.h> exists even on freestanding compilers. */
11922
11923#ifdef __STDC__
11924# include <limits.h>
11925#else
11926# include <assert.h>
11927#endif
11928
11929#undef $ac_func
11930
Theodore Ts'oe1052142006-10-21 21:46:47 -040011931/* Override any GCC internal prototype to avoid an error.
11932 Use char because int might match the return type of a GCC
11933 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011934#ifdef __cplusplus
11935extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011936#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011937char $ac_func ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011938/* The GNU C library defines this for functions which it implements
11939 to always fail with ENOSYS. Some functions are actually named
11940 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040011941#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011942choke me
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011943#endif
11944
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011945int
11946main ()
11947{
Theodore Ts'oe1052142006-10-21 21:46:47 -040011948return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011949 ;
11950 return 0;
11951}
11952_ACEOF
11953rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040011954if { (ac_try="$ac_link"
11955case "(($ac_try" in
11956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11957 *) ac_try_echo=$ac_try;;
11958esac
11959eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11960 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011961 ac_status=$?
11962 grep -v '^ *+' conftest.er1 >conftest.err
11963 rm -f conftest.er1
11964 cat conftest.err >&5
11965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011966 (exit $ac_status); } && {
11967 test -z "$ac_c_werror_flag" ||
11968 test ! -s conftest.err
11969 } && test -s conftest$ac_exeext &&
11970 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011971 eval "$as_ac_var=yes"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011972else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011973 echo "$as_me: failed program was:" >&5
11974sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011975
Theodore Ts'oe1052142006-10-21 21:46:47 -040011976 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011977fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011978
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040011979rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011980 conftest$ac_exeext conftest.$ac_ext
11981fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011982ac_res=`eval echo '${'$as_ac_var'}'`
11983 { echo "$as_me:$LINENO: result: $ac_res" >&5
11984echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011985if test `eval echo '${'$as_ac_var'}'` = yes; then
11986 cat >>confdefs.h <<_ACEOF
11987#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11988_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011989
Theodore Ts'oe1052142006-10-21 21:46:47 -040011990{ echo "$as_me:$LINENO: checking for _doprnt" >&5
11991echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011992if test "${ac_cv_func__doprnt+set}" = set; then
11993 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011994else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011995 cat >conftest.$ac_ext <<_ACEOF
11996/* confdefs.h. */
11997_ACEOF
11998cat confdefs.h >>conftest.$ac_ext
11999cat >>conftest.$ac_ext <<_ACEOF
12000/* end confdefs.h. */
12001/* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
12002 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12003#define _doprnt innocuous__doprnt
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012004
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012005/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012006 which can conflict with char _doprnt (); below.
12007 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12008 <limits.h> exists even on freestanding compilers. */
12009
12010#ifdef __STDC__
12011# include <limits.h>
12012#else
12013# include <assert.h>
12014#endif
12015
12016#undef _doprnt
12017
Theodore Ts'oe1052142006-10-21 21:46:47 -040012018/* Override any GCC internal prototype to avoid an error.
12019 Use char because int might match the return type of a GCC
12020 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012021#ifdef __cplusplus
12022extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012023#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012024char _doprnt ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012025/* The GNU C library defines this for functions which it implements
12026 to always fail with ENOSYS. Some functions are actually named
12027 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040012028#if defined __stub__doprnt || defined __stub____doprnt
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012029choke me
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012030#endif
12031
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012032int
12033main ()
12034{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012035return _doprnt ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012036 ;
12037 return 0;
12038}
12039_ACEOF
12040rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012041if { (ac_try="$ac_link"
12042case "(($ac_try" in
12043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12044 *) ac_try_echo=$ac_try;;
12045esac
12046eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12047 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012048 ac_status=$?
12049 grep -v '^ *+' conftest.er1 >conftest.err
12050 rm -f conftest.er1
12051 cat conftest.err >&5
12052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012053 (exit $ac_status); } && {
12054 test -z "$ac_c_werror_flag" ||
12055 test ! -s conftest.err
12056 } && test -s conftest$ac_exeext &&
12057 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012058 ac_cv_func__doprnt=yes
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012059else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012060 echo "$as_me: failed program was:" >&5
12061sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +000012062
Theodore Ts'oe1052142006-10-21 21:46:47 -040012063 ac_cv_func__doprnt=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012064fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012065
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012066rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012067 conftest$ac_exeext conftest.$ac_ext
12068fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012069{ echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
12070echo "${ECHO_T}$ac_cv_func__doprnt" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012071if test $ac_cv_func__doprnt = yes; then
12072
12073cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012074#define HAVE_DOPRNT 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012075_ACEOF
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012076
12077fi
12078
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012079fi
12080done
12081
12082
Theodore Ts'oe1052142006-10-21 21:46:47 -040012083{ echo "$as_me:$LINENO: checking for struct dirent.d_reclen" >&5
12084echo $ECHO_N "checking for struct dirent.d_reclen... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012085if test "${ac_cv_member_struct_dirent_d_reclen+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012086 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012087else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012088 cat >conftest.$ac_ext <<_ACEOF
12089/* confdefs.h. */
12090_ACEOF
12091cat confdefs.h >>conftest.$ac_ext
12092cat >>conftest.$ac_ext <<_ACEOF
12093/* end confdefs.h. */
Theodore Ts'offf45482003-04-13 00:44:19 -040012094#include <dirent.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012095
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012096int
12097main ()
12098{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012099static struct dirent ac_aggr;
12100if (ac_aggr.d_reclen)
12101return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012102 ;
12103 return 0;
12104}
12105_ACEOF
12106rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012107if { (ac_try="$ac_compile"
12108case "(($ac_try" in
12109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12110 *) ac_try_echo=$ac_try;;
12111esac
12112eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12113 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012114 ac_status=$?
12115 grep -v '^ *+' conftest.er1 >conftest.err
12116 rm -f conftest.er1
12117 cat conftest.err >&5
12118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012119 (exit $ac_status); } && {
12120 test -z "$ac_c_werror_flag" ||
12121 test ! -s conftest.err
12122 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012123 ac_cv_member_struct_dirent_d_reclen=yes
Theodore Ts'offf45482003-04-13 00:44:19 -040012124else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012125 echo "$as_me: failed program was:" >&5
12126sed 's/^/| /' conftest.$ac_ext >&5
12127
Theodore Ts'oe1052142006-10-21 21:46:47 -040012128 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012129/* confdefs.h. */
12130_ACEOF
12131cat confdefs.h >>conftest.$ac_ext
12132cat >>conftest.$ac_ext <<_ACEOF
12133/* end confdefs.h. */
12134#include <dirent.h>
12135
12136int
12137main ()
12138{
12139static struct dirent ac_aggr;
12140if (sizeof ac_aggr.d_reclen)
12141return 0;
12142 ;
12143 return 0;
12144}
12145_ACEOF
12146rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012147if { (ac_try="$ac_compile"
12148case "(($ac_try" in
12149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12150 *) ac_try_echo=$ac_try;;
12151esac
12152eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12153 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012154 ac_status=$?
12155 grep -v '^ *+' conftest.er1 >conftest.err
12156 rm -f conftest.er1
12157 cat conftest.err >&5
12158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012159 (exit $ac_status); } && {
12160 test -z "$ac_c_werror_flag" ||
12161 test ! -s conftest.err
12162 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012163 ac_cv_member_struct_dirent_d_reclen=yes
12164else
12165 echo "$as_me: failed program was:" >&5
12166sed 's/^/| /' conftest.$ac_ext >&5
12167
Theodore Ts'oe1052142006-10-21 21:46:47 -040012168 ac_cv_member_struct_dirent_d_reclen=no
Theodore Ts'offf45482003-04-13 00:44:19 -040012169fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012170
12171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'offf45482003-04-13 00:44:19 -040012172fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012173
12174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012175fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012176{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_dirent_d_reclen" >&5
12177echo "${ECHO_T}$ac_cv_member_struct_dirent_d_reclen" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012178if test $ac_cv_member_struct_dirent_d_reclen = yes; then
12179 cat >>confdefs.h <<\_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040012180#define HAVE_RECLEN_DIRENT 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012181_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040012182
12183fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012184
Theodore Ts'oe1052142006-10-21 21:46:47 -040012185{ echo "$as_me:$LINENO: checking for ssize_t" >&5
12186echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012187if test "${ac_cv_type_ssize_t+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012188 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'offf45482003-04-13 00:44:19 -040012189else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012190 cat >conftest.$ac_ext <<_ACEOF
12191/* confdefs.h. */
12192_ACEOF
12193cat confdefs.h >>conftest.$ac_ext
12194cat >>conftest.$ac_ext <<_ACEOF
12195/* end confdefs.h. */
Theodore Ts'offf45482003-04-13 00:44:19 -040012196#include <sys/types.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012197
Theodore Ts'oe1052142006-10-21 21:46:47 -040012198typedef ssize_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012199int
12200main ()
12201{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012202if ((ac__type_new_ *) 0)
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012203 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012204if (sizeof (ac__type_new_))
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012205 return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012206 ;
12207 return 0;
12208}
12209_ACEOF
12210rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012211if { (ac_try="$ac_compile"
12212case "(($ac_try" in
12213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12214 *) ac_try_echo=$ac_try;;
12215esac
12216eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12217 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012218 ac_status=$?
12219 grep -v '^ *+' conftest.er1 >conftest.err
12220 rm -f conftest.er1
12221 cat conftest.err >&5
12222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012223 (exit $ac_status); } && {
12224 test -z "$ac_c_werror_flag" ||
12225 test ! -s conftest.err
12226 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012227 ac_cv_type_ssize_t=yes
Theodore Ts'offf45482003-04-13 00:44:19 -040012228else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012229 echo "$as_me: failed program was:" >&5
12230sed 's/^/| /' conftest.$ac_ext >&5
12231
Theodore Ts'oe1052142006-10-21 21:46:47 -040012232 ac_cv_type_ssize_t=no
Theodore Ts'offf45482003-04-13 00:44:19 -040012233fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012234
12235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'offf45482003-04-13 00:44:19 -040012236fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012237{ echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
12238echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012239if test $ac_cv_type_ssize_t = yes; then
12240 cat >>confdefs.h <<\_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040012241#define HAVE_TYPE_SSIZE_T 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012242_ACEOF
Theodore Ts'offf45482003-04-13 00:44:19 -040012243
12244fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012245
Theodore Ts'oe1052142006-10-21 21:46:47 -040012246{ echo "$as_me:$LINENO: checking whether llseek is declared" >&5
12247echo $ECHO_N "checking whether llseek is declared... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012248if test "${ac_cv_have_decl_llseek+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012249 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'offf45482003-04-13 00:44:19 -040012250else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012251 cat >conftest.$ac_ext <<_ACEOF
12252/* confdefs.h. */
12253_ACEOF
12254cat confdefs.h >>conftest.$ac_ext
12255cat >>conftest.$ac_ext <<_ACEOF
12256/* end confdefs.h. */
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012257#include <unistd.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012258
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012259int
12260main ()
12261{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012262#ifndef llseek
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012263 (void) llseek;
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012264#endif
12265
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012266 ;
12267 return 0;
12268}
12269_ACEOF
12270rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012271if { (ac_try="$ac_compile"
12272case "(($ac_try" in
12273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12274 *) ac_try_echo=$ac_try;;
12275esac
12276eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12277 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012278 ac_status=$?
12279 grep -v '^ *+' conftest.er1 >conftest.err
12280 rm -f conftest.er1
12281 cat conftest.err >&5
12282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012283 (exit $ac_status); } && {
12284 test -z "$ac_c_werror_flag" ||
12285 test ! -s conftest.err
12286 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012287 ac_cv_have_decl_llseek=yes
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012288else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012289 echo "$as_me: failed program was:" >&5
12290sed 's/^/| /' conftest.$ac_ext >&5
12291
Theodore Ts'oe1052142006-10-21 21:46:47 -040012292 ac_cv_have_decl_llseek=no
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012293fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012294
12295rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012296fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012297{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_llseek" >&5
12298echo "${ECHO_T}$ac_cv_have_decl_llseek" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012299if test $ac_cv_have_decl_llseek = yes; then
12300 cat >>confdefs.h <<\_ACEOF
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012301#define HAVE_LLSEEK_PROTOTYPE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012302_ACEOF
Theodore Ts'ob0b9c4d1997-10-20 23:36:30 +000012303
12304fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012305
Theodore Ts'oe1052142006-10-21 21:46:47 -040012306{ echo "$as_me:$LINENO: checking whether lseek64 is declared" >&5
12307echo $ECHO_N "checking whether lseek64 is declared... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012308if test "${ac_cv_have_decl_lseek64+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012309 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012310else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012311 cat >conftest.$ac_ext <<_ACEOF
12312/* confdefs.h. */
12313_ACEOF
12314cat confdefs.h >>conftest.$ac_ext
12315cat >>conftest.$ac_ext <<_ACEOF
12316/* end confdefs.h. */
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012317#define _LARGEFILE_SOURCE
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012318 #define _LARGEFILE64_SOURCE
12319 #include <unistd.h>
12320
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012321int
12322main ()
12323{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012324#ifndef lseek64
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012325 (void) lseek64;
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012326#endif
12327
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012328 ;
12329 return 0;
12330}
12331_ACEOF
12332rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012333if { (ac_try="$ac_compile"
12334case "(($ac_try" in
12335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12336 *) ac_try_echo=$ac_try;;
12337esac
12338eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12339 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012340 ac_status=$?
12341 grep -v '^ *+' conftest.er1 >conftest.err
12342 rm -f conftest.er1
12343 cat conftest.err >&5
12344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012345 (exit $ac_status); } && {
12346 test -z "$ac_c_werror_flag" ||
12347 test ! -s conftest.err
12348 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012349 ac_cv_have_decl_lseek64=yes
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012350else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012351 echo "$as_me: failed program was:" >&5
12352sed 's/^/| /' conftest.$ac_ext >&5
12353
Theodore Ts'oe1052142006-10-21 21:46:47 -040012354 ac_cv_have_decl_lseek64=no
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012355fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012356
12357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012358fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012359{ echo "$as_me:$LINENO: result: $ac_cv_have_decl_lseek64" >&5
12360echo "${ECHO_T}$ac_cv_have_decl_lseek64" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012361if test $ac_cv_have_decl_lseek64 = yes; then
12362 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012363#define HAVE_LSEEK64_PROTOTYPE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012364_ACEOF
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012365
12366fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012367
Theodore Ts'oe1052142006-10-21 21:46:47 -040012368{ echo "$as_me:$LINENO: checking for short" >&5
12369echo $ECHO_N "checking for short... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012370if test "${ac_cv_type_short+set}" = set; then
12371 echo $ECHO_N "(cached) $ECHO_C" >&6
12372else
12373 cat >conftest.$ac_ext <<_ACEOF
12374/* confdefs.h. */
12375_ACEOF
12376cat confdefs.h >>conftest.$ac_ext
12377cat >>conftest.$ac_ext <<_ACEOF
12378/* end confdefs.h. */
12379$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040012380typedef short ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012381int
12382main ()
12383{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012384if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012385 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012386if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012387 return 0;
12388 ;
12389 return 0;
12390}
12391_ACEOF
12392rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012393if { (ac_try="$ac_compile"
12394case "(($ac_try" in
12395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12396 *) ac_try_echo=$ac_try;;
12397esac
12398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12399 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012400 ac_status=$?
12401 grep -v '^ *+' conftest.er1 >conftest.err
12402 rm -f conftest.er1
12403 cat conftest.err >&5
12404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012405 (exit $ac_status); } && {
12406 test -z "$ac_c_werror_flag" ||
12407 test ! -s conftest.err
12408 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012409 ac_cv_type_short=yes
12410else
12411 echo "$as_me: failed program was:" >&5
12412sed 's/^/| /' conftest.$ac_ext >&5
12413
Theodore Ts'oe1052142006-10-21 21:46:47 -040012414 ac_cv_type_short=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012415fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012416
Theodore Ts'oe1052142006-10-21 21:46:47 -040012417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12418fi
12419{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
12420echo "${ECHO_T}$ac_cv_type_short" >&6; }
12421
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012422# The cast to long int works around a bug in the HP C Compiler
12423# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12424# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12425# This bug is HP SR number 8606223364.
Theodore Ts'oe1052142006-10-21 21:46:47 -040012426{ echo "$as_me:$LINENO: checking size of short" >&5
12427echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012428if test "${ac_cv_sizeof_short+set}" = set; then
12429 echo $ECHO_N "(cached) $ECHO_C" >&6
12430else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012431 if test "$cross_compiling" = yes; then
12432 # Depending upon the size, compute the lo and hi bounds.
12433cat >conftest.$ac_ext <<_ACEOF
12434/* confdefs.h. */
12435_ACEOF
12436cat confdefs.h >>conftest.$ac_ext
12437cat >>conftest.$ac_ext <<_ACEOF
12438/* end confdefs.h. */
12439$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012440 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012441int
12442main ()
12443{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012444static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012445test_array [0] = 0
12446
12447 ;
12448 return 0;
12449}
12450_ACEOF
12451rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012452if { (ac_try="$ac_compile"
12453case "(($ac_try" in
12454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12455 *) ac_try_echo=$ac_try;;
12456esac
12457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12458 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012459 ac_status=$?
12460 grep -v '^ *+' conftest.er1 >conftest.err
12461 rm -f conftest.er1
12462 cat conftest.err >&5
12463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012464 (exit $ac_status); } && {
12465 test -z "$ac_c_werror_flag" ||
12466 test ! -s conftest.err
12467 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012468 ac_lo=0 ac_mid=0
12469 while :; do
12470 cat >conftest.$ac_ext <<_ACEOF
12471/* confdefs.h. */
12472_ACEOF
12473cat confdefs.h >>conftest.$ac_ext
12474cat >>conftest.$ac_ext <<_ACEOF
12475/* end confdefs.h. */
12476$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012477 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012478int
12479main ()
12480{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012481static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012482test_array [0] = 0
12483
12484 ;
12485 return 0;
12486}
12487_ACEOF
12488rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012489if { (ac_try="$ac_compile"
12490case "(($ac_try" in
12491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12492 *) ac_try_echo=$ac_try;;
12493esac
12494eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12495 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012496 ac_status=$?
12497 grep -v '^ *+' conftest.er1 >conftest.err
12498 rm -f conftest.er1
12499 cat conftest.err >&5
12500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012501 (exit $ac_status); } && {
12502 test -z "$ac_c_werror_flag" ||
12503 test ! -s conftest.err
12504 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012505 ac_hi=$ac_mid; break
12506else
12507 echo "$as_me: failed program was:" >&5
12508sed 's/^/| /' conftest.$ac_ext >&5
12509
Theodore Ts'oe1052142006-10-21 21:46:47 -040012510 ac_lo=`expr $ac_mid + 1`
12511 if test $ac_lo -le $ac_mid; then
12512 ac_lo= ac_hi=
12513 break
12514 fi
12515 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012516fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012517
12518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012519 done
12520else
12521 echo "$as_me: failed program was:" >&5
12522sed 's/^/| /' conftest.$ac_ext >&5
12523
Theodore Ts'oe1052142006-10-21 21:46:47 -040012524 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012525/* confdefs.h. */
12526_ACEOF
12527cat confdefs.h >>conftest.$ac_ext
12528cat >>conftest.$ac_ext <<_ACEOF
12529/* end confdefs.h. */
12530$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012531 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012532int
12533main ()
12534{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012535static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012536test_array [0] = 0
12537
12538 ;
12539 return 0;
12540}
12541_ACEOF
12542rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012543if { (ac_try="$ac_compile"
12544case "(($ac_try" in
12545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12546 *) ac_try_echo=$ac_try;;
12547esac
12548eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12549 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012550 ac_status=$?
12551 grep -v '^ *+' conftest.er1 >conftest.err
12552 rm -f conftest.er1
12553 cat conftest.err >&5
12554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012555 (exit $ac_status); } && {
12556 test -z "$ac_c_werror_flag" ||
12557 test ! -s conftest.err
12558 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012559 ac_hi=-1 ac_mid=-1
12560 while :; do
12561 cat >conftest.$ac_ext <<_ACEOF
12562/* confdefs.h. */
12563_ACEOF
12564cat confdefs.h >>conftest.$ac_ext
12565cat >>conftest.$ac_ext <<_ACEOF
12566/* end confdefs.h. */
12567$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012568 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012569int
12570main ()
12571{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012572static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012573test_array [0] = 0
12574
12575 ;
12576 return 0;
12577}
12578_ACEOF
12579rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012580if { (ac_try="$ac_compile"
12581case "(($ac_try" in
12582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12583 *) ac_try_echo=$ac_try;;
12584esac
12585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12586 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012587 ac_status=$?
12588 grep -v '^ *+' conftest.er1 >conftest.err
12589 rm -f conftest.er1
12590 cat conftest.err >&5
12591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012592 (exit $ac_status); } && {
12593 test -z "$ac_c_werror_flag" ||
12594 test ! -s conftest.err
12595 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012596 ac_lo=$ac_mid; break
12597else
12598 echo "$as_me: failed program was:" >&5
12599sed 's/^/| /' conftest.$ac_ext >&5
12600
Theodore Ts'oe1052142006-10-21 21:46:47 -040012601 ac_hi=`expr '(' $ac_mid ')' - 1`
12602 if test $ac_mid -le $ac_hi; then
12603 ac_lo= ac_hi=
12604 break
12605 fi
12606 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012607fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012608
12609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012610 done
12611else
12612 echo "$as_me: failed program was:" >&5
12613sed 's/^/| /' conftest.$ac_ext >&5
12614
Theodore Ts'oe1052142006-10-21 21:46:47 -040012615 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012616fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012617
12618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012619fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012620
12621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012622# Binary search between lo and hi bounds.
12623while test "x$ac_lo" != "x$ac_hi"; do
12624 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12625 cat >conftest.$ac_ext <<_ACEOF
12626/* confdefs.h. */
12627_ACEOF
12628cat confdefs.h >>conftest.$ac_ext
12629cat >>conftest.$ac_ext <<_ACEOF
12630/* end confdefs.h. */
12631$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012632 typedef short ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012633int
12634main ()
12635{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012636static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012637test_array [0] = 0
12638
12639 ;
12640 return 0;
12641}
12642_ACEOF
12643rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012644if { (ac_try="$ac_compile"
12645case "(($ac_try" in
12646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12647 *) ac_try_echo=$ac_try;;
12648esac
12649eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12650 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012651 ac_status=$?
12652 grep -v '^ *+' conftest.er1 >conftest.err
12653 rm -f conftest.er1
12654 cat conftest.err >&5
12655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012656 (exit $ac_status); } && {
12657 test -z "$ac_c_werror_flag" ||
12658 test ! -s conftest.err
12659 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012660 ac_hi=$ac_mid
12661else
12662 echo "$as_me: failed program was:" >&5
12663sed 's/^/| /' conftest.$ac_ext >&5
12664
Theodore Ts'oe1052142006-10-21 21:46:47 -040012665 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012666fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012667
12668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012669done
12670case $ac_lo in
12671?*) ac_cv_sizeof_short=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012672'') if test "$ac_cv_type_short" = yes; then
12673 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012674See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012675echo "$as_me: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012676See \`config.log' for more details." >&2;}
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012677 { (exit 77); exit 77; }; }
12678 else
12679 ac_cv_sizeof_short=0
12680 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012681esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012682else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012683 cat >conftest.$ac_ext <<_ACEOF
12684/* confdefs.h. */
12685_ACEOF
12686cat confdefs.h >>conftest.$ac_ext
12687cat >>conftest.$ac_ext <<_ACEOF
12688/* end confdefs.h. */
12689$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012690 typedef short ac__type_sizeof_;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012691static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
12692static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012693#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012694#include <stdlib.h>
12695int
12696main ()
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012697{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012698
12699 FILE *f = fopen ("conftest.val", "w");
12700 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040012701 return 1;
12702 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012703 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040012704 long int i = longval ();
12705 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12706 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012707 fprintf (f, "%ld\n", i);
12708 }
12709 else
12710 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040012711 unsigned long int i = ulongval ();
12712 if (i != ((long int) (sizeof (ac__type_sizeof_))))
12713 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012714 fprintf (f, "%lu\n", i);
12715 }
Theodore Ts'oe1052142006-10-21 21:46:47 -040012716 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012717
12718 ;
12719 return 0;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012720}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012721_ACEOF
12722rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012723if { (ac_try="$ac_link"
12724case "(($ac_try" in
12725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12726 *) ac_try_echo=$ac_try;;
12727esac
12728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12729 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012730 ac_status=$?
12731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040012733 { (case "(($ac_try" in
12734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12735 *) ac_try_echo=$ac_try;;
12736esac
12737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12738 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012739 ac_status=$?
12740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12741 (exit $ac_status); }; }; then
12742 ac_cv_sizeof_short=`cat conftest.val`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012743else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012744 echo "$as_me: program exited with status $ac_status" >&5
12745echo "$as_me: failed program was:" >&5
12746sed 's/^/| /' conftest.$ac_ext >&5
12747
12748( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012749if test "$ac_cv_type_short" = yes; then
12750 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012751See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040012752echo "$as_me: error: cannot compute sizeof (short)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012753See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012754 { (exit 77); exit 77; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012755 else
12756 ac_cv_sizeof_short=0
12757 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012758fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012759rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012760fi
12761rm -f conftest.val
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012762fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012763{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
12764echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012765
12766
12767
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012768cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012769#define SIZEOF_SHORT $ac_cv_sizeof_short
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012770_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012771
12772
Theodore Ts'oe1052142006-10-21 21:46:47 -040012773{ echo "$as_me:$LINENO: checking for int" >&5
12774echo $ECHO_N "checking for int... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012775if test "${ac_cv_type_int+set}" = set; then
12776 echo $ECHO_N "(cached) $ECHO_C" >&6
12777else
12778 cat >conftest.$ac_ext <<_ACEOF
12779/* confdefs.h. */
12780_ACEOF
12781cat confdefs.h >>conftest.$ac_ext
12782cat >>conftest.$ac_ext <<_ACEOF
12783/* end confdefs.h. */
12784$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040012785typedef int ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012786int
12787main ()
12788{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012789if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012790 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012791if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012792 return 0;
12793 ;
12794 return 0;
12795}
12796_ACEOF
12797rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012798if { (ac_try="$ac_compile"
12799case "(($ac_try" in
12800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12801 *) ac_try_echo=$ac_try;;
12802esac
12803eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12804 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012805 ac_status=$?
12806 grep -v '^ *+' conftest.er1 >conftest.err
12807 rm -f conftest.er1
12808 cat conftest.err >&5
12809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012810 (exit $ac_status); } && {
12811 test -z "$ac_c_werror_flag" ||
12812 test ! -s conftest.err
12813 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012814 ac_cv_type_int=yes
12815else
12816 echo "$as_me: failed program was:" >&5
12817sed 's/^/| /' conftest.$ac_ext >&5
12818
Theodore Ts'oe1052142006-10-21 21:46:47 -040012819 ac_cv_type_int=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012820fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012821
Theodore Ts'oe1052142006-10-21 21:46:47 -040012822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12823fi
12824{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
12825echo "${ECHO_T}$ac_cv_type_int" >&6; }
12826
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012827# The cast to long int works around a bug in the HP C Compiler
12828# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12829# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12830# This bug is HP SR number 8606223364.
Theodore Ts'oe1052142006-10-21 21:46:47 -040012831{ echo "$as_me:$LINENO: checking size of int" >&5
12832echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012833if test "${ac_cv_sizeof_int+set}" = set; then
12834 echo $ECHO_N "(cached) $ECHO_C" >&6
12835else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012836 if test "$cross_compiling" = yes; then
12837 # Depending upon the size, compute the lo and hi bounds.
12838cat >conftest.$ac_ext <<_ACEOF
12839/* confdefs.h. */
12840_ACEOF
12841cat confdefs.h >>conftest.$ac_ext
12842cat >>conftest.$ac_ext <<_ACEOF
12843/* end confdefs.h. */
12844$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012845 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012846int
12847main ()
12848{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012849static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012850test_array [0] = 0
12851
12852 ;
12853 return 0;
12854}
12855_ACEOF
12856rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012857if { (ac_try="$ac_compile"
12858case "(($ac_try" in
12859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12860 *) ac_try_echo=$ac_try;;
12861esac
12862eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12863 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012864 ac_status=$?
12865 grep -v '^ *+' conftest.er1 >conftest.err
12866 rm -f conftest.er1
12867 cat conftest.err >&5
12868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012869 (exit $ac_status); } && {
12870 test -z "$ac_c_werror_flag" ||
12871 test ! -s conftest.err
12872 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012873 ac_lo=0 ac_mid=0
12874 while :; do
12875 cat >conftest.$ac_ext <<_ACEOF
12876/* confdefs.h. */
12877_ACEOF
12878cat confdefs.h >>conftest.$ac_ext
12879cat >>conftest.$ac_ext <<_ACEOF
12880/* end confdefs.h. */
12881$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012882 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012883int
12884main ()
12885{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012886static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012887test_array [0] = 0
12888
12889 ;
12890 return 0;
12891}
12892_ACEOF
12893rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012894if { (ac_try="$ac_compile"
12895case "(($ac_try" in
12896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12897 *) ac_try_echo=$ac_try;;
12898esac
12899eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12900 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012901 ac_status=$?
12902 grep -v '^ *+' conftest.er1 >conftest.err
12903 rm -f conftest.er1
12904 cat conftest.err >&5
12905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012906 (exit $ac_status); } && {
12907 test -z "$ac_c_werror_flag" ||
12908 test ! -s conftest.err
12909 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012910 ac_hi=$ac_mid; break
12911else
12912 echo "$as_me: failed program was:" >&5
12913sed 's/^/| /' conftest.$ac_ext >&5
12914
Theodore Ts'oe1052142006-10-21 21:46:47 -040012915 ac_lo=`expr $ac_mid + 1`
12916 if test $ac_lo -le $ac_mid; then
12917 ac_lo= ac_hi=
12918 break
12919 fi
12920 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012921fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012922
12923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012924 done
12925else
12926 echo "$as_me: failed program was:" >&5
12927sed 's/^/| /' conftest.$ac_ext >&5
12928
Theodore Ts'oe1052142006-10-21 21:46:47 -040012929 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012930/* confdefs.h. */
12931_ACEOF
12932cat confdefs.h >>conftest.$ac_ext
12933cat >>conftest.$ac_ext <<_ACEOF
12934/* end confdefs.h. */
12935$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012936 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012937int
12938main ()
12939{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012940static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012941test_array [0] = 0
12942
12943 ;
12944 return 0;
12945}
12946_ACEOF
12947rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012948if { (ac_try="$ac_compile"
12949case "(($ac_try" in
12950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12951 *) ac_try_echo=$ac_try;;
12952esac
12953eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12954 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012955 ac_status=$?
12956 grep -v '^ *+' conftest.er1 >conftest.err
12957 rm -f conftest.er1
12958 cat conftest.err >&5
12959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012960 (exit $ac_status); } && {
12961 test -z "$ac_c_werror_flag" ||
12962 test ! -s conftest.err
12963 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012964 ac_hi=-1 ac_mid=-1
12965 while :; do
12966 cat >conftest.$ac_ext <<_ACEOF
12967/* confdefs.h. */
12968_ACEOF
12969cat confdefs.h >>conftest.$ac_ext
12970cat >>conftest.$ac_ext <<_ACEOF
12971/* end confdefs.h. */
12972$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012973 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012974int
12975main ()
12976{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012977static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012978test_array [0] = 0
12979
12980 ;
12981 return 0;
12982}
12983_ACEOF
12984rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040012985if { (ac_try="$ac_compile"
12986case "(($ac_try" in
12987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12988 *) ac_try_echo=$ac_try;;
12989esac
12990eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12991 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012992 ac_status=$?
12993 grep -v '^ *+' conftest.er1 >conftest.err
12994 rm -f conftest.er1
12995 cat conftest.err >&5
12996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012997 (exit $ac_status); } && {
12998 test -z "$ac_c_werror_flag" ||
12999 test ! -s conftest.err
13000 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013001 ac_lo=$ac_mid; break
13002else
13003 echo "$as_me: failed program was:" >&5
13004sed 's/^/| /' conftest.$ac_ext >&5
13005
Theodore Ts'oe1052142006-10-21 21:46:47 -040013006 ac_hi=`expr '(' $ac_mid ')' - 1`
13007 if test $ac_mid -le $ac_hi; then
13008 ac_lo= ac_hi=
13009 break
13010 fi
13011 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013012fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013013
13014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013015 done
13016else
13017 echo "$as_me: failed program was:" >&5
13018sed 's/^/| /' conftest.$ac_ext >&5
13019
Theodore Ts'oe1052142006-10-21 21:46:47 -040013020 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013021fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013022
13023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013024fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013025
13026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013027# Binary search between lo and hi bounds.
13028while test "x$ac_lo" != "x$ac_hi"; do
13029 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13030 cat >conftest.$ac_ext <<_ACEOF
13031/* confdefs.h. */
13032_ACEOF
13033cat confdefs.h >>conftest.$ac_ext
13034cat >>conftest.$ac_ext <<_ACEOF
13035/* end confdefs.h. */
13036$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013037 typedef int ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013038int
13039main ()
13040{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013041static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013042test_array [0] = 0
13043
13044 ;
13045 return 0;
13046}
13047_ACEOF
13048rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013049if { (ac_try="$ac_compile"
13050case "(($ac_try" in
13051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13052 *) ac_try_echo=$ac_try;;
13053esac
13054eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13055 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013056 ac_status=$?
13057 grep -v '^ *+' conftest.er1 >conftest.err
13058 rm -f conftest.er1
13059 cat conftest.err >&5
13060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013061 (exit $ac_status); } && {
13062 test -z "$ac_c_werror_flag" ||
13063 test ! -s conftest.err
13064 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013065 ac_hi=$ac_mid
13066else
13067 echo "$as_me: failed program was:" >&5
13068sed 's/^/| /' conftest.$ac_ext >&5
13069
Theodore Ts'oe1052142006-10-21 21:46:47 -040013070 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013071fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013072
13073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013074done
13075case $ac_lo in
13076?*) ac_cv_sizeof_int=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013077'') if test "$ac_cv_type_int" = yes; then
13078 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013079See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013080echo "$as_me: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013081See \`config.log' for more details." >&2;}
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013082 { (exit 77); exit 77; }; }
13083 else
13084 ac_cv_sizeof_int=0
13085 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013086esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013087else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013088 cat >conftest.$ac_ext <<_ACEOF
13089/* confdefs.h. */
13090_ACEOF
13091cat confdefs.h >>conftest.$ac_ext
13092cat >>conftest.$ac_ext <<_ACEOF
13093/* end confdefs.h. */
13094$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013095 typedef int ac__type_sizeof_;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013096static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13097static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013098#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013099#include <stdlib.h>
13100int
13101main ()
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013102{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013103
13104 FILE *f = fopen ("conftest.val", "w");
13105 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040013106 return 1;
13107 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013108 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013109 long int i = longval ();
13110 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13111 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013112 fprintf (f, "%ld\n", i);
13113 }
13114 else
13115 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013116 unsigned long int i = ulongval ();
13117 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13118 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013119 fprintf (f, "%lu\n", i);
13120 }
Theodore Ts'oe1052142006-10-21 21:46:47 -040013121 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013122
13123 ;
13124 return 0;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013125}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013126_ACEOF
13127rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013128if { (ac_try="$ac_link"
13129case "(($ac_try" in
13130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13131 *) ac_try_echo=$ac_try;;
13132esac
13133eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13134 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013135 ac_status=$?
13136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13137 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040013138 { (case "(($ac_try" in
13139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13140 *) ac_try_echo=$ac_try;;
13141esac
13142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13143 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013144 ac_status=$?
13145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146 (exit $ac_status); }; }; then
13147 ac_cv_sizeof_int=`cat conftest.val`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013148else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013149 echo "$as_me: program exited with status $ac_status" >&5
13150echo "$as_me: failed program was:" >&5
13151sed 's/^/| /' conftest.$ac_ext >&5
13152
13153( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013154if test "$ac_cv_type_int" = yes; then
13155 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013156See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013157echo "$as_me: error: cannot compute sizeof (int)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013158See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040013159 { (exit 77); exit 77; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013160 else
13161 ac_cv_sizeof_int=0
13162 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013163fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013164rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013165fi
13166rm -f conftest.val
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013167fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013168{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
13169echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013170
13171
13172
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013173cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013174#define SIZEOF_INT $ac_cv_sizeof_int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013175_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013176
13177
Theodore Ts'oe1052142006-10-21 21:46:47 -040013178{ echo "$as_me:$LINENO: checking for long" >&5
13179echo $ECHO_N "checking for long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013180if test "${ac_cv_type_long+set}" = set; then
13181 echo $ECHO_N "(cached) $ECHO_C" >&6
13182else
13183 cat >conftest.$ac_ext <<_ACEOF
13184/* confdefs.h. */
13185_ACEOF
13186cat confdefs.h >>conftest.$ac_ext
13187cat >>conftest.$ac_ext <<_ACEOF
13188/* end confdefs.h. */
13189$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040013190typedef long ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013191int
13192main ()
13193{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013194if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013195 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013196if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013197 return 0;
13198 ;
13199 return 0;
13200}
13201_ACEOF
13202rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013203if { (ac_try="$ac_compile"
13204case "(($ac_try" in
13205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13206 *) ac_try_echo=$ac_try;;
13207esac
13208eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13209 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013210 ac_status=$?
13211 grep -v '^ *+' conftest.er1 >conftest.err
13212 rm -f conftest.er1
13213 cat conftest.err >&5
13214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013215 (exit $ac_status); } && {
13216 test -z "$ac_c_werror_flag" ||
13217 test ! -s conftest.err
13218 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013219 ac_cv_type_long=yes
13220else
13221 echo "$as_me: failed program was:" >&5
13222sed 's/^/| /' conftest.$ac_ext >&5
13223
Theodore Ts'oe1052142006-10-21 21:46:47 -040013224 ac_cv_type_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013225fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013226
Theodore Ts'oe1052142006-10-21 21:46:47 -040013227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13228fi
13229{ echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
13230echo "${ECHO_T}$ac_cv_type_long" >&6; }
13231
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013232# The cast to long int works around a bug in the HP C Compiler
13233# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13234# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13235# This bug is HP SR number 8606223364.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013236{ echo "$as_me:$LINENO: checking size of long" >&5
13237echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013238if test "${ac_cv_sizeof_long+set}" = set; then
13239 echo $ECHO_N "(cached) $ECHO_C" >&6
13240else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013241 if test "$cross_compiling" = yes; then
13242 # Depending upon the size, compute the lo and hi bounds.
13243cat >conftest.$ac_ext <<_ACEOF
13244/* confdefs.h. */
13245_ACEOF
13246cat confdefs.h >>conftest.$ac_ext
13247cat >>conftest.$ac_ext <<_ACEOF
13248/* end confdefs.h. */
13249$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013250 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013251int
13252main ()
13253{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013254static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013255test_array [0] = 0
13256
13257 ;
13258 return 0;
13259}
13260_ACEOF
13261rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013262if { (ac_try="$ac_compile"
13263case "(($ac_try" in
13264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13265 *) ac_try_echo=$ac_try;;
13266esac
13267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13268 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013269 ac_status=$?
13270 grep -v '^ *+' conftest.er1 >conftest.err
13271 rm -f conftest.er1
13272 cat conftest.err >&5
13273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013274 (exit $ac_status); } && {
13275 test -z "$ac_c_werror_flag" ||
13276 test ! -s conftest.err
13277 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013278 ac_lo=0 ac_mid=0
13279 while :; do
13280 cat >conftest.$ac_ext <<_ACEOF
13281/* confdefs.h. */
13282_ACEOF
13283cat confdefs.h >>conftest.$ac_ext
13284cat >>conftest.$ac_ext <<_ACEOF
13285/* end confdefs.h. */
13286$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013287 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013288int
13289main ()
13290{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013291static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013292test_array [0] = 0
13293
13294 ;
13295 return 0;
13296}
13297_ACEOF
13298rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013299if { (ac_try="$ac_compile"
13300case "(($ac_try" in
13301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13302 *) ac_try_echo=$ac_try;;
13303esac
13304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13305 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013306 ac_status=$?
13307 grep -v '^ *+' conftest.er1 >conftest.err
13308 rm -f conftest.er1
13309 cat conftest.err >&5
13310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013311 (exit $ac_status); } && {
13312 test -z "$ac_c_werror_flag" ||
13313 test ! -s conftest.err
13314 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013315 ac_hi=$ac_mid; break
13316else
13317 echo "$as_me: failed program was:" >&5
13318sed 's/^/| /' conftest.$ac_ext >&5
13319
Theodore Ts'oe1052142006-10-21 21:46:47 -040013320 ac_lo=`expr $ac_mid + 1`
13321 if test $ac_lo -le $ac_mid; then
13322 ac_lo= ac_hi=
13323 break
13324 fi
13325 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013326fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013327
13328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013329 done
13330else
13331 echo "$as_me: failed program was:" >&5
13332sed 's/^/| /' conftest.$ac_ext >&5
13333
Theodore Ts'oe1052142006-10-21 21:46:47 -040013334 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013335/* confdefs.h. */
13336_ACEOF
13337cat confdefs.h >>conftest.$ac_ext
13338cat >>conftest.$ac_ext <<_ACEOF
13339/* end confdefs.h. */
13340$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013341 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013342int
13343main ()
13344{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013345static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013346test_array [0] = 0
13347
13348 ;
13349 return 0;
13350}
13351_ACEOF
13352rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013353if { (ac_try="$ac_compile"
13354case "(($ac_try" in
13355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13356 *) ac_try_echo=$ac_try;;
13357esac
13358eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13359 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013360 ac_status=$?
13361 grep -v '^ *+' conftest.er1 >conftest.err
13362 rm -f conftest.er1
13363 cat conftest.err >&5
13364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013365 (exit $ac_status); } && {
13366 test -z "$ac_c_werror_flag" ||
13367 test ! -s conftest.err
13368 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013369 ac_hi=-1 ac_mid=-1
13370 while :; do
13371 cat >conftest.$ac_ext <<_ACEOF
13372/* confdefs.h. */
13373_ACEOF
13374cat confdefs.h >>conftest.$ac_ext
13375cat >>conftest.$ac_ext <<_ACEOF
13376/* end confdefs.h. */
13377$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013378 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013379int
13380main ()
13381{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013382static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013383test_array [0] = 0
13384
13385 ;
13386 return 0;
13387}
13388_ACEOF
13389rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013390if { (ac_try="$ac_compile"
13391case "(($ac_try" in
13392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13393 *) ac_try_echo=$ac_try;;
13394esac
13395eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13396 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013397 ac_status=$?
13398 grep -v '^ *+' conftest.er1 >conftest.err
13399 rm -f conftest.er1
13400 cat conftest.err >&5
13401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013402 (exit $ac_status); } && {
13403 test -z "$ac_c_werror_flag" ||
13404 test ! -s conftest.err
13405 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013406 ac_lo=$ac_mid; break
13407else
13408 echo "$as_me: failed program was:" >&5
13409sed 's/^/| /' conftest.$ac_ext >&5
13410
Theodore Ts'oe1052142006-10-21 21:46:47 -040013411 ac_hi=`expr '(' $ac_mid ')' - 1`
13412 if test $ac_mid -le $ac_hi; then
13413 ac_lo= ac_hi=
13414 break
13415 fi
13416 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013417fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013418
13419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013420 done
13421else
13422 echo "$as_me: failed program was:" >&5
13423sed 's/^/| /' conftest.$ac_ext >&5
13424
Theodore Ts'oe1052142006-10-21 21:46:47 -040013425 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013426fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013427
13428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013429fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013430
13431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013432# Binary search between lo and hi bounds.
13433while test "x$ac_lo" != "x$ac_hi"; do
13434 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13435 cat >conftest.$ac_ext <<_ACEOF
13436/* confdefs.h. */
13437_ACEOF
13438cat confdefs.h >>conftest.$ac_ext
13439cat >>conftest.$ac_ext <<_ACEOF
13440/* end confdefs.h. */
13441$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013442 typedef long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013443int
13444main ()
13445{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013446static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013447test_array [0] = 0
13448
13449 ;
13450 return 0;
13451}
13452_ACEOF
13453rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013454if { (ac_try="$ac_compile"
13455case "(($ac_try" in
13456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13457 *) ac_try_echo=$ac_try;;
13458esac
13459eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13460 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013461 ac_status=$?
13462 grep -v '^ *+' conftest.er1 >conftest.err
13463 rm -f conftest.er1
13464 cat conftest.err >&5
13465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013466 (exit $ac_status); } && {
13467 test -z "$ac_c_werror_flag" ||
13468 test ! -s conftest.err
13469 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013470 ac_hi=$ac_mid
13471else
13472 echo "$as_me: failed program was:" >&5
13473sed 's/^/| /' conftest.$ac_ext >&5
13474
Theodore Ts'oe1052142006-10-21 21:46:47 -040013475 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013476fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013477
13478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013479done
13480case $ac_lo in
13481?*) ac_cv_sizeof_long=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013482'') if test "$ac_cv_type_long" = yes; then
13483 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013484See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013485echo "$as_me: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013486See \`config.log' for more details." >&2;}
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013487 { (exit 77); exit 77; }; }
13488 else
13489 ac_cv_sizeof_long=0
13490 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013491esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013492else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013493 cat >conftest.$ac_ext <<_ACEOF
13494/* confdefs.h. */
13495_ACEOF
13496cat confdefs.h >>conftest.$ac_ext
13497cat >>conftest.$ac_ext <<_ACEOF
13498/* end confdefs.h. */
13499$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013500 typedef long ac__type_sizeof_;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013501static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13502static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013503#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013504#include <stdlib.h>
13505int
13506main ()
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013507{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013508
13509 FILE *f = fopen ("conftest.val", "w");
13510 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040013511 return 1;
13512 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013513 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013514 long int i = longval ();
13515 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13516 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013517 fprintf (f, "%ld\n", i);
13518 }
13519 else
13520 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013521 unsigned long int i = ulongval ();
13522 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13523 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013524 fprintf (f, "%lu\n", i);
13525 }
Theodore Ts'oe1052142006-10-21 21:46:47 -040013526 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013527
13528 ;
13529 return 0;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013530}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013531_ACEOF
13532rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013533if { (ac_try="$ac_link"
13534case "(($ac_try" in
13535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13536 *) ac_try_echo=$ac_try;;
13537esac
13538eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13539 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013540 ac_status=$?
13541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13542 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040013543 { (case "(($ac_try" in
13544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13545 *) ac_try_echo=$ac_try;;
13546esac
13547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13548 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013549 ac_status=$?
13550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13551 (exit $ac_status); }; }; then
13552 ac_cv_sizeof_long=`cat conftest.val`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013553else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013554 echo "$as_me: program exited with status $ac_status" >&5
13555echo "$as_me: failed program was:" >&5
13556sed 's/^/| /' conftest.$ac_ext >&5
13557
13558( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013559if test "$ac_cv_type_long" = yes; then
13560 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013561See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013562echo "$as_me: error: cannot compute sizeof (long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013563See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040013564 { (exit 77); exit 77; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013565 else
13566 ac_cv_sizeof_long=0
13567 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013568fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013569rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013570fi
13571rm -f conftest.val
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013572fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013573{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
13574echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013575
13576
13577
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013578cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013579#define SIZEOF_LONG $ac_cv_sizeof_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013580_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013581
13582
Theodore Ts'oe1052142006-10-21 21:46:47 -040013583{ echo "$as_me:$LINENO: checking for long long" >&5
13584echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013585if test "${ac_cv_type_long_long+set}" = set; then
13586 echo $ECHO_N "(cached) $ECHO_C" >&6
13587else
13588 cat >conftest.$ac_ext <<_ACEOF
13589/* confdefs.h. */
13590_ACEOF
13591cat confdefs.h >>conftest.$ac_ext
13592cat >>conftest.$ac_ext <<_ACEOF
13593/* end confdefs.h. */
13594$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040013595typedef long long ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013596int
13597main ()
13598{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013599if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013600 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013601if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013602 return 0;
13603 ;
13604 return 0;
13605}
13606_ACEOF
13607rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013608if { (ac_try="$ac_compile"
13609case "(($ac_try" in
13610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13611 *) ac_try_echo=$ac_try;;
13612esac
13613eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13614 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013615 ac_status=$?
13616 grep -v '^ *+' conftest.er1 >conftest.err
13617 rm -f conftest.er1
13618 cat conftest.err >&5
13619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013620 (exit $ac_status); } && {
13621 test -z "$ac_c_werror_flag" ||
13622 test ! -s conftest.err
13623 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013624 ac_cv_type_long_long=yes
13625else
13626 echo "$as_me: failed program was:" >&5
13627sed 's/^/| /' conftest.$ac_ext >&5
13628
Theodore Ts'oe1052142006-10-21 21:46:47 -040013629 ac_cv_type_long_long=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013630fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013631
Theodore Ts'oe1052142006-10-21 21:46:47 -040013632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13633fi
13634{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
13635echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
13636
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013637# The cast to long int works around a bug in the HP C Compiler
13638# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
13639# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
13640# This bug is HP SR number 8606223364.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013641{ echo "$as_me:$LINENO: checking size of long long" >&5
13642echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013643if test "${ac_cv_sizeof_long_long+set}" = set; then
13644 echo $ECHO_N "(cached) $ECHO_C" >&6
13645else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013646 if test "$cross_compiling" = yes; then
13647 # Depending upon the size, compute the lo and hi bounds.
13648cat >conftest.$ac_ext <<_ACEOF
13649/* confdefs.h. */
13650_ACEOF
13651cat confdefs.h >>conftest.$ac_ext
13652cat >>conftest.$ac_ext <<_ACEOF
13653/* end confdefs.h. */
13654$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013655 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013656int
13657main ()
13658{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013659static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013660test_array [0] = 0
13661
13662 ;
13663 return 0;
13664}
13665_ACEOF
13666rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013667if { (ac_try="$ac_compile"
13668case "(($ac_try" in
13669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13670 *) ac_try_echo=$ac_try;;
13671esac
13672eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13673 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013674 ac_status=$?
13675 grep -v '^ *+' conftest.er1 >conftest.err
13676 rm -f conftest.er1
13677 cat conftest.err >&5
13678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013679 (exit $ac_status); } && {
13680 test -z "$ac_c_werror_flag" ||
13681 test ! -s conftest.err
13682 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013683 ac_lo=0 ac_mid=0
13684 while :; do
13685 cat >conftest.$ac_ext <<_ACEOF
13686/* confdefs.h. */
13687_ACEOF
13688cat confdefs.h >>conftest.$ac_ext
13689cat >>conftest.$ac_ext <<_ACEOF
13690/* end confdefs.h. */
13691$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013692 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013693int
13694main ()
13695{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013696static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013697test_array [0] = 0
13698
13699 ;
13700 return 0;
13701}
13702_ACEOF
13703rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013704if { (ac_try="$ac_compile"
13705case "(($ac_try" in
13706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13707 *) ac_try_echo=$ac_try;;
13708esac
13709eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13710 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013711 ac_status=$?
13712 grep -v '^ *+' conftest.er1 >conftest.err
13713 rm -f conftest.er1
13714 cat conftest.err >&5
13715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013716 (exit $ac_status); } && {
13717 test -z "$ac_c_werror_flag" ||
13718 test ! -s conftest.err
13719 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013720 ac_hi=$ac_mid; break
13721else
13722 echo "$as_me: failed program was:" >&5
13723sed 's/^/| /' conftest.$ac_ext >&5
13724
Theodore Ts'oe1052142006-10-21 21:46:47 -040013725 ac_lo=`expr $ac_mid + 1`
13726 if test $ac_lo -le $ac_mid; then
13727 ac_lo= ac_hi=
13728 break
13729 fi
13730 ac_mid=`expr 2 '*' $ac_mid + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013731fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013732
13733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013734 done
13735else
13736 echo "$as_me: failed program was:" >&5
13737sed 's/^/| /' conftest.$ac_ext >&5
13738
Theodore Ts'oe1052142006-10-21 21:46:47 -040013739 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013740/* confdefs.h. */
13741_ACEOF
13742cat confdefs.h >>conftest.$ac_ext
13743cat >>conftest.$ac_ext <<_ACEOF
13744/* end confdefs.h. */
13745$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013746 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013747int
13748main ()
13749{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013750static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013751test_array [0] = 0
13752
13753 ;
13754 return 0;
13755}
13756_ACEOF
13757rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013758if { (ac_try="$ac_compile"
13759case "(($ac_try" in
13760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13761 *) ac_try_echo=$ac_try;;
13762esac
13763eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13764 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013765 ac_status=$?
13766 grep -v '^ *+' conftest.er1 >conftest.err
13767 rm -f conftest.er1
13768 cat conftest.err >&5
13769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013770 (exit $ac_status); } && {
13771 test -z "$ac_c_werror_flag" ||
13772 test ! -s conftest.err
13773 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013774 ac_hi=-1 ac_mid=-1
13775 while :; do
13776 cat >conftest.$ac_ext <<_ACEOF
13777/* confdefs.h. */
13778_ACEOF
13779cat confdefs.h >>conftest.$ac_ext
13780cat >>conftest.$ac_ext <<_ACEOF
13781/* end confdefs.h. */
13782$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013783 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013784int
13785main ()
13786{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013787static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013788test_array [0] = 0
13789
13790 ;
13791 return 0;
13792}
13793_ACEOF
13794rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013795if { (ac_try="$ac_compile"
13796case "(($ac_try" in
13797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13798 *) ac_try_echo=$ac_try;;
13799esac
13800eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13801 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013802 ac_status=$?
13803 grep -v '^ *+' conftest.er1 >conftest.err
13804 rm -f conftest.er1
13805 cat conftest.err >&5
13806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013807 (exit $ac_status); } && {
13808 test -z "$ac_c_werror_flag" ||
13809 test ! -s conftest.err
13810 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013811 ac_lo=$ac_mid; break
13812else
13813 echo "$as_me: failed program was:" >&5
13814sed 's/^/| /' conftest.$ac_ext >&5
13815
Theodore Ts'oe1052142006-10-21 21:46:47 -040013816 ac_hi=`expr '(' $ac_mid ')' - 1`
13817 if test $ac_mid -le $ac_hi; then
13818 ac_lo= ac_hi=
13819 break
13820 fi
13821 ac_mid=`expr 2 '*' $ac_mid`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013822fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013823
13824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013825 done
13826else
13827 echo "$as_me: failed program was:" >&5
13828sed 's/^/| /' conftest.$ac_ext >&5
13829
Theodore Ts'oe1052142006-10-21 21:46:47 -040013830 ac_lo= ac_hi=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013831fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013832
13833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013834fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013835
13836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013837# Binary search between lo and hi bounds.
13838while test "x$ac_lo" != "x$ac_hi"; do
13839 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13840 cat >conftest.$ac_ext <<_ACEOF
13841/* confdefs.h. */
13842_ACEOF
13843cat confdefs.h >>conftest.$ac_ext
13844cat >>conftest.$ac_ext <<_ACEOF
13845/* end confdefs.h. */
13846$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013847 typedef long long ac__type_sizeof_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013848int
13849main ()
13850{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013851static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013852test_array [0] = 0
13853
13854 ;
13855 return 0;
13856}
13857_ACEOF
13858rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013859if { (ac_try="$ac_compile"
13860case "(($ac_try" in
13861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13862 *) ac_try_echo=$ac_try;;
13863esac
13864eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13865 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013866 ac_status=$?
13867 grep -v '^ *+' conftest.er1 >conftest.err
13868 rm -f conftest.er1
13869 cat conftest.err >&5
13870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013871 (exit $ac_status); } && {
13872 test -z "$ac_c_werror_flag" ||
13873 test ! -s conftest.err
13874 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013875 ac_hi=$ac_mid
13876else
13877 echo "$as_me: failed program was:" >&5
13878sed 's/^/| /' conftest.$ac_ext >&5
13879
Theodore Ts'oe1052142006-10-21 21:46:47 -040013880 ac_lo=`expr '(' $ac_mid ')' + 1`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013881fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013882
13883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013884done
13885case $ac_lo in
13886?*) ac_cv_sizeof_long_long=$ac_lo;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013887'') if test "$ac_cv_type_long_long" = yes; then
13888 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013889See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013890echo "$as_me: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013891See \`config.log' for more details." >&2;}
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013892 { (exit 77); exit 77; }; }
13893 else
13894 ac_cv_sizeof_long_long=0
13895 fi ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013896esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013897else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013898 cat >conftest.$ac_ext <<_ACEOF
13899/* confdefs.h. */
13900_ACEOF
13901cat confdefs.h >>conftest.$ac_ext
13902cat >>conftest.$ac_ext <<_ACEOF
13903/* end confdefs.h. */
13904$ac_includes_default
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013905 typedef long long ac__type_sizeof_;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013906static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
13907static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013908#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013909#include <stdlib.h>
13910int
13911main ()
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013912{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013913
13914 FILE *f = fopen ("conftest.val", "w");
13915 if (! f)
Theodore Ts'oe1052142006-10-21 21:46:47 -040013916 return 1;
13917 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013918 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013919 long int i = longval ();
13920 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13921 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013922 fprintf (f, "%ld\n", i);
13923 }
13924 else
13925 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040013926 unsigned long int i = ulongval ();
13927 if (i != ((long int) (sizeof (ac__type_sizeof_))))
13928 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013929 fprintf (f, "%lu\n", i);
13930 }
Theodore Ts'oe1052142006-10-21 21:46:47 -040013931 return ferror (f) || fclose (f) != 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013932
13933 ;
13934 return 0;
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013935}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013936_ACEOF
13937rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040013938if { (ac_try="$ac_link"
13939case "(($ac_try" in
13940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13941 *) ac_try_echo=$ac_try;;
13942esac
13943eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13944 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013945 ac_status=$?
13946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13947 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040013948 { (case "(($ac_try" in
13949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13950 *) ac_try_echo=$ac_try;;
13951esac
13952eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13953 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013954 ac_status=$?
13955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13956 (exit $ac_status); }; }; then
13957 ac_cv_sizeof_long_long=`cat conftest.val`
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013958else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013959 echo "$as_me: program exited with status $ac_status" >&5
13960echo "$as_me: failed program was:" >&5
13961sed 's/^/| /' conftest.$ac_ext >&5
13962
13963( exit $ac_status )
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013964if test "$ac_cv_type_long_long" = yes; then
13965 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013966See \`config.log' for more details." >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -040013967echo "$as_me: error: cannot compute sizeof (long long)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013968See \`config.log' for more details." >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040013969 { (exit 77); exit 77; }; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013970 else
13971 ac_cv_sizeof_long_long=0
13972 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013973fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013974rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013975fi
13976rm -f conftest.val
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013977fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013978{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
13979echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040013980
13981
13982
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013983cat >>confdefs.h <<_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013984#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013985_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013986
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013987
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013988SIZEOF_SHORT=$ac_cv_sizeof_short
13989SIZEOF_INT=$ac_cv_sizeof_int
13990SIZEOF_LONG=$ac_cv_sizeof_long
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013991SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
13992
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013993
13994
13995
Theodore Ts'oe1052142006-10-21 21:46:47 -040013996{ echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
13997echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013998if test "${ac_cv_c_bigendian+set}" = set; then
13999 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014000else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014001 # See if sys/param.h defines the BYTE_ORDER macro.
14002cat >conftest.$ac_ext <<_ACEOF
14003/* confdefs.h. */
14004_ACEOF
14005cat confdefs.h >>conftest.$ac_ext
14006cat >>conftest.$ac_ext <<_ACEOF
14007/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014008#include <sys/types.h>
14009#include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014010
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014011int
14012main ()
14013{
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014014#if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \
14015 && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN)
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014016 bogus endian macros
14017#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014018
14019 ;
14020 return 0;
14021}
14022_ACEOF
14023rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014024if { (ac_try="$ac_compile"
14025case "(($ac_try" in
14026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14027 *) ac_try_echo=$ac_try;;
14028esac
14029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14030 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014031 ac_status=$?
14032 grep -v '^ *+' conftest.er1 >conftest.err
14033 rm -f conftest.er1
14034 cat conftest.err >&5
14035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014036 (exit $ac_status); } && {
14037 test -z "$ac_c_werror_flag" ||
14038 test ! -s conftest.err
14039 } && test -s conftest.$ac_objext; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014040 # It does; now see whether it defined to BIG_ENDIAN or not.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014041cat >conftest.$ac_ext <<_ACEOF
14042/* confdefs.h. */
14043_ACEOF
14044cat confdefs.h >>conftest.$ac_ext
14045cat >>conftest.$ac_ext <<_ACEOF
14046/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014047#include <sys/types.h>
14048#include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014049
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014050int
14051main ()
14052{
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014053#if BYTE_ORDER != BIG_ENDIAN
14054 not big endian
14055#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014056
14057 ;
14058 return 0;
14059}
14060_ACEOF
14061rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014062if { (ac_try="$ac_compile"
14063case "(($ac_try" in
14064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14065 *) ac_try_echo=$ac_try;;
14066esac
14067eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14068 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014069 ac_status=$?
14070 grep -v '^ *+' conftest.er1 >conftest.err
14071 rm -f conftest.er1
14072 cat conftest.err >&5
14073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014074 (exit $ac_status); } && {
14075 test -z "$ac_c_werror_flag" ||
14076 test ! -s conftest.err
14077 } && test -s conftest.$ac_objext; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014078 ac_cv_c_bigendian=yes
14079else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014080 echo "$as_me: failed program was:" >&5
14081sed 's/^/| /' conftest.$ac_ext >&5
14082
Theodore Ts'oe1052142006-10-21 21:46:47 -040014083 ac_cv_c_bigendian=no
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014084fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014085
14086rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014087else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014088 echo "$as_me: failed program was:" >&5
14089sed 's/^/| /' conftest.$ac_ext >&5
14090
Theodore Ts'oe1052142006-10-21 21:46:47 -040014091 # It does not; compile a test program.
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014092if test "$cross_compiling" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014093 # try to guess the endianness by grepping values into an object file
14094 ac_cv_c_bigendian=unknown
14095 cat >conftest.$ac_ext <<_ACEOF
14096/* confdefs.h. */
14097_ACEOF
14098cat confdefs.h >>conftest.$ac_ext
14099cat >>conftest.$ac_ext <<_ACEOF
14100/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040014101short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
14102short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014103void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
Theodore Ts'oe1052142006-10-21 21:46:47 -040014104short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
14105short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014106void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
14107int
14108main ()
14109{
14110 _ascii (); _ebcdic ();
14111 ;
14112 return 0;
14113}
14114_ACEOF
14115rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014116if { (ac_try="$ac_compile"
14117case "(($ac_try" in
14118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14119 *) ac_try_echo=$ac_try;;
14120esac
14121eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14122 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014123 ac_status=$?
14124 grep -v '^ *+' conftest.er1 >conftest.err
14125 rm -f conftest.er1
14126 cat conftest.err >&5
14127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014128 (exit $ac_status); } && {
14129 test -z "$ac_c_werror_flag" ||
14130 test ! -s conftest.err
14131 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014132 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
14133 ac_cv_c_bigendian=yes
14134fi
14135if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
14136 if test "$ac_cv_c_bigendian" = unknown; then
14137 ac_cv_c_bigendian=no
14138 else
14139 # finding both strings is unlikely to happen, but who knows?
14140 ac_cv_c_bigendian=unknown
14141 fi
14142fi
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014143else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014144 echo "$as_me: failed program was:" >&5
14145sed 's/^/| /' conftest.$ac_ext >&5
14146
Theodore Ts'oe1052142006-10-21 21:46:47 -040014147
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014148fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014149
14150rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014151else
14152 cat >conftest.$ac_ext <<_ACEOF
14153/* confdefs.h. */
14154_ACEOF
14155cat confdefs.h >>conftest.$ac_ext
14156cat >>conftest.$ac_ext <<_ACEOF
14157/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040014158$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014159int
14160main ()
14161{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014162
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014163 /* Are we little or big endian? From Harbison&Steele. */
14164 union
14165 {
Theodore Ts'oe1052142006-10-21 21:46:47 -040014166 long int l;
14167 char c[sizeof (long int)];
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014168 } u;
14169 u.l = 1;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014170 return u.c[sizeof (long int) - 1] == 1;
14171
14172 ;
14173 return 0;
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014174}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014175_ACEOF
14176rm -f conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014177if { (ac_try="$ac_link"
14178case "(($ac_try" in
14179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14180 *) ac_try_echo=$ac_try;;
14181esac
14182eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14183 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014184 ac_status=$?
14185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014187 { (case "(($ac_try" in
14188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14189 *) ac_try_echo=$ac_try;;
14190esac
14191eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14192 (eval "$ac_try") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014193 ac_status=$?
14194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14195 (exit $ac_status); }; }; then
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014196 ac_cv_c_bigendian=no
14197else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014198 echo "$as_me: program exited with status $ac_status" >&5
14199echo "$as_me: failed program was:" >&5
14200sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o07a0db12003-07-05 14:50:24 -040014201
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014202( exit $ac_status )
14203ac_cv_c_bigendian=yes
14204fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014205rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014206fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014207
14208
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014209fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014210
14211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014212fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014213{ echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
14214echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014215case $ac_cv_c_bigendian in
14216 yes)
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014217
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014218cat >>confdefs.h <<\_ACEOF
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014219#define WORDS_BIGENDIAN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014220_ACEOF
14221 ;;
14222 no)
14223 ;;
14224 *)
14225 { { echo "$as_me:$LINENO: error: unknown endianness
14226presetting ac_cv_c_bigendian=no (or yes) will help" >&5
14227echo "$as_me: error: unknown endianness
14228presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
14229 { (exit 1); exit 1; }; } ;;
14230esac
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014231
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014232BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040014233ASM_TYPES_HEADER=./asm_types.h
14234
Theodore Ts'o488c75a2008-06-07 08:55:21 -040014235echo "/* These defines are needed for the public ext2fs.h header file */" \
14236 > public_config.h
14237if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
14238 uniq tmp_config.$$ >> public_config.h
14239else
14240 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
14241fi
14242if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
14243 uniq tmp_config.$$ >> public_config.h
14244else
14245 echo "#undef WORDS_BIGENDIAN" >> public_config.h
14246fi
14247rm -f tmp_config.$$
14248PUBLIC_CONFIG_HEADER=./public_config.h
14249
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000014250
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014251for ac_header in inttypes.h
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014252do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014253as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040014254if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14255 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14256echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14257if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014258 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014259fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014260ac_res=`eval echo '${'$as_ac_Header'}'`
14261 { echo "$as_me:$LINENO: result: $ac_res" >&5
14262echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014263else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014264 # Is the header compilable?
Theodore Ts'oe1052142006-10-21 21:46:47 -040014265{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
14266echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014267cat >conftest.$ac_ext <<_ACEOF
14268/* confdefs.h. */
14269_ACEOF
14270cat confdefs.h >>conftest.$ac_ext
14271cat >>conftest.$ac_ext <<_ACEOF
14272/* end confdefs.h. */
14273$ac_includes_default
14274#include <$ac_header>
14275_ACEOF
14276rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014277if { (ac_try="$ac_compile"
14278case "(($ac_try" in
14279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14280 *) ac_try_echo=$ac_try;;
14281esac
14282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14283 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014284 ac_status=$?
14285 grep -v '^ *+' conftest.er1 >conftest.err
14286 rm -f conftest.er1
14287 cat conftest.err >&5
14288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014289 (exit $ac_status); } && {
14290 test -z "$ac_c_werror_flag" ||
14291 test ! -s conftest.err
14292 } && test -s conftest.$ac_objext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014293 ac_header_compiler=yes
14294else
14295 echo "$as_me: failed program was:" >&5
14296sed 's/^/| /' conftest.$ac_ext >&5
14297
Theodore Ts'oe1052142006-10-21 21:46:47 -040014298 ac_header_compiler=no
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014299fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014300
14301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14302{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14303echo "${ECHO_T}$ac_header_compiler" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014304
14305# Is the header present?
Theodore Ts'oe1052142006-10-21 21:46:47 -040014306{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
14307echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014308cat >conftest.$ac_ext <<_ACEOF
14309/* confdefs.h. */
14310_ACEOF
14311cat confdefs.h >>conftest.$ac_ext
14312cat >>conftest.$ac_ext <<_ACEOF
14313/* end confdefs.h. */
14314#include <$ac_header>
14315_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040014316if { (ac_try="$ac_cpp conftest.$ac_ext"
14317case "(($ac_try" in
14318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14319 *) ac_try_echo=$ac_try;;
14320esac
14321eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14322 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014323 ac_status=$?
14324 grep -v '^ *+' conftest.er1 >conftest.err
14325 rm -f conftest.er1
14326 cat conftest.err >&5
14327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014328 (exit $ac_status); } >/dev/null && {
14329 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14330 test ! -s conftest.err
14331 }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014332 ac_header_preproc=yes
14333else
14334 echo "$as_me: failed program was:" >&5
14335sed 's/^/| /' conftest.$ac_ext >&5
14336
14337 ac_header_preproc=no
14338fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014339
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014340rm -f conftest.err conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014341{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14342echo "${ECHO_T}$ac_header_preproc" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014343
14344# So? What about this header?
14345case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14346 yes:no: )
14347 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14348echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14349 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14350echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14351 ac_header_preproc=yes
14352 ;;
14353 no:yes:* )
14354 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14355echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14356 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14357echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14358 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14359echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14360 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14361echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14362 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14363echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14364 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14365echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040014366
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014367 ;;
14368esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040014369{ echo "$as_me:$LINENO: checking for $ac_header" >&5
14370echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14371if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014372 echo $ECHO_N "(cached) $ECHO_C" >&6
14373else
14374 eval "$as_ac_Header=\$ac_header_preproc"
14375fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014376ac_res=`eval echo '${'$as_ac_Header'}'`
14377 { echo "$as_me:$LINENO: result: $ac_res" >&5
14378echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014379
14380fi
14381if test `eval echo '${'$as_ac_Header'}'` = yes; then
14382 cat >>confdefs.h <<_ACEOF
14383#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14384_ACEOF
14385
14386fi
14387
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014388done
14389
Theodore Ts'oe1052142006-10-21 21:46:47 -040014390{ echo "$as_me:$LINENO: checking for intptr_t" >&5
14391echo $ECHO_N "checking for intptr_t... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014392if test "${ac_cv_type_intptr_t+set}" = set; then
14393 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014394else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014395 cat >conftest.$ac_ext <<_ACEOF
14396/* confdefs.h. */
14397_ACEOF
14398cat confdefs.h >>conftest.$ac_ext
14399cat >>conftest.$ac_ext <<_ACEOF
14400/* end confdefs.h. */
14401$ac_includes_default
Theodore Ts'oe1052142006-10-21 21:46:47 -040014402typedef intptr_t ac__type_new_;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014403int
14404main ()
14405{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014406if ((ac__type_new_ *) 0)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014407 return 0;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014408if (sizeof (ac__type_new_))
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014409 return 0;
14410 ;
14411 return 0;
14412}
14413_ACEOF
14414rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014415if { (ac_try="$ac_compile"
14416case "(($ac_try" in
14417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14418 *) ac_try_echo=$ac_try;;
14419esac
14420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14421 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014422 ac_status=$?
14423 grep -v '^ *+' conftest.er1 >conftest.err
14424 rm -f conftest.er1
14425 cat conftest.err >&5
14426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014427 (exit $ac_status); } && {
14428 test -z "$ac_c_werror_flag" ||
14429 test ! -s conftest.err
14430 } && test -s conftest.$ac_objext; then
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014431 ac_cv_type_intptr_t=yes
14432else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014433 echo "$as_me: failed program was:" >&5
14434sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014435
Theodore Ts'oe1052142006-10-21 21:46:47 -040014436 ac_cv_type_intptr_t=no
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014437fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014438
14439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o0c193f82003-08-01 14:26:23 -040014440fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014441{ echo "$as_me:$LINENO: result: $ac_cv_type_intptr_t" >&5
14442echo "${ECHO_T}$ac_cv_type_intptr_t" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014443if test $ac_cv_type_intptr_t = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014444
14445cat >>confdefs.h <<_ACEOF
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050014446#define HAVE_INTPTR_T 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014447_ACEOF
14448
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050014449
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014450fi
14451
Theodore Ts'oe1052142006-10-21 21:46:47 -040014452{ echo "$as_me:$LINENO: checking whether struct stat has a st_flags field" >&5
14453echo $ECHO_N "checking whether struct stat has a st_flags field... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014454if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then
14455 echo $ECHO_N "(cached) $ECHO_C" >&6
14456else
14457 cat >conftest.$ac_ext <<_ACEOF
14458/* confdefs.h. */
14459_ACEOF
14460cat confdefs.h >>conftest.$ac_ext
14461cat >>conftest.$ac_ext <<_ACEOF
14462/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014463#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014464int
14465main ()
14466{
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014467struct stat stat; stat.st_flags = 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014468 ;
14469 return 0;
14470}
14471_ACEOF
14472rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014473if { (ac_try="$ac_compile"
14474case "(($ac_try" in
14475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14476 *) ac_try_echo=$ac_try;;
14477esac
14478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14479 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014480 ac_status=$?
14481 grep -v '^ *+' conftest.er1 >conftest.err
14482 rm -f conftest.er1
14483 cat conftest.err >&5
14484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014485 (exit $ac_status); } && {
14486 test -z "$ac_c_werror_flag" ||
14487 test ! -s conftest.err
14488 } && test -s conftest.$ac_objext; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014489 e2fsprogs_cv_struct_st_flags=yes
14490else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014491 echo "$as_me: failed program was:" >&5
14492sed 's/^/| /' conftest.$ac_ext >&5
14493
Theodore Ts'oe1052142006-10-21 21:46:47 -040014494 e2fsprogs_cv_struct_st_flags=no
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014495fi
14496
Theodore Ts'oe1052142006-10-21 21:46:47 -040014497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14498fi
14499
14500{ echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags" >&5
14501echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014502if test "$e2fsprogs_cv_struct_st_flags" = yes; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040014503 { echo "$as_me:$LINENO: checking whether st_flags field is useful" >&5
14504echo $ECHO_N "checking whether st_flags field is useful... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014505 if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then
14506 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014507else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014508 cat >conftest.$ac_ext <<_ACEOF
14509/* confdefs.h. */
14510_ACEOF
14511cat confdefs.h >>conftest.$ac_ext
14512cat >>conftest.$ac_ext <<_ACEOF
14513/* end confdefs.h. */
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014514#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014515int
14516main ()
14517{
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014518struct stat stat; stat.st_flags |= UF_IMMUTABLE;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014519 ;
14520 return 0;
14521}
14522_ACEOF
14523rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014524if { (ac_try="$ac_compile"
14525case "(($ac_try" in
14526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14527 *) ac_try_echo=$ac_try;;
14528esac
14529eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14530 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014531 ac_status=$?
14532 grep -v '^ *+' conftest.er1 >conftest.err
14533 rm -f conftest.er1
14534 cat conftest.err >&5
14535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014536 (exit $ac_status); } && {
14537 test -z "$ac_c_werror_flag" ||
14538 test ! -s conftest.err
14539 } && test -s conftest.$ac_objext; then
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014540 e2fsprogs_cv_struct_st_flags_immut=yes
14541else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014542 echo "$as_me: failed program was:" >&5
14543sed 's/^/| /' conftest.$ac_ext >&5
14544
Theodore Ts'oe1052142006-10-21 21:46:47 -040014545 e2fsprogs_cv_struct_st_flags_immut=no
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014546fi
14547
Theodore Ts'oe1052142006-10-21 21:46:47 -040014548rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14549fi
14550
14551 { echo "$as_me:$LINENO: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
14552echo "${ECHO_T}$e2fsprogs_cv_struct_st_flags_immut" >&6; }
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014553 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014554 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014555#define HAVE_STAT_FLAGS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014556_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014557
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000014558 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014559fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014560{ echo "$as_me:$LINENO: checking for struct sockaddr.sa_len" >&5
14561echo $ECHO_N "checking for struct sockaddr.sa_len... $ECHO_C" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014562if test "${ac_cv_member_struct_sockaddr_sa_len+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014563 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014564else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014565 cat >conftest.$ac_ext <<_ACEOF
14566/* confdefs.h. */
14567_ACEOF
14568cat confdefs.h >>conftest.$ac_ext
14569cat >>conftest.$ac_ext <<_ACEOF
14570/* end confdefs.h. */
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014571#include <sys/types.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014572 #include <sys/socket.h>
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014573
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014574int
14575main ()
14576{
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014577static struct sockaddr ac_aggr;
14578if (ac_aggr.sa_len)
14579return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014580 ;
14581 return 0;
14582}
14583_ACEOF
14584rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014585if { (ac_try="$ac_compile"
14586case "(($ac_try" in
14587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14588 *) ac_try_echo=$ac_try;;
14589esac
14590eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14591 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014592 ac_status=$?
14593 grep -v '^ *+' conftest.er1 >conftest.err
14594 rm -f conftest.er1
14595 cat conftest.err >&5
14596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014597 (exit $ac_status); } && {
14598 test -z "$ac_c_werror_flag" ||
14599 test ! -s conftest.err
14600 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014601 ac_cv_member_struct_sockaddr_sa_len=yes
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014602else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014603 echo "$as_me: failed program was:" >&5
14604sed 's/^/| /' conftest.$ac_ext >&5
14605
Theodore Ts'oe1052142006-10-21 21:46:47 -040014606 cat >conftest.$ac_ext <<_ACEOF
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014607/* confdefs.h. */
14608_ACEOF
14609cat confdefs.h >>conftest.$ac_ext
14610cat >>conftest.$ac_ext <<_ACEOF
14611/* end confdefs.h. */
14612#include <sys/types.h>
14613 #include <sys/socket.h>
14614
14615int
14616main ()
14617{
14618static struct sockaddr ac_aggr;
14619if (sizeof ac_aggr.sa_len)
14620return 0;
14621 ;
14622 return 0;
14623}
14624_ACEOF
14625rm -f conftest.$ac_objext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014626if { (ac_try="$ac_compile"
14627case "(($ac_try" in
14628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14629 *) ac_try_echo=$ac_try;;
14630esac
14631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14632 (eval "$ac_compile") 2>conftest.er1
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014633 ac_status=$?
14634 grep -v '^ *+' conftest.er1 >conftest.err
14635 rm -f conftest.er1
14636 cat conftest.err >&5
14637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014638 (exit $ac_status); } && {
14639 test -z "$ac_c_werror_flag" ||
14640 test ! -s conftest.err
14641 } && test -s conftest.$ac_objext; then
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014642 ac_cv_member_struct_sockaddr_sa_len=yes
14643else
14644 echo "$as_me: failed program was:" >&5
14645sed 's/^/| /' conftest.$ac_ext >&5
14646
Theodore Ts'oe1052142006-10-21 21:46:47 -040014647 ac_cv_member_struct_sockaddr_sa_len=no
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014648fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014649
14650rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014651fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014652
14653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014654fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014655{ echo "$as_me:$LINENO: result: $ac_cv_member_struct_sockaddr_sa_len" >&5
14656echo "${ECHO_T}$ac_cv_member_struct_sockaddr_sa_len" >&6; }
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014657if test $ac_cv_member_struct_sockaddr_sa_len = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014658
14659cat >>confdefs.h <<_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014660#define HAVE_SA_LEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014661_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050014662
14663fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
Theodore Ts'o6c65d252005-01-19 12:59:48 -050014683
Theodore Ts'o762c7c62005-04-06 14:44:16 -040014684
14685
Andreas Dilger9b7d8112005-07-09 22:06:59 -050014686
Theodore Ts'oae2868a2006-10-22 00:18:49 -040014687
Theodore Ts'o106ad962007-04-04 21:26:37 -040014688
14689
14690
Theodore Ts'o740837d2007-12-16 17:21:38 -050014691
14692
Theodore Ts'o261cd392008-01-21 13:45:00 -050014693
Theodore Ts'oc13ab4f2008-07-13 16:17:57 -040014694
14695
14696for ac_func in chflags getrusage llseek lseek64 open64 fstat64 ftruncate64 getmntinfo strtoull strcasecmp srandom jrand48 fchown mallinfo fdatasync strnlen strptime strdup sysconf pathconf posix_memalign memalign valloc __secure_getenv prctl mmap utime setresuid setresgid usleep nanosleep
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014697do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014698as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'oe1052142006-10-21 21:46:47 -040014699{ echo "$as_me:$LINENO: checking for $ac_func" >&5
14700echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14701if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014702 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014703else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014704 cat >conftest.$ac_ext <<_ACEOF
14705/* confdefs.h. */
14706_ACEOF
14707cat confdefs.h >>conftest.$ac_ext
14708cat >>conftest.$ac_ext <<_ACEOF
14709/* end confdefs.h. */
14710/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14711 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14712#define $ac_func innocuous_$ac_func
14713
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014714/* System header to define __stub macros and hopefully few prototypes,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014715 which can conflict with char $ac_func (); below.
14716 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14717 <limits.h> exists even on freestanding compilers. */
14718
14719#ifdef __STDC__
14720# include <limits.h>
14721#else
14722# include <assert.h>
14723#endif
14724
14725#undef $ac_func
14726
Theodore Ts'oe1052142006-10-21 21:46:47 -040014727/* Override any GCC internal prototype to avoid an error.
14728 Use char because int might match the return type of a GCC
14729 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014730#ifdef __cplusplus
14731extern "C"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014732#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014733char $ac_func ();
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014734/* The GNU C library defines this for functions which it implements
14735 to always fail with ENOSYS. Some functions are actually named
14736 something starting with __ and the normal name is an alias. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040014737#if defined __stub_$ac_func || defined __stub___$ac_func
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014738choke me
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014739#endif
14740
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014741int
14742main ()
14743{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014744return $ac_func ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014745 ;
14746 return 0;
14747}
14748_ACEOF
14749rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014750if { (ac_try="$ac_link"
14751case "(($ac_try" in
14752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14753 *) ac_try_echo=$ac_try;;
14754esac
14755eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14756 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014757 ac_status=$?
14758 grep -v '^ *+' conftest.er1 >conftest.err
14759 rm -f conftest.er1
14760 cat conftest.err >&5
14761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014762 (exit $ac_status); } && {
14763 test -z "$ac_c_werror_flag" ||
14764 test ! -s conftest.err
14765 } && test -s conftest$ac_exeext &&
14766 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014767 eval "$as_ac_var=yes"
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014768else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014769 echo "$as_me: failed program was:" >&5
14770sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o21c84b71997-04-29 16:15:03 +000014771
Theodore Ts'oe1052142006-10-21 21:46:47 -040014772 eval "$as_ac_var=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014773fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014774
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014775rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014776 conftest$ac_exeext conftest.$ac_ext
14777fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014778ac_res=`eval echo '${'$as_ac_var'}'`
14779 { echo "$as_me:$LINENO: result: $ac_res" >&5
14780echo "${ECHO_T}$ac_res" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014781if test `eval echo '${'$as_ac_var'}'` = yes; then
14782 cat >>confdefs.h <<_ACEOF
14783#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14784_ACEOF
14785
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014786fi
14787done
14788
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014789SOCKET_LIB=''
Theodore Ts'oe1052142006-10-21 21:46:47 -040014790{ echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
14791echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014792if test "${ac_cv_lib_socket_socket+set}" = set; then
14793 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014794else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014795 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014796LIBS="-lsocket $LIBS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014797cat >conftest.$ac_ext <<_ACEOF
14798/* confdefs.h. */
14799_ACEOF
14800cat confdefs.h >>conftest.$ac_ext
14801cat >>conftest.$ac_ext <<_ACEOF
14802/* end confdefs.h. */
14803
Theodore Ts'oe1052142006-10-21 21:46:47 -040014804/* Override any GCC internal prototype to avoid an error.
14805 Use char because int might match the return type of a GCC
14806 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014807#ifdef __cplusplus
14808extern "C"
14809#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014810char socket ();
14811int
14812main ()
14813{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014814return socket ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014815 ;
14816 return 0;
14817}
14818_ACEOF
14819rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014820if { (ac_try="$ac_link"
14821case "(($ac_try" in
14822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14823 *) ac_try_echo=$ac_try;;
14824esac
14825eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14826 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014827 ac_status=$?
14828 grep -v '^ *+' conftest.er1 >conftest.err
14829 rm -f conftest.er1
14830 cat conftest.err >&5
14831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014832 (exit $ac_status); } && {
14833 test -z "$ac_c_werror_flag" ||
14834 test ! -s conftest.err
14835 } && test -s conftest$ac_exeext &&
14836 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014837 ac_cv_lib_socket_socket=yes
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014838else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014839 echo "$as_me: failed program was:" >&5
14840sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014841
Theodore Ts'oe1052142006-10-21 21:46:47 -040014842 ac_cv_lib_socket_socket=no
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014843fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014844
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014845rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014846 conftest$ac_exeext conftest.$ac_ext
14847LIBS=$ac_check_lib_save_LIBS
14848fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014849{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
14850echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014851if test $ac_cv_lib_socket_socket = yes; then
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014852 SOCKET_LIB=-lsocket
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014853fi
14854
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014855
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014856DLOPEN_LIB=''
Theodore Ts'oe1052142006-10-21 21:46:47 -040014857{ echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14858echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014859if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14860 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014861else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014862 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014863LIBS="-ldl $LIBS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014864cat >conftest.$ac_ext <<_ACEOF
14865/* confdefs.h. */
14866_ACEOF
14867cat confdefs.h >>conftest.$ac_ext
14868cat >>conftest.$ac_ext <<_ACEOF
14869/* end confdefs.h. */
14870
Theodore Ts'oe1052142006-10-21 21:46:47 -040014871/* Override any GCC internal prototype to avoid an error.
14872 Use char because int might match the return type of a GCC
14873 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014874#ifdef __cplusplus
14875extern "C"
14876#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014877char dlopen ();
14878int
14879main ()
14880{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014881return dlopen ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014882 ;
14883 return 0;
14884}
14885_ACEOF
14886rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040014887if { (ac_try="$ac_link"
14888case "(($ac_try" in
14889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14890 *) ac_try_echo=$ac_try;;
14891esac
14892eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14893 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014894 ac_status=$?
14895 grep -v '^ *+' conftest.er1 >conftest.err
14896 rm -f conftest.er1
14897 cat conftest.err >&5
14898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014899 (exit $ac_status); } && {
14900 test -z "$ac_c_werror_flag" ||
14901 test ! -s conftest.err
14902 } && test -s conftest$ac_exeext &&
14903 $as_test_x conftest$ac_exeext; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014904 ac_cv_lib_dl_dlopen=yes
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014905else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014906 echo "$as_me: failed program was:" >&5
14907sed 's/^/| /' conftest.$ac_ext >&5
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014908
Theodore Ts'oe1052142006-10-21 21:46:47 -040014909 ac_cv_lib_dl_dlopen=no
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014910fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014911
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014912rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014913 conftest$ac_exeext conftest.$ac_ext
14914LIBS=$ac_check_lib_save_LIBS
14915fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014916{ echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14917echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014918if test $ac_cv_lib_dl_dlopen = yes; then
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014919 DLOPEN_LIB=-ldl
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014920cat >>confdefs.h <<\_ACEOF
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014921#define HAVE_DLOPEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014922_ACEOF
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014923
Theodore Ts'obbac86b2003-03-16 06:27:22 -050014924fi
14925
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014926
Theodore Ts'oe1052142006-10-21 21:46:47 -040014927{ echo "$as_me:$LINENO: checking for optreset" >&5
14928echo $ECHO_N "checking for optreset... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014929if test "${ac_cv_have_optreset+set}" = set; then
14930 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014931else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014932 cat >conftest.$ac_ext <<_ACEOF
14933/* confdefs.h. */
14934_ACEOF
14935cat confdefs.h >>conftest.$ac_ext
14936cat >>conftest.$ac_ext <<_ACEOF
14937/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014938#include <unistd.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014939
14940_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014941if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014942 $EGREP "optreset" >/dev/null 2>&1; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014943 ac_cv_have_optreset=yes
14944else
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014945 ac_cv_have_optreset=no
14946fi
14947rm -f conftest*
14948
14949fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014950{ echo "$as_me:$LINENO: result: $ac_cv_have_optreset" >&5
14951echo "${ECHO_T}$ac_cv_have_optreset" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014952if test $ac_cv_have_optreset = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014953 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014954#define HAVE_OPTRESET 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014955_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014956
14957fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014958{ echo "$as_me:$LINENO: checking for unified diff option" >&5
14959echo $ECHO_N "checking for unified diff option... $ECHO_C" >&6; }
Theodore Ts'o27f991b2008-04-01 20:32:55 -040014960if diff -u $0 $0 > /dev/null 2>&1 ; then
Theodore Ts'oe54635d2006-08-06 14:33:13 -040014961 UNI_DIFF_OPTS=-u
14962else
14963 UNI_DIFF_OPTS=-c
14964fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014965{ echo "$as_me:$LINENO: result: $UNI_DIFF_OPTS" >&5
14966echo "${ECHO_T}$UNI_DIFF_OPTS" >&6; }
Theodore Ts'oe54635d2006-08-06 14:33:13 -040014967
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000014968case "$host_os" in
14969linux*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014970 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014971#define HAVE_EXT2_IOCTLS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014972_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014973
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000014974 ;;
14975esac
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040014976LINUX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040014977CYGWIN_CMT="#"
14978UNIX_CMT=
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040014979case "$host_os" in
14980linux*)
14981 LINUX_CMT=
14982 ;;
Theodore Ts'offf45482003-04-13 00:44:19 -040014983cygwin)
14984 CYGWIN_CMT=
14985 UNIX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040014986 ;;
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040014987esac
14988
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014989
14990
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014991case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014992linux* | gnu* | k*bsd*-gnu)
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000014993 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
14994 root_prefix="";
Theodore Ts'o02d04db2008-08-22 10:52:42 -040014995 { echo "$as_me:$LINENO: result: On $host_os systems, root_prefix defaults to ''" >&5
14996echo "${ECHO_T}On $host_os systems, root_prefix defaults to ''" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000014997 fi
14998 ;;
14999esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015000case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015001linux* | gnu* | k*bsd*-gnu)
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000015002 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015003 prefix="/usr";
Theodore Ts'o02d04db2008-08-22 10:52:42 -040015004 { echo "$as_me:$LINENO: result: On $host_os systems, prefix defaults to /usr" >&5
15005echo "${ECHO_T}On $host_os systems, prefix defaults to /usr" >&6; }
Theodore Ts'obff61a72002-05-21 22:21:38 -040015006 if test "$mandir" = '${prefix}/man' ; then
Theodore Ts'o02d04db2008-08-22 10:52:42 -040015007 { echo "$as_me:$LINENO: result: ...and mandir defaults to /usr/share/man" >&5
15008echo "${ECHO_T}...and mandir defaults to /usr/share/man" >&6; }
Theodore Ts'obff61a72002-05-21 22:21:38 -040015009 mandir=/usr/share/man
15010 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015011 fi
15012;;
15013esac
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015014if test "$root_prefix" = NONE ; then
Theodore Ts'offe19911998-04-08 06:05:49 +000015015 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015016 root_prefix="$ac_default_prefix"
15017 else
15018 root_prefix="$prefix"
15019 fi
Theodore Ts'ob5ffead2002-05-11 19:17:00 -040015020 root_bindir=$bindir
15021 root_sbindir=$sbindir
15022 root_libdir=$libdir
15023 root_sysconfdir=$sysconfdir
15024else
15025 root_bindir='${root_prefix}/bin'
15026 root_sbindir='${root_prefix}/sbin'
15027 root_libdir='${root_prefix}/lib'
15028 root_sysconfdir='${root_prefix}/etc'
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015029fi
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050015030if test "$bindir" != '${exec_prefix}/bin'; then
15031 root_bindir=$bindir
Theodore Ts'o02d04db2008-08-22 10:52:42 -040015032 { echo "$as_me:$LINENO: result: Setting root_bindir to $root_bindir" >&5
15033echo "${ECHO_T}Setting root_bindir to $root_bindir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050015034fi
15035if test "$sbindir" != '${exec_prefix}/sbin'; then
15036 root_sbindir=$sbindir
Theodore Ts'o02d04db2008-08-22 10:52:42 -040015037 { echo "$as_me:$LINENO: result: Setting root_sbindir to $root_sbindir" >&5
15038echo "${ECHO_T}Setting root_sbindir to $root_sbindir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050015039fi
15040if test "$libdir" != '${exec_prefix}/lib'; then
15041 root_libdir=$libdir
Theodore Ts'o02d04db2008-08-22 10:52:42 -040015042 { echo "$as_me:$LINENO: result: Setting root_libdir to $root_libdir" >&5
15043echo "${ECHO_T}Setting root_libdir to $root_libdir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050015044fi
15045if test "$sysconfdir" != '${prefix}/etc'; then
15046 root_sysconfdir=$sysconfdir
Theodore Ts'o02d04db2008-08-22 10:52:42 -040015047 { echo "$as_me:$LINENO: result: Setting root_sysconfdir to $root_sysconfdir" >&5
15048echo "${ECHO_T}Setting root_sysconfdir to $root_sysconfdir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050015049fi
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000015050
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015051
15052
15053
15054
Theodore Ts'oe1052142006-10-21 21:46:47 -040015055{ echo "$as_me:$LINENO: checking whether linker accepts -static" >&5
15056echo $ECHO_N "checking whether linker accepts -static... $ECHO_C" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015057if test "${ac_cv_e2fsprogs_use_static+set}" = set; then
15058 echo $ECHO_N "(cached) $ECHO_C" >&6
Theodore Ts'oae851481997-04-29 18:13:24 +000015059else
15060 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015061cat >conftest.$ac_ext <<_ACEOF
15062/* confdefs.h. */
15063_ACEOF
15064cat confdefs.h >>conftest.$ac_ext
15065cat >>conftest.$ac_ext <<_ACEOF
15066/* end confdefs.h. */
Theodore Ts'oae851481997-04-29 18:13:24 +000015067#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015068int
15069main ()
15070{
Theodore Ts'oae851481997-04-29 18:13:24 +000015071fflush(stdout);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015072 ;
15073 return 0;
15074}
15075_ACEOF
15076rm -f conftest.$ac_objext conftest$ac_exeext
Theodore Ts'oe1052142006-10-21 21:46:47 -040015077if { (ac_try="$ac_link"
15078case "(($ac_try" in
15079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15080 *) ac_try_echo=$ac_try;;
15081esac
15082eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15083 (eval "$ac_link") 2>conftest.er1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015084 ac_status=$?
15085 grep -v '^ *+' conftest.er1 >conftest.err
15086 rm -f conftest.er1
15087 cat conftest.err >&5
15088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015089 (exit $ac_status); } && {
15090 test -z "$ac_c_werror_flag" ||
15091 test ! -s conftest.err
15092 } && test -s conftest$ac_exeext &&
15093 $as_test_x conftest$ac_exeext; then
Theodore Ts'oae851481997-04-29 18:13:24 +000015094 ac_cv_e2fsprogs_use_static=yes
15095else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015096 echo "$as_me: failed program was:" >&5
15097sed 's/^/| /' conftest.$ac_ext >&5
15098
Theodore Ts'oe1052142006-10-21 21:46:47 -040015099 ac_cv_e2fsprogs_use_static=no
Theodore Ts'oae851481997-04-29 18:13:24 +000015100fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015101
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015102rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015103 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oae851481997-04-29 18:13:24 +000015104LDFLAGS=$SAVE_LDFLAGS
15105fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015106
Theodore Ts'odefde781999-01-04 07:39:19 +000015107case "$host_os" in
15108solaris2.*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015109 ac_cv_e2fsprogs_use_static=no
Theodore Ts'odefde781999-01-04 07:39:19 +000015110;;
15111esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040015112{ echo "$as_me:$LINENO: result: $ac_cv_e2fsprogs_use_static" >&5
15113echo "${ECHO_T}$ac_cv_e2fsprogs_use_static" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +000015114LDFLAG_STATIC=
Theodore Ts'oae851481997-04-29 18:13:24 +000015115if test $ac_cv_e2fsprogs_use_static = yes; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015116 LDFLAG_STATIC=-static
Theodore Ts'oae851481997-04-29 18:13:24 +000015117fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015118
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015119case "$host_os" in
15120darwin*)
Theodore Ts'o02d04db2008-08-22 10:52:42 -040015121 { echo "$as_me:$LINENO: result: Using Apple Darwin / GNU libintl workaround" >&5
15122echo "${ECHO_T}Using Apple Darwin / GNU libintl workaround" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015123 cat >>confdefs.h <<\_ACEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015124#define _INTL_REDIRECT_MACROS 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015125_ACEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015126
15127 ;;
15128esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015129SS_DIR=`cd ${srcdir}/lib/ss; pwd`
15130ET_DIR=`cd ${srcdir}/lib/et; pwd`
15131
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015132
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015133if test "$cross_compiling" = yes ; then
15134 DO_TEST_SUITE=
15135else
15136 DO_TEST_SUITE=check
15137fi
15138
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040015139INTL_FLAGS=
15140if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
15141 INTL_FLAGS='-I$(top_builddir)/intl -I$(top_srcdir)/intl'
15142fi
15143
Theodore Ts'odd947da2005-11-09 18:37:07 -040015144if test $cross_compiling = no; then
15145 BUILD_CFLAGS="$CFLAGS"
15146 BUILD_LDFLAGS="$LDFLAGS"
15147else
15148 BUILD_CFLAGS=
15149 BUILD_LDFLAGS=
15150fi
15151
15152
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015153test -d lib || mkdir lib
15154test -d include || mkdir include
15155test -d include/linux || mkdir include/linux
Theodore Ts'odefde781999-01-04 07:39:19 +000015156test -d include/asm || mkdir include/asm
Theodore Ts'obff0cc92003-03-23 01:37:53 -050015157for i in MCONFIG Makefile e2fsprogs.spec \
15158 util/Makefile util/subst.conf util/gen-tarball \
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040015159 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
15160 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050015161 lib/uuid/Makefile lib/uuid/uuid_types.h \
15162 lib/blkid/Makefile lib/blkid/blkid_types.h \
Theodore Ts'oe6441862005-01-26 12:59:25 -050015163 lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \
15164 lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \
Theodore Ts'o921f4ad2004-11-19 17:25:27 -050015165 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050015166 debugfs/Makefile tests/Makefile tests/progs/Makefile \
15167 resize/Makefile doc/Makefile intl/Makefile po/Makefile.in ; do
15168 if test -d `dirname ${srcdir}/$i` ; then
15169 outlist="$outlist $i"
15170 fi
15171done
Theodore Ts'oe1052142006-10-21 21:46:47 -040015172ac_config_files="$ac_config_files $outlist"
15173
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015174cat >confcache <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015175# This file is a shell script that caches the results of configure
15176# tests run on this system so they can be shared between configure
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015177# scripts and configure runs, see configure's option --config-cache.
15178# It is not useful on other systems. If it contains results you don't
15179# want to keep, you may remove or edit it.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015180#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015181# config.status only pays attention to the cache file if you give it
15182# the --recheck option to rerun configure.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015183#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015184# `ac_cv_env_foo' variables (set or unset) will be overridden when
15185# loading this file, other *unset* `ac_cv_foo' will be assigned the
15186# following values.
15187
15188_ACEOF
15189
Theodore Ts'o21c84b71997-04-29 16:15:03 +000015190# The following way of writing the cache mishandles newlines in values,
15191# but we know of no workaround that is simple, portable, and efficient.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015192# So, we kill variables containing newlines.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015193# Ultrix sh set writes to stderr and can't be redirected directly,
15194# and sets the high bit in the cache file unless we assign to the vars.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015195(
15196 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15197 eval ac_val=\$$ac_var
15198 case $ac_val in #(
15199 *${as_nl}*)
15200 case $ac_var in #(
15201 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
15202echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
15203 esac
15204 case $ac_var in #(
15205 _ | IFS | as_nl) ;; #(
15206 *) $as_unset $ac_var ;;
15207 esac ;;
15208 esac
15209 done
15210
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015211 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -040015212 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15213 *${as_nl}ac_space=\ *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015214 # `set' does not quote correctly, so add quotes (double-quote
15215 # substitution turns \\\\ into \\, and sed turns \\ into \).
15216 sed -n \
15217 "s/'/'\\\\''/g;
15218 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Theodore Ts'oe1052142006-10-21 21:46:47 -040015219 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015220 *)
15221 # `set' quotes correctly as required by POSIX, so do not add quotes.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015222 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015223 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015224 esac |
15225 sort
15226) |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015227 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -040015228 /^ac_cv_env_/b end
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015229 t clear
Theodore Ts'oe1052142006-10-21 21:46:47 -040015230 :clear
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015231 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15232 t end
Theodore Ts'oe1052142006-10-21 21:46:47 -040015233 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15234 :end' >>confcache
15235if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15236 if test -w "$cache_file"; then
15237 test "x$cache_file" != "x/dev/null" &&
15238 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
15239echo "$as_me: updating cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015240 cat confcache >$cache_file
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015241 else
Theodore Ts'oe1052142006-10-21 21:46:47 -040015242 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
15243echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015244 fi
15245fi
15246rm -f confcache
15247
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015248test "x$prefix" = xNONE && prefix=$ac_default_prefix
15249# Let make expand exec_prefix.
15250test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15251
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015252# Transform confdefs.h into DEFS.
15253# Protect against shell expansion while executing Makefile rules.
15254# Protect against Makefile macro expansion.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015255#
15256# If the first sed substitution is executed (which looks for macros that
Theodore Ts'oe1052142006-10-21 21:46:47 -040015257# take arguments), then branch to the quote section. Otherwise,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015258# look for a macro that doesn't take arguments.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015259ac_script='
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015260t clear
Theodore Ts'oe1052142006-10-21 21:46:47 -040015261:clear
15262s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015263t quote
Theodore Ts'oe1052142006-10-21 21:46:47 -040015264s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015265t quote
Theodore Ts'oe1052142006-10-21 21:46:47 -040015266b any
15267:quote
15268s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
15269s/\[/\\&/g
15270s/\]/\\&/g
15271s/\$/$$/g
15272H
15273:any
15274${
15275 g
15276 s/^\n//
15277 s/\n/ /g
15278 p
15279}
15280'
15281DEFS=`sed -n "$ac_script" confdefs.h`
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015282
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015283
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015284ac_libobjs=
15285ac_ltlibobjs=
15286for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15287 # 1. Remove the extension, and $U if already installed.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015288 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15289 ac_i=`echo "$ac_i" | sed "$ac_script"`
15290 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15291 # will be set to the directory where LIBOBJS objects are built.
15292 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15293 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015294done
15295LIBOBJS=$ac_libobjs
15296
15297LTLIBOBJS=$ac_ltlibobjs
15298
15299
15300
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015301: ${CONFIG_STATUS=./config.status}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015302ac_clean_files_save=$ac_clean_files
15303ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15304{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
15305echo "$as_me: creating $CONFIG_STATUS" >&6;}
15306cat >$CONFIG_STATUS <<_ACEOF
15307#! $SHELL
15308# Generated by $as_me.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015309# Run this file to recreate the current configuration.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015310# Compiler output produced by configure, useful for debugging
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015311# configure, is in config.log if it exists.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015312
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015313debug=false
15314ac_cs_recheck=false
15315ac_cs_silent=false
15316SHELL=\${CONFIG_SHELL-$SHELL}
15317_ACEOF
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015318
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015319cat >>$CONFIG_STATUS <<\_ACEOF
15320## --------------------- ##
15321## M4sh Initialization. ##
15322## --------------------- ##
Theodore Ts'o07a0db12003-07-05 14:50:24 -040015323
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015324# Be more Bourne compatible
15325DUALCASE=1; export DUALCASE # for MKS sh
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015326if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15327 emulate sh
15328 NULLCMD=:
15329 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
15330 # is contrary to our usage. Disable this feature.
15331 alias -g '${1+"$@"}'='"$@"'
Theodore Ts'oe1052142006-10-21 21:46:47 -040015332 setopt NO_GLOB_SUBST
15333else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015334 case `(set -o) 2>/dev/null` in
15335 *posix*) set -o posix ;;
15336esac
15337
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015338fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015339
15340
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015341
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015342
Theodore Ts'oe1052142006-10-21 21:46:47 -040015343# PATH needs CR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015344# Avoid depending upon Character Ranges.
15345as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15346as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15347as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15348as_cr_digits='0123456789'
15349as_cr_alnum=$as_cr_Letters$as_cr_digits
15350
15351# The user is always right.
15352if test "${PATH_SEPARATOR+set}" != set; then
15353 echo "#! /bin/sh" >conf$$.sh
15354 echo "exit 0" >>conf$$.sh
15355 chmod +x conf$$.sh
15356 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
15357 PATH_SEPARATOR=';'
15358 else
15359 PATH_SEPARATOR=:
15360 fi
15361 rm -f conf$$.sh
15362fi
15363
Theodore Ts'oe1052142006-10-21 21:46:47 -040015364# Support unset when possible.
15365if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
15366 as_unset=unset
15367else
15368 as_unset=false
15369fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015370
Theodore Ts'oe1052142006-10-21 21:46:47 -040015371
15372# IFS
15373# We need space, tab and new line, in precisely that order. Quoting is
15374# there to prevent editors from complaining about space-tab.
15375# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15376# splitting by setting IFS to empty value.)
15377as_nl='
15378'
15379IFS=" "" $as_nl"
15380
15381# Find who we are. Look in the path if we contain no directory separator.
15382case $0 in
15383 *[\\/]* ) as_myself=$0 ;;
15384 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015385for as_dir in $PATH
15386do
15387 IFS=$as_save_IFS
15388 test -z "$as_dir" && as_dir=.
15389 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15390done
Theodore Ts'oe1052142006-10-21 21:46:47 -040015391IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015392
Theodore Ts'oe1052142006-10-21 21:46:47 -040015393 ;;
15394esac
15395# We did not find ourselves, most probably we were run as `sh COMMAND'
15396# in which case we are not to be found in the path.
15397if test "x$as_myself" = x; then
15398 as_myself=$0
15399fi
15400if test ! -f "$as_myself"; then
15401 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15402 { (exit 1); exit 1; }
15403fi
15404
15405# Work around bugs in pre-3.0 UWIN ksh.
15406for as_var in ENV MAIL MAILPATH
15407do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15408done
15409PS1='$ '
15410PS2='> '
15411PS4='+ '
15412
15413# NLS nuisances.
15414for as_var in \
15415 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
15416 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
15417 LC_TELEPHONE LC_TIME
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015418do
Theodore Ts'oe1052142006-10-21 21:46:47 -040015419 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
15420 eval $as_var=C; export $as_var
15421 else
15422 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
15423 fi
15424done
15425
15426# Required to use basename.
15427if expr a : '\(a\)' >/dev/null 2>&1 &&
15428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15429 as_expr=expr
15430else
15431 as_expr=false
15432fi
15433
15434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15435 as_basename=basename
15436else
15437 as_basename=false
15438fi
15439
15440
15441# Name of the executable.
15442as_me=`$as_basename -- "$0" ||
15443$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15444 X"$0" : 'X\(//\)$' \| \
15445 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15446echo X/"$0" |
15447 sed '/^.*\/\([^/][^/]*\)\/*$/{
15448 s//\1/
15449 q
15450 }
15451 /^X\/\(\/\/\)$/{
15452 s//\1/
15453 q
15454 }
15455 /^X\/\(\/\).*/{
15456 s//\1/
15457 q
15458 }
15459 s/.*/./; q'`
15460
15461# CDPATH.
15462$as_unset CDPATH
15463
15464
15465
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015466 as_lineno_1=$LINENO
15467 as_lineno_2=$LINENO
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015468 test "x$as_lineno_1" != "x$as_lineno_2" &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040015469 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015470
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015471 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
15472 # uniformly replaced by the line number. The first 'sed' inserts a
Theodore Ts'oe1052142006-10-21 21:46:47 -040015473 # line-number line after each line using $LINENO; the second 'sed'
15474 # does the real work. The second script uses 'N' to pair each
15475 # line-number line with the line containing $LINENO, and appends
15476 # trailing '-' during substitution so that $LINENO is not a special
15477 # case at line end.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015478 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
Theodore Ts'oe1052142006-10-21 21:46:47 -040015479 # scripts with optimization help from Paolo Bonzini. Blame Lee
15480 # E. McMahon (1931-1989) for sed's syntax. :-)
15481 sed -n '
15482 p
15483 /[$]LINENO/=
15484 ' <$as_myself |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015485 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -040015486 s/[$]LINENO.*/&-/
15487 t lineno
15488 b
15489 :lineno
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015490 N
Theodore Ts'oe1052142006-10-21 21:46:47 -040015491 :loop
15492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015493 t loop
Theodore Ts'oe1052142006-10-21 21:46:47 -040015494 s/-\n.*//
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015495 ' >$as_me.lineno &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040015496 chmod +x "$as_me.lineno" ||
15497 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015498 { (exit 1); exit 1; }; }
15499
15500 # Don't try to exec as it changes $[0], causing all sort of problems
15501 # (the dirname of $[0] is not the place where we might find the
Theodore Ts'oe1052142006-10-21 21:46:47 -040015502 # original and so on. Autoconf is especially sensitive to this).
15503 . "./$as_me.lineno"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015504 # Exit status is that of the last command.
15505 exit
15506}
15507
15508
Theodore Ts'oe1052142006-10-21 21:46:47 -040015509if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15510 as_dirname=dirname
15511else
15512 as_dirname=false
15513fi
15514
15515ECHO_C= ECHO_N= ECHO_T=
15516case `echo -n x` in
15517-n*)
15518 case `echo 'x\c'` in
15519 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15520 *) ECHO_C='\c';;
15521 esac;;
15522*)
15523 ECHO_N='-n';;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015524esac
15525
Theodore Ts'oe1052142006-10-21 21:46:47 -040015526if expr a : '\(a\)' >/dev/null 2>&1 &&
15527 test "X`expr 00001 : '.*\(...\)'`" = X001; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015528 as_expr=expr
15529else
15530 as_expr=false
15531fi
15532
15533rm -f conf$$ conf$$.exe conf$$.file
Theodore Ts'oe1052142006-10-21 21:46:47 -040015534if test -d conf$$.dir; then
15535 rm -f conf$$.dir/conf$$.file
15536else
15537 rm -f conf$$.dir
15538 mkdir conf$$.dir
15539fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015540echo >conf$$.file
15541if ln -s conf$$.file conf$$ 2>/dev/null; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040015542 as_ln_s='ln -s'
15543 # ... but there are two gotchas:
15544 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15545 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15546 # In both cases, we have to default to `cp -p'.
15547 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015548 as_ln_s='cp -p'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015549elif ln conf$$.file conf$$ 2>/dev/null; then
15550 as_ln_s=ln
15551else
15552 as_ln_s='cp -p'
15553fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015554rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15555rmdir conf$$.dir 2>/dev/null
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015556
15557if mkdir -p . 2>/dev/null; then
15558 as_mkdir_p=:
15559else
15560 test -d ./-p && rmdir ./-p
15561 as_mkdir_p=false
15562fi
15563
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015564if test -x / >/dev/null 2>&1; then
15565 as_test_x='test -x'
Theodore Ts'oe1052142006-10-21 21:46:47 -040015566else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015567 if ls -dL / >/dev/null 2>&1; then
15568 as_ls_L_option=L
15569 else
15570 as_ls_L_option=
15571 fi
15572 as_test_x='
15573 eval sh -c '\''
15574 if test -d "$1"; then
15575 test -d "$1/.";
15576 else
15577 case $1 in
15578 -*)set "./$1";;
15579 esac;
15580 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
15581 ???[sx]*):;;*)false;;esac;fi
15582 '\'' sh
15583 '
Theodore Ts'oe1052142006-10-21 21:46:47 -040015584fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015585as_executable_p=$as_test_x
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015586
15587# Sed expression to map a string onto a valid CPP name.
15588as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15589
15590# Sed expression to map a string onto a valid variable name.
15591as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15592
15593
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015594exec 6>&1
15595
Theodore Ts'oe1052142006-10-21 21:46:47 -040015596# Save the log message, to keep $[0] and so on meaningful, and to
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015597# report actual input values of CONFIG_FILES etc. instead of their
Theodore Ts'oe1052142006-10-21 21:46:47 -040015598# values after options handling.
15599ac_log="
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015600This file was extended by $as_me, which was
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015601generated by GNU Autoconf 2.61. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015602
15603 CONFIG_FILES = $CONFIG_FILES
15604 CONFIG_HEADERS = $CONFIG_HEADERS
15605 CONFIG_LINKS = $CONFIG_LINKS
15606 CONFIG_COMMANDS = $CONFIG_COMMANDS
15607 $ $0 $@
15608
Theodore Ts'oe1052142006-10-21 21:46:47 -040015609on `(hostname || uname -n) 2>/dev/null | sed 1q`
15610"
15611
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015612_ACEOF
15613
Theodore Ts'oe1052142006-10-21 21:46:47 -040015614cat >>$CONFIG_STATUS <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015615# Files that config.status was made for.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015616config_files="$ac_config_files"
15617config_commands="$ac_config_commands"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015618
Theodore Ts'oe1052142006-10-21 21:46:47 -040015619_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015620
15621cat >>$CONFIG_STATUS <<\_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015622ac_cs_usage="\
15623\`$as_me' instantiates files from templates according to the
15624current configuration.
15625
15626Usage: $0 [OPTIONS] [FILE]...
15627
15628 -h, --help print this help, then exit
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015629 -V, --version print version number and configuration settings, then exit
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015630 -q, --quiet do not print progress messages
15631 -d, --debug don't remove temporary files
15632 --recheck update $as_me by reconfiguring in the same conditions
15633 --file=FILE[:TEMPLATE]
15634 instantiate the configuration file FILE
15635
15636Configuration files:
15637$config_files
15638
15639Configuration commands:
15640$config_commands
15641
15642Report bugs to <bug-autoconf@gnu.org>."
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015643
Theodore Ts'oe1052142006-10-21 21:46:47 -040015644_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015645cat >>$CONFIG_STATUS <<_ACEOF
15646ac_cs_version="\\
15647config.status
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015648configured by $0, generated by GNU Autoconf 2.61,
Theodore Ts'oe1052142006-10-21 21:46:47 -040015649 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015650
Theodore Ts'oe1052142006-10-21 21:46:47 -040015651Copyright (C) 2006 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015652This config.status script is free software; the Free Software Foundation
15653gives unlimited permission to copy, distribute and modify it."
Theodore Ts'oe1052142006-10-21 21:46:47 -040015654
15655ac_pwd='$ac_pwd'
15656srcdir='$srcdir'
15657INSTALL='$INSTALL'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015658_ACEOF
15659
15660cat >>$CONFIG_STATUS <<\_ACEOF
15661# If no file are specified by the user, then we need to provide default
15662# value. By we need to know if files were specified by the user.
15663ac_need_defaults=:
15664while test $# != 0
15665do
15666 case $1 in
15667 --*=*)
Theodore Ts'oe1052142006-10-21 21:46:47 -040015668 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15669 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015670 ac_shift=:
15671 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015672 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015673 ac_option=$1
15674 ac_optarg=$2
15675 ac_shift=shift
15676 ;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015677 esac
15678
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015679 case $ac_option in
15680 # Handling of the options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015681 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15682 ac_cs_recheck=: ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015683 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15684 echo "$ac_cs_version"; exit ;;
15685 --debug | --debu | --deb | --de | --d | -d )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015686 debug=: ;;
15687 --file | --fil | --fi | --f )
15688 $ac_shift
15689 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
15690 ac_need_defaults=false;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015691 --he | --h | --help | --hel | -h )
15692 echo "$ac_cs_usage"; exit ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015693 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15694 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15695 ac_cs_silent=: ;;
15696
15697 # This is an error.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015698 -*) { echo "$as_me: error: unrecognized option: $1
15699Try \`$0 --help' for more information." >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015700 { (exit 1); exit 1; }; } ;;
15701
Theodore Ts'oe1052142006-10-21 21:46:47 -040015702 *) ac_config_targets="$ac_config_targets $1"
15703 ac_need_defaults=false ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015704
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015705 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015706 shift
15707done
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015708
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015709ac_configure_extra_args=
Theodore Ts'o93636bd2003-07-12 02:45:05 -040015710
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015711if $ac_cs_silent; then
15712 exec 6>/dev/null
15713 ac_configure_extra_args="$ac_configure_extra_args --silent"
15714fi
15715
15716_ACEOF
15717cat >>$CONFIG_STATUS <<_ACEOF
15718if \$ac_cs_recheck; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040015719 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
15720 CONFIG_SHELL=$SHELL
15721 export CONFIG_SHELL
15722 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015723fi
15724
15725_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040015726cat >>$CONFIG_STATUS <<\_ACEOF
15727exec 5>>config.log
15728{
15729 echo
15730 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15731## Running $as_me. ##
15732_ASBOX
15733 echo "$ac_log"
15734} >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015735
Theodore Ts'oe1052142006-10-21 21:46:47 -040015736_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015737cat >>$CONFIG_STATUS <<_ACEOF
15738#
Theodore Ts'oe1052142006-10-21 21:46:47 -040015739# INIT-COMMANDS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015740#
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015741# Capture the value of obsolete ALL_LINGUAS because we need it to compute
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015742 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015743 # from automake.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015744 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015745 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15746 LINGUAS="${LINGUAS-%UNSET%}"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015747
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015748
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015749_ACEOF
15750
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015751cat >>$CONFIG_STATUS <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040015752
15753# Handling of arguments.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015754for ac_config_target in $ac_config_targets
15755do
Theodore Ts'oe1052142006-10-21 21:46:47 -040015756 case $ac_config_target in
15757 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
15758 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
15759
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015760 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
15761echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
15762 { (exit 1); exit 1; }; };;
15763 esac
15764done
15765
Theodore Ts'oe1052142006-10-21 21:46:47 -040015766
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015767# If the user did not use the arguments to specify the items to instantiate,
15768# then the envvar interface is used. Set only those that are not.
15769# We use the long form for the default assignment because of an extremely
15770# bizarre bug on SunOS 4.1.3.
15771if $ac_need_defaults; then
15772 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15773 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15774fi
15775
15776# Have a temporary directory for convenience. Make it in the build tree
Theodore Ts'oe1052142006-10-21 21:46:47 -040015777# simply because there is no reason against having it here, and in addition,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015778# creating and moving files from /tmp can sometimes cause problems.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015779# Hook for its removal unless debugging.
15780# Note that there is a small window in which the directory will not be cleaned:
15781# after its creation but before its name has been assigned to `$tmp'.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015782$debug ||
15783{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015784 tmp=
15785 trap 'exit_status=$?
15786 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
15787' 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015788 trap '{ (exit 1); exit 1; }' 1 2 13 15
15789}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015790# Create a (secure) tmp directory for tmp files.
15791
15792{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015793 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015794 test -n "$tmp" && test -d "$tmp"
15795} ||
15796{
Theodore Ts'oe1052142006-10-21 21:46:47 -040015797 tmp=./conf$$-$RANDOM
15798 (umask 077 && mkdir "$tmp")
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015799} ||
15800{
15801 echo "$me: cannot create a temporary directory in ." >&2
15802 { (exit 1); exit 1; }
15803}
15804
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015805#
Theodore Ts'oe1052142006-10-21 21:46:47 -040015806# Set up the sed scripts for CONFIG_FILES section.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015807#
15808
15809# No need to generate the scripts if there are no CONFIG_FILES.
15810# This happens for instance when ./config.status config.h
Theodore Ts'oe1052142006-10-21 21:46:47 -040015811if test -n "$CONFIG_FILES"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015812
15813_ACEOF
15814
Theodore Ts'oe1052142006-10-21 21:46:47 -040015815# Create sed commands to just substitute file output variables.
15816
15817# Remaining file output variables are in a fragment that also has non-file
15818# output varibles.
15819
15820
15821
15822ac_delim='%!_!# '
15823for ac_last_try in false false false false false :; do
15824 cat >conf$$subs.sed <<_ACEOF
15825SHELL!$SHELL$ac_delim
15826PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
15827PACKAGE_NAME!$PACKAGE_NAME$ac_delim
15828PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
15829PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
15830PACKAGE_STRING!$PACKAGE_STRING$ac_delim
15831PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
15832exec_prefix!$exec_prefix$ac_delim
15833prefix!$prefix$ac_delim
15834program_transform_name!$program_transform_name$ac_delim
15835bindir!$bindir$ac_delim
15836sbindir!$sbindir$ac_delim
15837libexecdir!$libexecdir$ac_delim
15838datarootdir!$datarootdir$ac_delim
15839datadir!$datadir$ac_delim
15840sysconfdir!$sysconfdir$ac_delim
15841sharedstatedir!$sharedstatedir$ac_delim
15842localstatedir!$localstatedir$ac_delim
15843includedir!$includedir$ac_delim
15844oldincludedir!$oldincludedir$ac_delim
15845docdir!$docdir$ac_delim
15846infodir!$infodir$ac_delim
15847htmldir!$htmldir$ac_delim
15848dvidir!$dvidir$ac_delim
15849pdfdir!$pdfdir$ac_delim
15850psdir!$psdir$ac_delim
15851libdir!$libdir$ac_delim
15852localedir!$localedir$ac_delim
15853mandir!$mandir$ac_delim
15854DEFS!$DEFS$ac_delim
15855ECHO_C!$ECHO_C$ac_delim
15856ECHO_N!$ECHO_N$ac_delim
15857ECHO_T!$ECHO_T$ac_delim
15858LIBS!$LIBS$ac_delim
15859build_alias!$build_alias$ac_delim
15860host_alias!$host_alias$ac_delim
15861target_alias!$target_alias$ac_delim
15862E2FSPROGS_YEAR!$E2FSPROGS_YEAR$ac_delim
15863E2FSPROGS_MONTH!$E2FSPROGS_MONTH$ac_delim
15864E2FSPROGS_DAY!$E2FSPROGS_DAY$ac_delim
15865E2FSPROGS_VERSION!$E2FSPROGS_VERSION$ac_delim
Andreas Dilger927566a2006-11-12 19:41:25 -050015866E2FSPROGS_PKGVER!$E2FSPROGS_PKGVER$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040015867build!$build$ac_delim
15868build_cpu!$build_cpu$ac_delim
15869build_vendor!$build_vendor$ac_delim
15870build_os!$build_os$ac_delim
15871host!$host$ac_delim
15872host_cpu!$host_cpu$ac_delim
15873host_vendor!$host_vendor$ac_delim
15874host_os!$host_os$ac_delim
15875CC!$CC$ac_delim
15876CFLAGS!$CFLAGS$ac_delim
15877LDFLAGS!$LDFLAGS$ac_delim
15878CPPFLAGS!$CPPFLAGS$ac_delim
15879ac_ct_CC!$ac_ct_CC$ac_delim
15880EXEEXT!$EXEEXT$ac_delim
15881OBJEXT!$OBJEXT$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040015882CPP!$CPP$ac_delim
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015883LD!$LD$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040015884GREP!$GREP$ac_delim
15885EGREP!$EGREP$ac_delim
15886LINUX_INCLUDE!$LINUX_INCLUDE$ac_delim
15887MAINTAINER_CMT!$MAINTAINER_CMT$ac_delim
15888HTREE_CMT!$HTREE_CMT$ac_delim
15889ELF_CMT!$ELF_CMT$ac_delim
15890BSDLIB_CMT!$BSDLIB_CMT$ac_delim
15891PROFILE_CMT!$PROFILE_CMT$ac_delim
15892CHECKER_CMT!$CHECKER_CMT$ac_delim
15893LIB_EXT!$LIB_EXT$ac_delim
15894STATIC_LIB_EXT!$STATIC_LIB_EXT$ac_delim
15895PROFILED_LIB_EXT!$PROFILED_LIB_EXT$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040015896DEBUGFS_CMT!$DEBUGFS_CMT$ac_delim
15897IMAGER_CMT!$IMAGER_CMT$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040015898_ACEOF
15899
Theodore Ts'o488c75a2008-06-07 08:55:21 -040015900 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 73; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040015901 break
15902 elif $ac_last_try; then
15903 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
15904echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
15905 { (exit 1); exit 1; }; }
15906 else
15907 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015908 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040015909done
15910
15911ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
15912if test -n "$ac_eof"; then
15913 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
15914 ac_eof=`expr $ac_eof + 1`
15915fi
15916
15917cat >>$CONFIG_STATUS <<_ACEOF
15918cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
15919/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
15920/^[ ]*@MCONFIG@[ ]*$/{
15921r $MCONFIG
15922d
15923}
15924/^[ ]*@MAKEFILE_ELF@[ ]*$/{
15925r $MAKEFILE_ELF
15926d
15927}
15928/^[ ]*@MAKEFILE_BSDLIB@[ ]*$/{
15929r $MAKEFILE_BSDLIB
15930d
15931}
15932/^[ ]*@MAKEFILE_PROFILE@[ ]*$/{
15933r $MAKEFILE_PROFILE
15934d
15935}
15936/^[ ]*@MAKEFILE_CHECKER@[ ]*$/{
15937r $MAKEFILE_CHECKER
15938d
15939}
15940/^[ ]*@MAKEFILE_LIBRARY@[ ]*$/{
15941r $MAKEFILE_LIBRARY
15942d
15943}
15944/^[ ]*@ASM_TYPES_HEADER@[ ]*$/{
15945r $ASM_TYPES_HEADER
15946d
15947}
Theodore Ts'o488c75a2008-06-07 08:55:21 -040015948/^[ ]*@PUBLIC_CONFIG_HEADER@[ ]*$/{
15949r $PUBLIC_CONFIG_HEADER
15950d
15951}
Theodore Ts'oe1052142006-10-21 21:46:47 -040015952_ACEOF
15953sed '
15954s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
15955s/^/s,@/; s/!/@,|#_!!_#|/
15956:n
15957t n
15958s/'"$ac_delim"'$/,g/; t
15959s/$/\\/; p
15960N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
15961' >>$CONFIG_STATUS <conf$$subs.sed
15962rm -f conf$$subs.sed
15963cat >>$CONFIG_STATUS <<_ACEOF
15964CEOF$ac_eof
15965_ACEOF
15966
15967
15968ac_delim='%!_!# '
15969for ac_last_try in false false false false false :; do
15970 cat >conf$$subs.sed <<_ACEOF
Theodore Ts'o488c75a2008-06-07 08:55:21 -040015971RESIZER_CMT!$RESIZER_CMT$ac_delim
15972FSCK_PROG!$FSCK_PROG$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040015973FSCK_MAN!$FSCK_MAN$ac_delim
15974E2INITRD_PROG!$E2INITRD_PROG$ac_delim
15975E2INITRD_MAN!$E2INITRD_MAN$ac_delim
Theodore Ts'o5610f992007-12-31 11:16:56 -050015976UUIDD_CMT!$UUIDD_CMT$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040015977GETTEXT_PACKAGE!$GETTEXT_PACKAGE$ac_delim
15978PACKAGE!$PACKAGE$ac_delim
15979VERSION!$VERSION$ac_delim
15980SET_MAKE!$SET_MAKE$ac_delim
15981INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
15982INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
15983INSTALL_DATA!$INSTALL_DATA$ac_delim
15984MKINSTALLDIRS!$MKINSTALLDIRS$ac_delim
15985USE_NLS!$USE_NLS$ac_delim
15986MSGFMT!$MSGFMT$ac_delim
15987GMSGFMT!$GMSGFMT$ac_delim
15988XGETTEXT!$XGETTEXT$ac_delim
15989MSGMERGE!$MSGMERGE$ac_delim
15990RANLIB!$RANLIB$ac_delim
15991ALLOCA!$ALLOCA$ac_delim
15992GLIBC21!$GLIBC21$ac_delim
15993HAVE_POSIX_PRINTF!$HAVE_POSIX_PRINTF$ac_delim
15994HAVE_ASPRINTF!$HAVE_ASPRINTF$ac_delim
15995HAVE_SNPRINTF!$HAVE_SNPRINTF$ac_delim
15996HAVE_WPRINTF!$HAVE_WPRINTF$ac_delim
15997LIBICONV!$LIBICONV$ac_delim
15998LTLIBICONV!$LTLIBICONV$ac_delim
15999INTLBISON!$INTLBISON$ac_delim
16000BUILD_INCLUDED_LIBINTL!$BUILD_INCLUDED_LIBINTL$ac_delim
16001USE_INCLUDED_LIBINTL!$USE_INCLUDED_LIBINTL$ac_delim
16002CATOBJEXT!$CATOBJEXT$ac_delim
16003DATADIRNAME!$DATADIRNAME$ac_delim
16004INSTOBJEXT!$INSTOBJEXT$ac_delim
16005GENCAT!$GENCAT$ac_delim
16006INTLOBJS!$INTLOBJS$ac_delim
16007INTL_LIBTOOL_SUFFIX_PREFIX!$INTL_LIBTOOL_SUFFIX_PREFIX$ac_delim
16008INTLLIBS!$INTLLIBS$ac_delim
16009LIBINTL!$LIBINTL$ac_delim
16010LTLIBINTL!$LTLIBINTL$ac_delim
16011POSUB!$POSUB$ac_delim
16012BINARY_TYPE!$BINARY_TYPE$ac_delim
16013LN!$LN$ac_delim
16014LN_S!$LN_S$ac_delim
16015MV!$MV$ac_delim
16016CP!$CP$ac_delim
16017RM!$RM$ac_delim
16018CHMOD!$CHMOD$ac_delim
16019AWK!$AWK$ac_delim
16020SED!$SED$ac_delim
16021PERL!$PERL$ac_delim
16022LDCONFIG!$LDCONFIG$ac_delim
16023AR!$AR$ac_delim
16024STRIP!$STRIP$ac_delim
Manish Katiyar7321d942008-04-14 17:20:03 +053016025MAKEINFO!$MAKEINFO$ac_delim
Theodore Ts'oe1052142006-10-21 21:46:47 -040016026BUILD_CC!$BUILD_CC$ac_delim
16027SIZEOF_SHORT!$SIZEOF_SHORT$ac_delim
16028SIZEOF_INT!$SIZEOF_INT$ac_delim
16029SIZEOF_LONG!$SIZEOF_LONG$ac_delim
16030SIZEOF_LONG_LONG!$SIZEOF_LONG_LONG$ac_delim
16031SOCKET_LIB!$SOCKET_LIB$ac_delim
16032DLOPEN_LIB!$DLOPEN_LIB$ac_delim
16033UNI_DIFF_OPTS!$UNI_DIFF_OPTS$ac_delim
16034LINUX_CMT!$LINUX_CMT$ac_delim
16035CYGWIN_CMT!$CYGWIN_CMT$ac_delim
16036UNIX_CMT!$UNIX_CMT$ac_delim
16037root_prefix!$root_prefix$ac_delim
16038root_bindir!$root_bindir$ac_delim
16039root_sbindir!$root_sbindir$ac_delim
16040root_libdir!$root_libdir$ac_delim
16041root_sysconfdir!$root_sysconfdir$ac_delim
16042LDFLAG_STATIC!$LDFLAG_STATIC$ac_delim
16043SS_DIR!$SS_DIR$ac_delim
16044ET_DIR!$ET_DIR$ac_delim
16045DO_TEST_SUITE!$DO_TEST_SUITE$ac_delim
16046INTL_FLAGS!$INTL_FLAGS$ac_delim
16047BUILD_CFLAGS!$BUILD_CFLAGS$ac_delim
16048BUILD_LDFLAGS!$BUILD_LDFLAGS$ac_delim
16049LIBOBJS!$LIBOBJS$ac_delim
16050LTLIBOBJS!$LTLIBOBJS$ac_delim
16051_ACEOF
16052
Theodore Ts'o7515a742008-08-26 23:56:00 -040016053 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 80; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040016054 break
16055 elif $ac_last_try; then
16056 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
16057echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
16058 { (exit 1); exit 1; }; }
16059 else
16060 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16061 fi
16062done
16063
16064ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
16065if test -n "$ac_eof"; then
16066 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
16067 ac_eof=`expr $ac_eof + 1`
16068fi
16069
16070cat >>$CONFIG_STATUS <<_ACEOF
16071cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
16072/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
16073_ACEOF
16074sed '
16075s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
16076s/^/s,@/; s/!/@,|#_!!_#|/
16077:n
16078t n
16079s/'"$ac_delim"'$/,g/; t
16080s/$/\\/; p
16081N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
16082' >>$CONFIG_STATUS <conf$$subs.sed
16083rm -f conf$$subs.sed
16084cat >>$CONFIG_STATUS <<_ACEOF
16085:end
16086s/|#_!!_#|//g
16087CEOF$ac_eof
16088_ACEOF
16089
16090
16091# VPATH may cause trouble with some makes, so we remove $(srcdir),
16092# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
16093# trailing colons and then remove the whole line if VPATH becomes empty
16094# (actually we leave an empty line to preserve line numbers).
16095if test "x$srcdir" = x.; then
16096 ac_vpsub='/^[ ]*VPATH[ ]*=/{
16097s/:*\$(srcdir):*/:/
16098s/:*\${srcdir}:*/:/
16099s/:*@srcdir@:*/:/
16100s/^\([^=]*=[ ]*\):*/\1/
16101s/:*$//
16102s/^[^=]*=[ ]*$//
16103}'
16104fi
16105
16106cat >>$CONFIG_STATUS <<\_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016107fi # test -n "$CONFIG_FILES"
16108
Theodore Ts'oe1052142006-10-21 21:46:47 -040016109
16110for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS
16111do
16112 case $ac_tag in
16113 :[FHLC]) ac_mode=$ac_tag; continue;;
16114 esac
16115 case $ac_mode$ac_tag in
16116 :[FHL]*:*);;
16117 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
16118echo "$as_me: error: Invalid tag $ac_tag." >&2;}
16119 { (exit 1); exit 1; }; };;
16120 :[FH]-) ac_tag=-:-;;
16121 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16122 esac
16123 ac_save_IFS=$IFS
16124 IFS=:
16125 set x $ac_tag
16126 IFS=$ac_save_IFS
16127 shift
16128 ac_file=$1
16129 shift
16130
16131 case $ac_mode in
16132 :L) ac_source=$1;;
16133 :[FH])
16134 ac_file_inputs=
16135 for ac_f
16136 do
16137 case $ac_f in
16138 -) ac_f="$tmp/stdin";;
16139 *) # Look for the file first in the build tree, then in the source tree
16140 # (if the path is not absolute). The absolute path cannot be DOS-style,
16141 # because $ac_f cannot contain `:'.
16142 test -f "$ac_f" ||
16143 case $ac_f in
16144 [\\/$]*) false;;
16145 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16146 esac ||
16147 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
16148echo "$as_me: error: cannot find input file: $ac_f" >&2;}
16149 { (exit 1); exit 1; }; };;
16150 esac
16151 ac_file_inputs="$ac_file_inputs $ac_f"
16152 done
16153
16154 # Let's still pretend it is `configure' which instantiates (i.e., don't
16155 # use $as_me), people would be surprised to read:
16156 # /* config.h. Generated by config.status. */
16157 configure_input="Generated from "`IFS=:
16158 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
16159 if test x"$ac_file" != x-; then
16160 configure_input="$ac_file. $configure_input"
16161 { echo "$as_me:$LINENO: creating $ac_file" >&5
16162echo "$as_me: creating $ac_file" >&6;}
16163 fi
16164
16165 case $ac_tag in
16166 *:-:* | *:-) cat >"$tmp/stdin";;
16167 esac
16168 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016169 esac
16170
Theodore Ts'oe1052142006-10-21 21:46:47 -040016171 ac_dir=`$as_dirname -- "$ac_file" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016172$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16173 X"$ac_file" : 'X\(//\)[^/]' \| \
16174 X"$ac_file" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -040016175 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016176echo X"$ac_file" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040016177 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16178 s//\1/
16179 q
16180 }
16181 /^X\(\/\/\)[^/].*/{
16182 s//\1/
16183 q
16184 }
16185 /^X\(\/\/\)$/{
16186 s//\1/
16187 q
16188 }
16189 /^X\(\/\).*/{
16190 s//\1/
16191 q
16192 }
16193 s/.*/./; q'`
16194 { as_dir="$ac_dir"
16195 case $as_dir in #(
16196 -*) as_dir=./$as_dir;;
16197 esac
16198 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016199 as_dirs=
Theodore Ts'oe1052142006-10-21 21:46:47 -040016200 while :; do
16201 case $as_dir in #(
16202 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
16203 *) as_qdir=$as_dir;;
16204 esac
16205 as_dirs="'$as_qdir' $as_dirs"
16206 as_dir=`$as_dirname -- "$as_dir" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016207$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16208 X"$as_dir" : 'X\(//\)[^/]' \| \
16209 X"$as_dir" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -040016210 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016211echo X"$as_dir" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040016212 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16213 s//\1/
16214 q
16215 }
16216 /^X\(\/\/\)[^/].*/{
16217 s//\1/
16218 q
16219 }
16220 /^X\(\/\/\)$/{
16221 s//\1/
16222 q
16223 }
16224 /^X\(\/\).*/{
16225 s//\1/
16226 q
16227 }
16228 s/.*/./; q'`
16229 test -d "$as_dir" && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016230 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040016231 test -z "$as_dirs" || eval "mkdir $as_dirs"
16232 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
16233echo "$as_me: error: cannot create directory $as_dir" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016234 { (exit 1); exit 1; }; }; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016235 ac_builddir=.
16236
Theodore Ts'oe1052142006-10-21 21:46:47 -040016237case "$ac_dir" in
16238.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16239*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016240 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040016241 # A ".." for each directory in $ac_dir_suffix.
16242 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
16243 case $ac_top_builddir_sub in
16244 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16245 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16246 esac ;;
16247esac
16248ac_abs_top_builddir=$ac_pwd
16249ac_abs_builddir=$ac_pwd$ac_dir_suffix
16250# for backward compatibility:
16251ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016252
16253case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -040016254 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016255 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -040016256 ac_top_srcdir=$ac_top_builddir_sub
16257 ac_abs_top_srcdir=$ac_pwd ;;
16258 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016259 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -040016260 ac_top_srcdir=$srcdir
16261 ac_abs_top_srcdir=$srcdir ;;
16262 *) # Relative name.
16263 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16264 ac_top_srcdir=$ac_top_build_prefix$srcdir
16265 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016266esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040016267ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016268
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016269
Theodore Ts'oe1052142006-10-21 21:46:47 -040016270 case $ac_mode in
16271 :F)
16272 #
16273 # CONFIG_FILE
16274 #
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016275
16276 case $INSTALL in
16277 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040016278 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016279 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016280_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040016281
16282cat >>$CONFIG_STATUS <<\_ACEOF
16283# If the template does not know about datarootdir, expand it.
16284# FIXME: This hack should be removed a few years after 2.60.
16285ac_datarootdir_hack=; ac_datarootdir_seen=
16286
16287case `sed -n '/datarootdir/ {
16288 p
16289 q
16290}
16291/@datadir@/p
16292/@docdir@/p
16293/@infodir@/p
16294/@localedir@/p
16295/@mandir@/p
16296' $ac_file_inputs` in
16297*datarootdir*) ac_datarootdir_seen=yes;;
16298*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16299 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16300echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16301_ACEOF
16302cat >>$CONFIG_STATUS <<_ACEOF
16303 ac_datarootdir_hack='
16304 s&@datadir@&$datadir&g
16305 s&@docdir@&$docdir&g
16306 s&@infodir@&$infodir&g
16307 s&@localedir@&$localedir&g
16308 s&@mandir@&$mandir&g
16309 s&\\\${datarootdir}&$datarootdir&g' ;;
16310esac
16311_ACEOF
16312
16313# Neutralize VPATH when `$srcdir' = `.'.
16314# Shell code in configure.ac might set extrasub.
16315# FIXME: do we really want to maintain this feature?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016316cat >>$CONFIG_STATUS <<_ACEOF
16317 sed "$ac_vpsub
16318$extrasub
16319_ACEOF
16320cat >>$CONFIG_STATUS <<\_ACEOF
16321:t
16322/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Theodore Ts'oe1052142006-10-21 21:46:47 -040016323s&@configure_input@&$configure_input&;t t
16324s&@top_builddir@&$ac_top_builddir_sub&;t t
16325s&@srcdir@&$ac_srcdir&;t t
16326s&@abs_srcdir@&$ac_abs_srcdir&;t t
16327s&@top_srcdir@&$ac_top_srcdir&;t t
16328s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16329s&@builddir@&$ac_builddir&;t t
16330s&@abs_builddir@&$ac_abs_builddir&;t t
16331s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16332s&@INSTALL@&$ac_INSTALL&;t t
16333$ac_datarootdir_hack
16334" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016335
Theodore Ts'oe1052142006-10-21 21:46:47 -040016336test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16337 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16338 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16339 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16340which seems to be undefined. Please make sure it is defined." >&5
16341echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16342which seems to be undefined. Please make sure it is defined." >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016343
Theodore Ts'oe1052142006-10-21 21:46:47 -040016344 rm -f "$tmp/stdin"
16345 case $ac_file in
16346 -) cat "$tmp/out"; rm -f "$tmp/out";;
16347 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
16348 esac
16349 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016350
16351
Theodore Ts'oe1052142006-10-21 21:46:47 -040016352 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
16353echo "$as_me: executing $ac_file commands" >&6;}
16354 ;;
16355 esac
16356
16357
16358 case $ac_file$ac_mode in
16359 "default-1":C)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016360 for ac_file in $CONFIG_FILES; do
16361 # Support "outfile[:infile[:infile...]]"
16362 case "$ac_file" in
16363 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000016364 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016365 # PO directories have a Makefile.in generated from Makefile.in.in.
16366 case "$ac_file" in */Makefile.in)
16367 # Adjust a relative srcdir.
16368 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
16369 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
16370 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16371 # In autoconf-2.13 it is called $ac_given_srcdir.
16372 # In autoconf-2.50 it is called $srcdir.
16373 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16374 case "$ac_given_srcdir" in
16375 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16376 /*) top_srcdir="$ac_given_srcdir" ;;
16377 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16378 esac
16379 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16380 rm -f "$ac_dir/POTFILES"
16381 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
16382 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016383 POMAKEFILEDEPS="POTFILES.in"
16384 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016385 # on $ac_dir but don't depend on user-specified configuration
16386 # parameters.
16387 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16388 # The LINGUAS file contains the set of available languages.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016389 if test -n "$OBSOLETE_ALL_LINGUAS"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016390 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16391 fi
16392 ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
16393 # Hide the ALL_LINGUAS assigment from automake.
16394 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016395 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16396 else
16397 # The set of available languages was given in configure.in.
16398 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016399 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016400 # Compute POFILES
16401 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
16402 # Compute UPDATEPOFILES
16403 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
16404 # Compute DUMMYPOFILES
16405 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
16406 # Compute GMOFILES
16407 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016408 case "$ac_given_srcdir" in
16409 .) srcdirpre= ;;
16410 *) srcdirpre='$(srcdir)/' ;;
16411 esac
16412 POFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016413 UPDATEPOFILES=
16414 DUMMYPOFILES=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016415 GMOFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016416 for lang in $ALL_LINGUAS; do
16417 POFILES="$POFILES $srcdirpre$lang.po"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016418 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16419 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016420 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016421 done
16422 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16423 # environment variable.
16424 INST_LINGUAS=
16425 if test -n "$ALL_LINGUAS"; then
16426 for presentlang in $ALL_LINGUAS; do
16427 useit=no
16428 if test "%UNSET%" != "$LINGUAS"; then
16429 desiredlanguages="$LINGUAS"
16430 else
16431 desiredlanguages="$ALL_LINGUAS"
16432 fi
16433 for desiredlang in $desiredlanguages; do
16434 # Use the presentlang catalog if desiredlang is
16435 # a. equal to presentlang, or
16436 # b. a variant of presentlang (because in this case,
16437 # presentlang can be used as a fallback for messages
16438 # which are not translated in the desiredlang catalog).
16439 case "$desiredlang" in
16440 "$presentlang"*) useit=yes;;
16441 esac
16442 done
16443 if test $useit = yes; then
16444 INST_LINGUAS="$INST_LINGUAS $presentlang"
16445 fi
16446 done
16447 fi
16448 CATALOGS=
16449 if test -n "$INST_LINGUAS"; then
16450 for lang in $INST_LINGUAS; do
16451 CATALOGS="$CATALOGS $lang.gmo"
16452 done
16453 fi
16454 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016455 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040016456 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16457 if test -f "$f"; then
16458 case "$f" in
16459 *.orig | *.bak | *~) ;;
16460 *) cat "$f" >> "$ac_dir/Makefile" ;;
16461 esac
16462 fi
16463 done
16464 fi
16465 ;;
16466 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016467 done ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016468
Theodore Ts'oe1052142006-10-21 21:46:47 -040016469 esac
16470done # for ac_tag
16471
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016472
16473{ (exit 0); exit 0; }
16474_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016475chmod +x $CONFIG_STATUS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050016476ac_clean_files=$ac_clean_files_save
16477
16478
16479# configure is writing to config.log, and then calls config.status.
16480# config.status does its own redirection, appending to config.log.
16481# Unfortunately, on DOS this fails, as config.log is still kept open
16482# by configure, so config.status won't be able to write to it; its
16483# output is simply discarded. So we exec the FD to /dev/null,
16484# effectively closing config.log, so it can be properly (re)opened and
16485# appended to by config.status. When coming back to configure, we
16486# need to make the FD available again.
16487if test "$no_create" != yes; then
16488 ac_cs_success=:
16489 ac_config_status_args=
16490 test "$silent" = yes &&
16491 ac_config_status_args="$ac_config_status_args --quiet"
16492 exec 5>/dev/null
16493 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16494 exec 5>>config.log
16495 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16496 # would make configure fail if this is the last instruction.
16497 $ac_cs_success || { (exit 1); exit 1; }
16498fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000016499
Theodore Ts'oee683a12005-02-05 15:53:56 -050016500if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi
16501