]> git.ipfire.org Git - thirdparty/e2fsprogs.git/blame - configure
libext2fs: code adaptation to use the Windows IO manager
[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=
39fd3d4f 623ac_subst_vars='LTLIBOBJS
e1052144 624LIBOBJS
a2df5894
DW
625systemd_system_unit_dir
626have_systemd
627systemd_LIBS
628systemd_CFLAGS
629crond_dir
630have_crond
5ce368f0
DW
631pkg_udev_rules_dir
632have_udev
633udev_LIBS
634udev_CFLAGS
fd1677e8
TT
635LDFLAGS_SHLIB
636CFLAGS_STLIB
637CFLAGS_SHLIB
39fd3d4f
SJR
638BUILD_LDFLAGS
639BUILD_CFLAGS
d1154eb4 640INCLUDES
39fd3d4f 641DO_TEST_SUITE
fd1677e8 642LDFLAGS_STATIC
39fd3d4f
SJR
643root_sysconfdir
644root_libdir
645root_sbindir
646root_bindir
647root_prefix
5ce368f0 648E2SCRUB_CMT
39fd3d4f
SJR
649UNIX_CMT
650CYGWIN_CMT
651LINUX_CMT
bcca786b
DW
652threadsan_ldflags
653threadsan_cflags
654have_threadsan
5e666e3d
DW
655addrsan_ldflags
656addrsan_cflags
657have_addrsan
1c2a76ae
DW
658ubsan_ldflags
659ubsan_cflags
660have_ubsan
4aece328
DW
661lto_ldflags
662lto_cflags
663have_lto
664gcc_ranlib
665gcc_ar
39fd3d4f
SJR
666UNI_DIFF_OPTS
667SEM_INIT_LIB
81cbf1ef
DW
668FUSE_CMT
669FUSE_LIB
c94da047 670CLOCK_GETTIME_LIB
b291c11f 671MAGIC_LIB
39fd3d4f 672SOCKET_LIB
2dd680f3 673SIZEOF_TIME_T
cc68e8a6 674SIZEOF_OFF_T
39fd3d4f
SJR
675SIZEOF_LONG_LONG
676SIZEOF_LONG
677SIZEOF_INT
678SIZEOF_SHORT
ec3a69bb 679DD
39fd3d4f
SJR
680BUILD_CC
681MAKEINFO
682STRIP
e598c29b 683RANLIB
39fd3d4f
SJR
684AR
685LDCONFIG
686PERL
39fd3d4f
SJR
687AWK
688CHMOD
689RM
690CP
691MV
692LN_S
3fb16e74 693mkdir_p
39fd3d4f 694LN
bcb915b0
TT
695ifNotGNUmake
696ifGNUmake
39fd3d4f
SJR
697BINARY_TYPE
698POSUB
699LTLIBINTL
700LIBINTL
701INTLLIBS
93613951
TT
702LTLIBICONV
703LIBICONV
e598c29b 704INTL_MACOSX_LIBS
93613951 705XGETTEXT_EXTRA_OPTIONS
bdcd5f22 706MSGMERGE_FOR_MSGFMT_OPTION
39fd3d4f 707MSGMERGE
93613951 708XGETTEXT_015
39fd3d4f 709XGETTEXT
93613951 710GMSGFMT_015
39fd3d4f
SJR
711GMSGFMT
712MSGFMT
93613951 713GETTEXT_MACRO_VERSION
39fd3d4f 714USE_NLS
93613951 715MKDIR_P
39fd3d4f
SJR
716INSTALL_DATA
717INSTALL_SCRIPT
718INSTALL_PROGRAM
719SET_MAKE
720VERSION
721PACKAGE
722GETTEXT_PACKAGE
749f0712
TT
723TDB_MAN_COMMENT
724TDB_CMT
39fd3d4f 725UUIDD_CMT
bdcd5f22
TT
726PTHREAD_CFLAGS
727PTHREAD_LIBS
728PTHREAD_CC
729ax_pthread_config
730SED
39fd3d4f
SJR
731E2INITRD_MAN
732E2INITRD_PROG
733FSCK_MAN
734FSCK_PROG
8d9c50c5 735DEFRAG_CMT
39fd3d4f
SJR
736RESIZER_CMT
737IMAGER_CMT
738DEBUGFS_CMT
feb235e0 739SUBSET_CMT
0afb9be6 740ALL_CMT
39fd3d4f
SJR
741BLKID_CMT
742DEPPROFILED_LIBBLKID
743PROFILED_LIBBLKID
744DEPSTATIC_LIBBLKID
745STATIC_LIBBLKID
746DEPLIBBLKID
747LIBBLKID
748UUID_CMT
749DEPPROFILED_LIBUUID
750PROFILED_LIBUUID
751DEPSTATIC_LIBUUID
752STATIC_LIBUUID
753DEPLIBUUID
754LIBUUID
93613951
TT
755PKG_CONFIG_LIBDIR
756PKG_CONFIG_PATH
39fd3d4f 757PKG_CONFIG
b9e66a18 758DEV_FEATURES_CMT
39fd3d4f
SJR
759TEST_IO_CMT
760PRIVATE_LIBS_CMT
761LDFLAG_DYNAMIC
762PROFILED_LIB_EXT
763STATIC_LIB_EXT
764LIB_EXT
39fd3d4f
SJR
765PROFILE_CMT
766BSDLIB_CMT
767ELF_CMT
c13351f6 768Q
c1986ecb 769ES
c13351f6 770E
5aa6c3f6 771LINK_BUILD_FLAGS
183c73b0 772SYMLINK_RELATIVE
5aa6c3f6 773LINK_INSTALL_FLAGS
39fd3d4f 774MAINTAINER_CMT
93613951
TT
775EGREP
776GREP
39fd3d4f 777CPP
9b3018a8 778RDYNAMIC
57aa50d4 779DLOPEN_LIB
39fd3d4f
SJR
780OBJEXT
781EXEEXT
782ac_ct_CC
783CPPFLAGS
784LDFLAGS
785CFLAGS
786CC
787host_os
788host_vendor
789host_cpu
790host
791build_os
792build_vendor
793build_cpu
794build
5ce368f0 795E2FSPROGS_DATE
39fd3d4f
SJR
796E2FSPROGS_PKGVER
797E2FSPROGS_VERSION
798E2FSPROGS_DAY
799E2FSPROGS_MONTH
800E2FSPROGS_YEAR
801target_alias
802host_alias
803build_alias
804LIBS
805ECHO_T
806ECHO_N
807ECHO_C
808DEFS
809mandir
810localedir
811libdir
812psdir
813pdfdir
814dvidir
815htmldir
816infodir
817docdir
818oldincludedir
819includedir
2ab53829 820runstatedir
39fd3d4f
SJR
821localstatedir
822sharedstatedir
823sysconfdir
824datadir
825datarootdir
826libexecdir
827sbindir
828bindir
829program_transform_name
830prefix
831exec_prefix
57aa50d4 832PACKAGE_URL
39fd3d4f
SJR
833PACKAGE_BUGREPORT
834PACKAGE_STRING
835PACKAGE_VERSION
836PACKAGE_TARNAME
837PACKAGE_NAME
838PATH_SEPARATOR
839SHELL'
e1052144
TT
840ac_subst_files='MCONFIG
841MAKEFILE_ELF
842MAKEFILE_BSDLIB
843MAKEFILE_PROFILE
e1052144 844MAKEFILE_LIBRARY
488c75a6
TT
845ASM_TYPES_HEADER
846PUBLIC_CONFIG_HEADER'
39fd3d4f
SJR
847ac_user_opts='
848enable_option_checking
849with_diet_libc
850with_cc
39fd3d4f
SJR
851with_ccopts
852with_ldopts
853with_root_prefix
854enable_maintainer_mode
5aa6c3f6 855enable_symlink_install
91d11da1 856enable_relative_symlinks
183c73b0 857enable_symlink_relative_symlinks
5aa6c3f6 858enable_symlink_build
c13351f6 859enable_verbose_makecmds
39fd3d4f
SJR
860enable_elf_shlibs
861enable_bsd_shlibs
862enable_profile
fedfb27f 863enable_gcov
fd1677e8 864enable_hardening
39fd3d4f
SJR
865enable_jbd_debug
866enable_blkid_debug
867enable_testio_debug
b9e66a18 868enable_developer_features
39fd3d4f
SJR
869enable_libuuid
870enable_libblkid
0afb9be6 871enable_subset
3df6014a 872enable_backtrace
39fd3d4f
SJR
873enable_debugfs
874enable_imager
875enable_resizer
8d9c50c5 876enable_defrag
39fd3d4f
SJR
877enable_fsck
878enable_e2initrd_helper
879enable_tls
bdcd5f22 880with_pthread
39fd3d4f 881enable_uuidd
d6a4bcb5 882enable_mmp
749f0712 883enable_tdb
1625bf42
TB
884enable_bmap_stats
885enable_bmap_stats_ops
39fd3d4f
SJR
886enable_nls
887with_gnu_ld
888enable_rpath
889with_libiconv_prefix
39fd3d4f 890with_libintl_prefix
81cbf1ef 891enable_fuse2fs
4aece328 892enable_lto
1c2a76ae 893enable_ubsan
5e666e3d 894enable_addrsan
bcca786b 895enable_threadsan
55e00a25 896with_multiarch
5ce368f0 897with_udev_rules_dir
a2df5894
DW
898with_crond_dir
899with_systemd_unit_dir
39fd3d4f 900'
e1052144
TT
901 ac_precious_vars='build_alias
902host_alias
903target_alias
904CC
905CFLAGS
906LDFLAGS
29a5deed 907LIBS
e1052144 908CPPFLAGS
14b596d4 909CPP
93613951
TT
910PKG_CONFIG
911PKG_CONFIG_PATH
5ce368f0
DW
912PKG_CONFIG_LIBDIR
913udev_CFLAGS
a2df5894
DW
914udev_LIBS
915systemd_CFLAGS
916systemd_LIBS'
e1052144 917
50e1e10f
TT
918
919# Initialize some variables set by options.
b0cacab0
TT
920ac_init_help=
921ac_init_version=false
39fd3d4f
SJR
922ac_unrecognized_opts=
923ac_unrecognized_sep=
50e1e10f
TT
924# The variables have the same names as the options, with
925# dashes changed to underlines.
b0cacab0 926cache_file=/dev/null
50e1e10f 927exec_prefix=NONE
50e1e10f 928no_create=
50e1e10f
TT
929no_recursion=
930prefix=NONE
931program_prefix=NONE
932program_suffix=NONE
933program_transform_name=s,x,x,
934silent=
935site=
936srcdir=
50e1e10f
TT
937verbose=
938x_includes=NONE
939x_libraries=NONE
b0cacab0
TT
940
941# Installation directory options.
942# These are left unexpanded so users can "make install exec_prefix=/foo"
943# and all the variables that are supposed to be based on exec_prefix
944# by default will actually change.
945# Use braces instead of parens because sh, perl, etc. also accept them.
e1052144 946# (The list follows the same order as the GNU Coding Standards.)
21c84b71
TT
947bindir='${exec_prefix}/bin'
948sbindir='${exec_prefix}/sbin'
949libexecdir='${exec_prefix}/libexec'
e1052144
TT
950datarootdir='${prefix}/share'
951datadir='${datarootdir}'
21c84b71
TT
952sysconfdir='${prefix}/etc'
953sharedstatedir='${prefix}/com'
954localstatedir='${prefix}/var'
2ab53829 955runstatedir='${localstatedir}/run'
21c84b71
TT
956includedir='${prefix}/include'
957oldincludedir='/usr/include'
e1052144
TT
958docdir='${datarootdir}/doc/${PACKAGE}'
959infodir='${datarootdir}/info'
960htmldir='${docdir}'
961dvidir='${docdir}'
962pdfdir='${docdir}'
963psdir='${docdir}'
964libdir='${exec_prefix}/lib'
965localedir='${datarootdir}/locale'
966mandir='${datarootdir}/man'
50e1e10f 967
50e1e10f 968ac_prev=
e1052144 969ac_dashdash=
50e1e10f
TT
970for ac_option
971do
50e1e10f
TT
972 # If the previous option needs an argument, assign it.
973 if test -n "$ac_prev"; then
e1052144 974 eval $ac_prev=\$ac_option
50e1e10f
TT
975 ac_prev=
976 continue
977 fi
978
e1052144 979 case $ac_option in
d6a4bcb5
TB
980 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
981 *=) ac_optarg= ;;
982 *) ac_optarg=yes ;;
e1052144 983 esac
50e1e10f
TT
984
985 # Accept the important Cygnus configure options, so we can diagnose typos.
986
e1052144
TT
987 case $ac_dashdash$ac_option in
988 --)
989 ac_dashdash=yes ;;
50e1e10f 990
21c84b71
TT
991 -bindir | --bindir | --bindi | --bind | --bin | --bi)
992 ac_prev=bindir ;;
993 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
b0cacab0 994 bindir=$ac_optarg ;;
21c84b71
TT
995
996 -build | --build | --buil | --bui | --bu)
b0cacab0 997 ac_prev=build_alias ;;
21c84b71 998 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
b0cacab0 999 build_alias=$ac_optarg ;;
50e1e10f
TT
1000
1001 -cache-file | --cache-file | --cache-fil | --cache-fi \
1002 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1003 ac_prev=cache_file ;;
1004 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1005 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
b0cacab0
TT
1006 cache_file=$ac_optarg ;;
1007
1008 --config-cache | -C)
1009 cache_file=config.cache ;;
50e1e10f 1010
e1052144 1011 -datadir | --datadir | --datadi | --datad)
21c84b71 1012 ac_prev=datadir ;;
e1052144 1013 -datadir=* | --datadir=* | --datadi=* | --datad=*)
b0cacab0 1014 datadir=$ac_optarg ;;
21c84b71 1015
e1052144
TT
1016 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1017 | --dataroo | --dataro | --datar)
1018 ac_prev=datarootdir ;;
1019 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1020 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1021 datarootdir=$ac_optarg ;;
1022
50e1e10f 1023 -disable-* | --disable-*)
39fd3d4f 1024 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
50e1e10f 1025 # Reject names that are not valid shell variable names.
39fd3d4f 1026 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d6a4bcb5 1027 as_fn_error $? "invalid feature name: $ac_useropt"
39fd3d4f
SJR
1028 ac_useropt_orig=$ac_useropt
1029 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1030 case $ac_user_opts in
1031 *"
1032"enable_$ac_useropt"
1033"*) ;;
1034 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1035 ac_unrecognized_sep=', ';;
1036 esac
1037 eval enable_$ac_useropt=no ;;
e1052144
TT
1038
1039 -docdir | --docdir | --docdi | --doc | --do)
1040 ac_prev=docdir ;;
1041 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1042 docdir=$ac_optarg ;;
1043
1044 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1045 ac_prev=dvidir ;;
1046 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1047 dvidir=$ac_optarg ;;
50e1e10f
TT
1048
1049 -enable-* | --enable-*)
39fd3d4f 1050 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
50e1e10f 1051 # Reject names that are not valid shell variable names.
39fd3d4f 1052 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d6a4bcb5 1053 as_fn_error $? "invalid feature name: $ac_useropt"
39fd3d4f
SJR
1054 ac_useropt_orig=$ac_useropt
1055 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1056 case $ac_user_opts in
1057 *"
1058"enable_$ac_useropt"
1059"*) ;;
1060 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1061 ac_unrecognized_sep=', ';;
1062 esac
1063 eval enable_$ac_useropt=\$ac_optarg ;;
50e1e10f
TT
1064
1065 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1066 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1067 | --exec | --exe | --ex)
1068 ac_prev=exec_prefix ;;
1069 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1070 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1071 | --exec=* | --exe=* | --ex=*)
b0cacab0 1072 exec_prefix=$ac_optarg ;;
50e1e10f
TT
1073
1074 -gas | --gas | --ga | --g)
1075 # Obsolete; use --with-gas.
1076 with_gas=yes ;;
1077
b0cacab0
TT
1078 -help | --help | --hel | --he | -h)
1079 ac_init_help=long ;;
1080 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1081 ac_init_help=recursive ;;
1082 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1083 ac_init_help=short ;;
50e1e10f
TT
1084
1085 -host | --host | --hos | --ho)
b0cacab0 1086 ac_prev=host_alias ;;
50e1e10f 1087 -host=* | --host=* | --hos=* | --ho=*)
b0cacab0 1088 host_alias=$ac_optarg ;;
50e1e10f 1089
e1052144
TT
1090 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1091 ac_prev=htmldir ;;
1092 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1093 | --ht=*)
1094 htmldir=$ac_optarg ;;
1095
21c84b71
TT
1096 -includedir | --includedir | --includedi | --included | --include \
1097 | --includ | --inclu | --incl | --inc)
1098 ac_prev=includedir ;;
1099 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1100 | --includ=* | --inclu=* | --incl=* | --inc=*)
b0cacab0 1101 includedir=$ac_optarg ;;
21c84b71
TT
1102
1103 -infodir | --infodir | --infodi | --infod | --info | --inf)
1104 ac_prev=infodir ;;
1105 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
b0cacab0 1106 infodir=$ac_optarg ;;
21c84b71
TT
1107
1108 -libdir | --libdir | --libdi | --libd)
1109 ac_prev=libdir ;;
1110 -libdir=* | --libdir=* | --libdi=* | --libd=*)
b0cacab0 1111 libdir=$ac_optarg ;;
21c84b71
TT
1112
1113 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1114 | --libexe | --libex | --libe)
1115 ac_prev=libexecdir ;;
1116 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1117 | --libexe=* | --libex=* | --libe=*)
b0cacab0 1118 libexecdir=$ac_optarg ;;
21c84b71 1119
e1052144
TT
1120 -localedir | --localedir | --localedi | --localed | --locale)
1121 ac_prev=localedir ;;
1122 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1123 localedir=$ac_optarg ;;
1124
21c84b71 1125 -localstatedir | --localstatedir | --localstatedi | --localstated \
e1052144 1126 | --localstate | --localstat | --localsta | --localst | --locals)
21c84b71
TT
1127 ac_prev=localstatedir ;;
1128 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
e1052144 1129 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
b0cacab0 1130 localstatedir=$ac_optarg ;;
21c84b71
TT
1131
1132 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1133 ac_prev=mandir ;;
1134 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
b0cacab0 1135 mandir=$ac_optarg ;;
21c84b71 1136
50e1e10f
TT
1137 -nfp | --nfp | --nf)
1138 # Obsolete; use --without-fp.
1139 with_fp=no ;;
1140
1141 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
b0cacab0 1142 | --no-cr | --no-c | -n)
50e1e10f
TT
1143 no_create=yes ;;
1144
1145 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1146 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1147 no_recursion=yes ;;
1148
21c84b71
TT
1149 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1150 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1151 | --oldin | --oldi | --old | --ol | --o)
1152 ac_prev=oldincludedir ;;
1153 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1154 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1155 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
b0cacab0 1156 oldincludedir=$ac_optarg ;;
21c84b71 1157
50e1e10f
TT
1158 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1159 ac_prev=prefix ;;
1160 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
b0cacab0 1161 prefix=$ac_optarg ;;
50e1e10f
TT
1162
1163 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1164 | --program-pre | --program-pr | --program-p)
1165 ac_prev=program_prefix ;;
1166 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1167 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
b0cacab0 1168 program_prefix=$ac_optarg ;;
50e1e10f
TT
1169
1170 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1171 | --program-suf | --program-su | --program-s)
1172 ac_prev=program_suffix ;;
1173 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1174 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
b0cacab0 1175 program_suffix=$ac_optarg ;;
50e1e10f
TT
1176
1177 -program-transform-name | --program-transform-name \
1178 | --program-transform-nam | --program-transform-na \
1179 | --program-transform-n | --program-transform- \
1180 | --program-transform | --program-transfor \
1181 | --program-transfo | --program-transf \
1182 | --program-trans | --program-tran \
1183 | --progr-tra | --program-tr | --program-t)
1184 ac_prev=program_transform_name ;;
1185 -program-transform-name=* | --program-transform-name=* \
1186 | --program-transform-nam=* | --program-transform-na=* \
1187 | --program-transform-n=* | --program-transform-=* \
1188 | --program-transform=* | --program-transfor=* \
1189 | --program-transfo=* | --program-transf=* \
1190 | --program-trans=* | --program-tran=* \
1191 | --progr-tra=* | --program-tr=* | --program-t=*)
b0cacab0 1192 program_transform_name=$ac_optarg ;;
50e1e10f 1193
e1052144
TT
1194 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1195 ac_prev=pdfdir ;;
1196 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1197 pdfdir=$ac_optarg ;;
1198
1199 -psdir | --psdir | --psdi | --psd | --ps)
1200 ac_prev=psdir ;;
1201 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1202 psdir=$ac_optarg ;;
1203
50e1e10f
TT
1204 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1205 | -silent | --silent | --silen | --sile | --sil)
1206 silent=yes ;;
1207
2ab53829
TT
1208 -runstatedir | --runstatedir | --runstatedi | --runstated \
1209 | --runstate | --runstat | --runsta | --runst | --runs \
1210 | --run | --ru | --r)
1211 ac_prev=runstatedir ;;
1212 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1213 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1214 | --run=* | --ru=* | --r=*)
1215 runstatedir=$ac_optarg ;;
1216
21c84b71
TT
1217 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1218 ac_prev=sbindir ;;
1219 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1220 | --sbi=* | --sb=*)
b0cacab0 1221 sbindir=$ac_optarg ;;
21c84b71
TT
1222
1223 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1224 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1225 | --sharedst | --shareds | --shared | --share | --shar \
1226 | --sha | --sh)
1227 ac_prev=sharedstatedir ;;
1228 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1229 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1230 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1231 | --sha=* | --sh=*)
b0cacab0 1232 sharedstatedir=$ac_optarg ;;
21c84b71 1233
50e1e10f
TT
1234 -site | --site | --sit)
1235 ac_prev=site ;;
1236 -site=* | --site=* | --sit=*)
b0cacab0 1237 site=$ac_optarg ;;
50e1e10f
TT
1238
1239 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1240 ac_prev=srcdir ;;
1241 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
b0cacab0 1242 srcdir=$ac_optarg ;;
50e1e10f 1243
21c84b71
TT
1244 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1245 | --syscon | --sysco | --sysc | --sys | --sy)
1246 ac_prev=sysconfdir ;;
1247 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1248 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
b0cacab0 1249 sysconfdir=$ac_optarg ;;
21c84b71 1250
50e1e10f 1251 -target | --target | --targe | --targ | --tar | --ta | --t)
b0cacab0 1252 ac_prev=target_alias ;;
50e1e10f 1253 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
b0cacab0 1254 target_alias=$ac_optarg ;;
50e1e10f
TT
1255
1256 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1257 verbose=yes ;;
1258
b0cacab0
TT
1259 -version | --version | --versio | --versi | --vers | -V)
1260 ac_init_version=: ;;
50e1e10f
TT
1261
1262 -with-* | --with-*)
39fd3d4f 1263 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
50e1e10f 1264 # Reject names that are not valid shell variable names.
39fd3d4f 1265 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d6a4bcb5 1266 as_fn_error $? "invalid package name: $ac_useropt"
39fd3d4f
SJR
1267 ac_useropt_orig=$ac_useropt
1268 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1269 case $ac_user_opts in
1270 *"
1271"with_$ac_useropt"
1272"*) ;;
1273 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1274 ac_unrecognized_sep=', ';;
1275 esac
1276 eval with_$ac_useropt=\$ac_optarg ;;
50e1e10f
TT
1277
1278 -without-* | --without-*)
39fd3d4f 1279 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
50e1e10f 1280 # Reject names that are not valid shell variable names.
39fd3d4f 1281 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d6a4bcb5 1282 as_fn_error $? "invalid package name: $ac_useropt"
39fd3d4f
SJR
1283 ac_useropt_orig=$ac_useropt
1284 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1285 case $ac_user_opts in
1286 *"
1287"with_$ac_useropt"
1288"*) ;;
1289 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1290 ac_unrecognized_sep=', ';;
1291 esac
1292 eval with_$ac_useropt=no ;;
50e1e10f
TT
1293
1294 --x)
1295 # Obsolete; use --with-x.
1296 with_x=yes ;;
1297
1298 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1299 | --x-incl | --x-inc | --x-in | --x-i)
1300 ac_prev=x_includes ;;
1301 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1302 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
b0cacab0 1303 x_includes=$ac_optarg ;;
50e1e10f
TT
1304
1305 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1306 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1307 ac_prev=x_libraries ;;
1308 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1309 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
b0cacab0 1310 x_libraries=$ac_optarg ;;
50e1e10f 1311
d6a4bcb5
TB
1312 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1313Try \`$0 --help' for more information"
50e1e10f
TT
1314 ;;
1315
b0cacab0
TT
1316 *=*)
1317 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1318 # Reject names that are not valid shell variable names.
57aa50d4
TT
1319 case $ac_envvar in #(
1320 '' | [0-9]* | *[!_$as_cr_alnum]* )
d6a4bcb5 1321 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
57aa50d4 1322 esac
e1052144 1323 eval $ac_envvar=\$ac_optarg
b0cacab0
TT
1324 export $ac_envvar ;;
1325
21c84b71 1326 *)
b0cacab0 1327 # FIXME: should be removed in autoconf 3.0.
39fd3d4f 1328 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
b0cacab0 1329 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
39fd3d4f 1330 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
d6a4bcb5 1331 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
50e1e10f
TT
1332 ;;
1333
1334 esac
1335done
1336
1337if test -n "$ac_prev"; then
b0cacab0 1338 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
d6a4bcb5 1339 as_fn_error $? "missing argument to $ac_option"
50e1e10f 1340fi
50e1e10f 1341
39fd3d4f
SJR
1342if test -n "$ac_unrecognized_opts"; then
1343 case $enable_option_checking in
1344 no) ;;
d6a4bcb5 1345 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
39fd3d4f
SJR
1346 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1347 esac
1348fi
1349
1350# Check all directory arguments for consistency.
e1052144
TT
1351for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1352 datadir sysconfdir sharedstatedir localstatedir includedir \
1353 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2ab53829 1354 libdir localedir mandir runstatedir
50e1e10f 1355do
e1052144 1356 eval ac_val=\$$ac_var
39fd3d4f
SJR
1357 # Remove trailing slashes.
1358 case $ac_val in
1359 */ )
1360 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1361 eval $ac_var=\$ac_val;;
1362 esac
1363 # Be sure to have absolute directory names.
b0cacab0 1364 case $ac_val in
e1052144
TT
1365 [\\/$]* | ?:[\\/]* ) continue;;
1366 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
50e1e10f 1367 esac
d6a4bcb5 1368 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
50e1e10f
TT
1369done
1370
b0cacab0
TT
1371# There might be people who depend on the old broken behavior: `$host'
1372# used to hold the argument of --host etc.
1373# FIXME: To remove some day.
1374build=$build_alias
1375host=$host_alias
1376target=$target_alias
1377
1378# FIXME: To remove some day.
1379if test "x$host_alias" != x; then
1380 if test "x$build_alias" = x; then
1381 cross_compiling=maybe
b0cacab0
TT
1382 elif test "x$build_alias" != "x$host_alias"; then
1383 cross_compiling=yes
1384 fi
1385fi
50e1e10f 1386
b0cacab0
TT
1387ac_tool_prefix=
1388test -n "$host_alias" && ac_tool_prefix=$host_alias-
1389
1390test "$silent" = yes && exec 6>/dev/null
50e1e10f 1391
50e1e10f 1392
e1052144
TT
1393ac_pwd=`pwd` && test -n "$ac_pwd" &&
1394ac_ls_di=`ls -di .` &&
1395ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
d6a4bcb5 1396 as_fn_error $? "working directory cannot be determined"
e1052144 1397test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
d6a4bcb5 1398 as_fn_error $? "pwd does not report name of working directory"
e1052144
TT
1399
1400
50e1e10f
TT
1401# Find the source files, if location was not specified.
1402if test -z "$srcdir"; then
1403 ac_srcdir_defaulted=yes
e1052144 1404 # Try the directory containing this script, then the parent directory.
39fd3d4f
SJR
1405 ac_confdir=`$as_dirname -- "$as_myself" ||
1406$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1407 X"$as_myself" : 'X\(//\)[^/]' \| \
1408 X"$as_myself" : 'X\(//\)$' \| \
1409 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1410$as_echo X"$as_myself" |
e1052144
TT
1411 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1412 s//\1/
1413 q
1414 }
1415 /^X\(\/\/\)[^/].*/{
1416 s//\1/
1417 q
1418 }
1419 /^X\(\/\/\)$/{
1420 s//\1/
1421 q
1422 }
1423 /^X\(\/\).*/{
1424 s//\1/
1425 q
1426 }
1427 s/.*/./; q'`
50e1e10f 1428 srcdir=$ac_confdir
e1052144 1429 if test ! -r "$srcdir/$ac_unique_file"; then
50e1e10f
TT
1430 srcdir=..
1431 fi
1432else
1433 ac_srcdir_defaulted=no
1434fi
e1052144
TT
1435if test ! -r "$srcdir/$ac_unique_file"; then
1436 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
d6a4bcb5 1437 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
50e1e10f 1438fi
e1052144
TT
1439ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1440ac_abs_confdir=`(
d6a4bcb5 1441 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
e1052144
TT
1442 pwd)`
1443# When building in place, set srcdir=.
1444if test "$ac_abs_confdir" = "$ac_pwd"; then
1445 srcdir=.
1446fi
1447# Remove unnecessary trailing slashes from srcdir.
1448# Double slashes in file names in object file debugging info
1449# mess up M-x gdb in Emacs.
1450case $srcdir in
1451*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1452esac
1453for ac_var in $ac_precious_vars; do
1454 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1455 eval ac_env_${ac_var}_value=\$${ac_var}
1456 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1457 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1458done
b0cacab0
TT
1459
1460#
1461# Report the --help message.
1462#
1463if test "$ac_init_help" = "long"; then
1464 # Omit some internal or obsolete options to make the list less imposing.
1465 # This message is too long to be a string in the A/UX 3.1 sh.
1466 cat <<_ACEOF
1467\`configure' configures this package to adapt to many kinds of systems.
1468
1469Usage: $0 [OPTION]... [VAR=VALUE]...
1470
1471To assign environment variables (e.g., CC, CFLAGS...), specify them as
1472VAR=VALUE. See below for descriptions of some of the useful variables.
1473
1474Defaults for the options are specified in brackets.
1475
1476Configuration:
1477 -h, --help display this help and exit
1478 --help=short display options specific to this package
1479 --help=recursive display the short help of all the included packages
1480 -V, --version display version information and exit
d6a4bcb5 1481 -q, --quiet, --silent do not print \`checking ...' messages
b0cacab0
TT
1482 --cache-file=FILE cache test results in FILE [disabled]
1483 -C, --config-cache alias for \`--cache-file=config.cache'
1484 -n, --no-create do not create output files
1485 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1486
b0cacab0
TT
1487Installation directories:
1488 --prefix=PREFIX install architecture-independent files in PREFIX
39fd3d4f 1489 [$ac_default_prefix]
b0cacab0 1490 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
39fd3d4f 1491 [PREFIX]
b0cacab0
TT
1492
1493By default, \`make install' will install all the files in
1494\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1495an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1496for instance \`--prefix=\$HOME'.
1497
1498For better control, use the options below.
1499
1500Fine tuning of the installation directories:
39fd3d4f
SJR
1501 --bindir=DIR user executables [EPREFIX/bin]
1502 --sbindir=DIR system admin executables [EPREFIX/sbin]
1503 --libexecdir=DIR program executables [EPREFIX/libexec]
1504 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1505 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1506 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2ab53829 1507 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
39fd3d4f
SJR
1508 --libdir=DIR object code libraries [EPREFIX/lib]
1509 --includedir=DIR C header files [PREFIX/include]
1510 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1511 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1512 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1513 --infodir=DIR info documentation [DATAROOTDIR/info]
1514 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1515 --mandir=DIR man documentation [DATAROOTDIR/man]
1516 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1517 --htmldir=DIR html documentation [DOCDIR]
1518 --dvidir=DIR dvi documentation [DOCDIR]
1519 --pdfdir=DIR pdf documentation [DOCDIR]
1520 --psdir=DIR ps documentation [DOCDIR]
b0cacab0
TT
1521_ACEOF
1522
1523 cat <<\_ACEOF
1524
1525System types:
1526 --build=BUILD configure for building on BUILD [guessed]
1527 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1528_ACEOF
1529fi
1530
1531if test -n "$ac_init_help"; then
1532
1533 cat <<\_ACEOF
1534
1535Optional Features:
39fd3d4f 1536 --disable-option-checking ignore unrecognized --enable/--with options
b0cacab0
TT
1537 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1538 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
8c9e2921
TT
1539 --enable-maintainer-mode
1540 enable makefile rules useful for maintainers
1541 --enable-symlink-install
1542 use symlinks when installing instead of hard links
1543 --enable-relative-symlinks
1544 use relative symlinks when installing
91d11da1 1545
5aa6c3f6 1546 --enable-symlink-build use symlinks while building instead of hard links
8c9e2921
TT
1547 --enable-verbose-makecmds
1548 enable verbose make command output
1549 --enable-elf-shlibs select ELF shared libraries
1550 --enable-bsd-shlibs select BSD shared libraries
1551 --enable-profile build profiling libraries
1552 --enable-gcov build for coverage testing using gcov
1553 --enable-hardening build for coverage testing using gcov
1554 --enable-jbd-debug enable journal debugging
b0cacab0 1555 --enable-blkid-debug enable blkid debugging
8c9e2921
TT
1556 --disable-testio-debug disable the use of the test I/O manager for
1557 debugging
1558 --enable-developer-features
1559 enable features for use by ext4 developers
1560 --enable-libuuid build and use private uuid library
1561 --enable-libblkid build and use private blkid library
1562 --enable-subset enable subset-only build
1563 --disable-backtrace disable use backtrace
1564 --disable-debugfs disable support of debugfs program
1565 --disable-imager disable support of e2image program
1566 --disable-resizer disable support of e2resize program
1567 --disable-defrag disable support of e4defrag program
b0cacab0 1568 --enable-fsck build fsck wrapper program
8c9e2921
TT
1569 --enable-e2initrd-helper
1570 build e2initrd-helper program
3249394d 1571 --disable-tls disable use of thread local support
5610f992 1572 --disable-uuidd disable building the uuid daemon
d6a4bcb5 1573 --disable-mmp disable support mmp, Multi Mount Protection
749f0712 1574 --disable-tdb disable tdb support
8c9e2921 1575 --disable-bmap-stats disable collection of bitmap stats
1625bf42 1576 --enable-bmap-stats-ops enable collection of additional bitmap stats
b0cacab0
TT
1577 --disable-nls do not use Native Language Support
1578 --disable-rpath do not hardcode runtime library paths
8c9e2921
TT
1579 --disable-fuse2fs do not build fuse2fs
1580 --enable-lto enable link time optimization
1581 --enable-ubsan enable undefined behavior sanitizer
1582 --enable-addrsan enable address sanitizer
1583 --enable-threadsan enable thread sanitizer
b0cacab0
TT
1584
1585Optional Packages:
1586 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1587 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
3249394d 1588 --with-diet-libc use diet libc
0b5b9f90
TT
1589 --with-cc no longer supported, use CC= instead
1590 --with-ccopts no longer supported, use CFLAGS= instead
1591 --with-ldopts no longer supported, use LDFLAGS= instead
8c9e2921
TT
1592 --with-root-prefix=PREFIX
1593 override prefix variable for files to be placed in
1594 the root
bdcd5f22 1595 --without-pthread disable use of pthread support
93613951 1596 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
b0cacab0
TT
1597 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1598 --without-libiconv-prefix don't search for libiconv in includedir and libdir
b0cacab0
TT
1599 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1600 --without-libintl-prefix don't search for libintl in includedir and libdir
8c9e2921 1601 --with-multiarch=ARCH specify the multiarch triplet
5ce368f0
DW
1602 --with-udev-rules-dir[=DIR]
1603 Install udev rules into DIR.
a2df5894
DW
1604 --with-crond-dir[=DIR] Install system crontabs into DIR.
1605 --with-systemd-unit-dir[=DIR]
1606 Install systemd system units into DIR.
b0cacab0
TT
1607
1608Some influential environment variables:
1609 CC C compiler command
1610 CFLAGS C compiler flags
1611 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1612 nonstandard directory <lib dir>
29a5deed 1613 LIBS libraries to pass to the linker, e.g. -l<library>
61ef2474 1614 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
e1052144 1615 you have headers in a nonstandard directory <include dir>
b0cacab0 1616 CPP C preprocessor
14b596d4 1617 PKG_CONFIG path to pkg-config utility
93613951
TT
1618 PKG_CONFIG_PATH
1619 directories to add to pkg-config's search path
1620 PKG_CONFIG_LIBDIR
1621 path overriding pkg-config's built-in search path
5ce368f0
DW
1622 udev_CFLAGS C compiler flags for udev, overriding pkg-config
1623 udev_LIBS linker flags for udev, overriding pkg-config
a2df5894
DW
1624 systemd_CFLAGS
1625 C compiler flags for systemd, overriding pkg-config
1626 systemd_LIBS
1627 linker flags for systemd, overriding pkg-config
b0cacab0
TT
1628
1629Use these variables to override the choices made by `configure' or to help
1630it to find libraries and programs with nonstandard names/locations.
1631
57aa50d4 1632Report bugs to the package provider.
b0cacab0 1633_ACEOF
e1052144 1634ac_status=$?
b0cacab0
TT
1635fi
1636
1637if test "$ac_init_help" = "recursive"; then
1638 # If there are subdirs, report their specific --help.
b0cacab0 1639 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
39fd3d4f
SJR
1640 test -d "$ac_dir" ||
1641 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1642 continue
b0cacab0
TT
1643 ac_builddir=.
1644
e1052144
TT
1645case "$ac_dir" in
1646.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1647*)
39fd3d4f 1648 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
e1052144 1649 # A ".." for each directory in $ac_dir_suffix.
39fd3d4f 1650 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
e1052144
TT
1651 case $ac_top_builddir_sub in
1652 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1653 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1654 esac ;;
1655esac
1656ac_abs_top_builddir=$ac_pwd
1657ac_abs_builddir=$ac_pwd$ac_dir_suffix
1658# for backward compatibility:
1659ac_top_builddir=$ac_top_build_prefix
b0cacab0
TT
1660
1661case $srcdir in
e1052144 1662 .) # We are building in place.
b0cacab0 1663 ac_srcdir=.
e1052144
TT
1664 ac_top_srcdir=$ac_top_builddir_sub
1665 ac_abs_top_srcdir=$ac_pwd ;;
1666 [\\/]* | ?:[\\/]* ) # Absolute name.
b0cacab0 1667 ac_srcdir=$srcdir$ac_dir_suffix;
e1052144
TT
1668 ac_top_srcdir=$srcdir
1669 ac_abs_top_srcdir=$srcdir ;;
1670 *) # Relative name.
1671 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1672 ac_top_srcdir=$ac_top_build_prefix$srcdir
1673 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b0cacab0 1674esac
e1052144
TT
1675ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1676
1677 cd "$ac_dir" || { ac_status=$?; continue; }
1678 # Check for guested configure.
1679 if test -f "$ac_srcdir/configure.gnu"; then
1680 echo &&
1681 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1682 elif test -f "$ac_srcdir/configure"; then
1683 echo &&
1684 $SHELL "$ac_srcdir/configure" --help=recursive
b0cacab0 1685 else
39fd3d4f 1686 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
e1052144
TT
1687 fi || ac_status=$?
1688 cd "$ac_pwd" || { ac_status=$?; break; }
b0cacab0
TT
1689 done
1690fi
1691
e1052144 1692test -n "$ac_init_help" && exit $ac_status
b0cacab0
TT
1693if $ac_init_version; then
1694 cat <<\_ACEOF
e1052144 1695configure
d6a4bcb5 1696generated by GNU Autoconf 2.69
b0cacab0 1697
d6a4bcb5 1698Copyright (C) 2012 Free Software Foundation, Inc.
b0cacab0
TT
1699This configure script is free software; the Free Software Foundation
1700gives unlimited permission to copy, distribute and modify it.
1701_ACEOF
e1052144 1702 exit
b0cacab0 1703fi
b0cacab0 1704
57aa50d4
TT
1705## ------------------------ ##
1706## Autoconf initialization. ##
1707## ------------------------ ##
b0cacab0 1708
57aa50d4
TT
1709# ac_fn_c_try_compile LINENO
1710# --------------------------
1711# Try to compile conftest.$ac_ext, and return whether this succeeded.
1712ac_fn_c_try_compile ()
1713{
1714 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1715 rm -f conftest.$ac_objext
1716 if { { ac_try="$ac_compile"
1717case "(($ac_try" in
1718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1719 *) ac_try_echo=$ac_try;;
1720esac
1721eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1722$as_echo "$ac_try_echo"; } >&5
1723 (eval "$ac_compile") 2>conftest.err
1724 ac_status=$?
1725 if test -s conftest.err; then
1726 grep -v '^ *+' conftest.err >conftest.er1
1727 cat conftest.er1 >&5
1728 mv -f conftest.er1 conftest.err
1729 fi
1730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1731 test $ac_status = 0; } && {
1732 test -z "$ac_c_werror_flag" ||
1733 test ! -s conftest.err
1734 } && test -s conftest.$ac_objext; then :
1735 ac_retval=0
1736else
1737 $as_echo "$as_me: failed program was:" >&5
1738sed 's/^/| /' conftest.$ac_ext >&5
b0cacab0 1739
57aa50d4
TT
1740 ac_retval=1
1741fi
d6a4bcb5 1742 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
61ef2474 1743 as_fn_set_status $ac_retval
57aa50d4
TT
1744
1745} # ac_fn_c_try_compile
1746
1747# ac_fn_c_try_link LINENO
1748# -----------------------
1749# Try to link conftest.$ac_ext, and return whether this succeeded.
1750ac_fn_c_try_link ()
b0cacab0 1751{
57aa50d4
TT
1752 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1753 rm -f conftest.$ac_objext conftest$ac_exeext
1754 if { { ac_try="$ac_link"
1755case "(($ac_try" in
1756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1757 *) ac_try_echo=$ac_try;;
1758esac
1759eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1760$as_echo "$ac_try_echo"; } >&5
1761 (eval "$ac_link") 2>conftest.err
1762 ac_status=$?
1763 if test -s conftest.err; then
1764 grep -v '^ *+' conftest.err >conftest.er1
1765 cat conftest.er1 >&5
1766 mv -f conftest.er1 conftest.err
1767 fi
1768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1769 test $ac_status = 0; } && {
1770 test -z "$ac_c_werror_flag" ||
1771 test ! -s conftest.err
1772 } && test -s conftest$ac_exeext && {
1773 test "$cross_compiling" = yes ||
d6a4bcb5 1774 test -x conftest$ac_exeext
57aa50d4
TT
1775 }; then :
1776 ac_retval=0
1777else
1778 $as_echo "$as_me: failed program was:" >&5
1779sed 's/^/| /' conftest.$ac_ext >&5
b0cacab0 1780
57aa50d4
TT
1781 ac_retval=1
1782fi
1783 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1784 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1785 # interfere with the next link command; also delete a directory that is
1786 # left behind by Apple's compiler. We do this before executing the actions.
1787 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d6a4bcb5 1788 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
61ef2474 1789 as_fn_set_status $ac_retval
b0cacab0 1790
57aa50d4 1791} # ac_fn_c_try_link
b0cacab0 1792
57aa50d4
TT
1793# ac_fn_c_try_cpp LINENO
1794# ----------------------
1795# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1796ac_fn_c_try_cpp ()
1797{
1798 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1799 if { { ac_try="$ac_cpp conftest.$ac_ext"
1800case "(($ac_try" in
1801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1802 *) ac_try_echo=$ac_try;;
1803esac
1804eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1805$as_echo "$ac_try_echo"; } >&5
1806 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1807 ac_status=$?
1808 if test -s conftest.err; then
1809 grep -v '^ *+' conftest.err >conftest.er1
1810 cat conftest.er1 >&5
1811 mv -f conftest.er1 conftest.err
1812 fi
1813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d6a4bcb5 1814 test $ac_status = 0; } > conftest.i && {
57aa50d4
TT
1815 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1816 test ! -s conftest.err
1817 }; then :
1818 ac_retval=0
1819else
1820 $as_echo "$as_me: failed program was:" >&5
1821sed 's/^/| /' conftest.$ac_ext >&5
b0cacab0 1822
57aa50d4
TT
1823 ac_retval=1
1824fi
d6a4bcb5 1825 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
61ef2474 1826 as_fn_set_status $ac_retval
b0cacab0 1827
57aa50d4 1828} # ac_fn_c_try_cpp
b0cacab0 1829
93613951
TT
1830# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1831# -------------------------------------------------------
1832# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1833# the include files in INCLUDES and setting the cache variable VAR
1834# accordingly.
1835ac_fn_c_check_header_mongrel ()
1836{
1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838 if eval \${$3+:} false; then :
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1840$as_echo_n "checking for $2... " >&6; }
1841if eval \${$3+:} false; then :
1842 $as_echo_n "(cached) " >&6
1843fi
1844eval ac_res=\$$3
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1846$as_echo "$ac_res" >&6; }
1847else
1848 # Is the header compilable?
1849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1850$as_echo_n "checking $2 usability... " >&6; }
1851cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1852/* end confdefs.h. */
1853$4
1854#include <$2>
1855_ACEOF
1856if ac_fn_c_try_compile "$LINENO"; then :
1857 ac_header_compiler=yes
1858else
1859 ac_header_compiler=no
1860fi
1861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1863$as_echo "$ac_header_compiler" >&6; }
1864
1865# Is the header present?
1866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1867$as_echo_n "checking $2 presence... " >&6; }
1868cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1869/* end confdefs.h. */
1870#include <$2>
1871_ACEOF
1872if ac_fn_c_try_cpp "$LINENO"; then :
1873 ac_header_preproc=yes
1874else
1875 ac_header_preproc=no
1876fi
1877rm -f conftest.err conftest.i conftest.$ac_ext
1878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1879$as_echo "$ac_header_preproc" >&6; }
1880
1881# So? What about this header?
1882case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1883 yes:no: )
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1885$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1887$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1888 ;;
1889 no:yes:* )
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1891$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1893$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1895$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1897$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1899$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1900 ;;
1901esac
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1903$as_echo_n "checking for $2... " >&6; }
1904if eval \${$3+:} false; then :
1905 $as_echo_n "(cached) " >&6
1906else
1907 eval "$3=\$ac_header_compiler"
1908fi
1909eval ac_res=\$$3
1910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1911$as_echo "$ac_res" >&6; }
1912fi
1913 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1914
1915} # ac_fn_c_check_header_mongrel
1916
57aa50d4
TT
1917# ac_fn_c_try_run LINENO
1918# ----------------------
1919# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1920# that executables *can* be run.
1921ac_fn_c_try_run ()
1922{
1923 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924 if { { ac_try="$ac_link"
1925case "(($ac_try" in
1926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1927 *) ac_try_echo=$ac_try;;
1928esac
1929eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1930$as_echo "$ac_try_echo"; } >&5
1931 (eval "$ac_link") 2>&5
1932 ac_status=$?
1933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1934 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1935 { { case "(($ac_try" in
1936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1937 *) ac_try_echo=$ac_try;;
1938esac
1939eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1940$as_echo "$ac_try_echo"; } >&5
1941 (eval "$ac_try") 2>&5
1942 ac_status=$?
1943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1944 test $ac_status = 0; }; }; then :
1945 ac_retval=0
1946else
1947 $as_echo "$as_me: program exited with status $ac_status" >&5
1948 $as_echo "$as_me: failed program was:" >&5
1949sed 's/^/| /' conftest.$ac_ext >&5
b0cacab0 1950
57aa50d4
TT
1951 ac_retval=$ac_status
1952fi
1953 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d6a4bcb5 1954 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
61ef2474 1955 as_fn_set_status $ac_retval
b0cacab0 1956
57aa50d4 1957} # ac_fn_c_try_run
b0cacab0 1958
93613951
TT
1959# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1960# -------------------------------------------------------
1961# Tests whether HEADER exists and can be compiled using the include files in
1962# INCLUDES, setting the cache variable VAR accordingly.
1963ac_fn_c_check_header_compile ()
1964{
1965 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1967$as_echo_n "checking for $2... " >&6; }
1968if eval \${$3+:} false; then :
1969 $as_echo_n "(cached) " >&6
1970else
1971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1972/* end confdefs.h. */
1973$4
1974#include <$2>
1975_ACEOF
1976if ac_fn_c_try_compile "$LINENO"; then :
1977 eval "$3=yes"
1978else
1979 eval "$3=no"
1980fi
1981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1982fi
1983eval ac_res=\$$3
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1985$as_echo "$ac_res" >&6; }
1986 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1987
1988} # ac_fn_c_check_header_compile
1989
57aa50d4
TT
1990# ac_fn_c_check_func LINENO FUNC VAR
1991# ----------------------------------
1992# Tests whether FUNC exists, setting the cache variable VAR accordingly
1993ac_fn_c_check_func ()
1994{
1995 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1997$as_echo_n "checking for $2... " >&6; }
d6a4bcb5 1998if eval \${$3+:} false; then :
57aa50d4
TT
1999 $as_echo_n "(cached) " >&6
2000else
2001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2002/* end confdefs.h. */
2003/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2004 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2005#define $2 innocuous_$2
b0cacab0 2006
57aa50d4
TT
2007/* System header to define __stub macros and hopefully few prototypes,
2008 which can conflict with char $2 (); below.
2009 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2010 <limits.h> exists even on freestanding compilers. */
b0cacab0 2011
57aa50d4
TT
2012#ifdef __STDC__
2013# include <limits.h>
2014#else
2015# include <assert.h>
2016#endif
a04eba3f 2017
57aa50d4 2018#undef $2
07a0db15 2019
57aa50d4
TT
2020/* Override any GCC internal prototype to avoid an error.
2021 Use char because int might match the return type of a GCC
2022 builtin and then its argument prototype would still apply. */
2023#ifdef __cplusplus
2024extern "C"
2025#endif
2026char $2 ();
2027/* The GNU C library defines this for functions which it implements
2028 to always fail with ENOSYS. Some functions are actually named
2029 something starting with __ and the normal name is an alias. */
2030#if defined __stub_$2 || defined __stub___$2
2031choke me
2032#endif
74becf3c 2033
57aa50d4
TT
2034int
2035main ()
2036{
2037return $2 ();
2038 ;
2039 return 0;
2040}
2041_ACEOF
2042if ac_fn_c_try_link "$LINENO"; then :
2043 eval "$3=yes"
2044else
2045 eval "$3=no"
2046fi
2047rm -f core conftest.err conftest.$ac_objext \
2048 conftest$ac_exeext conftest.$ac_ext
2049fi
2050eval ac_res=\$$3
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2052$as_echo "$ac_res" >&6; }
d6a4bcb5 2053 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
93636bde 2054
57aa50d4 2055} # ac_fn_c_check_func
93636bde 2056
e598c29b
TT
2057# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2058# ----------------------------------------------------
2059# Tries to find if the field MEMBER exists in type AGGR, after including
2060# INCLUDES, setting cache variable VAR accordingly.
2061ac_fn_c_check_member ()
2062{
2063 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2065$as_echo_n "checking for $2.$3... " >&6; }
2066if eval \${$4+:} false; then :
2067 $as_echo_n "(cached) " >&6
2068else
2069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2070/* end confdefs.h. */
2071$5
2072int
2073main ()
2074{
2075static $2 ac_aggr;
2076if (ac_aggr.$3)
2077return 0;
2078 ;
2079 return 0;
2080}
2081_ACEOF
2082if ac_fn_c_try_compile "$LINENO"; then :
2083 eval "$4=yes"
2084else
2085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2086/* end confdefs.h. */
2087$5
2088int
2089main ()
2090{
2091static $2 ac_aggr;
2092if (sizeof ac_aggr.$3)
2093return 0;
2094 ;
2095 return 0;
2096}
2097_ACEOF
2098if ac_fn_c_try_compile "$LINENO"; then :
2099 eval "$4=yes"
2100else
2101 eval "$4=no"
2102fi
2103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2104fi
2105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2106fi
2107eval ac_res=\$$4
2108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2109$as_echo "$ac_res" >&6; }
2110 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2111
2112} # ac_fn_c_check_member
2113
2114# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2115# -------------------------------------------
2116# Tests whether TYPE exists after having included INCLUDES, setting cache
2117# variable VAR accordingly.
2118ac_fn_c_check_type ()
2119{
2120 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2122$as_echo_n "checking for $2... " >&6; }
2123if eval \${$3+:} false; then :
2124 $as_echo_n "(cached) " >&6
2125else
2126 eval "$3=no"
2127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2128/* end confdefs.h. */
2129$4
2130int
2131main ()
2132{
2133if (sizeof ($2))
2134 return 0;
2135 ;
2136 return 0;
2137}
2138_ACEOF
2139if ac_fn_c_try_compile "$LINENO"; then :
2140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2141/* end confdefs.h. */
2142$4
2143int
2144main ()
2145{
2146if (sizeof (($2)))
2147 return 0;
2148 ;
2149 return 0;
2150}
2151_ACEOF
2152if ac_fn_c_try_compile "$LINENO"; then :
2153
2154else
2155 eval "$3=yes"
2156fi
2157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2158fi
2159rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2160fi
2161eval ac_res=\$$3
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2163$as_echo "$ac_res" >&6; }
2164 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2165
2166} # ac_fn_c_check_type
2167
93613951
TT
2168# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2169# ---------------------------------------------
2170# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
d1154eb4 2171# accordingly.
93613951 2172ac_fn_c_check_decl ()
d1154eb4
TT
2173{
2174 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
93613951
TT
2175 as_decl_name=`echo $2|sed 's/ *(.*//'`
2176 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2178$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
d6a4bcb5 2179if eval \${$3+:} false; then :
d1154eb4 2180 $as_echo_n "(cached) " >&6
d1154eb4 2181else
93613951 2182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d1154eb4
TT
2183/* end confdefs.h. */
2184$4
93613951
TT
2185int
2186main ()
2187{
2188#ifndef $as_decl_name
2189#ifdef __cplusplus
2190 (void) $as_decl_use;
2191#else
2192 (void) $as_decl_name;
2193#endif
2194#endif
2195
2196 ;
2197 return 0;
2198}
d1154eb4
TT
2199_ACEOF
2200if ac_fn_c_try_compile "$LINENO"; then :
93613951 2201 eval "$3=yes"
d1154eb4 2202else
93613951 2203 eval "$3=no"
d1154eb4
TT
2204fi
2205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d1154eb4
TT
2206fi
2207eval ac_res=\$$3
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2209$as_echo "$ac_res" >&6; }
d6a4bcb5 2210 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
d1154eb4 2211
93613951 2212} # ac_fn_c_check_decl
d1154eb4 2213
57aa50d4
TT
2214# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2215# --------------------------------------------
2216# Tries to find the compile-time value of EXPR in a program that includes
2217# INCLUDES, setting VAR accordingly. Returns whether the value could be
2218# computed
2219ac_fn_c_compute_int ()
2220{
2221 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2222 if test "$cross_compiling" = yes; then
2223 # Depending upon the size, compute the lo and hi bounds.
2224cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2225/* end confdefs.h. */
2226$4
2227int
2228main ()
2229{
2230static int test_array [1 - 2 * !(($2) >= 0)];
d6a4bcb5
TB
2231test_array [0] = 0;
2232return test_array [0];
93636bde 2233
57aa50d4
TT
2234 ;
2235 return 0;
2236}
2237_ACEOF
2238if ac_fn_c_try_compile "$LINENO"; then :
2239 ac_lo=0 ac_mid=0
2240 while :; do
2241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2242/* end confdefs.h. */
2243$4
2244int
2245main ()
2246{
2247static int test_array [1 - 2 * !(($2) <= $ac_mid)];
d6a4bcb5
TB
2248test_array [0] = 0;
2249return test_array [0];
93636bde 2250
57aa50d4
TT
2251 ;
2252 return 0;
2253}
2254_ACEOF
2255if ac_fn_c_try_compile "$LINENO"; then :
2256 ac_hi=$ac_mid; break
2257else
2258 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2259 if test $ac_lo -le $ac_mid; then
2260 ac_lo= ac_hi=
2261 break
2262 fi
2263 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
b0cacab0 2264fi
57aa50d4
TT
2265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2266 done
2267else
2268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2269/* end confdefs.h. */
2270$4
2271int
2272main ()
2273{
2274static int test_array [1 - 2 * !(($2) < 0)];
d6a4bcb5
TB
2275test_array [0] = 0;
2276return test_array [0];
e1052144 2277
57aa50d4
TT
2278 ;
2279 return 0;
2280}
2281_ACEOF
2282if ac_fn_c_try_compile "$LINENO"; then :
2283 ac_hi=-1 ac_mid=-1
2284 while :; do
2285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2286/* end confdefs.h. */
2287$4
2288int
2289main ()
2290{
2291static int test_array [1 - 2 * !(($2) >= $ac_mid)];
d6a4bcb5
TB
2292test_array [0] = 0;
2293return test_array [0];
93636bde 2294
57aa50d4
TT
2295 ;
2296 return 0;
2297}
2298_ACEOF
2299if ac_fn_c_try_compile "$LINENO"; then :
2300 ac_lo=$ac_mid; break
93636bde 2301else
57aa50d4
TT
2302 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2303 if test $ac_mid -le $ac_hi; then
2304 ac_lo= ac_hi=
2305 break
2306 fi
2307 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
93636bde 2308fi
57aa50d4
TT
2309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2310 done
2311else
2312 ac_lo= ac_hi=
2313fi
2314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2315fi
2316rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2317# Binary search between lo and hi bounds.
2318while test "x$ac_lo" != "x$ac_hi"; do
2319 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2321/* end confdefs.h. */
2322$4
2323int
2324main ()
2325{
2326static int test_array [1 - 2 * !(($2) <= $ac_mid)];
d6a4bcb5
TB
2327test_array [0] = 0;
2328return test_array [0];
93636bde 2329
57aa50d4
TT
2330 ;
2331 return 0;
2332}
2333_ACEOF
2334if ac_fn_c_try_compile "$LINENO"; then :
2335 ac_hi=$ac_mid
2336else
2337 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2338fi
2339rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2340done
2341case $ac_lo in #((
2342?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2343'') ac_retval=1 ;;
927566a3 2344esac
57aa50d4
TT
2345 else
2346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2347/* end confdefs.h. */
2348$4
2349static long int longval () { return $2; }
2350static unsigned long int ulongval () { return $2; }
2351#include <stdio.h>
2352#include <stdlib.h>
2353int
2354main ()
2355{
927566a3 2356
57aa50d4
TT
2357 FILE *f = fopen ("conftest.val", "w");
2358 if (! f)
2359 return 1;
2360 if (($2) < 0)
2361 {
2362 long int i = longval ();
2363 if (i != ($2))
2364 return 1;
2365 fprintf (f, "%ld", i);
2366 }
2367 else
2368 {
2369 unsigned long int i = ulongval ();
2370 if (i != ($2))
2371 return 1;
2372 fprintf (f, "%lu", i);
2373 }
2374 /* Do not output a trailing newline, as this causes \r\n confusion
2375 on some platforms. */
2376 return ferror (f) || fclose (f) != 0;
93636bde 2377
57aa50d4
TT
2378 ;
2379 return 0;
2380}
2381_ACEOF
2382if ac_fn_c_try_run "$LINENO"; then :
2383 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2384else
2385 ac_retval=1
2386fi
2387rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2388 conftest.$ac_objext conftest.beam conftest.$ac_ext
2389rm -f conftest.val
93636bde 2390
57aa50d4 2391 fi
d6a4bcb5 2392 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
61ef2474 2393 as_fn_set_status $ac_retval
927566a3 2394
57aa50d4 2395} # ac_fn_c_compute_int
57aa50d4
TT
2396cat >config.log <<_ACEOF
2397This file contains any messages produced by compilers while
2398running configure, to aid debugging if configure makes a mistake.
93636bde 2399
57aa50d4 2400It was created by $as_me, which was
d6a4bcb5 2401generated by GNU Autoconf 2.69. Invocation command line was
07a0db15 2402
57aa50d4 2403 $ $0 $@
e1052144 2404
57aa50d4
TT
2405_ACEOF
2406exec 5>>config.log
2407{
2408cat <<_ASUNAME
2409## --------- ##
2410## Platform. ##
2411## --------- ##
0b5b9f90 2412
57aa50d4
TT
2413hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2414uname -m = `(uname -m) 2>/dev/null || echo unknown`
2415uname -r = `(uname -r) 2>/dev/null || echo unknown`
2416uname -s = `(uname -s) 2>/dev/null || echo unknown`
2417uname -v = `(uname -v) 2>/dev/null || echo unknown`
0b5b9f90 2418
57aa50d4
TT
2419/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2420/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
0b5b9f90 2421
57aa50d4
TT
2422/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2423/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2424/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2425/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2426/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2427/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2428/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
0b5b9f90 2429
57aa50d4 2430_ASUNAME
b0cacab0 2431
b0cacab0
TT
2432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2433for as_dir in $PATH
2434do
2435 IFS=$as_save_IFS
2436 test -z "$as_dir" && as_dir=.
57aa50d4
TT
2437 $as_echo "PATH: $as_dir"
2438 done
e1052144 2439IFS=$as_save_IFS
b0cacab0 2440
57aa50d4 2441} >&5
74becf3c 2442
57aa50d4 2443cat >&5 <<_ACEOF
e1052144 2444
b0cacab0 2445
57aa50d4
TT
2446## ----------- ##
2447## Core tests. ##
2448## ----------- ##
b0cacab0 2449
57aa50d4 2450_ACEOF
b0cacab0 2451
57aa50d4
TT
2452
2453# Keep a trace of the command line.
2454# Strip out --no-create and --no-recursion so they do not pile up.
2455# Strip out --silent because we don't want to record it for future runs.
2456# Also quote any args containing shell meta-characters.
2457# Make two passes to allow for proper duplicate-argument suppression.
2458ac_configure_args=
2459ac_configure_args0=
2460ac_configure_args1=
2461ac_must_keep_next=false
2462for ac_pass in 1 2
b0cacab0 2463do
57aa50d4
TT
2464 for ac_arg
2465 do
2466 case $ac_arg in
2467 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2468 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2469 | -silent | --silent | --silen | --sile | --sil)
2470 continue ;;
2471 *\'*)
2472 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2473 esac
2474 case $ac_pass in
2475 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2476 2)
2477 as_fn_append ac_configure_args1 " '$ac_arg'"
2478 if test $ac_must_keep_next = true; then
2479 ac_must_keep_next=false # Got value, back to normal.
2480 else
2481 case $ac_arg in
2482 *=* | --config-cache | -C | -disable-* | --disable-* \
2483 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2484 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2485 | -with-* | --with-* | -without-* | --without-* | --x)
2486 case "$ac_configure_args0 " in
2487 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2488 esac
2489 ;;
2490 -* ) ac_must_keep_next=true ;;
2491 esac
2492 fi
2493 as_fn_append ac_configure_args " '$ac_arg'"
2494 ;;
2495 esac
2496 done
b0cacab0 2497done
57aa50d4
TT
2498{ ac_configure_args0=; unset ac_configure_args0;}
2499{ ac_configure_args1=; unset ac_configure_args1;}
2500
2501# When interrupted or exit'd, cleanup temporary files, and complete
2502# config.log. We remove comments because anyway the quotes in there
2503# would cause problems or look ugly.
2504# WARNING: Use '\'' to represent an apostrophe within the trap.
2505# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2506trap 'exit_status=$?
2507 # Save into config.log some information that might help in debugging.
2508 {
2509 echo
2510
d6a4bcb5 2511 $as_echo "## ---------------- ##
57aa50d4 2512## Cache variables. ##
d6a4bcb5 2513## ---------------- ##"
57aa50d4
TT
2514 echo
2515 # The following way of writing the cache mishandles newlines in values,
2516(
2517 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2518 eval ac_val=\$$ac_var
2519 case $ac_val in #(
2520 *${as_nl}*)
2521 case $ac_var in #(
2522 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2523$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2524 esac
2525 case $ac_var in #(
2526 _ | IFS | as_nl) ;; #(
2527 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2528 *) { eval $ac_var=; unset $ac_var;} ;;
2529 esac ;;
2530 esac
2531 done
2532 (set) 2>&1 |
2533 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2534 *${as_nl}ac_space=\ *)
2535 sed -n \
2536 "s/'\''/'\''\\\\'\'''\''/g;
2537 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2538 ;; #(
2539 *)
2540 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2541 ;;
2542 esac |
2543 sort
2544)
2545 echo
2546
d6a4bcb5 2547 $as_echo "## ----------------- ##
57aa50d4 2548## Output variables. ##
d6a4bcb5 2549## ----------------- ##"
57aa50d4
TT
2550 echo
2551 for ac_var in $ac_subst_vars
2552 do
2553 eval ac_val=\$$ac_var
2554 case $ac_val in
2555 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2556 esac
2557 $as_echo "$ac_var='\''$ac_val'\''"
2558 done | sort
2559 echo
2560
2561 if test -n "$ac_subst_files"; then
d6a4bcb5 2562 $as_echo "## ------------------- ##
57aa50d4 2563## File substitutions. ##
d6a4bcb5 2564## ------------------- ##"
57aa50d4
TT
2565 echo
2566 for ac_var in $ac_subst_files
2567 do
2568 eval ac_val=\$$ac_var
2569 case $ac_val in
2570 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2571 esac
2572 $as_echo "$ac_var='\''$ac_val'\''"
2573 done | sort
2574 echo
2575 fi
2576
2577 if test -s confdefs.h; then
d6a4bcb5 2578 $as_echo "## ----------- ##
57aa50d4 2579## confdefs.h. ##
d6a4bcb5 2580## ----------- ##"
57aa50d4
TT
2581 echo
2582 cat confdefs.h
2583 echo
2584 fi
2585 test "$ac_signal" != 0 &&
2586 $as_echo "$as_me: caught signal $ac_signal"
2587 $as_echo "$as_me: exit $exit_status"
2588 } >&5
2589 rm -f core *.core core.conftest.* &&
2590 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2591 exit $exit_status
2592' 0
2593for ac_signal in 1 2 13 15; do
2594 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
b0cacab0 2595done
57aa50d4 2596ac_signal=0
b0cacab0 2597
57aa50d4
TT
2598# confdefs.h avoids OS command line length limits that DEFS can exceed.
2599rm -f -r conftest* confdefs.h
b0cacab0 2600
57aa50d4 2601$as_echo "/* confdefs.h */" > confdefs.h
73ae2d4a 2602
57aa50d4
TT
2603# Predefined preprocessor variables.
2604
2605cat >>confdefs.h <<_ACEOF
2606#define PACKAGE_NAME "$PACKAGE_NAME"
2607_ACEOF
2608
2609cat >>confdefs.h <<_ACEOF
2610#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2611_ACEOF
2612
2613cat >>confdefs.h <<_ACEOF
2614#define PACKAGE_VERSION "$PACKAGE_VERSION"
2615_ACEOF
2616
2617cat >>confdefs.h <<_ACEOF
2618#define PACKAGE_STRING "$PACKAGE_STRING"
2619_ACEOF
2620
2621cat >>confdefs.h <<_ACEOF
2622#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2623_ACEOF
2624
2625cat >>confdefs.h <<_ACEOF
2626#define PACKAGE_URL "$PACKAGE_URL"
2627_ACEOF
2628
2629
2630# Let the site file select an alternate cache file if it wants to.
2631# Prefer an explicitly selected file to automatically selected ones.
2632ac_site_file1=NONE
2633ac_site_file2=NONE
2634if test -n "$CONFIG_SITE"; then
d6a4bcb5
TB
2635 # We do not want a PATH search for config.site.
2636 case $CONFIG_SITE in #((
2637 -*) ac_site_file1=./$CONFIG_SITE;;
2638 */*) ac_site_file1=$CONFIG_SITE;;
2639 *) ac_site_file1=./$CONFIG_SITE;;
2640 esac
57aa50d4
TT
2641elif test "x$prefix" != xNONE; then
2642 ac_site_file1=$prefix/share/config.site
2643 ac_site_file2=$prefix/etc/config.site
73ae2d4a 2644else
57aa50d4
TT
2645 ac_site_file1=$ac_default_prefix/share/config.site
2646 ac_site_file2=$ac_default_prefix/etc/config.site
2647fi
2648for ac_site_file in "$ac_site_file1" "$ac_site_file2"
b0cacab0 2649do
57aa50d4 2650 test "x$ac_site_file" = xNONE && continue
61ef2474 2651 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
57aa50d4
TT
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2653$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2654 sed 's/^/| /' "$ac_site_file" >&5
d6a4bcb5
TB
2655 . "$ac_site_file" \
2656 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2657$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2658as_fn_error $? "failed to load site script $ac_site_file
2659See \`config.log' for more details" "$LINENO" 5; }
b0cacab0
TT
2660 fi
2661done
b0cacab0 2662
57aa50d4 2663if test -r "$cache_file"; then
61ef2474
TT
2664 # Some versions of bash will fail to source /dev/null (special files
2665 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2666 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
57aa50d4
TT
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2668$as_echo "$as_me: loading cache $cache_file" >&6;}
2669 case $cache_file in
2670 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2671 *) . "./$cache_file";;
2672 esac
73ae2d4a 2673 fi
57aa50d4
TT
2674else
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2676$as_echo "$as_me: creating cache $cache_file" >&6;}
2677 >$cache_file
73ae2d4a 2678fi
57aa50d4 2679
93613951 2680gt_needs="$gt_needs "
57aa50d4
TT
2681# Check that the precious variables saved in the cache have kept the same
2682# value.
2683ac_cache_corrupted=false
2684for ac_var in $ac_precious_vars; do
2685 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2686 eval ac_new_set=\$ac_env_${ac_var}_set
2687 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2688 eval ac_new_val=\$ac_env_${ac_var}_value
2689 case $ac_old_set,$ac_new_set in
2690 set,)
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2692$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2693 ac_cache_corrupted=: ;;
2694 ,set)
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2696$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2697 ac_cache_corrupted=: ;;
2698 ,);;
2699 *)
2700 if test "x$ac_old_val" != "x$ac_new_val"; then
2701 # differences in whitespace do not lead to failure.
2702 ac_old_val_w=`echo x $ac_old_val`
2703 ac_new_val_w=`echo x $ac_new_val`
2704 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2706$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2707 ac_cache_corrupted=:
2708 else
2709 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2710$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2711 eval $ac_var=\$ac_old_val
2712 fi
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2714$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2716$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2717 fi;;
2718 esac
2719 # Pass precious variables to config.status.
2720 if test "$ac_new_set" = set; then
2721 case $ac_new_val in
2722 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2723 *) ac_arg=$ac_var=$ac_new_val ;;
2724 esac
2725 case " $ac_configure_args " in
2726 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2727 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2728 esac
2729 fi
2730done
2731if $ac_cache_corrupted; then
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2733$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2735$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
d6a4bcb5 2736 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
73ae2d4a 2737fi
57aa50d4
TT
2738## -------------------- ##
2739## Main body of script. ##
2740## -------------------- ##
2741
2742ac_ext=c
2743ac_cpp='$CPP $CPPFLAGS'
2744ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2745ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2746ac_compiler_gnu=$ac_cv_c_compiler_gnu
2747
2748
2749
2750ac_aux_dir=
2751for ac_dir in config "$srcdir"/config; do
d6a4bcb5
TB
2752 if test -f "$ac_dir/install-sh"; then
2753 ac_aux_dir=$ac_dir
2754 ac_install_sh="$ac_aux_dir/install-sh -c"
2755 break
2756 elif test -f "$ac_dir/install.sh"; then
2757 ac_aux_dir=$ac_dir
2758 ac_install_sh="$ac_aux_dir/install.sh -c"
2759 break
2760 elif test -f "$ac_dir/shtool"; then
2761 ac_aux_dir=$ac_dir
2762 ac_install_sh="$ac_aux_dir/shtool install -c"
2763 break
2764 fi
57aa50d4
TT
2765done
2766if test -z "$ac_aux_dir"; then
d6a4bcb5 2767 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
73ae2d4a 2768fi
57aa50d4
TT
2769
2770# These three variables are undocumented and unsupported,
2771# and are intended to be withdrawn in a future Autoconf release.
2772# They can cause serious problems if a builder's source tree is in a directory
2773# whose full name contains unusual characters.
2774ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2775ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2776ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2777
2778
d1154eb4
TT
2779ac_config_headers="$ac_config_headers lib/config.h"
2780
2781
57aa50d4
TT
2782MCONFIG=./MCONFIG
2783
2784BINARY_TYPE=bin
2785E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
2786 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
5ce368f0
DW
2787E2FSPROGS_DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2788 | tr \" " " | awk '{print $1}'`
2789E2FSPROGS_DAY=$(echo $E2FSPROGS_DATE | awk -F- '{print $1}' | sed -e '/^[1-9]$/s/^/0/')
2790MONTH=`echo $E2FSPROGS_DATE | awk -F- '{print $2}'`
2791YEAR=`echo $E2FSPROGS_DATE | awk -F- '{print $3}'`
57aa50d4
TT
2792
2793if expr $YEAR ">" 1900 > /dev/null ; then
2794 E2FSPROGS_YEAR=$YEAR
2795elif expr $YEAR ">" 90 >/dev/null ; then
2796 E2FSPROGS_YEAR=19$YEAR
73ae2d4a 2797else
57aa50d4
TT
2798 E2FSPROGS_YEAR=20$YEAR
2799fi
2800
2801case $MONTH in
2802Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2803Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2804Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2805Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2806May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2807Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2808Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2809Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2810Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2811Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2812Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2813Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
2814*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
2815$as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
2816esac
2817
2818base_ver=`echo $E2FSPROGS_VERSION | \
2819 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
2820
2821date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2822
2823case $E2FSPROGS_VERSION in
2824*-WIP|pre-*)
2ab53829 2825 E2FSPROGS_PKGVER="$base_ver~WIP.$date_spec"
57aa50d4
TT
2826 ;;
2827*)
2828 E2FSPROGS_PKGVER="$base_ver"
2829 ;;
2830esac
2831
2832unset DATE MONTH YEAR base_ver pre_vers date_spec
2833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2834$as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2836$as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
2837
2838
2839
2840
2841
5ce368f0 2842
6c59a665
TT
2843WITH_DIET_LIBC=
2844
2845# Check whether --with-diet-libc was given.
2846if test "${with_diet_libc+set}" = set; then :
2847 withval=$with_diet_libc; CC="diet cc -nostdinc"
2848WITH_DIET_LIBC=yes
2849if test -z "$LIBS"
2850then
2851 LIBS="-lcompat"
2852else
2853 LIBS="$LIBS -lcompat"
2854fi
2855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
2856$as_echo "CC=$CC" >&6; }
2857fi
57aa50d4
TT
2858# Make sure we can run config.sub.
2859$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
d6a4bcb5 2860 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
57aa50d4
TT
2861
2862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2863$as_echo_n "checking build system type... " >&6; }
d6a4bcb5 2864if ${ac_cv_build+:} false; then :
57aa50d4
TT
2865 $as_echo_n "(cached) " >&6
2866else
2867 ac_build_alias=$build_alias
2868test "x$ac_build_alias" = x &&
2869 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2870test "x$ac_build_alias" = x &&
d6a4bcb5 2871 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
57aa50d4 2872ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
d6a4bcb5 2873 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
57aa50d4 2874
73ae2d4a 2875fi
57aa50d4
TT
2876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2877$as_echo "$ac_cv_build" >&6; }
2878case $ac_cv_build in
2879*-*-*) ;;
d6a4bcb5 2880*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
57aa50d4
TT
2881esac
2882build=$ac_cv_build
2883ac_save_IFS=$IFS; IFS='-'
2884set x $ac_cv_build
2885shift
2886build_cpu=$1
2887build_vendor=$2
2888shift; shift
2889# Remember, the first character of IFS is used to create $*,
2890# except with old shells:
2891build_os=$*
2892IFS=$ac_save_IFS
2893case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
73ae2d4a 2894
e1052144 2895
57aa50d4
TT
2896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2897$as_echo_n "checking host system type... " >&6; }
d6a4bcb5 2898if ${ac_cv_host+:} false; then :
57aa50d4
TT
2899 $as_echo_n "(cached) " >&6
2900else
2901 if test "x$host_alias" = x; then
2902 ac_cv_host=$ac_cv_build
2903else
2904 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
d6a4bcb5 2905 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
b0cacab0 2906fi
57aa50d4
TT
2907
2908fi
2909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2910$as_echo "$ac_cv_host" >&6; }
2911case $ac_cv_host in
2912*-*-*) ;;
d6a4bcb5 2913*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
57aa50d4
TT
2914esac
2915host=$ac_cv_host
2916ac_save_IFS=$IFS; IFS='-'
2917set x $ac_cv_host
2918shift
2919host_cpu=$1
2920host_vendor=$2
2921shift; shift
2922# Remember, the first character of IFS is used to create $*,
2923# except with old shells:
2924host_os=$*
2925IFS=$ac_save_IFS
2926case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2927
2928
2929DLOPEN_LIB=''
2930ac_ext=c
2931ac_cpp='$CPP $CPPFLAGS'
2932ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2933ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2934ac_compiler_gnu=$ac_cv_c_compiler_gnu
2935if test -n "$ac_tool_prefix"; then
2936 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2937set dummy ${ac_tool_prefix}gcc; ac_word=$2
2938{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39fd3d4f 2939$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 2940if ${ac_cv_prog_CC+:} false; then :
39fd3d4f 2941 $as_echo_n "(cached) " >&6
73ae2d4a
TT
2942else
2943 if test -n "$CC"; then
2944 ac_cv_prog_CC="$CC" # Let the user override the test.
2945else
b0cacab0
TT
2946as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2947for as_dir in $PATH
2948do
2949 IFS=$as_save_IFS
2950 test -z "$as_dir" && as_dir=.
57aa50d4 2951 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 2952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
2953 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b0cacab0
TT
2955 break 2
2956 fi
2957done
57aa50d4 2958 done
e1052144 2959IFS=$as_save_IFS
b0cacab0 2960
73ae2d4a
TT
2961fi
2962fi
b0cacab0 2963CC=$ac_cv_prog_CC
73ae2d4a 2964if test -n "$CC"; then
57aa50d4 2965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
39fd3d4f 2966$as_echo "$CC" >&6; }
73ae2d4a 2967else
57aa50d4 2968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39fd3d4f 2969$as_echo "no" >&6; }
73ae2d4a 2970fi
b0cacab0 2971
e1052144 2972
b0cacab0 2973fi
57aa50d4 2974if test -z "$ac_cv_prog_CC"; then
b0cacab0 2975 ac_ct_CC=$CC
57aa50d4
TT
2976 # Extract the first word of "gcc", so it can be a program name with args.
2977set dummy gcc; ac_word=$2
2978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39fd3d4f 2979$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 2980if ${ac_cv_prog_ac_ct_CC+:} false; then :
39fd3d4f 2981 $as_echo_n "(cached) " >&6
b0cacab0
TT
2982else
2983 if test -n "$ac_ct_CC"; then
2984 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2985else
2986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2987for as_dir in $PATH
2988do
2989 IFS=$as_save_IFS
2990 test -z "$as_dir" && as_dir=.
57aa50d4 2991 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 2992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
2993 ac_cv_prog_ac_ct_CC="gcc"
2994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b0cacab0 2995 break 2
93636bde 2996 fi
b0cacab0 2997done
57aa50d4 2998 done
e1052144 2999IFS=$as_save_IFS
b0cacab0
TT
3000
3001fi
3002fi
3003ac_ct_CC=$ac_cv_prog_ac_ct_CC
3004if test -n "$ac_ct_CC"; then
57aa50d4 3005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
39fd3d4f 3006$as_echo "$ac_ct_CC" >&6; }
b0cacab0 3007else
57aa50d4 3008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39fd3d4f 3009$as_echo "no" >&6; }
07a0db15 3010fi
73ae2d4a 3011
e1052144
TT
3012 if test "x$ac_ct_CC" = x; then
3013 CC=""
3014 else
3015 case $cross_compiling:$ac_tool_warned in
3016yes:)
57aa50d4 3017{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
39fd3d4f 3018$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
e1052144
TT
3019ac_tool_warned=yes ;;
3020esac
3021 CC=$ac_ct_CC
3022 fi
57aa50d4
TT
3023else
3024 CC="$ac_cv_prog_CC"
b0cacab0
TT
3025fi
3026
57aa50d4
TT
3027if test -z "$CC"; then
3028 if test -n "$ac_tool_prefix"; then
3029 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3030set dummy ${ac_tool_prefix}cc; ac_word=$2
3031{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3032$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 3033if ${ac_cv_prog_CC+:} false; then :
57aa50d4
TT
3034 $as_echo_n "(cached) " >&6
3035else
3036 if test -n "$CC"; then
3037 ac_cv_prog_CC="$CC" # Let the user override the test.
3038else
3039as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3040for as_dir in $PATH
3041do
3042 IFS=$as_save_IFS
3043 test -z "$as_dir" && as_dir=.
3044 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 3045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
3046 ac_cv_prog_CC="${ac_tool_prefix}cc"
3047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3048 break 2
3049 fi
3050done
3051 done
3052IFS=$as_save_IFS
3053
3054fi
3055fi
3056CC=$ac_cv_prog_CC
3057if test -n "$CC"; then
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3059$as_echo "$CC" >&6; }
3060else
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3062$as_echo "no" >&6; }
3063fi
3064
3065
3066 fi
3067fi
3068if test -z "$CC"; then
3069 # Extract the first word of "cc", so it can be a program name with args.
3070set dummy cc; ac_word=$2
3071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3072$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 3073if ${ac_cv_prog_CC+:} false; then :
57aa50d4
TT
3074 $as_echo_n "(cached) " >&6
3075else
3076 if test -n "$CC"; then
3077 ac_cv_prog_CC="$CC" # Let the user override the test.
3078else
3079 ac_prog_rejected=no
3080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3081for as_dir in $PATH
3082do
3083 IFS=$as_save_IFS
3084 test -z "$as_dir" && as_dir=.
3085 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 3086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
3087 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3088 ac_prog_rejected=yes
3089 continue
3090 fi
3091 ac_cv_prog_CC="cc"
3092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3093 break 2
3094 fi
3095done
3096 done
3097IFS=$as_save_IFS
3098
3099if test $ac_prog_rejected = yes; then
3100 # We found a bogon in the path, so make sure we never use it.
3101 set dummy $ac_cv_prog_CC
3102 shift
3103 if test $# != 0; then
3104 # We chose a different compiler from the bogus one.
3105 # However, it has the same basename, so the bogon will be chosen
3106 # first if we set CC to just the basename; use the full file name.
3107 shift
3108 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3109 fi
3110fi
3111fi
3112fi
3113CC=$ac_cv_prog_CC
3114if test -n "$CC"; then
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3116$as_echo "$CC" >&6; }
3117else
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3119$as_echo "no" >&6; }
3120fi
3121
3122
3123fi
3124if test -z "$CC"; then
3125 if test -n "$ac_tool_prefix"; then
3126 for ac_prog in cl.exe
3127 do
3128 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3129set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3131$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 3132if ${ac_cv_prog_CC+:} false; then :
57aa50d4
TT
3133 $as_echo_n "(cached) " >&6
3134else
3135 if test -n "$CC"; then
3136 ac_cv_prog_CC="$CC" # Let the user override the test.
3137else
3138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3139for as_dir in $PATH
3140do
3141 IFS=$as_save_IFS
3142 test -z "$as_dir" && as_dir=.
3143 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 3144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
3145 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3147 break 2
3148 fi
3149done
3150 done
3151IFS=$as_save_IFS
3152
3153fi
3154fi
3155CC=$ac_cv_prog_CC
3156if test -n "$CC"; then
3157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3158$as_echo "$CC" >&6; }
3159else
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3161$as_echo "no" >&6; }
3162fi
3163
3164
3165 test -n "$CC" && break
3166 done
3167fi
3168if test -z "$CC"; then
3169 ac_ct_CC=$CC
3170 for ac_prog in cl.exe
3171do
3172 # Extract the first word of "$ac_prog", so it can be a program name with args.
3173set dummy $ac_prog; ac_word=$2
3174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3175$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 3176if ${ac_cv_prog_ac_ct_CC+:} false; then :
57aa50d4
TT
3177 $as_echo_n "(cached) " >&6
3178else
3179 if test -n "$ac_ct_CC"; then
3180 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3181else
3182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3183for as_dir in $PATH
3184do
3185 IFS=$as_save_IFS
3186 test -z "$as_dir" && as_dir=.
3187 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 3188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
3189 ac_cv_prog_ac_ct_CC="$ac_prog"
3190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3191 break 2
3192 fi
3193done
3194 done
3195IFS=$as_save_IFS
3196
3197fi
3198fi
3199ac_ct_CC=$ac_cv_prog_ac_ct_CC
3200if test -n "$ac_ct_CC"; then
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3202$as_echo "$ac_ct_CC" >&6; }
3203else
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3205$as_echo "no" >&6; }
3206fi
3207
3208
3209 test -n "$ac_ct_CC" && break
3210done
3211
3212 if test "x$ac_ct_CC" = x; then
3213 CC=""
3214 else
3215 case $cross_compiling:$ac_tool_warned in
3216yes:)
3217{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3218$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3219ac_tool_warned=yes ;;
3220esac
3221 CC=$ac_ct_CC
3222 fi
3223fi
3224
3225fi
3226
3227
3228test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3229$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d6a4bcb5
TB
3230as_fn_error $? "no acceptable C compiler found in \$PATH
3231See \`config.log' for more details" "$LINENO" 5; }
b0cacab0
TT
3232
3233# Provide some information about the compiler.
57aa50d4 3234$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
39fd3d4f
SJR
3235set X $ac_compile
3236ac_compiler=$2
57aa50d4
TT
3237for ac_option in --version -v -V -qversion; do
3238 { { ac_try="$ac_compiler $ac_option >&5"
e1052144
TT
3239case "(($ac_try" in
3240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3241 *) ac_try_echo=$ac_try;;
3242esac
57aa50d4
TT
3243eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3244$as_echo "$ac_try_echo"; } >&5
3245 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
b0cacab0 3246 ac_status=$?
57aa50d4
TT
3247 if test -s conftest.err; then
3248 sed '10a\
3249... rest of stderr output deleted ...
3250 10q' conftest.err >conftest.er1
3251 cat conftest.er1 >&5
57aa50d4 3252 fi
61ef2474 3253 rm -f conftest.er1 conftest.err
57aa50d4
TT
3254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3255 test $ac_status = 0; }
3256done
b0cacab0 3257
57aa50d4 3258cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 3259/* end confdefs.h. */
61ef2474 3260
b0cacab0
TT
3261int
3262main ()
3263{
3264
3265 ;
3266 return 0;
3267}
3268_ACEOF
3269ac_clean_files_save=$ac_clean_files
61ef2474 3270ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
b0cacab0
TT
3271# Try to create an executable without -o first, disregard a.out.
3272# It will help us diagnose broken compilers, and finding out an intuition
3273# of exeext.
61ef2474
TT
3274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3275$as_echo_n "checking whether the C compiler works... " >&6; }
39fd3d4f
SJR
3276ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3277
3278# The possible output files:
3279ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3280
e1052144
TT
3281ac_rmfiles=
3282for ac_file in $ac_files
3283do
3284 case $ac_file in
39fd3d4f 3285 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
e1052144
TT
3286 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3287 esac
3288done
3289rm -f $ac_rmfiles
3290
57aa50d4 3291if { { ac_try="$ac_link_default"
e1052144
TT
3292case "(($ac_try" in
3293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3294 *) ac_try_echo=$ac_try;;
3295esac
57aa50d4
TT
3296eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3297$as_echo "$ac_try_echo"; } >&5
e1052144 3298 (eval "$ac_link_default") 2>&5
b0cacab0 3299 ac_status=$?
57aa50d4
TT
3300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3301 test $ac_status = 0; }; then :
e1052144
TT
3302 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3303# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3304# in a Makefile. We should not override ac_cv_exeext if it was cached,
3305# so that the user can short-circuit this test for compilers unknown to
3306# Autoconf.
29a5deed 3307for ac_file in $ac_files ''
b0cacab0
TT
3308do
3309 test -f "$ac_file" || continue
3310 case $ac_file in
39fd3d4f 3311 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
b0cacab0
TT
3312 ;;
3313 [ab].out )
3314 # We found the default executable, but exeext='' is most
3315 # certainly right.
3316 break;;
3317 *.* )
57aa50d4 3318 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
e1052144
TT
3319 then :; else
3320 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3321 fi
3322 # We set ac_cv_exeext here because the later test for it is not
3323 # safe: cross compilers may not add the suffix if given an `-o'
3324 # argument, so we may need to know it at that point already.
3325 # Even if this section looks crufty: it has the advantage of
3326 # actually working.
b0cacab0
TT
3327 break;;
3328 * )
3329 break;;
3330 esac
3331done
e1052144
TT
3332test "$ac_cv_exeext" = no && ac_cv_exeext=
3333
b0cacab0 3334else
29a5deed
TT
3335 ac_file=''
3336fi
57aa50d4 3337if test -z "$ac_file"; then :
61ef2474
TT
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3339$as_echo "no" >&6; }
3340$as_echo "$as_me: failed program was:" >&5
b0cacab0
TT
3341sed 's/^/| /' conftest.$ac_ext >&5
3342
57aa50d4 3343{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39fd3d4f 3344$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d6a4bcb5
TB
3345as_fn_error 77 "C compiler cannot create executables
3346See \`config.log' for more details" "$LINENO" 5; }
61ef2474
TT
3347else
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3349$as_echo "yes" >&6; }
b0cacab0 3350fi
61ef2474
TT
3351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3352$as_echo_n "checking for C compiler default output file name... " >&6; }
3353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3354$as_echo "$ac_file" >&6; }
b0cacab0 3355ac_exeext=$ac_cv_exeext
b0cacab0 3356
61ef2474 3357rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
b0cacab0 3358ac_clean_files=$ac_clean_files_save
57aa50d4 3359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
39fd3d4f 3360$as_echo_n "checking for suffix of executables... " >&6; }
57aa50d4 3361if { { ac_try="$ac_link"
e1052144
TT
3362case "(($ac_try" in
3363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364 *) ac_try_echo=$ac_try;;
3365esac
57aa50d4
TT
3366eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3367$as_echo "$ac_try_echo"; } >&5
e1052144 3368 (eval "$ac_link") 2>&5
b0cacab0 3369 ac_status=$?
57aa50d4
TT
3370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3371 test $ac_status = 0; }; then :
b0cacab0
TT
3372 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3373# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3374# work properly (i.e., refer to `conftest.exe'), while it won't with
3375# `rm'.
3376for ac_file in conftest.exe conftest conftest.*; do
3377 test -f "$ac_file" || continue
3378 case $ac_file in
39fd3d4f 3379 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
b0cacab0 3380 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
b0cacab0
TT
3381 break;;
3382 * ) break;;
3383 esac
3384done
73ae2d4a 3385else
57aa50d4 3386 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39fd3d4f 3387$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d6a4bcb5
TB
3388as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3389See \`config.log' for more details" "$LINENO" 5; }
73ae2d4a 3390fi
61ef2474 3391rm -f conftest conftest$ac_cv_exeext
57aa50d4 3392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
39fd3d4f 3393$as_echo "$ac_cv_exeext" >&6; }
73ae2d4a 3394
b0cacab0
TT
3395rm -f conftest.$ac_ext
3396EXEEXT=$ac_cv_exeext
3397ac_exeext=$EXEEXT
61ef2474
TT
3398cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3399/* end confdefs.h. */
3400#include <stdio.h>
3401int
3402main ()
3403{
3404FILE *f = fopen ("conftest.out", "w");
3405 return ferror (f) || fclose (f) != 0;
3406
3407 ;
3408 return 0;
3409}
3410_ACEOF
3411ac_clean_files="$ac_clean_files conftest.out"
3412# Check that the compiler produces executables we can run. If not, either
3413# the compiler is broken, or we cross compile.
3414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3415$as_echo_n "checking whether we are cross compiling... " >&6; }
3416if test "$cross_compiling" != yes; then
3417 { { ac_try="$ac_link"
3418case "(($ac_try" in
3419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3420 *) ac_try_echo=$ac_try;;
3421esac
3422eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3423$as_echo "$ac_try_echo"; } >&5
3424 (eval "$ac_link") 2>&5
3425 ac_status=$?
3426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3427 test $ac_status = 0; }
3428 if { ac_try='./conftest$ac_cv_exeext'
3429 { { case "(($ac_try" in
3430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3431 *) ac_try_echo=$ac_try;;
3432esac
3433eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3434$as_echo "$ac_try_echo"; } >&5
3435 (eval "$ac_try") 2>&5
3436 ac_status=$?
3437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3438 test $ac_status = 0; }; }; then
3439 cross_compiling=no
3440 else
3441 if test "$cross_compiling" = maybe; then
3442 cross_compiling=yes
3443 else
3444 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3445$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d6a4bcb5 3446as_fn_error $? "cannot run C compiled programs.
61ef2474 3447If you meant to cross compile, use \`--host'.
d6a4bcb5 3448See \`config.log' for more details" "$LINENO" 5; }
61ef2474
TT
3449 fi
3450 fi
3451fi
3452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3453$as_echo "$cross_compiling" >&6; }
3454
3455rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3456ac_clean_files=$ac_clean_files_save
57aa50d4 3457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
39fd3d4f 3458$as_echo_n "checking for suffix of object files... " >&6; }
d6a4bcb5 3459if ${ac_cv_objext+:} false; then :
39fd3d4f 3460 $as_echo_n "(cached) " >&6
73ae2d4a 3461else
57aa50d4 3462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 3463/* end confdefs.h. */
07a0db15 3464
b0cacab0
TT
3465int
3466main ()
3467{
07a0db15 3468
b0cacab0
TT
3469 ;
3470 return 0;
3471}
3472_ACEOF
3473rm -f conftest.o conftest.obj
57aa50d4 3474if { { ac_try="$ac_compile"
e1052144
TT
3475case "(($ac_try" in
3476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3477 *) ac_try_echo=$ac_try;;
3478esac
57aa50d4
TT
3479eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3480$as_echo "$ac_try_echo"; } >&5
e1052144 3481 (eval "$ac_compile") 2>&5
b0cacab0 3482 ac_status=$?
57aa50d4
TT
3483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3484 test $ac_status = 0; }; then :
e1052144
TT
3485 for ac_file in conftest.o conftest.obj conftest.*; do
3486 test -f "$ac_file" || continue;
b0cacab0 3487 case $ac_file in
39fd3d4f 3488 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
b0cacab0
TT
3489 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3490 break;;
3491 esac
3492done
93636bde 3493else
39fd3d4f 3494 $as_echo "$as_me: failed program was:" >&5
b0cacab0 3495sed 's/^/| /' conftest.$ac_ext >&5
07a0db15 3496
57aa50d4 3497{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39fd3d4f 3498$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d6a4bcb5
TB
3499as_fn_error $? "cannot compute suffix of object files: cannot compile
3500See \`config.log' for more details" "$LINENO" 5; }
73ae2d4a 3501fi
b0cacab0 3502rm -f conftest.$ac_cv_objext conftest.$ac_ext
73ae2d4a 3503fi
57aa50d4 3504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
39fd3d4f 3505$as_echo "$ac_cv_objext" >&6; }
b0cacab0
TT
3506OBJEXT=$ac_cv_objext
3507ac_objext=$OBJEXT
57aa50d4 3508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
39fd3d4f 3509$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d6a4bcb5 3510if ${ac_cv_c_compiler_gnu+:} false; then :
39fd3d4f 3511 $as_echo_n "(cached) " >&6
b0cacab0 3512else
57aa50d4 3513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0
TT
3514/* end confdefs.h. */
3515
3516int
3517main ()
3518{
3519#ifndef __GNUC__
3520 choke me
3521#endif
3522
3523 ;
3524 return 0;
3525}
3526_ACEOF
57aa50d4 3527if ac_fn_c_try_compile "$LINENO"; then :
b0cacab0
TT
3528 ac_compiler_gnu=yes
3529else
57aa50d4 3530 ac_compiler_gnu=no
b0cacab0 3531fi
e1052144 3532rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b0cacab0
TT
3533ac_cv_c_compiler_gnu=$ac_compiler_gnu
3534
3535fi
57aa50d4 3536{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
39fd3d4f
SJR
3537$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3538if test $ac_compiler_gnu = yes; then
3539 GCC=yes
3540else
3541 GCC=
3542fi
b0cacab0
TT
3543ac_test_CFLAGS=${CFLAGS+set}
3544ac_save_CFLAGS=$CFLAGS
57aa50d4 3545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
39fd3d4f 3546$as_echo_n "checking whether $CC accepts -g... " >&6; }
d6a4bcb5 3547if ${ac_cv_prog_cc_g+:} false; then :
39fd3d4f 3548 $as_echo_n "(cached) " >&6
b0cacab0 3549else
e1052144
TT
3550 ac_save_c_werror_flag=$ac_c_werror_flag
3551 ac_c_werror_flag=yes
3552 ac_cv_prog_cc_g=no
3553 CFLAGS="-g"
57aa50d4 3554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e1052144
TT
3555/* end confdefs.h. */
3556
3557int
3558main ()
3559{
3560
3561 ;
3562 return 0;
3563}
3564_ACEOF
57aa50d4 3565if ac_fn_c_try_compile "$LINENO"; then :
e1052144
TT
3566 ac_cv_prog_cc_g=yes
3567else
57aa50d4
TT
3568 CFLAGS=""
3569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e1052144
TT
3570/* end confdefs.h. */
3571
3572int
3573main ()
3574{
3575
3576 ;
3577 return 0;
3578}
3579_ACEOF
57aa50d4 3580if ac_fn_c_try_compile "$LINENO"; then :
e1052144 3581
57aa50d4
TT
3582else
3583 ac_c_werror_flag=$ac_save_c_werror_flag
e1052144 3584 CFLAGS="-g"
57aa50d4 3585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0
TT
3586/* end confdefs.h. */
3587
3588int
3589main ()
3590{
3591
3592 ;
3593 return 0;
3594}
3595_ACEOF
57aa50d4 3596if ac_fn_c_try_compile "$LINENO"; then :
b0cacab0 3597 ac_cv_prog_cc_g=yes
e1052144 3598fi
e1052144
TT
3599rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3600fi
e1052144 3601rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b0cacab0 3602fi
e1052144
TT
3603rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3604 ac_c_werror_flag=$ac_save_c_werror_flag
b0cacab0 3605fi
57aa50d4 3606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
39fd3d4f 3607$as_echo "$ac_cv_prog_cc_g" >&6; }
b0cacab0
TT
3608if test "$ac_test_CFLAGS" = set; then
3609 CFLAGS=$ac_save_CFLAGS
3610elif test $ac_cv_prog_cc_g = yes; then
3611 if test "$GCC" = yes; then
3612 CFLAGS="-g -O2"
3613 else
3614 CFLAGS="-g"
3615 fi
73ae2d4a
TT
3616else
3617 if test "$GCC" = yes; then
3618 CFLAGS="-O2"
3619 else
3620 CFLAGS=
3621 fi
3622fi
57aa50d4 3623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
39fd3d4f 3624$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
d6a4bcb5 3625if ${ac_cv_prog_cc_c89+:} false; then :
39fd3d4f 3626 $as_echo_n "(cached) " >&6
b0cacab0 3627else
e1052144 3628 ac_cv_prog_cc_c89=no
b0cacab0 3629ac_save_CC=$CC
57aa50d4 3630cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0
TT
3631/* end confdefs.h. */
3632#include <stdarg.h>
3633#include <stdio.h>
d6a4bcb5 3634struct stat;
b0cacab0
TT
3635/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3636struct buf { int x; };
3637FILE * (*rcsopen) (struct buf *, struct stat *, int);
3638static char *e (p, i)
3639 char **p;
3640 int i;
3641{
3642 return p[i];
3643}
3644static char *f (char * (*g) (char **, int), char **p, ...)
3645{
3646 char *s;
3647 va_list v;
3648 va_start (v,p);
3649 s = g (p, va_arg (v,int));
3650 va_end (v);
3651 return s;
3652}
3653
3654/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3655 function prototypes and stuff, but not '\xHH' hex character constants.
3656 These don't provoke an error unfortunately, instead are silently treated
e1052144 3657 as 'x'. The following induces an error, until -std is added to get
b0cacab0
TT
3658 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3659 array size at least. It's necessary to write '\x00'==0 to get something
e1052144 3660 that's true only with -std. */
b0cacab0
TT
3661int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3662
e1052144
TT
3663/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3664 inside strings and character constants. */
3665#define FOO(x) 'x'
3666int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3667
b0cacab0
TT
3668int test (int i, double x);
3669struct s1 {int (*f) (int a);};
3670struct s2 {int (*f) (double a);};
3671int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3672int argc;
3673char **argv;
3674int
3675main ()
3676{
3677return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3678 ;
3679 return 0;
3680}
3681_ACEOF
e1052144
TT
3682for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3683 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
b0cacab0
TT
3684do
3685 CC="$ac_save_CC $ac_arg"
57aa50d4 3686 if ac_fn_c_try_compile "$LINENO"; then :
e1052144 3687 ac_cv_prog_cc_c89=$ac_arg
b0cacab0 3688fi
e1052144
TT
3689rm -f core conftest.err conftest.$ac_objext
3690 test "x$ac_cv_prog_cc_c89" != "xno" && break
b0cacab0 3691done
e1052144 3692rm -f conftest.$ac_ext
b0cacab0
TT
3693CC=$ac_save_CC
3694
3695fi
e1052144
TT
3696# AC_CACHE_VAL
3697case "x$ac_cv_prog_cc_c89" in
3698 x)
57aa50d4 3699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
39fd3d4f 3700$as_echo "none needed" >&6; } ;;
e1052144 3701 xno)
57aa50d4 3702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
39fd3d4f 3703$as_echo "unsupported" >&6; } ;;
b0cacab0 3704 *)
e1052144 3705 CC="$CC $ac_cv_prog_cc_c89"
57aa50d4 3706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
39fd3d4f 3707$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
b0cacab0 3708esac
57aa50d4 3709if test "x$ac_cv_prog_cc_c89" != xno; then :
b0cacab0 3710
57aa50d4 3711fi
b0cacab0 3712
b0cacab0
TT
3713ac_ext=c
3714ac_cpp='$CPP $CPPFLAGS'
3715ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3716ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3717ac_compiler_gnu=$ac_cv_c_compiler_gnu
3718
57aa50d4
TT
3719
3720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3721$as_echo_n "checking for dlopen in -ldl... " >&6; }
d6a4bcb5 3722if ${ac_cv_lib_dl_dlopen+:} false; then :
39fd3d4f 3723 $as_echo_n "(cached) " >&6
b0cacab0 3724else
57aa50d4
TT
3725 ac_check_lib_save_LIBS=$LIBS
3726LIBS="-ldl $LIBS"
3727cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 3728/* end confdefs.h. */
57aa50d4
TT
3729
3730/* Override any GCC internal prototype to avoid an error.
3731 Use char because int might match the return type of a GCC
3732 builtin and then its argument prototype would still apply. */
3733#ifdef __cplusplus
3734extern "C"
b0cacab0 3735#endif
57aa50d4
TT
3736char dlopen ();
3737int
3738main ()
3739{
3740return dlopen ();
3741 ;
3742 return 0;
3743}
b0cacab0 3744_ACEOF
57aa50d4
TT
3745if ac_fn_c_try_link "$LINENO"; then :
3746 ac_cv_lib_dl_dlopen=yes
b0cacab0 3747else
57aa50d4 3748 ac_cv_lib_dl_dlopen=no
b0cacab0 3749fi
57aa50d4
TT
3750rm -f core conftest.err conftest.$ac_objext \
3751 conftest$ac_exeext conftest.$ac_ext
3752LIBS=$ac_check_lib_save_LIBS
b0cacab0 3753fi
57aa50d4
TT
3754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3755$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
d6a4bcb5 3756if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
57aa50d4 3757 DLOPEN_LIB=-ldl
b0cacab0
TT
3758fi
3759
b0cacab0 3760
e1052144 3761
57aa50d4
TT
3762# Check whether --with-cc was given.
3763if test "${with_cc+set}" = set; then :
d6a4bcb5 3764 withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
57aa50d4 3765fi
b0cacab0 3766
b0cacab0 3767
57aa50d4
TT
3768# Check whether --with-ccopts was given.
3769if test "${with_ccopts+set}" = set; then :
d6a4bcb5 3770 withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
b0cacab0 3771fi
e1052144 3772
b0cacab0 3773
57aa50d4
TT
3774# Check whether --with-ldopts was given.
3775if test "${with_ldopts+set}" = set; then :
d6a4bcb5 3776 withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
b0cacab0
TT
3777fi
3778
3779ac_ext=c
3780ac_cpp='$CPP $CPPFLAGS'
3781ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3782ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3783ac_compiler_gnu=$ac_cv_c_compiler_gnu
57aa50d4
TT
3784if test -n "$ac_tool_prefix"; then
3785 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3786set dummy ${ac_tool_prefix}gcc; ac_word=$2
3787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3788$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 3789if ${ac_cv_prog_CC+:} false; then :
39fd3d4f 3790 $as_echo_n "(cached) " >&6
e1052144 3791else
57aa50d4
TT
3792 if test -n "$CC"; then
3793 ac_cv_prog_CC="$CC" # Let the user override the test.
3794else
3795as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3796for as_dir in $PATH
e1052144
TT
3797do
3798 IFS=$as_save_IFS
3799 test -z "$as_dir" && as_dir=.
39fd3d4f 3800 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 3801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
3802 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3804 break 2
3805 fi
e1052144 3806done
57aa50d4 3807 done
e1052144 3808IFS=$as_save_IFS
e1052144 3809
e1052144 3810fi
57aa50d4
TT
3811fi
3812CC=$ac_cv_prog_CC
3813if test -n "$CC"; then
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3815$as_echo "$CC" >&6; }
3816else
3817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3818$as_echo "no" >&6; }
3819fi
e1052144
TT
3820
3821
57aa50d4
TT
3822fi
3823if test -z "$ac_cv_prog_CC"; then
3824 ac_ct_CC=$CC
3825 # Extract the first word of "gcc", so it can be a program name with args.
3826set dummy gcc; ac_word=$2
3827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3828$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 3829if ${ac_cv_prog_ac_ct_CC+:} false; then :
39fd3d4f 3830 $as_echo_n "(cached) " >&6
e1052144 3831else
57aa50d4
TT
3832 if test -n "$ac_ct_CC"; then
3833 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3834else
3835as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3836for as_dir in $PATH
e1052144
TT
3837do
3838 IFS=$as_save_IFS
3839 test -z "$as_dir" && as_dir=.
39fd3d4f 3840 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 3841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
3842 ac_cv_prog_ac_ct_CC="gcc"
3843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3844 break 2
3845 fi
e1052144 3846done
57aa50d4 3847 done
e1052144 3848IFS=$as_save_IFS
b0cacab0 3849
e1052144 3850fi
57aa50d4
TT
3851fi
3852ac_ct_CC=$ac_cv_prog_ac_ct_CC
3853if test -n "$ac_ct_CC"; then
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3855$as_echo "$ac_ct_CC" >&6; }
b0cacab0 3856else
57aa50d4
TT
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3858$as_echo "no" >&6; }
3859fi
b0cacab0 3860
57aa50d4
TT
3861 if test "x$ac_ct_CC" = x; then
3862 CC=""
3863 else
3864 case $cross_compiling:$ac_tool_warned in
3865yes:)
3866{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3867$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3868ac_tool_warned=yes ;;
e1052144 3869esac
57aa50d4
TT
3870 CC=$ac_ct_CC
3871 fi
b0cacab0 3872else
57aa50d4 3873 CC="$ac_cv_prog_CC"
b0cacab0 3874fi
e1052144 3875
57aa50d4
TT
3876if test -z "$CC"; then
3877 if test -n "$ac_tool_prefix"; then
3878 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3879set dummy ${ac_tool_prefix}cc; ac_word=$2
3880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3881$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 3882if ${ac_cv_prog_CC+:} false; then :
57aa50d4 3883 $as_echo_n "(cached) " >&6
a64c9c13 3884else
57aa50d4
TT
3885 if test -n "$CC"; then
3886 ac_cv_prog_CC="$CC" # Let the user override the test.
3887else
3888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3889for as_dir in $PATH
3890do
3891 IFS=$as_save_IFS
3892 test -z "$as_dir" && as_dir=.
3893 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 3894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
3895 ac_cv_prog_CC="${ac_tool_prefix}cc"
3896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3897 break 2
3898 fi
3899done
3900 done
3901IFS=$as_save_IFS
b0cacab0 3902
a64c9c13 3903fi
57aa50d4
TT
3904fi
3905CC=$ac_cv_prog_CC
3906if test -n "$CC"; then
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3908$as_echo "$CC" >&6; }
b0cacab0 3909else
57aa50d4
TT
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3911$as_echo "no" >&6; }
a64c9c13 3912fi
b0cacab0 3913
b0cacab0 3914
57aa50d4
TT
3915 fi
3916fi
3917if test -z "$CC"; then
3918 # Extract the first word of "cc", so it can be a program name with args.
3919set dummy cc; ac_word=$2
3920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3921$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 3922if ${ac_cv_prog_CC+:} false; then :
57aa50d4 3923 $as_echo_n "(cached) " >&6
a64c9c13 3924else
57aa50d4
TT
3925 if test -n "$CC"; then
3926 ac_cv_prog_CC="$CC" # Let the user override the test.
a64c9c13 3927else
57aa50d4
TT
3928 ac_prog_rejected=no
3929as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3930for as_dir in $PATH
3931do
3932 IFS=$as_save_IFS
3933 test -z "$as_dir" && as_dir=.
3934 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 3935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
3936 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3937 ac_prog_rejected=yes
3938 continue
3939 fi
3940 ac_cv_prog_CC="cc"
3941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3942 break 2
3943 fi
3944done
3945 done
3946IFS=$as_save_IFS
b0cacab0 3947
57aa50d4
TT
3948if test $ac_prog_rejected = yes; then
3949 # We found a bogon in the path, so make sure we never use it.
3950 set dummy $ac_cv_prog_CC
3951 shift
3952 if test $# != 0; then
3953 # We chose a different compiler from the bogus one.
3954 # However, it has the same basename, so the bogon will be chosen
3955 # first if we set CC to just the basename; use the full file name.
3956 shift
3957 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3958 fi
b0cacab0 3959fi
b0cacab0
TT
3960fi
3961fi
57aa50d4
TT
3962CC=$ac_cv_prog_CC
3963if test -n "$CC"; then
3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3965$as_echo "$CC" >&6; }
3966else
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3968$as_echo "no" >&6; }
b0cacab0 3969fi
b0cacab0 3970
b0cacab0
TT
3971
3972fi
57aa50d4
TT
3973if test -z "$CC"; then
3974 if test -n "$ac_tool_prefix"; then
3975 for ac_prog in cl.exe
3976 do
3977 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3978set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3980$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 3981if ${ac_cv_prog_CC+:} false; then :
57aa50d4
TT
3982 $as_echo_n "(cached) " >&6
3983else
3984 if test -n "$CC"; then
3985 ac_cv_prog_CC="$CC" # Let the user override the test.
3986else
3987as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3988for as_dir in $PATH
3989do
3990 IFS=$as_save_IFS
3991 test -z "$as_dir" && as_dir=.
3992 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 3993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
3994 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3996 break 2
3997 fi
3998done
3999 done
4000IFS=$as_save_IFS
b0cacab0 4001
57aa50d4
TT
4002fi
4003fi
4004CC=$ac_cv_prog_CC
4005if test -n "$CC"; then
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4007$as_echo "$CC" >&6; }
4008else
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4010$as_echo "no" >&6; }
4011fi
b0cacab0
TT
4012
4013
57aa50d4
TT
4014 test -n "$CC" && break
4015 done
4016fi
4017if test -z "$CC"; then
4018 ac_ct_CC=$CC
4019 for ac_prog in cl.exe
b0cacab0 4020do
57aa50d4
TT
4021 # Extract the first word of "$ac_prog", so it can be a program name with args.
4022set dummy $ac_prog; ac_word=$2
4023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4024$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 4025if ${ac_cv_prog_ac_ct_CC+:} false; then :
39fd3d4f 4026 $as_echo_n "(cached) " >&6
b0cacab0 4027else
57aa50d4
TT
4028 if test -n "$ac_ct_CC"; then
4029 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
b0cacab0 4030else
57aa50d4
TT
4031as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4032for as_dir in $PATH
4033do
4034 IFS=$as_save_IFS
4035 test -z "$as_dir" && as_dir=.
4036 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 4037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
4038 ac_cv_prog_ac_ct_CC="$ac_prog"
4039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4040 break 2
4041 fi
4042done
4043 done
4044IFS=$as_save_IFS
b0cacab0 4045
b0cacab0 4046fi
b0cacab0 4047fi
57aa50d4
TT
4048ac_ct_CC=$ac_cv_prog_ac_ct_CC
4049if test -n "$ac_ct_CC"; then
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4051$as_echo "$ac_ct_CC" >&6; }
4052else
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4054$as_echo "no" >&6; }
b0cacab0
TT
4055fi
4056
b0cacab0 4057
57aa50d4
TT
4058 test -n "$ac_ct_CC" && break
4059done
b0cacab0 4060
57aa50d4
TT
4061 if test "x$ac_ct_CC" = x; then
4062 CC=""
4063 else
4064 case $cross_compiling:$ac_tool_warned in
4065yes:)
4066{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4067$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4068ac_tool_warned=yes ;;
e1052144 4069esac
57aa50d4
TT
4070 CC=$ac_ct_CC
4071 fi
4072fi
b0cacab0 4073
b0cacab0 4074fi
e1052144 4075
b0cacab0 4076
57aa50d4
TT
4077test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4078$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d6a4bcb5
TB
4079as_fn_error $? "no acceptable C compiler found in \$PATH
4080See \`config.log' for more details" "$LINENO" 5; }
57aa50d4
TT
4081
4082# Provide some information about the compiler.
4083$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4084set X $ac_compile
4085ac_compiler=$2
4086for ac_option in --version -v -V -qversion; do
4087 { { ac_try="$ac_compiler $ac_option >&5"
e1052144
TT
4088case "(($ac_try" in
4089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4090 *) ac_try_echo=$ac_try;;
4091esac
57aa50d4
TT
4092eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4093$as_echo "$ac_try_echo"; } >&5
4094 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
b0cacab0 4095 ac_status=$?
57aa50d4
TT
4096 if test -s conftest.err; then
4097 sed '10a\
4098... rest of stderr output deleted ...
4099 10q' conftest.err >conftest.er1
4100 cat conftest.er1 >&5
57aa50d4 4101 fi
61ef2474 4102 rm -f conftest.er1 conftest.err
57aa50d4
TT
4103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4104 test $ac_status = 0; }
4105done
e1052144 4106
57aa50d4
TT
4107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4108$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d6a4bcb5 4109if ${ac_cv_c_compiler_gnu+:} false; then :
39fd3d4f 4110 $as_echo_n "(cached) " >&6
b0cacab0 4111else
57aa50d4
TT
4112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4113/* end confdefs.h. */
b0cacab0 4114
57aa50d4
TT
4115int
4116main ()
4117{
4118#ifndef __GNUC__
4119 choke me
4120#endif
a64c9c13 4121
57aa50d4
TT
4122 ;
4123 return 0;
4124}
4125_ACEOF
4126if ac_fn_c_try_compile "$LINENO"; then :
4127 ac_compiler_gnu=yes
b1c92f91 4128else
57aa50d4 4129 ac_compiler_gnu=no
b1c92f91 4130fi
57aa50d4
TT
4131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4132ac_cv_c_compiler_gnu=$ac_compiler_gnu
b0cacab0 4133
e1052144 4134fi
57aa50d4
TT
4135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4136$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4137if test $ac_compiler_gnu = yes; then
4138 GCC=yes
98919bdb 4139else
57aa50d4 4140 GCC=
98919bdb 4141fi
57aa50d4
TT
4142ac_test_CFLAGS=${CFLAGS+set}
4143ac_save_CFLAGS=$CFLAGS
4144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4145$as_echo_n "checking whether $CC accepts -g... " >&6; }
d6a4bcb5 4146if ${ac_cv_prog_cc_g+:} false; then :
57aa50d4 4147 $as_echo_n "(cached) " >&6
98919bdb 4148else
57aa50d4
TT
4149 ac_save_c_werror_flag=$ac_c_werror_flag
4150 ac_c_werror_flag=yes
4151 ac_cv_prog_cc_g=no
4152 CFLAGS="-g"
4153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4154/* end confdefs.h. */
e1052144 4155
57aa50d4
TT
4156int
4157main ()
4158{
98919bdb 4159
57aa50d4
TT
4160 ;
4161 return 0;
4162}
4163_ACEOF
4164if ac_fn_c_try_compile "$LINENO"; then :
4165 ac_cv_prog_cc_g=yes
c13351f6 4166else
57aa50d4
TT
4167 CFLAGS=""
4168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4169/* end confdefs.h. */
c13351f6 4170
57aa50d4
TT
4171int
4172main ()
4173{
c13351f6 4174
57aa50d4
TT
4175 ;
4176 return 0;
4177}
4178_ACEOF
4179if ac_fn_c_try_compile "$LINENO"; then :
c13351f6 4180
57aa50d4
TT
4181else
4182 ac_c_werror_flag=$ac_save_c_werror_flag
4183 CFLAGS="-g"
4184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4185/* end confdefs.h. */
c13351f6 4186
57aa50d4
TT
4187int
4188main ()
4189{
c13351f6 4190
57aa50d4
TT
4191 ;
4192 return 0;
4193}
b0cacab0 4194_ACEOF
57aa50d4
TT
4195if ac_fn_c_try_compile "$LINENO"; then :
4196 ac_cv_prog_cc_g=yes
1917875f 4197fi
57aa50d4 4198rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e1052144 4199fi
57aa50d4 4200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8fdc9985 4201fi
57aa50d4
TT
4202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4203 ac_c_werror_flag=$ac_save_c_werror_flag
e1052144 4204fi
57aa50d4
TT
4205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4206$as_echo "$ac_cv_prog_cc_g" >&6; }
4207if test "$ac_test_CFLAGS" = set; then
4208 CFLAGS=$ac_save_CFLAGS
4209elif test $ac_cv_prog_cc_g = yes; then
4210 if test "$GCC" = yes; then
4211 CFLAGS="-g -O2"
4212 else
4213 CFLAGS="-g"
4214 fi
a64c9c13 4215else
57aa50d4
TT
4216 if test "$GCC" = yes; then
4217 CFLAGS="-O2"
4218 else
4219 CFLAGS=
4220 fi
a64c9c13 4221fi
57aa50d4
TT
4222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4223$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
d6a4bcb5 4224if ${ac_cv_prog_cc_c89+:} false; then :
57aa50d4 4225 $as_echo_n "(cached) " >&6
a64c9c13 4226else
57aa50d4
TT
4227 ac_cv_prog_cc_c89=no
4228ac_save_CC=$CC
4229cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4230/* end confdefs.h. */
4231#include <stdarg.h>
4232#include <stdio.h>
d6a4bcb5 4233struct stat;
57aa50d4
TT
4234/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4235struct buf { int x; };
4236FILE * (*rcsopen) (struct buf *, struct stat *, int);
4237static char *e (p, i)
4238 char **p;
4239 int i;
4240{
4241 return p[i];
4242}
4243static char *f (char * (*g) (char **, int), char **p, ...)
4244{
4245 char *s;
4246 va_list v;
4247 va_start (v,p);
4248 s = g (p, va_arg (v,int));
4249 va_end (v);
4250 return s;
4251}
e1052144 4252
57aa50d4
TT
4253/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4254 function prototypes and stuff, but not '\xHH' hex character constants.
4255 These don't provoke an error unfortunately, instead are silently treated
4256 as 'x'. The following induces an error, until -std is added to get
4257 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4258 array size at least. It's necessary to write '\x00'==0 to get something
4259 that's true only with -std. */
4260int osf4_cc_array ['\x00' == 0 ? 1 : -1];
93636bde 4261
57aa50d4
TT
4262/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4263 inside strings and character constants. */
4264#define FOO(x) 'x'
4265int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
a64c9c13 4266
57aa50d4
TT
4267int test (int i, double x);
4268struct s1 {int (*f) (int a);};
4269struct s2 {int (*f) (double a);};
4270int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4271int argc;
4272char **argv;
4273int
4274main ()
4275{
4276return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4277 ;
4278 return 0;
4279}
4280_ACEOF
4281for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4282 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4283do
4284 CC="$ac_save_CC $ac_arg"
4285 if ac_fn_c_try_compile "$LINENO"; then :
4286 ac_cv_prog_cc_c89=$ac_arg
a64c9c13 4287fi
57aa50d4
TT
4288rm -f core conftest.err conftest.$ac_objext
4289 test "x$ac_cv_prog_cc_c89" != "xno" && break
4290done
4291rm -f conftest.$ac_ext
4292CC=$ac_save_CC
a64c9c13 4293
57aa50d4
TT
4294fi
4295# AC_CACHE_VAL
4296case "x$ac_cv_prog_cc_c89" in
4297 x)
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4299$as_echo "none needed" >&6; } ;;
4300 xno)
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4302$as_echo "unsupported" >&6; } ;;
4303 *)
4304 CC="$CC $ac_cv_prog_cc_c89"
4305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4306$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4307esac
4308if test "x$ac_cv_prog_cc_c89" != xno; then :
a64c9c13 4309
e1052144
TT
4310fi
4311
57aa50d4
TT
4312ac_ext=c
4313ac_cpp='$CPP $CPPFLAGS'
4314ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4315ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4316ac_compiler_gnu=$ac_cv_c_compiler_gnu
93636bde 4317
9b3018a8
TT
4318if test "$GCC" = yes; then
4319 RDYNAMIC="-rdynamic"
4320
4321fi
57aa50d4
TT
4322ac_ext=c
4323ac_cpp='$CPP $CPPFLAGS'
4324ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4325ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4326ac_compiler_gnu=$ac_cv_c_compiler_gnu
4327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4328$as_echo_n "checking how to run the C preprocessor... " >&6; }
4329# On Suns, sometimes $CPP names a directory.
4330if test -n "$CPP" && test -d "$CPP"; then
4331 CPP=
4332fi
4333if test -z "$CPP"; then
d6a4bcb5 4334 if ${ac_cv_prog_CPP+:} false; then :
57aa50d4
TT
4335 $as_echo_n "(cached) " >&6
4336else
4337 # Double quotes because CPP needs to be expanded
4338 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4339 do
4340 ac_preproc_ok=false
4341for ac_c_preproc_warn_flag in '' yes
4342do
4343 # Use a header file that comes with gcc, so configuring glibc
4344 # with a fresh cross-compiler works.
4345 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4346 # <limits.h> exists even on freestanding compilers.
4347 # On the NeXT, cc -E runs the code through the compiler's parser,
4348 # not just through cpp. "Syntax error" is here to catch this case.
4349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4350/* end confdefs.h. */
4351#ifdef __STDC__
4352# include <limits.h>
4353#else
4354# include <assert.h>
4355#endif
4356 Syntax error
4357_ACEOF
4358if ac_fn_c_try_cpp "$LINENO"; then :
a64c9c13 4359
cdf186e4 4360else
57aa50d4
TT
4361 # Broken: fails on valid input.
4362continue
cdf186e4 4363fi
d6a4bcb5 4364rm -f conftest.err conftest.i conftest.$ac_ext
cdf186e4 4365
57aa50d4
TT
4366 # OK, works on sane cases. Now check whether nonexistent headers
4367 # can be detected and how.
4368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4369/* end confdefs.h. */
4370#include <ac_nonexistent.h>
4371_ACEOF
4372if ac_fn_c_try_cpp "$LINENO"; then :
4373 # Broken: success on invalid input.
4374continue
cdf186e4 4375else
57aa50d4
TT
4376 # Passes both tests.
4377ac_preproc_ok=:
4378break
4379fi
d6a4bcb5 4380rm -f conftest.err conftest.i conftest.$ac_ext
cdf186e4 4381
57aa50d4
TT
4382done
4383# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
d6a4bcb5 4384rm -f conftest.i conftest.err conftest.$ac_ext
57aa50d4
TT
4385if $ac_preproc_ok; then :
4386 break
e1052144
TT
4387fi
4388
57aa50d4
TT
4389 done
4390 ac_cv_prog_CPP=$CPP
93636bde 4391
cdf186e4 4392fi
57aa50d4 4393 CPP=$ac_cv_prog_CPP
cdf186e4 4394else
57aa50d4 4395 ac_cv_prog_CPP=$CPP
e1052144 4396fi
57aa50d4
TT
4397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4398$as_echo "$CPP" >&6; }
4399ac_preproc_ok=false
4400for ac_c_preproc_warn_flag in '' yes
4401do
4402 # Use a header file that comes with gcc, so configuring glibc
4403 # with a fresh cross-compiler works.
4404 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4405 # <limits.h> exists even on freestanding compilers.
4406 # On the NeXT, cc -E runs the code through the compiler's parser,
4407 # not just through cpp. "Syntax error" is here to catch this case.
4408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4409/* end confdefs.h. */
4410#ifdef __STDC__
4411# include <limits.h>
4412#else
4413# include <assert.h>
4414#endif
4415 Syntax error
b0cacab0 4416_ACEOF
57aa50d4 4417if ac_fn_c_try_cpp "$LINENO"; then :
80bfaa3e
TT
4418
4419else
57aa50d4
TT
4420 # Broken: fails on valid input.
4421continue
e1052144 4422fi
d6a4bcb5 4423rm -f conftest.err conftest.i conftest.$ac_ext
e1052144 4424
57aa50d4
TT
4425 # OK, works on sane cases. Now check whether nonexistent headers
4426 # can be detected and how.
4427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4428/* end confdefs.h. */
4429#include <ac_nonexistent.h>
b0cacab0 4430_ACEOF
57aa50d4
TT
4431if ac_fn_c_try_cpp "$LINENO"; then :
4432 # Broken: success on invalid input.
4433continue
f0a22d0f 4434else
57aa50d4
TT
4435 # Passes both tests.
4436ac_preproc_ok=:
4437break
e1052144 4438fi
d6a4bcb5 4439rm -f conftest.err conftest.i conftest.$ac_ext
e1052144 4440
57aa50d4
TT
4441done
4442# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
d6a4bcb5 4443rm -f conftest.i conftest.err conftest.$ac_ext
57aa50d4 4444if $ac_preproc_ok; then :
2a29f135
TT
4445
4446else
57aa50d4
TT
4447 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4448$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d6a4bcb5
TB
4449as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4450See \`config.log' for more details" "$LINENO" 5; }
e1052144
TT
4451fi
4452
57aa50d4
TT
4453ac_ext=c
4454ac_cpp='$CPP $CPPFLAGS'
4455ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4456ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4457ac_compiler_gnu=$ac_cv_c_compiler_gnu
af773654 4458
57aa50d4
TT
4459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
4460$as_echo_n "checking for additional special compiler flags... " >&6; }
4461if test "$GCC" = yes
4462then
4463 case "$host_cpu" in
4464 alpha) addcflags="-mieee" ;;
4465 esac
14b596d4 4466fi
57aa50d4
TT
4467if test "x$addcflags" != x
4468then
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
4470$as_echo "$addcflags" >&6; }
4471 CFLAGS="$addcflags $CFLAGS"
14b596d4 4472else
57aa50d4
TT
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
4474$as_echo "(none)" >&6; }
14b596d4
TT
4475fi
4476
93613951
TT
4477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4478$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4479if ${ac_cv_path_GREP+:} false; then :
4480 $as_echo_n "(cached) " >&6
57aa50d4 4481else
93613951
TT
4482 if test -z "$GREP"; then
4483 ac_path_GREP_found=false
4484 # Loop through the user's path and test for each of PROGNAME-LIST
4485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4486for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4487do
4488 IFS=$as_save_IFS
4489 test -z "$as_dir" && as_dir=.
4490 for ac_prog in grep ggrep; do
4491 for ac_exec_ext in '' $ac_executable_extensions; do
4492 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4493 as_fn_executable_p "$ac_path_GREP" || continue
4494# Check for GNU ac_path_GREP and select it if it is found.
4495 # Check for GNU $ac_path_GREP
4496case `"$ac_path_GREP" --version 2>&1` in
4497*GNU*)
4498 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4499*)
4500 ac_count=0
4501 $as_echo_n 0123456789 >"conftest.in"
4502 while :
4503 do
4504 cat "conftest.in" "conftest.in" >"conftest.tmp"
4505 mv "conftest.tmp" "conftest.in"
4506 cp "conftest.in" "conftest.nl"
4507 $as_echo 'GREP' >> "conftest.nl"
4508 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4509 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4510 as_fn_arith $ac_count + 1 && ac_count=$as_val
4511 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4512 # Best one so far, save it but keep looking for a better one
4513 ac_cv_path_GREP="$ac_path_GREP"
4514 ac_path_GREP_max=$ac_count
4515 fi
4516 # 10*(2^10) chars as input seems more than enough
4517 test $ac_count -gt 10 && break
4518 done
4519 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4520esac
14b596d4 4521
93613951
TT
4522 $ac_path_GREP_found && break 3
4523 done
4524 done
4525 done
4526IFS=$as_save_IFS
4527 if test -z "$ac_cv_path_GREP"; then
4528 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4529 fi
57aa50d4 4530else
93613951
TT
4531 ac_cv_path_GREP=$GREP
4532fi
57aa50d4 4533
14b596d4 4534fi
93613951
TT
4535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4536$as_echo "$ac_cv_path_GREP" >&6; }
4537 GREP="$ac_cv_path_GREP"
14b596d4 4538
14b596d4 4539
93613951
TT
4540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4541$as_echo_n "checking for egrep... " >&6; }
4542if ${ac_cv_path_EGREP+:} false; then :
4543 $as_echo_n "(cached) " >&6
5aa6c3f6 4544else
93613951
TT
4545 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4546 then ac_cv_path_EGREP="$GREP -E"
4547 else
4548 if test -z "$EGREP"; then
4549 ac_path_EGREP_found=false
4550 # Loop through the user's path and test for each of PROGNAME-LIST
4551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4552for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4553do
4554 IFS=$as_save_IFS
4555 test -z "$as_dir" && as_dir=.
4556 for ac_prog in egrep; do
4557 for ac_exec_ext in '' $ac_executable_extensions; do
4558 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4559 as_fn_executable_p "$ac_path_EGREP" || continue
4560# Check for GNU ac_path_EGREP and select it if it is found.
4561 # Check for GNU $ac_path_EGREP
4562case `"$ac_path_EGREP" --version 2>&1` in
4563*GNU*)
4564 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4565*)
4566 ac_count=0
4567 $as_echo_n 0123456789 >"conftest.in"
4568 while :
4569 do
4570 cat "conftest.in" "conftest.in" >"conftest.tmp"
4571 mv "conftest.tmp" "conftest.in"
4572 cp "conftest.in" "conftest.nl"
4573 $as_echo 'EGREP' >> "conftest.nl"
4574 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4575 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4576 as_fn_arith $ac_count + 1 && ac_count=$as_val
4577 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4578 # Best one so far, save it but keep looking for a better one
4579 ac_cv_path_EGREP="$ac_path_EGREP"
4580 ac_path_EGREP_max=$ac_count
4581 fi
4582 # 10*(2^10) chars as input seems more than enough
4583 test $ac_count -gt 10 && break
4584 done
4585 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4586esac
5aa6c3f6 4587
93613951
TT
4588 $ac_path_EGREP_found && break 3
4589 done
4590 done
4591 done
4592IFS=$as_save_IFS
4593 if test -z "$ac_cv_path_EGREP"; then
4594 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4595 fi
5aa6c3f6 4596else
93613951
TT
4597 ac_cv_path_EGREP=$EGREP
4598fi
183c73b0 4599
93613951 4600 fi
183c73b0 4601fi
93613951
TT
4602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4603$as_echo "$ac_cv_path_EGREP" >&6; }
4604 EGREP="$ac_cv_path_EGREP"
183c73b0
TT
4605
4606
93613951
TT
4607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4608$as_echo_n "checking for ANSI C header files... " >&6; }
4609if ${ac_cv_header_stdc+:} false; then :
4610 $as_echo_n "(cached) " >&6
91d11da1 4611else
93613951
TT
4612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4613/* end confdefs.h. */
4614#include <stdlib.h>
4615#include <stdarg.h>
4616#include <string.h>
4617#include <float.h>
91d11da1 4618
93613951
TT
4619int
4620main ()
4621{
183c73b0 4622
93613951
TT
4623 ;
4624 return 0;
4625}
4626_ACEOF
4627if ac_fn_c_try_compile "$LINENO"; then :
4628 ac_cv_header_stdc=yes
183c73b0 4629else
93613951 4630 ac_cv_header_stdc=no
5aa6c3f6 4631fi
93613951 4632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5aa6c3f6 4633
93613951
TT
4634if test $ac_cv_header_stdc = yes; then
4635 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4637/* end confdefs.h. */
4638#include <string.h>
4639
4640_ACEOF
4641if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4642 $EGREP "memchr" >/dev/null 2>&1; then :
4643
4644else
4645 ac_cv_header_stdc=no
4646fi
4647rm -f conftest*
4648
4649fi
4650
4651if test $ac_cv_header_stdc = yes; then
4652 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4654/* end confdefs.h. */
4655#include <stdlib.h>
4656
4657_ACEOF
4658if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4659 $EGREP "free" >/dev/null 2>&1; then :
4660
4661else
4662 ac_cv_header_stdc=no
4663fi
4664rm -f conftest*
4665
4666fi
4667
4668if test $ac_cv_header_stdc = yes; then
4669 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4670 if test "$cross_compiling" = yes; then :
4671 :
4672else
4673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4674/* end confdefs.h. */
4675#include <ctype.h>
4676#include <stdlib.h>
4677#if ((' ' & 0x0FF) == 0x020)
4678# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4679# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4680#else
4681# define ISLOWER(c) \
4682 (('a' <= (c) && (c) <= 'i') \
4683 || ('j' <= (c) && (c) <= 'r') \
4684 || ('s' <= (c) && (c) <= 'z'))
4685# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4686#endif
4687
4688#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4689int
4690main ()
4691{
4692 int i;
4693 for (i = 0; i < 256; i++)
4694 if (XOR (islower (i), ISLOWER (i))
4695 || toupper (i) != TOUPPER (i))
4696 return 2;
4697 return 0;
4698}
4699_ACEOF
4700if ac_fn_c_try_run "$LINENO"; then :
4701
4702else
4703 ac_cv_header_stdc=no
4704fi
4705rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4706 conftest.$ac_objext conftest.beam conftest.$ac_ext
4707fi
4708
4709fi
4710fi
4711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4712$as_echo "$ac_cv_header_stdc" >&6; }
4713if test $ac_cv_header_stdc = yes; then
4714
4715$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4716
4717fi
4718
4719# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4720for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4721 inttypes.h stdint.h unistd.h
4722do :
4723 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4724ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4725"
4726if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4727 cat >>confdefs.h <<_ACEOF
4728#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4729_ACEOF
4730
4731fi
4732
4733done
4734
4735
4736
4737 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4738if test "x$ac_cv_header_minix_config_h" = xyes; then :
4739 MINIX=yes
4740else
4741 MINIX=
4742fi
4743
4744
4745 if test "$MINIX" = yes; then
4746
4747$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4748
4749
4750$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4751
4752
4753$as_echo "#define _MINIX 1" >>confdefs.h
4754
4755 fi
4756
4757
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4759$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4760if ${ac_cv_safe_to_define___extensions__+:} false; then :
4761 $as_echo_n "(cached) " >&6
4762else
4763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4764/* end confdefs.h. */
4765
4766# define __EXTENSIONS__ 1
4767 $ac_includes_default
4768int
4769main ()
4770{
4771
4772 ;
4773 return 0;
4774}
4775_ACEOF
4776if ac_fn_c_try_compile "$LINENO"; then :
4777 ac_cv_safe_to_define___extensions__=yes
4778else
4779 ac_cv_safe_to_define___extensions__=no
4780fi
4781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4782fi
4783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4784$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4785 test $ac_cv_safe_to_define___extensions__ = yes &&
4786 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4787
4788 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4789
4790 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4791
4792 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4793
4794 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4795
4796
4797LIB_EXT=.a
4798STATIC_LIB_EXT=.a
4799PROFILED_LIB_EXT=.a
4800
4801# Check whether --with-root-prefix was given.
4802if test "${with_root_prefix+set}" = set; then :
4803 withval=$with_root_prefix; root_prefix=$withval
4804else
4805 root_prefix=NONE
4806fi
4807# Check whether --enable-maintainer-mode was given.
4808if test "${enable_maintainer_mode+set}" = set; then :
4809 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
4810then
4811 MAINTAINER_CMT=#
4812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
4813$as_echo "Disabling maintainer mode" >&6; }
4814else
4815 MAINTAINER_CMT=
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
4817$as_echo "Enabling maintainer mode" >&6; }
4818fi
4819
4820else
4821 MAINTAINER_CMT=#
4822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
4823$as_echo "Disabling maintainer mode by default" >&6; }
4824
4825fi
4826
4827
4828# Check whether --enable-symlink-install was given.
4829if test "${enable_symlink_install+set}" = set; then :
4830 enableval=$enable_symlink_install; if test "$enableval" = "no"
4831then
4832 LINK_INSTALL_FLAGS=-f
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4834$as_echo "Disabling symlinks for install" >&6; }
4835else
4836 LINK_INSTALL_FLAGS=-sf
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4838$as_echo "Enabling symlinks for install" >&6; }
4839fi
4840
4841else
4842 LINK_INSTALL_FLAGS=-f
4843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4844$as_echo "Disabling symlinks for install by default" >&6; }
4845
4846fi
4847
4848
4849relative_symlink_defined=
4850# Check whether --enable-relative-symlinks was given.
4851if test "${enable_relative_symlinks+set}" = set; then :
4852 enableval=$enable_relative_symlinks; if test "$enableval" = "no"
4853then
4854 SYMLINK_RELATIVE=
4855 relative_symlink_defined=yes
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4857$as_echo "Disabling relative symlinks for install" >&6; }
4858else
4859 SYMLINK_RELATIVE=--relative
4860 relative_symlink_defined=yes
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4862$as_echo "Enabling relative symlinks for install" >&6; }
4863fi
4864fi
4865
4866# Check whether --enable-symlink-relative-symlinks was given.
4867if test "${enable_symlink_relative_symlinks+set}" = set; then :
4868 enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4869then
4870 SYMLINK_RELATIVE=yes
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4872$as_echo "Disabling relative symlinks for install" >&6; }
4873else
4874 SYMLINK_RELATIVE=--relative
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4876$as_echo "Enabling relative symlinks for install" >&6; }
4877fi
4878
4879else
4880 if test -z "$relative_symlink_defined"
4881then
4882 SYMLINK_RELATIVE=
4883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4884$as_echo "Disabling relative symlinks for install by default" >&6; }
4885fi
4886
4887fi
4888
4889
4890# Check whether --enable-symlink-build was given.
4891if test "${enable_symlink_build+set}" = set; then :
5aa6c3f6
TT
4892 enableval=$enable_symlink_build; if test "$enableval" = "no"
4893then
4894 LINK_BUILD_FLAGS=
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4896$as_echo "Disabling symlinks for build" >&6; }
4897else
4898 LINK_BUILD_FLAGS=-s
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4900$as_echo "Enabling symlinks for build" >&6; }
4901fi
4902
4903else
4904 LINK_BUILD_FLAGS=
183c73b0
TT
4905{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4906$as_echo "Disabling symlinks for build by default" >&6; }
5aa6c3f6
TT
4907
4908fi
4909
4910
57aa50d4
TT
4911# Check whether --enable-verbose-makecmds was given.
4912if test "${enable_verbose_makecmds+set}" = set; then :
4913 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4914then
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4916$as_echo "Disabling verbose make commands" >&6; }
4917 E=@echo
c1986ecb 4918 ES=echo
57aa50d4 4919 Q=@
14b596d4 4920else
57aa50d4
TT
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
4922$as_echo "Enabling verbose make commands" >&6; }
4923 E=@\\#
c1986ecb 4924 ES=\\#
57aa50d4
TT
4925 Q=
4926fi
14b596d4 4927
14b596d4 4928else
57aa50d4
TT
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4930$as_echo "Disabling verbose make commands" >&6; }
4931E=@echo
c1986ecb 4932ES=echo
57aa50d4 4933Q=@
14b596d4 4934
14b596d4
TT
4935fi
4936
14b596d4 4937
57aa50d4 4938
c1986ecb 4939
57aa50d4
TT
4940E2_PKG_CONFIG_STATIC=--static
4941LDFLAG_DYNAMIC=
4942PRIVATE_LIBS_CMT=
4943# Check whether --enable-elf-shlibs was given.
4944if test "${enable_elf_shlibs+set}" = set; then :
4945 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
cdf186e4 4946then
57aa50d4
TT
4947 ELF_CMT=#
4948 MAKEFILE_ELF=/dev/null
4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
4950$as_echo "Disabling ELF shared libraries" >&6; }
cdf186e4 4951else
57aa50d4
TT
4952 E2_PKG_CONFIG_STATIC=
4953 ELF_CMT=
4954 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
4955 case "$host_os" in
4956 solaris2.*)
4957 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4958 ;;
4959 esac
4960 BINARY_TYPE=elfbin
4961 LIB_EXT=.so
4962 PRIVATE_LIBS_CMT=#
4963 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
4965$as_echo "Enabling ELF shared libraries" >&6; }
cdf186e4
TT
4966fi
4967
4968else
57aa50d4
TT
4969 MAKEFILE_ELF=/dev/null
4970ELF_CMT=#
4971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
4972$as_echo "Disabling ELF shared libraries by default" >&6; }
cdf186e4 4973
e1052144
TT
4974fi
4975
cdf186e4 4976
57aa50d4
TT
4977
4978# Check whether --enable-bsd-shlibs was given.
4979if test "${enable_bsd_shlibs+set}" = set; then :
4980 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
cdf186e4 4981then
57aa50d4
TT
4982 BSDLIB_CMT=#
4983 MAKEFILE_BSDLIB=/dev/null
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
4985$as_echo "Disabling BSD shared libraries" >&6; }
cdf186e4 4986else
57aa50d4
TT
4987 E2_PKG_CONFIG_STATIC=
4988 BSDLIB_CMT=
4989 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
4990 LIB_EXT=.so
4991 case "$host_os" in
4992 darwin*)
4993 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4994 LIB_EXT=.dylib
4995 ;;
4996 esac
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
4998$as_echo "Enabling BSD shared libraries" >&6; }
cdf186e4
TT
4999fi
5000
5001else
57aa50d4
TT
5002 MAKEFILE_BSDLIB=/dev/null
5003BSDLIB_CMT=#
5004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
5005$as_echo "Disabling BSD shared libraries by default" >&6; }
cdf186e4 5006
e1052144
TT
5007fi
5008
cdf186e4 5009
57aa50d4
TT
5010
5011# Check whether --enable-profile was given.
5012if test "${enable_profile+set}" = set; then :
5013 enableval=$enable_profile; if test "$enableval" = "no"
cdf186e4 5014then
57aa50d4
TT
5015 PROFILE_CMT=#
5016 MAKEFILE_PROFILE=/dev/null
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
5018$as_echo "Disabling profiling libraries" >&6; }
cdf186e4 5019else
57aa50d4
TT
5020 PROFILE_CMT=
5021 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
5022 PROFILED_LIB_EXT=_p.a
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
5024$as_echo "Building profiling libraries" >&6; }
cdf186e4
TT
5025fi
5026
5027else
57aa50d4
TT
5028 PROFILE_CMT=#
5029MAKEFILE_PROFILE=/dev/null
5030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
5031$as_echo "Disabling profiling libraries by default" >&6; }
cdf186e4 5032
e1052144
TT
5033fi
5034
cdf186e4 5035
57aa50d4 5036
fedfb27f
TT
5037# Check whether --enable-gcov was given.
5038if test "${enable_gcov+set}" = set; then :
5039 enableval=$enable_gcov; if test "$enableval" = "yes"
5040then
5041 CFLAGS="-g -fprofile-arcs -ftest-coverage"
5042 LDFLAGS="-fprofile-arcs -ftest-coverage"
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5
5044$as_echo "Enabling gcov support" >&6; }
5045fi
5046
5047fi
5048
fd1677e8
TT
5049CFLAGS_SHLIB="${CFLAGS_SHLIB:-$CFLAGS}"
5050CFLAGS_STLIB="${CFLAGS_STLIB:-$CFLAGS}"
5051LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
5052LDFLAGS_STATIC=${LDFLAGS_STATIC:-$LDFLAGS}
5053# Check whether --enable-hardening was given.
5054if test "${enable_hardening+set}" = set; then :
5055 enableval=$enable_hardening; if test "$enableval" = "yes"
5056then
5057 HARDEN_CFLAGS="-D_FORTIFY_SOURCE=2 -fstack-protector-strong"
5058 HARDEN_LDFLAGS="-Wl,-z,relro -Wl,-z,now"
5059 CFLAGS="$CFLAGS $HARDEN_CFLAGS -fPIE"
5060 CFLAGS_SHLIB="$CFLAGS_SHLIB $HARDEN_CFLAGS"
5061 CFLAGS_STLIB="$CFLAGS_STLIB $HARDEN_CFLAGS -fPIE"
5062 LDFLAGS="$LDFLAGS $HARDEN_LDFLAGS -fPIE -pie"
5063 LDFLAGS_STATIC="$LDFLAGS_STATIC $HARDEN_LDFLAGS"
5064 LDFLAGS_SHLIB="$LDFLAGS_SHLIB $HARDEN_LDFLAGS"
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling hardening support" >&5
5066$as_echo "Enabling hardening support" >&6; }
5067fi
5068
5069fi
cdf186e4 5070
57aa50d4
TT
5071
5072
5073
5074
5075
5076# Check whether --enable-jbd-debug was given.
5077if test "${enable_jbd_debug+set}" = set; then :
5078 enableval=$enable_jbd_debug; if test "$enableval" = "no"
5d40773b 5079then
57aa50d4
TT
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
5081$as_echo "Disabling journal debugging" >&6; }
5d40773b 5082else
d1154eb4
TT
5083
5084$as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
57aa50d4
TT
5085
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
5087$as_echo "Enabling journal debugging" >&6; }
5d40773b
TT
5088fi
5089
5090else
57aa50d4
TT
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
5092$as_echo "Disabling journal debugging by default" >&6; }
5d40773b 5093
e1052144
TT
5094fi
5095
57aa50d4
TT
5096# Check whether --enable-blkid-debug was given.
5097if test "${enable_blkid_debug+set}" = set; then :
5098 enableval=$enable_blkid_debug; if test "$enableval" = "no"
3249394d 5099then
57aa50d4
TT
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
5101$as_echo "Disabling blkid debugging" >&6; }
3249394d 5102else
d1154eb4
TT
5103
5104$as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
57aa50d4
TT
5105
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
5107$as_echo "Enabling blkid debugging" >&6; }
3249394d
TT
5108fi
5109
5110else
57aa50d4
TT
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
5112$as_echo "Disabling blkid debugging by default" >&6; }
3249394d
TT
5113
5114fi
5115
57aa50d4
TT
5116# Check whether --enable-testio-debug was given.
5117if test "${enable_testio_debug+set}" = set; then :
d1154eb4
TT
5118 enableval=$enable_testio_debug;
5119if test "$enableval" = "no"
3249394d 5120then
57aa50d4
TT
5121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
5122$as_echo "Disabling testio debugging" >&6; }
5123 TEST_IO_CMT="#"
3249394d 5124else
57aa50d4
TT
5125 TEST_IO_CMT=
5126 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
3249394d 5127
57aa50d4
TT
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
5129$as_echo "Enabling testio debugging" >&6; }
5130fi
3249394d 5131
3249394d 5132else
57aa50d4
TT
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
5134$as_echo "Enabling testio debugging by default" >&6; }
5135$as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
3249394d 5136
57aa50d4 5137TEST_IO_CMT=
3249394d
TT
5138
5139fi
5140
3249394d 5141
b9e66a18
TT
5142# Check whether --enable-developer-features was given.
5143if test "${enable_developer_features+set}" = set; then :
5144 enableval=$enable_developer_features;
5145if test "$enableval" = "yes"
5146then
5147 DEV_FEATURES_CMT=
5148 $as_echo "#define CONFIG_DEVELOPER_FEATURES 1" >>confdefs.h
5149
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ext4 developer features" >&5
5151$as_echo "Enabling ext4 developer features" >&6; }
5152else
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ext4 developer features" >&5
5154$as_echo "Disabling ext4 developer features" >&6; }
5155 DEV_FEATURES_CMT="#"
5156fi
5157
5158else
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ext4 developer features by default" >&5
5160$as_echo "Disabling ext4 developer features by default" >&6; }
5161DEV_FEATURES_CMT=
5162
5163fi
5164
5165
57aa50d4
TT
5166
5167
93613951
TT
5168
5169
5170
5171
5172
57aa50d4 5173if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
93613951 5174 if test -n "$ac_tool_prefix"; then
57aa50d4
TT
5175 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5176set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5178$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 5179if ${ac_cv_path_PKG_CONFIG+:} false; then :
57aa50d4
TT
5180 $as_echo_n "(cached) " >&6
5181else
5182 case $PKG_CONFIG in
5183 [\\/]* | ?:[\\/]*)
5184 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5185 ;;
5186 *)
5187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5188for as_dir in $PATH
5189do
5190 IFS=$as_save_IFS
5191 test -z "$as_dir" && as_dir=.
5192 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 5193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
5194 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5196 break 2
5197 fi
5198done
5199 done
5200IFS=$as_save_IFS
5201
5202 ;;
5203esac
5204fi
5205PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5206if test -n "$PKG_CONFIG"; then
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5208$as_echo "$PKG_CONFIG" >&6; }
5209else
5210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5211$as_echo "no" >&6; }
3249394d
TT
5212fi
5213
5214
57aa50d4
TT
5215fi
5216if test -z "$ac_cv_path_PKG_CONFIG"; then
5217 ac_pt_PKG_CONFIG=$PKG_CONFIG
5218 # Extract the first word of "pkg-config", so it can be a program name with args.
5219set dummy pkg-config; ac_word=$2
5220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5221$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 5222if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
57aa50d4
TT
5223 $as_echo_n "(cached) " >&6
5224else
5225 case $ac_pt_PKG_CONFIG in
5226 [\\/]* | ?:[\\/]*)
5227 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5228 ;;
5229 *)
5230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5231for as_dir in $PATH
5232do
5233 IFS=$as_save_IFS
5234 test -z "$as_dir" && as_dir=.
5235 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 5236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
5237 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5239 break 2
5240 fi
5241done
5242 done
5243IFS=$as_save_IFS
3249394d 5244
57aa50d4
TT
5245 ;;
5246esac
5247fi
5248ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5249if test -n "$ac_pt_PKG_CONFIG"; then
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5251$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5252else
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5254$as_echo "no" >&6; }
5255fi
3249394d 5256
57aa50d4
TT
5257 if test "x$ac_pt_PKG_CONFIG" = x; then
5258 PKG_CONFIG=""
5259 else
5260 case $cross_compiling:$ac_tool_warned in
5261yes:)
5262{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5263$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5264ac_tool_warned=yes ;;
5265esac
5266 PKG_CONFIG=$ac_pt_PKG_CONFIG
3249394d 5267 fi
57aa50d4
TT
5268else
5269 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5270fi
3249394d
TT
5271
5272fi
57aa50d4 5273if test -n "$PKG_CONFIG"; then
93613951
TT
5274 _pkg_min_version=0.9.0
5275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
57aa50d4 5276$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
93613951
TT
5277 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
57aa50d4 5279$as_echo "yes" >&6; }
93613951
TT
5280 else
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
57aa50d4 5282$as_echo "no" >&6; }
93613951
TT
5283 PKG_CONFIG=""
5284 fi
57aa50d4
TT
5285fi
5286LIBUUID=
5287DEPLIBUUID=
5288STATIC_LIBUUID=
5289DEPSTATIC_LIBUUID=
5290PROFILED_LIBUUID=
5291DEPPROFILED_LIBUUID=
5292UUID_CMT=
5293# Check whether --enable-libuuid was given.
5294if test "${enable_libuuid+set}" = set; then :
5295 enableval=$enable_libuuid; if test "$enableval" = "no"
5610f992 5296then
57aa50d4 5297 if test -z "$PKG_CONFIG"; then
d6a4bcb5 5298 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
57aa50d4
TT
5299 fi
5300
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5302$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
d6a4bcb5 5303if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
57aa50d4 5304 $as_echo_n "(cached) " >&6
5610f992 5305else
57aa50d4 5306 ac_check_lib_save_LIBS=$LIBS
2d7583bd 5307LIBS="-luuid $LIBS"
57aa50d4
TT
5308cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5309/* end confdefs.h. */
5610f992 5310
57aa50d4
TT
5311/* Override any GCC internal prototype to avoid an error.
5312 Use char because int might match the return type of a GCC
5313 builtin and then its argument prototype would still apply. */
5314#ifdef __cplusplus
5315extern "C"
5316#endif
5317char uuid_generate ();
5318int
5319main ()
5320{
5321return uuid_generate ();
5322 ;
5323 return 0;
5324}
5325_ACEOF
5326if ac_fn_c_try_link "$LINENO"; then :
5327 ac_cv_lib_uuid_uuid_generate=yes
5328else
5329 ac_cv_lib_uuid_uuid_generate=no
5330fi
5331rm -f core conftest.err conftest.$ac_objext \
5332 conftest$ac_exeext conftest.$ac_ext
5333LIBS=$ac_check_lib_save_LIBS
5334fi
5335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5336$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
d6a4bcb5 5337if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
57aa50d4
TT
5338 LIBUUID=`$PKG_CONFIG --libs uuid`;
5339 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5340else
d6a4bcb5 5341 as_fn_error $? "external uuid library not found" "$LINENO" 5
5610f992
TT
5342fi
5343
5afdf37b 5344 PROFILED_LIBUUID=$LIBUUID
57aa50d4
TT
5345 UUID_CMT=#
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
5347$as_echo "Disabling private uuid library" >&6; }
5610f992 5348else
57aa50d4
TT
5349 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5350 DEPLIBUUID=$LIBUUID
5351 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5352 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5353 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5354 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
5356$as_echo "Enabling private uuid library" >&6; }
5357fi
5610f992 5358
57aa50d4 5359else
f5dffb81
TT
5360 if test -n "$PKG_CONFIG"; then
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5362$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5363if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
5364 $as_echo_n "(cached) " >&6
5365else
5366 ac_check_lib_save_LIBS=$LIBS
5367LIBS="-luuid $LIBS"
5368cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5369/* end confdefs.h. */
5370
5371/* Override any GCC internal prototype to avoid an error.
5372 Use char because int might match the return type of a GCC
5373 builtin and then its argument prototype would still apply. */
5374#ifdef __cplusplus
5375extern "C"
5376#endif
5377char uuid_generate ();
5378int
5379main ()
5380{
5381return uuid_generate ();
5382 ;
5383 return 0;
5384}
5385_ACEOF
5386if ac_fn_c_try_link "$LINENO"; then :
5387 ac_cv_lib_uuid_uuid_generate=yes
5388else
5389 ac_cv_lib_uuid_uuid_generate=no
5390fi
5391rm -f core conftest.err conftest.$ac_objext \
5392 conftest$ac_exeext conftest.$ac_ext
5393LIBS=$ac_check_lib_save_LIBS
5394fi
5395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5396$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5397if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
5398 LIBUUID=`$PKG_CONFIG --libs uuid`;
5399 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5400fi
5401
5402fi
5403if test -n "$LIBUUID"; then
5404 PROFILED_LIBUUID=$LIBUUID
5405 UUID_CMT=#
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system uuid by default" >&5
5407$as_echo "Using system uuid by default" >&6; }
5408else
5409 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5410 DEPLIBUUID=$LIBUUID
5411 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5412 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5413 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5414 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
57aa50d4 5416$as_echo "Enabling private uuid library by default" >&6; }
f5dffb81 5417fi
5610f992
TT
5418
5419fi
5420
5421
cdf186e4 5422
a64c9c13 5423
93636bde
TT
5424
5425
93636bde 5426
93636bde
TT
5427
5428
57aa50d4 5429
93613951
TT
5430
5431
5432
5433
5434
57aa50d4 5435if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
93613951 5436 if test -n "$ac_tool_prefix"; then
57aa50d4
TT
5437 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5438set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5440$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 5441if ${ac_cv_path_PKG_CONFIG+:} false; then :
39fd3d4f 5442 $as_echo_n "(cached) " >&6
a64c9c13 5443else
57aa50d4
TT
5444 case $PKG_CONFIG in
5445 [\\/]* | ?:[\\/]*)
5446 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5447 ;;
e1052144 5448 *)
b0cacab0
TT
5449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5450for as_dir in $PATH
5451do
5452 IFS=$as_save_IFS
5453 test -z "$as_dir" && as_dir=.
57aa50d4 5454 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 5455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
5456 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5458 break 2
5459 fi
b0cacab0 5460done
57aa50d4 5461 done
e1052144 5462IFS=$as_save_IFS
b0cacab0 5463
57aa50d4 5464 ;;
b0cacab0
TT
5465esac
5466fi
57aa50d4
TT
5467PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5468if test -n "$PKG_CONFIG"; then
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5470$as_echo "$PKG_CONFIG" >&6; }
07a0db15 5471else
57aa50d4 5472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39fd3d4f 5473$as_echo "no" >&6; }
07a0db15 5474fi
07a0db15 5475
57aa50d4
TT
5476
5477fi
5478if test -z "$ac_cv_path_PKG_CONFIG"; then
5479 ac_pt_PKG_CONFIG=$PKG_CONFIG
5480 # Extract the first word of "pkg-config", so it can be a program name with args.
5481set dummy pkg-config; ac_word=$2
5482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39fd3d4f 5483$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 5484if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
39fd3d4f 5485 $as_echo_n "(cached) " >&6
a64c9c13 5486else
57aa50d4 5487 case $ac_pt_PKG_CONFIG in
b0cacab0 5488 [\\/]* | ?:[\\/]*)
57aa50d4 5489 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
b0cacab0
TT
5490 ;;
5491 *)
5492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5493for as_dir in $PATH
5494do
5495 IFS=$as_save_IFS
5496 test -z "$as_dir" && as_dir=.
57aa50d4 5497 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 5498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
5499 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b0cacab0
TT
5501 break 2
5502 fi
5503done
57aa50d4 5504 done
e1052144 5505IFS=$as_save_IFS
a64c9c13 5506
b0cacab0
TT
5507 ;;
5508esac
a64c9c13 5509fi
57aa50d4
TT
5510ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5511if test -n "$ac_pt_PKG_CONFIG"; then
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5513$as_echo "$ac_pt_PKG_CONFIG" >&6; }
a64c9c13 5514else
57aa50d4 5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39fd3d4f 5516$as_echo "no" >&6; }
a64c9c13 5517fi
a64c9c13 5518
57aa50d4
TT
5519 if test "x$ac_pt_PKG_CONFIG" = x; then
5520 PKG_CONFIG=""
b0cacab0 5521 else
57aa50d4
TT
5522 case $cross_compiling:$ac_tool_warned in
5523yes:)
5524{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5525$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5526ac_tool_warned=yes ;;
5527esac
5528 PKG_CONFIG=$ac_pt_PKG_CONFIG
b0cacab0 5529 fi
57aa50d4
TT
5530else
5531 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
a64c9c13 5532fi
93636bde 5533
a64c9c13 5534fi
57aa50d4 5535if test -n "$PKG_CONFIG"; then
93613951
TT
5536 _pkg_min_version=0.9.0
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
57aa50d4 5538$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
93613951
TT
5539 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
57aa50d4 5541$as_echo "yes" >&6; }
93613951
TT
5542 else
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
57aa50d4 5544$as_echo "no" >&6; }
93613951
TT
5545 PKG_CONFIG=""
5546 fi
57aa50d4
TT
5547fi
5548LIBBLKID=
5549DEPLIBBLKID=
5550STATIC_LIBBLKID=
5551DEPSTATIC_LIBBLKID=
5552PROFILED_LIBBLKID=
5553DEPPROFILED_LIBBLKID=
5554BLKID_CMT=
d1154eb4 5555
57aa50d4
TT
5556# Check whether --enable-libblkid was given.
5557if test "${enable_libblkid+set}" = set; then :
5558 enableval=$enable_libblkid; if test "$enableval" = "no"
5559then
5560 if test -z "$PKG_CONFIG"; then
d6a4bcb5 5561 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
57aa50d4
TT
5562 fi
5563
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5565$as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
d6a4bcb5 5566if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
39fd3d4f 5567 $as_echo_n "(cached) " >&6
a64c9c13 5568else
57aa50d4 5569 ac_check_lib_save_LIBS=$LIBS
2d7583bd 5570LIBS="-lblkid -luuid $LIBS"
57aa50d4
TT
5571cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5572/* end confdefs.h. */
5573
5574/* Override any GCC internal prototype to avoid an error.
5575 Use char because int might match the return type of a GCC
5576 builtin and then its argument prototype would still apply. */
5577#ifdef __cplusplus
5578extern "C"
5579#endif
5580char blkid_get_cache ();
5581int
5582main ()
5583{
5584return blkid_get_cache ();
5585 ;
5586 return 0;
5587}
5588_ACEOF
5589if ac_fn_c_try_link "$LINENO"; then :
5590 ac_cv_lib_blkid_blkid_get_cache=yes
b0cacab0 5591else
57aa50d4 5592 ac_cv_lib_blkid_blkid_get_cache=no
a64c9c13 5593fi
57aa50d4
TT
5594rm -f core conftest.err conftest.$ac_objext \
5595 conftest$ac_exeext conftest.$ac_ext
5596LIBS=$ac_check_lib_save_LIBS
a64c9c13 5597fi
57aa50d4
TT
5598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5599$as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
d6a4bcb5 5600if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
57aa50d4
TT
5601 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5602 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
b0cacab0 5603else
d6a4bcb5 5604 as_fn_error $? "external blkid library not found" "$LINENO" 5
a64c9c13 5605fi
93636bde 5606
57aa50d4 5607 BLKID_CMT=#
5afdf37b 5608 PROFILED_LIBBLKID=$LIBBLKID
57aa50d4
TT
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
5610$as_echo "Disabling private blkid library" >&6; }
07a0db15 5611else
57aa50d4
TT
5612 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5613 DEPLIBBLKID=$LIBBLKID
5614 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5615 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5616 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5617 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5618 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5619
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
5621$as_echo "Enabling private blkid library" >&6; }
b0cacab0 5622fi
57aa50d4 5623
a64c9c13 5624else
f5dffb81
TT
5625 if test -n "$PKG_CONFIG"; then
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5627$as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5628if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5629 $as_echo_n "(cached) " >&6
5630else
5631 ac_check_lib_save_LIBS=$LIBS
5632LIBS="-lblkid $LIBS"
5633cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5634/* end confdefs.h. */
5635
5636/* Override any GCC internal prototype to avoid an error.
5637 Use char because int might match the return type of a GCC
5638 builtin and then its argument prototype would still apply. */
5639#ifdef __cplusplus
5640extern "C"
5641#endif
5642char blkid_get_cache ();
5643int
5644main ()
5645{
5646return blkid_get_cache ();
5647 ;
5648 return 0;
5649}
5650_ACEOF
5651if ac_fn_c_try_link "$LINENO"; then :
5652 ac_cv_lib_blkid_blkid_get_cache=yes
5653else
5654 ac_cv_lib_blkid_blkid_get_cache=no
5655fi
5656rm -f core conftest.err conftest.$ac_objext \
5657 conftest$ac_exeext conftest.$ac_ext
5658LIBS=$ac_check_lib_save_LIBS
5659fi
5660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5661$as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5662if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5663 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5664 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5665fi
5666
5667fi
5668if test -n "$LIBBLKID"; then
5669 BLKID_CMT=#
5670 PROFILED_LIBBLKID=$LIBBLKID
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system blkid library by default" >&5
5672$as_echo "Using system blkid library by default" >&6; }
5673else
5674 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5675 DEPLIBBLKID=$LIBBLKID
5676 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5677 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5678 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5679 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5680 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
57aa50d4 5681
f5dffb81 5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
57aa50d4 5683$as_echo "Enabling private blkid library by default" >&6; }
f5dffb81 5684fi
57aa50d4 5685
a64c9c13 5686fi
07a0db15 5687
a64c9c13 5688
b0cacab0 5689
b0cacab0 5690
a64c9c13 5691
b0cacab0 5692
07a0db15 5693
57aa50d4 5694
0afb9be6 5695ALL_CMT=
feb235e0 5696SUBSET_CMT=
0afb9be6
TT
5697# Check whether --enable-subset was given.
5698if test "${enable_subset+set}" = set; then :
5699 enableval=$enable_subset; if test "$enableval" = "no"
5700then
feb235e0 5701 SUBSET_CMT=#
0afb9be6
TT
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling subset-only build" >&5
5703$as_echo "Disabling subset-only build" >&6; }
5704else
5705 ALL_CMT=#
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling subset-only-build" >&5
5707$as_echo "Enabling subset-only-build" >&6; }
5708fi
5709
5710fi
5711
5712
3df6014a 5713
feb235e0 5714
3df6014a
TT
5715# Check whether --enable-backtrace was given.
5716if test "${enable_backtrace+set}" = set; then :
5717 enableval=$enable_backtrace; if test "$enableval" = "no"
5718then
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
5720$as_echo "Disabling use of backtrace" >&6; }
5721 $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h
5722
5723else
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
5725$as_echo "Enabling use of backtrace" >&6; }
5726fi
5727
5728else
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
5730$as_echo "Enabling use of backtrace by default" >&6; }
5731
5732fi
5733
57aa50d4
TT
5734# Check whether --enable-debugfs was given.
5735if test "${enable_debugfs+set}" = set; then :
5736 enableval=$enable_debugfs; if test "$enableval" = "no"
5737then
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
5739$as_echo "Disabling debugfs support" >&6; }
5740 DEBUGFS_CMT="#"
b0cacab0 5741else
57aa50d4
TT
5742 DEBUGFS_CMT=
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
5744$as_echo "Enabling debugfs support" >&6; }
b0cacab0 5745fi
a64c9c13 5746
b0cacab0 5747else
57aa50d4
TT
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
5749$as_echo "Enabling debugfs support by default" >&6; }
5750DEBUGFS_CMT=
a64c9c13 5751
93636bde 5752fi
57aa50d4
TT
5753
5754
5755# Check whether --enable-imager was given.
5756if test "${enable_imager+set}" = set; then :
5757 enableval=$enable_imager; if test "$enableval" = "no"
5758then
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
5760$as_echo "Disabling e2image support" >&6; }
5761 IMAGER_CMT="#"
b0cacab0 5762else
57aa50d4
TT
5763 IMAGER_CMT=
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
5765$as_echo "Enabling e2image support" >&6; }
b0cacab0
TT
5766fi
5767
b0cacab0 5768else
57aa50d4
TT
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
5770$as_echo "Enabling e2image support by default" >&6; }
5771IMAGER_CMT=
5772
93636bde
TT
5773fi
5774
a64c9c13 5775
57aa50d4
TT
5776# Check whether --enable-resizer was given.
5777if test "${enable_resizer+set}" = set; then :
5778 enableval=$enable_resizer; if test "$enableval" = "no"
5779then
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
5781$as_echo "Disabling e2resize support" >&6; }
5782 RESIZER_CMT="#"
b0cacab0 5783else
57aa50d4
TT
5784 RESIZER_CMT=
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
5786$as_echo "Enabling e2resize support" >&6; }
5787fi
b0cacab0 5788
b0cacab0 5789else
57aa50d4
TT
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
5791$as_echo "Enabling e2resize support by default" >&6; }
5792RESIZER_CMT=
b0cacab0 5793
b0cacab0 5794fi
e1052144 5795
57aa50d4 5796
8d9c50c5
TT
5797# Check whether --enable-defrag was given.
5798if test "${enable_defrag+set}" = set; then :
5799 enableval=$enable_defrag; if test "$enableval" = "no"
5800then
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5802$as_echo "Disabling e4defrag support" >&6; }
5803 DEFRAG_CMT="#"
5804else
5805 DEFRAG_CMT=
5806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5807$as_echo "Enabling e4defrag support" >&6; }
5808fi
5809
5810else
6c59a665
TT
5811 if test -z "$WITH_DIET_LIBC"
5812then
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
8d9c50c5 5814$as_echo "Enabling e4defrag support by default" >&6; }
6c59a665
TT
5815 DEFRAG_CMT=
5816else
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
5818$as_echo "Disabling e4defrag support by default" >&6; }
5819 DEFRAG_CMT="#"
5820fi
8d9c50c5
TT
5821
5822fi
5823
5824
57aa50d4
TT
5825# Check whether --enable-fsck was given.
5826if test "${enable_fsck+set}" = set; then :
5827 enableval=$enable_fsck; if test "$enableval" = "no"
5828then
5829 FSCK_PROG='' FSCK_MAN=''
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
5831$as_echo "Not building fsck wrapper" >&6; }
5832else
5833 FSCK_PROG=fsck FSCK_MAN=fsck.8
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
5835$as_echo "Building fsck wrapper" >&6; }
a64c9c13
TT
5836fi
5837
57aa50d4
TT
5838else
5839 case "$host_os" in
5840 gnu*)
5841 FSCK_PROG='' FSCK_MAN=''
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
5843$as_echo "Not building fsck wrapper by default" >&6; }
5844 ;;
5845 *)
5846 FSCK_PROG=fsck FSCK_MAN=fsck.8
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
5848$as_echo "Building fsck wrapper by default" >&6; }
5849esac
b0cacab0 5850
57aa50d4 5851fi
b0cacab0 5852
93636bde 5853
b0cacab0 5854
57aa50d4
TT
5855# Check whether --enable-e2initrd-helper was given.
5856if test "${enable_e2initrd_helper+set}" = set; then :
5857 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
5858then
5859 E2INITRD_PROG='' E2INITRD_MAN=''
5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
5861$as_echo "Not building e2initrd helper" >&6; }
5862else
5863 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
5865$as_echo "Building e2initrd helper" >&6; }
5866fi
a64c9c13 5867
a64c9c13 5868else
57aa50d4
TT
5869 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5870{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
5871$as_echo "Building e2initrd helper by default" >&6; }
b0cacab0 5872
a64c9c13 5873fi
e1052144 5874
57aa50d4
TT
5875
5876
5877# Check whether --enable-tls was given.
5878if test "${enable_tls+set}" = set; then :
5879 enableval=$enable_tls; if test "$enableval" = "no"
5880then
5881 try_tls=""
5882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
5883$as_echo "Disabling thread local support" >&6; }
5884else
5885 try_tls="yes"
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
5887$as_echo "Enabling thread local support" >&6; }
a64c9c13
TT
5888fi
5889
57aa50d4
TT
5890else
5891 if test -n "$WITH_DIET_LIBC"
5892then
5893 try_tls=""
5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
5895$as_echo "Diet libc does not support thread local support" >&6; }
5896else
5897 try_tls="yes"
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
5899$as_echo "Try using thread local support by default" >&6; }
5900fi
a64c9c13 5901
93636bde 5902fi
07a0db15 5903
57aa50d4
TT
5904if test "$try_tls" = "yes"
5905then
a64c9c13 5906
57aa50d4
TT
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
5908$as_echo_n "checking for thread local storage (TLS) class... " >&6; }
d6a4bcb5 5909 if ${ac_cv_tls+:} false; then :
39fd3d4f 5910 $as_echo_n "(cached) " >&6
b0cacab0 5911else
b0cacab0 5912
57aa50d4
TT
5913 ax_tls_keywords="__thread __declspec(thread) none"
5914 for ax_tls_keyword in $ax_tls_keywords; do
5915 case $ax_tls_keyword in
5916 none) ac_cv_tls=none ; break ;;
5917 *)
5918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5919/* end confdefs.h. */
5920#include <stdlib.h>
5921 static void
5922 foo(void) {
5923 static $ax_tls_keyword int bar;
5924 exit(1);
5925 }
b0cacab0
TT
5926int
5927main ()
5928{
57aa50d4 5929
b0cacab0
TT
5930 ;
5931 return 0;
5932}
5933_ACEOF
57aa50d4
TT
5934if ac_fn_c_try_compile "$LINENO"; then :
5935 ac_cv_tls=$ax_tls_keyword ; break
b0cacab0 5936else
57aa50d4 5937 ac_cv_tls=none
b0cacab0 5938
b0cacab0 5939fi
e1052144 5940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57aa50d4
TT
5941 esac
5942 done
5943
b0cacab0 5944fi
b0cacab0 5945
57aa50d4
TT
5946
5947 if test "$ac_cv_tls" != "none"; then
5948
5949cat >>confdefs.h <<_ACEOF
5950#define TLS $ac_cv_tls
b0cacab0 5951_ACEOF
93636bde 5952
b0cacab0 5953 fi
57aa50d4
TT
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
5955$as_echo "$ac_cv_tls" >&6; }
b0cacab0 5956
57aa50d4 5957fi
d1154eb4 5958
bdcd5f22
TT
5959# Check whether --with-pthread was given.
5960if test "${with_pthread+set}" = set; then :
5961 withval=$with_pthread; if test "$withval" = "no"
57aa50d4 5962then
bdcd5f22
TT
5963 try_pthread=""
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling pthread support" >&5
5965$as_echo "Disabling pthread support" >&6; }
a64c9c13 5966else
bdcd5f22
TT
5967 try_pthread="yes"
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Testing for pthread support" >&5
5969$as_echo "Testing for pthread support" >&6; }
57aa50d4 5970fi
a64c9c13 5971
a64c9c13 5972else
bdcd5f22
TT
5973 try_pthread="yes"
5974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Try testing for pthread support by default" >&5
5975$as_echo "Try testing for pthread support by default" >&6; }
a64c9c13 5976
bdcd5f22
TT
5977fi
5978
5979if test "$try_pthread" = "yes"
e3d10158 5980then
bdcd5f22
TT
5981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5982$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5983if ${ac_cv_path_SED+:} false; then :
5984 $as_echo_n "(cached) " >&6
e3d10158 5985else
bdcd5f22
TT
5986 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5987 for ac_i in 1 2 3 4 5 6 7; do
5988 ac_script="$ac_script$as_nl$ac_script"
5989 done
5990 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5991 { ac_script=; unset ac_script;}
5992 if test -z "$SED"; then
5993 ac_path_SED_found=false
5994 # Loop through the user's path and test for each of PROGNAME-LIST
5995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5996for as_dir in $PATH
5997do
5998 IFS=$as_save_IFS
5999 test -z "$as_dir" && as_dir=.
6000 for ac_prog in sed gsed; do
6001 for ac_exec_ext in '' $ac_executable_extensions; do
6002 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6003 as_fn_executable_p "$ac_path_SED" || continue
6004# Check for GNU ac_path_SED and select it if it is found.
6005 # Check for GNU $ac_path_SED
6006case `"$ac_path_SED" --version 2>&1` in
6007*GNU*)
6008 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6009*)
6010 ac_count=0
6011 $as_echo_n 0123456789 >"conftest.in"
6012 while :
6013 do
6014 cat "conftest.in" "conftest.in" >"conftest.tmp"
6015 mv "conftest.tmp" "conftest.in"
6016 cp "conftest.in" "conftest.nl"
6017 $as_echo '' >> "conftest.nl"
6018 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6019 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6020 as_fn_arith $ac_count + 1 && ac_count=$as_val
6021 if test $ac_count -gt ${ac_path_SED_max-0}; then
6022 # Best one so far, save it but keep looking for a better one
6023 ac_cv_path_SED="$ac_path_SED"
6024 ac_path_SED_max=$ac_count
6025 fi
6026 # 10*(2^10) chars as input seems more than enough
6027 test $ac_count -gt 10 && break
6028 done
6029 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6030esac
6031
6032 $ac_path_SED_found && break 3
6033 done
6034 done
6035 done
6036IFS=$as_save_IFS
6037 if test -z "$ac_cv_path_SED"; then
6038 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6039 fi
6040else
6041 ac_cv_path_SED=$SED
e3d10158 6042fi
e1052144 6043
a64c9c13 6044fi
bdcd5f22
TT
6045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6046$as_echo "$ac_cv_path_SED" >&6; }
6047 SED="$ac_cv_path_SED"
6048 rm -f conftest.sed
e1052144 6049
93636bde 6050
d6a4bcb5 6051
d6a4bcb5 6052
d6a4bcb5 6053
bdcd5f22
TT
6054ac_ext=c
6055ac_cpp='$CPP $CPPFLAGS'
6056ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6057ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6058ac_compiler_gnu=$ac_cv_c_compiler_gnu
d6a4bcb5 6059
bdcd5f22
TT
6060ax_pthread_ok=no
6061
6062# We used to check for pthread.h first, but this fails if pthread.h
6063# requires special compiler flags (e.g. on Tru64 or Sequent).
6064# It gets checked for in the link test anyway.
6065
6066# First of all, check if the user has set any of the PTHREAD_LIBS,
6067# etcetera environment variables, and if threads linking works using
6068# them:
6069if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
6070 ax_pthread_save_CC="$CC"
6071 ax_pthread_save_CFLAGS="$CFLAGS"
6072 ax_pthread_save_LIBS="$LIBS"
6073 if test "x$PTHREAD_CC" != "x"; then :
6074 CC="$PTHREAD_CC"
6075fi
6076 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
6077 LIBS="$PTHREAD_LIBS $LIBS"
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
6079$as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
6080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6081/* end confdefs.h. */
d6a4bcb5 6082
bdcd5f22
TT
6083/* Override any GCC internal prototype to avoid an error.
6084 Use char because int might match the return type of a GCC
6085 builtin and then its argument prototype would still apply. */
6086#ifdef __cplusplus
6087extern "C"
6088#endif
6089char pthread_join ();
6090int
6091main ()
6092{
6093return pthread_join ();
6094 ;
6095 return 0;
6096}
6097_ACEOF
6098if ac_fn_c_try_link "$LINENO"; then :
6099 ax_pthread_ok=yes
1625bf42 6100fi
bdcd5f22
TT
6101rm -f core conftest.err conftest.$ac_objext \
6102 conftest$ac_exeext conftest.$ac_ext
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
6104$as_echo "$ax_pthread_ok" >&6; }
6105 if test "x$ax_pthread_ok" = "xno"; then
6106 PTHREAD_LIBS=""
6107 PTHREAD_CFLAGS=""
6108 fi
6109 CC="$ax_pthread_save_CC"
6110 CFLAGS="$ax_pthread_save_CFLAGS"
6111 LIBS="$ax_pthread_save_LIBS"
6112fi
6113
6114# We must check for the threads library under a number of different
6115# names; the ordering is very important because some systems
6116# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
6117# libraries is broken (non-POSIX).
6118
6119# Create a list of thread flags to try. Items starting with a "-" are
6120# C compiler flags, and other items are library names, except for "none"
6121# which indicates that we try without any flags at all, and "pthread-config"
6122# which is a program returning the flags for the Pth emulation library.
6123
6124ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
6125
6126# The ordering *is* (sometimes) important. Some notes on the
6127# individual items follow:
6128
6129# pthreads: AIX (must check this before -lpthread)
6130# none: in case threads are in libc; should be tried before -Kthread and
6131# other compiler flags to prevent continual compiler warnings
6132# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
6133# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
6134# (Note: HP C rejects this with "bad form for `-t' option")
6135# -pthreads: Solaris/gcc (Note: HP C also rejects)
6136# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
6137# doesn't hurt to check since this sometimes defines pthreads and
6138# -D_REENTRANT too), HP C (must be checked before -lpthread, which
6139# is present but should not be used directly; and before -mthreads,
6140# because the compiler interprets this as "-mt" + "-hreads")
6141# -mthreads: Mingw32/gcc, Lynx/gcc
6142# pthread: Linux, etcetera
6143# --thread-safe: KAI C++
6144# pthread-config: use pthread-config program (for GNU Pth library)
6145
6146case $host_os in
6147
6148 freebsd*)
6149
6150 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
6151 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
6152
6153 ax_pthread_flags="-kthread lthread $ax_pthread_flags"
6154 ;;
1625bf42 6155
bdcd5f22 6156 hpux*)
1625bf42 6157
bdcd5f22
TT
6158 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
6159 # multi-threading and also sets -lpthread."
749f0712 6160
bdcd5f22
TT
6161 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
6162 ;;
749f0712 6163
bdcd5f22 6164 openedition*)
749f0712 6165
bdcd5f22
TT
6166 # IBM z/OS requires a feature-test macro to be defined in order to
6167 # enable POSIX threads at all, so give the user a hint if this is
6168 # not set. (We don't define these ourselves, as they can affect
6169 # other portions of the system API in unpredictable ways.)
749f0712 6170
bdcd5f22
TT
6171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6172/* end confdefs.h. */
6173
6174# if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
6175 AX_PTHREAD_ZOS_MISSING
6176# endif
6177
6178_ACEOF
6179if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6180 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
6181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
6182$as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
749f0712 6183fi
bdcd5f22 6184rm -f conftest*
749f0712 6185
bdcd5f22 6186 ;;
749f0712 6187
bdcd5f22 6188 solaris*)
749f0712 6189
bdcd5f22
TT
6190 # On Solaris (at least, for some versions), libc contains stubbed
6191 # (non-functional) versions of the pthreads routines, so link-based
6192 # tests will erroneously succeed. (N.B.: The stubs are missing
6193 # pthread_cleanup_push, or rather a function called by this macro,
6194 # so we could check for that, but who knows whether they'll stub
6195 # that too in a future libc.) So we'll check first for the
6196 # standard Solaris way of linking pthreads (-mt -lpthread).
749f0712 6197
bdcd5f22
TT
6198 ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
6199 ;;
6200esac
6201
6202# GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
1625bf42 6203
bdcd5f22
TT
6204if test "x$GCC" = "xyes"; then :
6205 ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
1625bf42
TB
6206fi
6207
bdcd5f22
TT
6208# The presence of a feature test macro requesting re-entrant function
6209# definitions is, on some systems, a strong hint that pthreads support is
6210# correctly enabled
1625bf42 6211
bdcd5f22
TT
6212case $host_os in
6213 darwin* | hpux* | linux* | osf* | solaris*)
6214 ax_pthread_check_macro="_REENTRANT"
6215 ;;
6216
6217 aix*)
6218 ax_pthread_check_macro="_THREAD_SAFE"
6219 ;;
1625bf42 6220
bdcd5f22
TT
6221 *)
6222 ax_pthread_check_macro="--"
6223 ;;
6224esac
6225if test "x$ax_pthread_check_macro" = "x--"; then :
6226 ax_pthread_check_cond=0
6227else
6228 ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
1625bf42
TB
6229fi
6230
bdcd5f22 6231# Are we compiling with Clang?
1625bf42 6232
bdcd5f22
TT
6233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
6234$as_echo_n "checking whether $CC is Clang... " >&6; }
6235if ${ax_cv_PTHREAD_CLANG+:} false; then :
6236 $as_echo_n "(cached) " >&6
1625bf42 6237else
bdcd5f22
TT
6238 ax_cv_PTHREAD_CLANG=no
6239 # Note that Autoconf sets GCC=yes for Clang as well as GCC
6240 if test "x$GCC" = "xyes"; then
6241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6242/* end confdefs.h. */
6243/* Note: Clang 2.7 lacks __clang_[a-z]+__ */
6244# if defined(__clang__) && defined(__llvm__)
6245 AX_PTHREAD_CC_IS_CLANG
6246# endif
6247
6248_ACEOF
6249if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6250 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
6251 ax_cv_PTHREAD_CLANG=yes
1625bf42 6252fi
bdcd5f22 6253rm -f conftest*
1625bf42 6254
bdcd5f22 6255 fi
1625bf42
TB
6256
6257fi
bdcd5f22
TT
6258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
6259$as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
6260ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
6261
6262ax_pthread_clang_warning=no
6263
6264# Clang needs special handling, because older versions handle the -pthread
6265# option in a rather... idiosyncratic way
6266
6267if test "x$ax_pthread_clang" = "xyes"; then
6268
6269 # Clang takes -pthread; it has never supported any other flag
6270
6271 # (Note 1: This will need to be revisited if a system that Clang
6272 # supports has POSIX threads in a separate library. This tends not
6273 # to be the way of modern systems, but it's conceivable.)
6274
6275 # (Note 2: On some systems, notably Darwin, -pthread is not needed
6276 # to get POSIX threads support; the API is always present and
6277 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
6278 # -pthread does define _REENTRANT, and while the Darwin headers
6279 # ignore this macro, third-party headers might not.)
6280
6281 PTHREAD_CFLAGS="-pthread"
6282 PTHREAD_LIBS=
6283
6284 ax_pthread_ok=yes
6285
6286 # However, older versions of Clang make a point of warning the user
6287 # that, in an invocation where only linking and no compilation is
6288 # taking place, the -pthread option has no effect ("argument unused
6289 # during compilation"). They expect -pthread to be passed in only
6290 # when source code is being compiled.
6291 #
6292 # Problem is, this is at odds with the way Automake and most other
6293 # C build frameworks function, which is that the same flags used in
6294 # compilation (CFLAGS) are also used in linking. Many systems
6295 # supported by AX_PTHREAD require exactly this for POSIX threads
6296 # support, and in fact it is often not straightforward to specify a
6297 # flag that is used only in the compilation phase and not in
6298 # linking. Such a scenario is extremely rare in practice.
6299 #
6300 # Even though use of the -pthread flag in linking would only print
6301 # a warning, this can be a nuisance for well-run software projects
6302 # that build with -Werror. So if the active version of Clang has
6303 # this misfeature, we search for an option to squash it.
6304
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
6306$as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
6307if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
6308 $as_echo_n "(cached) " >&6
1625bf42 6309else
bdcd5f22
TT
6310 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
6311 # Create an alternate version of $ac_link that compiles and
6312 # links in two steps (.c -> .o, .o -> exe) instead of one
6313 # (.c -> exe), because the warning occurs only in the second
6314 # step
6315 ax_pthread_save_ac_link="$ac_link"
6316 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
6317 ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
6318 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
6319 ax_pthread_save_CFLAGS="$CFLAGS"
6320 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
6321 if test "x$ax_pthread_try" = "xunknown"; then :
6322 break
d6a4bcb5 6323fi
bdcd5f22
TT
6324 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
6325 ac_link="$ax_pthread_save_ac_link"
6326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6327/* end confdefs.h. */
6328int main(void){return 0;}
6329_ACEOF
6330if ac_fn_c_try_link "$LINENO"; then :
6331 ac_link="$ax_pthread_2step_ac_link"
6332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6333/* end confdefs.h. */
6334int main(void){return 0;}
6335_ACEOF
6336if ac_fn_c_try_link "$LINENO"; then :
6337 break
6338fi
6339rm -f core conftest.err conftest.$ac_objext \
6340 conftest$ac_exeext conftest.$ac_ext
d6a4bcb5 6341
bdcd5f22
TT
6342fi
6343rm -f core conftest.err conftest.$ac_objext \
6344 conftest$ac_exeext conftest.$ac_ext
6345 done
6346 ac_link="$ax_pthread_save_ac_link"
6347 CFLAGS="$ax_pthread_save_CFLAGS"
6348 if test "x$ax_pthread_try" = "x"; then :
6349 ax_pthread_try=no
6350fi
6351 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
d1154eb4 6352
bdcd5f22
TT
6353fi
6354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
6355$as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
a64c9c13 6356
bdcd5f22
TT
6357 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
6358 no | unknown) ;;
6359 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
6360 esac
d1154eb4 6361
bdcd5f22 6362fi # $ax_pthread_clang = yes
57aa50d4 6363
bdcd5f22
TT
6364if test "x$ax_pthread_ok" = "xno"; then
6365for ax_pthread_try_flag in $ax_pthread_flags; do
57aa50d4 6366
bdcd5f22
TT
6367 case $ax_pthread_try_flag in
6368 none)
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
6370$as_echo_n "checking whether pthreads work without any flags... " >&6; }
6371 ;;
57aa50d4 6372
bdcd5f22
TT
6373 -mt,pthread)
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
6375$as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
6376 PTHREAD_CFLAGS="-mt"
6377 PTHREAD_LIBS="-lpthread"
6378 ;;
57aa50d4 6379
bdcd5f22
TT
6380 -*)
6381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
6382$as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
6383 PTHREAD_CFLAGS="$ax_pthread_try_flag"
6384 ;;
57aa50d4 6385
bdcd5f22
TT
6386 pthread-config)
6387 # Extract the first word of "pthread-config", so it can be a program name with args.
6388set dummy pthread-config; ac_word=$2
6389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6390$as_echo_n "checking for $ac_word... " >&6; }
6391if ${ac_cv_prog_ax_pthread_config+:} false; then :
39fd3d4f 6392 $as_echo_n "(cached) " >&6
b0cacab0 6393else
bdcd5f22
TT
6394 if test -n "$ax_pthread_config"; then
6395 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
6396else
6397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6398for as_dir in $PATH
6399do
6400 IFS=$as_save_IFS
6401 test -z "$as_dir" && as_dir=.
6402 for ac_exec_ext in '' $ac_executable_extensions; do
6403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6404 ac_cv_prog_ax_pthread_config="yes"
6405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6406 break 2
6407 fi
6408done
6409 done
6410IFS=$as_save_IFS
6411
6412 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
6413fi
6414fi
6415ax_pthread_config=$ac_cv_prog_ax_pthread_config
6416if test -n "$ax_pthread_config"; then
6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
6418$as_echo "$ax_pthread_config" >&6; }
6419else
6420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6421$as_echo "no" >&6; }
6422fi
6423
6424
6425 if test "x$ax_pthread_config" = "xno"; then :
6426 continue
6427fi
6428 PTHREAD_CFLAGS="`pthread-config --cflags`"
6429 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
6430 ;;
6431
6432 *)
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
6434$as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
6435 PTHREAD_LIBS="-l$ax_pthread_try_flag"
6436 ;;
6437 esac
6438
6439 ax_pthread_save_CFLAGS="$CFLAGS"
6440 ax_pthread_save_LIBS="$LIBS"
6441 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
6442 LIBS="$PTHREAD_LIBS $LIBS"
6443
6444 # Check for various functions. We must include pthread.h,
6445 # since some functions may be macros. (On the Sequent, we
6446 # need a special flag -Kthread to make this header compile.)
6447 # We check for pthread_join because it is in -lpthread on IRIX
6448 # while pthread_create is in libc. We check for pthread_attr_init
6449 # due to DEC craziness with -lpthreads. We check for
6450 # pthread_cleanup_push because it is one of the few pthread
6451 # functions on Solaris that doesn't have a non-functional libc stub.
6452 # We try pthread_create on general principles.
6453
6454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6455/* end confdefs.h. */
6456#include <pthread.h>
6457# if $ax_pthread_check_cond
6458# error "$ax_pthread_check_macro must be defined"
6459# endif
6460 static void routine(void *a) { a = 0; }
6461 static void *start_routine(void *a) { return a; }
6462int
6463main ()
6464{
6465pthread_t th; pthread_attr_t attr;
6466 pthread_create(&th, 0, start_routine, 0);
6467 pthread_join(th, 0);
6468 pthread_attr_init(&attr);
6469 pthread_cleanup_push(routine, 0);
6470 pthread_cleanup_pop(0) /* ; */
6471 ;
6472 return 0;
6473}
6474_ACEOF
6475if ac_fn_c_try_link "$LINENO"; then :
6476 ax_pthread_ok=yes
6477fi
6478rm -f core conftest.err conftest.$ac_objext \
6479 conftest$ac_exeext conftest.$ac_ext
6480
6481 CFLAGS="$ax_pthread_save_CFLAGS"
6482 LIBS="$ax_pthread_save_LIBS"
6483
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
6485$as_echo "$ax_pthread_ok" >&6; }
6486 if test "x$ax_pthread_ok" = "xyes"; then :
6487 break
6488fi
6489
6490 PTHREAD_LIBS=""
6491 PTHREAD_CFLAGS=""
6492done
6493fi
6494
6495# Various other checks:
6496if test "x$ax_pthread_ok" = "xyes"; then
6497 ax_pthread_save_CFLAGS="$CFLAGS"
6498 ax_pthread_save_LIBS="$LIBS"
6499 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
6500 LIBS="$PTHREAD_LIBS $LIBS"
6501
6502 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
6504$as_echo_n "checking for joinable pthread attribute... " >&6; }
6505if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
6506 $as_echo_n "(cached) " >&6
6507else
6508 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
6509 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
6510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6511/* end confdefs.h. */
6512#include <pthread.h>
6513int
6514main ()
6515{
6516int attr = $ax_pthread_attr; return attr /* ; */
6517 ;
6518 return 0;
6519}
6520_ACEOF
6521if ac_fn_c_try_link "$LINENO"; then :
6522 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
6523fi
6524rm -f core conftest.err conftest.$ac_objext \
6525 conftest$ac_exeext conftest.$ac_ext
6526 done
6527
6528fi
6529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
6530$as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
6531 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
6532 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
6533 test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
6534
6535cat >>confdefs.h <<_ACEOF
6536#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
6537_ACEOF
6538
6539 ax_pthread_joinable_attr_defined=yes
6540
6541fi
6542
6543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
6544$as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
6545if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
6546 $as_echo_n "(cached) " >&6
6547else
6548 ax_cv_PTHREAD_SPECIAL_FLAGS=no
6549 case $host_os in
6550 solaris*)
6551 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
6552 ;;
6553 esac
6554
6555fi
6556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
6557$as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
6558 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
6559 test "x$ax_pthread_special_flags_added" != "xyes"; then :
6560 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
6561 ax_pthread_special_flags_added=yes
6562fi
6563
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
6565$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
6566if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
6567 $as_echo_n "(cached) " >&6
6568else
6569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6570/* end confdefs.h. */
6571#include <pthread.h>
6572int
6573main ()
6574{
6575int i = PTHREAD_PRIO_INHERIT;
6576 ;
6577 return 0;
6578}
6579_ACEOF
6580if ac_fn_c_try_link "$LINENO"; then :
6581 ax_cv_PTHREAD_PRIO_INHERIT=yes
6582else
6583 ax_cv_PTHREAD_PRIO_INHERIT=no
6584fi
6585rm -f core conftest.err conftest.$ac_objext \
6586 conftest$ac_exeext conftest.$ac_ext
6587
6588fi
6589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
6590$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
6591 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
6592 test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
6593
6594$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
6595
6596 ax_pthread_prio_inherit_defined=yes
6597
6598fi
6599
6600 CFLAGS="$ax_pthread_save_CFLAGS"
6601 LIBS="$ax_pthread_save_LIBS"
6602
6603 # More AIX lossage: compile with *_r variant
6604 if test "x$GCC" != "xyes"; then
6605 case $host_os in
6606 aix*)
6607 case "x/$CC" in #(
6608 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
6609 #handle absolute path differently from PATH based program lookup
6610 case "x$CC" in #(
6611 x/*) :
6612 if as_fn_executable_p ${CC}_r; then :
6613 PTHREAD_CC="${CC}_r"
6614fi ;; #(
6615 *) :
6616 for ac_prog in ${CC}_r
6617do
6618 # Extract the first word of "$ac_prog", so it can be a program name with args.
6619set dummy $ac_prog; ac_word=$2
6620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6621$as_echo_n "checking for $ac_word... " >&6; }
6622if ${ac_cv_prog_PTHREAD_CC+:} false; then :
6623 $as_echo_n "(cached) " >&6
6624else
6625 if test -n "$PTHREAD_CC"; then
6626 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
6627else
6628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6629for as_dir in $PATH
6630do
6631 IFS=$as_save_IFS
6632 test -z "$as_dir" && as_dir=.
6633 for ac_exec_ext in '' $ac_executable_extensions; do
6634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6635 ac_cv_prog_PTHREAD_CC="$ac_prog"
6636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6637 break 2
6638 fi
6639done
6640 done
6641IFS=$as_save_IFS
6642
6643fi
6644fi
6645PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
6646if test -n "$PTHREAD_CC"; then
6647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
6648$as_echo "$PTHREAD_CC" >&6; }
6649else
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6651$as_echo "no" >&6; }
6652fi
6653
6654
6655 test -n "$PTHREAD_CC" && break
6656done
6657test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
6658 ;;
6659esac ;; #(
6660 *) :
6661 ;;
6662esac
6663 ;;
6664 esac
6665 fi
6666fi
6667
6668test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
6669
6670
6671
6672
6673
6674# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
6675if test "x$ax_pthread_ok" = "xyes"; then
6676
6677$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
6678
6679 :
6680else
6681 ax_pthread_ok=no
6682
6683fi
6684ac_ext=c
6685ac_cpp='$CPP $CPPFLAGS'
6686ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6687ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6688ac_compiler_gnu=$ac_cv_c_compiler_gnu
6689
6690
6691else
6692test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
6693
6694fi
6695
6696# Check whether --enable-uuidd was given.
6697if test "${enable_uuidd+set}" = set; then :
6698 enableval=$enable_uuidd; if test "$enableval" = "no"
6699then
6700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
6701$as_echo "Not building uuidd" >&6; }
6702 UUIDD_CMT="#"
6703else
6704 $as_echo "#define USE_UUIDD 1" >>confdefs.h
6705
6706 UUIDD_CMT=""
6707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
6708$as_echo "Building uuidd" >&6; }
6709fi
6710
6711else
6712 $as_echo "#define USE_UUIDD 1" >>confdefs.h
6713
6714if test -z "$UUID_CMT"
6715then
6716 UUIDD_CMT=""
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
6718$as_echo "Building uuidd by default" >&6; }
6719else
6720 UUIDD_CMT="#"
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling uuidd by default" >&5
6722$as_echo "Disabling uuidd by default" >&6; }
6723fi
6724
6725fi
6726
6727
6728
6729# Check whether --enable-mmp was given.
6730if test "${enable_mmp+set}" = set; then :
6731 enableval=$enable_mmp; if test "$enableval" = "no"
6732then
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5
6734$as_echo "Disabling mmp support" >&6; }
6735else
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5
6737$as_echo "Enabling mmp support" >&6; }
6738 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
6739
6740fi
6741
6742else
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
6744$as_echo "Enabling mmp support by default" >&6; }
6745$as_echo "#define CONFIG_MMP 1" >>confdefs.h
6746
6747
6748fi
6749
6750
6751# Check whether --enable-tdb was given.
6752if test "${enable_tdb+set}" = set; then :
6753 enableval=$enable_tdb; if test "$enableval" = "no"
6754then
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling tdb support" >&5
6756$as_echo "Disabling tdb support" >&6; }
6757 TDB_CMT="#"
6758 TDB_MAN_COMMENT='.\"'
6759else
6760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling tdb support" >&5
6761$as_echo "Enabling tdb support" >&6; }
6762 $as_echo "#define CONFIG_TDB 1" >>confdefs.h
6763
6764 TDB_CMT=""
6765 TDB_MAN_COMMENT=""
6766fi
6767
6768else
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
6770$as_echo "Enabling mmp support by default" >&6; }
6771$as_echo "#define CONFIG_TDB 1" >>confdefs.h
6772
6773TDB_CMT=""
6774TDB_MAN_COMMENT=""
6775
6776fi
6777
6778
6779
6780
6781# Check whether --enable-bmap-stats was given.
6782if test "${enable_bmap_stats+set}" = set; then :
6783 enableval=$enable_bmap_stats; if test "$enableval" = "no"
6784then
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5
6786$as_echo "Disabling bitmap statistics support" >&6; }
6787else
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5
6789$as_echo "Enabling bitmap statistics support" >&6; }
6790 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
6791
6792fi
6793
6794else
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5
6796$as_echo "Enabling bitmap statistics support by default" >&6; }
6797$as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
6798
6799
6800fi
6801
6802
6803# Check whether --enable-bmap-stats-ops was given.
6804if test "${enable_bmap_stats_ops+set}" = set; then :
6805 enableval=$enable_bmap_stats_ops; if test "$enableval" = "no"
6806then
6807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5
6808$as_echo "Disabling additional bitmap statistics" >&6; }
6809else
6810 if test "x${enable_bmap_stats}" = "xno"; then :
6811 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6812$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6813as_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats
6814See \`config.log' for more details" "$LINENO" 5; }
6815fi
6816
6817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5
6818$as_echo "Enabling additional bitmap statistics" >&6; }
6819 $as_echo "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h
6820
6821fi
6822
6823else
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5
6825$as_echo "Disabling additional bitmap statistics by default" >&6; }
6826
6827fi
6828
6829MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
6830
6831GETTEXT_PACKAGE=e2fsprogs
6832PACKAGE=e2fsprogs
6833VERSION="$E2FSPROGS_VERSION"
6834VERSION=0.14.1
6835
6836cat >>confdefs.h <<_ACEOF
6837#define PACKAGE "$PACKAGE"
6838_ACEOF
6839
6840
6841cat >>confdefs.h <<_ACEOF
6842#define VERSION "$VERSION"
6843_ACEOF
6844
6845
6846
6847
6848
6849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6850$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6851set x ${MAKE-make}
6852ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6853if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6854 $as_echo_n "(cached) " >&6
6855else
6856 cat >conftest.make <<\_ACEOF
6857SHELL = /bin/sh
6858all:
6859 @echo '@@@%%%=$(MAKE)=@@@%%%'
6860_ACEOF
6861# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6862case `${MAKE-make} -f conftest.make 2>/dev/null` in
6863 *@@@%%%=?*=@@@%%%*)
6864 eval ac_cv_prog_make_${ac_make}_set=yes;;
6865 *)
6866 eval ac_cv_prog_make_${ac_make}_set=no;;
6867esac
57aa50d4
TT
6868rm -f conftest.make
6869fi
6870if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6872$as_echo "yes" >&6; }
6873 SET_MAKE=
39fd3d4f 6874else
57aa50d4
TT
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6876$as_echo "no" >&6; }
6877 SET_MAKE="MAKE=${MAKE-make}"
39fd3d4f
SJR
6878fi
6879
57aa50d4
TT
6880# Find a good install program. We prefer a C program (faster),
6881# so one script is as good as another. But avoid the broken or
6882# incompatible versions:
6883# SysV /etc/install, /usr/sbin/install
6884# SunOS /usr/etc/install
6885# IRIX /sbin/install
6886# AIX /bin/install
6887# AmigaOS /C/install, which installs bootblocks on floppy discs
6888# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6889# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6890# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6891# OS/2's system install, which has a completely different semantic
6892# ./install, which can be erroneously created by make from ./install.sh.
6893# Reject install programs that cannot install multiple files.
6894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6895$as_echo_n "checking for a BSD-compatible install... " >&6; }
6896if test -z "$INSTALL"; then
d6a4bcb5 6897if ${ac_cv_path_install+:} false; then :
57aa50d4 6898 $as_echo_n "(cached) " >&6
93636bde 6899else
57aa50d4
TT
6900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6901for as_dir in $PATH
6902do
6903 IFS=$as_save_IFS
6904 test -z "$as_dir" && as_dir=.
6905 # Account for people who put trailing slashes in PATH elements.
6906case $as_dir/ in #((
6907 ./ | .// | /[cC]/* | \
6908 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6909 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6910 /usr/ucb/* ) ;;
6911 *)
6912 # OSF1 and SCO ODT 3.0 have their own names for install.
6913 # Don't use installbsd from OSF since it installs stuff as root
6914 # by default.
6915 for ac_prog in ginstall scoinst install; do
6916 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 6917 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
57aa50d4
TT
6918 if test $ac_prog = install &&
6919 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6920 # AIX install. It has an incompatible calling convention.
6921 :
6922 elif test $ac_prog = install &&
6923 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6924 # program-specific install script used by HP pwplus--don't use.
6925 :
6926 else
6927 rm -rf conftest.one conftest.two conftest.dir
6928 echo one > conftest.one
6929 echo two > conftest.two
6930 mkdir conftest.dir
6931 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6932 test -s conftest.one && test -s conftest.two &&
6933 test -s conftest.dir/conftest.one &&
6934 test -s conftest.dir/conftest.two
6935 then
6936 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6937 break 3
6938 fi
6939 fi
6940 fi
6941 done
6942 done
6943 ;;
6944esac
6945
6946 done
6947IFS=$as_save_IFS
b0cacab0 6948
57aa50d4 6949rm -rf conftest.one conftest.two conftest.dir
39fd3d4f 6950
93636bde 6951fi
57aa50d4
TT
6952 if test "${ac_cv_path_install+set}" = set; then
6953 INSTALL=$ac_cv_path_install
6954 else
6955 # As a last resort, use the slow shell script. Don't cache a
6956 # value for INSTALL within a source directory, because that will
6957 # break other packages using the cache if that directory is
6958 # removed, or if the value is a relative name.
6959 INSTALL=$ac_install_sh
6960 fi
93636bde 6961fi
57aa50d4
TT
6962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6963$as_echo "$INSTALL" >&6; }
a64c9c13 6964
57aa50d4
TT
6965# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6966# It thinks the first close brace ends the variable substitution.
6967test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
b0cacab0 6968
57aa50d4 6969test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
a64c9c13 6970
57aa50d4 6971test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
39fd3d4f 6972
93613951
TT
6973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6974$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6975if test -z "$MKDIR_P"; then
6976 if ${ac_cv_path_mkdir+:} false; then :
6977 $as_echo_n "(cached) " >&6
6978else
6979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6980for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6981do
6982 IFS=$as_save_IFS
6983 test -z "$as_dir" && as_dir=.
6984 for ac_prog in mkdir gmkdir; do
6985 for ac_exec_ext in '' $ac_executable_extensions; do
6986 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
6987 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6988 'mkdir (GNU coreutils) '* | \
6989 'mkdir (coreutils) '* | \
6990 'mkdir (fileutils) '4.1*)
6991 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6992 break 3;;
6993 esac
6994 done
6995 done
6996 done
6997IFS=$as_save_IFS
6998
6999fi
39fd3d4f 7000
93613951
TT
7001 test -d ./--version && rmdir ./--version
7002 if test "${ac_cv_path_mkdir+set}" = set; then
7003 MKDIR_P="$ac_cv_path_mkdir -p"
7004 else
7005 # As a last resort, use the slow shell script. Don't cache a
7006 # value for MKDIR_P within a source directory, because that will
7007 # break other packages using the cache if that directory is
7008 # removed, or if the value is a relative name.
7009 MKDIR_P="$ac_install_sh -d"
57aa50d4 7010 fi
93613951
TT
7011fi
7012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
7013$as_echo "$MKDIR_P" >&6; }
7014
e1052144 7015
57aa50d4
TT
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
7017$as_echo_n "checking whether NLS is requested... " >&6; }
7018 # Check whether --enable-nls was given.
7019if test "${enable_nls+set}" = set; then :
7020 enableval=$enable_nls; USE_NLS=$enableval
b0cacab0 7021else
57aa50d4
TT
7022 USE_NLS=yes
7023fi
b0cacab0 7024
57aa50d4
TT
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
7026$as_echo "$USE_NLS" >&6; }
93636bde 7027
a64c9c13 7028
a64c9c13 7029
b0cacab0 7030
bdcd5f22 7031 GETTEXT_MACRO_VERSION=0.20
93613951
TT
7032
7033
b0cacab0 7034
a64c9c13 7035
57aa50d4
TT
7036# Prepare PATH_SEPARATOR.
7037# The user is always right.
7038if test "${PATH_SEPARATOR+set}" != set; then
93613951
TT
7039 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7040 # contains only /bin. Note that ksh looks also at the FPATH variable,
7041 # so we have to set that as well for the test.
7042 PATH_SEPARATOR=:
7043 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7044 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7045 || PATH_SEPARATOR=';'
7046 }
57aa50d4 7047fi
b0cacab0 7048
57aa50d4
TT
7049# Find out how to test for executable files. Don't use a zero-byte file,
7050# as systems may use methods other than mode bits to determine executability.
7051cat >conf$$.file <<_ASEOF
7052#! /bin/sh
7053exit 0
7054_ASEOF
7055chmod +x conf$$.file
7056if test -x conf$$.file >/dev/null 2>&1; then
7057 ac_executable_p="test -x"
7058else
7059 ac_executable_p="test -f"
7060fi
7061rm -f conf$$.file
b0cacab0 7062
57aa50d4
TT
7063# Extract the first word of "msgfmt", so it can be a program name with args.
7064set dummy msgfmt; ac_word=$2
7065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7066$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 7067if ${ac_cv_path_MSGFMT+:} false; then :
39fd3d4f 7068 $as_echo_n "(cached) " >&6
93636bde 7069else
57aa50d4
TT
7070 case "$MSGFMT" in
7071 [\\/]* | ?:[\\/]*)
7072 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
7073 ;;
7074 *)
7075 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7076 for ac_dir in $PATH; do
7077 IFS="$ac_save_IFS"
7078 test -z "$ac_dir" && ac_dir=.
7079 for ac_exec_ext in '' $ac_executable_extensions; do
7080 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
93613951
TT
7081 echo "$as_me: trying $ac_dir/$ac_word..." >&5
7082 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
57aa50d4
TT
7083 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
7084 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
7085 break 2
7086 fi
7087 fi
7088 done
7089 done
7090 IFS="$ac_save_IFS"
7091 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
7092 ;;
e1052144 7093esac
b0cacab0 7094fi
57aa50d4
TT
7095MSGFMT="$ac_cv_path_MSGFMT"
7096if test "$MSGFMT" != ":"; then
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
7098$as_echo "$MSGFMT" >&6; }
7099else
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7101$as_echo "no" >&6; }
b0cacab0 7102fi
a64c9c13 7103
57aa50d4
TT
7104 # Extract the first word of "gmsgfmt", so it can be a program name with args.
7105set dummy gmsgfmt; ac_word=$2
7106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7107$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 7108if ${ac_cv_path_GMSGFMT+:} false; then :
39fd3d4f 7109 $as_echo_n "(cached) " >&6
93636bde 7110else
57aa50d4
TT
7111 case $GMSGFMT in
7112 [\\/]* | ?:[\\/]*)
7113 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
7114 ;;
7115 *)
7116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7117for as_dir in $PATH
7118do
7119 IFS=$as_save_IFS
7120 test -z "$as_dir" && as_dir=.
7121 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 7122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
7123 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
7124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7125 break 2
7126 fi
7127done
7128 done
7129IFS=$as_save_IFS
a64c9c13 7130
57aa50d4
TT
7131 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
7132 ;;
e1052144 7133esac
57aa50d4
TT
7134fi
7135GMSGFMT=$ac_cv_path_GMSGFMT
7136if test -n "$GMSGFMT"; then
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
7138$as_echo "$GMSGFMT" >&6; }
b0cacab0 7139else
57aa50d4
TT
7140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7141$as_echo "no" >&6; }
b0cacab0 7142fi
e1052144 7143
b0cacab0 7144
b0cacab0 7145
bdcd5f22 7146 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
93613951
TT
7147 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
7148 *) GMSGFMT_015=$GMSGFMT ;;
7149 esac
7150
7151
57aa50d4
TT
7152
7153# Prepare PATH_SEPARATOR.
7154# The user is always right.
7155if test "${PATH_SEPARATOR+set}" != set; then
93613951
TT
7156 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7157 # contains only /bin. Note that ksh looks also at the FPATH variable,
7158 # so we have to set that as well for the test.
7159 PATH_SEPARATOR=:
7160 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7161 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7162 || PATH_SEPARATOR=';'
7163 }
57aa50d4 7164fi
b0cacab0 7165
57aa50d4
TT
7166# Find out how to test for executable files. Don't use a zero-byte file,
7167# as systems may use methods other than mode bits to determine executability.
7168cat >conf$$.file <<_ASEOF
7169#! /bin/sh
7170exit 0
7171_ASEOF
7172chmod +x conf$$.file
7173if test -x conf$$.file >/dev/null 2>&1; then
7174 ac_executable_p="test -x"
7175else
7176 ac_executable_p="test -f"
7177fi
7178rm -f conf$$.file
b0cacab0 7179
57aa50d4
TT
7180# Extract the first word of "xgettext", so it can be a program name with args.
7181set dummy xgettext; ac_word=$2
7182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7183$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 7184if ${ac_cv_path_XGETTEXT+:} false; then :
39fd3d4f 7185 $as_echo_n "(cached) " >&6
a64c9c13 7186else
57aa50d4
TT
7187 case "$XGETTEXT" in
7188 [\\/]* | ?:[\\/]*)
7189 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
7190 ;;
7191 *)
7192 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7193 for ac_dir in $PATH; do
7194 IFS="$ac_save_IFS"
7195 test -z "$ac_dir" && ac_dir=.
7196 for ac_exec_ext in '' $ac_executable_extensions; do
7197 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
93613951
TT
7198 echo "$as_me: trying $ac_dir/$ac_word..." >&5
7199 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
57aa50d4
TT
7200 (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
7201 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
7202 break 2
7203 fi
7204 fi
7205 done
7206 done
7207 IFS="$ac_save_IFS"
7208 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
7209 ;;
e1052144 7210esac
b0cacab0 7211fi
57aa50d4
TT
7212XGETTEXT="$ac_cv_path_XGETTEXT"
7213if test "$XGETTEXT" != ":"; then
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
7215$as_echo "$XGETTEXT" >&6; }
7216else
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7218$as_echo "no" >&6; }
b0cacab0 7219fi
b0cacab0 7220
57aa50d4 7221 rm -f messages.po
a64c9c13 7222
93613951
TT
7223 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
7224 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
7225 *) XGETTEXT_015=$XGETTEXT ;;
7226 esac
7227
7228
b0cacab0 7229
57aa50d4
TT
7230# Prepare PATH_SEPARATOR.
7231# The user is always right.
7232if test "${PATH_SEPARATOR+set}" != set; then
93613951
TT
7233 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7234 # contains only /bin. Note that ksh looks also at the FPATH variable,
7235 # so we have to set that as well for the test.
7236 PATH_SEPARATOR=:
7237 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7238 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7239 || PATH_SEPARATOR=';'
7240 }
57aa50d4 7241fi
b0cacab0 7242
57aa50d4
TT
7243# Find out how to test for executable files. Don't use a zero-byte file,
7244# as systems may use methods other than mode bits to determine executability.
7245cat >conf$$.file <<_ASEOF
7246#! /bin/sh
7247exit 0
7248_ASEOF
7249chmod +x conf$$.file
7250if test -x conf$$.file >/dev/null 2>&1; then
7251 ac_executable_p="test -x"
7252else
7253 ac_executable_p="test -f"
7254fi
7255rm -f conf$$.file
7256
7257# Extract the first word of "msgmerge", so it can be a program name with args.
7258set dummy msgmerge; ac_word=$2
7259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7260$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 7261if ${ac_cv_path_MSGMERGE+:} false; then :
39fd3d4f 7262 $as_echo_n "(cached) " >&6
b0cacab0 7263else
57aa50d4
TT
7264 case "$MSGMERGE" in
7265 [\\/]* | ?:[\\/]*)
7266 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
7267 ;;
7268 *)
7269 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
7270 for ac_dir in $PATH; do
7271 IFS="$ac_save_IFS"
7272 test -z "$ac_dir" && ac_dir=.
7273 for ac_exec_ext in '' $ac_executable_extensions; do
7274 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
93613951
TT
7275 echo "$as_me: trying $ac_dir/$ac_word..." >&5
7276 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
57aa50d4
TT
7277 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
7278 break 2
7279 fi
7280 fi
7281 done
7282 done
7283 IFS="$ac_save_IFS"
7284 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
7285 ;;
e1052144 7286esac
57aa50d4
TT
7287fi
7288MSGMERGE="$ac_cv_path_MSGMERGE"
7289if test "$MSGMERGE" != ":"; then
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
7291$as_echo "$MSGMERGE" >&6; }
b0cacab0 7292else
57aa50d4
TT
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7294$as_echo "no" >&6; }
b0cacab0 7295fi
e1052144 7296
93636bde 7297
bdcd5f22
TT
7298 if LC_ALL=C $MSGMERGE --help | grep ' --for-msgfmt ' >/dev/null; then
7299 MSGMERGE_FOR_MSGFMT_OPTION='--for-msgfmt'
7300 else
7301 if LC_ALL=C $MSGMERGE --help | grep ' --no-fuzzy-matching ' >/dev/null; then
7302 MSGMERGE_FOR_MSGFMT_OPTION='--no-fuzzy-matching --no-location --quiet'
7303 else
7304 MSGMERGE_FOR_MSGFMT_OPTION='--no-location --quiet'
7305 fi
7306 fi
93613951
TT
7307
7308
7309 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
7310
7311
7312 ac_config_commands="$ac_config_commands po-directories"
a64c9c13 7313
a64c9c13 7314
93613951 7315
e598c29b
TT
7316 if test "X$prefix" = "XNONE"; then
7317 acl_final_prefix="$ac_default_prefix"
7318 else
7319 acl_final_prefix="$prefix"
7320 fi
7321 if test "X$exec_prefix" = "XNONE"; then
7322 acl_final_exec_prefix='${prefix}'
7323 else
7324 acl_final_exec_prefix="$exec_prefix"
7325 fi
7326 acl_save_prefix="$prefix"
7327 prefix="$acl_final_prefix"
7328 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7329 prefix="$acl_save_prefix"
93613951 7330
93613951 7331
e598c29b
TT
7332
7333# Check whether --with-gnu-ld was given.
7334if test "${with_gnu_ld+set}" = set; then :
7335 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
93613951 7336else
e598c29b 7337 with_gnu_ld=no
93613951 7338fi
a64c9c13 7339
e598c29b
TT
7340# Prepare PATH_SEPARATOR.
7341# The user is always right.
7342if test "${PATH_SEPARATOR+set}" != set; then
7343 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7344 # contains only /bin. Note that ksh looks also at the FPATH variable,
7345 # so we have to set that as well for the test.
7346 PATH_SEPARATOR=:
7347 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7348 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7349 || PATH_SEPARATOR=';'
7350 }
d1154eb4
TT
7351fi
7352
bdcd5f22
TT
7353if test -n "$LD"; then
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld" >&5
7355$as_echo_n "checking for ld... " >&6; }
7356elif test "$GCC" = yes; then
e598c29b 7357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
bdcd5f22 7358$as_echo_n "checking for ld used by $CC... " >&6; }
e598c29b
TT
7359elif test "$with_gnu_ld" = yes; then
7360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7361$as_echo_n "checking for GNU ld... " >&6; }
7362else
7363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7364$as_echo_n "checking for non-GNU ld... " >&6; }
d1154eb4 7365fi
bdcd5f22
TT
7366if test -n "$LD"; then
7367 # Let the user override the test with a path.
7368 :
7369else
7370 if ${acl_cv_path_LD+:} false; then :
d1154eb4
TT
7371 $as_echo_n "(cached) " >&6
7372else
bdcd5f22
TT
7373
7374 acl_cv_path_LD= # Final result of this test
7375 ac_prog=ld # Program to search in $PATH
7376 if test "$GCC" = yes; then
7377 # Check if gcc -print-prog-name=ld gives a path.
7378 case $host in
7379 *-*-mingw*)
7380 # gcc leaves a trailing carriage return which upsets mingw
7381 acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7382 *)
7383 acl_output=`($CC -print-prog-name=ld) 2>&5` ;;
7384 esac
7385 case $acl_output in
7386 # Accept absolute paths.
7387 [\\/]* | ?:[\\/]*)
7388 re_direlt='/[^/][^/]*/\.\./'
7389 # Canonicalize the pathname of ld
7390 acl_output=`echo "$acl_output" | sed 's%\\\\%/%g'`
7391 while echo "$acl_output" | grep "$re_direlt" > /dev/null 2>&1; do
7392 acl_output=`echo $acl_output | sed "s%$re_direlt%/%"`
7393 done
7394 # Got the pathname. No search in PATH is needed.
7395 acl_cv_path_LD="$acl_output"
7396 ac_prog=
7397 ;;
7398 "")
7399 # If it fails, then pretend we aren't using GCC.
7400 ;;
7401 *)
7402 # If it is relative, then search for the first ld in PATH.
7403 with_gnu_ld=unknown
7404 ;;
e598c29b
TT
7405 esac
7406 fi
bdcd5f22
TT
7407 if test -n "$ac_prog"; then
7408 # Search for $ac_prog in $PATH.
7409 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7410 for ac_dir in $PATH; do
7411 IFS="$acl_save_ifs"
7412 test -z "$ac_dir" && ac_dir=.
7413 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7414 acl_cv_path_LD="$ac_dir/$ac_prog"
7415 # Check to see if the program is GNU ld. I'd rather use --version,
7416 # but apparently some variants of GNU ld only accept -v.
7417 # Break only if it was the GNU/non-GNU ld that we prefer.
7418 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
7419 *GNU* | *'with BFD'*)
7420 test "$with_gnu_ld" != no && break
7421 ;;
7422 *)
7423 test "$with_gnu_ld" != yes && break
7424 ;;
7425 esac
7426 fi
7427 done
7428 IFS="$acl_save_ifs"
7429 fi
7430 case $host in
7431 *-*-aix*)
7432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7433/* end confdefs.h. */
7434#if defined __powerpc64__ || defined _ARCH_PPC64
7435 int ok;
7436 #else
7437 error fail
7438 #endif
7439
7440_ACEOF
7441if ac_fn_c_try_compile "$LINENO"; then :
7442 # The compiler produces 64-bit code. Add option '-b64' so that the
7443 # linker groks 64-bit object files.
7444 case "$acl_cv_path_LD " in
7445 *" -b64 "*) ;;
7446 *) acl_cv_path_LD="$acl_cv_path_LD -b64" ;;
7447 esac
7448
7449fi
7450rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7451 ;;
7452 sparc64-*-netbsd*)
7453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7454/* end confdefs.h. */
7455#if defined __sparcv9 || defined __arch64__
7456 int ok;
7457 #else
7458 error fail
7459 #endif
7460
7461_ACEOF
7462if ac_fn_c_try_compile "$LINENO"; then :
7463
e598c29b 7464else
bdcd5f22
TT
7465 # The compiler produces 32-bit code. Add option '-m elf32_sparc'
7466 # so that the linker groks 32-bit object files.
7467 case "$acl_cv_path_LD " in
7468 *" -m elf32_sparc "*) ;;
7469 *) acl_cv_path_LD="$acl_cv_path_LD -m elf32_sparc" ;;
7470 esac
7471
d1154eb4 7472fi
bdcd5f22
TT
7473rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7474 ;;
7475 esac
7476
d1154eb4 7477fi
e598c29b 7478
bdcd5f22
TT
7479 LD="$acl_cv_path_LD"
7480fi
e598c29b
TT
7481if test -n "$LD"; then
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7483$as_echo "$LD" >&6; }
d1154eb4
TT
7484else
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7486$as_echo "no" >&6; }
bdcd5f22 7487 as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
d1154eb4 7488fi
e598c29b
TT
7489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7490$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7491if ${acl_cv_prog_gnu_ld+:} false; then :
d1154eb4
TT
7492 $as_echo_n "(cached) " >&6
7493else
e598c29b
TT
7494 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7495case `$LD -v 2>&1 </dev/null` in
7496*GNU* | *'with BFD'*)
7497 acl_cv_prog_gnu_ld=yes
7498 ;;
7499*)
7500 acl_cv_prog_gnu_ld=no
7501 ;;
7502esac
7503fi
7504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7505$as_echo "$acl_cv_prog_gnu_ld" >&6; }
7506with_gnu_ld=$acl_cv_prog_gnu_ld
93613951 7507
d1154eb4 7508
93613951 7509
d1154eb4 7510
e598c29b
TT
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7512$as_echo_n "checking for shared library run path origin... " >&6; }
7513if ${acl_cv_rpath+:} false; then :
93613951
TT
7514 $as_echo_n "(cached) " >&6
7515else
d1154eb4 7516
e598c29b
TT
7517 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7518 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7519 . ./conftest.sh
7520 rm -f ./conftest.sh
7521 acl_cv_rpath=done
d1154eb4 7522
93613951 7523fi
e598c29b
TT
7524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7525$as_echo "$acl_cv_rpath" >&6; }
7526 wl="$acl_cv_wl"
7527 acl_libext="$acl_cv_libext"
7528 acl_shlibext="$acl_cv_shlibext"
7529 acl_libname_spec="$acl_cv_libname_spec"
7530 acl_library_names_spec="$acl_cv_library_names_spec"
7531 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7532 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7533 acl_hardcode_direct="$acl_cv_hardcode_direct"
7534 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
7535 # Check whether --enable-rpath was given.
7536if test "${enable_rpath+set}" = set; then :
7537 enableval=$enable_rpath; :
7538else
7539 enable_rpath=yes
93613951 7540fi
d1154eb4 7541
d1154eb4
TT
7542
7543
93613951 7544
bdcd5f22
TT
7545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking 32-bit host C ABI" >&5
7546$as_echo_n "checking 32-bit host C ABI... " >&6; }
7547if ${gl_cv_host_cpu_c_abi_32bit+:} false; then :
57aa50d4
TT
7548 $as_echo_n "(cached) " >&6
7549else
bdcd5f22
TT
7550 if test -n "$gl_cv_host_cpu_c_abi"; then
7551 case "$gl_cv_host_cpu_c_abi" in
7552 i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc)
7553 gl_cv_host_cpu_c_abi_32bit=yes ;;
7554 x86_64 | alpha | arm64 | hppa64 | ia64 | mips64 | powerpc64 | powerpc64-elfv2 | riscv*-lp64* | s390x | sparc64 )
7555 gl_cv_host_cpu_c_abi_32bit=no ;;
7556 *)
7557 gl_cv_host_cpu_c_abi_32bit=unknown ;;
7558 esac
7559 else
7560 case "$host_cpu" in
7561
7562 # CPUs that only support a 32-bit ABI.
7563 arc \
7564 | bfin \
7565 | cris* \
7566 | csky \
7567 | epiphany \
7568 | ft32 \
7569 | h8300 \
7570 | m68k \
7571 | microblaze | microblazeel \
7572 | nds32 | nds32le | nds32be \
7573 | nios2 | nios2eb | nios2el \
7574 | or1k* \
7575 | or32 \
7576 | sh | sh1234 | sh1234elb \
7577 | tic6x \
7578 | xtensa* )
7579 gl_cv_host_cpu_c_abi_32bit=yes
7580 ;;
7581
7582 # CPUs that only support a 64-bit ABI.
7583 alpha | alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] \
7584 | mmix )
7585 gl_cv_host_cpu_c_abi_32bit=no
7586 ;;
7587
7588 i[34567]86 )
7589 gl_cv_host_cpu_c_abi_32bit=yes
7590 ;;
7591
7592 x86_64 )
7593 # On x86_64 systems, the C compiler may be generating code in one of
7594 # these ABIs:
7595 # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64.
7596 # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64
7597 # with native Windows (mingw, MSVC).
7598 # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32.
7599 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386.
7600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d1154eb4 7601/* end confdefs.h. */
bdcd5f22
TT
7602#if (defined __x86_64__ || defined __amd64__ \
7603 || defined _M_X64 || defined _M_AMD64) \
7604 && !(defined __ILP32__ || defined _ILP32)
7605 int ok;
7606 #else
7607 error fail
7608 #endif
e598c29b 7609
bdcd5f22
TT
7610_ACEOF
7611if ac_fn_c_try_compile "$LINENO"; then :
7612 gl_cv_host_cpu_c_abi_32bit=no
7613else
7614 gl_cv_host_cpu_c_abi_32bit=yes
7615fi
7616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7617 ;;
7618
7619 arm* | aarch64 )
7620 # Assume arm with EABI.
7621 # On arm64 systems, the C compiler may be generating code in one of
7622 # these ABIs:
7623 # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64.
7624 # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32.
7625 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf.
7626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7627/* end confdefs.h. */
7628#if defined __aarch64__ && !(defined __ILP32__ || defined _ILP32)
7629 int ok;
7630 #else
7631 error fail
7632 #endif
7633
7634_ACEOF
7635if ac_fn_c_try_compile "$LINENO"; then :
7636 gl_cv_host_cpu_c_abi_32bit=no
7637else
7638 gl_cv_host_cpu_c_abi_32bit=yes
7639fi
7640rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7641 ;;
7642
7643 hppa1.0 | hppa1.1 | hppa2.0* | hppa64 )
7644 # On hppa, the C compiler may be generating 32-bit code or 64-bit
7645 # code. In the latter case, it defines _LP64 and __LP64__.
7646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7647/* end confdefs.h. */
7648#ifdef __LP64__
7649 int ok;
7650 #else
7651 error fail
7652 #endif
7653
7654_ACEOF
7655if ac_fn_c_try_compile "$LINENO"; then :
7656 gl_cv_host_cpu_c_abi_32bit=no
7657else
7658 gl_cv_host_cpu_c_abi_32bit=yes
7659fi
7660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7661 ;;
7662
7663 ia64* )
7664 # On ia64 on HP-UX, the C compiler may be generating 64-bit code or
7665 # 32-bit code. In the latter case, it defines _ILP32.
7666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7667/* end confdefs.h. */
7668#ifdef _ILP32
7669 int ok;
7670 #else
7671 error fail
7672 #endif
7673
7674_ACEOF
7675if ac_fn_c_try_compile "$LINENO"; then :
7676 gl_cv_host_cpu_c_abi_32bit=yes
7677else
7678 gl_cv_host_cpu_c_abi_32bit=no
7679fi
7680rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7681 ;;
7682
7683 mips* )
7684 # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this
7685 # at 32.
7686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7687/* end confdefs.h. */
7688#if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64)
7689 int ok;
7690 #else
7691 error fail
7692 #endif
7693
7694_ACEOF
7695if ac_fn_c_try_compile "$LINENO"; then :
7696 gl_cv_host_cpu_c_abi_32bit=no
7697else
7698 gl_cv_host_cpu_c_abi_32bit=yes
7699fi
7700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7701 ;;
7702
7703 powerpc* )
7704 # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD.
7705 # No need to distinguish them here; the caller may distinguish
7706 # them based on the OS.
7707 # On powerpc64 systems, the C compiler may still be generating
7708 # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may
7709 # be generating 64-bit code.
7710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7711/* end confdefs.h. */
7712#if defined __powerpc64__ || defined _ARCH_PPC64
7713 int ok;
7714 #else
7715 error fail
7716 #endif
7717
7718_ACEOF
7719if ac_fn_c_try_compile "$LINENO"; then :
7720 gl_cv_host_cpu_c_abi_32bit=no
7721else
7722 gl_cv_host_cpu_c_abi_32bit=yes
7723fi
7724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7725 ;;
7726
7727 rs6000 )
7728 gl_cv_host_cpu_c_abi_32bit=yes
7729 ;;
7730
7731 riscv32 | riscv64 )
7732 # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d.
7733 # Size of 'long' and 'void *':
7734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7735/* end confdefs.h. */
7736#if defined __LP64__
7737 int ok;
7738 #else
7739 error fail
7740 #endif
7741
7742_ACEOF
7743if ac_fn_c_try_compile "$LINENO"; then :
7744 gl_cv_host_cpu_c_abi_32bit=no
7745else
7746 gl_cv_host_cpu_c_abi_32bit=yes
7747fi
7748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7749 ;;
7750
7751 s390* )
7752 # On s390x, the C compiler may be generating 64-bit (= s390x) code
7753 # or 31-bit (= s390) code.
7754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7755/* end confdefs.h. */
7756#if defined __LP64__ || defined __s390x__
7757 int ok;
7758 #else
7759 error fail
7760 #endif
7761
7762_ACEOF
7763if ac_fn_c_try_compile "$LINENO"; then :
7764 gl_cv_host_cpu_c_abi_32bit=no
7765else
7766 gl_cv_host_cpu_c_abi_32bit=yes
7767fi
7768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7769 ;;
7770
7771 sparc | sparc64 )
7772 # UltraSPARCs running Linux have `uname -m` = "sparc64", but the
7773 # C compiler still generates 32-bit code.
7774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7775/* end confdefs.h. */
7776#if defined __sparcv9 || defined __arch64__
7777 int ok;
7778 #else
7779 error fail
7780 #endif
7781
7782_ACEOF
7783if ac_fn_c_try_compile "$LINENO"; then :
7784 gl_cv_host_cpu_c_abi_32bit=no
7785else
7786 gl_cv_host_cpu_c_abi_32bit=yes
7787fi
7788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7789 ;;
7790
7791 *)
7792 gl_cv_host_cpu_c_abi_32bit=unknown
7793 ;;
7794 esac
7795 fi
7796
7797fi
7798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi_32bit" >&5
7799$as_echo "$gl_cv_host_cpu_c_abi_32bit" >&6; }
7800
7801 HOST_CPU_C_ABI_32BIT="$gl_cv_host_cpu_c_abi_32bit"
7802
7803
7804
7805
7806
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ELF binary format" >&5
7808$as_echo_n "checking for ELF binary format... " >&6; }
7809if ${gl_cv_elf+:} false; then :
7810 $as_echo_n "(cached) " >&6
7811else
7812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7813/* end confdefs.h. */
7814#ifdef __ELF__
7815 Extensible Linking Format
7816 #endif
d1154eb4 7817
d1154eb4 7818_ACEOF
e598c29b 7819if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
bdcd5f22
TT
7820 $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
7821 gl_cv_elf=yes
e598c29b 7822else
bdcd5f22 7823 gl_cv_elf=no
57aa50d4 7824fi
e598c29b 7825rm -f conftest*
d1154eb4 7826
d1154eb4 7827
e598c29b 7828fi
bdcd5f22
TT
7829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_elf" >&5
7830$as_echo "$gl_cv_elf" >&6; }
7831 if test $gl_cv_elf; then
7832 # Extract the ELF class of a file (5th byte) in decimal.
7833 # Cf. https://en.wikipedia.org/wiki/Executable_and_Linkable_Format#File_header
7834 if od -A x < /dev/null >/dev/null 2>/dev/null; then
7835 # Use POSIX od.
7836 func_elfclass ()
7837 {
7838 od -A n -t d1 -j 4 -N 1
7839 }
7840 else
7841 # Use BSD hexdump.
7842 func_elfclass ()
7843 {
7844 dd bs=1 count=1 skip=4 2>/dev/null | hexdump -e '1/1 "%3d "'
7845 echo
7846 }
7847 fi
7848 case $HOST_CPU_C_ABI_32BIT in
7849 yes)
7850 # 32-bit ABI.
7851 acl_is_expected_elfclass ()
7852 {
7853 test "`func_elfclass | sed -e 's/[ ]//g'`" = 1
7854 }
7855 ;;
7856 no)
7857 # 64-bit ABI.
7858 acl_is_expected_elfclass ()
7859 {
7860 test "`func_elfclass | sed -e 's/[ ]//g'`" = 2
7861 }
7862 ;;
7863 *)
7864 # Unknown.
7865 acl_is_expected_elfclass ()
7866 {
7867 :
7868 }
7869 ;;
7870 esac
7871 else
7872 acl_is_expected_elfclass ()
7873 {
7874 :
7875 }
7876 fi
d1154eb4 7877
bdcd5f22
TT
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the common suffixes of directories in the library search path" >&5
7879$as_echo_n "checking for the common suffixes of directories in the library search path... " >&6; }
7880if ${acl_cv_libdirstems+:} false; then :
7881 $as_echo_n "(cached) " >&6
7882else
7883 acl_libdirstem=lib
7884 acl_libdirstem2=
7885 acl_libdirstem3=
7886 case "$host_os" in
7887 solaris*)
7888 if test $HOST_CPU_C_ABI_32BIT = no; then
7889 acl_libdirstem2=lib/64
7890 case "$host_cpu" in
7891 sparc*) acl_libdirstem3=lib/sparcv9 ;;
7892 i*86 | x86_64) acl_libdirstem3=lib/amd64 ;;
7893 esac
7894 fi
7895 ;;
7896 *)
7897 searchpath=`(LC_ALL=C $CC $CPPFLAGS $CFLAGS -print-search-dirs) 2>/dev/null \
7898 | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
7899 if test $HOST_CPU_C_ABI_32BIT != no; then
7900 # 32-bit or unknown ABI.
7901 if test -d /usr/lib32; then
7902 acl_libdirstem2=lib32
7903 fi
7904 fi
7905 if test $HOST_CPU_C_ABI_32BIT != yes; then
7906 # 64-bit or unknown ABI.
7907 if test -d /usr/lib64; then
7908 acl_libdirstem3=lib64
7909 fi
7910 fi
7911 if test -n "$searchpath"; then
7912 acl_save_IFS="${IFS= }"; IFS=":"
7913 for searchdir in $searchpath; do
7914 if test -d "$searchdir"; then
7915 case "$searchdir" in
7916 */lib32/ | */lib32 ) acl_libdirstem2=lib32 ;;
7917 */lib64/ | */lib64 ) acl_libdirstem3=lib64 ;;
7918 */../ | */.. )
7919 # Better ignore directories of this form. They are misleading.
7920 ;;
7921 *) searchdir=`cd "$searchdir" && pwd`
7922 case "$searchdir" in
7923 */lib32 ) acl_libdirstem2=lib32 ;;
7924 */lib64 ) acl_libdirstem3=lib64 ;;
7925 esac ;;
7926 esac
7927 fi
7928 done
7929 IFS="$acl_save_IFS"
7930 if test $HOST_CPU_C_ABI_32BIT = yes; then
7931 # 32-bit ABI.
7932 acl_libdirstem3=
7933 fi
7934 if test $HOST_CPU_C_ABI_32BIT = no; then
7935 # 64-bit ABI.
7936 acl_libdirstem2=
7937 fi
7938 fi
7939 ;;
7940 esac
7941 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
7942 test -n "$acl_libdirstem3" || acl_libdirstem3="$acl_libdirstem"
7943 acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2,$acl_libdirstem3"
7944
7945fi
7946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libdirstems" >&5
7947$as_echo "$acl_cv_libdirstems" >&6; }
7948 acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'`
7949 acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,//' -e 's/,.*//'`
7950 acl_libdirstem3=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,[^,]*,//' -e 's/,.*//'`
d1154eb4 7951
d1154eb4 7952
b0cacab0
TT
7953
7954
7955
b0cacab0
TT
7956
7957
7958
57aa50d4 7959
57aa50d4 7960
b0cacab0 7961
e598c29b 7962 use_additional=yes
b0cacab0 7963
e598c29b
TT
7964 acl_save_prefix="$prefix"
7965 prefix="$acl_final_prefix"
7966 acl_save_exec_prefix="$exec_prefix"
7967 exec_prefix="$acl_final_exec_prefix"
57aa50d4 7968
e598c29b
TT
7969 eval additional_includedir=\"$includedir\"
7970 eval additional_libdir=\"$libdir\"
bdcd5f22
TT
7971 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
7972 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
57aa50d4 7973
e598c29b
TT
7974 exec_prefix="$acl_save_exec_prefix"
7975 prefix="$acl_save_prefix"
57aa50d4 7976
b0cacab0 7977
e598c29b
TT
7978# Check whether --with-libiconv-prefix was given.
7979if test "${with_libiconv_prefix+set}" = set; then :
7980 withval=$with_libiconv_prefix;
7981 if test "X$withval" = "Xno"; then
7982 use_additional=no
7983 else
7984 if test "X$withval" = "X"; then
57aa50d4 7985
e598c29b
TT
7986 acl_save_prefix="$prefix"
7987 prefix="$acl_final_prefix"
7988 acl_save_exec_prefix="$exec_prefix"
7989 exec_prefix="$acl_final_exec_prefix"
57aa50d4 7990
e598c29b
TT
7991 eval additional_includedir=\"$includedir\"
7992 eval additional_libdir=\"$libdir\"
bdcd5f22
TT
7993 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
7994 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
57aa50d4 7995
e598c29b
TT
7996 exec_prefix="$acl_save_exec_prefix"
7997 prefix="$acl_save_prefix"
b0cacab0 7998
e598c29b
TT
7999 else
8000 additional_includedir="$withval/include"
8001 additional_libdir="$withval/$acl_libdirstem"
bdcd5f22
TT
8002 additional_libdir2="$withval/$acl_libdirstem2"
8003 additional_libdir3="$withval/$acl_libdirstem3"
e598c29b
TT
8004 fi
8005 fi
d1154eb4
TT
8006
8007fi
e1052144 8008
bdcd5f22
TT
8009 if test "X$additional_libdir2" = "X$additional_libdir"; then
8010 additional_libdir2=
8011 fi
8012 if test "X$additional_libdir3" = "X$additional_libdir"; then
8013 additional_libdir3=
8014 fi
e598c29b
TT
8015 LIBICONV=
8016 LTLIBICONV=
8017 INCICONV=
8018 LIBICONV_PREFIX=
8019 HAVE_LIBICONV=
8020 rpathdirs=
8021 ltrpathdirs=
8022 names_already_handled=
8023 names_next_round='iconv '
8024 while test -n "$names_next_round"; do
8025 names_this_round="$names_next_round"
8026 names_next_round=
8027 for name in $names_this_round; do
8028 already_handled=
8029 for n in $names_already_handled; do
8030 if test "$n" = "$name"; then
8031 already_handled=yes
8032 break
8033 fi
8034 done
8035 if test -z "$already_handled"; then
8036 names_already_handled="$names_already_handled $name"
8037 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8038 eval value=\"\$HAVE_LIB$uppername\"
8039 if test -n "$value"; then
8040 if test "$value" = yes; then
8041 eval value=\"\$LIB$uppername\"
8042 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8043 eval value=\"\$LTLIB$uppername\"
8044 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8045 else
8046 :
8047 fi
8048 else
8049 found_dir=
8050 found_la=
8051 found_so=
8052 found_a=
8053 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8054 if test -n "$acl_shlibext"; then
8055 shrext=".$acl_shlibext" # typically: shrext=.so
8056 else
8057 shrext=
8058 fi
8059 if test $use_additional = yes; then
bdcd5f22
TT
8060 for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
8061 if test "X$found_dir" = "X"; then
8062 eval dir=\$$additional_libdir_variable
8063 if test -n "$dir"; then
8064 if test -n "$acl_shlibext"; then
8065 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
8066 found_dir="$dir"
8067 found_so="$dir/$libname$shrext"
8068 else
8069 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8070 ver=`(cd "$dir" && \
8071 for f in "$libname$shrext".*; do echo "$f"; done \
8072 | sed -e "s,^$libname$shrext\\\\.,," \
8073 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8074 | sed 1q ) 2>/dev/null`
8075 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
8076 found_dir="$dir"
8077 found_so="$dir/$libname$shrext.$ver"
8078 fi
8079 else
8080 eval library_names=\"$acl_library_names_spec\"
8081 for f in $library_names; do
8082 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
8083 found_dir="$dir"
8084 found_so="$dir/$f"
8085 break
8086 fi
8087 done
8088 fi
8089 fi
e598c29b 8090 fi
bdcd5f22
TT
8091 if test "X$found_dir" = "X"; then
8092 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
e598c29b 8093 found_dir="$dir"
bdcd5f22 8094 found_a="$dir/$libname.$acl_libext"
e598c29b 8095 fi
bdcd5f22
TT
8096 fi
8097 if test "X$found_dir" != "X"; then
8098 if test -f "$dir/$libname.la"; then
8099 found_la="$dir/$libname.la"
8100 fi
8101 fi
e598c29b
TT
8102 fi
8103 fi
bdcd5f22 8104 done
e598c29b
TT
8105 fi
8106 if test "X$found_dir" = "X"; then
8107 for x in $LDFLAGS $LTLIBICONV; do
07a0db15 8108
e598c29b
TT
8109 acl_save_prefix="$prefix"
8110 prefix="$acl_final_prefix"
8111 acl_save_exec_prefix="$exec_prefix"
8112 exec_prefix="$acl_final_exec_prefix"
8113 eval x=\"$x\"
8114 exec_prefix="$acl_save_exec_prefix"
8115 prefix="$acl_save_prefix"
50e1e10f 8116
e598c29b
TT
8117 case "$x" in
8118 -L*)
8119 dir=`echo "X$x" | sed -e 's/^X-L//'`
8120 if test -n "$acl_shlibext"; then
bdcd5f22 8121 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
e598c29b
TT
8122 found_dir="$dir"
8123 found_so="$dir/$libname$shrext"
8124 else
8125 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8126 ver=`(cd "$dir" && \
8127 for f in "$libname$shrext".*; do echo "$f"; done \
8128 | sed -e "s,^$libname$shrext\\\\.,," \
8129 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8130 | sed 1q ) 2>/dev/null`
bdcd5f22 8131 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
e598c29b
TT
8132 found_dir="$dir"
8133 found_so="$dir/$libname$shrext.$ver"
8134 fi
8135 else
8136 eval library_names=\"$acl_library_names_spec\"
8137 for f in $library_names; do
bdcd5f22 8138 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
e598c29b
TT
8139 found_dir="$dir"
8140 found_so="$dir/$f"
8141 break
8142 fi
8143 done
8144 fi
8145 fi
8146 fi
8147 if test "X$found_dir" = "X"; then
bdcd5f22 8148 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
e598c29b
TT
8149 found_dir="$dir"
8150 found_a="$dir/$libname.$acl_libext"
8151 fi
8152 fi
8153 if test "X$found_dir" != "X"; then
8154 if test -f "$dir/$libname.la"; then
8155 found_la="$dir/$libname.la"
8156 fi
8157 fi
8158 ;;
8159 esac
8160 if test "X$found_dir" != "X"; then
8161 break
8162 fi
8163 done
8164 fi
8165 if test "X$found_dir" != "X"; then
8166 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8167 if test "X$found_so" != "X"; then
8168 if test "$enable_rpath" = no \
8169 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
bdcd5f22
TT
8170 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
8171 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
e598c29b
TT
8172 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8173 else
8174 haveit=
8175 for x in $ltrpathdirs; do
8176 if test "X$x" = "X$found_dir"; then
8177 haveit=yes
8178 break
8179 fi
8180 done
8181 if test -z "$haveit"; then
8182 ltrpathdirs="$ltrpathdirs $found_dir"
8183 fi
8184 if test "$acl_hardcode_direct" = yes; then
8185 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8186 else
8187 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8188 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8189 haveit=
8190 for x in $rpathdirs; do
8191 if test "X$x" = "X$found_dir"; then
8192 haveit=yes
8193 break
8194 fi
8195 done
8196 if test -z "$haveit"; then
8197 rpathdirs="$rpathdirs $found_dir"
8198 fi
8199 else
8200 haveit=
8201 for x in $LDFLAGS $LIBICONV; do
93613951 8202
e598c29b
TT
8203 acl_save_prefix="$prefix"
8204 prefix="$acl_final_prefix"
8205 acl_save_exec_prefix="$exec_prefix"
8206 exec_prefix="$acl_final_exec_prefix"
8207 eval x=\"$x\"
8208 exec_prefix="$acl_save_exec_prefix"
8209 prefix="$acl_save_prefix"
b0cacab0 8210
e598c29b
TT
8211 if test "X$x" = "X-L$found_dir"; then
8212 haveit=yes
8213 break
8214 fi
8215 done
8216 if test -z "$haveit"; then
8217 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
8218 fi
8219 if test "$acl_hardcode_minus_L" != no; then
8220 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8221 else
8222 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8223 fi
8224 fi
8225 fi
8226 fi
8227 else
8228 if test "X$found_a" != "X"; then
8229 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
8230 else
8231 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
8232 fi
8233 fi
8234 additional_includedir=
8235 case "$found_dir" in
8236 */$acl_libdirstem | */$acl_libdirstem/)
8237 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8238 if test "$name" = 'iconv'; then
8239 LIBICONV_PREFIX="$basedir"
8240 fi
8241 additional_includedir="$basedir/include"
8242 ;;
8243 */$acl_libdirstem2 | */$acl_libdirstem2/)
8244 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8245 if test "$name" = 'iconv'; then
8246 LIBICONV_PREFIX="$basedir"
8247 fi
8248 additional_includedir="$basedir/include"
8249 ;;
bdcd5f22
TT
8250 */$acl_libdirstem3 | */$acl_libdirstem3/)
8251 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
8252 if test "$name" = 'iconv'; then
8253 LIBICONV_PREFIX="$basedir"
8254 fi
8255 additional_includedir="$basedir/include"
8256 ;;
e598c29b
TT
8257 esac
8258 if test "X$additional_includedir" != "X"; then
8259 if test "X$additional_includedir" != "X/usr/include"; then
8260 haveit=
8261 if test "X$additional_includedir" = "X/usr/local/include"; then
8262 if test -n "$GCC"; then
8263 case $host_os in
8264 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8265 esac
8266 fi
8267 fi
8268 if test -z "$haveit"; then
8269 for x in $CPPFLAGS $INCICONV; do
93613951 8270
e598c29b
TT
8271 acl_save_prefix="$prefix"
8272 prefix="$acl_final_prefix"
8273 acl_save_exec_prefix="$exec_prefix"
8274 exec_prefix="$acl_final_exec_prefix"
8275 eval x=\"$x\"
8276 exec_prefix="$acl_save_exec_prefix"
8277 prefix="$acl_save_prefix"
93613951 8278
e598c29b
TT
8279 if test "X$x" = "X-I$additional_includedir"; then
8280 haveit=yes
8281 break
8282 fi
8283 done
8284 if test -z "$haveit"; then
8285 if test -d "$additional_includedir"; then
8286 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
8287 fi
8288 fi
8289 fi
8290 fi
8291 fi
8292 if test -n "$found_la"; then
8293 save_libdir="$libdir"
8294 case "$found_la" in
8295 */* | *\\*) . "$found_la" ;;
8296 *) . "./$found_la" ;;
8297 esac
8298 libdir="$save_libdir"
8299 for dep in $dependency_libs; do
8300 case "$dep" in
8301 -L*)
bdcd5f22
TT
8302 dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8303 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
8304 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
8305 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
e598c29b 8306 haveit=
bdcd5f22
TT
8307 if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
8308 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
8309 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
e598c29b
TT
8310 if test -n "$GCC"; then
8311 case $host_os in
8312 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8313 esac
8314 fi
8315 fi
8316 if test -z "$haveit"; then
8317 haveit=
8318 for x in $LDFLAGS $LIBICONV; do
b0cacab0 8319
e598c29b
TT
8320 acl_save_prefix="$prefix"
8321 prefix="$acl_final_prefix"
8322 acl_save_exec_prefix="$exec_prefix"
8323 exec_prefix="$acl_final_exec_prefix"
8324 eval x=\"$x\"
8325 exec_prefix="$acl_save_exec_prefix"
8326 prefix="$acl_save_prefix"
50e1e10f 8327
bdcd5f22 8328 if test "X$x" = "X-L$dependency_libdir"; then
e598c29b
TT
8329 haveit=yes
8330 break
8331 fi
8332 done
8333 if test -z "$haveit"; then
bdcd5f22
TT
8334 if test -d "$dependency_libdir"; then
8335 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$dependency_libdir"
e598c29b
TT
8336 fi
8337 fi
8338 haveit=
8339 for x in $LDFLAGS $LTLIBICONV; do
e1052144 8340
e598c29b
TT
8341 acl_save_prefix="$prefix"
8342 prefix="$acl_final_prefix"
8343 acl_save_exec_prefix="$exec_prefix"
8344 exec_prefix="$acl_final_exec_prefix"
8345 eval x=\"$x\"
8346 exec_prefix="$acl_save_exec_prefix"
8347 prefix="$acl_save_prefix"
8348
bdcd5f22 8349 if test "X$x" = "X-L$dependency_libdir"; then
e598c29b
TT
8350 haveit=yes
8351 break
8352 fi
8353 done
8354 if test -z "$haveit"; then
bdcd5f22
TT
8355 if test -d "$dependency_libdir"; then
8356 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$dependency_libdir"
e598c29b
TT
8357 fi
8358 fi
8359 fi
8360 fi
8361 ;;
8362 -R*)
8363 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8364 if test "$enable_rpath" != no; then
8365 haveit=
8366 for x in $rpathdirs; do
8367 if test "X$x" = "X$dir"; then
8368 haveit=yes
8369 break
8370 fi
8371 done
8372 if test -z "$haveit"; then
8373 rpathdirs="$rpathdirs $dir"
8374 fi
8375 haveit=
8376 for x in $ltrpathdirs; do
8377 if test "X$x" = "X$dir"; then
8378 haveit=yes
8379 break
8380 fi
8381 done
8382 if test -z "$haveit"; then
8383 ltrpathdirs="$ltrpathdirs $dir"
8384 fi
8385 fi
8386 ;;
8387 -l*)
8388 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8389 ;;
8390 *.la)
8391 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8392 ;;
8393 *)
8394 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
8395 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
8396 ;;
8397 esac
8398 done
8399 fi
8400 else
8401 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
8402 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
8403 fi
8404 fi
8405 fi
8406 done
93613951 8407 done
e598c29b
TT
8408 if test "X$rpathdirs" != "X"; then
8409 if test -n "$acl_hardcode_libdir_separator"; then
8410 alldirs=
8411 for found_dir in $rpathdirs; do
8412 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8413 done
8414 acl_save_libdir="$libdir"
8415 libdir="$alldirs"
8416 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8417 libdir="$acl_save_libdir"
8418 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8419 else
8420 for found_dir in $rpathdirs; do
8421 acl_save_libdir="$libdir"
8422 libdir="$found_dir"
8423 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8424 libdir="$acl_save_libdir"
8425 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
8426 done
8427 fi
8428 fi
8429 if test "X$ltrpathdirs" != "X"; then
8430 for found_dir in $ltrpathdirs; do
8431 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
8432 done
8433 fi
b0cacab0 8434
93613951 8435
93613951 8436
57aa50d4
TT
8437
8438
8439
8440
8441
8442
8443
8444
8445
8446
8447
b0cacab0 8448
740837de 8449
b0cacab0
TT
8450
8451
8452
93613951
TT
8453
8454
8455
8456
8457
8458
8459
93613951
TT
8460
8461
8462
8463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
8464$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
8465if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
8466 $as_echo_n "(cached) " >&6
50e1e10f 8467else
93613951
TT
8468 gt_save_LIBS="$LIBS"
8469 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
8470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8471/* end confdefs.h. */
8472#include <CoreFoundation/CFPreferences.h>
8473int
8474main ()
8475{
8476CFPreferencesCopyAppValue(NULL, NULL)
8477 ;
8478 return 0;
8479}
8480_ACEOF
8481if ac_fn_c_try_link "$LINENO"; then :
8482 gt_cv_func_CFPreferencesCopyAppValue=yes
8483else
8484 gt_cv_func_CFPreferencesCopyAppValue=no
50e1e10f 8485fi
93613951
TT
8486rm -f core conftest.err conftest.$ac_objext \
8487 conftest$ac_exeext conftest.$ac_ext
8488 LIBS="$gt_save_LIBS"
50e1e10f 8489fi
93613951
TT
8490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
8491$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
8492 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
8493
8494$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
8495
8496 fi
bdcd5f22
TT
8497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
8498$as_echo_n "checking for CFLocaleCopyPreferredLanguages... " >&6; }
8499if ${gt_cv_func_CFLocaleCopyPreferredLanguages+:} false; then :
93613951
TT
8500 $as_echo_n "(cached) " >&6
8501else
8502 gt_save_LIBS="$LIBS"
8503 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
8504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8505/* end confdefs.h. */
8506#include <CoreFoundation/CFLocale.h>
8507int
8508main ()
8509{
bdcd5f22 8510CFLocaleCopyPreferredLanguages();
93613951
TT
8511 ;
8512 return 0;
8513}
8514_ACEOF
8515if ac_fn_c_try_link "$LINENO"; then :
bdcd5f22 8516 gt_cv_func_CFLocaleCopyPreferredLanguages=yes
93613951 8517else
bdcd5f22 8518 gt_cv_func_CFLocaleCopyPreferredLanguages=no
93613951
TT
8519fi
8520rm -f core conftest.err conftest.$ac_objext \
8521 conftest$ac_exeext conftest.$ac_ext
8522 LIBS="$gt_save_LIBS"
8523fi
bdcd5f22
TT
8524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
8525$as_echo "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
8526 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
93613951 8527
bdcd5f22 8528$as_echo "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
93613951
TT
8529
8530 fi
8531 INTL_MACOSX_LIBS=
bdcd5f22
TT
8532 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
8533 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
93613951
TT
8534 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
8535 fi
8536
50e1e10f 8537
b0cacab0
TT
8538
8539
8540
8541
57aa50d4
TT
8542 LIBINTL=
8543 LTLIBINTL=
8544 POSUB=
8545
93613951
TT
8546 case " $gt_needs " in
8547 *" need-formatstring-macros "*) gt_api_version=3 ;;
8548 *" need-ngettext "*) gt_api_version=2 ;;
8549 *) gt_api_version=1 ;;
8550 esac
8551 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
8552 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
8553
57aa50d4
TT
8554 if test "$USE_NLS" = "yes"; then
8555 gt_use_preinstalled_gnugettext=no
b0cacab0
TT
8556
8557
e598c29b
TT
8558 if test $gt_api_version -ge 3; then
8559 gt_revision_test_code='
8560#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
8561#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
8562#endif
8563typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
8564'
8565 else
8566 gt_revision_test_code=
8567 fi
8568 if test $gt_api_version -ge 2; then
8569 gt_expression_test_code=' + * ngettext ("", "", 0)'
8570 else
8571 gt_expression_test_code=
8572 fi
8573
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
8575$as_echo_n "checking for GNU gettext in libc... " >&6; }
8576if eval \${$gt_func_gnugettext_libc+:} false; then :
8577 $as_echo_n "(cached) " >&6
8578else
8579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8580/* end confdefs.h. */
8581
8582#include <libintl.h>
8583#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
8584extern int _nl_msg_cat_cntr;
8585extern int *_nl_domain_bindings;
8586#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
8587#else
8588#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
8589#endif
8590$gt_revision_test_code
8591
8592int
8593main ()
8594{
8595
8596bindtextdomain ("", "");
8597return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
8598
8599 ;
8600 return 0;
8601}
8602_ACEOF
8603if ac_fn_c_try_link "$LINENO"; then :
8604 eval "$gt_func_gnugettext_libc=yes"
50e1e10f 8605else
e598c29b
TT
8606 eval "$gt_func_gnugettext_libc=no"
8607fi
8608rm -f core conftest.err conftest.$ac_objext \
8609 conftest$ac_exeext conftest.$ac_ext
50e1e10f 8610fi
e598c29b
TT
8611eval ac_res=\$$gt_func_gnugettext_libc
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8613$as_echo "$ac_res" >&6; }
50e1e10f 8614
e598c29b
TT
8615 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
8616
8617
8618
8619
8620
8621 am_save_CPPFLAGS="$CPPFLAGS"
8622
8623 for element in $INCICONV; do
8624 haveit=
8625 for x in $CPPFLAGS; do
8626
8627 acl_save_prefix="$prefix"
8628 prefix="$acl_final_prefix"
8629 acl_save_exec_prefix="$exec_prefix"
8630 exec_prefix="$acl_final_exec_prefix"
8631 eval x=\"$x\"
8632 exec_prefix="$acl_save_exec_prefix"
8633 prefix="$acl_save_prefix"
8634
8635 if test "X$x" = "X$element"; then
8636 haveit=yes
8637 break
8638 fi
8639 done
8640 if test -z "$haveit"; then
8641 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8642 fi
8643 done
8644
8645
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
8647$as_echo_n "checking for iconv... " >&6; }
8648if ${am_cv_func_iconv+:} false; then :
8649 $as_echo_n "(cached) " >&6
8650else
8651
8652 am_cv_func_iconv="no, consider installing GNU libiconv"
8653 am_cv_lib_iconv=no
8654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8655/* end confdefs.h. */
8656
8657#include <stdlib.h>
8658#include <iconv.h>
b0cacab0 8659
e598c29b
TT
8660int
8661main ()
8662{
8663iconv_t cd = iconv_open("","");
8664 iconv(cd,NULL,NULL,NULL,NULL);
8665 iconv_close(cd);
8666 ;
8667 return 0;
8668}
8669_ACEOF
8670if ac_fn_c_try_link "$LINENO"; then :
8671 am_cv_func_iconv=yes
8672fi
8673rm -f core conftest.err conftest.$ac_objext \
8674 conftest$ac_exeext conftest.$ac_ext
8675 if test "$am_cv_func_iconv" != yes; then
8676 am_save_LIBS="$LIBS"
8677 LIBS="$LIBS $LIBICONV"
8678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8679/* end confdefs.h. */
b0cacab0 8680
e598c29b
TT
8681#include <stdlib.h>
8682#include <iconv.h>
b0cacab0 8683
e598c29b
TT
8684int
8685main ()
8686{
8687iconv_t cd = iconv_open("","");
8688 iconv(cd,NULL,NULL,NULL,NULL);
8689 iconv_close(cd);
8690 ;
8691 return 0;
8692}
8693_ACEOF
8694if ac_fn_c_try_link "$LINENO"; then :
8695 am_cv_lib_iconv=yes
8696 am_cv_func_iconv=yes
8697fi
8698rm -f core conftest.err conftest.$ac_objext \
8699 conftest$ac_exeext conftest.$ac_ext
8700 LIBS="$am_save_LIBS"
8701 fi
b0cacab0 8702
e598c29b
TT
8703fi
8704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
8705$as_echo "$am_cv_func_iconv" >&6; }
8706 if test "$am_cv_func_iconv" = yes; then
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
8708$as_echo_n "checking for working iconv... " >&6; }
8709if ${am_cv_func_iconv_works+:} false; then :
39fd3d4f 8710 $as_echo_n "(cached) " >&6
7321d94e 8711else
e598c29b
TT
8712
8713 am_save_LIBS="$LIBS"
8714 if test $am_cv_lib_iconv = yes; then
8715 LIBS="$LIBS $LIBICONV"
8716 fi
8717 am_cv_func_iconv_works=no
8718 for ac_iconv_const in '' 'const'; do
8719 if test "$cross_compiling" = yes; then :
8720 case "$host_os" in
8721 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
8722 *) am_cv_func_iconv_works="guessing yes" ;;
8723 esac
8724else
57aa50d4
TT
8725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8726/* end confdefs.h. */
93613951 8727
e598c29b
TT
8728#include <iconv.h>
8729#include <string.h>
8730
8731#ifndef ICONV_CONST
8732# define ICONV_CONST $ac_iconv_const
8733#endif
93613951 8734
57aa50d4
TT
8735int
8736main ()
8737{
e598c29b
TT
8738int result = 0;
8739 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
8740 returns. */
8741 {
8742 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
8743 if (cd_utf8_to_88591 != (iconv_t)(-1))
8744 {
8745 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
8746 char buf[10];
8747 ICONV_CONST char *inptr = input;
8748 size_t inbytesleft = strlen (input);
8749 char *outptr = buf;
8750 size_t outbytesleft = sizeof (buf);
8751 size_t res = iconv (cd_utf8_to_88591,
8752 &inptr, &inbytesleft,
8753 &outptr, &outbytesleft);
8754 if (res == 0)
8755 result |= 1;
8756 iconv_close (cd_utf8_to_88591);
8757 }
8758 }
8759 /* Test against Solaris 10 bug: Failures are not distinguishable from
8760 successful returns. */
8761 {
8762 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
8763 if (cd_ascii_to_88591 != (iconv_t)(-1))
8764 {
8765 static ICONV_CONST char input[] = "\263";
8766 char buf[10];
8767 ICONV_CONST char *inptr = input;
8768 size_t inbytesleft = strlen (input);
8769 char *outptr = buf;
8770 size_t outbytesleft = sizeof (buf);
8771 size_t res = iconv (cd_ascii_to_88591,
8772 &inptr, &inbytesleft,
8773 &outptr, &outbytesleft);
8774 if (res == 0)
8775 result |= 2;
8776 iconv_close (cd_ascii_to_88591);
8777 }
8778 }
8779 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
8780 {
8781 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
8782 if (cd_88591_to_utf8 != (iconv_t)(-1))
8783 {
8784 static ICONV_CONST char input[] = "\304";
8785 static char buf[2] = { (char)0xDE, (char)0xAD };
8786 ICONV_CONST char *inptr = input;
8787 size_t inbytesleft = 1;
8788 char *outptr = buf;
8789 size_t outbytesleft = 1;
8790 size_t res = iconv (cd_88591_to_utf8,
8791 &inptr, &inbytesleft,
8792 &outptr, &outbytesleft);
8793 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
8794 result |= 4;
8795 iconv_close (cd_88591_to_utf8);
8796 }
8797 }
8798#if 0 /* This bug could be worked around by the caller. */
8799 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
8800 {
8801 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
8802 if (cd_88591_to_utf8 != (iconv_t)(-1))
8803 {
8804 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
8805 char buf[50];
8806 ICONV_CONST char *inptr = input;
8807 size_t inbytesleft = strlen (input);
8808 char *outptr = buf;
8809 size_t outbytesleft = sizeof (buf);
8810 size_t res = iconv (cd_88591_to_utf8,
8811 &inptr, &inbytesleft,
8812 &outptr, &outbytesleft);
8813 if ((int)res > 0)
8814 result |= 8;
8815 iconv_close (cd_88591_to_utf8);
8816 }
8817 }
8818#endif
8819 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
8820 provided. */
bdcd5f22
TT
8821 {
8822 /* Try standardized names. */
8823 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
8824 /* Try IRIX, OSF/1 names. */
8825 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
8826 /* Try AIX names. */
8827 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
8828 /* Try HP-UX names. */
8829 iconv_t cd4 = iconv_open ("utf8", "eucJP");
8830 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
8831 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
8832 result |= 16;
8833 if (cd1 != (iconv_t)(-1))
8834 iconv_close (cd1);
8835 if (cd2 != (iconv_t)(-1))
8836 iconv_close (cd2);
8837 if (cd3 != (iconv_t)(-1))
8838 iconv_close (cd3);
8839 if (cd4 != (iconv_t)(-1))
8840 iconv_close (cd4);
8841 }
e598c29b 8842 return result;
93613951 8843
57aa50d4
TT
8844 ;
8845 return 0;
8846}
8847_ACEOF
e598c29b
TT
8848if ac_fn_c_try_run "$LINENO"; then :
8849 am_cv_func_iconv_works=yes
57aa50d4 8850fi
e598c29b
TT
8851rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8852 conftest.$ac_objext conftest.beam conftest.$ac_ext
57aa50d4 8853fi
93613951 8854
e598c29b
TT
8855 test "$am_cv_func_iconv_works" = no || break
8856 done
8857 LIBS="$am_save_LIBS"
8858
8859fi
8860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
8861$as_echo "$am_cv_func_iconv_works" >&6; }
8862 case "$am_cv_func_iconv_works" in
8863 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
8864 *) am_func_iconv=yes ;;
8865 esac
8866 else
8867 am_func_iconv=no am_cv_lib_iconv=no
8868 fi
8869 if test "$am_func_iconv" = yes; then
8870
8871$as_echo "#define HAVE_ICONV 1" >>confdefs.h
8872
8873 fi
8874 if test "$am_cv_lib_iconv" = yes; then
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
8876$as_echo_n "checking how to link with libiconv... " >&6; }
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
8878$as_echo "$LIBICONV" >&6; }
8879 else
8880 CPPFLAGS="$am_save_CPPFLAGS"
8881 LIBICONV=
8882 LTLIBICONV=
8883 fi
8884
8885
8886
93613951
TT
8887
8888
8889
8890
b0cacab0
TT
8891
8892
8893
57aa50d4 8894 use_additional=yes
b0cacab0 8895
57aa50d4
TT
8896 acl_save_prefix="$prefix"
8897 prefix="$acl_final_prefix"
8898 acl_save_exec_prefix="$exec_prefix"
8899 exec_prefix="$acl_final_exec_prefix"
b0cacab0 8900
57aa50d4
TT
8901 eval additional_includedir=\"$includedir\"
8902 eval additional_libdir=\"$libdir\"
bdcd5f22
TT
8903 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
8904 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
b0cacab0 8905
57aa50d4
TT
8906 exec_prefix="$acl_save_exec_prefix"
8907 prefix="$acl_save_prefix"
b0cacab0
TT
8908
8909
57aa50d4
TT
8910# Check whether --with-libintl-prefix was given.
8911if test "${with_libintl_prefix+set}" = set; then :
8912 withval=$with_libintl_prefix;
8913 if test "X$withval" = "Xno"; then
8914 use_additional=no
8915 else
8916 if test "X$withval" = "X"; then
b0cacab0 8917
57aa50d4
TT
8918 acl_save_prefix="$prefix"
8919 prefix="$acl_final_prefix"
8920 acl_save_exec_prefix="$exec_prefix"
8921 exec_prefix="$acl_final_exec_prefix"
b0cacab0 8922
57aa50d4
TT
8923 eval additional_includedir=\"$includedir\"
8924 eval additional_libdir=\"$libdir\"
bdcd5f22
TT
8925 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
8926 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
7321d94e 8927
57aa50d4
TT
8928 exec_prefix="$acl_save_exec_prefix"
8929 prefix="$acl_save_prefix"
7321d94e 8930
57aa50d4
TT
8931 else
8932 additional_includedir="$withval/include"
93613951 8933 additional_libdir="$withval/$acl_libdirstem"
bdcd5f22
TT
8934 additional_libdir2="$withval/$acl_libdirstem2"
8935 additional_libdir3="$withval/$acl_libdirstem3"
57aa50d4
TT
8936 fi
8937 fi
7321d94e 8938
7321d94e
MK
8939fi
8940
bdcd5f22
TT
8941 if test "X$additional_libdir2" = "X$additional_libdir"; then
8942 additional_libdir2=
8943 fi
8944 if test "X$additional_libdir3" = "X$additional_libdir"; then
8945 additional_libdir3=
8946 fi
57aa50d4
TT
8947 LIBINTL=
8948 LTLIBINTL=
8949 INCINTL=
93613951
TT
8950 LIBINTL_PREFIX=
8951 HAVE_LIBINTL=
57aa50d4
TT
8952 rpathdirs=
8953 ltrpathdirs=
8954 names_already_handled=
8955 names_next_round='intl '
8956 while test -n "$names_next_round"; do
8957 names_this_round="$names_next_round"
8958 names_next_round=
8959 for name in $names_this_round; do
8960 already_handled=
8961 for n in $names_already_handled; do
8962 if test "$n" = "$name"; then
8963 already_handled=yes
8964 break
8965 fi
50e1e10f 8966 done
57aa50d4
TT
8967 if test -z "$already_handled"; then
8968 names_already_handled="$names_already_handled $name"
93613951 8969 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
57aa50d4
TT
8970 eval value=\"\$HAVE_LIB$uppername\"
8971 if test -n "$value"; then
8972 if test "$value" = yes; then
8973 eval value=\"\$LIB$uppername\"
8974 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
8975 eval value=\"\$LTLIB$uppername\"
8976 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
8977 else
8978 :
8979 fi
8980 else
8981 found_dir=
8982 found_la=
8983 found_so=
8984 found_a=
93613951
TT
8985 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8986 if test -n "$acl_shlibext"; then
8987 shrext=".$acl_shlibext" # typically: shrext=.so
8988 else
8989 shrext=
8990 fi
57aa50d4 8991 if test $use_additional = yes; then
bdcd5f22
TT
8992 for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
8993 if test "X$found_dir" = "X"; then
8994 eval dir=\$$additional_libdir_variable
8995 if test -n "$dir"; then
8996 if test -n "$acl_shlibext"; then
8997 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
8998 found_dir="$dir"
8999 found_so="$dir/$libname$shrext"
9000 else
9001 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9002 ver=`(cd "$dir" && \
9003 for f in "$libname$shrext".*; do echo "$f"; done \
9004 | sed -e "s,^$libname$shrext\\\\.,," \
9005 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9006 | sed 1q ) 2>/dev/null`
9007 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
9008 found_dir="$dir"
9009 found_so="$dir/$libname$shrext.$ver"
9010 fi
9011 else
9012 eval library_names=\"$acl_library_names_spec\"
9013 for f in $library_names; do
9014 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
9015 found_dir="$dir"
9016 found_so="$dir/$f"
9017 break
9018 fi
9019 done
9020 fi
9021 fi
93613951 9022 fi
bdcd5f22
TT
9023 if test "X$found_dir" = "X"; then
9024 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
93613951 9025 found_dir="$dir"
bdcd5f22 9026 found_a="$dir/$libname.$acl_libext"
93613951 9027 fi
bdcd5f22
TT
9028 fi
9029 if test "X$found_dir" != "X"; then
9030 if test -f "$dir/$libname.la"; then
9031 found_la="$dir/$libname.la"
9032 fi
9033 fi
57aa50d4
TT
9034 fi
9035 fi
bdcd5f22 9036 done
57aa50d4
TT
9037 fi
9038 if test "X$found_dir" = "X"; then
9039 for x in $LDFLAGS $LTLIBINTL; do
39fd3d4f 9040
57aa50d4
TT
9041 acl_save_prefix="$prefix"
9042 prefix="$acl_final_prefix"
9043 acl_save_exec_prefix="$exec_prefix"
9044 exec_prefix="$acl_final_exec_prefix"
9045 eval x=\"$x\"
9046 exec_prefix="$acl_save_exec_prefix"
9047 prefix="$acl_save_prefix"
3d05802f 9048
57aa50d4
TT
9049 case "$x" in
9050 -L*)
9051 dir=`echo "X$x" | sed -e 's/^X-L//'`
93613951 9052 if test -n "$acl_shlibext"; then
bdcd5f22 9053 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
57aa50d4 9054 found_dir="$dir"
93613951
TT
9055 found_so="$dir/$libname$shrext"
9056 else
9057 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9058 ver=`(cd "$dir" && \
9059 for f in "$libname$shrext".*; do echo "$f"; done \
9060 | sed -e "s,^$libname$shrext\\\\.,," \
9061 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9062 | sed 1q ) 2>/dev/null`
bdcd5f22 9063 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
93613951
TT
9064 found_dir="$dir"
9065 found_so="$dir/$libname$shrext.$ver"
9066 fi
9067 else
9068 eval library_names=\"$acl_library_names_spec\"
9069 for f in $library_names; do
bdcd5f22 9070 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
93613951
TT
9071 found_dir="$dir"
9072 found_so="$dir/$f"
9073 break
9074 fi
9075 done
57aa50d4
TT
9076 fi
9077 fi
93613951
TT
9078 fi
9079 if test "X$found_dir" = "X"; then
bdcd5f22 9080 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
93613951
TT
9081 found_dir="$dir"
9082 found_a="$dir/$libname.$acl_libext"
9083 fi
9084 fi
9085 if test "X$found_dir" != "X"; then
9086 if test -f "$dir/$libname.la"; then
9087 found_la="$dir/$libname.la"
9088 fi
57aa50d4
TT
9089 fi
9090 ;;
9091 esac
9092 if test "X$found_dir" != "X"; then
9093 break
9094 fi
9095 done
9096 fi
9097 if test "X$found_dir" != "X"; then
9098 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
9099 if test "X$found_so" != "X"; then
93613951
TT
9100 if test "$enable_rpath" = no \
9101 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
bdcd5f22
TT
9102 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
9103 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
57aa50d4
TT
9104 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9105 else
9106 haveit=
9107 for x in $ltrpathdirs; do
9108 if test "X$x" = "X$found_dir"; then
9109 haveit=yes
9110 break
9111 fi
9112 done
9113 if test -z "$haveit"; then
9114 ltrpathdirs="$ltrpathdirs $found_dir"
9115 fi
93613951 9116 if test "$acl_hardcode_direct" = yes; then
57aa50d4
TT
9117 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9118 else
93613951 9119 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
57aa50d4
TT
9120 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9121 haveit=
9122 for x in $rpathdirs; do
9123 if test "X$x" = "X$found_dir"; then
9124 haveit=yes
9125 break
9126 fi
9127 done
9128 if test -z "$haveit"; then
9129 rpathdirs="$rpathdirs $found_dir"
9130 fi
9131 else
9132 haveit=
9133 for x in $LDFLAGS $LIBINTL; do
6ec9ef18 9134
57aa50d4
TT
9135 acl_save_prefix="$prefix"
9136 prefix="$acl_final_prefix"
9137 acl_save_exec_prefix="$exec_prefix"
9138 exec_prefix="$acl_final_exec_prefix"
9139 eval x=\"$x\"
9140 exec_prefix="$acl_save_exec_prefix"
9141 prefix="$acl_save_prefix"
d7f45af8 9142
57aa50d4
TT
9143 if test "X$x" = "X-L$found_dir"; then
9144 haveit=yes
9145 break
9146 fi
9147 done
9148 if test -z "$haveit"; then
9149 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
9150 fi
93613951 9151 if test "$acl_hardcode_minus_L" != no; then
57aa50d4
TT
9152 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
9153 else
9154 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9155 fi
9156 fi
9157 fi
9158 fi
9159 else
9160 if test "X$found_a" != "X"; then
9161 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
9162 else
9163 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
9164 fi
9165 fi
9166 additional_includedir=
9167 case "$found_dir" in
93613951
TT
9168 */$acl_libdirstem | */$acl_libdirstem/)
9169 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9170 if test "$name" = 'intl'; then
9171 LIBINTL_PREFIX="$basedir"
9172 fi
9173 additional_includedir="$basedir/include"
9174 ;;
9175 */$acl_libdirstem2 | */$acl_libdirstem2/)
9176 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9177 if test "$name" = 'intl'; then
9178 LIBINTL_PREFIX="$basedir"
9179 fi
57aa50d4
TT
9180 additional_includedir="$basedir/include"
9181 ;;
bdcd5f22
TT
9182 */$acl_libdirstem3 | */$acl_libdirstem3/)
9183 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
9184 if test "$name" = 'intl'; then
9185 LIBINTL_PREFIX="$basedir"
9186 fi
9187 additional_includedir="$basedir/include"
9188 ;;
57aa50d4
TT
9189 esac
9190 if test "X$additional_includedir" != "X"; then
9191 if test "X$additional_includedir" != "X/usr/include"; then
9192 haveit=
9193 if test "X$additional_includedir" = "X/usr/local/include"; then
9194 if test -n "$GCC"; then
9195 case $host_os in
93613951 9196 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
57aa50d4
TT
9197 esac
9198 fi
9199 fi
9200 if test -z "$haveit"; then
9201 for x in $CPPFLAGS $INCINTL; do
b0cacab0 9202
57aa50d4
TT
9203 acl_save_prefix="$prefix"
9204 prefix="$acl_final_prefix"
9205 acl_save_exec_prefix="$exec_prefix"
9206 exec_prefix="$acl_final_exec_prefix"
9207 eval x=\"$x\"
9208 exec_prefix="$acl_save_exec_prefix"
9209 prefix="$acl_save_prefix"
21c84b71 9210
57aa50d4
TT
9211 if test "X$x" = "X-I$additional_includedir"; then
9212 haveit=yes
9213 break
9214 fi
9215 done
9216 if test -z "$haveit"; then
9217 if test -d "$additional_includedir"; then
9218 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
9219 fi
9220 fi
9221 fi
9222 fi
9223 fi
9224 if test -n "$found_la"; then
9225 save_libdir="$libdir"
9226 case "$found_la" in
9227 */* | *\\*) . "$found_la" ;;
9228 *) . "./$found_la" ;;
9229 esac
9230 libdir="$save_libdir"
9231 for dep in $dependency_libs; do
9232 case "$dep" in
9233 -L*)
bdcd5f22
TT
9234 dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9235 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
9236 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
9237 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
57aa50d4 9238 haveit=
bdcd5f22
TT
9239 if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
9240 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
9241 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
57aa50d4
TT
9242 if test -n "$GCC"; then
9243 case $host_os in
93613951 9244 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
57aa50d4
TT
9245 esac
9246 fi
9247 fi
9248 if test -z "$haveit"; then
9249 haveit=
9250 for x in $LDFLAGS $LIBINTL; do
50e1e10f 9251
57aa50d4
TT
9252 acl_save_prefix="$prefix"
9253 prefix="$acl_final_prefix"
9254 acl_save_exec_prefix="$exec_prefix"
9255 exec_prefix="$acl_final_exec_prefix"
9256 eval x=\"$x\"
9257 exec_prefix="$acl_save_exec_prefix"
9258 prefix="$acl_save_prefix"
50e1e10f 9259
bdcd5f22 9260 if test "X$x" = "X-L$dependency_libdir"; then
57aa50d4
TT
9261 haveit=yes
9262 break
9263 fi
9264 done
9265 if test -z "$haveit"; then
bdcd5f22
TT
9266 if test -d "$dependency_libdir"; then
9267 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$dependency_libdir"
57aa50d4
TT
9268 fi
9269 fi
9270 haveit=
9271 for x in $LDFLAGS $LTLIBINTL; do
a4bf69d9 9272
57aa50d4
TT
9273 acl_save_prefix="$prefix"
9274 prefix="$acl_final_prefix"
9275 acl_save_exec_prefix="$exec_prefix"
9276 exec_prefix="$acl_final_exec_prefix"
9277 eval x=\"$x\"
9278 exec_prefix="$acl_save_exec_prefix"
9279 prefix="$acl_save_prefix"
50e1e10f 9280
bdcd5f22 9281 if test "X$x" = "X-L$dependency_libdir"; then
57aa50d4
TT
9282 haveit=yes
9283 break
9284 fi
9285 done
9286 if test -z "$haveit"; then
bdcd5f22
TT
9287 if test -d "$dependency_libdir"; then
9288 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$dependency_libdir"
57aa50d4
TT
9289 fi
9290 fi
9291 fi
9292 fi
9293 ;;
9294 -R*)
9295 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9296 if test "$enable_rpath" != no; then
9297 haveit=
9298 for x in $rpathdirs; do
9299 if test "X$x" = "X$dir"; then
9300 haveit=yes
9301 break
9302 fi
9303 done
9304 if test -z "$haveit"; then
9305 rpathdirs="$rpathdirs $dir"
9306 fi
9307 haveit=
9308 for x in $ltrpathdirs; do
9309 if test "X$x" = "X$dir"; then
9310 haveit=yes
9311 break
9312 fi
9313 done
9314 if test -z "$haveit"; then
9315 ltrpathdirs="$ltrpathdirs $dir"
9316 fi
9317 fi
9318 ;;
9319 -l*)
9320 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9321 ;;
9322 *.la)
9323 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9324 ;;
9325 *)
9326 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
9327 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
9328 ;;
9329 esac
9330 done
9331 fi
9332 else
9333 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
9334 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
9335 fi
9336 fi
9337 fi
9338 done
9339 done
9340 if test "X$rpathdirs" != "X"; then
93613951 9341 if test -n "$acl_hardcode_libdir_separator"; then
57aa50d4
TT
9342 alldirs=
9343 for found_dir in $rpathdirs; do
93613951 9344 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
57aa50d4
TT
9345 done
9346 acl_save_libdir="$libdir"
9347 libdir="$alldirs"
93613951 9348 eval flag=\"$acl_hardcode_libdir_flag_spec\"
57aa50d4
TT
9349 libdir="$acl_save_libdir"
9350 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9351 else
9352 for found_dir in $rpathdirs; do
9353 acl_save_libdir="$libdir"
9354 libdir="$found_dir"
93613951 9355 eval flag=\"$acl_hardcode_libdir_flag_spec\"
57aa50d4
TT
9356 libdir="$acl_save_libdir"
9357 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
9358 done
9359 fi
9360 fi
9361 if test "X$ltrpathdirs" != "X"; then
9362 for found_dir in $ltrpathdirs; do
9363 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
9364 done
9365 fi
b0cacab0 9366
93613951
TT
9367
9368
9369
9370
57aa50d4
TT
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
9372$as_echo_n "checking for GNU gettext in libintl... " >&6; }
93613951 9373if eval \${$gt_func_gnugettext_libintl+:} false; then :
39fd3d4f 9374 $as_echo_n "(cached) " >&6
6c133523 9375else
57aa50d4
TT
9376 gt_save_CPPFLAGS="$CPPFLAGS"
9377 CPPFLAGS="$CPPFLAGS $INCINTL"
9378 gt_save_LIBS="$LIBS"
9379 LIBS="$LIBS $LIBINTL"
9380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9381/* end confdefs.h. */
93613951 9382
57aa50d4 9383#include <libintl.h>
e598c29b 9384#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
57aa50d4
TT
9385extern int _nl_msg_cat_cntr;
9386extern
9387#ifdef __cplusplus
9388"C"
9389#endif
93613951 9390const char *_nl_expand_alias (const char *);
e598c29b
TT
9391#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
9392#else
9393#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
9394#endif
9395$gt_revision_test_code
93613951 9396
57aa50d4
TT
9397int
9398main ()
9399{
93613951 9400
57aa50d4 9401bindtextdomain ("", "");
e598c29b 9402return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
93613951 9403
57aa50d4
TT
9404 ;
9405 return 0;
9406}
b0cacab0 9407_ACEOF
57aa50d4 9408if ac_fn_c_try_link "$LINENO"; then :
93613951 9409 eval "$gt_func_gnugettext_libintl=yes"
6c133523 9410else
93613951 9411 eval "$gt_func_gnugettext_libintl=no"
6c133523 9412fi
57aa50d4
TT
9413rm -f core conftest.err conftest.$ac_objext \
9414 conftest$ac_exeext conftest.$ac_ext
93613951 9415 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
57aa50d4
TT
9416 LIBS="$LIBS $LIBICONV"
9417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
da76d6b7 9418/* end confdefs.h. */
93613951 9419
57aa50d4 9420#include <libintl.h>
e598c29b 9421#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
57aa50d4
TT
9422extern int _nl_msg_cat_cntr;
9423extern
9424#ifdef __cplusplus
9425"C"
da76d6b7 9426#endif
93613951 9427const char *_nl_expand_alias (const char *);
e598c29b
TT
9428#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
9429#else
9430#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
9431#endif
9432$gt_revision_test_code
93613951 9433
57aa50d4
TT
9434int
9435main ()
9436{
93613951 9437
57aa50d4 9438bindtextdomain ("", "");
e598c29b 9439return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
93613951 9440
57aa50d4
TT
9441 ;
9442 return 0;
9443}
da76d6b7 9444_ACEOF
57aa50d4
TT
9445if ac_fn_c_try_link "$LINENO"; then :
9446 LIBINTL="$LIBINTL $LIBICONV"
93613951
TT
9447 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
9448 eval "$gt_func_gnugettext_libintl=yes"
6c133523
TT
9449
9450fi
57aa50d4
TT
9451rm -f core conftest.err conftest.$ac_objext \
9452 conftest$ac_exeext conftest.$ac_ext
9453 fi
9454 CPPFLAGS="$gt_save_CPPFLAGS"
9455 LIBS="$gt_save_LIBS"
da76d6b7 9456fi
93613951
TT
9457eval ac_res=\$$gt_func_gnugettext_libintl
9458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9459$as_echo "$ac_res" >&6; }
57aa50d4 9460 fi
b0cacab0 9461
93613951
TT
9462 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
9463 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
57aa50d4
TT
9464 && test "$PACKAGE" != gettext-runtime \
9465 && test "$PACKAGE" != gettext-tools; }; then
9466 gt_use_preinstalled_gnugettext=yes
9467 else
9468 LIBINTL=
9469 LTLIBINTL=
9470 INCINTL=
9471 fi
740837de 9472
b0cacab0 9473
b0cacab0 9474
93613951
TT
9475 if test -n "$INTL_MACOSX_LIBS"; then
9476 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9477 || test "$nls_cv_use_gnu_gettext" = "yes"; then
9478 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
9479 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
9480 fi
9481 fi
9482
57aa50d4
TT
9483 if test "$gt_use_preinstalled_gnugettext" = "yes" \
9484 || test "$nls_cv_use_gnu_gettext" = "yes"; then
b0cacab0 9485
57aa50d4 9486$as_echo "#define ENABLE_NLS 1" >>confdefs.h
b0cacab0 9487
57aa50d4
TT
9488 else
9489 USE_NLS=no
9490 fi
9491 fi
b0cacab0 9492
57aa50d4
TT
9493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
9494$as_echo_n "checking whether to use NLS... " >&6; }
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
9496$as_echo "$USE_NLS" >&6; }
9497 if test "$USE_NLS" = "yes"; then
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
9499$as_echo_n "checking where the gettext function comes from... " >&6; }
9500 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
93613951 9501 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
57aa50d4
TT
9502 gt_source="external libintl"
9503 else
9504 gt_source="libc"
9505 fi
9506 else
9507 gt_source="included intl directory"
9508 fi
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
9510$as_echo "$gt_source" >&6; }
9511 fi
b0cacab0 9512
57aa50d4 9513 if test "$USE_NLS" = "yes"; then
b0cacab0 9514
57aa50d4 9515 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
93613951 9516 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
57aa50d4
TT
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
9518$as_echo_n "checking how to link with libintl... " >&6; }
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
9520$as_echo "$LIBINTL" >&6; }
b0cacab0 9521
57aa50d4
TT
9522 for element in $INCINTL; do
9523 haveit=
9524 for x in $CPPFLAGS; do
b0cacab0 9525
57aa50d4
TT
9526 acl_save_prefix="$prefix"
9527 prefix="$acl_final_prefix"
9528 acl_save_exec_prefix="$exec_prefix"
9529 exec_prefix="$acl_final_exec_prefix"
9530 eval x=\"$x\"
9531 exec_prefix="$acl_save_exec_prefix"
9532 prefix="$acl_save_prefix"
b0cacab0 9533
57aa50d4
TT
9534 if test "X$x" = "X$element"; then
9535 haveit=yes
9536 break
9537 fi
9538 done
9539 if test -z "$haveit"; then
9540 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9541 fi
9542 done
b0cacab0 9543
57aa50d4 9544 fi
b0cacab0
TT
9545
9546
57aa50d4 9547$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
b0cacab0
TT
9548
9549
57aa50d4 9550$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
b0cacab0 9551
57aa50d4 9552 fi
b0cacab0 9553
57aa50d4
TT
9554 POSUB=po
9555 fi
b0cacab0
TT
9556
9557
b0cacab0 9558
57aa50d4 9559 INTLLIBS="$LIBINTL"
e1052144 9560
b0cacab0 9561
93636bde 9562
93636bde 9563
b0cacab0 9564
93636bde 9565
50e1e10f 9566
57aa50d4
TT
9567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9568$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9569set x ${MAKE-make}
9570ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
d6a4bcb5 9571if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
57aa50d4
TT
9572 $as_echo_n "(cached) " >&6
9573else
9574 cat >conftest.make <<\_ACEOF
9575SHELL = /bin/sh
9576all:
9577 @echo '@@@%%%=$(MAKE)=@@@%%%'
b0cacab0 9578_ACEOF
d6a4bcb5 9579# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
57aa50d4
TT
9580case `${MAKE-make} -f conftest.make 2>/dev/null` in
9581 *@@@%%%=?*=@@@%%%*)
9582 eval ac_cv_prog_make_${ac_make}_set=yes;;
9583 *)
9584 eval ac_cv_prog_make_${ac_make}_set=no;;
e1052144 9585esac
57aa50d4 9586rm -f conftest.make
b0cacab0 9587fi
57aa50d4
TT
9588if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9590$as_echo "yes" >&6; }
9591 SET_MAKE=
b0b9c4de 9592else
57aa50d4
TT
9593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9594$as_echo "no" >&6; }
9595 SET_MAKE="MAKE=${MAKE-make}"
b0cacab0 9596fi
b0cacab0 9597
57aa50d4
TT
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
9599$as_echo_n "checking for GNU make... " >&6; }
d6a4bcb5 9600if ${_cv_gnu_make_command+:} false; then :
57aa50d4 9601 $as_echo_n "(cached) " >&6
39fd3d4f 9602else
57aa50d4 9603 _cv_gnu_make_command='' ;
e703ba4b 9604 if test -n "$FORCE_NATIVE_MAKE" ; then
f3bc1561
TT
9605 MAKES="make"
9606 else
9607 MAKES="make gmake gnumake"
9608 fi
9609 for a in "$MAKE" $MAKES ; do
57aa50d4
TT
9610 if test -z "$a" ; then continue ; fi ;
9611 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
9612 _cv_gnu_make_command=$a ;
9613 break;
9614 fi
9615 done ;
50e1e10f 9616
50e1e10f 9617fi
57aa50d4
TT
9618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
9619$as_echo "$_cv_gnu_make_command" >&6; } ;
9620 if test "x$_cv_gnu_make_command" != "x" ; then
9621 ifGNUmake='' ;
9622 ifNotGNUmake='#' ;
9623 else
9624 ifGNUmake='#' ;
9625 ifNotGNUmake='' ;
9626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
9627$as_echo "\"Not found\"" >&6; };
9628 fi
50e1e10f 9629
50e1e10f 9630
b0cacab0 9631
57aa50d4
TT
9632# Extract the first word of "ln", so it can be a program name with args.
9633set dummy ln; ac_word=$2
9634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9635$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 9636if ${ac_cv_path_LN+:} false; then :
39fd3d4f 9637 $as_echo_n "(cached) " >&6
fff45483 9638else
57aa50d4
TT
9639 case $LN in
9640 [\\/]* | ?:[\\/]*)
9641 ac_cv_path_LN="$LN" # Let the user override the test with a path.
9642 ;;
9643 *)
9644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9645for as_dir in $PATH
9646do
9647 IFS=$as_save_IFS
9648 test -z "$as_dir" && as_dir=.
9649 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 9650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
9651 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
9652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9653 break 2
9654 fi
9655done
9656 done
9657IFS=$as_save_IFS
6c65d251 9658
57aa50d4
TT
9659 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
9660 ;;
e1052144 9661esac
fff45483 9662fi
57aa50d4
TT
9663LN=$ac_cv_path_LN
9664if test -n "$LN"; then
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
9666$as_echo "$LN" >&6; }
9667else
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9669$as_echo "no" >&6; }
fff45483 9670fi
e1052144 9671
fff45483 9672
5abc0414 9673
3fb16e74
TT
9674mkdir_p=$MKDIR_P
9675
57aa50d4
TT
9676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9677$as_echo_n "checking whether ln -s works... " >&6; }
9678LN_S=$as_ln_s
9679if test "$LN_S" = "ln -s"; then
9680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9681$as_echo "yes" >&6; }
9682else
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9684$as_echo "no, using $LN_S" >&6; }
fff45483 9685fi
6c65d251 9686
57aa50d4
TT
9687# Extract the first word of "mv", so it can be a program name with args.
9688set dummy mv; ac_word=$2
9689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9690$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 9691if ${ac_cv_path_MV+:} false; then :
39fd3d4f 9692 $as_echo_n "(cached) " >&6
fff45483 9693else
57aa50d4
TT
9694 case $MV in
9695 [\\/]* | ?:[\\/]*)
9696 ac_cv_path_MV="$MV" # Let the user override the test with a path.
9697 ;;
9698 *)
9699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9700for as_dir in $PATH
9701do
9702 IFS=$as_save_IFS
9703 test -z "$as_dir" && as_dir=.
9704 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 9705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
9706 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
9707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9708 break 2
9709 fi
9710done
9711 done
9712IFS=$as_save_IFS
6c65d251 9713
57aa50d4
TT
9714 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
9715 ;;
e1052144 9716esac
b0cacab0 9717fi
57aa50d4
TT
9718MV=$ac_cv_path_MV
9719if test -n "$MV"; then
9720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
9721$as_echo "$MV" >&6; }
b0b9c4de 9722else
57aa50d4
TT
9723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9724$as_echo "no" >&6; }
39fd3d4f
SJR
9725fi
9726
39fd3d4f 9727
57aa50d4
TT
9728# Extract the first word of "cp", so it can be a program name with args.
9729set dummy cp; ac_word=$2
9730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9731$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 9732if ${ac_cv_path_CP+:} false; then :
39fd3d4f 9733 $as_echo_n "(cached) " >&6
b0cacab0 9734else
57aa50d4
TT
9735 case $CP in
9736 [\\/]* | ?:[\\/]*)
9737 ac_cv_path_CP="$CP" # Let the user override the test with a path.
9738 ;;
9739 *)
9740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9741for as_dir in $PATH
9742do
9743 IFS=$as_save_IFS
9744 test -z "$as_dir" && as_dir=.
9745 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 9746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
9747 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
9748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9749 break 2
9750 fi
9751done
9752 done
9753IFS=$as_save_IFS
39fd3d4f 9754
57aa50d4
TT
9755 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
9756 ;;
e1052144 9757esac
b0b9c4de 9758fi
57aa50d4
TT
9759CP=$ac_cv_path_CP
9760if test -n "$CP"; then
9761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
9762$as_echo "$CP" >&6; }
b0cacab0 9763else
57aa50d4
TT
9764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9765$as_echo "no" >&6; }
b0b9c4de 9766fi
b0b9c4de 9767
6c65d251 9768
57aa50d4
TT
9769# Extract the first word of "rm", so it can be a program name with args.
9770set dummy rm; ac_word=$2
9771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9772$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 9773if ${ac_cv_path_RM+:} false; then :
39fd3d4f 9774 $as_echo_n "(cached) " >&6
6928adc9 9775else
57aa50d4
TT
9776 case $RM in
9777 [\\/]* | ?:[\\/]*)
9778 ac_cv_path_RM="$RM" # Let the user override the test with a path.
9779 ;;
9780 *)
9781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9782for as_dir in $PATH
9783do
9784 IFS=$as_save_IFS
9785 test -z "$as_dir" && as_dir=.
9786 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 9787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
9788 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
9789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9790 break 2
9791 fi
9792done
b0cacab0 9793 done
57aa50d4 9794IFS=$as_save_IFS
6c65d251 9795
57aa50d4
TT
9796 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
9797 ;;
e1052144 9798esac
6928adc9 9799fi
57aa50d4
TT
9800RM=$ac_cv_path_RM
9801if test -n "$RM"; then
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
9803$as_echo "$RM" >&6; }
b0cacab0 9804else
57aa50d4
TT
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9806$as_echo "no" >&6; }
6928adc9 9807fi
6928adc9 9808
6c65d251 9809
57aa50d4
TT
9810# Extract the first word of "chmod", so it can be a program name with args.
9811set dummy chmod; ac_word=$2
9812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9813$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 9814if ${ac_cv_path_CHMOD+:} false; then :
39fd3d4f 9815 $as_echo_n "(cached) " >&6
b0cacab0 9816else
57aa50d4
TT
9817 case $CHMOD in
9818 [\\/]* | ?:[\\/]*)
9819 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
9820 ;;
9821 *)
9822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9823for as_dir in $PATH
9824do
9825 IFS=$as_save_IFS
9826 test -z "$as_dir" && as_dir=.
9827 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 9828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
9829 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
9830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9831 break 2
9832 fi
9833done
9834 done
9835IFS=$as_save_IFS
39fd3d4f 9836
57aa50d4
TT
9837 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
9838 ;;
e1052144 9839esac
b0cacab0 9840fi
57aa50d4
TT
9841CHMOD=$ac_cv_path_CHMOD
9842if test -n "$CHMOD"; then
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
9844$as_echo "$CHMOD" >&6; }
b0cacab0 9845else
57aa50d4
TT
9846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9847$as_echo "no" >&6; }
b0cacab0 9848fi
39fd3d4f 9849
b0cacab0 9850
57aa50d4
TT
9851for ac_prog in gawk mawk nawk awk
9852do
9853 # Extract the first word of "$ac_prog", so it can be a program name with args.
9854set dummy $ac_prog; ac_word=$2
9855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9856$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 9857if ${ac_cv_prog_AWK+:} false; then :
39fd3d4f 9858 $as_echo_n "(cached) " >&6
b0cacab0 9859else
57aa50d4
TT
9860 if test -n "$AWK"; then
9861 ac_cv_prog_AWK="$AWK" # Let the user override the test.
b0cacab0 9862else
57aa50d4
TT
9863as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9864for as_dir in $PATH
9865do
9866 IFS=$as_save_IFS
9867 test -z "$as_dir" && as_dir=.
9868 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 9869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
9870 ac_cv_prog_AWK="$ac_prog"
9871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9872 break 2
9873 fi
9874done
9875 done
9876IFS=$as_save_IFS
b0cacab0 9877
b0cacab0 9878fi
57aa50d4
TT
9879fi
9880AWK=$ac_cv_prog_AWK
9881if test -n "$AWK"; then
9882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
9883$as_echo "$AWK" >&6; }
b0cacab0 9884else
57aa50d4
TT
9885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9886$as_echo "no" >&6; }
b0cacab0 9887fi
b0cacab0 9888
b0cacab0 9889
57aa50d4
TT
9890 test -n "$AWK" && break
9891done
b0cacab0 9892
57aa50d4
TT
9893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
9894$as_echo_n "checking for egrep... " >&6; }
d6a4bcb5 9895if ${ac_cv_path_EGREP+:} false; then :
57aa50d4 9896 $as_echo_n "(cached) " >&6
b0cacab0 9897else
57aa50d4
TT
9898 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
9899 then ac_cv_path_EGREP="$GREP -E"
9900 else
9901 if test -z "$EGREP"; then
9902 ac_path_EGREP_found=false
9903 # Loop through the user's path and test for each of PROGNAME-LIST
9904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9905for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
9906do
9907 IFS=$as_save_IFS
9908 test -z "$as_dir" && as_dir=.
9909 for ac_prog in egrep; do
9910 for ac_exec_ext in '' $ac_executable_extensions; do
9911 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
d6a4bcb5 9912 as_fn_executable_p "$ac_path_EGREP" || continue
57aa50d4
TT
9913# Check for GNU ac_path_EGREP and select it if it is found.
9914 # Check for GNU $ac_path_EGREP
9915case `"$ac_path_EGREP" --version 2>&1` in
9916*GNU*)
9917 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
9918*)
9919 ac_count=0
9920 $as_echo_n 0123456789 >"conftest.in"
9921 while :
9922 do
9923 cat "conftest.in" "conftest.in" >"conftest.tmp"
9924 mv "conftest.tmp" "conftest.in"
9925 cp "conftest.in" "conftest.nl"
9926 $as_echo 'EGREP' >> "conftest.nl"
9927 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
9928 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
9929 as_fn_arith $ac_count + 1 && ac_count=$as_val
9930 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
9931 # Best one so far, save it but keep looking for a better one
9932 ac_cv_path_EGREP="$ac_path_EGREP"
9933 ac_path_EGREP_max=$ac_count
9934 fi
9935 # 10*(2^10) chars as input seems more than enough
9936 test $ac_count -gt 10 && break
9937 done
9938 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
e1052144 9939esac
e1052144 9940
57aa50d4
TT
9941 $ac_path_EGREP_found && break 3
9942 done
b0cacab0 9943 done
57aa50d4
TT
9944 done
9945IFS=$as_save_IFS
9946 if test -z "$ac_cv_path_EGREP"; then
d6a4bcb5 9947 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
57aa50d4 9948 fi
b0cacab0 9949else
57aa50d4 9950 ac_cv_path_EGREP=$EGREP
b0cacab0 9951fi
e1052144 9952
57aa50d4 9953 fi
b0cacab0 9954fi
57aa50d4
TT
9955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
9956$as_echo "$ac_cv_path_EGREP" >&6; }
9957 EGREP="$ac_cv_path_EGREP"
e1052144 9958
b0cacab0 9959
57aa50d4
TT
9960# Extract the first word of "sed", so it can be a program name with args.
9961set dummy sed; ac_word=$2
9962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9963$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 9964if ${ac_cv_path_SED+:} false; then :
57aa50d4 9965 $as_echo_n "(cached) " >&6
b0cacab0 9966else
57aa50d4
TT
9967 case $SED in
9968 [\\/]* | ?:[\\/]*)
9969 ac_cv_path_SED="$SED" # Let the user override the test with a path.
9970 ;;
9971 *)
9972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9973for as_dir in $PATH
9974do
9975 IFS=$as_save_IFS
9976 test -z "$as_dir" && as_dir=.
9977 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 9978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
9979 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
9980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9981 break 2
9982 fi
b0cacab0 9983done
57aa50d4
TT
9984 done
9985IFS=$as_save_IFS
b0cacab0 9986
57aa50d4
TT
9987 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
9988 ;;
b0cacab0 9989esac
57aa50d4
TT
9990fi
9991SED=$ac_cv_path_SED
9992if test -n "$SED"; then
9993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
9994$as_echo "$SED" >&6; }
b0cacab0 9995else
57aa50d4
TT
9996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9997$as_echo "no" >&6; }
b0cacab0 9998fi
e1052144 9999
b0cacab0 10000
57aa50d4
TT
10001# Extract the first word of "perl", so it can be a program name with args.
10002set dummy perl; ac_word=$2
10003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10004$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 10005if ${ac_cv_path_PERL+:} false; then :
57aa50d4
TT
10006 $as_echo_n "(cached) " >&6
10007else
10008 case $PERL in
10009 [\\/]* | ?:[\\/]*)
10010 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
10011 ;;
10012 *)
10013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10014for as_dir in $PATH
10015do
10016 IFS=$as_save_IFS
10017 test -z "$as_dir" && as_dir=.
10018 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 10019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
10020 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
10021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10022 break 2
10023 fi
b0cacab0 10024done
57aa50d4
TT
10025 done
10026IFS=$as_save_IFS
10027
10028 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
10029 ;;
b0cacab0 10030esac
57aa50d4
TT
10031fi
10032PERL=$ac_cv_path_PERL
10033if test -n "$PERL"; then
10034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
10035$as_echo "$PERL" >&6; }
b0cacab0 10036else
57aa50d4
TT
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10038$as_echo "no" >&6; }
10039fi
b0cacab0 10040
b0cacab0 10041
57aa50d4
TT
10042# Extract the first word of "ldconfig", so it can be a program name with args.
10043set dummy ldconfig; ac_word=$2
10044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10045$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 10046if ${ac_cv_path_LDCONFIG+:} false; then :
57aa50d4 10047 $as_echo_n "(cached) " >&6
b0cacab0 10048else
57aa50d4
TT
10049 case $LDCONFIG in
10050 [\\/]* | ?:[\\/]*)
10051 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
10052 ;;
10053 *)
10054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10055for as_dir in $PATH
10056do
10057 IFS=$as_save_IFS
10058 test -z "$as_dir" && as_dir=.
10059 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 10060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
10061 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
10062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10063 break 2
10064 fi
10065done
10066 done
10067IFS=$as_save_IFS
b0cacab0 10068
57aa50d4
TT
10069 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
10070 ;;
10071esac
39fd3d4f 10072fi
57aa50d4
TT
10073LDCONFIG=$ac_cv_path_LDCONFIG
10074if test -n "$LDCONFIG"; then
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
10076$as_echo "$LDCONFIG" >&6; }
10077else
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10079$as_echo "no" >&6; }
b0cacab0 10080fi
39fd3d4f
SJR
10081
10082
57aa50d4
TT
10083if test -n "$ac_tool_prefix"; then
10084 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10085set dummy ${ac_tool_prefix}ar; ac_word=$2
10086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10087$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 10088if ${ac_cv_prog_AR+:} false; then :
57aa50d4
TT
10089 $as_echo_n "(cached) " >&6
10090else
10091 if test -n "$AR"; then
10092 ac_cv_prog_AR="$AR" # Let the user override the test.
10093else
10094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10095for as_dir in $PATH
10096do
10097 IFS=$as_save_IFS
10098 test -z "$as_dir" && as_dir=.
10099 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 10100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
10101 ac_cv_prog_AR="${ac_tool_prefix}ar"
10102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10103 break 2
10104 fi
10105done
10106 done
10107IFS=$as_save_IFS
39fd3d4f 10108
57aa50d4
TT
10109fi
10110fi
10111AR=$ac_cv_prog_AR
10112if test -n "$AR"; then
10113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10114$as_echo "$AR" >&6; }
10115else
10116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10117$as_echo "no" >&6; }
10118fi
39fd3d4f 10119
b0cacab0 10120
57aa50d4
TT
10121fi
10122if test -z "$ac_cv_prog_AR"; then
10123 ac_ct_AR=$AR
10124 # Extract the first word of "ar", so it can be a program name with args.
10125set dummy ar; ac_word=$2
10126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10127$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 10128if ${ac_cv_prog_ac_ct_AR+:} false; then :
39fd3d4f 10129 $as_echo_n "(cached) " >&6
b0cacab0 10130else
57aa50d4
TT
10131 if test -n "$ac_ct_AR"; then
10132 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
b0cacab0 10133else
57aa50d4
TT
10134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10135for as_dir in $PATH
10136do
10137 IFS=$as_save_IFS
10138 test -z "$as_dir" && as_dir=.
10139 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 10140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
10141 ac_cv_prog_ac_ct_AR="ar"
10142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10143 break 2
10144 fi
10145done
10146 done
10147IFS=$as_save_IFS
b0cacab0 10148
b0cacab0 10149fi
57aa50d4
TT
10150fi
10151ac_ct_AR=$ac_cv_prog_ac_ct_AR
10152if test -n "$ac_ct_AR"; then
10153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10154$as_echo "$ac_ct_AR" >&6; }
b0cacab0 10155else
57aa50d4
TT
10156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10157$as_echo "no" >&6; }
10158fi
b0cacab0 10159
57aa50d4
TT
10160 if test "x$ac_ct_AR" = x; then
10161 AR="ar"
10162 else
10163 case $cross_compiling:$ac_tool_warned in
10164yes:)
10165{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10166$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10167ac_tool_warned=yes ;;
e1052144 10168esac
57aa50d4
TT
10169 AR=$ac_ct_AR
10170 fi
b0cacab0 10171else
57aa50d4 10172 AR="$ac_cv_prog_AR"
b0cacab0 10173fi
e1052144 10174
57aa50d4
TT
10175if test -n "$ac_tool_prefix"; then
10176 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
10177set dummy ${ac_tool_prefix}ranlib; ac_word=$2
10178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10179$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 10180if ${ac_cv_prog_RANLIB+:} false; then :
57aa50d4 10181 $as_echo_n "(cached) " >&6
b0cacab0 10182else
57aa50d4
TT
10183 if test -n "$RANLIB"; then
10184 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
10185else
10186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10187for as_dir in $PATH
10188do
10189 IFS=$as_save_IFS
10190 test -z "$as_dir" && as_dir=.
10191 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 10192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
10193 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
10194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10195 break 2
10196 fi
10197done
b0cacab0 10198 done
57aa50d4 10199IFS=$as_save_IFS
b0cacab0 10200
b0cacab0 10201fi
57aa50d4
TT
10202fi
10203RANLIB=$ac_cv_prog_RANLIB
10204if test -n "$RANLIB"; then
10205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
10206$as_echo "$RANLIB" >&6; }
b0cacab0 10207else
57aa50d4
TT
10208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10209$as_echo "no" >&6; }
b0cacab0 10210fi
b0cacab0 10211
b0cacab0 10212
57aa50d4
TT
10213fi
10214if test -z "$ac_cv_prog_RANLIB"; then
10215 ac_ct_RANLIB=$RANLIB
10216 # Extract the first word of "ranlib", so it can be a program name with args.
10217set dummy ranlib; ac_word=$2
10218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10219$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 10220if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
57aa50d4
TT
10221 $as_echo_n "(cached) " >&6
10222else
10223 if test -n "$ac_ct_RANLIB"; then
10224 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
b0cacab0 10225else
57aa50d4
TT
10226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10227for as_dir in $PATH
10228do
10229 IFS=$as_save_IFS
10230 test -z "$as_dir" && as_dir=.
10231 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 10232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
10233 ac_cv_prog_ac_ct_RANLIB="ranlib"
10234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10235 break 2
10236 fi
10237done
10238 done
10239IFS=$as_save_IFS
29a5deed 10240
b0cacab0 10241fi
57aa50d4
TT
10242fi
10243ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
10244if test -n "$ac_ct_RANLIB"; then
10245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
10246$as_echo "$ac_ct_RANLIB" >&6; }
b0cacab0 10247else
57aa50d4
TT
10248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10249$as_echo "no" >&6; }
10250fi
b0cacab0 10251
57aa50d4
TT
10252 if test "x$ac_ct_RANLIB" = x; then
10253 RANLIB=":"
b0cacab0 10254 else
57aa50d4
TT
10255 case $cross_compiling:$ac_tool_warned in
10256yes:)
10257{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10258$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10259ac_tool_warned=yes ;;
e1052144 10260esac
57aa50d4
TT
10261 RANLIB=$ac_ct_RANLIB
10262 fi
b0cacab0 10263else
57aa50d4 10264 RANLIB="$ac_cv_prog_RANLIB"
b0cacab0 10265fi
e1052144 10266
57aa50d4
TT
10267if test -n "$ac_tool_prefix"; then
10268 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10269set dummy ${ac_tool_prefix}strip; ac_word=$2
10270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10271$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 10272if ${ac_cv_prog_STRIP+:} false; then :
57aa50d4 10273 $as_echo_n "(cached) " >&6
b0cacab0 10274else
57aa50d4
TT
10275 if test -n "$STRIP"; then
10276 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10277else
10278as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10279for as_dir in $PATH
10280do
10281 IFS=$as_save_IFS
10282 test -z "$as_dir" && as_dir=.
10283 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 10284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
10285 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10287 break 2
10288 fi
10289done
10290 done
10291IFS=$as_save_IFS
b0cacab0 10292
b0cacab0 10293fi
b0cacab0 10294fi
57aa50d4
TT
10295STRIP=$ac_cv_prog_STRIP
10296if test -n "$STRIP"; then
10297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10298$as_echo "$STRIP" >&6; }
10299else
10300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10301$as_echo "no" >&6; }
b0cacab0 10302fi
e1052144 10303
b0cacab0 10304
57aa50d4
TT
10305fi
10306if test -z "$ac_cv_prog_STRIP"; then
10307 ac_ct_STRIP=$STRIP
10308 # Extract the first word of "strip", so it can be a program name with args.
10309set dummy strip; ac_word=$2
10310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10311$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 10312if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
39fd3d4f 10313 $as_echo_n "(cached) " >&6
b0cacab0 10314else
57aa50d4
TT
10315 if test -n "$ac_ct_STRIP"; then
10316 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10317else
10318as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10319for as_dir in $PATH
10320do
10321 IFS=$as_save_IFS
10322 test -z "$as_dir" && as_dir=.
10323 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 10324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
10325 ac_cv_prog_ac_ct_STRIP="strip"
10326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10327 break 2
10328 fi
10329done
10330 done
10331IFS=$as_save_IFS
b0cacab0 10332
b0cacab0 10333fi
57aa50d4
TT
10334fi
10335ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10336if test -n "$ac_ct_STRIP"; then
10337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10338$as_echo "$ac_ct_STRIP" >&6; }
b0cacab0 10339else
57aa50d4
TT
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10341$as_echo "no" >&6; }
10342fi
b0cacab0 10343
57aa50d4
TT
10344 if test "x$ac_ct_STRIP" = x; then
10345 STRIP=":"
b0cacab0 10346 else
57aa50d4
TT
10347 case $cross_compiling:$ac_tool_warned in
10348yes:)
10349{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10350$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10351ac_tool_warned=yes ;;
e1052144 10352esac
57aa50d4
TT
10353 STRIP=$ac_ct_STRIP
10354 fi
b0cacab0 10355else
57aa50d4 10356 STRIP="$ac_cv_prog_STRIP"
b0cacab0 10357fi
e1052144 10358
57aa50d4
TT
10359# Extract the first word of "makeinfo", so it can be a program name with args.
10360set dummy makeinfo; ac_word=$2
10361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10362$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 10363if ${ac_cv_prog_MAKEINFO+:} false; then :
57aa50d4 10364 $as_echo_n "(cached) " >&6
07a0db15 10365else
57aa50d4
TT
10366 if test -n "$MAKEINFO"; then
10367 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10368else
10369as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10370for as_dir in $PATH
10371do
10372 IFS=$as_save_IFS
10373 test -z "$as_dir" && as_dir=.
10374 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 10375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
10376 ac_cv_prog_MAKEINFO="makeinfo"
10377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10378 break 2
10379 fi
10380done
10381 done
10382IFS=$as_save_IFS
b0cacab0 10383
b0cacab0
TT
10384fi
10385fi
57aa50d4
TT
10386MAKEINFO=$ac_cv_prog_MAKEINFO
10387if test -n "$MAKEINFO"; then
10388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10389$as_echo "$MAKEINFO" >&6; }
b0cacab0 10390else
57aa50d4
TT
10391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10392$as_echo "no" >&6; }
07a0db15 10393fi
29a5deed
TT
10394
10395
57aa50d4 10396if test "_$MAKEINFO" = "_"; then
ca1de98a 10397 MAKEINFO="echo Makeinfo is missing. Info documentation will not be built."
57aa50d4
TT
10398else
10399 case "$MAKEINFO" in
10400 */missing.*)
10401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
10402*** Makeinfo is missing. Info documentation will not be built." >&5
10403$as_echo "$as_me: WARNING:
10404*** Makeinfo is missing. Info documentation will not be built." >&2;}
10405 ;;
10406 *)
10407 ;;
10408 esac
b0cacab0 10409fi
29a5deed 10410
b0cacab0 10411
57aa50d4
TT
10412# See if we need a separate native compiler.
10413if test $cross_compiling = no; then
10414 BUILD_CC="$CC"
b0cacab0 10415
b0cacab0 10416else
57aa50d4
TT
10417 for ac_prog in gcc cc
10418do
10419 # Extract the first word of "$ac_prog", so it can be a program name with args.
10420set dummy $ac_prog; ac_word=$2
10421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10422$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 10423if ${ac_cv_prog_BUILD_CC+:} false; then :
57aa50d4 10424 $as_echo_n "(cached) " >&6
b0cacab0 10425else
57aa50d4
TT
10426 if test -n "$BUILD_CC"; then
10427 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
10428else
10429as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10430for as_dir in $PATH
10431do
10432 IFS=$as_save_IFS
10433 test -z "$as_dir" && as_dir=.
10434 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 10435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
10436 ac_cv_prog_BUILD_CC="$ac_prog"
10437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10438 break 2
10439 fi
10440done
10441 done
10442IFS=$as_save_IFS
b0cacab0 10443
b0cacab0 10444fi
57aa50d4
TT
10445fi
10446BUILD_CC=$ac_cv_prog_BUILD_CC
10447if test -n "$BUILD_CC"; then
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
10449$as_echo "$BUILD_CC" >&6; }
07a0db15 10450else
57aa50d4
TT
10451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10452$as_echo "no" >&6; }
b0cacab0 10453fi
b0cacab0 10454
b0cacab0 10455
57aa50d4
TT
10456 test -n "$BUILD_CC" && break
10457done
b0cacab0 10458
57aa50d4 10459fi
24487a7f 10460for ac_header in dirent.h errno.h execinfo.h getopt.h malloc.h mntent.h paths.h pthread.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/fsmap.h linux/major.h linux/loop.h linux/types.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/sysmacros.h sys/time.h sys/types.h sys/un.h sys/wait.h sys/xattr.h
57aa50d4
TT
10461do :
10462 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10463ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
d6a4bcb5 10464if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
57aa50d4
TT
10465 cat >>confdefs.h <<_ACEOF
10466#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
b0cacab0 10467_ACEOF
b0cacab0 10468
b0cacab0 10469fi
e1052144 10470
b0cacab0 10471done
93636bde 10472
ec3a69bb
MA
10473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a dd(1) program that supports iflag=fullblock" >&5
10474$as_echo_n "checking for a dd(1) program that supports iflag=fullblock... " >&6; }
10475DD=
10476for i in dd gdd ; do
10477 if "$i" if=/dev/null of=/dev/null count=1 bs=10k 2>/dev/null iflag=fullblock oflag=append ; then
10478 DD=$i
10479 break
10480 fi
10481done
10482if test -n "$DD" ; then
10483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
10484$as_echo "$DD" >&6; }
10485else
10486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found, using dd" >&5
10487$as_echo "not found, using dd" >&6; }
10488 DD=dd
10489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&5
10490$as_echo "$as_me: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&2;}
10491fi
10492
10493
57aa50d4
TT
10494for ac_header in net/if.h
10495do :
10496 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
10497#if HAVE_SYS_TYPES_H
10498#include <sys/types.h>
10499#endif
10500#if HAVE_SYS_SOCKET
10501#include <sys/socket.h>
10502#endif
29a5deed 10503
57aa50d4 10504"
d6a4bcb5 10505if test "x$ac_cv_header_net_if_h" = xyes; then :
57aa50d4
TT
10506 cat >>confdefs.h <<_ACEOF
10507#define HAVE_NET_IF_H 1
b0cacab0 10508_ACEOF
b0cacab0 10509
b0cacab0 10510fi
e1052144 10511
b0cacab0 10512done
b0cacab0 10513
57aa50d4
TT
10514for ac_func in vprintf
10515do :
10516 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
d6a4bcb5 10517if test "x$ac_cv_func_vprintf" = xyes; then :
57aa50d4
TT
10518 cat >>confdefs.h <<_ACEOF
10519#define HAVE_VPRINTF 1
b0cacab0 10520_ACEOF
b0cacab0 10521
57aa50d4 10522ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
d6a4bcb5 10523if test "x$ac_cv_func__doprnt" = xyes; then :
b0cacab0 10524
57aa50d4 10525$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
b0cacab0 10526
50e1e10f 10527fi
29a5deed 10528
57aa50d4
TT
10529fi
10530done
29a5deed
TT
10531
10532
57aa50d4
TT
10533ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
10534"
d6a4bcb5 10535if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
d1154eb4
TT
10536
10537$as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
50e1e10f 10538
2873927d
TT
10539fi
10540
10541ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
10542if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
10543
10544cat >>confdefs.h <<_ACEOF
10545#define HAVE_STRUCT_STAT_ST_ATIM 1
10546_ACEOF
10547
10548
b0cacab0 10549fi
93636bde 10550
57aa50d4
TT
10551ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
10552"
d6a4bcb5 10553if test "x$ac_cv_type_ssize_t" = xyes; then :
d1154eb4
TT
10554
10555$as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
b0cacab0 10556
57aa50d4 10557fi
b0cacab0 10558
57aa50d4
TT
10559ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
10560"
d6a4bcb5 10561if test "x$ac_cv_have_decl_llseek" = xyes; then :
d1154eb4
TT
10562
10563$as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
b0cacab0 10564
b0cacab0 10565fi
e1052144 10566
57aa50d4
TT
10567ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
10568 #define _LARGEFILE64_SOURCE
10569 #include <unistd.h>
10570"
d6a4bcb5 10571if test "x$ac_cv_have_decl_lseek64" = xyes; then :
d1154eb4
TT
10572
10573$as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
b0cacab0 10574
b0cacab0 10575fi
b0cacab0 10576
57aa50d4
TT
10577# The cast to long int works around a bug in the HP C Compiler
10578# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10579# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10580# This bug is HP SR number 8606223364.
10581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
10582$as_echo_n "checking size of short... " >&6; }
d6a4bcb5 10583if ${ac_cv_sizeof_short+:} false; then :
57aa50d4 10584 $as_echo_n "(cached) " >&6
07a0db15 10585else
57aa50d4 10586 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
b0cacab0 10587
b0cacab0 10588else
57aa50d4
TT
10589 if test "$ac_cv_type_short" = yes; then
10590 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10591$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d6a4bcb5
TB
10592as_fn_error 77 "cannot compute sizeof (short)
10593See \`config.log' for more details" "$LINENO" 5; }
57aa50d4
TT
10594 else
10595 ac_cv_sizeof_short=0
10596 fi
07a0db15 10597fi
b0cacab0 10598
b0cacab0 10599fi
57aa50d4
TT
10600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
10601$as_echo "$ac_cv_sizeof_short" >&6; }
e1052144 10602
93636bde 10603
57aa50d4
TT
10604
10605cat >>confdefs.h <<_ACEOF
10606#define SIZEOF_SHORT $ac_cv_sizeof_short
b0cacab0 10607_ACEOF
57aa50d4
TT
10608
10609
10610# The cast to long int works around a bug in the HP C Compiler
10611# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10612# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10613# This bug is HP SR number 8606223364.
10614{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
10615$as_echo_n "checking size of int... " >&6; }
d6a4bcb5 10616if ${ac_cv_sizeof_int+:} false; then :
57aa50d4 10617 $as_echo_n "(cached) " >&6
07a0db15 10618else
57aa50d4 10619 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
93636bde 10620
57aa50d4
TT
10621else
10622 if test "$ac_cv_type_int" = yes; then
10623 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10624$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d6a4bcb5
TB
10625as_fn_error 77 "cannot compute sizeof (int)
10626See \`config.log' for more details" "$LINENO" 5; }
57aa50d4
TT
10627 else
10628 ac_cv_sizeof_int=0
10629 fi
07a0db15 10630fi
e1052144 10631
b0cacab0 10632fi
57aa50d4
TT
10633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
10634$as_echo "$ac_cv_sizeof_int" >&6; }
e1052144 10635
93636bde 10636
57aa50d4
TT
10637
10638cat >>confdefs.h <<_ACEOF
10639#define SIZEOF_INT $ac_cv_sizeof_int
b0cacab0 10640_ACEOF
b0cacab0 10641
e1052144 10642
57aa50d4
TT
10643# The cast to long int works around a bug in the HP C Compiler
10644# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10645# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10646# This bug is HP SR number 8606223364.
10647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
10648$as_echo_n "checking size of long... " >&6; }
d6a4bcb5 10649if ${ac_cv_sizeof_long+:} false; then :
57aa50d4
TT
10650 $as_echo_n "(cached) " >&6
10651else
10652 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
10653
10654else
10655 if test "$ac_cv_type_long" = yes; then
10656 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39fd3d4f 10657$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d6a4bcb5
TB
10658as_fn_error 77 "cannot compute sizeof (long)
10659See \`config.log' for more details" "$LINENO" 5; }
29a5deed 10660 else
57aa50d4
TT
10661 ac_cv_sizeof_long=0
10662 fi
10663fi
39fd3d4f 10664
57aa50d4
TT
10665fi
10666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
10667$as_echo "$ac_cv_sizeof_long" >&6; }
39fd3d4f 10668
57aa50d4
TT
10669
10670
10671cat >>confdefs.h <<_ACEOF
10672#define SIZEOF_LONG $ac_cv_sizeof_long
39fd3d4f 10673_ACEOF
57aa50d4
TT
10674
10675
10676# The cast to long int works around a bug in the HP C Compiler
10677# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10678# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10679# This bug is HP SR number 8606223364.
10680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
10681$as_echo_n "checking size of long long... " >&6; }
d6a4bcb5 10682if ${ac_cv_sizeof_long_long+:} false; then :
57aa50d4 10683 $as_echo_n "(cached) " >&6
39fd3d4f 10684else
57aa50d4 10685 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
39fd3d4f 10686
57aa50d4
TT
10687else
10688 if test "$ac_cv_type_long_long" = yes; then
10689 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39fd3d4f 10690$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d6a4bcb5
TB
10691as_fn_error 77 "cannot compute sizeof (long long)
10692See \`config.log' for more details" "$LINENO" 5; }
39fd3d4f
SJR
10693 else
10694 ac_cv_sizeof_long_long=0
10695 fi
10696fi
57aa50d4 10697
39fd3d4f 10698fi
57aa50d4 10699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
39fd3d4f
SJR
10700$as_echo "$ac_cv_sizeof_long_long" >&6; }
10701
10702
10703
10704cat >>confdefs.h <<_ACEOF
10705#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
10706_ACEOF
10707
10708
cc68e8a6
TT
10709# The cast to long int works around a bug in the HP C Compiler
10710# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10711# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10712# This bug is HP SR number 8606223364.
10713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
10714$as_echo_n "checking size of off_t... " >&6; }
10715if ${ac_cv_sizeof_off_t+:} false; then :
10716 $as_echo_n "(cached) " >&6
10717else
10718 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
10719
10720else
10721 if test "$ac_cv_type_off_t" = yes; then
10722 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10723$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10724as_fn_error 77 "cannot compute sizeof (off_t)
10725See \`config.log' for more details" "$LINENO" 5; }
10726 else
10727 ac_cv_sizeof_off_t=0
10728 fi
10729fi
10730
10731fi
10732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
10733$as_echo "$ac_cv_sizeof_off_t" >&6; }
10734
10735
10736
10737cat >>confdefs.h <<_ACEOF
10738#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
10739_ACEOF
10740
10741
2dd680f3
TT
10742# The cast to long int works around a bug in the HP C Compiler
10743# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10744# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10745# This bug is HP SR number 8606223364.
10746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
10747$as_echo_n "checking size of time_t... " >&6; }
10748if ${ac_cv_sizeof_time_t+:} false; then :
10749 $as_echo_n "(cached) " >&6
10750else
10751 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then :
10752
10753else
10754 if test "$ac_cv_type_time_t" = yes; then
10755 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10756$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10757as_fn_error 77 "cannot compute sizeof (time_t)
10758See \`config.log' for more details" "$LINENO" 5; }
10759 else
10760 ac_cv_sizeof_time_t=0
10761 fi
10762fi
10763
10764fi
10765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
10766$as_echo "$ac_cv_sizeof_time_t" >&6; }
10767
10768
10769
10770cat >>confdefs.h <<_ACEOF
10771#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
10772_ACEOF
10773
10774
39fd3d4f
SJR
10775SIZEOF_SHORT=$ac_cv_sizeof_short
10776SIZEOF_INT=$ac_cv_sizeof_int
10777SIZEOF_LONG=$ac_cv_sizeof_long
10778SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
cc68e8a6 10779SIZEOF_OFF_T=$ac_cv_sizeof_off_t
2dd680f3
TT
10780SIZEOF_TIME_T=$ac_cv_sizeof_time_t
10781
cc68e8a6 10782
39fd3d4f
SJR
10783
10784
10785
10786
57aa50d4 10787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
39fd3d4f 10788$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
d6a4bcb5 10789if ${ac_cv_c_bigendian+:} false; then :
39fd3d4f
SJR
10790 $as_echo_n "(cached) " >&6
10791else
10792 ac_cv_c_bigendian=unknown
10793 # See if we're dealing with a universal compiler.
57aa50d4 10794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39fd3d4f
SJR
10795/* end confdefs.h. */
10796#ifndef __APPLE_CC__
10797 not a universal capable compiler
10798 #endif
10799 typedef int dummy;
10800
10801_ACEOF
57aa50d4 10802if ac_fn_c_try_compile "$LINENO"; then :
39fd3d4f
SJR
10803
10804 # Check for potential -arch flags. It is not universal unless
57aa50d4
TT
10805 # there are at least two -arch flags with different values.
10806 ac_arch=
10807 ac_prev=
10808 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10809 if test -n "$ac_prev"; then
10810 case $ac_word in
10811 i?86 | x86_64 | ppc | ppc64)
10812 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
10813 ac_arch=$ac_word
10814 else
10815 ac_cv_c_bigendian=universal
10816 break
10817 fi
10818 ;;
10819 esac
10820 ac_prev=
10821 elif test "x$ac_word" = "x-arch"; then
10822 ac_prev=arch
10823 fi
10824 done
39fd3d4f 10825fi
39fd3d4f
SJR
10826rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10827 if test $ac_cv_c_bigendian = unknown; then
10828 # See if sys/param.h defines the BYTE_ORDER macro.
57aa50d4 10829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39fd3d4f
SJR
10830/* end confdefs.h. */
10831#include <sys/types.h>
10832 #include <sys/param.h>
10833
10834int
10835main ()
10836{
10837#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10838 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
10839 && LITTLE_ENDIAN)
10840 bogus endian macros
10841 #endif
10842
10843 ;
10844 return 0;
10845}
10846_ACEOF
57aa50d4 10847if ac_fn_c_try_compile "$LINENO"; then :
39fd3d4f 10848 # It does; now see whether it defined to BIG_ENDIAN or not.
57aa50d4 10849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39fd3d4f
SJR
10850/* end confdefs.h. */
10851#include <sys/types.h>
10852 #include <sys/param.h>
10853
b0cacab0
TT
10854int
10855main ()
07a0db15 10856{
39fd3d4f
SJR
10857#if BYTE_ORDER != BIG_ENDIAN
10858 not big endian
10859 #endif
b0cacab0
TT
10860
10861 ;
10862 return 0;
07a0db15 10863}
b0cacab0 10864_ACEOF
57aa50d4 10865if ac_fn_c_try_compile "$LINENO"; then :
39fd3d4f 10866 ac_cv_c_bigendian=yes
b0cacab0 10867else
57aa50d4 10868 ac_cv_c_bigendian=no
fc6d9d51 10869fi
39fd3d4f 10870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39fd3d4f 10871fi
39fd3d4f
SJR
10872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10873 fi
10874 if test $ac_cv_c_bigendian = unknown; then
10875 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
57aa50d4 10876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 10877/* end confdefs.h. */
39fd3d4f 10878#include <limits.h>
877eb6d9 10879
b0cacab0
TT
10880int
10881main ()
10882{
39fd3d4f
SJR
10883#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
10884 bogus endian macros
10885 #endif
b0cacab0
TT
10886
10887 ;
10888 return 0;
10889}
b0cacab0 10890_ACEOF
57aa50d4
TT
10891if ac_fn_c_try_compile "$LINENO"; then :
10892 # It does; now see whether it defined to _BIG_ENDIAN or not.
10893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 10894/* end confdefs.h. */
39fd3d4f 10895#include <limits.h>
877eb6d9 10896
b0cacab0
TT
10897int
10898main ()
10899{
39fd3d4f
SJR
10900#ifndef _BIG_ENDIAN
10901 not big endian
10902 #endif
b0cacab0
TT
10903
10904 ;
10905 return 0;
10906}
10907_ACEOF
57aa50d4 10908if ac_fn_c_try_compile "$LINENO"; then :
877eb6d9
TT
10909 ac_cv_c_bigendian=yes
10910else
57aa50d4 10911 ac_cv_c_bigendian=no
877eb6d9 10912fi
e1052144 10913rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39fd3d4f 10914fi
39fd3d4f
SJR
10915rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10916 fi
10917 if test $ac_cv_c_bigendian = unknown; then
10918 # Compile a test program.
57aa50d4 10919 if test "$cross_compiling" = yes; then :
39fd3d4f 10920 # Try to guess by grepping values from an object file.
57aa50d4 10921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 10922/* end confdefs.h. */
39fd3d4f
SJR
10923short int ascii_mm[] =
10924 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
10925 short int ascii_ii[] =
10926 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
10927 int use_ascii (int i) {
10928 return ascii_mm[i] + ascii_ii[i];
10929 }
10930 short int ebcdic_ii[] =
10931 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
10932 short int ebcdic_mm[] =
10933 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
10934 int use_ebcdic (int i) {
10935 return ebcdic_mm[i] + ebcdic_ii[i];
10936 }
10937 extern int foo;
10938
b0cacab0
TT
10939int
10940main ()
10941{
39fd3d4f 10942return use_ascii (foo) == use_ebcdic (foo);
b0cacab0
TT
10943 ;
10944 return 0;
10945}
10946_ACEOF
57aa50d4 10947if ac_fn_c_try_compile "$LINENO"; then :
39fd3d4f
SJR
10948 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
10949 ac_cv_c_bigendian=yes
10950 fi
10951 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
10952 if test "$ac_cv_c_bigendian" = unknown; then
10953 ac_cv_c_bigendian=no
10954 else
10955 # finding both strings is unlikely to happen, but who knows?
10956 ac_cv_c_bigendian=unknown
10957 fi
10958 fi
b0cacab0 10959fi
e1052144 10960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
877eb6d9 10961else
57aa50d4 10962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 10963/* end confdefs.h. */
e1052144 10964$ac_includes_default
b0cacab0
TT
10965int
10966main ()
10967{
e1052144 10968
39fd3d4f
SJR
10969 /* Are we little or big endian? From Harbison&Steele. */
10970 union
10971 {
10972 long int l;
10973 char c[sizeof (long int)];
10974 } u;
10975 u.l = 1;
10976 return u.c[sizeof (long int) - 1] == 1;
e1052144
TT
10977
10978 ;
10979 return 0;
877eb6d9 10980}
b0cacab0 10981_ACEOF
57aa50d4 10982if ac_fn_c_try_run "$LINENO"; then :
877eb6d9
TT
10983 ac_cv_c_bigendian=no
10984else
57aa50d4 10985 ac_cv_c_bigendian=yes
877eb6d9 10986fi
57aa50d4
TT
10987rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10988 conftest.$ac_objext conftest.beam conftest.$ac_ext
877eb6d9 10989fi
e1052144 10990
39fd3d4f 10991 fi
877eb6d9 10992fi
57aa50d4 10993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
39fd3d4f
SJR
10994$as_echo "$ac_cv_c_bigendian" >&6; }
10995 case $ac_cv_c_bigendian in #(
10996 yes)
57aa50d4 10997 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
39fd3d4f
SJR
10998;; #(
10999 no)
11000 ;; #(
11001 universal)
07a0db15 11002
57aa50d4 11003$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
39fd3d4f
SJR
11004
11005 ;; #(
11006 *)
d6a4bcb5 11007 as_fn_error $? "unknown endianness
57aa50d4 11008 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
39fd3d4f 11009 esac
877eb6d9 11010
91f04685
CQ
11011if test $cross_compiling = no; then
11012 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
11013else
11014 CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
11015fi
4ea7ea00
TT
11016ASM_TYPES_HEADER=./asm_types.h
11017
488c75a6
TT
11018echo "/* These defines are needed for the public ext2fs.h header file */" \
11019 > public_config.h
11020if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
11021 uniq tmp_config.$$ >> public_config.h
11022else
11023 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
11024fi
11025if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
11026 uniq tmp_config.$$ >> public_config.h
11027else
11028 echo "#undef WORDS_BIGENDIAN" >> public_config.h
11029fi
11030rm -f tmp_config.$$
11031PUBLIC_CONFIG_HEADER=./public_config.h
11032
b0cacab0 11033for ac_header in inttypes.h
57aa50d4
TT
11034do :
11035 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
d6a4bcb5 11036if test "x$ac_cv_header_inttypes_h" = xyes; then :
b0cacab0 11037 cat >>confdefs.h <<_ACEOF
57aa50d4 11038#define HAVE_INTTYPES_H 1
b0cacab0
TT
11039_ACEOF
11040
11041fi
11042
0c193f82
TT
11043done
11044
57aa50d4 11045ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
d6a4bcb5 11046if test "x$ac_cv_type_intptr_t" = xyes; then :
b0cacab0
TT
11047
11048cat >>confdefs.h <<_ACEOF
d2ee56d8 11049#define HAVE_INTPTR_T 1
b0cacab0 11050_ACEOF
0c193f82 11051
d2ee56d8 11052
0c193f82
TT
11053fi
11054
57aa50d4 11055{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
39fd3d4f 11056$as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
d6a4bcb5 11057if ${e2fsprogs_cv_struct_st_flags+:} false; then :
39fd3d4f 11058 $as_echo_n "(cached) " >&6
50e1e10f 11059else
57aa50d4 11060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 11061/* end confdefs.h. */
50e1e10f 11062#include <sys/stat.h>
b0cacab0
TT
11063int
11064main ()
11065{
50e1e10f 11066struct stat stat; stat.st_flags = 0;
b0cacab0
TT
11067 ;
11068 return 0;
11069}
11070_ACEOF
57aa50d4 11071if ac_fn_c_try_compile "$LINENO"; then :
50e1e10f
TT
11072 e2fsprogs_cv_struct_st_flags=yes
11073else
57aa50d4 11074 e2fsprogs_cv_struct_st_flags=no
50e1e10f 11075fi
e1052144 11076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50e1e10f
TT
11077fi
11078
57aa50d4 11079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
39fd3d4f 11080$as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
50e1e10f 11081if test "$e2fsprogs_cv_struct_st_flags" = yes; then
57aa50d4 11082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
39fd3d4f 11083$as_echo_n "checking whether st_flags field is useful... " >&6; }
d6a4bcb5 11084 if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then :
39fd3d4f 11085 $as_echo_n "(cached) " >&6
b0cacab0 11086else
57aa50d4 11087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 11088/* end confdefs.h. */
c03bc4e8 11089#include <sys/stat.h>
b0cacab0
TT
11090int
11091main ()
11092{
c03bc4e8 11093struct stat stat; stat.st_flags |= UF_IMMUTABLE;
b0cacab0
TT
11094 ;
11095 return 0;
11096}
57aa50d4
TT
11097_ACEOF
11098if ac_fn_c_try_compile "$LINENO"; then :
11099 e2fsprogs_cv_struct_st_flags_immut=yes
6c65d251 11100else
57aa50d4 11101 e2fsprogs_cv_struct_st_flags_immut=no
84ea6e70 11102fi
e1052144 11103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
84ea6e70 11104fi
e1052144 11105
57aa50d4
TT
11106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
11107$as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
11108 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
d1154eb4
TT
11109
11110$as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
57aa50d4
TT
11111
11112 fi
6c65d251 11113fi
57aa50d4
TT
11114ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
11115 #include <sys/socket.h>
11116"
d6a4bcb5 11117if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
b0cacab0
TT
11118
11119cat >>confdefs.h <<_ACEOF
84ea6e70 11120#define HAVE_SA_LEN 1
b0cacab0 11121_ACEOF
84ea6e70 11122
50e1e10f 11123fi
b0cacab0 11124
9ed8e5fe 11125if test -n "$BLKID_CMT"; then
7154d974
TT
11126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_probe_get_topology in -lblkid" >&5
11127$as_echo_n "checking for blkid_probe_get_topology in -lblkid... " >&6; }
11128if ${ac_cv_lib_blkid_blkid_probe_get_topology+:} false; then :
9ed8e5fe
ES
11129 $as_echo_n "(cached) " >&6
11130else
7154d974
TT
11131 ac_check_lib_save_LIBS=$LIBS
11132LIBS="-lblkid $LIBS"
57aa50d4 11133cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9ed8e5fe
ES
11134/* end confdefs.h. */
11135
11136/* Override any GCC internal prototype to avoid an error.
11137 Use char because int might match the return type of a GCC
11138 builtin and then its argument prototype would still apply. */
11139#ifdef __cplusplus
11140extern "C"
11141#endif
7154d974 11142char blkid_probe_get_topology ();
9ed8e5fe
ES
11143int
11144main ()
11145{
7154d974 11146return blkid_probe_get_topology ();
9ed8e5fe
ES
11147 ;
11148 return 0;
11149}
11150_ACEOF
7154d974
TT
11151if ac_fn_c_try_link "$LINENO"; then :
11152 ac_cv_lib_blkid_blkid_probe_get_topology=yes
11153else
11154 ac_cv_lib_blkid_blkid_probe_get_topology=no
9ed8e5fe 11155fi
57aa50d4 11156rm -f core conftest.err conftest.$ac_objext \
7154d974
TT
11157 conftest$ac_exeext conftest.$ac_ext
11158LIBS=$ac_check_lib_save_LIBS
9ed8e5fe 11159fi
7154d974
TT
11160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_probe_get_topology" >&5
11161$as_echo "$ac_cv_lib_blkid_blkid_probe_get_topology" >&6; }
11162if test "x$ac_cv_lib_blkid_blkid_probe_get_topology" = xyes; then :
188bf39a
TT
11163
11164$as_echo "#define HAVE_BLKID_PROBE_GET_TOPOLOGY 1" >>confdefs.h
7154d974 11165
e598c29b
TT
11166fi
11167
11168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_topology_get_dax in -lblkid" >&5
11169$as_echo_n "checking for blkid_topology_get_dax in -lblkid... " >&6; }
11170if ${ac_cv_lib_blkid_blkid_topology_get_dax+:} false; then :
11171 $as_echo_n "(cached) " >&6
11172else
11173 ac_check_lib_save_LIBS=$LIBS
11174LIBS="-lblkid $LIBS"
11175cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11176/* end confdefs.h. */
11177
11178/* Override any GCC internal prototype to avoid an error.
11179 Use char because int might match the return type of a GCC
11180 builtin and then its argument prototype would still apply. */
11181#ifdef __cplusplus
11182extern "C"
11183#endif
11184char blkid_topology_get_dax ();
11185int
11186main ()
11187{
11188return blkid_topology_get_dax ();
11189 ;
11190 return 0;
11191}
11192_ACEOF
11193if ac_fn_c_try_link "$LINENO"; then :
11194 ac_cv_lib_blkid_blkid_topology_get_dax=yes
11195else
11196 ac_cv_lib_blkid_blkid_topology_get_dax=no
11197fi
11198rm -f core conftest.err conftest.$ac_objext \
11199 conftest$ac_exeext conftest.$ac_ext
11200LIBS=$ac_check_lib_save_LIBS
11201fi
11202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_topology_get_dax" >&5
11203$as_echo "$ac_cv_lib_blkid_blkid_topology_get_dax" >&6; }
11204if test "x$ac_cv_lib_blkid_blkid_topology_get_dax" = xyes; then :
11205
11206$as_echo "#define HAVE_BLKID_TOPOLOGY_GET_DAX 1" >>confdefs.h
11207
7154d974
TT
11208fi
11209
11210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_probe_enable_partitions in -lblkid" >&5
11211$as_echo_n "checking for blkid_probe_enable_partitions in -lblkid... " >&6; }
11212if ${ac_cv_lib_blkid_blkid_probe_enable_partitions+:} false; then :
11213 $as_echo_n "(cached) " >&6
11214else
11215 ac_check_lib_save_LIBS=$LIBS
11216LIBS="-lblkid $LIBS"
11217cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11218/* end confdefs.h. */
57aa50d4 11219
7154d974
TT
11220/* Override any GCC internal prototype to avoid an error.
11221 Use char because int might match the return type of a GCC
11222 builtin and then its argument prototype would still apply. */
11223#ifdef __cplusplus
11224extern "C"
11225#endif
11226char blkid_probe_enable_partitions ();
11227int
11228main ()
11229{
11230return blkid_probe_enable_partitions ();
11231 ;
11232 return 0;
11233}
11234_ACEOF
11235if ac_fn_c_try_link "$LINENO"; then :
11236 ac_cv_lib_blkid_blkid_probe_enable_partitions=yes
9ed8e5fe 11237else
7154d974 11238 ac_cv_lib_blkid_blkid_probe_enable_partitions=no
9ed8e5fe 11239fi
7154d974
TT
11240rm -f core conftest.err conftest.$ac_objext \
11241 conftest$ac_exeext conftest.$ac_ext
11242LIBS=$ac_check_lib_save_LIBS
9ed8e5fe 11243fi
7154d974
TT
11244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_probe_enable_partitions" >&5
11245$as_echo "$ac_cv_lib_blkid_blkid_probe_enable_partitions" >&6; }
11246if test "x$ac_cv_lib_blkid_blkid_probe_enable_partitions" = xyes; then :
188bf39a
TT
11247
11248$as_echo "#define HAVE_BLKID_PROBE_ENABLE_PARTITIONS 1" >>confdefs.h
9ed8e5fe
ES
11249
11250fi
11251
11252fi
32179ce2
TT
11253if test -n "$DLOPEN_LIB" ; then
11254 ac_cv_func_dlopen=yes
11255fi
7154d974 11256for ac_func in __secure_getenv add_key backtrace chflags dlopen fadvise64 fallocate fallocate64 fchown fcntl fdatasync fstat64 fsync ftruncate64 futimes getcwd getdtablesize gethostname 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
11257do :
11258 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11259ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
d6a4bcb5 11260if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
b0cacab0 11261 cat >>confdefs.h <<_ACEOF
39fd3d4f 11262#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
b0cacab0 11263_ACEOF
21c84b71 11264
50e1e10f
TT
11265fi
11266done
11267
fc6d9d51 11268SOCKET_LIB=''
57aa50d4 11269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
39fd3d4f 11270$as_echo_n "checking for socket in -lsocket... " >&6; }
d6a4bcb5 11271if ${ac_cv_lib_socket_socket+:} false; then :
39fd3d4f 11272 $as_echo_n "(cached) " >&6
50e1e10f 11273else
b0cacab0 11274 ac_check_lib_save_LIBS=$LIBS
fc6d9d51 11275LIBS="-lsocket $LIBS"
57aa50d4 11276cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 11277/* end confdefs.h. */
93636bde 11278
e1052144
TT
11279/* Override any GCC internal prototype to avoid an error.
11280 Use char because int might match the return type of a GCC
11281 builtin and then its argument prototype would still apply. */
b0cacab0
TT
11282#ifdef __cplusplus
11283extern "C"
11284#endif
b0cacab0
TT
11285char socket ();
11286int
11287main ()
11288{
e1052144 11289return socket ();
b0cacab0
TT
11290 ;
11291 return 0;
11292}
11293_ACEOF
57aa50d4 11294if ac_fn_c_try_link "$LINENO"; then :
b0cacab0
TT
11295 ac_cv_lib_socket_socket=yes
11296else
57aa50d4 11297 ac_cv_lib_socket_socket=no
b0cacab0 11298fi
57aa50d4
TT
11299rm -f core conftest.err conftest.$ac_objext \
11300 conftest$ac_exeext conftest.$ac_ext
b0cacab0
TT
11301LIBS=$ac_check_lib_save_LIBS
11302fi
57aa50d4 11303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
39fd3d4f 11304$as_echo "$ac_cv_lib_socket_socket" >&6; }
d6a4bcb5 11305if test "x$ac_cv_lib_socket_socket" = xyes; then :
fc6d9d51 11306 SOCKET_LIB=-lsocket
50e1e10f 11307fi
fc6d9d51 11308
93636bde 11309
b291c11f
DW
11310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_file in -lmagic" >&5
11311$as_echo_n "checking for magic_file in -lmagic... " >&6; }
11312if ${ac_cv_lib_magic_magic_file+:} false; then :
11313 $as_echo_n "(cached) " >&6
11314else
11315 ac_check_lib_save_LIBS=$LIBS
11316LIBS="-lmagic $LIBS"
11317cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11318/* end confdefs.h. */
11319
11320/* Override any GCC internal prototype to avoid an error.
11321 Use char because int might match the return type of a GCC
11322 builtin and then its argument prototype would still apply. */
11323#ifdef __cplusplus
11324extern "C"
11325#endif
11326char magic_file ();
11327int
11328main ()
11329{
11330return magic_file ();
11331 ;
11332 return 0;
11333}
11334_ACEOF
11335if ac_fn_c_try_link "$LINENO"; then :
11336 ac_cv_lib_magic_magic_file=yes
11337else
11338 ac_cv_lib_magic_magic_file=no
11339fi
11340rm -f core conftest.err conftest.$ac_objext \
11341 conftest$ac_exeext conftest.$ac_ext
11342LIBS=$ac_check_lib_save_LIBS
11343fi
11344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_file" >&5
11345$as_echo "$ac_cv_lib_magic_magic_file" >&6; }
11346if test "x$ac_cv_lib_magic_magic_file" = xyes; then :
11347 MAGIC_LIB=-lmagic
11348for ac_header in magic.h
11349do :
11350 ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
11351if test "x$ac_cv_header_magic_h" = xyes; then :
11352 cat >>confdefs.h <<_ACEOF
11353#define HAVE_MAGIC_H 1
11354_ACEOF
11355
11356fi
11357
11358done
11359
11360fi
11361
32179ce2 11362if test "$ac_cv_func_dlopen" = yes ; then
d2e3c0dc
TT
11363 MAGIC_LIB=$DLOPEN_LIB
11364fi
b291c11f 11365
c94da047
TT
11366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
11367$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
11368if ${ac_cv_lib_rt_clock_gettime+:} false; then :
11369 $as_echo_n "(cached) " >&6
11370else
11371 ac_check_lib_save_LIBS=$LIBS
11372LIBS="-lrt $LIBS"
11373cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11374/* end confdefs.h. */
11375
11376/* Override any GCC internal prototype to avoid an error.
11377 Use char because int might match the return type of a GCC
11378 builtin and then its argument prototype would still apply. */
11379#ifdef __cplusplus
11380extern "C"
11381#endif
11382char clock_gettime ();
11383int
11384main ()
11385{
11386return clock_gettime ();
11387 ;
11388 return 0;
11389}
11390_ACEOF
11391if ac_fn_c_try_link "$LINENO"; then :
11392 ac_cv_lib_rt_clock_gettime=yes
11393else
11394 ac_cv_lib_rt_clock_gettime=no
11395fi
11396rm -f core conftest.err conftest.$ac_objext \
11397 conftest$ac_exeext conftest.$ac_ext
11398LIBS=$ac_check_lib_save_LIBS
11399fi
11400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
11401$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
11402if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
11403 CLOCK_GETTIME_LIB=-lrt
11404fi
11405
11406
81cbf1ef
DW
11407FUSE_CMT=
11408FUSE_LIB=
11409# Check whether --enable-fuse2fs was given.
11410if test "${enable_fuse2fs+set}" = set; then :
11411 enableval=$enable_fuse2fs; if test "$enableval" = "no"
11412then
11413 FUSE_CMT="#"
11414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling fuse2fs" >&5
11415$as_echo "Disabling fuse2fs" >&6; }
11416else
11417 for ac_header in pthread.h fuse.h
11418do :
11419 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11420ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
11421#define FUSE_USE_VERSION 29
11422"
11423if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11424 cat >>confdefs.h <<_ACEOF
11425#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11426_ACEOF
11427
11428else
11429 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11430$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11431as_fn_error $? "Cannot find fuse2fs headers.
11432See \`config.log' for more details" "$LINENO" 5; }
11433fi
11434
11435done
11436
11437
11438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11439/* end confdefs.h. */
11440#define FUSE_USE_VERSION 29
11441#ifdef __linux__
11442#include <linux/fs.h>
11443#include <linux/falloc.h>
11444#include <linux/xattr.h>
11445#endif
11446
11447int
11448main ()
11449{
11450
11451 ;
11452 return 0;
11453}
11454_ACEOF
11455if ac_fn_c_try_cpp "$LINENO"; then :
11456
11457else
11458 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11459$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11460as_fn_error $? "Cannot find fuse2fs Linux headers.
11461See \`config.log' for more details" "$LINENO" 5; }
11462fi
11463rm -f conftest.err conftest.i conftest.$ac_ext
11464
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
11466$as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
11467if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
11468 $as_echo_n "(cached) " >&6
11469else
11470 ac_check_lib_save_LIBS=$LIBS
11471LIBS="-losxfuse $LIBS"
11472cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11473/* end confdefs.h. */
11474
11475/* Override any GCC internal prototype to avoid an error.
11476 Use char because int might match the return type of a GCC
11477 builtin and then its argument prototype would still apply. */
11478#ifdef __cplusplus
11479extern "C"
11480#endif
11481char fuse_main ();
11482int
11483main ()
11484{
11485return fuse_main ();
11486 ;
11487 return 0;
11488}
11489_ACEOF
11490if ac_fn_c_try_link "$LINENO"; then :
11491 ac_cv_lib_osxfuse_fuse_main=yes
11492else
11493 ac_cv_lib_osxfuse_fuse_main=no
11494fi
11495rm -f core conftest.err conftest.$ac_objext \
11496 conftest$ac_exeext conftest.$ac_ext
11497LIBS=$ac_check_lib_save_LIBS
11498fi
11499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
11500$as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
11501if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
11502 FUSE_LIB=-losxfuse
11503else
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
11505$as_echo_n "checking for fuse_main in -lfuse... " >&6; }
11506if ${ac_cv_lib_fuse_fuse_main+:} false; then :
11507 $as_echo_n "(cached) " >&6
11508else
11509 ac_check_lib_save_LIBS=$LIBS
11510LIBS="-lfuse $LIBS"
11511cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11512/* end confdefs.h. */
11513
11514/* Override any GCC internal prototype to avoid an error.
11515 Use char because int might match the return type of a GCC
11516 builtin and then its argument prototype would still apply. */
11517#ifdef __cplusplus
11518extern "C"
11519#endif
11520char fuse_main ();
11521int
11522main ()
11523{
11524return fuse_main ();
11525 ;
11526 return 0;
11527}
11528_ACEOF
11529if ac_fn_c_try_link "$LINENO"; then :
11530 ac_cv_lib_fuse_fuse_main=yes
11531else
11532 ac_cv_lib_fuse_fuse_main=no
11533fi
11534rm -f core conftest.err conftest.$ac_objext \
11535 conftest$ac_exeext conftest.$ac_ext
11536LIBS=$ac_check_lib_save_LIBS
11537fi
11538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
11539$as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
11540if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
11541 FUSE_LIB=-lfuse
11542else
11543 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11544$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11545as_fn_error $? "Cannot find fuse library.
11546See \`config.log' for more details" "$LINENO" 5; }
11547fi
11548
11549fi
11550
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs" >&5
11552$as_echo "Enabling fuse2fs" >&6; }
11553fi
11554
11555else
11556 for ac_header in pthread.h fuse.h
11557do :
11558 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11559ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
11560#define FUSE_USE_VERSION 29
11561#ifdef __linux__
11562# include <linux/fs.h>
11563# include <linux/falloc.h>
11564# include <linux/xattr.h>
11565#endif
11566"
11567if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11568 cat >>confdefs.h <<_ACEOF
11569#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11570_ACEOF
11571
11572else
11573 FUSE_CMT="#"
11574fi
11575
11576done
11577
11578if test -z "$FUSE_CMT"
11579then
11580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
11581$as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
11582if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
11583 $as_echo_n "(cached) " >&6
11584else
11585 ac_check_lib_save_LIBS=$LIBS
11586LIBS="-losxfuse $LIBS"
11587cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11588/* end confdefs.h. */
11589
11590/* Override any GCC internal prototype to avoid an error.
11591 Use char because int might match the return type of a GCC
11592 builtin and then its argument prototype would still apply. */
11593#ifdef __cplusplus
11594extern "C"
11595#endif
11596char fuse_main ();
11597int
11598main ()
11599{
11600return fuse_main ();
11601 ;
11602 return 0;
11603}
11604_ACEOF
11605if ac_fn_c_try_link "$LINENO"; then :
11606 ac_cv_lib_osxfuse_fuse_main=yes
11607else
11608 ac_cv_lib_osxfuse_fuse_main=no
11609fi
11610rm -f core conftest.err conftest.$ac_objext \
11611 conftest$ac_exeext conftest.$ac_ext
11612LIBS=$ac_check_lib_save_LIBS
11613fi
11614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
11615$as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
11616if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
11617 FUSE_LIB=-losxfuse
11618else
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
11620$as_echo_n "checking for fuse_main in -lfuse... " >&6; }
11621if ${ac_cv_lib_fuse_fuse_main+:} false; then :
11622 $as_echo_n "(cached) " >&6
11623else
11624 ac_check_lib_save_LIBS=$LIBS
11625LIBS="-lfuse $LIBS"
11626cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11627/* end confdefs.h. */
11628
11629/* Override any GCC internal prototype to avoid an error.
11630 Use char because int might match the return type of a GCC
11631 builtin and then its argument prototype would still apply. */
11632#ifdef __cplusplus
11633extern "C"
11634#endif
11635char fuse_main ();
11636int
11637main ()
11638{
11639return fuse_main ();
11640 ;
11641 return 0;
11642}
11643_ACEOF
11644if ac_fn_c_try_link "$LINENO"; then :
11645 ac_cv_lib_fuse_fuse_main=yes
11646else
11647 ac_cv_lib_fuse_fuse_main=no
11648fi
11649rm -f core conftest.err conftest.$ac_objext \
11650 conftest$ac_exeext conftest.$ac_ext
11651LIBS=$ac_check_lib_save_LIBS
11652fi
11653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
11654$as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
11655if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
11656 FUSE_LIB=-lfuse
11657else
11658 FUSE_CMT="#"
11659fi
11660
11661fi
11662
11663fi
11664if test -z "$FUSE_CMT"
11665then
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs by default." >&5
11667$as_echo "Enabling fuse2fs by default." >&6; }
11668fi
11669
11670fi
11671
11672
11673
57aa50d4 11674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
39fd3d4f 11675$as_echo_n "checking for optreset... " >&6; }
d6a4bcb5 11676if ${ac_cv_have_optreset+:} false; then :
39fd3d4f 11677 $as_echo_n "(cached) " >&6
d7f45af8 11678else
57aa50d4 11679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7f45af8 11680/* end confdefs.h. */
57aa50d4
TT
11681#include <unistd.h>
11682
11683_ACEOF
11684if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11685 $EGREP "optreset" >/dev/null 2>&1; then :
11686 ac_cv_have_optreset=yes
d7f45af8 11687else
57aa50d4
TT
11688 ac_cv_have_optreset=no
11689fi
11690rm -f conftest*
d7f45af8 11691
d7f45af8 11692fi
57aa50d4
TT
11693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
11694$as_echo "$ac_cv_have_optreset" >&6; }
11695if test $ac_cv_have_optreset = yes; then
d1154eb4
TT
11696
11697$as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
d7f45af8 11698
d7f45af8 11699fi
d1154eb4 11700
57aa50d4 11701SEM_INIT_LIB=''
cfb8e0bd
TT
11702echo GL_THREADS_API: ${gl_threads_api}
11703if test "${gl_threads_api}" != none
11704then
11705 ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
d6a4bcb5 11706if test "x$ac_cv_func_sem_init" = xyes; then :
57aa50d4 11707
d7f45af8 11708else
57aa50d4 11709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
39fd3d4f 11710$as_echo_n "checking for sem_init in -lpthread... " >&6; }
d6a4bcb5 11711if ${ac_cv_lib_pthread_sem_init+:} false; then :
39fd3d4f 11712 $as_echo_n "(cached) " >&6
d7f45af8
TT
11713else
11714 ac_check_lib_save_LIBS=$LIBS
11715LIBS="-lpthread $LIBS"
57aa50d4 11716cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7f45af8
TT
11717/* end confdefs.h. */
11718
11719/* Override any GCC internal prototype to avoid an error.
11720 Use char because int might match the return type of a GCC
11721 builtin and then its argument prototype would still apply. */
11722#ifdef __cplusplus
11723extern "C"
11724#endif
11725char sem_init ();
11726int
11727main ()
11728{
11729return sem_init ();
11730 ;
11731 return 0;
11732}
11733_ACEOF
57aa50d4 11734if ac_fn_c_try_link "$LINENO"; then :
d7f45af8
TT
11735 ac_cv_lib_pthread_sem_init=yes
11736else
57aa50d4 11737 ac_cv_lib_pthread_sem_init=no
d7f45af8 11738fi
57aa50d4
TT
11739rm -f core conftest.err conftest.$ac_objext \
11740 conftest$ac_exeext conftest.$ac_ext
d7f45af8
TT
11741LIBS=$ac_check_lib_save_LIBS
11742fi
57aa50d4 11743{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
39fd3d4f 11744$as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
d6a4bcb5 11745if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
57aa50d4 11746 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
d7f45af8
TT
11747
11748 SEM_INIT_LIB=-lpthread
11749else
57aa50d4 11750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
39fd3d4f 11751$as_echo_n "checking for sem_init in -lrt... " >&6; }
d6a4bcb5 11752if ${ac_cv_lib_rt_sem_init+:} false; then :
39fd3d4f 11753 $as_echo_n "(cached) " >&6
d7f45af8
TT
11754else
11755 ac_check_lib_save_LIBS=$LIBS
11756LIBS="-lrt $LIBS"
57aa50d4 11757cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7f45af8
TT
11758/* end confdefs.h. */
11759
11760/* Override any GCC internal prototype to avoid an error.
11761 Use char because int might match the return type of a GCC
11762 builtin and then its argument prototype would still apply. */
11763#ifdef __cplusplus
11764extern "C"
11765#endif
11766char sem_init ();
11767int
11768main ()
11769{
11770return sem_init ();
11771 ;
11772 return 0;
11773}
11774_ACEOF
57aa50d4 11775if ac_fn_c_try_link "$LINENO"; then :
d7f45af8
TT
11776 ac_cv_lib_rt_sem_init=yes
11777else
57aa50d4 11778 ac_cv_lib_rt_sem_init=no
d7f45af8 11779fi
57aa50d4
TT
11780rm -f core conftest.err conftest.$ac_objext \
11781 conftest$ac_exeext conftest.$ac_ext
d7f45af8
TT
11782LIBS=$ac_check_lib_save_LIBS
11783fi
57aa50d4 11784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
39fd3d4f 11785$as_echo "$ac_cv_lib_rt_sem_init" >&6; }
d6a4bcb5 11786if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
57aa50d4 11787 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
d7f45af8
TT
11788
11789 SEM_INIT_LIB=-lrt
11790else
57aa50d4 11791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
39fd3d4f 11792$as_echo_n "checking for sem_init in -lposix4... " >&6; }
d6a4bcb5 11793if ${ac_cv_lib_posix4_sem_init+:} false; then :
39fd3d4f 11794 $as_echo_n "(cached) " >&6
d7f45af8
TT
11795else
11796 ac_check_lib_save_LIBS=$LIBS
11797LIBS="-lposix4 $LIBS"
57aa50d4 11798cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7f45af8
TT
11799/* end confdefs.h. */
11800
11801/* Override any GCC internal prototype to avoid an error.
11802 Use char because int might match the return type of a GCC
11803 builtin and then its argument prototype would still apply. */
11804#ifdef __cplusplus
11805extern "C"
11806#endif
11807char sem_init ();
11808int
11809main ()
11810{
11811return sem_init ();
11812 ;
11813 return 0;
11814}
11815_ACEOF
57aa50d4 11816if ac_fn_c_try_link "$LINENO"; then :
d7f45af8
TT
11817 ac_cv_lib_posix4_sem_init=yes
11818else
57aa50d4 11819 ac_cv_lib_posix4_sem_init=no
d7f45af8 11820fi
57aa50d4
TT
11821rm -f core conftest.err conftest.$ac_objext \
11822 conftest$ac_exeext conftest.$ac_ext
d7f45af8
TT
11823LIBS=$ac_check_lib_save_LIBS
11824fi
57aa50d4 11825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
39fd3d4f 11826$as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
d6a4bcb5 11827if test "x$ac_cv_lib_posix4_sem_init" = xyes; then :
57aa50d4 11828 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
d7f45af8
TT
11829
11830 SEM_INIT_LIB=-lposix4
11831fi
11832
11833fi
11834
11835fi
11836
cfb8e0bd 11837fi
d7f45af8
TT
11838fi
11839
57aa50d4 11840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
39fd3d4f 11841$as_echo_n "checking for unified diff option... " >&6; }
27f991b0 11842if diff -u $0 $0 > /dev/null 2>&1 ; then
e54635de
TT
11843 UNI_DIFF_OPTS=-u
11844else
11845 UNI_DIFF_OPTS=-c
11846fi
57aa50d4 11847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
39fd3d4f 11848$as_echo "$UNI_DIFF_OPTS" >&6; }
e54635de 11849
8f3f29d3
TT
11850case "$host_os" in
11851linux*)
d1154eb4
TT
11852
11853$as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
50e1e10f 11854
8f3f29d3
TT
11855 ;;
11856esac
ea1a3fa2 11857
ea1a3fa2
NC
11858 $as_echo_n "checking for mount 'nosuid' option... "
11859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11860/* end confdefs.h. */
11861#include <sys/mount.h>
11862int
11863main ()
11864{
11865void *temp = (void *)(MS_NOSUID); (void) temp;
11866 ;
11867 return 0;
11868}
11869_ACEOF
11870if ac_fn_c_try_compile "$LINENO"; then :
11871
11872$as_echo "#define HAVE_MOUNT_NOSUID 1" >>confdefs.h
11873
11874 ac_cv_mount_nosuid=yes
11875 $as_echo "yes"
11876else
11877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11878/* end confdefs.h. */
11879#include <sys/mount.h>
11880int
11881main ()
11882{
11883void *temp = (void *)(MNT_NOSUID); (void) temp;
11884 ;
11885 return 0;
11886}
11887_ACEOF
11888if ac_fn_c_try_compile "$LINENO"; then :
11889
11890$as_echo "#define HAVE_MOUNT_NOSUID 1" >>confdefs.h
11891
11892 ac_cv_mount_nosuid=yes
11893 $as_echo "yes"
11894else
11895 ac_cv_mount_nosuid=no
11896 $as_echo "no"
11897
11898fi
11899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11900
11901fi
11902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11903
11904
ea1a3fa2
NC
11905 $as_echo_n "checking for mount 'nodev' option... "
11906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11907/* end confdefs.h. */
11908#include <sys/mount.h>
11909int
11910main ()
11911{
11912void *temp = (void *)(MS_NODEV); (void) temp;
11913 ;
11914 return 0;
11915}
11916_ACEOF
11917if ac_fn_c_try_compile "$LINENO"; then :
11918
11919$as_echo "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
11920
11921 ac_cv_mount_nodev=yes
11922 $as_echo "yes"
11923else
11924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11925/* end confdefs.h. */
11926#include <sys/mount.h>
11927int
11928main ()
11929{
11930void *temp = (void *)(MNT_NODEV); (void) temp;
11931 ;
11932 return 0;
11933}
11934_ACEOF
11935if ac_fn_c_try_compile "$LINENO"; then :
11936
11937$as_echo "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
11938
11939 ac_cv_mount_nodev=yes
11940 $as_echo "yes"
11941else
11942 ac_cv_mount_nodev=no
11943 $as_echo "no"
11944
11945fi
11946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11947
11948fi
11949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11950
4aece328
DW
11951# Check whether --enable-lto was given.
11952if test "${enable_lto+set}" = set; then :
11953 enableval=$enable_lto;
11954else
139a3092 11955 enable_lto=no
4aece328
DW
11956fi
11957
11958if test "$enable_lto" = "yes" || test "$enable_lto" = "probe"; then
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports LTO" >&5
11960$as_echo_n "checking if C compiler supports LTO... " >&6; }
11961 OLD_CFLAGS="$CFLAGS"
11962 OLD_LDFLAGS="$LDFLAGS"
49715704 11963 LTO_FLAGS="-g -flto -ffat-lto-objects"
4aece328
DW
11964 CFLAGS="$CFLAGS $LTO_FLAGS"
11965 LDFLAGS="$LDFLAGS $LTO_FLAGS"
11966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11967/* end confdefs.h. */
11968
11969int
11970main ()
11971{
11972
11973 ;
11974 return 0;
11975}
11976_ACEOF
11977if ac_fn_c_try_link "$LINENO"; then :
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11979$as_echo "yes" >&6; }
11980 lto_cflags=$LTO_FLAGS
11981 lto_ldflags=$LTO_FLAGS
11982 # Extract the first word of "gcc-ar", so it can be a program name with args.
11983set dummy gcc-ar; ac_word=$2
11984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11985$as_echo_n "checking for $ac_word... " >&6; }
11986if ${ac_cv_path_gcc_ar+:} false; then :
11987 $as_echo_n "(cached) " >&6
11988else
11989 case $gcc_ar in
11990 [\\/]* | ?:[\\/]*)
11991 ac_cv_path_gcc_ar="$gcc_ar" # Let the user override the test with a path.
11992 ;;
11993 *)
11994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11995for as_dir in $PATH
11996do
11997 IFS=$as_save_IFS
11998 test -z "$as_dir" && as_dir=.
11999 for ac_exec_ext in '' $ac_executable_extensions; do
12000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12001 ac_cv_path_gcc_ar="$as_dir/$ac_word$ac_exec_ext"
12002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12003 break 2
12004 fi
12005done
12006 done
12007IFS=$as_save_IFS
12008
12009 ;;
12010esac
12011fi
12012gcc_ar=$ac_cv_path_gcc_ar
12013if test -n "$gcc_ar"; then
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_ar" >&5
12015$as_echo "$gcc_ar" >&6; }
12016else
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12018$as_echo "no" >&6; }
12019fi
12020
12021
12022 # Extract the first word of "gcc-ranlib", so it can be a program name with args.
12023set dummy gcc-ranlib; ac_word=$2
12024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12025$as_echo_n "checking for $ac_word... " >&6; }
12026if ${ac_cv_path_gcc_ranlib+:} false; then :
12027 $as_echo_n "(cached) " >&6
12028else
12029 case $gcc_ranlib in
12030 [\\/]* | ?:[\\/]*)
12031 ac_cv_path_gcc_ranlib="$gcc_ranlib" # Let the user override the test with a path.
12032 ;;
12033 *)
12034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12035for as_dir in $PATH
12036do
12037 IFS=$as_save_IFS
12038 test -z "$as_dir" && as_dir=.
12039 for ac_exec_ext in '' $ac_executable_extensions; do
12040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12041 ac_cv_path_gcc_ranlib="$as_dir/$ac_word$ac_exec_ext"
12042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12043 break 2
12044 fi
12045done
12046 done
12047IFS=$as_save_IFS
12048
12049 ;;
12050esac
12051fi
12052gcc_ranlib=$ac_cv_path_gcc_ranlib
12053if test -n "$gcc_ranlib"; then
12054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_ranlib" >&5
12055$as_echo "$gcc_ranlib" >&6; }
12056else
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12058$as_echo "no" >&6; }
12059fi
12060
12061
12062else
12063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12064$as_echo "no" >&6; }
12065fi
12066rm -f core conftest.err conftest.$ac_objext \
12067 conftest$ac_exeext conftest.$ac_ext
12068 if test -x "$gcc_ar" && test -x "$gcc_ranlib"; then
12069 have_lto=yes
12070 AR="${gcc_ar}"
12071 RANLIB="${gcc_ranlib}"
12072 fi
12073 CFLAGS="${OLD_CFLAGS}"
12074 LDFLAGS="${OLD_LDFLAGS}"
12075
12076
12077
12078fi
12079if test "$enable_lto" = "yes" && test "$have_lto" != "yes"; then
12080 as_fn_error $? "LTO not supported by compiler." "$LINENO" 5
12081fi
1c2a76ae
DW
12082# Check whether --enable-ubsan was given.
12083if test "${enable_ubsan+set}" = set; then :
12084 enableval=$enable_ubsan;
12085else
12086 enable_ubsan=no
12087fi
12088
12089if test "$enable_ubsan" = "yes" || test "$enable_ubsan" = "probe"; then
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports UBSAN" >&5
12091$as_echo_n "checking if C compiler supports UBSAN... " >&6; }
12092 OLD_CFLAGS="$CFLAGS"
12093 OLD_LDFLAGS="$LDFLAGS"
12094 UBSAN_FLAGS="-fsanitize=undefined"
12095 CFLAGS="$CFLAGS $UBSAN_FLAGS"
12096 LDFLAGS="$LDFLAGS $UBSAN_FLAGS"
12097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12098/* end confdefs.h. */
12099
12100int
12101main ()
12102{
12103
12104 ;
12105 return 0;
12106}
12107_ACEOF
12108if ac_fn_c_try_link "$LINENO"; then :
12109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12110$as_echo "yes" >&6; }
12111 ubsan_cflags=$UBSAN_FLAGS
12112 ubsan_ldflags=$UBSAN_FLAGS
12113 have_ubsan=yes
12114else
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12116$as_echo "no" >&6; }
12117fi
12118rm -f core conftest.err conftest.$ac_objext \
12119 conftest$ac_exeext conftest.$ac_ext
12120 CFLAGS="${OLD_CFLAGS}"
12121 LDFLAGS="${OLD_LDFLAGS}"
12122
12123
12124
12125fi
12126if test "$enable_ubsan" = "yes" && test "$have_ubsan" != "yes"; then
12127 as_fn_error $? "UBSAN not supported by compiler." "$LINENO" 5
12128fi
5e666e3d
DW
12129# Check whether --enable-addrsan was given.
12130if test "${enable_addrsan+set}" = set; then :
12131 enableval=$enable_addrsan;
12132else
12133 enable_addrsan=no
12134fi
12135
12136if test "$enable_addrsan" = "yes" || test "$enable_addrsan" = "probe"; then
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports ADDRSAN" >&5
12138$as_echo_n "checking if C compiler supports ADDRSAN... " >&6; }
12139 OLD_CFLAGS="$CFLAGS"
12140 OLD_LDFLAGS="$LDFLAGS"
12141 ADDRSAN_FLAGS="-fsanitize=address"
12142 CFLAGS="$CFLAGS $ADDRSAN_FLAGS"
12143 LDFLAGS="$LDFLAGS $ADDRSAN_FLAGS"
12144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12145/* end confdefs.h. */
12146
12147int
12148main ()
12149{
12150
12151 ;
12152 return 0;
12153}
12154_ACEOF
12155if ac_fn_c_try_link "$LINENO"; then :
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12157$as_echo "yes" >&6; }
12158 addrsan_cflags=$ADDRSAN_FLAGS
12159 addrsan_ldflags=$ADDRSAN_FLAGS
12160 have_addrsan=yes
12161else
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12163$as_echo "no" >&6; }
12164fi
12165rm -f core conftest.err conftest.$ac_objext \
12166 conftest$ac_exeext conftest.$ac_ext
12167 CFLAGS="${OLD_CFLAGS}"
12168 LDFLAGS="${OLD_LDFLAGS}"
12169
12170
12171
12172fi
12173if test "$enable_addrsan" = "yes" && test "$have_addrsan" != "yes"; then
12174 as_fn_error $? "ADDRSAN not supported by compiler." "$LINENO" 5
12175fi
bcca786b
DW
12176# Check whether --enable-threadsan was given.
12177if test "${enable_threadsan+set}" = set; then :
12178 enableval=$enable_threadsan;
12179else
12180 enable_threadsan=no
12181fi
12182
12183if test "$enable_threadsan" = "yes" || test "$enable_threadsan" = "probe"; then
12184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports THREADSAN" >&5
12185$as_echo_n "checking if C compiler supports THREADSAN... " >&6; }
12186 OLD_CFLAGS="$CFLAGS"
12187 OLD_LDFLAGS="$LDFLAGS"
12188 THREADSAN_FLAGS="-fsanitize=thread"
12189 CFLAGS="$CFLAGS $THREADSAN_FLAGS"
12190 LDFLAGS="$LDFLAGS $THREADSAN_FLAGS"
12191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12192/* end confdefs.h. */
12193
12194int
12195main ()
12196{
12197
12198 ;
12199 return 0;
12200}
12201_ACEOF
12202if ac_fn_c_try_link "$LINENO"; then :
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12204$as_echo "yes" >&6; }
12205 threadsan_cflags=$THREADSAN_FLAGS
12206 threadsan_ldflags=$THREADSAN_FLAGS
12207 have_threadsan=yes
12208else
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12210$as_echo "no" >&6; }
12211fi
12212rm -f core conftest.err conftest.$ac_objext \
12213 conftest$ac_exeext conftest.$ac_ext
12214 CFLAGS="${OLD_CFLAGS}"
12215 LDFLAGS="${OLD_LDFLAGS}"
12216
12217
12218
12219fi
12220if test "$enable_threadsan" = "yes" && test "$have_threadsan" != "yes"; then
12221 as_fn_error $? "THREADSAN not supported by compiler." "$LINENO" 5
12222fi
12223if test "$have_threadsan" = "yes" && test "$have_addrsan" = "yes"; then
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ADDRSAN and THREADSAN are not known to work together." >&5
12225$as_echo "$as_me: WARNING: ADDRSAN and THREADSAN are not known to work together." >&2;}
12226fi
e6f2bda3 12227LINUX_CMT="#"
fff45483
TT
12228CYGWIN_CMT="#"
12229UNIX_CMT=
e6f2bda3
TT
12230case "$host_os" in
12231linux*)
12232 LINUX_CMT=
fff45483
TT
12233 ;;
12234cygwin)
12235 CYGWIN_CMT=
12236 UNIX_CMT="#"
e6f2bda3
TT
12237 ;;
12238esac
12239
93636bde
TT
12240
12241
5ce368f0
DW
12242E2SCRUB_CMT="$LINUX_CMT"
12243
50e1e10f 12244case "$host_os" in
93636bde 12245linux* | gnu* | k*bsd*-gnu)
a4b2d3ce
TT
12246 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
12247 root_prefix="";
57aa50d4 12248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
39fd3d4f 12249$as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
fc6d9d51
TT
12250 fi
12251 ;;
12252esac
fc6d9d51 12253case "$host_os" in
93636bde 12254linux* | gnu* | k*bsd*-gnu)
fc6d9d51 12255 if test "$prefix" = NONE ; then
a4b2d3ce 12256 prefix="/usr";
57aa50d4 12257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
39fd3d4f 12258$as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
bff61a7a 12259 if test "$mandir" = '${prefix}/man' ; then
57aa50d4 12260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
39fd3d4f 12261$as_echo "...and mandir defaults to /usr/share/man" >&6; }
bff61a7a
TT
12262 mandir=/usr/share/man
12263 fi
50e1e10f
TT
12264 fi
12265;;
12266esac
a4b2d3ce 12267if test "$root_prefix" = NONE ; then
ffe1991f 12268 if test "$prefix" = NONE ; then
a4b2d3ce
TT
12269 root_prefix="$ac_default_prefix"
12270 else
12271 root_prefix="$prefix"
12272 fi
b5ffeade
TT
12273 root_bindir=$bindir
12274 root_sbindir=$sbindir
12275 root_libdir=$libdir
12276 root_sysconfdir=$sysconfdir
12277else
12278 root_bindir='${root_prefix}/bin'
12279 root_sbindir='${root_prefix}/sbin'
12280 root_libdir='${root_prefix}/lib'
12281 root_sysconfdir='${root_prefix}/etc'
a4b2d3ce 12282fi
c4ef11c5
TT
12283if test "$bindir" != '${exec_prefix}/bin'; then
12284 root_bindir=$bindir
57aa50d4 12285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
39fd3d4f 12286$as_echo "Setting root_bindir to $root_bindir" >&6; }
c4ef11c5
TT
12287fi
12288if test "$sbindir" != '${exec_prefix}/sbin'; then
12289 root_sbindir=$sbindir
57aa50d4 12290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
39fd3d4f 12291$as_echo "Setting root_sbindir to $root_sbindir" >&6; }
c4ef11c5
TT
12292fi
12293if test "$libdir" != '${exec_prefix}/lib'; then
12294 root_libdir=$libdir
57aa50d4 12295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
39fd3d4f 12296$as_echo "Setting root_libdir to $root_libdir" >&6; }
c4ef11c5
TT
12297fi
12298if test "$sysconfdir" != '${prefix}/etc'; then
12299 root_sysconfdir=$sysconfdir
57aa50d4 12300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
39fd3d4f 12301$as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
c4ef11c5 12302fi
a4b2d3ce 12303
93636bde
TT
12304
12305
12306
12307
55e00a25
TT
12308
12309# Check whether --with-multiarch was given.
12310if test "${with_multiarch+set}" = set; then :
d7fa4103
TT
12311 withval=$with_multiarch; if test "$withval" = "lib64"; then
12312 libdir=/usr/lib64
12313 root_libdir=/lib64
12314else
12315 libdir=$libdir/$withval
12316 root_libdir=$root_libdir/$withval
12317fi
55e00a25
TT
12318
12319fi
a2df5894 12320
d3de1a71
TT
12321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
12322$as_echo_n "checking whether we can link with -static... " >&6; }
d6a4bcb5 12323if ${ac_cv_e2fsprogs_use_static+:} false; then :
39fd3d4f 12324 $as_echo_n "(cached) " >&6
ae851482 12325else
fd1677e8 12326 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS_STATIC -static"
57aa50d4 12327cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 12328/* end confdefs.h. */
ae851482 12329#include <stdio.h>
b0cacab0
TT
12330int
12331main ()
12332{
ae851482 12333fflush(stdout);
b0cacab0
TT
12334 ;
12335 return 0;
12336}
12337_ACEOF
57aa50d4 12338if ac_fn_c_try_link "$LINENO"; then :
ae851482
TT
12339 ac_cv_e2fsprogs_use_static=yes
12340else
57aa50d4 12341 ac_cv_e2fsprogs_use_static=no
ae851482 12342fi
57aa50d4
TT
12343rm -f core conftest.err conftest.$ac_objext \
12344 conftest$ac_exeext conftest.$ac_ext
ae851482
TT
12345LDFLAGS=$SAVE_LDFLAGS
12346fi
50e1e10f 12347
defde784
TT
12348case "$host_os" in
12349solaris2.*)
b0cacab0 12350 ac_cv_e2fsprogs_use_static=no
defde784
TT
12351;;
12352esac
57aa50d4 12353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
39fd3d4f 12354$as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
ae851482 12355if test $ac_cv_e2fsprogs_use_static = yes; then
fd1677e8 12356 LDFLAGS_STATIC="$LDFLAGS_STATIC -static"
ae851482 12357fi
50e1e10f 12358
07a0db15
TT
12359case "$host_os" in
12360darwin*)
57aa50d4 12361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
39fd3d4f 12362$as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
d1154eb4
TT
12363
12364$as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
07a0db15
TT
12365
12366 ;;
12367esac
50e1e10f
TT
12368if test "$cross_compiling" = yes ; then
12369 DO_TEST_SUITE=
12370else
12371 DO_TEST_SUITE=check
12372fi
12373
d1154eb4
TT
12374INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
12375if test -n "$CPPFLAGS" ; then
12376 INCLUDES="$INCLUDES $CPPFLAGS"
12377fi
c6f35b8a 12378if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
d1154eb4 12379 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
c6f35b8a 12380fi
6c59a665
TT
12381if test -n "$WITH_DIET_LIBC" ; then
12382 INCLUDES="$INCLUDES -D_REENTRANT"
12383fi
c6f35b8a 12384
dd947da2 12385if test $cross_compiling = no; then
2873927d 12386 BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
dd947da2 12387 BUILD_LDFLAGS="$LDFLAGS"
dd947da2
TT
12388fi
12389
12390
fd1677e8
TT
12391CFLAGS_SHLIB=${CFLAGS_SHLIB:-$CFLAGS}
12392CFLAGS_STLIB=${CFLAGS_STLIB:-$CFLAGS}
12393LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
12394
12395
12396
5ce368f0
DW
12397
12398
12399# Check whether --with-udev_rules_dir was given.
12400if test "${with_udev_rules_dir+set}" = set; then :
12401 withval=$with_udev_rules_dir;
12402else
12403 with_udev_rules_dir=yes
12404fi
12405
12406if test "x${with_udev_rules_dir}" != "xno"; then :
12407
12408 if test "x${with_udev_rules_dir}" = "xyes"; then :
12409
12410
12411pkg_failed=no
12412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev" >&5
12413$as_echo_n "checking for udev... " >&6; }
12414
12415if test -n "$udev_CFLAGS"; then
12416 pkg_cv_udev_CFLAGS="$udev_CFLAGS"
12417 elif test -n "$PKG_CONFIG"; then
12418 if test -n "$PKG_CONFIG" && \
12419 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
12420 ($PKG_CONFIG --exists --print-errors "udev") 2>&5
12421 ac_status=$?
12422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12423 test $ac_status = 0; }; then
12424 pkg_cv_udev_CFLAGS=`$PKG_CONFIG --cflags "udev" 2>/dev/null`
12425 test "x$?" != "x0" && pkg_failed=yes
12426else
12427 pkg_failed=yes
12428fi
12429 else
12430 pkg_failed=untried
12431fi
12432if test -n "$udev_LIBS"; then
12433 pkg_cv_udev_LIBS="$udev_LIBS"
12434 elif test -n "$PKG_CONFIG"; then
12435 if test -n "$PKG_CONFIG" && \
12436 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
12437 ($PKG_CONFIG --exists --print-errors "udev") 2>&5
12438 ac_status=$?
12439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12440 test $ac_status = 0; }; then
12441 pkg_cv_udev_LIBS=`$PKG_CONFIG --libs "udev" 2>/dev/null`
12442 test "x$?" != "x0" && pkg_failed=yes
12443else
12444 pkg_failed=yes
12445fi
12446 else
12447 pkg_failed=untried
12448fi
12449
12450
12451
12452if test $pkg_failed = yes; then
bdcd5f22 12453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5ce368f0
DW
12454$as_echo "no" >&6; }
12455
12456if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12457 _pkg_short_errors_supported=yes
12458else
12459 _pkg_short_errors_supported=no
12460fi
12461 if test $_pkg_short_errors_supported = yes; then
12462 udev_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "udev" 2>&1`
12463 else
12464 udev_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "udev" 2>&1`
12465 fi
12466 # Put the nasty error message in config.log where it belongs
12467 echo "$udev_PKG_ERRORS" >&5
12468
12469
12470 with_udev_rules_dir=""
12471
12472elif test $pkg_failed = untried; then
bdcd5f22 12473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5ce368f0
DW
12474$as_echo "no" >&6; }
12475
12476 with_udev_rules_dir=""
12477
12478else
12479 udev_CFLAGS=$pkg_cv_udev_CFLAGS
12480 udev_LIBS=$pkg_cv_udev_LIBS
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12482$as_echo "yes" >&6; }
12483
12484 with_udev_rules_dir="$($PKG_CONFIG --variable=udevdir udev)/rules.d"
12485
12486fi
12487
12488fi
12489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev rules dir" >&5
12490$as_echo_n "checking for udev rules dir... " >&6; }
12491 pkg_udev_rules_dir="${with_udev_rules_dir}"
12492 if test -n "${pkg_udev_rules_dir}"; then :
12493
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${pkg_udev_rules_dir}" >&5
12495$as_echo "${pkg_udev_rules_dir}" >&6; }
12496 have_udev="yes"
12497
12498else
12499
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12501$as_echo "no" >&6; }
12502 have_udev="no"
12503
12504fi
12505
12506else
12507
12508 have_udev="disabled"
12509
12510fi
12511
12512
12513
a2df5894
DW
12514
12515# Check whether --with-crond_dir was given.
12516if test "${with_crond_dir+set}" = set; then :
12517 withval=$with_crond_dir;
12518else
12519 with_crond_dir=yes
12520fi
12521
12522if test "x${with_crond_dir}" != "xno"; then :
12523
12524 if test "x${with_crond_dir}" = "xyes"; then :
12525
12526 if test -d "/etc/cron.d"; then :
12527 with_crond_dir="/etc/cron.d"
188bf39a
TT
12528else
12529 have_crond="no"; with_crond_dir=""
a2df5894
DW
12530fi
12531
12532fi
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system crontab dir" >&5
12534$as_echo_n "checking for system crontab dir... " >&6; }
12535 crond_dir="${with_crond_dir}"
12536 if test -n "${crond_dir}"; then :
12537
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${crond_dir}" >&5
12539$as_echo "${crond_dir}" >&6; }
12540 have_crond="yes"
12541
12542else
12543
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12545$as_echo "no" >&6; }
12546 have_crond="no"
12547
12548fi
12549
12550else
12551
12552 have_crond="disabled"
12553
12554fi
12555
12556
12557
12558
12559# Check whether --with-systemd_unit_dir was given.
12560if test "${with_systemd_unit_dir+set}" = set; then :
12561 withval=$with_systemd_unit_dir;
12562else
12563 with_systemd_unit_dir=yes
12564fi
12565
12566if test "x${with_systemd_unit_dir}" != "xno"; then :
12567
12568 if test "x${with_systemd_unit_dir}" = "xyes"; then :
12569
12570
12571pkg_failed=no
12572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd" >&5
12573$as_echo_n "checking for systemd... " >&6; }
12574
12575if test -n "$systemd_CFLAGS"; then
12576 pkg_cv_systemd_CFLAGS="$systemd_CFLAGS"
12577 elif test -n "$PKG_CONFIG"; then
12578 if test -n "$PKG_CONFIG" && \
12579 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
12580 ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
12581 ac_status=$?
12582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12583 test $ac_status = 0; }; then
12584 pkg_cv_systemd_CFLAGS=`$PKG_CONFIG --cflags "systemd" 2>/dev/null`
12585 test "x$?" != "x0" && pkg_failed=yes
12586else
12587 pkg_failed=yes
12588fi
12589 else
12590 pkg_failed=untried
12591fi
12592if test -n "$systemd_LIBS"; then
12593 pkg_cv_systemd_LIBS="$systemd_LIBS"
12594 elif test -n "$PKG_CONFIG"; then
12595 if test -n "$PKG_CONFIG" && \
12596 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
12597 ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
12598 ac_status=$?
12599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12600 test $ac_status = 0; }; then
12601 pkg_cv_systemd_LIBS=`$PKG_CONFIG --libs "systemd" 2>/dev/null`
12602 test "x$?" != "x0" && pkg_failed=yes
12603else
12604 pkg_failed=yes
12605fi
12606 else
12607 pkg_failed=untried
12608fi
12609
12610
12611
12612if test $pkg_failed = yes; then
bdcd5f22 12613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
a2df5894
DW
12614$as_echo "no" >&6; }
12615
12616if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
12617 _pkg_short_errors_supported=yes
12618else
12619 _pkg_short_errors_supported=no
12620fi
12621 if test $_pkg_short_errors_supported = yes; then
12622 systemd_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "systemd" 2>&1`
12623 else
12624 systemd_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "systemd" 2>&1`
12625 fi
12626 # Put the nasty error message in config.log where it belongs
12627 echo "$systemd_PKG_ERRORS" >&5
12628
12629
12630 with_systemd_unit_dir=""
12631
12632elif test $pkg_failed = untried; then
bdcd5f22 12633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
a2df5894
DW
12634$as_echo "no" >&6; }
12635
12636 with_systemd_unit_dir=""
12637
12638else
12639 systemd_CFLAGS=$pkg_cv_systemd_CFLAGS
12640 systemd_LIBS=$pkg_cv_systemd_LIBS
12641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12642$as_echo "yes" >&6; }
12643
12644 with_systemd_unit_dir="$($PKG_CONFIG --variable=systemdsystemunitdir systemd)"
12645
12646fi
12647
12648
12649fi
12650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd system unit dir" >&5
12651$as_echo_n "checking for systemd system unit dir... " >&6; }
12652 systemd_system_unit_dir="${with_systemd_unit_dir}"
12653 if test -n "${systemd_system_unit_dir}"; then :
12654
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${systemd_system_unit_dir}" >&5
12656$as_echo "${systemd_system_unit_dir}" >&6; }
12657 have_systemd="yes"
12658
12659else
12660
12661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12662$as_echo "no" >&6; }
12663 have_systemd="no"
12664
12665fi
12666
12667else
12668
12669 have_systemd="disabled"
12670
12671fi
12672
12673
12674
50e1e10f
TT
12675test -d lib || mkdir lib
12676test -d include || mkdir include
12677test -d include/linux || mkdir include/linux
defde784 12678test -d include/asm || mkdir include/asm
44dfb378
TT
12679if test -z "$UUID_CMT" ; then
12680 uuid_out_list="lib/uuid/Makefile lib/uuid/uuid.pc \
12681 lib/uuid/uuid_types.h"
12682fi
12683if test -z "$BLKID_CMT" ; then
12684 blkid_out_list="lib/blkid/Makefile lib/blkid/blkid.pc \
12685 lib/blkid/blkid_types.h"
12686fi
e5f0f3ee 12687for i in MCONFIG Makefile \
183c73b0 12688 util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
4ea7ea00
TT
12689 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
12690 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
f34af41b 12691 $uuid_out_list $blkid_out_list lib/support/Makefile \
44dfb378 12692 lib/ss/ss.pc lib/et/com_err.pc lib/e2p/e2p.pc lib/ext2fs/ext2fs.pc \
921f4ad5 12693 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
94ba8c75 12694 debugfs/Makefile tests/Makefile tests/progs/Makefile \
e598c29b 12695 resize/Makefile doc/Makefile po/Makefile.in scrub/Makefile; do
94ba8c75
TT
12696 if test -d `dirname ${srcdir}/$i` ; then
12697 outlist="$outlist $i"
12698 fi
12699done
e1052144
TT
12700ac_config_files="$ac_config_files $outlist"
12701
b0cacab0 12702cat >confcache <<\_ACEOF
50e1e10f
TT
12703# This file is a shell script that caches the results of configure
12704# tests run on this system so they can be shared between configure
b0cacab0
TT
12705# scripts and configure runs, see configure's option --config-cache.
12706# It is not useful on other systems. If it contains results you don't
12707# want to keep, you may remove or edit it.
50e1e10f 12708#
b0cacab0
TT
12709# config.status only pays attention to the cache file if you give it
12710# the --recheck option to rerun configure.
50e1e10f 12711#
b0cacab0
TT
12712# `ac_cv_env_foo' variables (set or unset) will be overridden when
12713# loading this file, other *unset* `ac_cv_foo' will be assigned the
12714# following values.
12715
12716_ACEOF
12717
21c84b71
TT
12718# The following way of writing the cache mishandles newlines in values,
12719# but we know of no workaround that is simple, portable, and efficient.
e1052144 12720# So, we kill variables containing newlines.
50e1e10f
TT
12721# Ultrix sh set writes to stderr and can't be redirected directly,
12722# and sets the high bit in the cache file unless we assign to the vars.
e1052144
TT
12723(
12724 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
12725 eval ac_val=\$$ac_var
12726 case $ac_val in #(
12727 *${as_nl}*)
12728 case $ac_var in #(
57aa50d4 12729 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
39fd3d4f 12730$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
e1052144
TT
12731 esac
12732 case $ac_var in #(
12733 _ | IFS | as_nl) ;; #(
39fd3d4f 12734 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
57aa50d4 12735 *) { eval $ac_var=; unset $ac_var;} ;;
e1052144
TT
12736 esac ;;
12737 esac
12738 done
12739
b0cacab0 12740 (set) 2>&1 |
e1052144
TT
12741 case $as_nl`(ac_space=' '; set) 2>&1` in #(
12742 *${as_nl}ac_space=\ *)
57aa50d4
TT
12743 # `set' does not quote correctly, so add quotes: double-quote
12744 # substitution turns \\\\ into \\, and sed turns \\ into \.
b0cacab0
TT
12745 sed -n \
12746 "s/'/'\\\\''/g;
12747 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
e1052144 12748 ;; #(
b0cacab0
TT
12749 *)
12750 # `set' quotes correctly as required by POSIX, so do not add quotes.
e1052144 12751 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b0cacab0 12752 ;;
e1052144
TT
12753 esac |
12754 sort
12755) |
b0cacab0 12756 sed '
e1052144 12757 /^ac_cv_env_/b end
b0cacab0 12758 t clear
e1052144 12759 :clear
b0cacab0
TT
12760 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
12761 t end
e1052144
TT
12762 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
12763 :end' >>confcache
12764if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
12765 if test -w "$cache_file"; then
d6a4bcb5 12766 if test "x$cache_file" != "x/dev/null"; then
57aa50d4 12767 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
39fd3d4f 12768$as_echo "$as_me: updating cache $cache_file" >&6;}
d6a4bcb5
TB
12769 if test ! -f "$cache_file" || test -h "$cache_file"; then
12770 cat confcache >"$cache_file"
12771 else
12772 case $cache_file in #(
12773 */* | ?:*)
12774 mv -f confcache "$cache_file"$$ &&
12775 mv -f "$cache_file"$$ "$cache_file" ;; #(
12776 *)
12777 mv -f confcache "$cache_file" ;;
12778 esac
12779 fi
12780 fi
50e1e10f 12781 else
57aa50d4 12782 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
39fd3d4f 12783$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
50e1e10f
TT
12784 fi
12785fi
12786rm -f confcache
12787
50e1e10f
TT
12788test "x$prefix" = xNONE && prefix=$ac_default_prefix
12789# Let make expand exec_prefix.
12790test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
12791
d1154eb4 12792DEFS=-DHAVE_CONFIG_H
b0cacab0
TT
12793
12794ac_libobjs=
12795ac_ltlibobjs=
d6a4bcb5 12796U=
b0cacab0
TT
12797for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
12798 # 1. Remove the extension, and $U if already installed.
e1052144 12799 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
39fd3d4f 12800 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
e1052144
TT
12801 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
12802 # will be set to the directory where LIBOBJS objects are built.
57aa50d4
TT
12803 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
12804 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
b0cacab0
TT
12805done
12806LIBOBJS=$ac_libobjs
50e1e10f 12807
b0cacab0
TT
12808LTLIBOBJS=$ac_ltlibobjs
12809
12810
12811
39fd3d4f 12812
d6a4bcb5 12813: "${CONFIG_STATUS=./config.status}"
39fd3d4f 12814ac_write_fail=0
b0cacab0
TT
12815ac_clean_files_save=$ac_clean_files
12816ac_clean_files="$ac_clean_files $CONFIG_STATUS"
57aa50d4 12817{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
39fd3d4f 12818$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
57aa50d4
TT
12819as_write_fail=0
12820cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
b0cacab0
TT
12821#! $SHELL
12822# Generated by $as_me.
93636bde 12823# Run this file to recreate the current configuration.
93636bde 12824# Compiler output produced by configure, useful for debugging
b0cacab0 12825# configure, is in config.log if it exists.
07a0db15 12826
b0cacab0
TT
12827debug=false
12828ac_cs_recheck=false
12829ac_cs_silent=false
b0cacab0 12830
57aa50d4
TT
12831SHELL=\${CONFIG_SHELL-$SHELL}
12832export SHELL
12833_ASEOF
12834cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
12835## -------------------- ##
12836## M4sh Initialization. ##
12837## -------------------- ##
b0cacab0 12838
29a5deed
TT
12839# Be more Bourne compatible
12840DUALCASE=1; export DUALCASE # for MKS sh
57aa50d4 12841if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
b0cacab0
TT
12842 emulate sh
12843 NULLCMD=:
39fd3d4f 12844 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b0cacab0
TT
12845 # is contrary to our usage. Disable this feature.
12846 alias -g '${1+"$@"}'='"$@"'
e1052144
TT
12847 setopt NO_GLOB_SUBST
12848else
57aa50d4
TT
12849 case `(set -o) 2>/dev/null` in #(
12850 *posix*) :
12851 set -o posix ;; #(
12852 *) :
12853 ;;
29a5deed 12854esac
b0cacab0 12855fi
29a5deed
TT
12856
12857
39fd3d4f
SJR
12858as_nl='
12859'
12860export as_nl
12861# Printing a long string crashes Solaris 7 /usr/bin/printf.
12862as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
12863as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
12864as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
57aa50d4
TT
12865# Prefer a ksh shell builtin over an external printf program on Solaris,
12866# but without wasting forks for bash or zsh.
12867if test -z "$BASH_VERSION$ZSH_VERSION" \
12868 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
12869 as_echo='print -r --'
12870 as_echo_n='print -rn --'
12871elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
39fd3d4f
SJR
12872 as_echo='printf %s\n'
12873 as_echo_n='printf %s'
12874else
12875 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
12876 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
12877 as_echo_n='/usr/ucb/echo -n'
e1052144 12878 else
39fd3d4f
SJR
12879 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
12880 as_echo_n_body='eval
12881 arg=$1;
57aa50d4 12882 case $arg in #(
39fd3d4f
SJR
12883 *"$as_nl"*)
12884 expr "X$arg" : "X\\(.*\\)$as_nl";
12885 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
12886 esac;
12887 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
12888 '
12889 export as_echo_n_body
12890 as_echo_n='sh -c $as_echo_n_body as_echo'
e1052144 12891 fi
39fd3d4f
SJR
12892 export as_echo_body
12893 as_echo='sh -c $as_echo_body as_echo'
12894fi
12895
12896# The user is always right.
12897if test "${PATH_SEPARATOR+set}" != set; then
12898 PATH_SEPARATOR=:
12899 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
12900 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
12901 PATH_SEPARATOR=';'
12902 }
e1052144
TT
12903fi
12904
b0cacab0 12905
e1052144
TT
12906# IFS
12907# We need space, tab and new line, in precisely that order. Quoting is
12908# there to prevent editors from complaining about space-tab.
12909# (If _AS_PATH_WALK were called with IFS unset, it would disable word
12910# splitting by setting IFS to empty value.)
e1052144
TT
12911IFS=" "" $as_nl"
12912
12913# Find who we are. Look in the path if we contain no directory separator.
d6a4bcb5 12914as_myself=
57aa50d4 12915case $0 in #((
e1052144
TT
12916 *[\\/]* ) as_myself=$0 ;;
12917 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12918for as_dir in $PATH
12919do
12920 IFS=$as_save_IFS
12921 test -z "$as_dir" && as_dir=.
57aa50d4
TT
12922 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
12923 done
e1052144
TT
12924IFS=$as_save_IFS
12925
12926 ;;
12927esac
12928# We did not find ourselves, most probably we were run as `sh COMMAND'
12929# in which case we are not to be found in the path.
12930if test "x$as_myself" = x; then
12931 as_myself=$0
12932fi
12933if test ! -f "$as_myself"; then
39fd3d4f 12934 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
57aa50d4 12935 exit 1
e1052144
TT
12936fi
12937
57aa50d4
TT
12938# Unset variables that we do not need and which cause bugs (e.g. in
12939# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
12940# suppresses any "Segmentation fault" message there. '((' could
12941# trigger a bug in pdksh 5.2.14.
12942for as_var in BASH_ENV ENV MAIL MAILPATH
12943do eval test x\${$as_var+set} = xset \
12944 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
e1052144 12945done
b0cacab0
TT
12946PS1='$ '
12947PS2='> '
12948PS4='+ '
12949
12950# NLS nuisances.
39fd3d4f
SJR
12951LC_ALL=C
12952export LC_ALL
12953LANGUAGE=C
12954export LANGUAGE
b0cacab0 12955
57aa50d4
TT
12956# CDPATH.
12957(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
12958
12959
d6a4bcb5
TB
12960# as_fn_error STATUS ERROR [LINENO LOG_FD]
12961# ----------------------------------------
57aa50d4
TT
12962# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
12963# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d6a4bcb5 12964# script with STATUS, using 1 if that was 0.
57aa50d4
TT
12965as_fn_error ()
12966{
d6a4bcb5
TB
12967 as_status=$1; test $as_status -eq 0 && as_status=1
12968 if test "$4"; then
12969 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
12970 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
57aa50d4 12971 fi
d6a4bcb5 12972 $as_echo "$as_me: error: $2" >&2
57aa50d4
TT
12973 as_fn_exit $as_status
12974} # as_fn_error
12975
12976
12977# as_fn_set_status STATUS
12978# -----------------------
12979# Set $? to STATUS, without forking.
12980as_fn_set_status ()
12981{
12982 return $1
12983} # as_fn_set_status
12984
12985# as_fn_exit STATUS
12986# -----------------
12987# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
12988as_fn_exit ()
12989{
12990 set +e
12991 as_fn_set_status $1
12992 exit $1
12993} # as_fn_exit
12994
12995# as_fn_unset VAR
12996# ---------------
12997# Portably unset VAR.
12998as_fn_unset ()
12999{
13000 { eval $1=; unset $1;}
13001}
13002as_unset=as_fn_unset
13003# as_fn_append VAR VALUE
13004# ----------------------
13005# Append the text in VALUE to the end of the definition contained in VAR. Take
13006# advantage of any shell optimizations that allow amortized linear growth over
13007# repeated appends, instead of the typical quadratic growth present in naive
13008# implementations.
13009if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13010 eval 'as_fn_append ()
13011 {
13012 eval $1+=\$2
13013 }'
13014else
13015 as_fn_append ()
13016 {
13017 eval $1=\$$1\$2
13018 }
13019fi # as_fn_append
13020
13021# as_fn_arith ARG...
13022# ------------------
13023# Perform arithmetic evaluation on the ARGs, and store the result in the
13024# global $as_val. Take advantage of shells that can avoid forks. The arguments
13025# must be portable across $(()) and expr.
13026if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13027 eval 'as_fn_arith ()
13028 {
13029 as_val=$(( $* ))
13030 }'
13031else
13032 as_fn_arith ()
13033 {
13034 as_val=`expr "$@" || test $? -eq 1`
13035 }
13036fi # as_fn_arith
13037
13038
e1052144
TT
13039if expr a : '\(a\)' >/dev/null 2>&1 &&
13040 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b0cacab0
TT
13041 as_expr=expr
13042else
13043 as_expr=false
13044fi
13045
e1052144 13046if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b0cacab0
TT
13047 as_basename=basename
13048else
13049 as_basename=false
13050fi
13051
57aa50d4
TT
13052if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13053 as_dirname=dirname
13054else
13055 as_dirname=false
13056fi
b0cacab0 13057
e1052144 13058as_me=`$as_basename -- "$0" ||
b0cacab0
TT
13059$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13060 X"$0" : 'X\(//\)$' \| \
e1052144 13061 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
39fd3d4f 13062$as_echo X/"$0" |
e1052144
TT
13063 sed '/^.*\/\([^/][^/]*\)\/*$/{
13064 s//\1/
13065 q
13066 }
13067 /^X\/\(\/\/\)$/{
13068 s//\1/
13069 q
13070 }
13071 /^X\/\(\/\).*/{
13072 s//\1/
13073 q
13074 }
13075 s/.*/./; q'`
b0cacab0 13076
57aa50d4
TT
13077# Avoid depending upon Character Ranges.
13078as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13079as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13080as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13081as_cr_digits='0123456789'
13082as_cr_alnum=$as_cr_Letters$as_cr_digits
e1052144
TT
13083
13084ECHO_C= ECHO_N= ECHO_T=
57aa50d4 13085case `echo -n x` in #(((((
e1052144 13086-n*)
57aa50d4 13087 case `echo 'xy\c'` in
e1052144 13088 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
57aa50d4
TT
13089 xy) ECHO_C='\c';;
13090 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13091 ECHO_T=' ';;
e1052144
TT
13092 esac;;
13093*)
13094 ECHO_N='-n';;
b0cacab0 13095esac
b0cacab0
TT
13096
13097rm -f conf$$ conf$$.exe conf$$.file
e1052144
TT
13098if test -d conf$$.dir; then
13099 rm -f conf$$.dir/conf$$.file
13100else
13101 rm -f conf$$.dir
39fd3d4f
SJR
13102 mkdir conf$$.dir 2>/dev/null
13103fi
13104if (echo >conf$$.file) 2>/dev/null; then
13105 if ln -s conf$$.file conf$$ 2>/dev/null; then
13106 as_ln_s='ln -s'
13107 # ... but there are two gotchas:
13108 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13109 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d6a4bcb5 13110 # In both cases, we have to default to `cp -pR'.
39fd3d4f 13111 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d6a4bcb5 13112 as_ln_s='cp -pR'
39fd3d4f
SJR
13113 elif ln conf$$.file conf$$ 2>/dev/null; then
13114 as_ln_s=ln
13115 else
d6a4bcb5 13116 as_ln_s='cp -pR'
39fd3d4f 13117 fi
b0cacab0 13118else
d6a4bcb5 13119 as_ln_s='cp -pR'
b0cacab0 13120fi
e1052144
TT
13121rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13122rmdir conf$$.dir 2>/dev/null
b0cacab0 13123
57aa50d4
TT
13124
13125# as_fn_mkdir_p
13126# -------------
13127# Create "$as_dir" as a directory, including parents if necessary.
13128as_fn_mkdir_p ()
13129{
13130
13131 case $as_dir in #(
13132 -*) as_dir=./$as_dir;;
13133 esac
13134 test -d "$as_dir" || eval $as_mkdir_p || {
13135 as_dirs=
13136 while :; do
13137 case $as_dir in #(
13138 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13139 *) as_qdir=$as_dir;;
13140 esac
13141 as_dirs="'$as_qdir' $as_dirs"
13142 as_dir=`$as_dirname -- "$as_dir" ||
13143$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13144 X"$as_dir" : 'X\(//\)[^/]' \| \
13145 X"$as_dir" : 'X\(//\)$' \| \
13146 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13147$as_echo X"$as_dir" |
13148 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13149 s//\1/
13150 q
13151 }
13152 /^X\(\/\/\)[^/].*/{
13153 s//\1/
13154 q
13155 }
13156 /^X\(\/\/\)$/{
13157 s//\1/
13158 q
13159 }
13160 /^X\(\/\).*/{
13161 s//\1/
13162 q
13163 }
13164 s/.*/./; q'`
13165 test -d "$as_dir" && break
13166 done
13167 test -z "$as_dirs" || eval "mkdir $as_dirs"
d6a4bcb5 13168 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
57aa50d4
TT
13169
13170
13171} # as_fn_mkdir_p
b0cacab0 13172if mkdir -p . 2>/dev/null; then
57aa50d4 13173 as_mkdir_p='mkdir -p "$as_dir"'
b0cacab0
TT
13174else
13175 test -d ./-p && rmdir ./-p
13176 as_mkdir_p=false
13177fi
13178
d6a4bcb5
TB
13179
13180# as_fn_executable_p FILE
13181# -----------------------
13182# Test if FILE is an executable regular file.
13183as_fn_executable_p ()
13184{
13185 test -f "$1" && test -x "$1"
13186} # as_fn_executable_p
13187as_test_x='test -x'
13188as_executable_p=as_fn_executable_p
b0cacab0
TT
13189
13190# Sed expression to map a string onto a valid CPP name.
13191as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13192
13193# Sed expression to map a string onto a valid variable name.
13194as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13195
13196
b0cacab0 13197exec 6>&1
57aa50d4
TT
13198## ----------------------------------- ##
13199## Main body of $CONFIG_STATUS script. ##
13200## ----------------------------------- ##
13201_ASEOF
13202test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
b0cacab0 13203
57aa50d4
TT
13204cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13205# Save the log message, to keep $0 and so on meaningful, and to
b0cacab0 13206# report actual input values of CONFIG_FILES etc. instead of their
e1052144
TT
13207# values after options handling.
13208ac_log="
b0cacab0 13209This file was extended by $as_me, which was
d6a4bcb5 13210generated by GNU Autoconf 2.69. Invocation command line was
b0cacab0
TT
13211
13212 CONFIG_FILES = $CONFIG_FILES
13213 CONFIG_HEADERS = $CONFIG_HEADERS
13214 CONFIG_LINKS = $CONFIG_LINKS
13215 CONFIG_COMMANDS = $CONFIG_COMMANDS
13216 $ $0 $@
13217
e1052144
TT
13218on `(hostname || uname -n) 2>/dev/null | sed 1q`
13219"
13220
b0cacab0
TT
13221_ACEOF
13222
39fd3d4f
SJR
13223case $ac_config_files in *"
13224"*) set x $ac_config_files; shift; ac_config_files=$*;;
13225esac
13226
d1154eb4
TT
13227case $ac_config_headers in *"
13228"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13229esac
39fd3d4f
SJR
13230
13231
13232cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b0cacab0 13233# Files that config.status was made for.
e1052144 13234config_files="$ac_config_files"
d1154eb4 13235config_headers="$ac_config_headers"
e1052144 13236config_commands="$ac_config_commands"
b0cacab0 13237
e1052144 13238_ACEOF
b0cacab0 13239
39fd3d4f 13240cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b0cacab0 13241ac_cs_usage="\
57aa50d4
TT
13242\`$as_me' instantiates files and other configuration actions
13243from templates according to the current configuration. Unless the files
13244and actions are specified as TAGs, all are instantiated by default.
b0cacab0 13245
57aa50d4 13246Usage: $0 [OPTION]... [TAG]...
b0cacab0
TT
13247
13248 -h, --help print this help, then exit
29a5deed 13249 -V, --version print version number and configuration settings, then exit
61ef2474 13250 --config print configuration, then exit
39fd3d4f
SJR
13251 -q, --quiet, --silent
13252 do not print progress messages
b0cacab0
TT
13253 -d, --debug don't remove temporary files
13254 --recheck update $as_me by reconfiguring in the same conditions
39fd3d4f
SJR
13255 --file=FILE[:TEMPLATE]
13256 instantiate the configuration file FILE
d1154eb4
TT
13257 --header=FILE[:TEMPLATE]
13258 instantiate the configuration header FILE
b0cacab0
TT
13259
13260Configuration files:
13261$config_files
13262
d1154eb4
TT
13263Configuration headers:
13264$config_headers
13265
b0cacab0
TT
13266Configuration commands:
13267$config_commands
13268
57aa50d4 13269Report bugs to the package provider."
b0cacab0 13270
e1052144 13271_ACEOF
39fd3d4f 13272cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
61ef2474 13273ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
b0cacab0
TT
13274ac_cs_version="\\
13275config.status
d6a4bcb5 13276configured by $0, generated by GNU Autoconf 2.69,
61ef2474 13277 with options \\"\$ac_cs_config\\"
b0cacab0 13278
d6a4bcb5 13279Copyright (C) 2012 Free Software Foundation, Inc.
b0cacab0
TT
13280This config.status script is free software; the Free Software Foundation
13281gives unlimited permission to copy, distribute and modify it."
e1052144
TT
13282
13283ac_pwd='$ac_pwd'
13284srcdir='$srcdir'
13285INSTALL='$INSTALL'
93613951 13286MKDIR_P='$MKDIR_P'
39fd3d4f
SJR
13287AWK='$AWK'
13288test -n "\$AWK" || AWK=awk
b0cacab0
TT
13289_ACEOF
13290
39fd3d4f
SJR
13291cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13292# The default lists apply if the user does not specify any file.
b0cacab0
TT
13293ac_need_defaults=:
13294while test $# != 0
07a0db15 13295do
b0cacab0 13296 case $1 in
d6a4bcb5 13297 --*=?*)
e1052144
TT
13298 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13299 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
b0cacab0
TT
13300 ac_shift=:
13301 ;;
d6a4bcb5
TB
13302 --*=)
13303 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13304 ac_optarg=
13305 ac_shift=:
13306 ;;
e1052144 13307 *)
b0cacab0
TT
13308 ac_option=$1
13309 ac_optarg=$2
13310 ac_shift=shift
13311 ;;
b0cacab0
TT
13312 esac
13313
13314 case $ac_option in
13315 # Handling of the options.
93636bde 13316 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
b0cacab0 13317 ac_cs_recheck=: ;;
e1052144 13318 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
39fd3d4f 13319 $as_echo "$ac_cs_version"; exit ;;
61ef2474
TT
13320 --config | --confi | --conf | --con | --co | --c )
13321 $as_echo "$ac_cs_config"; exit ;;
e1052144 13322 --debug | --debu | --deb | --de | --d | -d )
b0cacab0
TT
13323 debug=: ;;
13324 --file | --fil | --fi | --f )
13325 $ac_shift
39fd3d4f
SJR
13326 case $ac_optarg in
13327 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
d6a4bcb5 13328 '') as_fn_error $? "missing file argument" ;;
39fd3d4f 13329 esac
57aa50d4 13330 as_fn_append CONFIG_FILES " '$ac_optarg'"
b0cacab0 13331 ac_need_defaults=false;;
d1154eb4
TT
13332 --header | --heade | --head | --hea )
13333 $ac_shift
13334 case $ac_optarg in
13335 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13336 esac
13337 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13338 ac_need_defaults=false;;
13339 --he | --h)
13340 # Conflict between --help and --header
d6a4bcb5 13341 as_fn_error $? "ambiguous option: \`$1'
d1154eb4
TT
13342Try \`$0 --help' for more information.";;
13343 --help | --hel | -h )
39fd3d4f 13344 $as_echo "$ac_cs_usage"; exit ;;
b0cacab0
TT
13345 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13346 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13347 ac_cs_silent=: ;;
13348
13349 # This is an error.
d6a4bcb5 13350 -*) as_fn_error $? "unrecognized option: \`$1'
57aa50d4 13351Try \`$0 --help' for more information." ;;
b0cacab0 13352
57aa50d4 13353 *) as_fn_append ac_config_targets " $1"
e1052144 13354 ac_need_defaults=false ;;
b0cacab0 13355
07a0db15 13356 esac
b0cacab0 13357 shift
07a0db15
TT
13358done
13359
b0cacab0
TT
13360ac_configure_extra_args=
13361
13362if $ac_cs_silent; then
13363 exec 6>/dev/null
13364 ac_configure_extra_args="$ac_configure_extra_args --silent"
13365fi
13366
13367_ACEOF
39fd3d4f 13368cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b0cacab0 13369if \$ac_cs_recheck; then
d6a4bcb5 13370 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
39fd3d4f
SJR
13371 shift
13372 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13373 CONFIG_SHELL='$SHELL'
e1052144 13374 export CONFIG_SHELL
39fd3d4f 13375 exec "\$@"
b0cacab0 13376fi
07a0db15 13377
b0cacab0 13378_ACEOF
39fd3d4f 13379cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
e1052144
TT
13380exec 5>>config.log
13381{
13382 echo
13383 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13384## Running $as_me. ##
13385_ASBOX
39fd3d4f 13386 $as_echo "$ac_log"
e1052144 13387} >&5
07a0db15 13388
e1052144 13389_ACEOF
39fd3d4f 13390cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b0cacab0 13391#
e1052144 13392# INIT-COMMANDS
b0cacab0 13393#
b0cacab0 13394# Capture the value of obsolete ALL_LINGUAS because we need it to compute
bdcd5f22
TT
13395 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS.
13396 OBSOLETE_ALL_LINGUAS="$ALL_LINGUAS"
b0cacab0
TT
13397 # Capture the value of LINGUAS because we need it to compute CATALOGS.
13398 LINGUAS="${LINGUAS-%UNSET%}"
13399
13400
13401_ACEOF
13402
39fd3d4f 13403cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
e1052144
TT
13404
13405# Handling of arguments.
b0cacab0
TT
13406for ac_config_target in $ac_config_targets
13407do
e1052144 13408 case $ac_config_target in
d1154eb4 13409 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
93613951 13410 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
e1052144
TT
13411 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
13412
d6a4bcb5 13413 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
b0cacab0
TT
13414 esac
13415done
13416
e1052144 13417
b0cacab0
TT
13418# If the user did not use the arguments to specify the items to instantiate,
13419# then the envvar interface is used. Set only those that are not.
13420# We use the long form for the default assignment because of an extremely
13421# bizarre bug on SunOS 4.1.3.
13422if $ac_need_defaults; then
13423 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
d1154eb4 13424 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
b0cacab0
TT
13425 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
13426fi
13427
13428# Have a temporary directory for convenience. Make it in the build tree
e1052144 13429# simply because there is no reason against having it here, and in addition,
b0cacab0 13430# creating and moving files from /tmp can sometimes cause problems.
e1052144
TT
13431# Hook for its removal unless debugging.
13432# Note that there is a small window in which the directory will not be cleaned:
13433# after its creation but before its name has been assigned to `$tmp'.
b0cacab0
TT
13434$debug ||
13435{
d6a4bcb5 13436 tmp= ac_tmp=
e1052144 13437 trap 'exit_status=$?
d6a4bcb5
TB
13438 : "${ac_tmp:=$tmp}"
13439 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
e1052144 13440' 0
57aa50d4 13441 trap 'as_fn_exit 1' 1 2 13 15
b0cacab0 13442}
b0cacab0
TT
13443# Create a (secure) tmp directory for tmp files.
13444
13445{
e1052144 13446 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d6a4bcb5 13447 test -d "$tmp"
b0cacab0
TT
13448} ||
13449{
e1052144
TT
13450 tmp=./conf$$-$RANDOM
13451 (umask 077 && mkdir "$tmp")
d6a4bcb5
TB
13452} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
13453ac_tmp=$tmp
b0cacab0 13454
39fd3d4f
SJR
13455# Set up the scripts for CONFIG_FILES section.
13456# No need to generate them if there are no CONFIG_FILES.
13457# This happens for instance with `./config.status config.h'.
e1052144
TT
13458if test -n "$CONFIG_FILES"; then
13459
39fd3d4f
SJR
13460if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
13461 ac_cs_awk_getline=:
13462 ac_cs_awk_pipe_init=
13463 ac_cs_awk_read_file='
13464 while ((getline aline < (F[key])) > 0)
13465 print(aline)
13466 close(F[key])'
13467 ac_cs_awk_pipe_fini=
13468else
13469 ac_cs_awk_getline=false
13470 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
13471 ac_cs_awk_read_file='
13472 print "|#_!!_#|"
13473 print "cat " F[key] " &&"
13474 '$ac_cs_awk_pipe_init
13475 # The final `:' finishes the AND list.
13476 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
13477fi
57aa50d4
TT
13478ac_cr=`echo X | tr X '\015'`
13479# On cygwin, bash can eat \r inside `` if the user requested igncr.
13480# But we know of no other shell where ac_cr would be empty at this
13481# point, so we can use a bashism as a fallback.
13482if test "x$ac_cr" = x; then
13483 eval ac_cr=\$\'\\r\'
13484fi
39fd3d4f
SJR
13485ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
13486if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
d6a4bcb5 13487 ac_cs_awk_cr='\\r'
39fd3d4f
SJR
13488else
13489 ac_cs_awk_cr=$ac_cr
13490fi
e1052144 13491
d6a4bcb5 13492echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
39fd3d4f 13493_ACEOF
e1052144 13494
39fd3d4f
SJR
13495# Create commands to substitute file output variables.
13496{
13497 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
d6a4bcb5 13498 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
39fd3d4f
SJR
13499 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
13500 echo "_ACAWK" &&
13501 echo "_ACEOF"
13502} >conf$$files.sh &&
13503. ./conf$$files.sh ||
d6a4bcb5 13504 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
39fd3d4f 13505rm -f conf$$files.sh
e1052144 13506
39fd3d4f
SJR
13507{
13508 echo "cat >conf$$subs.awk <<_ACEOF" &&
13509 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
13510 echo "_ACEOF"
13511} >conf$$subs.sh ||
d6a4bcb5
TB
13512 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
13513ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
e1052144
TT
13514ac_delim='%!_!# '
13515for ac_last_try in false false false false false :; do
39fd3d4f 13516 . ./conf$$subs.sh ||
d6a4bcb5 13517 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
39fd3d4f
SJR
13518
13519 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
13520 if test $ac_delim_n = $ac_delim_num; then
e1052144
TT
13521 break
13522 elif $ac_last_try; then
d6a4bcb5 13523 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
e1052144
TT
13524 else
13525 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21c84b71 13526 fi
e1052144 13527done
39fd3d4f
SJR
13528rm -f conf$$subs.sh
13529
13530cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d6a4bcb5 13531cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
39fd3d4f
SJR
13532_ACEOF
13533sed -n '
13534h
13535s/^/S["/; s/!.*/"]=/
13536p
13537g
13538s/^[^!]*!//
13539:repl
13540t repl
13541s/'"$ac_delim"'$//
13542t delim
13543:nl
13544h
61ef2474 13545s/\(.\{148\}\)..*/\1/
39fd3d4f
SJR
13546t more1
13547s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
13548p
13549n
13550b repl
13551:more1
13552s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13553p
13554g
13555s/.\{148\}//
13556t nl
13557:delim
13558h
61ef2474 13559s/\(.\{148\}\)..*/\1/
39fd3d4f
SJR
13560t more2
13561s/["\\]/\\&/g; s/^/"/; s/$/"/
13562p
13563b
13564:more2
13565s/["\\]/\\&/g; s/^/"/; s/$/"\\/
13566p
13567g
13568s/.\{148\}//
13569t delim
13570' <conf$$subs.awk | sed '
13571/^[^""]/{
13572 N
13573 s/\n//
e1052144 13574}
39fd3d4f
SJR
13575' >>$CONFIG_STATUS || ac_write_fail=1
13576rm -f conf$$subs.awk
13577cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13578_ACAWK
d6a4bcb5 13579cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
39fd3d4f
SJR
13580 for (key in S) S_is_set[key] = 1
13581 FS = "\a"
13582 \$ac_cs_awk_pipe_init
e1052144 13583}
39fd3d4f
SJR
13584{
13585 line = $ 0
13586 nfields = split(line, field, "@")
13587 substed = 0
13588 len = length(field[1])
13589 for (i = 2; i < nfields; i++) {
13590 key = field[i]
13591 keylen = length(key)
13592 if (S_is_set[key]) {
13593 value = S[key]
13594 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13595 len += length(value) + length(field[++i])
13596 substed = 1
13597 } else
13598 len += 1 + keylen
13599 }
13600 if (nfields == 3 && !substed) {
13601 key = field[2]
13602 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
13603 \$ac_cs_awk_read_file
13604 next
13605 }
13606 }
13607 print line
488c75a6 13608}
39fd3d4f
SJR
13609\$ac_cs_awk_pipe_fini
13610_ACAWK
e1052144 13611_ACEOF
39fd3d4f
SJR
13612cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13613if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
13614 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
13615else
13616 cat
d6a4bcb5
TB
13617fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
13618 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
b0cacab0 13619_ACEOF
e1052144 13620
d6a4bcb5
TB
13621# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
13622# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
e1052144
TT
13623# trailing colons and then remove the whole line if VPATH becomes empty
13624# (actually we leave an empty line to preserve line numbers).
13625if test "x$srcdir" = x.; then
d6a4bcb5
TB
13626 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
13627h
13628s///
13629s/^/:/
13630s/[ ]*$/:/
13631s/:\$(srcdir):/:/g
13632s/:\${srcdir}:/:/g
13633s/:@srcdir@:/:/g
13634s/^:*//
e1052144 13635s/:*$//
d6a4bcb5
TB
13636x
13637s/\(=[ ]*\).*/\1/
13638G
13639s/\n//
e1052144
TT
13640s/^[^=]*=[ ]*$//
13641}'
13642fi
13643
39fd3d4f 13644cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
e1052144
TT
13645fi # test -n "$CONFIG_FILES"
13646
d1154eb4
TT
13647# Set up the scripts for CONFIG_HEADERS section.
13648# No need to generate them if there are no CONFIG_HEADERS.
13649# This happens for instance with `./config.status Makefile'.
13650if test -n "$CONFIG_HEADERS"; then
d6a4bcb5 13651cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
d1154eb4
TT
13652BEGIN {
13653_ACEOF
13654
13655# Transform confdefs.h into an awk script `defines.awk', embedded as
13656# here-document in config.status, that substitutes the proper values into
13657# config.h.in to produce config.h.
13658
13659# Create a delimiter string that does not exist in confdefs.h, to ease
13660# handling of long lines.
13661ac_delim='%!_!# '
13662for ac_last_try in false false :; do
d6a4bcb5
TB
13663 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
13664 if test -z "$ac_tt"; then
d1154eb4
TT
13665 break
13666 elif $ac_last_try; then
d6a4bcb5 13667 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
d1154eb4
TT
13668 else
13669 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
13670 fi
13671done
13672
13673# For the awk script, D is an array of macro values keyed by name,
13674# likewise P contains macro parameters if any. Preserve backslash
13675# newline sequences.
13676
13677ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
13678sed -n '
13679s/.\{148\}/&'"$ac_delim"'/g
13680t rset
13681:rset
13682s/^[ ]*#[ ]*define[ ][ ]*/ /
13683t def
13684d
13685:def
13686s/\\$//
13687t bsnl
13688s/["\\]/\\&/g
13689s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13690D["\1"]=" \3"/p
13691s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
13692d
13693:bsnl
13694s/["\\]/\\&/g
13695s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
13696D["\1"]=" \3\\\\\\n"\\/p
13697t cont
13698s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
13699t cont
13700d
13701:cont
13702n
13703s/.\{148\}/&'"$ac_delim"'/g
13704t clear
13705:clear
13706s/\\$//
13707t bsnlc
13708s/["\\]/\\&/g; s/^/"/; s/$/"/p
13709d
13710:bsnlc
13711s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
13712b cont
13713' <confdefs.h | sed '
13714s/'"$ac_delim"'/"\\\
13715"/g' >>$CONFIG_STATUS || ac_write_fail=1
13716
13717cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13718 for (key in D) D_is_set[key] = 1
13719 FS = "\a"
13720}
13721/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
13722 line = \$ 0
13723 split(line, arg, " ")
13724 if (arg[1] == "#") {
13725 defundef = arg[2]
13726 mac1 = arg[3]
13727 } else {
13728 defundef = substr(arg[1], 2)
13729 mac1 = arg[2]
13730 }
13731 split(mac1, mac2, "(") #)
13732 macro = mac2[1]
13733 prefix = substr(line, 1, index(line, defundef) - 1)
13734 if (D_is_set[macro]) {
13735 # Preserve the white space surrounding the "#".
13736 print prefix "define", macro P[macro] D[macro]
13737 next
13738 } else {
13739 # Replace #undef with comments. This is necessary, for example,
13740 # in the case of _POSIX_SOURCE, which is predefined and required
13741 # on some systems where configure will not decide to define it.
13742 if (defundef == "undef") {
13743 print "/*", prefix defundef, macro, "*/"
13744 next
13745 }
13746 }
13747}
13748{ print }
13749_ACAWK
13750_ACEOF
13751cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
d6a4bcb5 13752 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
d1154eb4
TT
13753fi # test -n "$CONFIG_HEADERS"
13754
e1052144 13755
d1154eb4 13756eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
39fd3d4f
SJR
13757shift
13758for ac_tag
e1052144
TT
13759do
13760 case $ac_tag in
13761 :[FHLC]) ac_mode=$ac_tag; continue;;
13762 esac
13763 case $ac_mode$ac_tag in
13764 :[FHL]*:*);;
d6a4bcb5 13765 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
e1052144
TT
13766 :[FH]-) ac_tag=-:-;;
13767 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
13768 esac
13769 ac_save_IFS=$IFS
13770 IFS=:
13771 set x $ac_tag
13772 IFS=$ac_save_IFS
13773 shift
13774 ac_file=$1
13775 shift
13776
13777 case $ac_mode in
13778 :L) ac_source=$1;;
13779 :[FH])
13780 ac_file_inputs=
13781 for ac_f
13782 do
13783 case $ac_f in
d6a4bcb5 13784 -) ac_f="$ac_tmp/stdin";;
e1052144
TT
13785 *) # Look for the file first in the build tree, then in the source tree
13786 # (if the path is not absolute). The absolute path cannot be DOS-style,
13787 # because $ac_f cannot contain `:'.
13788 test -f "$ac_f" ||
13789 case $ac_f in
13790 [\\/$]*) false;;
13791 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
13792 esac ||
d6a4bcb5 13793 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
e1052144 13794 esac
39fd3d4f 13795 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
57aa50d4 13796 as_fn_append ac_file_inputs " '$ac_f'"
e1052144
TT
13797 done
13798
13799 # Let's still pretend it is `configure' which instantiates (i.e., don't
13800 # use $as_me), people would be surprised to read:
13801 # /* config.h. Generated by config.status. */
39fd3d4f
SJR
13802 configure_input='Generated from '`
13803 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
13804 `' by configure.'
e1052144
TT
13805 if test x"$ac_file" != x-; then
13806 configure_input="$ac_file. $configure_input"
57aa50d4 13807 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
39fd3d4f 13808$as_echo "$as_me: creating $ac_file" >&6;}
e1052144 13809 fi
39fd3d4f
SJR
13810 # Neutralize special characters interpreted by sed in replacement strings.
13811 case $configure_input in #(
13812 *\&* | *\|* | *\\* )
13813 ac_sed_conf_input=`$as_echo "$configure_input" |
13814 sed 's/[\\\\&|]/\\\\&/g'`;; #(
13815 *) ac_sed_conf_input=$configure_input;;
13816 esac
e1052144
TT
13817
13818 case $ac_tag in
d6a4bcb5
TB
13819 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13820 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
e1052144
TT
13821 esac
13822 ;;
b0cacab0
TT
13823 esac
13824
e1052144 13825 ac_dir=`$as_dirname -- "$ac_file" ||
b0cacab0
TT
13826$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13827 X"$ac_file" : 'X\(//\)[^/]' \| \
13828 X"$ac_file" : 'X\(//\)$' \| \
e1052144 13829 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
39fd3d4f 13830$as_echo X"$ac_file" |
e1052144
TT
13831 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13832 s//\1/
13833 q
13834 }
13835 /^X\(\/\/\)[^/].*/{
13836 s//\1/
13837 q
13838 }
13839 /^X\(\/\/\)$/{
13840 s//\1/
13841 q
13842 }
13843 /^X\(\/\).*/{
13844 s//\1/
13845 q
13846 }
13847 s/.*/./; q'`
57aa50d4 13848 as_dir="$ac_dir"; as_fn_mkdir_p
b0cacab0
TT
13849 ac_builddir=.
13850
e1052144
TT
13851case "$ac_dir" in
13852.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
13853*)
39fd3d4f 13854 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
e1052144 13855 # A ".." for each directory in $ac_dir_suffix.
39fd3d4f 13856 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
e1052144
TT
13857 case $ac_top_builddir_sub in
13858 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13859 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
13860 esac ;;
13861esac
13862ac_abs_top_builddir=$ac_pwd
13863ac_abs_builddir=$ac_pwd$ac_dir_suffix
13864# for backward compatibility:
13865ac_top_builddir=$ac_top_build_prefix
93636bde 13866
b0cacab0 13867case $srcdir in
e1052144 13868 .) # We are building in place.
b0cacab0 13869 ac_srcdir=.
e1052144
TT
13870 ac_top_srcdir=$ac_top_builddir_sub
13871 ac_abs_top_srcdir=$ac_pwd ;;
13872 [\\/]* | ?:[\\/]* ) # Absolute name.
b0cacab0 13873 ac_srcdir=$srcdir$ac_dir_suffix;
e1052144
TT
13874 ac_top_srcdir=$srcdir
13875 ac_abs_top_srcdir=$srcdir ;;
13876 *) # Relative name.
13877 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13878 ac_top_srcdir=$ac_top_build_prefix$srcdir
13879 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b0cacab0 13880esac
e1052144 13881ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
b0cacab0 13882
b0cacab0 13883
e1052144
TT
13884 case $ac_mode in
13885 :F)
13886 #
13887 # CONFIG_FILE
13888 #
50e1e10f 13889
b0cacab0
TT
13890 case $INSTALL in
13891 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
e1052144 13892 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
50e1e10f 13893 esac
93613951
TT
13894 ac_MKDIR_P=$MKDIR_P
13895 case $MKDIR_P in
13896 [\\/$]* | ?:[\\/]* ) ;;
13897 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
13898 esac
e1052144 13899_ACEOF
50e1e10f 13900
39fd3d4f 13901cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
e1052144
TT
13902# If the template does not know about datarootdir, expand it.
13903# FIXME: This hack should be removed a few years after 2.60.
13904ac_datarootdir_hack=; ac_datarootdir_seen=
39fd3d4f
SJR
13905ac_sed_dataroot='
13906/datarootdir/ {
e1052144
TT
13907 p
13908 q
13909}
13910/@datadir@/p
13911/@docdir@/p
13912/@infodir@/p
13913/@localedir@/p
57aa50d4 13914/@mandir@/p'
39fd3d4f 13915case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
e1052144
TT
13916*datarootdir*) ac_datarootdir_seen=yes;;
13917*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
57aa50d4 13918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
39fd3d4f 13919$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
b0cacab0 13920_ACEOF
39fd3d4f 13921cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
e1052144
TT
13922 ac_datarootdir_hack='
13923 s&@datadir@&$datadir&g
13924 s&@docdir@&$docdir&g
13925 s&@infodir@&$infodir&g
13926 s&@localedir@&$localedir&g
13927 s&@mandir@&$mandir&g
57aa50d4 13928 s&\\\${datarootdir}&$datarootdir&g' ;;
e1052144
TT
13929esac
13930_ACEOF
13931
13932# Neutralize VPATH when `$srcdir' = `.'.
13933# Shell code in configure.ac might set extrasub.
13934# FIXME: do we really want to maintain this feature?
39fd3d4f
SJR
13935cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13936ac_sed_extra="$ac_vpsub
b0cacab0
TT
13937$extrasub
13938_ACEOF
39fd3d4f 13939cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b0cacab0
TT
13940:t
13941/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
39fd3d4f 13942s|@configure_input@|$ac_sed_conf_input|;t t
e1052144 13943s&@top_builddir@&$ac_top_builddir_sub&;t t
39fd3d4f 13944s&@top_build_prefix@&$ac_top_build_prefix&;t t
e1052144
TT
13945s&@srcdir@&$ac_srcdir&;t t
13946s&@abs_srcdir@&$ac_abs_srcdir&;t t
13947s&@top_srcdir@&$ac_top_srcdir&;t t
13948s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13949s&@builddir@&$ac_builddir&;t t
13950s&@abs_builddir@&$ac_abs_builddir&;t t
13951s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13952s&@INSTALL@&$ac_INSTALL&;t t
93613951 13953s&@MKDIR_P@&$ac_MKDIR_P&;t t
e1052144 13954$ac_datarootdir_hack
39fd3d4f
SJR
13955"
13956eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
13957if $ac_cs_awk_getline; then
d6a4bcb5 13958 $AWK -f "$ac_tmp/subs.awk"
39fd3d4f 13959else
d6a4bcb5
TB
13960 $AWK -f "$ac_tmp/subs.awk" | $SHELL
13961fi \
13962 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
e1052144
TT
13963
13964test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
d6a4bcb5
TB
13965 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
13966 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
13967 "$ac_tmp/out"`; test -z "$ac_out"; } &&
57aa50d4 13968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d6a4bcb5 13969which seems to be undefined. Please make sure it is defined" >&5
39fd3d4f 13970$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d6a4bcb5 13971which seems to be undefined. Please make sure it is defined" >&2;}
e1052144 13972
d6a4bcb5 13973 rm -f "$ac_tmp/stdin"
e1052144 13974 case $ac_file in
d6a4bcb5
TB
13975 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
13976 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
39fd3d4f 13977 esac \
d6a4bcb5 13978 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
e1052144 13979 ;;
d1154eb4
TT
13980 :H)
13981 #
13982 # CONFIG_HEADER
13983 #
13984 if test x"$ac_file" != x-; then
13985 {
13986 $as_echo "/* $configure_input */" \
d6a4bcb5
TB
13987 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13988 } >"$ac_tmp/config.h" \
13989 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13990 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
d1154eb4
TT
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
13992$as_echo "$as_me: $ac_file is unchanged" >&6;}
13993 else
13994 rm -f "$ac_file"
d6a4bcb5
TB
13995 mv "$ac_tmp/config.h" "$ac_file" \
13996 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
d1154eb4
TT
13997 fi
13998 else
13999 $as_echo "/* $configure_input */" \
d6a4bcb5
TB
14000 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
14001 || as_fn_error $? "could not create -" "$LINENO" 5
d1154eb4
TT
14002 fi
14003 ;;
07a0db15 14004
57aa50d4 14005 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
39fd3d4f 14006$as_echo "$as_me: executing $ac_file commands" >&6;}
e1052144
TT
14007 ;;
14008 esac
a04eba3f 14009
b0cacab0 14010
e1052144 14011 case $ac_file$ac_mode in
93613951 14012 "po-directories":C)
a04eba3f
TT
14013 for ac_file in $CONFIG_FILES; do
14014 # Support "outfile[:infile[:infile...]]"
14015 case "$ac_file" in
14016 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
14017 esac
14018 # PO directories have a Makefile.in generated from Makefile.in.in.
14019 case "$ac_file" in */Makefile.in)
14020 # Adjust a relative srcdir.
14021 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
93613951 14022 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
a04eba3f
TT
14023 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
14024 # In autoconf-2.13 it is called $ac_given_srcdir.
14025 # In autoconf-2.50 it is called $srcdir.
14026 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
14027 case "$ac_given_srcdir" in
14028 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
14029 /*) top_srcdir="$ac_given_srcdir" ;;
14030 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
14031 esac
93613951
TT
14032 # Treat a directory as a PO directory if and only if it has a
14033 # POTFILES.in file. This allows packages to have multiple PO
14034 # directories under different names or in different locations.
a04eba3f
TT
14035 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
14036 rm -f "$ac_dir/POTFILES"
14037 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
93613951
TT
14038 gt_tab=`printf '\t'`
14039 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
14040 POMAKEFILEDEPS="POTFILES.in"
14041 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
a04eba3f
TT
14042 # on $ac_dir but don't depend on user-specified configuration
14043 # parameters.
14044 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
14045 # The LINGUAS file contains the set of available languages.
b0cacab0 14046 if test -n "$OBSOLETE_ALL_LINGUAS"; then
a04eba3f
TT
14047 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
14048 fi
bdcd5f22 14049 ALL_LINGUAS=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
b0cacab0
TT
14050 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
14051 else
14052 # The set of available languages was given in configure.in.
bdcd5f22 14053 ALL_LINGUAS=$OBSOLETE_ALL_LINGUAS
a04eba3f 14054 fi
b0cacab0
TT
14055 # Compute POFILES
14056 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
14057 # Compute UPDATEPOFILES
14058 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
14059 # Compute DUMMYPOFILES
14060 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
14061 # Compute GMOFILES
14062 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
a04eba3f
TT
14063 case "$ac_given_srcdir" in
14064 .) srcdirpre= ;;
14065 *) srcdirpre='$(srcdir)/' ;;
14066 esac
14067 POFILES=
a04eba3f
TT
14068 UPDATEPOFILES=
14069 DUMMYPOFILES=
b0cacab0 14070 GMOFILES=
a04eba3f
TT
14071 for lang in $ALL_LINGUAS; do
14072 POFILES="$POFILES $srcdirpre$lang.po"
a04eba3f
TT
14073 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
14074 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
b0cacab0 14075 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
a04eba3f
TT
14076 done
14077 # CATALOGS depends on both $ac_dir and the user's LINGUAS
14078 # environment variable.
14079 INST_LINGUAS=
14080 if test -n "$ALL_LINGUAS"; then
14081 for presentlang in $ALL_LINGUAS; do
14082 useit=no
14083 if test "%UNSET%" != "$LINGUAS"; then
14084 desiredlanguages="$LINGUAS"
14085 else
14086 desiredlanguages="$ALL_LINGUAS"
14087 fi
14088 for desiredlang in $desiredlanguages; do
14089 # Use the presentlang catalog if desiredlang is
14090 # a. equal to presentlang, or
14091 # b. a variant of presentlang (because in this case,
14092 # presentlang can be used as a fallback for messages
14093 # which are not translated in the desiredlang catalog).
14094 case "$desiredlang" in
14095 "$presentlang"*) useit=yes;;
14096 esac
14097 done
14098 if test $useit = yes; then
14099 INST_LINGUAS="$INST_LINGUAS $presentlang"
14100 fi
14101 done
14102 fi
14103 CATALOGS=
14104 if test -n "$INST_LINGUAS"; then
14105 for lang in $INST_LINGUAS; do
14106 CATALOGS="$CATALOGS $lang.gmo"
14107 done
14108 fi
14109 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
b0cacab0 14110 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
14111 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
14112 if test -f "$f"; then
14113 case "$f" in
14114 *.orig | *.bak | *~) ;;
14115 *) cat "$f" >> "$ac_dir/Makefile" ;;
14116 esac
14117 fi
14118 done
14119 fi
14120 ;;
a64c9c13 14121 esac
b0cacab0 14122 done ;;
e1052144 14123
b0cacab0 14124 esac
e1052144 14125done # for ac_tag
07a0db15 14126
b0cacab0 14127
57aa50d4 14128as_fn_exit 0
b0cacab0 14129_ACEOF
b0cacab0
TT
14130ac_clean_files=$ac_clean_files_save
14131
39fd3d4f 14132test $ac_write_fail = 0 ||
d6a4bcb5 14133 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
39fd3d4f 14134
b0cacab0
TT
14135
14136# configure is writing to config.log, and then calls config.status.
14137# config.status does its own redirection, appending to config.log.
14138# Unfortunately, on DOS this fails, as config.log is still kept open
14139# by configure, so config.status won't be able to write to it; its
14140# output is simply discarded. So we exec the FD to /dev/null,
14141# effectively closing config.log, so it can be properly (re)opened and
14142# appended to by config.status. When coming back to configure, we
14143# need to make the FD available again.
14144if test "$no_create" != yes; then
14145 ac_cs_success=:
14146 ac_config_status_args=
14147 test "$silent" = yes &&
14148 ac_config_status_args="$ac_config_status_args --quiet"
14149 exec 5>/dev/null
14150 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14151 exec 5>>config.log
14152 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14153 # would make configure fail if this is the last instruction.
d6a4bcb5 14154 $ac_cs_success || as_fn_exit 1
b0cacab0 14155fi
39fd3d4f 14156if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
57aa50d4 14157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
39fd3d4f
SJR
14158$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14159fi
50e1e10f 14160
ee683a13 14161if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi