]> git.ipfire.org Git - thirdparty/e2fsprogs.git/blame - configure
gen-android-files: create the MODULE_LICENSE_GPL and README.version files
[thirdparty/e2fsprogs.git] / configure
CommitLineData
50e1e10f 1#! /bin/sh
50e1e10f 2# Guess values for system-dependent variables and create Makefiles.
d6a4bcb5 3# Generated by GNU Autoconf 2.69.
61ef2474 4#
50e1e10f 5#
d6a4bcb5 6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
61ef2474 7#
57aa50d4 8#
50e1e10f
TT
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
57aa50d4
TT
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
b0cacab0 14
29a5deed
TT
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
57aa50d4 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
b0cacab0
TT
18 emulate sh
19 NULLCMD=:
39fd3d4f 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b0cacab0
TT
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
e1052144
TT
23 setopt NO_GLOB_SUBST
24else
57aa50d4
TT
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
29a5deed 30esac
b0cacab0 31fi
29a5deed
TT
32
33
39fd3d4f
SJR
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
57aa50d4
TT
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
39fd3d4f
SJR
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
e1052144 54 else
39fd3d4f
SJR
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
57aa50d4 58 case $arg in #(
39fd3d4f
SJR
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
e1052144 67 fi
39fd3d4f
SJR
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
e1052144
TT
79fi
80
b0cacab0 81
e1052144
TT
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
e1052144
TT
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
d6a4bcb5 90as_myself=
57aa50d4 91case $0 in #((
e1052144
TT
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
57aa50d4
TT
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
e1052144
TT
100IFS=$as_save_IFS
101
102 ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
39fd3d4f 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
57aa50d4 111 exit 1
e1052144
TT
112fi
113
57aa50d4
TT
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
e1052144 121done
b0cacab0
TT
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
39fd3d4f
SJR
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
b0cacab0 131
57aa50d4
TT
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
d6a4bcb5
TB
135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
57aa50d4
TT
160if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
d6a4bcb5
TB
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
57aa50d4
TT
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202else
203 as_have_required=no
204fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211do
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225fi
226fi
227 done;;
228 esac
229 as_found=false
230done
231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234fi; }
235IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
d6a4bcb5
TB
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241# neutralization value for shells without unset; and this also
242# works around shells that cannot unset nonexistent variables.
243# Preserve -v and -x to the replacement shell.
244BASH_ENV=/dev/null
245ENV=/dev/null
246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252esac
253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254# Admittedly, this is quite paranoid, since all the known shells bail
255# out after a failed `exec'.
256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257exit 255
57aa50d4
TT
258fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268$0: including any error possibly output before this
269$0: message. Then install a modern shell, or manually run
270$0: the script under such a shell if you do have one."
271 fi
272 exit 1
273fi
274fi
275fi
276SHELL=${CONFIG_SHELL-/bin/sh}
277export SHELL
278# Unset more variables known to interfere with behavior of common tools.
279CLICOLOR_FORCE= GREP_OPTIONS=
280unset CLICOLOR_FORCE GREP_OPTIONS
281
282## --------------------- ##
283## M4sh Shell Functions. ##
284## --------------------- ##
285# as_fn_unset VAR
286# ---------------
287# Portably unset VAR.
288as_fn_unset ()
289{
290 { eval $1=; unset $1;}
291}
292as_unset=as_fn_unset
293
294# as_fn_set_status STATUS
295# -----------------------
296# Set $? to STATUS, without forking.
297as_fn_set_status ()
298{
299 return $1
300} # as_fn_set_status
301
302# as_fn_exit STATUS
303# -----------------
304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305as_fn_exit ()
306{
307 set +e
308 as_fn_set_status $1
309 exit $1
310} # as_fn_exit
311
312# as_fn_mkdir_p
313# -------------
314# Create "$as_dir" as a directory, including parents if necessary.
315as_fn_mkdir_p ()
316{
317
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334$as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
d6a4bcb5 355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
57aa50d4
TT
356
357
358} # as_fn_mkdir_p
d6a4bcb5
TB
359
360# as_fn_executable_p FILE
361# -----------------------
362# Test if FILE is an executable regular file.
363as_fn_executable_p ()
364{
365 test -f "$1" && test -x "$1"
366} # as_fn_executable_p
57aa50d4
TT
367# as_fn_append VAR VALUE
368# ----------------------
369# Append the text in VALUE to the end of the definition contained in VAR. Take
370# advantage of any shell optimizations that allow amortized linear growth over
371# repeated appends, instead of the typical quadratic growth present in naive
372# implementations.
373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
378else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383fi # as_fn_append
384
385# as_fn_arith ARG...
386# ------------------
387# Perform arithmetic evaluation on the ARGs, and store the result in the
388# global $as_val. Take advantage of shells that can avoid forks. The arguments
389# must be portable across $(()) and expr.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400fi # as_fn_arith
401
402
d6a4bcb5
TB
403# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ----------------------------------------
57aa50d4
TT
405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d6a4bcb5 407# script with STATUS, using 1 if that was 0.
57aa50d4
TT
408as_fn_error ()
409{
d6a4bcb5
TB
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
57aa50d4 414 fi
d6a4bcb5 415 $as_echo "$as_me: error: $2" >&2
57aa50d4
TT
416 as_fn_exit $as_status
417} # as_fn_error
418
e1052144
TT
419if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b0cacab0
TT
421 as_expr=expr
422else
423 as_expr=false
424fi
425
e1052144 426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b0cacab0
TT
427 as_basename=basename
428else
429 as_basename=false
430fi
431
57aa50d4
TT
432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434else
435 as_dirname=false
436fi
b0cacab0 437
e1052144 438as_me=`$as_basename -- "$0" ||
b0cacab0
TT
439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
e1052144 441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
39fd3d4f 442$as_echo X/"$0" |
e1052144
TT
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
b0cacab0 456
57aa50d4
TT
457# Avoid depending upon Character Ranges.
458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461as_cr_digits='0123456789'
462as_cr_alnum=$as_cr_Letters$as_cr_digits
b0cacab0 463
b0cacab0 464
57aa50d4
TT
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
479 N
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
e1052144 487
d6a4bcb5
TB
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
57aa50d4
TT
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
e1052144
TT
498}
499
57aa50d4
TT
500ECHO_C= ECHO_N= ECHO_T=
501case `echo -n x` in #(((((
502-n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
509*)
510 ECHO_N='-n';;
511esac
b0cacab0 512
57aa50d4
TT
513rm -f conf$$ conf$$.exe conf$$.file
514if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
e1052144 519fi
57aa50d4
TT
520if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d6a4bcb5 526 # In both cases, we have to default to `cp -pR'.
57aa50d4 527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d6a4bcb5 528 as_ln_s='cp -pR'
57aa50d4
TT
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
d6a4bcb5 532 as_ln_s='cp -pR'
57aa50d4 533 fi
e1052144 534else
d6a4bcb5 535 as_ln_s='cp -pR'
e1052144 536fi
57aa50d4
TT
537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
b0cacab0 539
57aa50d4
TT
540if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
e1052144
TT
545fi
546
d6a4bcb5
TB
547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
e1052144 549
57aa50d4
TT
550# Sed expression to map a string onto a valid CPP name.
551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
e1052144 552
57aa50d4
TT
553# Sed expression to map a string onto a valid variable name.
554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
e1052144 555
29a5deed 556
61ef2474
TT
557test -n "$DJDIR" || exec 7<&0 </dev/null
558exec 6>&1
b0cacab0
TT
559
560# Name of the host.
d6a4bcb5 561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
b0cacab0
TT
562# so uname gets run too.
563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
50e1e10f 564
b0cacab0
TT
565#
566# Initializations.
567#
50e1e10f 568ac_default_prefix=/usr/local
e1052144 569ac_clean_files=
b0cacab0 570ac_config_libobj_dir=.
e1052144 571LIBOBJS=
b0cacab0
TT
572cross_compiling=no
573subdirs=
574MFLAGS=
575MAKEFLAGS=
b0cacab0 576
b0cacab0
TT
577# Identity of this package.
578PACKAGE_NAME=
579PACKAGE_TARNAME=
580PACKAGE_VERSION=
581PACKAGE_STRING=
582PACKAGE_BUGREPORT=
57aa50d4 583PACKAGE_URL=
b0cacab0
TT
584
585ac_unique_file="version.h"
586# Factoring default headers for most tests.
587ac_includes_default="\
588#include <stdio.h>
29a5deed 589#ifdef HAVE_SYS_TYPES_H
b0cacab0
TT
590# include <sys/types.h>
591#endif
29a5deed 592#ifdef HAVE_SYS_STAT_H
b0cacab0
TT
593# include <sys/stat.h>
594#endif
29a5deed 595#ifdef STDC_HEADERS
b0cacab0
TT
596# include <stdlib.h>
597# include <stddef.h>
598#else
29a5deed 599# ifdef HAVE_STDLIB_H
b0cacab0
TT
600# include <stdlib.h>
601# endif
602#endif
29a5deed
TT
603#ifdef HAVE_STRING_H
604# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
b0cacab0
TT
605# include <memory.h>
606# endif
607# include <string.h>
608#endif
29a5deed 609#ifdef HAVE_STRINGS_H
b0cacab0
TT
610# include <strings.h>
611#endif
29a5deed 612#ifdef HAVE_INTTYPES_H
b0cacab0 613# include <inttypes.h>
e1052144 614#endif
29a5deed 615#ifdef HAVE_STDINT_H
e1052144 616# include <stdint.h>
b0cacab0 617#endif
29a5deed 618#ifdef HAVE_UNISTD_H
b0cacab0
TT
619# include <unistd.h>
620#endif"
621
93613951 622gt_needs=
61ef2474 623ac_header_list=
93613951
TT
624gl_use_threads_default=
625ac_func_list=
39fd3d4f 626ac_subst_vars='LTLIBOBJS
e1052144 627LIBOBJS
39fd3d4f
SJR
628BUILD_LDFLAGS
629BUILD_CFLAGS
5b5bd2c2 630MKINSTALLDIRS
d1154eb4 631INCLUDES
39fd3d4f
SJR
632DO_TEST_SUITE
633ET_DIR
634SS_DIR
635LDFLAG_STATIC
636root_sysconfdir
637root_libdir
638root_sbindir
639root_bindir
640root_prefix
641UNIX_CMT
642CYGWIN_CMT
643LINUX_CMT
644UNI_DIFF_OPTS
645SEM_INIT_LIB
81cbf1ef
DW
646FUSE_CMT
647FUSE_LIB
b291c11f 648MAGIC_LIB
39fd3d4f 649SOCKET_LIB
cc68e8a6 650SIZEOF_OFF_T
39fd3d4f
SJR
651SIZEOF_LONG_LONG
652SIZEOF_LONG
653SIZEOF_INT
654SIZEOF_SHORT
655BUILD_CC
656MAKEINFO
657STRIP
658AR
659LDCONFIG
660PERL
39fd3d4f
SJR
661AWK
662CHMOD
663RM
664CP
665MV
666LN_S
667LN
bcb915b0
TT
668ifNotGNUmake
669ifGNUmake
39fd3d4f
SJR
670BINARY_TYPE
671POSUB
672LTLIBINTL
673LIBINTL
674INTLLIBS
675INTL_LIBTOOL_SUFFIX_PREFIX
676INTLOBJS
677GENCAT
678INSTOBJEXT
679DATADIRNAME
680CATOBJEXT
681USE_INCLUDED_LIBINTL
682BUILD_INCLUDED_LIBINTL
93613951
TT
683LTLIBC
684WINDRES
685WOE32
686WOE32DLL
39fd3d4f 687HAVE_WPRINTF
93613951 688HAVE_NEWLOCALE
39fd3d4f
SJR
689HAVE_SNPRINTF
690HAVE_ASPRINTF
691HAVE_POSIX_PRINTF
93613951
TT
692INTL_DEFAULT_VERBOSITY
693INTL_MACOSX_LIBS
39fd3d4f 694GLIBC21
93613951
TT
695INTLBISON
696LTLIBICONV
697LIBICONV
698LTLIBMULTITHREAD
699LIBMULTITHREAD
700LTLIBTHREAD
701LIBTHREAD
702LIBPTH_PREFIX
703LTLIBPTH
704LIBPTH
705PRI_MACROS_BROKEN
39fd3d4f 706ALLOCA
93613951
TT
707HAVE_VISIBILITY
708CFLAG_VISIBILITY
39fd3d4f 709RANLIB
93613951
TT
710GLIBC2
711XGETTEXT_EXTRA_OPTIONS
39fd3d4f 712MSGMERGE
93613951 713XGETTEXT_015
39fd3d4f 714XGETTEXT
93613951
TT
715GMSGFMT_015
716MSGFMT_015
39fd3d4f
SJR
717GMSGFMT
718MSGFMT
93613951 719GETTEXT_MACRO_VERSION
39fd3d4f 720USE_NLS
93613951
TT
721SED
722MKDIR_P
39fd3d4f
SJR
723INSTALL_DATA
724INSTALL_SCRIPT
725INSTALL_PROGRAM
726SET_MAKE
727VERSION
728PACKAGE
729GETTEXT_PACKAGE
730UUIDD_CMT
731E2INITRD_MAN
732E2INITRD_PROG
733FSCK_MAN
734FSCK_PROG
8d9c50c5 735DEFRAG_CMT
39fd3d4f
SJR
736RESIZER_CMT
737IMAGER_CMT
738DEBUGFS_CMT
739BLKID_CMT
740DEPPROFILED_LIBBLKID
741PROFILED_LIBBLKID
742DEPSTATIC_LIBBLKID
743STATIC_LIBBLKID
744DEPLIBBLKID
745LIBBLKID
746UUID_CMT
747DEPPROFILED_LIBUUID
748PROFILED_LIBUUID
749DEPSTATIC_LIBUUID
750STATIC_LIBUUID
751DEPLIBUUID
752LIBUUID
93613951
TT
753PKG_CONFIG_LIBDIR
754PKG_CONFIG_PATH
39fd3d4f
SJR
755PKG_CONFIG
756TEST_IO_CMT
757PRIVATE_LIBS_CMT
758LDFLAG_DYNAMIC
759PROFILED_LIB_EXT
760STATIC_LIB_EXT
761LIB_EXT
39fd3d4f
SJR
762PROFILE_CMT
763BSDLIB_CMT
764ELF_CMT
c13351f6 765Q
c1986ecb 766ES
c13351f6 767E
5aa6c3f6 768LINK_BUILD_FLAGS
183c73b0 769SYMLINK_RELATIVE
5aa6c3f6 770LINK_INSTALL_FLAGS
39fd3d4f 771MAINTAINER_CMT
93613951
TT
772EGREP
773GREP
39fd3d4f 774CPP
9b3018a8 775RDYNAMIC
57aa50d4 776DLOPEN_LIB
39fd3d4f
SJR
777OBJEXT
778EXEEXT
779ac_ct_CC
780CPPFLAGS
781LDFLAGS
782CFLAGS
783CC
784host_os
785host_vendor
786host_cpu
787host
788build_os
789build_vendor
790build_cpu
791build
792E2FSPROGS_PKGVER
793E2FSPROGS_VERSION
794E2FSPROGS_DAY
795E2FSPROGS_MONTH
796E2FSPROGS_YEAR
797target_alias
798host_alias
799build_alias
800LIBS
801ECHO_T
802ECHO_N
803ECHO_C
804DEFS
805mandir
806localedir
807libdir
808psdir
809pdfdir
810dvidir
811htmldir
812infodir
813docdir
814oldincludedir
815includedir
816localstatedir
817sharedstatedir
818sysconfdir
819datadir
820datarootdir
821libexecdir
822sbindir
823bindir
824program_transform_name
825prefix
826exec_prefix
57aa50d4 827PACKAGE_URL
39fd3d4f
SJR
828PACKAGE_BUGREPORT
829PACKAGE_STRING
830PACKAGE_VERSION
831PACKAGE_TARNAME
832PACKAGE_NAME
833PATH_SEPARATOR
834SHELL'
e1052144
TT
835ac_subst_files='MCONFIG
836MAKEFILE_ELF
837MAKEFILE_BSDLIB
838MAKEFILE_PROFILE
e1052144 839MAKEFILE_LIBRARY
488c75a6
TT
840ASM_TYPES_HEADER
841PUBLIC_CONFIG_HEADER'
39fd3d4f
SJR
842ac_user_opts='
843enable_option_checking
844with_diet_libc
845with_cc
39fd3d4f
SJR
846with_ccopts
847with_ldopts
848with_root_prefix
849enable_maintainer_mode
5aa6c3f6 850enable_symlink_install
91d11da1 851enable_relative_symlinks
183c73b0 852enable_symlink_relative_symlinks
5aa6c3f6 853enable_symlink_build
c13351f6 854enable_verbose_makecmds
39fd3d4f
SJR
855enable_elf_shlibs
856enable_bsd_shlibs
857enable_profile
fedfb27f 858enable_gcov
39fd3d4f
SJR
859enable_jbd_debug
860enable_blkid_debug
861enable_testio_debug
862enable_libuuid
863enable_libblkid
3df6014a 864enable_backtrace
39fd3d4f
SJR
865enable_debugfs
866enable_imager
867enable_resizer
8d9c50c5 868enable_defrag
39fd3d4f
SJR
869enable_fsck
870enable_e2initrd_helper
871enable_tls
872enable_uuidd
d6a4bcb5 873enable_mmp
1625bf42
TB
874enable_bmap_stats
875enable_bmap_stats_ops
39fd3d4f 876enable_nls
93613951 877enable_threads
39fd3d4f
SJR
878with_gnu_ld
879enable_rpath
93613951 880with_libpth_prefix
39fd3d4f
SJR
881with_libiconv_prefix
882with_included_gettext
883with_libintl_prefix
81cbf1ef 884enable_fuse2fs
55e00a25 885with_multiarch
39fd3d4f 886'
e1052144
TT
887 ac_precious_vars='build_alias
888host_alias
889target_alias
890CC
891CFLAGS
892LDFLAGS
29a5deed 893LIBS
e1052144 894CPPFLAGS
14b596d4 895CPP
93613951
TT
896PKG_CONFIG
897PKG_CONFIG_PATH
898PKG_CONFIG_LIBDIR'
e1052144 899
50e1e10f
TT
900
901# Initialize some variables set by options.
b0cacab0
TT
902ac_init_help=
903ac_init_version=false
39fd3d4f
SJR
904ac_unrecognized_opts=
905ac_unrecognized_sep=
50e1e10f
TT
906# The variables have the same names as the options, with
907# dashes changed to underlines.
b0cacab0 908cache_file=/dev/null
50e1e10f 909exec_prefix=NONE
50e1e10f 910no_create=
50e1e10f
TT
911no_recursion=
912prefix=NONE
913program_prefix=NONE
914program_suffix=NONE
915program_transform_name=s,x,x,
916silent=
917site=
918srcdir=
50e1e10f
TT
919verbose=
920x_includes=NONE
921x_libraries=NONE
b0cacab0
TT
922
923# Installation directory options.
924# These are left unexpanded so users can "make install exec_prefix=/foo"
925# and all the variables that are supposed to be based on exec_prefix
926# by default will actually change.
927# Use braces instead of parens because sh, perl, etc. also accept them.
e1052144 928# (The list follows the same order as the GNU Coding Standards.)
21c84b71
TT
929bindir='${exec_prefix}/bin'
930sbindir='${exec_prefix}/sbin'
931libexecdir='${exec_prefix}/libexec'
e1052144
TT
932datarootdir='${prefix}/share'
933datadir='${datarootdir}'
21c84b71
TT
934sysconfdir='${prefix}/etc'
935sharedstatedir='${prefix}/com'
936localstatedir='${prefix}/var'
21c84b71
TT
937includedir='${prefix}/include'
938oldincludedir='/usr/include'
e1052144
TT
939docdir='${datarootdir}/doc/${PACKAGE}'
940infodir='${datarootdir}/info'
941htmldir='${docdir}'
942dvidir='${docdir}'
943pdfdir='${docdir}'
944psdir='${docdir}'
945libdir='${exec_prefix}/lib'
946localedir='${datarootdir}/locale'
947mandir='${datarootdir}/man'
50e1e10f 948
50e1e10f 949ac_prev=
e1052144 950ac_dashdash=
50e1e10f
TT
951for ac_option
952do
50e1e10f
TT
953 # If the previous option needs an argument, assign it.
954 if test -n "$ac_prev"; then
e1052144 955 eval $ac_prev=\$ac_option
50e1e10f
TT
956 ac_prev=
957 continue
958 fi
959
e1052144 960 case $ac_option in
d6a4bcb5
TB
961 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
962 *=) ac_optarg= ;;
963 *) ac_optarg=yes ;;
e1052144 964 esac
50e1e10f
TT
965
966 # Accept the important Cygnus configure options, so we can diagnose typos.
967
e1052144
TT
968 case $ac_dashdash$ac_option in
969 --)
970 ac_dashdash=yes ;;
50e1e10f 971
21c84b71
TT
972 -bindir | --bindir | --bindi | --bind | --bin | --bi)
973 ac_prev=bindir ;;
974 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
b0cacab0 975 bindir=$ac_optarg ;;
21c84b71
TT
976
977 -build | --build | --buil | --bui | --bu)
b0cacab0 978 ac_prev=build_alias ;;
21c84b71 979 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
b0cacab0 980 build_alias=$ac_optarg ;;
50e1e10f
TT
981
982 -cache-file | --cache-file | --cache-fil | --cache-fi \
983 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
984 ac_prev=cache_file ;;
985 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
986 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
b0cacab0
TT
987 cache_file=$ac_optarg ;;
988
989 --config-cache | -C)
990 cache_file=config.cache ;;
50e1e10f 991
e1052144 992 -datadir | --datadir | --datadi | --datad)
21c84b71 993 ac_prev=datadir ;;
e1052144 994 -datadir=* | --datadir=* | --datadi=* | --datad=*)
b0cacab0 995 datadir=$ac_optarg ;;
21c84b71 996
e1052144
TT
997 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
998 | --dataroo | --dataro | --datar)
999 ac_prev=datarootdir ;;
1000 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1001 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1002 datarootdir=$ac_optarg ;;
1003
50e1e10f 1004 -disable-* | --disable-*)
39fd3d4f 1005 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
50e1e10f 1006 # Reject names that are not valid shell variable names.
39fd3d4f 1007 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d6a4bcb5 1008 as_fn_error $? "invalid feature name: $ac_useropt"
39fd3d4f
SJR
1009 ac_useropt_orig=$ac_useropt
1010 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1011 case $ac_user_opts in
1012 *"
1013"enable_$ac_useropt"
1014"*) ;;
1015 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1016 ac_unrecognized_sep=', ';;
1017 esac
1018 eval enable_$ac_useropt=no ;;
e1052144
TT
1019
1020 -docdir | --docdir | --docdi | --doc | --do)
1021 ac_prev=docdir ;;
1022 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1023 docdir=$ac_optarg ;;
1024
1025 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1026 ac_prev=dvidir ;;
1027 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1028 dvidir=$ac_optarg ;;
50e1e10f
TT
1029
1030 -enable-* | --enable-*)
39fd3d4f 1031 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
50e1e10f 1032 # Reject names that are not valid shell variable names.
39fd3d4f 1033 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d6a4bcb5 1034 as_fn_error $? "invalid feature name: $ac_useropt"
39fd3d4f
SJR
1035 ac_useropt_orig=$ac_useropt
1036 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1037 case $ac_user_opts in
1038 *"
1039"enable_$ac_useropt"
1040"*) ;;
1041 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1042 ac_unrecognized_sep=', ';;
1043 esac
1044 eval enable_$ac_useropt=\$ac_optarg ;;
50e1e10f
TT
1045
1046 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1047 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1048 | --exec | --exe | --ex)
1049 ac_prev=exec_prefix ;;
1050 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1051 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1052 | --exec=* | --exe=* | --ex=*)
b0cacab0 1053 exec_prefix=$ac_optarg ;;
50e1e10f
TT
1054
1055 -gas | --gas | --ga | --g)
1056 # Obsolete; use --with-gas.
1057 with_gas=yes ;;
1058
b0cacab0
TT
1059 -help | --help | --hel | --he | -h)
1060 ac_init_help=long ;;
1061 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1062 ac_init_help=recursive ;;
1063 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1064 ac_init_help=short ;;
50e1e10f
TT
1065
1066 -host | --host | --hos | --ho)
b0cacab0 1067 ac_prev=host_alias ;;
50e1e10f 1068 -host=* | --host=* | --hos=* | --ho=*)
b0cacab0 1069 host_alias=$ac_optarg ;;
50e1e10f 1070
e1052144
TT
1071 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1072 ac_prev=htmldir ;;
1073 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1074 | --ht=*)
1075 htmldir=$ac_optarg ;;
1076
21c84b71
TT
1077 -includedir | --includedir | --includedi | --included | --include \
1078 | --includ | --inclu | --incl | --inc)
1079 ac_prev=includedir ;;
1080 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1081 | --includ=* | --inclu=* | --incl=* | --inc=*)
b0cacab0 1082 includedir=$ac_optarg ;;
21c84b71
TT
1083
1084 -infodir | --infodir | --infodi | --infod | --info | --inf)
1085 ac_prev=infodir ;;
1086 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
b0cacab0 1087 infodir=$ac_optarg ;;
21c84b71
TT
1088
1089 -libdir | --libdir | --libdi | --libd)
1090 ac_prev=libdir ;;
1091 -libdir=* | --libdir=* | --libdi=* | --libd=*)
b0cacab0 1092 libdir=$ac_optarg ;;
21c84b71
TT
1093
1094 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1095 | --libexe | --libex | --libe)
1096 ac_prev=libexecdir ;;
1097 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1098 | --libexe=* | --libex=* | --libe=*)
b0cacab0 1099 libexecdir=$ac_optarg ;;
21c84b71 1100
e1052144
TT
1101 -localedir | --localedir | --localedi | --localed | --locale)
1102 ac_prev=localedir ;;
1103 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1104 localedir=$ac_optarg ;;
1105
21c84b71 1106 -localstatedir | --localstatedir | --localstatedi | --localstated \
e1052144 1107 | --localstate | --localstat | --localsta | --localst | --locals)
21c84b71
TT
1108 ac_prev=localstatedir ;;
1109 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
e1052144 1110 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
b0cacab0 1111 localstatedir=$ac_optarg ;;
21c84b71
TT
1112
1113 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1114 ac_prev=mandir ;;
1115 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
b0cacab0 1116 mandir=$ac_optarg ;;
21c84b71 1117
50e1e10f
TT
1118 -nfp | --nfp | --nf)
1119 # Obsolete; use --without-fp.
1120 with_fp=no ;;
1121
1122 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
b0cacab0 1123 | --no-cr | --no-c | -n)
50e1e10f
TT
1124 no_create=yes ;;
1125
1126 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1127 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1128 no_recursion=yes ;;
1129
21c84b71
TT
1130 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1131 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1132 | --oldin | --oldi | --old | --ol | --o)
1133 ac_prev=oldincludedir ;;
1134 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1135 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1136 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
b0cacab0 1137 oldincludedir=$ac_optarg ;;
21c84b71 1138
50e1e10f
TT
1139 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1140 ac_prev=prefix ;;
1141 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
b0cacab0 1142 prefix=$ac_optarg ;;
50e1e10f
TT
1143
1144 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1145 | --program-pre | --program-pr | --program-p)
1146 ac_prev=program_prefix ;;
1147 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1148 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
b0cacab0 1149 program_prefix=$ac_optarg ;;
50e1e10f
TT
1150
1151 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1152 | --program-suf | --program-su | --program-s)
1153 ac_prev=program_suffix ;;
1154 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1155 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
b0cacab0 1156 program_suffix=$ac_optarg ;;
50e1e10f
TT
1157
1158 -program-transform-name | --program-transform-name \
1159 | --program-transform-nam | --program-transform-na \
1160 | --program-transform-n | --program-transform- \
1161 | --program-transform | --program-transfor \
1162 | --program-transfo | --program-transf \
1163 | --program-trans | --program-tran \
1164 | --progr-tra | --program-tr | --program-t)
1165 ac_prev=program_transform_name ;;
1166 -program-transform-name=* | --program-transform-name=* \
1167 | --program-transform-nam=* | --program-transform-na=* \
1168 | --program-transform-n=* | --program-transform-=* \
1169 | --program-transform=* | --program-transfor=* \
1170 | --program-transfo=* | --program-transf=* \
1171 | --program-trans=* | --program-tran=* \
1172 | --progr-tra=* | --program-tr=* | --program-t=*)
b0cacab0 1173 program_transform_name=$ac_optarg ;;
50e1e10f 1174
e1052144
TT
1175 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1176 ac_prev=pdfdir ;;
1177 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1178 pdfdir=$ac_optarg ;;
1179
1180 -psdir | --psdir | --psdi | --psd | --ps)
1181 ac_prev=psdir ;;
1182 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1183 psdir=$ac_optarg ;;
1184
50e1e10f
TT
1185 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1186 | -silent | --silent | --silen | --sile | --sil)
1187 silent=yes ;;
1188
21c84b71
TT
1189 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1190 ac_prev=sbindir ;;
1191 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1192 | --sbi=* | --sb=*)
b0cacab0 1193 sbindir=$ac_optarg ;;
21c84b71
TT
1194
1195 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1196 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1197 | --sharedst | --shareds | --shared | --share | --shar \
1198 | --sha | --sh)
1199 ac_prev=sharedstatedir ;;
1200 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1201 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1202 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1203 | --sha=* | --sh=*)
b0cacab0 1204 sharedstatedir=$ac_optarg ;;
21c84b71 1205
50e1e10f
TT
1206 -site | --site | --sit)
1207 ac_prev=site ;;
1208 -site=* | --site=* | --sit=*)
b0cacab0 1209 site=$ac_optarg ;;
50e1e10f
TT
1210
1211 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1212 ac_prev=srcdir ;;
1213 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
b0cacab0 1214 srcdir=$ac_optarg ;;
50e1e10f 1215
21c84b71
TT
1216 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1217 | --syscon | --sysco | --sysc | --sys | --sy)
1218 ac_prev=sysconfdir ;;
1219 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1220 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
b0cacab0 1221 sysconfdir=$ac_optarg ;;
21c84b71 1222
50e1e10f 1223 -target | --target | --targe | --targ | --tar | --ta | --t)
b0cacab0 1224 ac_prev=target_alias ;;
50e1e10f 1225 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
b0cacab0 1226 target_alias=$ac_optarg ;;
50e1e10f
TT
1227
1228 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1229 verbose=yes ;;
1230
b0cacab0
TT
1231 -version | --version | --versio | --versi | --vers | -V)
1232 ac_init_version=: ;;
50e1e10f
TT
1233
1234 -with-* | --with-*)
39fd3d4f 1235 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
50e1e10f 1236 # Reject names that are not valid shell variable names.
39fd3d4f 1237 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d6a4bcb5 1238 as_fn_error $? "invalid package name: $ac_useropt"
39fd3d4f
SJR
1239 ac_useropt_orig=$ac_useropt
1240 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1241 case $ac_user_opts in
1242 *"
1243"with_$ac_useropt"
1244"*) ;;
1245 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1246 ac_unrecognized_sep=', ';;
1247 esac
1248 eval with_$ac_useropt=\$ac_optarg ;;
50e1e10f
TT
1249
1250 -without-* | --without-*)
39fd3d4f 1251 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
50e1e10f 1252 # Reject names that are not valid shell variable names.
39fd3d4f 1253 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d6a4bcb5 1254 as_fn_error $? "invalid package name: $ac_useropt"
39fd3d4f
SJR
1255 ac_useropt_orig=$ac_useropt
1256 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1257 case $ac_user_opts in
1258 *"
1259"with_$ac_useropt"
1260"*) ;;
1261 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1262 ac_unrecognized_sep=', ';;
1263 esac
1264 eval with_$ac_useropt=no ;;
50e1e10f
TT
1265
1266 --x)
1267 # Obsolete; use --with-x.
1268 with_x=yes ;;
1269
1270 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1271 | --x-incl | --x-inc | --x-in | --x-i)
1272 ac_prev=x_includes ;;
1273 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1274 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
b0cacab0 1275 x_includes=$ac_optarg ;;
50e1e10f
TT
1276
1277 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1278 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1279 ac_prev=x_libraries ;;
1280 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1281 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
b0cacab0 1282 x_libraries=$ac_optarg ;;
50e1e10f 1283
d6a4bcb5
TB
1284 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1285Try \`$0 --help' for more information"
50e1e10f
TT
1286 ;;
1287
b0cacab0
TT
1288 *=*)
1289 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1290 # Reject names that are not valid shell variable names.
57aa50d4
TT
1291 case $ac_envvar in #(
1292 '' | [0-9]* | *[!_$as_cr_alnum]* )
d6a4bcb5 1293 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
57aa50d4 1294 esac
e1052144 1295 eval $ac_envvar=\$ac_optarg
b0cacab0
TT
1296 export $ac_envvar ;;
1297
21c84b71 1298 *)
b0cacab0 1299 # FIXME: should be removed in autoconf 3.0.
39fd3d4f 1300 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
b0cacab0 1301 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
39fd3d4f 1302 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
d6a4bcb5 1303 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
50e1e10f
TT
1304 ;;
1305
1306 esac
1307done
1308
1309if test -n "$ac_prev"; then
b0cacab0 1310 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
d6a4bcb5 1311 as_fn_error $? "missing argument to $ac_option"
50e1e10f 1312fi
50e1e10f 1313
39fd3d4f
SJR
1314if test -n "$ac_unrecognized_opts"; then
1315 case $enable_option_checking in
1316 no) ;;
d6a4bcb5 1317 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
39fd3d4f
SJR
1318 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1319 esac
1320fi
1321
1322# Check all directory arguments for consistency.
e1052144
TT
1323for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1324 datadir sysconfdir sharedstatedir localstatedir includedir \
1325 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1326 libdir localedir mandir
50e1e10f 1327do
e1052144 1328 eval ac_val=\$$ac_var
39fd3d4f
SJR
1329 # Remove trailing slashes.
1330 case $ac_val in
1331 */ )
1332 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1333 eval $ac_var=\$ac_val;;
1334 esac
1335 # Be sure to have absolute directory names.
b0cacab0 1336 case $ac_val in
e1052144
TT
1337 [\\/$]* | ?:[\\/]* ) continue;;
1338 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
50e1e10f 1339 esac
d6a4bcb5 1340 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
50e1e10f
TT
1341done
1342
b0cacab0
TT
1343# There might be people who depend on the old broken behavior: `$host'
1344# used to hold the argument of --host etc.
1345# FIXME: To remove some day.
1346build=$build_alias
1347host=$host_alias
1348target=$target_alias
1349
1350# FIXME: To remove some day.
1351if test "x$host_alias" != x; then
1352 if test "x$build_alias" = x; then
1353 cross_compiling=maybe
b0cacab0
TT
1354 elif test "x$build_alias" != "x$host_alias"; then
1355 cross_compiling=yes
1356 fi
1357fi
50e1e10f 1358
b0cacab0
TT
1359ac_tool_prefix=
1360test -n "$host_alias" && ac_tool_prefix=$host_alias-
1361
1362test "$silent" = yes && exec 6>/dev/null
50e1e10f 1363
50e1e10f 1364
e1052144
TT
1365ac_pwd=`pwd` && test -n "$ac_pwd" &&
1366ac_ls_di=`ls -di .` &&
1367ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
d6a4bcb5 1368 as_fn_error $? "working directory cannot be determined"
e1052144 1369test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
d6a4bcb5 1370 as_fn_error $? "pwd does not report name of working directory"
e1052144
TT
1371
1372
50e1e10f
TT
1373# Find the source files, if location was not specified.
1374if test -z "$srcdir"; then
1375 ac_srcdir_defaulted=yes
e1052144 1376 # Try the directory containing this script, then the parent directory.
39fd3d4f
SJR
1377 ac_confdir=`$as_dirname -- "$as_myself" ||
1378$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1379 X"$as_myself" : 'X\(//\)[^/]' \| \
1380 X"$as_myself" : 'X\(//\)$' \| \
1381 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1382$as_echo X"$as_myself" |
e1052144
TT
1383 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1384 s//\1/
1385 q
1386 }
1387 /^X\(\/\/\)[^/].*/{
1388 s//\1/
1389 q
1390 }
1391 /^X\(\/\/\)$/{
1392 s//\1/
1393 q
1394 }
1395 /^X\(\/\).*/{
1396 s//\1/
1397 q
1398 }
1399 s/.*/./; q'`
50e1e10f 1400 srcdir=$ac_confdir
e1052144 1401 if test ! -r "$srcdir/$ac_unique_file"; then
50e1e10f
TT
1402 srcdir=..
1403 fi
1404else
1405 ac_srcdir_defaulted=no
1406fi
e1052144
TT
1407if test ! -r "$srcdir/$ac_unique_file"; then
1408 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
d6a4bcb5 1409 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
50e1e10f 1410fi
e1052144
TT
1411ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1412ac_abs_confdir=`(
d6a4bcb5 1413 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
e1052144
TT
1414 pwd)`
1415# When building in place, set srcdir=.
1416if test "$ac_abs_confdir" = "$ac_pwd"; then
1417 srcdir=.
1418fi
1419# Remove unnecessary trailing slashes from srcdir.
1420# Double slashes in file names in object file debugging info
1421# mess up M-x gdb in Emacs.
1422case $srcdir in
1423*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1424esac
1425for ac_var in $ac_precious_vars; do
1426 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1427 eval ac_env_${ac_var}_value=\$${ac_var}
1428 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1429 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1430done
b0cacab0
TT
1431
1432#
1433# Report the --help message.
1434#
1435if test "$ac_init_help" = "long"; then
1436 # Omit some internal or obsolete options to make the list less imposing.
1437 # This message is too long to be a string in the A/UX 3.1 sh.
1438 cat <<_ACEOF
1439\`configure' configures this package to adapt to many kinds of systems.
1440
1441Usage: $0 [OPTION]... [VAR=VALUE]...
1442
1443To assign environment variables (e.g., CC, CFLAGS...), specify them as
1444VAR=VALUE. See below for descriptions of some of the useful variables.
1445
1446Defaults for the options are specified in brackets.
1447
1448Configuration:
1449 -h, --help display this help and exit
1450 --help=short display options specific to this package
1451 --help=recursive display the short help of all the included packages
1452 -V, --version display version information and exit
d6a4bcb5 1453 -q, --quiet, --silent do not print \`checking ...' messages
b0cacab0
TT
1454 --cache-file=FILE cache test results in FILE [disabled]
1455 -C, --config-cache alias for \`--cache-file=config.cache'
1456 -n, --no-create do not create output files
1457 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1458
b0cacab0
TT
1459Installation directories:
1460 --prefix=PREFIX install architecture-independent files in PREFIX
39fd3d4f 1461 [$ac_default_prefix]
b0cacab0 1462 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
39fd3d4f 1463 [PREFIX]
b0cacab0
TT
1464
1465By default, \`make install' will install all the files in
1466\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1467an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1468for instance \`--prefix=\$HOME'.
1469
1470For better control, use the options below.
1471
1472Fine tuning of the installation directories:
39fd3d4f
SJR
1473 --bindir=DIR user executables [EPREFIX/bin]
1474 --sbindir=DIR system admin executables [EPREFIX/sbin]
1475 --libexecdir=DIR program executables [EPREFIX/libexec]
1476 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1477 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1478 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1479 --libdir=DIR object code libraries [EPREFIX/lib]
1480 --includedir=DIR C header files [PREFIX/include]
1481 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1482 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1483 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1484 --infodir=DIR info documentation [DATAROOTDIR/info]
1485 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1486 --mandir=DIR man documentation [DATAROOTDIR/man]
1487 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1488 --htmldir=DIR html documentation [DOCDIR]
1489 --dvidir=DIR dvi documentation [DOCDIR]
1490 --pdfdir=DIR pdf documentation [DOCDIR]
1491 --psdir=DIR ps documentation [DOCDIR]
b0cacab0
TT
1492_ACEOF
1493
1494 cat <<\_ACEOF
1495
1496System types:
1497 --build=BUILD configure for building on BUILD [guessed]
1498 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1499_ACEOF
1500fi
1501
1502if test -n "$ac_init_help"; then
1503
1504 cat <<\_ACEOF
1505
1506Optional Features:
39fd3d4f 1507 --disable-option-checking ignore unrecognized --enable/--with options
b0cacab0
TT
1508 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1509 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
98919bdb 1510 --enable-maintainer-mode enable makefile rules useful for maintainers
5aa6c3f6 1511 --enable-symlink-install use symlinks when installing instead of hard links
183c73b0 1512 --enable-relative-symlinks use relative symlinks when installing
91d11da1 1513
5aa6c3f6
TT
1514 --enable-symlink-build use symlinks while building instead of hard links
1515 --enable-verbose-makecmds enable verbose make command output
b0cacab0
TT
1516 --enable-elf-shlibs select ELF shared libraries
1517 --enable-bsd-shlibs select BSD shared libraries
1518 --enable-profile build profiling libraries
fedfb27f 1519 --enable-gcov build for coverage testing using gcov
b0cacab0
TT
1520 --enable-jbd-debug enable journal debugging
1521 --enable-blkid-debug enable blkid debugging
af773654 1522 --disable-testio-debug disable the use of the test I/O manager for debugging
f5dffb81
TT
1523 --enable-libuuid build and use private uuid library
1524 --enable-libblkid build and use private blkid library
3df6014a 1525 --disable-backtrace disable use backtrace
b0cacab0
TT
1526 --disable-debugfs disable support of debugfs program
1527 --disable-imager disable support of e2image program
1528 --disable-resizer disable support of e2resize program
8d9c50c5 1529 --disable-defrag disable support of e4defrag program
b0cacab0
TT
1530 --enable-fsck build fsck wrapper program
1531 --enable-e2initrd-helper build e2initrd-helper program
3249394d 1532 --disable-tls disable use of thread local support
5610f992 1533 --disable-uuidd disable building the uuid daemon
d6a4bcb5 1534 --disable-mmp disable support mmp, Multi Mount Protection
1625bf42
TB
1535 --disable-bmap-stats disable collection of bitmap stats.
1536 --enable-bmap-stats-ops enable collection of additional bitmap stats
b0cacab0 1537 --disable-nls do not use Native Language Support
93613951
TT
1538 --enable-threads={posix|solaris|pth|windows}
1539 specify multithreading API
1540 --disable-threads build without multithread safety
b0cacab0 1541 --disable-rpath do not hardcode runtime library paths
f5dffb81 1542 --disable-fuse2fs do not build fuse2fs
b0cacab0
TT
1543
1544Optional Packages:
1545 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1546 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
3249394d 1547 --with-diet-libc use diet libc
0b5b9f90
TT
1548 --with-cc no longer supported, use CC= instead
1549 --with-ccopts no longer supported, use CFLAGS= instead
1550 --with-ldopts no longer supported, use LDFLAGS= instead
b0cacab0 1551 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
93613951
TT
1552 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1553 --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
1554 --without-libpth-prefix don't search for libpth in includedir and libdir
b0cacab0
TT
1555 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1556 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1557 --with-included-gettext use the GNU gettext library included here
1558 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1559 --without-libintl-prefix don't search for libintl in includedir and libdir
55e00a25 1560 --with-multiarch=ARCH specify the multiarch triplet
b0cacab0
TT
1561
1562Some influential environment variables:
1563 CC C compiler command
1564 CFLAGS C compiler flags
1565 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1566 nonstandard directory <lib dir>
29a5deed 1567 LIBS libraries to pass to the linker, e.g. -l<library>
61ef2474 1568 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
e1052144 1569 you have headers in a nonstandard directory <include dir>
b0cacab0 1570 CPP C preprocessor
14b596d4 1571 PKG_CONFIG path to pkg-config utility
93613951
TT
1572 PKG_CONFIG_PATH
1573 directories to add to pkg-config's search path
1574 PKG_CONFIG_LIBDIR
1575 path overriding pkg-config's built-in search path
b0cacab0
TT
1576
1577Use these variables to override the choices made by `configure' or to help
1578it to find libraries and programs with nonstandard names/locations.
1579
57aa50d4 1580Report bugs to the package provider.
b0cacab0 1581_ACEOF
e1052144 1582ac_status=$?
b0cacab0
TT
1583fi
1584
1585if test "$ac_init_help" = "recursive"; then
1586 # If there are subdirs, report their specific --help.
b0cacab0 1587 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
39fd3d4f
SJR
1588 test -d "$ac_dir" ||
1589 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1590 continue
b0cacab0
TT
1591 ac_builddir=.
1592
e1052144
TT
1593case "$ac_dir" in
1594.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1595*)
39fd3d4f 1596 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
e1052144 1597 # A ".." for each directory in $ac_dir_suffix.
39fd3d4f 1598 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
e1052144
TT
1599 case $ac_top_builddir_sub in
1600 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1601 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1602 esac ;;
1603esac
1604ac_abs_top_builddir=$ac_pwd
1605ac_abs_builddir=$ac_pwd$ac_dir_suffix
1606# for backward compatibility:
1607ac_top_builddir=$ac_top_build_prefix
b0cacab0
TT
1608
1609case $srcdir in
e1052144 1610 .) # We are building in place.
b0cacab0 1611 ac_srcdir=.
e1052144
TT
1612 ac_top_srcdir=$ac_top_builddir_sub
1613 ac_abs_top_srcdir=$ac_pwd ;;
1614 [\\/]* | ?:[\\/]* ) # Absolute name.
b0cacab0 1615 ac_srcdir=$srcdir$ac_dir_suffix;
e1052144
TT
1616 ac_top_srcdir=$srcdir
1617 ac_abs_top_srcdir=$srcdir ;;
1618 *) # Relative name.
1619 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1620 ac_top_srcdir=$ac_top_build_prefix$srcdir
1621 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b0cacab0 1622esac
e1052144
TT
1623ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1624
1625 cd "$ac_dir" || { ac_status=$?; continue; }
1626 # Check for guested configure.
1627 if test -f "$ac_srcdir/configure.gnu"; then
1628 echo &&
1629 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1630 elif test -f "$ac_srcdir/configure"; then
1631 echo &&
1632 $SHELL "$ac_srcdir/configure" --help=recursive
b0cacab0 1633 else
39fd3d4f 1634 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
e1052144
TT
1635 fi || ac_status=$?
1636 cd "$ac_pwd" || { ac_status=$?; break; }
b0cacab0
TT
1637 done
1638fi
1639
e1052144 1640test -n "$ac_init_help" && exit $ac_status
b0cacab0
TT
1641if $ac_init_version; then
1642 cat <<\_ACEOF
e1052144 1643configure
d6a4bcb5 1644generated by GNU Autoconf 2.69
b0cacab0 1645
d6a4bcb5 1646Copyright (C) 2012 Free Software Foundation, Inc.
b0cacab0
TT
1647This configure script is free software; the Free Software Foundation
1648gives unlimited permission to copy, distribute and modify it.
1649_ACEOF
e1052144 1650 exit
b0cacab0 1651fi
b0cacab0 1652
57aa50d4
TT
1653## ------------------------ ##
1654## Autoconf initialization. ##
1655## ------------------------ ##
b0cacab0 1656
57aa50d4
TT
1657# ac_fn_c_try_compile LINENO
1658# --------------------------
1659# Try to compile conftest.$ac_ext, and return whether this succeeded.
1660ac_fn_c_try_compile ()
1661{
1662 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1663 rm -f conftest.$ac_objext
1664 if { { ac_try="$ac_compile"
1665case "(($ac_try" in
1666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1667 *) ac_try_echo=$ac_try;;
1668esac
1669eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1670$as_echo "$ac_try_echo"; } >&5
1671 (eval "$ac_compile") 2>conftest.err
1672 ac_status=$?
1673 if test -s conftest.err; then
1674 grep -v '^ *+' conftest.err >conftest.er1
1675 cat conftest.er1 >&5
1676 mv -f conftest.er1 conftest.err
1677 fi
1678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1679 test $ac_status = 0; } && {
1680 test -z "$ac_c_werror_flag" ||
1681 test ! -s conftest.err
1682 } && test -s conftest.$ac_objext; then :
1683 ac_retval=0
1684else
1685 $as_echo "$as_me: failed program was:" >&5
1686sed 's/^/| /' conftest.$ac_ext >&5
b0cacab0 1687
57aa50d4
TT
1688 ac_retval=1
1689fi
d6a4bcb5 1690 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
61ef2474 1691 as_fn_set_status $ac_retval
57aa50d4
TT
1692
1693} # ac_fn_c_try_compile
1694
1695# ac_fn_c_try_link LINENO
1696# -----------------------
1697# Try to link conftest.$ac_ext, and return whether this succeeded.
1698ac_fn_c_try_link ()
b0cacab0 1699{
57aa50d4
TT
1700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701 rm -f conftest.$ac_objext conftest$ac_exeext
1702 if { { ac_try="$ac_link"
1703case "(($ac_try" in
1704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1705 *) ac_try_echo=$ac_try;;
1706esac
1707eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1708$as_echo "$ac_try_echo"; } >&5
1709 (eval "$ac_link") 2>conftest.err
1710 ac_status=$?
1711 if test -s conftest.err; then
1712 grep -v '^ *+' conftest.err >conftest.er1
1713 cat conftest.er1 >&5
1714 mv -f conftest.er1 conftest.err
1715 fi
1716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1717 test $ac_status = 0; } && {
1718 test -z "$ac_c_werror_flag" ||
1719 test ! -s conftest.err
1720 } && test -s conftest$ac_exeext && {
1721 test "$cross_compiling" = yes ||
d6a4bcb5 1722 test -x conftest$ac_exeext
57aa50d4
TT
1723 }; then :
1724 ac_retval=0
1725else
1726 $as_echo "$as_me: failed program was:" >&5
1727sed 's/^/| /' conftest.$ac_ext >&5
b0cacab0 1728
57aa50d4
TT
1729 ac_retval=1
1730fi
1731 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1732 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1733 # interfere with the next link command; also delete a directory that is
1734 # left behind by Apple's compiler. We do this before executing the actions.
1735 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d6a4bcb5 1736 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
61ef2474 1737 as_fn_set_status $ac_retval
b0cacab0 1738
57aa50d4 1739} # ac_fn_c_try_link
b0cacab0 1740
57aa50d4
TT
1741# ac_fn_c_try_cpp LINENO
1742# ----------------------
1743# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1744ac_fn_c_try_cpp ()
1745{
1746 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1747 if { { ac_try="$ac_cpp conftest.$ac_ext"
1748case "(($ac_try" in
1749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1750 *) ac_try_echo=$ac_try;;
1751esac
1752eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1753$as_echo "$ac_try_echo"; } >&5
1754 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1755 ac_status=$?
1756 if test -s conftest.err; then
1757 grep -v '^ *+' conftest.err >conftest.er1
1758 cat conftest.er1 >&5
1759 mv -f conftest.er1 conftest.err
1760 fi
1761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d6a4bcb5 1762 test $ac_status = 0; } > conftest.i && {
57aa50d4
TT
1763 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1764 test ! -s conftest.err
1765 }; then :
1766 ac_retval=0
1767else
1768 $as_echo "$as_me: failed program was:" >&5
1769sed 's/^/| /' conftest.$ac_ext >&5
b0cacab0 1770
57aa50d4
TT
1771 ac_retval=1
1772fi
d6a4bcb5 1773 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
61ef2474 1774 as_fn_set_status $ac_retval
b0cacab0 1775
57aa50d4 1776} # ac_fn_c_try_cpp
b0cacab0 1777
93613951
TT
1778# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1779# -------------------------------------------------------
1780# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1781# the include files in INCLUDES and setting the cache variable VAR
1782# accordingly.
1783ac_fn_c_check_header_mongrel ()
1784{
1785 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1786 if eval \${$3+:} false; then :
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1788$as_echo_n "checking for $2... " >&6; }
1789if eval \${$3+:} false; then :
1790 $as_echo_n "(cached) " >&6
1791fi
1792eval ac_res=\$$3
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1794$as_echo "$ac_res" >&6; }
1795else
1796 # Is the header compilable?
1797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1798$as_echo_n "checking $2 usability... " >&6; }
1799cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1800/* end confdefs.h. */
1801$4
1802#include <$2>
1803_ACEOF
1804if ac_fn_c_try_compile "$LINENO"; then :
1805 ac_header_compiler=yes
1806else
1807 ac_header_compiler=no
1808fi
1809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1811$as_echo "$ac_header_compiler" >&6; }
1812
1813# Is the header present?
1814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1815$as_echo_n "checking $2 presence... " >&6; }
1816cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1817/* end confdefs.h. */
1818#include <$2>
1819_ACEOF
1820if ac_fn_c_try_cpp "$LINENO"; then :
1821 ac_header_preproc=yes
1822else
1823 ac_header_preproc=no
1824fi
1825rm -f conftest.err conftest.i conftest.$ac_ext
1826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1827$as_echo "$ac_header_preproc" >&6; }
1828
1829# So? What about this header?
1830case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1831 yes:no: )
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1833$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1835$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1836 ;;
1837 no:yes:* )
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1839$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1841$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1843$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1845$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1847$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1848 ;;
1849esac
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1851$as_echo_n "checking for $2... " >&6; }
1852if eval \${$3+:} false; then :
1853 $as_echo_n "(cached) " >&6
1854else
1855 eval "$3=\$ac_header_compiler"
1856fi
1857eval ac_res=\$$3
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1859$as_echo "$ac_res" >&6; }
1860fi
1861 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1862
1863} # ac_fn_c_check_header_mongrel
1864
57aa50d4
TT
1865# ac_fn_c_try_run LINENO
1866# ----------------------
1867# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1868# that executables *can* be run.
1869ac_fn_c_try_run ()
1870{
1871 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1872 if { { ac_try="$ac_link"
1873case "(($ac_try" in
1874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1875 *) ac_try_echo=$ac_try;;
1876esac
1877eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1878$as_echo "$ac_try_echo"; } >&5
1879 (eval "$ac_link") 2>&5
1880 ac_status=$?
1881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1882 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1883 { { case "(($ac_try" in
1884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1885 *) ac_try_echo=$ac_try;;
1886esac
1887eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1888$as_echo "$ac_try_echo"; } >&5
1889 (eval "$ac_try") 2>&5
1890 ac_status=$?
1891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1892 test $ac_status = 0; }; }; then :
1893 ac_retval=0
1894else
1895 $as_echo "$as_me: program exited with status $ac_status" >&5
1896 $as_echo "$as_me: failed program was:" >&5
1897sed 's/^/| /' conftest.$ac_ext >&5
b0cacab0 1898
57aa50d4
TT
1899 ac_retval=$ac_status
1900fi
1901 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d6a4bcb5 1902 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
61ef2474 1903 as_fn_set_status $ac_retval
b0cacab0 1904
57aa50d4 1905} # ac_fn_c_try_run
b0cacab0 1906
93613951
TT
1907# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1908# -------------------------------------------------------
1909# Tests whether HEADER exists and can be compiled using the include files in
1910# INCLUDES, setting the cache variable VAR accordingly.
1911ac_fn_c_check_header_compile ()
1912{
1913 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1915$as_echo_n "checking for $2... " >&6; }
1916if eval \${$3+:} false; then :
1917 $as_echo_n "(cached) " >&6
1918else
1919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1920/* end confdefs.h. */
1921$4
1922#include <$2>
1923_ACEOF
1924if ac_fn_c_try_compile "$LINENO"; then :
1925 eval "$3=yes"
1926else
1927 eval "$3=no"
1928fi
1929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1930fi
1931eval ac_res=\$$3
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1933$as_echo "$ac_res" >&6; }
1934 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1935
1936} # ac_fn_c_check_header_compile
1937
57aa50d4
TT
1938# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1939# -------------------------------------------
1940# Tests whether TYPE exists after having included INCLUDES, setting cache
1941# variable VAR accordingly.
1942ac_fn_c_check_type ()
1943{
1944 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1946$as_echo_n "checking for $2... " >&6; }
d6a4bcb5 1947if eval \${$3+:} false; then :
57aa50d4 1948 $as_echo_n "(cached) " >&6
e1052144 1949else
57aa50d4
TT
1950 eval "$3=no"
1951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1952/* end confdefs.h. */
1953$4
1954int
1955main ()
1956{
1957if (sizeof ($2))
1958 return 0;
1959 ;
1960 return 0;
1961}
1962_ACEOF
1963if ac_fn_c_try_compile "$LINENO"; then :
1964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1965/* end confdefs.h. */
1966$4
1967int
1968main ()
1969{
1970if (sizeof (($2)))
1971 return 0;
1972 ;
1973 return 0;
1974}
1975_ACEOF
1976if ac_fn_c_try_compile "$LINENO"; then :
50e1e10f 1977
50e1e10f 1978else
57aa50d4 1979 eval "$3=yes"
b0cacab0 1980fi
57aa50d4 1981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50e1e10f 1982fi
57aa50d4
TT
1983rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1984fi
1985eval ac_res=\$$3
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1987$as_echo "$ac_res" >&6; }
d6a4bcb5 1988 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
50e1e10f 1989
57aa50d4 1990} # ac_fn_c_check_type
b0cacab0 1991
57aa50d4
TT
1992# ac_fn_c_check_func LINENO FUNC VAR
1993# ----------------------------------
1994# Tests whether FUNC exists, setting the cache variable VAR accordingly
1995ac_fn_c_check_func ()
1996{
1997 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1999$as_echo_n "checking for $2... " >&6; }
d6a4bcb5 2000if eval \${$3+:} false; then :
57aa50d4
TT
2001 $as_echo_n "(cached) " >&6
2002else
2003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2004/* end confdefs.h. */
2005/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2006 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2007#define $2 innocuous_$2
b0cacab0 2008
57aa50d4
TT
2009/* System header to define __stub macros and hopefully few prototypes,
2010 which can conflict with char $2 (); below.
2011 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2012 <limits.h> exists even on freestanding compilers. */
b0cacab0 2013
57aa50d4
TT
2014#ifdef __STDC__
2015# include <limits.h>
2016#else
2017# include <assert.h>
2018#endif
a04eba3f 2019
57aa50d4 2020#undef $2
07a0db15 2021
57aa50d4
TT
2022/* Override any GCC internal prototype to avoid an error.
2023 Use char because int might match the return type of a GCC
2024 builtin and then its argument prototype would still apply. */
2025#ifdef __cplusplus
2026extern "C"
2027#endif
2028char $2 ();
2029/* The GNU C library defines this for functions which it implements
2030 to always fail with ENOSYS. Some functions are actually named
2031 something starting with __ and the normal name is an alias. */
2032#if defined __stub_$2 || defined __stub___$2
2033choke me
2034#endif
74becf3c 2035
57aa50d4
TT
2036int
2037main ()
2038{
2039return $2 ();
2040 ;
2041 return 0;
2042}
2043_ACEOF
2044if ac_fn_c_try_link "$LINENO"; then :
2045 eval "$3=yes"
2046else
2047 eval "$3=no"
2048fi
2049rm -f core conftest.err conftest.$ac_objext \
2050 conftest$ac_exeext conftest.$ac_ext
2051fi
2052eval ac_res=\$$3
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2054$as_echo "$ac_res" >&6; }
d6a4bcb5 2055 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
93636bde 2056
57aa50d4 2057} # ac_fn_c_check_func
93636bde 2058
93613951
TT
2059# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2060# ---------------------------------------------
2061# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
d1154eb4 2062# accordingly.
93613951 2063ac_fn_c_check_decl ()
d1154eb4
TT
2064{
2065 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
93613951
TT
2066 as_decl_name=`echo $2|sed 's/ *(.*//'`
2067 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2069$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
d6a4bcb5 2070if eval \${$3+:} false; then :
d1154eb4 2071 $as_echo_n "(cached) " >&6
d1154eb4 2072else
93613951 2073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d1154eb4
TT
2074/* end confdefs.h. */
2075$4
93613951
TT
2076int
2077main ()
2078{
2079#ifndef $as_decl_name
2080#ifdef __cplusplus
2081 (void) $as_decl_use;
2082#else
2083 (void) $as_decl_name;
2084#endif
2085#endif
2086
2087 ;
2088 return 0;
2089}
d1154eb4
TT
2090_ACEOF
2091if ac_fn_c_try_compile "$LINENO"; then :
93613951 2092 eval "$3=yes"
d1154eb4 2093else
93613951 2094 eval "$3=no"
d1154eb4
TT
2095fi
2096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d1154eb4
TT
2097fi
2098eval ac_res=\$$3
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2100$as_echo "$ac_res" >&6; }
d6a4bcb5 2101 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
d1154eb4 2102
93613951 2103} # ac_fn_c_check_decl
d1154eb4 2104
57aa50d4
TT
2105# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2106# --------------------------------------------
2107# Tries to find the compile-time value of EXPR in a program that includes
2108# INCLUDES, setting VAR accordingly. Returns whether the value could be
2109# computed
2110ac_fn_c_compute_int ()
2111{
2112 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2113 if test "$cross_compiling" = yes; then
2114 # Depending upon the size, compute the lo and hi bounds.
2115cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2116/* end confdefs.h. */
2117$4
2118int
2119main ()
2120{
2121static int test_array [1 - 2 * !(($2) >= 0)];
d6a4bcb5
TB
2122test_array [0] = 0;
2123return test_array [0];
93636bde 2124
57aa50d4
TT
2125 ;
2126 return 0;
2127}
2128_ACEOF
2129if ac_fn_c_try_compile "$LINENO"; then :
2130 ac_lo=0 ac_mid=0
2131 while :; do
2132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2133/* end confdefs.h. */
2134$4
2135int
2136main ()
2137{
2138static int test_array [1 - 2 * !(($2) <= $ac_mid)];
d6a4bcb5
TB
2139test_array [0] = 0;
2140return test_array [0];
93636bde 2141
57aa50d4
TT
2142 ;
2143 return 0;
2144}
2145_ACEOF
2146if ac_fn_c_try_compile "$LINENO"; then :
2147 ac_hi=$ac_mid; break
2148else
2149 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2150 if test $ac_lo -le $ac_mid; then
2151 ac_lo= ac_hi=
2152 break
2153 fi
2154 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
b0cacab0 2155fi
57aa50d4
TT
2156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2157 done
2158else
2159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2160/* end confdefs.h. */
2161$4
2162int
2163main ()
2164{
2165static int test_array [1 - 2 * !(($2) < 0)];
d6a4bcb5
TB
2166test_array [0] = 0;
2167return test_array [0];
e1052144 2168
57aa50d4
TT
2169 ;
2170 return 0;
2171}
2172_ACEOF
2173if ac_fn_c_try_compile "$LINENO"; then :
2174 ac_hi=-1 ac_mid=-1
2175 while :; do
2176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2177/* end confdefs.h. */
2178$4
2179int
2180main ()
2181{
2182static int test_array [1 - 2 * !(($2) >= $ac_mid)];
d6a4bcb5
TB
2183test_array [0] = 0;
2184return test_array [0];
93636bde 2185
57aa50d4
TT
2186 ;
2187 return 0;
2188}
2189_ACEOF
2190if ac_fn_c_try_compile "$LINENO"; then :
2191 ac_lo=$ac_mid; break
93636bde 2192else
57aa50d4
TT
2193 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2194 if test $ac_mid -le $ac_hi; then
2195 ac_lo= ac_hi=
2196 break
2197 fi
2198 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
93636bde 2199fi
57aa50d4
TT
2200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2201 done
2202else
2203 ac_lo= ac_hi=
2204fi
2205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2206fi
2207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2208# Binary search between lo and hi bounds.
2209while test "x$ac_lo" != "x$ac_hi"; do
2210 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2212/* end confdefs.h. */
2213$4
2214int
2215main ()
2216{
2217static int test_array [1 - 2 * !(($2) <= $ac_mid)];
d6a4bcb5
TB
2218test_array [0] = 0;
2219return test_array [0];
93636bde 2220
57aa50d4
TT
2221 ;
2222 return 0;
2223}
2224_ACEOF
2225if ac_fn_c_try_compile "$LINENO"; then :
2226 ac_hi=$ac_mid
2227else
2228 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2229fi
2230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2231done
2232case $ac_lo in #((
2233?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2234'') ac_retval=1 ;;
927566a3 2235esac
57aa50d4
TT
2236 else
2237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2238/* end confdefs.h. */
2239$4
2240static long int longval () { return $2; }
2241static unsigned long int ulongval () { return $2; }
2242#include <stdio.h>
2243#include <stdlib.h>
2244int
2245main ()
2246{
927566a3 2247
57aa50d4
TT
2248 FILE *f = fopen ("conftest.val", "w");
2249 if (! f)
2250 return 1;
2251 if (($2) < 0)
2252 {
2253 long int i = longval ();
2254 if (i != ($2))
2255 return 1;
2256 fprintf (f, "%ld", i);
2257 }
2258 else
2259 {
2260 unsigned long int i = ulongval ();
2261 if (i != ($2))
2262 return 1;
2263 fprintf (f, "%lu", i);
2264 }
2265 /* Do not output a trailing newline, as this causes \r\n confusion
2266 on some platforms. */
2267 return ferror (f) || fclose (f) != 0;
93636bde 2268
57aa50d4
TT
2269 ;
2270 return 0;
2271}
2272_ACEOF
2273if ac_fn_c_try_run "$LINENO"; then :
2274 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2275else
2276 ac_retval=1
2277fi
2278rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2279 conftest.$ac_objext conftest.beam conftest.$ac_ext
2280rm -f conftest.val
93636bde 2281
57aa50d4 2282 fi
d6a4bcb5 2283 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
61ef2474 2284 as_fn_set_status $ac_retval
927566a3 2285
57aa50d4 2286} # ac_fn_c_compute_int
b0cacab0 2287
57aa50d4
TT
2288# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2289# ----------------------------------------------------
2290# Tries to find if the field MEMBER exists in type AGGR, after including
2291# INCLUDES, setting cache variable VAR accordingly.
2292ac_fn_c_check_member ()
2293{
2294 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2296$as_echo_n "checking for $2.$3... " >&6; }
d6a4bcb5 2297if eval \${$4+:} false; then :
39fd3d4f 2298 $as_echo_n "(cached) " >&6
b0cacab0 2299else
57aa50d4
TT
2300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2301/* end confdefs.h. */
2302$5
2303int
2304main ()
2305{
2306static $2 ac_aggr;
2307if (ac_aggr.$3)
2308return 0;
2309 ;
2310 return 0;
2311}
2312_ACEOF
2313if ac_fn_c_try_compile "$LINENO"; then :
2314 eval "$4=yes"
2315else
2316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2317/* end confdefs.h. */
2318$5
2319int
2320main ()
2321{
2322static $2 ac_aggr;
2323if (sizeof ac_aggr.$3)
2324return 0;
2325 ;
2326 return 0;
2327}
2328_ACEOF
2329if ac_fn_c_try_compile "$LINENO"; then :
2330 eval "$4=yes"
2331else
2332 eval "$4=no"
b0cacab0 2333fi
57aa50d4
TT
2334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2335fi
2336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2337fi
2338eval ac_res=\$$4
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2340$as_echo "$ac_res" >&6; }
d6a4bcb5 2341 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
e1052144 2342
57aa50d4 2343} # ac_fn_c_check_member
57aa50d4
TT
2344cat >config.log <<_ACEOF
2345This file contains any messages produced by compilers while
2346running configure, to aid debugging if configure makes a mistake.
93636bde 2347
57aa50d4 2348It was created by $as_me, which was
d6a4bcb5 2349generated by GNU Autoconf 2.69. Invocation command line was
07a0db15 2350
57aa50d4 2351 $ $0 $@
e1052144 2352
57aa50d4
TT
2353_ACEOF
2354exec 5>>config.log
2355{
2356cat <<_ASUNAME
2357## --------- ##
2358## Platform. ##
2359## --------- ##
0b5b9f90 2360
57aa50d4
TT
2361hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2362uname -m = `(uname -m) 2>/dev/null || echo unknown`
2363uname -r = `(uname -r) 2>/dev/null || echo unknown`
2364uname -s = `(uname -s) 2>/dev/null || echo unknown`
2365uname -v = `(uname -v) 2>/dev/null || echo unknown`
0b5b9f90 2366
57aa50d4
TT
2367/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2368/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
0b5b9f90 2369
57aa50d4
TT
2370/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2371/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2372/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2373/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2374/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2375/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2376/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
0b5b9f90 2377
57aa50d4 2378_ASUNAME
b0cacab0 2379
b0cacab0
TT
2380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2381for as_dir in $PATH
2382do
2383 IFS=$as_save_IFS
2384 test -z "$as_dir" && as_dir=.
57aa50d4
TT
2385 $as_echo "PATH: $as_dir"
2386 done
e1052144 2387IFS=$as_save_IFS
b0cacab0 2388
57aa50d4 2389} >&5
74becf3c 2390
57aa50d4 2391cat >&5 <<_ACEOF
e1052144 2392
b0cacab0 2393
57aa50d4
TT
2394## ----------- ##
2395## Core tests. ##
2396## ----------- ##
b0cacab0 2397
57aa50d4 2398_ACEOF
b0cacab0 2399
57aa50d4
TT
2400
2401# Keep a trace of the command line.
2402# Strip out --no-create and --no-recursion so they do not pile up.
2403# Strip out --silent because we don't want to record it for future runs.
2404# Also quote any args containing shell meta-characters.
2405# Make two passes to allow for proper duplicate-argument suppression.
2406ac_configure_args=
2407ac_configure_args0=
2408ac_configure_args1=
2409ac_must_keep_next=false
2410for ac_pass in 1 2
b0cacab0 2411do
57aa50d4
TT
2412 for ac_arg
2413 do
2414 case $ac_arg in
2415 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2416 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2417 | -silent | --silent | --silen | --sile | --sil)
2418 continue ;;
2419 *\'*)
2420 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2421 esac
2422 case $ac_pass in
2423 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2424 2)
2425 as_fn_append ac_configure_args1 " '$ac_arg'"
2426 if test $ac_must_keep_next = true; then
2427 ac_must_keep_next=false # Got value, back to normal.
2428 else
2429 case $ac_arg in
2430 *=* | --config-cache | -C | -disable-* | --disable-* \
2431 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2432 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2433 | -with-* | --with-* | -without-* | --without-* | --x)
2434 case "$ac_configure_args0 " in
2435 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2436 esac
2437 ;;
2438 -* ) ac_must_keep_next=true ;;
2439 esac
2440 fi
2441 as_fn_append ac_configure_args " '$ac_arg'"
2442 ;;
2443 esac
2444 done
b0cacab0 2445done
57aa50d4
TT
2446{ ac_configure_args0=; unset ac_configure_args0;}
2447{ ac_configure_args1=; unset ac_configure_args1;}
2448
2449# When interrupted or exit'd, cleanup temporary files, and complete
2450# config.log. We remove comments because anyway the quotes in there
2451# would cause problems or look ugly.
2452# WARNING: Use '\'' to represent an apostrophe within the trap.
2453# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2454trap 'exit_status=$?
2455 # Save into config.log some information that might help in debugging.
2456 {
2457 echo
2458
d6a4bcb5 2459 $as_echo "## ---------------- ##
57aa50d4 2460## Cache variables. ##
d6a4bcb5 2461## ---------------- ##"
57aa50d4
TT
2462 echo
2463 # The following way of writing the cache mishandles newlines in values,
2464(
2465 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2466 eval ac_val=\$$ac_var
2467 case $ac_val in #(
2468 *${as_nl}*)
2469 case $ac_var in #(
2470 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2471$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2472 esac
2473 case $ac_var in #(
2474 _ | IFS | as_nl) ;; #(
2475 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2476 *) { eval $ac_var=; unset $ac_var;} ;;
2477 esac ;;
2478 esac
2479 done
2480 (set) 2>&1 |
2481 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2482 *${as_nl}ac_space=\ *)
2483 sed -n \
2484 "s/'\''/'\''\\\\'\'''\''/g;
2485 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2486 ;; #(
2487 *)
2488 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2489 ;;
2490 esac |
2491 sort
2492)
2493 echo
2494
d6a4bcb5 2495 $as_echo "## ----------------- ##
57aa50d4 2496## Output variables. ##
d6a4bcb5 2497## ----------------- ##"
57aa50d4
TT
2498 echo
2499 for ac_var in $ac_subst_vars
2500 do
2501 eval ac_val=\$$ac_var
2502 case $ac_val in
2503 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2504 esac
2505 $as_echo "$ac_var='\''$ac_val'\''"
2506 done | sort
2507 echo
2508
2509 if test -n "$ac_subst_files"; then
d6a4bcb5 2510 $as_echo "## ------------------- ##
57aa50d4 2511## File substitutions. ##
d6a4bcb5 2512## ------------------- ##"
57aa50d4
TT
2513 echo
2514 for ac_var in $ac_subst_files
2515 do
2516 eval ac_val=\$$ac_var
2517 case $ac_val in
2518 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2519 esac
2520 $as_echo "$ac_var='\''$ac_val'\''"
2521 done | sort
2522 echo
2523 fi
2524
2525 if test -s confdefs.h; then
d6a4bcb5 2526 $as_echo "## ----------- ##
57aa50d4 2527## confdefs.h. ##
d6a4bcb5 2528## ----------- ##"
57aa50d4
TT
2529 echo
2530 cat confdefs.h
2531 echo
2532 fi
2533 test "$ac_signal" != 0 &&
2534 $as_echo "$as_me: caught signal $ac_signal"
2535 $as_echo "$as_me: exit $exit_status"
2536 } >&5
2537 rm -f core *.core core.conftest.* &&
2538 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2539 exit $exit_status
2540' 0
2541for ac_signal in 1 2 13 15; do
2542 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
b0cacab0 2543done
57aa50d4 2544ac_signal=0
b0cacab0 2545
57aa50d4
TT
2546# confdefs.h avoids OS command line length limits that DEFS can exceed.
2547rm -f -r conftest* confdefs.h
b0cacab0 2548
57aa50d4 2549$as_echo "/* confdefs.h */" > confdefs.h
73ae2d4a 2550
57aa50d4
TT
2551# Predefined preprocessor variables.
2552
2553cat >>confdefs.h <<_ACEOF
2554#define PACKAGE_NAME "$PACKAGE_NAME"
2555_ACEOF
2556
2557cat >>confdefs.h <<_ACEOF
2558#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2559_ACEOF
2560
2561cat >>confdefs.h <<_ACEOF
2562#define PACKAGE_VERSION "$PACKAGE_VERSION"
2563_ACEOF
2564
2565cat >>confdefs.h <<_ACEOF
2566#define PACKAGE_STRING "$PACKAGE_STRING"
2567_ACEOF
2568
2569cat >>confdefs.h <<_ACEOF
2570#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2571_ACEOF
2572
2573cat >>confdefs.h <<_ACEOF
2574#define PACKAGE_URL "$PACKAGE_URL"
2575_ACEOF
2576
2577
2578# Let the site file select an alternate cache file if it wants to.
2579# Prefer an explicitly selected file to automatically selected ones.
2580ac_site_file1=NONE
2581ac_site_file2=NONE
2582if test -n "$CONFIG_SITE"; then
d6a4bcb5
TB
2583 # We do not want a PATH search for config.site.
2584 case $CONFIG_SITE in #((
2585 -*) ac_site_file1=./$CONFIG_SITE;;
2586 */*) ac_site_file1=$CONFIG_SITE;;
2587 *) ac_site_file1=./$CONFIG_SITE;;
2588 esac
57aa50d4
TT
2589elif test "x$prefix" != xNONE; then
2590 ac_site_file1=$prefix/share/config.site
2591 ac_site_file2=$prefix/etc/config.site
73ae2d4a 2592else
57aa50d4
TT
2593 ac_site_file1=$ac_default_prefix/share/config.site
2594 ac_site_file2=$ac_default_prefix/etc/config.site
2595fi
2596for ac_site_file in "$ac_site_file1" "$ac_site_file2"
b0cacab0 2597do
57aa50d4 2598 test "x$ac_site_file" = xNONE && continue
61ef2474 2599 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
57aa50d4
TT
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2601$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2602 sed 's/^/| /' "$ac_site_file" >&5
d6a4bcb5
TB
2603 . "$ac_site_file" \
2604 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2605$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2606as_fn_error $? "failed to load site script $ac_site_file
2607See \`config.log' for more details" "$LINENO" 5; }
b0cacab0
TT
2608 fi
2609done
b0cacab0 2610
57aa50d4 2611if test -r "$cache_file"; then
61ef2474
TT
2612 # Some versions of bash will fail to source /dev/null (special files
2613 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2614 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
57aa50d4
TT
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2616$as_echo "$as_me: loading cache $cache_file" >&6;}
2617 case $cache_file in
2618 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2619 *) . "./$cache_file";;
2620 esac
73ae2d4a 2621 fi
57aa50d4
TT
2622else
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2624$as_echo "$as_me: creating cache $cache_file" >&6;}
2625 >$cache_file
73ae2d4a 2626fi
57aa50d4 2627
93613951 2628gt_needs="$gt_needs "
61ef2474
TT
2629as_fn_append ac_header_list " stdlib.h"
2630as_fn_append ac_header_list " unistd.h"
2631as_fn_append ac_header_list " sys/param.h"
93613951 2632as_fn_append ac_func_list " symlink"
57aa50d4
TT
2633# Check that the precious variables saved in the cache have kept the same
2634# value.
2635ac_cache_corrupted=false
2636for ac_var in $ac_precious_vars; do
2637 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2638 eval ac_new_set=\$ac_env_${ac_var}_set
2639 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2640 eval ac_new_val=\$ac_env_${ac_var}_value
2641 case $ac_old_set,$ac_new_set in
2642 set,)
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2644$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2645 ac_cache_corrupted=: ;;
2646 ,set)
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2648$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2649 ac_cache_corrupted=: ;;
2650 ,);;
2651 *)
2652 if test "x$ac_old_val" != "x$ac_new_val"; then
2653 # differences in whitespace do not lead to failure.
2654 ac_old_val_w=`echo x $ac_old_val`
2655 ac_new_val_w=`echo x $ac_new_val`
2656 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2658$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2659 ac_cache_corrupted=:
2660 else
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2662$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2663 eval $ac_var=\$ac_old_val
2664 fi
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2666$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2668$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2669 fi;;
2670 esac
2671 # Pass precious variables to config.status.
2672 if test "$ac_new_set" = set; then
2673 case $ac_new_val in
2674 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2675 *) ac_arg=$ac_var=$ac_new_val ;;
2676 esac
2677 case " $ac_configure_args " in
2678 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2679 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2680 esac
2681 fi
2682done
2683if $ac_cache_corrupted; then
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2685$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2686 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2687$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
d6a4bcb5 2688 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
73ae2d4a 2689fi
57aa50d4
TT
2690## -------------------- ##
2691## Main body of script. ##
2692## -------------------- ##
2693
2694ac_ext=c
2695ac_cpp='$CPP $CPPFLAGS'
2696ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2697ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2698ac_compiler_gnu=$ac_cv_c_compiler_gnu
2699
2700
2701
2702ac_aux_dir=
2703for ac_dir in config "$srcdir"/config; do
d6a4bcb5
TB
2704 if test -f "$ac_dir/install-sh"; then
2705 ac_aux_dir=$ac_dir
2706 ac_install_sh="$ac_aux_dir/install-sh -c"
2707 break
2708 elif test -f "$ac_dir/install.sh"; then
2709 ac_aux_dir=$ac_dir
2710 ac_install_sh="$ac_aux_dir/install.sh -c"
2711 break
2712 elif test -f "$ac_dir/shtool"; then
2713 ac_aux_dir=$ac_dir
2714 ac_install_sh="$ac_aux_dir/shtool install -c"
2715 break
2716 fi
57aa50d4
TT
2717done
2718if test -z "$ac_aux_dir"; then
d6a4bcb5 2719 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
73ae2d4a 2720fi
57aa50d4
TT
2721
2722# These three variables are undocumented and unsupported,
2723# and are intended to be withdrawn in a future Autoconf release.
2724# They can cause serious problems if a builder's source tree is in a directory
2725# whose full name contains unusual characters.
2726ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2727ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2728ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2729
2730
d1154eb4
TT
2731ac_config_headers="$ac_config_headers lib/config.h"
2732
2733
57aa50d4
TT
2734MCONFIG=./MCONFIG
2735
2736BINARY_TYPE=bin
2737E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
2738 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2739DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2740 | tr \" " "`
2741E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'`
2742MONTH=`echo $DATE | awk -F- '{print $2}'`
2743YEAR=`echo $DATE | awk -F- '{print $3}'`
2744
2745if expr $YEAR ">" 1900 > /dev/null ; then
2746 E2FSPROGS_YEAR=$YEAR
2747elif expr $YEAR ">" 90 >/dev/null ; then
2748 E2FSPROGS_YEAR=19$YEAR
73ae2d4a 2749else
57aa50d4
TT
2750 E2FSPROGS_YEAR=20$YEAR
2751fi
2752
2753case $MONTH in
2754Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2755Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2756Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2757Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2758May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2759Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2760Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2761Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2762Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2763Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2764Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2765Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
2766*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
2767$as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
2768esac
2769
2770base_ver=`echo $E2FSPROGS_VERSION | \
2771 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
2772
2773date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2774
2775case $E2FSPROGS_VERSION in
2776*-WIP|pre-*)
2777 E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY"
2778 ;;
2779*)
2780 E2FSPROGS_PKGVER="$base_ver"
2781 ;;
2782esac
2783
2784unset DATE MONTH YEAR base_ver pre_vers date_spec
2785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2786$as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2788$as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
2789
2790
2791
2792
2793
6c59a665
TT
2794WITH_DIET_LIBC=
2795
2796# Check whether --with-diet-libc was given.
2797if test "${with_diet_libc+set}" = set; then :
2798 withval=$with_diet_libc; CC="diet cc -nostdinc"
2799WITH_DIET_LIBC=yes
2800if test -z "$LIBS"
2801then
2802 LIBS="-lcompat"
2803else
2804 LIBS="$LIBS -lcompat"
2805fi
2806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
2807$as_echo "CC=$CC" >&6; }
2808fi
57aa50d4
TT
2809# Make sure we can run config.sub.
2810$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
d6a4bcb5 2811 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
57aa50d4
TT
2812
2813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2814$as_echo_n "checking build system type... " >&6; }
d6a4bcb5 2815if ${ac_cv_build+:} false; then :
57aa50d4
TT
2816 $as_echo_n "(cached) " >&6
2817else
2818 ac_build_alias=$build_alias
2819test "x$ac_build_alias" = x &&
2820 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2821test "x$ac_build_alias" = x &&
d6a4bcb5 2822 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
57aa50d4 2823ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
d6a4bcb5 2824 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
57aa50d4 2825
73ae2d4a 2826fi
57aa50d4
TT
2827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2828$as_echo "$ac_cv_build" >&6; }
2829case $ac_cv_build in
2830*-*-*) ;;
d6a4bcb5 2831*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
57aa50d4
TT
2832esac
2833build=$ac_cv_build
2834ac_save_IFS=$IFS; IFS='-'
2835set x $ac_cv_build
2836shift
2837build_cpu=$1
2838build_vendor=$2
2839shift; shift
2840# Remember, the first character of IFS is used to create $*,
2841# except with old shells:
2842build_os=$*
2843IFS=$ac_save_IFS
2844case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
73ae2d4a 2845
e1052144 2846
57aa50d4
TT
2847{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2848$as_echo_n "checking host system type... " >&6; }
d6a4bcb5 2849if ${ac_cv_host+:} false; then :
57aa50d4
TT
2850 $as_echo_n "(cached) " >&6
2851else
2852 if test "x$host_alias" = x; then
2853 ac_cv_host=$ac_cv_build
2854else
2855 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
d6a4bcb5 2856 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
b0cacab0 2857fi
57aa50d4
TT
2858
2859fi
2860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2861$as_echo "$ac_cv_host" >&6; }
2862case $ac_cv_host in
2863*-*-*) ;;
d6a4bcb5 2864*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
57aa50d4
TT
2865esac
2866host=$ac_cv_host
2867ac_save_IFS=$IFS; IFS='-'
2868set x $ac_cv_host
2869shift
2870host_cpu=$1
2871host_vendor=$2
2872shift; shift
2873# Remember, the first character of IFS is used to create $*,
2874# except with old shells:
2875host_os=$*
2876IFS=$ac_save_IFS
2877case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2878
2879
2880DLOPEN_LIB=''
2881ac_ext=c
2882ac_cpp='$CPP $CPPFLAGS'
2883ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2884ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2885ac_compiler_gnu=$ac_cv_c_compiler_gnu
2886if test -n "$ac_tool_prefix"; then
2887 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2888set dummy ${ac_tool_prefix}gcc; ac_word=$2
2889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39fd3d4f 2890$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 2891if ${ac_cv_prog_CC+:} false; then :
39fd3d4f 2892 $as_echo_n "(cached) " >&6
73ae2d4a
TT
2893else
2894 if test -n "$CC"; then
2895 ac_cv_prog_CC="$CC" # Let the user override the test.
2896else
b0cacab0
TT
2897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2898for as_dir in $PATH
2899do
2900 IFS=$as_save_IFS
2901 test -z "$as_dir" && as_dir=.
57aa50d4 2902 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 2903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
2904 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b0cacab0
TT
2906 break 2
2907 fi
2908done
57aa50d4 2909 done
e1052144 2910IFS=$as_save_IFS
b0cacab0 2911
73ae2d4a
TT
2912fi
2913fi
b0cacab0 2914CC=$ac_cv_prog_CC
73ae2d4a 2915if test -n "$CC"; then
57aa50d4 2916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
39fd3d4f 2917$as_echo "$CC" >&6; }
73ae2d4a 2918else
57aa50d4 2919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39fd3d4f 2920$as_echo "no" >&6; }
73ae2d4a 2921fi
b0cacab0 2922
e1052144 2923
b0cacab0 2924fi
57aa50d4 2925if test -z "$ac_cv_prog_CC"; then
b0cacab0 2926 ac_ct_CC=$CC
57aa50d4
TT
2927 # Extract the first word of "gcc", so it can be a program name with args.
2928set dummy gcc; ac_word=$2
2929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39fd3d4f 2930$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 2931if ${ac_cv_prog_ac_ct_CC+:} false; then :
39fd3d4f 2932 $as_echo_n "(cached) " >&6
b0cacab0
TT
2933else
2934 if test -n "$ac_ct_CC"; then
2935 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2936else
2937as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2938for as_dir in $PATH
2939do
2940 IFS=$as_save_IFS
2941 test -z "$as_dir" && as_dir=.
57aa50d4 2942 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 2943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
2944 ac_cv_prog_ac_ct_CC="gcc"
2945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b0cacab0 2946 break 2
93636bde 2947 fi
b0cacab0 2948done
57aa50d4 2949 done
e1052144 2950IFS=$as_save_IFS
b0cacab0
TT
2951
2952fi
2953fi
2954ac_ct_CC=$ac_cv_prog_ac_ct_CC
2955if test -n "$ac_ct_CC"; then
57aa50d4 2956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
39fd3d4f 2957$as_echo "$ac_ct_CC" >&6; }
b0cacab0 2958else
57aa50d4 2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39fd3d4f 2960$as_echo "no" >&6; }
07a0db15 2961fi
73ae2d4a 2962
e1052144
TT
2963 if test "x$ac_ct_CC" = x; then
2964 CC=""
2965 else
2966 case $cross_compiling:$ac_tool_warned in
2967yes:)
57aa50d4 2968{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
39fd3d4f 2969$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
e1052144
TT
2970ac_tool_warned=yes ;;
2971esac
2972 CC=$ac_ct_CC
2973 fi
57aa50d4
TT
2974else
2975 CC="$ac_cv_prog_CC"
b0cacab0
TT
2976fi
2977
57aa50d4
TT
2978if test -z "$CC"; then
2979 if test -n "$ac_tool_prefix"; then
2980 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2981set dummy ${ac_tool_prefix}cc; ac_word=$2
2982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2983$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 2984if ${ac_cv_prog_CC+:} false; then :
57aa50d4
TT
2985 $as_echo_n "(cached) " >&6
2986else
2987 if test -n "$CC"; then
2988 ac_cv_prog_CC="$CC" # Let the user override the test.
2989else
2990as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2991for as_dir in $PATH
2992do
2993 IFS=$as_save_IFS
2994 test -z "$as_dir" && as_dir=.
2995 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 2996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
2997 ac_cv_prog_CC="${ac_tool_prefix}cc"
2998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2999 break 2
3000 fi
3001done
3002 done
3003IFS=$as_save_IFS
3004
3005fi
3006fi
3007CC=$ac_cv_prog_CC
3008if test -n "$CC"; then
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3010$as_echo "$CC" >&6; }
3011else
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3013$as_echo "no" >&6; }
3014fi
3015
3016
3017 fi
3018fi
3019if test -z "$CC"; then
3020 # Extract the first word of "cc", so it can be a program name with args.
3021set dummy cc; ac_word=$2
3022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3023$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 3024if ${ac_cv_prog_CC+:} false; then :
57aa50d4
TT
3025 $as_echo_n "(cached) " >&6
3026else
3027 if test -n "$CC"; then
3028 ac_cv_prog_CC="$CC" # Let the user override the test.
3029else
3030 ac_prog_rejected=no
3031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3032for as_dir in $PATH
3033do
3034 IFS=$as_save_IFS
3035 test -z "$as_dir" && as_dir=.
3036 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 3037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
3038 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3039 ac_prog_rejected=yes
3040 continue
3041 fi
3042 ac_cv_prog_CC="cc"
3043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3044 break 2
3045 fi
3046done
3047 done
3048IFS=$as_save_IFS
3049
3050if test $ac_prog_rejected = yes; then
3051 # We found a bogon in the path, so make sure we never use it.
3052 set dummy $ac_cv_prog_CC
3053 shift
3054 if test $# != 0; then
3055 # We chose a different compiler from the bogus one.
3056 # However, it has the same basename, so the bogon will be chosen
3057 # first if we set CC to just the basename; use the full file name.
3058 shift
3059 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3060 fi
3061fi
3062fi
3063fi
3064CC=$ac_cv_prog_CC
3065if test -n "$CC"; then
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3067$as_echo "$CC" >&6; }
3068else
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3070$as_echo "no" >&6; }
3071fi
3072
3073
3074fi
3075if test -z "$CC"; then
3076 if test -n "$ac_tool_prefix"; then
3077 for ac_prog in cl.exe
3078 do
3079 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3080set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3082$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 3083if ${ac_cv_prog_CC+:} false; then :
57aa50d4
TT
3084 $as_echo_n "(cached) " >&6
3085else
3086 if test -n "$CC"; then
3087 ac_cv_prog_CC="$CC" # Let the user override the test.
3088else
3089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3090for as_dir in $PATH
3091do
3092 IFS=$as_save_IFS
3093 test -z "$as_dir" && as_dir=.
3094 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 3095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
3096 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3098 break 2
3099 fi
3100done
3101 done
3102IFS=$as_save_IFS
3103
3104fi
3105fi
3106CC=$ac_cv_prog_CC
3107if test -n "$CC"; then
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3109$as_echo "$CC" >&6; }
3110else
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3112$as_echo "no" >&6; }
3113fi
3114
3115
3116 test -n "$CC" && break
3117 done
3118fi
3119if test -z "$CC"; then
3120 ac_ct_CC=$CC
3121 for ac_prog in cl.exe
3122do
3123 # Extract the first word of "$ac_prog", so it can be a program name with args.
3124set dummy $ac_prog; ac_word=$2
3125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3126$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 3127if ${ac_cv_prog_ac_ct_CC+:} false; then :
57aa50d4
TT
3128 $as_echo_n "(cached) " >&6
3129else
3130 if test -n "$ac_ct_CC"; then
3131 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3132else
3133as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3134for as_dir in $PATH
3135do
3136 IFS=$as_save_IFS
3137 test -z "$as_dir" && as_dir=.
3138 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 3139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
3140 ac_cv_prog_ac_ct_CC="$ac_prog"
3141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3142 break 2
3143 fi
3144done
3145 done
3146IFS=$as_save_IFS
3147
3148fi
3149fi
3150ac_ct_CC=$ac_cv_prog_ac_ct_CC
3151if test -n "$ac_ct_CC"; then
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3153$as_echo "$ac_ct_CC" >&6; }
3154else
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3156$as_echo "no" >&6; }
3157fi
3158
3159
3160 test -n "$ac_ct_CC" && break
3161done
3162
3163 if test "x$ac_ct_CC" = x; then
3164 CC=""
3165 else
3166 case $cross_compiling:$ac_tool_warned in
3167yes:)
3168{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3169$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3170ac_tool_warned=yes ;;
3171esac
3172 CC=$ac_ct_CC
3173 fi
3174fi
3175
3176fi
3177
3178
3179test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3180$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d6a4bcb5
TB
3181as_fn_error $? "no acceptable C compiler found in \$PATH
3182See \`config.log' for more details" "$LINENO" 5; }
b0cacab0
TT
3183
3184# Provide some information about the compiler.
57aa50d4 3185$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
39fd3d4f
SJR
3186set X $ac_compile
3187ac_compiler=$2
57aa50d4
TT
3188for ac_option in --version -v -V -qversion; do
3189 { { ac_try="$ac_compiler $ac_option >&5"
e1052144
TT
3190case "(($ac_try" in
3191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3192 *) ac_try_echo=$ac_try;;
3193esac
57aa50d4
TT
3194eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3195$as_echo "$ac_try_echo"; } >&5
3196 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
b0cacab0 3197 ac_status=$?
57aa50d4
TT
3198 if test -s conftest.err; then
3199 sed '10a\
3200... rest of stderr output deleted ...
3201 10q' conftest.err >conftest.er1
3202 cat conftest.er1 >&5
57aa50d4 3203 fi
61ef2474 3204 rm -f conftest.er1 conftest.err
57aa50d4
TT
3205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3206 test $ac_status = 0; }
3207done
b0cacab0 3208
57aa50d4 3209cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 3210/* end confdefs.h. */
61ef2474 3211
b0cacab0
TT
3212int
3213main ()
3214{
3215
3216 ;
3217 return 0;
3218}
3219_ACEOF
3220ac_clean_files_save=$ac_clean_files
61ef2474 3221ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
b0cacab0
TT
3222# Try to create an executable without -o first, disregard a.out.
3223# It will help us diagnose broken compilers, and finding out an intuition
3224# of exeext.
61ef2474
TT
3225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3226$as_echo_n "checking whether the C compiler works... " >&6; }
39fd3d4f
SJR
3227ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3228
3229# The possible output files:
3230ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3231
e1052144
TT
3232ac_rmfiles=
3233for ac_file in $ac_files
3234do
3235 case $ac_file in
39fd3d4f 3236 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
e1052144
TT
3237 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3238 esac
3239done
3240rm -f $ac_rmfiles
3241
57aa50d4 3242if { { ac_try="$ac_link_default"
e1052144
TT
3243case "(($ac_try" in
3244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3245 *) ac_try_echo=$ac_try;;
3246esac
57aa50d4
TT
3247eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3248$as_echo "$ac_try_echo"; } >&5
e1052144 3249 (eval "$ac_link_default") 2>&5
b0cacab0 3250 ac_status=$?
57aa50d4
TT
3251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3252 test $ac_status = 0; }; then :
e1052144
TT
3253 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3254# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3255# in a Makefile. We should not override ac_cv_exeext if it was cached,
3256# so that the user can short-circuit this test for compilers unknown to
3257# Autoconf.
29a5deed 3258for ac_file in $ac_files ''
b0cacab0
TT
3259do
3260 test -f "$ac_file" || continue
3261 case $ac_file in
39fd3d4f 3262 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
b0cacab0
TT
3263 ;;
3264 [ab].out )
3265 # We found the default executable, but exeext='' is most
3266 # certainly right.
3267 break;;
3268 *.* )
57aa50d4 3269 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
e1052144
TT
3270 then :; else
3271 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3272 fi
3273 # We set ac_cv_exeext here because the later test for it is not
3274 # safe: cross compilers may not add the suffix if given an `-o'
3275 # argument, so we may need to know it at that point already.
3276 # Even if this section looks crufty: it has the advantage of
3277 # actually working.
b0cacab0
TT
3278 break;;
3279 * )
3280 break;;
3281 esac
3282done
e1052144
TT
3283test "$ac_cv_exeext" = no && ac_cv_exeext=
3284
b0cacab0 3285else
29a5deed
TT
3286 ac_file=''
3287fi
57aa50d4 3288if test -z "$ac_file"; then :
61ef2474
TT
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3290$as_echo "no" >&6; }
3291$as_echo "$as_me: failed program was:" >&5
b0cacab0
TT
3292sed 's/^/| /' conftest.$ac_ext >&5
3293
57aa50d4 3294{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39fd3d4f 3295$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d6a4bcb5
TB
3296as_fn_error 77 "C compiler cannot create executables
3297See \`config.log' for more details" "$LINENO" 5; }
61ef2474
TT
3298else
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3300$as_echo "yes" >&6; }
b0cacab0 3301fi
61ef2474
TT
3302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3303$as_echo_n "checking for C compiler default output file name... " >&6; }
3304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3305$as_echo "$ac_file" >&6; }
b0cacab0 3306ac_exeext=$ac_cv_exeext
b0cacab0 3307
61ef2474 3308rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
b0cacab0 3309ac_clean_files=$ac_clean_files_save
57aa50d4 3310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
39fd3d4f 3311$as_echo_n "checking for suffix of executables... " >&6; }
57aa50d4 3312if { { ac_try="$ac_link"
e1052144
TT
3313case "(($ac_try" in
3314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3315 *) ac_try_echo=$ac_try;;
3316esac
57aa50d4
TT
3317eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3318$as_echo "$ac_try_echo"; } >&5
e1052144 3319 (eval "$ac_link") 2>&5
b0cacab0 3320 ac_status=$?
57aa50d4
TT
3321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3322 test $ac_status = 0; }; then :
b0cacab0
TT
3323 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3324# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3325# work properly (i.e., refer to `conftest.exe'), while it won't with
3326# `rm'.
3327for ac_file in conftest.exe conftest conftest.*; do
3328 test -f "$ac_file" || continue
3329 case $ac_file in
39fd3d4f 3330 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
b0cacab0 3331 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
b0cacab0
TT
3332 break;;
3333 * ) break;;
3334 esac
3335done
73ae2d4a 3336else
57aa50d4 3337 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39fd3d4f 3338$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d6a4bcb5
TB
3339as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3340See \`config.log' for more details" "$LINENO" 5; }
73ae2d4a 3341fi
61ef2474 3342rm -f conftest conftest$ac_cv_exeext
57aa50d4 3343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
39fd3d4f 3344$as_echo "$ac_cv_exeext" >&6; }
73ae2d4a 3345
b0cacab0
TT
3346rm -f conftest.$ac_ext
3347EXEEXT=$ac_cv_exeext
3348ac_exeext=$EXEEXT
61ef2474
TT
3349cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3350/* end confdefs.h. */
3351#include <stdio.h>
3352int
3353main ()
3354{
3355FILE *f = fopen ("conftest.out", "w");
3356 return ferror (f) || fclose (f) != 0;
3357
3358 ;
3359 return 0;
3360}
3361_ACEOF
3362ac_clean_files="$ac_clean_files conftest.out"
3363# Check that the compiler produces executables we can run. If not, either
3364# the compiler is broken, or we cross compile.
3365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3366$as_echo_n "checking whether we are cross compiling... " >&6; }
3367if test "$cross_compiling" != yes; then
3368 { { ac_try="$ac_link"
3369case "(($ac_try" in
3370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3371 *) ac_try_echo=$ac_try;;
3372esac
3373eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3374$as_echo "$ac_try_echo"; } >&5
3375 (eval "$ac_link") 2>&5
3376 ac_status=$?
3377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3378 test $ac_status = 0; }
3379 if { ac_try='./conftest$ac_cv_exeext'
3380 { { case "(($ac_try" in
3381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3382 *) ac_try_echo=$ac_try;;
3383esac
3384eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3385$as_echo "$ac_try_echo"; } >&5
3386 (eval "$ac_try") 2>&5
3387 ac_status=$?
3388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3389 test $ac_status = 0; }; }; then
3390 cross_compiling=no
3391 else
3392 if test "$cross_compiling" = maybe; then
3393 cross_compiling=yes
3394 else
3395 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3396$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d6a4bcb5 3397as_fn_error $? "cannot run C compiled programs.
61ef2474 3398If you meant to cross compile, use \`--host'.
d6a4bcb5 3399See \`config.log' for more details" "$LINENO" 5; }
61ef2474
TT
3400 fi
3401 fi
3402fi
3403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3404$as_echo "$cross_compiling" >&6; }
3405
3406rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3407ac_clean_files=$ac_clean_files_save
57aa50d4 3408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
39fd3d4f 3409$as_echo_n "checking for suffix of object files... " >&6; }
d6a4bcb5 3410if ${ac_cv_objext+:} false; then :
39fd3d4f 3411 $as_echo_n "(cached) " >&6
73ae2d4a 3412else
57aa50d4 3413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 3414/* end confdefs.h. */
07a0db15 3415
b0cacab0
TT
3416int
3417main ()
3418{
07a0db15 3419
b0cacab0
TT
3420 ;
3421 return 0;
3422}
3423_ACEOF
3424rm -f conftest.o conftest.obj
57aa50d4 3425if { { ac_try="$ac_compile"
e1052144
TT
3426case "(($ac_try" in
3427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3428 *) ac_try_echo=$ac_try;;
3429esac
57aa50d4
TT
3430eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3431$as_echo "$ac_try_echo"; } >&5
e1052144 3432 (eval "$ac_compile") 2>&5
b0cacab0 3433 ac_status=$?
57aa50d4
TT
3434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3435 test $ac_status = 0; }; then :
e1052144
TT
3436 for ac_file in conftest.o conftest.obj conftest.*; do
3437 test -f "$ac_file" || continue;
b0cacab0 3438 case $ac_file in
39fd3d4f 3439 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
b0cacab0
TT
3440 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3441 break;;
3442 esac
3443done
93636bde 3444else
39fd3d4f 3445 $as_echo "$as_me: failed program was:" >&5
b0cacab0 3446sed 's/^/| /' conftest.$ac_ext >&5
07a0db15 3447
57aa50d4 3448{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39fd3d4f 3449$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d6a4bcb5
TB
3450as_fn_error $? "cannot compute suffix of object files: cannot compile
3451See \`config.log' for more details" "$LINENO" 5; }
73ae2d4a 3452fi
b0cacab0 3453rm -f conftest.$ac_cv_objext conftest.$ac_ext
73ae2d4a 3454fi
57aa50d4 3455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
39fd3d4f 3456$as_echo "$ac_cv_objext" >&6; }
b0cacab0
TT
3457OBJEXT=$ac_cv_objext
3458ac_objext=$OBJEXT
57aa50d4 3459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
39fd3d4f 3460$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d6a4bcb5 3461if ${ac_cv_c_compiler_gnu+:} false; then :
39fd3d4f 3462 $as_echo_n "(cached) " >&6
b0cacab0 3463else
57aa50d4 3464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0
TT
3465/* end confdefs.h. */
3466
3467int
3468main ()
3469{
3470#ifndef __GNUC__
3471 choke me
3472#endif
3473
3474 ;
3475 return 0;
3476}
3477_ACEOF
57aa50d4 3478if ac_fn_c_try_compile "$LINENO"; then :
b0cacab0
TT
3479 ac_compiler_gnu=yes
3480else
57aa50d4 3481 ac_compiler_gnu=no
b0cacab0 3482fi
e1052144 3483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b0cacab0
TT
3484ac_cv_c_compiler_gnu=$ac_compiler_gnu
3485
3486fi
57aa50d4 3487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
39fd3d4f
SJR
3488$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3489if test $ac_compiler_gnu = yes; then
3490 GCC=yes
3491else
3492 GCC=
3493fi
b0cacab0
TT
3494ac_test_CFLAGS=${CFLAGS+set}
3495ac_save_CFLAGS=$CFLAGS
57aa50d4 3496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
39fd3d4f 3497$as_echo_n "checking whether $CC accepts -g... " >&6; }
d6a4bcb5 3498if ${ac_cv_prog_cc_g+:} false; then :
39fd3d4f 3499 $as_echo_n "(cached) " >&6
b0cacab0 3500else
e1052144
TT
3501 ac_save_c_werror_flag=$ac_c_werror_flag
3502 ac_c_werror_flag=yes
3503 ac_cv_prog_cc_g=no
3504 CFLAGS="-g"
57aa50d4 3505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e1052144
TT
3506/* end confdefs.h. */
3507
3508int
3509main ()
3510{
3511
3512 ;
3513 return 0;
3514}
3515_ACEOF
57aa50d4 3516if ac_fn_c_try_compile "$LINENO"; then :
e1052144
TT
3517 ac_cv_prog_cc_g=yes
3518else
57aa50d4
TT
3519 CFLAGS=""
3520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e1052144
TT
3521/* end confdefs.h. */
3522
3523int
3524main ()
3525{
3526
3527 ;
3528 return 0;
3529}
3530_ACEOF
57aa50d4 3531if ac_fn_c_try_compile "$LINENO"; then :
e1052144 3532
57aa50d4
TT
3533else
3534 ac_c_werror_flag=$ac_save_c_werror_flag
e1052144 3535 CFLAGS="-g"
57aa50d4 3536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0
TT
3537/* end confdefs.h. */
3538
3539int
3540main ()
3541{
3542
3543 ;
3544 return 0;
3545}
3546_ACEOF
57aa50d4 3547if ac_fn_c_try_compile "$LINENO"; then :
b0cacab0 3548 ac_cv_prog_cc_g=yes
e1052144 3549fi
e1052144
TT
3550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3551fi
e1052144 3552rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b0cacab0 3553fi
e1052144
TT
3554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3555 ac_c_werror_flag=$ac_save_c_werror_flag
b0cacab0 3556fi
57aa50d4 3557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
39fd3d4f 3558$as_echo "$ac_cv_prog_cc_g" >&6; }
b0cacab0
TT
3559if test "$ac_test_CFLAGS" = set; then
3560 CFLAGS=$ac_save_CFLAGS
3561elif test $ac_cv_prog_cc_g = yes; then
3562 if test "$GCC" = yes; then
3563 CFLAGS="-g -O2"
3564 else
3565 CFLAGS="-g"
3566 fi
73ae2d4a
TT
3567else
3568 if test "$GCC" = yes; then
3569 CFLAGS="-O2"
3570 else
3571 CFLAGS=
3572 fi
3573fi
57aa50d4 3574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
39fd3d4f 3575$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
d6a4bcb5 3576if ${ac_cv_prog_cc_c89+:} false; then :
39fd3d4f 3577 $as_echo_n "(cached) " >&6
b0cacab0 3578else
e1052144 3579 ac_cv_prog_cc_c89=no
b0cacab0 3580ac_save_CC=$CC
57aa50d4 3581cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0
TT
3582/* end confdefs.h. */
3583#include <stdarg.h>
3584#include <stdio.h>
d6a4bcb5 3585struct stat;
b0cacab0
TT
3586/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3587struct buf { int x; };
3588FILE * (*rcsopen) (struct buf *, struct stat *, int);
3589static char *e (p, i)
3590 char **p;
3591 int i;
3592{
3593 return p[i];
3594}
3595static char *f (char * (*g) (char **, int), char **p, ...)
3596{
3597 char *s;
3598 va_list v;
3599 va_start (v,p);
3600 s = g (p, va_arg (v,int));
3601 va_end (v);
3602 return s;
3603}
3604
3605/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3606 function prototypes and stuff, but not '\xHH' hex character constants.
3607 These don't provoke an error unfortunately, instead are silently treated
e1052144 3608 as 'x'. The following induces an error, until -std is added to get
b0cacab0
TT
3609 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3610 array size at least. It's necessary to write '\x00'==0 to get something
e1052144 3611 that's true only with -std. */
b0cacab0
TT
3612int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3613
e1052144
TT
3614/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3615 inside strings and character constants. */
3616#define FOO(x) 'x'
3617int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3618
b0cacab0
TT
3619int test (int i, double x);
3620struct s1 {int (*f) (int a);};
3621struct s2 {int (*f) (double a);};
3622int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3623int argc;
3624char **argv;
3625int
3626main ()
3627{
3628return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3629 ;
3630 return 0;
3631}
3632_ACEOF
e1052144
TT
3633for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3634 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
b0cacab0
TT
3635do
3636 CC="$ac_save_CC $ac_arg"
57aa50d4 3637 if ac_fn_c_try_compile "$LINENO"; then :
e1052144 3638 ac_cv_prog_cc_c89=$ac_arg
b0cacab0 3639fi
e1052144
TT
3640rm -f core conftest.err conftest.$ac_objext
3641 test "x$ac_cv_prog_cc_c89" != "xno" && break
b0cacab0 3642done
e1052144 3643rm -f conftest.$ac_ext
b0cacab0
TT
3644CC=$ac_save_CC
3645
3646fi
e1052144
TT
3647# AC_CACHE_VAL
3648case "x$ac_cv_prog_cc_c89" in
3649 x)
57aa50d4 3650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
39fd3d4f 3651$as_echo "none needed" >&6; } ;;
e1052144 3652 xno)
57aa50d4 3653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
39fd3d4f 3654$as_echo "unsupported" >&6; } ;;
b0cacab0 3655 *)
e1052144 3656 CC="$CC $ac_cv_prog_cc_c89"
57aa50d4 3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
39fd3d4f 3658$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
b0cacab0 3659esac
57aa50d4 3660if test "x$ac_cv_prog_cc_c89" != xno; then :
b0cacab0 3661
57aa50d4 3662fi
b0cacab0 3663
b0cacab0
TT
3664ac_ext=c
3665ac_cpp='$CPP $CPPFLAGS'
3666ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3667ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3668ac_compiler_gnu=$ac_cv_c_compiler_gnu
3669
57aa50d4
TT
3670
3671{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3672$as_echo_n "checking for dlopen in -ldl... " >&6; }
d6a4bcb5 3673if ${ac_cv_lib_dl_dlopen+:} false; then :
39fd3d4f 3674 $as_echo_n "(cached) " >&6
b0cacab0 3675else
57aa50d4
TT
3676 ac_check_lib_save_LIBS=$LIBS
3677LIBS="-ldl $LIBS"
3678cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 3679/* end confdefs.h. */
57aa50d4
TT
3680
3681/* Override any GCC internal prototype to avoid an error.
3682 Use char because int might match the return type of a GCC
3683 builtin and then its argument prototype would still apply. */
3684#ifdef __cplusplus
3685extern "C"
b0cacab0 3686#endif
57aa50d4
TT
3687char dlopen ();
3688int
3689main ()
3690{
3691return dlopen ();
3692 ;
3693 return 0;
3694}
b0cacab0 3695_ACEOF
57aa50d4
TT
3696if ac_fn_c_try_link "$LINENO"; then :
3697 ac_cv_lib_dl_dlopen=yes
b0cacab0 3698else
57aa50d4 3699 ac_cv_lib_dl_dlopen=no
b0cacab0 3700fi
57aa50d4
TT
3701rm -f core conftest.err conftest.$ac_objext \
3702 conftest$ac_exeext conftest.$ac_ext
3703LIBS=$ac_check_lib_save_LIBS
b0cacab0 3704fi
57aa50d4
TT
3705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3706$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
d6a4bcb5 3707if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
57aa50d4 3708 DLOPEN_LIB=-ldl
d1154eb4 3709
57aa50d4 3710$as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
e1052144 3711
b0cacab0
TT
3712fi
3713
b0cacab0 3714
e1052144 3715
57aa50d4
TT
3716# Check whether --with-cc was given.
3717if test "${with_cc+set}" = set; then :
d6a4bcb5 3718 withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
57aa50d4 3719fi
b0cacab0 3720
b0cacab0 3721
57aa50d4
TT
3722# Check whether --with-ccopts was given.
3723if test "${with_ccopts+set}" = set; then :
d6a4bcb5 3724 withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
b0cacab0 3725fi
e1052144 3726
b0cacab0 3727
57aa50d4
TT
3728# Check whether --with-ldopts was given.
3729if test "${with_ldopts+set}" = set; then :
d6a4bcb5 3730 withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
b0cacab0
TT
3731fi
3732
3733ac_ext=c
3734ac_cpp='$CPP $CPPFLAGS'
3735ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3736ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3737ac_compiler_gnu=$ac_cv_c_compiler_gnu
57aa50d4
TT
3738if test -n "$ac_tool_prefix"; then
3739 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3740set dummy ${ac_tool_prefix}gcc; ac_word=$2
3741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3742$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 3743if ${ac_cv_prog_CC+:} false; then :
39fd3d4f 3744 $as_echo_n "(cached) " >&6
e1052144 3745else
57aa50d4
TT
3746 if test -n "$CC"; then
3747 ac_cv_prog_CC="$CC" # Let the user override the test.
3748else
3749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3750for as_dir in $PATH
e1052144
TT
3751do
3752 IFS=$as_save_IFS
3753 test -z "$as_dir" && as_dir=.
39fd3d4f 3754 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 3755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
3756 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3758 break 2
3759 fi
e1052144 3760done
57aa50d4 3761 done
e1052144 3762IFS=$as_save_IFS
e1052144 3763
e1052144 3764fi
57aa50d4
TT
3765fi
3766CC=$ac_cv_prog_CC
3767if test -n "$CC"; then
3768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3769$as_echo "$CC" >&6; }
3770else
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3772$as_echo "no" >&6; }
3773fi
e1052144
TT
3774
3775
57aa50d4
TT
3776fi
3777if test -z "$ac_cv_prog_CC"; then
3778 ac_ct_CC=$CC
3779 # Extract the first word of "gcc", so it can be a program name with args.
3780set dummy gcc; ac_word=$2
3781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3782$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 3783if ${ac_cv_prog_ac_ct_CC+:} false; then :
39fd3d4f 3784 $as_echo_n "(cached) " >&6
e1052144 3785else
57aa50d4
TT
3786 if test -n "$ac_ct_CC"; then
3787 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3788else
3789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3790for as_dir in $PATH
e1052144
TT
3791do
3792 IFS=$as_save_IFS
3793 test -z "$as_dir" && as_dir=.
39fd3d4f 3794 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 3795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
3796 ac_cv_prog_ac_ct_CC="gcc"
3797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3798 break 2
3799 fi
e1052144 3800done
57aa50d4 3801 done
e1052144 3802IFS=$as_save_IFS
b0cacab0 3803
e1052144 3804fi
57aa50d4
TT
3805fi
3806ac_ct_CC=$ac_cv_prog_ac_ct_CC
3807if test -n "$ac_ct_CC"; then
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3809$as_echo "$ac_ct_CC" >&6; }
b0cacab0 3810else
57aa50d4
TT
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3812$as_echo "no" >&6; }
3813fi
b0cacab0 3814
57aa50d4
TT
3815 if test "x$ac_ct_CC" = x; then
3816 CC=""
3817 else
3818 case $cross_compiling:$ac_tool_warned in
3819yes:)
3820{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3821$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3822ac_tool_warned=yes ;;
e1052144 3823esac
57aa50d4
TT
3824 CC=$ac_ct_CC
3825 fi
b0cacab0 3826else
57aa50d4 3827 CC="$ac_cv_prog_CC"
b0cacab0 3828fi
e1052144 3829
57aa50d4
TT
3830if test -z "$CC"; then
3831 if test -n "$ac_tool_prefix"; then
3832 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3833set dummy ${ac_tool_prefix}cc; ac_word=$2
3834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3835$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 3836if ${ac_cv_prog_CC+:} false; then :
57aa50d4 3837 $as_echo_n "(cached) " >&6
a64c9c13 3838else
57aa50d4
TT
3839 if test -n "$CC"; then
3840 ac_cv_prog_CC="$CC" # Let the user override the test.
3841else
3842as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3843for as_dir in $PATH
3844do
3845 IFS=$as_save_IFS
3846 test -z "$as_dir" && as_dir=.
3847 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 3848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
3849 ac_cv_prog_CC="${ac_tool_prefix}cc"
3850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3851 break 2
3852 fi
3853done
3854 done
3855IFS=$as_save_IFS
b0cacab0 3856
a64c9c13 3857fi
57aa50d4
TT
3858fi
3859CC=$ac_cv_prog_CC
3860if test -n "$CC"; then
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3862$as_echo "$CC" >&6; }
b0cacab0 3863else
57aa50d4
TT
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3865$as_echo "no" >&6; }
a64c9c13 3866fi
b0cacab0 3867
b0cacab0 3868
57aa50d4
TT
3869 fi
3870fi
3871if test -z "$CC"; then
3872 # Extract the first word of "cc", so it can be a program name with args.
3873set dummy cc; ac_word=$2
3874{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3875$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 3876if ${ac_cv_prog_CC+:} false; then :
57aa50d4 3877 $as_echo_n "(cached) " >&6
a64c9c13 3878else
57aa50d4
TT
3879 if test -n "$CC"; then
3880 ac_cv_prog_CC="$CC" # Let the user override the test.
a64c9c13 3881else
57aa50d4
TT
3882 ac_prog_rejected=no
3883as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3884for as_dir in $PATH
3885do
3886 IFS=$as_save_IFS
3887 test -z "$as_dir" && as_dir=.
3888 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 3889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
3890 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3891 ac_prog_rejected=yes
3892 continue
3893 fi
3894 ac_cv_prog_CC="cc"
3895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3896 break 2
3897 fi
3898done
3899 done
3900IFS=$as_save_IFS
b0cacab0 3901
57aa50d4
TT
3902if test $ac_prog_rejected = yes; then
3903 # We found a bogon in the path, so make sure we never use it.
3904 set dummy $ac_cv_prog_CC
3905 shift
3906 if test $# != 0; then
3907 # We chose a different compiler from the bogus one.
3908 # However, it has the same basename, so the bogon will be chosen
3909 # first if we set CC to just the basename; use the full file name.
3910 shift
3911 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3912 fi
b0cacab0 3913fi
b0cacab0
TT
3914fi
3915fi
57aa50d4
TT
3916CC=$ac_cv_prog_CC
3917if test -n "$CC"; then
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3919$as_echo "$CC" >&6; }
3920else
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3922$as_echo "no" >&6; }
b0cacab0 3923fi
b0cacab0 3924
b0cacab0
TT
3925
3926fi
57aa50d4
TT
3927if test -z "$CC"; then
3928 if test -n "$ac_tool_prefix"; then
3929 for ac_prog in cl.exe
3930 do
3931 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3932set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3934$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 3935if ${ac_cv_prog_CC+:} false; then :
57aa50d4
TT
3936 $as_echo_n "(cached) " >&6
3937else
3938 if test -n "$CC"; then
3939 ac_cv_prog_CC="$CC" # Let the user override the test.
3940else
3941as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3942for as_dir in $PATH
3943do
3944 IFS=$as_save_IFS
3945 test -z "$as_dir" && as_dir=.
3946 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 3947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
3948 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3949 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3950 break 2
3951 fi
3952done
3953 done
3954IFS=$as_save_IFS
b0cacab0 3955
57aa50d4
TT
3956fi
3957fi
3958CC=$ac_cv_prog_CC
3959if test -n "$CC"; then
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3961$as_echo "$CC" >&6; }
3962else
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3964$as_echo "no" >&6; }
3965fi
b0cacab0
TT
3966
3967
57aa50d4
TT
3968 test -n "$CC" && break
3969 done
3970fi
3971if test -z "$CC"; then
3972 ac_ct_CC=$CC
3973 for ac_prog in cl.exe
b0cacab0 3974do
57aa50d4
TT
3975 # Extract the first word of "$ac_prog", so it can be a program name with args.
3976set dummy $ac_prog; ac_word=$2
3977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3978$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 3979if ${ac_cv_prog_ac_ct_CC+:} false; then :
39fd3d4f 3980 $as_echo_n "(cached) " >&6
b0cacab0 3981else
57aa50d4
TT
3982 if test -n "$ac_ct_CC"; then
3983 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
b0cacab0 3984else
57aa50d4
TT
3985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3986for as_dir in $PATH
3987do
3988 IFS=$as_save_IFS
3989 test -z "$as_dir" && as_dir=.
3990 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 3991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
3992 ac_cv_prog_ac_ct_CC="$ac_prog"
3993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3994 break 2
3995 fi
3996done
3997 done
3998IFS=$as_save_IFS
b0cacab0 3999
b0cacab0 4000fi
b0cacab0 4001fi
57aa50d4
TT
4002ac_ct_CC=$ac_cv_prog_ac_ct_CC
4003if test -n "$ac_ct_CC"; then
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4005$as_echo "$ac_ct_CC" >&6; }
4006else
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4008$as_echo "no" >&6; }
b0cacab0
TT
4009fi
4010
b0cacab0 4011
57aa50d4
TT
4012 test -n "$ac_ct_CC" && break
4013done
b0cacab0 4014
57aa50d4
TT
4015 if test "x$ac_ct_CC" = x; then
4016 CC=""
4017 else
4018 case $cross_compiling:$ac_tool_warned in
4019yes:)
4020{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4021$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4022ac_tool_warned=yes ;;
e1052144 4023esac
57aa50d4
TT
4024 CC=$ac_ct_CC
4025 fi
4026fi
b0cacab0 4027
b0cacab0 4028fi
e1052144 4029
b0cacab0 4030
57aa50d4
TT
4031test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4032$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d6a4bcb5
TB
4033as_fn_error $? "no acceptable C compiler found in \$PATH
4034See \`config.log' for more details" "$LINENO" 5; }
57aa50d4
TT
4035
4036# Provide some information about the compiler.
4037$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4038set X $ac_compile
4039ac_compiler=$2
4040for ac_option in --version -v -V -qversion; do
4041 { { ac_try="$ac_compiler $ac_option >&5"
e1052144
TT
4042case "(($ac_try" in
4043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4044 *) ac_try_echo=$ac_try;;
4045esac
57aa50d4
TT
4046eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4047$as_echo "$ac_try_echo"; } >&5
4048 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
b0cacab0 4049 ac_status=$?
57aa50d4
TT
4050 if test -s conftest.err; then
4051 sed '10a\
4052... rest of stderr output deleted ...
4053 10q' conftest.err >conftest.er1
4054 cat conftest.er1 >&5
57aa50d4 4055 fi
61ef2474 4056 rm -f conftest.er1 conftest.err
57aa50d4
TT
4057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4058 test $ac_status = 0; }
4059done
e1052144 4060
57aa50d4
TT
4061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4062$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d6a4bcb5 4063if ${ac_cv_c_compiler_gnu+:} false; then :
39fd3d4f 4064 $as_echo_n "(cached) " >&6
b0cacab0 4065else
57aa50d4
TT
4066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4067/* end confdefs.h. */
b0cacab0 4068
57aa50d4
TT
4069int
4070main ()
4071{
4072#ifndef __GNUC__
4073 choke me
4074#endif
a64c9c13 4075
57aa50d4
TT
4076 ;
4077 return 0;
4078}
4079_ACEOF
4080if ac_fn_c_try_compile "$LINENO"; then :
4081 ac_compiler_gnu=yes
b1c92f91 4082else
57aa50d4 4083 ac_compiler_gnu=no
b1c92f91 4084fi
57aa50d4
TT
4085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4086ac_cv_c_compiler_gnu=$ac_compiler_gnu
b0cacab0 4087
e1052144 4088fi
57aa50d4
TT
4089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4090$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4091if test $ac_compiler_gnu = yes; then
4092 GCC=yes
98919bdb 4093else
57aa50d4 4094 GCC=
98919bdb 4095fi
57aa50d4
TT
4096ac_test_CFLAGS=${CFLAGS+set}
4097ac_save_CFLAGS=$CFLAGS
4098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4099$as_echo_n "checking whether $CC accepts -g... " >&6; }
d6a4bcb5 4100if ${ac_cv_prog_cc_g+:} false; then :
57aa50d4 4101 $as_echo_n "(cached) " >&6
98919bdb 4102else
57aa50d4
TT
4103 ac_save_c_werror_flag=$ac_c_werror_flag
4104 ac_c_werror_flag=yes
4105 ac_cv_prog_cc_g=no
4106 CFLAGS="-g"
4107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4108/* end confdefs.h. */
e1052144 4109
57aa50d4
TT
4110int
4111main ()
4112{
98919bdb 4113
57aa50d4
TT
4114 ;
4115 return 0;
4116}
4117_ACEOF
4118if ac_fn_c_try_compile "$LINENO"; then :
4119 ac_cv_prog_cc_g=yes
c13351f6 4120else
57aa50d4
TT
4121 CFLAGS=""
4122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4123/* end confdefs.h. */
c13351f6 4124
57aa50d4
TT
4125int
4126main ()
4127{
c13351f6 4128
57aa50d4
TT
4129 ;
4130 return 0;
4131}
4132_ACEOF
4133if ac_fn_c_try_compile "$LINENO"; then :
c13351f6 4134
57aa50d4
TT
4135else
4136 ac_c_werror_flag=$ac_save_c_werror_flag
4137 CFLAGS="-g"
4138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4139/* end confdefs.h. */
c13351f6 4140
57aa50d4
TT
4141int
4142main ()
4143{
c13351f6 4144
57aa50d4
TT
4145 ;
4146 return 0;
4147}
b0cacab0 4148_ACEOF
57aa50d4
TT
4149if ac_fn_c_try_compile "$LINENO"; then :
4150 ac_cv_prog_cc_g=yes
1917875f 4151fi
57aa50d4 4152rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e1052144 4153fi
57aa50d4 4154rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8fdc9985 4155fi
57aa50d4
TT
4156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4157 ac_c_werror_flag=$ac_save_c_werror_flag
e1052144 4158fi
57aa50d4
TT
4159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4160$as_echo "$ac_cv_prog_cc_g" >&6; }
4161if test "$ac_test_CFLAGS" = set; then
4162 CFLAGS=$ac_save_CFLAGS
4163elif test $ac_cv_prog_cc_g = yes; then
4164 if test "$GCC" = yes; then
4165 CFLAGS="-g -O2"
4166 else
4167 CFLAGS="-g"
4168 fi
a64c9c13 4169else
57aa50d4
TT
4170 if test "$GCC" = yes; then
4171 CFLAGS="-O2"
4172 else
4173 CFLAGS=
4174 fi
a64c9c13 4175fi
57aa50d4
TT
4176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4177$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
d6a4bcb5 4178if ${ac_cv_prog_cc_c89+:} false; then :
57aa50d4 4179 $as_echo_n "(cached) " >&6
a64c9c13 4180else
57aa50d4
TT
4181 ac_cv_prog_cc_c89=no
4182ac_save_CC=$CC
4183cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4184/* end confdefs.h. */
4185#include <stdarg.h>
4186#include <stdio.h>
d6a4bcb5 4187struct stat;
57aa50d4
TT
4188/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4189struct buf { int x; };
4190FILE * (*rcsopen) (struct buf *, struct stat *, int);
4191static char *e (p, i)
4192 char **p;
4193 int i;
4194{
4195 return p[i];
4196}
4197static char *f (char * (*g) (char **, int), char **p, ...)
4198{
4199 char *s;
4200 va_list v;
4201 va_start (v,p);
4202 s = g (p, va_arg (v,int));
4203 va_end (v);
4204 return s;
4205}
e1052144 4206
57aa50d4
TT
4207/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4208 function prototypes and stuff, but not '\xHH' hex character constants.
4209 These don't provoke an error unfortunately, instead are silently treated
4210 as 'x'. The following induces an error, until -std is added to get
4211 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4212 array size at least. It's necessary to write '\x00'==0 to get something
4213 that's true only with -std. */
4214int osf4_cc_array ['\x00' == 0 ? 1 : -1];
93636bde 4215
57aa50d4
TT
4216/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4217 inside strings and character constants. */
4218#define FOO(x) 'x'
4219int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
a64c9c13 4220
57aa50d4
TT
4221int test (int i, double x);
4222struct s1 {int (*f) (int a);};
4223struct s2 {int (*f) (double a);};
4224int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4225int argc;
4226char **argv;
4227int
4228main ()
4229{
4230return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4231 ;
4232 return 0;
4233}
4234_ACEOF
4235for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4236 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4237do
4238 CC="$ac_save_CC $ac_arg"
4239 if ac_fn_c_try_compile "$LINENO"; then :
4240 ac_cv_prog_cc_c89=$ac_arg
a64c9c13 4241fi
57aa50d4
TT
4242rm -f core conftest.err conftest.$ac_objext
4243 test "x$ac_cv_prog_cc_c89" != "xno" && break
4244done
4245rm -f conftest.$ac_ext
4246CC=$ac_save_CC
a64c9c13 4247
57aa50d4
TT
4248fi
4249# AC_CACHE_VAL
4250case "x$ac_cv_prog_cc_c89" in
4251 x)
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4253$as_echo "none needed" >&6; } ;;
4254 xno)
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4256$as_echo "unsupported" >&6; } ;;
4257 *)
4258 CC="$CC $ac_cv_prog_cc_c89"
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4260$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4261esac
4262if test "x$ac_cv_prog_cc_c89" != xno; then :
a64c9c13 4263
e1052144
TT
4264fi
4265
57aa50d4
TT
4266ac_ext=c
4267ac_cpp='$CPP $CPPFLAGS'
4268ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4269ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4270ac_compiler_gnu=$ac_cv_c_compiler_gnu
93636bde 4271
9b3018a8
TT
4272if test "$GCC" = yes; then
4273 RDYNAMIC="-rdynamic"
4274
4275fi
57aa50d4
TT
4276ac_ext=c
4277ac_cpp='$CPP $CPPFLAGS'
4278ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4279ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4280ac_compiler_gnu=$ac_cv_c_compiler_gnu
4281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4282$as_echo_n "checking how to run the C preprocessor... " >&6; }
4283# On Suns, sometimes $CPP names a directory.
4284if test -n "$CPP" && test -d "$CPP"; then
4285 CPP=
4286fi
4287if test -z "$CPP"; then
d6a4bcb5 4288 if ${ac_cv_prog_CPP+:} false; then :
57aa50d4
TT
4289 $as_echo_n "(cached) " >&6
4290else
4291 # Double quotes because CPP needs to be expanded
4292 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4293 do
4294 ac_preproc_ok=false
4295for ac_c_preproc_warn_flag in '' yes
4296do
4297 # Use a header file that comes with gcc, so configuring glibc
4298 # with a fresh cross-compiler works.
4299 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4300 # <limits.h> exists even on freestanding compilers.
4301 # On the NeXT, cc -E runs the code through the compiler's parser,
4302 # not just through cpp. "Syntax error" is here to catch this case.
4303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4304/* end confdefs.h. */
4305#ifdef __STDC__
4306# include <limits.h>
4307#else
4308# include <assert.h>
4309#endif
4310 Syntax error
4311_ACEOF
4312if ac_fn_c_try_cpp "$LINENO"; then :
a64c9c13 4313
cdf186e4 4314else
57aa50d4
TT
4315 # Broken: fails on valid input.
4316continue
cdf186e4 4317fi
d6a4bcb5 4318rm -f conftest.err conftest.i conftest.$ac_ext
cdf186e4 4319
57aa50d4
TT
4320 # OK, works on sane cases. Now check whether nonexistent headers
4321 # can be detected and how.
4322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4323/* end confdefs.h. */
4324#include <ac_nonexistent.h>
4325_ACEOF
4326if ac_fn_c_try_cpp "$LINENO"; then :
4327 # Broken: success on invalid input.
4328continue
cdf186e4 4329else
57aa50d4
TT
4330 # Passes both tests.
4331ac_preproc_ok=:
4332break
4333fi
d6a4bcb5 4334rm -f conftest.err conftest.i conftest.$ac_ext
cdf186e4 4335
57aa50d4
TT
4336done
4337# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
d6a4bcb5 4338rm -f conftest.i conftest.err conftest.$ac_ext
57aa50d4
TT
4339if $ac_preproc_ok; then :
4340 break
e1052144
TT
4341fi
4342
57aa50d4
TT
4343 done
4344 ac_cv_prog_CPP=$CPP
93636bde 4345
cdf186e4 4346fi
57aa50d4 4347 CPP=$ac_cv_prog_CPP
cdf186e4 4348else
57aa50d4 4349 ac_cv_prog_CPP=$CPP
e1052144 4350fi
57aa50d4
TT
4351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4352$as_echo "$CPP" >&6; }
4353ac_preproc_ok=false
4354for ac_c_preproc_warn_flag in '' yes
4355do
4356 # Use a header file that comes with gcc, so configuring glibc
4357 # with a fresh cross-compiler works.
4358 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4359 # <limits.h> exists even on freestanding compilers.
4360 # On the NeXT, cc -E runs the code through the compiler's parser,
4361 # not just through cpp. "Syntax error" is here to catch this case.
4362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4363/* end confdefs.h. */
4364#ifdef __STDC__
4365# include <limits.h>
4366#else
4367# include <assert.h>
4368#endif
4369 Syntax error
b0cacab0 4370_ACEOF
57aa50d4 4371if ac_fn_c_try_cpp "$LINENO"; then :
80bfaa3e
TT
4372
4373else
57aa50d4
TT
4374 # Broken: fails on valid input.
4375continue
e1052144 4376fi
d6a4bcb5 4377rm -f conftest.err conftest.i conftest.$ac_ext
e1052144 4378
57aa50d4
TT
4379 # OK, works on sane cases. Now check whether nonexistent headers
4380 # can be detected and how.
4381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4382/* end confdefs.h. */
4383#include <ac_nonexistent.h>
b0cacab0 4384_ACEOF
57aa50d4
TT
4385if ac_fn_c_try_cpp "$LINENO"; then :
4386 # Broken: success on invalid input.
4387continue
f0a22d0f 4388else
57aa50d4
TT
4389 # Passes both tests.
4390ac_preproc_ok=:
4391break
e1052144 4392fi
d6a4bcb5 4393rm -f conftest.err conftest.i conftest.$ac_ext
e1052144 4394
57aa50d4
TT
4395done
4396# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
d6a4bcb5 4397rm -f conftest.i conftest.err conftest.$ac_ext
57aa50d4 4398if $ac_preproc_ok; then :
2a29f135
TT
4399
4400else
57aa50d4
TT
4401 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4402$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d6a4bcb5
TB
4403as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4404See \`config.log' for more details" "$LINENO" 5; }
e1052144
TT
4405fi
4406
57aa50d4
TT
4407ac_ext=c
4408ac_cpp='$CPP $CPPFLAGS'
4409ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4410ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4411ac_compiler_gnu=$ac_cv_c_compiler_gnu
af773654 4412
57aa50d4
TT
4413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
4414$as_echo_n "checking for additional special compiler flags... " >&6; }
4415if test "$GCC" = yes
4416then
4417 case "$host_cpu" in
4418 alpha) addcflags="-mieee" ;;
4419 esac
14b596d4 4420fi
57aa50d4
TT
4421if test "x$addcflags" != x
4422then
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
4424$as_echo "$addcflags" >&6; }
4425 CFLAGS="$addcflags $CFLAGS"
14b596d4 4426else
57aa50d4
TT
4427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
4428$as_echo "(none)" >&6; }
14b596d4
TT
4429fi
4430
93613951
TT
4431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4432$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4433if ${ac_cv_path_GREP+:} false; then :
4434 $as_echo_n "(cached) " >&6
57aa50d4 4435else
93613951
TT
4436 if test -z "$GREP"; then
4437 ac_path_GREP_found=false
4438 # Loop through the user's path and test for each of PROGNAME-LIST
4439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4440for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4441do
4442 IFS=$as_save_IFS
4443 test -z "$as_dir" && as_dir=.
4444 for ac_prog in grep ggrep; do
4445 for ac_exec_ext in '' $ac_executable_extensions; do
4446 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4447 as_fn_executable_p "$ac_path_GREP" || continue
4448# Check for GNU ac_path_GREP and select it if it is found.
4449 # Check for GNU $ac_path_GREP
4450case `"$ac_path_GREP" --version 2>&1` in
4451*GNU*)
4452 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4453*)
4454 ac_count=0
4455 $as_echo_n 0123456789 >"conftest.in"
4456 while :
4457 do
4458 cat "conftest.in" "conftest.in" >"conftest.tmp"
4459 mv "conftest.tmp" "conftest.in"
4460 cp "conftest.in" "conftest.nl"
4461 $as_echo 'GREP' >> "conftest.nl"
4462 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4463 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4464 as_fn_arith $ac_count + 1 && ac_count=$as_val
4465 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4466 # Best one so far, save it but keep looking for a better one
4467 ac_cv_path_GREP="$ac_path_GREP"
4468 ac_path_GREP_max=$ac_count
4469 fi
4470 # 10*(2^10) chars as input seems more than enough
4471 test $ac_count -gt 10 && break
4472 done
4473 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4474esac
14b596d4 4475
93613951
TT
4476 $ac_path_GREP_found && break 3
4477 done
4478 done
4479 done
4480IFS=$as_save_IFS
4481 if test -z "$ac_cv_path_GREP"; then
4482 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4483 fi
57aa50d4 4484else
93613951
TT
4485 ac_cv_path_GREP=$GREP
4486fi
57aa50d4 4487
14b596d4 4488fi
93613951
TT
4489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4490$as_echo "$ac_cv_path_GREP" >&6; }
4491 GREP="$ac_cv_path_GREP"
14b596d4 4492
14b596d4 4493
93613951
TT
4494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4495$as_echo_n "checking for egrep... " >&6; }
4496if ${ac_cv_path_EGREP+:} false; then :
4497 $as_echo_n "(cached) " >&6
5aa6c3f6 4498else
93613951
TT
4499 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4500 then ac_cv_path_EGREP="$GREP -E"
4501 else
4502 if test -z "$EGREP"; then
4503 ac_path_EGREP_found=false
4504 # Loop through the user's path and test for each of PROGNAME-LIST
4505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4506for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4507do
4508 IFS=$as_save_IFS
4509 test -z "$as_dir" && as_dir=.
4510 for ac_prog in egrep; do
4511 for ac_exec_ext in '' $ac_executable_extensions; do
4512 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4513 as_fn_executable_p "$ac_path_EGREP" || continue
4514# Check for GNU ac_path_EGREP and select it if it is found.
4515 # Check for GNU $ac_path_EGREP
4516case `"$ac_path_EGREP" --version 2>&1` in
4517*GNU*)
4518 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4519*)
4520 ac_count=0
4521 $as_echo_n 0123456789 >"conftest.in"
4522 while :
4523 do
4524 cat "conftest.in" "conftest.in" >"conftest.tmp"
4525 mv "conftest.tmp" "conftest.in"
4526 cp "conftest.in" "conftest.nl"
4527 $as_echo 'EGREP' >> "conftest.nl"
4528 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4529 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4530 as_fn_arith $ac_count + 1 && ac_count=$as_val
4531 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4532 # Best one so far, save it but keep looking for a better one
4533 ac_cv_path_EGREP="$ac_path_EGREP"
4534 ac_path_EGREP_max=$ac_count
4535 fi
4536 # 10*(2^10) chars as input seems more than enough
4537 test $ac_count -gt 10 && break
4538 done
4539 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4540esac
5aa6c3f6 4541
93613951
TT
4542 $ac_path_EGREP_found && break 3
4543 done
4544 done
4545 done
4546IFS=$as_save_IFS
4547 if test -z "$ac_cv_path_EGREP"; then
4548 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4549 fi
5aa6c3f6 4550else
93613951
TT
4551 ac_cv_path_EGREP=$EGREP
4552fi
183c73b0 4553
93613951 4554 fi
183c73b0 4555fi
93613951
TT
4556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4557$as_echo "$ac_cv_path_EGREP" >&6; }
4558 EGREP="$ac_cv_path_EGREP"
183c73b0
TT
4559
4560
93613951
TT
4561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4562$as_echo_n "checking for ANSI C header files... " >&6; }
4563if ${ac_cv_header_stdc+:} false; then :
4564 $as_echo_n "(cached) " >&6
91d11da1 4565else
93613951
TT
4566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4567/* end confdefs.h. */
4568#include <stdlib.h>
4569#include <stdarg.h>
4570#include <string.h>
4571#include <float.h>
91d11da1 4572
93613951
TT
4573int
4574main ()
4575{
183c73b0 4576
93613951
TT
4577 ;
4578 return 0;
4579}
4580_ACEOF
4581if ac_fn_c_try_compile "$LINENO"; then :
4582 ac_cv_header_stdc=yes
183c73b0 4583else
93613951 4584 ac_cv_header_stdc=no
5aa6c3f6 4585fi
93613951 4586rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5aa6c3f6 4587
93613951
TT
4588if test $ac_cv_header_stdc = yes; then
4589 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4591/* end confdefs.h. */
4592#include <string.h>
4593
4594_ACEOF
4595if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4596 $EGREP "memchr" >/dev/null 2>&1; then :
4597
4598else
4599 ac_cv_header_stdc=no
4600fi
4601rm -f conftest*
4602
4603fi
4604
4605if test $ac_cv_header_stdc = yes; then
4606 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4608/* end confdefs.h. */
4609#include <stdlib.h>
4610
4611_ACEOF
4612if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4613 $EGREP "free" >/dev/null 2>&1; then :
4614
4615else
4616 ac_cv_header_stdc=no
4617fi
4618rm -f conftest*
4619
4620fi
4621
4622if test $ac_cv_header_stdc = yes; then
4623 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4624 if test "$cross_compiling" = yes; then :
4625 :
4626else
4627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4628/* end confdefs.h. */
4629#include <ctype.h>
4630#include <stdlib.h>
4631#if ((' ' & 0x0FF) == 0x020)
4632# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4633# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4634#else
4635# define ISLOWER(c) \
4636 (('a' <= (c) && (c) <= 'i') \
4637 || ('j' <= (c) && (c) <= 'r') \
4638 || ('s' <= (c) && (c) <= 'z'))
4639# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4640#endif
4641
4642#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4643int
4644main ()
4645{
4646 int i;
4647 for (i = 0; i < 256; i++)
4648 if (XOR (islower (i), ISLOWER (i))
4649 || toupper (i) != TOUPPER (i))
4650 return 2;
4651 return 0;
4652}
4653_ACEOF
4654if ac_fn_c_try_run "$LINENO"; then :
4655
4656else
4657 ac_cv_header_stdc=no
4658fi
4659rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4660 conftest.$ac_objext conftest.beam conftest.$ac_ext
4661fi
4662
4663fi
4664fi
4665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4666$as_echo "$ac_cv_header_stdc" >&6; }
4667if test $ac_cv_header_stdc = yes; then
4668
4669$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4670
4671fi
4672
4673# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4674for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4675 inttypes.h stdint.h unistd.h
4676do :
4677 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4678ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4679"
4680if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4681 cat >>confdefs.h <<_ACEOF
4682#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4683_ACEOF
4684
4685fi
4686
4687done
4688
4689
4690
4691 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4692if test "x$ac_cv_header_minix_config_h" = xyes; then :
4693 MINIX=yes
4694else
4695 MINIX=
4696fi
4697
4698
4699 if test "$MINIX" = yes; then
4700
4701$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4702
4703
4704$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4705
4706
4707$as_echo "#define _MINIX 1" >>confdefs.h
4708
4709 fi
4710
4711
4712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4713$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4714if ${ac_cv_safe_to_define___extensions__+:} false; then :
4715 $as_echo_n "(cached) " >&6
4716else
4717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4718/* end confdefs.h. */
4719
4720# define __EXTENSIONS__ 1
4721 $ac_includes_default
4722int
4723main ()
4724{
4725
4726 ;
4727 return 0;
4728}
4729_ACEOF
4730if ac_fn_c_try_compile "$LINENO"; then :
4731 ac_cv_safe_to_define___extensions__=yes
4732else
4733 ac_cv_safe_to_define___extensions__=no
4734fi
4735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4736fi
4737{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4738$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4739 test $ac_cv_safe_to_define___extensions__ = yes &&
4740 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4741
4742 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4743
4744 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4745
4746 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4747
4748 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4749
4750
4751LIB_EXT=.a
4752STATIC_LIB_EXT=.a
4753PROFILED_LIB_EXT=.a
4754
4755# Check whether --with-root-prefix was given.
4756if test "${with_root_prefix+set}" = set; then :
4757 withval=$with_root_prefix; root_prefix=$withval
4758else
4759 root_prefix=NONE
4760fi
4761# Check whether --enable-maintainer-mode was given.
4762if test "${enable_maintainer_mode+set}" = set; then :
4763 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
4764then
4765 MAINTAINER_CMT=#
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
4767$as_echo "Disabling maintainer mode" >&6; }
4768else
4769 MAINTAINER_CMT=
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
4771$as_echo "Enabling maintainer mode" >&6; }
4772fi
4773
4774else
4775 MAINTAINER_CMT=#
4776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
4777$as_echo "Disabling maintainer mode by default" >&6; }
4778
4779fi
4780
4781
4782# Check whether --enable-symlink-install was given.
4783if test "${enable_symlink_install+set}" = set; then :
4784 enableval=$enable_symlink_install; if test "$enableval" = "no"
4785then
4786 LINK_INSTALL_FLAGS=-f
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4788$as_echo "Disabling symlinks for install" >&6; }
4789else
4790 LINK_INSTALL_FLAGS=-sf
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4792$as_echo "Enabling symlinks for install" >&6; }
4793fi
4794
4795else
4796 LINK_INSTALL_FLAGS=-f
4797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4798$as_echo "Disabling symlinks for install by default" >&6; }
4799
4800fi
4801
4802
4803relative_symlink_defined=
4804# Check whether --enable-relative-symlinks was given.
4805if test "${enable_relative_symlinks+set}" = set; then :
4806 enableval=$enable_relative_symlinks; if test "$enableval" = "no"
4807then
4808 SYMLINK_RELATIVE=
4809 relative_symlink_defined=yes
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4811$as_echo "Disabling relative symlinks for install" >&6; }
4812else
4813 SYMLINK_RELATIVE=--relative
4814 relative_symlink_defined=yes
4815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4816$as_echo "Enabling relative symlinks for install" >&6; }
4817fi
4818fi
4819
4820# Check whether --enable-symlink-relative-symlinks was given.
4821if test "${enable_symlink_relative_symlinks+set}" = set; then :
4822 enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4823then
4824 SYMLINK_RELATIVE=yes
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4826$as_echo "Disabling relative symlinks for install" >&6; }
4827else
4828 SYMLINK_RELATIVE=--relative
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4830$as_echo "Enabling relative symlinks for install" >&6; }
4831fi
4832
4833else
4834 if test -z "$relative_symlink_defined"
4835then
4836 SYMLINK_RELATIVE=
4837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4838$as_echo "Disabling relative symlinks for install by default" >&6; }
4839fi
4840
4841fi
4842
4843
4844# Check whether --enable-symlink-build was given.
4845if test "${enable_symlink_build+set}" = set; then :
5aa6c3f6
TT
4846 enableval=$enable_symlink_build; if test "$enableval" = "no"
4847then
4848 LINK_BUILD_FLAGS=
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4850$as_echo "Disabling symlinks for build" >&6; }
4851else
4852 LINK_BUILD_FLAGS=-s
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4854$as_echo "Enabling symlinks for build" >&6; }
4855fi
4856
4857else
4858 LINK_BUILD_FLAGS=
183c73b0
TT
4859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4860$as_echo "Disabling symlinks for build by default" >&6; }
5aa6c3f6
TT
4861
4862fi
4863
4864
57aa50d4
TT
4865# Check whether --enable-verbose-makecmds was given.
4866if test "${enable_verbose_makecmds+set}" = set; then :
4867 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4868then
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4870$as_echo "Disabling verbose make commands" >&6; }
4871 E=@echo
c1986ecb 4872 ES=echo
57aa50d4 4873 Q=@
14b596d4 4874else
57aa50d4
TT
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
4876$as_echo "Enabling verbose make commands" >&6; }
4877 E=@\\#
c1986ecb 4878 ES=\\#
57aa50d4
TT
4879 Q=
4880fi
14b596d4 4881
14b596d4 4882else
57aa50d4
TT
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4884$as_echo "Disabling verbose make commands" >&6; }
4885E=@echo
c1986ecb 4886ES=echo
57aa50d4 4887Q=@
14b596d4 4888
14b596d4
TT
4889fi
4890
14b596d4 4891
57aa50d4 4892
c1986ecb 4893
57aa50d4
TT
4894E2_PKG_CONFIG_STATIC=--static
4895LDFLAG_DYNAMIC=
4896PRIVATE_LIBS_CMT=
4897# Check whether --enable-elf-shlibs was given.
4898if test "${enable_elf_shlibs+set}" = set; then :
4899 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
cdf186e4 4900then
57aa50d4
TT
4901 ELF_CMT=#
4902 MAKEFILE_ELF=/dev/null
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
4904$as_echo "Disabling ELF shared libraries" >&6; }
cdf186e4 4905else
57aa50d4
TT
4906 E2_PKG_CONFIG_STATIC=
4907 ELF_CMT=
4908 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
4909 case "$host_os" in
4910 solaris2.*)
4911 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4912 ;;
4913 esac
4914 BINARY_TYPE=elfbin
4915 LIB_EXT=.so
4916 PRIVATE_LIBS_CMT=#
4917 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
4919$as_echo "Enabling ELF shared libraries" >&6; }
cdf186e4
TT
4920fi
4921
4922else
57aa50d4
TT
4923 MAKEFILE_ELF=/dev/null
4924ELF_CMT=#
4925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
4926$as_echo "Disabling ELF shared libraries by default" >&6; }
cdf186e4 4927
e1052144
TT
4928fi
4929
cdf186e4 4930
57aa50d4
TT
4931
4932# Check whether --enable-bsd-shlibs was given.
4933if test "${enable_bsd_shlibs+set}" = set; then :
4934 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
cdf186e4 4935then
57aa50d4
TT
4936 BSDLIB_CMT=#
4937 MAKEFILE_BSDLIB=/dev/null
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
4939$as_echo "Disabling BSD shared libraries" >&6; }
cdf186e4 4940else
57aa50d4
TT
4941 E2_PKG_CONFIG_STATIC=
4942 BSDLIB_CMT=
4943 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
4944 LIB_EXT=.so
4945 case "$host_os" in
4946 darwin*)
4947 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4948 LIB_EXT=.dylib
4949 ;;
4950 esac
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
4952$as_echo "Enabling BSD shared libraries" >&6; }
cdf186e4
TT
4953fi
4954
4955else
57aa50d4
TT
4956 MAKEFILE_BSDLIB=/dev/null
4957BSDLIB_CMT=#
4958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
4959$as_echo "Disabling BSD shared libraries by default" >&6; }
cdf186e4 4960
e1052144
TT
4961fi
4962
cdf186e4 4963
57aa50d4
TT
4964
4965# Check whether --enable-profile was given.
4966if test "${enable_profile+set}" = set; then :
4967 enableval=$enable_profile; if test "$enableval" = "no"
cdf186e4 4968then
57aa50d4
TT
4969 PROFILE_CMT=#
4970 MAKEFILE_PROFILE=/dev/null
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
4972$as_echo "Disabling profiling libraries" >&6; }
cdf186e4 4973else
57aa50d4
TT
4974 PROFILE_CMT=
4975 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
4976 PROFILED_LIB_EXT=_p.a
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
4978$as_echo "Building profiling libraries" >&6; }
cdf186e4
TT
4979fi
4980
4981else
57aa50d4
TT
4982 PROFILE_CMT=#
4983MAKEFILE_PROFILE=/dev/null
4984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
4985$as_echo "Disabling profiling libraries by default" >&6; }
cdf186e4 4986
e1052144
TT
4987fi
4988
cdf186e4 4989
57aa50d4 4990
fedfb27f
TT
4991# Check whether --enable-gcov was given.
4992if test "${enable_gcov+set}" = set; then :
4993 enableval=$enable_gcov; if test "$enableval" = "yes"
4994then
4995 CFLAGS="-g -fprofile-arcs -ftest-coverage"
4996 LDFLAGS="-fprofile-arcs -ftest-coverage"
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5
4998$as_echo "Enabling gcov support" >&6; }
4999fi
5000
5001fi
5002
cdf186e4 5003
57aa50d4
TT
5004
5005
5006
5007
5008
5009# Check whether --enable-jbd-debug was given.
5010if test "${enable_jbd_debug+set}" = set; then :
5011 enableval=$enable_jbd_debug; if test "$enableval" = "no"
5d40773b 5012then
57aa50d4
TT
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
5014$as_echo "Disabling journal debugging" >&6; }
5d40773b 5015else
d1154eb4
TT
5016
5017$as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
57aa50d4
TT
5018
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
5020$as_echo "Enabling journal debugging" >&6; }
5d40773b
TT
5021fi
5022
5023else
57aa50d4
TT
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
5025$as_echo "Disabling journal debugging by default" >&6; }
5d40773b 5026
e1052144
TT
5027fi
5028
57aa50d4
TT
5029# Check whether --enable-blkid-debug was given.
5030if test "${enable_blkid_debug+set}" = set; then :
5031 enableval=$enable_blkid_debug; if test "$enableval" = "no"
3249394d 5032then
57aa50d4
TT
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
5034$as_echo "Disabling blkid debugging" >&6; }
3249394d 5035else
d1154eb4
TT
5036
5037$as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
57aa50d4
TT
5038
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
5040$as_echo "Enabling blkid debugging" >&6; }
3249394d
TT
5041fi
5042
5043else
57aa50d4
TT
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
5045$as_echo "Disabling blkid debugging by default" >&6; }
3249394d
TT
5046
5047fi
5048
57aa50d4
TT
5049# Check whether --enable-testio-debug was given.
5050if test "${enable_testio_debug+set}" = set; then :
d1154eb4
TT
5051 enableval=$enable_testio_debug;
5052if test "$enableval" = "no"
3249394d 5053then
57aa50d4
TT
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
5055$as_echo "Disabling testio debugging" >&6; }
5056 TEST_IO_CMT="#"
3249394d 5057else
57aa50d4
TT
5058 TEST_IO_CMT=
5059 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
3249394d 5060
57aa50d4
TT
5061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
5062$as_echo "Enabling testio debugging" >&6; }
5063fi
3249394d 5064
3249394d 5065else
57aa50d4
TT
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
5067$as_echo "Enabling testio debugging by default" >&6; }
5068$as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
3249394d 5069
57aa50d4 5070TEST_IO_CMT=
3249394d
TT
5071
5072fi
5073
3249394d 5074
57aa50d4
TT
5075
5076
93613951
TT
5077
5078
5079
5080
5081
57aa50d4 5082if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
93613951 5083 if test -n "$ac_tool_prefix"; then
57aa50d4
TT
5084 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5085set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5087$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 5088if ${ac_cv_path_PKG_CONFIG+:} false; then :
57aa50d4
TT
5089 $as_echo_n "(cached) " >&6
5090else
5091 case $PKG_CONFIG in
5092 [\\/]* | ?:[\\/]*)
5093 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5094 ;;
5095 *)
5096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5097for as_dir in $PATH
5098do
5099 IFS=$as_save_IFS
5100 test -z "$as_dir" && as_dir=.
5101 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 5102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
5103 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5105 break 2
5106 fi
5107done
5108 done
5109IFS=$as_save_IFS
5110
5111 ;;
5112esac
5113fi
5114PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5115if test -n "$PKG_CONFIG"; then
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5117$as_echo "$PKG_CONFIG" >&6; }
5118else
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5120$as_echo "no" >&6; }
3249394d
TT
5121fi
5122
5123
57aa50d4
TT
5124fi
5125if test -z "$ac_cv_path_PKG_CONFIG"; then
5126 ac_pt_PKG_CONFIG=$PKG_CONFIG
5127 # Extract the first word of "pkg-config", so it can be a program name with args.
5128set dummy pkg-config; ac_word=$2
5129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5130$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 5131if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
57aa50d4
TT
5132 $as_echo_n "(cached) " >&6
5133else
5134 case $ac_pt_PKG_CONFIG in
5135 [\\/]* | ?:[\\/]*)
5136 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5137 ;;
5138 *)
5139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5140for as_dir in $PATH
5141do
5142 IFS=$as_save_IFS
5143 test -z "$as_dir" && as_dir=.
5144 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 5145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
5146 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5148 break 2
5149 fi
5150done
5151 done
5152IFS=$as_save_IFS
3249394d 5153
57aa50d4
TT
5154 ;;
5155esac
5156fi
5157ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5158if test -n "$ac_pt_PKG_CONFIG"; then
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5160$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5161else
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5163$as_echo "no" >&6; }
5164fi
3249394d 5165
57aa50d4
TT
5166 if test "x$ac_pt_PKG_CONFIG" = x; then
5167 PKG_CONFIG=""
5168 else
5169 case $cross_compiling:$ac_tool_warned in
5170yes:)
5171{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5172$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5173ac_tool_warned=yes ;;
5174esac
5175 PKG_CONFIG=$ac_pt_PKG_CONFIG
3249394d 5176 fi
57aa50d4
TT
5177else
5178 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5179fi
3249394d
TT
5180
5181fi
57aa50d4 5182if test -n "$PKG_CONFIG"; then
93613951
TT
5183 _pkg_min_version=0.9.0
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
57aa50d4 5185$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
93613951
TT
5186 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
57aa50d4 5188$as_echo "yes" >&6; }
93613951
TT
5189 else
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
57aa50d4 5191$as_echo "no" >&6; }
93613951
TT
5192 PKG_CONFIG=""
5193 fi
57aa50d4
TT
5194fi
5195LIBUUID=
5196DEPLIBUUID=
5197STATIC_LIBUUID=
5198DEPSTATIC_LIBUUID=
5199PROFILED_LIBUUID=
5200DEPPROFILED_LIBUUID=
5201UUID_CMT=
5202# Check whether --enable-libuuid was given.
5203if test "${enable_libuuid+set}" = set; then :
5204 enableval=$enable_libuuid; if test "$enableval" = "no"
5610f992 5205then
57aa50d4 5206 if test -z "$PKG_CONFIG"; then
d6a4bcb5 5207 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
57aa50d4
TT
5208 fi
5209
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5211$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
d6a4bcb5 5212if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
57aa50d4 5213 $as_echo_n "(cached) " >&6
5610f992 5214else
57aa50d4 5215 ac_check_lib_save_LIBS=$LIBS
2d7583bd 5216LIBS="-luuid $LIBS"
57aa50d4
TT
5217cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5218/* end confdefs.h. */
5610f992 5219
57aa50d4
TT
5220/* Override any GCC internal prototype to avoid an error.
5221 Use char because int might match the return type of a GCC
5222 builtin and then its argument prototype would still apply. */
5223#ifdef __cplusplus
5224extern "C"
5225#endif
5226char uuid_generate ();
5227int
5228main ()
5229{
5230return uuid_generate ();
5231 ;
5232 return 0;
5233}
5234_ACEOF
5235if ac_fn_c_try_link "$LINENO"; then :
5236 ac_cv_lib_uuid_uuid_generate=yes
5237else
5238 ac_cv_lib_uuid_uuid_generate=no
5239fi
5240rm -f core conftest.err conftest.$ac_objext \
5241 conftest$ac_exeext conftest.$ac_ext
5242LIBS=$ac_check_lib_save_LIBS
5243fi
5244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5245$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
d6a4bcb5 5246if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
57aa50d4
TT
5247 LIBUUID=`$PKG_CONFIG --libs uuid`;
5248 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5249else
d6a4bcb5 5250 as_fn_error $? "external uuid library not found" "$LINENO" 5
5610f992
TT
5251fi
5252
5afdf37b 5253 PROFILED_LIBUUID=$LIBUUID
57aa50d4
TT
5254 UUID_CMT=#
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
5256$as_echo "Disabling private uuid library" >&6; }
5610f992 5257else
57aa50d4
TT
5258 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5259 DEPLIBUUID=$LIBUUID
5260 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5261 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5262 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5263 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
5265$as_echo "Enabling private uuid library" >&6; }
5266fi
5610f992 5267
57aa50d4 5268else
f5dffb81
TT
5269 if test -n "$PKG_CONFIG"; then
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5271$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5272if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
5273 $as_echo_n "(cached) " >&6
5274else
5275 ac_check_lib_save_LIBS=$LIBS
5276LIBS="-luuid $LIBS"
5277cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5278/* end confdefs.h. */
5279
5280/* Override any GCC internal prototype to avoid an error.
5281 Use char because int might match the return type of a GCC
5282 builtin and then its argument prototype would still apply. */
5283#ifdef __cplusplus
5284extern "C"
5285#endif
5286char uuid_generate ();
5287int
5288main ()
5289{
5290return uuid_generate ();
5291 ;
5292 return 0;
5293}
5294_ACEOF
5295if ac_fn_c_try_link "$LINENO"; then :
5296 ac_cv_lib_uuid_uuid_generate=yes
5297else
5298 ac_cv_lib_uuid_uuid_generate=no
5299fi
5300rm -f core conftest.err conftest.$ac_objext \
5301 conftest$ac_exeext conftest.$ac_ext
5302LIBS=$ac_check_lib_save_LIBS
5303fi
5304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5305$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5306if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
5307 LIBUUID=`$PKG_CONFIG --libs uuid`;
5308 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5309fi
5310
5311fi
5312if test -n "$LIBUUID"; then
5313 PROFILED_LIBUUID=$LIBUUID
5314 UUID_CMT=#
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system uuid by default" >&5
5316$as_echo "Using system uuid by default" >&6; }
5317else
5318 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5319 DEPLIBUUID=$LIBUUID
5320 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5321 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5322 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5323 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
57aa50d4 5325$as_echo "Enabling private uuid library by default" >&6; }
f5dffb81 5326fi
5610f992
TT
5327
5328fi
5329
5330
cdf186e4 5331
a64c9c13 5332
93636bde
TT
5333
5334
93636bde 5335
93636bde
TT
5336
5337
57aa50d4 5338
93613951
TT
5339
5340
5341
5342
5343
57aa50d4 5344if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
93613951 5345 if test -n "$ac_tool_prefix"; then
57aa50d4
TT
5346 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5347set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5349$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 5350if ${ac_cv_path_PKG_CONFIG+:} false; then :
39fd3d4f 5351 $as_echo_n "(cached) " >&6
a64c9c13 5352else
57aa50d4
TT
5353 case $PKG_CONFIG in
5354 [\\/]* | ?:[\\/]*)
5355 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5356 ;;
e1052144 5357 *)
b0cacab0
TT
5358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5359for as_dir in $PATH
5360do
5361 IFS=$as_save_IFS
5362 test -z "$as_dir" && as_dir=.
57aa50d4 5363 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 5364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
5365 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5367 break 2
5368 fi
b0cacab0 5369done
57aa50d4 5370 done
e1052144 5371IFS=$as_save_IFS
b0cacab0 5372
57aa50d4 5373 ;;
b0cacab0
TT
5374esac
5375fi
57aa50d4
TT
5376PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5377if test -n "$PKG_CONFIG"; then
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5379$as_echo "$PKG_CONFIG" >&6; }
07a0db15 5380else
57aa50d4 5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39fd3d4f 5382$as_echo "no" >&6; }
07a0db15 5383fi
07a0db15 5384
57aa50d4
TT
5385
5386fi
5387if test -z "$ac_cv_path_PKG_CONFIG"; then
5388 ac_pt_PKG_CONFIG=$PKG_CONFIG
5389 # Extract the first word of "pkg-config", so it can be a program name with args.
5390set dummy pkg-config; ac_word=$2
5391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39fd3d4f 5392$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 5393if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
39fd3d4f 5394 $as_echo_n "(cached) " >&6
a64c9c13 5395else
57aa50d4 5396 case $ac_pt_PKG_CONFIG in
b0cacab0 5397 [\\/]* | ?:[\\/]*)
57aa50d4 5398 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
b0cacab0
TT
5399 ;;
5400 *)
5401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5402for as_dir in $PATH
5403do
5404 IFS=$as_save_IFS
5405 test -z "$as_dir" && as_dir=.
57aa50d4 5406 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 5407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
5408 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b0cacab0
TT
5410 break 2
5411 fi
5412done
57aa50d4 5413 done
e1052144 5414IFS=$as_save_IFS
a64c9c13 5415
b0cacab0
TT
5416 ;;
5417esac
a64c9c13 5418fi
57aa50d4
TT
5419ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5420if test -n "$ac_pt_PKG_CONFIG"; then
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5422$as_echo "$ac_pt_PKG_CONFIG" >&6; }
a64c9c13 5423else
57aa50d4 5424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39fd3d4f 5425$as_echo "no" >&6; }
a64c9c13 5426fi
a64c9c13 5427
57aa50d4
TT
5428 if test "x$ac_pt_PKG_CONFIG" = x; then
5429 PKG_CONFIG=""
b0cacab0 5430 else
57aa50d4
TT
5431 case $cross_compiling:$ac_tool_warned in
5432yes:)
5433{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5434$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5435ac_tool_warned=yes ;;
5436esac
5437 PKG_CONFIG=$ac_pt_PKG_CONFIG
b0cacab0 5438 fi
57aa50d4
TT
5439else
5440 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
a64c9c13 5441fi
93636bde 5442
a64c9c13 5443fi
57aa50d4 5444if test -n "$PKG_CONFIG"; then
93613951
TT
5445 _pkg_min_version=0.9.0
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
57aa50d4 5447$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
93613951
TT
5448 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
57aa50d4 5450$as_echo "yes" >&6; }
93613951
TT
5451 else
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
57aa50d4 5453$as_echo "no" >&6; }
93613951
TT
5454 PKG_CONFIG=""
5455 fi
57aa50d4
TT
5456fi
5457LIBBLKID=
5458DEPLIBBLKID=
5459STATIC_LIBBLKID=
5460DEPSTATIC_LIBBLKID=
5461PROFILED_LIBBLKID=
5462DEPPROFILED_LIBBLKID=
5463BLKID_CMT=
d1154eb4 5464
57aa50d4
TT
5465# Check whether --enable-libblkid was given.
5466if test "${enable_libblkid+set}" = set; then :
5467 enableval=$enable_libblkid; if test "$enableval" = "no"
5468then
5469 if test -z "$PKG_CONFIG"; then
d6a4bcb5 5470 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
57aa50d4
TT
5471 fi
5472
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5474$as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
d6a4bcb5 5475if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
39fd3d4f 5476 $as_echo_n "(cached) " >&6
a64c9c13 5477else
57aa50d4 5478 ac_check_lib_save_LIBS=$LIBS
2d7583bd 5479LIBS="-lblkid -luuid $LIBS"
57aa50d4
TT
5480cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5481/* end confdefs.h. */
5482
5483/* Override any GCC internal prototype to avoid an error.
5484 Use char because int might match the return type of a GCC
5485 builtin and then its argument prototype would still apply. */
5486#ifdef __cplusplus
5487extern "C"
5488#endif
5489char blkid_get_cache ();
5490int
5491main ()
5492{
5493return blkid_get_cache ();
5494 ;
5495 return 0;
5496}
5497_ACEOF
5498if ac_fn_c_try_link "$LINENO"; then :
5499 ac_cv_lib_blkid_blkid_get_cache=yes
b0cacab0 5500else
57aa50d4 5501 ac_cv_lib_blkid_blkid_get_cache=no
a64c9c13 5502fi
57aa50d4
TT
5503rm -f core conftest.err conftest.$ac_objext \
5504 conftest$ac_exeext conftest.$ac_ext
5505LIBS=$ac_check_lib_save_LIBS
a64c9c13 5506fi
57aa50d4
TT
5507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5508$as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
d6a4bcb5 5509if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
57aa50d4
TT
5510 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5511 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
b0cacab0 5512else
d6a4bcb5 5513 as_fn_error $? "external blkid library not found" "$LINENO" 5
a64c9c13 5514fi
93636bde 5515
57aa50d4 5516 BLKID_CMT=#
5afdf37b 5517 PROFILED_LIBBLKID=$LIBBLKID
57aa50d4
TT
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
5519$as_echo "Disabling private blkid library" >&6; }
07a0db15 5520else
57aa50d4
TT
5521 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5522 DEPLIBBLKID=$LIBBLKID
5523 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5524 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5525 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5526 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5527 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5528
5529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
5530$as_echo "Enabling private blkid library" >&6; }
b0cacab0 5531fi
57aa50d4 5532
a64c9c13 5533else
f5dffb81
TT
5534 if test -n "$PKG_CONFIG"; then
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5536$as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5537if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5538 $as_echo_n "(cached) " >&6
5539else
5540 ac_check_lib_save_LIBS=$LIBS
5541LIBS="-lblkid $LIBS"
5542cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5543/* end confdefs.h. */
5544
5545/* Override any GCC internal prototype to avoid an error.
5546 Use char because int might match the return type of a GCC
5547 builtin and then its argument prototype would still apply. */
5548#ifdef __cplusplus
5549extern "C"
5550#endif
5551char blkid_get_cache ();
5552int
5553main ()
5554{
5555return blkid_get_cache ();
5556 ;
5557 return 0;
5558}
5559_ACEOF
5560if ac_fn_c_try_link "$LINENO"; then :
5561 ac_cv_lib_blkid_blkid_get_cache=yes
5562else
5563 ac_cv_lib_blkid_blkid_get_cache=no
5564fi
5565rm -f core conftest.err conftest.$ac_objext \
5566 conftest$ac_exeext conftest.$ac_ext
5567LIBS=$ac_check_lib_save_LIBS
5568fi
5569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5570$as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5571if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5572 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5573 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5574fi
5575
5576fi
5577if test -n "$LIBBLKID"; then
5578 BLKID_CMT=#
5579 PROFILED_LIBBLKID=$LIBBLKID
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system blkid library by default" >&5
5581$as_echo "Using system blkid library by default" >&6; }
5582else
5583 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5584 DEPLIBBLKID=$LIBBLKID
5585 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5586 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5587 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5588 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5589 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
57aa50d4 5590
f5dffb81 5591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
57aa50d4 5592$as_echo "Enabling private blkid library by default" >&6; }
f5dffb81 5593fi
57aa50d4 5594
a64c9c13 5595fi
07a0db15 5596
a64c9c13 5597
b0cacab0 5598
b0cacab0 5599
a64c9c13 5600
b0cacab0 5601
07a0db15 5602
57aa50d4 5603
3df6014a
TT
5604
5605# Check whether --enable-backtrace was given.
5606if test "${enable_backtrace+set}" = set; then :
5607 enableval=$enable_backtrace; if test "$enableval" = "no"
5608then
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
5610$as_echo "Disabling use of backtrace" >&6; }
5611 $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h
5612
5613else
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
5615$as_echo "Enabling use of backtrace" >&6; }
5616fi
5617
5618else
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
5620$as_echo "Enabling use of backtrace by default" >&6; }
5621
5622fi
5623
57aa50d4
TT
5624# Check whether --enable-debugfs was given.
5625if test "${enable_debugfs+set}" = set; then :
5626 enableval=$enable_debugfs; if test "$enableval" = "no"
5627then
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
5629$as_echo "Disabling debugfs support" >&6; }
5630 DEBUGFS_CMT="#"
b0cacab0 5631else
57aa50d4
TT
5632 DEBUGFS_CMT=
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
5634$as_echo "Enabling debugfs support" >&6; }
b0cacab0 5635fi
a64c9c13 5636
b0cacab0 5637else
57aa50d4
TT
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
5639$as_echo "Enabling debugfs support by default" >&6; }
5640DEBUGFS_CMT=
a64c9c13 5641
93636bde 5642fi
57aa50d4
TT
5643
5644
5645# Check whether --enable-imager was given.
5646if test "${enable_imager+set}" = set; then :
5647 enableval=$enable_imager; if test "$enableval" = "no"
5648then
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
5650$as_echo "Disabling e2image support" >&6; }
5651 IMAGER_CMT="#"
b0cacab0 5652else
57aa50d4
TT
5653 IMAGER_CMT=
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
5655$as_echo "Enabling e2image support" >&6; }
b0cacab0
TT
5656fi
5657
b0cacab0 5658else
57aa50d4
TT
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
5660$as_echo "Enabling e2image support by default" >&6; }
5661IMAGER_CMT=
5662
93636bde
TT
5663fi
5664
a64c9c13 5665
57aa50d4
TT
5666# Check whether --enable-resizer was given.
5667if test "${enable_resizer+set}" = set; then :
5668 enableval=$enable_resizer; if test "$enableval" = "no"
5669then
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
5671$as_echo "Disabling e2resize support" >&6; }
5672 RESIZER_CMT="#"
b0cacab0 5673else
57aa50d4
TT
5674 RESIZER_CMT=
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
5676$as_echo "Enabling e2resize support" >&6; }
5677fi
b0cacab0 5678
b0cacab0 5679else
57aa50d4
TT
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
5681$as_echo "Enabling e2resize support by default" >&6; }
5682RESIZER_CMT=
b0cacab0 5683
b0cacab0 5684fi
e1052144 5685
57aa50d4 5686
8d9c50c5
TT
5687# Check whether --enable-defrag was given.
5688if test "${enable_defrag+set}" = set; then :
5689 enableval=$enable_defrag; if test "$enableval" = "no"
5690then
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5692$as_echo "Disabling e4defrag support" >&6; }
5693 DEFRAG_CMT="#"
5694else
5695 DEFRAG_CMT=
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5697$as_echo "Enabling e4defrag support" >&6; }
5698fi
5699
5700else
6c59a665
TT
5701 if test -z "$WITH_DIET_LIBC"
5702then
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
8d9c50c5 5704$as_echo "Enabling e4defrag support by default" >&6; }
6c59a665
TT
5705 DEFRAG_CMT=
5706else
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
5708$as_echo "Disabling e4defrag support by default" >&6; }
5709 DEFRAG_CMT="#"
5710fi
8d9c50c5
TT
5711
5712fi
5713
5714
57aa50d4
TT
5715# Check whether --enable-fsck was given.
5716if test "${enable_fsck+set}" = set; then :
5717 enableval=$enable_fsck; if test "$enableval" = "no"
5718then
5719 FSCK_PROG='' FSCK_MAN=''
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
5721$as_echo "Not building fsck wrapper" >&6; }
5722else
5723 FSCK_PROG=fsck FSCK_MAN=fsck.8
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
5725$as_echo "Building fsck wrapper" >&6; }
a64c9c13
TT
5726fi
5727
57aa50d4
TT
5728else
5729 case "$host_os" in
5730 gnu*)
5731 FSCK_PROG='' FSCK_MAN=''
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
5733$as_echo "Not building fsck wrapper by default" >&6; }
5734 ;;
5735 *)
5736 FSCK_PROG=fsck FSCK_MAN=fsck.8
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
5738$as_echo "Building fsck wrapper by default" >&6; }
5739esac
b0cacab0 5740
57aa50d4 5741fi
b0cacab0 5742
93636bde 5743
b0cacab0 5744
57aa50d4
TT
5745# Check whether --enable-e2initrd-helper was given.
5746if test "${enable_e2initrd_helper+set}" = set; then :
5747 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
5748then
5749 E2INITRD_PROG='' E2INITRD_MAN=''
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
5751$as_echo "Not building e2initrd helper" >&6; }
5752else
5753 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
5755$as_echo "Building e2initrd helper" >&6; }
5756fi
a64c9c13 5757
a64c9c13 5758else
57aa50d4
TT
5759 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
5761$as_echo "Building e2initrd helper by default" >&6; }
b0cacab0 5762
a64c9c13 5763fi
e1052144 5764
57aa50d4
TT
5765
5766
5767# Check whether --enable-tls was given.
5768if test "${enable_tls+set}" = set; then :
5769 enableval=$enable_tls; if test "$enableval" = "no"
5770then
5771 try_tls=""
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
5773$as_echo "Disabling thread local support" >&6; }
5774else
5775 try_tls="yes"
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
5777$as_echo "Enabling thread local support" >&6; }
a64c9c13
TT
5778fi
5779
57aa50d4
TT
5780else
5781 if test -n "$WITH_DIET_LIBC"
5782then
5783 try_tls=""
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
5785$as_echo "Diet libc does not support thread local support" >&6; }
5786else
5787 try_tls="yes"
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
5789$as_echo "Try using thread local support by default" >&6; }
5790fi
a64c9c13 5791
93636bde 5792fi
07a0db15 5793
57aa50d4
TT
5794if test "$try_tls" = "yes"
5795then
a64c9c13 5796
57aa50d4
TT
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
5798$as_echo_n "checking for thread local storage (TLS) class... " >&6; }
d6a4bcb5 5799 if ${ac_cv_tls+:} false; then :
39fd3d4f 5800 $as_echo_n "(cached) " >&6
b0cacab0 5801else
b0cacab0 5802
57aa50d4
TT
5803 ax_tls_keywords="__thread __declspec(thread) none"
5804 for ax_tls_keyword in $ax_tls_keywords; do
5805 case $ax_tls_keyword in
5806 none) ac_cv_tls=none ; break ;;
5807 *)
5808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5809/* end confdefs.h. */
5810#include <stdlib.h>
5811 static void
5812 foo(void) {
5813 static $ax_tls_keyword int bar;
5814 exit(1);
5815 }
b0cacab0
TT
5816int
5817main ()
5818{
57aa50d4 5819
b0cacab0
TT
5820 ;
5821 return 0;
5822}
5823_ACEOF
57aa50d4
TT
5824if ac_fn_c_try_compile "$LINENO"; then :
5825 ac_cv_tls=$ax_tls_keyword ; break
b0cacab0 5826else
57aa50d4 5827 ac_cv_tls=none
b0cacab0 5828
b0cacab0 5829fi
e1052144 5830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57aa50d4
TT
5831 esac
5832 done
5833
b0cacab0 5834fi
b0cacab0 5835
57aa50d4
TT
5836
5837 if test "$ac_cv_tls" != "none"; then
5838
5839cat >>confdefs.h <<_ACEOF
5840#define TLS $ac_cv_tls
b0cacab0 5841_ACEOF
93636bde 5842
b0cacab0 5843 fi
57aa50d4
TT
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
5845$as_echo "$ac_cv_tls" >&6; }
b0cacab0 5846
57aa50d4 5847fi
d1154eb4 5848
57aa50d4
TT
5849# Check whether --enable-uuidd was given.
5850if test "${enable_uuidd+set}" = set; then :
5851 enableval=$enable_uuidd; if test "$enableval" = "no"
5852then
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
5854$as_echo "Not building uuidd" >&6; }
5855 UUIDD_CMT="#"
a64c9c13 5856else
57aa50d4
TT
5857 $as_echo "#define USE_UUIDD 1" >>confdefs.h
5858
5859 UUIDD_CMT=""
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
5861$as_echo "Building uuidd" >&6; }
5862fi
a64c9c13 5863
a64c9c13 5864else
57aa50d4 5865 $as_echo "#define USE_UUIDD 1" >>confdefs.h
a64c9c13 5866
e3d10158
TT
5867if test -z "$UUID_CMT"
5868then
5869 UUIDD_CMT=""
5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
57aa50d4 5871$as_echo "Building uuidd by default" >&6; }
e3d10158
TT
5872else
5873 UUIDD_CMT="#"
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling uuidd by default" >&5
5875$as_echo "Disabling uuidd by default" >&6; }
5876fi
e1052144 5877
a64c9c13 5878fi
e1052144 5879
93636bde 5880
d6a4bcb5
TB
5881
5882# Check whether --enable-mmp was given.
5883if test "${enable_mmp+set}" = set; then :
5884 enableval=$enable_mmp; if test "$enableval" = "no"
5885then
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5
5887$as_echo "Disabling mmp support" >&6; }
5888else
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5
5890$as_echo "Enabling mmp support" >&6; }
5891 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
5892
5893fi
5894
5895else
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
5897$as_echo "Enabling mmp support by default" >&6; }
5898$as_echo "#define CONFIG_MMP 1" >>confdefs.h
5899
5900
1625bf42
TB
5901fi
5902
5903
5904# Check whether --enable-bmap-stats was given.
5905if test "${enable_bmap_stats+set}" = set; then :
5906 enableval=$enable_bmap_stats; if test "$enableval" = "no"
5907then
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5
5909$as_echo "Disabling bitmap statistics support" >&6; }
5910else
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5
5912$as_echo "Enabling bitmap statistics support" >&6; }
5913 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
5914
5915fi
5916
5917else
5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5
5919$as_echo "Enabling bitmap statistics support by default" >&6; }
5920$as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
5921
5922
5923fi
5924
5925
5926# Check whether --enable-bmap-stats-ops was given.
5927if test "${enable_bmap_stats_ops+set}" = set; then :
5928 enableval=$enable_bmap_stats_ops; if test "$enableval" = "no"
5929then
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5
5931$as_echo "Disabling additional bitmap statistics" >&6; }
5932else
5933 if test "x${enable_bmap_stats}" = "xno"; then :
5934 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5935$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5936as_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats
5937See \`config.log' for more details" "$LINENO" 5; }
5938fi
5939
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5
5941$as_echo "Enabling additional bitmap statistics" >&6; }
5942 $as_echo "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h
5943
5944fi
5945
5946else
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5
5948$as_echo "Disabling additional bitmap statistics by default" >&6; }
5949
d6a4bcb5
TB
5950fi
5951
57aa50d4 5952MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
a64c9c13 5953
57aa50d4
TT
5954GETTEXT_PACKAGE=e2fsprogs
5955PACKAGE=e2fsprogs
5956VERSION="$E2FSPROGS_VERSION"
5957VERSION=0.14.1
d1154eb4 5958
57aa50d4
TT
5959cat >>confdefs.h <<_ACEOF
5960#define PACKAGE "$PACKAGE"
b0cacab0 5961_ACEOF
a64c9c13 5962
d1154eb4 5963
57aa50d4
TT
5964cat >>confdefs.h <<_ACEOF
5965#define VERSION "$VERSION"
5966_ACEOF
5967
5968
5969
5970
5971
5972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5973$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5974set x ${MAKE-make}
5975ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
d6a4bcb5 5976if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
39fd3d4f 5977 $as_echo_n "(cached) " >&6
b0cacab0 5978else
57aa50d4
TT
5979 cat >conftest.make <<\_ACEOF
5980SHELL = /bin/sh
5981all:
5982 @echo '@@@%%%=$(MAKE)=@@@%%%'
b0cacab0 5983_ACEOF
d6a4bcb5 5984# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
57aa50d4
TT
5985case `${MAKE-make} -f conftest.make 2>/dev/null` in
5986 *@@@%%%=?*=@@@%%%*)
5987 eval ac_cv_prog_make_${ac_make}_set=yes;;
5988 *)
5989 eval ac_cv_prog_make_${ac_make}_set=no;;
e1052144 5990esac
57aa50d4
TT
5991rm -f conftest.make
5992fi
5993if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5995$as_echo "yes" >&6; }
5996 SET_MAKE=
39fd3d4f 5997else
57aa50d4
TT
5998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5999$as_echo "no" >&6; }
6000 SET_MAKE="MAKE=${MAKE-make}"
39fd3d4f
SJR
6001fi
6002
57aa50d4
TT
6003# Find a good install program. We prefer a C program (faster),
6004# so one script is as good as another. But avoid the broken or
6005# incompatible versions:
6006# SysV /etc/install, /usr/sbin/install
6007# SunOS /usr/etc/install
6008# IRIX /sbin/install
6009# AIX /bin/install
6010# AmigaOS /C/install, which installs bootblocks on floppy discs
6011# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6012# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6013# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6014# OS/2's system install, which has a completely different semantic
6015# ./install, which can be erroneously created by make from ./install.sh.
6016# Reject install programs that cannot install multiple files.
6017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6018$as_echo_n "checking for a BSD-compatible install... " >&6; }
6019if test -z "$INSTALL"; then
d6a4bcb5 6020if ${ac_cv_path_install+:} false; then :
57aa50d4 6021 $as_echo_n "(cached) " >&6
93636bde 6022else
57aa50d4
TT
6023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6024for as_dir in $PATH
6025do
6026 IFS=$as_save_IFS
6027 test -z "$as_dir" && as_dir=.
6028 # Account for people who put trailing slashes in PATH elements.
6029case $as_dir/ in #((
6030 ./ | .// | /[cC]/* | \
6031 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6032 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6033 /usr/ucb/* ) ;;
6034 *)
6035 # OSF1 and SCO ODT 3.0 have their own names for install.
6036 # Don't use installbsd from OSF since it installs stuff as root
6037 # by default.
6038 for ac_prog in ginstall scoinst install; do
6039 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 6040 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
57aa50d4
TT
6041 if test $ac_prog = install &&
6042 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6043 # AIX install. It has an incompatible calling convention.
6044 :
6045 elif test $ac_prog = install &&
6046 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6047 # program-specific install script used by HP pwplus--don't use.
6048 :
6049 else
6050 rm -rf conftest.one conftest.two conftest.dir
6051 echo one > conftest.one
6052 echo two > conftest.two
6053 mkdir conftest.dir
6054 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6055 test -s conftest.one && test -s conftest.two &&
6056 test -s conftest.dir/conftest.one &&
6057 test -s conftest.dir/conftest.two
6058 then
6059 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6060 break 3
6061 fi
6062 fi
6063 fi
6064 done
6065 done
6066 ;;
6067esac
6068
6069 done
6070IFS=$as_save_IFS
b0cacab0 6071
57aa50d4 6072rm -rf conftest.one conftest.two conftest.dir
39fd3d4f 6073
93636bde 6074fi
57aa50d4
TT
6075 if test "${ac_cv_path_install+set}" = set; then
6076 INSTALL=$ac_cv_path_install
6077 else
6078 # As a last resort, use the slow shell script. Don't cache a
6079 # value for INSTALL within a source directory, because that will
6080 # break other packages using the cache if that directory is
6081 # removed, or if the value is a relative name.
6082 INSTALL=$ac_install_sh
6083 fi
93636bde 6084fi
57aa50d4
TT
6085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6086$as_echo "$INSTALL" >&6; }
a64c9c13 6087
57aa50d4
TT
6088# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6089# It thinks the first close brace ends the variable substitution.
6090test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
b0cacab0 6091
57aa50d4 6092test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
a64c9c13 6093
57aa50d4 6094test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
39fd3d4f 6095
93613951
TT
6096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6097$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6098if test -z "$MKDIR_P"; then
6099 if ${ac_cv_path_mkdir+:} false; then :
6100 $as_echo_n "(cached) " >&6
6101else
6102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6103for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6104do
6105 IFS=$as_save_IFS
6106 test -z "$as_dir" && as_dir=.
6107 for ac_prog in mkdir gmkdir; do
6108 for ac_exec_ext in '' $ac_executable_extensions; do
6109 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
6110 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6111 'mkdir (GNU coreutils) '* | \
6112 'mkdir (coreutils) '* | \
6113 'mkdir (fileutils) '4.1*)
6114 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6115 break 3;;
6116 esac
6117 done
6118 done
6119 done
6120IFS=$as_save_IFS
6121
6122fi
39fd3d4f 6123
93613951
TT
6124 test -d ./--version && rmdir ./--version
6125 if test "${ac_cv_path_mkdir+set}" = set; then
6126 MKDIR_P="$ac_cv_path_mkdir -p"
6127 else
6128 # As a last resort, use the slow shell script. Don't cache a
6129 # value for MKDIR_P within a source directory, because that will
6130 # break other packages using the cache if that directory is
6131 # removed, or if the value is a relative name.
6132 MKDIR_P="$ac_install_sh -d"
57aa50d4 6133 fi
93613951
TT
6134fi
6135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6136$as_echo "$MKDIR_P" >&6; }
6137
6138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6139$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6140if ${ac_cv_path_SED+:} false; then :
6141 $as_echo_n "(cached) " >&6
6142else
6143 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6144 for ac_i in 1 2 3 4 5 6 7; do
6145 ac_script="$ac_script$as_nl$ac_script"
6146 done
6147 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6148 { ac_script=; unset ac_script;}
6149 if test -z "$SED"; then
6150 ac_path_SED_found=false
6151 # Loop through the user's path and test for each of PROGNAME-LIST
6152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6153for as_dir in $PATH
6154do
6155 IFS=$as_save_IFS
6156 test -z "$as_dir" && as_dir=.
6157 for ac_prog in sed gsed; do
6158 for ac_exec_ext in '' $ac_executable_extensions; do
6159 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6160 as_fn_executable_p "$ac_path_SED" || continue
6161# Check for GNU ac_path_SED and select it if it is found.
6162 # Check for GNU $ac_path_SED
6163case `"$ac_path_SED" --version 2>&1` in
6164*GNU*)
6165 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6166*)
6167 ac_count=0
6168 $as_echo_n 0123456789 >"conftest.in"
6169 while :
6170 do
6171 cat "conftest.in" "conftest.in" >"conftest.tmp"
6172 mv "conftest.tmp" "conftest.in"
6173 cp "conftest.in" "conftest.nl"
6174 $as_echo '' >> "conftest.nl"
6175 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6176 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6177 as_fn_arith $ac_count + 1 && ac_count=$as_val
6178 if test $ac_count -gt ${ac_path_SED_max-0}; then
6179 # Best one so far, save it but keep looking for a better one
6180 ac_cv_path_SED="$ac_path_SED"
6181 ac_path_SED_max=$ac_count
6182 fi
6183 # 10*(2^10) chars as input seems more than enough
6184 test $ac_count -gt 10 && break
6185 done
6186 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6187esac
6188
6189 $ac_path_SED_found && break 3
6190 done
6191 done
6192 done
6193IFS=$as_save_IFS
6194 if test -z "$ac_cv_path_SED"; then
6195 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
57aa50d4 6196 fi
93613951
TT
6197else
6198 ac_cv_path_SED=$SED
6199fi
b0cacab0 6200
93613951
TT
6201fi
6202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6203$as_echo "$ac_cv_path_SED" >&6; }
6204 SED="$ac_cv_path_SED"
6205 rm -f conftest.sed
39fd3d4f 6206
e1052144 6207
57aa50d4
TT
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6209$as_echo_n "checking whether NLS is requested... " >&6; }
6210 # Check whether --enable-nls was given.
6211if test "${enable_nls+set}" = set; then :
6212 enableval=$enable_nls; USE_NLS=$enableval
b0cacab0 6213else
57aa50d4
TT
6214 USE_NLS=yes
6215fi
b0cacab0 6216
57aa50d4
TT
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6218$as_echo "$USE_NLS" >&6; }
93636bde 6219
a64c9c13 6220
a64c9c13 6221
b0cacab0 6222
93613951
TT
6223 GETTEXT_MACRO_VERSION=0.18
6224
6225
b0cacab0 6226
a64c9c13 6227
57aa50d4
TT
6228# Prepare PATH_SEPARATOR.
6229# The user is always right.
6230if test "${PATH_SEPARATOR+set}" != set; then
93613951
TT
6231 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6232 # contains only /bin. Note that ksh looks also at the FPATH variable,
6233 # so we have to set that as well for the test.
6234 PATH_SEPARATOR=:
6235 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6236 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6237 || PATH_SEPARATOR=';'
6238 }
57aa50d4 6239fi
b0cacab0 6240
57aa50d4
TT
6241# Find out how to test for executable files. Don't use a zero-byte file,
6242# as systems may use methods other than mode bits to determine executability.
6243cat >conf$$.file <<_ASEOF
6244#! /bin/sh
6245exit 0
6246_ASEOF
6247chmod +x conf$$.file
6248if test -x conf$$.file >/dev/null 2>&1; then
6249 ac_executable_p="test -x"
6250else
6251 ac_executable_p="test -f"
6252fi
6253rm -f conf$$.file
b0cacab0 6254
57aa50d4
TT
6255# Extract the first word of "msgfmt", so it can be a program name with args.
6256set dummy msgfmt; ac_word=$2
6257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6258$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 6259if ${ac_cv_path_MSGFMT+:} false; then :
39fd3d4f 6260 $as_echo_n "(cached) " >&6
93636bde 6261else
57aa50d4
TT
6262 case "$MSGFMT" in
6263 [\\/]* | ?:[\\/]*)
6264 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6265 ;;
6266 *)
6267 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6268 for ac_dir in $PATH; do
6269 IFS="$ac_save_IFS"
6270 test -z "$ac_dir" && ac_dir=.
6271 for ac_exec_ext in '' $ac_executable_extensions; do
6272 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
93613951
TT
6273 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6274 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
57aa50d4
TT
6275 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6276 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6277 break 2
6278 fi
6279 fi
6280 done
6281 done
6282 IFS="$ac_save_IFS"
6283 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6284 ;;
e1052144 6285esac
b0cacab0 6286fi
57aa50d4
TT
6287MSGFMT="$ac_cv_path_MSGFMT"
6288if test "$MSGFMT" != ":"; then
6289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
6290$as_echo "$MSGFMT" >&6; }
6291else
6292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6293$as_echo "no" >&6; }
b0cacab0 6294fi
a64c9c13 6295
57aa50d4
TT
6296 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6297set dummy gmsgfmt; ac_word=$2
6298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6299$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 6300if ${ac_cv_path_GMSGFMT+:} false; then :
39fd3d4f 6301 $as_echo_n "(cached) " >&6
93636bde 6302else
57aa50d4
TT
6303 case $GMSGFMT in
6304 [\\/]* | ?:[\\/]*)
6305 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6306 ;;
6307 *)
6308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6309for as_dir in $PATH
6310do
6311 IFS=$as_save_IFS
6312 test -z "$as_dir" && as_dir=.
6313 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 6314 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
6315 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6317 break 2
6318 fi
6319done
6320 done
6321IFS=$as_save_IFS
a64c9c13 6322
57aa50d4
TT
6323 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6324 ;;
e1052144 6325esac
57aa50d4
TT
6326fi
6327GMSGFMT=$ac_cv_path_GMSGFMT
6328if test -n "$GMSGFMT"; then
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
6330$as_echo "$GMSGFMT" >&6; }
b0cacab0 6331else
57aa50d4
TT
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6333$as_echo "no" >&6; }
b0cacab0 6334fi
e1052144 6335
b0cacab0 6336
b0cacab0 6337
93613951
TT
6338 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6339 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
6340 *) MSGFMT_015=$MSGFMT ;;
6341 esac
6342
6343 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6344 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
6345 *) GMSGFMT_015=$GMSGFMT ;;
6346 esac
6347
6348
57aa50d4
TT
6349
6350# Prepare PATH_SEPARATOR.
6351# The user is always right.
6352if test "${PATH_SEPARATOR+set}" != set; then
93613951
TT
6353 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6354 # contains only /bin. Note that ksh looks also at the FPATH variable,
6355 # so we have to set that as well for the test.
6356 PATH_SEPARATOR=:
6357 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6358 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6359 || PATH_SEPARATOR=';'
6360 }
57aa50d4 6361fi
b0cacab0 6362
57aa50d4
TT
6363# Find out how to test for executable files. Don't use a zero-byte file,
6364# as systems may use methods other than mode bits to determine executability.
6365cat >conf$$.file <<_ASEOF
6366#! /bin/sh
6367exit 0
6368_ASEOF
6369chmod +x conf$$.file
6370if test -x conf$$.file >/dev/null 2>&1; then
6371 ac_executable_p="test -x"
6372else
6373 ac_executable_p="test -f"
6374fi
6375rm -f conf$$.file
b0cacab0 6376
57aa50d4
TT
6377# Extract the first word of "xgettext", so it can be a program name with args.
6378set dummy xgettext; ac_word=$2
6379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6380$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 6381if ${ac_cv_path_XGETTEXT+:} false; then :
39fd3d4f 6382 $as_echo_n "(cached) " >&6
a64c9c13 6383else
57aa50d4
TT
6384 case "$XGETTEXT" in
6385 [\\/]* | ?:[\\/]*)
6386 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6387 ;;
6388 *)
6389 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6390 for ac_dir in $PATH; do
6391 IFS="$ac_save_IFS"
6392 test -z "$ac_dir" && ac_dir=.
6393 for ac_exec_ext in '' $ac_executable_extensions; do
6394 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
93613951
TT
6395 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6396 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
57aa50d4
TT
6397 (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
6398 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6399 break 2
6400 fi
6401 fi
6402 done
6403 done
6404 IFS="$ac_save_IFS"
6405 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6406 ;;
e1052144 6407esac
b0cacab0 6408fi
57aa50d4
TT
6409XGETTEXT="$ac_cv_path_XGETTEXT"
6410if test "$XGETTEXT" != ":"; then
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
6412$as_echo "$XGETTEXT" >&6; }
6413else
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6415$as_echo "no" >&6; }
b0cacab0 6416fi
b0cacab0 6417
57aa50d4 6418 rm -f messages.po
a64c9c13 6419
93613951
TT
6420 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6421 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
6422 *) XGETTEXT_015=$XGETTEXT ;;
6423 esac
6424
6425
b0cacab0 6426
57aa50d4
TT
6427# Prepare PATH_SEPARATOR.
6428# The user is always right.
6429if test "${PATH_SEPARATOR+set}" != set; then
93613951
TT
6430 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6431 # contains only /bin. Note that ksh looks also at the FPATH variable,
6432 # so we have to set that as well for the test.
6433 PATH_SEPARATOR=:
6434 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6435 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6436 || PATH_SEPARATOR=';'
6437 }
57aa50d4 6438fi
b0cacab0 6439
57aa50d4
TT
6440# Find out how to test for executable files. Don't use a zero-byte file,
6441# as systems may use methods other than mode bits to determine executability.
6442cat >conf$$.file <<_ASEOF
6443#! /bin/sh
6444exit 0
6445_ASEOF
6446chmod +x conf$$.file
6447if test -x conf$$.file >/dev/null 2>&1; then
6448 ac_executable_p="test -x"
6449else
6450 ac_executable_p="test -f"
6451fi
6452rm -f conf$$.file
6453
6454# Extract the first word of "msgmerge", so it can be a program name with args.
6455set dummy msgmerge; ac_word=$2
6456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6457$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 6458if ${ac_cv_path_MSGMERGE+:} false; then :
39fd3d4f 6459 $as_echo_n "(cached) " >&6
b0cacab0 6460else
57aa50d4
TT
6461 case "$MSGMERGE" in
6462 [\\/]* | ?:[\\/]*)
6463 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6464 ;;
6465 *)
6466 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6467 for ac_dir in $PATH; do
6468 IFS="$ac_save_IFS"
6469 test -z "$ac_dir" && ac_dir=.
6470 for ac_exec_ext in '' $ac_executable_extensions; do
6471 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
93613951
TT
6472 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6473 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
57aa50d4
TT
6474 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6475 break 2
6476 fi
6477 fi
6478 done
6479 done
6480 IFS="$ac_save_IFS"
6481 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6482 ;;
e1052144 6483esac
57aa50d4
TT
6484fi
6485MSGMERGE="$ac_cv_path_MSGMERGE"
6486if test "$MSGMERGE" != ":"; then
6487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6488$as_echo "$MSGMERGE" >&6; }
b0cacab0 6489else
57aa50d4
TT
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6491$as_echo "no" >&6; }
b0cacab0 6492fi
e1052144 6493
93636bde 6494
93613951
TT
6495 test -n "$localedir" || localedir='${datadir}/locale'
6496
6497
6498 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
6499
6500
6501 ac_config_commands="$ac_config_commands po-directories"
a64c9c13 6502
a64c9c13 6503
93613951
TT
6504
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
6506$as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
6507if ${ac_cv_gnu_library_2+:} false; then :
6508 $as_echo_n "(cached) " >&6
6509else
6510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6511/* end confdefs.h. */
6512
6513#include <features.h>
6514#ifdef __GNU_LIBRARY__
6515 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
6516 Lucky GNU user
6517 #endif
6518#endif
6519
6520_ACEOF
6521if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6522 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
6523 ac_cv_gnu_library_2=yes
6524else
6525 ac_cv_gnu_library_2=no
6526fi
6527rm -f conftest*
6528
a64c9c13 6529
a64c9c13 6530
93613951
TT
6531fi
6532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
6533$as_echo "$ac_cv_gnu_library_2" >&6; }
6534
6535 GLIBC2="$ac_cv_gnu_library_2"
57aa50d4 6536
a64c9c13 6537
57aa50d4
TT
6538if test -n "$ac_tool_prefix"; then
6539 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6540set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6542$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 6543if ${ac_cv_prog_RANLIB+:} false; then :
39fd3d4f 6544 $as_echo_n "(cached) " >&6
b0cacab0 6545else
57aa50d4
TT
6546 if test -n "$RANLIB"; then
6547 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
b0cacab0 6548else
57aa50d4
TT
6549as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6550for as_dir in $PATH
6551do
6552 IFS=$as_save_IFS
6553 test -z "$as_dir" && as_dir=.
6554 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 6555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
6556 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6558 break 2
6559 fi
6560done
6561 done
6562IFS=$as_save_IFS
d1154eb4
TT
6563
6564fi
6565fi
6566RANLIB=$ac_cv_prog_RANLIB
6567if test -n "$RANLIB"; then
6568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6569$as_echo "$RANLIB" >&6; }
6570else
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6572$as_echo "no" >&6; }
6573fi
6574
6575
6576fi
6577if test -z "$ac_cv_prog_RANLIB"; then
6578 ac_ct_RANLIB=$RANLIB
6579 # Extract the first word of "ranlib", so it can be a program name with args.
6580set dummy ranlib; ac_word=$2
6581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6582$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 6583if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
d1154eb4
TT
6584 $as_echo_n "(cached) " >&6
6585else
6586 if test -n "$ac_ct_RANLIB"; then
6587 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6588else
6589as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6590for as_dir in $PATH
6591do
6592 IFS=$as_save_IFS
6593 test -z "$as_dir" && as_dir=.
6594 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 6595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d1154eb4
TT
6596 ac_cv_prog_ac_ct_RANLIB="ranlib"
6597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6598 break 2
6599 fi
6600done
6601 done
6602IFS=$as_save_IFS
6603
6604fi
6605fi
6606ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6607if test -n "$ac_ct_RANLIB"; then
6608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6609$as_echo "$ac_ct_RANLIB" >&6; }
6610else
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6612$as_echo "no" >&6; }
6613fi
6614
6615 if test "x$ac_ct_RANLIB" = x; then
6616 RANLIB=":"
6617 else
6618 case $cross_compiling:$ac_tool_warned in
6619yes:)
6620{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6621$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6622ac_tool_warned=yes ;;
6623esac
6624 RANLIB=$ac_ct_RANLIB
6625 fi
6626else
6627 RANLIB="$ac_cv_prog_RANLIB"
6628fi
6629
6630
93613951
TT
6631
6632 CFLAG_VISIBILITY=
6633 HAVE_VISIBILITY=0
6634 if test -n "$GCC"; then
6635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
6636$as_echo_n "checking whether the -Werror option is usable... " >&6; }
6637 if ${gl_cv_cc_vis_werror+:} false; then :
d1154eb4
TT
6638 $as_echo_n "(cached) " >&6
6639else
93613951
TT
6640
6641 gl_save_CFLAGS="$CFLAGS"
6642 CFLAGS="$CFLAGS -Werror"
6643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d1154eb4
TT
6644/* end confdefs.h. */
6645
d1154eb4
TT
6646int
6647main ()
6648{
93613951 6649
d1154eb4
TT
6650 ;
6651 return 0;
6652}
6653_ACEOF
93613951
TT
6654if ac_fn_c_try_compile "$LINENO"; then :
6655 gl_cv_cc_vis_werror=yes
d1154eb4 6656else
93613951 6657 gl_cv_cc_vis_werror=no
d1154eb4 6658fi
93613951
TT
6659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6660 CFLAGS="$gl_save_CFLAGS"
d1154eb4
TT
6661fi
6662
93613951
TT
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
6664$as_echo "$gl_cv_cc_vis_werror" >&6; }
6665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
6666$as_echo_n "checking for simple visibility declarations... " >&6; }
6667 if ${gl_cv_cc_visibility+:} false; then :
6668 $as_echo_n "(cached) " >&6
6669else
d1154eb4 6670
93613951
TT
6671 gl_save_CFLAGS="$CFLAGS"
6672 CFLAGS="$CFLAGS -fvisibility=hidden"
6673 if test $gl_cv_cc_vis_werror = yes; then
6674 CFLAGS="$CFLAGS -Werror"
6675 fi
6676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6677/* end confdefs.h. */
6678extern __attribute__((__visibility__("hidden"))) int hiddenvar;
6679 extern __attribute__((__visibility__("default"))) int exportedvar;
6680 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
6681 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
6682 void dummyfunc (void) {}
d1154eb4 6683
93613951
TT
6684int
6685main ()
6686{
d1154eb4 6687
93613951
TT
6688 ;
6689 return 0;
6690}
6691_ACEOF
6692if ac_fn_c_try_compile "$LINENO"; then :
6693 gl_cv_cc_visibility=yes
d1154eb4 6694else
93613951
TT
6695 gl_cv_cc_visibility=no
6696fi
6697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6698 CFLAGS="$gl_save_CFLAGS"
6699fi
d1154eb4 6700
93613951
TT
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
6702$as_echo "$gl_cv_cc_visibility" >&6; }
6703 if test $gl_cv_cc_visibility = yes; then
6704 CFLAG_VISIBILITY="-fvisibility=hidden"
6705 HAVE_VISIBILITY=1
6706 fi
d1154eb4 6707 fi
d1154eb4 6708
d1154eb4
TT
6709
6710
93613951
TT
6711cat >>confdefs.h <<_ACEOF
6712#define HAVE_VISIBILITY $HAVE_VISIBILITY
6713_ACEOF
6714
6715
6716{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6717$as_echo_n "checking for inline... " >&6; }
6718if ${ac_cv_c_inline+:} false; then :
57aa50d4
TT
6719 $as_echo_n "(cached) " >&6
6720else
93613951
TT
6721 ac_cv_c_inline=no
6722for ac_kw in inline __inline__ __inline; do
d1154eb4
TT
6723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6724/* end confdefs.h. */
93613951
TT
6725#ifndef __cplusplus
6726typedef int foo_t;
6727static $ac_kw foo_t static_foo () {return 0; }
6728$ac_kw foo_t foo () {return 0; }
6729#endif
d1154eb4 6730
d1154eb4
TT
6731_ACEOF
6732if ac_fn_c_try_compile "$LINENO"; then :
93613951 6733 ac_cv_c_inline=$ac_kw
57aa50d4 6734fi
d1154eb4 6735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
93613951
TT
6736 test "$ac_cv_c_inline" != no && break
6737done
d1154eb4 6738
d1154eb4 6739fi
93613951
TT
6740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6741$as_echo "$ac_cv_c_inline" >&6; }
d1154eb4 6742
93613951
TT
6743case $ac_cv_c_inline in
6744 inline | yes) ;;
6745 *)
6746 case $ac_cv_c_inline in
6747 no) ac_val=;;
6748 *) ac_val=$ac_cv_c_inline;;
6749 esac
6750 cat >>confdefs.h <<_ACEOF
6751#ifndef __cplusplus
6752#define inline $ac_val
6753#endif
d1154eb4 6754_ACEOF
93613951
TT
6755 ;;
6756esac
d1154eb4 6757
93613951
TT
6758ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6759if test "x$ac_cv_type_size_t" = xyes; then :
d1154eb4 6760
57aa50d4 6761else
d1154eb4 6762
93613951
TT
6763cat >>confdefs.h <<_ACEOF
6764#define size_t unsigned int
d1154eb4 6765_ACEOF
b0cacab0 6766
57aa50d4 6767fi
b0cacab0
TT
6768
6769
93613951
TT
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
6771$as_echo_n "checking for stdint.h... " >&6; }
6772if ${gl_cv_header_stdint_h+:} false; then :
57aa50d4 6773 $as_echo_n "(cached) " >&6
b0cacab0 6774else
d1154eb4 6775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 6776/* end confdefs.h. */
93613951
TT
6777#include <sys/types.h>
6778 #include <stdint.h>
a64c9c13 6779int
b0cacab0
TT
6780main ()
6781{
93613951 6782uintmax_t i = (uintmax_t) -1; return !i;
d1154eb4 6783 ;
b0cacab0 6784 return 0;
a64c9c13 6785}
b0cacab0 6786_ACEOF
d1154eb4 6787if ac_fn_c_try_compile "$LINENO"; then :
93613951 6788 gl_cv_header_stdint_h=yes
b0cacab0 6789else
93613951 6790 gl_cv_header_stdint_h=no
b0cacab0 6791fi
d1154eb4 6792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d1154eb4 6793fi
93613951
TT
6794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
6795$as_echo "$gl_cv_header_stdint_h" >&6; }
6796 if test $gl_cv_header_stdint_h = yes; then
b0cacab0 6797
93613951
TT
6798cat >>confdefs.h <<_ACEOF
6799#define HAVE_STDINT_H_WITH_UINTMAX 1
d1154eb4 6800_ACEOF
b0cacab0 6801
93613951 6802 fi
b0cacab0 6803
93613951
TT
6804# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6805# for constant arguments. Useless!
6806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6807$as_echo_n "checking for working alloca.h... " >&6; }
6808if ${ac_cv_working_alloca_h+:} false; then :
39fd3d4f 6809 $as_echo_n "(cached) " >&6
a64c9c13 6810else
57aa50d4 6811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 6812/* end confdefs.h. */
93613951 6813#include <alloca.h>
57aa50d4
TT
6814int
6815main ()
6816{
93613951
TT
6817char *p = (char *) alloca (2 * sizeof (int));
6818 if (p) return 0;
57aa50d4
TT
6819 ;
6820 return 0;
6821}
b0cacab0 6822_ACEOF
93613951
TT
6823if ac_fn_c_try_link "$LINENO"; then :
6824 ac_cv_working_alloca_h=yes
b0cacab0 6825else
93613951 6826 ac_cv_working_alloca_h=no
57aa50d4 6827fi
93613951
TT
6828rm -f core conftest.err conftest.$ac_objext \
6829 conftest$ac_exeext conftest.$ac_ext
57aa50d4 6830fi
93613951
TT
6831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6832$as_echo "$ac_cv_working_alloca_h" >&6; }
6833if test $ac_cv_working_alloca_h = yes; then
57aa50d4 6834
93613951 6835$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
57aa50d4 6836
a64c9c13 6837fi
b0cacab0 6838
93613951
TT
6839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6840$as_echo_n "checking for alloca... " >&6; }
6841if ${ac_cv_func_alloca_works+:} false; then :
57aa50d4 6842 $as_echo_n "(cached) " >&6
b0cacab0 6843else
57aa50d4 6844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 6845/* end confdefs.h. */
93613951
TT
6846#ifdef __GNUC__
6847# define alloca __builtin_alloca
6848#else
6849# ifdef _MSC_VER
6850# include <malloc.h>
6851# define alloca _alloca
6852# else
6853# ifdef HAVE_ALLOCA_H
6854# include <alloca.h>
6855# else
6856# ifdef _AIX
6857 #pragma alloca
6858# else
6859# ifndef alloca /* predefined by HP cc +Olibcalls */
6860void *alloca (size_t);
6861# endif
6862# endif
6863# endif
6864# endif
6865#endif
b0cacab0 6866
57aa50d4
TT
6867int
6868main ()
b0cacab0 6869{
93613951
TT
6870char *p = (char *) alloca (1);
6871 if (p) return 0;
57aa50d4
TT
6872 ;
6873 return 0;
b0cacab0
TT
6874}
6875_ACEOF
93613951
TT
6876if ac_fn_c_try_link "$LINENO"; then :
6877 ac_cv_func_alloca_works=yes
b0cacab0 6878else
93613951 6879 ac_cv_func_alloca_works=no
57aa50d4 6880fi
93613951
TT
6881rm -f core conftest.err conftest.$ac_objext \
6882 conftest$ac_exeext conftest.$ac_ext
57aa50d4 6883fi
93613951
TT
6884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6885$as_echo "$ac_cv_func_alloca_works" >&6; }
57aa50d4 6886
93613951 6887if test $ac_cv_func_alloca_works = yes; then
57aa50d4 6888
93613951 6889$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
57aa50d4 6890
b0cacab0 6891else
93613951
TT
6892 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6893# that cause trouble. Some versions do not even contain alloca or
6894# contain a buggy version. If you still want to use their alloca,
6895# use ar to extract alloca.o from them instead of compiling alloca.c.
b0cacab0 6896
93613951 6897ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
57aa50d4 6898
93613951 6899$as_echo "#define C_ALLOCA 1" >>confdefs.h
57aa50d4 6900
57aa50d4 6901
93613951
TT
6902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
6903$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
6904if ${ac_cv_os_cray+:} false; then :
57aa50d4
TT
6905 $as_echo_n "(cached) " >&6
6906else
57aa50d4
TT
6907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6908/* end confdefs.h. */
93613951
TT
6909#if defined CRAY && ! defined CRAY2
6910webecray
6911#else
6912wenotbecray
57aa50d4 6913#endif
b0cacab0 6914
57aa50d4 6915_ACEOF
93613951
TT
6916if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6917 $EGREP "webecray" >/dev/null 2>&1; then :
6918 ac_cv_os_cray=yes
6919else
6920 ac_cv_os_cray=no
a64c9c13 6921fi
93613951 6922rm -f conftest*
d1154eb4
TT
6923
6924fi
93613951
TT
6925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
6926$as_echo "$ac_cv_os_cray" >&6; }
6927if test $ac_cv_os_cray = yes; then
6928 for ac_func in _getb67 GETB67 getb67; do
6929 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6930ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6931if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
e1052144 6932
57aa50d4 6933cat >>confdefs.h <<_ACEOF
93613951 6934#define CRAY_STACKSEG_END $ac_func
57aa50d4 6935_ACEOF
e1052144 6936
93613951 6937 break
a64c9c13 6938fi
07a0db15 6939
93613951 6940 done
57aa50d4 6941fi
b0cacab0 6942
93613951
TT
6943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
6944$as_echo_n "checking stack direction for C alloca... " >&6; }
6945if ${ac_cv_c_stack_direction+:} false; then :
39fd3d4f 6946 $as_echo_n "(cached) " >&6
93613951
TT
6947else
6948 if test "$cross_compiling" = yes; then :
6949 ac_cv_c_stack_direction=0
b0cacab0 6950else
57aa50d4 6951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 6952/* end confdefs.h. */
93613951 6953$ac_includes_default
b0cacab0 6954int
93613951 6955find_stack_direction (int *addr, int depth)
b0cacab0 6956{
93613951
TT
6957 int dir, dummy = 0;
6958 if (! addr)
6959 addr = &dummy;
6960 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
6961 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
6962 return dir + dummy;
b0cacab0 6963}
93636bde 6964
b0cacab0 6965int
93613951 6966main (int argc, char **argv)
b0cacab0 6967{
93613951 6968 return find_stack_direction (0, argc + !argv + 20) < 0;
b0cacab0
TT
6969}
6970_ACEOF
93613951
TT
6971if ac_fn_c_try_run "$LINENO"; then :
6972 ac_cv_c_stack_direction=1
a64c9c13 6973else
93613951 6974 ac_cv_c_stack_direction=-1
b0cacab0 6975fi
93613951
TT
6976rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6977 conftest.$ac_objext conftest.beam conftest.$ac_ext
b0cacab0 6978fi
b0cacab0 6979
93613951
TT
6980fi
6981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
6982$as_echo "$ac_cv_c_stack_direction" >&6; }
6983cat >>confdefs.h <<_ACEOF
6984#define STACK_DIRECTION $ac_cv_c_stack_direction
6985_ACEOF
57aa50d4 6986
b0cacab0 6987
57aa50d4 6988fi
b0cacab0 6989
57aa50d4
TT
6990
6991
b0cacab0 6992
93613951
TT
6993 for ac_header in $ac_header_list
6994do :
6995 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6996ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6997"
6998if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6999 cat >>confdefs.h <<_ACEOF
7000#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
b0cacab0 7001_ACEOF
93613951 7002
a64c9c13 7003fi
07a0db15 7004
93613951 7005done
a64c9c13 7006
a64c9c13 7007
b0cacab0 7008
b0cacab0 7009
a04eba3f 7010
a04eba3f 7011
b0cacab0 7012
b0cacab0 7013
93613951
TT
7014for ac_func in getpagesize
7015do :
7016 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7017if test "x$ac_cv_func_getpagesize" = xyes; then :
7018 cat >>confdefs.h <<_ACEOF
7019#define HAVE_GETPAGESIZE 1
b0cacab0
TT
7020_ACEOF
7021
93613951
TT
7022fi
7023done
b0cacab0 7024
93613951
TT
7025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7026$as_echo_n "checking for working mmap... " >&6; }
7027if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
39fd3d4f 7028 $as_echo_n "(cached) " >&6
93613951
TT
7029else
7030 if test "$cross_compiling" = yes; then :
7031 ac_cv_func_mmap_fixed_mapped=no
b0cacab0 7032else
57aa50d4 7033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 7034/* end confdefs.h. */
93613951
TT
7035$ac_includes_default
7036/* malloc might have been renamed as rpl_malloc. */
7037#undef malloc
57aa50d4 7038
93613951
TT
7039/* Thanks to Mike Haertel and Jim Avera for this test.
7040 Here is a matrix of mmap possibilities:
7041 mmap private not fixed
7042 mmap private fixed at somewhere currently unmapped
7043 mmap private fixed at somewhere already mapped
7044 mmap shared not fixed
7045 mmap shared fixed at somewhere currently unmapped
7046 mmap shared fixed at somewhere already mapped
7047 For private mappings, we should verify that changes cannot be read()
7048 back from the file, nor mmap's back from the file at a different
7049 address. (There have been systems where private was not correctly
7050 implemented like the infamous i386 svr4.0, and systems where the
7051 VM page cache was not coherent with the file system buffer cache
7052 like early versions of FreeBSD and possibly contemporary NetBSD.)
7053 For shared mappings, we should conversely verify that changes get
7054 propagated back to all the places they're supposed to be.
7055
7056 Grep wants private fixed already mapped.
7057 The main things grep needs to know about mmap are:
7058 * does it exist and is it safe to write into the mmap'd area
7059 * how to use it (BSD variants) */
7060
7061#include <fcntl.h>
7062#include <sys/mman.h>
7063
7064#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7065char *malloc ();
57aa50d4
TT
7066#endif
7067
93613951
TT
7068/* This mess was copied from the GNU getpagesize.h. */
7069#ifndef HAVE_GETPAGESIZE
7070# ifdef _SC_PAGESIZE
7071# define getpagesize() sysconf(_SC_PAGESIZE)
7072# else /* no _SC_PAGESIZE */
7073# ifdef HAVE_SYS_PARAM_H
7074# include <sys/param.h>
7075# ifdef EXEC_PAGESIZE
7076# define getpagesize() EXEC_PAGESIZE
7077# else /* no EXEC_PAGESIZE */
7078# ifdef NBPG
7079# define getpagesize() NBPG * CLSIZE
7080# ifndef CLSIZE
7081# define CLSIZE 1
7082# endif /* no CLSIZE */
7083# else /* no NBPG */
7084# ifdef NBPC
7085# define getpagesize() NBPC
7086# else /* no NBPC */
7087# ifdef PAGESIZE
7088# define getpagesize() PAGESIZE
7089# endif /* PAGESIZE */
7090# endif /* no NBPC */
7091# endif /* no NBPG */
7092# endif /* no EXEC_PAGESIZE */
7093# else /* no HAVE_SYS_PARAM_H */
7094# define getpagesize() 8192 /* punt totally */
7095# endif /* no HAVE_SYS_PARAM_H */
7096# endif /* no _SC_PAGESIZE */
7097
7098#endif /* no HAVE_GETPAGESIZE */
7099
57aa50d4
TT
7100int
7101main ()
7102{
93613951
TT
7103 char *data, *data2, *data3;
7104 const char *cdata2;
7105 int i, pagesize;
7106 int fd, fd2;
7107
7108 pagesize = getpagesize ();
7109
7110 /* First, make a file with some known garbage in it. */
7111 data = (char *) malloc (pagesize);
7112 if (!data)
7113 return 1;
7114 for (i = 0; i < pagesize; ++i)
7115 *(data + i) = rand ();
7116 umask (0);
7117 fd = creat ("conftest.mmap", 0600);
7118 if (fd < 0)
7119 return 2;
7120 if (write (fd, data, pagesize) != pagesize)
7121 return 3;
7122 close (fd);
7123
7124 /* Next, check that the tail of a page is zero-filled. File must have
7125 non-zero length, otherwise we risk SIGBUS for entire page. */
7126 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7127 if (fd2 < 0)
7128 return 4;
7129 cdata2 = "";
7130 if (write (fd2, cdata2, 1) != 1)
7131 return 5;
7132 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7133 if (data2 == MAP_FAILED)
7134 return 6;
7135 for (i = 0; i < pagesize; ++i)
7136 if (*(data2 + i))
7137 return 7;
7138 close (fd2);
7139 if (munmap (data2, pagesize))
7140 return 8;
7141
7142 /* Next, try to mmap the file at a fixed address which already has
7143 something else allocated at it. If we can, also make sure that
7144 we see the same garbage. */
7145 fd = open ("conftest.mmap", O_RDWR);
7146 if (fd < 0)
7147 return 9;
7148 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7149 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7150 return 10;
7151 for (i = 0; i < pagesize; ++i)
7152 if (*(data + i) != *(data2 + i))
7153 return 11;
7154
7155 /* Finally, make sure that changes to the mapped area do not
7156 percolate back to the file as seen by read(). (This is a bug on
7157 some variants of i386 svr4.0.) */
7158 for (i = 0; i < pagesize; ++i)
7159 *(data2 + i) = *(data2 + i) + 1;
7160 data3 = (char *) malloc (pagesize);
7161 if (!data3)
7162 return 12;
7163 if (read (fd, data3, pagesize) != pagesize)
7164 return 13;
7165 for (i = 0; i < pagesize; ++i)
7166 if (*(data + i) != *(data3 + i))
7167 return 14;
7168 close (fd);
57aa50d4
TT
7169 return 0;
7170}
b0cacab0 7171_ACEOF
93613951
TT
7172if ac_fn_c_try_run "$LINENO"; then :
7173 ac_cv_func_mmap_fixed_mapped=yes
b0cacab0 7174else
93613951 7175 ac_cv_func_mmap_fixed_mapped=no
b0cacab0 7176fi
93613951
TT
7177rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7178 conftest.$ac_objext conftest.beam conftest.$ac_ext
57aa50d4 7179fi
b0cacab0 7180
93613951
TT
7181fi
7182{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7183$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7184if test $ac_cv_func_mmap_fixed_mapped = yes; then
b0cacab0 7185
93613951 7186$as_echo "#define HAVE_MMAP 1" >>confdefs.h
e1052144 7187
93613951
TT
7188fi
7189rm -f conftest.mmap conftest.txt
b0cacab0 7190
e1052144 7191
93613951
TT
7192
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
7194$as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
7195if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
39fd3d4f 7196 $as_echo_n "(cached) " >&6
b0cacab0 7197else
b0cacab0 7198
93613951
TT
7199 gt_cv_int_divbyzero_sigfpe=
7200 case "$host_os" in
7201 macos* | darwin[6-9]* | darwin[1-9][0-9]*)
7202 # On Mac OS X 10.2 or newer, just assume the same as when cross-
7203 # compiling. If we were to perform the real test, 1 Crash Report
7204 # dialog window would pop up.
7205 case "$host_cpu" in
7206 i[34567]86 | x86_64)
7207 gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
7208 esac
7209 ;;
7210 esac
7211 if test -z "$gt_cv_int_divbyzero_sigfpe"; then
7212 if test "$cross_compiling" = yes; then :
7213
7214 # Guess based on the CPU.
7215 case "$host_cpu" in
7216 alpha* | i[34567]86 | x86_64 | m68k | s390*)
7217 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7218 *)
7219 gt_cv_int_divbyzero_sigfpe="guessing no";;
7220 esac
57aa50d4 7221
93613951
TT
7222else
7223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57aa50d4
TT
7224/* end confdefs.h. */
7225
93613951
TT
7226#include <stdlib.h>
7227#include <signal.h>
b0cacab0 7228
93613951
TT
7229static void
7230sigfpe_handler (int sig)
7231{
7232 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7233 exit (sig != SIGFPE);
7234}
b0cacab0 7235
93613951
TT
7236int x = 1;
7237int y = 0;
7238int z;
7239int nan;
b0cacab0 7240
57aa50d4
TT
7241int main ()
7242{
93613951
TT
7243 signal (SIGFPE, sigfpe_handler);
7244/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7245#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7246 signal (SIGTRAP, sigfpe_handler);
7247#endif
7248/* Linux/SPARC yields signal SIGILL. */
7249#if defined (__sparc__) && defined (__linux__)
7250 signal (SIGILL, sigfpe_handler);
7251#endif
7252
7253 z = x / y;
7254 nan = y / y;
7255 exit (2);
57aa50d4 7256}
93613951 7257
57aa50d4
TT
7258_ACEOF
7259if ac_fn_c_try_run "$LINENO"; then :
93613951 7260 gt_cv_int_divbyzero_sigfpe=yes
57aa50d4 7261else
93613951 7262 gt_cv_int_divbyzero_sigfpe=no
57aa50d4
TT
7263fi
7264rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7265 conftest.$ac_objext conftest.beam conftest.$ac_ext
7266fi
7267
93613951 7268 fi
57aa50d4
TT
7269
7270fi
93613951
TT
7271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
7272$as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7273 case "$gt_cv_int_divbyzero_sigfpe" in
7274 *yes) value=1;;
7275 *) value=0;;
7276 esac
57aa50d4 7277
93613951
TT
7278cat >>confdefs.h <<_ACEOF
7279#define INTDIV0_RAISES_SIGFPE $value
7280_ACEOF
57aa50d4 7281
57aa50d4 7282
93613951
TT
7283
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7285$as_echo_n "checking for inttypes.h... " >&6; }
7286if ${gl_cv_header_inttypes_h+:} false; then :
39fd3d4f 7287 $as_echo_n "(cached) " >&6
b0cacab0 7288else
57aa50d4 7289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 7290/* end confdefs.h. */
93613951
TT
7291
7292#include <sys/types.h>
7293#include <inttypes.h>
7294
57aa50d4
TT
7295int
7296main ()
7297{
93613951 7298uintmax_t i = (uintmax_t) -1; return !i;
57aa50d4
TT
7299 ;
7300 return 0;
7301}
7302_ACEOF
93613951
TT
7303if ac_fn_c_try_compile "$LINENO"; then :
7304 gl_cv_header_inttypes_h=yes
57aa50d4 7305else
93613951 7306 gl_cv_header_inttypes_h=no
57aa50d4 7307fi
93613951 7308rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57aa50d4 7309fi
93613951
TT
7310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
7311$as_echo "$gl_cv_header_inttypes_h" >&6; }
7312 if test $gl_cv_header_inttypes_h = yes; then
b0cacab0 7313
93613951
TT
7314cat >>confdefs.h <<_ACEOF
7315#define HAVE_INTTYPES_H_WITH_UINTMAX 1
7316_ACEOF
b0cacab0 7317
93613951 7318 fi
57aa50d4 7319
93613951
TT
7320
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
7322$as_echo_n "checking for unsigned long long int... " >&6; }
7323if ${ac_cv_type_unsigned_long_long_int+:} false; then :
57aa50d4
TT
7324 $as_echo_n "(cached) " >&6
7325else
93613951
TT
7326 ac_cv_type_unsigned_long_long_int=yes
7327 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57aa50d4 7329/* end confdefs.h. */
b0cacab0 7330
93613951
TT
7331 /* For now, do not test the preprocessor; as of 2007 there are too many
7332 implementations with broken preprocessors. Perhaps this can
7333 be revisited in 2012. In the meantime, code should not expect
7334 #if to work with literals wider than 32 bits. */
7335 /* Test literals. */
7336 long long int ll = 9223372036854775807ll;
7337 long long int nll = -9223372036854775807LL;
7338 unsigned long long int ull = 18446744073709551615ULL;
7339 /* Test constant expressions. */
7340 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7341 ? 1 : -1)];
7342 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7343 ? 1 : -1)];
7344 int i = 63;
57aa50d4
TT
7345int
7346main ()
7347{
93613951
TT
7348/* Test availability of runtime routines for shift and division. */
7349 long long int llmax = 9223372036854775807ll;
7350 unsigned long long int ullmax = 18446744073709551615ull;
7351 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7352 | (llmax / ll) | (llmax % ll)
7353 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7354 | (ullmax / ull) | (ullmax % ull));
57aa50d4
TT
7355 ;
7356 return 0;
7357}
93613951 7358
57aa50d4
TT
7359_ACEOF
7360if ac_fn_c_try_link "$LINENO"; then :
93613951 7361
57aa50d4 7362else
93613951 7363 ac_cv_type_unsigned_long_long_int=no
57aa50d4
TT
7364fi
7365rm -f core conftest.err conftest.$ac_objext \
7366 conftest$ac_exeext conftest.$ac_ext
93613951 7367 fi
57aa50d4 7368fi
93613951
TT
7369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
7370$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
7371 if test $ac_cv_type_unsigned_long_long_int = yes; then
b0cacab0 7372
93613951 7373$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
57aa50d4 7374
93613951 7375 fi
57aa50d4 7376
57aa50d4 7377
57aa50d4 7378
57aa50d4 7379
93613951 7380 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
57aa50d4 7381
93613951
TT
7382 test $ac_cv_type_unsigned_long_long_int = yes \
7383 && ac_type='unsigned long long' \
7384 || ac_type='unsigned long'
b0cacab0 7385
93613951
TT
7386cat >>confdefs.h <<_ACEOF
7387#define uintmax_t $ac_type
57aa50d4 7388_ACEOF
57aa50d4 7389
93613951 7390 else
57aa50d4 7391
93613951
TT
7392$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7393
7394 fi
7395
7396
7397 for ac_header in inttypes.h
7398do :
7399 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
7400if test "x$ac_cv_header_inttypes_h" = xyes; then :
7401 cat >>confdefs.h <<_ACEOF
7402#define HAVE_INTTYPES_H 1
57aa50d4
TT
7403_ACEOF
7404
57aa50d4
TT
7405fi
7406
93613951 7407done
57aa50d4 7408
93613951
TT
7409 if test $ac_cv_header_inttypes_h = yes; then
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7411$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7412if ${gt_cv_inttypes_pri_broken+:} false; then :
57aa50d4
TT
7413 $as_echo_n "(cached) " >&6
7414else
93613951
TT
7415
7416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57aa50d4 7417/* end confdefs.h. */
93613951
TT
7418
7419#include <inttypes.h>
7420#ifdef PRId32
7421char *p = PRId32;
7422#endif
57aa50d4 7423
b0cacab0 7424int
93613951 7425main ()
b0cacab0 7426{
93613951
TT
7427
7428 ;
7429 return 0;
b0cacab0
TT
7430}
7431_ACEOF
93613951
TT
7432if ac_fn_c_try_compile "$LINENO"; then :
7433 gt_cv_inttypes_pri_broken=no
b0cacab0 7434else
93613951 7435 gt_cv_inttypes_pri_broken=yes
57aa50d4 7436fi
93613951 7437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57aa50d4
TT
7438
7439fi
93613951
TT
7440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7441$as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7442 fi
7443 if test "$gt_cv_inttypes_pri_broken" = yes; then
7444
57aa50d4 7445cat >>confdefs.h <<_ACEOF
93613951 7446#define PRI_MACROS_BROKEN 1
57aa50d4
TT
7447_ACEOF
7448
93613951
TT
7449 PRI_MACROS_BROKEN=1
7450 else
7451 PRI_MACROS_BROKEN=0
7452 fi
b0cacab0 7453
e1052144 7454
61ef2474
TT
7455
7456
7457
61ef2474 7458
93613951
TT
7459
7460 # Check whether --enable-threads was given.
7461if test "${enable_threads+set}" = set; then :
7462 enableval=$enable_threads; gl_use_threads=$enableval
7463else
7464 if test -n "$gl_use_threads_default"; then
7465 gl_use_threads="$gl_use_threads_default"
7466 else
7467 case "$host_os" in
7468 osf*) gl_use_threads=no ;;
7469 cygwin*)
7470 case `uname -r` in
7471 1.[0-5].*) gl_use_threads=no ;;
7472 *) gl_use_threads=yes ;;
7473 esac
7474 ;;
7475 *) gl_use_threads=yes ;;
7476 esac
7477 fi
57aa50d4 7478
b0cacab0 7479fi
57aa50d4 7480
93613951
TT
7481 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7482 # For using <pthread.h>:
7483 case "$host_os" in
7484 osf*)
7485 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
7486 # groks <pthread.h>. cc also understands the flag -pthread, but
7487 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
7488 # 2. putting a flag into CPPFLAGS that has an effect on the linker
7489 # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
7490 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
7491 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
7492 ;;
7493 esac
7494 # Some systems optimize for single-threaded programs by default, and
7495 # need special flags to disable these optimizations. For example, the
7496 # definition of 'errno' in <errno.h>.
7497 case "$host_os" in
7498 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
7499 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
7500 esac
7501 fi
57aa50d4 7502
61ef2474
TT
7503
7504
7505
7506
93613951
TT
7507 if test "X$prefix" = "XNONE"; then
7508 acl_final_prefix="$ac_default_prefix"
7509 else
7510 acl_final_prefix="$prefix"
7511 fi
7512 if test "X$exec_prefix" = "XNONE"; then
7513 acl_final_exec_prefix='${prefix}'
7514 else
7515 acl_final_exec_prefix="$exec_prefix"
7516 fi
7517 acl_save_prefix="$prefix"
7518 prefix="$acl_final_prefix"
7519 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7520 prefix="$acl_save_prefix"
61ef2474
TT
7521
7522
7523
93613951
TT
7524# Check whether --with-gnu-ld was given.
7525if test "${with_gnu_ld+set}" = set; then :
7526 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7527else
7528 with_gnu_ld=no
7529fi
b0cacab0 7530
93613951
TT
7531# Prepare PATH_SEPARATOR.
7532# The user is always right.
7533if test "${PATH_SEPARATOR+set}" != set; then
7534 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7535 # contains only /bin. Note that ksh looks also at the FPATH variable,
7536 # so we have to set that as well for the test.
7537 PATH_SEPARATOR=:
7538 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7539 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7540 || PATH_SEPARATOR=';'
7541 }
b0cacab0 7542fi
b0cacab0 7543
93613951
TT
7544ac_prog=ld
7545if test "$GCC" = yes; then
7546 # Check if gcc -print-prog-name=ld gives a path.
7547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7548$as_echo_n "checking for ld used by $CC... " >&6; }
7549 case $host in
7550 *-*-mingw*)
7551 # gcc leaves a trailing carriage return which upsets mingw
7552 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7553 *)
7554 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7555 esac
7556 case $ac_prog in
7557 # Accept absolute paths.
7558 [\\/]* | ?:[\\/]*)
7559 re_direlt='/[^/][^/]*/\.\./'
7560 # Canonicalize the pathname of ld
7561 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
7562 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
7563 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7564 done
7565 test -z "$LD" && LD="$ac_prog"
7566 ;;
7567 "")
7568 # If it fails, then pretend we aren't using GCC.
7569 ac_prog=ld
7570 ;;
7571 *)
7572 # If it is relative, then search for the first ld in PATH.
7573 with_gnu_ld=unknown
7574 ;;
7575 esac
7576elif test "$with_gnu_ld" = yes; then
7577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7578$as_echo_n "checking for GNU ld... " >&6; }
b0cacab0 7579else
93613951
TT
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7581$as_echo_n "checking for non-GNU ld... " >&6; }
7582fi
7583if ${acl_cv_path_LD+:} false; then :
7584 $as_echo_n "(cached) " >&6
b0cacab0 7585else
93613951
TT
7586 if test -z "$LD"; then
7587 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7588 for ac_dir in $PATH; do
7589 IFS="$acl_save_ifs"
7590 test -z "$ac_dir" && ac_dir=.
7591 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7592 acl_cv_path_LD="$ac_dir/$ac_prog"
7593 # Check to see if the program is GNU ld. I'd rather use --version,
7594 # but apparently some variants of GNU ld only accept -v.
7595 # Break only if it was the GNU/non-GNU ld that we prefer.
7596 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
7597 *GNU* | *'with BFD'*)
7598 test "$with_gnu_ld" != no && break
7599 ;;
7600 *)
7601 test "$with_gnu_ld" != yes && break
7602 ;;
7603 esac
7604 fi
7605 done
7606 IFS="$acl_save_ifs"
7607else
7608 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7609fi
7610fi
b0cacab0 7611
93613951
TT
7612LD="$acl_cv_path_LD"
7613if test -n "$LD"; then
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7615$as_echo "$LD" >&6; }
7616else
7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7618$as_echo "no" >&6; }
7619fi
7620test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7622$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7623if ${acl_cv_prog_gnu_ld+:} false; then :
7624 $as_echo_n "(cached) " >&6
7625else
7626 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7627case `$LD -v 2>&1 </dev/null` in
7628*GNU* | *'with BFD'*)
7629 acl_cv_prog_gnu_ld=yes
7630 ;;
7631*)
7632 acl_cv_prog_gnu_ld=no
7633 ;;
7634esac
7635fi
7636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7637$as_echo "$acl_cv_prog_gnu_ld" >&6; }
7638with_gnu_ld=$acl_cv_prog_gnu_ld
b0cacab0 7639
b0cacab0 7640
b0cacab0 7641
b0cacab0 7642
93613951
TT
7643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7644$as_echo_n "checking for shared library run path origin... " >&6; }
7645if ${acl_cv_rpath+:} false; then :
7646 $as_echo_n "(cached) " >&6
7647else
61ef2474 7648
93613951
TT
7649 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7650 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7651 . ./conftest.sh
7652 rm -f ./conftest.sh
7653 acl_cv_rpath=done
b0cacab0 7654
b0cacab0 7655fi
93613951
TT
7656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7657$as_echo "$acl_cv_rpath" >&6; }
7658 wl="$acl_cv_wl"
7659 acl_libext="$acl_cv_libext"
7660 acl_shlibext="$acl_cv_shlibext"
7661 acl_libname_spec="$acl_cv_libname_spec"
7662 acl_library_names_spec="$acl_cv_library_names_spec"
7663 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7664 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7665 acl_hardcode_direct="$acl_cv_hardcode_direct"
7666 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
7667 # Check whether --enable-rpath was given.
7668if test "${enable_rpath+set}" = set; then :
7669 enableval=$enable_rpath; :
7670else
7671 enable_rpath=yes
b0cacab0 7672fi
b0cacab0 7673
b0cacab0 7674
b0cacab0
TT
7675
7676
93613951
TT
7677 acl_libdirstem=lib
7678 acl_libdirstem2=
7679 case "$host_os" in
7680 solaris*)
7681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
7682$as_echo_n "checking for 64-bit host... " >&6; }
7683if ${gl_cv_solaris_64bit+:} false; then :
39fd3d4f 7684 $as_echo_n "(cached) " >&6
b0cacab0 7685else
57aa50d4 7686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0
TT
7687/* end confdefs.h. */
7688
93613951
TT
7689#ifdef _LP64
7690sixtyfour bits
b0cacab0
TT
7691#endif
7692
7693_ACEOF
7694if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
93613951
TT
7695 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
7696 gl_cv_solaris_64bit=yes
b0cacab0 7697else
93613951 7698 gl_cv_solaris_64bit=no
b0cacab0
TT
7699fi
7700rm -f conftest*
7701
7702
b0cacab0 7703fi
93613951
TT
7704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
7705$as_echo "$gl_cv_solaris_64bit" >&6; }
7706 if test $gl_cv_solaris_64bit = yes; then
7707 acl_libdirstem=lib/64
7708 case "$host_cpu" in
7709 sparc*) acl_libdirstem2=lib/sparcv9 ;;
7710 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
7711 esac
7712 fi
7713 ;;
7714 *)
7715 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
7716 if test -n "$searchpath"; then
7717 acl_save_IFS="${IFS= }"; IFS=":"
7718 for searchdir in $searchpath; do
7719 if test -d "$searchdir"; then
7720 case "$searchdir" in
7721 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
7722 */../ | */.. )
7723 # Better ignore directories of this form. They are misleading.
7724 ;;
7725 *) searchdir=`cd "$searchdir" && pwd`
7726 case "$searchdir" in
7727 */lib64 ) acl_libdirstem=lib64 ;;
7728 esac ;;
7729 esac
7730 fi
7731 done
7732 IFS="$acl_save_IFS"
7733 fi
7734 ;;
7735 esac
7736 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
b0cacab0
TT
7737
7738
7739
93613951
TT
7740 gl_threads_api=none
7741 LIBTHREAD=
7742 LTLIBTHREAD=
7743 LIBMULTITHREAD=
7744 LTLIBMULTITHREAD=
7745 if test "$gl_use_threads" != no; then
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
7747$as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
7748if ${gl_cv_have_weak+:} false; then :
39fd3d4f 7749 $as_echo_n "(cached) " >&6
b0cacab0 7750else
93613951
TT
7751 gl_cv_have_weak=no
7752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 7753/* end confdefs.h. */
93613951
TT
7754extern void xyzzy ();
7755#pragma weak xyzzy
7756int
7757main ()
b0cacab0 7758{
93613951
TT
7759xyzzy();
7760 ;
7761 return 0;
b0cacab0 7762}
93613951
TT
7763_ACEOF
7764if ac_fn_c_try_link "$LINENO"; then :
7765 gl_cv_have_weak=maybe
7766fi
7767rm -f core conftest.err conftest.$ac_objext \
7768 conftest$ac_exeext conftest.$ac_ext
7769 if test $gl_cv_have_weak = maybe; then
7770 if test "$cross_compiling" = yes; then :
7771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7772/* end confdefs.h. */
7773#ifdef __ELF__
7774 Extensible Linking Format
7775 #endif
b0cacab0 7776
93613951
TT
7777_ACEOF
7778if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7779 $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
7780 gl_cv_have_weak="guessing yes"
7781else
7782 gl_cv_have_weak="guessing no"
7783fi
7784rm -f conftest*
b0cacab0 7785
b0cacab0
TT
7786
7787else
57aa50d4 7788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 7789/* end confdefs.h. */
b0cacab0 7790
93613951
TT
7791#include <stdio.h>
7792#pragma weak fputs
b0cacab0 7793int main ()
a04eba3f 7794{
93613951 7795 return (fputs == NULL);
a04eba3f 7796}
b0cacab0 7797_ACEOF
57aa50d4 7798if ac_fn_c_try_run "$LINENO"; then :
93613951 7799 gl_cv_have_weak=yes
a64c9c13 7800else
93613951 7801 gl_cv_have_weak=no
b0cacab0 7802fi
57aa50d4
TT
7803rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7804 conftest.$ac_objext conftest.beam conftest.$ac_ext
b0cacab0
TT
7805fi
7806
93613951 7807 fi
e1052144 7808
b0cacab0 7809fi
93613951
TT
7810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
7811$as_echo "$gl_cv_have_weak" >&6; }
7812 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7813 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
7814 # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
7815 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
7816if test "x$ac_cv_header_pthread_h" = xyes; then :
7817 gl_have_pthread_h=yes
7818else
7819 gl_have_pthread_h=no
7820fi
b0cacab0
TT
7821
7822
93613951
TT
7823 if test "$gl_have_pthread_h" = yes; then
7824 # Other possible tests:
7825 # -lpthreads (FSU threads, PCthreads)
7826 # -lgthreads
7827 gl_have_pthread=
7828 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
7829 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
7830 # the second one only in libpthread, and lock.c needs it.
7831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 7832/* end confdefs.h. */
93613951 7833#include <pthread.h>
b0cacab0
TT
7834int
7835main ()
7836{
93613951
TT
7837pthread_mutex_lock((pthread_mutex_t*)0);
7838 pthread_mutexattr_init((pthread_mutexattr_t*)0);
b0cacab0
TT
7839 ;
7840 return 0;
7841}
7842_ACEOF
57aa50d4 7843if ac_fn_c_try_link "$LINENO"; then :
93613951 7844 gl_have_pthread=yes
b0cacab0 7845fi
57aa50d4
TT
7846rm -f core conftest.err conftest.$ac_objext \
7847 conftest$ac_exeext conftest.$ac_ext
93613951
TT
7848 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
7849 # since it is defined as a macro on OSF/1.)
7850 if test -n "$gl_have_pthread"; then
7851 # The program links fine without libpthread. But it may actually
7852 # need to link with libpthread in order to create multiple threads.
7853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
7854$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
7855if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
39fd3d4f 7856 $as_echo_n "(cached) " >&6
b0cacab0 7857else
93613951
TT
7858 ac_check_lib_save_LIBS=$LIBS
7859LIBS="-lpthread $LIBS"
7860cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 7861/* end confdefs.h. */
93613951
TT
7862
7863/* Override any GCC internal prototype to avoid an error.
7864 Use char because int might match the return type of a GCC
7865 builtin and then its argument prototype would still apply. */
7866#ifdef __cplusplus
7867extern "C"
7868#endif
7869char pthread_kill ();
b0cacab0
TT
7870int
7871main ()
7872{
93613951 7873return pthread_kill ();
b0cacab0
TT
7874 ;
7875 return 0;
7876}
7877_ACEOF
93613951
TT
7878if ac_fn_c_try_link "$LINENO"; then :
7879 ac_cv_lib_pthread_pthread_kill=yes
b0cacab0 7880else
93613951 7881 ac_cv_lib_pthread_pthread_kill=no
b0cacab0 7882fi
93613951
TT
7883rm -f core conftest.err conftest.$ac_objext \
7884 conftest$ac_exeext conftest.$ac_ext
7885LIBS=$ac_check_lib_save_LIBS
b0cacab0 7886fi
93613951
TT
7887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
7888$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
7889if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
7890 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
7891 # On Solaris and HP-UX, most pthread functions exist also in libc.
7892 # Therefore pthread_in_use() needs to actually try to create a
7893 # thread: pthread_create from libc will fail, whereas
7894 # pthread_create will actually create a thread.
7895 case "$host_os" in
7896 solaris* | hpux*)
b0cacab0 7897
93613951 7898$as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
b0cacab0 7899
93613951 7900 esac
b0cacab0 7901
93613951 7902fi
b0cacab0 7903
93613951
TT
7904 else
7905 # Some library is needed. Try libpthread and libc_r.
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
7907$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
7908if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
39fd3d4f 7909 $as_echo_n "(cached) " >&6
b0cacab0 7910else
93613951
TT
7911 ac_check_lib_save_LIBS=$LIBS
7912LIBS="-lpthread $LIBS"
7913cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 7914/* end confdefs.h. */
b0cacab0 7915
93613951
TT
7916/* Override any GCC internal prototype to avoid an error.
7917 Use char because int might match the return type of a GCC
7918 builtin and then its argument prototype would still apply. */
7919#ifdef __cplusplus
7920extern "C"
7921#endif
7922char pthread_kill ();
b0cacab0
TT
7923int
7924main ()
7925{
93613951 7926return pthread_kill ();
b0cacab0
TT
7927 ;
7928 return 0;
7929}
7930_ACEOF
93613951
TT
7931if ac_fn_c_try_link "$LINENO"; then :
7932 ac_cv_lib_pthread_pthread_kill=yes
b0cacab0 7933else
93613951 7934 ac_cv_lib_pthread_pthread_kill=no
b0cacab0 7935fi
93613951
TT
7936rm -f core conftest.err conftest.$ac_objext \
7937 conftest$ac_exeext conftest.$ac_ext
7938LIBS=$ac_check_lib_save_LIBS
b0cacab0 7939fi
93613951
TT
7940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
7941$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
7942if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
7943 gl_have_pthread=yes
7944 LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
7945 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
b0cacab0
TT
7946fi
7947
93613951
TT
7948 if test -z "$gl_have_pthread"; then
7949 # For FreeBSD 4.
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
7951$as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
7952if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
7953 $as_echo_n "(cached) " >&6
7954else
7955 ac_check_lib_save_LIBS=$LIBS
7956LIBS="-lc_r $LIBS"
7957cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0
TT
7958/* end confdefs.h. */
7959
93613951
TT
7960/* Override any GCC internal prototype to avoid an error.
7961 Use char because int might match the return type of a GCC
7962 builtin and then its argument prototype would still apply. */
7963#ifdef __cplusplus
7964extern "C"
b0cacab0 7965#endif
93613951
TT
7966char pthread_kill ();
7967int
7968main ()
7969{
7970return pthread_kill ();
7971 ;
7972 return 0;
7973}
b0cacab0 7974_ACEOF
93613951
TT
7975if ac_fn_c_try_link "$LINENO"; then :
7976 ac_cv_lib_c_r_pthread_kill=yes
b0cacab0 7977else
93613951 7978 ac_cv_lib_c_r_pthread_kill=no
57aa50d4 7979fi
93613951
TT
7980rm -f core conftest.err conftest.$ac_objext \
7981 conftest$ac_exeext conftest.$ac_ext
7982LIBS=$ac_check_lib_save_LIBS
7983fi
7984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
7985$as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
7986if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
7987 gl_have_pthread=yes
7988 LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
7989 LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
b0cacab0 7990fi
e1052144 7991
93613951
TT
7992 fi
7993 fi
7994 if test -n "$gl_have_pthread"; then
7995 gl_threads_api=posix
57aa50d4 7996
93613951 7997$as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
57aa50d4 7998
93613951
TT
7999 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8000 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
b0cacab0 8001
93613951 8002$as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
b0cacab0 8003
93613951
TT
8004 LIBTHREAD=
8005 LTLIBTHREAD=
8006 fi
8007 fi
8008 fi
8009 fi
8010 fi
8011 if test -z "$gl_have_pthread"; then
8012 if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
8013 gl_have_solaristhread=
8014 gl_save_LIBS="$LIBS"
8015 LIBS="$LIBS -lthread"
8016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 8017/* end confdefs.h. */
93613951
TT
8018
8019#include <thread.h>
8020#include <synch.h>
57aa50d4 8021
b0cacab0
TT
8022int
8023main ()
8024{
93613951 8025thr_self();
b0cacab0
TT
8026 ;
8027 return 0;
8028}
8029_ACEOF
93613951
TT
8030if ac_fn_c_try_link "$LINENO"; then :
8031 gl_have_solaristhread=yes
b0cacab0 8032fi
93613951
TT
8033rm -f core conftest.err conftest.$ac_objext \
8034 conftest$ac_exeext conftest.$ac_ext
8035 LIBS="$gl_save_LIBS"
8036 if test -n "$gl_have_solaristhread"; then
8037 gl_threads_api=solaris
8038 LIBTHREAD=-lthread
8039 LTLIBTHREAD=-lthread
8040 LIBMULTITHREAD="$LIBTHREAD"
8041 LTLIBMULTITHREAD="$LTLIBTHREAD"
8042
8043$as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
8044
8045 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8046
8047$as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
8048
8049 LIBTHREAD=
8050 LTLIBTHREAD=
8051 fi
8052 fi
57aa50d4 8053 fi
57aa50d4 8054 fi
93613951
TT
8055 if test "$gl_use_threads" = pth; then
8056 gl_save_CPPFLAGS="$CPPFLAGS"
b0cacab0 8057
e1052144 8058
e1052144 8059
b0cacab0 8060
57aa50d4 8061
93613951
TT
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
8063$as_echo_n "checking how to link with libpth... " >&6; }
8064if ${ac_cv_libpth_libs+:} false; then :
8065 $as_echo_n "(cached) " >&6
8066else
e1052144 8067
b0cacab0 8068
b0cacab0 8069
29a5deed 8070
b0cacab0 8071
b0cacab0 8072
b0cacab0 8073
e1052144 8074
57aa50d4 8075 use_additional=yes
b0cacab0 8076
57aa50d4
TT
8077 acl_save_prefix="$prefix"
8078 prefix="$acl_final_prefix"
8079 acl_save_exec_prefix="$exec_prefix"
8080 exec_prefix="$acl_final_exec_prefix"
b0cacab0 8081
57aa50d4
TT
8082 eval additional_includedir=\"$includedir\"
8083 eval additional_libdir=\"$libdir\"
b0cacab0 8084
57aa50d4
TT
8085 exec_prefix="$acl_save_exec_prefix"
8086 prefix="$acl_save_prefix"
b0cacab0 8087
e1052144 8088
93613951
TT
8089# Check whether --with-libpth-prefix was given.
8090if test "${with_libpth_prefix+set}" = set; then :
8091 withval=$with_libpth_prefix;
57aa50d4
TT
8092 if test "X$withval" = "Xno"; then
8093 use_additional=no
8094 else
8095 if test "X$withval" = "X"; then
b0cacab0 8096
57aa50d4
TT
8097 acl_save_prefix="$prefix"
8098 prefix="$acl_final_prefix"
8099 acl_save_exec_prefix="$exec_prefix"
8100 exec_prefix="$acl_final_exec_prefix"
e1052144 8101
57aa50d4
TT
8102 eval additional_includedir=\"$includedir\"
8103 eval additional_libdir=\"$libdir\"
e1052144 8104
57aa50d4
TT
8105 exec_prefix="$acl_save_exec_prefix"
8106 prefix="$acl_save_prefix"
b0cacab0 8107
57aa50d4
TT
8108 else
8109 additional_includedir="$withval/include"
93613951
TT
8110 additional_libdir="$withval/$acl_libdirstem"
8111 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8112 && ! test -d "$withval/$acl_libdirstem"; then
8113 additional_libdir="$withval/$acl_libdirstem2"
8114 fi
57aa50d4
TT
8115 fi
8116 fi
b0cacab0 8117
b0cacab0 8118fi
e1052144 8119
93613951
TT
8120 LIBPTH=
8121 LTLIBPTH=
8122 INCPTH=
8123 LIBPTH_PREFIX=
8124 HAVE_LIBPTH=
a04eba3f
TT
8125 rpathdirs=
8126 ltrpathdirs=
8127 names_already_handled=
93613951 8128 names_next_round='pth '
a04eba3f
TT
8129 while test -n "$names_next_round"; do
8130 names_this_round="$names_next_round"
8131 names_next_round=
8132 for name in $names_this_round; do
8133 already_handled=
8134 for n in $names_already_handled; do
8135 if test "$n" = "$name"; then
8136 already_handled=yes
8137 break
8138 fi
8139 done
8140 if test -z "$already_handled"; then
8141 names_already_handled="$names_already_handled $name"
93613951 8142 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
a04eba3f
TT
8143 eval value=\"\$HAVE_LIB$uppername\"
8144 if test -n "$value"; then
8145 if test "$value" = yes; then
8146 eval value=\"\$LIB$uppername\"
93613951 8147 test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
a04eba3f 8148 eval value=\"\$LTLIB$uppername\"
93613951 8149 test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
a04eba3f
TT
8150 else
8151 :
8152 fi
8153 else
8154 found_dir=
8155 found_la=
8156 found_so=
8157 found_a=
93613951
TT
8158 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8159 if test -n "$acl_shlibext"; then
8160 shrext=".$acl_shlibext" # typically: shrext=.so
8161 else
8162 shrext=
8163 fi
a04eba3f 8164 if test $use_additional = yes; then
93613951
TT
8165 dir="$additional_libdir"
8166 if test -n "$acl_shlibext"; then
8167 if test -f "$dir/$libname$shrext"; then
8168 found_dir="$dir"
8169 found_so="$dir/$libname$shrext"
8170 else
8171 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8172 ver=`(cd "$dir" && \
8173 for f in "$libname$shrext".*; do echo "$f"; done \
8174 | sed -e "s,^$libname$shrext\\\\.,," \
8175 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8176 | sed 1q ) 2>/dev/null`
8177 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8178 found_dir="$dir"
8179 found_so="$dir/$libname$shrext.$ver"
8180 fi
8181 else
8182 eval library_names=\"$acl_library_names_spec\"
8183 for f in $library_names; do
8184 if test -f "$dir/$f"; then
8185 found_dir="$dir"
8186 found_so="$dir/$f"
8187 break
8188 fi
8189 done
a04eba3f
TT
8190 fi
8191 fi
93613951
TT
8192 fi
8193 if test "X$found_dir" = "X"; then
8194 if test -f "$dir/$libname.$acl_libext"; then
8195 found_dir="$dir"
8196 found_a="$dir/$libname.$acl_libext"
8197 fi
8198 fi
8199 if test "X$found_dir" != "X"; then
8200 if test -f "$dir/$libname.la"; then
8201 found_la="$dir/$libname.la"
8202 fi
a04eba3f
TT
8203 fi
8204 fi
8205 if test "X$found_dir" = "X"; then
93613951 8206 for x in $LDFLAGS $LTLIBPTH; do
b0cacab0 8207
a04eba3f
TT
8208 acl_save_prefix="$prefix"
8209 prefix="$acl_final_prefix"
8210 acl_save_exec_prefix="$exec_prefix"
8211 exec_prefix="$acl_final_exec_prefix"
8212 eval x=\"$x\"
8213 exec_prefix="$acl_save_exec_prefix"
8214 prefix="$acl_save_prefix"
8215
8216 case "$x" in
8217 -L*)
8218 dir=`echo "X$x" | sed -e 's/^X-L//'`
93613951
TT
8219 if test -n "$acl_shlibext"; then
8220 if test -f "$dir/$libname$shrext"; then
a04eba3f 8221 found_dir="$dir"
93613951
TT
8222 found_so="$dir/$libname$shrext"
8223 else
8224 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8225 ver=`(cd "$dir" && \
8226 for f in "$libname$shrext".*; do echo "$f"; done \
8227 | sed -e "s,^$libname$shrext\\\\.,," \
8228 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8229 | sed 1q ) 2>/dev/null`
8230 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8231 found_dir="$dir"
8232 found_so="$dir/$libname$shrext.$ver"
8233 fi
8234 else
8235 eval library_names=\"$acl_library_names_spec\"
8236 for f in $library_names; do
8237 if test -f "$dir/$f"; then
8238 found_dir="$dir"
8239 found_so="$dir/$f"
8240 break
8241 fi
8242 done
a04eba3f
TT
8243 fi
8244 fi
93613951
TT
8245 fi
8246 if test "X$found_dir" = "X"; then
8247 if test -f "$dir/$libname.$acl_libext"; then
8248 found_dir="$dir"
8249 found_a="$dir/$libname.$acl_libext"
8250 fi
8251 fi
8252 if test "X$found_dir" != "X"; then
8253 if test -f "$dir/$libname.la"; then
8254 found_la="$dir/$libname.la"
8255 fi
a04eba3f
TT
8256 fi
8257 ;;
8258 esac
8259 if test "X$found_dir" != "X"; then
8260 break
8261 fi
8262 done
8263 fi
8264 if test "X$found_dir" != "X"; then
93613951 8265 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
a04eba3f 8266 if test "X$found_so" != "X"; then
93613951
TT
8267 if test "$enable_rpath" = no \
8268 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8269 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8270 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
a04eba3f
TT
8271 else
8272 haveit=
8273 for x in $ltrpathdirs; do
8274 if test "X$x" = "X$found_dir"; then
8275 haveit=yes
8276 break
8277 fi
8278 done
8279 if test -z "$haveit"; then
8280 ltrpathdirs="$ltrpathdirs $found_dir"
8281 fi
93613951
TT
8282 if test "$acl_hardcode_direct" = yes; then
8283 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
a04eba3f 8284 else
93613951
TT
8285 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8286 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
a04eba3f
TT
8287 haveit=
8288 for x in $rpathdirs; do
8289 if test "X$x" = "X$found_dir"; then
8290 haveit=yes
8291 break
8292 fi
8293 done
8294 if test -z "$haveit"; then
8295 rpathdirs="$rpathdirs $found_dir"
8296 fi
8297 else
8298 haveit=
93613951 8299 for x in $LDFLAGS $LIBPTH; do
b0cacab0 8300
a04eba3f
TT
8301 acl_save_prefix="$prefix"
8302 prefix="$acl_final_prefix"
8303 acl_save_exec_prefix="$exec_prefix"
8304 exec_prefix="$acl_final_exec_prefix"
8305 eval x=\"$x\"
8306 exec_prefix="$acl_save_exec_prefix"
8307 prefix="$acl_save_prefix"
8308
8309 if test "X$x" = "X-L$found_dir"; then
8310 haveit=yes
8311 break
8312 fi
8313 done
8314 if test -z "$haveit"; then
93613951 8315 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
a04eba3f 8316 fi
93613951
TT
8317 if test "$acl_hardcode_minus_L" != no; then
8318 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
a04eba3f 8319 else
93613951 8320 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
a04eba3f
TT
8321 fi
8322 fi
8323 fi
8324 fi
8325 else
8326 if test "X$found_a" != "X"; then
93613951 8327 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
a04eba3f 8328 else
93613951 8329 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
a04eba3f
TT
8330 fi
8331 fi
8332 additional_includedir=
8333 case "$found_dir" in
93613951
TT
8334 */$acl_libdirstem | */$acl_libdirstem/)
8335 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8336 if test "$name" = 'pth'; then
8337 LIBPTH_PREFIX="$basedir"
8338 fi
8339 additional_includedir="$basedir/include"
8340 ;;
8341 */$acl_libdirstem2 | */$acl_libdirstem2/)
8342 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8343 if test "$name" = 'pth'; then
8344 LIBPTH_PREFIX="$basedir"
8345 fi
a04eba3f
TT
8346 additional_includedir="$basedir/include"
8347 ;;
8348 esac
8349 if test "X$additional_includedir" != "X"; then
8350 if test "X$additional_includedir" != "X/usr/include"; then
8351 haveit=
8352 if test "X$additional_includedir" = "X/usr/local/include"; then
8353 if test -n "$GCC"; then
8354 case $host_os in
93613951 8355 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
a04eba3f
TT
8356 esac
8357 fi
8358 fi
8359 if test -z "$haveit"; then
93613951 8360 for x in $CPPFLAGS $INCPTH; do
b0cacab0 8361
a04eba3f
TT
8362 acl_save_prefix="$prefix"
8363 prefix="$acl_final_prefix"
8364 acl_save_exec_prefix="$exec_prefix"
8365 exec_prefix="$acl_final_exec_prefix"
8366 eval x=\"$x\"
8367 exec_prefix="$acl_save_exec_prefix"
8368 prefix="$acl_save_prefix"
8369
8370 if test "X$x" = "X-I$additional_includedir"; then
8371 haveit=yes
8372 break
8373 fi
8374 done
8375 if test -z "$haveit"; then
8376 if test -d "$additional_includedir"; then
93613951 8377 INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
a04eba3f
TT
8378 fi
8379 fi
8380 fi
8381 fi
8382 fi
8383 if test -n "$found_la"; then
8384 save_libdir="$libdir"
8385 case "$found_la" in
8386 */* | *\\*) . "$found_la" ;;
8387 *) . "./$found_la" ;;
8388 esac
8389 libdir="$save_libdir"
8390 for dep in $dependency_libs; do
8391 case "$dep" in
8392 -L*)
8393 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
93613951
TT
8394 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
8395 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
a04eba3f 8396 haveit=
93613951
TT
8397 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
8398 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
a04eba3f
TT
8399 if test -n "$GCC"; then
8400 case $host_os in
93613951 8401 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
a04eba3f
TT
8402 esac
8403 fi
8404 fi
8405 if test -z "$haveit"; then
8406 haveit=
93613951 8407 for x in $LDFLAGS $LIBPTH; do
b0cacab0 8408
a04eba3f
TT
8409 acl_save_prefix="$prefix"
8410 prefix="$acl_final_prefix"
8411 acl_save_exec_prefix="$exec_prefix"
8412 exec_prefix="$acl_final_exec_prefix"
8413 eval x=\"$x\"
8414 exec_prefix="$acl_save_exec_prefix"
8415 prefix="$acl_save_prefix"
8416
8417 if test "X$x" = "X-L$additional_libdir"; then
8418 haveit=yes
8419 break
8420 fi
8421 done
8422 if test -z "$haveit"; then
8423 if test -d "$additional_libdir"; then
93613951 8424 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
a04eba3f
TT
8425 fi
8426 fi
8427 haveit=
93613951 8428 for x in $LDFLAGS $LTLIBPTH; do
b0cacab0 8429
a04eba3f
TT
8430 acl_save_prefix="$prefix"
8431 prefix="$acl_final_prefix"
8432 acl_save_exec_prefix="$exec_prefix"
8433 exec_prefix="$acl_final_exec_prefix"
8434 eval x=\"$x\"
8435 exec_prefix="$acl_save_exec_prefix"
8436 prefix="$acl_save_prefix"
8437
8438 if test "X$x" = "X-L$additional_libdir"; then
8439 haveit=yes
8440 break
8441 fi
8442 done
8443 if test -z "$haveit"; then
8444 if test -d "$additional_libdir"; then
93613951 8445 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
a04eba3f
TT
8446 fi
8447 fi
8448 fi
8449 fi
8450 ;;
8451 -R*)
8452 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8453 if test "$enable_rpath" != no; then
8454 haveit=
8455 for x in $rpathdirs; do
8456 if test "X$x" = "X$dir"; then
8457 haveit=yes
8458 break
8459 fi
8460 done
8461 if test -z "$haveit"; then
8462 rpathdirs="$rpathdirs $dir"
8463 fi
8464 haveit=
8465 for x in $ltrpathdirs; do
8466 if test "X$x" = "X$dir"; then
8467 haveit=yes
8468 break
8469 fi
8470 done
8471 if test -z "$haveit"; then
8472 ltrpathdirs="$ltrpathdirs $dir"
8473 fi
8474 fi
8475 ;;
8476 -l*)
8477 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8478 ;;
8479 *.la)
8480 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8481 ;;
8482 *)
93613951
TT
8483 LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
8484 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
a04eba3f
TT
8485 ;;
8486 esac
8487 done
8488 fi
8489 else
93613951
TT
8490 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8491 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
a04eba3f
TT
8492 fi
8493 fi
8494 fi
8495 done
8496 done
8497 if test "X$rpathdirs" != "X"; then
93613951 8498 if test -n "$acl_hardcode_libdir_separator"; then
a04eba3f
TT
8499 alldirs=
8500 for found_dir in $rpathdirs; do
93613951 8501 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
a04eba3f
TT
8502 done
8503 acl_save_libdir="$libdir"
8504 libdir="$alldirs"
93613951 8505 eval flag=\"$acl_hardcode_libdir_flag_spec\"
a04eba3f 8506 libdir="$acl_save_libdir"
93613951 8507 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
a04eba3f
TT
8508 else
8509 for found_dir in $rpathdirs; do
8510 acl_save_libdir="$libdir"
8511 libdir="$found_dir"
93613951 8512 eval flag=\"$acl_hardcode_libdir_flag_spec\"
a04eba3f 8513 libdir="$acl_save_libdir"
93613951 8514 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
a04eba3f
TT
8515 done
8516 fi
8517 fi
8518 if test "X$ltrpathdirs" != "X"; then
8519 for found_dir in $ltrpathdirs; do
93613951 8520 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
a04eba3f 8521 done
b0cacab0 8522 fi
b0cacab0 8523
a04eba3f 8524
93636bde 8525
a64c9c13 8526
93636bde 8527
b0cacab0 8528
93613951
TT
8529 ac_cv_libpth_libs="$LIBPTH"
8530 ac_cv_libpth_ltlibs="$LTLIBPTH"
8531 ac_cv_libpth_cppflags="$INCPTH"
8532 ac_cv_libpth_prefix="$LIBPTH_PREFIX"
8533
8534fi
8535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
8536$as_echo "$ac_cv_libpth_libs" >&6; }
8537 LIBPTH="$ac_cv_libpth_libs"
8538 LTLIBPTH="$ac_cv_libpth_ltlibs"
8539 INCPTH="$ac_cv_libpth_cppflags"
8540 LIBPTH_PREFIX="$ac_cv_libpth_prefix"
8541
8542 for element in $INCPTH; do
8543 haveit=
8544 for x in $CPPFLAGS; do
8545
8546 acl_save_prefix="$prefix"
8547 prefix="$acl_final_prefix"
8548 acl_save_exec_prefix="$exec_prefix"
8549 exec_prefix="$acl_final_exec_prefix"
8550 eval x=\"$x\"
8551 exec_prefix="$acl_save_exec_prefix"
8552 prefix="$acl_save_prefix"
8553
8554 if test "X$x" = "X$element"; then
8555 haveit=yes
8556 break
8557 fi
8558 done
8559 if test -z "$haveit"; then
8560 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8561 fi
8562 done
8563
8564
8565
8566
8567 HAVE_LIBPTH=yes
8568
8569
8570
8571 gl_have_pth=
8572 gl_save_LIBS="$LIBS"
8573 LIBS="$LIBS $LIBPTH"
8574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8575/* end confdefs.h. */
8576#include <pth.h>
8577int
8578main ()
8579{
8580pth_self();
8581 ;
8582 return 0;
8583}
8584_ACEOF
8585if ac_fn_c_try_link "$LINENO"; then :
8586 gl_have_pth=yes
8587fi
8588rm -f core conftest.err conftest.$ac_objext \
8589 conftest$ac_exeext conftest.$ac_ext
8590 LIBS="$gl_save_LIBS"
8591 if test -n "$gl_have_pth"; then
8592 gl_threads_api=pth
8593 LIBTHREAD="$LIBPTH"
8594 LTLIBTHREAD="$LTLIBPTH"
8595 LIBMULTITHREAD="$LIBTHREAD"
8596 LTLIBMULTITHREAD="$LTLIBTHREAD"
8597
8598$as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
8599
8600 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8601 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8602
8603$as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
8604
8605 LIBTHREAD=
8606 LTLIBTHREAD=
8607 fi
8608 fi
8609 else
8610 CPPFLAGS="$gl_save_CPPFLAGS"
8611 fi
8612 fi
8613 if test -z "$gl_have_pthread"; then
8614 case "$gl_use_threads" in
8615 yes | windows | win32) # The 'win32' is for backward compatibility.
8616 if { case "$host_os" in
8617 mingw*) true;;
8618 *) false;;
8619 esac
8620 }; then
8621 gl_threads_api=windows
8622
8623$as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
8624
8625 fi
8626 ;;
8627 esac
8628 fi
8629 fi
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
8631$as_echo_n "checking for multithread API to use... " >&6; }
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
8633$as_echo "$gl_threads_api" >&6; }
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645 if test "$gl_threads_api" = posix; then
8646 # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
8647 # pthread_rwlock_* functions.
8648 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
8649"
8650if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
8651
8652$as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
8653
8654fi
8655
8656 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
8657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8658/* end confdefs.h. */
8659
8660 #include <pthread.h>
8661int
8662main ()
8663{
8664
8665#if __FreeBSD__ == 4
8666error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
8667#elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
8668 && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
8669error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
8670#else
8671int x = (int)PTHREAD_MUTEX_RECURSIVE;
8672return !x;
8673#endif
8674
8675 ;
8676 return 0;
8677}
8678_ACEOF
8679if ac_fn_c_try_compile "$LINENO"; then :
8680
8681$as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
8682
8683fi
8684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8685 fi
8686 :
8687
8688
8689
8690
8691
8692
8693
8694
8695
8696
8697
8698
8699 use_additional=yes
8700
8701 acl_save_prefix="$prefix"
8702 prefix="$acl_final_prefix"
8703 acl_save_exec_prefix="$exec_prefix"
8704 exec_prefix="$acl_final_exec_prefix"
8705
8706 eval additional_includedir=\"$includedir\"
8707 eval additional_libdir=\"$libdir\"
8708
8709 exec_prefix="$acl_save_exec_prefix"
8710 prefix="$acl_save_prefix"
8711
8712
8713# Check whether --with-libiconv-prefix was given.
8714if test "${with_libiconv_prefix+set}" = set; then :
8715 withval=$with_libiconv_prefix;
8716 if test "X$withval" = "Xno"; then
8717 use_additional=no
8718 else
8719 if test "X$withval" = "X"; then
8720
8721 acl_save_prefix="$prefix"
8722 prefix="$acl_final_prefix"
8723 acl_save_exec_prefix="$exec_prefix"
8724 exec_prefix="$acl_final_exec_prefix"
8725
8726 eval additional_includedir=\"$includedir\"
8727 eval additional_libdir=\"$libdir\"
8728
8729 exec_prefix="$acl_save_exec_prefix"
8730 prefix="$acl_save_prefix"
8731
8732 else
8733 additional_includedir="$withval/include"
8734 additional_libdir="$withval/$acl_libdirstem"
8735 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8736 && ! test -d "$withval/$acl_libdirstem"; then
8737 additional_libdir="$withval/$acl_libdirstem2"
8738 fi
8739 fi
8740 fi
8741
8742fi
8743
8744 LIBICONV=
8745 LTLIBICONV=
8746 INCICONV=
8747 LIBICONV_PREFIX=
8748 HAVE_LIBICONV=
8749 rpathdirs=
8750 ltrpathdirs=
8751 names_already_handled=
8752 names_next_round='iconv '
8753 while test -n "$names_next_round"; do
8754 names_this_round="$names_next_round"
8755 names_next_round=
8756 for name in $names_this_round; do
8757 already_handled=
8758 for n in $names_already_handled; do
8759 if test "$n" = "$name"; then
8760 already_handled=yes
8761 break
8762 fi
8763 done
8764 if test -z "$already_handled"; then
8765 names_already_handled="$names_already_handled $name"
8766 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8767 eval value=\"\$HAVE_LIB$uppername\"
8768 if test -n "$value"; then
8769 if test "$value" = yes; then
8770 eval value=\"\$LIB$uppername\"
8771 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8772 eval value=\"\$LTLIB$uppername\"
8773 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8774 else
8775 :
8776 fi
8777 else
8778 found_dir=
8779 found_la=
8780 found_so=
8781 found_a=
8782 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8783 if test -n "$acl_shlibext"; then
8784 shrext=".$acl_shlibext" # typically: shrext=.so
8785 else
8786 shrext=
8787 fi
8788 if test $use_additional = yes; then
8789 dir="$additional_libdir"
8790 if test -n "$acl_shlibext"; then
8791 if test -f "$dir/$libname$shrext"; then
8792 found_dir="$dir"
8793 found_so="$dir/$libname$shrext"
8794 else
8795 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8796 ver=`(cd "$dir" && \
8797 for f in "$libname$shrext".*; do echo "$f"; done \
8798 | sed -e "s,^$libname$shrext\\\\.,," \
8799 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8800 | sed 1q ) 2>/dev/null`
8801 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8802 found_dir="$dir"
8803 found_so="$dir/$libname$shrext.$ver"
8804 fi
8805 else
8806 eval library_names=\"$acl_library_names_spec\"
8807 for f in $library_names; do
8808 if test -f "$dir/$f"; then
8809 found_dir="$dir"
8810 found_so="$dir/$f"
8811 break
8812 fi
8813 done
8814 fi
8815 fi
8816 fi
8817 if test "X$found_dir" = "X"; then
8818 if test -f "$dir/$libname.$acl_libext"; then
8819 found_dir="$dir"
8820 found_a="$dir/$libname.$acl_libext"
8821 fi
8822 fi
8823 if test "X$found_dir" != "X"; then
8824 if test -f "$dir/$libname.la"; then
8825 found_la="$dir/$libname.la"
8826 fi
8827 fi
8828 fi
8829 if test "X$found_dir" = "X"; then
8830 for x in $LDFLAGS $LTLIBICONV; do
8831
8832 acl_save_prefix="$prefix"
8833 prefix="$acl_final_prefix"
8834 acl_save_exec_prefix="$exec_prefix"
8835 exec_prefix="$acl_final_exec_prefix"
8836 eval x=\"$x\"
8837 exec_prefix="$acl_save_exec_prefix"
8838 prefix="$acl_save_prefix"
8839
8840 case "$x" in
8841 -L*)
8842 dir=`echo "X$x" | sed -e 's/^X-L//'`
8843 if test -n "$acl_shlibext"; then
8844 if test -f "$dir/$libname$shrext"; then
8845 found_dir="$dir"
8846 found_so="$dir/$libname$shrext"
8847 else
8848 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8849 ver=`(cd "$dir" && \
8850 for f in "$libname$shrext".*; do echo "$f"; done \
8851 | sed -e "s,^$libname$shrext\\\\.,," \
8852 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8853 | sed 1q ) 2>/dev/null`
8854 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8855 found_dir="$dir"
8856 found_so="$dir/$libname$shrext.$ver"
8857 fi
8858 else
8859 eval library_names=\"$acl_library_names_spec\"
8860 for f in $library_names; do
8861 if test -f "$dir/$f"; then
8862 found_dir="$dir"
8863 found_so="$dir/$f"
8864 break
8865 fi
8866 done
8867 fi
8868 fi
8869 fi
8870 if test "X$found_dir" = "X"; then
8871 if test -f "$dir/$libname.$acl_libext"; then
8872 found_dir="$dir"
8873 found_a="$dir/$libname.$acl_libext"
8874 fi
8875 fi
8876 if test "X$found_dir" != "X"; then
8877 if test -f "$dir/$libname.la"; then
8878 found_la="$dir/$libname.la"
8879 fi
8880 fi
8881 ;;
8882 esac
8883 if test "X$found_dir" != "X"; then
8884 break
8885 fi
8886 done
8887 fi
8888 if test "X$found_dir" != "X"; then
8889 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8890 if test "X$found_so" != "X"; then
8891 if test "$enable_rpath" = no \
8892 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8893 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8894 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8895 else
8896 haveit=
8897 for x in $ltrpathdirs; do
8898 if test "X$x" = "X$found_dir"; then
8899 haveit=yes
8900 break
8901 fi
8902 done
8903 if test -z "$haveit"; then
8904 ltrpathdirs="$ltrpathdirs $found_dir"
8905 fi
8906 if test "$acl_hardcode_direct" = yes; then
8907 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8908 else
8909 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8910 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8911 haveit=
8912 for x in $rpathdirs; do
8913 if test "X$x" = "X$found_dir"; then
8914 haveit=yes
8915 break
8916 fi
8917 done
8918 if test -z "$haveit"; then
8919 rpathdirs="$rpathdirs $found_dir"
8920 fi
8921 else
8922 haveit=
8923 for x in $LDFLAGS $LIBICONV; do
8924
8925 acl_save_prefix="$prefix"
8926 prefix="$acl_final_prefix"
8927 acl_save_exec_prefix="$exec_prefix"
8928 exec_prefix="$acl_final_exec_prefix"
8929 eval x=\"$x\"
8930 exec_prefix="$acl_save_exec_prefix"
8931 prefix="$acl_save_prefix"
8932
8933 if test "X$x" = "X-L$found_dir"; then
8934 haveit=yes
8935 break
8936 fi
8937 done
8938 if test -z "$haveit"; then
8939 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8940 fi
8941 if test "$acl_hardcode_minus_L" != no; then
8942 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8943 else
8944 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8945 fi
8946 fi
8947 fi
8948 fi
8949 else
8950 if test "X$found_a" != "X"; then
8951 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8952 else
8953 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8954 fi
8955 fi
8956 additional_includedir=
8957 case "$found_dir" in
8958 */$acl_libdirstem | */$acl_libdirstem/)
8959 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8960 if test "$name" = 'iconv'; then
8961 LIBICONV_PREFIX="$basedir"
8962 fi
8963 additional_includedir="$basedir/include"
8964 ;;
8965 */$acl_libdirstem2 | */$acl_libdirstem2/)
8966 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8967 if test "$name" = 'iconv'; then
8968 LIBICONV_PREFIX="$basedir"
8969 fi
8970 additional_includedir="$basedir/include"
8971 ;;
8972 esac
8973 if test "X$additional_includedir" != "X"; then
8974 if test "X$additional_includedir" != "X/usr/include"; then
8975 haveit=
8976 if test "X$additional_includedir" = "X/usr/local/include"; then
8977 if test -n "$GCC"; then
8978 case $host_os in
8979 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8980 esac
8981 fi
8982 fi
8983 if test -z "$haveit"; then
8984 for x in $CPPFLAGS $INCICONV; do
8985
8986 acl_save_prefix="$prefix"
8987 prefix="$acl_final_prefix"
8988 acl_save_exec_prefix="$exec_prefix"
8989 exec_prefix="$acl_final_exec_prefix"
8990 eval x=\"$x\"
8991 exec_prefix="$acl_save_exec_prefix"
8992 prefix="$acl_save_prefix"
8993
8994 if test "X$x" = "X-I$additional_includedir"; then
8995 haveit=yes
8996 break
8997 fi
8998 done
8999 if test -z "$haveit"; then
9000 if test -d "$additional_includedir"; then
9001 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9002 fi
9003 fi
9004 fi
9005 fi
9006 fi
9007 if test -n "$found_la"; then
9008 save_libdir="$libdir"
9009 case "$found_la" in
9010 */* | *\\*) . "$found_la" ;;
9011 *) . "./$found_la" ;;
9012 esac
9013 libdir="$save_libdir"
9014 for dep in $dependency_libs; do
9015 case "$dep" in
9016 -L*)
9017 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9018 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
9019 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
9020 haveit=
9021 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
9022 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
9023 if test -n "$GCC"; then
9024 case $host_os in
9025 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9026 esac
9027 fi
9028 fi
9029 if test -z "$haveit"; then
9030 haveit=
9031 for x in $LDFLAGS $LIBICONV; do
9032
9033 acl_save_prefix="$prefix"
9034 prefix="$acl_final_prefix"
9035 acl_save_exec_prefix="$exec_prefix"
9036 exec_prefix="$acl_final_exec_prefix"
9037 eval x=\"$x\"
9038 exec_prefix="$acl_save_exec_prefix"
9039 prefix="$acl_save_prefix"
9040
9041 if test "X$x" = "X-L$additional_libdir"; then
9042 haveit=yes
9043 break
9044 fi
9045 done
9046 if test -z "$haveit"; then
9047 if test -d "$additional_libdir"; then
9048 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9049 fi
9050 fi
9051 haveit=
9052 for x in $LDFLAGS $LTLIBICONV; do
9053
9054 acl_save_prefix="$prefix"
9055 prefix="$acl_final_prefix"
9056 acl_save_exec_prefix="$exec_prefix"
9057 exec_prefix="$acl_final_exec_prefix"
9058 eval x=\"$x\"
9059 exec_prefix="$acl_save_exec_prefix"
9060 prefix="$acl_save_prefix"
9061
9062 if test "X$x" = "X-L$additional_libdir"; then
9063 haveit=yes
9064 break
9065 fi
9066 done
9067 if test -z "$haveit"; then
9068 if test -d "$additional_libdir"; then
9069 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9070 fi
9071 fi
9072 fi
9073 fi
9074 ;;
9075 -R*)
9076 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9077 if test "$enable_rpath" != no; then
9078 haveit=
9079 for x in $rpathdirs; do
9080 if test "X$x" = "X$dir"; then
9081 haveit=yes
9082 break
9083 fi
9084 done
9085 if test -z "$haveit"; then
9086 rpathdirs="$rpathdirs $dir"
9087 fi
9088 haveit=
9089 for x in $ltrpathdirs; do
9090 if test "X$x" = "X$dir"; then
9091 haveit=yes
9092 break
9093 fi
9094 done
9095 if test -z "$haveit"; then
9096 ltrpathdirs="$ltrpathdirs $dir"
9097 fi
9098 fi
9099 ;;
9100 -l*)
9101 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9102 ;;
9103 *.la)
9104 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9105 ;;
9106 *)
9107 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9108 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9109 ;;
9110 esac
9111 done
9112 fi
9113 else
9114 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9115 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9116 fi
9117 fi
9118 fi
9119 done
9120 done
9121 if test "X$rpathdirs" != "X"; then
9122 if test -n "$acl_hardcode_libdir_separator"; then
9123 alldirs=
9124 for found_dir in $rpathdirs; do
9125 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9126 done
9127 acl_save_libdir="$libdir"
9128 libdir="$alldirs"
9129 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9130 libdir="$acl_save_libdir"
9131 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9132 else
9133 for found_dir in $rpathdirs; do
9134 acl_save_libdir="$libdir"
9135 libdir="$found_dir"
9136 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9137 libdir="$acl_save_libdir"
9138 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9139 done
9140 fi
9141 fi
9142 if test "X$ltrpathdirs" != "X"; then
9143 for found_dir in $ltrpathdirs; do
9144 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9145 done
9146 fi
9147
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157
9158
9159 am_save_CPPFLAGS="$CPPFLAGS"
9160
9161 for element in $INCICONV; do
9162 haveit=
9163 for x in $CPPFLAGS; do
9164
9165 acl_save_prefix="$prefix"
9166 prefix="$acl_final_prefix"
9167 acl_save_exec_prefix="$exec_prefix"
9168 exec_prefix="$acl_final_exec_prefix"
9169 eval x=\"$x\"
9170 exec_prefix="$acl_save_exec_prefix"
9171 prefix="$acl_save_prefix"
9172
9173 if test "X$x" = "X$element"; then
9174 haveit=yes
9175 break
9176 fi
9177 done
9178 if test -z "$haveit"; then
9179 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9180 fi
9181 done
9182
9183
9184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9185$as_echo_n "checking for iconv... " >&6; }
9186if ${am_cv_func_iconv+:} false; then :
9187 $as_echo_n "(cached) " >&6
9188else
9189
9190 am_cv_func_iconv="no, consider installing GNU libiconv"
9191 am_cv_lib_iconv=no
9192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9193/* end confdefs.h. */
9194
9195#include <stdlib.h>
9196#include <iconv.h>
9197
9198int
9199main ()
9200{
9201iconv_t cd = iconv_open("","");
9202 iconv(cd,NULL,NULL,NULL,NULL);
9203 iconv_close(cd);
9204 ;
9205 return 0;
9206}
9207_ACEOF
9208if ac_fn_c_try_link "$LINENO"; then :
9209 am_cv_func_iconv=yes
9210fi
9211rm -f core conftest.err conftest.$ac_objext \
9212 conftest$ac_exeext conftest.$ac_ext
9213 if test "$am_cv_func_iconv" != yes; then
9214 am_save_LIBS="$LIBS"
9215 LIBS="$LIBS $LIBICONV"
9216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9217/* end confdefs.h. */
9218
9219#include <stdlib.h>
9220#include <iconv.h>
9221
9222int
9223main ()
9224{
9225iconv_t cd = iconv_open("","");
9226 iconv(cd,NULL,NULL,NULL,NULL);
9227 iconv_close(cd);
9228 ;
9229 return 0;
9230}
9231_ACEOF
9232if ac_fn_c_try_link "$LINENO"; then :
9233 am_cv_lib_iconv=yes
9234 am_cv_func_iconv=yes
9235fi
9236rm -f core conftest.err conftest.$ac_objext \
9237 conftest$ac_exeext conftest.$ac_ext
9238 LIBS="$am_save_LIBS"
9239 fi
9240
9241fi
9242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9243$as_echo "$am_cv_func_iconv" >&6; }
9244 if test "$am_cv_func_iconv" = yes; then
9245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
9246$as_echo_n "checking for working iconv... " >&6; }
9247if ${am_cv_func_iconv_works+:} false; then :
9248 $as_echo_n "(cached) " >&6
9249else
9250
9251 am_save_LIBS="$LIBS"
9252 if test $am_cv_lib_iconv = yes; then
9253 LIBS="$LIBS $LIBICONV"
9254 fi
9255 if test "$cross_compiling" = yes; then :
9256
9257 case "$host_os" in
9258 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
9259 *) am_cv_func_iconv_works="guessing yes" ;;
9260 esac
9261
9262else
9263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9264/* end confdefs.h. */
9265
9266#include <iconv.h>
9267#include <string.h>
9268int main ()
9269{
9270 int result = 0;
9271 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
9272 returns. */
9273 {
9274 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
9275 if (cd_utf8_to_88591 != (iconv_t)(-1))
9276 {
9277 static const char input[] = "\342\202\254"; /* EURO SIGN */
9278 char buf[10];
9279 const char *inptr = input;
9280 size_t inbytesleft = strlen (input);
9281 char *outptr = buf;
9282 size_t outbytesleft = sizeof (buf);
9283 size_t res = iconv (cd_utf8_to_88591,
9284 (char **) &inptr, &inbytesleft,
9285 &outptr, &outbytesleft);
9286 if (res == 0)
9287 result |= 1;
9288 iconv_close (cd_utf8_to_88591);
9289 }
9290 }
9291 /* Test against Solaris 10 bug: Failures are not distinguishable from
9292 successful returns. */
9293 {
9294 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
9295 if (cd_ascii_to_88591 != (iconv_t)(-1))
9296 {
9297 static const char input[] = "\263";
9298 char buf[10];
9299 const char *inptr = input;
9300 size_t inbytesleft = strlen (input);
9301 char *outptr = buf;
9302 size_t outbytesleft = sizeof (buf);
9303 size_t res = iconv (cd_ascii_to_88591,
9304 (char **) &inptr, &inbytesleft,
9305 &outptr, &outbytesleft);
9306 if (res == 0)
9307 result |= 2;
9308 iconv_close (cd_ascii_to_88591);
9309 }
9310 }
9311 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
9312 {
9313 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
9314 if (cd_88591_to_utf8 != (iconv_t)(-1))
9315 {
9316 static const char input[] = "\304";
9317 static char buf[2] = { (char)0xDE, (char)0xAD };
9318 const char *inptr = input;
9319 size_t inbytesleft = 1;
9320 char *outptr = buf;
9321 size_t outbytesleft = 1;
9322 size_t res = iconv (cd_88591_to_utf8,
9323 (char **) &inptr, &inbytesleft,
9324 &outptr, &outbytesleft);
9325 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
9326 result |= 4;
9327 iconv_close (cd_88591_to_utf8);
9328 }
9329 }
9330#if 0 /* This bug could be worked around by the caller. */
9331 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
9332 {
9333 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
9334 if (cd_88591_to_utf8 != (iconv_t)(-1))
9335 {
9336 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
9337 char buf[50];
9338 const char *inptr = input;
9339 size_t inbytesleft = strlen (input);
9340 char *outptr = buf;
9341 size_t outbytesleft = sizeof (buf);
9342 size_t res = iconv (cd_88591_to_utf8,
9343 (char **) &inptr, &inbytesleft,
9344 &outptr, &outbytesleft);
9345 if ((int)res > 0)
9346 result |= 8;
9347 iconv_close (cd_88591_to_utf8);
9348 }
9349 }
9350#endif
9351 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
9352 provided. */
9353 if (/* Try standardized names. */
9354 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
9355 /* Try IRIX, OSF/1 names. */
9356 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
9357 /* Try AIX names. */
9358 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
9359 /* Try HP-UX names. */
9360 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
9361 result |= 16;
9362 return result;
9363}
9364_ACEOF
9365if ac_fn_c_try_run "$LINENO"; then :
9366 am_cv_func_iconv_works=yes
9367else
9368 am_cv_func_iconv_works=no
9369fi
9370rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9371 conftest.$ac_objext conftest.beam conftest.$ac_ext
9372fi
9373
9374 LIBS="$am_save_LIBS"
9375
9376fi
9377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
9378$as_echo "$am_cv_func_iconv_works" >&6; }
9379 case "$am_cv_func_iconv_works" in
9380 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
9381 *) am_func_iconv=yes ;;
9382 esac
9383 else
9384 am_func_iconv=no am_cv_lib_iconv=no
9385 fi
9386 if test "$am_func_iconv" = yes; then
9387
9388$as_echo "#define HAVE_ICONV 1" >>confdefs.h
9389
9390 fi
9391 if test "$am_cv_lib_iconv" = yes; then
9392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9393$as_echo_n "checking how to link with libiconv... " >&6; }
9394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9395$as_echo "$LIBICONV" >&6; }
9396 else
9397 CPPFLAGS="$am_save_CPPFLAGS"
9398 LIBICONV=
9399 LTLIBICONV=
9400 fi
9401
9402
9403
9404 if test "$am_cv_func_iconv" = yes; then
9405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9406$as_echo_n "checking for iconv declaration... " >&6; }
9407 if ${am_cv_proto_iconv+:} false; then :
9408 $as_echo_n "(cached) " >&6
9409else
9410
9411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9412/* end confdefs.h. */
9413
9414#include <stdlib.h>
9415#include <iconv.h>
9416extern
9417#ifdef __cplusplus
9418"C"
9419#endif
9420#if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
9421size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9422#else
9423size_t iconv();
9424#endif
9425
9426int
9427main ()
9428{
9429
9430 ;
9431 return 0;
9432}
9433_ACEOF
9434if ac_fn_c_try_compile "$LINENO"; then :
9435 am_cv_proto_iconv_arg1=""
9436else
9437 am_cv_proto_iconv_arg1="const"
9438fi
9439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9440 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);"
9441fi
9442
9443 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9444 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
9445 $am_cv_proto_iconv" >&5
9446$as_echo "
9447 $am_cv_proto_iconv" >&6; }
9448
9449cat >>confdefs.h <<_ACEOF
9450#define ICONV_CONST $am_cv_proto_iconv_arg1
9451_ACEOF
9452
9453
9454 fi
9455
9456
9457
9458
9459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9460/* end confdefs.h. */
9461int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
9462int
9463main ()
9464{
9465
9466 ;
9467 return 0;
9468}
9469_ACEOF
9470if ac_fn_c_try_link "$LINENO"; then :
9471
9472$as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
9473
9474fi
9475rm -f core conftest.err conftest.$ac_objext \
9476 conftest$ac_exeext conftest.$ac_ext
9477
9478 for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
9479do :
9480 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9481ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9482if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9483 cat >>confdefs.h <<_ACEOF
9484#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9485_ACEOF
9486
9487fi
9488
9489done
9490
9491 for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
9492 stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \
9493 argz_stringify argz_next __fsetlocking
9494do :
9495 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9496ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9497if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9498 cat >>confdefs.h <<_ACEOF
9499#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9500_ACEOF
9501
9502fi
9503done
9504
9505
9506 ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "#include <stdio.h>
9507"
9508if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then :
9509 ac_have_decl=1
9510else
9511 ac_have_decl=0
9512fi
9513
9514cat >>confdefs.h <<_ACEOF
9515#define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
9516_ACEOF
9517ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "#include <stdio.h>
9518"
9519if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then :
9520 ac_have_decl=1
9521else
9522 ac_have_decl=0
9523fi
9524
9525cat >>confdefs.h <<_ACEOF
9526#define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
9527_ACEOF
9528
9529
9530
9531
9532 for ac_prog in bison
9533do
9534 # Extract the first word of "$ac_prog", so it can be a program name with args.
9535set dummy $ac_prog; ac_word=$2
9536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9537$as_echo_n "checking for $ac_word... " >&6; }
9538if ${ac_cv_prog_INTLBISON+:} false; then :
9539 $as_echo_n "(cached) " >&6
9540else
9541 if test -n "$INTLBISON"; then
9542 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9543else
9544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9545for as_dir in $PATH
9546do
9547 IFS=$as_save_IFS
9548 test -z "$as_dir" && as_dir=.
9549 for ac_exec_ext in '' $ac_executable_extensions; do
9550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9551 ac_cv_prog_INTLBISON="$ac_prog"
9552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9553 break 2
9554 fi
9555done
9556 done
9557IFS=$as_save_IFS
9558
9559fi
9560fi
9561INTLBISON=$ac_cv_prog_INTLBISON
9562if test -n "$INTLBISON"; then
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
9564$as_echo "$INTLBISON" >&6; }
9565else
9566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9567$as_echo "no" >&6; }
9568fi
9569
9570
9571 test -n "$INTLBISON" && break
9572done
9573
9574 if test -z "$INTLBISON"; then
9575 ac_verc_fail=yes
9576 else
9577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
9578$as_echo_n "checking version of bison... " >&6; }
9579 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9580 case $ac_prog_version in
9581 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9582 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9583 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9584 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9585 esac
9586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
9587$as_echo "$ac_prog_version" >&6; }
9588 fi
9589 if test $ac_verc_fail = yes; then
9590 INTLBISON=:
b0cacab0 9591 fi
b0cacab0 9592
a04eba3f 9593
93636bde 9594
93613951
TT
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
9596$as_echo_n "checking for long long int... " >&6; }
9597if ${ac_cv_type_long_long_int+:} false; then :
9598 $as_echo_n "(cached) " >&6
9599else
9600 ac_cv_type_long_long_int=yes
9601 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
9602 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
9603 if test $ac_cv_type_long_long_int = yes; then
9604 if test "$cross_compiling" = yes; then :
9605 :
9606else
9607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9608/* end confdefs.h. */
9609#include <limits.h>
9610 #ifndef LLONG_MAX
9611 # define HALF \
9612 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
9613 # define LLONG_MAX (HALF - 1 + HALF)
9614 #endif
9615int
9616main ()
9617{
9618long long int n = 1;
9619 int i;
9620 for (i = 0; ; i++)
9621 {
9622 long long int m = n << i;
9623 if (m >> i != n)
9624 return 1;
9625 if (LLONG_MAX / 2 < m)
9626 break;
9627 }
9628 return 0;
9629 ;
9630 return 0;
9631}
9632_ACEOF
9633if ac_fn_c_try_run "$LINENO"; then :
a64c9c13 9634
93613951
TT
9635else
9636 ac_cv_type_long_long_int=no
9637fi
9638rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9639 conftest.$ac_objext conftest.beam conftest.$ac_ext
9640fi
93636bde 9641
93613951
TT
9642 fi
9643 fi
9644fi
9645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
9646$as_echo "$ac_cv_type_long_long_int" >&6; }
9647 if test $ac_cv_type_long_long_int = yes; then
b0cacab0 9648
93613951 9649$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
b0cacab0 9650
93613951 9651 fi
b0cacab0
TT
9652
9653
93613951
TT
9654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
9655$as_echo_n "checking for wchar_t... " >&6; }
9656if ${gt_cv_c_wchar_t+:} false; then :
9657 $as_echo_n "(cached) " >&6
50e1e10f 9658else
93613951
TT
9659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9660/* end confdefs.h. */
9661#include <stddef.h>
9662 wchar_t foo = (wchar_t)'\0';
9663int
9664main ()
9665{
50e1e10f 9666
93613951
TT
9667 ;
9668 return 0;
9669}
57aa50d4 9670_ACEOF
93613951
TT
9671if ac_fn_c_try_compile "$LINENO"; then :
9672 gt_cv_c_wchar_t=yes
9673else
9674 gt_cv_c_wchar_t=no
57aa50d4 9675fi
93613951 9676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fc6d9d51 9677fi
93613951
TT
9678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
9679$as_echo "$gt_cv_c_wchar_t" >&6; }
9680 if test $gt_cv_c_wchar_t = yes; then
b0cacab0 9681
93613951 9682$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
b0cacab0 9683
93613951 9684 fi
50e1e10f 9685
e1052144 9686
93613951
TT
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
9688$as_echo_n "checking for wint_t... " >&6; }
9689if ${gt_cv_c_wint_t+:} false; then :
39fd3d4f 9690 $as_echo_n "(cached) " >&6
50e1e10f 9691else
57aa50d4
TT
9692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9693/* end confdefs.h. */
bcb915b0 9694
93613951
TT
9695/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9696 <wchar.h>.
9697 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
9698 before <wchar.h>. */
9699#include <stddef.h>
57aa50d4 9700#include <stdio.h>
93613951
TT
9701#include <time.h>
9702#include <wchar.h>
9703 wint_t foo = (wchar_t)'\0';
57aa50d4
TT
9704int
9705main ()
9706{
50e1e10f 9707
57aa50d4
TT
9708 ;
9709 return 0;
9710}
9711_ACEOF
9712if ac_fn_c_try_compile "$LINENO"; then :
93613951 9713 gt_cv_c_wint_t=yes
50e1e10f 9714else
93613951 9715 gt_cv_c_wint_t=no
50e1e10f 9716fi
57aa50d4 9717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50e1e10f 9718fi
93613951
TT
9719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
9720$as_echo "$gt_cv_c_wint_t" >&6; }
9721 if test $gt_cv_c_wint_t = yes; then
bcb915b0 9722
93613951 9723$as_echo "#define HAVE_WINT_T 1" >>confdefs.h
50e1e10f 9724
57aa50d4 9725 fi
50e1e10f 9726
e1052144 9727
e1052144 9728
57aa50d4 9729
93613951
TT
9730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
9731$as_echo_n "checking for intmax_t... " >&6; }
9732if ${gt_cv_c_intmax_t+:} false; then :
39fd3d4f 9733 $as_echo_n "(cached) " >&6
50e1e10f 9734else
57aa50d4
TT
9735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9736/* end confdefs.h. */
b0cacab0 9737
93613951
TT
9738#include <stddef.h>
9739#include <stdlib.h>
9740#if HAVE_STDINT_H_WITH_UINTMAX
9741#include <stdint.h>
9742#endif
9743#if HAVE_INTTYPES_H_WITH_UINTMAX
9744#include <inttypes.h>
57aa50d4
TT
9745#endif
9746
93613951
TT
9747int
9748main ()
9749{
9750intmax_t x = -1;
9751 return !x;
57aa50d4
TT
9752 ;
9753 return 0;
9754}
9755_ACEOF
9756if ac_fn_c_try_compile "$LINENO"; then :
93613951 9757 gt_cv_c_intmax_t=yes
50e1e10f 9758else
93613951 9759 gt_cv_c_intmax_t=no
57aa50d4
TT
9760fi
9761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50e1e10f 9762fi
93613951
TT
9763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
9764$as_echo "$gt_cv_c_intmax_t" >&6; }
9765 if test $gt_cv_c_intmax_t = yes; then
9766
9767$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
9768
57aa50d4 9769 fi
50e1e10f 9770
93613951
TT
9771
9772
9773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
9774$as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
9775if ${gt_cv_func_printf_posix+:} false; then :
9776 $as_echo_n "(cached) " >&6
9777else
9778
9779 if test "$cross_compiling" = yes; then :
9780
9781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9782/* end confdefs.h. */
9783
9784#if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
9785 notposix
9786#endif
9787
9788_ACEOF
9789if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9790 $EGREP "notposix" >/dev/null 2>&1; then :
9791 gt_cv_func_printf_posix="guessing no"
9792else
9793 gt_cv_func_printf_posix="guessing yes"
9794fi
9795rm -f conftest*
9796
9797
9798else
9799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9800/* end confdefs.h. */
9801
9802#include <stdio.h>
9803#include <string.h>
9804/* The string "%2$d %1$d", with dollar characters protected from the shell's
9805 dollar expansion (possibly an autoconf bug). */
9806static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
9807static char buf[100];
9808int main ()
9809{
9810 sprintf (buf, format, 33, 55);
9811 return (strcmp (buf, "55 33") != 0);
9812}
9813_ACEOF
9814if ac_fn_c_try_run "$LINENO"; then :
9815 gt_cv_func_printf_posix=yes
9816else
9817 gt_cv_func_printf_posix=no
9818fi
9819rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9820 conftest.$ac_objext conftest.beam conftest.$ac_ext
9821fi
9822
9823
9824fi
9825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
9826$as_echo "$gt_cv_func_printf_posix" >&6; }
9827 case $gt_cv_func_printf_posix in
9828 *yes)
9829
9830$as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
9831
9832 ;;
9833 esac
9834
9835
9836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
9837$as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
9838if ${ac_cv_gnu_library_2_1+:} false; then :
9839 $as_echo_n "(cached) " >&6
9840else
9841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9842/* end confdefs.h. */
9843
9844#include <features.h>
9845#ifdef __GNU_LIBRARY__
9846 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9847 Lucky GNU user
9848 #endif
9849#endif
9850#ifdef __UCLIBC__
9851 Lucky user
9852#endif
9853
9854_ACEOF
9855if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9856 $EGREP "Lucky" >/dev/null 2>&1; then :
9857 ac_cv_gnu_library_2_1=yes
9858else
9859 ac_cv_gnu_library_2_1=no
9860fi
9861rm -f conftest*
9862
9863
9864
9865fi
9866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
9867$as_echo "$ac_cv_gnu_library_2_1" >&6; }
9868
9869 GLIBC21="$ac_cv_gnu_library_2_1"
9870
9871
9872
9873 for ac_header in stdint.h
9874do :
9875 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
9876if test "x$ac_cv_header_stdint_h" = xyes; then :
9877 cat >>confdefs.h <<_ACEOF
9878#define HAVE_STDINT_H 1
57aa50d4 9879_ACEOF
e1052144 9880
93613951 9881fi
e1052144 9882
93613951 9883done
57aa50d4 9884
93613951
TT
9885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
9886$as_echo_n "checking for SIZE_MAX... " >&6; }
9887if ${gl_cv_size_max+:} false; then :
39fd3d4f 9888 $as_echo_n "(cached) " >&6
50e1e10f 9889else
93613951
TT
9890
9891 gl_cv_size_max=
9892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9893/* end confdefs.h. */
9894
9895#include <limits.h>
9896#if HAVE_STDINT_H
9897#include <stdint.h>
9898#endif
9899#ifdef SIZE_MAX
9900Found it
9901#endif
9902
57aa50d4 9903_ACEOF
93613951
TT
9904if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9905 $EGREP "Found it" >/dev/null 2>&1; then :
9906 gl_cv_size_max=yes
9907fi
9908rm -f conftest*
e1052144 9909
93613951
TT
9910 if test -z "$gl_cv_size_max"; then
9911 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
9912#include <limits.h>"; then :
e1052144 9913
93613951
TT
9914else
9915 size_t_bits_minus_1=
9916fi
57aa50d4 9917
93613951 9918 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
57aa50d4 9919
50e1e10f 9920else
93613951
TT
9921 fits_in_uint=
9922fi
9923
9924 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
9925 if test $fits_in_uint = 1; then
9926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57aa50d4 9927/* end confdefs.h. */
93613951
TT
9928#include <stddef.h>
9929 extern size_t foo;
9930 extern unsigned long foo;
9931
57aa50d4
TT
9932int
9933main ()
9934{
b0cacab0 9935
57aa50d4
TT
9936 ;
9937 return 0;
9938}
9939_ACEOF
9940if ac_fn_c_try_compile "$LINENO"; then :
93613951 9941 fits_in_uint=0
93636bde 9942fi
57aa50d4 9943rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
93613951
TT
9944 fi
9945 if test $fits_in_uint = 1; then
9946 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
9947 else
9948 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
9949 fi
9950 else
9951 gl_cv_size_max='((size_t)~(size_t)0)'
9952 fi
9953 fi
9954
50e1e10f 9955fi
93613951
TT
9956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
9957$as_echo "$gl_cv_size_max" >&6; }
9958 if test "$gl_cv_size_max" != yes; then
50e1e10f 9959
57aa50d4 9960cat >>confdefs.h <<_ACEOF
93613951 9961#define SIZE_MAX $gl_cv_size_max
57aa50d4 9962_ACEOF
e1052144 9963
93613951 9964 fi
32237014 9965
57aa50d4 9966
e1052144 9967
57aa50d4 9968
93613951
TT
9969 for ac_header in stdint.h
9970do :
9971 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
9972if test "x$ac_cv_header_stdint_h" = xyes; then :
9973 cat >>confdefs.h <<_ACEOF
9974#define HAVE_STDINT_H 1
57aa50d4 9975_ACEOF
93613951 9976
32237014 9977fi
32237014 9978
93613951 9979done
e1052144 9980
32237014 9981
57aa50d4 9982
e1052144 9983
57aa50d4 9984
93613951
TT
9985 for ac_func in $ac_func_list
9986do :
9987 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9988ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9989if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9990 cat >>confdefs.h <<_ACEOF
9991#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
57aa50d4 9992_ACEOF
32237014 9993
32237014 9994fi
93613951
TT
9995done
9996
9997
9998
e1052144 9999
57aa50d4 10000
e1052144 10001
57aa50d4 10002
93613951
TT
10003
10004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
10005$as_echo_n "checking for working fcntl.h... " >&6; }
10006if ${gl_cv_header_working_fcntl_h+:} false; then :
39fd3d4f 10007 $as_echo_n "(cached) " >&6
93613951
TT
10008else
10009 if test "$cross_compiling" = yes; then :
10010 gl_cv_header_working_fcntl_h=cross-compiling
50e1e10f 10011else
57aa50d4
TT
10012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10013/* end confdefs.h. */
93613951
TT
10014#include <sys/types.h>
10015 #include <sys/stat.h>
10016 #if HAVE_UNISTD_H
10017 # include <unistd.h>
10018 #else /* on Windows with MSVC */
10019 # include <io.h>
10020 # include <stdlib.h>
10021 # defined sleep(n) _sleep ((n) * 1000)
10022 #endif
10023 #include <fcntl.h>
10024 #ifndef O_NOATIME
10025 #define O_NOATIME 0
10026 #endif
10027 #ifndef O_NOFOLLOW
10028 #define O_NOFOLLOW 0
10029 #endif
10030 static int const constants[] =
10031 {
10032 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
10033 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
10034 };
10035
57aa50d4
TT
10036int
10037main ()
10038{
b0cacab0 10039
93613951
TT
10040 int result = !constants;
10041 #if HAVE_SYMLINK
10042 {
10043 static char const sym[] = "conftest.sym";
10044 if (symlink ("/dev/null", sym) != 0)
10045 result |= 2;
10046 else
10047 {
10048 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
10049 if (fd >= 0)
10050 {
10051 close (fd);
10052 result |= 4;
10053 }
10054 }
10055 if (unlink (sym) != 0 || symlink (".", sym) != 0)
10056 result |= 2;
10057 else
10058 {
10059 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
10060 if (fd >= 0)
10061 {
10062 close (fd);
10063 result |= 4;
10064 }
10065 }
10066 unlink (sym);
10067 }
10068 #endif
10069 {
10070 static char const file[] = "confdefs.h";
10071 int fd = open (file, O_RDONLY | O_NOATIME);
10072 if (fd < 0)
10073 result |= 8;
10074 else
10075 {
10076 struct stat st0;
10077 if (fstat (fd, &st0) != 0)
10078 result |= 16;
10079 else
10080 {
10081 char c;
10082 sleep (1);
10083 if (read (fd, &c, 1) != 1)
10084 result |= 24;
10085 else
10086 {
10087 if (close (fd) != 0)
10088 result |= 32;
10089 else
10090 {
10091 struct stat st1;
10092 if (stat (file, &st1) != 0)
10093 result |= 40;
10094 else
10095 if (st0.st_atime != st1.st_atime)
10096 result |= 64;
10097 }
10098 }
10099 }
10100 }
10101 }
10102 return result;
57aa50d4
TT
10103 ;
10104 return 0;
10105}
10106_ACEOF
93613951
TT
10107if ac_fn_c_try_run "$LINENO"; then :
10108 gl_cv_header_working_fcntl_h=yes
50e1e10f 10109else
93613951
TT
10110 case $? in #(
10111 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
10112 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
10113 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
10114 *) gl_cv_header_working_fcntl_h='no';;
10115 esac
50e1e10f 10116fi
93613951
TT
10117rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10118 conftest.$ac_objext conftest.beam conftest.$ac_ext
50e1e10f 10119fi
57aa50d4 10120
93613951
TT
10121fi
10122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
10123$as_echo "$gl_cv_header_working_fcntl_h" >&6; }
57aa50d4 10124
93613951
TT
10125 case $gl_cv_header_working_fcntl_h in #(
10126 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
10127 *) ac_val=1;;
57aa50d4
TT
10128 esac
10129
93613951
TT
10130cat >>confdefs.h <<_ACEOF
10131#define HAVE_WORKING_O_NOATIME $ac_val
10132_ACEOF
57aa50d4 10133
57aa50d4 10134
93613951
TT
10135 case $gl_cv_header_working_fcntl_h in #(
10136 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
10137 *) ac_val=1;;
10138 esac
57aa50d4 10139
93613951
TT
10140cat >>confdefs.h <<_ACEOF
10141#define HAVE_WORKING_O_NOFOLLOW $ac_val
10142_ACEOF
57aa50d4 10143
50e1e10f 10144
e1052144 10145
93613951
TT
10146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10147$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10148if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
39fd3d4f 10149 $as_echo_n "(cached) " >&6
9d564f73 10150else
93613951
TT
10151 gt_save_LIBS="$LIBS"
10152 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57aa50d4 10154/* end confdefs.h. */
93613951 10155#include <CoreFoundation/CFPreferences.h>
57aa50d4
TT
10156int
10157main ()
10158{
93613951 10159CFPreferencesCopyAppValue(NULL, NULL)
57aa50d4
TT
10160 ;
10161 return 0;
10162}
10163_ACEOF
10164if ac_fn_c_try_link "$LINENO"; then :
93613951
TT
10165 gt_cv_func_CFPreferencesCopyAppValue=yes
10166else
10167 gt_cv_func_CFPreferencesCopyAppValue=no
9d564f73 10168fi
57aa50d4
TT
10169rm -f core conftest.err conftest.$ac_objext \
10170 conftest$ac_exeext conftest.$ac_ext
93613951
TT
10171 LIBS="$gt_save_LIBS"
10172fi
10173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10174$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10175 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10176
10177$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10178
10179 fi
10180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10181$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10182if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10183 $as_echo_n "(cached) " >&6
10184else
10185 gt_save_LIBS="$LIBS"
10186 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57aa50d4 10188/* end confdefs.h. */
93613951 10189#include <CoreFoundation/CFLocale.h>
57aa50d4
TT
10190int
10191main ()
10192{
93613951 10193CFLocaleCopyCurrent();
57aa50d4
TT
10194 ;
10195 return 0;
10196}
10197_ACEOF
10198if ac_fn_c_try_link "$LINENO"; then :
93613951
TT
10199 gt_cv_func_CFLocaleCopyCurrent=yes
10200else
10201 gt_cv_func_CFLocaleCopyCurrent=no
9d564f73 10202fi
57aa50d4
TT
10203rm -f core conftest.err conftest.$ac_objext \
10204 conftest$ac_exeext conftest.$ac_ext
93613951 10205 LIBS="$gt_save_LIBS"
50e1e10f 10206fi
93613951
TT
10207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10208$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10209 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
50e1e10f 10210
93613951 10211$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
e1052144 10212
b0cacab0 10213 fi
93613951
TT
10214 INTL_MACOSX_LIBS=
10215 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10216 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
e1052144 10217 fi
b0cacab0 10218
93636bde 10219
e1052144 10220
93613951
TT
10221
10222
10223
10224
10225
10226
10227
10228 case "$enable_silent_rules" in
10229 yes) INTL_DEFAULT_VERBOSITY=0;;
10230 no) INTL_DEFAULT_VERBOSITY=1;;
10231 *) INTL_DEFAULT_VERBOSITY=1;;
10232 esac
10233
10234
10235 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
10236if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
10237
50e1e10f 10238else
b0cacab0 10239
93613951 10240$as_echo "#define ptrdiff_t long" >>confdefs.h
50e1e10f 10241
e1052144 10242
93613951 10243fi
b0cacab0 10244
93613951
TT
10245 for ac_header in features.h stddef.h stdlib.h string.h
10246do :
10247 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10248ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10249if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10250 cat >>confdefs.h <<_ACEOF
10251#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
57aa50d4 10252_ACEOF
93613951
TT
10253
10254fi
10255
10256done
10257
10258 for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \
10259 snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
10260do :
10261 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10262ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10263if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10264 cat >>confdefs.h <<_ACEOF
10265#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
57aa50d4 10266_ACEOF
93613951
TT
10267
10268fi
10269done
10270
10271
10272 ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
10273"
10274if test "x$ac_cv_have_decl__snprintf" = xyes; then :
10275 ac_have_decl=1
50e1e10f 10276else
93613951 10277 ac_have_decl=0
50e1e10f 10278fi
93613951
TT
10279
10280cat >>confdefs.h <<_ACEOF
10281#define HAVE_DECL__SNPRINTF $ac_have_decl
10282_ACEOF
10283ac_fn_c_check_decl "$LINENO" "_snwprintf" "ac_cv_have_decl__snwprintf" "#include <stdio.h>
10284"
10285if test "x$ac_cv_have_decl__snwprintf" = xyes; then :
10286 ac_have_decl=1
10287else
10288 ac_have_decl=0
50e1e10f
TT
10289fi
10290
93613951
TT
10291cat >>confdefs.h <<_ACEOF
10292#define HAVE_DECL__SNWPRINTF $ac_have_decl
10293_ACEOF
10294
10295
10296 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "#include <stdio.h>
10297"
10298if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
10299 ac_have_decl=1
10300else
10301 ac_have_decl=0
10302fi
57aa50d4
TT
10303
10304cat >>confdefs.h <<_ACEOF
93613951 10305#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
57aa50d4
TT
10306_ACEOF
10307
93613951
TT
10308
10309 case $gt_cv_func_printf_posix in
10310 *yes) HAVE_POSIX_PRINTF=1 ;;
10311 *) HAVE_POSIX_PRINTF=0 ;;
10312 esac
10313
10314 if test "$ac_cv_func_asprintf" = yes; then
10315 HAVE_ASPRINTF=1
10316 else
10317 HAVE_ASPRINTF=0
10318 fi
10319
10320 if test "$ac_cv_func_snprintf" = yes; then
10321 HAVE_SNPRINTF=1
10322 else
10323 HAVE_SNPRINTF=0
10324 fi
10325
10326 if test "$ac_cv_func_newlocale" = yes; then
10327 HAVE_NEWLOCALE=1
10328 else
10329 HAVE_NEWLOCALE=0
10330 fi
10331
10332 if test "$ac_cv_func_wprintf" = yes; then
10333 HAVE_WPRINTF=1
10334 else
10335 HAVE_WPRINTF=0
e1052144 10336 fi
50e1e10f 10337
57aa50d4 10338
93613951 10339
57aa50d4
TT
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10341$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
d6a4bcb5 10342if ${am_cv_langinfo_codeset+:} false; then :
39fd3d4f 10343 $as_echo_n "(cached) " >&6
50e1e10f 10344else
57aa50d4
TT
10345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10346/* end confdefs.h. */
10347#include <langinfo.h>
10348int
10349main ()
10350{
93613951 10351char* cs = nl_langinfo(CODESET); return !cs;
57aa50d4
TT
10352 ;
10353 return 0;
10354}
10355_ACEOF
10356if ac_fn_c_try_link "$LINENO"; then :
10357 am_cv_langinfo_codeset=yes
50e1e10f 10358else
57aa50d4 10359 am_cv_langinfo_codeset=no
50e1e10f 10360fi
57aa50d4
TT
10361rm -f core conftest.err conftest.$ac_objext \
10362 conftest$ac_exeext conftest.$ac_ext
7321d94e 10363
50e1e10f 10364fi
57aa50d4
TT
10365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10366$as_echo "$am_cv_langinfo_codeset" >&6; }
10367 if test $am_cv_langinfo_codeset = yes; then
50e1e10f 10368
57aa50d4 10369$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
e1052144 10370
57aa50d4 10371 fi
b0cacab0 10372
21c84b71 10373
57aa50d4
TT
10374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10375$as_echo_n "checking for LC_MESSAGES... " >&6; }
93613951 10376if ${gt_cv_val_LC_MESSAGES+:} false; then :
39fd3d4f 10377 $as_echo_n "(cached) " >&6
93636bde 10378else
57aa50d4
TT
10379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10380/* end confdefs.h. */
10381#include <locale.h>
10382int
10383main ()
10384{
10385return LC_MESSAGES
10386 ;
10387 return 0;
10388}
10389_ACEOF
10390if ac_fn_c_try_link "$LINENO"; then :
93613951 10391 gt_cv_val_LC_MESSAGES=yes
93636bde 10392else
93613951 10393 gt_cv_val_LC_MESSAGES=no
50e1e10f 10394fi
57aa50d4
TT
10395rm -f core conftest.err conftest.$ac_objext \
10396 conftest$ac_exeext conftest.$ac_ext
50e1e10f 10397fi
93613951
TT
10398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
10399$as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
10400 if test $gt_cv_val_LC_MESSAGES = yes; then
50e1e10f 10401
57aa50d4 10402$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
50e1e10f 10403
e1052144 10404 fi
50e1e10f 10405
93613951
TT
10406
10407 if test "$enable_shared" = yes; then
10408 case "$host_os" in
10409 mingw* | cygwin*) is_woe32dll=yes ;;
10410 *) is_woe32dll=no ;;
10411 esac
10412 else
10413 is_woe32dll=no
57aa50d4 10414 fi
93613951 10415 WOE32DLL=$is_woe32dll
b0cacab0 10416
93613951
TT
10417
10418 case "$host_os" in
10419 mingw* | cygwin*) is_woe32=yes ;;
10420 *) is_woe32=no ;;
10421 esac
10422 WOE32=$is_woe32
10423
10424 if test $WOE32 = yes; then
10425 if test -n "$ac_tool_prefix"; then
10426 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
10427set dummy ${ac_tool_prefix}windres; ac_word=$2
57aa50d4 10428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39fd3d4f 10429$as_echo_n "checking for $ac_word... " >&6; }
93613951 10430if ${ac_cv_prog_WINDRES+:} false; then :
39fd3d4f 10431 $as_echo_n "(cached) " >&6
50e1e10f 10432else
93613951
TT
10433 if test -n "$WINDRES"; then
10434 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
50e1e10f 10435else
b0cacab0
TT
10436as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10437for as_dir in $PATH
10438do
10439 IFS=$as_save_IFS
10440 test -z "$as_dir" && as_dir=.
57aa50d4 10441 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 10442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
93613951 10443 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
57aa50d4 10444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b0cacab0
TT
10445 break 2
10446 fi
10447done
57aa50d4 10448 done
e1052144 10449IFS=$as_save_IFS
b0cacab0 10450
50e1e10f
TT
10451fi
10452fi
93613951
TT
10453WINDRES=$ac_cv_prog_WINDRES
10454if test -n "$WINDRES"; then
10455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
10456$as_echo "$WINDRES" >&6; }
50e1e10f 10457else
57aa50d4 10458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39fd3d4f 10459$as_echo "no" >&6; }
50e1e10f
TT
10460fi
10461
e1052144 10462
93613951
TT
10463fi
10464if test -z "$ac_cv_prog_WINDRES"; then
10465 ac_ct_WINDRES=$WINDRES
10466 # Extract the first word of "windres", so it can be a program name with args.
10467set dummy windres; ac_word=$2
10468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10469$as_echo_n "checking for $ac_word... " >&6; }
10470if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
10471 $as_echo_n "(cached) " >&6
10472else
10473 if test -n "$ac_ct_WINDRES"; then
10474 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
10475else
10476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10477for as_dir in $PATH
10478do
10479 IFS=$as_save_IFS
10480 test -z "$as_dir" && as_dir=.
10481 for ac_exec_ext in '' $ac_executable_extensions; do
10482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10483 ac_cv_prog_ac_ct_WINDRES="windres"
10484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10485 break 2
10486 fi
b0cacab0 10487done
93613951
TT
10488 done
10489IFS=$as_save_IFS
b0cacab0 10490
93613951
TT
10491fi
10492fi
10493ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
10494if test -n "$ac_ct_WINDRES"; then
10495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
10496$as_echo "$ac_ct_WINDRES" >&6; }
10497else
10498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10499$as_echo "no" >&6; }
10500fi
10501
10502 if test "x$ac_ct_WINDRES" = x; then
10503 WINDRES=""
57aa50d4 10504 else
93613951
TT
10505 case $cross_compiling:$ac_tool_warned in
10506yes:)
10507{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10508$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10509ac_tool_warned=yes ;;
10510esac
10511 WINDRES=$ac_ct_WINDRES
57aa50d4 10512 fi
93613951
TT
10513else
10514 WINDRES="$ac_cv_prog_WINDRES"
10515fi
10516
57aa50d4
TT
10517 fi
10518
93613951
TT
10519 case "$host_os" in
10520 hpux*) LTLIBC="" ;;
10521 *) LTLIBC="-lc" ;;
10522 esac
57aa50d4
TT
10523
10524
10525
10526
10527
10528
10529
10530
10531
10532
b0cacab0 10533
740837de 10534
b0cacab0
TT
10535
10536
10537
93613951
TT
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10551$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10552if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10553 $as_echo_n "(cached) " >&6
50e1e10f 10554else
93613951
TT
10555 gt_save_LIBS="$LIBS"
10556 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10558/* end confdefs.h. */
10559#include <CoreFoundation/CFPreferences.h>
10560int
10561main ()
10562{
10563CFPreferencesCopyAppValue(NULL, NULL)
10564 ;
10565 return 0;
10566}
10567_ACEOF
10568if ac_fn_c_try_link "$LINENO"; then :
10569 gt_cv_func_CFPreferencesCopyAppValue=yes
10570else
10571 gt_cv_func_CFPreferencesCopyAppValue=no
50e1e10f 10572fi
93613951
TT
10573rm -f core conftest.err conftest.$ac_objext \
10574 conftest$ac_exeext conftest.$ac_ext
10575 LIBS="$gt_save_LIBS"
50e1e10f 10576fi
93613951
TT
10577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10578$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10579 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10580
10581$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10582
10583 fi
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10585$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10586if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10587 $as_echo_n "(cached) " >&6
10588else
10589 gt_save_LIBS="$LIBS"
10590 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10592/* end confdefs.h. */
10593#include <CoreFoundation/CFLocale.h>
10594int
10595main ()
10596{
10597CFLocaleCopyCurrent();
10598 ;
10599 return 0;
10600}
10601_ACEOF
10602if ac_fn_c_try_link "$LINENO"; then :
10603 gt_cv_func_CFLocaleCopyCurrent=yes
10604else
10605 gt_cv_func_CFLocaleCopyCurrent=no
10606fi
10607rm -f core conftest.err conftest.$ac_objext \
10608 conftest$ac_exeext conftest.$ac_ext
10609 LIBS="$gt_save_LIBS"
10610fi
10611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10612$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10613 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10614
10615$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10616
10617 fi
10618 INTL_MACOSX_LIBS=
10619 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10620 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10621 fi
10622
50e1e10f 10623
b0cacab0
TT
10624
10625
10626
10627
57aa50d4
TT
10628 BUILD_INCLUDED_LIBINTL=no
10629 USE_INCLUDED_LIBINTL=no
10630
10631 LIBINTL=
10632 LTLIBINTL=
10633 POSUB=
10634
93613951
TT
10635 case " $gt_needs " in
10636 *" need-formatstring-macros "*) gt_api_version=3 ;;
10637 *" need-ngettext "*) gt_api_version=2 ;;
10638 *) gt_api_version=1 ;;
10639 esac
10640 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
10641 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
10642
57aa50d4
TT
10643 if test "$USE_NLS" = "yes"; then
10644 gt_use_preinstalled_gnugettext=no
b0cacab0 10645
57aa50d4
TT
10646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
10647$as_echo_n "checking whether included gettext is requested... " >&6; }
b0cacab0 10648
57aa50d4
TT
10649# Check whether --with-included-gettext was given.
10650if test "${with_included_gettext+set}" = set; then :
10651 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
50e1e10f 10652else
57aa50d4 10653 nls_cv_force_use_gnu_gettext=no
50e1e10f
TT
10654fi
10655
57aa50d4
TT
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
10657$as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
b0cacab0 10658
57aa50d4
TT
10659 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10660 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
b0cacab0
TT
10661
10662
93613951
TT
10663 if test $gt_api_version -ge 3; then
10664 gt_revision_test_code='
10665#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10666#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
10667#endif
10668typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
10669'
10670 else
10671 gt_revision_test_code=
10672 fi
10673 if test $gt_api_version -ge 2; then
10674 gt_expression_test_code=' + * ngettext ("", "", 0)'
10675 else
10676 gt_expression_test_code=
10677 fi
b0cacab0 10678
57aa50d4
TT
10679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
10680$as_echo_n "checking for GNU gettext in libc... " >&6; }
93613951 10681if eval \${$gt_func_gnugettext_libc+:} false; then :
39fd3d4f 10682 $as_echo_n "(cached) " >&6
7321d94e 10683else
57aa50d4
TT
10684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10685/* end confdefs.h. */
93613951 10686
57aa50d4 10687#include <libintl.h>
93613951 10688$gt_revision_test_code
57aa50d4
TT
10689extern int _nl_msg_cat_cntr;
10690extern int *_nl_domain_bindings;
93613951 10691
57aa50d4
TT
10692int
10693main ()
10694{
93613951 10695
57aa50d4 10696bindtextdomain ("", "");
93613951
TT
10697return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
10698
57aa50d4
TT
10699 ;
10700 return 0;
10701}
10702_ACEOF
10703if ac_fn_c_try_link "$LINENO"; then :
93613951 10704 eval "$gt_func_gnugettext_libc=yes"
7321d94e 10705else
93613951 10706 eval "$gt_func_gnugettext_libc=no"
57aa50d4
TT
10707fi
10708rm -f core conftest.err conftest.$ac_objext \
10709 conftest$ac_exeext conftest.$ac_ext
10710fi
93613951
TT
10711eval ac_res=\$$gt_func_gnugettext_libc
10712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10713$as_echo "$ac_res" >&6; }
10714
10715 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
10716
10717
10718
10719
b0cacab0
TT
10720
10721
10722
10723
57aa50d4 10724 use_additional=yes
b0cacab0 10725
57aa50d4
TT
10726 acl_save_prefix="$prefix"
10727 prefix="$acl_final_prefix"
10728 acl_save_exec_prefix="$exec_prefix"
10729 exec_prefix="$acl_final_exec_prefix"
b0cacab0 10730
57aa50d4
TT
10731 eval additional_includedir=\"$includedir\"
10732 eval additional_libdir=\"$libdir\"
b0cacab0 10733
57aa50d4
TT
10734 exec_prefix="$acl_save_exec_prefix"
10735 prefix="$acl_save_prefix"
b0cacab0
TT
10736
10737
57aa50d4
TT
10738# Check whether --with-libintl-prefix was given.
10739if test "${with_libintl_prefix+set}" = set; then :
10740 withval=$with_libintl_prefix;
10741 if test "X$withval" = "Xno"; then
10742 use_additional=no
10743 else
10744 if test "X$withval" = "X"; then
b0cacab0 10745
57aa50d4
TT
10746 acl_save_prefix="$prefix"
10747 prefix="$acl_final_prefix"
10748 acl_save_exec_prefix="$exec_prefix"
10749 exec_prefix="$acl_final_exec_prefix"
b0cacab0 10750
57aa50d4
TT
10751 eval additional_includedir=\"$includedir\"
10752 eval additional_libdir=\"$libdir\"
7321d94e 10753
57aa50d4
TT
10754 exec_prefix="$acl_save_exec_prefix"
10755 prefix="$acl_save_prefix"
7321d94e 10756
57aa50d4
TT
10757 else
10758 additional_includedir="$withval/include"
93613951
TT
10759 additional_libdir="$withval/$acl_libdirstem"
10760 if test "$acl_libdirstem2" != "$acl_libdirstem" \
10761 && ! test -d "$withval/$acl_libdirstem"; then
10762 additional_libdir="$withval/$acl_libdirstem2"
10763 fi
57aa50d4
TT
10764 fi
10765 fi
7321d94e 10766
7321d94e
MK
10767fi
10768
57aa50d4
TT
10769 LIBINTL=
10770 LTLIBINTL=
10771 INCINTL=
93613951
TT
10772 LIBINTL_PREFIX=
10773 HAVE_LIBINTL=
57aa50d4
TT
10774 rpathdirs=
10775 ltrpathdirs=
10776 names_already_handled=
10777 names_next_round='intl '
10778 while test -n "$names_next_round"; do
10779 names_this_round="$names_next_round"
10780 names_next_round=
10781 for name in $names_this_round; do
10782 already_handled=
10783 for n in $names_already_handled; do
10784 if test "$n" = "$name"; then
10785 already_handled=yes
10786 break
10787 fi
50e1e10f 10788 done
57aa50d4
TT
10789 if test -z "$already_handled"; then
10790 names_already_handled="$names_already_handled $name"
93613951 10791 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
57aa50d4
TT
10792 eval value=\"\$HAVE_LIB$uppername\"
10793 if test -n "$value"; then
10794 if test "$value" = yes; then
10795 eval value=\"\$LIB$uppername\"
10796 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10797 eval value=\"\$LTLIB$uppername\"
10798 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10799 else
10800 :
10801 fi
10802 else
10803 found_dir=
10804 found_la=
10805 found_so=
10806 found_a=
93613951
TT
10807 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
10808 if test -n "$acl_shlibext"; then
10809 shrext=".$acl_shlibext" # typically: shrext=.so
10810 else
10811 shrext=
10812 fi
57aa50d4 10813 if test $use_additional = yes; then
93613951
TT
10814 dir="$additional_libdir"
10815 if test -n "$acl_shlibext"; then
10816 if test -f "$dir/$libname$shrext"; then
10817 found_dir="$dir"
10818 found_so="$dir/$libname$shrext"
10819 else
10820 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10821 ver=`(cd "$dir" && \
10822 for f in "$libname$shrext".*; do echo "$f"; done \
10823 | sed -e "s,^$libname$shrext\\\\.,," \
10824 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10825 | sed 1q ) 2>/dev/null`
10826 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10827 found_dir="$dir"
10828 found_so="$dir/$libname$shrext.$ver"
10829 fi
10830 else
10831 eval library_names=\"$acl_library_names_spec\"
10832 for f in $library_names; do
10833 if test -f "$dir/$f"; then
10834 found_dir="$dir"
10835 found_so="$dir/$f"
10836 break
10837 fi
10838 done
57aa50d4
TT
10839 fi
10840 fi
93613951
TT
10841 fi
10842 if test "X$found_dir" = "X"; then
10843 if test -f "$dir/$libname.$acl_libext"; then
10844 found_dir="$dir"
10845 found_a="$dir/$libname.$acl_libext"
10846 fi
10847 fi
10848 if test "X$found_dir" != "X"; then
10849 if test -f "$dir/$libname.la"; then
10850 found_la="$dir/$libname.la"
10851 fi
57aa50d4
TT
10852 fi
10853 fi
10854 if test "X$found_dir" = "X"; then
10855 for x in $LDFLAGS $LTLIBINTL; do
39fd3d4f 10856
57aa50d4
TT
10857 acl_save_prefix="$prefix"
10858 prefix="$acl_final_prefix"
10859 acl_save_exec_prefix="$exec_prefix"
10860 exec_prefix="$acl_final_exec_prefix"
10861 eval x=\"$x\"
10862 exec_prefix="$acl_save_exec_prefix"
10863 prefix="$acl_save_prefix"
3d05802f 10864
57aa50d4
TT
10865 case "$x" in
10866 -L*)
10867 dir=`echo "X$x" | sed -e 's/^X-L//'`
93613951
TT
10868 if test -n "$acl_shlibext"; then
10869 if test -f "$dir/$libname$shrext"; then
57aa50d4 10870 found_dir="$dir"
93613951
TT
10871 found_so="$dir/$libname$shrext"
10872 else
10873 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10874 ver=`(cd "$dir" && \
10875 for f in "$libname$shrext".*; do echo "$f"; done \
10876 | sed -e "s,^$libname$shrext\\\\.,," \
10877 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10878 | sed 1q ) 2>/dev/null`
10879 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10880 found_dir="$dir"
10881 found_so="$dir/$libname$shrext.$ver"
10882 fi
10883 else
10884 eval library_names=\"$acl_library_names_spec\"
10885 for f in $library_names; do
10886 if test -f "$dir/$f"; then
10887 found_dir="$dir"
10888 found_so="$dir/$f"
10889 break
10890 fi
10891 done
57aa50d4
TT
10892 fi
10893 fi
93613951
TT
10894 fi
10895 if test "X$found_dir" = "X"; then
10896 if test -f "$dir/$libname.$acl_libext"; then
10897 found_dir="$dir"
10898 found_a="$dir/$libname.$acl_libext"
10899 fi
10900 fi
10901 if test "X$found_dir" != "X"; then
10902 if test -f "$dir/$libname.la"; then
10903 found_la="$dir/$libname.la"
10904 fi
57aa50d4
TT
10905 fi
10906 ;;
10907 esac
10908 if test "X$found_dir" != "X"; then
10909 break
10910 fi
10911 done
10912 fi
10913 if test "X$found_dir" != "X"; then
10914 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10915 if test "X$found_so" != "X"; then
93613951
TT
10916 if test "$enable_rpath" = no \
10917 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
10918 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
57aa50d4
TT
10919 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10920 else
10921 haveit=
10922 for x in $ltrpathdirs; do
10923 if test "X$x" = "X$found_dir"; then
10924 haveit=yes
10925 break
10926 fi
10927 done
10928 if test -z "$haveit"; then
10929 ltrpathdirs="$ltrpathdirs $found_dir"
10930 fi
93613951 10931 if test "$acl_hardcode_direct" = yes; then
57aa50d4
TT
10932 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10933 else
93613951 10934 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
57aa50d4
TT
10935 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10936 haveit=
10937 for x in $rpathdirs; do
10938 if test "X$x" = "X$found_dir"; then
10939 haveit=yes
10940 break
10941 fi
10942 done
10943 if test -z "$haveit"; then
10944 rpathdirs="$rpathdirs $found_dir"
10945 fi
10946 else
10947 haveit=
10948 for x in $LDFLAGS $LIBINTL; do
6ec9ef18 10949
57aa50d4
TT
10950 acl_save_prefix="$prefix"
10951 prefix="$acl_final_prefix"
10952 acl_save_exec_prefix="$exec_prefix"
10953 exec_prefix="$acl_final_exec_prefix"
10954 eval x=\"$x\"
10955 exec_prefix="$acl_save_exec_prefix"
10956 prefix="$acl_save_prefix"
d7f45af8 10957
57aa50d4
TT
10958 if test "X$x" = "X-L$found_dir"; then
10959 haveit=yes
10960 break
10961 fi
10962 done
10963 if test -z "$haveit"; then
10964 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
10965 fi
93613951 10966 if test "$acl_hardcode_minus_L" != no; then
57aa50d4
TT
10967 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10968 else
10969 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10970 fi
10971 fi
10972 fi
10973 fi
10974 else
10975 if test "X$found_a" != "X"; then
10976 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
10977 else
10978 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
10979 fi
10980 fi
10981 additional_includedir=
10982 case "$found_dir" in
93613951
TT
10983 */$acl_libdirstem | */$acl_libdirstem/)
10984 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
10985 if test "$name" = 'intl'; then
10986 LIBINTL_PREFIX="$basedir"
10987 fi
10988 additional_includedir="$basedir/include"
10989 ;;
10990 */$acl_libdirstem2 | */$acl_libdirstem2/)
10991 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
10992 if test "$name" = 'intl'; then
10993 LIBINTL_PREFIX="$basedir"
10994 fi
57aa50d4
TT
10995 additional_includedir="$basedir/include"
10996 ;;
10997 esac
10998 if test "X$additional_includedir" != "X"; then
10999 if test "X$additional_includedir" != "X/usr/include"; then
11000 haveit=
11001 if test "X$additional_includedir" = "X/usr/local/include"; then
11002 if test -n "$GCC"; then
11003 case $host_os in
93613951 11004 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
57aa50d4
TT
11005 esac
11006 fi
11007 fi
11008 if test -z "$haveit"; then
11009 for x in $CPPFLAGS $INCINTL; do
b0cacab0 11010
57aa50d4
TT
11011 acl_save_prefix="$prefix"
11012 prefix="$acl_final_prefix"
11013 acl_save_exec_prefix="$exec_prefix"
11014 exec_prefix="$acl_final_exec_prefix"
11015 eval x=\"$x\"
11016 exec_prefix="$acl_save_exec_prefix"
11017 prefix="$acl_save_prefix"
21c84b71 11018
57aa50d4
TT
11019 if test "X$x" = "X-I$additional_includedir"; then
11020 haveit=yes
11021 break
11022 fi
11023 done
11024 if test -z "$haveit"; then
11025 if test -d "$additional_includedir"; then
11026 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
11027 fi
11028 fi
11029 fi
11030 fi
11031 fi
11032 if test -n "$found_la"; then
11033 save_libdir="$libdir"
11034 case "$found_la" in
11035 */* | *\\*) . "$found_la" ;;
11036 *) . "./$found_la" ;;
11037 esac
11038 libdir="$save_libdir"
11039 for dep in $dependency_libs; do
11040 case "$dep" in
11041 -L*)
11042 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
93613951
TT
11043 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
11044 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
57aa50d4 11045 haveit=
93613951
TT
11046 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
11047 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
57aa50d4
TT
11048 if test -n "$GCC"; then
11049 case $host_os in
93613951 11050 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
57aa50d4
TT
11051 esac
11052 fi
11053 fi
11054 if test -z "$haveit"; then
11055 haveit=
11056 for x in $LDFLAGS $LIBINTL; do
50e1e10f 11057
57aa50d4
TT
11058 acl_save_prefix="$prefix"
11059 prefix="$acl_final_prefix"
11060 acl_save_exec_prefix="$exec_prefix"
11061 exec_prefix="$acl_final_exec_prefix"
11062 eval x=\"$x\"
11063 exec_prefix="$acl_save_exec_prefix"
11064 prefix="$acl_save_prefix"
50e1e10f 11065
57aa50d4
TT
11066 if test "X$x" = "X-L$additional_libdir"; then
11067 haveit=yes
11068 break
11069 fi
11070 done
11071 if test -z "$haveit"; then
11072 if test -d "$additional_libdir"; then
11073 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
11074 fi
11075 fi
11076 haveit=
11077 for x in $LDFLAGS $LTLIBINTL; do
a4bf69d9 11078
57aa50d4
TT
11079 acl_save_prefix="$prefix"
11080 prefix="$acl_final_prefix"
11081 acl_save_exec_prefix="$exec_prefix"
11082 exec_prefix="$acl_final_exec_prefix"
11083 eval x=\"$x\"
11084 exec_prefix="$acl_save_exec_prefix"
11085 prefix="$acl_save_prefix"
50e1e10f 11086
57aa50d4
TT
11087 if test "X$x" = "X-L$additional_libdir"; then
11088 haveit=yes
11089 break
11090 fi
11091 done
11092 if test -z "$haveit"; then
11093 if test -d "$additional_libdir"; then
11094 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
11095 fi
11096 fi
11097 fi
11098 fi
11099 ;;
11100 -R*)
11101 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11102 if test "$enable_rpath" != no; then
11103 haveit=
11104 for x in $rpathdirs; do
11105 if test "X$x" = "X$dir"; then
11106 haveit=yes
11107 break
11108 fi
11109 done
11110 if test -z "$haveit"; then
11111 rpathdirs="$rpathdirs $dir"
11112 fi
11113 haveit=
11114 for x in $ltrpathdirs; do
11115 if test "X$x" = "X$dir"; then
11116 haveit=yes
11117 break
11118 fi
11119 done
11120 if test -z "$haveit"; then
11121 ltrpathdirs="$ltrpathdirs $dir"
11122 fi
11123 fi
11124 ;;
11125 -l*)
11126 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11127 ;;
11128 *.la)
11129 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11130 ;;
11131 *)
11132 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
11133 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
11134 ;;
11135 esac
11136 done
11137 fi
11138 else
11139 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11140 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
11141 fi
11142 fi
11143 fi
11144 done
11145 done
11146 if test "X$rpathdirs" != "X"; then
93613951 11147 if test -n "$acl_hardcode_libdir_separator"; then
57aa50d4
TT
11148 alldirs=
11149 for found_dir in $rpathdirs; do
93613951 11150 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
57aa50d4
TT
11151 done
11152 acl_save_libdir="$libdir"
11153 libdir="$alldirs"
93613951 11154 eval flag=\"$acl_hardcode_libdir_flag_spec\"
57aa50d4
TT
11155 libdir="$acl_save_libdir"
11156 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11157 else
11158 for found_dir in $rpathdirs; do
11159 acl_save_libdir="$libdir"
11160 libdir="$found_dir"
93613951 11161 eval flag=\"$acl_hardcode_libdir_flag_spec\"
57aa50d4
TT
11162 libdir="$acl_save_libdir"
11163 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11164 done
11165 fi
11166 fi
11167 if test "X$ltrpathdirs" != "X"; then
11168 for found_dir in $ltrpathdirs; do
11169 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
11170 done
11171 fi
b0cacab0 11172
93613951
TT
11173
11174
11175
11176
11177
57aa50d4
TT
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
11179$as_echo_n "checking for GNU gettext in libintl... " >&6; }
93613951 11180if eval \${$gt_func_gnugettext_libintl+:} false; then :
39fd3d4f 11181 $as_echo_n "(cached) " >&6
6c133523 11182else
57aa50d4
TT
11183 gt_save_CPPFLAGS="$CPPFLAGS"
11184 CPPFLAGS="$CPPFLAGS $INCINTL"
11185 gt_save_LIBS="$LIBS"
11186 LIBS="$LIBS $LIBINTL"
11187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11188/* end confdefs.h. */
93613951 11189
57aa50d4 11190#include <libintl.h>
93613951 11191$gt_revision_test_code
57aa50d4
TT
11192extern int _nl_msg_cat_cntr;
11193extern
11194#ifdef __cplusplus
11195"C"
11196#endif
93613951
TT
11197const char *_nl_expand_alias (const char *);
11198
57aa50d4
TT
11199int
11200main ()
11201{
93613951 11202
57aa50d4 11203bindtextdomain ("", "");
93613951
TT
11204return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11205
57aa50d4
TT
11206 ;
11207 return 0;
11208}
b0cacab0 11209_ACEOF
57aa50d4 11210if ac_fn_c_try_link "$LINENO"; then :
93613951 11211 eval "$gt_func_gnugettext_libintl=yes"
6c133523 11212else
93613951 11213 eval "$gt_func_gnugettext_libintl=no"
6c133523 11214fi
57aa50d4
TT
11215rm -f core conftest.err conftest.$ac_objext \
11216 conftest$ac_exeext conftest.$ac_ext
93613951 11217 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
57aa50d4
TT
11218 LIBS="$LIBS $LIBICONV"
11219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
da76d6b7 11220/* end confdefs.h. */
93613951 11221
57aa50d4 11222#include <libintl.h>
93613951 11223$gt_revision_test_code
57aa50d4
TT
11224extern int _nl_msg_cat_cntr;
11225extern
11226#ifdef __cplusplus
11227"C"
da76d6b7 11228#endif
93613951
TT
11229const char *_nl_expand_alias (const char *);
11230
57aa50d4
TT
11231int
11232main ()
11233{
93613951 11234
57aa50d4 11235bindtextdomain ("", "");
93613951
TT
11236return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11237
57aa50d4
TT
11238 ;
11239 return 0;
11240}
da76d6b7 11241_ACEOF
57aa50d4
TT
11242if ac_fn_c_try_link "$LINENO"; then :
11243 LIBINTL="$LIBINTL $LIBICONV"
93613951
TT
11244 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
11245 eval "$gt_func_gnugettext_libintl=yes"
6c133523
TT
11246
11247fi
57aa50d4
TT
11248rm -f core conftest.err conftest.$ac_objext \
11249 conftest$ac_exeext conftest.$ac_ext
11250 fi
11251 CPPFLAGS="$gt_save_CPPFLAGS"
11252 LIBS="$gt_save_LIBS"
da76d6b7 11253fi
93613951
TT
11254eval ac_res=\$$gt_func_gnugettext_libintl
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11256$as_echo "$ac_res" >&6; }
57aa50d4 11257 fi
b0cacab0 11258
93613951
TT
11259 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
11260 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
57aa50d4
TT
11261 && test "$PACKAGE" != gettext-runtime \
11262 && test "$PACKAGE" != gettext-tools; }; then
11263 gt_use_preinstalled_gnugettext=yes
11264 else
11265 LIBINTL=
11266 LTLIBINTL=
11267 INCINTL=
11268 fi
740837de 11269
b0cacab0 11270
57aa50d4
TT
11271 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
11272 nls_cv_use_gnu_gettext=yes
11273 fi
11274 fi
b0cacab0 11275
57aa50d4
TT
11276 if test "$nls_cv_use_gnu_gettext" = "yes"; then
11277 BUILD_INCLUDED_LIBINTL=yes
11278 USE_INCLUDED_LIBINTL=yes
93613951
TT
11279 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
11280 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
57aa50d4
TT
11281 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
11282 fi
b0cacab0 11283
93613951 11284 CATOBJEXT=
57aa50d4
TT
11285 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11286 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11287 CATOBJEXT=.gmo
11288 fi
b0cacab0
TT
11289
11290
93613951
TT
11291 if test -n "$INTL_MACOSX_LIBS"; then
11292 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11293 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11294 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
11295 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
11296 fi
11297 fi
11298
57aa50d4
TT
11299 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11300 || test "$nls_cv_use_gnu_gettext" = "yes"; then
b0cacab0 11301
57aa50d4 11302$as_echo "#define ENABLE_NLS 1" >>confdefs.h
b0cacab0 11303
57aa50d4
TT
11304 else
11305 USE_NLS=no
11306 fi
11307 fi
b0cacab0 11308
57aa50d4
TT
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
11310$as_echo_n "checking whether to use NLS... " >&6; }
11311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11312$as_echo "$USE_NLS" >&6; }
11313 if test "$USE_NLS" = "yes"; then
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
11315$as_echo_n "checking where the gettext function comes from... " >&6; }
11316 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
93613951 11317 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
57aa50d4
TT
11318 gt_source="external libintl"
11319 else
11320 gt_source="libc"
11321 fi
11322 else
11323 gt_source="included intl directory"
11324 fi
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
11326$as_echo "$gt_source" >&6; }
11327 fi
b0cacab0 11328
57aa50d4 11329 if test "$USE_NLS" = "yes"; then
b0cacab0 11330
57aa50d4 11331 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
93613951 11332 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
57aa50d4
TT
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
11334$as_echo_n "checking how to link with libintl... " >&6; }
11335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
11336$as_echo "$LIBINTL" >&6; }
b0cacab0 11337
57aa50d4
TT
11338 for element in $INCINTL; do
11339 haveit=
11340 for x in $CPPFLAGS; do
b0cacab0 11341
57aa50d4
TT
11342 acl_save_prefix="$prefix"
11343 prefix="$acl_final_prefix"
11344 acl_save_exec_prefix="$exec_prefix"
11345 exec_prefix="$acl_final_exec_prefix"
11346 eval x=\"$x\"
11347 exec_prefix="$acl_save_exec_prefix"
11348 prefix="$acl_save_prefix"
b0cacab0 11349
57aa50d4
TT
11350 if test "X$x" = "X$element"; then
11351 haveit=yes
11352 break
11353 fi
11354 done
11355 if test -z "$haveit"; then
11356 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11357 fi
11358 done
b0cacab0 11359
57aa50d4 11360 fi
b0cacab0
TT
11361
11362
57aa50d4 11363$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
b0cacab0
TT
11364
11365
57aa50d4 11366$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
b0cacab0 11367
57aa50d4 11368 fi
b0cacab0 11369
57aa50d4
TT
11370 POSUB=po
11371 fi
b0cacab0
TT
11372
11373
57aa50d4
TT
11374 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
11375 BUILD_INCLUDED_LIBINTL=yes
11376 fi
b0cacab0
TT
11377
11378
11379
11380
11381
57aa50d4
TT
11382 nls_cv_header_intl=
11383 nls_cv_header_libgt=
b0cacab0 11384
57aa50d4 11385 DATADIRNAME=share
762c7c65 11386
106ad96d 11387
57aa50d4 11388 INSTOBJEXT=.mo
106ad96d 11389
e7cc6f7d 11390
57aa50d4 11391 GENCAT=gencat
e7cc6f7d 11392
3d05802f 11393
93613951
TT
11394 INTLOBJS=
11395 if test "$USE_INCLUDED_LIBINTL" = yes; then
57aa50d4
TT
11396 INTLOBJS="\$(GETTOBJS)"
11397 fi
6ec9ef18 11398
d7f45af8 11399
57aa50d4 11400 INTL_LIBTOOL_SUFFIX_PREFIX=
50e1e10f 11401
50e1e10f 11402
b0cacab0 11403
57aa50d4 11404 INTLLIBS="$LIBINTL"
e1052144 11405
b0cacab0 11406
93636bde 11407
93636bde 11408
b0cacab0 11409
93636bde 11410
50e1e10f 11411
57aa50d4
TT
11412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11413$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11414set x ${MAKE-make}
11415ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
d6a4bcb5 11416if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
57aa50d4
TT
11417 $as_echo_n "(cached) " >&6
11418else
11419 cat >conftest.make <<\_ACEOF
11420SHELL = /bin/sh
11421all:
11422 @echo '@@@%%%=$(MAKE)=@@@%%%'
b0cacab0 11423_ACEOF
d6a4bcb5 11424# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
57aa50d4
TT
11425case `${MAKE-make} -f conftest.make 2>/dev/null` in
11426 *@@@%%%=?*=@@@%%%*)
11427 eval ac_cv_prog_make_${ac_make}_set=yes;;
11428 *)
11429 eval ac_cv_prog_make_${ac_make}_set=no;;
e1052144 11430esac
57aa50d4 11431rm -f conftest.make
b0cacab0 11432fi
57aa50d4
TT
11433if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11435$as_echo "yes" >&6; }
11436 SET_MAKE=
b0b9c4de 11437else
57aa50d4
TT
11438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11439$as_echo "no" >&6; }
11440 SET_MAKE="MAKE=${MAKE-make}"
b0cacab0 11441fi
b0cacab0 11442
57aa50d4
TT
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
11444$as_echo_n "checking for GNU make... " >&6; }
d6a4bcb5 11445if ${_cv_gnu_make_command+:} false; then :
57aa50d4 11446 $as_echo_n "(cached) " >&6
39fd3d4f 11447else
57aa50d4
TT
11448 _cv_gnu_make_command='' ;
11449 for a in "$MAKE" make gmake gnumake ; do
11450 if test -z "$a" ; then continue ; fi ;
11451 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
11452 _cv_gnu_make_command=$a ;
11453 break;
11454 fi
11455 done ;
50e1e10f 11456
50e1e10f 11457fi
57aa50d4
TT
11458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
11459$as_echo "$_cv_gnu_make_command" >&6; } ;
11460 if test "x$_cv_gnu_make_command" != "x" ; then
11461 ifGNUmake='' ;
11462 ifNotGNUmake='#' ;
11463 else
11464 ifGNUmake='#' ;
11465 ifNotGNUmake='' ;
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
11467$as_echo "\"Not found\"" >&6; };
11468 fi
50e1e10f 11469
50e1e10f 11470
b0cacab0 11471
57aa50d4
TT
11472# Extract the first word of "ln", so it can be a program name with args.
11473set dummy ln; ac_word=$2
11474{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11475$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 11476if ${ac_cv_path_LN+:} false; then :
39fd3d4f 11477 $as_echo_n "(cached) " >&6
fff45483 11478else
57aa50d4
TT
11479 case $LN in
11480 [\\/]* | ?:[\\/]*)
11481 ac_cv_path_LN="$LN" # Let the user override the test with a path.
11482 ;;
11483 *)
11484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11485for as_dir in $PATH
11486do
11487 IFS=$as_save_IFS
11488 test -z "$as_dir" && as_dir=.
11489 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 11490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
11491 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
11492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11493 break 2
11494 fi
11495done
11496 done
11497IFS=$as_save_IFS
6c65d251 11498
57aa50d4
TT
11499 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
11500 ;;
e1052144 11501esac
fff45483 11502fi
57aa50d4
TT
11503LN=$ac_cv_path_LN
11504if test -n "$LN"; then
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
11506$as_echo "$LN" >&6; }
11507else
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11509$as_echo "no" >&6; }
fff45483 11510fi
e1052144 11511
fff45483 11512
57aa50d4
TT
11513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11514$as_echo_n "checking whether ln -s works... " >&6; }
11515LN_S=$as_ln_s
11516if test "$LN_S" = "ln -s"; then
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11518$as_echo "yes" >&6; }
11519else
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11521$as_echo "no, using $LN_S" >&6; }
fff45483 11522fi
6c65d251 11523
57aa50d4
TT
11524# Extract the first word of "mv", so it can be a program name with args.
11525set dummy mv; ac_word=$2
11526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11527$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 11528if ${ac_cv_path_MV+:} false; then :
39fd3d4f 11529 $as_echo_n "(cached) " >&6
fff45483 11530else
57aa50d4
TT
11531 case $MV in
11532 [\\/]* | ?:[\\/]*)
11533 ac_cv_path_MV="$MV" # Let the user override the test with a path.
11534 ;;
11535 *)
11536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11537for as_dir in $PATH
11538do
11539 IFS=$as_save_IFS
11540 test -z "$as_dir" && as_dir=.
11541 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 11542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
11543 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
11544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11545 break 2
11546 fi
11547done
11548 done
11549IFS=$as_save_IFS
6c65d251 11550
57aa50d4
TT
11551 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
11552 ;;
e1052144 11553esac
b0cacab0 11554fi
57aa50d4
TT
11555MV=$ac_cv_path_MV
11556if test -n "$MV"; then
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
11558$as_echo "$MV" >&6; }
b0b9c4de 11559else
57aa50d4
TT
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11561$as_echo "no" >&6; }
39fd3d4f
SJR
11562fi
11563
39fd3d4f 11564
57aa50d4
TT
11565# Extract the first word of "cp", so it can be a program name with args.
11566set dummy cp; ac_word=$2
11567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11568$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 11569if ${ac_cv_path_CP+:} false; then :
39fd3d4f 11570 $as_echo_n "(cached) " >&6
b0cacab0 11571else
57aa50d4
TT
11572 case $CP in
11573 [\\/]* | ?:[\\/]*)
11574 ac_cv_path_CP="$CP" # Let the user override the test with a path.
11575 ;;
11576 *)
11577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11578for as_dir in $PATH
11579do
11580 IFS=$as_save_IFS
11581 test -z "$as_dir" && as_dir=.
11582 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 11583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
11584 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
11585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11586 break 2
11587 fi
11588done
11589 done
11590IFS=$as_save_IFS
39fd3d4f 11591
57aa50d4
TT
11592 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11593 ;;
e1052144 11594esac
b0b9c4de 11595fi
57aa50d4
TT
11596CP=$ac_cv_path_CP
11597if test -n "$CP"; then
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
11599$as_echo "$CP" >&6; }
b0cacab0 11600else
57aa50d4
TT
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11602$as_echo "no" >&6; }
b0b9c4de 11603fi
b0b9c4de 11604
6c65d251 11605
57aa50d4
TT
11606# Extract the first word of "rm", so it can be a program name with args.
11607set dummy rm; ac_word=$2
11608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11609$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 11610if ${ac_cv_path_RM+:} false; then :
39fd3d4f 11611 $as_echo_n "(cached) " >&6
6928adc9 11612else
57aa50d4
TT
11613 case $RM in
11614 [\\/]* | ?:[\\/]*)
11615 ac_cv_path_RM="$RM" # Let the user override the test with a path.
11616 ;;
11617 *)
11618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11619for as_dir in $PATH
11620do
11621 IFS=$as_save_IFS
11622 test -z "$as_dir" && as_dir=.
11623 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 11624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
11625 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
11626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11627 break 2
11628 fi
11629done
b0cacab0 11630 done
57aa50d4 11631IFS=$as_save_IFS
6c65d251 11632
57aa50d4
TT
11633 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11634 ;;
e1052144 11635esac
6928adc9 11636fi
57aa50d4
TT
11637RM=$ac_cv_path_RM
11638if test -n "$RM"; then
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
11640$as_echo "$RM" >&6; }
b0cacab0 11641else
57aa50d4
TT
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11643$as_echo "no" >&6; }
6928adc9 11644fi
6928adc9 11645
6c65d251 11646
57aa50d4
TT
11647# Extract the first word of "chmod", so it can be a program name with args.
11648set dummy chmod; ac_word=$2
11649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11650$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 11651if ${ac_cv_path_CHMOD+:} false; then :
39fd3d4f 11652 $as_echo_n "(cached) " >&6
b0cacab0 11653else
57aa50d4
TT
11654 case $CHMOD in
11655 [\\/]* | ?:[\\/]*)
11656 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11657 ;;
11658 *)
11659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11660for as_dir in $PATH
11661do
11662 IFS=$as_save_IFS
11663 test -z "$as_dir" && as_dir=.
11664 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 11665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
11666 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
11667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11668 break 2
11669 fi
11670done
11671 done
11672IFS=$as_save_IFS
39fd3d4f 11673
57aa50d4
TT
11674 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11675 ;;
e1052144 11676esac
b0cacab0 11677fi
57aa50d4
TT
11678CHMOD=$ac_cv_path_CHMOD
11679if test -n "$CHMOD"; then
11680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
11681$as_echo "$CHMOD" >&6; }
b0cacab0 11682else
57aa50d4
TT
11683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11684$as_echo "no" >&6; }
b0cacab0 11685fi
39fd3d4f 11686
b0cacab0 11687
57aa50d4
TT
11688for ac_prog in gawk mawk nawk awk
11689do
11690 # Extract the first word of "$ac_prog", so it can be a program name with args.
11691set dummy $ac_prog; ac_word=$2
11692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11693$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 11694if ${ac_cv_prog_AWK+:} false; then :
39fd3d4f 11695 $as_echo_n "(cached) " >&6
b0cacab0 11696else
57aa50d4
TT
11697 if test -n "$AWK"; then
11698 ac_cv_prog_AWK="$AWK" # Let the user override the test.
b0cacab0 11699else
57aa50d4
TT
11700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11701for as_dir in $PATH
11702do
11703 IFS=$as_save_IFS
11704 test -z "$as_dir" && as_dir=.
11705 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 11706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
11707 ac_cv_prog_AWK="$ac_prog"
11708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11709 break 2
11710 fi
11711done
11712 done
11713IFS=$as_save_IFS
b0cacab0 11714
b0cacab0 11715fi
57aa50d4
TT
11716fi
11717AWK=$ac_cv_prog_AWK
11718if test -n "$AWK"; then
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11720$as_echo "$AWK" >&6; }
b0cacab0 11721else
57aa50d4
TT
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11723$as_echo "no" >&6; }
b0cacab0 11724fi
b0cacab0 11725
b0cacab0 11726
57aa50d4
TT
11727 test -n "$AWK" && break
11728done
b0cacab0 11729
57aa50d4
TT
11730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11731$as_echo_n "checking for egrep... " >&6; }
d6a4bcb5 11732if ${ac_cv_path_EGREP+:} false; then :
57aa50d4 11733 $as_echo_n "(cached) " >&6
b0cacab0 11734else
57aa50d4
TT
11735 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11736 then ac_cv_path_EGREP="$GREP -E"
11737 else
11738 if test -z "$EGREP"; then
11739 ac_path_EGREP_found=false
11740 # Loop through the user's path and test for each of PROGNAME-LIST
11741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11742for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11743do
11744 IFS=$as_save_IFS
11745 test -z "$as_dir" && as_dir=.
11746 for ac_prog in egrep; do
11747 for ac_exec_ext in '' $ac_executable_extensions; do
11748 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
d6a4bcb5 11749 as_fn_executable_p "$ac_path_EGREP" || continue
57aa50d4
TT
11750# Check for GNU ac_path_EGREP and select it if it is found.
11751 # Check for GNU $ac_path_EGREP
11752case `"$ac_path_EGREP" --version 2>&1` in
11753*GNU*)
11754 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11755*)
11756 ac_count=0
11757 $as_echo_n 0123456789 >"conftest.in"
11758 while :
11759 do
11760 cat "conftest.in" "conftest.in" >"conftest.tmp"
11761 mv "conftest.tmp" "conftest.in"
11762 cp "conftest.in" "conftest.nl"
11763 $as_echo 'EGREP' >> "conftest.nl"
11764 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11765 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11766 as_fn_arith $ac_count + 1 && ac_count=$as_val
11767 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11768 # Best one so far, save it but keep looking for a better one
11769 ac_cv_path_EGREP="$ac_path_EGREP"
11770 ac_path_EGREP_max=$ac_count
11771 fi
11772 # 10*(2^10) chars as input seems more than enough
11773 test $ac_count -gt 10 && break
11774 done
11775 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
e1052144 11776esac
e1052144 11777
57aa50d4
TT
11778 $ac_path_EGREP_found && break 3
11779 done
b0cacab0 11780 done
57aa50d4
TT
11781 done
11782IFS=$as_save_IFS
11783 if test -z "$ac_cv_path_EGREP"; then
d6a4bcb5 11784 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
57aa50d4 11785 fi
b0cacab0 11786else
57aa50d4 11787 ac_cv_path_EGREP=$EGREP
b0cacab0 11788fi
e1052144 11789
57aa50d4 11790 fi
b0cacab0 11791fi
57aa50d4
TT
11792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11793$as_echo "$ac_cv_path_EGREP" >&6; }
11794 EGREP="$ac_cv_path_EGREP"
e1052144 11795
b0cacab0 11796
57aa50d4
TT
11797# Extract the first word of "sed", so it can be a program name with args.
11798set dummy sed; ac_word=$2
11799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11800$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 11801if ${ac_cv_path_SED+:} false; then :
57aa50d4 11802 $as_echo_n "(cached) " >&6
b0cacab0 11803else
57aa50d4
TT
11804 case $SED in
11805 [\\/]* | ?:[\\/]*)
11806 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11807 ;;
11808 *)
11809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11810for as_dir in $PATH
11811do
11812 IFS=$as_save_IFS
11813 test -z "$as_dir" && as_dir=.
11814 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 11815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
11816 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
11817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11818 break 2
11819 fi
b0cacab0 11820done
57aa50d4
TT
11821 done
11822IFS=$as_save_IFS
b0cacab0 11823
57aa50d4
TT
11824 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11825 ;;
b0cacab0 11826esac
57aa50d4
TT
11827fi
11828SED=$ac_cv_path_SED
11829if test -n "$SED"; then
11830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
11831$as_echo "$SED" >&6; }
b0cacab0 11832else
57aa50d4
TT
11833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11834$as_echo "no" >&6; }
b0cacab0 11835fi
e1052144 11836
b0cacab0 11837
57aa50d4
TT
11838# Extract the first word of "perl", so it can be a program name with args.
11839set dummy perl; ac_word=$2
11840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11841$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 11842if ${ac_cv_path_PERL+:} false; then :
57aa50d4
TT
11843 $as_echo_n "(cached) " >&6
11844else
11845 case $PERL in
11846 [\\/]* | ?:[\\/]*)
11847 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11848 ;;
11849 *)
11850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11851for as_dir in $PATH
11852do
11853 IFS=$as_save_IFS
11854 test -z "$as_dir" && as_dir=.
11855 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 11856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
11857 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
11858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11859 break 2
11860 fi
b0cacab0 11861done
57aa50d4
TT
11862 done
11863IFS=$as_save_IFS
11864
11865 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11866 ;;
b0cacab0 11867esac
57aa50d4
TT
11868fi
11869PERL=$ac_cv_path_PERL
11870if test -n "$PERL"; then
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
11872$as_echo "$PERL" >&6; }
b0cacab0 11873else
57aa50d4
TT
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11875$as_echo "no" >&6; }
11876fi
b0cacab0 11877
b0cacab0 11878
57aa50d4
TT
11879# Extract the first word of "ldconfig", so it can be a program name with args.
11880set dummy ldconfig; ac_word=$2
11881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11882$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 11883if ${ac_cv_path_LDCONFIG+:} false; then :
57aa50d4 11884 $as_echo_n "(cached) " >&6
b0cacab0 11885else
57aa50d4
TT
11886 case $LDCONFIG in
11887 [\\/]* | ?:[\\/]*)
11888 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
11889 ;;
11890 *)
11891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11892for as_dir in $PATH
11893do
11894 IFS=$as_save_IFS
11895 test -z "$as_dir" && as_dir=.
11896 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 11897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
11898 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
11899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11900 break 2
11901 fi
11902done
11903 done
11904IFS=$as_save_IFS
b0cacab0 11905
57aa50d4
TT
11906 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
11907 ;;
11908esac
39fd3d4f 11909fi
57aa50d4
TT
11910LDCONFIG=$ac_cv_path_LDCONFIG
11911if test -n "$LDCONFIG"; then
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
11913$as_echo "$LDCONFIG" >&6; }
11914else
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11916$as_echo "no" >&6; }
b0cacab0 11917fi
39fd3d4f
SJR
11918
11919
57aa50d4
TT
11920if test -n "$ac_tool_prefix"; then
11921 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11922set dummy ${ac_tool_prefix}ar; ac_word=$2
11923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11924$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 11925if ${ac_cv_prog_AR+:} false; then :
57aa50d4
TT
11926 $as_echo_n "(cached) " >&6
11927else
11928 if test -n "$AR"; then
11929 ac_cv_prog_AR="$AR" # Let the user override the test.
11930else
11931as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11932for as_dir in $PATH
11933do
11934 IFS=$as_save_IFS
11935 test -z "$as_dir" && as_dir=.
11936 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 11937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
11938 ac_cv_prog_AR="${ac_tool_prefix}ar"
11939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11940 break 2
11941 fi
11942done
11943 done
11944IFS=$as_save_IFS
39fd3d4f 11945
57aa50d4
TT
11946fi
11947fi
11948AR=$ac_cv_prog_AR
11949if test -n "$AR"; then
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11951$as_echo "$AR" >&6; }
11952else
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11954$as_echo "no" >&6; }
11955fi
39fd3d4f 11956
b0cacab0 11957
57aa50d4
TT
11958fi
11959if test -z "$ac_cv_prog_AR"; then
11960 ac_ct_AR=$AR
11961 # Extract the first word of "ar", so it can be a program name with args.
11962set dummy ar; ac_word=$2
11963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11964$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 11965if ${ac_cv_prog_ac_ct_AR+:} false; then :
39fd3d4f 11966 $as_echo_n "(cached) " >&6
b0cacab0 11967else
57aa50d4
TT
11968 if test -n "$ac_ct_AR"; then
11969 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
b0cacab0 11970else
57aa50d4
TT
11971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11972for as_dir in $PATH
11973do
11974 IFS=$as_save_IFS
11975 test -z "$as_dir" && as_dir=.
11976 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 11977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
11978 ac_cv_prog_ac_ct_AR="ar"
11979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11980 break 2
11981 fi
11982done
11983 done
11984IFS=$as_save_IFS
b0cacab0 11985
b0cacab0 11986fi
57aa50d4
TT
11987fi
11988ac_ct_AR=$ac_cv_prog_ac_ct_AR
11989if test -n "$ac_ct_AR"; then
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11991$as_echo "$ac_ct_AR" >&6; }
b0cacab0 11992else
57aa50d4
TT
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11994$as_echo "no" >&6; }
11995fi
b0cacab0 11996
57aa50d4
TT
11997 if test "x$ac_ct_AR" = x; then
11998 AR="ar"
11999 else
12000 case $cross_compiling:$ac_tool_warned in
12001yes:)
12002{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12003$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12004ac_tool_warned=yes ;;
e1052144 12005esac
57aa50d4
TT
12006 AR=$ac_ct_AR
12007 fi
b0cacab0 12008else
57aa50d4 12009 AR="$ac_cv_prog_AR"
b0cacab0 12010fi
e1052144 12011
57aa50d4
TT
12012if test -n "$ac_tool_prefix"; then
12013 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12014set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12016$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 12017if ${ac_cv_prog_RANLIB+:} false; then :
57aa50d4 12018 $as_echo_n "(cached) " >&6
b0cacab0 12019else
57aa50d4
TT
12020 if test -n "$RANLIB"; then
12021 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12022else
12023as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12024for as_dir in $PATH
12025do
12026 IFS=$as_save_IFS
12027 test -z "$as_dir" && as_dir=.
12028 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 12029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
12030 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12032 break 2
12033 fi
12034done
b0cacab0 12035 done
57aa50d4 12036IFS=$as_save_IFS
b0cacab0 12037
b0cacab0 12038fi
57aa50d4
TT
12039fi
12040RANLIB=$ac_cv_prog_RANLIB
12041if test -n "$RANLIB"; then
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12043$as_echo "$RANLIB" >&6; }
b0cacab0 12044else
57aa50d4
TT
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12046$as_echo "no" >&6; }
b0cacab0 12047fi
b0cacab0 12048
b0cacab0 12049
57aa50d4
TT
12050fi
12051if test -z "$ac_cv_prog_RANLIB"; then
12052 ac_ct_RANLIB=$RANLIB
12053 # Extract the first word of "ranlib", so it can be a program name with args.
12054set dummy ranlib; ac_word=$2
12055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12056$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 12057if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
57aa50d4
TT
12058 $as_echo_n "(cached) " >&6
12059else
12060 if test -n "$ac_ct_RANLIB"; then
12061 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
b0cacab0 12062else
57aa50d4
TT
12063as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12064for as_dir in $PATH
12065do
12066 IFS=$as_save_IFS
12067 test -z "$as_dir" && as_dir=.
12068 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 12069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
12070 ac_cv_prog_ac_ct_RANLIB="ranlib"
12071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12072 break 2
12073 fi
12074done
12075 done
12076IFS=$as_save_IFS
29a5deed 12077
b0cacab0 12078fi
57aa50d4
TT
12079fi
12080ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12081if test -n "$ac_ct_RANLIB"; then
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12083$as_echo "$ac_ct_RANLIB" >&6; }
b0cacab0 12084else
57aa50d4
TT
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12086$as_echo "no" >&6; }
12087fi
b0cacab0 12088
57aa50d4
TT
12089 if test "x$ac_ct_RANLIB" = x; then
12090 RANLIB=":"
b0cacab0 12091 else
57aa50d4
TT
12092 case $cross_compiling:$ac_tool_warned in
12093yes:)
12094{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12095$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12096ac_tool_warned=yes ;;
e1052144 12097esac
57aa50d4
TT
12098 RANLIB=$ac_ct_RANLIB
12099 fi
b0cacab0 12100else
57aa50d4 12101 RANLIB="$ac_cv_prog_RANLIB"
b0cacab0 12102fi
e1052144 12103
57aa50d4
TT
12104if test -n "$ac_tool_prefix"; then
12105 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12106set dummy ${ac_tool_prefix}strip; ac_word=$2
12107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12108$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 12109if ${ac_cv_prog_STRIP+:} false; then :
57aa50d4 12110 $as_echo_n "(cached) " >&6
b0cacab0 12111else
57aa50d4
TT
12112 if test -n "$STRIP"; then
12113 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12114else
12115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12116for as_dir in $PATH
12117do
12118 IFS=$as_save_IFS
12119 test -z "$as_dir" && as_dir=.
12120 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 12121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
12122 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12124 break 2
12125 fi
12126done
12127 done
12128IFS=$as_save_IFS
b0cacab0 12129
b0cacab0 12130fi
b0cacab0 12131fi
57aa50d4
TT
12132STRIP=$ac_cv_prog_STRIP
12133if test -n "$STRIP"; then
12134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12135$as_echo "$STRIP" >&6; }
12136else
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12138$as_echo "no" >&6; }
b0cacab0 12139fi
e1052144 12140
b0cacab0 12141
57aa50d4
TT
12142fi
12143if test -z "$ac_cv_prog_STRIP"; then
12144 ac_ct_STRIP=$STRIP
12145 # Extract the first word of "strip", so it can be a program name with args.
12146set dummy strip; ac_word=$2
12147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12148$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 12149if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
39fd3d4f 12150 $as_echo_n "(cached) " >&6
b0cacab0 12151else
57aa50d4
TT
12152 if test -n "$ac_ct_STRIP"; then
12153 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12154else
12155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12156for as_dir in $PATH
12157do
12158 IFS=$as_save_IFS
12159 test -z "$as_dir" && as_dir=.
12160 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 12161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
12162 ac_cv_prog_ac_ct_STRIP="strip"
12163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12164 break 2
12165 fi
12166done
12167 done
12168IFS=$as_save_IFS
b0cacab0 12169
b0cacab0 12170fi
57aa50d4
TT
12171fi
12172ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12173if test -n "$ac_ct_STRIP"; then
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12175$as_echo "$ac_ct_STRIP" >&6; }
b0cacab0 12176else
57aa50d4
TT
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12178$as_echo "no" >&6; }
12179fi
b0cacab0 12180
57aa50d4
TT
12181 if test "x$ac_ct_STRIP" = x; then
12182 STRIP=":"
b0cacab0 12183 else
57aa50d4
TT
12184 case $cross_compiling:$ac_tool_warned in
12185yes:)
12186{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12187$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12188ac_tool_warned=yes ;;
e1052144 12189esac
57aa50d4
TT
12190 STRIP=$ac_ct_STRIP
12191 fi
b0cacab0 12192else
57aa50d4 12193 STRIP="$ac_cv_prog_STRIP"
b0cacab0 12194fi
e1052144 12195
57aa50d4
TT
12196# Extract the first word of "makeinfo", so it can be a program name with args.
12197set dummy makeinfo; ac_word=$2
12198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12199$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 12200if ${ac_cv_prog_MAKEINFO+:} false; then :
57aa50d4 12201 $as_echo_n "(cached) " >&6
07a0db15 12202else
57aa50d4
TT
12203 if test -n "$MAKEINFO"; then
12204 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
12205else
12206as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12207for as_dir in $PATH
12208do
12209 IFS=$as_save_IFS
12210 test -z "$as_dir" && as_dir=.
12211 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 12212 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
12213 ac_cv_prog_MAKEINFO="makeinfo"
12214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12215 break 2
12216 fi
12217done
12218 done
12219IFS=$as_save_IFS
b0cacab0 12220
b0cacab0
TT
12221fi
12222fi
57aa50d4
TT
12223MAKEINFO=$ac_cv_prog_MAKEINFO
12224if test -n "$MAKEINFO"; then
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
12226$as_echo "$MAKEINFO" >&6; }
b0cacab0 12227else
57aa50d4
TT
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12229$as_echo "no" >&6; }
07a0db15 12230fi
29a5deed
TT
12231
12232
57aa50d4
TT
12233if test "_$MAKEINFO" = "_"; then
12234 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
12235else
12236 case "$MAKEINFO" in
12237 */missing.*)
12238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
12239*** Makeinfo is missing. Info documentation will not be built." >&5
12240$as_echo "$as_me: WARNING:
12241*** Makeinfo is missing. Info documentation will not be built." >&2;}
12242 ;;
12243 *)
12244 ;;
12245 esac
b0cacab0 12246fi
29a5deed 12247
b0cacab0 12248
57aa50d4
TT
12249# See if we need a separate native compiler.
12250if test $cross_compiling = no; then
12251 BUILD_CC="$CC"
b0cacab0 12252
b0cacab0 12253else
57aa50d4
TT
12254 for ac_prog in gcc cc
12255do
12256 # Extract the first word of "$ac_prog", so it can be a program name with args.
12257set dummy $ac_prog; ac_word=$2
12258{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12259$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 12260if ${ac_cv_prog_BUILD_CC+:} false; then :
57aa50d4 12261 $as_echo_n "(cached) " >&6
b0cacab0 12262else
57aa50d4
TT
12263 if test -n "$BUILD_CC"; then
12264 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
12265else
12266as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12267for as_dir in $PATH
12268do
12269 IFS=$as_save_IFS
12270 test -z "$as_dir" && as_dir=.
12271 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 12272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
12273 ac_cv_prog_BUILD_CC="$ac_prog"
12274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12275 break 2
12276 fi
12277done
12278 done
12279IFS=$as_save_IFS
b0cacab0 12280
b0cacab0 12281fi
57aa50d4
TT
12282fi
12283BUILD_CC=$ac_cv_prog_BUILD_CC
12284if test -n "$BUILD_CC"; then
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
12286$as_echo "$BUILD_CC" >&6; }
07a0db15 12287else
57aa50d4
TT
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12289$as_echo "no" >&6; }
b0cacab0 12290fi
b0cacab0 12291
b0cacab0 12292
57aa50d4
TT
12293 test -n "$BUILD_CC" && break
12294done
b0cacab0 12295
57aa50d4 12296fi
74f2c4aa 12297for ac_header in dirent.h errno.h execinfo.h getopt.h malloc.h mntent.h paths.h semaphore.h setjmp.h signal.h stdarg.h stdint.h stdlib.h termios.h termio.h unistd.h utime.h attr/xattr.h linux/falloc.h linux/fd.h linux/major.h linux/loop.h net/if_dl.h netinet/in.h sys/acl.h sys/disklabel.h sys/disk.h sys/file.h sys/ioctl.h sys/key.h sys/mkdev.h sys/mman.h sys/mount.h sys/prctl.h sys/resource.h sys/select.h sys/socket.h sys/sockio.h sys/stat.h sys/syscall.h sys/sysctl.h sys/sysmacros.h sys/time.h sys/types.h sys/un.h sys/wait.h
57aa50d4
TT
12298do :
12299 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12300ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
d6a4bcb5 12301if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
57aa50d4
TT
12302 cat >>confdefs.h <<_ACEOF
12303#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
b0cacab0 12304_ACEOF
b0cacab0 12305
b0cacab0 12306fi
e1052144 12307
b0cacab0 12308done
93636bde 12309
57aa50d4
TT
12310for ac_header in net/if.h
12311do :
12312 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
12313#if HAVE_SYS_TYPES_H
12314#include <sys/types.h>
12315#endif
12316#if HAVE_SYS_SOCKET
12317#include <sys/socket.h>
12318#endif
29a5deed 12319
57aa50d4 12320"
d6a4bcb5 12321if test "x$ac_cv_header_net_if_h" = xyes; then :
57aa50d4
TT
12322 cat >>confdefs.h <<_ACEOF
12323#define HAVE_NET_IF_H 1
b0cacab0 12324_ACEOF
b0cacab0 12325
b0cacab0 12326fi
e1052144 12327
b0cacab0 12328done
b0cacab0 12329
57aa50d4
TT
12330for ac_func in vprintf
12331do :
12332 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
d6a4bcb5 12333if test "x$ac_cv_func_vprintf" = xyes; then :
57aa50d4
TT
12334 cat >>confdefs.h <<_ACEOF
12335#define HAVE_VPRINTF 1
b0cacab0 12336_ACEOF
b0cacab0 12337
57aa50d4 12338ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
d6a4bcb5 12339if test "x$ac_cv_func__doprnt" = xyes; then :
b0cacab0 12340
57aa50d4 12341$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
b0cacab0 12342
50e1e10f 12343fi
29a5deed 12344
57aa50d4
TT
12345fi
12346done
29a5deed
TT
12347
12348
57aa50d4
TT
12349ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
12350"
d6a4bcb5 12351if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
d1154eb4
TT
12352
12353$as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
50e1e10f 12354
2873927d
TT
12355fi
12356
12357ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
12358if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
12359
12360cat >>confdefs.h <<_ACEOF
12361#define HAVE_STRUCT_STAT_ST_ATIM 1
12362_ACEOF
12363
12364
b0cacab0 12365fi
93636bde 12366
57aa50d4
TT
12367ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
12368"
d6a4bcb5 12369if test "x$ac_cv_type_ssize_t" = xyes; then :
d1154eb4
TT
12370
12371$as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
b0cacab0 12372
57aa50d4 12373fi
b0cacab0 12374
57aa50d4
TT
12375ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
12376"
d6a4bcb5 12377if test "x$ac_cv_have_decl_llseek" = xyes; then :
d1154eb4
TT
12378
12379$as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
b0cacab0 12380
b0cacab0 12381fi
e1052144 12382
57aa50d4
TT
12383ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
12384 #define _LARGEFILE64_SOURCE
12385 #include <unistd.h>
12386"
d6a4bcb5 12387if test "x$ac_cv_have_decl_lseek64" = xyes; then :
d1154eb4
TT
12388
12389$as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
b0cacab0 12390
b0cacab0 12391fi
b0cacab0 12392
57aa50d4
TT
12393# The cast to long int works around a bug in the HP C Compiler
12394# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12395# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12396# This bug is HP SR number 8606223364.
12397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12398$as_echo_n "checking size of short... " >&6; }
d6a4bcb5 12399if ${ac_cv_sizeof_short+:} false; then :
57aa50d4 12400 $as_echo_n "(cached) " >&6
07a0db15 12401else
57aa50d4 12402 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
b0cacab0 12403
b0cacab0 12404else
57aa50d4
TT
12405 if test "$ac_cv_type_short" = yes; then
12406 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12407$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d6a4bcb5
TB
12408as_fn_error 77 "cannot compute sizeof (short)
12409See \`config.log' for more details" "$LINENO" 5; }
57aa50d4
TT
12410 else
12411 ac_cv_sizeof_short=0
12412 fi
07a0db15 12413fi
b0cacab0 12414
b0cacab0 12415fi
57aa50d4
TT
12416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12417$as_echo "$ac_cv_sizeof_short" >&6; }
e1052144 12418
93636bde 12419
57aa50d4
TT
12420
12421cat >>confdefs.h <<_ACEOF
12422#define SIZEOF_SHORT $ac_cv_sizeof_short
b0cacab0 12423_ACEOF
57aa50d4
TT
12424
12425
12426# The cast to long int works around a bug in the HP C Compiler
12427# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12428# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12429# This bug is HP SR number 8606223364.
12430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12431$as_echo_n "checking size of int... " >&6; }
d6a4bcb5 12432if ${ac_cv_sizeof_int+:} false; then :
57aa50d4 12433 $as_echo_n "(cached) " >&6
07a0db15 12434else
57aa50d4 12435 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
93636bde 12436
57aa50d4
TT
12437else
12438 if test "$ac_cv_type_int" = yes; then
12439 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12440$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d6a4bcb5
TB
12441as_fn_error 77 "cannot compute sizeof (int)
12442See \`config.log' for more details" "$LINENO" 5; }
57aa50d4
TT
12443 else
12444 ac_cv_sizeof_int=0
12445 fi
07a0db15 12446fi
e1052144 12447
b0cacab0 12448fi
57aa50d4
TT
12449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12450$as_echo "$ac_cv_sizeof_int" >&6; }
e1052144 12451
93636bde 12452
57aa50d4
TT
12453
12454cat >>confdefs.h <<_ACEOF
12455#define SIZEOF_INT $ac_cv_sizeof_int
b0cacab0 12456_ACEOF
b0cacab0 12457
e1052144 12458
57aa50d4
TT
12459# The cast to long int works around a bug in the HP C Compiler
12460# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12461# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12462# This bug is HP SR number 8606223364.
12463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12464$as_echo_n "checking size of long... " >&6; }
d6a4bcb5 12465if ${ac_cv_sizeof_long+:} false; then :
57aa50d4
TT
12466 $as_echo_n "(cached) " >&6
12467else
12468 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
12469
12470else
12471 if test "$ac_cv_type_long" = yes; then
12472 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39fd3d4f 12473$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d6a4bcb5
TB
12474as_fn_error 77 "cannot compute sizeof (long)
12475See \`config.log' for more details" "$LINENO" 5; }
29a5deed 12476 else
57aa50d4
TT
12477 ac_cv_sizeof_long=0
12478 fi
12479fi
39fd3d4f 12480
57aa50d4
TT
12481fi
12482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12483$as_echo "$ac_cv_sizeof_long" >&6; }
39fd3d4f 12484
57aa50d4
TT
12485
12486
12487cat >>confdefs.h <<_ACEOF
12488#define SIZEOF_LONG $ac_cv_sizeof_long
39fd3d4f 12489_ACEOF
57aa50d4
TT
12490
12491
12492# The cast to long int works around a bug in the HP C Compiler
12493# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12494# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12495# This bug is HP SR number 8606223364.
12496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12497$as_echo_n "checking size of long long... " >&6; }
d6a4bcb5 12498if ${ac_cv_sizeof_long_long+:} false; then :
57aa50d4 12499 $as_echo_n "(cached) " >&6
39fd3d4f 12500else
57aa50d4 12501 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
39fd3d4f 12502
57aa50d4
TT
12503else
12504 if test "$ac_cv_type_long_long" = yes; then
12505 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39fd3d4f 12506$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d6a4bcb5
TB
12507as_fn_error 77 "cannot compute sizeof (long long)
12508See \`config.log' for more details" "$LINENO" 5; }
39fd3d4f
SJR
12509 else
12510 ac_cv_sizeof_long_long=0
12511 fi
12512fi
57aa50d4 12513
39fd3d4f 12514fi
57aa50d4 12515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
39fd3d4f
SJR
12516$as_echo "$ac_cv_sizeof_long_long" >&6; }
12517
12518
12519
12520cat >>confdefs.h <<_ACEOF
12521#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12522_ACEOF
12523
12524
cc68e8a6
TT
12525# The cast to long int works around a bug in the HP C Compiler
12526# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12527# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12528# This bug is HP SR number 8606223364.
12529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
12530$as_echo_n "checking size of off_t... " >&6; }
12531if ${ac_cv_sizeof_off_t+:} false; then :
12532 $as_echo_n "(cached) " >&6
12533else
12534 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
12535
12536else
12537 if test "$ac_cv_type_off_t" = yes; then
12538 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12539$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12540as_fn_error 77 "cannot compute sizeof (off_t)
12541See \`config.log' for more details" "$LINENO" 5; }
12542 else
12543 ac_cv_sizeof_off_t=0
12544 fi
12545fi
12546
12547fi
12548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
12549$as_echo "$ac_cv_sizeof_off_t" >&6; }
12550
12551
12552
12553cat >>confdefs.h <<_ACEOF
12554#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12555_ACEOF
12556
12557
39fd3d4f
SJR
12558SIZEOF_SHORT=$ac_cv_sizeof_short
12559SIZEOF_INT=$ac_cv_sizeof_int
12560SIZEOF_LONG=$ac_cv_sizeof_long
12561SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
cc68e8a6
TT
12562SIZEOF_OFF_T=$ac_cv_sizeof_off_t
12563
39fd3d4f
SJR
12564
12565
12566
12567
57aa50d4 12568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
39fd3d4f 12569$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
d6a4bcb5 12570if ${ac_cv_c_bigendian+:} false; then :
39fd3d4f
SJR
12571 $as_echo_n "(cached) " >&6
12572else
12573 ac_cv_c_bigendian=unknown
12574 # See if we're dealing with a universal compiler.
57aa50d4 12575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39fd3d4f
SJR
12576/* end confdefs.h. */
12577#ifndef __APPLE_CC__
12578 not a universal capable compiler
12579 #endif
12580 typedef int dummy;
12581
12582_ACEOF
57aa50d4 12583if ac_fn_c_try_compile "$LINENO"; then :
39fd3d4f
SJR
12584
12585 # Check for potential -arch flags. It is not universal unless
57aa50d4
TT
12586 # there are at least two -arch flags with different values.
12587 ac_arch=
12588 ac_prev=
12589 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12590 if test -n "$ac_prev"; then
12591 case $ac_word in
12592 i?86 | x86_64 | ppc | ppc64)
12593 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12594 ac_arch=$ac_word
12595 else
12596 ac_cv_c_bigendian=universal
12597 break
12598 fi
12599 ;;
12600 esac
12601 ac_prev=
12602 elif test "x$ac_word" = "x-arch"; then
12603 ac_prev=arch
12604 fi
12605 done
39fd3d4f 12606fi
39fd3d4f
SJR
12607rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12608 if test $ac_cv_c_bigendian = unknown; then
12609 # See if sys/param.h defines the BYTE_ORDER macro.
57aa50d4 12610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39fd3d4f
SJR
12611/* end confdefs.h. */
12612#include <sys/types.h>
12613 #include <sys/param.h>
12614
12615int
12616main ()
12617{
12618#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12619 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12620 && LITTLE_ENDIAN)
12621 bogus endian macros
12622 #endif
12623
12624 ;
12625 return 0;
12626}
12627_ACEOF
57aa50d4 12628if ac_fn_c_try_compile "$LINENO"; then :
39fd3d4f 12629 # It does; now see whether it defined to BIG_ENDIAN or not.
57aa50d4 12630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39fd3d4f
SJR
12631/* end confdefs.h. */
12632#include <sys/types.h>
12633 #include <sys/param.h>
12634
b0cacab0
TT
12635int
12636main ()
07a0db15 12637{
39fd3d4f
SJR
12638#if BYTE_ORDER != BIG_ENDIAN
12639 not big endian
12640 #endif
b0cacab0
TT
12641
12642 ;
12643 return 0;
07a0db15 12644}
b0cacab0 12645_ACEOF
57aa50d4 12646if ac_fn_c_try_compile "$LINENO"; then :
39fd3d4f 12647 ac_cv_c_bigendian=yes
b0cacab0 12648else
57aa50d4 12649 ac_cv_c_bigendian=no
fc6d9d51 12650fi
39fd3d4f 12651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39fd3d4f 12652fi
39fd3d4f
SJR
12653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12654 fi
12655 if test $ac_cv_c_bigendian = unknown; then
12656 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
57aa50d4 12657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 12658/* end confdefs.h. */
39fd3d4f 12659#include <limits.h>
877eb6d9 12660
b0cacab0
TT
12661int
12662main ()
12663{
39fd3d4f
SJR
12664#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12665 bogus endian macros
12666 #endif
b0cacab0
TT
12667
12668 ;
12669 return 0;
12670}
b0cacab0 12671_ACEOF
57aa50d4
TT
12672if ac_fn_c_try_compile "$LINENO"; then :
12673 # It does; now see whether it defined to _BIG_ENDIAN or not.
12674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 12675/* end confdefs.h. */
39fd3d4f 12676#include <limits.h>
877eb6d9 12677
b0cacab0
TT
12678int
12679main ()
12680{
39fd3d4f
SJR
12681#ifndef _BIG_ENDIAN
12682 not big endian
12683 #endif
b0cacab0
TT
12684
12685 ;
12686 return 0;
12687}
12688_ACEOF
57aa50d4 12689if ac_fn_c_try_compile "$LINENO"; then :
877eb6d9
TT
12690 ac_cv_c_bigendian=yes
12691else
57aa50d4 12692 ac_cv_c_bigendian=no
877eb6d9 12693fi
e1052144 12694rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39fd3d4f 12695fi
39fd3d4f
SJR
12696rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12697 fi
12698 if test $ac_cv_c_bigendian = unknown; then
12699 # Compile a test program.
57aa50d4 12700 if test "$cross_compiling" = yes; then :
39fd3d4f 12701 # Try to guess by grepping values from an object file.
57aa50d4 12702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 12703/* end confdefs.h. */
39fd3d4f
SJR
12704short int ascii_mm[] =
12705 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12706 short int ascii_ii[] =
12707 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12708 int use_ascii (int i) {
12709 return ascii_mm[i] + ascii_ii[i];
12710 }
12711 short int ebcdic_ii[] =
12712 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12713 short int ebcdic_mm[] =
12714 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12715 int use_ebcdic (int i) {
12716 return ebcdic_mm[i] + ebcdic_ii[i];
12717 }
12718 extern int foo;
12719
b0cacab0
TT
12720int
12721main ()
12722{
39fd3d4f 12723return use_ascii (foo) == use_ebcdic (foo);
b0cacab0
TT
12724 ;
12725 return 0;
12726}
12727_ACEOF
57aa50d4 12728if ac_fn_c_try_compile "$LINENO"; then :
39fd3d4f
SJR
12729 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12730 ac_cv_c_bigendian=yes
12731 fi
12732 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12733 if test "$ac_cv_c_bigendian" = unknown; then
12734 ac_cv_c_bigendian=no
12735 else
12736 # finding both strings is unlikely to happen, but who knows?
12737 ac_cv_c_bigendian=unknown
12738 fi
12739 fi
b0cacab0 12740fi
e1052144 12741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
877eb6d9 12742else
57aa50d4 12743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 12744/* end confdefs.h. */
e1052144 12745$ac_includes_default
b0cacab0
TT
12746int
12747main ()
12748{
e1052144 12749
39fd3d4f
SJR
12750 /* Are we little or big endian? From Harbison&Steele. */
12751 union
12752 {
12753 long int l;
12754 char c[sizeof (long int)];
12755 } u;
12756 u.l = 1;
12757 return u.c[sizeof (long int) - 1] == 1;
e1052144
TT
12758
12759 ;
12760 return 0;
877eb6d9 12761}
b0cacab0 12762_ACEOF
57aa50d4 12763if ac_fn_c_try_run "$LINENO"; then :
877eb6d9
TT
12764 ac_cv_c_bigendian=no
12765else
57aa50d4 12766 ac_cv_c_bigendian=yes
877eb6d9 12767fi
57aa50d4
TT
12768rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12769 conftest.$ac_objext conftest.beam conftest.$ac_ext
877eb6d9 12770fi
e1052144 12771
39fd3d4f 12772 fi
877eb6d9 12773fi
57aa50d4 12774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
39fd3d4f
SJR
12775$as_echo "$ac_cv_c_bigendian" >&6; }
12776 case $ac_cv_c_bigendian in #(
12777 yes)
57aa50d4 12778 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
39fd3d4f
SJR
12779;; #(
12780 no)
12781 ;; #(
12782 universal)
07a0db15 12783
57aa50d4 12784$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
39fd3d4f
SJR
12785
12786 ;; #(
12787 *)
d6a4bcb5 12788 as_fn_error $? "unknown endianness
57aa50d4 12789 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
39fd3d4f 12790 esac
877eb6d9 12791
91f04685
CQ
12792if test $cross_compiling = no; then
12793 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12794else
12795 CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12796fi
4ea7ea00
TT
12797ASM_TYPES_HEADER=./asm_types.h
12798
488c75a6
TT
12799echo "/* These defines are needed for the public ext2fs.h header file */" \
12800 > public_config.h
12801if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
12802 uniq tmp_config.$$ >> public_config.h
12803else
12804 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
12805fi
12806if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
12807 uniq tmp_config.$$ >> public_config.h
12808else
12809 echo "#undef WORDS_BIGENDIAN" >> public_config.h
12810fi
12811rm -f tmp_config.$$
12812PUBLIC_CONFIG_HEADER=./public_config.h
12813
b0cacab0 12814for ac_header in inttypes.h
57aa50d4
TT
12815do :
12816 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
d6a4bcb5 12817if test "x$ac_cv_header_inttypes_h" = xyes; then :
b0cacab0 12818 cat >>confdefs.h <<_ACEOF
57aa50d4 12819#define HAVE_INTTYPES_H 1
b0cacab0
TT
12820_ACEOF
12821
12822fi
12823
0c193f82
TT
12824done
12825
57aa50d4 12826ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
d6a4bcb5 12827if test "x$ac_cv_type_intptr_t" = xyes; then :
b0cacab0
TT
12828
12829cat >>confdefs.h <<_ACEOF
d2ee56d8 12830#define HAVE_INTPTR_T 1
b0cacab0 12831_ACEOF
0c193f82 12832
d2ee56d8 12833
0c193f82
TT
12834fi
12835
57aa50d4 12836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
39fd3d4f 12837$as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
d6a4bcb5 12838if ${e2fsprogs_cv_struct_st_flags+:} false; then :
39fd3d4f 12839 $as_echo_n "(cached) " >&6
50e1e10f 12840else
57aa50d4 12841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 12842/* end confdefs.h. */
50e1e10f 12843#include <sys/stat.h>
b0cacab0
TT
12844int
12845main ()
12846{
50e1e10f 12847struct stat stat; stat.st_flags = 0;
b0cacab0
TT
12848 ;
12849 return 0;
12850}
12851_ACEOF
57aa50d4 12852if ac_fn_c_try_compile "$LINENO"; then :
50e1e10f
TT
12853 e2fsprogs_cv_struct_st_flags=yes
12854else
57aa50d4 12855 e2fsprogs_cv_struct_st_flags=no
50e1e10f 12856fi
e1052144 12857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50e1e10f
TT
12858fi
12859
57aa50d4 12860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
39fd3d4f 12861$as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
50e1e10f 12862if test "$e2fsprogs_cv_struct_st_flags" = yes; then
57aa50d4 12863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
39fd3d4f 12864$as_echo_n "checking whether st_flags field is useful... " >&6; }
d6a4bcb5 12865 if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then :
39fd3d4f 12866 $as_echo_n "(cached) " >&6
b0cacab0 12867else
57aa50d4 12868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 12869/* end confdefs.h. */
c03bc4e8 12870#include <sys/stat.h>
b0cacab0
TT
12871int
12872main ()
12873{
c03bc4e8 12874struct stat stat; stat.st_flags |= UF_IMMUTABLE;
b0cacab0
TT
12875 ;
12876 return 0;
12877}
57aa50d4
TT
12878_ACEOF
12879if ac_fn_c_try_compile "$LINENO"; then :
12880 e2fsprogs_cv_struct_st_flags_immut=yes
6c65d251 12881else
57aa50d4 12882 e2fsprogs_cv_struct_st_flags_immut=no
84ea6e70 12883fi
e1052144 12884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
84ea6e70 12885fi
e1052144 12886
57aa50d4
TT
12887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
12888$as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
12889 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
d1154eb4
TT
12890
12891$as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
57aa50d4
TT
12892
12893 fi
6c65d251 12894fi
57aa50d4
TT
12895ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
12896 #include <sys/socket.h>
12897"
d6a4bcb5 12898if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
b0cacab0
TT
12899
12900cat >>confdefs.h <<_ACEOF
84ea6e70 12901#define HAVE_SA_LEN 1
b0cacab0 12902_ACEOF
84ea6e70 12903
50e1e10f 12904fi
b0cacab0 12905
9ed8e5fe 12906if test -n "$BLKID_CMT"; then
57aa50d4 12907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
9ed8e5fe 12908$as_echo_n "checking for library containing blkid_probe_all... " >&6; }
d6a4bcb5 12909if ${ac_cv_search_blkid_probe_all+:} false; then :
9ed8e5fe
ES
12910 $as_echo_n "(cached) " >&6
12911else
12912 ac_func_search_save_LIBS=$LIBS
57aa50d4 12913cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9ed8e5fe
ES
12914/* end confdefs.h. */
12915
12916/* Override any GCC internal prototype to avoid an error.
12917 Use char because int might match the return type of a GCC
12918 builtin and then its argument prototype would still apply. */
12919#ifdef __cplusplus
12920extern "C"
12921#endif
12922char blkid_probe_all ();
12923int
12924main ()
12925{
12926return blkid_probe_all ();
12927 ;
12928 return 0;
12929}
12930_ACEOF
12931for ac_lib in '' blkid; do
12932 if test -z "$ac_lib"; then
12933 ac_res="none required"
12934 else
12935 ac_res=-l$ac_lib
12936 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12937 fi
57aa50d4 12938 if ac_fn_c_try_link "$LINENO"; then :
9ed8e5fe 12939 ac_cv_search_blkid_probe_all=$ac_res
9ed8e5fe 12940fi
57aa50d4
TT
12941rm -f core conftest.err conftest.$ac_objext \
12942 conftest$ac_exeext
d6a4bcb5 12943 if ${ac_cv_search_blkid_probe_all+:} false; then :
9ed8e5fe
ES
12944 break
12945fi
12946done
d6a4bcb5 12947if ${ac_cv_search_blkid_probe_all+:} false; then :
57aa50d4 12948
9ed8e5fe
ES
12949else
12950 ac_cv_search_blkid_probe_all=no
12951fi
12952rm conftest.$ac_ext
12953LIBS=$ac_func_search_save_LIBS
12954fi
57aa50d4 12955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
9ed8e5fe
ES
12956$as_echo "$ac_cv_search_blkid_probe_all" >&6; }
12957ac_res=$ac_cv_search_blkid_probe_all
57aa50d4 12958if test "$ac_res" != no; then :
9ed8e5fe
ES
12959 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12960
12961fi
12962
12963fi
74f2c4aa 12964for ac_func in __secure_getenv add_key backtrace blkid_probe_get_topology blkid_probe_enable_partitions chflags fadvise64 fallocate fallocate64 fchown fdatasync fstat64 ftruncate64 futimes getcwd getdtablesize getmntinfo getpwuid_r getrlimit getrusage jrand48 keyctl llistxattr llseek lseek64 mallinfo mbstowcs memalign mempcpy mmap msync nanosleep open64 pathconf posix_fadvise posix_fadvise64 posix_memalign prctl pread pwrite pread64 pwrite64 secure_getenv setmntent setresgid setresuid snprintf srandom stpcpy strcasecmp strdup strnlen strptime strtoull sync_file_range sysconf usleep utime utimes valloc
57aa50d4
TT
12965do :
12966 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12967ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
d6a4bcb5 12968if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
b0cacab0 12969 cat >>confdefs.h <<_ACEOF
39fd3d4f 12970#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
b0cacab0 12971_ACEOF
21c84b71 12972
50e1e10f
TT
12973fi
12974done
12975
fc6d9d51 12976SOCKET_LIB=''
57aa50d4 12977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
39fd3d4f 12978$as_echo_n "checking for socket in -lsocket... " >&6; }
d6a4bcb5 12979if ${ac_cv_lib_socket_socket+:} false; then :
39fd3d4f 12980 $as_echo_n "(cached) " >&6
50e1e10f 12981else
b0cacab0 12982 ac_check_lib_save_LIBS=$LIBS
fc6d9d51 12983LIBS="-lsocket $LIBS"
57aa50d4 12984cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 12985/* end confdefs.h. */
93636bde 12986
e1052144
TT
12987/* Override any GCC internal prototype to avoid an error.
12988 Use char because int might match the return type of a GCC
12989 builtin and then its argument prototype would still apply. */
b0cacab0
TT
12990#ifdef __cplusplus
12991extern "C"
12992#endif
b0cacab0
TT
12993char socket ();
12994int
12995main ()
12996{
e1052144 12997return socket ();
b0cacab0
TT
12998 ;
12999 return 0;
13000}
13001_ACEOF
57aa50d4 13002if ac_fn_c_try_link "$LINENO"; then :
b0cacab0
TT
13003 ac_cv_lib_socket_socket=yes
13004else
57aa50d4 13005 ac_cv_lib_socket_socket=no
b0cacab0 13006fi
57aa50d4
TT
13007rm -f core conftest.err conftest.$ac_objext \
13008 conftest$ac_exeext conftest.$ac_ext
b0cacab0
TT
13009LIBS=$ac_check_lib_save_LIBS
13010fi
57aa50d4 13011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
39fd3d4f 13012$as_echo "$ac_cv_lib_socket_socket" >&6; }
d6a4bcb5 13013if test "x$ac_cv_lib_socket_socket" = xyes; then :
fc6d9d51 13014 SOCKET_LIB=-lsocket
50e1e10f 13015fi
fc6d9d51 13016
93636bde 13017
b291c11f
DW
13018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_file in -lmagic" >&5
13019$as_echo_n "checking for magic_file in -lmagic... " >&6; }
13020if ${ac_cv_lib_magic_magic_file+:} false; then :
13021 $as_echo_n "(cached) " >&6
13022else
13023 ac_check_lib_save_LIBS=$LIBS
13024LIBS="-lmagic $LIBS"
13025cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13026/* end confdefs.h. */
13027
13028/* Override any GCC internal prototype to avoid an error.
13029 Use char because int might match the return type of a GCC
13030 builtin and then its argument prototype would still apply. */
13031#ifdef __cplusplus
13032extern "C"
13033#endif
13034char magic_file ();
13035int
13036main ()
13037{
13038return magic_file ();
13039 ;
13040 return 0;
13041}
13042_ACEOF
13043if ac_fn_c_try_link "$LINENO"; then :
13044 ac_cv_lib_magic_magic_file=yes
13045else
13046 ac_cv_lib_magic_magic_file=no
13047fi
13048rm -f core conftest.err conftest.$ac_objext \
13049 conftest$ac_exeext conftest.$ac_ext
13050LIBS=$ac_check_lib_save_LIBS
13051fi
13052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_file" >&5
13053$as_echo "$ac_cv_lib_magic_magic_file" >&6; }
13054if test "x$ac_cv_lib_magic_magic_file" = xyes; then :
13055 MAGIC_LIB=-lmagic
13056for ac_header in magic.h
13057do :
13058 ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
13059if test "x$ac_cv_header_magic_h" = xyes; then :
13060 cat >>confdefs.h <<_ACEOF
13061#define HAVE_MAGIC_H 1
13062_ACEOF
13063
13064fi
13065
13066done
13067
13068fi
13069
d2e3c0dc
TT
13070if test "$ac_cv_lib_dl_dlopen" = yes ; then
13071 MAGIC_LIB=$DLOPEN_LIB
13072fi
b291c11f 13073
81cbf1ef
DW
13074FUSE_CMT=
13075FUSE_LIB=
13076# Check whether --enable-fuse2fs was given.
13077if test "${enable_fuse2fs+set}" = set; then :
13078 enableval=$enable_fuse2fs; if test "$enableval" = "no"
13079then
13080 FUSE_CMT="#"
13081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling fuse2fs" >&5
13082$as_echo "Disabling fuse2fs" >&6; }
13083else
13084 for ac_header in pthread.h fuse.h
13085do :
13086 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13087ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
13088#define FUSE_USE_VERSION 29
13089"
13090if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13091 cat >>confdefs.h <<_ACEOF
13092#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13093_ACEOF
13094
13095else
13096 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13097$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13098as_fn_error $? "Cannot find fuse2fs headers.
13099See \`config.log' for more details" "$LINENO" 5; }
13100fi
13101
13102done
13103
13104
13105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13106/* end confdefs.h. */
13107#define FUSE_USE_VERSION 29
13108#ifdef __linux__
13109#include <linux/fs.h>
13110#include <linux/falloc.h>
13111#include <linux/xattr.h>
13112#endif
13113
13114int
13115main ()
13116{
13117
13118 ;
13119 return 0;
13120}
13121_ACEOF
13122if ac_fn_c_try_cpp "$LINENO"; then :
13123
13124else
13125 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13126$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13127as_fn_error $? "Cannot find fuse2fs Linux headers.
13128See \`config.log' for more details" "$LINENO" 5; }
13129fi
13130rm -f conftest.err conftest.i conftest.$ac_ext
13131
13132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13133$as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
13134if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
13135 $as_echo_n "(cached) " >&6
13136else
13137 ac_check_lib_save_LIBS=$LIBS
13138LIBS="-losxfuse $LIBS"
13139cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13140/* end confdefs.h. */
13141
13142/* Override any GCC internal prototype to avoid an error.
13143 Use char because int might match the return type of a GCC
13144 builtin and then its argument prototype would still apply. */
13145#ifdef __cplusplus
13146extern "C"
13147#endif
13148char fuse_main ();
13149int
13150main ()
13151{
13152return fuse_main ();
13153 ;
13154 return 0;
13155}
13156_ACEOF
13157if ac_fn_c_try_link "$LINENO"; then :
13158 ac_cv_lib_osxfuse_fuse_main=yes
13159else
13160 ac_cv_lib_osxfuse_fuse_main=no
13161fi
13162rm -f core conftest.err conftest.$ac_objext \
13163 conftest$ac_exeext conftest.$ac_ext
13164LIBS=$ac_check_lib_save_LIBS
13165fi
13166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13167$as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13168if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
13169 FUSE_LIB=-losxfuse
13170else
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13172$as_echo_n "checking for fuse_main in -lfuse... " >&6; }
13173if ${ac_cv_lib_fuse_fuse_main+:} false; then :
13174 $as_echo_n "(cached) " >&6
13175else
13176 ac_check_lib_save_LIBS=$LIBS
13177LIBS="-lfuse $LIBS"
13178cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13179/* end confdefs.h. */
13180
13181/* Override any GCC internal prototype to avoid an error.
13182 Use char because int might match the return type of a GCC
13183 builtin and then its argument prototype would still apply. */
13184#ifdef __cplusplus
13185extern "C"
13186#endif
13187char fuse_main ();
13188int
13189main ()
13190{
13191return fuse_main ();
13192 ;
13193 return 0;
13194}
13195_ACEOF
13196if ac_fn_c_try_link "$LINENO"; then :
13197 ac_cv_lib_fuse_fuse_main=yes
13198else
13199 ac_cv_lib_fuse_fuse_main=no
13200fi
13201rm -f core conftest.err conftest.$ac_objext \
13202 conftest$ac_exeext conftest.$ac_ext
13203LIBS=$ac_check_lib_save_LIBS
13204fi
13205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13206$as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
13207if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
13208 FUSE_LIB=-lfuse
13209else
13210 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13211$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13212as_fn_error $? "Cannot find fuse library.
13213See \`config.log' for more details" "$LINENO" 5; }
13214fi
13215
13216fi
13217
13218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs" >&5
13219$as_echo "Enabling fuse2fs" >&6; }
13220fi
13221
13222else
13223 for ac_header in pthread.h fuse.h
13224do :
13225 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13226ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
13227#define FUSE_USE_VERSION 29
13228#ifdef __linux__
13229# include <linux/fs.h>
13230# include <linux/falloc.h>
13231# include <linux/xattr.h>
13232#endif
13233"
13234if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13235 cat >>confdefs.h <<_ACEOF
13236#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13237_ACEOF
13238
13239else
13240 FUSE_CMT="#"
13241fi
13242
13243done
13244
13245if test -z "$FUSE_CMT"
13246then
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13248$as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
13249if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
13250 $as_echo_n "(cached) " >&6
13251else
13252 ac_check_lib_save_LIBS=$LIBS
13253LIBS="-losxfuse $LIBS"
13254cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13255/* end confdefs.h. */
13256
13257/* Override any GCC internal prototype to avoid an error.
13258 Use char because int might match the return type of a GCC
13259 builtin and then its argument prototype would still apply. */
13260#ifdef __cplusplus
13261extern "C"
13262#endif
13263char fuse_main ();
13264int
13265main ()
13266{
13267return fuse_main ();
13268 ;
13269 return 0;
13270}
13271_ACEOF
13272if ac_fn_c_try_link "$LINENO"; then :
13273 ac_cv_lib_osxfuse_fuse_main=yes
13274else
13275 ac_cv_lib_osxfuse_fuse_main=no
13276fi
13277rm -f core conftest.err conftest.$ac_objext \
13278 conftest$ac_exeext conftest.$ac_ext
13279LIBS=$ac_check_lib_save_LIBS
13280fi
13281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13282$as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13283if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
13284 FUSE_LIB=-losxfuse
13285else
13286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13287$as_echo_n "checking for fuse_main in -lfuse... " >&6; }
13288if ${ac_cv_lib_fuse_fuse_main+:} false; then :
13289 $as_echo_n "(cached) " >&6
13290else
13291 ac_check_lib_save_LIBS=$LIBS
13292LIBS="-lfuse $LIBS"
13293cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13294/* end confdefs.h. */
13295
13296/* Override any GCC internal prototype to avoid an error.
13297 Use char because int might match the return type of a GCC
13298 builtin and then its argument prototype would still apply. */
13299#ifdef __cplusplus
13300extern "C"
13301#endif
13302char fuse_main ();
13303int
13304main ()
13305{
13306return fuse_main ();
13307 ;
13308 return 0;
13309}
13310_ACEOF
13311if ac_fn_c_try_link "$LINENO"; then :
13312 ac_cv_lib_fuse_fuse_main=yes
13313else
13314 ac_cv_lib_fuse_fuse_main=no
13315fi
13316rm -f core conftest.err conftest.$ac_objext \
13317 conftest$ac_exeext conftest.$ac_ext
13318LIBS=$ac_check_lib_save_LIBS
13319fi
13320{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13321$as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
13322if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
13323 FUSE_LIB=-lfuse
13324else
13325 FUSE_CMT="#"
13326fi
13327
13328fi
13329
13330fi
13331if test -z "$FUSE_CMT"
13332then
13333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs by default." >&5
13334$as_echo "Enabling fuse2fs by default." >&6; }
13335fi
13336
13337fi
13338
13339
13340
57aa50d4 13341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
39fd3d4f 13342$as_echo_n "checking for optreset... " >&6; }
d6a4bcb5 13343if ${ac_cv_have_optreset+:} false; then :
39fd3d4f 13344 $as_echo_n "(cached) " >&6
d7f45af8 13345else
57aa50d4 13346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7f45af8 13347/* end confdefs.h. */
57aa50d4
TT
13348#include <unistd.h>
13349
13350_ACEOF
13351if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13352 $EGREP "optreset" >/dev/null 2>&1; then :
13353 ac_cv_have_optreset=yes
d7f45af8 13354else
57aa50d4
TT
13355 ac_cv_have_optreset=no
13356fi
13357rm -f conftest*
d7f45af8 13358
d7f45af8 13359fi
57aa50d4
TT
13360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
13361$as_echo "$ac_cv_have_optreset" >&6; }
13362if test $ac_cv_have_optreset = yes; then
d1154eb4
TT
13363
13364$as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
d7f45af8 13365
d7f45af8 13366fi
d1154eb4 13367
57aa50d4
TT
13368SEM_INIT_LIB=''
13369ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
d6a4bcb5 13370if test "x$ac_cv_func_sem_init" = xyes; then :
57aa50d4 13371
d7f45af8 13372else
57aa50d4 13373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
39fd3d4f 13374$as_echo_n "checking for sem_init in -lpthread... " >&6; }
d6a4bcb5 13375if ${ac_cv_lib_pthread_sem_init+:} false; then :
39fd3d4f 13376 $as_echo_n "(cached) " >&6
d7f45af8
TT
13377else
13378 ac_check_lib_save_LIBS=$LIBS
13379LIBS="-lpthread $LIBS"
57aa50d4 13380cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7f45af8
TT
13381/* end confdefs.h. */
13382
13383/* Override any GCC internal prototype to avoid an error.
13384 Use char because int might match the return type of a GCC
13385 builtin and then its argument prototype would still apply. */
13386#ifdef __cplusplus
13387extern "C"
13388#endif
13389char sem_init ();
13390int
13391main ()
13392{
13393return sem_init ();
13394 ;
13395 return 0;
13396}
13397_ACEOF
57aa50d4 13398if ac_fn_c_try_link "$LINENO"; then :
d7f45af8
TT
13399 ac_cv_lib_pthread_sem_init=yes
13400else
57aa50d4 13401 ac_cv_lib_pthread_sem_init=no
d7f45af8 13402fi
57aa50d4
TT
13403rm -f core conftest.err conftest.$ac_objext \
13404 conftest$ac_exeext conftest.$ac_ext
d7f45af8
TT
13405LIBS=$ac_check_lib_save_LIBS
13406fi
57aa50d4 13407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
39fd3d4f 13408$as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
d6a4bcb5 13409if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
57aa50d4 13410 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
d7f45af8
TT
13411
13412 SEM_INIT_LIB=-lpthread
13413else
57aa50d4 13414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
39fd3d4f 13415$as_echo_n "checking for sem_init in -lrt... " >&6; }
d6a4bcb5 13416if ${ac_cv_lib_rt_sem_init+:} false; then :
39fd3d4f 13417 $as_echo_n "(cached) " >&6
d7f45af8
TT
13418else
13419 ac_check_lib_save_LIBS=$LIBS
13420LIBS="-lrt $LIBS"
57aa50d4 13421cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7f45af8
TT
13422/* end confdefs.h. */
13423
13424/* Override any GCC internal prototype to avoid an error.
13425 Use char because int might match the return type of a GCC
13426 builtin and then its argument prototype would still apply. */
13427#ifdef __cplusplus
13428extern "C"
13429#endif
13430char sem_init ();
13431int
13432main ()
13433{
13434return sem_init ();
13435 ;
13436 return 0;
13437}
13438_ACEOF
57aa50d4 13439if ac_fn_c_try_link "$LINENO"; then :
d7f45af8
TT
13440 ac_cv_lib_rt_sem_init=yes
13441else
57aa50d4 13442 ac_cv_lib_rt_sem_init=no
d7f45af8 13443fi
57aa50d4
TT
13444rm -f core conftest.err conftest.$ac_objext \
13445 conftest$ac_exeext conftest.$ac_ext
d7f45af8
TT
13446LIBS=$ac_check_lib_save_LIBS
13447fi
57aa50d4 13448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
39fd3d4f 13449$as_echo "$ac_cv_lib_rt_sem_init" >&6; }
d6a4bcb5 13450if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
57aa50d4 13451 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
d7f45af8
TT
13452
13453 SEM_INIT_LIB=-lrt
13454else
57aa50d4 13455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
39fd3d4f 13456$as_echo_n "checking for sem_init in -lposix4... " >&6; }
d6a4bcb5 13457if ${ac_cv_lib_posix4_sem_init+:} false; then :
39fd3d4f 13458 $as_echo_n "(cached) " >&6
d7f45af8
TT
13459else
13460 ac_check_lib_save_LIBS=$LIBS
13461LIBS="-lposix4 $LIBS"
57aa50d4 13462cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7f45af8
TT
13463/* end confdefs.h. */
13464
13465/* Override any GCC internal prototype to avoid an error.
13466 Use char because int might match the return type of a GCC
13467 builtin and then its argument prototype would still apply. */
13468#ifdef __cplusplus
13469extern "C"
13470#endif
13471char sem_init ();
13472int
13473main ()
13474{
13475return sem_init ();
13476 ;
13477 return 0;
13478}
13479_ACEOF
57aa50d4 13480if ac_fn_c_try_link "$LINENO"; then :
d7f45af8
TT
13481 ac_cv_lib_posix4_sem_init=yes
13482else
57aa50d4 13483 ac_cv_lib_posix4_sem_init=no
d7f45af8 13484fi
57aa50d4
TT
13485rm -f core conftest.err conftest.$ac_objext \
13486 conftest$ac_exeext conftest.$ac_ext
d7f45af8
TT
13487LIBS=$ac_check_lib_save_LIBS
13488fi
57aa50d4 13489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
39fd3d4f 13490$as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
d6a4bcb5 13491if test "x$ac_cv_lib_posix4_sem_init" = xyes; then :
57aa50d4 13492 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
d7f45af8
TT
13493
13494 SEM_INIT_LIB=-lposix4
13495fi
13496
13497fi
13498
13499fi
13500
13501fi
13502
57aa50d4 13503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
39fd3d4f 13504$as_echo_n "checking for unified diff option... " >&6; }
27f991b0 13505if diff -u $0 $0 > /dev/null 2>&1 ; then
e54635de
TT
13506 UNI_DIFF_OPTS=-u
13507else
13508 UNI_DIFF_OPTS=-c
13509fi
57aa50d4 13510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
39fd3d4f 13511$as_echo "$UNI_DIFF_OPTS" >&6; }
e54635de 13512
8f3f29d3
TT
13513case "$host_os" in
13514linux*)
d1154eb4
TT
13515
13516$as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
50e1e10f 13517
8f3f29d3
TT
13518 ;;
13519esac
e6f2bda3 13520LINUX_CMT="#"
fff45483
TT
13521CYGWIN_CMT="#"
13522UNIX_CMT=
e6f2bda3
TT
13523case "$host_os" in
13524linux*)
13525 LINUX_CMT=
fff45483
TT
13526 ;;
13527cygwin)
13528 CYGWIN_CMT=
13529 UNIX_CMT="#"
e6f2bda3
TT
13530 ;;
13531esac
13532
93636bde
TT
13533
13534
50e1e10f 13535case "$host_os" in
93636bde 13536linux* | gnu* | k*bsd*-gnu)
a4b2d3ce
TT
13537 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
13538 root_prefix="";
57aa50d4 13539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
39fd3d4f 13540$as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
fc6d9d51
TT
13541 fi
13542 ;;
13543esac
fc6d9d51 13544case "$host_os" in
93636bde 13545linux* | gnu* | k*bsd*-gnu)
fc6d9d51 13546 if test "$prefix" = NONE ; then
a4b2d3ce 13547 prefix="/usr";
57aa50d4 13548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
39fd3d4f 13549$as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
bff61a7a 13550 if test "$mandir" = '${prefix}/man' ; then
57aa50d4 13551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
39fd3d4f 13552$as_echo "...and mandir defaults to /usr/share/man" >&6; }
bff61a7a
TT
13553 mandir=/usr/share/man
13554 fi
50e1e10f
TT
13555 fi
13556;;
13557esac
a4b2d3ce 13558if test "$root_prefix" = NONE ; then
ffe1991f 13559 if test "$prefix" = NONE ; then
a4b2d3ce
TT
13560 root_prefix="$ac_default_prefix"
13561 else
13562 root_prefix="$prefix"
13563 fi
b5ffeade
TT
13564 root_bindir=$bindir
13565 root_sbindir=$sbindir
13566 root_libdir=$libdir
13567 root_sysconfdir=$sysconfdir
13568else
13569 root_bindir='${root_prefix}/bin'
13570 root_sbindir='${root_prefix}/sbin'
13571 root_libdir='${root_prefix}/lib'
13572 root_sysconfdir='${root_prefix}/etc'
a4b2d3ce 13573fi
c4ef11c5
TT
13574if test "$bindir" != '${exec_prefix}/bin'; then
13575 root_bindir=$bindir
57aa50d4 13576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
39fd3d4f 13577$as_echo "Setting root_bindir to $root_bindir" >&6; }
c4ef11c5
TT
13578fi
13579if test "$sbindir" != '${exec_prefix}/sbin'; then
13580 root_sbindir=$sbindir
57aa50d4 13581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
39fd3d4f 13582$as_echo "Setting root_sbindir to $root_sbindir" >&6; }
c4ef11c5
TT
13583fi
13584if test "$libdir" != '${exec_prefix}/lib'; then
13585 root_libdir=$libdir
57aa50d4 13586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
39fd3d4f 13587$as_echo "Setting root_libdir to $root_libdir" >&6; }
c4ef11c5
TT
13588fi
13589if test "$sysconfdir" != '${prefix}/etc'; then
13590 root_sysconfdir=$sysconfdir
57aa50d4 13591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
39fd3d4f 13592$as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
c4ef11c5 13593fi
a4b2d3ce 13594
93636bde
TT
13595
13596
13597
13598
55e00a25
TT
13599
13600# Check whether --with-multiarch was given.
13601if test "${with_multiarch+set}" = set; then :
d7fa4103
TT
13602 withval=$with_multiarch; if test "$withval" = "lib64"; then
13603 libdir=/usr/lib64
13604 root_libdir=/lib64
13605else
13606 libdir=$libdir/$withval
13607 root_libdir=$root_libdir/$withval
13608fi
55e00a25
TT
13609
13610fi
d3de1a71
TT
13611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
13612$as_echo_n "checking whether we can link with -static... " >&6; }
d6a4bcb5 13613if ${ac_cv_e2fsprogs_use_static+:} false; then :
39fd3d4f 13614 $as_echo_n "(cached) " >&6
ae851482
TT
13615else
13616 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static"
57aa50d4 13617cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 13618/* end confdefs.h. */
ae851482 13619#include <stdio.h>
b0cacab0
TT
13620int
13621main ()
13622{
ae851482 13623fflush(stdout);
b0cacab0
TT
13624 ;
13625 return 0;
13626}
13627_ACEOF
57aa50d4 13628if ac_fn_c_try_link "$LINENO"; then :
ae851482
TT
13629 ac_cv_e2fsprogs_use_static=yes
13630else
57aa50d4 13631 ac_cv_e2fsprogs_use_static=no
ae851482 13632fi
57aa50d4
TT
13633rm -f core conftest.err conftest.$ac_objext \
13634 conftest$ac_exeext conftest.$ac_ext
ae851482
TT
13635LDFLAGS=$SAVE_LDFLAGS
13636fi
50e1e10f 13637
defde784
TT
13638case "$host_os" in
13639solaris2.*)
b0cacab0 13640 ac_cv_e2fsprogs_use_static=no
defde784
TT
13641;;
13642esac
57aa50d4 13643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
39fd3d4f 13644$as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
74becf3c 13645LDFLAG_STATIC=
ae851482 13646if test $ac_cv_e2fsprogs_use_static = yes; then
50e1e10f 13647 LDFLAG_STATIC=-static
ae851482 13648fi
50e1e10f 13649
07a0db15
TT
13650case "$host_os" in
13651darwin*)
57aa50d4 13652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
39fd3d4f 13653$as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
d1154eb4
TT
13654
13655$as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
07a0db15
TT
13656
13657 ;;
13658esac
50e1e10f
TT
13659SS_DIR=`cd ${srcdir}/lib/ss; pwd`
13660ET_DIR=`cd ${srcdir}/lib/et; pwd`
13661
93636bde 13662
50e1e10f
TT
13663if test "$cross_compiling" = yes ; then
13664 DO_TEST_SUITE=
13665else
13666 DO_TEST_SUITE=check
13667fi
13668
d1154eb4
TT
13669INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
13670if test -n "$CPPFLAGS" ; then
13671 INCLUDES="$INCLUDES $CPPFLAGS"
13672fi
c6f35b8a 13673if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
d1154eb4 13674 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
c6f35b8a 13675fi
6c59a665
TT
13676if test -n "$WITH_DIET_LIBC" ; then
13677 INCLUDES="$INCLUDES -D_REENTRANT"
13678fi
c6f35b8a 13679
5b5bd2c2
TT
13680
13681 MKINSTALLDIRS=
13682 if test -n "$ac_aux_dir"; then
13683 case "$ac_aux_dir" in
13684 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
13685 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
13686 esac
13687 fi
13688 if test -z "$MKINSTALLDIRS"; then
13689 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
13690 fi
13691
13692
dd947da2 13693if test $cross_compiling = no; then
2873927d 13694 BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
dd947da2 13695 BUILD_LDFLAGS="$LDFLAGS"
dd947da2
TT
13696fi
13697
13698
50e1e10f
TT
13699test -d lib || mkdir lib
13700test -d include || mkdir include
13701test -d include/linux || mkdir include/linux
defde784 13702test -d include/asm || mkdir include/asm
44dfb378
TT
13703if test -z "$UUID_CMT" ; then
13704 uuid_out_list="lib/uuid/Makefile lib/uuid/uuid.pc \
13705 lib/uuid/uuid_types.h"
13706fi
13707if test -z "$BLKID_CMT" ; then
13708 blkid_out_list="lib/blkid/Makefile lib/blkid/blkid.pc \
13709 lib/blkid/blkid_types.h"
13710fi
bff0cc95 13711for i in MCONFIG Makefile e2fsprogs.spec \
183c73b0 13712 util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
4ea7ea00
TT
13713 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
13714 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
f34af41b 13715 $uuid_out_list $blkid_out_list lib/support/Makefile \
44dfb378 13716 lib/ss/ss.pc lib/et/com_err.pc lib/e2p/e2p.pc lib/ext2fs/ext2fs.pc \
921f4ad5 13717 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
94ba8c75 13718 debugfs/Makefile tests/Makefile tests/progs/Makefile \
98a5ad61
MA
13719 resize/Makefile doc/Makefile intl/Makefile \
13720 intl/libgnuintl.h po/Makefile.in ; do
94ba8c75
TT
13721 if test -d `dirname ${srcdir}/$i` ; then
13722 outlist="$outlist $i"
13723 fi
13724done
e1052144
TT
13725ac_config_files="$ac_config_files $outlist"
13726
b0cacab0 13727cat >confcache <<\_ACEOF
50e1e10f
TT
13728# This file is a shell script that caches the results of configure
13729# tests run on this system so they can be shared between configure
b0cacab0
TT
13730# scripts and configure runs, see configure's option --config-cache.
13731# It is not useful on other systems. If it contains results you don't
13732# want to keep, you may remove or edit it.
50e1e10f 13733#
b0cacab0
TT
13734# config.status only pays attention to the cache file if you give it
13735# the --recheck option to rerun configure.
50e1e10f 13736#
b0cacab0
TT
13737# `ac_cv_env_foo' variables (set or unset) will be overridden when
13738# loading this file, other *unset* `ac_cv_foo' will be assigned the
13739# following values.
13740
13741_ACEOF
13742
21c84b71
TT
13743# The following way of writing the cache mishandles newlines in values,
13744# but we know of no workaround that is simple, portable, and efficient.
e1052144 13745# So, we kill variables containing newlines.
50e1e10f
TT
13746# Ultrix sh set writes to stderr and can't be redirected directly,
13747# and sets the high bit in the cache file unless we assign to the vars.
e1052144
TT
13748(
13749 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13750 eval ac_val=\$$ac_var
13751 case $ac_val in #(
13752 *${as_nl}*)
13753 case $ac_var in #(
57aa50d4 13754 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
39fd3d4f 13755$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
e1052144
TT
13756 esac
13757 case $ac_var in #(
13758 _ | IFS | as_nl) ;; #(
39fd3d4f 13759 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
57aa50d4 13760 *) { eval $ac_var=; unset $ac_var;} ;;
e1052144
TT
13761 esac ;;
13762 esac
13763 done
13764
b0cacab0 13765 (set) 2>&1 |
e1052144
TT
13766 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13767 *${as_nl}ac_space=\ *)
57aa50d4
TT
13768 # `set' does not quote correctly, so add quotes: double-quote
13769 # substitution turns \\\\ into \\, and sed turns \\ into \.
b0cacab0
TT
13770 sed -n \
13771 "s/'/'\\\\''/g;
13772 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
e1052144 13773 ;; #(
b0cacab0
TT
13774 *)
13775 # `set' quotes correctly as required by POSIX, so do not add quotes.
e1052144 13776 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b0cacab0 13777 ;;
e1052144
TT
13778 esac |
13779 sort
13780) |
b0cacab0 13781 sed '
e1052144 13782 /^ac_cv_env_/b end
b0cacab0 13783 t clear
e1052144 13784 :clear
b0cacab0
TT
13785 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13786 t end
e1052144
TT
13787 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13788 :end' >>confcache
13789if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13790 if test -w "$cache_file"; then
d6a4bcb5 13791 if test "x$cache_file" != "x/dev/null"; then
57aa50d4 13792 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
39fd3d4f 13793$as_echo "$as_me: updating cache $cache_file" >&6;}
d6a4bcb5
TB
13794 if test ! -f "$cache_file" || test -h "$cache_file"; then
13795 cat confcache >"$cache_file"
13796 else
13797 case $cache_file in #(
13798 */* | ?:*)
13799 mv -f confcache "$cache_file"$$ &&
13800 mv -f "$cache_file"$$ "$cache_file" ;; #(
13801 *)
13802 mv -f confcache "$cache_file" ;;
13803 esac
13804 fi
13805 fi
50e1e10f 13806 else
57aa50d4 13807 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
39fd3d4f 13808$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
50e1e10f
TT
13809 fi
13810fi
13811rm -f confcache
13812
50e1e10f
TT
13813test "x$prefix" = xNONE && prefix=$ac_default_prefix
13814# Let make expand exec_prefix.
13815test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13816
d1154eb4 13817DEFS=-DHAVE_CONFIG_H
b0cacab0
TT
13818
13819ac_libobjs=
13820ac_ltlibobjs=
d6a4bcb5 13821U=
b0cacab0
TT
13822for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13823 # 1. Remove the extension, and $U if already installed.
e1052144 13824 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
39fd3d4f 13825 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
e1052144
TT
13826 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13827 # will be set to the directory where LIBOBJS objects are built.
57aa50d4
TT
13828 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13829 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
b0cacab0
TT
13830done
13831LIBOBJS=$ac_libobjs
50e1e10f 13832
b0cacab0
TT
13833LTLIBOBJS=$ac_ltlibobjs
13834
13835
13836
39fd3d4f 13837
d6a4bcb5 13838: "${CONFIG_STATUS=./config.status}"
39fd3d4f 13839ac_write_fail=0
b0cacab0
TT
13840ac_clean_files_save=$ac_clean_files
13841ac_clean_files="$ac_clean_files $CONFIG_STATUS"
57aa50d4 13842{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
39fd3d4f 13843$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
57aa50d4
TT
13844as_write_fail=0
13845cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
b0cacab0
TT
13846#! $SHELL
13847# Generated by $as_me.
93636bde 13848# Run this file to recreate the current configuration.
93636bde 13849# Compiler output produced by configure, useful for debugging
b0cacab0 13850# configure, is in config.log if it exists.
07a0db15 13851
b0cacab0
TT
13852debug=false
13853ac_cs_recheck=false
13854ac_cs_silent=false
b0cacab0 13855
57aa50d4
TT
13856SHELL=\${CONFIG_SHELL-$SHELL}
13857export SHELL
13858_ASEOF
13859cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13860## -------------------- ##
13861## M4sh Initialization. ##
13862## -------------------- ##
b0cacab0 13863
29a5deed
TT
13864# Be more Bourne compatible
13865DUALCASE=1; export DUALCASE # for MKS sh
57aa50d4 13866if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
b0cacab0
TT
13867 emulate sh
13868 NULLCMD=:
39fd3d4f 13869 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b0cacab0
TT
13870 # is contrary to our usage. Disable this feature.
13871 alias -g '${1+"$@"}'='"$@"'
e1052144
TT
13872 setopt NO_GLOB_SUBST
13873else
57aa50d4
TT
13874 case `(set -o) 2>/dev/null` in #(
13875 *posix*) :
13876 set -o posix ;; #(
13877 *) :
13878 ;;
29a5deed 13879esac
b0cacab0 13880fi
29a5deed
TT
13881
13882
39fd3d4f
SJR
13883as_nl='
13884'
13885export as_nl
13886# Printing a long string crashes Solaris 7 /usr/bin/printf.
13887as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13888as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13889as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
57aa50d4
TT
13890# Prefer a ksh shell builtin over an external printf program on Solaris,
13891# but without wasting forks for bash or zsh.
13892if test -z "$BASH_VERSION$ZSH_VERSION" \
13893 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13894 as_echo='print -r --'
13895 as_echo_n='print -rn --'
13896elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
39fd3d4f
SJR
13897 as_echo='printf %s\n'
13898 as_echo_n='printf %s'
13899else
13900 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13901 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
13902 as_echo_n='/usr/ucb/echo -n'
e1052144 13903 else
39fd3d4f
SJR
13904 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13905 as_echo_n_body='eval
13906 arg=$1;
57aa50d4 13907 case $arg in #(
39fd3d4f
SJR
13908 *"$as_nl"*)
13909 expr "X$arg" : "X\\(.*\\)$as_nl";
13910 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13911 esac;
13912 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
13913 '
13914 export as_echo_n_body
13915 as_echo_n='sh -c $as_echo_n_body as_echo'
e1052144 13916 fi
39fd3d4f
SJR
13917 export as_echo_body
13918 as_echo='sh -c $as_echo_body as_echo'
13919fi
13920
13921# The user is always right.
13922if test "${PATH_SEPARATOR+set}" != set; then
13923 PATH_SEPARATOR=:
13924 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13925 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13926 PATH_SEPARATOR=';'
13927 }
e1052144
TT
13928fi
13929
b0cacab0 13930
e1052144
TT
13931# IFS
13932# We need space, tab and new line, in precisely that order. Quoting is
13933# there to prevent editors from complaining about space-tab.
13934# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13935# splitting by setting IFS to empty value.)
e1052144
TT
13936IFS=" "" $as_nl"
13937
13938# Find who we are. Look in the path if we contain no directory separator.
d6a4bcb5 13939as_myself=
57aa50d4 13940case $0 in #((
e1052144
TT
13941 *[\\/]* ) as_myself=$0 ;;
13942 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13943for as_dir in $PATH
13944do
13945 IFS=$as_save_IFS
13946 test -z "$as_dir" && as_dir=.
57aa50d4
TT
13947 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13948 done
e1052144
TT
13949IFS=$as_save_IFS
13950
13951 ;;
13952esac
13953# We did not find ourselves, most probably we were run as `sh COMMAND'
13954# in which case we are not to be found in the path.
13955if test "x$as_myself" = x; then
13956 as_myself=$0
13957fi
13958if test ! -f "$as_myself"; then
39fd3d4f 13959 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
57aa50d4 13960 exit 1
e1052144
TT
13961fi
13962
57aa50d4
TT
13963# Unset variables that we do not need and which cause bugs (e.g. in
13964# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13965# suppresses any "Segmentation fault" message there. '((' could
13966# trigger a bug in pdksh 5.2.14.
13967for as_var in BASH_ENV ENV MAIL MAILPATH
13968do eval test x\${$as_var+set} = xset \
13969 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
e1052144 13970done
b0cacab0
TT
13971PS1='$ '
13972PS2='> '
13973PS4='+ '
13974
13975# NLS nuisances.
39fd3d4f
SJR
13976LC_ALL=C
13977export LC_ALL
13978LANGUAGE=C
13979export LANGUAGE
b0cacab0 13980
57aa50d4
TT
13981# CDPATH.
13982(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13983
13984
d6a4bcb5
TB
13985# as_fn_error STATUS ERROR [LINENO LOG_FD]
13986# ----------------------------------------
57aa50d4
TT
13987# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13988# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d6a4bcb5 13989# script with STATUS, using 1 if that was 0.
57aa50d4
TT
13990as_fn_error ()
13991{
d6a4bcb5
TB
13992 as_status=$1; test $as_status -eq 0 && as_status=1
13993 if test "$4"; then
13994 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13995 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
57aa50d4 13996 fi
d6a4bcb5 13997 $as_echo "$as_me: error: $2" >&2
57aa50d4
TT
13998 as_fn_exit $as_status
13999} # as_fn_error
14000
14001
14002# as_fn_set_status STATUS
14003# -----------------------
14004# Set $? to STATUS, without forking.
14005as_fn_set_status ()
14006{
14007 return $1
14008} # as_fn_set_status
14009
14010# as_fn_exit STATUS
14011# -----------------
14012# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14013as_fn_exit ()
14014{
14015 set +e
14016 as_fn_set_status $1
14017 exit $1
14018} # as_fn_exit
14019
14020# as_fn_unset VAR
14021# ---------------
14022# Portably unset VAR.
14023as_fn_unset ()
14024{
14025 { eval $1=; unset $1;}
14026}
14027as_unset=as_fn_unset
14028# as_fn_append VAR VALUE
14029# ----------------------
14030# Append the text in VALUE to the end of the definition contained in VAR. Take
14031# advantage of any shell optimizations that allow amortized linear growth over
14032# repeated appends, instead of the typical quadratic growth present in naive
14033# implementations.
14034if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14035 eval 'as_fn_append ()
14036 {
14037 eval $1+=\$2
14038 }'
14039else
14040 as_fn_append ()
14041 {
14042 eval $1=\$$1\$2
14043 }
14044fi # as_fn_append
14045
14046# as_fn_arith ARG...
14047# ------------------
14048# Perform arithmetic evaluation on the ARGs, and store the result in the
14049# global $as_val. Take advantage of shells that can avoid forks. The arguments
14050# must be portable across $(()) and expr.
14051if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14052 eval 'as_fn_arith ()
14053 {
14054 as_val=$(( $* ))
14055 }'
14056else
14057 as_fn_arith ()
14058 {
14059 as_val=`expr "$@" || test $? -eq 1`
14060 }
14061fi # as_fn_arith
14062
14063
e1052144
TT
14064if expr a : '\(a\)' >/dev/null 2>&1 &&
14065 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b0cacab0
TT
14066 as_expr=expr
14067else
14068 as_expr=false
14069fi
14070
e1052144 14071if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b0cacab0
TT
14072 as_basename=basename
14073else
14074 as_basename=false
14075fi
14076
57aa50d4
TT
14077if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14078 as_dirname=dirname
14079else
14080 as_dirname=false
14081fi
b0cacab0 14082
e1052144 14083as_me=`$as_basename -- "$0" ||
b0cacab0
TT
14084$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14085 X"$0" : 'X\(//\)$' \| \
e1052144 14086 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
39fd3d4f 14087$as_echo X/"$0" |
e1052144
TT
14088 sed '/^.*\/\([^/][^/]*\)\/*$/{
14089 s//\1/
14090 q
14091 }
14092 /^X\/\(\/\/\)$/{
14093 s//\1/
14094 q
14095 }
14096 /^X\/\(\/\).*/{
14097 s//\1/
14098 q
14099 }
14100 s/.*/./; q'`
b0cacab0 14101
57aa50d4
TT
14102# Avoid depending upon Character Ranges.
14103as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14104as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14105as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14106as_cr_digits='0123456789'
14107as_cr_alnum=$as_cr_Letters$as_cr_digits
e1052144
TT
14108
14109ECHO_C= ECHO_N= ECHO_T=
57aa50d4 14110case `echo -n x` in #(((((
e1052144 14111-n*)
57aa50d4 14112 case `echo 'xy\c'` in
e1052144 14113 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
57aa50d4
TT
14114 xy) ECHO_C='\c';;
14115 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14116 ECHO_T=' ';;
e1052144
TT
14117 esac;;
14118*)
14119 ECHO_N='-n';;
b0cacab0 14120esac
b0cacab0
TT
14121
14122rm -f conf$$ conf$$.exe conf$$.file
e1052144
TT
14123if test -d conf$$.dir; then
14124 rm -f conf$$.dir/conf$$.file
14125else
14126 rm -f conf$$.dir
39fd3d4f
SJR
14127 mkdir conf$$.dir 2>/dev/null
14128fi
14129if (echo >conf$$.file) 2>/dev/null; then
14130 if ln -s conf$$.file conf$$ 2>/dev/null; then
14131 as_ln_s='ln -s'
14132 # ... but there are two gotchas:
14133 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14134 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d6a4bcb5 14135 # In both cases, we have to default to `cp -pR'.
39fd3d4f 14136 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d6a4bcb5 14137 as_ln_s='cp -pR'
39fd3d4f
SJR
14138 elif ln conf$$.file conf$$ 2>/dev/null; then
14139 as_ln_s=ln
14140 else
d6a4bcb5 14141 as_ln_s='cp -pR'
39fd3d4f 14142 fi
b0cacab0 14143else
d6a4bcb5 14144 as_ln_s='cp -pR'
b0cacab0 14145fi
e1052144
TT
14146rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14147rmdir conf$$.dir 2>/dev/null
b0cacab0 14148
57aa50d4
TT
14149
14150# as_fn_mkdir_p
14151# -------------
14152# Create "$as_dir" as a directory, including parents if necessary.
14153as_fn_mkdir_p ()
14154{
14155
14156 case $as_dir in #(
14157 -*) as_dir=./$as_dir;;
14158 esac
14159 test -d "$as_dir" || eval $as_mkdir_p || {
14160 as_dirs=
14161 while :; do
14162 case $as_dir in #(
14163 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14164 *) as_qdir=$as_dir;;
14165 esac
14166 as_dirs="'$as_qdir' $as_dirs"
14167 as_dir=`$as_dirname -- "$as_dir" ||
14168$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14169 X"$as_dir" : 'X\(//\)[^/]' \| \
14170 X"$as_dir" : 'X\(//\)$' \| \
14171 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14172$as_echo X"$as_dir" |
14173 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14174 s//\1/
14175 q
14176 }
14177 /^X\(\/\/\)[^/].*/{
14178 s//\1/
14179 q
14180 }
14181 /^X\(\/\/\)$/{
14182 s//\1/
14183 q
14184 }
14185 /^X\(\/\).*/{
14186 s//\1/
14187 q
14188 }
14189 s/.*/./; q'`
14190 test -d "$as_dir" && break
14191 done
14192 test -z "$as_dirs" || eval "mkdir $as_dirs"
d6a4bcb5 14193 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
57aa50d4
TT
14194
14195
14196} # as_fn_mkdir_p
b0cacab0 14197if mkdir -p . 2>/dev/null; then
57aa50d4 14198 as_mkdir_p='mkdir -p "$as_dir"'
b0cacab0
TT
14199else
14200 test -d ./-p && rmdir ./-p
14201 as_mkdir_p=false
14202fi
14203
d6a4bcb5
TB
14204
14205# as_fn_executable_p FILE
14206# -----------------------
14207# Test if FILE is an executable regular file.
14208as_fn_executable_p ()
14209{
14210 test -f "$1" && test -x "$1"
14211} # as_fn_executable_p
14212as_test_x='test -x'
14213as_executable_p=as_fn_executable_p
b0cacab0
TT
14214
14215# Sed expression to map a string onto a valid CPP name.
14216as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14217
14218# Sed expression to map a string onto a valid variable name.
14219as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14220
14221
b0cacab0 14222exec 6>&1
57aa50d4
TT
14223## ----------------------------------- ##
14224## Main body of $CONFIG_STATUS script. ##
14225## ----------------------------------- ##
14226_ASEOF
14227test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
b0cacab0 14228
57aa50d4
TT
14229cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14230# Save the log message, to keep $0 and so on meaningful, and to
b0cacab0 14231# report actual input values of CONFIG_FILES etc. instead of their
e1052144
TT
14232# values after options handling.
14233ac_log="
b0cacab0 14234This file was extended by $as_me, which was
d6a4bcb5 14235generated by GNU Autoconf 2.69. Invocation command line was
b0cacab0
TT
14236
14237 CONFIG_FILES = $CONFIG_FILES
14238 CONFIG_HEADERS = $CONFIG_HEADERS
14239 CONFIG_LINKS = $CONFIG_LINKS
14240 CONFIG_COMMANDS = $CONFIG_COMMANDS
14241 $ $0 $@
14242
e1052144
TT
14243on `(hostname || uname -n) 2>/dev/null | sed 1q`
14244"
14245
b0cacab0
TT
14246_ACEOF
14247
39fd3d4f
SJR
14248case $ac_config_files in *"
14249"*) set x $ac_config_files; shift; ac_config_files=$*;;
14250esac
14251
d1154eb4
TT
14252case $ac_config_headers in *"
14253"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14254esac
39fd3d4f
SJR
14255
14256
14257cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b0cacab0 14258# Files that config.status was made for.
e1052144 14259config_files="$ac_config_files"
d1154eb4 14260config_headers="$ac_config_headers"
e1052144 14261config_commands="$ac_config_commands"
b0cacab0 14262
e1052144 14263_ACEOF
b0cacab0 14264
39fd3d4f 14265cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b0cacab0 14266ac_cs_usage="\
57aa50d4
TT
14267\`$as_me' instantiates files and other configuration actions
14268from templates according to the current configuration. Unless the files
14269and actions are specified as TAGs, all are instantiated by default.
b0cacab0 14270
57aa50d4 14271Usage: $0 [OPTION]... [TAG]...
b0cacab0
TT
14272
14273 -h, --help print this help, then exit
29a5deed 14274 -V, --version print version number and configuration settings, then exit
61ef2474 14275 --config print configuration, then exit
39fd3d4f
SJR
14276 -q, --quiet, --silent
14277 do not print progress messages
b0cacab0
TT
14278 -d, --debug don't remove temporary files
14279 --recheck update $as_me by reconfiguring in the same conditions
39fd3d4f
SJR
14280 --file=FILE[:TEMPLATE]
14281 instantiate the configuration file FILE
d1154eb4
TT
14282 --header=FILE[:TEMPLATE]
14283 instantiate the configuration header FILE
b0cacab0
TT
14284
14285Configuration files:
14286$config_files
14287
d1154eb4
TT
14288Configuration headers:
14289$config_headers
14290
b0cacab0
TT
14291Configuration commands:
14292$config_commands
14293
57aa50d4 14294Report bugs to the package provider."
b0cacab0 14295
e1052144 14296_ACEOF
39fd3d4f 14297cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
61ef2474 14298ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
b0cacab0
TT
14299ac_cs_version="\\
14300config.status
d6a4bcb5 14301configured by $0, generated by GNU Autoconf 2.69,
61ef2474 14302 with options \\"\$ac_cs_config\\"
b0cacab0 14303
d6a4bcb5 14304Copyright (C) 2012 Free Software Foundation, Inc.
b0cacab0
TT
14305This config.status script is free software; the Free Software Foundation
14306gives unlimited permission to copy, distribute and modify it."
e1052144
TT
14307
14308ac_pwd='$ac_pwd'
14309srcdir='$srcdir'
14310INSTALL='$INSTALL'
93613951 14311MKDIR_P='$MKDIR_P'
39fd3d4f
SJR
14312AWK='$AWK'
14313test -n "\$AWK" || AWK=awk
b0cacab0
TT
14314_ACEOF
14315
39fd3d4f
SJR
14316cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14317# The default lists apply if the user does not specify any file.
b0cacab0
TT
14318ac_need_defaults=:
14319while test $# != 0
07a0db15 14320do
b0cacab0 14321 case $1 in
d6a4bcb5 14322 --*=?*)
e1052144
TT
14323 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14324 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
b0cacab0
TT
14325 ac_shift=:
14326 ;;
d6a4bcb5
TB
14327 --*=)
14328 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14329 ac_optarg=
14330 ac_shift=:
14331 ;;
e1052144 14332 *)
b0cacab0
TT
14333 ac_option=$1
14334 ac_optarg=$2
14335 ac_shift=shift
14336 ;;
b0cacab0
TT
14337 esac
14338
14339 case $ac_option in
14340 # Handling of the options.
93636bde 14341 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
b0cacab0 14342 ac_cs_recheck=: ;;
e1052144 14343 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
39fd3d4f 14344 $as_echo "$ac_cs_version"; exit ;;
61ef2474
TT
14345 --config | --confi | --conf | --con | --co | --c )
14346 $as_echo "$ac_cs_config"; exit ;;
e1052144 14347 --debug | --debu | --deb | --de | --d | -d )
b0cacab0
TT
14348 debug=: ;;
14349 --file | --fil | --fi | --f )
14350 $ac_shift
39fd3d4f
SJR
14351 case $ac_optarg in
14352 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
d6a4bcb5 14353 '') as_fn_error $? "missing file argument" ;;
39fd3d4f 14354 esac
57aa50d4 14355 as_fn_append CONFIG_FILES " '$ac_optarg'"
b0cacab0 14356 ac_need_defaults=false;;
d1154eb4
TT
14357 --header | --heade | --head | --hea )
14358 $ac_shift
14359 case $ac_optarg in
14360 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14361 esac
14362 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14363 ac_need_defaults=false;;
14364 --he | --h)
14365 # Conflict between --help and --header
d6a4bcb5 14366 as_fn_error $? "ambiguous option: \`$1'
d1154eb4
TT
14367Try \`$0 --help' for more information.";;
14368 --help | --hel | -h )
39fd3d4f 14369 $as_echo "$ac_cs_usage"; exit ;;
b0cacab0
TT
14370 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14371 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14372 ac_cs_silent=: ;;
14373
14374 # This is an error.
d6a4bcb5 14375 -*) as_fn_error $? "unrecognized option: \`$1'
57aa50d4 14376Try \`$0 --help' for more information." ;;
b0cacab0 14377
57aa50d4 14378 *) as_fn_append ac_config_targets " $1"
e1052144 14379 ac_need_defaults=false ;;
b0cacab0 14380
07a0db15 14381 esac
b0cacab0 14382 shift
07a0db15
TT
14383done
14384
b0cacab0
TT
14385ac_configure_extra_args=
14386
14387if $ac_cs_silent; then
14388 exec 6>/dev/null
14389 ac_configure_extra_args="$ac_configure_extra_args --silent"
14390fi
14391
14392_ACEOF
39fd3d4f 14393cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b0cacab0 14394if \$ac_cs_recheck; then
d6a4bcb5 14395 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
39fd3d4f
SJR
14396 shift
14397 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14398 CONFIG_SHELL='$SHELL'
e1052144 14399 export CONFIG_SHELL
39fd3d4f 14400 exec "\$@"
b0cacab0 14401fi
07a0db15 14402
b0cacab0 14403_ACEOF
39fd3d4f 14404cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
e1052144
TT
14405exec 5>>config.log
14406{
14407 echo
14408 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14409## Running $as_me. ##
14410_ASBOX
39fd3d4f 14411 $as_echo "$ac_log"
e1052144 14412} >&5
07a0db15 14413
e1052144 14414_ACEOF
39fd3d4f 14415cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b0cacab0 14416#
e1052144 14417# INIT-COMMANDS
b0cacab0 14418#
b0cacab0
TT
14419# Capture the value of obsolete ALL_LINGUAS because we need it to compute
14420 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
93613951 14421 # from automake < 1.5.
b0cacab0
TT
14422 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
14423 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14424 LINGUAS="${LINGUAS-%UNSET%}"
14425
14426
14427_ACEOF
14428
39fd3d4f 14429cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
e1052144
TT
14430
14431# Handling of arguments.
b0cacab0
TT
14432for ac_config_target in $ac_config_targets
14433do
e1052144 14434 case $ac_config_target in
d1154eb4 14435 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
93613951 14436 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
e1052144
TT
14437 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
14438
d6a4bcb5 14439 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
b0cacab0
TT
14440 esac
14441done
14442
e1052144 14443
b0cacab0
TT
14444# If the user did not use the arguments to specify the items to instantiate,
14445# then the envvar interface is used. Set only those that are not.
14446# We use the long form for the default assignment because of an extremely
14447# bizarre bug on SunOS 4.1.3.
14448if $ac_need_defaults; then
14449 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
d1154eb4 14450 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
b0cacab0
TT
14451 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14452fi
14453
14454# Have a temporary directory for convenience. Make it in the build tree
e1052144 14455# simply because there is no reason against having it here, and in addition,
b0cacab0 14456# creating and moving files from /tmp can sometimes cause problems.
e1052144
TT
14457# Hook for its removal unless debugging.
14458# Note that there is a small window in which the directory will not be cleaned:
14459# after its creation but before its name has been assigned to `$tmp'.
b0cacab0
TT
14460$debug ||
14461{
d6a4bcb5 14462 tmp= ac_tmp=
e1052144 14463 trap 'exit_status=$?
d6a4bcb5
TB
14464 : "${ac_tmp:=$tmp}"
14465 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
e1052144 14466' 0
57aa50d4 14467 trap 'as_fn_exit 1' 1 2 13 15
b0cacab0 14468}
b0cacab0
TT
14469# Create a (secure) tmp directory for tmp files.
14470
14471{
e1052144 14472 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d6a4bcb5 14473 test -d "$tmp"
b0cacab0
TT
14474} ||
14475{
e1052144
TT
14476 tmp=./conf$$-$RANDOM
14477 (umask 077 && mkdir "$tmp")
d6a4bcb5
TB
14478} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14479ac_tmp=$tmp
b0cacab0 14480
39fd3d4f
SJR
14481# Set up the scripts for CONFIG_FILES section.
14482# No need to generate them if there are no CONFIG_FILES.
14483# This happens for instance with `./config.status config.h'.
e1052144
TT
14484if test -n "$CONFIG_FILES"; then
14485
39fd3d4f
SJR
14486if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14487 ac_cs_awk_getline=:
14488 ac_cs_awk_pipe_init=
14489 ac_cs_awk_read_file='
14490 while ((getline aline < (F[key])) > 0)
14491 print(aline)
14492 close(F[key])'
14493 ac_cs_awk_pipe_fini=
14494else
14495 ac_cs_awk_getline=false
14496 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14497 ac_cs_awk_read_file='
14498 print "|#_!!_#|"
14499 print "cat " F[key] " &&"
14500 '$ac_cs_awk_pipe_init
14501 # The final `:' finishes the AND list.
14502 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14503fi
57aa50d4
TT
14504ac_cr=`echo X | tr X '\015'`
14505# On cygwin, bash can eat \r inside `` if the user requested igncr.
14506# But we know of no other shell where ac_cr would be empty at this
14507# point, so we can use a bashism as a fallback.
14508if test "x$ac_cr" = x; then
14509 eval ac_cr=\$\'\\r\'
14510fi
39fd3d4f
SJR
14511ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14512if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
d6a4bcb5 14513 ac_cs_awk_cr='\\r'
39fd3d4f
SJR
14514else
14515 ac_cs_awk_cr=$ac_cr
14516fi
e1052144 14517
d6a4bcb5 14518echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
39fd3d4f 14519_ACEOF
e1052144 14520
39fd3d4f
SJR
14521# Create commands to substitute file output variables.
14522{
14523 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
d6a4bcb5 14524 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
39fd3d4f
SJR
14525 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14526 echo "_ACAWK" &&
14527 echo "_ACEOF"
14528} >conf$$files.sh &&
14529. ./conf$$files.sh ||
d6a4bcb5 14530 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
39fd3d4f 14531rm -f conf$$files.sh
e1052144 14532
39fd3d4f
SJR
14533{
14534 echo "cat >conf$$subs.awk <<_ACEOF" &&
14535 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14536 echo "_ACEOF"
14537} >conf$$subs.sh ||
d6a4bcb5
TB
14538 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14539ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
e1052144
TT
14540ac_delim='%!_!# '
14541for ac_last_try in false false false false false :; do
39fd3d4f 14542 . ./conf$$subs.sh ||
d6a4bcb5 14543 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
39fd3d4f
SJR
14544
14545 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14546 if test $ac_delim_n = $ac_delim_num; then
e1052144
TT
14547 break
14548 elif $ac_last_try; then
d6a4bcb5 14549 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
e1052144
TT
14550 else
14551 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21c84b71 14552 fi
e1052144 14553done
39fd3d4f
SJR
14554rm -f conf$$subs.sh
14555
14556cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d6a4bcb5 14557cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
39fd3d4f
SJR
14558_ACEOF
14559sed -n '
14560h
14561s/^/S["/; s/!.*/"]=/
14562p
14563g
14564s/^[^!]*!//
14565:repl
14566t repl
14567s/'"$ac_delim"'$//
14568t delim
14569:nl
14570h
61ef2474 14571s/\(.\{148\}\)..*/\1/
39fd3d4f
SJR
14572t more1
14573s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14574p
14575n
14576b repl
14577:more1
14578s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14579p
14580g
14581s/.\{148\}//
14582t nl
14583:delim
14584h
61ef2474 14585s/\(.\{148\}\)..*/\1/
39fd3d4f
SJR
14586t more2
14587s/["\\]/\\&/g; s/^/"/; s/$/"/
14588p
14589b
14590:more2
14591s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14592p
14593g
14594s/.\{148\}//
14595t delim
14596' <conf$$subs.awk | sed '
14597/^[^""]/{
14598 N
14599 s/\n//
e1052144 14600}
39fd3d4f
SJR
14601' >>$CONFIG_STATUS || ac_write_fail=1
14602rm -f conf$$subs.awk
14603cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14604_ACAWK
d6a4bcb5 14605cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
39fd3d4f
SJR
14606 for (key in S) S_is_set[key] = 1
14607 FS = "\a"
14608 \$ac_cs_awk_pipe_init
e1052144 14609}
39fd3d4f
SJR
14610{
14611 line = $ 0
14612 nfields = split(line, field, "@")
14613 substed = 0
14614 len = length(field[1])
14615 for (i = 2; i < nfields; i++) {
14616 key = field[i]
14617 keylen = length(key)
14618 if (S_is_set[key]) {
14619 value = S[key]
14620 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14621 len += length(value) + length(field[++i])
14622 substed = 1
14623 } else
14624 len += 1 + keylen
14625 }
14626 if (nfields == 3 && !substed) {
14627 key = field[2]
14628 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
14629 \$ac_cs_awk_read_file
14630 next
14631 }
14632 }
14633 print line
488c75a6 14634}
39fd3d4f
SJR
14635\$ac_cs_awk_pipe_fini
14636_ACAWK
e1052144 14637_ACEOF
39fd3d4f
SJR
14638cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14639if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14640 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14641else
14642 cat
d6a4bcb5
TB
14643fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14644 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
b0cacab0 14645_ACEOF
e1052144 14646
d6a4bcb5
TB
14647# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14648# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
e1052144
TT
14649# trailing colons and then remove the whole line if VPATH becomes empty
14650# (actually we leave an empty line to preserve line numbers).
14651if test "x$srcdir" = x.; then
d6a4bcb5
TB
14652 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14653h
14654s///
14655s/^/:/
14656s/[ ]*$/:/
14657s/:\$(srcdir):/:/g
14658s/:\${srcdir}:/:/g
14659s/:@srcdir@:/:/g
14660s/^:*//
e1052144 14661s/:*$//
d6a4bcb5
TB
14662x
14663s/\(=[ ]*\).*/\1/
14664G
14665s/\n//
e1052144
TT
14666s/^[^=]*=[ ]*$//
14667}'
14668fi
14669
39fd3d4f 14670cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
e1052144
TT
14671fi # test -n "$CONFIG_FILES"
14672
d1154eb4
TT
14673# Set up the scripts for CONFIG_HEADERS section.
14674# No need to generate them if there are no CONFIG_HEADERS.
14675# This happens for instance with `./config.status Makefile'.
14676if test -n "$CONFIG_HEADERS"; then
d6a4bcb5 14677cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
d1154eb4
TT
14678BEGIN {
14679_ACEOF
14680
14681# Transform confdefs.h into an awk script `defines.awk', embedded as
14682# here-document in config.status, that substitutes the proper values into
14683# config.h.in to produce config.h.
14684
14685# Create a delimiter string that does not exist in confdefs.h, to ease
14686# handling of long lines.
14687ac_delim='%!_!# '
14688for ac_last_try in false false :; do
d6a4bcb5
TB
14689 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14690 if test -z "$ac_tt"; then
d1154eb4
TT
14691 break
14692 elif $ac_last_try; then
d6a4bcb5 14693 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
d1154eb4
TT
14694 else
14695 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14696 fi
14697done
14698
14699# For the awk script, D is an array of macro values keyed by name,
14700# likewise P contains macro parameters if any. Preserve backslash
14701# newline sequences.
14702
14703ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14704sed -n '
14705s/.\{148\}/&'"$ac_delim"'/g
14706t rset
14707:rset
14708s/^[ ]*#[ ]*define[ ][ ]*/ /
14709t def
14710d
14711:def
14712s/\\$//
14713t bsnl
14714s/["\\]/\\&/g
14715s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14716D["\1"]=" \3"/p
14717s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14718d
14719:bsnl
14720s/["\\]/\\&/g
14721s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14722D["\1"]=" \3\\\\\\n"\\/p
14723t cont
14724s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14725t cont
14726d
14727:cont
14728n
14729s/.\{148\}/&'"$ac_delim"'/g
14730t clear
14731:clear
14732s/\\$//
14733t bsnlc
14734s/["\\]/\\&/g; s/^/"/; s/$/"/p
14735d
14736:bsnlc
14737s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14738b cont
14739' <confdefs.h | sed '
14740s/'"$ac_delim"'/"\\\
14741"/g' >>$CONFIG_STATUS || ac_write_fail=1
14742
14743cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14744 for (key in D) D_is_set[key] = 1
14745 FS = "\a"
14746}
14747/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14748 line = \$ 0
14749 split(line, arg, " ")
14750 if (arg[1] == "#") {
14751 defundef = arg[2]
14752 mac1 = arg[3]
14753 } else {
14754 defundef = substr(arg[1], 2)
14755 mac1 = arg[2]
14756 }
14757 split(mac1, mac2, "(") #)
14758 macro = mac2[1]
14759 prefix = substr(line, 1, index(line, defundef) - 1)
14760 if (D_is_set[macro]) {
14761 # Preserve the white space surrounding the "#".
14762 print prefix "define", macro P[macro] D[macro]
14763 next
14764 } else {
14765 # Replace #undef with comments. This is necessary, for example,
14766 # in the case of _POSIX_SOURCE, which is predefined and required
14767 # on some systems where configure will not decide to define it.
14768 if (defundef == "undef") {
14769 print "/*", prefix defundef, macro, "*/"
14770 next
14771 }
14772 }
14773}
14774{ print }
14775_ACAWK
14776_ACEOF
14777cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
d6a4bcb5 14778 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
d1154eb4
TT
14779fi # test -n "$CONFIG_HEADERS"
14780
e1052144 14781
d1154eb4 14782eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
39fd3d4f
SJR
14783shift
14784for ac_tag
e1052144
TT
14785do
14786 case $ac_tag in
14787 :[FHLC]) ac_mode=$ac_tag; continue;;
14788 esac
14789 case $ac_mode$ac_tag in
14790 :[FHL]*:*);;
d6a4bcb5 14791 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
e1052144
TT
14792 :[FH]-) ac_tag=-:-;;
14793 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14794 esac
14795 ac_save_IFS=$IFS
14796 IFS=:
14797 set x $ac_tag
14798 IFS=$ac_save_IFS
14799 shift
14800 ac_file=$1
14801 shift
14802
14803 case $ac_mode in
14804 :L) ac_source=$1;;
14805 :[FH])
14806 ac_file_inputs=
14807 for ac_f
14808 do
14809 case $ac_f in
d6a4bcb5 14810 -) ac_f="$ac_tmp/stdin";;
e1052144
TT
14811 *) # Look for the file first in the build tree, then in the source tree
14812 # (if the path is not absolute). The absolute path cannot be DOS-style,
14813 # because $ac_f cannot contain `:'.
14814 test -f "$ac_f" ||
14815 case $ac_f in
14816 [\\/$]*) false;;
14817 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14818 esac ||
d6a4bcb5 14819 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
e1052144 14820 esac
39fd3d4f 14821 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
57aa50d4 14822 as_fn_append ac_file_inputs " '$ac_f'"
e1052144
TT
14823 done
14824
14825 # Let's still pretend it is `configure' which instantiates (i.e., don't
14826 # use $as_me), people would be surprised to read:
14827 # /* config.h. Generated by config.status. */
39fd3d4f
SJR
14828 configure_input='Generated from '`
14829 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14830 `' by configure.'
e1052144
TT
14831 if test x"$ac_file" != x-; then
14832 configure_input="$ac_file. $configure_input"
57aa50d4 14833 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
39fd3d4f 14834$as_echo "$as_me: creating $ac_file" >&6;}
e1052144 14835 fi
39fd3d4f
SJR
14836 # Neutralize special characters interpreted by sed in replacement strings.
14837 case $configure_input in #(
14838 *\&* | *\|* | *\\* )
14839 ac_sed_conf_input=`$as_echo "$configure_input" |
14840 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14841 *) ac_sed_conf_input=$configure_input;;
14842 esac
e1052144
TT
14843
14844 case $ac_tag in
d6a4bcb5
TB
14845 *:-:* | *:-) cat >"$ac_tmp/stdin" \
14846 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
e1052144
TT
14847 esac
14848 ;;
b0cacab0
TT
14849 esac
14850
e1052144 14851 ac_dir=`$as_dirname -- "$ac_file" ||
b0cacab0
TT
14852$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14853 X"$ac_file" : 'X\(//\)[^/]' \| \
14854 X"$ac_file" : 'X\(//\)$' \| \
e1052144 14855 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
39fd3d4f 14856$as_echo X"$ac_file" |
e1052144
TT
14857 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14858 s//\1/
14859 q
14860 }
14861 /^X\(\/\/\)[^/].*/{
14862 s//\1/
14863 q
14864 }
14865 /^X\(\/\/\)$/{
14866 s//\1/
14867 q
14868 }
14869 /^X\(\/\).*/{
14870 s//\1/
14871 q
14872 }
14873 s/.*/./; q'`
57aa50d4 14874 as_dir="$ac_dir"; as_fn_mkdir_p
b0cacab0
TT
14875 ac_builddir=.
14876
e1052144
TT
14877case "$ac_dir" in
14878.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14879*)
39fd3d4f 14880 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
e1052144 14881 # A ".." for each directory in $ac_dir_suffix.
39fd3d4f 14882 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
e1052144
TT
14883 case $ac_top_builddir_sub in
14884 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14885 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14886 esac ;;
14887esac
14888ac_abs_top_builddir=$ac_pwd
14889ac_abs_builddir=$ac_pwd$ac_dir_suffix
14890# for backward compatibility:
14891ac_top_builddir=$ac_top_build_prefix
93636bde 14892
b0cacab0 14893case $srcdir in
e1052144 14894 .) # We are building in place.
b0cacab0 14895 ac_srcdir=.
e1052144
TT
14896 ac_top_srcdir=$ac_top_builddir_sub
14897 ac_abs_top_srcdir=$ac_pwd ;;
14898 [\\/]* | ?:[\\/]* ) # Absolute name.
b0cacab0 14899 ac_srcdir=$srcdir$ac_dir_suffix;
e1052144
TT
14900 ac_top_srcdir=$srcdir
14901 ac_abs_top_srcdir=$srcdir ;;
14902 *) # Relative name.
14903 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
14904 ac_top_srcdir=$ac_top_build_prefix$srcdir
14905 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b0cacab0 14906esac
e1052144 14907ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
b0cacab0 14908
b0cacab0 14909
e1052144
TT
14910 case $ac_mode in
14911 :F)
14912 #
14913 # CONFIG_FILE
14914 #
50e1e10f 14915
b0cacab0
TT
14916 case $INSTALL in
14917 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
e1052144 14918 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
50e1e10f 14919 esac
93613951
TT
14920 ac_MKDIR_P=$MKDIR_P
14921 case $MKDIR_P in
14922 [\\/$]* | ?:[\\/]* ) ;;
14923 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
14924 esac
e1052144 14925_ACEOF
50e1e10f 14926
39fd3d4f 14927cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
e1052144
TT
14928# If the template does not know about datarootdir, expand it.
14929# FIXME: This hack should be removed a few years after 2.60.
14930ac_datarootdir_hack=; ac_datarootdir_seen=
39fd3d4f
SJR
14931ac_sed_dataroot='
14932/datarootdir/ {
e1052144
TT
14933 p
14934 q
14935}
14936/@datadir@/p
14937/@docdir@/p
14938/@infodir@/p
14939/@localedir@/p
57aa50d4 14940/@mandir@/p'
39fd3d4f 14941case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
e1052144
TT
14942*datarootdir*) ac_datarootdir_seen=yes;;
14943*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
57aa50d4 14944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
39fd3d4f 14945$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
b0cacab0 14946_ACEOF
39fd3d4f 14947cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
e1052144
TT
14948 ac_datarootdir_hack='
14949 s&@datadir@&$datadir&g
14950 s&@docdir@&$docdir&g
14951 s&@infodir@&$infodir&g
14952 s&@localedir@&$localedir&g
14953 s&@mandir@&$mandir&g
57aa50d4 14954 s&\\\${datarootdir}&$datarootdir&g' ;;
e1052144
TT
14955esac
14956_ACEOF
14957
14958# Neutralize VPATH when `$srcdir' = `.'.
14959# Shell code in configure.ac might set extrasub.
14960# FIXME: do we really want to maintain this feature?
39fd3d4f
SJR
14961cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14962ac_sed_extra="$ac_vpsub
b0cacab0
TT
14963$extrasub
14964_ACEOF
39fd3d4f 14965cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b0cacab0
TT
14966:t
14967/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
39fd3d4f 14968s|@configure_input@|$ac_sed_conf_input|;t t
e1052144 14969s&@top_builddir@&$ac_top_builddir_sub&;t t
39fd3d4f 14970s&@top_build_prefix@&$ac_top_build_prefix&;t t
e1052144
TT
14971s&@srcdir@&$ac_srcdir&;t t
14972s&@abs_srcdir@&$ac_abs_srcdir&;t t
14973s&@top_srcdir@&$ac_top_srcdir&;t t
14974s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14975s&@builddir@&$ac_builddir&;t t
14976s&@abs_builddir@&$ac_abs_builddir&;t t
14977s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14978s&@INSTALL@&$ac_INSTALL&;t t
93613951 14979s&@MKDIR_P@&$ac_MKDIR_P&;t t
e1052144 14980$ac_datarootdir_hack
39fd3d4f
SJR
14981"
14982eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
14983if $ac_cs_awk_getline; then
d6a4bcb5 14984 $AWK -f "$ac_tmp/subs.awk"
39fd3d4f 14985else
d6a4bcb5
TB
14986 $AWK -f "$ac_tmp/subs.awk" | $SHELL
14987fi \
14988 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
e1052144
TT
14989
14990test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
d6a4bcb5
TB
14991 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14992 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
14993 "$ac_tmp/out"`; test -z "$ac_out"; } &&
57aa50d4 14994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d6a4bcb5 14995which seems to be undefined. Please make sure it is defined" >&5
39fd3d4f 14996$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d6a4bcb5 14997which seems to be undefined. Please make sure it is defined" >&2;}
e1052144 14998
d6a4bcb5 14999 rm -f "$ac_tmp/stdin"
e1052144 15000 case $ac_file in
d6a4bcb5
TB
15001 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15002 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
39fd3d4f 15003 esac \
d6a4bcb5 15004 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
e1052144 15005 ;;
d1154eb4
TT
15006 :H)
15007 #
15008 # CONFIG_HEADER
15009 #
15010 if test x"$ac_file" != x-; then
15011 {
15012 $as_echo "/* $configure_input */" \
d6a4bcb5
TB
15013 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15014 } >"$ac_tmp/config.h" \
15015 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15016 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
d1154eb4
TT
15017 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15018$as_echo "$as_me: $ac_file is unchanged" >&6;}
15019 else
15020 rm -f "$ac_file"
d6a4bcb5
TB
15021 mv "$ac_tmp/config.h" "$ac_file" \
15022 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
d1154eb4
TT
15023 fi
15024 else
15025 $as_echo "/* $configure_input */" \
d6a4bcb5
TB
15026 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15027 || as_fn_error $? "could not create -" "$LINENO" 5
d1154eb4
TT
15028 fi
15029 ;;
07a0db15 15030
57aa50d4 15031 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
39fd3d4f 15032$as_echo "$as_me: executing $ac_file commands" >&6;}
e1052144
TT
15033 ;;
15034 esac
a04eba3f 15035
b0cacab0 15036
e1052144 15037 case $ac_file$ac_mode in
93613951 15038 "po-directories":C)
a04eba3f
TT
15039 for ac_file in $CONFIG_FILES; do
15040 # Support "outfile[:infile[:infile...]]"
15041 case "$ac_file" in
15042 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15043 esac
15044 # PO directories have a Makefile.in generated from Makefile.in.in.
15045 case "$ac_file" in */Makefile.in)
15046 # Adjust a relative srcdir.
15047 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
93613951 15048 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
a04eba3f
TT
15049 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15050 # In autoconf-2.13 it is called $ac_given_srcdir.
15051 # In autoconf-2.50 it is called $srcdir.
15052 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15053 case "$ac_given_srcdir" in
15054 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15055 /*) top_srcdir="$ac_given_srcdir" ;;
15056 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
15057 esac
93613951
TT
15058 # Treat a directory as a PO directory if and only if it has a
15059 # POTFILES.in file. This allows packages to have multiple PO
15060 # directories under different names or in different locations.
a04eba3f
TT
15061 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15062 rm -f "$ac_dir/POTFILES"
15063 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
93613951
TT
15064 gt_tab=`printf '\t'`
15065 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
b0cacab0
TT
15066 POMAKEFILEDEPS="POTFILES.in"
15067 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
a04eba3f
TT
15068 # on $ac_dir but don't depend on user-specified configuration
15069 # parameters.
15070 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15071 # The LINGUAS file contains the set of available languages.
b0cacab0 15072 if test -n "$OBSOLETE_ALL_LINGUAS"; then
a04eba3f
TT
15073 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
15074 fi
93613951
TT
15075 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15076 # Hide the ALL_LINGUAS assignment from automake < 1.5.
a04eba3f 15077 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
b0cacab0
TT
15078 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15079 else
15080 # The set of available languages was given in configure.in.
93613951 15081 # Hide the ALL_LINGUAS assignment from automake < 1.5.
b0cacab0 15082 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
a04eba3f 15083 fi
b0cacab0
TT
15084 # Compute POFILES
15085 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
15086 # Compute UPDATEPOFILES
15087 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
15088 # Compute DUMMYPOFILES
15089 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
15090 # Compute GMOFILES
15091 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
a04eba3f
TT
15092 case "$ac_given_srcdir" in
15093 .) srcdirpre= ;;
15094 *) srcdirpre='$(srcdir)/' ;;
15095 esac
15096 POFILES=
a04eba3f
TT
15097 UPDATEPOFILES=
15098 DUMMYPOFILES=
b0cacab0 15099 GMOFILES=
a04eba3f
TT
15100 for lang in $ALL_LINGUAS; do
15101 POFILES="$POFILES $srcdirpre$lang.po"
a04eba3f
TT
15102 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15103 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
b0cacab0 15104 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
a04eba3f
TT
15105 done
15106 # CATALOGS depends on both $ac_dir and the user's LINGUAS
15107 # environment variable.
15108 INST_LINGUAS=
15109 if test -n "$ALL_LINGUAS"; then
15110 for presentlang in $ALL_LINGUAS; do
15111 useit=no
15112 if test "%UNSET%" != "$LINGUAS"; then
15113 desiredlanguages="$LINGUAS"
15114 else
15115 desiredlanguages="$ALL_LINGUAS"
15116 fi
15117 for desiredlang in $desiredlanguages; do
15118 # Use the presentlang catalog if desiredlang is
15119 # a. equal to presentlang, or
15120 # b. a variant of presentlang (because in this case,
15121 # presentlang can be used as a fallback for messages
15122 # which are not translated in the desiredlang catalog).
15123 case "$desiredlang" in
15124 "$presentlang"*) useit=yes;;
15125 esac
15126 done
15127 if test $useit = yes; then
15128 INST_LINGUAS="$INST_LINGUAS $presentlang"
15129 fi
15130 done
15131 fi
15132 CATALOGS=
15133 if test -n "$INST_LINGUAS"; then
15134 for lang in $INST_LINGUAS; do
15135 CATALOGS="$CATALOGS $lang.gmo"
15136 done
15137 fi
15138 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
b0cacab0 15139 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"
a04eba3f
TT
15140 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15141 if test -f "$f"; then
15142 case "$f" in
15143 *.orig | *.bak | *~) ;;
15144 *) cat "$f" >> "$ac_dir/Makefile" ;;
15145 esac
15146 fi
15147 done
15148 fi
15149 ;;
a64c9c13 15150 esac
b0cacab0 15151 done ;;
e1052144 15152
b0cacab0 15153 esac
e1052144 15154done # for ac_tag
07a0db15 15155
b0cacab0 15156
57aa50d4 15157as_fn_exit 0
b0cacab0 15158_ACEOF
b0cacab0
TT
15159ac_clean_files=$ac_clean_files_save
15160
39fd3d4f 15161test $ac_write_fail = 0 ||
d6a4bcb5 15162 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
39fd3d4f 15163
b0cacab0
TT
15164
15165# configure is writing to config.log, and then calls config.status.
15166# config.status does its own redirection, appending to config.log.
15167# Unfortunately, on DOS this fails, as config.log is still kept open
15168# by configure, so config.status won't be able to write to it; its
15169# output is simply discarded. So we exec the FD to /dev/null,
15170# effectively closing config.log, so it can be properly (re)opened and
15171# appended to by config.status. When coming back to configure, we
15172# need to make the FD available again.
15173if test "$no_create" != yes; then
15174 ac_cs_success=:
15175 ac_config_status_args=
15176 test "$silent" = yes &&
15177 ac_config_status_args="$ac_config_status_args --quiet"
15178 exec 5>/dev/null
15179 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15180 exec 5>>config.log
15181 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15182 # would make configure fail if this is the last instruction.
d6a4bcb5 15183 $ac_cs_success || as_fn_exit 1
b0cacab0 15184fi
39fd3d4f 15185if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
57aa50d4 15186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
39fd3d4f
SJR
15187$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15188fi
50e1e10f 15189
ee683a13 15190if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi