]> git.ipfire.org Git - thirdparty/e2fsprogs.git/blame - configure
create_inode: do not fail if filesystem doesn't support xattr
[thirdparty/e2fsprogs.git] / configure
CommitLineData
50e1e10f 1#! /bin/sh
50e1e10f 2# Guess values for system-dependent variables and create Makefiles.
54445dc2 3# Generated by GNU Autoconf 2.71.
61ef2474 4#
50e1e10f 5#
54445dc2
TT
6# Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
7# Inc.
61ef2474 8#
57aa50d4 9#
50e1e10f
TT
10# This configure script is free software; the Free Software Foundation
11# gives unlimited permission to copy, distribute and modify it.
57aa50d4
TT
12## -------------------- ##
13## M4sh Initialization. ##
14## -------------------- ##
b0cacab0 15
29a5deed
TT
16# Be more Bourne compatible
17DUALCASE=1; export DUALCASE # for MKS sh
54445dc2
TT
18as_nop=:
19if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20then :
b0cacab0
TT
21 emulate sh
22 NULLCMD=:
39fd3d4f 23 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b0cacab0
TT
24 # is contrary to our usage. Disable this feature.
25 alias -g '${1+"$@"}'='"$@"'
e1052144 26 setopt NO_GLOB_SUBST
54445dc2 27else $as_nop
57aa50d4
TT
28 case `(set -o) 2>/dev/null` in #(
29 *posix*) :
30 set -o posix ;; #(
31 *) :
32 ;;
29a5deed 33esac
b0cacab0 34fi
29a5deed
TT
35
36
54445dc2
TT
37
38# Reset variables that may have inherited troublesome values from
39# the environment.
40
41# IFS needs to be set, to space, tab, and newline, in precisely that order.
42# (If _AS_PATH_WALK were called with IFS unset, it would have the
43# side effect of setting IFS to empty, thus disabling word splitting.)
44# Quoting is to prevent editors from complaining about space-tab.
39fd3d4f
SJR
45as_nl='
46'
47export as_nl
54445dc2
TT
48IFS=" "" $as_nl"
49
50PS1='$ '
51PS2='> '
52PS4='+ '
53
54# Ensure predictable behavior from utilities with locale-dependent output.
55LC_ALL=C
56export LC_ALL
57LANGUAGE=C
58export LANGUAGE
59
60# We cannot yet rely on "unset" to work, but we need these variables
61# to be unset--not just set to an empty or harmless value--now, to
62# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
63# also avoids known problems related to "unset" and subshell syntax
64# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
65for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
66do eval test \${$as_var+y} \
67 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
68done
69
70# Ensure that fds 0, 1, and 2 are open.
71if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
72if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
73if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
39fd3d4f
SJR
74
75# The user is always right.
54445dc2 76if ${PATH_SEPARATOR+false} :; then
39fd3d4f
SJR
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
81 }
e1052144
TT
82fi
83
b0cacab0 84
e1052144 85# Find who we are. Look in the path if we contain no directory separator.
d6a4bcb5 86as_myself=
57aa50d4 87case $0 in #((
e1052144
TT
88 *[\\/]* ) as_myself=$0 ;;
89 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
90for as_dir in $PATH
91do
92 IFS=$as_save_IFS
54445dc2
TT
93 case $as_dir in #(((
94 '') as_dir=./ ;;
95 */) ;;
96 *) as_dir=$as_dir/ ;;
97 esac
98 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
57aa50d4 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
54445dc2 110 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
57aa50d4 111 exit 1
e1052144
TT
112fi
113
57aa50d4 114
d6a4bcb5
TB
115# Use a proper internal environment variable to ensure we don't fall
116 # into an infinite loop, continuously re-executing ourselves.
117 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
118 _as_can_reexec=no; export _as_can_reexec;
119 # We cannot yet assume a decent shell, so we have to provide a
120# neutralization value for shells without unset; and this also
121# works around shells that cannot unset nonexistent variables.
122# Preserve -v and -x to the replacement shell.
123BASH_ENV=/dev/null
124ENV=/dev/null
125(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
126case $- in # ((((
127 *v*x* | *x*v* ) as_opts=-vx ;;
128 *v* ) as_opts=-v ;;
129 *x* ) as_opts=-x ;;
130 * ) as_opts= ;;
131esac
132exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
133# Admittedly, this is quite paranoid, since all the known shells bail
134# out after a failed `exec'.
54445dc2
TT
135printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
136exit 255
d6a4bcb5
TB
137 fi
138 # We don't want this to propagate to other subprocesses.
139 { _as_can_reexec=; unset _as_can_reexec;}
57aa50d4 140if test "x$CONFIG_SHELL" = x; then
54445dc2
TT
141 as_bourne_compatible="as_nop=:
142if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
143then :
57aa50d4
TT
144 emulate sh
145 NULLCMD=:
146 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
147 # is contrary to our usage. Disable this feature.
148 alias -g '\${1+\"\$@\"}'='\"\$@\"'
149 setopt NO_GLOB_SUBST
54445dc2 150else \$as_nop
57aa50d4
TT
151 case \`(set -o) 2>/dev/null\` in #(
152 *posix*) :
153 set -o posix ;; #(
154 *) :
155 ;;
156esac
157fi
158"
159 as_required="as_fn_return () { (exit \$1); }
160as_fn_success () { as_fn_return 0; }
161as_fn_failure () { as_fn_return 1; }
162as_fn_ret_success () { return 0; }
163as_fn_ret_failure () { return 1; }
164
165exitcode=0
166as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
54445dc2
TT
170if ( set x; as_fn_ret_success y && test x = \"\$1\" )
171then :
57aa50d4 172
54445dc2 173else \$as_nop
57aa50d4
TT
174 exitcode=1; echo positional parameters were not saved.
175fi
d6a4bcb5 176test x\$exitcode = x0 || exit 1
54445dc2
TT
177blah=\$(echo \$(echo blah))
178test x\"\$blah\" = xblah || exit 1
d6a4bcb5 179test -x / || exit 1"
57aa50d4
TT
180 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
181 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
182 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
183 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
184test \$(( 1 + 1 )) = 2 || exit 1"
54445dc2
TT
185 if (eval "$as_required") 2>/dev/null
186then :
57aa50d4 187 as_have_required=yes
54445dc2 188else $as_nop
57aa50d4
TT
189 as_have_required=no
190fi
54445dc2
TT
191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
192then :
57aa50d4 193
54445dc2 194else $as_nop
57aa50d4
TT
195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
196as_found=false
197for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
198do
199 IFS=$as_save_IFS
54445dc2
TT
200 case $as_dir in #(((
201 '') as_dir=./ ;;
202 */) ;;
203 *) as_dir=$as_dir/ ;;
204 esac
57aa50d4
TT
205 as_found=:
206 case $as_dir in #(
207 /*)
208 for as_base in sh bash ksh sh5; do
209 # Try only shells that exist, to save several forks.
54445dc2 210 as_shell=$as_dir$as_base
57aa50d4 211 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
54445dc2
TT
212 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
213then :
57aa50d4 214 CONFIG_SHELL=$as_shell as_have_required=yes
54445dc2
TT
215 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
216then :
57aa50d4
TT
217 break 2
218fi
219fi
220 done;;
221 esac
222 as_found=false
223done
57aa50d4 224IFS=$as_save_IFS
54445dc2
TT
225if $as_found
226then :
227
228else $as_nop
229 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
230 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
231then :
232 CONFIG_SHELL=$SHELL as_have_required=yes
233fi
234fi
57aa50d4
TT
235
236
54445dc2
TT
237 if test "x$CONFIG_SHELL" != x
238then :
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'.
54445dc2 256printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
d6a4bcb5 257exit 255
57aa50d4
TT
258fi
259
54445dc2
TT
260 if test x$as_have_required = xno
261then :
262 printf "%s\n" "$0: This script requires a shell more modern than all"
263 printf "%s\n" "$0: the shells that I found on your system."
264 if test ${ZSH_VERSION+y} ; then
265 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
266 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
57aa50d4 267 else
54445dc2 268 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system,
57aa50d4
TT
269$0: including any error possibly output before this
270$0: message. Then install a modern shell, or manually run
271$0: the script under such a shell if you do have one."
272 fi
273 exit 1
274fi
275fi
276fi
277SHELL=${CONFIG_SHELL-/bin/sh}
278export SHELL
279# Unset more variables known to interfere with behavior of common tools.
280CLICOLOR_FORCE= GREP_OPTIONS=
281unset CLICOLOR_FORCE GREP_OPTIONS
282
283## --------------------- ##
284## M4sh Shell Functions. ##
285## --------------------- ##
286# as_fn_unset VAR
287# ---------------
288# Portably unset VAR.
289as_fn_unset ()
290{
291 { eval $1=; unset $1;}
292}
293as_unset=as_fn_unset
294
54445dc2 295
57aa50d4
TT
296# as_fn_set_status STATUS
297# -----------------------
298# Set $? to STATUS, without forking.
299as_fn_set_status ()
300{
301 return $1
302} # as_fn_set_status
303
304# as_fn_exit STATUS
305# -----------------
306# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
307as_fn_exit ()
308{
309 set +e
310 as_fn_set_status $1
311 exit $1
312} # as_fn_exit
54445dc2
TT
313# as_fn_nop
314# ---------
315# Do nothing but, unlike ":", preserve the value of $?.
316as_fn_nop ()
317{
318 return $?
319}
320as_nop=as_fn_nop
57aa50d4
TT
321
322# as_fn_mkdir_p
323# -------------
324# Create "$as_dir" as a directory, including parents if necessary.
325as_fn_mkdir_p ()
326{
327
328 case $as_dir in #(
329 -*) as_dir=./$as_dir;;
330 esac
331 test -d "$as_dir" || eval $as_mkdir_p || {
332 as_dirs=
333 while :; do
334 case $as_dir in #(
54445dc2 335 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
57aa50d4
TT
336 *) as_qdir=$as_dir;;
337 esac
338 as_dirs="'$as_qdir' $as_dirs"
339 as_dir=`$as_dirname -- "$as_dir" ||
340$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
341 X"$as_dir" : 'X\(//\)[^/]' \| \
342 X"$as_dir" : 'X\(//\)$' \| \
343 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
54445dc2 344printf "%s\n" X"$as_dir" |
57aa50d4
TT
345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
346 s//\1/
347 q
348 }
349 /^X\(\/\/\)[^/].*/{
350 s//\1/
351 q
352 }
353 /^X\(\/\/\)$/{
354 s//\1/
355 q
356 }
357 /^X\(\/\).*/{
358 s//\1/
359 q
360 }
361 s/.*/./; q'`
362 test -d "$as_dir" && break
363 done
364 test -z "$as_dirs" || eval "mkdir $as_dirs"
d6a4bcb5 365 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
57aa50d4
TT
366
367
368} # as_fn_mkdir_p
d6a4bcb5
TB
369
370# as_fn_executable_p FILE
371# -----------------------
372# Test if FILE is an executable regular file.
373as_fn_executable_p ()
374{
375 test -f "$1" && test -x "$1"
376} # as_fn_executable_p
57aa50d4
TT
377# as_fn_append VAR VALUE
378# ----------------------
379# Append the text in VALUE to the end of the definition contained in VAR. Take
380# advantage of any shell optimizations that allow amortized linear growth over
381# repeated appends, instead of the typical quadratic growth present in naive
382# implementations.
54445dc2
TT
383if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
384then :
57aa50d4
TT
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
54445dc2 389else $as_nop
57aa50d4
TT
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
54445dc2
TT
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
402then :
57aa50d4
TT
403 eval 'as_fn_arith ()
404 {
405 as_val=$(( $* ))
406 }'
54445dc2 407else $as_nop
57aa50d4
TT
408 as_fn_arith ()
409 {
410 as_val=`expr "$@" || test $? -eq 1`
411 }
412fi # as_fn_arith
413
54445dc2
TT
414# as_fn_nop
415# ---------
416# Do nothing but, unlike ":", preserve the value of $?.
417as_fn_nop ()
418{
419 return $?
420}
421as_nop=as_fn_nop
57aa50d4 422
d6a4bcb5
TB
423# as_fn_error STATUS ERROR [LINENO LOG_FD]
424# ----------------------------------------
57aa50d4
TT
425# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
426# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d6a4bcb5 427# script with STATUS, using 1 if that was 0.
57aa50d4
TT
428as_fn_error ()
429{
d6a4bcb5
TB
430 as_status=$1; test $as_status -eq 0 && as_status=1
431 if test "$4"; then
432 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
54445dc2 433 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
57aa50d4 434 fi
54445dc2 435 printf "%s\n" "$as_me: error: $2" >&2
57aa50d4
TT
436 as_fn_exit $as_status
437} # as_fn_error
438
e1052144
TT
439if expr a : '\(a\)' >/dev/null 2>&1 &&
440 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b0cacab0
TT
441 as_expr=expr
442else
443 as_expr=false
444fi
445
e1052144 446if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b0cacab0
TT
447 as_basename=basename
448else
449 as_basename=false
450fi
451
57aa50d4
TT
452if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
453 as_dirname=dirname
454else
455 as_dirname=false
456fi
b0cacab0 457
e1052144 458as_me=`$as_basename -- "$0" ||
b0cacab0
TT
459$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
460 X"$0" : 'X\(//\)$' \| \
e1052144 461 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
54445dc2 462printf "%s\n" X/"$0" |
e1052144
TT
463 sed '/^.*\/\([^/][^/]*\)\/*$/{
464 s//\1/
465 q
466 }
467 /^X\/\(\/\/\)$/{
468 s//\1/
469 q
470 }
471 /^X\/\(\/\).*/{
472 s//\1/
473 q
474 }
475 s/.*/./; q'`
b0cacab0 476
57aa50d4
TT
477# Avoid depending upon Character Ranges.
478as_cr_letters='abcdefghijklmnopqrstuvwxyz'
479as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
480as_cr_Letters=$as_cr_letters$as_cr_LETTERS
481as_cr_digits='0123456789'
482as_cr_alnum=$as_cr_Letters$as_cr_digits
b0cacab0 483
b0cacab0 484
57aa50d4
TT
485 as_lineno_1=$LINENO as_lineno_1a=$LINENO
486 as_lineno_2=$LINENO as_lineno_2a=$LINENO
487 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
488 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
489 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
490 sed -n '
491 p
492 /[$]LINENO/=
493 ' <$as_myself |
494 sed '
495 s/[$]LINENO.*/&-/
496 t lineno
497 b
498 :lineno
499 N
500 :loop
501 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
502 t loop
503 s/-\n.*//
504 ' >$as_me.lineno &&
505 chmod +x "$as_me.lineno" ||
54445dc2 506 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
e1052144 507
d6a4bcb5
TB
508 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
509 # already done that, so ensure we don't try to do so again and fall
510 # in an infinite loop. This has already happened in practice.
511 _as_can_reexec=no; export _as_can_reexec
57aa50d4
TT
512 # Don't try to exec as it changes $[0], causing all sort of problems
513 # (the dirname of $[0] is not the place where we might find the
514 # original and so on. Autoconf is especially sensitive to this).
515 . "./$as_me.lineno"
516 # Exit status is that of the last command.
517 exit
e1052144
TT
518}
519
54445dc2
TT
520
521# Determine whether it's possible to make 'echo' print without a newline.
522# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
523# for compatibility with existing Makefiles.
57aa50d4
TT
524ECHO_C= ECHO_N= ECHO_T=
525case `echo -n x` in #(((((
526-n*)
527 case `echo 'xy\c'` in
528 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
529 xy) ECHO_C='\c';;
530 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
531 ECHO_T=' ';;
532 esac;;
533*)
534 ECHO_N='-n';;
535esac
b0cacab0 536
54445dc2
TT
537# For backward compatibility with old third-party macros, we provide
538# the shell variables $as_echo and $as_echo_n. New code should use
539# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
540as_echo='printf %s\n'
541as_echo_n='printf %s'
542
543
57aa50d4
TT
544rm -f conf$$ conf$$.exe conf$$.file
545if test -d conf$$.dir; then
546 rm -f conf$$.dir/conf$$.file
547else
548 rm -f conf$$.dir
549 mkdir conf$$.dir 2>/dev/null
e1052144 550fi
57aa50d4
TT
551if (echo >conf$$.file) 2>/dev/null; then
552 if ln -s conf$$.file conf$$ 2>/dev/null; then
553 as_ln_s='ln -s'
554 # ... but there are two gotchas:
555 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
556 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d6a4bcb5 557 # In both cases, we have to default to `cp -pR'.
57aa50d4 558 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d6a4bcb5 559 as_ln_s='cp -pR'
57aa50d4
TT
560 elif ln conf$$.file conf$$ 2>/dev/null; then
561 as_ln_s=ln
562 else
d6a4bcb5 563 as_ln_s='cp -pR'
57aa50d4 564 fi
e1052144 565else
d6a4bcb5 566 as_ln_s='cp -pR'
e1052144 567fi
57aa50d4
TT
568rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
569rmdir conf$$.dir 2>/dev/null
b0cacab0 570
57aa50d4
TT
571if mkdir -p . 2>/dev/null; then
572 as_mkdir_p='mkdir -p "$as_dir"'
573else
574 test -d ./-p && rmdir ./-p
575 as_mkdir_p=false
e1052144
TT
576fi
577
d6a4bcb5
TB
578as_test_x='test -x'
579as_executable_p=as_fn_executable_p
e1052144 580
57aa50d4
TT
581# Sed expression to map a string onto a valid CPP name.
582as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
e1052144 583
57aa50d4
TT
584# Sed expression to map a string onto a valid variable name.
585as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
e1052144 586
29a5deed 587
61ef2474
TT
588test -n "$DJDIR" || exec 7<&0 </dev/null
589exec 6>&1
b0cacab0
TT
590
591# Name of the host.
d6a4bcb5 592# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
b0cacab0
TT
593# so uname gets run too.
594ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
50e1e10f 595
b0cacab0
TT
596#
597# Initializations.
598#
50e1e10f 599ac_default_prefix=/usr/local
e1052144 600ac_clean_files=
b0cacab0 601ac_config_libobj_dir=.
e1052144 602LIBOBJS=
b0cacab0
TT
603cross_compiling=no
604subdirs=
605MFLAGS=
606MAKEFLAGS=
b0cacab0 607
b0cacab0 608# Identity of this package.
54445dc2
TT
609PACKAGE_NAME=''
610PACKAGE_TARNAME=''
611PACKAGE_VERSION=''
612PACKAGE_STRING=''
613PACKAGE_BUGREPORT=''
614PACKAGE_URL=''
b0cacab0
TT
615
616ac_unique_file="version.h"
617# Factoring default headers for most tests.
618ac_includes_default="\
54445dc2
TT
619#include <stddef.h>
620#ifdef HAVE_STDIO_H
621# include <stdio.h>
b0cacab0 622#endif
54445dc2 623#ifdef HAVE_STDLIB_H
b0cacab0 624# include <stdlib.h>
b0cacab0 625#endif
29a5deed 626#ifdef HAVE_STRING_H
b0cacab0
TT
627# include <string.h>
628#endif
29a5deed 629#ifdef HAVE_INTTYPES_H
b0cacab0 630# include <inttypes.h>
e1052144 631#endif
29a5deed 632#ifdef HAVE_STDINT_H
e1052144 633# include <stdint.h>
b0cacab0 634#endif
54445dc2
TT
635#ifdef HAVE_STRINGS_H
636# include <strings.h>
637#endif
638#ifdef HAVE_SYS_TYPES_H
639# include <sys/types.h>
640#endif
641#ifdef HAVE_SYS_STAT_H
642# include <sys/stat.h>
643#endif
29a5deed 644#ifdef HAVE_UNISTD_H
b0cacab0
TT
645# include <unistd.h>
646#endif"
647
54445dc2 648ac_header_c_list=
93613951 649gt_needs=
54445dc2 650ac_func_c_list=
39fd3d4f 651ac_subst_vars='LTLIBOBJS
e1052144 652LIBOBJS
d1d44c14 653OS_IO_FILE
a2df5894
DW
654systemd_system_unit_dir
655have_systemd
656systemd_LIBS
657systemd_CFLAGS
658crond_dir
659have_crond
5ce368f0
DW
660pkg_udev_rules_dir
661have_udev
662udev_LIBS
663udev_CFLAGS
fd1677e8
TT
664LDFLAGS_SHLIB
665CFLAGS_STLIB
666CFLAGS_SHLIB
39fd3d4f
SJR
667BUILD_LDFLAGS
668BUILD_CFLAGS
d1154eb4 669INCLUDES
39fd3d4f 670DO_TEST_SUITE
fd1677e8 671LDFLAGS_STATIC
39fd3d4f
SJR
672root_sysconfdir
673root_libdir
674root_sbindir
675root_bindir
676root_prefix
5ce368f0 677E2SCRUB_CMT
39fd3d4f
SJR
678UNIX_CMT
679CYGWIN_CMT
680LINUX_CMT
2869485b
TT
681FUZZING_CMT
682fuzzer_ldflags
683fuzzer_cflags
684have_fuzzer
685ac_ct_CXX
686CXXFLAGS
687CXX
bcca786b
DW
688threadsan_ldflags
689threadsan_cflags
690have_threadsan
5e666e3d
DW
691addrsan_ldflags
692addrsan_cflags
693have_addrsan
1c2a76ae
DW
694ubsan_ldflags
695ubsan_cflags
696have_ubsan
4aece328
DW
697lto_ldflags
698lto_cflags
699have_lto
700gcc_ranlib
701gcc_ar
39fd3d4f
SJR
702UNI_DIFF_OPTS
703SEM_INIT_LIB
81cbf1ef
DW
704FUSE_CMT
705FUSE_LIB
c94da047 706CLOCK_GETTIME_LIB
b291c11f 707MAGIC_LIB
39fd3d4f 708SOCKET_LIB
2dd680f3 709SIZEOF_TIME_T
cc68e8a6 710SIZEOF_OFF_T
39fd3d4f
SJR
711SIZEOF_LONG_LONG
712SIZEOF_LONG
713SIZEOF_INT
714SIZEOF_SHORT
ec3a69bb 715DD
39fd3d4f
SJR
716BUILD_CC
717MAKEINFO
718STRIP
e598c29b 719RANLIB
39fd3d4f
SJR
720AR
721LDCONFIG
722PERL
39fd3d4f
SJR
723AWK
724CHMOD
725RM
726CP
727MV
728LN_S
3fb16e74 729mkdir_p
39fd3d4f 730LN
bcb915b0
TT
731ifNotGNUmake
732ifGNUmake
39fd3d4f
SJR
733BINARY_TYPE
734POSUB
735LTLIBINTL
736LIBINTL
737INTLLIBS
93613951
TT
738LTLIBICONV
739LIBICONV
e598c29b 740INTL_MACOSX_LIBS
93613951 741XGETTEXT_EXTRA_OPTIONS
bdcd5f22 742MSGMERGE_FOR_MSGFMT_OPTION
39fd3d4f 743MSGMERGE
93613951 744XGETTEXT_015
39fd3d4f 745XGETTEXT
93613951 746GMSGFMT_015
39fd3d4f
SJR
747GMSGFMT
748MSGFMT
93613951 749GETTEXT_MACRO_VERSION
39fd3d4f 750USE_NLS
93613951 751MKDIR_P
39fd3d4f
SJR
752INSTALL_DATA
753INSTALL_SCRIPT
754INSTALL_PROGRAM
755SET_MAKE
756VERSION
757PACKAGE
758GETTEXT_PACKAGE
749f0712
TT
759TDB_MAN_COMMENT
760TDB_CMT
39fd3d4f 761UUIDD_CMT
bdcd5f22
TT
762PTHREAD_CFLAGS
763PTHREAD_LIBS
54445dc2 764PTHREAD_CXX
bdcd5f22
TT
765PTHREAD_CC
766ax_pthread_config
54445dc2
TT
767EGREP
768GREP
bdcd5f22 769SED
39fd3d4f
SJR
770E2INITRD_MAN
771E2INITRD_PROG
772FSCK_MAN
773FSCK_PROG
8d9c50c5 774DEFRAG_CMT
39fd3d4f
SJR
775RESIZER_CMT
776IMAGER_CMT
777DEBUGFS_CMT
feb235e0 778SUBSET_CMT
0afb9be6 779ALL_CMT
39fd3d4f
SJR
780BLKID_CMT
781DEPPROFILED_LIBBLKID
782PROFILED_LIBBLKID
783DEPSTATIC_LIBBLKID
784STATIC_LIBBLKID
785DEPLIBBLKID
786LIBBLKID
787UUID_CMT
788DEPPROFILED_LIBUUID
789PROFILED_LIBUUID
790DEPSTATIC_LIBUUID
791STATIC_LIBUUID
792DEPLIBUUID
793LIBUUID
93613951
TT
794PKG_CONFIG_LIBDIR
795PKG_CONFIG_PATH
39fd3d4f 796PKG_CONFIG
b9e66a18 797DEV_FEATURES_CMT
39fd3d4f
SJR
798TEST_IO_CMT
799PRIVATE_LIBS_CMT
800LDFLAG_DYNAMIC
801PROFILED_LIB_EXT
802STATIC_LIB_EXT
803LIB_EXT
39fd3d4f
SJR
804PROFILE_CMT
805BSDLIB_CMT
806ELF_CMT
c13351f6 807Q
c1986ecb 808ES
c13351f6 809E
5aa6c3f6 810LINK_BUILD_FLAGS
183c73b0 811SYMLINK_RELATIVE
5aa6c3f6 812LINK_INSTALL_FLAGS
39fd3d4f 813MAINTAINER_CMT
39fd3d4f 814CPP
9b3018a8 815RDYNAMIC
57aa50d4 816DLOPEN_LIB
39fd3d4f
SJR
817host_os
818host_vendor
819host_cpu
820host
821build_os
822build_vendor
823build_cpu
824build
5ce368f0 825E2FSPROGS_DATE
39fd3d4f
SJR
826E2FSPROGS_PKGVER
827E2FSPROGS_VERSION
828E2FSPROGS_DAY
829E2FSPROGS_MONTH
830E2FSPROGS_YEAR
54445dc2
TT
831OBJEXT
832EXEEXT
833ac_ct_CC
834CPPFLAGS
835LDFLAGS
836CFLAGS
837CC
39fd3d4f
SJR
838target_alias
839host_alias
840build_alias
841LIBS
842ECHO_T
843ECHO_N
844ECHO_C
845DEFS
846mandir
847localedir
848libdir
849psdir
850pdfdir
851dvidir
852htmldir
853infodir
854docdir
855oldincludedir
856includedir
2ab53829 857runstatedir
39fd3d4f
SJR
858localstatedir
859sharedstatedir
860sysconfdir
861datadir
862datarootdir
863libexecdir
864sbindir
865bindir
866program_transform_name
867prefix
868exec_prefix
57aa50d4 869PACKAGE_URL
39fd3d4f
SJR
870PACKAGE_BUGREPORT
871PACKAGE_STRING
872PACKAGE_VERSION
873PACKAGE_TARNAME
874PACKAGE_NAME
875PATH_SEPARATOR
876SHELL'
e1052144
TT
877ac_subst_files='MCONFIG
878MAKEFILE_ELF
879MAKEFILE_BSDLIB
880MAKEFILE_PROFILE
e1052144 881MAKEFILE_LIBRARY
488c75a6
TT
882ASM_TYPES_HEADER
883PUBLIC_CONFIG_HEADER'
39fd3d4f
SJR
884ac_user_opts='
885enable_option_checking
886with_diet_libc
887with_cc
39fd3d4f
SJR
888with_ccopts
889with_ldopts
890with_root_prefix
891enable_maintainer_mode
5aa6c3f6 892enable_symlink_install
91d11da1 893enable_relative_symlinks
183c73b0 894enable_symlink_relative_symlinks
5aa6c3f6 895enable_symlink_build
c13351f6 896enable_verbose_makecmds
39fd3d4f
SJR
897enable_elf_shlibs
898enable_bsd_shlibs
899enable_profile
fedfb27f 900enable_gcov
fd1677e8 901enable_hardening
39fd3d4f
SJR
902enable_jbd_debug
903enable_blkid_debug
904enable_testio_debug
b9e66a18 905enable_developer_features
39fd3d4f
SJR
906enable_libuuid
907enable_libblkid
0afb9be6 908enable_subset
3df6014a 909enable_backtrace
39fd3d4f
SJR
910enable_debugfs
911enable_imager
912enable_resizer
8d9c50c5 913enable_defrag
39fd3d4f
SJR
914enable_fsck
915enable_e2initrd_helper
916enable_tls
bdcd5f22 917with_pthread
39fd3d4f 918enable_uuidd
d6a4bcb5 919enable_mmp
749f0712 920enable_tdb
1625bf42
TB
921enable_bmap_stats
922enable_bmap_stats_ops
39fd3d4f
SJR
923enable_nls
924with_gnu_ld
925enable_rpath
926with_libiconv_prefix
39fd3d4f 927with_libintl_prefix
81cbf1ef 928enable_fuse2fs
4aece328 929enable_lto
1c2a76ae 930enable_ubsan
5e666e3d 931enable_addrsan
bcca786b 932enable_threadsan
2869485b 933enable_fuzzing
55e00a25 934with_multiarch
5ce368f0 935with_udev_rules_dir
a2df5894
DW
936with_crond_dir
937with_systemd_unit_dir
39fd3d4f 938'
e1052144
TT
939 ac_precious_vars='build_alias
940host_alias
941target_alias
942CC
943CFLAGS
944LDFLAGS
29a5deed 945LIBS
e1052144 946CPPFLAGS
14b596d4 947CPP
93613951
TT
948PKG_CONFIG
949PKG_CONFIG_PATH
5ce368f0 950PKG_CONFIG_LIBDIR
2869485b
TT
951CXX
952CXXFLAGS
953CCC
5ce368f0 954udev_CFLAGS
a2df5894
DW
955udev_LIBS
956systemd_CFLAGS
957systemd_LIBS'
e1052144 958
50e1e10f
TT
959
960# Initialize some variables set by options.
b0cacab0
TT
961ac_init_help=
962ac_init_version=false
39fd3d4f
SJR
963ac_unrecognized_opts=
964ac_unrecognized_sep=
50e1e10f
TT
965# The variables have the same names as the options, with
966# dashes changed to underlines.
b0cacab0 967cache_file=/dev/null
50e1e10f 968exec_prefix=NONE
50e1e10f 969no_create=
50e1e10f
TT
970no_recursion=
971prefix=NONE
972program_prefix=NONE
973program_suffix=NONE
974program_transform_name=s,x,x,
975silent=
976site=
977srcdir=
50e1e10f
TT
978verbose=
979x_includes=NONE
980x_libraries=NONE
b0cacab0
TT
981
982# Installation directory options.
983# These are left unexpanded so users can "make install exec_prefix=/foo"
984# and all the variables that are supposed to be based on exec_prefix
985# by default will actually change.
986# Use braces instead of parens because sh, perl, etc. also accept them.
e1052144 987# (The list follows the same order as the GNU Coding Standards.)
21c84b71
TT
988bindir='${exec_prefix}/bin'
989sbindir='${exec_prefix}/sbin'
990libexecdir='${exec_prefix}/libexec'
e1052144
TT
991datarootdir='${prefix}/share'
992datadir='${datarootdir}'
21c84b71
TT
993sysconfdir='${prefix}/etc'
994sharedstatedir='${prefix}/com'
995localstatedir='${prefix}/var'
2ab53829 996runstatedir='${localstatedir}/run'
21c84b71
TT
997includedir='${prefix}/include'
998oldincludedir='/usr/include'
e1052144
TT
999docdir='${datarootdir}/doc/${PACKAGE}'
1000infodir='${datarootdir}/info'
1001htmldir='${docdir}'
1002dvidir='${docdir}'
1003pdfdir='${docdir}'
1004psdir='${docdir}'
1005libdir='${exec_prefix}/lib'
1006localedir='${datarootdir}/locale'
1007mandir='${datarootdir}/man'
50e1e10f 1008
50e1e10f 1009ac_prev=
e1052144 1010ac_dashdash=
50e1e10f
TT
1011for ac_option
1012do
50e1e10f
TT
1013 # If the previous option needs an argument, assign it.
1014 if test -n "$ac_prev"; then
e1052144 1015 eval $ac_prev=\$ac_option
50e1e10f
TT
1016 ac_prev=
1017 continue
1018 fi
1019
e1052144 1020 case $ac_option in
d6a4bcb5
TB
1021 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1022 *=) ac_optarg= ;;
1023 *) ac_optarg=yes ;;
e1052144 1024 esac
50e1e10f 1025
e1052144
TT
1026 case $ac_dashdash$ac_option in
1027 --)
1028 ac_dashdash=yes ;;
50e1e10f 1029
21c84b71
TT
1030 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1031 ac_prev=bindir ;;
1032 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
b0cacab0 1033 bindir=$ac_optarg ;;
21c84b71
TT
1034
1035 -build | --build | --buil | --bui | --bu)
b0cacab0 1036 ac_prev=build_alias ;;
21c84b71 1037 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
b0cacab0 1038 build_alias=$ac_optarg ;;
50e1e10f
TT
1039
1040 -cache-file | --cache-file | --cache-fil | --cache-fi \
1041 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1042 ac_prev=cache_file ;;
1043 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1044 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
b0cacab0
TT
1045 cache_file=$ac_optarg ;;
1046
1047 --config-cache | -C)
1048 cache_file=config.cache ;;
50e1e10f 1049
e1052144 1050 -datadir | --datadir | --datadi | --datad)
21c84b71 1051 ac_prev=datadir ;;
e1052144 1052 -datadir=* | --datadir=* | --datadi=* | --datad=*)
b0cacab0 1053 datadir=$ac_optarg ;;
21c84b71 1054
e1052144
TT
1055 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1056 | --dataroo | --dataro | --datar)
1057 ac_prev=datarootdir ;;
1058 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1059 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1060 datarootdir=$ac_optarg ;;
1061
50e1e10f 1062 -disable-* | --disable-*)
39fd3d4f 1063 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
50e1e10f 1064 # Reject names that are not valid shell variable names.
39fd3d4f 1065 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
54445dc2 1066 as_fn_error $? "invalid feature name: \`$ac_useropt'"
39fd3d4f 1067 ac_useropt_orig=$ac_useropt
54445dc2 1068 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
39fd3d4f
SJR
1069 case $ac_user_opts in
1070 *"
1071"enable_$ac_useropt"
1072"*) ;;
1073 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1074 ac_unrecognized_sep=', ';;
1075 esac
1076 eval enable_$ac_useropt=no ;;
e1052144
TT
1077
1078 -docdir | --docdir | --docdi | --doc | --do)
1079 ac_prev=docdir ;;
1080 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1081 docdir=$ac_optarg ;;
1082
1083 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1084 ac_prev=dvidir ;;
1085 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1086 dvidir=$ac_optarg ;;
50e1e10f
TT
1087
1088 -enable-* | --enable-*)
39fd3d4f 1089 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
50e1e10f 1090 # Reject names that are not valid shell variable names.
39fd3d4f 1091 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
54445dc2 1092 as_fn_error $? "invalid feature name: \`$ac_useropt'"
39fd3d4f 1093 ac_useropt_orig=$ac_useropt
54445dc2 1094 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
39fd3d4f
SJR
1095 case $ac_user_opts in
1096 *"
1097"enable_$ac_useropt"
1098"*) ;;
1099 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1100 ac_unrecognized_sep=', ';;
1101 esac
1102 eval enable_$ac_useropt=\$ac_optarg ;;
50e1e10f
TT
1103
1104 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1105 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1106 | --exec | --exe | --ex)
1107 ac_prev=exec_prefix ;;
1108 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1109 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1110 | --exec=* | --exe=* | --ex=*)
b0cacab0 1111 exec_prefix=$ac_optarg ;;
50e1e10f
TT
1112
1113 -gas | --gas | --ga | --g)
1114 # Obsolete; use --with-gas.
1115 with_gas=yes ;;
1116
b0cacab0
TT
1117 -help | --help | --hel | --he | -h)
1118 ac_init_help=long ;;
1119 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1120 ac_init_help=recursive ;;
1121 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1122 ac_init_help=short ;;
50e1e10f
TT
1123
1124 -host | --host | --hos | --ho)
b0cacab0 1125 ac_prev=host_alias ;;
50e1e10f 1126 -host=* | --host=* | --hos=* | --ho=*)
b0cacab0 1127 host_alias=$ac_optarg ;;
50e1e10f 1128
e1052144
TT
1129 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1130 ac_prev=htmldir ;;
1131 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1132 | --ht=*)
1133 htmldir=$ac_optarg ;;
1134
21c84b71
TT
1135 -includedir | --includedir | --includedi | --included | --include \
1136 | --includ | --inclu | --incl | --inc)
1137 ac_prev=includedir ;;
1138 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1139 | --includ=* | --inclu=* | --incl=* | --inc=*)
b0cacab0 1140 includedir=$ac_optarg ;;
21c84b71
TT
1141
1142 -infodir | --infodir | --infodi | --infod | --info | --inf)
1143 ac_prev=infodir ;;
1144 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
b0cacab0 1145 infodir=$ac_optarg ;;
21c84b71
TT
1146
1147 -libdir | --libdir | --libdi | --libd)
1148 ac_prev=libdir ;;
1149 -libdir=* | --libdir=* | --libdi=* | --libd=*)
b0cacab0 1150 libdir=$ac_optarg ;;
21c84b71
TT
1151
1152 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1153 | --libexe | --libex | --libe)
1154 ac_prev=libexecdir ;;
1155 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1156 | --libexe=* | --libex=* | --libe=*)
b0cacab0 1157 libexecdir=$ac_optarg ;;
21c84b71 1158
e1052144
TT
1159 -localedir | --localedir | --localedi | --localed | --locale)
1160 ac_prev=localedir ;;
1161 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1162 localedir=$ac_optarg ;;
1163
21c84b71 1164 -localstatedir | --localstatedir | --localstatedi | --localstated \
e1052144 1165 | --localstate | --localstat | --localsta | --localst | --locals)
21c84b71
TT
1166 ac_prev=localstatedir ;;
1167 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
e1052144 1168 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
b0cacab0 1169 localstatedir=$ac_optarg ;;
21c84b71
TT
1170
1171 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1172 ac_prev=mandir ;;
1173 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
b0cacab0 1174 mandir=$ac_optarg ;;
21c84b71 1175
50e1e10f
TT
1176 -nfp | --nfp | --nf)
1177 # Obsolete; use --without-fp.
1178 with_fp=no ;;
1179
1180 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
b0cacab0 1181 | --no-cr | --no-c | -n)
50e1e10f
TT
1182 no_create=yes ;;
1183
1184 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1185 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1186 no_recursion=yes ;;
1187
21c84b71
TT
1188 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1189 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1190 | --oldin | --oldi | --old | --ol | --o)
1191 ac_prev=oldincludedir ;;
1192 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1193 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1194 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
b0cacab0 1195 oldincludedir=$ac_optarg ;;
21c84b71 1196
50e1e10f
TT
1197 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1198 ac_prev=prefix ;;
1199 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
b0cacab0 1200 prefix=$ac_optarg ;;
50e1e10f
TT
1201
1202 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1203 | --program-pre | --program-pr | --program-p)
1204 ac_prev=program_prefix ;;
1205 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1206 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
b0cacab0 1207 program_prefix=$ac_optarg ;;
50e1e10f
TT
1208
1209 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1210 | --program-suf | --program-su | --program-s)
1211 ac_prev=program_suffix ;;
1212 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1213 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
b0cacab0 1214 program_suffix=$ac_optarg ;;
50e1e10f
TT
1215
1216 -program-transform-name | --program-transform-name \
1217 | --program-transform-nam | --program-transform-na \
1218 | --program-transform-n | --program-transform- \
1219 | --program-transform | --program-transfor \
1220 | --program-transfo | --program-transf \
1221 | --program-trans | --program-tran \
1222 | --progr-tra | --program-tr | --program-t)
1223 ac_prev=program_transform_name ;;
1224 -program-transform-name=* | --program-transform-name=* \
1225 | --program-transform-nam=* | --program-transform-na=* \
1226 | --program-transform-n=* | --program-transform-=* \
1227 | --program-transform=* | --program-transfor=* \
1228 | --program-transfo=* | --program-transf=* \
1229 | --program-trans=* | --program-tran=* \
1230 | --progr-tra=* | --program-tr=* | --program-t=*)
b0cacab0 1231 program_transform_name=$ac_optarg ;;
50e1e10f 1232
e1052144
TT
1233 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1234 ac_prev=pdfdir ;;
1235 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1236 pdfdir=$ac_optarg ;;
1237
1238 -psdir | --psdir | --psdi | --psd | --ps)
1239 ac_prev=psdir ;;
1240 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1241 psdir=$ac_optarg ;;
1242
50e1e10f
TT
1243 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1244 | -silent | --silent | --silen | --sile | --sil)
1245 silent=yes ;;
1246
2ab53829
TT
1247 -runstatedir | --runstatedir | --runstatedi | --runstated \
1248 | --runstate | --runstat | --runsta | --runst | --runs \
1249 | --run | --ru | --r)
1250 ac_prev=runstatedir ;;
1251 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1252 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1253 | --run=* | --ru=* | --r=*)
1254 runstatedir=$ac_optarg ;;
1255
21c84b71
TT
1256 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1257 ac_prev=sbindir ;;
1258 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1259 | --sbi=* | --sb=*)
b0cacab0 1260 sbindir=$ac_optarg ;;
21c84b71
TT
1261
1262 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1263 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1264 | --sharedst | --shareds | --shared | --share | --shar \
1265 | --sha | --sh)
1266 ac_prev=sharedstatedir ;;
1267 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1268 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1269 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1270 | --sha=* | --sh=*)
b0cacab0 1271 sharedstatedir=$ac_optarg ;;
21c84b71 1272
50e1e10f
TT
1273 -site | --site | --sit)
1274 ac_prev=site ;;
1275 -site=* | --site=* | --sit=*)
b0cacab0 1276 site=$ac_optarg ;;
50e1e10f
TT
1277
1278 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1279 ac_prev=srcdir ;;
1280 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
b0cacab0 1281 srcdir=$ac_optarg ;;
50e1e10f 1282
21c84b71
TT
1283 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1284 | --syscon | --sysco | --sysc | --sys | --sy)
1285 ac_prev=sysconfdir ;;
1286 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1287 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
b0cacab0 1288 sysconfdir=$ac_optarg ;;
21c84b71 1289
50e1e10f 1290 -target | --target | --targe | --targ | --tar | --ta | --t)
b0cacab0 1291 ac_prev=target_alias ;;
50e1e10f 1292 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
b0cacab0 1293 target_alias=$ac_optarg ;;
50e1e10f
TT
1294
1295 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1296 verbose=yes ;;
1297
b0cacab0
TT
1298 -version | --version | --versio | --versi | --vers | -V)
1299 ac_init_version=: ;;
50e1e10f
TT
1300
1301 -with-* | --with-*)
39fd3d4f 1302 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
50e1e10f 1303 # Reject names that are not valid shell variable names.
39fd3d4f 1304 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
54445dc2 1305 as_fn_error $? "invalid package name: \`$ac_useropt'"
39fd3d4f 1306 ac_useropt_orig=$ac_useropt
54445dc2 1307 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
39fd3d4f
SJR
1308 case $ac_user_opts in
1309 *"
1310"with_$ac_useropt"
1311"*) ;;
1312 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1313 ac_unrecognized_sep=', ';;
1314 esac
1315 eval with_$ac_useropt=\$ac_optarg ;;
50e1e10f
TT
1316
1317 -without-* | --without-*)
39fd3d4f 1318 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
50e1e10f 1319 # Reject names that are not valid shell variable names.
39fd3d4f 1320 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
54445dc2 1321 as_fn_error $? "invalid package name: \`$ac_useropt'"
39fd3d4f 1322 ac_useropt_orig=$ac_useropt
54445dc2 1323 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
39fd3d4f
SJR
1324 case $ac_user_opts in
1325 *"
1326"with_$ac_useropt"
1327"*) ;;
1328 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1329 ac_unrecognized_sep=', ';;
1330 esac
1331 eval with_$ac_useropt=no ;;
50e1e10f
TT
1332
1333 --x)
1334 # Obsolete; use --with-x.
1335 with_x=yes ;;
1336
1337 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1338 | --x-incl | --x-inc | --x-in | --x-i)
1339 ac_prev=x_includes ;;
1340 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1341 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
b0cacab0 1342 x_includes=$ac_optarg ;;
50e1e10f
TT
1343
1344 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1345 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1346 ac_prev=x_libraries ;;
1347 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1348 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
b0cacab0 1349 x_libraries=$ac_optarg ;;
50e1e10f 1350
d6a4bcb5
TB
1351 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1352Try \`$0 --help' for more information"
50e1e10f
TT
1353 ;;
1354
b0cacab0
TT
1355 *=*)
1356 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1357 # Reject names that are not valid shell variable names.
57aa50d4
TT
1358 case $ac_envvar in #(
1359 '' | [0-9]* | *[!_$as_cr_alnum]* )
d6a4bcb5 1360 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
57aa50d4 1361 esac
e1052144 1362 eval $ac_envvar=\$ac_optarg
b0cacab0
TT
1363 export $ac_envvar ;;
1364
21c84b71 1365 *)
b0cacab0 1366 # FIXME: should be removed in autoconf 3.0.
54445dc2 1367 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
b0cacab0 1368 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
54445dc2 1369 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
d6a4bcb5 1370 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
50e1e10f
TT
1371 ;;
1372
1373 esac
1374done
1375
1376if test -n "$ac_prev"; then
b0cacab0 1377 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
d6a4bcb5 1378 as_fn_error $? "missing argument to $ac_option"
50e1e10f 1379fi
50e1e10f 1380
39fd3d4f
SJR
1381if test -n "$ac_unrecognized_opts"; then
1382 case $enable_option_checking in
1383 no) ;;
d6a4bcb5 1384 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
54445dc2 1385 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
39fd3d4f
SJR
1386 esac
1387fi
1388
1389# Check all directory arguments for consistency.
e1052144
TT
1390for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1391 datadir sysconfdir sharedstatedir localstatedir includedir \
1392 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2ab53829 1393 libdir localedir mandir runstatedir
50e1e10f 1394do
e1052144 1395 eval ac_val=\$$ac_var
39fd3d4f
SJR
1396 # Remove trailing slashes.
1397 case $ac_val in
1398 */ )
1399 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1400 eval $ac_var=\$ac_val;;
1401 esac
1402 # Be sure to have absolute directory names.
b0cacab0 1403 case $ac_val in
e1052144
TT
1404 [\\/$]* | ?:[\\/]* ) continue;;
1405 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
50e1e10f 1406 esac
d6a4bcb5 1407 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
50e1e10f
TT
1408done
1409
b0cacab0
TT
1410# There might be people who depend on the old broken behavior: `$host'
1411# used to hold the argument of --host etc.
1412# FIXME: To remove some day.
1413build=$build_alias
1414host=$host_alias
1415target=$target_alias
1416
1417# FIXME: To remove some day.
1418if test "x$host_alias" != x; then
1419 if test "x$build_alias" = x; then
1420 cross_compiling=maybe
b0cacab0
TT
1421 elif test "x$build_alias" != "x$host_alias"; then
1422 cross_compiling=yes
1423 fi
1424fi
50e1e10f 1425
b0cacab0
TT
1426ac_tool_prefix=
1427test -n "$host_alias" && ac_tool_prefix=$host_alias-
1428
1429test "$silent" = yes && exec 6>/dev/null
50e1e10f 1430
50e1e10f 1431
e1052144
TT
1432ac_pwd=`pwd` && test -n "$ac_pwd" &&
1433ac_ls_di=`ls -di .` &&
1434ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
d6a4bcb5 1435 as_fn_error $? "working directory cannot be determined"
e1052144 1436test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
d6a4bcb5 1437 as_fn_error $? "pwd does not report name of working directory"
e1052144
TT
1438
1439
50e1e10f
TT
1440# Find the source files, if location was not specified.
1441if test -z "$srcdir"; then
1442 ac_srcdir_defaulted=yes
e1052144 1443 # Try the directory containing this script, then the parent directory.
39fd3d4f
SJR
1444 ac_confdir=`$as_dirname -- "$as_myself" ||
1445$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1446 X"$as_myself" : 'X\(//\)[^/]' \| \
1447 X"$as_myself" : 'X\(//\)$' \| \
1448 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
54445dc2 1449printf "%s\n" X"$as_myself" |
e1052144
TT
1450 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1451 s//\1/
1452 q
1453 }
1454 /^X\(\/\/\)[^/].*/{
1455 s//\1/
1456 q
1457 }
1458 /^X\(\/\/\)$/{
1459 s//\1/
1460 q
1461 }
1462 /^X\(\/\).*/{
1463 s//\1/
1464 q
1465 }
1466 s/.*/./; q'`
50e1e10f 1467 srcdir=$ac_confdir
e1052144 1468 if test ! -r "$srcdir/$ac_unique_file"; then
50e1e10f
TT
1469 srcdir=..
1470 fi
1471else
1472 ac_srcdir_defaulted=no
1473fi
e1052144
TT
1474if test ! -r "$srcdir/$ac_unique_file"; then
1475 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
d6a4bcb5 1476 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
50e1e10f 1477fi
e1052144
TT
1478ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1479ac_abs_confdir=`(
d6a4bcb5 1480 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
e1052144
TT
1481 pwd)`
1482# When building in place, set srcdir=.
1483if test "$ac_abs_confdir" = "$ac_pwd"; then
1484 srcdir=.
1485fi
1486# Remove unnecessary trailing slashes from srcdir.
1487# Double slashes in file names in object file debugging info
1488# mess up M-x gdb in Emacs.
1489case $srcdir in
1490*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1491esac
1492for ac_var in $ac_precious_vars; do
1493 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1494 eval ac_env_${ac_var}_value=\$${ac_var}
1495 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1496 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1497done
b0cacab0
TT
1498
1499#
1500# Report the --help message.
1501#
1502if test "$ac_init_help" = "long"; then
1503 # Omit some internal or obsolete options to make the list less imposing.
1504 # This message is too long to be a string in the A/UX 3.1 sh.
1505 cat <<_ACEOF
1506\`configure' configures this package to adapt to many kinds of systems.
1507
1508Usage: $0 [OPTION]... [VAR=VALUE]...
1509
1510To assign environment variables (e.g., CC, CFLAGS...), specify them as
1511VAR=VALUE. See below for descriptions of some of the useful variables.
1512
1513Defaults for the options are specified in brackets.
1514
1515Configuration:
1516 -h, --help display this help and exit
1517 --help=short display options specific to this package
1518 --help=recursive display the short help of all the included packages
1519 -V, --version display version information and exit
d6a4bcb5 1520 -q, --quiet, --silent do not print \`checking ...' messages
b0cacab0
TT
1521 --cache-file=FILE cache test results in FILE [disabled]
1522 -C, --config-cache alias for \`--cache-file=config.cache'
1523 -n, --no-create do not create output files
1524 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1525
b0cacab0
TT
1526Installation directories:
1527 --prefix=PREFIX install architecture-independent files in PREFIX
39fd3d4f 1528 [$ac_default_prefix]
b0cacab0 1529 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
39fd3d4f 1530 [PREFIX]
b0cacab0
TT
1531
1532By default, \`make install' will install all the files in
1533\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1534an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1535for instance \`--prefix=\$HOME'.
1536
1537For better control, use the options below.
1538
1539Fine tuning of the installation directories:
39fd3d4f
SJR
1540 --bindir=DIR user executables [EPREFIX/bin]
1541 --sbindir=DIR system admin executables [EPREFIX/sbin]
1542 --libexecdir=DIR program executables [EPREFIX/libexec]
1543 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1544 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1545 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2ab53829 1546 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
39fd3d4f
SJR
1547 --libdir=DIR object code libraries [EPREFIX/lib]
1548 --includedir=DIR C header files [PREFIX/include]
1549 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1550 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1551 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1552 --infodir=DIR info documentation [DATAROOTDIR/info]
1553 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1554 --mandir=DIR man documentation [DATAROOTDIR/man]
1555 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1556 --htmldir=DIR html documentation [DOCDIR]
1557 --dvidir=DIR dvi documentation [DOCDIR]
1558 --pdfdir=DIR pdf documentation [DOCDIR]
1559 --psdir=DIR ps documentation [DOCDIR]
b0cacab0
TT
1560_ACEOF
1561
1562 cat <<\_ACEOF
1563
1564System types:
1565 --build=BUILD configure for building on BUILD [guessed]
1566 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1567_ACEOF
1568fi
1569
1570if test -n "$ac_init_help"; then
1571
1572 cat <<\_ACEOF
1573
1574Optional Features:
39fd3d4f 1575 --disable-option-checking ignore unrecognized --enable/--with options
b0cacab0
TT
1576 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1577 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
8c9e2921
TT
1578 --enable-maintainer-mode
1579 enable makefile rules useful for maintainers
1580 --enable-symlink-install
1581 use symlinks when installing instead of hard links
1582 --enable-relative-symlinks
1583 use relative symlinks when installing
91d11da1 1584
5aa6c3f6 1585 --enable-symlink-build use symlinks while building instead of hard links
8c9e2921
TT
1586 --enable-verbose-makecmds
1587 enable verbose make command output
1588 --enable-elf-shlibs select ELF shared libraries
1589 --enable-bsd-shlibs select BSD shared libraries
1590 --enable-profile build profiling libraries
1591 --enable-gcov build for coverage testing using gcov
1592 --enable-hardening build for coverage testing using gcov
1593 --enable-jbd-debug enable journal debugging
b0cacab0 1594 --enable-blkid-debug enable blkid debugging
8c9e2921
TT
1595 --disable-testio-debug disable the use of the test I/O manager for
1596 debugging
1597 --enable-developer-features
1598 enable features for use by ext4 developers
1599 --enable-libuuid build and use private uuid library
1600 --enable-libblkid build and use private blkid library
1601 --enable-subset enable subset-only build
1602 --disable-backtrace disable use backtrace
1603 --disable-debugfs disable support of debugfs program
1604 --disable-imager disable support of e2image program
1605 --disable-resizer disable support of e2resize program
1606 --disable-defrag disable support of e4defrag program
b0cacab0 1607 --enable-fsck build fsck wrapper program
8c9e2921
TT
1608 --enable-e2initrd-helper
1609 build e2initrd-helper program
3249394d 1610 --disable-tls disable use of thread local support
5610f992 1611 --disable-uuidd disable building the uuid daemon
d6a4bcb5 1612 --disable-mmp disable support mmp, Multi Mount Protection
749f0712 1613 --disable-tdb disable tdb support
8c9e2921 1614 --disable-bmap-stats disable collection of bitmap stats
1625bf42 1615 --enable-bmap-stats-ops enable collection of additional bitmap stats
b0cacab0
TT
1616 --disable-nls do not use Native Language Support
1617 --disable-rpath do not hardcode runtime library paths
8c9e2921
TT
1618 --disable-fuse2fs do not build fuse2fs
1619 --enable-lto enable link time optimization
1620 --enable-ubsan enable undefined behavior sanitizer
1621 --enable-addrsan enable address sanitizer
1622 --enable-threadsan enable thread sanitizer
2869485b 1623 --enable-fuzzing enable fuzzing sanitizer
b0cacab0
TT
1624
1625Optional Packages:
1626 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1627 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
3249394d 1628 --with-diet-libc use diet libc
0b5b9f90
TT
1629 --with-cc no longer supported, use CC= instead
1630 --with-ccopts no longer supported, use CFLAGS= instead
1631 --with-ldopts no longer supported, use LDFLAGS= instead
8c9e2921
TT
1632 --with-root-prefix=PREFIX
1633 override prefix variable for files to be placed in
1634 the root
bdcd5f22 1635 --without-pthread disable use of pthread support
93613951 1636 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
b0cacab0
TT
1637 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1638 --without-libiconv-prefix don't search for libiconv in includedir and libdir
b0cacab0
TT
1639 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1640 --without-libintl-prefix don't search for libintl in includedir and libdir
8c9e2921 1641 --with-multiarch=ARCH specify the multiarch triplet
5ce368f0
DW
1642 --with-udev-rules-dir[=DIR]
1643 Install udev rules into DIR.
a2df5894
DW
1644 --with-crond-dir[=DIR] Install system crontabs into DIR.
1645 --with-systemd-unit-dir[=DIR]
1646 Install systemd system units into DIR.
b0cacab0
TT
1647
1648Some influential environment variables:
1649 CC C compiler command
1650 CFLAGS C compiler flags
1651 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1652 nonstandard directory <lib dir>
29a5deed 1653 LIBS libraries to pass to the linker, e.g. -l<library>
61ef2474 1654 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
e1052144 1655 you have headers in a nonstandard directory <include dir>
b0cacab0 1656 CPP C preprocessor
14b596d4 1657 PKG_CONFIG path to pkg-config utility
93613951
TT
1658 PKG_CONFIG_PATH
1659 directories to add to pkg-config's search path
1660 PKG_CONFIG_LIBDIR
1661 path overriding pkg-config's built-in search path
2869485b
TT
1662 CXX C++ compiler command
1663 CXXFLAGS C++ compiler flags
5ce368f0
DW
1664 udev_CFLAGS C compiler flags for udev, overriding pkg-config
1665 udev_LIBS linker flags for udev, overriding pkg-config
a2df5894
DW
1666 systemd_CFLAGS
1667 C compiler flags for systemd, overriding pkg-config
1668 systemd_LIBS
1669 linker flags for systemd, overriding pkg-config
b0cacab0
TT
1670
1671Use these variables to override the choices made by `configure' or to help
1672it to find libraries and programs with nonstandard names/locations.
1673
57aa50d4 1674Report bugs to the package provider.
b0cacab0 1675_ACEOF
e1052144 1676ac_status=$?
b0cacab0
TT
1677fi
1678
1679if test "$ac_init_help" = "recursive"; then
1680 # If there are subdirs, report their specific --help.
b0cacab0 1681 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
39fd3d4f
SJR
1682 test -d "$ac_dir" ||
1683 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1684 continue
b0cacab0
TT
1685 ac_builddir=.
1686
e1052144
TT
1687case "$ac_dir" in
1688.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1689*)
54445dc2 1690 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
e1052144 1691 # A ".." for each directory in $ac_dir_suffix.
54445dc2 1692 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
e1052144
TT
1693 case $ac_top_builddir_sub in
1694 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1695 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1696 esac ;;
1697esac
1698ac_abs_top_builddir=$ac_pwd
1699ac_abs_builddir=$ac_pwd$ac_dir_suffix
1700# for backward compatibility:
1701ac_top_builddir=$ac_top_build_prefix
b0cacab0
TT
1702
1703case $srcdir in
e1052144 1704 .) # We are building in place.
b0cacab0 1705 ac_srcdir=.
e1052144
TT
1706 ac_top_srcdir=$ac_top_builddir_sub
1707 ac_abs_top_srcdir=$ac_pwd ;;
1708 [\\/]* | ?:[\\/]* ) # Absolute name.
b0cacab0 1709 ac_srcdir=$srcdir$ac_dir_suffix;
e1052144
TT
1710 ac_top_srcdir=$srcdir
1711 ac_abs_top_srcdir=$srcdir ;;
1712 *) # Relative name.
1713 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1714 ac_top_srcdir=$ac_top_build_prefix$srcdir
1715 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b0cacab0 1716esac
e1052144
TT
1717ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1718
1719 cd "$ac_dir" || { ac_status=$?; continue; }
54445dc2
TT
1720 # Check for configure.gnu first; this name is used for a wrapper for
1721 # Metaconfig's "Configure" on case-insensitive file systems.
e1052144
TT
1722 if test -f "$ac_srcdir/configure.gnu"; then
1723 echo &&
1724 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1725 elif test -f "$ac_srcdir/configure"; then
1726 echo &&
1727 $SHELL "$ac_srcdir/configure" --help=recursive
b0cacab0 1728 else
54445dc2 1729 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
e1052144
TT
1730 fi || ac_status=$?
1731 cd "$ac_pwd" || { ac_status=$?; break; }
b0cacab0
TT
1732 done
1733fi
1734
e1052144 1735test -n "$ac_init_help" && exit $ac_status
b0cacab0
TT
1736if $ac_init_version; then
1737 cat <<\_ACEOF
e1052144 1738configure
54445dc2 1739generated by GNU Autoconf 2.71
b0cacab0 1740
54445dc2 1741Copyright (C) 2021 Free Software Foundation, Inc.
b0cacab0
TT
1742This configure script is free software; the Free Software Foundation
1743gives unlimited permission to copy, distribute and modify it.
1744_ACEOF
e1052144 1745 exit
b0cacab0 1746fi
b0cacab0 1747
57aa50d4
TT
1748## ------------------------ ##
1749## Autoconf initialization. ##
1750## ------------------------ ##
b0cacab0 1751
57aa50d4
TT
1752# ac_fn_c_try_compile LINENO
1753# --------------------------
1754# Try to compile conftest.$ac_ext, and return whether this succeeded.
1755ac_fn_c_try_compile ()
1756{
1757 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
54445dc2 1758 rm -f conftest.$ac_objext conftest.beam
57aa50d4
TT
1759 if { { ac_try="$ac_compile"
1760case "(($ac_try" in
1761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1762 *) ac_try_echo=$ac_try;;
1763esac
1764eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
54445dc2 1765printf "%s\n" "$ac_try_echo"; } >&5
57aa50d4
TT
1766 (eval "$ac_compile") 2>conftest.err
1767 ac_status=$?
1768 if test -s conftest.err; then
1769 grep -v '^ *+' conftest.err >conftest.er1
1770 cat conftest.er1 >&5
1771 mv -f conftest.er1 conftest.err
1772 fi
54445dc2 1773 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
57aa50d4
TT
1774 test $ac_status = 0; } && {
1775 test -z "$ac_c_werror_flag" ||
1776 test ! -s conftest.err
54445dc2
TT
1777 } && test -s conftest.$ac_objext
1778then :
57aa50d4 1779 ac_retval=0
54445dc2
TT
1780else $as_nop
1781 printf "%s\n" "$as_me: failed program was:" >&5
57aa50d4 1782sed 's/^/| /' conftest.$ac_ext >&5
b0cacab0 1783
57aa50d4
TT
1784 ac_retval=1
1785fi
d6a4bcb5 1786 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
61ef2474 1787 as_fn_set_status $ac_retval
57aa50d4
TT
1788
1789} # ac_fn_c_try_compile
1790
54445dc2
TT
1791# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1792# -------------------------------------------------------
1793# Tests whether HEADER exists and can be compiled using the include files in
1794# INCLUDES, setting the cache variable VAR accordingly.
1795ac_fn_c_check_header_compile ()
1796{
1797 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1799printf %s "checking for $2... " >&6; }
1800if eval test \${$3+y}
1801then :
1802 printf %s "(cached) " >&6
1803else $as_nop
1804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1805/* end confdefs.h. */
1806$4
1807#include <$2>
1808_ACEOF
1809if ac_fn_c_try_compile "$LINENO"
1810then :
1811 eval "$3=yes"
1812else $as_nop
1813 eval "$3=no"
1814fi
1815rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1816fi
1817eval ac_res=\$$3
1818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1819printf "%s\n" "$ac_res" >&6; }
1820 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1821
1822} # ac_fn_c_check_header_compile
1823
57aa50d4
TT
1824# ac_fn_c_try_link LINENO
1825# -----------------------
1826# Try to link conftest.$ac_ext, and return whether this succeeded.
1827ac_fn_c_try_link ()
b0cacab0 1828{
57aa50d4 1829 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
54445dc2 1830 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
57aa50d4
TT
1831 if { { ac_try="$ac_link"
1832case "(($ac_try" in
1833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1834 *) ac_try_echo=$ac_try;;
1835esac
1836eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
54445dc2 1837printf "%s\n" "$ac_try_echo"; } >&5
57aa50d4
TT
1838 (eval "$ac_link") 2>conftest.err
1839 ac_status=$?
1840 if test -s conftest.err; then
1841 grep -v '^ *+' conftest.err >conftest.er1
1842 cat conftest.er1 >&5
1843 mv -f conftest.er1 conftest.err
1844 fi
54445dc2 1845 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
57aa50d4
TT
1846 test $ac_status = 0; } && {
1847 test -z "$ac_c_werror_flag" ||
1848 test ! -s conftest.err
1849 } && test -s conftest$ac_exeext && {
1850 test "$cross_compiling" = yes ||
d6a4bcb5 1851 test -x conftest$ac_exeext
54445dc2
TT
1852 }
1853then :
57aa50d4 1854 ac_retval=0
54445dc2
TT
1855else $as_nop
1856 printf "%s\n" "$as_me: failed program was:" >&5
57aa50d4 1857sed 's/^/| /' conftest.$ac_ext >&5
b0cacab0 1858
57aa50d4
TT
1859 ac_retval=1
1860fi
1861 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1862 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1863 # interfere with the next link command; also delete a directory that is
1864 # left behind by Apple's compiler. We do this before executing the actions.
1865 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d6a4bcb5 1866 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
61ef2474 1867 as_fn_set_status $ac_retval
b0cacab0 1868
57aa50d4 1869} # ac_fn_c_try_link
b0cacab0 1870
57aa50d4
TT
1871# ac_fn_c_try_cpp LINENO
1872# ----------------------
1873# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1874ac_fn_c_try_cpp ()
1875{
1876 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1877 if { { ac_try="$ac_cpp conftest.$ac_ext"
1878case "(($ac_try" in
1879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1880 *) ac_try_echo=$ac_try;;
1881esac
1882eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
54445dc2 1883printf "%s\n" "$ac_try_echo"; } >&5
57aa50d4
TT
1884 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1885 ac_status=$?
1886 if test -s conftest.err; then
1887 grep -v '^ *+' conftest.err >conftest.er1
1888 cat conftest.er1 >&5
1889 mv -f conftest.er1 conftest.err
1890 fi
54445dc2 1891 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d6a4bcb5 1892 test $ac_status = 0; } > conftest.i && {
57aa50d4
TT
1893 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1894 test ! -s conftest.err
54445dc2
TT
1895 }
1896then :
57aa50d4 1897 ac_retval=0
54445dc2
TT
1898else $as_nop
1899 printf "%s\n" "$as_me: failed program was:" >&5
57aa50d4 1900sed 's/^/| /' conftest.$ac_ext >&5
b0cacab0 1901
57aa50d4
TT
1902 ac_retval=1
1903fi
d6a4bcb5 1904 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
61ef2474 1905 as_fn_set_status $ac_retval
b0cacab0 1906
57aa50d4 1907} # ac_fn_c_try_cpp
b0cacab0 1908
57aa50d4
TT
1909# ac_fn_c_try_run LINENO
1910# ----------------------
54445dc2
TT
1911# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1912# executables *can* be run.
57aa50d4
TT
1913ac_fn_c_try_run ()
1914{
1915 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1916 if { { ac_try="$ac_link"
1917case "(($ac_try" in
1918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1919 *) ac_try_echo=$ac_try;;
1920esac
1921eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
54445dc2 1922printf "%s\n" "$ac_try_echo"; } >&5
57aa50d4
TT
1923 (eval "$ac_link") 2>&5
1924 ac_status=$?
54445dc2 1925 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
57aa50d4
TT
1926 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1927 { { case "(($ac_try" in
1928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1929 *) ac_try_echo=$ac_try;;
1930esac
1931eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
54445dc2 1932printf "%s\n" "$ac_try_echo"; } >&5
57aa50d4
TT
1933 (eval "$ac_try") 2>&5
1934 ac_status=$?
54445dc2
TT
1935 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1936 test $ac_status = 0; }; }
1937then :
57aa50d4 1938 ac_retval=0
54445dc2
TT
1939else $as_nop
1940 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1941 printf "%s\n" "$as_me: failed program was:" >&5
57aa50d4 1942sed 's/^/| /' conftest.$ac_ext >&5
b0cacab0 1943
57aa50d4
TT
1944 ac_retval=$ac_status
1945fi
1946 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d6a4bcb5 1947 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
61ef2474 1948 as_fn_set_status $ac_retval
b0cacab0 1949
57aa50d4 1950} # ac_fn_c_try_run
b0cacab0 1951
57aa50d4
TT
1952# ac_fn_c_check_func LINENO FUNC VAR
1953# ----------------------------------
1954# Tests whether FUNC exists, setting the cache variable VAR accordingly
1955ac_fn_c_check_func ()
1956{
1957 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
54445dc2
TT
1958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1959printf %s "checking for $2... " >&6; }
1960if eval test \${$3+y}
1961then :
1962 printf %s "(cached) " >&6
1963else $as_nop
57aa50d4
TT
1964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1965/* end confdefs.h. */
1966/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1967 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1968#define $2 innocuous_$2
b0cacab0 1969
57aa50d4 1970/* System header to define __stub macros and hopefully few prototypes,
54445dc2 1971 which can conflict with char $2 (); below. */
a04eba3f 1972
54445dc2 1973#include <limits.h>
57aa50d4 1974#undef $2
07a0db15 1975
57aa50d4
TT
1976/* Override any GCC internal prototype to avoid an error.
1977 Use char because int might match the return type of a GCC
1978 builtin and then its argument prototype would still apply. */
1979#ifdef __cplusplus
1980extern "C"
1981#endif
1982char $2 ();
1983/* The GNU C library defines this for functions which it implements
1984 to always fail with ENOSYS. Some functions are actually named
1985 something starting with __ and the normal name is an alias. */
1986#if defined __stub_$2 || defined __stub___$2
1987choke me
1988#endif
74becf3c 1989
57aa50d4 1990int
54445dc2 1991main (void)
57aa50d4
TT
1992{
1993return $2 ();
1994 ;
1995 return 0;
1996}
1997_ACEOF
54445dc2
TT
1998if ac_fn_c_try_link "$LINENO"
1999then :
57aa50d4 2000 eval "$3=yes"
54445dc2 2001else $as_nop
57aa50d4
TT
2002 eval "$3=no"
2003fi
54445dc2 2004rm -f core conftest.err conftest.$ac_objext conftest.beam \
57aa50d4
TT
2005 conftest$ac_exeext conftest.$ac_ext
2006fi
2007eval ac_res=\$$3
54445dc2
TT
2008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2009printf "%s\n" "$ac_res" >&6; }
d6a4bcb5 2010 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
93636bde 2011
57aa50d4 2012} # ac_fn_c_check_func
93636bde 2013
e598c29b
TT
2014# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2015# ----------------------------------------------------
2016# Tries to find if the field MEMBER exists in type AGGR, after including
2017# INCLUDES, setting cache variable VAR accordingly.
2018ac_fn_c_check_member ()
2019{
2020 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
54445dc2
TT
2021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2022printf %s "checking for $2.$3... " >&6; }
2023if eval test \${$4+y}
2024then :
2025 printf %s "(cached) " >&6
2026else $as_nop
e598c29b
TT
2027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028/* end confdefs.h. */
2029$5
2030int
54445dc2 2031main (void)
e598c29b
TT
2032{
2033static $2 ac_aggr;
2034if (ac_aggr.$3)
2035return 0;
2036 ;
2037 return 0;
2038}
2039_ACEOF
54445dc2
TT
2040if ac_fn_c_try_compile "$LINENO"
2041then :
e598c29b 2042 eval "$4=yes"
54445dc2 2043else $as_nop
e598c29b
TT
2044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2045/* end confdefs.h. */
2046$5
2047int
54445dc2 2048main (void)
e598c29b
TT
2049{
2050static $2 ac_aggr;
2051if (sizeof ac_aggr.$3)
2052return 0;
2053 ;
2054 return 0;
2055}
2056_ACEOF
54445dc2
TT
2057if ac_fn_c_try_compile "$LINENO"
2058then :
e598c29b 2059 eval "$4=yes"
54445dc2 2060else $as_nop
e598c29b
TT
2061 eval "$4=no"
2062fi
54445dc2 2063rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
e598c29b 2064fi
54445dc2 2065rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
e598c29b
TT
2066fi
2067eval ac_res=\$$4
54445dc2
TT
2068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2069printf "%s\n" "$ac_res" >&6; }
e598c29b
TT
2070 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2071
2072} # ac_fn_c_check_member
2073
2074# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2075# -------------------------------------------
2076# Tests whether TYPE exists after having included INCLUDES, setting cache
2077# variable VAR accordingly.
2078ac_fn_c_check_type ()
2079{
2080 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
54445dc2
TT
2081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2082printf %s "checking for $2... " >&6; }
2083if eval test \${$3+y}
2084then :
2085 printf %s "(cached) " >&6
2086else $as_nop
e598c29b
TT
2087 eval "$3=no"
2088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2089/* end confdefs.h. */
2090$4
2091int
54445dc2 2092main (void)
e598c29b
TT
2093{
2094if (sizeof ($2))
2095 return 0;
2096 ;
2097 return 0;
2098}
2099_ACEOF
54445dc2
TT
2100if ac_fn_c_try_compile "$LINENO"
2101then :
e598c29b
TT
2102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2103/* end confdefs.h. */
2104$4
2105int
54445dc2 2106main (void)
e598c29b
TT
2107{
2108if (sizeof (($2)))
2109 return 0;
2110 ;
2111 return 0;
2112}
2113_ACEOF
54445dc2
TT
2114if ac_fn_c_try_compile "$LINENO"
2115then :
e598c29b 2116
54445dc2 2117else $as_nop
e598c29b
TT
2118 eval "$3=yes"
2119fi
54445dc2 2120rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
e598c29b 2121fi
54445dc2 2122rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
e598c29b
TT
2123fi
2124eval ac_res=\$$3
54445dc2
TT
2125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2126printf "%s\n" "$ac_res" >&6; }
e598c29b
TT
2127 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2128
2129} # ac_fn_c_check_type
2130
54445dc2
TT
2131# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2132# ------------------------------------------------------------------
93613951 2133# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
54445dc2
TT
2134# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2135ac_fn_check_decl ()
d1154eb4
TT
2136{
2137 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
93613951 2138 as_decl_name=`echo $2|sed 's/ *(.*//'`
54445dc2
TT
2139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2140printf %s "checking whether $as_decl_name is declared... " >&6; }
2141if eval test \${$3+y}
2142then :
2143 printf %s "(cached) " >&6
2144else $as_nop
93613951 2145 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
54445dc2
TT
2146 eval ac_save_FLAGS=\$$6
2147 as_fn_append $6 " $5"
93613951 2148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d1154eb4
TT
2149/* end confdefs.h. */
2150$4
93613951 2151int
54445dc2 2152main (void)
93613951
TT
2153{
2154#ifndef $as_decl_name
2155#ifdef __cplusplus
2156 (void) $as_decl_use;
2157#else
2158 (void) $as_decl_name;
2159#endif
2160#endif
2161
2162 ;
2163 return 0;
2164}
d1154eb4 2165_ACEOF
54445dc2
TT
2166if ac_fn_c_try_compile "$LINENO"
2167then :
93613951 2168 eval "$3=yes"
54445dc2 2169else $as_nop
93613951 2170 eval "$3=no"
d1154eb4 2171fi
54445dc2
TT
2172rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2173 eval $6=\$ac_save_FLAGS
2174
d1154eb4
TT
2175fi
2176eval ac_res=\$$3
54445dc2
TT
2177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2178printf "%s\n" "$ac_res" >&6; }
d6a4bcb5 2179 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
d1154eb4 2180
54445dc2 2181} # ac_fn_check_decl
d1154eb4 2182
57aa50d4
TT
2183# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2184# --------------------------------------------
2185# Tries to find the compile-time value of EXPR in a program that includes
2186# INCLUDES, setting VAR accordingly. Returns whether the value could be
2187# computed
2188ac_fn_c_compute_int ()
2189{
2190 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2191 if test "$cross_compiling" = yes; then
2192 # Depending upon the size, compute the lo and hi bounds.
2193cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2194/* end confdefs.h. */
2195$4
2196int
54445dc2 2197main (void)
57aa50d4
TT
2198{
2199static int test_array [1 - 2 * !(($2) >= 0)];
d6a4bcb5
TB
2200test_array [0] = 0;
2201return test_array [0];
93636bde 2202
57aa50d4
TT
2203 ;
2204 return 0;
2205}
2206_ACEOF
54445dc2
TT
2207if ac_fn_c_try_compile "$LINENO"
2208then :
57aa50d4
TT
2209 ac_lo=0 ac_mid=0
2210 while :; do
2211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2212/* end confdefs.h. */
2213$4
2214int
54445dc2 2215main (void)
57aa50d4
TT
2216{
2217static int test_array [1 - 2 * !(($2) <= $ac_mid)];
d6a4bcb5
TB
2218test_array [0] = 0;
2219return test_array [0];
93636bde 2220
57aa50d4
TT
2221 ;
2222 return 0;
2223}
2224_ACEOF
54445dc2
TT
2225if ac_fn_c_try_compile "$LINENO"
2226then :
57aa50d4 2227 ac_hi=$ac_mid; break
54445dc2 2228else $as_nop
57aa50d4
TT
2229 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2230 if test $ac_lo -le $ac_mid; then
2231 ac_lo= ac_hi=
2232 break
2233 fi
2234 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
b0cacab0 2235fi
54445dc2 2236rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
57aa50d4 2237 done
54445dc2 2238else $as_nop
57aa50d4
TT
2239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2240/* end confdefs.h. */
2241$4
2242int
54445dc2 2243main (void)
57aa50d4
TT
2244{
2245static int test_array [1 - 2 * !(($2) < 0)];
d6a4bcb5
TB
2246test_array [0] = 0;
2247return test_array [0];
e1052144 2248
57aa50d4
TT
2249 ;
2250 return 0;
2251}
2252_ACEOF
54445dc2
TT
2253if ac_fn_c_try_compile "$LINENO"
2254then :
57aa50d4
TT
2255 ac_hi=-1 ac_mid=-1
2256 while :; do
2257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2258/* end confdefs.h. */
2259$4
2260int
54445dc2 2261main (void)
57aa50d4
TT
2262{
2263static int test_array [1 - 2 * !(($2) >= $ac_mid)];
d6a4bcb5
TB
2264test_array [0] = 0;
2265return test_array [0];
93636bde 2266
57aa50d4
TT
2267 ;
2268 return 0;
2269}
2270_ACEOF
54445dc2
TT
2271if ac_fn_c_try_compile "$LINENO"
2272then :
57aa50d4 2273 ac_lo=$ac_mid; break
54445dc2 2274else $as_nop
57aa50d4
TT
2275 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2276 if test $ac_mid -le $ac_hi; then
2277 ac_lo= ac_hi=
2278 break
2279 fi
2280 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
93636bde 2281fi
54445dc2 2282rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
57aa50d4 2283 done
54445dc2 2284else $as_nop
57aa50d4
TT
2285 ac_lo= ac_hi=
2286fi
54445dc2 2287rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
57aa50d4 2288fi
54445dc2 2289rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
57aa50d4
TT
2290# Binary search between lo and hi bounds.
2291while test "x$ac_lo" != "x$ac_hi"; do
2292 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2294/* end confdefs.h. */
2295$4
2296int
54445dc2 2297main (void)
57aa50d4
TT
2298{
2299static int test_array [1 - 2 * !(($2) <= $ac_mid)];
d6a4bcb5
TB
2300test_array [0] = 0;
2301return test_array [0];
93636bde 2302
57aa50d4
TT
2303 ;
2304 return 0;
2305}
2306_ACEOF
54445dc2
TT
2307if ac_fn_c_try_compile "$LINENO"
2308then :
57aa50d4 2309 ac_hi=$ac_mid
54445dc2 2310else $as_nop
57aa50d4
TT
2311 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2312fi
54445dc2 2313rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
57aa50d4
TT
2314done
2315case $ac_lo in #((
2316?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2317'') ac_retval=1 ;;
927566a3 2318esac
57aa50d4
TT
2319 else
2320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2321/* end confdefs.h. */
2322$4
54445dc2
TT
2323static long int longval (void) { return $2; }
2324static unsigned long int ulongval (void) { return $2; }
57aa50d4
TT
2325#include <stdio.h>
2326#include <stdlib.h>
2327int
54445dc2 2328main (void)
57aa50d4 2329{
927566a3 2330
57aa50d4
TT
2331 FILE *f = fopen ("conftest.val", "w");
2332 if (! f)
2333 return 1;
2334 if (($2) < 0)
2335 {
2336 long int i = longval ();
2337 if (i != ($2))
2338 return 1;
2339 fprintf (f, "%ld", i);
2340 }
2341 else
2342 {
2343 unsigned long int i = ulongval ();
2344 if (i != ($2))
2345 return 1;
2346 fprintf (f, "%lu", i);
2347 }
2348 /* Do not output a trailing newline, as this causes \r\n confusion
2349 on some platforms. */
2350 return ferror (f) || fclose (f) != 0;
93636bde 2351
57aa50d4
TT
2352 ;
2353 return 0;
2354}
2355_ACEOF
54445dc2
TT
2356if ac_fn_c_try_run "$LINENO"
2357then :
57aa50d4 2358 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
54445dc2 2359else $as_nop
57aa50d4
TT
2360 ac_retval=1
2361fi
2362rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2363 conftest.$ac_objext conftest.beam conftest.$ac_ext
2364rm -f conftest.val
93636bde 2365
57aa50d4 2366 fi
d6a4bcb5 2367 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
61ef2474 2368 as_fn_set_status $ac_retval
927566a3 2369
57aa50d4 2370} # ac_fn_c_compute_int
2869485b
TT
2371
2372# ac_fn_cxx_try_compile LINENO
2373# ----------------------------
2374# Try to compile conftest.$ac_ext, and return whether this succeeded.
2375ac_fn_cxx_try_compile ()
2376{
2377 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2378 rm -f conftest.$ac_objext conftest.beam
2379 if { { ac_try="$ac_compile"
2380case "(($ac_try" in
2381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2382 *) ac_try_echo=$ac_try;;
2383esac
2384eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2385printf "%s\n" "$ac_try_echo"; } >&5
2386 (eval "$ac_compile") 2>conftest.err
2387 ac_status=$?
2388 if test -s conftest.err; then
2389 grep -v '^ *+' conftest.err >conftest.er1
2390 cat conftest.er1 >&5
2391 mv -f conftest.er1 conftest.err
2392 fi
2393 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2394 test $ac_status = 0; } && {
2395 test -z "$ac_cxx_werror_flag" ||
2396 test ! -s conftest.err
2397 } && test -s conftest.$ac_objext
2398then :
2399 ac_retval=0
2400else $as_nop
2401 printf "%s\n" "$as_me: failed program was:" >&5
2402sed 's/^/| /' conftest.$ac_ext >&5
2403
2404 ac_retval=1
2405fi
2406 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2407 as_fn_set_status $ac_retval
2408
2409} # ac_fn_cxx_try_compile
54445dc2
TT
2410ac_configure_args_raw=
2411for ac_arg
2412do
2413 case $ac_arg in
2414 *\'*)
2415 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2416 esac
2417 as_fn_append ac_configure_args_raw " '$ac_arg'"
2418done
2419
2420case $ac_configure_args_raw in
2421 *$as_nl*)
2422 ac_safe_unquote= ;;
2423 *)
2424 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2425 ac_unsafe_a="$ac_unsafe_z#~"
2426 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2427 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2428esac
2429
57aa50d4
TT
2430cat >config.log <<_ACEOF
2431This file contains any messages produced by compilers while
2432running configure, to aid debugging if configure makes a mistake.
93636bde 2433
57aa50d4 2434It was created by $as_me, which was
54445dc2 2435generated by GNU Autoconf 2.71. Invocation command line was
07a0db15 2436
54445dc2 2437 $ $0$ac_configure_args_raw
e1052144 2438
57aa50d4
TT
2439_ACEOF
2440exec 5>>config.log
2441{
2442cat <<_ASUNAME
2443## --------- ##
2444## Platform. ##
2445## --------- ##
0b5b9f90 2446
57aa50d4
TT
2447hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2448uname -m = `(uname -m) 2>/dev/null || echo unknown`
2449uname -r = `(uname -r) 2>/dev/null || echo unknown`
2450uname -s = `(uname -s) 2>/dev/null || echo unknown`
2451uname -v = `(uname -v) 2>/dev/null || echo unknown`
0b5b9f90 2452
57aa50d4
TT
2453/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2454/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
0b5b9f90 2455
57aa50d4
TT
2456/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2457/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2458/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2459/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2460/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2461/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2462/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
0b5b9f90 2463
57aa50d4 2464_ASUNAME
b0cacab0 2465
b0cacab0
TT
2466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2467for as_dir in $PATH
2468do
2469 IFS=$as_save_IFS
54445dc2
TT
2470 case $as_dir in #(((
2471 '') as_dir=./ ;;
2472 */) ;;
2473 *) as_dir=$as_dir/ ;;
2474 esac
2475 printf "%s\n" "PATH: $as_dir"
57aa50d4 2476 done
e1052144 2477IFS=$as_save_IFS
b0cacab0 2478
57aa50d4 2479} >&5
74becf3c 2480
57aa50d4 2481cat >&5 <<_ACEOF
e1052144 2482
b0cacab0 2483
57aa50d4
TT
2484## ----------- ##
2485## Core tests. ##
2486## ----------- ##
b0cacab0 2487
57aa50d4 2488_ACEOF
b0cacab0 2489
57aa50d4
TT
2490
2491# Keep a trace of the command line.
2492# Strip out --no-create and --no-recursion so they do not pile up.
2493# Strip out --silent because we don't want to record it for future runs.
2494# Also quote any args containing shell meta-characters.
2495# Make two passes to allow for proper duplicate-argument suppression.
2496ac_configure_args=
2497ac_configure_args0=
2498ac_configure_args1=
2499ac_must_keep_next=false
2500for ac_pass in 1 2
b0cacab0 2501do
57aa50d4
TT
2502 for ac_arg
2503 do
2504 case $ac_arg in
2505 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2506 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2507 | -silent | --silent | --silen | --sile | --sil)
2508 continue ;;
2509 *\'*)
54445dc2 2510 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
57aa50d4
TT
2511 esac
2512 case $ac_pass in
2513 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2514 2)
2515 as_fn_append ac_configure_args1 " '$ac_arg'"
2516 if test $ac_must_keep_next = true; then
2517 ac_must_keep_next=false # Got value, back to normal.
2518 else
2519 case $ac_arg in
2520 *=* | --config-cache | -C | -disable-* | --disable-* \
2521 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2522 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2523 | -with-* | --with-* | -without-* | --without-* | --x)
2524 case "$ac_configure_args0 " in
2525 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2526 esac
2527 ;;
2528 -* ) ac_must_keep_next=true ;;
2529 esac
2530 fi
2531 as_fn_append ac_configure_args " '$ac_arg'"
2532 ;;
2533 esac
2534 done
b0cacab0 2535done
57aa50d4
TT
2536{ ac_configure_args0=; unset ac_configure_args0;}
2537{ ac_configure_args1=; unset ac_configure_args1;}
2538
2539# When interrupted or exit'd, cleanup temporary files, and complete
2540# config.log. We remove comments because anyway the quotes in there
2541# would cause problems or look ugly.
2542# WARNING: Use '\'' to represent an apostrophe within the trap.
2543# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2544trap 'exit_status=$?
54445dc2
TT
2545 # Sanitize IFS.
2546 IFS=" "" $as_nl"
57aa50d4
TT
2547 # Save into config.log some information that might help in debugging.
2548 {
2549 echo
2550
54445dc2 2551 printf "%s\n" "## ---------------- ##
57aa50d4 2552## Cache variables. ##
d6a4bcb5 2553## ---------------- ##"
57aa50d4
TT
2554 echo
2555 # The following way of writing the cache mishandles newlines in values,
2556(
2557 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2558 eval ac_val=\$$ac_var
2559 case $ac_val in #(
2560 *${as_nl}*)
2561 case $ac_var in #(
54445dc2
TT
2562 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2563printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
57aa50d4
TT
2564 esac
2565 case $ac_var in #(
2566 _ | IFS | as_nl) ;; #(
2567 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2568 *) { eval $ac_var=; unset $ac_var;} ;;
2569 esac ;;
2570 esac
2571 done
2572 (set) 2>&1 |
2573 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2574 *${as_nl}ac_space=\ *)
2575 sed -n \
2576 "s/'\''/'\''\\\\'\'''\''/g;
2577 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2578 ;; #(
2579 *)
2580 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2581 ;;
2582 esac |
2583 sort
2584)
2585 echo
2586
54445dc2 2587 printf "%s\n" "## ----------------- ##
57aa50d4 2588## Output variables. ##
d6a4bcb5 2589## ----------------- ##"
57aa50d4
TT
2590 echo
2591 for ac_var in $ac_subst_vars
2592 do
2593 eval ac_val=\$$ac_var
2594 case $ac_val in
54445dc2 2595 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
57aa50d4 2596 esac
54445dc2 2597 printf "%s\n" "$ac_var='\''$ac_val'\''"
57aa50d4
TT
2598 done | sort
2599 echo
2600
2601 if test -n "$ac_subst_files"; then
54445dc2 2602 printf "%s\n" "## ------------------- ##
57aa50d4 2603## File substitutions. ##
d6a4bcb5 2604## ------------------- ##"
57aa50d4
TT
2605 echo
2606 for ac_var in $ac_subst_files
2607 do
2608 eval ac_val=\$$ac_var
2609 case $ac_val in
54445dc2 2610 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
57aa50d4 2611 esac
54445dc2 2612 printf "%s\n" "$ac_var='\''$ac_val'\''"
57aa50d4
TT
2613 done | sort
2614 echo
2615 fi
2616
2617 if test -s confdefs.h; then
54445dc2 2618 printf "%s\n" "## ----------- ##
57aa50d4 2619## confdefs.h. ##
d6a4bcb5 2620## ----------- ##"
57aa50d4
TT
2621 echo
2622 cat confdefs.h
2623 echo
2624 fi
2625 test "$ac_signal" != 0 &&
54445dc2
TT
2626 printf "%s\n" "$as_me: caught signal $ac_signal"
2627 printf "%s\n" "$as_me: exit $exit_status"
57aa50d4
TT
2628 } >&5
2629 rm -f core *.core core.conftest.* &&
2630 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2631 exit $exit_status
2632' 0
2633for ac_signal in 1 2 13 15; do
2634 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
b0cacab0 2635done
57aa50d4 2636ac_signal=0
b0cacab0 2637
57aa50d4
TT
2638# confdefs.h avoids OS command line length limits that DEFS can exceed.
2639rm -f -r conftest* confdefs.h
b0cacab0 2640
54445dc2 2641printf "%s\n" "/* confdefs.h */" > confdefs.h
73ae2d4a 2642
57aa50d4
TT
2643# Predefined preprocessor variables.
2644
54445dc2 2645printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
57aa50d4 2646
54445dc2 2647printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
57aa50d4 2648
54445dc2 2649printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
57aa50d4 2650
54445dc2 2651printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
57aa50d4 2652
54445dc2 2653printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
57aa50d4 2654
54445dc2 2655printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
57aa50d4
TT
2656
2657
2658# Let the site file select an alternate cache file if it wants to.
2659# Prefer an explicitly selected file to automatically selected ones.
57aa50d4 2660if test -n "$CONFIG_SITE"; then
54445dc2 2661 ac_site_files="$CONFIG_SITE"
57aa50d4 2662elif test "x$prefix" != xNONE; then
54445dc2 2663 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
73ae2d4a 2664else
54445dc2 2665 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
57aa50d4 2666fi
54445dc2
TT
2667
2668for ac_site_file in $ac_site_files
b0cacab0 2669do
54445dc2
TT
2670 case $ac_site_file in #(
2671 */*) :
2672 ;; #(
2673 *) :
2674 ac_site_file=./$ac_site_file ;;
2675esac
2676 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2678printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
57aa50d4 2679 sed 's/^/| /' "$ac_site_file" >&5
d6a4bcb5 2680 . "$ac_site_file" \
54445dc2
TT
2681 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2682printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
d6a4bcb5
TB
2683as_fn_error $? "failed to load site script $ac_site_file
2684See \`config.log' for more details" "$LINENO" 5; }
b0cacab0
TT
2685 fi
2686done
b0cacab0 2687
57aa50d4 2688if test -r "$cache_file"; then
61ef2474
TT
2689 # Some versions of bash will fail to source /dev/null (special files
2690 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2691 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
54445dc2
TT
2692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2693printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
57aa50d4
TT
2694 case $cache_file in
2695 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2696 *) . "./$cache_file";;
2697 esac
73ae2d4a 2698 fi
57aa50d4 2699else
54445dc2
TT
2700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2701printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
57aa50d4 2702 >$cache_file
73ae2d4a 2703fi
57aa50d4 2704
54445dc2
TT
2705as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2706# Test code for whether the C compiler supports C89 (global declarations)
2707ac_c_conftest_c89_globals='
2708/* Does the compiler advertise C89 conformance?
2709 Do not test the value of __STDC__, because some compilers set it to 0
2710 while being otherwise adequately conformant. */
2711#if !defined __STDC__
2712# error "Compiler does not advertise C89 conformance"
2713#endif
57aa50d4 2714
54445dc2
TT
2715#include <stddef.h>
2716#include <stdarg.h>
2717struct stat;
2718/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2719struct buf { int x; };
2720struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2721static char *e (p, i)
2722 char **p;
2723 int i;
2724{
2725 return p[i];
2726}
2727static char *f (char * (*g) (char **, int), char **p, ...)
2728{
2729 char *s;
2730 va_list v;
2731 va_start (v,p);
2732 s = g (p, va_arg (v,int));
2733 va_end (v);
2734 return s;
2735}
57aa50d4 2736
54445dc2
TT
2737/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2738 function prototypes and stuff, but not \xHH hex character constants.
2739 These do not provoke an error unfortunately, instead are silently treated
2740 as an "x". The following induces an error, until -std is added to get
2741 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2742 array size at least. It is necessary to write \x00 == 0 to get something
2743 that is true only with -std. */
2744int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
57aa50d4 2745
54445dc2
TT
2746/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2747 inside strings and character constants. */
2748#define FOO(x) '\''x'\''
2749int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
57aa50d4 2750
54445dc2
TT
2751int test (int i, double x);
2752struct s1 {int (*f) (int a);};
2753struct s2 {int (*f) (double a);};
2754int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2755 int, int);'
57aa50d4 2756
54445dc2
TT
2757# Test code for whether the C compiler supports C89 (body of main).
2758ac_c_conftest_c89_main='
2759ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2760'
57aa50d4 2761
54445dc2
TT
2762# Test code for whether the C compiler supports C99 (global declarations)
2763ac_c_conftest_c99_globals='
2764// Does the compiler advertise C99 conformance?
2765#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2766# error "Compiler does not advertise C99 conformance"
2767#endif
57aa50d4 2768
54445dc2
TT
2769#include <stdbool.h>
2770extern int puts (const char *);
2771extern int printf (const char *, ...);
2772extern int dprintf (int, const char *, ...);
2773extern void *malloc (size_t);
2774
2775// Check varargs macros. These examples are taken from C99 6.10.3.5.
2776// dprintf is used instead of fprintf to avoid needing to declare
2777// FILE and stderr.
2778#define debug(...) dprintf (2, __VA_ARGS__)
2779#define showlist(...) puts (#__VA_ARGS__)
2780#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2781static void
2782test_varargs_macros (void)
2783{
2784 int x = 1234;
2785 int y = 5678;
2786 debug ("Flag");
2787 debug ("X = %d\n", x);
2788 showlist (The first, second, and third items.);
2789 report (x>y, "x is %d but y is %d", x, y);
2790}
d1154eb4 2791
54445dc2
TT
2792// Check long long types.
2793#define BIG64 18446744073709551615ull
2794#define BIG32 4294967295ul
2795#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2796#if !BIG_OK
2797 #error "your preprocessor is broken"
2798#endif
2799#if BIG_OK
2800#else
2801 #error "your preprocessor is broken"
2802#endif
2803static long long int bignum = -9223372036854775807LL;
2804static unsigned long long int ubignum = BIG64;
d1154eb4 2805
54445dc2
TT
2806struct incomplete_array
2807{
2808 int datasize;
2809 double data[];
2810};
57aa50d4 2811
54445dc2
TT
2812struct named_init {
2813 int number;
2814 const wchar_t *name;
2815 double average;
2816};
57aa50d4 2817
54445dc2 2818typedef const char *ccp;
57aa50d4 2819
54445dc2
TT
2820static inline int
2821test_restrict (ccp restrict text)
2822{
2823 // See if C++-style comments work.
2824 // Iterate through items via the restricted pointer.
2825 // Also check for declarations in for loops.
2826 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2827 continue;
2828 return 0;
2829}
57aa50d4 2830
54445dc2
TT
2831// Check varargs and va_copy.
2832static bool
2833test_varargs (const char *format, ...)
2834{
2835 va_list args;
2836 va_start (args, format);
2837 va_list args_copy;
2838 va_copy (args_copy, args);
57aa50d4 2839
54445dc2
TT
2840 const char *str = "";
2841 int number = 0;
2842 float fnumber = 0;
57aa50d4 2843
54445dc2
TT
2844 while (*format)
2845 {
2846 switch (*format++)
2847 {
2848 case '\''s'\'': // string
2849 str = va_arg (args_copy, const char *);
2850 break;
2851 case '\''d'\'': // int
2852 number = va_arg (args_copy, int);
2853 break;
2854 case '\''f'\'': // float
2855 fnumber = va_arg (args_copy, double);
2856 break;
2857 default:
2858 break;
2859 }
2860 }
2861 va_end (args_copy);
2862 va_end (args);
57aa50d4 2863
54445dc2
TT
2864 return *str && number && fnumber;
2865}
2866'
57aa50d4 2867
54445dc2
TT
2868# Test code for whether the C compiler supports C99 (body of main).
2869ac_c_conftest_c99_main='
2870 // Check bool.
2871 _Bool success = false;
2872 success |= (argc != 0);
2873
2874 // Check restrict.
2875 if (test_restrict ("String literal") == 0)
2876 success = true;
2877 char *restrict newvar = "Another string";
2878
2879 // Check varargs.
2880 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2881 test_varargs_macros ();
2882
2883 // Check flexible array members.
2884 struct incomplete_array *ia =
2885 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2886 ia->datasize = 10;
2887 for (int i = 0; i < ia->datasize; ++i)
2888 ia->data[i] = i * 1.234;
2889
2890 // Check named initializers.
2891 struct named_init ni = {
2892 .number = 34,
2893 .name = L"Test wide string",
2894 .average = 543.34343,
2895 };
2896
2897 ni.number = 58;
2898
2899 int dynamic_array[ni.number];
2900 dynamic_array[0] = argv[0][0];
2901 dynamic_array[ni.number - 1] = 543;
2902
2903 // work around unused variable warnings
2904 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2905 || dynamic_array[ni.number - 1] != 543);
2906'
57aa50d4 2907
54445dc2
TT
2908# Test code for whether the C compiler supports C11 (global declarations)
2909ac_c_conftest_c11_globals='
2910// Does the compiler advertise C11 conformance?
2911#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2912# error "Compiler does not advertise C11 conformance"
2913#endif
57aa50d4 2914
54445dc2
TT
2915// Check _Alignas.
2916char _Alignas (double) aligned_as_double;
2917char _Alignas (0) no_special_alignment;
2918extern char aligned_as_int;
2919char _Alignas (0) _Alignas (int) aligned_as_int;
57aa50d4 2920
54445dc2
TT
2921// Check _Alignof.
2922enum
2923{
2924 int_alignment = _Alignof (int),
2925 int_array_alignment = _Alignof (int[100]),
2926 char_alignment = _Alignof (char)
2927};
2928_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
57aa50d4 2929
54445dc2
TT
2930// Check _Noreturn.
2931int _Noreturn does_not_return (void) { for (;;) continue; }
5ce368f0 2932
54445dc2
TT
2933// Check _Static_assert.
2934struct test_static_assert
2935{
2936 int x;
2937 _Static_assert (sizeof (int) <= sizeof (long int),
2938 "_Static_assert does not work in struct");
2939 long int y;
2940};
2941
2942// Check UTF-8 literals.
2943#define u8 syntax error!
2944char const utf8_literal[] = u8"happens to be ASCII" "another string";
2945
2946// Check duplicate typedefs.
2947typedef long *long_ptr;
2948typedef long int *long_ptr;
2949typedef long_ptr long_ptr;
2950
2951// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2952struct anonymous
2953{
2954 union {
2955 struct { int i; int j; };
2956 struct { int k; long int l; } w;
2957 };
2958 int m;
2959} v1;
2960'
6c59a665 2961
54445dc2
TT
2962# Test code for whether the C compiler supports C11 (body of main).
2963ac_c_conftest_c11_main='
2964 _Static_assert ((offsetof (struct anonymous, i)
2965 == offsetof (struct anonymous, w.k)),
2966 "Anonymous union alignment botch");
2967 v1.i = 2;
2968 v1.w.k = 5;
2969 ok |= v1.i != 5;
2970'
57aa50d4 2971
54445dc2
TT
2972# Test code for whether the C compiler supports C11 (complete).
2973ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2974${ac_c_conftest_c99_globals}
2975${ac_c_conftest_c11_globals}
57aa50d4 2976
54445dc2
TT
2977int
2978main (int argc, char **argv)
2979{
2980 int ok = 0;
2981 ${ac_c_conftest_c89_main}
2982 ${ac_c_conftest_c99_main}
2983 ${ac_c_conftest_c11_main}
2984 return ok;
2985}
2986"
73ae2d4a 2987
54445dc2
TT
2988# Test code for whether the C compiler supports C99 (complete).
2989ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2990${ac_c_conftest_c99_globals}
e1052144 2991
54445dc2
TT
2992int
2993main (int argc, char **argv)
2994{
2995 int ok = 0;
2996 ${ac_c_conftest_c89_main}
2997 ${ac_c_conftest_c99_main}
2998 return ok;
2999}
3000"
57aa50d4 3001
54445dc2
TT
3002# Test code for whether the C compiler supports C89 (complete).
3003ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
57aa50d4 3004
54445dc2
TT
3005int
3006main (int argc, char **argv)
3007{
3008 int ok = 0;
3009 ${ac_c_conftest_c89_main}
3010 return ok;
3011}
3012"
57aa50d4 3013
54445dc2
TT
3014as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
3015as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
3016as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
3017as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
3018as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
3019as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
3020as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
3021as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
3022as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
3023as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
3024gt_needs="$gt_needs "
3025as_fn_append ac_func_c_list " vprintf HAVE_VPRINTF"
2869485b
TT
3026# Test code for whether the C++ compiler supports C++98 (global declarations)
3027ac_cxx_conftest_cxx98_globals='
3028// Does the compiler advertise C++98 conformance?
3029#if !defined __cplusplus || __cplusplus < 199711L
3030# error "Compiler does not advertise C++98 conformance"
3031#endif
3032
3033// These inclusions are to reject old compilers that
3034// lack the unsuffixed header files.
3035#include <cstdlib>
3036#include <exception>
3037
3038// <cassert> and <cstring> are *not* freestanding headers in C++98.
3039extern void assert (int);
3040namespace std {
3041 extern int strcmp (const char *, const char *);
3042}
3043
3044// Namespaces, exceptions, and templates were all added after "C++ 2.0".
3045using std::exception;
3046using std::strcmp;
3047
3048namespace {
3049
3050void test_exception_syntax()
3051{
3052 try {
3053 throw "test";
3054 } catch (const char *s) {
3055 // Extra parentheses suppress a warning when building autoconf itself,
3056 // due to lint rules shared with more typical C programs.
3057 assert (!(strcmp) (s, "test"));
3058 }
3059}
3060
3061template <typename T> struct test_template
3062{
3063 T const val;
3064 explicit test_template(T t) : val(t) {}
3065 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
3066};
3067
3068} // anonymous namespace
3069'
3070
3071# Test code for whether the C++ compiler supports C++98 (body of main)
3072ac_cxx_conftest_cxx98_main='
3073 assert (argc);
3074 assert (! argv[0]);
3075{
3076 test_exception_syntax ();
3077 test_template<double> tt (2.0);
3078 assert (tt.add (4) == 6.0);
3079 assert (true && !false);
3080}
3081'
3082
3083# Test code for whether the C++ compiler supports C++11 (global declarations)
3084ac_cxx_conftest_cxx11_globals='
3085// Does the compiler advertise C++ 2011 conformance?
3086#if !defined __cplusplus || __cplusplus < 201103L
3087# error "Compiler does not advertise C++11 conformance"
3088#endif
3089
3090namespace cxx11test
3091{
3092 constexpr int get_val() { return 20; }
3093
3094 struct testinit
3095 {
3096 int i;
3097 double d;
3098 };
3099
3100 class delegate
3101 {
3102 public:
3103 delegate(int n) : n(n) {}
3104 delegate(): delegate(2354) {}
3105
3106 virtual int getval() { return this->n; };
3107 protected:
3108 int n;
3109 };
3110
3111 class overridden : public delegate
3112 {
3113 public:
3114 overridden(int n): delegate(n) {}
3115 virtual int getval() override final { return this->n * 2; }
3116 };
3117
3118 class nocopy
3119 {
3120 public:
3121 nocopy(int i): i(i) {}
3122 nocopy() = default;
3123 nocopy(const nocopy&) = delete;
3124 nocopy & operator=(const nocopy&) = delete;
3125 private:
3126 int i;
3127 };
3128
3129 // for testing lambda expressions
3130 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
3131 {
3132 return f(v);
3133 }
3134
3135 // for testing variadic templates and trailing return types
3136 template <typename V> auto sum(V first) -> V
3137 {
3138 return first;
3139 }
3140 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
3141 {
3142 return first + sum(rest...);
3143 }
3144}
3145'
3146
3147# Test code for whether the C++ compiler supports C++11 (body of main)
3148ac_cxx_conftest_cxx11_main='
3149{
3150 // Test auto and decltype
3151 auto a1 = 6538;
3152 auto a2 = 48573953.4;
3153 auto a3 = "String literal";
3154
3155 int total = 0;
3156 for (auto i = a3; *i; ++i) { total += *i; }
3157
3158 decltype(a2) a4 = 34895.034;
3159}
3160{
3161 // Test constexpr
3162 short sa[cxx11test::get_val()] = { 0 };
3163}
3164{
3165 // Test initializer lists
3166 cxx11test::testinit il = { 4323, 435234.23544 };
3167}
3168{
3169 // Test range-based for
3170 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
3171 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
3172 for (auto &x : array) { x += 23; }
3173}
3174{
3175 // Test lambda expressions
3176 using cxx11test::eval;
3177 assert (eval ([](int x) { return x*2; }, 21) == 42);
3178 double d = 2.0;
3179 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
3180 assert (d == 5.0);
3181 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
3182 assert (d == 5.0);
3183}
3184{
3185 // Test use of variadic templates
3186 using cxx11test::sum;
3187 auto a = sum(1);
3188 auto b = sum(1, 2);
3189 auto c = sum(1.0, 2.0, 3.0);
3190}
3191{
3192 // Test constructor delegation
3193 cxx11test::delegate d1;
3194 cxx11test::delegate d2();
3195 cxx11test::delegate d3(45);
3196}
3197{
3198 // Test override and final
3199 cxx11test::overridden o1(55464);
3200}
3201{
3202 // Test nullptr
3203 char *c = nullptr;
3204}
3205{
3206 // Test template brackets
3207 test_template<::test_template<int>> v(test_template<int>(12));
3208}
3209{
3210 // Unicode literals
3211 char const *utf8 = u8"UTF-8 string \u2500";
3212 char16_t const *utf16 = u"UTF-8 string \u2500";
3213 char32_t const *utf32 = U"UTF-32 string \u2500";
3214}
3215'
3216
3217# Test code for whether the C compiler supports C++11 (complete).
3218ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
3219${ac_cxx_conftest_cxx11_globals}
3220
3221int
3222main (int argc, char **argv)
3223{
3224 int ok = 0;
3225 ${ac_cxx_conftest_cxx98_main}
3226 ${ac_cxx_conftest_cxx11_main}
3227 return ok;
3228}
3229"
3230
3231# Test code for whether the C compiler supports C++98 (complete).
3232ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
3233int
3234main (int argc, char **argv)
3235{
3236 int ok = 0;
3237 ${ac_cxx_conftest_cxx98_main}
3238 return ok;
3239}
3240"
3241
54445dc2
TT
3242
3243# Auxiliary files required by this configure script.
3244ac_aux_files="config.rpath install-sh config.guess config.sub"
3245
3246# Locations in which to look for auxiliary files.
3247ac_aux_dir_candidates="${srcdir}/config"
3248
3249# Search for a directory containing all of the required auxiliary files,
3250# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3251# If we don't find one directory that contains all the files we need,
3252# we report the set of missing files from the *first* directory in
3253# $ac_aux_dir_candidates and give up.
3254ac_missing_aux_files=""
3255ac_first_candidate=:
3256printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
b0cacab0 3257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
54445dc2
TT
3258as_found=false
3259for as_dir in $ac_aux_dir_candidates
b0cacab0
TT
3260do
3261 IFS=$as_save_IFS
54445dc2
TT
3262 case $as_dir in #(((
3263 '') as_dir=./ ;;
3264 */) ;;
3265 *) as_dir=$as_dir/ ;;
3266 esac
3267 as_found=:
3268
3269 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
3270 ac_aux_dir_found=yes
3271 ac_install_sh=
3272 for ac_aux in $ac_aux_files
3273 do
3274 # As a special case, if "install-sh" is required, that requirement
3275 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3276 # and $ac_install_sh is set appropriately for whichever one is found.
3277 if test x"$ac_aux" = x"install-sh"
3278 then
3279 if test -f "${as_dir}install-sh"; then
3280 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
3281 ac_install_sh="${as_dir}install-sh -c"
3282 elif test -f "${as_dir}install.sh"; then
3283 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
3284 ac_install_sh="${as_dir}install.sh -c"
3285 elif test -f "${as_dir}shtool"; then
3286 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
3287 ac_install_sh="${as_dir}shtool install -c"
3288 else
3289 ac_aux_dir_found=no
3290 if $ac_first_candidate; then
3291 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3292 else
3293 break
3294 fi
3295 fi
3296 else
3297 if test -f "${as_dir}${ac_aux}"; then
3298 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
3299 else
3300 ac_aux_dir_found=no
3301 if $ac_first_candidate; then
3302 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3303 else
3304 break
3305 fi
3306 fi
3307 fi
3308 done
3309 if test "$ac_aux_dir_found" = yes; then
3310 ac_aux_dir="$as_dir"
3311 break
b0cacab0 3312 fi
54445dc2
TT
3313 ac_first_candidate=false
3314
3315 as_found=false
b0cacab0 3316done
e1052144 3317IFS=$as_save_IFS
54445dc2
TT
3318if $as_found
3319then :
b0cacab0 3320
54445dc2
TT
3321else $as_nop
3322 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
73ae2d4a 3323fi
b0cacab0 3324
e1052144 3325
54445dc2
TT
3326# These three variables are undocumented and unsupported,
3327# and are intended to be withdrawn in a future Autoconf release.
3328# They can cause serious problems if a builder's source tree is in a directory
3329# whose full name contains unusual characters.
3330if test -f "${ac_aux_dir}config.guess"; then
3331 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
b0cacab0 3332fi
54445dc2
TT
3333if test -f "${ac_aux_dir}config.sub"; then
3334 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
b0cacab0 3335fi
54445dc2
TT
3336if test -f "$ac_aux_dir/configure"; then
3337 ac_configure="$SHELL ${ac_aux_dir}configure"
07a0db15 3338fi
73ae2d4a 3339
54445dc2
TT
3340# Check that the precious variables saved in the cache have kept the same
3341# value.
3342ac_cache_corrupted=false
3343for ac_var in $ac_precious_vars; do
3344 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3345 eval ac_new_set=\$ac_env_${ac_var}_set
3346 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3347 eval ac_new_val=\$ac_env_${ac_var}_value
3348 case $ac_old_set,$ac_new_set in
3349 set,)
3350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3351printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3352 ac_cache_corrupted=: ;;
3353 ,set)
3354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3355printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3356 ac_cache_corrupted=: ;;
3357 ,);;
3358 *)
3359 if test "x$ac_old_val" != "x$ac_new_val"; then
3360 # differences in whitespace do not lead to failure.
3361 ac_old_val_w=`echo x $ac_old_val`
3362 ac_new_val_w=`echo x $ac_new_val`
3363 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3365printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3366 ac_cache_corrupted=:
3367 else
3368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3369printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3370 eval $ac_var=\$ac_old_val
3371 fi
3372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3373printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
3374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3375printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
3376 fi;;
3377 esac
3378 # Pass precious variables to config.status.
3379 if test "$ac_new_set" = set; then
3380 case $ac_new_val in
3381 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3382 *) ac_arg=$ac_var=$ac_new_val ;;
3383 esac
3384 case " $ac_configure_args " in
3385 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3386 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3387 esac
3388 fi
3389done
3390if $ac_cache_corrupted; then
3391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3392printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3394printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3395 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3396 and start over" "$LINENO" 5
3397fi
3398## -------------------- ##
3399## Main body of script. ##
3400## -------------------- ##
3401
3402ac_ext=c
3403ac_cpp='$CPP $CPPFLAGS'
3404ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3405ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3406ac_compiler_gnu=$ac_cv_c_compiler_gnu
3407
3408
3409
3410
3411
3412ac_config_headers="$ac_config_headers lib/config.h"
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424ac_ext=c
3425ac_cpp='$CPP $CPPFLAGS'
3426ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3427ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3428ac_compiler_gnu=$ac_cv_c_compiler_gnu
3429if test -n "$ac_tool_prefix"; then
3430 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3431set dummy ${ac_tool_prefix}gcc; ac_word=$2
3432{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3433printf %s "checking for $ac_word... " >&6; }
3434if test ${ac_cv_prog_CC+y}
3435then :
3436 printf %s "(cached) " >&6
3437else $as_nop
3438 if test -n "$CC"; then
3439 ac_cv_prog_CC="$CC" # Let the user override the test.
3440else
3441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3442for as_dir in $PATH
3443do
3444 IFS=$as_save_IFS
3445 case $as_dir in #(((
3446 '') as_dir=./ ;;
3447 */) ;;
3448 *) as_dir=$as_dir/ ;;
3449 esac
3450 for ac_exec_ext in '' $ac_executable_extensions; do
3451 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3452 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3453 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3454 break 2
3455 fi
3456done
3457 done
3458IFS=$as_save_IFS
3459
3460fi
3461fi
3462CC=$ac_cv_prog_CC
3463if test -n "$CC"; then
3464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3465printf "%s\n" "$CC" >&6; }
3466else
3467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3468printf "%s\n" "no" >&6; }
3469fi
3470
3471
3472fi
3473if test -z "$ac_cv_prog_CC"; then
3474 ac_ct_CC=$CC
3475 # Extract the first word of "gcc", so it can be a program name with args.
3476set dummy gcc; ac_word=$2
3477{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3478printf %s "checking for $ac_word... " >&6; }
3479if test ${ac_cv_prog_ac_ct_CC+y}
3480then :
3481 printf %s "(cached) " >&6
3482else $as_nop
3483 if test -n "$ac_ct_CC"; then
3484 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3485else
3486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3487for as_dir in $PATH
3488do
3489 IFS=$as_save_IFS
3490 case $as_dir in #(((
3491 '') as_dir=./ ;;
3492 */) ;;
3493 *) as_dir=$as_dir/ ;;
3494 esac
3495 for ac_exec_ext in '' $ac_executable_extensions; do
3496 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3497 ac_cv_prog_ac_ct_CC="gcc"
3498 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3499 break 2
3500 fi
3501done
3502 done
3503IFS=$as_save_IFS
3504
3505fi
3506fi
3507ac_ct_CC=$ac_cv_prog_ac_ct_CC
3508if test -n "$ac_ct_CC"; then
3509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3510printf "%s\n" "$ac_ct_CC" >&6; }
3511else
3512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3513printf "%s\n" "no" >&6; }
3514fi
3515
3516 if test "x$ac_ct_CC" = x; then
3517 CC=""
3518 else
3519 case $cross_compiling:$ac_tool_warned in
3520yes:)
3521{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3522printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3523ac_tool_warned=yes ;;
3524esac
3525 CC=$ac_ct_CC
e1052144 3526 fi
57aa50d4
TT
3527else
3528 CC="$ac_cv_prog_CC"
b0cacab0
TT
3529fi
3530
57aa50d4
TT
3531if test -z "$CC"; then
3532 if test -n "$ac_tool_prefix"; then
3533 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3534set dummy ${ac_tool_prefix}cc; ac_word=$2
54445dc2
TT
3535{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3536printf %s "checking for $ac_word... " >&6; }
3537if test ${ac_cv_prog_CC+y}
3538then :
3539 printf %s "(cached) " >&6
3540else $as_nop
57aa50d4
TT
3541 if test -n "$CC"; then
3542 ac_cv_prog_CC="$CC" # Let the user override the test.
3543else
3544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3545for as_dir in $PATH
3546do
3547 IFS=$as_save_IFS
54445dc2
TT
3548 case $as_dir in #(((
3549 '') as_dir=./ ;;
3550 */) ;;
3551 *) as_dir=$as_dir/ ;;
3552 esac
57aa50d4 3553 for ac_exec_ext in '' $ac_executable_extensions; do
54445dc2 3554 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
57aa50d4 3555 ac_cv_prog_CC="${ac_tool_prefix}cc"
54445dc2 3556 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
57aa50d4
TT
3557 break 2
3558 fi
3559done
3560 done
3561IFS=$as_save_IFS
3562
3563fi
3564fi
3565CC=$ac_cv_prog_CC
3566if test -n "$CC"; then
54445dc2
TT
3567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3568printf "%s\n" "$CC" >&6; }
57aa50d4 3569else
54445dc2
TT
3570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3571printf "%s\n" "no" >&6; }
57aa50d4
TT
3572fi
3573
3574
3575 fi
3576fi
3577if test -z "$CC"; then
3578 # Extract the first word of "cc", so it can be a program name with args.
3579set dummy cc; ac_word=$2
54445dc2
TT
3580{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3581printf %s "checking for $ac_word... " >&6; }
3582if test ${ac_cv_prog_CC+y}
3583then :
3584 printf %s "(cached) " >&6
3585else $as_nop
57aa50d4
TT
3586 if test -n "$CC"; then
3587 ac_cv_prog_CC="$CC" # Let the user override the test.
3588else
3589 ac_prog_rejected=no
3590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3591for as_dir in $PATH
3592do
3593 IFS=$as_save_IFS
54445dc2
TT
3594 case $as_dir in #(((
3595 '') as_dir=./ ;;
3596 */) ;;
3597 *) as_dir=$as_dir/ ;;
3598 esac
57aa50d4 3599 for ac_exec_ext in '' $ac_executable_extensions; do
54445dc2
TT
3600 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3601 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
57aa50d4
TT
3602 ac_prog_rejected=yes
3603 continue
3604 fi
3605 ac_cv_prog_CC="cc"
54445dc2 3606 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
57aa50d4
TT
3607 break 2
3608 fi
3609done
3610 done
3611IFS=$as_save_IFS
3612
3613if test $ac_prog_rejected = yes; then
3614 # We found a bogon in the path, so make sure we never use it.
3615 set dummy $ac_cv_prog_CC
3616 shift
3617 if test $# != 0; then
3618 # We chose a different compiler from the bogus one.
3619 # However, it has the same basename, so the bogon will be chosen
3620 # first if we set CC to just the basename; use the full file name.
3621 shift
54445dc2 3622 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
57aa50d4
TT
3623 fi
3624fi
3625fi
3626fi
3627CC=$ac_cv_prog_CC
3628if test -n "$CC"; then
54445dc2
TT
3629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3630printf "%s\n" "$CC" >&6; }
57aa50d4 3631else
54445dc2
TT
3632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3633printf "%s\n" "no" >&6; }
57aa50d4
TT
3634fi
3635
3636
3637fi
3638if test -z "$CC"; then
3639 if test -n "$ac_tool_prefix"; then
3640 for ac_prog in cl.exe
3641 do
3642 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3643set dummy $ac_tool_prefix$ac_prog; ac_word=$2
54445dc2
TT
3644{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3645printf %s "checking for $ac_word... " >&6; }
3646if test ${ac_cv_prog_CC+y}
3647then :
3648 printf %s "(cached) " >&6
3649else $as_nop
57aa50d4
TT
3650 if test -n "$CC"; then
3651 ac_cv_prog_CC="$CC" # Let the user override the test.
3652else
3653as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3654for as_dir in $PATH
3655do
3656 IFS=$as_save_IFS
54445dc2
TT
3657 case $as_dir in #(((
3658 '') as_dir=./ ;;
3659 */) ;;
3660 *) as_dir=$as_dir/ ;;
3661 esac
57aa50d4 3662 for ac_exec_ext in '' $ac_executable_extensions; do
54445dc2 3663 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
57aa50d4 3664 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
54445dc2 3665 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
57aa50d4
TT
3666 break 2
3667 fi
3668done
3669 done
3670IFS=$as_save_IFS
3671
3672fi
3673fi
3674CC=$ac_cv_prog_CC
3675if test -n "$CC"; then
54445dc2
TT
3676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3677printf "%s\n" "$CC" >&6; }
57aa50d4 3678else
54445dc2
TT
3679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3680printf "%s\n" "no" >&6; }
57aa50d4
TT
3681fi
3682
3683
3684 test -n "$CC" && break
3685 done
3686fi
3687if test -z "$CC"; then
3688 ac_ct_CC=$CC
3689 for ac_prog in cl.exe
3690do
3691 # Extract the first word of "$ac_prog", so it can be a program name with args.
3692set dummy $ac_prog; ac_word=$2
54445dc2
TT
3693{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3694printf %s "checking for $ac_word... " >&6; }
3695if test ${ac_cv_prog_ac_ct_CC+y}
3696then :
3697 printf %s "(cached) " >&6
3698else $as_nop
57aa50d4
TT
3699 if test -n "$ac_ct_CC"; then
3700 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3701else
3702as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3703for as_dir in $PATH
3704do
3705 IFS=$as_save_IFS
54445dc2
TT
3706 case $as_dir in #(((
3707 '') as_dir=./ ;;
3708 */) ;;
3709 *) as_dir=$as_dir/ ;;
3710 esac
57aa50d4 3711 for ac_exec_ext in '' $ac_executable_extensions; do
54445dc2 3712 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
57aa50d4 3713 ac_cv_prog_ac_ct_CC="$ac_prog"
54445dc2 3714 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
57aa50d4
TT
3715 break 2
3716 fi
3717done
3718 done
3719IFS=$as_save_IFS
3720
3721fi
3722fi
3723ac_ct_CC=$ac_cv_prog_ac_ct_CC
3724if test -n "$ac_ct_CC"; then
54445dc2
TT
3725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3726printf "%s\n" "$ac_ct_CC" >&6; }
57aa50d4 3727else
54445dc2
TT
3728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3729printf "%s\n" "no" >&6; }
57aa50d4
TT
3730fi
3731
3732
3733 test -n "$ac_ct_CC" && break
3734done
3735
3736 if test "x$ac_ct_CC" = x; then
3737 CC=""
3738 else
3739 case $cross_compiling:$ac_tool_warned in
3740yes:)
54445dc2
TT
3741{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3742printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3743ac_tool_warned=yes ;;
3744esac
3745 CC=$ac_ct_CC
3746 fi
3747fi
3748
3749fi
3750if test -z "$CC"; then
3751 if test -n "$ac_tool_prefix"; then
3752 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3753set dummy ${ac_tool_prefix}clang; ac_word=$2
3754{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3755printf %s "checking for $ac_word... " >&6; }
3756if test ${ac_cv_prog_CC+y}
3757then :
3758 printf %s "(cached) " >&6
3759else $as_nop
3760 if test -n "$CC"; then
3761 ac_cv_prog_CC="$CC" # Let the user override the test.
3762else
3763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3764for as_dir in $PATH
3765do
3766 IFS=$as_save_IFS
3767 case $as_dir in #(((
3768 '') as_dir=./ ;;
3769 */) ;;
3770 *) as_dir=$as_dir/ ;;
3771 esac
3772 for ac_exec_ext in '' $ac_executable_extensions; do
3773 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3774 ac_cv_prog_CC="${ac_tool_prefix}clang"
3775 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3776 break 2
3777 fi
3778done
3779 done
3780IFS=$as_save_IFS
3781
3782fi
3783fi
3784CC=$ac_cv_prog_CC
3785if test -n "$CC"; then
3786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3787printf "%s\n" "$CC" >&6; }
3788else
3789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3790printf "%s\n" "no" >&6; }
3791fi
3792
3793
3794fi
3795if test -z "$ac_cv_prog_CC"; then
3796 ac_ct_CC=$CC
3797 # Extract the first word of "clang", so it can be a program name with args.
3798set dummy clang; ac_word=$2
3799{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3800printf %s "checking for $ac_word... " >&6; }
3801if test ${ac_cv_prog_ac_ct_CC+y}
3802then :
3803 printf %s "(cached) " >&6
3804else $as_nop
3805 if test -n "$ac_ct_CC"; then
3806 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3807else
3808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3809for as_dir in $PATH
3810do
3811 IFS=$as_save_IFS
3812 case $as_dir in #(((
3813 '') as_dir=./ ;;
3814 */) ;;
3815 *) as_dir=$as_dir/ ;;
3816 esac
3817 for ac_exec_ext in '' $ac_executable_extensions; do
3818 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3819 ac_cv_prog_ac_ct_CC="clang"
3820 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3821 break 2
3822 fi
3823done
3824 done
3825IFS=$as_save_IFS
3826
3827fi
3828fi
3829ac_ct_CC=$ac_cv_prog_ac_ct_CC
3830if test -n "$ac_ct_CC"; then
3831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3832printf "%s\n" "$ac_ct_CC" >&6; }
3833else
3834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3835printf "%s\n" "no" >&6; }
3836fi
3837
3838 if test "x$ac_ct_CC" = x; then
3839 CC=""
3840 else
3841 case $cross_compiling:$ac_tool_warned in
3842yes:)
3843{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3844printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
57aa50d4
TT
3845ac_tool_warned=yes ;;
3846esac
3847 CC=$ac_ct_CC
3848 fi
54445dc2
TT
3849else
3850 CC="$ac_cv_prog_CC"
57aa50d4
TT
3851fi
3852
3853fi
3854
3855
54445dc2
TT
3856test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3857printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
d6a4bcb5
TB
3858as_fn_error $? "no acceptable C compiler found in \$PATH
3859See \`config.log' for more details" "$LINENO" 5; }
b0cacab0
TT
3860
3861# Provide some information about the compiler.
54445dc2 3862printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
39fd3d4f
SJR
3863set X $ac_compile
3864ac_compiler=$2
54445dc2 3865for ac_option in --version -v -V -qversion -version; do
57aa50d4 3866 { { ac_try="$ac_compiler $ac_option >&5"
e1052144
TT
3867case "(($ac_try" in
3868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3869 *) ac_try_echo=$ac_try;;
3870esac
57aa50d4 3871eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
54445dc2 3872printf "%s\n" "$ac_try_echo"; } >&5
57aa50d4 3873 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
b0cacab0 3874 ac_status=$?
57aa50d4
TT
3875 if test -s conftest.err; then
3876 sed '10a\
3877... rest of stderr output deleted ...
3878 10q' conftest.err >conftest.er1
3879 cat conftest.er1 >&5
57aa50d4 3880 fi
61ef2474 3881 rm -f conftest.er1 conftest.err
54445dc2 3882 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
57aa50d4
TT
3883 test $ac_status = 0; }
3884done
b0cacab0 3885
57aa50d4 3886cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 3887/* end confdefs.h. */
61ef2474 3888
b0cacab0 3889int
54445dc2 3890main (void)
b0cacab0
TT
3891{
3892
3893 ;
3894 return 0;
3895}
3896_ACEOF
3897ac_clean_files_save=$ac_clean_files
61ef2474 3898ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
b0cacab0
TT
3899# Try to create an executable without -o first, disregard a.out.
3900# It will help us diagnose broken compilers, and finding out an intuition
3901# of exeext.
54445dc2
TT
3902{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3903printf %s "checking whether the C compiler works... " >&6; }
3904ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
39fd3d4f
SJR
3905
3906# The possible output files:
3907ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3908
e1052144
TT
3909ac_rmfiles=
3910for ac_file in $ac_files
3911do
3912 case $ac_file in
39fd3d4f 3913 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
e1052144
TT
3914 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3915 esac
3916done
3917rm -f $ac_rmfiles
3918
57aa50d4 3919if { { ac_try="$ac_link_default"
e1052144
TT
3920case "(($ac_try" in
3921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3922 *) ac_try_echo=$ac_try;;
3923esac
57aa50d4 3924eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
54445dc2 3925printf "%s\n" "$ac_try_echo"; } >&5
e1052144 3926 (eval "$ac_link_default") 2>&5
b0cacab0 3927 ac_status=$?
54445dc2
TT
3928 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3929 test $ac_status = 0; }
3930then :
e1052144
TT
3931 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3932# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3933# in a Makefile. We should not override ac_cv_exeext if it was cached,
3934# so that the user can short-circuit this test for compilers unknown to
3935# Autoconf.
29a5deed 3936for ac_file in $ac_files ''
b0cacab0
TT
3937do
3938 test -f "$ac_file" || continue
3939 case $ac_file in
39fd3d4f 3940 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
b0cacab0
TT
3941 ;;
3942 [ab].out )
3943 # We found the default executable, but exeext='' is most
3944 # certainly right.
3945 break;;
3946 *.* )
54445dc2 3947 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
e1052144
TT
3948 then :; else
3949 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3950 fi
3951 # We set ac_cv_exeext here because the later test for it is not
3952 # safe: cross compilers may not add the suffix if given an `-o'
3953 # argument, so we may need to know it at that point already.
3954 # Even if this section looks crufty: it has the advantage of
3955 # actually working.
b0cacab0
TT
3956 break;;
3957 * )
3958 break;;
3959 esac
3960done
e1052144
TT
3961test "$ac_cv_exeext" = no && ac_cv_exeext=
3962
54445dc2 3963else $as_nop
29a5deed
TT
3964 ac_file=''
3965fi
54445dc2
TT
3966if test -z "$ac_file"
3967then :
3968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3969printf "%s\n" "no" >&6; }
3970printf "%s\n" "$as_me: failed program was:" >&5
b0cacab0
TT
3971sed 's/^/| /' conftest.$ac_ext >&5
3972
54445dc2
TT
3973{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3974printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
d6a4bcb5
TB
3975as_fn_error 77 "C compiler cannot create executables
3976See \`config.log' for more details" "$LINENO" 5; }
54445dc2
TT
3977else $as_nop
3978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3979printf "%s\n" "yes" >&6; }
3980fi
3981{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3982printf %s "checking for C compiler default output file name... " >&6; }
3983{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3984printf "%s\n" "$ac_file" >&6; }
b0cacab0 3985ac_exeext=$ac_cv_exeext
b0cacab0 3986
61ef2474 3987rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
b0cacab0 3988ac_clean_files=$ac_clean_files_save
54445dc2
TT
3989{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3990printf %s "checking for suffix of executables... " >&6; }
57aa50d4 3991if { { ac_try="$ac_link"
e1052144
TT
3992case "(($ac_try" in
3993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3994 *) ac_try_echo=$ac_try;;
3995esac
57aa50d4 3996eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
54445dc2 3997printf "%s\n" "$ac_try_echo"; } >&5
e1052144 3998 (eval "$ac_link") 2>&5
b0cacab0 3999 ac_status=$?
54445dc2
TT
4000 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4001 test $ac_status = 0; }
4002then :
b0cacab0
TT
4003 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4004# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4005# work properly (i.e., refer to `conftest.exe'), while it won't with
4006# `rm'.
4007for ac_file in conftest.exe conftest conftest.*; do
4008 test -f "$ac_file" || continue
4009 case $ac_file in
39fd3d4f 4010 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
b0cacab0 4011 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
b0cacab0
TT
4012 break;;
4013 * ) break;;
4014 esac
4015done
54445dc2
TT
4016else $as_nop
4017 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4018printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
d6a4bcb5
TB
4019as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4020See \`config.log' for more details" "$LINENO" 5; }
73ae2d4a 4021fi
61ef2474 4022rm -f conftest conftest$ac_cv_exeext
54445dc2
TT
4023{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4024printf "%s\n" "$ac_cv_exeext" >&6; }
73ae2d4a 4025
b0cacab0
TT
4026rm -f conftest.$ac_ext
4027EXEEXT=$ac_cv_exeext
4028ac_exeext=$EXEEXT
61ef2474
TT
4029cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4030/* end confdefs.h. */
4031#include <stdio.h>
4032int
54445dc2 4033main (void)
61ef2474
TT
4034{
4035FILE *f = fopen ("conftest.out", "w");
4036 return ferror (f) || fclose (f) != 0;
4037
4038 ;
4039 return 0;
4040}
4041_ACEOF
4042ac_clean_files="$ac_clean_files conftest.out"
4043# Check that the compiler produces executables we can run. If not, either
4044# the compiler is broken, or we cross compile.
54445dc2
TT
4045{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4046printf %s "checking whether we are cross compiling... " >&6; }
61ef2474
TT
4047if test "$cross_compiling" != yes; then
4048 { { ac_try="$ac_link"
4049case "(($ac_try" in
4050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4051 *) ac_try_echo=$ac_try;;
4052esac
4053eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
54445dc2 4054printf "%s\n" "$ac_try_echo"; } >&5
61ef2474
TT
4055 (eval "$ac_link") 2>&5
4056 ac_status=$?
54445dc2 4057 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
61ef2474
TT
4058 test $ac_status = 0; }
4059 if { ac_try='./conftest$ac_cv_exeext'
4060 { { case "(($ac_try" in
4061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4062 *) ac_try_echo=$ac_try;;
4063esac
4064eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
54445dc2 4065printf "%s\n" "$ac_try_echo"; } >&5
61ef2474
TT
4066 (eval "$ac_try") 2>&5
4067 ac_status=$?
54445dc2 4068 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
61ef2474
TT
4069 test $ac_status = 0; }; }; then
4070 cross_compiling=no
4071 else
4072 if test "$cross_compiling" = maybe; then
4073 cross_compiling=yes
4074 else
54445dc2
TT
4075 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4076printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4077as_fn_error 77 "cannot run C compiled programs.
61ef2474 4078If you meant to cross compile, use \`--host'.
d6a4bcb5 4079See \`config.log' for more details" "$LINENO" 5; }
61ef2474
TT
4080 fi
4081 fi
4082fi
54445dc2
TT
4083{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4084printf "%s\n" "$cross_compiling" >&6; }
61ef2474
TT
4085
4086rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4087ac_clean_files=$ac_clean_files_save
54445dc2
TT
4088{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4089printf %s "checking for suffix of object files... " >&6; }
4090if test ${ac_cv_objext+y}
4091then :
4092 printf %s "(cached) " >&6
4093else $as_nop
57aa50d4 4094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 4095/* end confdefs.h. */
07a0db15 4096
b0cacab0 4097int
54445dc2 4098main (void)
b0cacab0 4099{
07a0db15 4100
b0cacab0
TT
4101 ;
4102 return 0;
4103}
4104_ACEOF
4105rm -f conftest.o conftest.obj
57aa50d4 4106if { { ac_try="$ac_compile"
e1052144
TT
4107case "(($ac_try" in
4108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4109 *) ac_try_echo=$ac_try;;
4110esac
57aa50d4 4111eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
54445dc2 4112printf "%s\n" "$ac_try_echo"; } >&5
e1052144 4113 (eval "$ac_compile") 2>&5
b0cacab0 4114 ac_status=$?
54445dc2
TT
4115 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4116 test $ac_status = 0; }
4117then :
e1052144
TT
4118 for ac_file in conftest.o conftest.obj conftest.*; do
4119 test -f "$ac_file" || continue;
b0cacab0 4120 case $ac_file in
39fd3d4f 4121 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
b0cacab0
TT
4122 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4123 break;;
4124 esac
4125done
54445dc2
TT
4126else $as_nop
4127 printf "%s\n" "$as_me: failed program was:" >&5
b0cacab0 4128sed 's/^/| /' conftest.$ac_ext >&5
07a0db15 4129
54445dc2
TT
4130{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4131printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
d6a4bcb5
TB
4132as_fn_error $? "cannot compute suffix of object files: cannot compile
4133See \`config.log' for more details" "$LINENO" 5; }
73ae2d4a 4134fi
b0cacab0 4135rm -f conftest.$ac_cv_objext conftest.$ac_ext
73ae2d4a 4136fi
54445dc2
TT
4137{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4138printf "%s\n" "$ac_cv_objext" >&6; }
b0cacab0
TT
4139OBJEXT=$ac_cv_objext
4140ac_objext=$OBJEXT
54445dc2
TT
4141{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4142printf %s "checking whether the compiler supports GNU C... " >&6; }
4143if test ${ac_cv_c_compiler_gnu+y}
4144then :
4145 printf %s "(cached) " >&6
4146else $as_nop
57aa50d4 4147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0
TT
4148/* end confdefs.h. */
4149
4150int
54445dc2 4151main (void)
b0cacab0
TT
4152{
4153#ifndef __GNUC__
4154 choke me
4155#endif
4156
4157 ;
4158 return 0;
4159}
4160_ACEOF
54445dc2
TT
4161if ac_fn_c_try_compile "$LINENO"
4162then :
b0cacab0 4163 ac_compiler_gnu=yes
54445dc2 4164else $as_nop
57aa50d4 4165 ac_compiler_gnu=no
b0cacab0 4166fi
54445dc2 4167rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
b0cacab0
TT
4168ac_cv_c_compiler_gnu=$ac_compiler_gnu
4169
4170fi
54445dc2
TT
4171{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4172printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4173ac_compiler_gnu=$ac_cv_c_compiler_gnu
4174
39fd3d4f
SJR
4175if test $ac_compiler_gnu = yes; then
4176 GCC=yes
4177else
4178 GCC=
4179fi
54445dc2 4180ac_test_CFLAGS=${CFLAGS+y}
b0cacab0 4181ac_save_CFLAGS=$CFLAGS
54445dc2
TT
4182{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4183printf %s "checking whether $CC accepts -g... " >&6; }
4184if test ${ac_cv_prog_cc_g+y}
4185then :
4186 printf %s "(cached) " >&6
4187else $as_nop
e1052144
TT
4188 ac_save_c_werror_flag=$ac_c_werror_flag
4189 ac_c_werror_flag=yes
4190 ac_cv_prog_cc_g=no
4191 CFLAGS="-g"
57aa50d4 4192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e1052144
TT
4193/* end confdefs.h. */
4194
4195int
54445dc2 4196main (void)
e1052144
TT
4197{
4198
4199 ;
4200 return 0;
4201}
4202_ACEOF
54445dc2
TT
4203if ac_fn_c_try_compile "$LINENO"
4204then :
e1052144 4205 ac_cv_prog_cc_g=yes
54445dc2 4206else $as_nop
57aa50d4
TT
4207 CFLAGS=""
4208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e1052144
TT
4209/* end confdefs.h. */
4210
4211int
54445dc2 4212main (void)
e1052144
TT
4213{
4214
4215 ;
4216 return 0;
4217}
4218_ACEOF
54445dc2
TT
4219if ac_fn_c_try_compile "$LINENO"
4220then :
e1052144 4221
54445dc2 4222else $as_nop
57aa50d4 4223 ac_c_werror_flag=$ac_save_c_werror_flag
e1052144 4224 CFLAGS="-g"
57aa50d4 4225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0
TT
4226/* end confdefs.h. */
4227
4228int
54445dc2 4229main (void)
b0cacab0
TT
4230{
4231
4232 ;
4233 return 0;
4234}
4235_ACEOF
54445dc2
TT
4236if ac_fn_c_try_compile "$LINENO"
4237then :
b0cacab0 4238 ac_cv_prog_cc_g=yes
e1052144 4239fi
54445dc2 4240rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
e1052144 4241fi
54445dc2 4242rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
b0cacab0 4243fi
54445dc2 4244rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
e1052144 4245 ac_c_werror_flag=$ac_save_c_werror_flag
b0cacab0 4246fi
54445dc2
TT
4247{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4248printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4249if test $ac_test_CFLAGS; then
b0cacab0
TT
4250 CFLAGS=$ac_save_CFLAGS
4251elif test $ac_cv_prog_cc_g = yes; then
4252 if test "$GCC" = yes; then
4253 CFLAGS="-g -O2"
4254 else
4255 CFLAGS="-g"
4256 fi
73ae2d4a
TT
4257else
4258 if test "$GCC" = yes; then
4259 CFLAGS="-O2"
4260 else
4261 CFLAGS=
4262 fi
4263fi
54445dc2
TT
4264ac_prog_cc_stdc=no
4265if test x$ac_prog_cc_stdc = xno
4266then :
4267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4268printf %s "checking for $CC option to enable C11 features... " >&6; }
4269if test ${ac_cv_prog_cc_c11+y}
4270then :
4271 printf %s "(cached) " >&6
4272else $as_nop
4273 ac_cv_prog_cc_c11=no
b0cacab0 4274ac_save_CC=$CC
57aa50d4 4275cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 4276/* end confdefs.h. */
54445dc2 4277$ac_c_conftest_c11_program
b0cacab0 4278_ACEOF
54445dc2 4279for ac_arg in '' -std=gnu11
b0cacab0
TT
4280do
4281 CC="$ac_save_CC $ac_arg"
54445dc2
TT
4282 if ac_fn_c_try_compile "$LINENO"
4283then :
4284 ac_cv_prog_cc_c11=$ac_arg
4285fi
4286rm -f core conftest.err conftest.$ac_objext conftest.beam
4287 test "x$ac_cv_prog_cc_c11" != "xno" && break
4288done
4289rm -f conftest.$ac_ext
4290CC=$ac_save_CC
4291fi
4292
4293if test "x$ac_cv_prog_cc_c11" = xno
4294then :
4295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4296printf "%s\n" "unsupported" >&6; }
4297else $as_nop
4298 if test "x$ac_cv_prog_cc_c11" = x
4299then :
4300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4301printf "%s\n" "none needed" >&6; }
4302else $as_nop
4303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4304printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4305 CC="$CC $ac_cv_prog_cc_c11"
4306fi
4307 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4308 ac_prog_cc_stdc=c11
4309fi
4310fi
4311if test x$ac_prog_cc_stdc = xno
4312then :
4313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4314printf %s "checking for $CC option to enable C99 features... " >&6; }
4315if test ${ac_cv_prog_cc_c99+y}
4316then :
4317 printf %s "(cached) " >&6
4318else $as_nop
4319 ac_cv_prog_cc_c99=no
4320ac_save_CC=$CC
4321cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4322/* end confdefs.h. */
4323$ac_c_conftest_c99_program
4324_ACEOF
4325for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4326do
4327 CC="$ac_save_CC $ac_arg"
4328 if ac_fn_c_try_compile "$LINENO"
4329then :
4330 ac_cv_prog_cc_c99=$ac_arg
4331fi
4332rm -f core conftest.err conftest.$ac_objext conftest.beam
4333 test "x$ac_cv_prog_cc_c99" != "xno" && break
4334done
4335rm -f conftest.$ac_ext
4336CC=$ac_save_CC
4337fi
4338
4339if test "x$ac_cv_prog_cc_c99" = xno
4340then :
4341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4342printf "%s\n" "unsupported" >&6; }
4343else $as_nop
4344 if test "x$ac_cv_prog_cc_c99" = x
4345then :
4346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4347printf "%s\n" "none needed" >&6; }
4348else $as_nop
4349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4350printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4351 CC="$CC $ac_cv_prog_cc_c99"
4352fi
4353 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4354 ac_prog_cc_stdc=c99
4355fi
4356fi
4357if test x$ac_prog_cc_stdc = xno
4358then :
4359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4360printf %s "checking for $CC option to enable C89 features... " >&6; }
4361if test ${ac_cv_prog_cc_c89+y}
4362then :
4363 printf %s "(cached) " >&6
4364else $as_nop
4365 ac_cv_prog_cc_c89=no
4366ac_save_CC=$CC
4367cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4368/* end confdefs.h. */
4369$ac_c_conftest_c89_program
4370_ACEOF
4371for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4372do
4373 CC="$ac_save_CC $ac_arg"
4374 if ac_fn_c_try_compile "$LINENO"
4375then :
e1052144 4376 ac_cv_prog_cc_c89=$ac_arg
b0cacab0 4377fi
54445dc2 4378rm -f core conftest.err conftest.$ac_objext conftest.beam
e1052144 4379 test "x$ac_cv_prog_cc_c89" != "xno" && break
b0cacab0 4380done
e1052144 4381rm -f conftest.$ac_ext
b0cacab0 4382CC=$ac_save_CC
b0cacab0 4383fi
b0cacab0 4384
54445dc2
TT
4385if test "x$ac_cv_prog_cc_c89" = xno
4386then :
4387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4388printf "%s\n" "unsupported" >&6; }
4389else $as_nop
4390 if test "x$ac_cv_prog_cc_c89" = x
4391then :
4392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4393printf "%s\n" "none needed" >&6; }
4394else $as_nop
4395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4396printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4397 CC="$CC $ac_cv_prog_cc_c89"
4398fi
4399 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4400 ac_prog_cc_stdc=c89
4401fi
57aa50d4 4402fi
b0cacab0 4403
b0cacab0
TT
4404ac_ext=c
4405ac_cpp='$CPP $CPPFLAGS'
4406ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4407ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4408ac_compiler_gnu=$ac_cv_c_compiler_gnu
4409
57aa50d4 4410
54445dc2
TT
4411ac_header= ac_cache=
4412for ac_item in $ac_header_c_list
4413do
4414 if test $ac_cache; then
4415 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4416 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4417 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4418 fi
4419 ac_header= ac_cache=
4420 elif test $ac_header; then
4421 ac_cache=$ac_item
4422 else
4423 ac_header=$ac_item
4424 fi
4425done
4426
4427
4428
4429
4430
4431
4432
4433
4434if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4435then :
4436
4437printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4438
4439fi
4440
4441
4442
4443
4444
4445
4446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4447printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4448if test ${ac_cv_safe_to_define___extensions__+y}
4449then :
4450 printf %s "(cached) " >&6
4451else $as_nop
4452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4453/* end confdefs.h. */
4454
4455# define __EXTENSIONS__ 1
4456 $ac_includes_default
4457int
4458main (void)
4459{
4460
4461 ;
4462 return 0;
4463}
4464_ACEOF
4465if ac_fn_c_try_compile "$LINENO"
4466then :
4467 ac_cv_safe_to_define___extensions__=yes
4468else $as_nop
4469 ac_cv_safe_to_define___extensions__=no
4470fi
4471rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4472fi
4473{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4474printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
4475
4476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4477printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4478if test ${ac_cv_should_define__xopen_source+y}
4479then :
4480 printf %s "(cached) " >&6
4481else $as_nop
4482 ac_cv_should_define__xopen_source=no
4483 if test $ac_cv_header_wchar_h = yes
4484then :
4485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4486/* end confdefs.h. */
4487
4488 #include <wchar.h>
4489 mbstate_t x;
4490int
4491main (void)
4492{
4493
4494 ;
4495 return 0;
4496}
4497_ACEOF
4498if ac_fn_c_try_compile "$LINENO"
4499then :
4500
4501else $as_nop
4502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4503/* end confdefs.h. */
4504
4505 #define _XOPEN_SOURCE 500
4506 #include <wchar.h>
4507 mbstate_t x;
4508int
4509main (void)
4510{
4511
4512 ;
4513 return 0;
4514}
4515_ACEOF
4516if ac_fn_c_try_compile "$LINENO"
4517then :
4518 ac_cv_should_define__xopen_source=yes
4519fi
4520rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4521fi
4522rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4523fi
4524fi
4525{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4526printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
4527
4528 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
4529
4530 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4531
4532 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
4533
4534 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4535
4536 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
4537
4538 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
4539
4540 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4541
4542 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4543
4544 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4545
4546 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4547
4548 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4549
4550 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4551
4552 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4553
4554 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4555
4556 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
4557
4558 if test $ac_cv_header_minix_config_h = yes
4559then :
4560 MINIX=yes
4561 printf "%s\n" "#define _MINIX 1" >>confdefs.h
4562
4563 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
4564
4565 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
4566
4567else $as_nop
4568 MINIX=
4569fi
4570 if test $ac_cv_safe_to_define___extensions__ = yes
4571then :
4572 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
4573
4574fi
4575 if test $ac_cv_should_define__xopen_source = yes
4576then :
4577 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
4578
4579fi
4580
4581MCONFIG=./MCONFIG
4582
4583BINARY_TYPE=bin
4584E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
4585 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
4586E2FSPROGS_DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
4587 | tr \" " " | awk '{print $1}'`
4588E2FSPROGS_DAY=$(echo $E2FSPROGS_DATE | awk -F- '{print $1}' | sed -e '/^[1-9]$/s/^/0/')
4589MONTH=`echo $E2FSPROGS_DATE | awk -F- '{print $2}'`
4590YEAR=`echo $E2FSPROGS_DATE | awk -F- '{print $3}'`
4591
4592if expr $YEAR ">" 1900 > /dev/null ; then
4593 E2FSPROGS_YEAR=$YEAR
4594elif expr $YEAR ">" 90 >/dev/null ; then
4595 E2FSPROGS_YEAR=19$YEAR
4596else
4597 E2FSPROGS_YEAR=20$YEAR
4598fi
4599
4600case $MONTH in
4601Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
4602Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
4603Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
4604Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
4605May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
4606Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
4607Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
4608Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
4609Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
4610Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
4611Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
4612Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
4613*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
4614printf "%s\n" "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
4615esac
4616
4617base_ver=`echo $E2FSPROGS_VERSION | \
4618 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
4619
4620date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
4621
4622case $E2FSPROGS_VERSION in
4623*-WIP|pre-*)
4624 E2FSPROGS_PKGVER="$base_ver~WIP.$date_spec"
4625 ;;
4626*)
4627 E2FSPROGS_PKGVER="$base_ver"
4628 ;;
4629esac
4630
4631unset DATE MONTH YEAR base_ver pre_vers date_spec
4632{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
4633printf "%s\n" "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
4634{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
4635printf "%s\n" "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
4636
4637
4638
4639
4640
4641
4642WITH_DIET_LIBC=
4643
4644# Check whether --with-diet-libc was given.
4645if test ${with_diet_libc+y}
4646then :
4647 withval=$with_diet_libc; CC="diet cc -nostdinc"
4648WITH_DIET_LIBC=yes
4649if test -z "$LIBS"
4650then
4651 LIBS="-lcompat"
4652else
4653 LIBS="$LIBS -lcompat"
4654fi
4655{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
4656printf "%s\n" "CC=$CC" >&6; }
4657fi
4658
4659
4660
4661 # Make sure we can run config.sub.
4662$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4663 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4664
4665{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4666printf %s "checking build system type... " >&6; }
4667if test ${ac_cv_build+y}
4668then :
4669 printf %s "(cached) " >&6
4670else $as_nop
4671 ac_build_alias=$build_alias
4672test "x$ac_build_alias" = x &&
4673 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4674test "x$ac_build_alias" = x &&
4675 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4676ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4677 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4678
4679fi
4680{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4681printf "%s\n" "$ac_cv_build" >&6; }
4682case $ac_cv_build in
4683*-*-*) ;;
4684*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4685esac
4686build=$ac_cv_build
4687ac_save_IFS=$IFS; IFS='-'
4688set x $ac_cv_build
4689shift
4690build_cpu=$1
4691build_vendor=$2
4692shift; shift
4693# Remember, the first character of IFS is used to create $*,
4694# except with old shells:
4695build_os=$*
4696IFS=$ac_save_IFS
4697case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4698
4699
4700{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4701printf %s "checking host system type... " >&6; }
4702if test ${ac_cv_host+y}
4703then :
4704 printf %s "(cached) " >&6
4705else $as_nop
4706 if test "x$host_alias" = x; then
4707 ac_cv_host=$ac_cv_build
b0cacab0 4708else
54445dc2
TT
4709 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4710 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4711fi
4712
4713fi
4714{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4715printf "%s\n" "$ac_cv_host" >&6; }
4716case $ac_cv_host in
4717*-*-*) ;;
4718*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4719esac
4720host=$ac_cv_host
4721ac_save_IFS=$IFS; IFS='-'
4722set x $ac_cv_host
4723shift
4724host_cpu=$1
4725host_vendor=$2
4726shift; shift
4727# Remember, the first character of IFS is used to create $*,
4728# except with old shells:
4729host_os=$*
4730IFS=$ac_save_IFS
4731case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4732
4733
4734DLOPEN_LIB=''
4735{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
4736printf %s "checking for dlopen in -ldl... " >&6; }
4737if test ${ac_cv_lib_dl_dlopen+y}
4738then :
4739 printf %s "(cached) " >&6
4740else $as_nop
57aa50d4
TT
4741 ac_check_lib_save_LIBS=$LIBS
4742LIBS="-ldl $LIBS"
4743cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 4744/* end confdefs.h. */
57aa50d4
TT
4745
4746/* Override any GCC internal prototype to avoid an error.
4747 Use char because int might match the return type of a GCC
4748 builtin and then its argument prototype would still apply. */
57aa50d4
TT
4749char dlopen ();
4750int
54445dc2 4751main (void)
57aa50d4
TT
4752{
4753return dlopen ();
4754 ;
4755 return 0;
4756}
b0cacab0 4757_ACEOF
54445dc2
TT
4758if ac_fn_c_try_link "$LINENO"
4759then :
57aa50d4 4760 ac_cv_lib_dl_dlopen=yes
54445dc2 4761else $as_nop
57aa50d4 4762 ac_cv_lib_dl_dlopen=no
b0cacab0 4763fi
54445dc2 4764rm -f core conftest.err conftest.$ac_objext conftest.beam \
57aa50d4
TT
4765 conftest$ac_exeext conftest.$ac_ext
4766LIBS=$ac_check_lib_save_LIBS
b0cacab0 4767fi
54445dc2
TT
4768{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
4769printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
4770if test "x$ac_cv_lib_dl_dlopen" = xyes
4771then :
57aa50d4 4772 DLOPEN_LIB=-ldl
b0cacab0
TT
4773fi
4774
b0cacab0 4775
e1052144 4776
57aa50d4 4777# Check whether --with-cc was given.
54445dc2
TT
4778if test ${with_cc+y}
4779then :
d6a4bcb5 4780 withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
57aa50d4 4781fi
b0cacab0 4782
b0cacab0 4783
57aa50d4 4784# Check whether --with-ccopts was given.
54445dc2
TT
4785if test ${with_ccopts+y}
4786then :
d6a4bcb5 4787 withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
b0cacab0 4788fi
e1052144 4789
b0cacab0 4790
57aa50d4 4791# Check whether --with-ldopts was given.
54445dc2
TT
4792if test ${with_ldopts+y}
4793then :
d6a4bcb5 4794 withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
b0cacab0
TT
4795fi
4796
4797ac_ext=c
4798ac_cpp='$CPP $CPPFLAGS'
4799ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4800ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4801ac_compiler_gnu=$ac_cv_c_compiler_gnu
57aa50d4
TT
4802if test -n "$ac_tool_prefix"; then
4803 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4804set dummy ${ac_tool_prefix}gcc; ac_word=$2
54445dc2
TT
4805{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4806printf %s "checking for $ac_word... " >&6; }
4807if test ${ac_cv_prog_CC+y}
4808then :
4809 printf %s "(cached) " >&6
4810else $as_nop
57aa50d4
TT
4811 if test -n "$CC"; then
4812 ac_cv_prog_CC="$CC" # Let the user override the test.
4813else
4814as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4815for as_dir in $PATH
e1052144
TT
4816do
4817 IFS=$as_save_IFS
54445dc2
TT
4818 case $as_dir in #(((
4819 '') as_dir=./ ;;
4820 */) ;;
4821 *) as_dir=$as_dir/ ;;
4822 esac
39fd3d4f 4823 for ac_exec_ext in '' $ac_executable_extensions; do
54445dc2 4824 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
57aa50d4 4825 ac_cv_prog_CC="${ac_tool_prefix}gcc"
54445dc2 4826 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
57aa50d4
TT
4827 break 2
4828 fi
e1052144 4829done
57aa50d4 4830 done
e1052144 4831IFS=$as_save_IFS
e1052144 4832
e1052144 4833fi
57aa50d4
TT
4834fi
4835CC=$ac_cv_prog_CC
4836if test -n "$CC"; then
54445dc2
TT
4837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4838printf "%s\n" "$CC" >&6; }
57aa50d4 4839else
54445dc2
TT
4840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4841printf "%s\n" "no" >&6; }
57aa50d4 4842fi
e1052144
TT
4843
4844
57aa50d4
TT
4845fi
4846if test -z "$ac_cv_prog_CC"; then
4847 ac_ct_CC=$CC
4848 # Extract the first word of "gcc", so it can be a program name with args.
4849set dummy gcc; ac_word=$2
54445dc2
TT
4850{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4851printf %s "checking for $ac_word... " >&6; }
4852if test ${ac_cv_prog_ac_ct_CC+y}
4853then :
4854 printf %s "(cached) " >&6
4855else $as_nop
57aa50d4
TT
4856 if test -n "$ac_ct_CC"; then
4857 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4858else
4859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4860for as_dir in $PATH
e1052144
TT
4861do
4862 IFS=$as_save_IFS
54445dc2
TT
4863 case $as_dir in #(((
4864 '') as_dir=./ ;;
4865 */) ;;
4866 *) as_dir=$as_dir/ ;;
4867 esac
39fd3d4f 4868 for ac_exec_ext in '' $ac_executable_extensions; do
54445dc2 4869 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
57aa50d4 4870 ac_cv_prog_ac_ct_CC="gcc"
54445dc2 4871 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
57aa50d4
TT
4872 break 2
4873 fi
e1052144 4874done
57aa50d4 4875 done
e1052144 4876IFS=$as_save_IFS
b0cacab0 4877
e1052144 4878fi
57aa50d4
TT
4879fi
4880ac_ct_CC=$ac_cv_prog_ac_ct_CC
4881if test -n "$ac_ct_CC"; then
54445dc2
TT
4882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4883printf "%s\n" "$ac_ct_CC" >&6; }
b0cacab0 4884else
54445dc2
TT
4885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4886printf "%s\n" "no" >&6; }
57aa50d4 4887fi
b0cacab0 4888
57aa50d4
TT
4889 if test "x$ac_ct_CC" = x; then
4890 CC=""
4891 else
4892 case $cross_compiling:$ac_tool_warned in
4893yes:)
54445dc2
TT
4894{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4895printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
57aa50d4 4896ac_tool_warned=yes ;;
e1052144 4897esac
57aa50d4
TT
4898 CC=$ac_ct_CC
4899 fi
b0cacab0 4900else
57aa50d4 4901 CC="$ac_cv_prog_CC"
b0cacab0 4902fi
e1052144 4903
57aa50d4
TT
4904if test -z "$CC"; then
4905 if test -n "$ac_tool_prefix"; then
4906 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4907set dummy ${ac_tool_prefix}cc; ac_word=$2
54445dc2
TT
4908{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4909printf %s "checking for $ac_word... " >&6; }
4910if test ${ac_cv_prog_CC+y}
4911then :
4912 printf %s "(cached) " >&6
4913else $as_nop
57aa50d4
TT
4914 if test -n "$CC"; then
4915 ac_cv_prog_CC="$CC" # Let the user override the test.
4916else
4917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4918for as_dir in $PATH
4919do
4920 IFS=$as_save_IFS
54445dc2
TT
4921 case $as_dir in #(((
4922 '') as_dir=./ ;;
4923 */) ;;
4924 *) as_dir=$as_dir/ ;;
4925 esac
57aa50d4 4926 for ac_exec_ext in '' $ac_executable_extensions; do
54445dc2 4927 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
57aa50d4 4928 ac_cv_prog_CC="${ac_tool_prefix}cc"
54445dc2 4929 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
57aa50d4
TT
4930 break 2
4931 fi
4932done
4933 done
4934IFS=$as_save_IFS
b0cacab0 4935
a64c9c13 4936fi
57aa50d4
TT
4937fi
4938CC=$ac_cv_prog_CC
4939if test -n "$CC"; then
54445dc2
TT
4940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4941printf "%s\n" "$CC" >&6; }
b0cacab0 4942else
54445dc2
TT
4943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4944printf "%s\n" "no" >&6; }
a64c9c13 4945fi
b0cacab0 4946
b0cacab0 4947
57aa50d4
TT
4948 fi
4949fi
4950if test -z "$CC"; then
4951 # Extract the first word of "cc", so it can be a program name with args.
4952set dummy cc; ac_word=$2
54445dc2
TT
4953{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4954printf %s "checking for $ac_word... " >&6; }
4955if test ${ac_cv_prog_CC+y}
4956then :
4957 printf %s "(cached) " >&6
4958else $as_nop
57aa50d4
TT
4959 if test -n "$CC"; then
4960 ac_cv_prog_CC="$CC" # Let the user override the test.
a64c9c13 4961else
57aa50d4
TT
4962 ac_prog_rejected=no
4963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4964for as_dir in $PATH
4965do
4966 IFS=$as_save_IFS
54445dc2
TT
4967 case $as_dir in #(((
4968 '') as_dir=./ ;;
4969 */) ;;
4970 *) as_dir=$as_dir/ ;;
4971 esac
57aa50d4 4972 for ac_exec_ext in '' $ac_executable_extensions; do
54445dc2
TT
4973 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4974 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
57aa50d4
TT
4975 ac_prog_rejected=yes
4976 continue
4977 fi
4978 ac_cv_prog_CC="cc"
54445dc2 4979 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
57aa50d4
TT
4980 break 2
4981 fi
4982done
4983 done
4984IFS=$as_save_IFS
b0cacab0 4985
57aa50d4
TT
4986if test $ac_prog_rejected = yes; then
4987 # We found a bogon in the path, so make sure we never use it.
4988 set dummy $ac_cv_prog_CC
4989 shift
4990 if test $# != 0; then
4991 # We chose a different compiler from the bogus one.
4992 # However, it has the same basename, so the bogon will be chosen
4993 # first if we set CC to just the basename; use the full file name.
4994 shift
54445dc2 4995 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
57aa50d4 4996 fi
b0cacab0 4997fi
b0cacab0
TT
4998fi
4999fi
57aa50d4
TT
5000CC=$ac_cv_prog_CC
5001if test -n "$CC"; then
54445dc2
TT
5002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5003printf "%s\n" "$CC" >&6; }
57aa50d4 5004else
54445dc2
TT
5005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5006printf "%s\n" "no" >&6; }
b0cacab0 5007fi
b0cacab0 5008
b0cacab0
TT
5009
5010fi
57aa50d4
TT
5011if test -z "$CC"; then
5012 if test -n "$ac_tool_prefix"; then
5013 for ac_prog in cl.exe
5014 do
5015 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5016set dummy $ac_tool_prefix$ac_prog; ac_word=$2
54445dc2
TT
5017{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5018printf %s "checking for $ac_word... " >&6; }
5019if test ${ac_cv_prog_CC+y}
5020then :
5021 printf %s "(cached) " >&6
5022else $as_nop
57aa50d4
TT
5023 if test -n "$CC"; then
5024 ac_cv_prog_CC="$CC" # Let the user override the test.
5025else
5026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5027for as_dir in $PATH
5028do
5029 IFS=$as_save_IFS
54445dc2
TT
5030 case $as_dir in #(((
5031 '') as_dir=./ ;;
5032 */) ;;
5033 *) as_dir=$as_dir/ ;;
5034 esac
57aa50d4 5035 for ac_exec_ext in '' $ac_executable_extensions; do
54445dc2 5036 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
57aa50d4 5037 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
54445dc2 5038 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
57aa50d4
TT
5039 break 2
5040 fi
5041done
5042 done
5043IFS=$as_save_IFS
b0cacab0 5044
57aa50d4
TT
5045fi
5046fi
5047CC=$ac_cv_prog_CC
5048if test -n "$CC"; then
54445dc2
TT
5049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5050printf "%s\n" "$CC" >&6; }
57aa50d4 5051else
54445dc2
TT
5052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5053printf "%s\n" "no" >&6; }
57aa50d4 5054fi
b0cacab0
TT
5055
5056
57aa50d4
TT
5057 test -n "$CC" && break
5058 done
5059fi
5060if test -z "$CC"; then
5061 ac_ct_CC=$CC
5062 for ac_prog in cl.exe
b0cacab0 5063do
57aa50d4
TT
5064 # Extract the first word of "$ac_prog", so it can be a program name with args.
5065set dummy $ac_prog; ac_word=$2
54445dc2
TT
5066{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5067printf %s "checking for $ac_word... " >&6; }
5068if test ${ac_cv_prog_ac_ct_CC+y}
5069then :
5070 printf %s "(cached) " >&6
5071else $as_nop
57aa50d4
TT
5072 if test -n "$ac_ct_CC"; then
5073 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
b0cacab0 5074else
57aa50d4
TT
5075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5076for as_dir in $PATH
5077do
5078 IFS=$as_save_IFS
54445dc2
TT
5079 case $as_dir in #(((
5080 '') as_dir=./ ;;
5081 */) ;;
5082 *) as_dir=$as_dir/ ;;
5083 esac
57aa50d4 5084 for ac_exec_ext in '' $ac_executable_extensions; do
54445dc2 5085 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
57aa50d4 5086 ac_cv_prog_ac_ct_CC="$ac_prog"
54445dc2 5087 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
57aa50d4
TT
5088 break 2
5089 fi
5090done
5091 done
5092IFS=$as_save_IFS
b0cacab0 5093
b0cacab0 5094fi
b0cacab0 5095fi
57aa50d4
TT
5096ac_ct_CC=$ac_cv_prog_ac_ct_CC
5097if test -n "$ac_ct_CC"; then
54445dc2
TT
5098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5099printf "%s\n" "$ac_ct_CC" >&6; }
57aa50d4 5100else
54445dc2
TT
5101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5102printf "%s\n" "no" >&6; }
b0cacab0
TT
5103fi
5104
b0cacab0 5105
57aa50d4
TT
5106 test -n "$ac_ct_CC" && break
5107done
b0cacab0 5108
57aa50d4
TT
5109 if test "x$ac_ct_CC" = x; then
5110 CC=""
5111 else
5112 case $cross_compiling:$ac_tool_warned in
5113yes:)
54445dc2
TT
5114{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5115printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
57aa50d4 5116ac_tool_warned=yes ;;
e1052144 5117esac
57aa50d4
TT
5118 CC=$ac_ct_CC
5119 fi
5120fi
b0cacab0 5121
b0cacab0 5122fi
54445dc2
TT
5123if test -z "$CC"; then
5124 if test -n "$ac_tool_prefix"; then
5125 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5126set dummy ${ac_tool_prefix}clang; ac_word=$2
5127{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5128printf %s "checking for $ac_word... " >&6; }
5129if test ${ac_cv_prog_CC+y}
5130then :
5131 printf %s "(cached) " >&6
5132else $as_nop
5133 if test -n "$CC"; then
5134 ac_cv_prog_CC="$CC" # Let the user override the test.
cdf186e4 5135else
54445dc2
TT
5136as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5137for as_dir in $PATH
57aa50d4 5138do
54445dc2
TT
5139 IFS=$as_save_IFS
5140 case $as_dir in #(((
5141 '') as_dir=./ ;;
5142 */) ;;
5143 *) as_dir=$as_dir/ ;;
5144 esac
5145 for ac_exec_ext in '' $ac_executable_extensions; do
5146 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5147 ac_cv_prog_CC="${ac_tool_prefix}clang"
5148 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5149 break 2
5150 fi
57aa50d4 5151done
54445dc2
TT
5152 done
5153IFS=$as_save_IFS
2a29f135 5154
e1052144 5155fi
14b596d4 5156fi
54445dc2
TT
5157CC=$ac_cv_prog_CC
5158if test -n "$CC"; then
5159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5160printf "%s\n" "$CC" >&6; }
14b596d4 5161else
54445dc2
TT
5162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5163printf "%s\n" "no" >&6; }
14b596d4
TT
5164fi
5165
57aa50d4 5166
14b596d4 5167fi
54445dc2
TT
5168if test -z "$ac_cv_prog_CC"; then
5169 ac_ct_CC=$CC
5170 # Extract the first word of "clang", so it can be a program name with args.
5171set dummy clang; ac_word=$2
5172{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5173printf %s "checking for $ac_word... " >&6; }
5174if test ${ac_cv_prog_ac_ct_CC+y}
5175then :
5176 printf %s "(cached) " >&6
5177else $as_nop
5178 if test -n "$ac_ct_CC"; then
5179 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5aa6c3f6 5180else
54445dc2
TT
5181as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5182for as_dir in $PATH
93613951
TT
5183do
5184 IFS=$as_save_IFS
54445dc2
TT
5185 case $as_dir in #(((
5186 '') as_dir=./ ;;
5187 */) ;;
5188 *) as_dir=$as_dir/ ;;
5189 esac
93613951 5190 for ac_exec_ext in '' $ac_executable_extensions; do
54445dc2
TT
5191 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5192 ac_cv_prog_ac_ct_CC="clang"
5193 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5194 break 2
5195 fi
5196done
93613951
TT
5197 done
5198IFS=$as_save_IFS
54445dc2
TT
5199
5200fi
5201fi
5202ac_ct_CC=$ac_cv_prog_ac_ct_CC
5203if test -n "$ac_ct_CC"; then
5204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5205printf "%s\n" "$ac_ct_CC" >&6; }
5206else
5207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5208printf "%s\n" "no" >&6; }
5209fi
5210
5211 if test "x$ac_ct_CC" = x; then
5212 CC=""
5213 else
5214 case $cross_compiling:$ac_tool_warned in
5215yes:)
5216{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5217printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5218ac_tool_warned=yes ;;
5219esac
5220 CC=$ac_ct_CC
93613951 5221 fi
5aa6c3f6 5222else
54445dc2 5223 CC="$ac_cv_prog_CC"
93613951 5224fi
183c73b0
TT
5225
5226fi
5227
5228
54445dc2
TT
5229test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5230printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5231as_fn_error $? "no acceptable C compiler found in \$PATH
5232See \`config.log' for more details" "$LINENO" 5; }
5233
5234# Provide some information about the compiler.
5235printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5236set X $ac_compile
5237ac_compiler=$2
5238for ac_option in --version -v -V -qversion -version; do
5239 { { ac_try="$ac_compiler $ac_option >&5"
5240case "(($ac_try" in
5241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5242 *) ac_try_echo=$ac_try;;
5243esac
5244eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5245printf "%s\n" "$ac_try_echo"; } >&5
5246 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5247 ac_status=$?
5248 if test -s conftest.err; then
5249 sed '10a\
5250... rest of stderr output deleted ...
5251 10q' conftest.err >conftest.er1
5252 cat conftest.er1 >&5
5253 fi
5254 rm -f conftest.er1 conftest.err
5255 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5256 test $ac_status = 0; }
5257done
5258
5259{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5260printf %s "checking whether the compiler supports GNU C... " >&6; }
5261if test ${ac_cv_c_compiler_gnu+y}
5262then :
5263 printf %s "(cached) " >&6
5264else $as_nop
93613951
TT
5265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5266/* end confdefs.h. */
91d11da1 5267
93613951 5268int
54445dc2 5269main (void)
93613951 5270{
54445dc2
TT
5271#ifndef __GNUC__
5272 choke me
5273#endif
183c73b0 5274
93613951
TT
5275 ;
5276 return 0;
5277}
5278_ACEOF
54445dc2
TT
5279if ac_fn_c_try_compile "$LINENO"
5280then :
5281 ac_compiler_gnu=yes
5282else $as_nop
5283 ac_compiler_gnu=no
5aa6c3f6 5284fi
54445dc2
TT
5285rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5286ac_cv_c_compiler_gnu=$ac_compiler_gnu
93613951 5287
93613951 5288fi
54445dc2
TT
5289{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5290printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5291ac_compiler_gnu=$ac_cv_c_compiler_gnu
93613951 5292
54445dc2
TT
5293if test $ac_compiler_gnu = yes; then
5294 GCC=yes
5295else
5296 GCC=
93613951 5297fi
54445dc2
TT
5298ac_test_CFLAGS=${CFLAGS+y}
5299ac_save_CFLAGS=$CFLAGS
5300{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5301printf %s "checking whether $CC accepts -g... " >&6; }
5302if test ${ac_cv_prog_cc_g+y}
5303then :
5304 printf %s "(cached) " >&6
5305else $as_nop
5306 ac_save_c_werror_flag=$ac_c_werror_flag
5307 ac_c_werror_flag=yes
5308 ac_cv_prog_cc_g=no
5309 CFLAGS="-g"
5310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
93613951 5311/* end confdefs.h. */
93613951 5312
54445dc2
TT
5313int
5314main (void)
5315{
5316
5317 ;
5318 return 0;
5319}
93613951 5320_ACEOF
54445dc2
TT
5321if ac_fn_c_try_compile "$LINENO"
5322then :
5323 ac_cv_prog_cc_g=yes
5324else $as_nop
5325 CFLAGS=""
5326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5327/* end confdefs.h. */
93613951 5328
54445dc2
TT
5329int
5330main (void)
5331{
93613951 5332
54445dc2
TT
5333 ;
5334 return 0;
5335}
5336_ACEOF
5337if ac_fn_c_try_compile "$LINENO"
5338then :
93613951 5339
54445dc2
TT
5340else $as_nop
5341 ac_c_werror_flag=$ac_save_c_werror_flag
5342 CFLAGS="-g"
5343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
93613951 5344/* end confdefs.h. */
93613951 5345
93613951 5346int
54445dc2 5347main (void)
93613951 5348{
54445dc2
TT
5349
5350 ;
93613951
TT
5351 return 0;
5352}
5353_ACEOF
54445dc2
TT
5354if ac_fn_c_try_compile "$LINENO"
5355then :
5356 ac_cv_prog_cc_g=yes
5357fi
5358rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5359fi
5360rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5361fi
5362rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5363 ac_c_werror_flag=$ac_save_c_werror_flag
5364fi
5365{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5366printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5367if test $ac_test_CFLAGS; then
5368 CFLAGS=$ac_save_CFLAGS
5369elif test $ac_cv_prog_cc_g = yes; then
5370 if test "$GCC" = yes; then
5371 CFLAGS="-g -O2"
5372 else
5373 CFLAGS="-g"
5374 fi
93613951 5375else
54445dc2
TT
5376 if test "$GCC" = yes; then
5377 CFLAGS="-O2"
5378 else
5379 CFLAGS=
5380 fi
93613951 5381fi
54445dc2
TT
5382ac_prog_cc_stdc=no
5383if test x$ac_prog_cc_stdc = xno
5384then :
5385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5386printf %s "checking for $CC option to enable C11 features... " >&6; }
5387if test ${ac_cv_prog_cc_c11+y}
5388then :
5389 printf %s "(cached) " >&6
5390else $as_nop
5391 ac_cv_prog_cc_c11=no
5392ac_save_CC=$CC
5393cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5394/* end confdefs.h. */
5395$ac_c_conftest_c11_program
5396_ACEOF
5397for ac_arg in '' -std=gnu11
5398do
5399 CC="$ac_save_CC $ac_arg"
5400 if ac_fn_c_try_compile "$LINENO"
5401then :
5402 ac_cv_prog_cc_c11=$ac_arg
5403fi
5404rm -f core conftest.err conftest.$ac_objext conftest.beam
5405 test "x$ac_cv_prog_cc_c11" != "xno" && break
5406done
5407rm -f conftest.$ac_ext
5408CC=$ac_save_CC
5409fi
5410
5411if test "x$ac_cv_prog_cc_c11" = xno
5412then :
5413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5414printf "%s\n" "unsupported" >&6; }
5415else $as_nop
5416 if test "x$ac_cv_prog_cc_c11" = x
5417then :
5418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5419printf "%s\n" "none needed" >&6; }
5420else $as_nop
5421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5422printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5423 CC="$CC $ac_cv_prog_cc_c11"
5424fi
5425 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5426 ac_prog_cc_stdc=c11
5427fi
5428fi
5429if test x$ac_prog_cc_stdc = xno
5430then :
5431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5432printf %s "checking for $CC option to enable C99 features... " >&6; }
5433if test ${ac_cv_prog_cc_c99+y}
5434then :
5435 printf %s "(cached) " >&6
5436else $as_nop
5437 ac_cv_prog_cc_c99=no
5438ac_save_CC=$CC
5439cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5440/* end confdefs.h. */
5441$ac_c_conftest_c99_program
5442_ACEOF
5443for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5444do
5445 CC="$ac_save_CC $ac_arg"
5446 if ac_fn_c_try_compile "$LINENO"
5447then :
5448 ac_cv_prog_cc_c99=$ac_arg
5449fi
5450rm -f core conftest.err conftest.$ac_objext conftest.beam
5451 test "x$ac_cv_prog_cc_c99" != "xno" && break
5452done
5453rm -f conftest.$ac_ext
5454CC=$ac_save_CC
5455fi
5456
5457if test "x$ac_cv_prog_cc_c99" = xno
5458then :
5459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5460printf "%s\n" "unsupported" >&6; }
5461else $as_nop
5462 if test "x$ac_cv_prog_cc_c99" = x
5463then :
5464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5465printf "%s\n" "none needed" >&6; }
5466else $as_nop
5467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5468printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5469 CC="$CC $ac_cv_prog_cc_c99"
5470fi
5471 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5472 ac_prog_cc_stdc=c99
5473fi
5474fi
5475if test x$ac_prog_cc_stdc = xno
5476then :
5477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5478printf %s "checking for $CC option to enable C89 features... " >&6; }
5479if test ${ac_cv_prog_cc_c89+y}
5480then :
5481 printf %s "(cached) " >&6
5482else $as_nop
5483 ac_cv_prog_cc_c89=no
5484ac_save_CC=$CC
5485cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5486/* end confdefs.h. */
5487$ac_c_conftest_c89_program
5488_ACEOF
5489for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5490do
5491 CC="$ac_save_CC $ac_arg"
5492 if ac_fn_c_try_compile "$LINENO"
5493then :
5494 ac_cv_prog_cc_c89=$ac_arg
5495fi
5496rm -f core conftest.err conftest.$ac_objext conftest.beam
5497 test "x$ac_cv_prog_cc_c89" != "xno" && break
5498done
5499rm -f conftest.$ac_ext
5500CC=$ac_save_CC
93613951
TT
5501fi
5502
54445dc2
TT
5503if test "x$ac_cv_prog_cc_c89" = xno
5504then :
5505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5506printf "%s\n" "unsupported" >&6; }
5507else $as_nop
5508 if test "x$ac_cv_prog_cc_c89" = x
5509then :
5510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5511printf "%s\n" "none needed" >&6; }
5512else $as_nop
5513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5514printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5515 CC="$CC $ac_cv_prog_cc_c89"
5516fi
5517 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5518 ac_prog_cc_stdc=c89
93613951
TT
5519fi
5520fi
93613951 5521
54445dc2
TT
5522ac_ext=c
5523ac_cpp='$CPP $CPPFLAGS'
5524ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5525ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5526ac_compiler_gnu=$ac_cv_c_compiler_gnu
5527
5528if test "$GCC" = yes; then
5529 RDYNAMIC="-rdynamic"
5530
5531fi
5532ac_ext=c
5533ac_cpp='$CPP $CPPFLAGS'
5534ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5535ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5536ac_compiler_gnu=$ac_cv_c_compiler_gnu
5537{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5538printf %s "checking how to run the C preprocessor... " >&6; }
5539# On Suns, sometimes $CPP names a directory.
5540if test -n "$CPP" && test -d "$CPP"; then
5541 CPP=
5542fi
5543if test -z "$CPP"; then
5544 if test ${ac_cv_prog_CPP+y}
5545then :
5546 printf %s "(cached) " >&6
5547else $as_nop
5548 # Double quotes because $CC needs to be expanded
5549 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
5550 do
5551 ac_preproc_ok=false
5552for ac_c_preproc_warn_flag in '' yes
5553do
5554 # Use a header file that comes with gcc, so configuring glibc
5555 # with a fresh cross-compiler works.
5556 # On the NeXT, cc -E runs the code through the compiler's parser,
5557 # not just through cpp. "Syntax error" is here to catch this case.
5558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5559/* end confdefs.h. */
5560#include <limits.h>
5561 Syntax error
5562_ACEOF
5563if ac_fn_c_try_cpp "$LINENO"
5564then :
93613951 5565
54445dc2
TT
5566else $as_nop
5567 # Broken: fails on valid input.
5568continue
93613951 5569fi
54445dc2 5570rm -f conftest.err conftest.i conftest.$ac_ext
93613951 5571
54445dc2
TT
5572 # OK, works on sane cases. Now check whether nonexistent headers
5573 # can be detected and how.
5574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5575/* end confdefs.h. */
5576#include <ac_nonexistent.h>
93613951 5577_ACEOF
54445dc2
TT
5578if ac_fn_c_try_cpp "$LINENO"
5579then :
5580 # Broken: success on invalid input.
5581continue
5582else $as_nop
5583 # Passes both tests.
5584ac_preproc_ok=:
5585break
93613951 5586fi
54445dc2 5587rm -f conftest.err conftest.i conftest.$ac_ext
93613951
TT
5588
5589done
54445dc2
TT
5590# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5591rm -f conftest.i conftest.err conftest.$ac_ext
5592if $ac_preproc_ok
5593then :
5594 break
93613951
TT
5595fi
5596
54445dc2
TT
5597 done
5598 ac_cv_prog_CPP=$CPP
93613951 5599
54445dc2
TT
5600fi
5601 CPP=$ac_cv_prog_CPP
93613951 5602else
54445dc2
TT
5603 ac_cv_prog_CPP=$CPP
5604fi
5605{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5606printf "%s\n" "$CPP" >&6; }
5607ac_preproc_ok=false
5608for ac_c_preproc_warn_flag in '' yes
5609do
5610 # Use a header file that comes with gcc, so configuring glibc
5611 # with a fresh cross-compiler works.
5612 # On the NeXT, cc -E runs the code through the compiler's parser,
5613 # not just through cpp. "Syntax error" is here to catch this case.
93613951
TT
5614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5615/* end confdefs.h. */
54445dc2
TT
5616#include <limits.h>
5617 Syntax error
5618_ACEOF
5619if ac_fn_c_try_cpp "$LINENO"
5620then :
93613951 5621
54445dc2
TT
5622else $as_nop
5623 # Broken: fails on valid input.
5624continue
5625fi
5626rm -f conftest.err conftest.i conftest.$ac_ext
93613951 5627
54445dc2
TT
5628 # OK, works on sane cases. Now check whether nonexistent headers
5629 # can be detected and how.
5630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5631/* end confdefs.h. */
5632#include <ac_nonexistent.h>
93613951 5633_ACEOF
54445dc2
TT
5634if ac_fn_c_try_cpp "$LINENO"
5635then :
5636 # Broken: success on invalid input.
5637continue
5638else $as_nop
5639 # Passes both tests.
5640ac_preproc_ok=:
5641break
93613951 5642fi
54445dc2 5643rm -f conftest.err conftest.i conftest.$ac_ext
93613951 5644
54445dc2
TT
5645done
5646# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5647rm -f conftest.i conftest.err conftest.$ac_ext
5648if $ac_preproc_ok
5649then :
93613951 5650
54445dc2
TT
5651else $as_nop
5652 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5653printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5654as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5655See \`config.log' for more details" "$LINENO" 5; }
5656fi
93613951 5657
54445dc2
TT
5658ac_ext=c
5659ac_cpp='$CPP $CPPFLAGS'
5660ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5661ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5662ac_compiler_gnu=$ac_cv_c_compiler_gnu
93613951 5663
54445dc2
TT
5664{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
5665printf %s "checking for additional special compiler flags... " >&6; }
5666if test "$GCC" = yes
5667then
5668 case "$host_cpu" in
5669 alpha) addcflags="-mieee" ;;
5670 esac
5671fi
5672if test "x$addcflags" != x
5673then
5674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
5675printf "%s\n" "$addcflags" >&6; }
5676 CFLAGS="$addcflags $CFLAGS"
5677else
5678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
5679printf "%s\n" "(none)" >&6; }
5680fi
93613951
TT
5681LIB_EXT=.a
5682STATIC_LIB_EXT=.a
5683PROFILED_LIB_EXT=.a
5684
5685# Check whether --with-root-prefix was given.
54445dc2
TT
5686if test ${with_root_prefix+y}
5687then :
93613951 5688 withval=$with_root_prefix; root_prefix=$withval
54445dc2 5689else $as_nop
93613951
TT
5690 root_prefix=NONE
5691fi
5692# Check whether --enable-maintainer-mode was given.
54445dc2
TT
5693if test ${enable_maintainer_mode+y}
5694then :
93613951
TT
5695 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
5696then
5697 MAINTAINER_CMT=#
54445dc2
TT
5698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
5699printf "%s\n" "Disabling maintainer mode" >&6; }
93613951
TT
5700else
5701 MAINTAINER_CMT=
54445dc2
TT
5702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
5703printf "%s\n" "Enabling maintainer mode" >&6; }
93613951
TT
5704fi
5705
54445dc2 5706else $as_nop
93613951 5707 MAINTAINER_CMT=#
54445dc2
TT
5708{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
5709printf "%s\n" "Disabling maintainer mode by default" >&6; }
93613951
TT
5710
5711fi
5712
5713
5714# Check whether --enable-symlink-install was given.
54445dc2
TT
5715if test ${enable_symlink_install+y}
5716then :
93613951
TT
5717 enableval=$enable_symlink_install; if test "$enableval" = "no"
5718then
5719 LINK_INSTALL_FLAGS=-f
54445dc2
TT
5720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
5721printf "%s\n" "Disabling symlinks for install" >&6; }
93613951
TT
5722else
5723 LINK_INSTALL_FLAGS=-sf
54445dc2
TT
5724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
5725printf "%s\n" "Enabling symlinks for install" >&6; }
93613951
TT
5726fi
5727
54445dc2 5728else $as_nop
93613951 5729 LINK_INSTALL_FLAGS=-f
54445dc2
TT
5730{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
5731printf "%s\n" "Disabling symlinks for install by default" >&6; }
93613951
TT
5732
5733fi
5734
5735
5736relative_symlink_defined=
5737# Check whether --enable-relative-symlinks was given.
54445dc2
TT
5738if test ${enable_relative_symlinks+y}
5739then :
93613951
TT
5740 enableval=$enable_relative_symlinks; if test "$enableval" = "no"
5741then
5742 SYMLINK_RELATIVE=
5743 relative_symlink_defined=yes
54445dc2
TT
5744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
5745printf "%s\n" "Disabling relative symlinks for install" >&6; }
93613951
TT
5746else
5747 SYMLINK_RELATIVE=--relative
5748 relative_symlink_defined=yes
54445dc2
TT
5749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
5750printf "%s\n" "Enabling relative symlinks for install" >&6; }
93613951
TT
5751fi
5752fi
5753
5754# Check whether --enable-symlink-relative-symlinks was given.
54445dc2
TT
5755if test ${enable_symlink_relative_symlinks+y}
5756then :
93613951
TT
5757 enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
5758then
5759 SYMLINK_RELATIVE=yes
54445dc2
TT
5760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
5761printf "%s\n" "Disabling relative symlinks for install" >&6; }
93613951
TT
5762else
5763 SYMLINK_RELATIVE=--relative
54445dc2
TT
5764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
5765printf "%s\n" "Enabling relative symlinks for install" >&6; }
93613951
TT
5766fi
5767
54445dc2 5768else $as_nop
93613951
TT
5769 if test -z "$relative_symlink_defined"
5770then
5771 SYMLINK_RELATIVE=
54445dc2
TT
5772{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
5773printf "%s\n" "Disabling relative symlinks for install by default" >&6; }
93613951
TT
5774fi
5775
5776fi
5777
5778
5779# Check whether --enable-symlink-build was given.
54445dc2
TT
5780if test ${enable_symlink_build+y}
5781then :
5aa6c3f6
TT
5782 enableval=$enable_symlink_build; if test "$enableval" = "no"
5783then
5784 LINK_BUILD_FLAGS=
54445dc2
TT
5785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
5786printf "%s\n" "Disabling symlinks for build" >&6; }
5aa6c3f6
TT
5787else
5788 LINK_BUILD_FLAGS=-s
54445dc2
TT
5789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
5790printf "%s\n" "Enabling symlinks for build" >&6; }
5aa6c3f6
TT
5791fi
5792
54445dc2 5793else $as_nop
5aa6c3f6 5794 LINK_BUILD_FLAGS=
54445dc2
TT
5795{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
5796printf "%s\n" "Disabling symlinks for build by default" >&6; }
5aa6c3f6
TT
5797
5798fi
5799
5800
57aa50d4 5801# Check whether --enable-verbose-makecmds was given.
54445dc2
TT
5802if test ${enable_verbose_makecmds+y}
5803then :
57aa50d4
TT
5804 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
5805then
54445dc2
TT
5806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
5807printf "%s\n" "Disabling verbose make commands" >&6; }
57aa50d4 5808 E=@echo
c1986ecb 5809 ES=echo
57aa50d4 5810 Q=@
14b596d4 5811else
54445dc2
TT
5812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
5813printf "%s\n" "Enabling verbose make commands" >&6; }
57aa50d4 5814 E=@\\#
c1986ecb 5815 ES=\\#
57aa50d4
TT
5816 Q=
5817fi
14b596d4 5818
54445dc2
TT
5819else $as_nop
5820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
5821printf "%s\n" "Disabling verbose make commands" >&6; }
57aa50d4 5822E=@echo
c1986ecb 5823ES=echo
57aa50d4 5824Q=@
14b596d4 5825
14b596d4
TT
5826fi
5827
14b596d4 5828
57aa50d4 5829
c1986ecb 5830
57aa50d4
TT
5831E2_PKG_CONFIG_STATIC=--static
5832LDFLAG_DYNAMIC=
5833PRIVATE_LIBS_CMT=
5834# Check whether --enable-elf-shlibs was given.
54445dc2
TT
5835if test ${enable_elf_shlibs+y}
5836then :
57aa50d4 5837 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
cdf186e4 5838then
57aa50d4
TT
5839 ELF_CMT=#
5840 MAKEFILE_ELF=/dev/null
54445dc2
TT
5841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
5842printf "%s\n" "Disabling ELF shared libraries" >&6; }
cdf186e4 5843else
57aa50d4
TT
5844 E2_PKG_CONFIG_STATIC=
5845 ELF_CMT=
5846 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
5847 case "$host_os" in
5848 solaris2.*)
5849 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
5850 ;;
5851 esac
5852 BINARY_TYPE=elfbin
5853 LIB_EXT=.so
5854 PRIVATE_LIBS_CMT=#
5855 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
54445dc2
TT
5856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
5857printf "%s\n" "Enabling ELF shared libraries" >&6; }
cdf186e4
TT
5858fi
5859
54445dc2 5860else $as_nop
57aa50d4
TT
5861 MAKEFILE_ELF=/dev/null
5862ELF_CMT=#
54445dc2
TT
5863{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
5864printf "%s\n" "Disabling ELF shared libraries by default" >&6; }
cdf186e4 5865
e1052144
TT
5866fi
5867
cdf186e4 5868
57aa50d4
TT
5869
5870# Check whether --enable-bsd-shlibs was given.
54445dc2
TT
5871if test ${enable_bsd_shlibs+y}
5872then :
57aa50d4 5873 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
cdf186e4 5874then
57aa50d4
TT
5875 BSDLIB_CMT=#
5876 MAKEFILE_BSDLIB=/dev/null
54445dc2
TT
5877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
5878printf "%s\n" "Disabling BSD shared libraries" >&6; }
cdf186e4 5879else
57aa50d4
TT
5880 E2_PKG_CONFIG_STATIC=
5881 BSDLIB_CMT=
5882 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
5883 LIB_EXT=.so
5884 case "$host_os" in
5885 darwin*)
5886 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
5887 LIB_EXT=.dylib
5888 ;;
5889 esac
54445dc2
TT
5890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
5891printf "%s\n" "Enabling BSD shared libraries" >&6; }
cdf186e4
TT
5892fi
5893
54445dc2 5894else $as_nop
57aa50d4
TT
5895 MAKEFILE_BSDLIB=/dev/null
5896BSDLIB_CMT=#
54445dc2
TT
5897{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
5898printf "%s\n" "Disabling BSD shared libraries by default" >&6; }
cdf186e4 5899
e1052144
TT
5900fi
5901
cdf186e4 5902
57aa50d4
TT
5903
5904# Check whether --enable-profile was given.
54445dc2
TT
5905if test ${enable_profile+y}
5906then :
57aa50d4 5907 enableval=$enable_profile; if test "$enableval" = "no"
cdf186e4 5908then
57aa50d4
TT
5909 PROFILE_CMT=#
5910 MAKEFILE_PROFILE=/dev/null
54445dc2
TT
5911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
5912printf "%s\n" "Disabling profiling libraries" >&6; }
cdf186e4 5913else
57aa50d4
TT
5914 PROFILE_CMT=
5915 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
5916 PROFILED_LIB_EXT=_p.a
54445dc2
TT
5917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
5918printf "%s\n" "Building profiling libraries" >&6; }
cdf186e4
TT
5919fi
5920
54445dc2 5921else $as_nop
57aa50d4
TT
5922 PROFILE_CMT=#
5923MAKEFILE_PROFILE=/dev/null
54445dc2
TT
5924{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
5925printf "%s\n" "Disabling profiling libraries by default" >&6; }
cdf186e4 5926
e1052144
TT
5927fi
5928
cdf186e4 5929
57aa50d4 5930
fedfb27f 5931# Check whether --enable-gcov was given.
54445dc2
TT
5932if test ${enable_gcov+y}
5933then :
fedfb27f
TT
5934 enableval=$enable_gcov; if test "$enableval" = "yes"
5935then
5936 CFLAGS="-g -fprofile-arcs -ftest-coverage"
5937 LDFLAGS="-fprofile-arcs -ftest-coverage"
54445dc2
TT
5938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5
5939printf "%s\n" "Enabling gcov support" >&6; }
fedfb27f
TT
5940fi
5941
5942fi
5943
fd1677e8
TT
5944CFLAGS_SHLIB="${CFLAGS_SHLIB:-$CFLAGS}"
5945CFLAGS_STLIB="${CFLAGS_STLIB:-$CFLAGS}"
5946LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
5947LDFLAGS_STATIC=${LDFLAGS_STATIC:-$LDFLAGS}
5948# Check whether --enable-hardening was given.
54445dc2
TT
5949if test ${enable_hardening+y}
5950then :
fd1677e8
TT
5951 enableval=$enable_hardening; if test "$enableval" = "yes"
5952then
5953 HARDEN_CFLAGS="-D_FORTIFY_SOURCE=2 -fstack-protector-strong"
5954 HARDEN_LDFLAGS="-Wl,-z,relro -Wl,-z,now"
5955 CFLAGS="$CFLAGS $HARDEN_CFLAGS -fPIE"
5956 CFLAGS_SHLIB="$CFLAGS_SHLIB $HARDEN_CFLAGS"
5957 CFLAGS_STLIB="$CFLAGS_STLIB $HARDEN_CFLAGS -fPIE"
5958 LDFLAGS="$LDFLAGS $HARDEN_LDFLAGS -fPIE -pie"
5959 LDFLAGS_STATIC="$LDFLAGS_STATIC $HARDEN_LDFLAGS"
5960 LDFLAGS_SHLIB="$LDFLAGS_SHLIB $HARDEN_LDFLAGS"
54445dc2
TT
5961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling hardening support" >&5
5962printf "%s\n" "Enabling hardening support" >&6; }
fd1677e8
TT
5963fi
5964
5965fi
cdf186e4 5966
57aa50d4
TT
5967
5968
5969
5970
5971
5972# Check whether --enable-jbd-debug was given.
54445dc2
TT
5973if test ${enable_jbd_debug+y}
5974then :
57aa50d4 5975 enableval=$enable_jbd_debug; if test "$enableval" = "no"
5d40773b 5976then
54445dc2
TT
5977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
5978printf "%s\n" "Disabling journal debugging" >&6; }
5d40773b 5979else
d1154eb4 5980
54445dc2 5981printf "%s\n" "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
57aa50d4 5982
54445dc2
TT
5983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
5984printf "%s\n" "Enabling journal debugging" >&6; }
5d40773b
TT
5985fi
5986
54445dc2
TT
5987else $as_nop
5988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
5989printf "%s\n" "Disabling journal debugging by default" >&6; }
5d40773b 5990
e1052144
TT
5991fi
5992
57aa50d4 5993# Check whether --enable-blkid-debug was given.
54445dc2
TT
5994if test ${enable_blkid_debug+y}
5995then :
57aa50d4 5996 enableval=$enable_blkid_debug; if test "$enableval" = "no"
3249394d 5997then
54445dc2
TT
5998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
5999printf "%s\n" "Disabling blkid debugging" >&6; }
3249394d 6000else
d1154eb4 6001
54445dc2 6002printf "%s\n" "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
57aa50d4 6003
54445dc2
TT
6004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
6005printf "%s\n" "Enabling blkid debugging" >&6; }
3249394d
TT
6006fi
6007
54445dc2
TT
6008else $as_nop
6009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
6010printf "%s\n" "Disabling blkid debugging by default" >&6; }
3249394d
TT
6011
6012fi
6013
57aa50d4 6014# Check whether --enable-testio-debug was given.
54445dc2
TT
6015if test ${enable_testio_debug+y}
6016then :
d1154eb4
TT
6017 enableval=$enable_testio_debug;
6018if test "$enableval" = "no"
3249394d 6019then
54445dc2
TT
6020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
6021printf "%s\n" "Disabling testio debugging" >&6; }
57aa50d4 6022 TEST_IO_CMT="#"
3249394d 6023else
57aa50d4 6024 TEST_IO_CMT=
54445dc2 6025 printf "%s\n" "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
3249394d 6026
54445dc2
TT
6027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
6028printf "%s\n" "Enabling testio debugging" >&6; }
57aa50d4 6029fi
3249394d 6030
54445dc2
TT
6031else $as_nop
6032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
6033printf "%s\n" "Enabling testio debugging by default" >&6; }
6034printf "%s\n" "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
3249394d 6035
57aa50d4 6036TEST_IO_CMT=
3249394d
TT
6037
6038fi
6039
3249394d 6040
b9e66a18 6041# Check whether --enable-developer-features was given.
54445dc2
TT
6042if test ${enable_developer_features+y}
6043then :
b9e66a18
TT
6044 enableval=$enable_developer_features;
6045if test "$enableval" = "yes"
6046then
6047 DEV_FEATURES_CMT=
54445dc2 6048 printf "%s\n" "#define CONFIG_DEVELOPER_FEATURES 1" >>confdefs.h
b9e66a18 6049
54445dc2
TT
6050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling ext4 developer features" >&5
6051printf "%s\n" "Enabling ext4 developer features" >&6; }
b9e66a18 6052else
54445dc2
TT
6053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling ext4 developer features" >&5
6054printf "%s\n" "Disabling ext4 developer features" >&6; }
b9e66a18
TT
6055 DEV_FEATURES_CMT="#"
6056fi
6057
54445dc2
TT
6058else $as_nop
6059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling ext4 developer features by default" >&5
6060printf "%s\n" "Disabling ext4 developer features by default" >&6; }
b9e66a18
TT
6061DEV_FEATURES_CMT=
6062
6063fi
6064
6065
57aa50d4
TT
6066
6067
93613951
TT
6068
6069
6070
6071
6072
57aa50d4 6073if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
93613951 6074 if test -n "$ac_tool_prefix"; then
57aa50d4
TT
6075 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6076set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
54445dc2
TT
6077{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6078printf %s "checking for $ac_word... " >&6; }
6079if test ${ac_cv_path_PKG_CONFIG+y}
6080then :
6081 printf %s "(cached) " >&6
6082else $as_nop
57aa50d4
TT
6083 case $PKG_CONFIG in
6084 [\\/]* | ?:[\\/]*)
6085 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6086 ;;
6087 *)
6088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6089for as_dir in $PATH
6090do
6091 IFS=$as_save_IFS
54445dc2
TT
6092 case $as_dir in #(((
6093 '') as_dir=./ ;;
6094 */) ;;
6095 *) as_dir=$as_dir/ ;;
6096 esac
57aa50d4 6097 for ac_exec_ext in '' $ac_executable_extensions; do
54445dc2
TT
6098 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6099 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
6100 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
57aa50d4
TT
6101 break 2
6102 fi
6103done
6104 done
6105IFS=$as_save_IFS
6106
6107 ;;
6108esac
6109fi
6110PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6111if test -n "$PKG_CONFIG"; then
54445dc2
TT
6112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6113printf "%s\n" "$PKG_CONFIG" >&6; }
57aa50d4 6114else
54445dc2
TT
6115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6116printf "%s\n" "no" >&6; }
3249394d
TT
6117fi
6118
6119
57aa50d4
TT
6120fi
6121if test -z "$ac_cv_path_PKG_CONFIG"; then
6122 ac_pt_PKG_CONFIG=$PKG_CONFIG
6123 # Extract the first word of "pkg-config", so it can be a program name with args.
6124set dummy pkg-config; ac_word=$2
54445dc2
TT
6125{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6126printf %s "checking for $ac_word... " >&6; }
6127if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
6128then :
6129 printf %s "(cached) " >&6
6130else $as_nop
57aa50d4
TT
6131 case $ac_pt_PKG_CONFIG in
6132 [\\/]* | ?:[\\/]*)
6133 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6134 ;;
6135 *)
6136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6137for as_dir in $PATH
6138do
6139 IFS=$as_save_IFS
54445dc2
TT
6140 case $as_dir in #(((
6141 '') as_dir=./ ;;
6142 */) ;;
6143 *) as_dir=$as_dir/ ;;
6144 esac
57aa50d4 6145 for ac_exec_ext in '' $ac_executable_extensions; do
54445dc2
TT
6146 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6147 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
6148 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
57aa50d4
TT
6149 break 2
6150 fi
6151done
6152 done
6153IFS=$as_save_IFS
3249394d 6154
57aa50d4
TT
6155 ;;
6156esac
6157fi
6158ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6159if test -n "$ac_pt_PKG_CONFIG"; then
54445dc2
TT
6160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6161printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
57aa50d4 6162else
54445dc2
TT
6163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6164printf "%s\n" "no" >&6; }
57aa50d4 6165fi
3249394d 6166
57aa50d4
TT
6167 if test "x$ac_pt_PKG_CONFIG" = x; then
6168 PKG_CONFIG=""
6169 else
6170 case $cross_compiling:$ac_tool_warned in
6171yes:)
54445dc2
TT
6172{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6173printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
57aa50d4
TT
6174ac_tool_warned=yes ;;
6175esac
6176 PKG_CONFIG=$ac_pt_PKG_CONFIG
3249394d 6177 fi
57aa50d4
TT
6178else
6179 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6180fi
3249394d
TT
6181
6182fi
57aa50d4 6183if test -n "$PKG_CONFIG"; then
93613951 6184 _pkg_min_version=0.9.0
54445dc2
TT
6185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6186printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
93613951 6187 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
54445dc2
TT
6188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6189printf "%s\n" "yes" >&6; }
93613951 6190 else
54445dc2
TT
6191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6192printf "%s\n" "no" >&6; }
93613951
TT
6193 PKG_CONFIG=""
6194 fi
57aa50d4
TT
6195fi
6196LIBUUID=
6197DEPLIBUUID=
6198STATIC_LIBUUID=
6199DEPSTATIC_LIBUUID=
6200PROFILED_LIBUUID=
6201DEPPROFILED_LIBUUID=
6202UUID_CMT=
6203# Check whether --enable-libuuid was given.
54445dc2
TT
6204if test ${enable_libuuid+y}
6205then :
57aa50d4 6206 enableval=$enable_libuuid; if test "$enableval" = "no"
5610f992 6207then
57aa50d4 6208 if test -z "$PKG_CONFIG"; then
d6a4bcb5 6209 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
57aa50d4
TT
6210 fi
6211
54445dc2
TT
6212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
6213printf %s "checking for uuid_generate in -luuid... " >&6; }
6214if test ${ac_cv_lib_uuid_uuid_generate+y}
6215then :
6216 printf %s "(cached) " >&6
6217else $as_nop
57aa50d4 6218 ac_check_lib_save_LIBS=$LIBS
2d7583bd 6219LIBS="-luuid $LIBS"
57aa50d4
TT
6220cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6221/* end confdefs.h. */
5610f992 6222
57aa50d4
TT
6223/* Override any GCC internal prototype to avoid an error.
6224 Use char because int might match the return type of a GCC
6225 builtin and then its argument prototype would still apply. */
57aa50d4
TT
6226char uuid_generate ();
6227int
54445dc2 6228main (void)
57aa50d4
TT
6229{
6230return uuid_generate ();
6231 ;
6232 return 0;
6233}
6234_ACEOF
54445dc2
TT
6235if ac_fn_c_try_link "$LINENO"
6236then :
57aa50d4 6237 ac_cv_lib_uuid_uuid_generate=yes
54445dc2 6238else $as_nop
57aa50d4
TT
6239 ac_cv_lib_uuid_uuid_generate=no
6240fi
54445dc2 6241rm -f core conftest.err conftest.$ac_objext conftest.beam \
57aa50d4
TT
6242 conftest$ac_exeext conftest.$ac_ext
6243LIBS=$ac_check_lib_save_LIBS
6244fi
54445dc2
TT
6245{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
6246printf "%s\n" "$ac_cv_lib_uuid_uuid_generate" >&6; }
6247if test "x$ac_cv_lib_uuid_uuid_generate" = xyes
6248then :
57aa50d4
TT
6249 LIBUUID=`$PKG_CONFIG --libs uuid`;
6250 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
54445dc2 6251else $as_nop
d6a4bcb5 6252 as_fn_error $? "external uuid library not found" "$LINENO" 5
5610f992
TT
6253fi
6254
5afdf37b 6255 PROFILED_LIBUUID=$LIBUUID
57aa50d4 6256 UUID_CMT=#
54445dc2
TT
6257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
6258printf "%s\n" "Disabling private uuid library" >&6; }
5610f992 6259else
57aa50d4
TT
6260 LIBUUID='$(LIB)/libuuid'$LIB_EXT
6261 DEPLIBUUID=$LIBUUID
6262 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
6263 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
6264 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
6265 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
54445dc2
TT
6266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
6267printf "%s\n" "Enabling private uuid library" >&6; }
57aa50d4 6268fi
5610f992 6269
54445dc2 6270else $as_nop
f5dffb81 6271 if test -n "$PKG_CONFIG"; then
54445dc2
TT
6272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
6273printf %s "checking for uuid_generate in -luuid... " >&6; }
6274if test ${ac_cv_lib_uuid_uuid_generate+y}
6275then :
6276 printf %s "(cached) " >&6
6277else $as_nop
f5dffb81
TT
6278 ac_check_lib_save_LIBS=$LIBS
6279LIBS="-luuid $LIBS"
6280cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6281/* end confdefs.h. */
6282
6283/* Override any GCC internal prototype to avoid an error.
6284 Use char because int might match the return type of a GCC
6285 builtin and then its argument prototype would still apply. */
f5dffb81
TT
6286char uuid_generate ();
6287int
54445dc2 6288main (void)
f5dffb81
TT
6289{
6290return uuid_generate ();
6291 ;
6292 return 0;
6293}
6294_ACEOF
54445dc2
TT
6295if ac_fn_c_try_link "$LINENO"
6296then :
f5dffb81 6297 ac_cv_lib_uuid_uuid_generate=yes
54445dc2 6298else $as_nop
f5dffb81
TT
6299 ac_cv_lib_uuid_uuid_generate=no
6300fi
54445dc2 6301rm -f core conftest.err conftest.$ac_objext conftest.beam \
f5dffb81
TT
6302 conftest$ac_exeext conftest.$ac_ext
6303LIBS=$ac_check_lib_save_LIBS
6304fi
54445dc2
TT
6305{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
6306printf "%s\n" "$ac_cv_lib_uuid_uuid_generate" >&6; }
6307if test "x$ac_cv_lib_uuid_uuid_generate" = xyes
6308then :
f5dffb81
TT
6309 LIBUUID=`$PKG_CONFIG --libs uuid`;
6310 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
6311fi
6312
6313fi
6314if test -n "$LIBUUID"; then
6315 PROFILED_LIBUUID=$LIBUUID
6316 UUID_CMT=#
54445dc2
TT
6317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using system uuid by default" >&5
6318printf "%s\n" "Using system uuid by default" >&6; }
f5dffb81
TT
6319else
6320 LIBUUID='$(LIB)/libuuid'$LIB_EXT
6321 DEPLIBUUID=$LIBUUID
6322 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
6323 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
6324 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
6325 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
54445dc2
TT
6326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
6327printf "%s\n" "Enabling private uuid library by default" >&6; }
f5dffb81 6328fi
5610f992
TT
6329
6330fi
6331
6332
cdf186e4 6333
a64c9c13 6334
93636bde
TT
6335
6336
93636bde 6337
93636bde
TT
6338
6339
57aa50d4 6340
93613951
TT
6341
6342
6343
6344
6345
57aa50d4 6346if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
93613951 6347 if test -n "$ac_tool_prefix"; then
57aa50d4
TT
6348 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6349set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
54445dc2
TT
6350{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6351printf %s "checking for $ac_word... " >&6; }
6352if test ${ac_cv_path_PKG_CONFIG+y}
6353then :
6354 printf %s "(cached) " >&6
6355else $as_nop
57aa50d4
TT
6356 case $PKG_CONFIG in
6357 [\\/]* | ?:[\\/]*)
6358 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6359 ;;
e1052144 6360 *)
b0cacab0
TT
6361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6362for as_dir in $PATH
6363do
6364 IFS=$as_save_IFS
54445dc2
TT
6365 case $as_dir in #(((
6366 '') as_dir=./ ;;
6367 */) ;;
6368 *) as_dir=$as_dir/ ;;
6369 esac
57aa50d4 6370 for ac_exec_ext in '' $ac_executable_extensions; do
54445dc2
TT
6371 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6372 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
6373 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
57aa50d4
TT
6374 break 2
6375 fi
b0cacab0 6376done
57aa50d4 6377 done
e1052144 6378IFS=$as_save_IFS
b0cacab0 6379
57aa50d4 6380 ;;
b0cacab0
TT
6381esac
6382fi
57aa50d4
TT
6383PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6384if test -n "$PKG_CONFIG"; then
54445dc2
TT
6385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6386printf "%s\n" "$PKG_CONFIG" >&6; }
07a0db15 6387else
54445dc2
TT
6388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6389printf "%s\n" "no" >&6; }
07a0db15 6390fi
07a0db15 6391
57aa50d4
TT
6392
6393fi
6394if test -z "$ac_cv_path_PKG_CONFIG"; then
6395 ac_pt_PKG_CONFIG=$PKG_CONFIG
6396 # Extract the first word of "pkg-config", so it can be a program name with args.
6397set dummy pkg-config; ac_word=$2
54445dc2
TT
6398{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6399printf %s "checking for $ac_word... " >&6; }
6400if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
6401then :
6402 printf %s "(cached) " >&6
6403else $as_nop
57aa50d4 6404 case $ac_pt_PKG_CONFIG in
b0cacab0 6405 [\\/]* | ?:[\\/]*)
57aa50d4 6406 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
b0cacab0
TT
6407 ;;
6408 *)
6409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6410for as_dir in $PATH
6411do
6412 IFS=$as_save_IFS
54445dc2
TT
6413 case $as_dir in #(((
6414 '') as_dir=./ ;;
6415 */) ;;
6416 *) as_dir=$as_dir/ ;;
6417 esac
57aa50d4 6418 for ac_exec_ext in '' $ac_executable_extensions; do
54445dc2
TT
6419 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6420 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
6421 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
b0cacab0
TT
6422 break 2
6423 fi
6424done
57aa50d4 6425 done
e1052144 6426IFS=$as_save_IFS
a64c9c13 6427
b0cacab0
TT
6428 ;;
6429esac
a64c9c13 6430fi
57aa50d4
TT
6431ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6432if test -n "$ac_pt_PKG_CONFIG"; then
54445dc2
TT
6433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6434printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
a64c9c13 6435else
54445dc2
TT
6436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6437printf "%s\n" "no" >&6; }
a64c9c13 6438fi
a64c9c13 6439
57aa50d4
TT
6440 if test "x$ac_pt_PKG_CONFIG" = x; then
6441 PKG_CONFIG=""
b0cacab0 6442 else
57aa50d4
TT
6443 case $cross_compiling:$ac_tool_warned in
6444yes:)
54445dc2
TT
6445{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6446printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
57aa50d4
TT
6447ac_tool_warned=yes ;;
6448esac
6449 PKG_CONFIG=$ac_pt_PKG_CONFIG
b0cacab0 6450 fi
57aa50d4
TT
6451else
6452 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
a64c9c13 6453fi
93636bde 6454
a64c9c13 6455fi
57aa50d4 6456if test -n "$PKG_CONFIG"; then
93613951 6457 _pkg_min_version=0.9.0
54445dc2
TT
6458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6459printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
93613951 6460 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
54445dc2
TT
6461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6462printf "%s\n" "yes" >&6; }
93613951 6463 else
54445dc2
TT
6464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6465printf "%s\n" "no" >&6; }
93613951
TT
6466 PKG_CONFIG=""
6467 fi
57aa50d4
TT
6468fi
6469LIBBLKID=
6470DEPLIBBLKID=
6471STATIC_LIBBLKID=
6472DEPSTATIC_LIBBLKID=
6473PROFILED_LIBBLKID=
6474DEPPROFILED_LIBBLKID=
6475BLKID_CMT=
d1154eb4 6476
57aa50d4 6477# Check whether --enable-libblkid was given.
54445dc2
TT
6478if test ${enable_libblkid+y}
6479then :
57aa50d4
TT
6480 enableval=$enable_libblkid; if test "$enableval" = "no"
6481then
6482 if test -z "$PKG_CONFIG"; then
d6a4bcb5 6483 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
57aa50d4
TT
6484 fi
6485
54445dc2
TT
6486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
6487printf %s "checking for blkid_get_cache in -lblkid... " >&6; }
6488if test ${ac_cv_lib_blkid_blkid_get_cache+y}
6489then :
6490 printf %s "(cached) " >&6
6491else $as_nop
57aa50d4 6492 ac_check_lib_save_LIBS=$LIBS
2d7583bd 6493LIBS="-lblkid -luuid $LIBS"
57aa50d4
TT
6494cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6495/* end confdefs.h. */
6496
6497/* Override any GCC internal prototype to avoid an error.
6498 Use char because int might match the return type of a GCC
6499 builtin and then its argument prototype would still apply. */
57aa50d4
TT
6500char blkid_get_cache ();
6501int
54445dc2 6502main (void)
57aa50d4
TT
6503{
6504return blkid_get_cache ();
6505 ;
6506 return 0;
6507}
6508_ACEOF
54445dc2
TT
6509if ac_fn_c_try_link "$LINENO"
6510then :
57aa50d4 6511 ac_cv_lib_blkid_blkid_get_cache=yes
54445dc2 6512else $as_nop
57aa50d4 6513 ac_cv_lib_blkid_blkid_get_cache=no
a64c9c13 6514fi
54445dc2 6515rm -f core conftest.err conftest.$ac_objext conftest.beam \
57aa50d4
TT
6516 conftest$ac_exeext conftest.$ac_ext
6517LIBS=$ac_check_lib_save_LIBS
a64c9c13 6518fi
54445dc2
TT
6519{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
6520printf "%s\n" "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
6521if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes
6522then :
57aa50d4
TT
6523 LIBBLKID=`$PKG_CONFIG --libs blkid`;
6524 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
54445dc2 6525else $as_nop
d6a4bcb5 6526 as_fn_error $? "external blkid library not found" "$LINENO" 5
a64c9c13 6527fi
93636bde 6528
57aa50d4 6529 BLKID_CMT=#
5afdf37b 6530 PROFILED_LIBBLKID=$LIBBLKID
54445dc2
TT
6531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
6532printf "%s\n" "Disabling private blkid library" >&6; }
07a0db15 6533else
57aa50d4
TT
6534 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
6535 DEPLIBBLKID=$LIBBLKID
6536 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
6537 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
6538 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
6539 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
54445dc2 6540 printf "%s\n" "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
57aa50d4 6541
54445dc2
TT
6542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
6543printf "%s\n" "Enabling private blkid library" >&6; }
b0cacab0 6544fi
57aa50d4 6545
54445dc2 6546else $as_nop
f5dffb81 6547 if test -n "$PKG_CONFIG"; then
54445dc2
TT
6548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
6549printf %s "checking for blkid_get_cache in -lblkid... " >&6; }
6550if test ${ac_cv_lib_blkid_blkid_get_cache+y}
6551then :
6552 printf %s "(cached) " >&6
6553else $as_nop
f5dffb81
TT
6554 ac_check_lib_save_LIBS=$LIBS
6555LIBS="-lblkid $LIBS"
6556cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6557/* end confdefs.h. */
6558
6559/* Override any GCC internal prototype to avoid an error.
6560 Use char because int might match the return type of a GCC
6561 builtin and then its argument prototype would still apply. */
f5dffb81
TT
6562char blkid_get_cache ();
6563int
54445dc2 6564main (void)
f5dffb81
TT
6565{
6566return blkid_get_cache ();
6567 ;
6568 return 0;
6569}
6570_ACEOF
54445dc2
TT
6571if ac_fn_c_try_link "$LINENO"
6572then :
f5dffb81 6573 ac_cv_lib_blkid_blkid_get_cache=yes
54445dc2 6574else $as_nop
f5dffb81
TT
6575 ac_cv_lib_blkid_blkid_get_cache=no
6576fi
54445dc2 6577rm -f core conftest.err conftest.$ac_objext conftest.beam \
f5dffb81
TT
6578 conftest$ac_exeext conftest.$ac_ext
6579LIBS=$ac_check_lib_save_LIBS
6580fi
54445dc2
TT
6581{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
6582printf "%s\n" "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
6583if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes
6584then :
f5dffb81
TT
6585 LIBBLKID=`$PKG_CONFIG --libs blkid`;
6586 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
6587fi
6588
6589fi
6590if test -n "$LIBBLKID"; then
6591 BLKID_CMT=#
6592 PROFILED_LIBBLKID=$LIBBLKID
54445dc2
TT
6593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using system blkid library by default" >&5
6594printf "%s\n" "Using system blkid library by default" >&6; }
f5dffb81
TT
6595else
6596 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
6597 DEPLIBBLKID=$LIBBLKID
6598 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
6599 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
6600 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
6601 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
54445dc2 6602 printf "%s\n" "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
57aa50d4 6603
54445dc2
TT
6604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
6605printf "%s\n" "Enabling private blkid library by default" >&6; }
f5dffb81 6606fi
57aa50d4 6607
a64c9c13 6608fi
07a0db15 6609
a64c9c13 6610
b0cacab0 6611
b0cacab0 6612
a64c9c13 6613
b0cacab0 6614
07a0db15 6615
57aa50d4 6616
0afb9be6 6617ALL_CMT=
feb235e0 6618SUBSET_CMT=
0afb9be6 6619# Check whether --enable-subset was given.
54445dc2
TT
6620if test ${enable_subset+y}
6621then :
0afb9be6
TT
6622 enableval=$enable_subset; if test "$enableval" = "no"
6623then
feb235e0 6624 SUBSET_CMT=#
54445dc2
TT
6625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling subset-only build" >&5
6626printf "%s\n" "Disabling subset-only build" >&6; }
0afb9be6
TT
6627else
6628 ALL_CMT=#
54445dc2
TT
6629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling subset-only-build" >&5
6630printf "%s\n" "Enabling subset-only-build" >&6; }
0afb9be6
TT
6631fi
6632
6633fi
6634
6635
3df6014a 6636
feb235e0 6637
3df6014a 6638# Check whether --enable-backtrace was given.
54445dc2
TT
6639if test ${enable_backtrace+y}
6640then :
3df6014a
TT
6641 enableval=$enable_backtrace; if test "$enableval" = "no"
6642then
54445dc2
TT
6643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
6644printf "%s\n" "Disabling use of backtrace" >&6; }
6645 printf "%s\n" "#define DISABLE_BACKTRACE 1" >>confdefs.h
3df6014a
TT
6646
6647else
54445dc2
TT
6648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
6649printf "%s\n" "Enabling use of backtrace" >&6; }
3df6014a
TT
6650fi
6651
54445dc2
TT
6652else $as_nop
6653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
6654printf "%s\n" "Enabling use of backtrace by default" >&6; }
3df6014a
TT
6655
6656fi
6657
57aa50d4 6658# Check whether --enable-debugfs was given.
54445dc2
TT
6659if test ${enable_debugfs+y}
6660then :
57aa50d4
TT
6661 enableval=$enable_debugfs; if test "$enableval" = "no"
6662then
54445dc2
TT
6663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
6664printf "%s\n" "Disabling debugfs support" >&6; }
57aa50d4 6665 DEBUGFS_CMT="#"
b0cacab0 6666else
57aa50d4 6667 DEBUGFS_CMT=
54445dc2
TT
6668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
6669printf "%s\n" "Enabling debugfs support" >&6; }
b0cacab0 6670fi
a64c9c13 6671
54445dc2
TT
6672else $as_nop
6673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
6674printf "%s\n" "Enabling debugfs support by default" >&6; }
57aa50d4 6675DEBUGFS_CMT=
a64c9c13 6676
93636bde 6677fi
57aa50d4
TT
6678
6679
6680# Check whether --enable-imager was given.
54445dc2
TT
6681if test ${enable_imager+y}
6682then :
57aa50d4
TT
6683 enableval=$enable_imager; if test "$enableval" = "no"
6684then
54445dc2
TT
6685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
6686printf "%s\n" "Disabling e2image support" >&6; }
57aa50d4 6687 IMAGER_CMT="#"
b0cacab0 6688else
57aa50d4 6689 IMAGER_CMT=
54445dc2
TT
6690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
6691printf "%s\n" "Enabling e2image support" >&6; }
b0cacab0
TT
6692fi
6693
54445dc2
TT
6694else $as_nop
6695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
6696printf "%s\n" "Enabling e2image support by default" >&6; }
57aa50d4
TT
6697IMAGER_CMT=
6698
93636bde
TT
6699fi
6700
a64c9c13 6701
57aa50d4 6702# Check whether --enable-resizer was given.
54445dc2
TT
6703if test ${enable_resizer+y}
6704then :
57aa50d4
TT
6705 enableval=$enable_resizer; if test "$enableval" = "no"
6706then
54445dc2
TT
6707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
6708printf "%s\n" "Disabling e2resize support" >&6; }
57aa50d4 6709 RESIZER_CMT="#"
b0cacab0 6710else
57aa50d4 6711 RESIZER_CMT=
54445dc2
TT
6712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
6713printf "%s\n" "Enabling e2resize support" >&6; }
57aa50d4 6714fi
b0cacab0 6715
54445dc2
TT
6716else $as_nop
6717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
6718printf "%s\n" "Enabling e2resize support by default" >&6; }
57aa50d4 6719RESIZER_CMT=
b0cacab0 6720
b0cacab0 6721fi
e1052144 6722
57aa50d4 6723
8d9c50c5 6724# Check whether --enable-defrag was given.
54445dc2
TT
6725if test ${enable_defrag+y}
6726then :
8d9c50c5
TT
6727 enableval=$enable_defrag; if test "$enableval" = "no"
6728then
54445dc2
TT
6729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
6730printf "%s\n" "Disabling e4defrag support" >&6; }
8d9c50c5
TT
6731 DEFRAG_CMT="#"
6732else
6733 DEFRAG_CMT=
54445dc2
TT
6734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
6735printf "%s\n" "Enabling e4defrag support" >&6; }
8d9c50c5
TT
6736fi
6737
54445dc2 6738else $as_nop
6c59a665
TT
6739 if test -z "$WITH_DIET_LIBC"
6740then
54445dc2
TT
6741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
6742printf "%s\n" "Enabling e4defrag support by default" >&6; }
6c59a665
TT
6743 DEFRAG_CMT=
6744else
54445dc2
TT
6745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
6746printf "%s\n" "Disabling e4defrag support by default" >&6; }
6c59a665
TT
6747 DEFRAG_CMT="#"
6748fi
8d9c50c5
TT
6749
6750fi
6751
6752
57aa50d4 6753# Check whether --enable-fsck was given.
54445dc2
TT
6754if test ${enable_fsck+y}
6755then :
57aa50d4
TT
6756 enableval=$enable_fsck; if test "$enableval" = "no"
6757then
6758 FSCK_PROG='' FSCK_MAN=''
54445dc2
TT
6759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
6760printf "%s\n" "Not building fsck wrapper" >&6; }
57aa50d4
TT
6761else
6762 FSCK_PROG=fsck FSCK_MAN=fsck.8
54445dc2
TT
6763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
6764printf "%s\n" "Building fsck wrapper" >&6; }
a64c9c13
TT
6765fi
6766
54445dc2 6767else $as_nop
57aa50d4
TT
6768 case "$host_os" in
6769 gnu*)
6770 FSCK_PROG='' FSCK_MAN=''
54445dc2
TT
6771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
6772printf "%s\n" "Not building fsck wrapper by default" >&6; }
57aa50d4
TT
6773 ;;
6774 *)
6775 FSCK_PROG=fsck FSCK_MAN=fsck.8
54445dc2
TT
6776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
6777printf "%s\n" "Building fsck wrapper by default" >&6; }
57aa50d4 6778esac
b0cacab0 6779
57aa50d4 6780fi
b0cacab0 6781
93636bde 6782
b0cacab0 6783
57aa50d4 6784# Check whether --enable-e2initrd-helper was given.
54445dc2
TT
6785if test ${enable_e2initrd_helper+y}
6786then :
57aa50d4
TT
6787 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
6788then
6789 E2INITRD_PROG='' E2INITRD_MAN=''
54445dc2
TT
6790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
6791printf "%s\n" "Not building e2initrd helper" >&6; }
57aa50d4
TT
6792else
6793 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
54445dc2
TT
6794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
6795printf "%s\n" "Building e2initrd helper" >&6; }
57aa50d4 6796fi
a64c9c13 6797
54445dc2 6798else $as_nop
57aa50d4 6799 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
54445dc2
TT
6800{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
6801printf "%s\n" "Building e2initrd helper by default" >&6; }
b0cacab0 6802
a64c9c13 6803fi
e1052144 6804
57aa50d4
TT
6805
6806
6807# Check whether --enable-tls was given.
54445dc2
TT
6808if test ${enable_tls+y}
6809then :
57aa50d4
TT
6810 enableval=$enable_tls; if test "$enableval" = "no"
6811then
6812 try_tls=""
54445dc2
TT
6813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
6814printf "%s\n" "Disabling thread local support" >&6; }
57aa50d4
TT
6815else
6816 try_tls="yes"
54445dc2
TT
6817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
6818printf "%s\n" "Enabling thread local support" >&6; }
a64c9c13
TT
6819fi
6820
54445dc2 6821else $as_nop
57aa50d4
TT
6822 if test -n "$WITH_DIET_LIBC"
6823then
6824 try_tls=""
54445dc2
TT
6825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
6826printf "%s\n" "Diet libc does not support thread local support" >&6; }
57aa50d4
TT
6827else
6828 try_tls="yes"
54445dc2
TT
6829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
6830printf "%s\n" "Try using thread local support by default" >&6; }
57aa50d4 6831fi
a64c9c13 6832
93636bde 6833fi
07a0db15 6834
57aa50d4
TT
6835if test "$try_tls" = "yes"
6836then
a64c9c13 6837
54445dc2
TT
6838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
6839printf %s "checking for thread local storage (TLS) class... " >&6; }
6840 if test ${ac_cv_tls+y}
6841then :
6842 printf %s "(cached) " >&6
6843else $as_nop
b0cacab0 6844
57aa50d4
TT
6845 ax_tls_keywords="__thread __declspec(thread) none"
6846 for ax_tls_keyword in $ax_tls_keywords; do
6847 case $ax_tls_keyword in
6848 none) ac_cv_tls=none ; break ;;
6849 *)
6850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6851/* end confdefs.h. */
6852#include <stdlib.h>
6853 static void
6854 foo(void) {
6855 static $ax_tls_keyword int bar;
6856 exit(1);
6857 }
b0cacab0 6858int
54445dc2 6859main (void)
b0cacab0 6860{
57aa50d4 6861
b0cacab0
TT
6862 ;
6863 return 0;
6864}
6865_ACEOF
54445dc2
TT
6866if ac_fn_c_try_compile "$LINENO"
6867then :
57aa50d4 6868 ac_cv_tls=$ax_tls_keyword ; break
54445dc2 6869else $as_nop
57aa50d4 6870 ac_cv_tls=none
b0cacab0 6871
b0cacab0 6872fi
54445dc2 6873rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
57aa50d4
TT
6874 esac
6875 done
6876
b0cacab0 6877fi
b0cacab0 6878
57aa50d4
TT
6879
6880 if test "$ac_cv_tls" != "none"; then
6881
54445dc2 6882printf "%s\n" "#define TLS $ac_cv_tls" >>confdefs.h
93636bde 6883
b0cacab0 6884 fi
54445dc2
TT
6885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
6886printf "%s\n" "$ac_cv_tls" >&6; }
b0cacab0 6887
57aa50d4 6888fi
d1154eb4 6889
bdcd5f22 6890# Check whether --with-pthread was given.
54445dc2
TT
6891if test ${with_pthread+y}
6892then :
bdcd5f22 6893 withval=$with_pthread; if test "$withval" = "no"
57aa50d4 6894then
bdcd5f22 6895 try_pthread=""
54445dc2
TT
6896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling pthread support" >&5
6897printf "%s\n" "Disabling pthread support" >&6; }
a64c9c13 6898else
bdcd5f22 6899 try_pthread="yes"
54445dc2
TT
6900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Testing for pthread support" >&5
6901printf "%s\n" "Testing for pthread support" >&6; }
57aa50d4 6902fi
a64c9c13 6903
54445dc2 6904else $as_nop
bdcd5f22 6905 try_pthread="yes"
54445dc2
TT
6906{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Try testing for pthread support by default" >&5
6907printf "%s\n" "Try testing for pthread support by default" >&6; }
a64c9c13 6908
bdcd5f22
TT
6909fi
6910
6911if test "$try_pthread" = "yes"
e3d10158 6912then
54445dc2
TT
6913{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6914printf %s "checking for a sed that does not truncate output... " >&6; }
6915if test ${ac_cv_path_SED+y}
6916then :
6917 printf %s "(cached) " >&6
6918else $as_nop
bdcd5f22
TT
6919 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6920 for ac_i in 1 2 3 4 5 6 7; do
6921 ac_script="$ac_script$as_nl$ac_script"
6922 done
6923 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6924 { ac_script=; unset ac_script;}
6925 if test -z "$SED"; then
6926 ac_path_SED_found=false
6927 # Loop through the user's path and test for each of PROGNAME-LIST
6928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
54445dc2
TT
6929for as_dir in $PATH
6930do
6931 IFS=$as_save_IFS
6932 case $as_dir in #(((
6933 '') as_dir=./ ;;
6934 */) ;;
6935 *) as_dir=$as_dir/ ;;
6936 esac
6937 for ac_prog in sed gsed
6938 do
6939 for ac_exec_ext in '' $ac_executable_extensions; do
6940 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
6941 as_fn_executable_p "$ac_path_SED" || continue
6942# Check for GNU ac_path_SED and select it if it is found.
6943 # Check for GNU $ac_path_SED
6944case `"$ac_path_SED" --version 2>&1` in
6945*GNU*)
6946 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6947*)
6948 ac_count=0
6949 printf %s 0123456789 >"conftest.in"
6950 while :
6951 do
6952 cat "conftest.in" "conftest.in" >"conftest.tmp"
6953 mv "conftest.tmp" "conftest.in"
6954 cp "conftest.in" "conftest.nl"
6955 printf "%s\n" '' >> "conftest.nl"
6956 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6957 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6958 as_fn_arith $ac_count + 1 && ac_count=$as_val
6959 if test $ac_count -gt ${ac_path_SED_max-0}; then
6960 # Best one so far, save it but keep looking for a better one
6961 ac_cv_path_SED="$ac_path_SED"
6962 ac_path_SED_max=$ac_count
6963 fi
6964 # 10*(2^10) chars as input seems more than enough
6965 test $ac_count -gt 10 && break
6966 done
6967 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6968esac
6969
6970 $ac_path_SED_found && break 3
6971 done
6972 done
6973 done
6974IFS=$as_save_IFS
6975 if test -z "$ac_cv_path_SED"; then
6976 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6977 fi
6978else
6979 ac_cv_path_SED=$SED
6980fi
6981
6982fi
6983{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6984printf "%s\n" "$ac_cv_path_SED" >&6; }
6985 SED="$ac_cv_path_SED"
6986 rm -f conftest.sed
6987
6988
6989{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6990printf %s "checking for grep that handles long lines and -e... " >&6; }
6991if test ${ac_cv_path_GREP+y}
6992then :
6993 printf %s "(cached) " >&6
6994else $as_nop
6995 if test -z "$GREP"; then
6996 ac_path_GREP_found=false
6997 # Loop through the user's path and test for each of PROGNAME-LIST
6998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6999for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7000do
7001 IFS=$as_save_IFS
7002 case $as_dir in #(((
7003 '') as_dir=./ ;;
7004 */) ;;
7005 *) as_dir=$as_dir/ ;;
7006 esac
7007 for ac_prog in grep ggrep
7008 do
7009 for ac_exec_ext in '' $ac_executable_extensions; do
7010 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
7011 as_fn_executable_p "$ac_path_GREP" || continue
7012# Check for GNU ac_path_GREP and select it if it is found.
7013 # Check for GNU $ac_path_GREP
7014case `"$ac_path_GREP" --version 2>&1` in
7015*GNU*)
7016 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7017*)
7018 ac_count=0
7019 printf %s 0123456789 >"conftest.in"
7020 while :
7021 do
7022 cat "conftest.in" "conftest.in" >"conftest.tmp"
7023 mv "conftest.tmp" "conftest.in"
7024 cp "conftest.in" "conftest.nl"
7025 printf "%s\n" 'GREP' >> "conftest.nl"
7026 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7027 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7028 as_fn_arith $ac_count + 1 && ac_count=$as_val
7029 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7030 # Best one so far, save it but keep looking for a better one
7031 ac_cv_path_GREP="$ac_path_GREP"
7032 ac_path_GREP_max=$ac_count
7033 fi
7034 # 10*(2^10) chars as input seems more than enough
7035 test $ac_count -gt 10 && break
7036 done
7037 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7038esac
7039
7040 $ac_path_GREP_found && break 3
7041 done
7042 done
7043 done
7044IFS=$as_save_IFS
7045 if test -z "$ac_cv_path_GREP"; then
7046 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7047 fi
7048else
7049 ac_cv_path_GREP=$GREP
7050fi
7051
7052fi
7053{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7054printf "%s\n" "$ac_cv_path_GREP" >&6; }
7055 GREP="$ac_cv_path_GREP"
7056
7057
7058{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7059printf %s "checking for egrep... " >&6; }
7060if test ${ac_cv_path_EGREP+y}
7061then :
7062 printf %s "(cached) " >&6
7063else $as_nop
7064 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7065 then ac_cv_path_EGREP="$GREP -E"
7066 else
7067 if test -z "$EGREP"; then
7068 ac_path_EGREP_found=false
7069 # Loop through the user's path and test for each of PROGNAME-LIST
7070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7071for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
bdcd5f22
TT
7072do
7073 IFS=$as_save_IFS
54445dc2
TT
7074 case $as_dir in #(((
7075 '') as_dir=./ ;;
7076 */) ;;
7077 *) as_dir=$as_dir/ ;;
7078 esac
7079 for ac_prog in egrep
7080 do
bdcd5f22 7081 for ac_exec_ext in '' $ac_executable_extensions; do
54445dc2
TT
7082 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
7083 as_fn_executable_p "$ac_path_EGREP" || continue
7084# Check for GNU ac_path_EGREP and select it if it is found.
7085 # Check for GNU $ac_path_EGREP
7086case `"$ac_path_EGREP" --version 2>&1` in
bdcd5f22 7087*GNU*)
54445dc2 7088 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
bdcd5f22
TT
7089*)
7090 ac_count=0
54445dc2 7091 printf %s 0123456789 >"conftest.in"
bdcd5f22
TT
7092 while :
7093 do
7094 cat "conftest.in" "conftest.in" >"conftest.tmp"
7095 mv "conftest.tmp" "conftest.in"
7096 cp "conftest.in" "conftest.nl"
54445dc2
TT
7097 printf "%s\n" 'EGREP' >> "conftest.nl"
7098 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
bdcd5f22
TT
7099 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7100 as_fn_arith $ac_count + 1 && ac_count=$as_val
54445dc2 7101 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
bdcd5f22 7102 # Best one so far, save it but keep looking for a better one
54445dc2
TT
7103 ac_cv_path_EGREP="$ac_path_EGREP"
7104 ac_path_EGREP_max=$ac_count
bdcd5f22
TT
7105 fi
7106 # 10*(2^10) chars as input seems more than enough
7107 test $ac_count -gt 10 && break
7108 done
7109 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7110esac
7111
54445dc2 7112 $ac_path_EGREP_found && break 3
bdcd5f22
TT
7113 done
7114 done
7115 done
7116IFS=$as_save_IFS
54445dc2
TT
7117 if test -z "$ac_cv_path_EGREP"; then
7118 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
bdcd5f22
TT
7119 fi
7120else
54445dc2 7121 ac_cv_path_EGREP=$EGREP
e3d10158 7122fi
e1052144 7123
54445dc2 7124 fi
a64c9c13 7125fi
54445dc2
TT
7126{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7127printf "%s\n" "$ac_cv_path_EGREP" >&6; }
7128 EGREP="$ac_cv_path_EGREP"
7129
e1052144 7130
93636bde 7131
d6a4bcb5 7132
d6a4bcb5 7133
d6a4bcb5 7134
bdcd5f22
TT
7135ac_ext=c
7136ac_cpp='$CPP $CPPFLAGS'
7137ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7138ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7139ac_compiler_gnu=$ac_cv_c_compiler_gnu
d6a4bcb5 7140
bdcd5f22
TT
7141ax_pthread_ok=no
7142
7143# We used to check for pthread.h first, but this fails if pthread.h
7144# requires special compiler flags (e.g. on Tru64 or Sequent).
7145# It gets checked for in the link test anyway.
7146
7147# First of all, check if the user has set any of the PTHREAD_LIBS,
7148# etcetera environment variables, and if threads linking works using
7149# them:
7150if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
7151 ax_pthread_save_CC="$CC"
7152 ax_pthread_save_CFLAGS="$CFLAGS"
7153 ax_pthread_save_LIBS="$LIBS"
54445dc2
TT
7154 if test "x$PTHREAD_CC" != "x"
7155then :
bdcd5f22 7156 CC="$PTHREAD_CC"
54445dc2
TT
7157fi
7158 if test "x$PTHREAD_CXX" != "x"
7159then :
7160 CXX="$PTHREAD_CXX"
bdcd5f22
TT
7161fi
7162 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7163 LIBS="$PTHREAD_LIBS $LIBS"
54445dc2
TT
7164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
7165printf %s "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
bdcd5f22
TT
7166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7167/* end confdefs.h. */
d6a4bcb5 7168
bdcd5f22
TT
7169/* Override any GCC internal prototype to avoid an error.
7170 Use char because int might match the return type of a GCC
7171 builtin and then its argument prototype would still apply. */
bdcd5f22
TT
7172char pthread_join ();
7173int
54445dc2 7174main (void)
bdcd5f22
TT
7175{
7176return pthread_join ();
7177 ;
7178 return 0;
7179}
7180_ACEOF
54445dc2
TT
7181if ac_fn_c_try_link "$LINENO"
7182then :
bdcd5f22 7183 ax_pthread_ok=yes
1625bf42 7184fi
54445dc2 7185rm -f core conftest.err conftest.$ac_objext conftest.beam \
bdcd5f22 7186 conftest$ac_exeext conftest.$ac_ext
54445dc2
TT
7187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
7188printf "%s\n" "$ax_pthread_ok" >&6; }
bdcd5f22
TT
7189 if test "x$ax_pthread_ok" = "xno"; then
7190 PTHREAD_LIBS=""
7191 PTHREAD_CFLAGS=""
7192 fi
7193 CC="$ax_pthread_save_CC"
7194 CFLAGS="$ax_pthread_save_CFLAGS"
7195 LIBS="$ax_pthread_save_LIBS"
7196fi
7197
7198# We must check for the threads library under a number of different
7199# names; the ordering is very important because some systems
7200# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
7201# libraries is broken (non-POSIX).
7202
54445dc2
TT
7203# Create a list of thread flags to try. Items with a "," contain both
7204# C compiler flags (before ",") and linker flags (after ","). Other items
7205# starting with a "-" are C compiler flags, and remaining items are
7206# library names, except for "none" which indicates that we try without
7207# any flags at all, and "pthread-config" which is a program returning
7208# the flags for the Pth emulation library.
bdcd5f22
TT
7209
7210ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
7211
7212# The ordering *is* (sometimes) important. Some notes on the
7213# individual items follow:
7214
7215# pthreads: AIX (must check this before -lpthread)
7216# none: in case threads are in libc; should be tried before -Kthread and
7217# other compiler flags to prevent continual compiler warnings
7218# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
7219# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
7220# (Note: HP C rejects this with "bad form for `-t' option")
7221# -pthreads: Solaris/gcc (Note: HP C also rejects)
7222# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
7223# doesn't hurt to check since this sometimes defines pthreads and
7224# -D_REENTRANT too), HP C (must be checked before -lpthread, which
7225# is present but should not be used directly; and before -mthreads,
7226# because the compiler interprets this as "-mt" + "-hreads")
7227# -mthreads: Mingw32/gcc, Lynx/gcc
7228# pthread: Linux, etcetera
7229# --thread-safe: KAI C++
7230# pthread-config: use pthread-config program (for GNU Pth library)
7231
7232case $host_os in
7233
7234 freebsd*)
7235
7236 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
7237 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
7238
7239 ax_pthread_flags="-kthread lthread $ax_pthread_flags"
7240 ;;
1625bf42 7241
bdcd5f22 7242 hpux*)
1625bf42 7243
bdcd5f22
TT
7244 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
7245 # multi-threading and also sets -lpthread."
749f0712 7246
bdcd5f22
TT
7247 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
7248 ;;
749f0712 7249
bdcd5f22 7250 openedition*)
749f0712 7251
bdcd5f22
TT
7252 # IBM z/OS requires a feature-test macro to be defined in order to
7253 # enable POSIX threads at all, so give the user a hint if this is
7254 # not set. (We don't define these ourselves, as they can affect
7255 # other portions of the system API in unpredictable ways.)
749f0712 7256
bdcd5f22
TT
7257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7258/* end confdefs.h. */
7259
7260# if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
7261 AX_PTHREAD_ZOS_MISSING
7262# endif
7263
7264_ACEOF
7265if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
54445dc2
TT
7266 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1
7267then :
7268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
7269printf "%s\n" "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
749f0712 7270fi
54445dc2 7271rm -rf conftest*
749f0712 7272
bdcd5f22 7273 ;;
749f0712 7274
bdcd5f22 7275 solaris*)
749f0712 7276
bdcd5f22
TT
7277 # On Solaris (at least, for some versions), libc contains stubbed
7278 # (non-functional) versions of the pthreads routines, so link-based
7279 # tests will erroneously succeed. (N.B.: The stubs are missing
7280 # pthread_cleanup_push, or rather a function called by this macro,
7281 # so we could check for that, but who knows whether they'll stub
7282 # that too in a future libc.) So we'll check first for the
7283 # standard Solaris way of linking pthreads (-mt -lpthread).
749f0712 7284
54445dc2 7285 ax_pthread_flags="-mt,-lpthread pthread $ax_pthread_flags"
bdcd5f22
TT
7286 ;;
7287esac
1625bf42 7288
bdcd5f22 7289# Are we compiling with Clang?
1625bf42 7290
54445dc2
TT
7291{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
7292printf %s "checking whether $CC is Clang... " >&6; }
7293if test ${ax_cv_PTHREAD_CLANG+y}
7294then :
7295 printf %s "(cached) " >&6
7296else $as_nop
bdcd5f22
TT
7297 ax_cv_PTHREAD_CLANG=no
7298 # Note that Autoconf sets GCC=yes for Clang as well as GCC
7299 if test "x$GCC" = "xyes"; then
7300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7301/* end confdefs.h. */
7302/* Note: Clang 2.7 lacks __clang_[a-z]+__ */
7303# if defined(__clang__) && defined(__llvm__)
7304 AX_PTHREAD_CC_IS_CLANG
7305# endif
7306
7307_ACEOF
7308if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
54445dc2
TT
7309 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1
7310then :
bdcd5f22 7311 ax_cv_PTHREAD_CLANG=yes
1625bf42 7312fi
54445dc2 7313rm -rf conftest*
1625bf42 7314
bdcd5f22 7315 fi
1625bf42
TB
7316
7317fi
54445dc2
TT
7318{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
7319printf "%s\n" "$ax_cv_PTHREAD_CLANG" >&6; }
bdcd5f22
TT
7320ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
7321
bdcd5f22 7322
54445dc2 7323# GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
bdcd5f22 7324
54445dc2
TT
7325# Note that for GCC and Clang -pthread generally implies -lpthread,
7326# except when -nostdlib is passed.
7327# This is problematic using libtool to build C++ shared libraries with pthread:
7328# [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25460
7329# [2] https://bugzilla.redhat.com/show_bug.cgi?id=661333
7330# [3] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=468555
7331# To solve this, first try -pthread together with -lpthread for GCC
bdcd5f22 7332
54445dc2
TT
7333if test "x$GCC" = "xyes"
7334then :
7335 ax_pthread_flags="-pthread,-lpthread -pthread -pthreads $ax_pthread_flags"
7336fi
bdcd5f22 7337
54445dc2 7338# Clang takes -pthread (never supported any other flag), but we'll try with -lpthread first
bdcd5f22 7339
54445dc2
TT
7340if test "x$ax_pthread_clang" = "xyes"
7341then :
7342 ax_pthread_flags="-pthread,-lpthread -pthread"
7343fi
bdcd5f22 7344
bdcd5f22 7345
54445dc2
TT
7346# The presence of a feature test macro requesting re-entrant function
7347# definitions is, on some systems, a strong hint that pthreads support is
7348# correctly enabled
bdcd5f22 7349
54445dc2
TT
7350case $host_os in
7351 darwin* | hpux* | linux* | osf* | solaris*)
7352 ax_pthread_check_macro="_REENTRANT"
7353 ;;
d6a4bcb5 7354
54445dc2
TT
7355 aix*)
7356 ax_pthread_check_macro="_THREAD_SAFE"
7357 ;;
d1154eb4 7358
54445dc2
TT
7359 *)
7360 ax_pthread_check_macro="--"
7361 ;;
7362esac
7363if test "x$ax_pthread_check_macro" = "x--"
7364then :
7365 ax_pthread_check_cond=0
7366else $as_nop
7367 ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
bdcd5f22 7368fi
d1154eb4 7369
57aa50d4 7370
bdcd5f22
TT
7371if test "x$ax_pthread_ok" = "xno"; then
7372for ax_pthread_try_flag in $ax_pthread_flags; do
57aa50d4 7373
bdcd5f22
TT
7374 case $ax_pthread_try_flag in
7375 none)
54445dc2
TT
7376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
7377printf %s "checking whether pthreads work without any flags... " >&6; }
bdcd5f22 7378 ;;
57aa50d4 7379
54445dc2
TT
7380 *,*)
7381 PTHREAD_CFLAGS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\1/"`
7382 PTHREAD_LIBS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\2/"`
7383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"" >&5
7384printf %s "checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"... " >&6; }
bdcd5f22 7385 ;;
57aa50d4 7386
bdcd5f22 7387 -*)
54445dc2
TT
7388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
7389printf %s "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
bdcd5f22
TT
7390 PTHREAD_CFLAGS="$ax_pthread_try_flag"
7391 ;;
57aa50d4 7392
bdcd5f22
TT
7393 pthread-config)
7394 # Extract the first word of "pthread-config", so it can be a program name with args.
7395set dummy pthread-config; ac_word=$2
54445dc2
TT
7396{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7397printf %s "checking for $ac_word... " >&6; }
7398if test ${ac_cv_prog_ax_pthread_config+y}
7399then :
7400 printf %s "(cached) " >&6
7401else $as_nop
bdcd5f22
TT
7402 if test -n "$ax_pthread_config"; then
7403 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
7404else
7405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7406for as_dir in $PATH
7407do
7408 IFS=$as_save_IFS
54445dc2
TT
7409 case $as_dir in #(((
7410 '') as_dir=./ ;;
7411 */) ;;
7412 *) as_dir=$as_dir/ ;;
7413 esac
bdcd5f22 7414 for ac_exec_ext in '' $ac_executable_extensions; do
54445dc2 7415 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
bdcd5f22 7416 ac_cv_prog_ax_pthread_config="yes"
54445dc2 7417 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
bdcd5f22
TT
7418 break 2
7419 fi
7420done
7421 done
7422IFS=$as_save_IFS
7423
7424 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
7425fi
7426fi
7427ax_pthread_config=$ac_cv_prog_ax_pthread_config
7428if test -n "$ax_pthread_config"; then
54445dc2
TT
7429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
7430printf "%s\n" "$ax_pthread_config" >&6; }
bdcd5f22 7431else
54445dc2
TT
7432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7433printf "%s\n" "no" >&6; }
bdcd5f22
TT
7434fi
7435
7436
54445dc2
TT
7437 if test "x$ax_pthread_config" = "xno"
7438then :
bdcd5f22
TT
7439 continue
7440fi
7441 PTHREAD_CFLAGS="`pthread-config --cflags`"
7442 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
7443 ;;
7444
7445 *)
54445dc2
TT
7446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
7447printf %s "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
bdcd5f22
TT
7448 PTHREAD_LIBS="-l$ax_pthread_try_flag"
7449 ;;
7450 esac
7451
7452 ax_pthread_save_CFLAGS="$CFLAGS"
7453 ax_pthread_save_LIBS="$LIBS"
7454 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7455 LIBS="$PTHREAD_LIBS $LIBS"
7456
7457 # Check for various functions. We must include pthread.h,
7458 # since some functions may be macros. (On the Sequent, we
7459 # need a special flag -Kthread to make this header compile.)
7460 # We check for pthread_join because it is in -lpthread on IRIX
7461 # while pthread_create is in libc. We check for pthread_attr_init
7462 # due to DEC craziness with -lpthreads. We check for
7463 # pthread_cleanup_push because it is one of the few pthread
7464 # functions on Solaris that doesn't have a non-functional libc stub.
7465 # We try pthread_create on general principles.
7466
7467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7468/* end confdefs.h. */
7469#include <pthread.h>
7470# if $ax_pthread_check_cond
7471# error "$ax_pthread_check_macro must be defined"
7472# endif
54445dc2
TT
7473 static void *some_global = NULL;
7474 static void routine(void *a)
7475 {
7476 /* To avoid any unused-parameter or
7477 unused-but-set-parameter warning. */
7478 some_global = a;
7479 }
bdcd5f22
TT
7480 static void *start_routine(void *a) { return a; }
7481int
54445dc2 7482main (void)
bdcd5f22
TT
7483{
7484pthread_t th; pthread_attr_t attr;
7485 pthread_create(&th, 0, start_routine, 0);
7486 pthread_join(th, 0);
7487 pthread_attr_init(&attr);
7488 pthread_cleanup_push(routine, 0);
7489 pthread_cleanup_pop(0) /* ; */
7490 ;
7491 return 0;
7492}
7493_ACEOF
54445dc2
TT
7494if ac_fn_c_try_link "$LINENO"
7495then :
bdcd5f22
TT
7496 ax_pthread_ok=yes
7497fi
54445dc2 7498rm -f core conftest.err conftest.$ac_objext conftest.beam \
bdcd5f22
TT
7499 conftest$ac_exeext conftest.$ac_ext
7500
7501 CFLAGS="$ax_pthread_save_CFLAGS"
7502 LIBS="$ax_pthread_save_LIBS"
7503
54445dc2
TT
7504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
7505printf "%s\n" "$ax_pthread_ok" >&6; }
7506 if test "x$ax_pthread_ok" = "xyes"
7507then :
bdcd5f22
TT
7508 break
7509fi
7510
7511 PTHREAD_LIBS=""
7512 PTHREAD_CFLAGS=""
7513done
7514fi
7515
54445dc2
TT
7516
7517# Clang needs special handling, because older versions handle the -pthread
7518# option in a rather... idiosyncratic way
7519
7520if test "x$ax_pthread_clang" = "xyes"; then
7521
7522 # Clang takes -pthread; it has never supported any other flag
7523
7524 # (Note 1: This will need to be revisited if a system that Clang
7525 # supports has POSIX threads in a separate library. This tends not
7526 # to be the way of modern systems, but it's conceivable.)
7527
7528 # (Note 2: On some systems, notably Darwin, -pthread is not needed
7529 # to get POSIX threads support; the API is always present and
7530 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
7531 # -pthread does define _REENTRANT, and while the Darwin headers
7532 # ignore this macro, third-party headers might not.)
7533
7534 # However, older versions of Clang make a point of warning the user
7535 # that, in an invocation where only linking and no compilation is
7536 # taking place, the -pthread option has no effect ("argument unused
7537 # during compilation"). They expect -pthread to be passed in only
7538 # when source code is being compiled.
7539 #
7540 # Problem is, this is at odds with the way Automake and most other
7541 # C build frameworks function, which is that the same flags used in
7542 # compilation (CFLAGS) are also used in linking. Many systems
7543 # supported by AX_PTHREAD require exactly this for POSIX threads
7544 # support, and in fact it is often not straightforward to specify a
7545 # flag that is used only in the compilation phase and not in
7546 # linking. Such a scenario is extremely rare in practice.
7547 #
7548 # Even though use of the -pthread flag in linking would only print
7549 # a warning, this can be a nuisance for well-run software projects
7550 # that build with -Werror. So if the active version of Clang has
7551 # this misfeature, we search for an option to squash it.
7552
7553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
7554printf %s "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
7555if test ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+y}
7556then :
7557 printf %s "(cached) " >&6
7558else $as_nop
7559 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
7560 # Create an alternate version of $ac_link that compiles and
7561 # links in two steps (.c -> .o, .o -> exe) instead of one
7562 # (.c -> exe), because the warning occurs only in the second
7563 # step
7564 ax_pthread_save_ac_link="$ac_link"
7565 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
7566 ax_pthread_link_step=`printf "%s\n" "$ac_link" | sed "$ax_pthread_sed"`
7567 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
7568 ax_pthread_save_CFLAGS="$CFLAGS"
7569 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
7570 if test "x$ax_pthread_try" = "xunknown"
7571then :
7572 break
7573fi
7574 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
7575 ac_link="$ax_pthread_save_ac_link"
7576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7577/* end confdefs.h. */
7578int main(void){return 0;}
7579_ACEOF
7580if ac_fn_c_try_link "$LINENO"
7581then :
7582 ac_link="$ax_pthread_2step_ac_link"
7583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7584/* end confdefs.h. */
7585int main(void){return 0;}
7586_ACEOF
7587if ac_fn_c_try_link "$LINENO"
7588then :
7589 break
7590fi
7591rm -f core conftest.err conftest.$ac_objext conftest.beam \
7592 conftest$ac_exeext conftest.$ac_ext
7593
7594fi
7595rm -f core conftest.err conftest.$ac_objext conftest.beam \
7596 conftest$ac_exeext conftest.$ac_ext
7597 done
7598 ac_link="$ax_pthread_save_ac_link"
7599 CFLAGS="$ax_pthread_save_CFLAGS"
7600 if test "x$ax_pthread_try" = "x"
7601then :
7602 ax_pthread_try=no
7603fi
7604 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
7605
7606fi
7607{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
7608printf "%s\n" "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
7609
7610 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
7611 no | unknown) ;;
7612 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
7613 esac
7614
7615fi # $ax_pthread_clang = yes
7616
7617
7618
bdcd5f22
TT
7619# Various other checks:
7620if test "x$ax_pthread_ok" = "xyes"; then
7621 ax_pthread_save_CFLAGS="$CFLAGS"
7622 ax_pthread_save_LIBS="$LIBS"
7623 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7624 LIBS="$PTHREAD_LIBS $LIBS"
7625
7626 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
54445dc2
TT
7627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
7628printf %s "checking for joinable pthread attribute... " >&6; }
7629if test ${ax_cv_PTHREAD_JOINABLE_ATTR+y}
7630then :
7631 printf %s "(cached) " >&6
7632else $as_nop
bdcd5f22
TT
7633 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
7634 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
7635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7636/* end confdefs.h. */
7637#include <pthread.h>
7638int
54445dc2 7639main (void)
bdcd5f22
TT
7640{
7641int attr = $ax_pthread_attr; return attr /* ; */
7642 ;
7643 return 0;
7644}
7645_ACEOF
54445dc2
TT
7646if ac_fn_c_try_link "$LINENO"
7647then :
bdcd5f22
TT
7648 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
7649fi
54445dc2 7650rm -f core conftest.err conftest.$ac_objext conftest.beam \
bdcd5f22
TT
7651 conftest$ac_exeext conftest.$ac_ext
7652 done
7653
7654fi
54445dc2
TT
7655{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
7656printf "%s\n" "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
bdcd5f22
TT
7657 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
7658 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
54445dc2
TT
7659 test "x$ax_pthread_joinable_attr_defined" != "xyes"
7660then :
bdcd5f22 7661
54445dc2 7662printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR" >>confdefs.h
bdcd5f22
TT
7663
7664 ax_pthread_joinable_attr_defined=yes
7665
7666fi
7667
54445dc2
TT
7668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
7669printf %s "checking whether more special flags are required for pthreads... " >&6; }
7670if test ${ax_cv_PTHREAD_SPECIAL_FLAGS+y}
7671then :
7672 printf %s "(cached) " >&6
7673else $as_nop
bdcd5f22
TT
7674 ax_cv_PTHREAD_SPECIAL_FLAGS=no
7675 case $host_os in
7676 solaris*)
7677 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
7678 ;;
7679 esac
7680
7681fi
54445dc2
TT
7682{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
7683printf "%s\n" "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
bdcd5f22 7684 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
54445dc2
TT
7685 test "x$ax_pthread_special_flags_added" != "xyes"
7686then :
bdcd5f22
TT
7687 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
7688 ax_pthread_special_flags_added=yes
7689fi
7690
54445dc2
TT
7691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
7692printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; }
7693if test ${ax_cv_PTHREAD_PRIO_INHERIT+y}
7694then :
7695 printf %s "(cached) " >&6
7696else $as_nop
bdcd5f22
TT
7697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7698/* end confdefs.h. */
7699#include <pthread.h>
7700int
54445dc2 7701main (void)
bdcd5f22
TT
7702{
7703int i = PTHREAD_PRIO_INHERIT;
54445dc2 7704 return i;
bdcd5f22
TT
7705 ;
7706 return 0;
7707}
7708_ACEOF
54445dc2
TT
7709if ac_fn_c_try_link "$LINENO"
7710then :
bdcd5f22 7711 ax_cv_PTHREAD_PRIO_INHERIT=yes
54445dc2 7712else $as_nop
bdcd5f22
TT
7713 ax_cv_PTHREAD_PRIO_INHERIT=no
7714fi
54445dc2 7715rm -f core conftest.err conftest.$ac_objext conftest.beam \
bdcd5f22
TT
7716 conftest$ac_exeext conftest.$ac_ext
7717
7718fi
54445dc2
TT
7719{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
7720printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
bdcd5f22 7721 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
54445dc2
TT
7722 test "x$ax_pthread_prio_inherit_defined" != "xyes"
7723then :
bdcd5f22 7724
54445dc2 7725printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
bdcd5f22
TT
7726
7727 ax_pthread_prio_inherit_defined=yes
7728
7729fi
7730
7731 CFLAGS="$ax_pthread_save_CFLAGS"
7732 LIBS="$ax_pthread_save_LIBS"
7733
7734 # More AIX lossage: compile with *_r variant
7735 if test "x$GCC" != "xyes"; then
7736 case $host_os in
7737 aix*)
7738 case "x/$CC" in #(
7739 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
7740 #handle absolute path differently from PATH based program lookup
7741 case "x$CC" in #(
7742 x/*) :
54445dc2
TT
7743
7744 if as_fn_executable_p ${CC}_r
7745then :
bdcd5f22 7746 PTHREAD_CC="${CC}_r"
54445dc2
TT
7747fi
7748 if test "x${CXX}" != "x"
7749then :
7750 if as_fn_executable_p ${CXX}_r
7751then :
7752 PTHREAD_CXX="${CXX}_r"
7753fi
7754fi
7755 ;; #(
bdcd5f22 7756 *) :
54445dc2
TT
7757
7758 for ac_prog in ${CC}_r
bdcd5f22
TT
7759do
7760 # Extract the first word of "$ac_prog", so it can be a program name with args.
7761set dummy $ac_prog; ac_word=$2
54445dc2
TT
7762{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7763printf %s "checking for $ac_word... " >&6; }
7764if test ${ac_cv_prog_PTHREAD_CC+y}
7765then :
7766 printf %s "(cached) " >&6
7767else $as_nop
bdcd5f22
TT
7768 if test -n "$PTHREAD_CC"; then
7769 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
7770else
7771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7772for as_dir in $PATH
7773do
7774 IFS=$as_save_IFS
54445dc2
TT
7775 case $as_dir in #(((
7776 '') as_dir=./ ;;
7777 */) ;;
7778 *) as_dir=$as_dir/ ;;
7779 esac
bdcd5f22 7780 for ac_exec_ext in '' $ac_executable_extensions; do
54445dc2 7781 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
bdcd5f22 7782 ac_cv_prog_PTHREAD_CC="$ac_prog"
54445dc2 7783 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
bdcd5f22
TT
7784 break 2
7785 fi
7786done
7787 done
7788IFS=$as_save_IFS
7789
7790fi
7791fi
7792PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
7793if test -n "$PTHREAD_CC"; then
54445dc2
TT
7794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
7795printf "%s\n" "$PTHREAD_CC" >&6; }
bdcd5f22 7796else
54445dc2
TT
7797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7798printf "%s\n" "no" >&6; }
bdcd5f22
TT
7799fi
7800
7801
7802 test -n "$PTHREAD_CC" && break
7803done
7804test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
54445dc2
TT
7805
7806 if test "x${CXX}" != "x"
7807then :
7808 for ac_prog in ${CXX}_r
7809do
7810 # Extract the first word of "$ac_prog", so it can be a program name with args.
7811set dummy $ac_prog; ac_word=$2
7812{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7813printf %s "checking for $ac_word... " >&6; }
7814if test ${ac_cv_prog_PTHREAD_CXX+y}
7815then :
7816 printf %s "(cached) " >&6
7817else $as_nop
7818 if test -n "$PTHREAD_CXX"; then
7819 ac_cv_prog_PTHREAD_CXX="$PTHREAD_CXX" # Let the user override the test.
7820else
7821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7822for as_dir in $PATH
7823do
7824 IFS=$as_save_IFS
7825 case $as_dir in #(((
7826 '') as_dir=./ ;;
7827 */) ;;
7828 *) as_dir=$as_dir/ ;;
7829 esac
7830 for ac_exec_ext in '' $ac_executable_extensions; do
7831 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7832 ac_cv_prog_PTHREAD_CXX="$ac_prog"
7833 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7834 break 2
7835 fi
7836done
7837 done
7838IFS=$as_save_IFS
7839
7840fi
7841fi
7842PTHREAD_CXX=$ac_cv_prog_PTHREAD_CXX
7843if test -n "$PTHREAD_CXX"; then
7844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CXX" >&5
7845printf "%s\n" "$PTHREAD_CXX" >&6; }
7846else
7847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7848printf "%s\n" "no" >&6; }
7849fi
7850
7851
7852 test -n "$PTHREAD_CXX" && break
7853done
7854test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
7855
7856fi
7857
7858 ;;
7859esac
7860 ;; #(
bdcd5f22
TT
7861 *) :
7862 ;;
7863esac
7864 ;;
7865 esac
7866 fi
7867fi
7868
7869test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
54445dc2
TT
7870test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
7871
bdcd5f22
TT
7872
7873
7874
7875
7876
7877# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
7878if test "x$ax_pthread_ok" = "xyes"; then
7879
54445dc2 7880printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h
bdcd5f22
TT
7881
7882 :
7883else
7884 ax_pthread_ok=no
7885
7886fi
7887ac_ext=c
7888ac_cpp='$CPP $CPPFLAGS'
7889ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7890ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7891ac_compiler_gnu=$ac_cv_c_compiler_gnu
7892
7893
7894else
7895test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
7896
7897fi
7898
7899# Check whether --enable-uuidd was given.
54445dc2
TT
7900if test ${enable_uuidd+y}
7901then :
bdcd5f22
TT
7902 enableval=$enable_uuidd; if test "$enableval" = "no"
7903then
54445dc2
TT
7904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
7905printf "%s\n" "Not building uuidd" >&6; }
bdcd5f22
TT
7906 UUIDD_CMT="#"
7907else
54445dc2 7908 printf "%s\n" "#define USE_UUIDD 1" >>confdefs.h
bdcd5f22
TT
7909
7910 UUIDD_CMT=""
54445dc2
TT
7911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
7912printf "%s\n" "Building uuidd" >&6; }
bdcd5f22
TT
7913fi
7914
54445dc2
TT
7915else $as_nop
7916 printf "%s\n" "#define USE_UUIDD 1" >>confdefs.h
bdcd5f22
TT
7917
7918if test -z "$UUID_CMT"
7919then
7920 UUIDD_CMT=""
54445dc2
TT
7921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
7922printf "%s\n" "Building uuidd by default" >&6; }
bdcd5f22
TT
7923else
7924 UUIDD_CMT="#"
54445dc2
TT
7925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling uuidd by default" >&5
7926printf "%s\n" "Disabling uuidd by default" >&6; }
bdcd5f22
TT
7927fi
7928
7929fi
7930
7931
7932
7933# Check whether --enable-mmp was given.
54445dc2
TT
7934if test ${enable_mmp+y}
7935then :
bdcd5f22
TT
7936 enableval=$enable_mmp; if test "$enableval" = "no"
7937then
54445dc2
TT
7938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5
7939printf "%s\n" "Disabling mmp support" >&6; }
bdcd5f22 7940else
54445dc2
TT
7941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5
7942printf "%s\n" "Enabling mmp support" >&6; }
7943 printf "%s\n" "#define CONFIG_MMP 1" >>confdefs.h
bdcd5f22
TT
7944
7945fi
7946
54445dc2
TT
7947else $as_nop
7948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
7949printf "%s\n" "Enabling mmp support by default" >&6; }
7950printf "%s\n" "#define CONFIG_MMP 1" >>confdefs.h
bdcd5f22
TT
7951
7952
7953fi
7954
7955
7956# Check whether --enable-tdb was given.
54445dc2
TT
7957if test ${enable_tdb+y}
7958then :
bdcd5f22
TT
7959 enableval=$enable_tdb; if test "$enableval" = "no"
7960then
54445dc2
TT
7961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling tdb support" >&5
7962printf "%s\n" "Disabling tdb support" >&6; }
bdcd5f22
TT
7963 TDB_CMT="#"
7964 TDB_MAN_COMMENT='.\"'
7965else
54445dc2
TT
7966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling tdb support" >&5
7967printf "%s\n" "Enabling tdb support" >&6; }
7968 printf "%s\n" "#define CONFIG_TDB 1" >>confdefs.h
bdcd5f22
TT
7969
7970 TDB_CMT=""
7971 TDB_MAN_COMMENT=""
7972fi
7973
54445dc2
TT
7974else $as_nop
7975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
7976printf "%s\n" "Enabling mmp support by default" >&6; }
7977printf "%s\n" "#define CONFIG_TDB 1" >>confdefs.h
bdcd5f22
TT
7978
7979TDB_CMT=""
7980TDB_MAN_COMMENT=""
7981
7982fi
7983
7984
7985
7986
7987# Check whether --enable-bmap-stats was given.
54445dc2
TT
7988if test ${enable_bmap_stats+y}
7989then :
bdcd5f22
TT
7990 enableval=$enable_bmap_stats; if test "$enableval" = "no"
7991then
54445dc2
TT
7992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5
7993printf "%s\n" "Disabling bitmap statistics support" >&6; }
bdcd5f22 7994else
54445dc2
TT
7995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5
7996printf "%s\n" "Enabling bitmap statistics support" >&6; }
7997 printf "%s\n" "#define ENABLE_BMAP_STATS 1" >>confdefs.h
bdcd5f22
TT
7998
7999fi
8000
54445dc2
TT
8001else $as_nop
8002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5
8003printf "%s\n" "Enabling bitmap statistics support by default" >&6; }
8004printf "%s\n" "#define ENABLE_BMAP_STATS 1" >>confdefs.h
bdcd5f22
TT
8005
8006
8007fi
8008
8009
8010# Check whether --enable-bmap-stats-ops was given.
54445dc2
TT
8011if test ${enable_bmap_stats_ops+y}
8012then :
bdcd5f22
TT
8013 enableval=$enable_bmap_stats_ops; if test "$enableval" = "no"
8014then
54445dc2
TT
8015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5
8016printf "%s\n" "Disabling additional bitmap statistics" >&6; }
bdcd5f22 8017else
54445dc2
TT
8018 if test "x${enable_bmap_stats}" = "xno"
8019then :
8020 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8021printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
bdcd5f22
TT
8022as_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats
8023See \`config.log' for more details" "$LINENO" 5; }
8024fi
8025
54445dc2
TT
8026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5
8027printf "%s\n" "Enabling additional bitmap statistics" >&6; }
8028 printf "%s\n" "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h
bdcd5f22
TT
8029
8030fi
8031
54445dc2
TT
8032else $as_nop
8033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5
8034printf "%s\n" "Disabling additional bitmap statistics by default" >&6; }
bdcd5f22
TT
8035
8036fi
8037
8038MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
8039
8040GETTEXT_PACKAGE=e2fsprogs
8041PACKAGE=e2fsprogs
8042VERSION="$E2FSPROGS_VERSION"
8043VERSION=0.14.1
8044
54445dc2 8045printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
bdcd5f22
TT
8046
8047
54445dc2 8048printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
bdcd5f22
TT
8049
8050
8051
8052
8053
54445dc2
TT
8054{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8055printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
bdcd5f22 8056set x ${MAKE-make}
54445dc2
TT
8057ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8058if eval test \${ac_cv_prog_make_${ac_make}_set+y}
8059then :
8060 printf %s "(cached) " >&6
8061else $as_nop
bdcd5f22
TT
8062 cat >conftest.make <<\_ACEOF
8063SHELL = /bin/sh
8064all:
8065 @echo '@@@%%%=$(MAKE)=@@@%%%'
8066_ACEOF
8067# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8068case `${MAKE-make} -f conftest.make 2>/dev/null` in
8069 *@@@%%%=?*=@@@%%%*)
8070 eval ac_cv_prog_make_${ac_make}_set=yes;;
8071 *)
8072 eval ac_cv_prog_make_${ac_make}_set=no;;
8073esac
57aa50d4
TT
8074rm -f conftest.make
8075fi
8076if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
54445dc2
TT
8077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8078printf "%s\n" "yes" >&6; }
57aa50d4 8079 SET_MAKE=
39fd3d4f 8080else
54445dc2
TT
8081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8082printf "%s\n" "no" >&6; }
57aa50d4 8083 SET_MAKE="MAKE=${MAKE-make}"
39fd3d4f
SJR
8084fi
8085
54445dc2
TT
8086
8087 # Find a good install program. We prefer a C program (faster),
57aa50d4
TT
8088# so one script is as good as another. But avoid the broken or
8089# incompatible versions:
8090# SysV /etc/install, /usr/sbin/install
8091# SunOS /usr/etc/install
8092# IRIX /sbin/install
8093# AIX /bin/install
8094# AmigaOS /C/install, which installs bootblocks on floppy discs
8095# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8096# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8097# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8098# OS/2's system install, which has a completely different semantic
8099# ./install, which can be erroneously created by make from ./install.sh.
8100# Reject install programs that cannot install multiple files.
54445dc2
TT
8101{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
8102printf %s "checking for a BSD-compatible install... " >&6; }
57aa50d4 8103if test -z "$INSTALL"; then
54445dc2
TT
8104if test ${ac_cv_path_install+y}
8105then :
8106 printf %s "(cached) " >&6
8107else $as_nop
57aa50d4
TT
8108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8109for as_dir in $PATH
8110do
8111 IFS=$as_save_IFS
54445dc2
TT
8112 case $as_dir in #(((
8113 '') as_dir=./ ;;
8114 */) ;;
8115 *) as_dir=$as_dir/ ;;
8116 esac
8117 # Account for fact that we put trailing slashes in our PATH walk.
8118case $as_dir in #((
8119 ./ | /[cC]/* | \
57aa50d4
TT
8120 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8121 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
8122 /usr/ucb/* ) ;;
8123 *)
8124 # OSF1 and SCO ODT 3.0 have their own names for install.
8125 # Don't use installbsd from OSF since it installs stuff as root
8126 # by default.
8127 for ac_prog in ginstall scoinst install; do
8128 for ac_exec_ext in '' $ac_executable_extensions; do
54445dc2 8129 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
57aa50d4 8130 if test $ac_prog = install &&
54445dc2 8131 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
57aa50d4
TT
8132 # AIX install. It has an incompatible calling convention.
8133 :
8134 elif test $ac_prog = install &&
54445dc2 8135 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
57aa50d4
TT
8136 # program-specific install script used by HP pwplus--don't use.
8137 :
8138 else
8139 rm -rf conftest.one conftest.two conftest.dir
8140 echo one > conftest.one
8141 echo two > conftest.two
8142 mkdir conftest.dir
54445dc2 8143 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
57aa50d4
TT
8144 test -s conftest.one && test -s conftest.two &&
8145 test -s conftest.dir/conftest.one &&
8146 test -s conftest.dir/conftest.two
8147 then
54445dc2 8148 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
57aa50d4
TT
8149 break 3
8150 fi
8151 fi
8152 fi
8153 done
8154 done
8155 ;;
8156esac
8157
8158 done
8159IFS=$as_save_IFS
b0cacab0 8160
57aa50d4 8161rm -rf conftest.one conftest.two conftest.dir
39fd3d4f 8162
93636bde 8163fi
54445dc2 8164 if test ${ac_cv_path_install+y}; then
57aa50d4
TT
8165 INSTALL=$ac_cv_path_install
8166 else
8167 # As a last resort, use the slow shell script. Don't cache a
8168 # value for INSTALL within a source directory, because that will
8169 # break other packages using the cache if that directory is
8170 # removed, or if the value is a relative name.
8171 INSTALL=$ac_install_sh
8172 fi
93636bde 8173fi
54445dc2
TT
8174{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8175printf "%s\n" "$INSTALL" >&6; }
a64c9c13 8176
57aa50d4
TT
8177# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8178# It thinks the first close brace ends the variable substitution.
8179test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
b0cacab0 8180
57aa50d4 8181test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
a64c9c13 8182
57aa50d4 8183test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
39fd3d4f 8184
54445dc2
TT
8185
8186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
8187printf %s "checking for a race-free mkdir -p... " >&6; }
93613951 8188if test -z "$MKDIR_P"; then
54445dc2
TT
8189 if test ${ac_cv_path_mkdir+y}
8190then :
8191 printf %s "(cached) " >&6
8192else $as_nop
93613951
TT
8193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8194for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
8195do
8196 IFS=$as_save_IFS
54445dc2
TT
8197 case $as_dir in #(((
8198 '') as_dir=./ ;;
8199 */) ;;
8200 *) as_dir=$as_dir/ ;;
8201 esac
93613951
TT
8202 for ac_prog in mkdir gmkdir; do
8203 for ac_exec_ext in '' $ac_executable_extensions; do
54445dc2
TT
8204 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
8205 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
8206 'mkdir ('*'coreutils) '* | \
8207 'BusyBox '* | \
93613951 8208 'mkdir (fileutils) '4.1*)
54445dc2 8209 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
93613951
TT
8210 break 3;;
8211 esac
8212 done
8213 done
8214 done
8215IFS=$as_save_IFS
8216
8217fi
39fd3d4f 8218
93613951 8219 test -d ./--version && rmdir ./--version
54445dc2 8220 if test ${ac_cv_path_mkdir+y}; then
93613951
TT
8221 MKDIR_P="$ac_cv_path_mkdir -p"
8222 else
8223 # As a last resort, use the slow shell script. Don't cache a
8224 # value for MKDIR_P within a source directory, because that will
8225 # break other packages using the cache if that directory is
8226 # removed, or if the value is a relative name.
8227 MKDIR_P="$ac_install_sh -d"
57aa50d4 8228 fi
93613951 8229fi
54445dc2
TT
8230{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
8231printf "%s\n" "$MKDIR_P" >&6; }
93613951 8232
e1052144 8233
54445dc2
TT
8234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8235printf %s "checking whether NLS is requested... " >&6; }
57aa50d4 8236 # Check whether --enable-nls was given.
54445dc2
TT
8237if test ${enable_nls+y}
8238then :
57aa50d4 8239 enableval=$enable_nls; USE_NLS=$enableval
54445dc2 8240else $as_nop
57aa50d4
TT
8241 USE_NLS=yes
8242fi
b0cacab0 8243
54445dc2
TT
8244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8245printf "%s\n" "$USE_NLS" >&6; }
93636bde 8246
a64c9c13 8247
a64c9c13 8248
b0cacab0 8249
bdcd5f22 8250 GETTEXT_MACRO_VERSION=0.20
93613951
TT
8251
8252
b0cacab0 8253
a64c9c13 8254
57aa50d4
TT
8255# Prepare PATH_SEPARATOR.
8256# The user is always right.
8257if test "${PATH_SEPARATOR+set}" != set; then
93613951
TT
8258 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8259 # contains only /bin. Note that ksh looks also at the FPATH variable,
8260 # so we have to set that as well for the test.
8261 PATH_SEPARATOR=:
8262 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8263 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8264 || PATH_SEPARATOR=';'
8265 }
57aa50d4 8266fi
b0cacab0 8267
57aa50d4
TT
8268# Find out how to test for executable files. Don't use a zero-byte file,
8269# as systems may use methods other than mode bits to determine executability.
8270cat >conf$$.file <<_ASEOF
8271#! /bin/sh
8272exit 0
8273_ASEOF
8274chmod +x conf$$.file
8275if test -x conf$$.file >/dev/null 2>&1; then
8276 ac_executable_p="test -x"
8277else
8278 ac_executable_p="test -f"
8279fi
8280rm -f conf$$.file
b0cacab0 8281
57aa50d4
TT
8282# Extract the first word of "msgfmt", so it can be a program name with args.
8283set dummy msgfmt; ac_word=$2
54445dc2
TT
8284{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8285printf %s "checking for $ac_word... " >&6; }
8286if test ${ac_cv_path_MSGFMT+y}
8287then :
8288 printf %s "(cached) " >&6
8289else $as_nop
57aa50d4
TT
8290 case "$MSGFMT" in
8291 [\\/]* | ?:[\\/]*)
8292 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8293 ;;
8294 *)
8295 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
8296 for ac_dir in $PATH; do
8297 IFS="$ac_save_IFS"
8298 test -z "$ac_dir" && ac_dir=.
8299 for ac_exec_ext in '' $ac_executable_extensions; do
8300 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
93613951
TT
8301 echo "$as_me: trying $ac_dir/$ac_word..." >&5
8302 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
57aa50d4
TT
8303 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
8304 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
8305 break 2
8306 fi
8307 fi
8308 done
8309 done
8310 IFS="$ac_save_IFS"
8311 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
8312 ;;
e1052144 8313esac
b0cacab0 8314fi
57aa50d4
TT
8315MSGFMT="$ac_cv_path_MSGFMT"
8316if test "$MSGFMT" != ":"; then
54445dc2
TT
8317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
8318printf "%s\n" "$MSGFMT" >&6; }
57aa50d4 8319else
54445dc2
TT
8320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8321printf "%s\n" "no" >&6; }
b0cacab0 8322fi
a64c9c13 8323
57aa50d4
TT
8324 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8325set dummy gmsgfmt; ac_word=$2
54445dc2
TT
8326{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8327printf %s "checking for $ac_word... " >&6; }
8328if test ${ac_cv_path_GMSGFMT+y}
8329then :
8330 printf %s "(cached) " >&6
8331else $as_nop
57aa50d4
TT
8332 case $GMSGFMT in
8333 [\\/]* | ?:[\\/]*)
8334 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8335 ;;
8336 *)
8337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8338for as_dir in $PATH
8339do
8340 IFS=$as_save_IFS
54445dc2
TT
8341 case $as_dir in #(((
8342 '') as_dir=./ ;;
8343 */) ;;
8344 *) as_dir=$as_dir/ ;;
8345 esac
57aa50d4 8346 for ac_exec_ext in '' $ac_executable_extensions; do
54445dc2
TT
8347 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8348 ac_cv_path_GMSGFMT="$as_dir$ac_word$ac_exec_ext"
8349 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
57aa50d4
TT
8350 break 2
8351 fi
8352done
8353 done
8354IFS=$as_save_IFS
a64c9c13 8355
57aa50d4
TT
8356 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8357 ;;
e1052144 8358esac
57aa50d4
TT
8359fi
8360GMSGFMT=$ac_cv_path_GMSGFMT
8361if test -n "$GMSGFMT"; then
54445dc2
TT
8362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
8363printf "%s\n" "$GMSGFMT" >&6; }
b0cacab0 8364else
54445dc2
TT
8365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8366printf "%s\n" "no" >&6; }
b0cacab0 8367fi
e1052144 8368
b0cacab0 8369
b0cacab0 8370
bdcd5f22 8371 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
93613951
TT
8372 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
8373 *) GMSGFMT_015=$GMSGFMT ;;
8374 esac
8375
8376
57aa50d4
TT
8377
8378# Prepare PATH_SEPARATOR.
8379# The user is always right.
8380if test "${PATH_SEPARATOR+set}" != set; then
93613951
TT
8381 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8382 # contains only /bin. Note that ksh looks also at the FPATH variable,
8383 # so we have to set that as well for the test.
8384 PATH_SEPARATOR=:
8385 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8386 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8387 || PATH_SEPARATOR=';'
8388 }
57aa50d4 8389fi
b0cacab0 8390
57aa50d4
TT
8391# Find out how to test for executable files. Don't use a zero-byte file,
8392# as systems may use methods other than mode bits to determine executability.
8393cat >conf$$.file <<_ASEOF
8394#! /bin/sh
8395exit 0
8396_ASEOF
8397chmod +x conf$$.file
8398if test -x conf$$.file >/dev/null 2>&1; then
8399 ac_executable_p="test -x"
8400else
8401 ac_executable_p="test -f"
8402fi
8403rm -f conf$$.file
b0cacab0 8404
57aa50d4
TT
8405# Extract the first word of "xgettext", so it can be a program name with args.
8406set dummy xgettext; ac_word=$2
54445dc2
TT
8407{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8408printf %s "checking for $ac_word... " >&6; }
8409if test ${ac_cv_path_XGETTEXT+y}
8410then :
8411 printf %s "(cached) " >&6
8412else $as_nop
57aa50d4
TT
8413 case "$XGETTEXT" in
8414 [\\/]* | ?:[\\/]*)
8415 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8416 ;;
8417 *)
8418 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
8419 for ac_dir in $PATH; do
8420 IFS="$ac_save_IFS"
8421 test -z "$ac_dir" && ac_dir=.
8422 for ac_exec_ext in '' $ac_executable_extensions; do
8423 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
93613951
TT
8424 echo "$as_me: trying $ac_dir/$ac_word..." >&5
8425 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
57aa50d4
TT
8426 (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
8427 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
8428 break 2
8429 fi
8430 fi
8431 done
8432 done
8433 IFS="$ac_save_IFS"
8434 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8435 ;;
e1052144 8436esac
b0cacab0 8437fi
57aa50d4
TT
8438XGETTEXT="$ac_cv_path_XGETTEXT"
8439if test "$XGETTEXT" != ":"; then
54445dc2
TT
8440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
8441printf "%s\n" "$XGETTEXT" >&6; }
57aa50d4 8442else
54445dc2
TT
8443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8444printf "%s\n" "no" >&6; }
b0cacab0 8445fi
b0cacab0 8446
57aa50d4 8447 rm -f messages.po
a64c9c13 8448
93613951
TT
8449 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
8450 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
8451 *) XGETTEXT_015=$XGETTEXT ;;
8452 esac
8453
8454
b0cacab0 8455
57aa50d4
TT
8456# Prepare PATH_SEPARATOR.
8457# The user is always right.
8458if test "${PATH_SEPARATOR+set}" != set; then
93613951
TT
8459 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8460 # contains only /bin. Note that ksh looks also at the FPATH variable,
8461 # so we have to set that as well for the test.
8462 PATH_SEPARATOR=:
8463 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8464 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8465 || PATH_SEPARATOR=';'
8466 }
57aa50d4 8467fi
b0cacab0 8468
57aa50d4
TT
8469# Find out how to test for executable files. Don't use a zero-byte file,
8470# as systems may use methods other than mode bits to determine executability.
8471cat >conf$$.file <<_ASEOF
8472#! /bin/sh
8473exit 0
8474_ASEOF
8475chmod +x conf$$.file
8476if test -x conf$$.file >/dev/null 2>&1; then
8477 ac_executable_p="test -x"
8478else
8479 ac_executable_p="test -f"
8480fi
8481rm -f conf$$.file
8482
8483# Extract the first word of "msgmerge", so it can be a program name with args.
8484set dummy msgmerge; ac_word=$2
54445dc2
TT
8485{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8486printf %s "checking for $ac_word... " >&6; }
8487if test ${ac_cv_path_MSGMERGE+y}
8488then :
8489 printf %s "(cached) " >&6
8490else $as_nop
57aa50d4
TT
8491 case "$MSGMERGE" in
8492 [\\/]* | ?:[\\/]*)
8493 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
8494 ;;
8495 *)
8496 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
8497 for ac_dir in $PATH; do
8498 IFS="$ac_save_IFS"
8499 test -z "$ac_dir" && ac_dir=.
8500 for ac_exec_ext in '' $ac_executable_extensions; do
8501 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
93613951
TT
8502 echo "$as_me: trying $ac_dir/$ac_word..." >&5
8503 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
57aa50d4
TT
8504 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
8505 break 2
8506 fi
8507 fi
8508 done
8509 done
8510 IFS="$ac_save_IFS"
8511 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
8512 ;;
e1052144 8513esac
57aa50d4
TT
8514fi
8515MSGMERGE="$ac_cv_path_MSGMERGE"
8516if test "$MSGMERGE" != ":"; then
54445dc2
TT
8517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
8518printf "%s\n" "$MSGMERGE" >&6; }
b0cacab0 8519else
54445dc2
TT
8520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8521printf "%s\n" "no" >&6; }
b0cacab0 8522fi
e1052144 8523
93636bde 8524
bdcd5f22
TT
8525 if LC_ALL=C $MSGMERGE --help | grep ' --for-msgfmt ' >/dev/null; then
8526 MSGMERGE_FOR_MSGFMT_OPTION='--for-msgfmt'
8527 else
8528 if LC_ALL=C $MSGMERGE --help | grep ' --no-fuzzy-matching ' >/dev/null; then
8529 MSGMERGE_FOR_MSGFMT_OPTION='--no-fuzzy-matching --no-location --quiet'
8530 else
8531 MSGMERGE_FOR_MSGFMT_OPTION='--no-location --quiet'
8532 fi
8533 fi
93613951
TT
8534
8535
8536 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
8537
8538
8539 ac_config_commands="$ac_config_commands po-directories"
a64c9c13 8540
a64c9c13 8541
93613951 8542
e598c29b
TT
8543 if test "X$prefix" = "XNONE"; then
8544 acl_final_prefix="$ac_default_prefix"
8545 else
8546 acl_final_prefix="$prefix"
8547 fi
8548 if test "X$exec_prefix" = "XNONE"; then
8549 acl_final_exec_prefix='${prefix}'
8550 else
8551 acl_final_exec_prefix="$exec_prefix"
8552 fi
8553 acl_save_prefix="$prefix"
8554 prefix="$acl_final_prefix"
8555 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8556 prefix="$acl_save_prefix"
93613951 8557
93613951 8558
e598c29b
TT
8559
8560# Check whether --with-gnu-ld was given.
54445dc2
TT
8561if test ${with_gnu_ld+y}
8562then :
e598c29b 8563 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
54445dc2 8564else $as_nop
e598c29b 8565 with_gnu_ld=no
93613951 8566fi
a64c9c13 8567
e598c29b
TT
8568# Prepare PATH_SEPARATOR.
8569# The user is always right.
8570if test "${PATH_SEPARATOR+set}" != set; then
8571 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8572 # contains only /bin. Note that ksh looks also at the FPATH variable,
8573 # so we have to set that as well for the test.
8574 PATH_SEPARATOR=:
8575 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8576 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8577 || PATH_SEPARATOR=';'
8578 }
d1154eb4
TT
8579fi
8580
bdcd5f22 8581if test -n "$LD"; then
54445dc2
TT
8582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld" >&5
8583printf %s "checking for ld... " >&6; }
bdcd5f22 8584elif test "$GCC" = yes; then
54445dc2
TT
8585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8586printf %s "checking for ld used by $CC... " >&6; }
e598c29b 8587elif test "$with_gnu_ld" = yes; then
54445dc2
TT
8588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8589printf %s "checking for GNU ld... " >&6; }
e598c29b 8590else
54445dc2
TT
8591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8592printf %s "checking for non-GNU ld... " >&6; }
d1154eb4 8593fi
bdcd5f22
TT
8594if test -n "$LD"; then
8595 # Let the user override the test with a path.
8596 :
8597else
54445dc2
TT
8598 if test ${acl_cv_path_LD+y}
8599then :
8600 printf %s "(cached) " >&6
8601else $as_nop
bdcd5f22
TT
8602
8603 acl_cv_path_LD= # Final result of this test
8604 ac_prog=ld # Program to search in $PATH
8605 if test "$GCC" = yes; then
8606 # Check if gcc -print-prog-name=ld gives a path.
8607 case $host in
8608 *-*-mingw*)
8609 # gcc leaves a trailing carriage return which upsets mingw
8610 acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8611 *)
8612 acl_output=`($CC -print-prog-name=ld) 2>&5` ;;
8613 esac
8614 case $acl_output in
8615 # Accept absolute paths.
8616 [\\/]* | ?:[\\/]*)
8617 re_direlt='/[^/][^/]*/\.\./'
8618 # Canonicalize the pathname of ld
8619 acl_output=`echo "$acl_output" | sed 's%\\\\%/%g'`
8620 while echo "$acl_output" | grep "$re_direlt" > /dev/null 2>&1; do
8621 acl_output=`echo $acl_output | sed "s%$re_direlt%/%"`
8622 done
8623 # Got the pathname. No search in PATH is needed.
8624 acl_cv_path_LD="$acl_output"
8625 ac_prog=
8626 ;;
8627 "")
8628 # If it fails, then pretend we aren't using GCC.
8629 ;;
8630 *)
8631 # If it is relative, then search for the first ld in PATH.
8632 with_gnu_ld=unknown
8633 ;;
e598c29b
TT
8634 esac
8635 fi
bdcd5f22
TT
8636 if test -n "$ac_prog"; then
8637 # Search for $ac_prog in $PATH.
8638 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8639 for ac_dir in $PATH; do
8640 IFS="$acl_save_ifs"
8641 test -z "$ac_dir" && ac_dir=.
8642 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8643 acl_cv_path_LD="$ac_dir/$ac_prog"
8644 # Check to see if the program is GNU ld. I'd rather use --version,
8645 # but apparently some variants of GNU ld only accept -v.
8646 # Break only if it was the GNU/non-GNU ld that we prefer.
8647 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
8648 *GNU* | *'with BFD'*)
8649 test "$with_gnu_ld" != no && break
8650 ;;
8651 *)
8652 test "$with_gnu_ld" != yes && break
8653 ;;
8654 esac
8655 fi
8656 done
8657 IFS="$acl_save_ifs"
8658 fi
8659 case $host in
8660 *-*-aix*)
8661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8662/* end confdefs.h. */
8663#if defined __powerpc64__ || defined _ARCH_PPC64
8664 int ok;
8665 #else
8666 error fail
8667 #endif
8668
8669_ACEOF
54445dc2
TT
8670if ac_fn_c_try_compile "$LINENO"
8671then :
bdcd5f22
TT
8672 # The compiler produces 64-bit code. Add option '-b64' so that the
8673 # linker groks 64-bit object files.
8674 case "$acl_cv_path_LD " in
8675 *" -b64 "*) ;;
8676 *) acl_cv_path_LD="$acl_cv_path_LD -b64" ;;
8677 esac
8678
8679fi
54445dc2 8680rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
bdcd5f22
TT
8681 ;;
8682 sparc64-*-netbsd*)
8683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8684/* end confdefs.h. */
8685#if defined __sparcv9 || defined __arch64__
8686 int ok;
8687 #else
8688 error fail
8689 #endif
8690
8691_ACEOF
54445dc2
TT
8692if ac_fn_c_try_compile "$LINENO"
8693then :
bdcd5f22 8694
54445dc2 8695else $as_nop
bdcd5f22
TT
8696 # The compiler produces 32-bit code. Add option '-m elf32_sparc'
8697 # so that the linker groks 32-bit object files.
8698 case "$acl_cv_path_LD " in
8699 *" -m elf32_sparc "*) ;;
8700 *) acl_cv_path_LD="$acl_cv_path_LD -m elf32_sparc" ;;
8701 esac
8702
d1154eb4 8703fi
54445dc2 8704rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
bdcd5f22
TT
8705 ;;
8706 esac
8707
d1154eb4 8708fi
e598c29b 8709
bdcd5f22
TT
8710 LD="$acl_cv_path_LD"
8711fi
e598c29b 8712if test -n "$LD"; then
54445dc2
TT
8713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8714printf "%s\n" "$LD" >&6; }
d1154eb4 8715else
54445dc2
TT
8716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8717printf "%s\n" "no" >&6; }
bdcd5f22 8718 as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
d1154eb4 8719fi
54445dc2
TT
8720{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8721printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
8722if test ${acl_cv_prog_gnu_ld+y}
8723then :
8724 printf %s "(cached) " >&6
8725else $as_nop
e598c29b
TT
8726 # I'd rather use --version here, but apparently some GNU lds only accept -v.
8727case `$LD -v 2>&1 </dev/null` in
8728*GNU* | *'with BFD'*)
8729 acl_cv_prog_gnu_ld=yes
8730 ;;
8731*)
8732 acl_cv_prog_gnu_ld=no
8733 ;;
8734esac
8735fi
54445dc2
TT
8736{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8737printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; }
e598c29b 8738with_gnu_ld=$acl_cv_prog_gnu_ld
93613951 8739
d1154eb4 8740
93613951 8741
d1154eb4 8742
54445dc2
TT
8743
8744
8745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8746printf %s "checking for shared library run path origin... " >&6; }
8747if test ${acl_cv_rpath+y}
8748then :
8749 printf %s "(cached) " >&6
8750else $as_nop
d1154eb4 8751
e598c29b
TT
8752 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8753 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8754 . ./conftest.sh
8755 rm -f ./conftest.sh
8756 acl_cv_rpath=done
d1154eb4 8757
93613951 8758fi
54445dc2
TT
8759{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8760printf "%s\n" "$acl_cv_rpath" >&6; }
e598c29b
TT
8761 wl="$acl_cv_wl"
8762 acl_libext="$acl_cv_libext"
8763 acl_shlibext="$acl_cv_shlibext"
8764 acl_libname_spec="$acl_cv_libname_spec"
8765 acl_library_names_spec="$acl_cv_library_names_spec"
8766 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8767 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8768 acl_hardcode_direct="$acl_cv_hardcode_direct"
8769 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
8770 # Check whether --enable-rpath was given.
54445dc2
TT
8771if test ${enable_rpath+y}
8772then :
e598c29b 8773 enableval=$enable_rpath; :
54445dc2 8774else $as_nop
e598c29b 8775 enable_rpath=yes
93613951 8776fi
d1154eb4 8777
d1154eb4
TT
8778
8779
93613951 8780
54445dc2
TT
8781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking 32-bit host C ABI" >&5
8782printf %s "checking 32-bit host C ABI... " >&6; }
8783if test ${gl_cv_host_cpu_c_abi_32bit+y}
8784then :
8785 printf %s "(cached) " >&6
8786else $as_nop
bdcd5f22
TT
8787 if test -n "$gl_cv_host_cpu_c_abi"; then
8788 case "$gl_cv_host_cpu_c_abi" in
8789 i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc)
8790 gl_cv_host_cpu_c_abi_32bit=yes ;;
8791 x86_64 | alpha | arm64 | hppa64 | ia64 | mips64 | powerpc64 | powerpc64-elfv2 | riscv*-lp64* | s390x | sparc64 )
8792 gl_cv_host_cpu_c_abi_32bit=no ;;
8793 *)
8794 gl_cv_host_cpu_c_abi_32bit=unknown ;;
8795 esac
8796 else
8797 case "$host_cpu" in
8798
8799 # CPUs that only support a 32-bit ABI.
8800 arc \
8801 | bfin \
8802 | cris* \
8803 | csky \
8804 | epiphany \
8805 | ft32 \
8806 | h8300 \
8807 | m68k \
8808 | microblaze | microblazeel \
8809 | nds32 | nds32le | nds32be \
8810 | nios2 | nios2eb | nios2el \
8811 | or1k* \
8812 | or32 \
8813 | sh | sh1234 | sh1234elb \
8814 | tic6x \
8815 | xtensa* )
8816 gl_cv_host_cpu_c_abi_32bit=yes
8817 ;;
8818
8819 # CPUs that only support a 64-bit ABI.
8820 alpha | alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] \
8821 | mmix )
8822 gl_cv_host_cpu_c_abi_32bit=no
8823 ;;
8824
8825 i[34567]86 )
8826 gl_cv_host_cpu_c_abi_32bit=yes
8827 ;;
8828
8829 x86_64 )
8830 # On x86_64 systems, the C compiler may be generating code in one of
8831 # these ABIs:
8832 # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64.
8833 # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64
8834 # with native Windows (mingw, MSVC).
8835 # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32.
8836 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386.
8837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d1154eb4 8838/* end confdefs.h. */
bdcd5f22
TT
8839#if (defined __x86_64__ || defined __amd64__ \
8840 || defined _M_X64 || defined _M_AMD64) \
8841 && !(defined __ILP32__ || defined _ILP32)
8842 int ok;
8843 #else
8844 error fail
8845 #endif
e598c29b 8846
bdcd5f22 8847_ACEOF
54445dc2
TT
8848if ac_fn_c_try_compile "$LINENO"
8849then :
bdcd5f22 8850 gl_cv_host_cpu_c_abi_32bit=no
54445dc2 8851else $as_nop
bdcd5f22
TT
8852 gl_cv_host_cpu_c_abi_32bit=yes
8853fi
54445dc2 8854rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
bdcd5f22
TT
8855 ;;
8856
8857 arm* | aarch64 )
8858 # Assume arm with EABI.
8859 # On arm64 systems, the C compiler may be generating code in one of
8860 # these ABIs:
8861 # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64.
8862 # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32.
8863 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf.
8864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8865/* end confdefs.h. */
8866#if defined __aarch64__ && !(defined __ILP32__ || defined _ILP32)
8867 int ok;
8868 #else
8869 error fail
8870 #endif
8871
8872_ACEOF
54445dc2
TT
8873if ac_fn_c_try_compile "$LINENO"
8874then :
bdcd5f22 8875 gl_cv_host_cpu_c_abi_32bit=no
54445dc2 8876else $as_nop
bdcd5f22
TT
8877 gl_cv_host_cpu_c_abi_32bit=yes
8878fi
54445dc2 8879rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
bdcd5f22
TT
8880 ;;
8881
8882 hppa1.0 | hppa1.1 | hppa2.0* | hppa64 )
8883 # On hppa, the C compiler may be generating 32-bit code or 64-bit
8884 # code. In the latter case, it defines _LP64 and __LP64__.
8885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8886/* end confdefs.h. */
8887#ifdef __LP64__
8888 int ok;
8889 #else
8890 error fail
8891 #endif
8892
8893_ACEOF
54445dc2
TT
8894if ac_fn_c_try_compile "$LINENO"
8895then :
bdcd5f22 8896 gl_cv_host_cpu_c_abi_32bit=no
54445dc2 8897else $as_nop
bdcd5f22
TT
8898 gl_cv_host_cpu_c_abi_32bit=yes
8899fi
54445dc2 8900rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
bdcd5f22
TT
8901 ;;
8902
8903 ia64* )
8904 # On ia64 on HP-UX, the C compiler may be generating 64-bit code or
8905 # 32-bit code. In the latter case, it defines _ILP32.
8906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8907/* end confdefs.h. */
8908#ifdef _ILP32
8909 int ok;
8910 #else
8911 error fail
8912 #endif
8913
8914_ACEOF
54445dc2
TT
8915if ac_fn_c_try_compile "$LINENO"
8916then :
bdcd5f22 8917 gl_cv_host_cpu_c_abi_32bit=yes
54445dc2 8918else $as_nop
bdcd5f22
TT
8919 gl_cv_host_cpu_c_abi_32bit=no
8920fi
54445dc2 8921rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
bdcd5f22
TT
8922 ;;
8923
8924 mips* )
8925 # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this
8926 # at 32.
8927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8928/* end confdefs.h. */
8929#if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64)
8930 int ok;
8931 #else
8932 error fail
8933 #endif
8934
8935_ACEOF
54445dc2
TT
8936if ac_fn_c_try_compile "$LINENO"
8937then :
bdcd5f22 8938 gl_cv_host_cpu_c_abi_32bit=no
54445dc2 8939else $as_nop
bdcd5f22
TT
8940 gl_cv_host_cpu_c_abi_32bit=yes
8941fi
54445dc2 8942rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
bdcd5f22
TT
8943 ;;
8944
8945 powerpc* )
8946 # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD.
8947 # No need to distinguish them here; the caller may distinguish
8948 # them based on the OS.
8949 # On powerpc64 systems, the C compiler may still be generating
8950 # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may
8951 # be generating 64-bit code.
8952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8953/* end confdefs.h. */
8954#if defined __powerpc64__ || defined _ARCH_PPC64
8955 int ok;
8956 #else
8957 error fail
8958 #endif
8959
8960_ACEOF
54445dc2
TT
8961if ac_fn_c_try_compile "$LINENO"
8962then :
bdcd5f22 8963 gl_cv_host_cpu_c_abi_32bit=no
54445dc2 8964else $as_nop
bdcd5f22
TT
8965 gl_cv_host_cpu_c_abi_32bit=yes
8966fi
54445dc2 8967rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
bdcd5f22
TT
8968 ;;
8969
8970 rs6000 )
8971 gl_cv_host_cpu_c_abi_32bit=yes
8972 ;;
8973
8974 riscv32 | riscv64 )
8975 # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d.
8976 # Size of 'long' and 'void *':
8977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8978/* end confdefs.h. */
8979#if defined __LP64__
8980 int ok;
8981 #else
8982 error fail
8983 #endif
8984
8985_ACEOF
54445dc2
TT
8986if ac_fn_c_try_compile "$LINENO"
8987then :
bdcd5f22 8988 gl_cv_host_cpu_c_abi_32bit=no
54445dc2 8989else $as_nop
bdcd5f22
TT
8990 gl_cv_host_cpu_c_abi_32bit=yes
8991fi
54445dc2 8992rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
bdcd5f22
TT
8993 ;;
8994
8995 s390* )
8996 # On s390x, the C compiler may be generating 64-bit (= s390x) code
8997 # or 31-bit (= s390) code.
8998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8999/* end confdefs.h. */
9000#if defined __LP64__ || defined __s390x__
9001 int ok;
9002 #else
9003 error fail
9004 #endif
9005
9006_ACEOF
54445dc2
TT
9007if ac_fn_c_try_compile "$LINENO"
9008then :
bdcd5f22 9009 gl_cv_host_cpu_c_abi_32bit=no
54445dc2 9010else $as_nop
bdcd5f22
TT
9011 gl_cv_host_cpu_c_abi_32bit=yes
9012fi
54445dc2 9013rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
bdcd5f22
TT
9014 ;;
9015
9016 sparc | sparc64 )
9017 # UltraSPARCs running Linux have `uname -m` = "sparc64", but the
9018 # C compiler still generates 32-bit code.
9019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9020/* end confdefs.h. */
9021#if defined __sparcv9 || defined __arch64__
9022 int ok;
9023 #else
9024 error fail
9025 #endif
9026
9027_ACEOF
54445dc2
TT
9028if ac_fn_c_try_compile "$LINENO"
9029then :
bdcd5f22 9030 gl_cv_host_cpu_c_abi_32bit=no
54445dc2 9031else $as_nop
bdcd5f22
TT
9032 gl_cv_host_cpu_c_abi_32bit=yes
9033fi
54445dc2 9034rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
bdcd5f22
TT
9035 ;;
9036
9037 *)
9038 gl_cv_host_cpu_c_abi_32bit=unknown
9039 ;;
9040 esac
9041 fi
9042
9043fi
54445dc2
TT
9044{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi_32bit" >&5
9045printf "%s\n" "$gl_cv_host_cpu_c_abi_32bit" >&6; }
bdcd5f22
TT
9046
9047 HOST_CPU_C_ABI_32BIT="$gl_cv_host_cpu_c_abi_32bit"
9048
9049
9050
9051
9052
54445dc2
TT
9053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ELF binary format" >&5
9054printf %s "checking for ELF binary format... " >&6; }
9055if test ${gl_cv_elf+y}
9056then :
9057 printf %s "(cached) " >&6
9058else $as_nop
bdcd5f22
TT
9059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9060/* end confdefs.h. */
9061#ifdef __ELF__
9062 Extensible Linking Format
9063 #endif
d1154eb4 9064
d1154eb4 9065_ACEOF
e598c29b 9066if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
54445dc2
TT
9067 $EGREP "Extensible Linking Format" >/dev/null 2>&1
9068then :
bdcd5f22 9069 gl_cv_elf=yes
54445dc2 9070else $as_nop
bdcd5f22 9071 gl_cv_elf=no
57aa50d4 9072fi
54445dc2 9073rm -rf conftest*
d1154eb4 9074
d1154eb4 9075
e598c29b 9076fi
54445dc2
TT
9077{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_elf" >&5
9078printf "%s\n" "$gl_cv_elf" >&6; }
bdcd5f22
TT
9079 if test $gl_cv_elf; then
9080 # Extract the ELF class of a file (5th byte) in decimal.
9081 # Cf. https://en.wikipedia.org/wiki/Executable_and_Linkable_Format#File_header
9082 if od -A x < /dev/null >/dev/null 2>/dev/null; then
9083 # Use POSIX od.
9084 func_elfclass ()
9085 {
9086 od -A n -t d1 -j 4 -N 1
9087 }
9088 else
9089 # Use BSD hexdump.
9090 func_elfclass ()
9091 {
9092 dd bs=1 count=1 skip=4 2>/dev/null | hexdump -e '1/1 "%3d "'
9093 echo
9094 }
9095 fi
9096 case $HOST_CPU_C_ABI_32BIT in
9097 yes)
9098 # 32-bit ABI.
9099 acl_is_expected_elfclass ()
9100 {
9101 test "`func_elfclass | sed -e 's/[ ]//g'`" = 1
9102 }
9103 ;;
9104 no)
9105 # 64-bit ABI.
9106 acl_is_expected_elfclass ()
9107 {
9108 test "`func_elfclass | sed -e 's/[ ]//g'`" = 2
9109 }
9110 ;;
9111 *)
9112 # Unknown.
9113 acl_is_expected_elfclass ()
9114 {
9115 :
9116 }
9117 ;;
9118 esac
9119 else
9120 acl_is_expected_elfclass ()
9121 {
9122 :
9123 }
9124 fi
d1154eb4 9125
54445dc2
TT
9126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the common suffixes of directories in the library search path" >&5
9127printf %s "checking for the common suffixes of directories in the library search path... " >&6; }
9128if test ${acl_cv_libdirstems+y}
9129then :
9130 printf %s "(cached) " >&6
9131else $as_nop
bdcd5f22
TT
9132 acl_libdirstem=lib
9133 acl_libdirstem2=
9134 acl_libdirstem3=
9135 case "$host_os" in
9136 solaris*)
9137 if test $HOST_CPU_C_ABI_32BIT = no; then
9138 acl_libdirstem2=lib/64
9139 case "$host_cpu" in
9140 sparc*) acl_libdirstem3=lib/sparcv9 ;;
9141 i*86 | x86_64) acl_libdirstem3=lib/amd64 ;;
9142 esac
9143 fi
9144 ;;
9145 *)
9146 searchpath=`(LC_ALL=C $CC $CPPFLAGS $CFLAGS -print-search-dirs) 2>/dev/null \
9147 | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
9148 if test $HOST_CPU_C_ABI_32BIT != no; then
9149 # 32-bit or unknown ABI.
9150 if test -d /usr/lib32; then
9151 acl_libdirstem2=lib32
9152 fi
9153 fi
9154 if test $HOST_CPU_C_ABI_32BIT != yes; then
9155 # 64-bit or unknown ABI.
9156 if test -d /usr/lib64; then
9157 acl_libdirstem3=lib64
9158 fi
9159 fi
9160 if test -n "$searchpath"; then
9161 acl_save_IFS="${IFS= }"; IFS=":"
9162 for searchdir in $searchpath; do
9163 if test -d "$searchdir"; then
9164 case "$searchdir" in
9165 */lib32/ | */lib32 ) acl_libdirstem2=lib32 ;;
9166 */lib64/ | */lib64 ) acl_libdirstem3=lib64 ;;
9167 */../ | */.. )
9168 # Better ignore directories of this form. They are misleading.
9169 ;;
9170 *) searchdir=`cd "$searchdir" && pwd`
9171 case "$searchdir" in
9172 */lib32 ) acl_libdirstem2=lib32 ;;
9173 */lib64 ) acl_libdirstem3=lib64 ;;
9174 esac ;;
9175 esac
9176 fi
9177 done
9178 IFS="$acl_save_IFS"
9179 if test $HOST_CPU_C_ABI_32BIT = yes; then
9180 # 32-bit ABI.
9181 acl_libdirstem3=
9182 fi
9183 if test $HOST_CPU_C_ABI_32BIT = no; then
9184 # 64-bit ABI.
9185 acl_libdirstem2=
9186 fi
9187 fi
9188 ;;
9189 esac
9190 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
9191 test -n "$acl_libdirstem3" || acl_libdirstem3="$acl_libdirstem"
9192 acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2,$acl_libdirstem3"
9193
9194fi
54445dc2
TT
9195{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libdirstems" >&5
9196printf "%s\n" "$acl_cv_libdirstems" >&6; }
bdcd5f22
TT
9197 acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'`
9198 acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,//' -e 's/,.*//'`
9199 acl_libdirstem3=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,[^,]*,//' -e 's/,.*//'`
d1154eb4 9200
d1154eb4 9201
b0cacab0
TT
9202
9203
9204
b0cacab0
TT
9205
9206
9207
57aa50d4 9208
57aa50d4 9209
b0cacab0 9210
e598c29b 9211 use_additional=yes
b0cacab0 9212
e598c29b
TT
9213 acl_save_prefix="$prefix"
9214 prefix="$acl_final_prefix"
9215 acl_save_exec_prefix="$exec_prefix"
9216 exec_prefix="$acl_final_exec_prefix"
57aa50d4 9217
e598c29b
TT
9218 eval additional_includedir=\"$includedir\"
9219 eval additional_libdir=\"$libdir\"
bdcd5f22
TT
9220 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
9221 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
57aa50d4 9222
e598c29b
TT
9223 exec_prefix="$acl_save_exec_prefix"
9224 prefix="$acl_save_prefix"
57aa50d4 9225
b0cacab0 9226
e598c29b 9227# Check whether --with-libiconv-prefix was given.
54445dc2
TT
9228if test ${with_libiconv_prefix+y}
9229then :
e598c29b
TT
9230 withval=$with_libiconv_prefix;
9231 if test "X$withval" = "Xno"; then
9232 use_additional=no
9233 else
9234 if test "X$withval" = "X"; then
57aa50d4 9235
e598c29b
TT
9236 acl_save_prefix="$prefix"
9237 prefix="$acl_final_prefix"
9238 acl_save_exec_prefix="$exec_prefix"
9239 exec_prefix="$acl_final_exec_prefix"
57aa50d4 9240
e598c29b
TT
9241 eval additional_includedir=\"$includedir\"
9242 eval additional_libdir=\"$libdir\"
bdcd5f22
TT
9243 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
9244 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
57aa50d4 9245
e598c29b
TT
9246 exec_prefix="$acl_save_exec_prefix"
9247 prefix="$acl_save_prefix"
b0cacab0 9248
e598c29b
TT
9249 else
9250 additional_includedir="$withval/include"
9251 additional_libdir="$withval/$acl_libdirstem"
bdcd5f22
TT
9252 additional_libdir2="$withval/$acl_libdirstem2"
9253 additional_libdir3="$withval/$acl_libdirstem3"
e598c29b
TT
9254 fi
9255 fi
d1154eb4
TT
9256
9257fi
e1052144 9258
bdcd5f22
TT
9259 if test "X$additional_libdir2" = "X$additional_libdir"; then
9260 additional_libdir2=
9261 fi
9262 if test "X$additional_libdir3" = "X$additional_libdir"; then
9263 additional_libdir3=
9264 fi
e598c29b
TT
9265 LIBICONV=
9266 LTLIBICONV=
9267 INCICONV=
9268 LIBICONV_PREFIX=
9269 HAVE_LIBICONV=
9270 rpathdirs=
9271 ltrpathdirs=
9272 names_already_handled=
9273 names_next_round='iconv '
9274 while test -n "$names_next_round"; do
9275 names_this_round="$names_next_round"
9276 names_next_round=
9277 for name in $names_this_round; do
9278 already_handled=
9279 for n in $names_already_handled; do
9280 if test "$n" = "$name"; then
9281 already_handled=yes
9282 break
9283 fi
9284 done
9285 if test -z "$already_handled"; then
9286 names_already_handled="$names_already_handled $name"
9287 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
9288 eval value=\"\$HAVE_LIB$uppername\"
9289 if test -n "$value"; then
9290 if test "$value" = yes; then
9291 eval value=\"\$LIB$uppername\"
9292 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9293 eval value=\"\$LTLIB$uppername\"
9294 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9295 else
9296 :
9297 fi
9298 else
9299 found_dir=
9300 found_la=
9301 found_so=
9302 found_a=
9303 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
9304 if test -n "$acl_shlibext"; then
9305 shrext=".$acl_shlibext" # typically: shrext=.so
9306 else
9307 shrext=
9308 fi
9309 if test $use_additional = yes; then
bdcd5f22
TT
9310 for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
9311 if test "X$found_dir" = "X"; then
9312 eval dir=\$$additional_libdir_variable
9313 if test -n "$dir"; then
9314 if test -n "$acl_shlibext"; then
9315 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
9316 found_dir="$dir"
9317 found_so="$dir/$libname$shrext"
9318 else
9319 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9320 ver=`(cd "$dir" && \
9321 for f in "$libname$shrext".*; do echo "$f"; done \
9322 | sed -e "s,^$libname$shrext\\\\.,," \
9323 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9324 | sed 1q ) 2>/dev/null`
9325 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
9326 found_dir="$dir"
9327 found_so="$dir/$libname$shrext.$ver"
9328 fi
9329 else
9330 eval library_names=\"$acl_library_names_spec\"
9331 for f in $library_names; do
9332 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
9333 found_dir="$dir"
9334 found_so="$dir/$f"
9335 break
9336 fi
9337 done
9338 fi
9339 fi
e598c29b 9340 fi
bdcd5f22
TT
9341 if test "X$found_dir" = "X"; then
9342 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
e598c29b 9343 found_dir="$dir"
bdcd5f22 9344 found_a="$dir/$libname.$acl_libext"
e598c29b 9345 fi
bdcd5f22
TT
9346 fi
9347 if test "X$found_dir" != "X"; then
9348 if test -f "$dir/$libname.la"; then
9349 found_la="$dir/$libname.la"
9350 fi
9351 fi
e598c29b
TT
9352 fi
9353 fi
bdcd5f22 9354 done
e598c29b
TT
9355 fi
9356 if test "X$found_dir" = "X"; then
9357 for x in $LDFLAGS $LTLIBICONV; do
07a0db15 9358
e598c29b
TT
9359 acl_save_prefix="$prefix"
9360 prefix="$acl_final_prefix"
9361 acl_save_exec_prefix="$exec_prefix"
9362 exec_prefix="$acl_final_exec_prefix"
9363 eval x=\"$x\"
9364 exec_prefix="$acl_save_exec_prefix"
9365 prefix="$acl_save_prefix"
50e1e10f 9366
e598c29b
TT
9367 case "$x" in
9368 -L*)
9369 dir=`echo "X$x" | sed -e 's/^X-L//'`
9370 if test -n "$acl_shlibext"; then
bdcd5f22 9371 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
e598c29b
TT
9372 found_dir="$dir"
9373 found_so="$dir/$libname$shrext"
9374 else
9375 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9376 ver=`(cd "$dir" && \
9377 for f in "$libname$shrext".*; do echo "$f"; done \
9378 | sed -e "s,^$libname$shrext\\\\.,," \
9379 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9380 | sed 1q ) 2>/dev/null`
bdcd5f22 9381 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
e598c29b
TT
9382 found_dir="$dir"
9383 found_so="$dir/$libname$shrext.$ver"
9384 fi
9385 else
9386 eval library_names=\"$acl_library_names_spec\"
9387 for f in $library_names; do
bdcd5f22 9388 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
e598c29b
TT
9389 found_dir="$dir"
9390 found_so="$dir/$f"
9391 break
9392 fi
9393 done
9394 fi
9395 fi
9396 fi
9397 if test "X$found_dir" = "X"; then
bdcd5f22 9398 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
e598c29b
TT
9399 found_dir="$dir"
9400 found_a="$dir/$libname.$acl_libext"
9401 fi
9402 fi
9403 if test "X$found_dir" != "X"; then
9404 if test -f "$dir/$libname.la"; then
9405 found_la="$dir/$libname.la"
9406 fi
9407 fi
9408 ;;
9409 esac
9410 if test "X$found_dir" != "X"; then
9411 break
9412 fi
9413 done
9414 fi
9415 if test "X$found_dir" != "X"; then
9416 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9417 if test "X$found_so" != "X"; then
9418 if test "$enable_rpath" = no \
9419 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
bdcd5f22
TT
9420 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
9421 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
e598c29b
TT
9422 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9423 else
9424 haveit=
9425 for x in $ltrpathdirs; do
9426 if test "X$x" = "X$found_dir"; then
9427 haveit=yes
9428 break
9429 fi
9430 done
9431 if test -z "$haveit"; then
9432 ltrpathdirs="$ltrpathdirs $found_dir"
9433 fi
9434 if test "$acl_hardcode_direct" = yes; then
9435 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9436 else
9437 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
9438 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9439 haveit=
9440 for x in $rpathdirs; do
9441 if test "X$x" = "X$found_dir"; then
9442 haveit=yes
9443 break
9444 fi
9445 done
9446 if test -z "$haveit"; then
9447 rpathdirs="$rpathdirs $found_dir"
9448 fi
9449 else
9450 haveit=
9451 for x in $LDFLAGS $LIBICONV; do
93613951 9452
e598c29b
TT
9453 acl_save_prefix="$prefix"
9454 prefix="$acl_final_prefix"
9455 acl_save_exec_prefix="$exec_prefix"
9456 exec_prefix="$acl_final_exec_prefix"
9457 eval x=\"$x\"
9458 exec_prefix="$acl_save_exec_prefix"
9459 prefix="$acl_save_prefix"
b0cacab0 9460
e598c29b
TT
9461 if test "X$x" = "X-L$found_dir"; then
9462 haveit=yes
9463 break
9464 fi
9465 done
9466 if test -z "$haveit"; then
9467 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9468 fi
9469 if test "$acl_hardcode_minus_L" != no; then
9470 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9471 else
9472 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9473 fi
9474 fi
9475 fi
9476 fi
9477 else
9478 if test "X$found_a" != "X"; then
9479 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9480 else
9481 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9482 fi
9483 fi
9484 additional_includedir=
9485 case "$found_dir" in
9486 */$acl_libdirstem | */$acl_libdirstem/)
9487 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9488 if test "$name" = 'iconv'; then
9489 LIBICONV_PREFIX="$basedir"
9490 fi
9491 additional_includedir="$basedir/include"
9492 ;;
9493 */$acl_libdirstem2 | */$acl_libdirstem2/)
9494 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9495 if test "$name" = 'iconv'; then
9496 LIBICONV_PREFIX="$basedir"
9497 fi
9498 additional_includedir="$basedir/include"
9499 ;;
bdcd5f22
TT
9500 */$acl_libdirstem3 | */$acl_libdirstem3/)
9501 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
9502 if test "$name" = 'iconv'; then
9503 LIBICONV_PREFIX="$basedir"
9504 fi
9505 additional_includedir="$basedir/include"
9506 ;;
e598c29b
TT
9507 esac
9508 if test "X$additional_includedir" != "X"; then
9509 if test "X$additional_includedir" != "X/usr/include"; then
9510 haveit=
9511 if test "X$additional_includedir" = "X/usr/local/include"; then
9512 if test -n "$GCC"; then
9513 case $host_os in
9514 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9515 esac
9516 fi
9517 fi
9518 if test -z "$haveit"; then
9519 for x in $CPPFLAGS $INCICONV; do
93613951 9520
e598c29b
TT
9521 acl_save_prefix="$prefix"
9522 prefix="$acl_final_prefix"
9523 acl_save_exec_prefix="$exec_prefix"
9524 exec_prefix="$acl_final_exec_prefix"
9525 eval x=\"$x\"
9526 exec_prefix="$acl_save_exec_prefix"
9527 prefix="$acl_save_prefix"
93613951 9528
e598c29b
TT
9529 if test "X$x" = "X-I$additional_includedir"; then
9530 haveit=yes
9531 break
9532 fi
9533 done
9534 if test -z "$haveit"; then
9535 if test -d "$additional_includedir"; then
9536 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9537 fi
9538 fi
9539 fi
9540 fi
9541 fi
9542 if test -n "$found_la"; then
9543 save_libdir="$libdir"
9544 case "$found_la" in
9545 */* | *\\*) . "$found_la" ;;
9546 *) . "./$found_la" ;;
9547 esac
9548 libdir="$save_libdir"
9549 for dep in $dependency_libs; do
9550 case "$dep" in
9551 -L*)
bdcd5f22
TT
9552 dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9553 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
9554 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
9555 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
e598c29b 9556 haveit=
bdcd5f22
TT
9557 if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
9558 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
9559 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
e598c29b
TT
9560 if test -n "$GCC"; then
9561 case $host_os in
9562 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9563 esac
9564 fi
9565 fi
9566 if test -z "$haveit"; then
9567 haveit=
9568 for x in $LDFLAGS $LIBICONV; do
b0cacab0 9569
e598c29b
TT
9570 acl_save_prefix="$prefix"
9571 prefix="$acl_final_prefix"
9572 acl_save_exec_prefix="$exec_prefix"
9573 exec_prefix="$acl_final_exec_prefix"
9574 eval x=\"$x\"
9575 exec_prefix="$acl_save_exec_prefix"
9576 prefix="$acl_save_prefix"
50e1e10f 9577
bdcd5f22 9578 if test "X$x" = "X-L$dependency_libdir"; then
e598c29b
TT
9579 haveit=yes
9580 break
9581 fi
9582 done
9583 if test -z "$haveit"; then
bdcd5f22
TT
9584 if test -d "$dependency_libdir"; then
9585 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$dependency_libdir"
e598c29b
TT
9586 fi
9587 fi
9588 haveit=
9589 for x in $LDFLAGS $LTLIBICONV; do
e1052144 9590
e598c29b
TT
9591 acl_save_prefix="$prefix"
9592 prefix="$acl_final_prefix"
9593 acl_save_exec_prefix="$exec_prefix"
9594 exec_prefix="$acl_final_exec_prefix"
9595 eval x=\"$x\"
9596 exec_prefix="$acl_save_exec_prefix"
9597 prefix="$acl_save_prefix"
9598
bdcd5f22 9599 if test "X$x" = "X-L$dependency_libdir"; then
e598c29b
TT
9600 haveit=yes
9601 break
9602 fi
9603 done
9604 if test -z "$haveit"; then
bdcd5f22
TT
9605 if test -d "$dependency_libdir"; then
9606 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$dependency_libdir"
e598c29b
TT
9607 fi
9608 fi
9609 fi
9610 fi
9611 ;;
9612 -R*)
9613 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9614 if test "$enable_rpath" != no; then
9615 haveit=
9616 for x in $rpathdirs; do
9617 if test "X$x" = "X$dir"; then
9618 haveit=yes
9619 break
9620 fi
9621 done
9622 if test -z "$haveit"; then
9623 rpathdirs="$rpathdirs $dir"
9624 fi
9625 haveit=
9626 for x in $ltrpathdirs; do
9627 if test "X$x" = "X$dir"; then
9628 haveit=yes
9629 break
9630 fi
9631 done
9632 if test -z "$haveit"; then
9633 ltrpathdirs="$ltrpathdirs $dir"
9634 fi
9635 fi
9636 ;;
9637 -l*)
9638 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9639 ;;
9640 *.la)
9641 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9642 ;;
9643 *)
9644 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9645 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9646 ;;
9647 esac
9648 done
9649 fi
9650 else
9651 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9652 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9653 fi
9654 fi
9655 fi
9656 done
93613951 9657 done
e598c29b
TT
9658 if test "X$rpathdirs" != "X"; then
9659 if test -n "$acl_hardcode_libdir_separator"; then
9660 alldirs=
9661 for found_dir in $rpathdirs; do
9662 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9663 done
9664 acl_save_libdir="$libdir"
9665 libdir="$alldirs"
9666 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9667 libdir="$acl_save_libdir"
9668 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9669 else
9670 for found_dir in $rpathdirs; do
9671 acl_save_libdir="$libdir"
9672 libdir="$found_dir"
9673 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9674 libdir="$acl_save_libdir"
9675 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9676 done
9677 fi
9678 fi
9679 if test "X$ltrpathdirs" != "X"; then
9680 for found_dir in $ltrpathdirs; do
9681 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9682 done
9683 fi
b0cacab0 9684
93613951 9685
93613951 9686
57aa50d4
TT
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
b0cacab0 9698
740837de 9699
b0cacab0
TT
9700
9701
9702
93613951
TT
9703
9704
9705
9706
9707
9708
9709
93613951
TT
9710
9711
9712
54445dc2
TT
9713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
9714printf %s "checking for CFPreferencesCopyAppValue... " >&6; }
9715if test ${gt_cv_func_CFPreferencesCopyAppValue+y}
9716then :
9717 printf %s "(cached) " >&6
9718else $as_nop
93613951
TT
9719 gt_save_LIBS="$LIBS"
9720 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
9721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9722/* end confdefs.h. */
9723#include <CoreFoundation/CFPreferences.h>
9724int
54445dc2 9725main (void)
93613951
TT
9726{
9727CFPreferencesCopyAppValue(NULL, NULL)
9728 ;
9729 return 0;
9730}
9731_ACEOF
54445dc2
TT
9732if ac_fn_c_try_link "$LINENO"
9733then :
93613951 9734 gt_cv_func_CFPreferencesCopyAppValue=yes
54445dc2 9735else $as_nop
93613951 9736 gt_cv_func_CFPreferencesCopyAppValue=no
50e1e10f 9737fi
54445dc2 9738rm -f core conftest.err conftest.$ac_objext conftest.beam \
93613951
TT
9739 conftest$ac_exeext conftest.$ac_ext
9740 LIBS="$gt_save_LIBS"
50e1e10f 9741fi
54445dc2
TT
9742{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
9743printf "%s\n" "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
93613951
TT
9744 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
9745
54445dc2 9746printf "%s\n" "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
93613951
TT
9747
9748 fi
54445dc2
TT
9749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
9750printf %s "checking for CFLocaleCopyPreferredLanguages... " >&6; }
9751if test ${gt_cv_func_CFLocaleCopyPreferredLanguages+y}
9752then :
9753 printf %s "(cached) " >&6
9754else $as_nop
93613951
TT
9755 gt_save_LIBS="$LIBS"
9756 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
9757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9758/* end confdefs.h. */
9759#include <CoreFoundation/CFLocale.h>
9760int
54445dc2 9761main (void)
93613951 9762{
bdcd5f22 9763CFLocaleCopyPreferredLanguages();
93613951
TT
9764 ;
9765 return 0;
9766}
9767_ACEOF
54445dc2
TT
9768if ac_fn_c_try_link "$LINENO"
9769then :
bdcd5f22 9770 gt_cv_func_CFLocaleCopyPreferredLanguages=yes
54445dc2 9771else $as_nop
bdcd5f22 9772 gt_cv_func_CFLocaleCopyPreferredLanguages=no
93613951 9773fi
54445dc2 9774rm -f core conftest.err conftest.$ac_objext conftest.beam \
93613951
TT
9775 conftest$ac_exeext conftest.$ac_ext
9776 LIBS="$gt_save_LIBS"
9777fi
54445dc2
TT
9778{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
9779printf "%s\n" "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
bdcd5f22 9780 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
93613951 9781
54445dc2 9782printf "%s\n" "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
93613951
TT
9783
9784 fi
9785 INTL_MACOSX_LIBS=
bdcd5f22
TT
9786 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
9787 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
93613951
TT
9788 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
9789 fi
9790
50e1e10f 9791
b0cacab0
TT
9792
9793
9794
9795
57aa50d4
TT
9796 LIBINTL=
9797 LTLIBINTL=
9798 POSUB=
9799
93613951
TT
9800 case " $gt_needs " in
9801 *" need-formatstring-macros "*) gt_api_version=3 ;;
9802 *" need-ngettext "*) gt_api_version=2 ;;
9803 *) gt_api_version=1 ;;
9804 esac
9805 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
9806 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
9807
57aa50d4
TT
9808 if test "$USE_NLS" = "yes"; then
9809 gt_use_preinstalled_gnugettext=no
b0cacab0
TT
9810
9811
e598c29b
TT
9812 if test $gt_api_version -ge 3; then
9813 gt_revision_test_code='
9814#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
9815#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
9816#endif
9817typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
9818'
9819 else
9820 gt_revision_test_code=
9821 fi
9822 if test $gt_api_version -ge 2; then
9823 gt_expression_test_code=' + * ngettext ("", "", 0)'
9824 else
9825 gt_expression_test_code=
9826 fi
9827
54445dc2
TT
9828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
9829printf %s "checking for GNU gettext in libc... " >&6; }
9830if eval test \${$gt_func_gnugettext_libc+y}
9831then :
9832 printf %s "(cached) " >&6
9833else $as_nop
e598c29b
TT
9834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9835/* end confdefs.h. */
9836
9837#include <libintl.h>
9838#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
9839extern int _nl_msg_cat_cntr;
9840extern int *_nl_domain_bindings;
9841#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
9842#else
9843#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
9844#endif
9845$gt_revision_test_code
9846
9847int
54445dc2 9848main (void)
e598c29b
TT
9849{
9850
9851bindtextdomain ("", "");
9852return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
9853
9854 ;
9855 return 0;
9856}
9857_ACEOF
54445dc2
TT
9858if ac_fn_c_try_link "$LINENO"
9859then :
e598c29b 9860 eval "$gt_func_gnugettext_libc=yes"
54445dc2 9861else $as_nop
e598c29b
TT
9862 eval "$gt_func_gnugettext_libc=no"
9863fi
54445dc2 9864rm -f core conftest.err conftest.$ac_objext conftest.beam \
e598c29b 9865 conftest$ac_exeext conftest.$ac_ext
50e1e10f 9866fi
e598c29b 9867eval ac_res=\$$gt_func_gnugettext_libc
54445dc2
TT
9868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9869printf "%s\n" "$ac_res" >&6; }
50e1e10f 9870
e598c29b
TT
9871 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
9872
9873
9874
9875
9876
9877 am_save_CPPFLAGS="$CPPFLAGS"
9878
9879 for element in $INCICONV; do
9880 haveit=
9881 for x in $CPPFLAGS; do
9882
9883 acl_save_prefix="$prefix"
9884 prefix="$acl_final_prefix"
9885 acl_save_exec_prefix="$exec_prefix"
9886 exec_prefix="$acl_final_exec_prefix"
9887 eval x=\"$x\"
9888 exec_prefix="$acl_save_exec_prefix"
9889 prefix="$acl_save_prefix"
9890
9891 if test "X$x" = "X$element"; then
9892 haveit=yes
9893 break
9894 fi
9895 done
9896 if test -z "$haveit"; then
9897 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9898 fi
9899 done
9900
9901
54445dc2
TT
9902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9903printf %s "checking for iconv... " >&6; }
9904if test ${am_cv_func_iconv+y}
9905then :
9906 printf %s "(cached) " >&6
9907else $as_nop
e598c29b
TT
9908
9909 am_cv_func_iconv="no, consider installing GNU libiconv"
9910 am_cv_lib_iconv=no
9911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9912/* end confdefs.h. */
9913
9914#include <stdlib.h>
9915#include <iconv.h>
b0cacab0 9916
e598c29b 9917int
54445dc2 9918main (void)
e598c29b
TT
9919{
9920iconv_t cd = iconv_open("","");
9921 iconv(cd,NULL,NULL,NULL,NULL);
9922 iconv_close(cd);
9923 ;
9924 return 0;
9925}
9926_ACEOF
54445dc2
TT
9927if ac_fn_c_try_link "$LINENO"
9928then :
e598c29b
TT
9929 am_cv_func_iconv=yes
9930fi
54445dc2 9931rm -f core conftest.err conftest.$ac_objext conftest.beam \
e598c29b
TT
9932 conftest$ac_exeext conftest.$ac_ext
9933 if test "$am_cv_func_iconv" != yes; then
9934 am_save_LIBS="$LIBS"
9935 LIBS="$LIBS $LIBICONV"
9936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9937/* end confdefs.h. */
b0cacab0 9938
e598c29b
TT
9939#include <stdlib.h>
9940#include <iconv.h>
b0cacab0 9941
e598c29b 9942int
54445dc2 9943main (void)
e598c29b
TT
9944{
9945iconv_t cd = iconv_open("","");
9946 iconv(cd,NULL,NULL,NULL,NULL);
9947 iconv_close(cd);
9948 ;
9949 return 0;
9950}
9951_ACEOF
54445dc2
TT
9952if ac_fn_c_try_link "$LINENO"
9953then :
e598c29b
TT
9954 am_cv_lib_iconv=yes
9955 am_cv_func_iconv=yes
9956fi
54445dc2 9957rm -f core conftest.err conftest.$ac_objext conftest.beam \
e598c29b
TT
9958 conftest$ac_exeext conftest.$ac_ext
9959 LIBS="$am_save_LIBS"
9960 fi
b0cacab0 9961
e598c29b 9962fi
54445dc2
TT
9963{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9964printf "%s\n" "$am_cv_func_iconv" >&6; }
e598c29b 9965 if test "$am_cv_func_iconv" = yes; then
54445dc2
TT
9966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
9967printf %s "checking for working iconv... " >&6; }
9968if test ${am_cv_func_iconv_works+y}
9969then :
9970 printf %s "(cached) " >&6
9971else $as_nop
e598c29b
TT
9972
9973 am_save_LIBS="$LIBS"
9974 if test $am_cv_lib_iconv = yes; then
9975 LIBS="$LIBS $LIBICONV"
9976 fi
9977 am_cv_func_iconv_works=no
9978 for ac_iconv_const in '' 'const'; do
54445dc2
TT
9979 if test "$cross_compiling" = yes
9980then :
e598c29b
TT
9981 case "$host_os" in
9982 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
9983 *) am_cv_func_iconv_works="guessing yes" ;;
9984 esac
54445dc2 9985else $as_nop
57aa50d4
TT
9986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9987/* end confdefs.h. */
93613951 9988
e598c29b
TT
9989#include <iconv.h>
9990#include <string.h>
9991
9992#ifndef ICONV_CONST
9993# define ICONV_CONST $ac_iconv_const
9994#endif
93613951 9995
57aa50d4 9996int
54445dc2 9997main (void)
57aa50d4 9998{
e598c29b
TT
9999int result = 0;
10000 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
10001 returns. */
10002 {
10003 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
10004 if (cd_utf8_to_88591 != (iconv_t)(-1))
10005 {
10006 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
10007 char buf[10];
10008 ICONV_CONST char *inptr = input;
10009 size_t inbytesleft = strlen (input);
10010 char *outptr = buf;
10011 size_t outbytesleft = sizeof (buf);
10012 size_t res = iconv (cd_utf8_to_88591,
10013 &inptr, &inbytesleft,
10014 &outptr, &outbytesleft);
10015 if (res == 0)
10016 result |= 1;
10017 iconv_close (cd_utf8_to_88591);
10018 }
10019 }
10020 /* Test against Solaris 10 bug: Failures are not distinguishable from
10021 successful returns. */
10022 {
10023 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
10024 if (cd_ascii_to_88591 != (iconv_t)(-1))
10025 {
10026 static ICONV_CONST char input[] = "\263";
10027 char buf[10];
10028 ICONV_CONST char *inptr = input;
10029 size_t inbytesleft = strlen (input);
10030 char *outptr = buf;
10031 size_t outbytesleft = sizeof (buf);
10032 size_t res = iconv (cd_ascii_to_88591,
10033 &inptr, &inbytesleft,
10034 &outptr, &outbytesleft);
10035 if (res == 0)
10036 result |= 2;
10037 iconv_close (cd_ascii_to_88591);
10038 }
10039 }
10040 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
10041 {
10042 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
10043 if (cd_88591_to_utf8 != (iconv_t)(-1))
10044 {
10045 static ICONV_CONST char input[] = "\304";
10046 static char buf[2] = { (char)0xDE, (char)0xAD };
10047 ICONV_CONST char *inptr = input;
10048 size_t inbytesleft = 1;
10049 char *outptr = buf;
10050 size_t outbytesleft = 1;
10051 size_t res = iconv (cd_88591_to_utf8,
10052 &inptr, &inbytesleft,
10053 &outptr, &outbytesleft);
10054 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
10055 result |= 4;
10056 iconv_close (cd_88591_to_utf8);
10057 }
10058 }
10059#if 0 /* This bug could be worked around by the caller. */
10060 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
10061 {
10062 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
10063 if (cd_88591_to_utf8 != (iconv_t)(-1))
10064 {
10065 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
10066 char buf[50];
10067 ICONV_CONST char *inptr = input;
10068 size_t inbytesleft = strlen (input);
10069 char *outptr = buf;
10070 size_t outbytesleft = sizeof (buf);
10071 size_t res = iconv (cd_88591_to_utf8,
10072 &inptr, &inbytesleft,
10073 &outptr, &outbytesleft);
10074 if ((int)res > 0)
10075 result |= 8;
10076 iconv_close (cd_88591_to_utf8);
10077 }
10078 }
10079#endif
10080 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
10081 provided. */
bdcd5f22
TT
10082 {
10083 /* Try standardized names. */
10084 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
10085 /* Try IRIX, OSF/1 names. */
10086 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
10087 /* Try AIX names. */
10088 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
10089 /* Try HP-UX names. */
10090 iconv_t cd4 = iconv_open ("utf8", "eucJP");
10091 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
10092 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
10093 result |= 16;
10094 if (cd1 != (iconv_t)(-1))
10095 iconv_close (cd1);
10096 if (cd2 != (iconv_t)(-1))
10097 iconv_close (cd2);
10098 if (cd3 != (iconv_t)(-1))
10099 iconv_close (cd3);
10100 if (cd4 != (iconv_t)(-1))
10101 iconv_close (cd4);
10102 }
e598c29b 10103 return result;
93613951 10104
57aa50d4
TT
10105 ;
10106 return 0;
10107}
10108_ACEOF
54445dc2
TT
10109if ac_fn_c_try_run "$LINENO"
10110then :
e598c29b 10111 am_cv_func_iconv_works=yes
57aa50d4 10112fi
e598c29b
TT
10113rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10114 conftest.$ac_objext conftest.beam conftest.$ac_ext
57aa50d4 10115fi
93613951 10116
e598c29b
TT
10117 test "$am_cv_func_iconv_works" = no || break
10118 done
10119 LIBS="$am_save_LIBS"
10120
10121fi
54445dc2
TT
10122{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
10123printf "%s\n" "$am_cv_func_iconv_works" >&6; }
e598c29b
TT
10124 case "$am_cv_func_iconv_works" in
10125 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
10126 *) am_func_iconv=yes ;;
10127 esac
10128 else
10129 am_func_iconv=no am_cv_lib_iconv=no
10130 fi
10131 if test "$am_func_iconv" = yes; then
10132
54445dc2 10133printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
e598c29b
TT
10134
10135 fi
10136 if test "$am_cv_lib_iconv" = yes; then
54445dc2
TT
10137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10138printf %s "checking how to link with libiconv... " >&6; }
10139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10140printf "%s\n" "$LIBICONV" >&6; }
e598c29b
TT
10141 else
10142 CPPFLAGS="$am_save_CPPFLAGS"
10143 LIBICONV=
10144 LTLIBICONV=
10145 fi
10146
10147
10148
93613951
TT
10149
10150
10151
10152
b0cacab0
TT
10153
10154
10155
57aa50d4 10156 use_additional=yes
b0cacab0 10157
57aa50d4
TT
10158 acl_save_prefix="$prefix"
10159 prefix="$acl_final_prefix"
10160 acl_save_exec_prefix="$exec_prefix"
10161 exec_prefix="$acl_final_exec_prefix"
b0cacab0 10162
57aa50d4
TT
10163 eval additional_includedir=\"$includedir\"
10164 eval additional_libdir=\"$libdir\"
bdcd5f22
TT
10165 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
10166 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
b0cacab0 10167
57aa50d4
TT
10168 exec_prefix="$acl_save_exec_prefix"
10169 prefix="$acl_save_prefix"
b0cacab0
TT
10170
10171
57aa50d4 10172# Check whether --with-libintl-prefix was given.
54445dc2
TT
10173if test ${with_libintl_prefix+y}
10174then :
57aa50d4
TT
10175 withval=$with_libintl_prefix;
10176 if test "X$withval" = "Xno"; then
10177 use_additional=no
10178 else
10179 if test "X$withval" = "X"; then
b0cacab0 10180
57aa50d4
TT
10181 acl_save_prefix="$prefix"
10182 prefix="$acl_final_prefix"
10183 acl_save_exec_prefix="$exec_prefix"
10184 exec_prefix="$acl_final_exec_prefix"
b0cacab0 10185
57aa50d4
TT
10186 eval additional_includedir=\"$includedir\"
10187 eval additional_libdir=\"$libdir\"
bdcd5f22
TT
10188 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
10189 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
7321d94e 10190
57aa50d4
TT
10191 exec_prefix="$acl_save_exec_prefix"
10192 prefix="$acl_save_prefix"
7321d94e 10193
57aa50d4
TT
10194 else
10195 additional_includedir="$withval/include"
93613951 10196 additional_libdir="$withval/$acl_libdirstem"
bdcd5f22
TT
10197 additional_libdir2="$withval/$acl_libdirstem2"
10198 additional_libdir3="$withval/$acl_libdirstem3"
57aa50d4
TT
10199 fi
10200 fi
7321d94e 10201
7321d94e
MK
10202fi
10203
bdcd5f22
TT
10204 if test "X$additional_libdir2" = "X$additional_libdir"; then
10205 additional_libdir2=
10206 fi
10207 if test "X$additional_libdir3" = "X$additional_libdir"; then
10208 additional_libdir3=
10209 fi
57aa50d4
TT
10210 LIBINTL=
10211 LTLIBINTL=
10212 INCINTL=
93613951
TT
10213 LIBINTL_PREFIX=
10214 HAVE_LIBINTL=
57aa50d4
TT
10215 rpathdirs=
10216 ltrpathdirs=
10217 names_already_handled=
10218 names_next_round='intl '
10219 while test -n "$names_next_round"; do
10220 names_this_round="$names_next_round"
10221 names_next_round=
10222 for name in $names_this_round; do
10223 already_handled=
10224 for n in $names_already_handled; do
10225 if test "$n" = "$name"; then
10226 already_handled=yes
10227 break
10228 fi
50e1e10f 10229 done
57aa50d4
TT
10230 if test -z "$already_handled"; then
10231 names_already_handled="$names_already_handled $name"
93613951 10232 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
57aa50d4
TT
10233 eval value=\"\$HAVE_LIB$uppername\"
10234 if test -n "$value"; then
10235 if test "$value" = yes; then
10236 eval value=\"\$LIB$uppername\"
10237 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10238 eval value=\"\$LTLIB$uppername\"
10239 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10240 else
10241 :
10242 fi
10243 else
10244 found_dir=
10245 found_la=
10246 found_so=
10247 found_a=
93613951
TT
10248 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
10249 if test -n "$acl_shlibext"; then
10250 shrext=".$acl_shlibext" # typically: shrext=.so
10251 else
10252 shrext=
10253 fi
57aa50d4 10254 if test $use_additional = yes; then
bdcd5f22
TT
10255 for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
10256 if test "X$found_dir" = "X"; then
10257 eval dir=\$$additional_libdir_variable
10258 if test -n "$dir"; then
10259 if test -n "$acl_shlibext"; then
10260 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
10261 found_dir="$dir"
10262 found_so="$dir/$libname$shrext"
10263 else
10264 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10265 ver=`(cd "$dir" && \
10266 for f in "$libname$shrext".*; do echo "$f"; done \
10267 | sed -e "s,^$libname$shrext\\\\.,," \
10268 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10269 | sed 1q ) 2>/dev/null`
10270 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
10271 found_dir="$dir"
10272 found_so="$dir/$libname$shrext.$ver"
10273 fi
10274 else
10275 eval library_names=\"$acl_library_names_spec\"
10276 for f in $library_names; do
10277 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
10278 found_dir="$dir"
10279 found_so="$dir/$f"
10280 break
10281 fi
10282 done
10283 fi
10284 fi
93613951 10285 fi
bdcd5f22
TT
10286 if test "X$found_dir" = "X"; then
10287 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
93613951 10288 found_dir="$dir"
bdcd5f22 10289 found_a="$dir/$libname.$acl_libext"
93613951 10290 fi
bdcd5f22
TT
10291 fi
10292 if test "X$found_dir" != "X"; then
10293 if test -f "$dir/$libname.la"; then
10294 found_la="$dir/$libname.la"
10295 fi
10296 fi
57aa50d4
TT
10297 fi
10298 fi
bdcd5f22 10299 done
57aa50d4
TT
10300 fi
10301 if test "X$found_dir" = "X"; then
10302 for x in $LDFLAGS $LTLIBINTL; do
39fd3d4f 10303
57aa50d4
TT
10304 acl_save_prefix="$prefix"
10305 prefix="$acl_final_prefix"
10306 acl_save_exec_prefix="$exec_prefix"
10307 exec_prefix="$acl_final_exec_prefix"
10308 eval x=\"$x\"
10309 exec_prefix="$acl_save_exec_prefix"
10310 prefix="$acl_save_prefix"
3d05802f 10311
57aa50d4
TT
10312 case "$x" in
10313 -L*)
10314 dir=`echo "X$x" | sed -e 's/^X-L//'`
93613951 10315 if test -n "$acl_shlibext"; then
bdcd5f22 10316 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
57aa50d4 10317 found_dir="$dir"
93613951
TT
10318 found_so="$dir/$libname$shrext"
10319 else
10320 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10321 ver=`(cd "$dir" && \
10322 for f in "$libname$shrext".*; do echo "$f"; done \
10323 | sed -e "s,^$libname$shrext\\\\.,," \
10324 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10325 | sed 1q ) 2>/dev/null`
bdcd5f22 10326 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
93613951
TT
10327 found_dir="$dir"
10328 found_so="$dir/$libname$shrext.$ver"
10329 fi
10330 else
10331 eval library_names=\"$acl_library_names_spec\"
10332 for f in $library_names; do
bdcd5f22 10333 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
93613951
TT
10334 found_dir="$dir"
10335 found_so="$dir/$f"
10336 break
10337 fi
10338 done
57aa50d4
TT
10339 fi
10340 fi
93613951
TT
10341 fi
10342 if test "X$found_dir" = "X"; then
bdcd5f22 10343 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
93613951
TT
10344 found_dir="$dir"
10345 found_a="$dir/$libname.$acl_libext"
10346 fi
10347 fi
10348 if test "X$found_dir" != "X"; then
10349 if test -f "$dir/$libname.la"; then
10350 found_la="$dir/$libname.la"
10351 fi
57aa50d4
TT
10352 fi
10353 ;;
10354 esac
10355 if test "X$found_dir" != "X"; then
10356 break
10357 fi
10358 done
10359 fi
10360 if test "X$found_dir" != "X"; then
10361 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10362 if test "X$found_so" != "X"; then
93613951
TT
10363 if test "$enable_rpath" = no \
10364 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
bdcd5f22
TT
10365 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
10366 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
57aa50d4
TT
10367 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10368 else
10369 haveit=
10370 for x in $ltrpathdirs; do
10371 if test "X$x" = "X$found_dir"; then
10372 haveit=yes
10373 break
10374 fi
10375 done
10376 if test -z "$haveit"; then
10377 ltrpathdirs="$ltrpathdirs $found_dir"
10378 fi
93613951 10379 if test "$acl_hardcode_direct" = yes; then
57aa50d4
TT
10380 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10381 else
93613951 10382 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
57aa50d4
TT
10383 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10384 haveit=
10385 for x in $rpathdirs; do
10386 if test "X$x" = "X$found_dir"; then
10387 haveit=yes
10388 break
10389 fi
10390 done
10391 if test -z "$haveit"; then
10392 rpathdirs="$rpathdirs $found_dir"
10393 fi
10394 else
10395 haveit=
10396 for x in $LDFLAGS $LIBINTL; do
6ec9ef18 10397
57aa50d4
TT
10398 acl_save_prefix="$prefix"
10399 prefix="$acl_final_prefix"
10400 acl_save_exec_prefix="$exec_prefix"
10401 exec_prefix="$acl_final_exec_prefix"
10402 eval x=\"$x\"
10403 exec_prefix="$acl_save_exec_prefix"
10404 prefix="$acl_save_prefix"
d7f45af8 10405
57aa50d4
TT
10406 if test "X$x" = "X-L$found_dir"; then
10407 haveit=yes
10408 break
10409 fi
10410 done
10411 if test -z "$haveit"; then
10412 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
10413 fi
93613951 10414 if test "$acl_hardcode_minus_L" != no; then
57aa50d4
TT
10415 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10416 else
10417 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10418 fi
10419 fi
10420 fi
10421 fi
10422 else
10423 if test "X$found_a" != "X"; then
10424 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
10425 else
10426 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
10427 fi
10428 fi
10429 additional_includedir=
10430 case "$found_dir" in
93613951
TT
10431 */$acl_libdirstem | */$acl_libdirstem/)
10432 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
10433 if test "$name" = 'intl'; then
10434 LIBINTL_PREFIX="$basedir"
10435 fi
10436 additional_includedir="$basedir/include"
10437 ;;
10438 */$acl_libdirstem2 | */$acl_libdirstem2/)
10439 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
10440 if test "$name" = 'intl'; then
10441 LIBINTL_PREFIX="$basedir"
10442 fi
57aa50d4
TT
10443 additional_includedir="$basedir/include"
10444 ;;
bdcd5f22
TT
10445 */$acl_libdirstem3 | */$acl_libdirstem3/)
10446 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
10447 if test "$name" = 'intl'; then
10448 LIBINTL_PREFIX="$basedir"
10449 fi
10450 additional_includedir="$basedir/include"
10451 ;;
57aa50d4
TT
10452 esac
10453 if test "X$additional_includedir" != "X"; then
10454 if test "X$additional_includedir" != "X/usr/include"; then
10455 haveit=
10456 if test "X$additional_includedir" = "X/usr/local/include"; then
10457 if test -n "$GCC"; then
10458 case $host_os in
93613951 10459 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
57aa50d4
TT
10460 esac
10461 fi
10462 fi
10463 if test -z "$haveit"; then
10464 for x in $CPPFLAGS $INCINTL; do
b0cacab0 10465
57aa50d4
TT
10466 acl_save_prefix="$prefix"
10467 prefix="$acl_final_prefix"
10468 acl_save_exec_prefix="$exec_prefix"
10469 exec_prefix="$acl_final_exec_prefix"
10470 eval x=\"$x\"
10471 exec_prefix="$acl_save_exec_prefix"
10472 prefix="$acl_save_prefix"
21c84b71 10473
57aa50d4
TT
10474 if test "X$x" = "X-I$additional_includedir"; then
10475 haveit=yes
10476 break
10477 fi
10478 done
10479 if test -z "$haveit"; then
10480 if test -d "$additional_includedir"; then
10481 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
10482 fi
10483 fi
10484 fi
10485 fi
10486 fi
10487 if test -n "$found_la"; then
10488 save_libdir="$libdir"
10489 case "$found_la" in
10490 */* | *\\*) . "$found_la" ;;
10491 *) . "./$found_la" ;;
10492 esac
10493 libdir="$save_libdir"
10494 for dep in $dependency_libs; do
10495 case "$dep" in
10496 -L*)
bdcd5f22
TT
10497 dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10498 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
10499 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
10500 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
57aa50d4 10501 haveit=
bdcd5f22
TT
10502 if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
10503 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
10504 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
57aa50d4
TT
10505 if test -n "$GCC"; then
10506 case $host_os in
93613951 10507 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
57aa50d4
TT
10508 esac
10509 fi
10510 fi
10511 if test -z "$haveit"; then
10512 haveit=
10513 for x in $LDFLAGS $LIBINTL; do
50e1e10f 10514
57aa50d4
TT
10515 acl_save_prefix="$prefix"
10516 prefix="$acl_final_prefix"
10517 acl_save_exec_prefix="$exec_prefix"
10518 exec_prefix="$acl_final_exec_prefix"
10519 eval x=\"$x\"
10520 exec_prefix="$acl_save_exec_prefix"
10521 prefix="$acl_save_prefix"
50e1e10f 10522
bdcd5f22 10523 if test "X$x" = "X-L$dependency_libdir"; then
57aa50d4
TT
10524 haveit=yes
10525 break
10526 fi
10527 done
10528 if test -z "$haveit"; then
bdcd5f22
TT
10529 if test -d "$dependency_libdir"; then
10530 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$dependency_libdir"
57aa50d4
TT
10531 fi
10532 fi
10533 haveit=
10534 for x in $LDFLAGS $LTLIBINTL; do
a4bf69d9 10535
57aa50d4
TT
10536 acl_save_prefix="$prefix"
10537 prefix="$acl_final_prefix"
10538 acl_save_exec_prefix="$exec_prefix"
10539 exec_prefix="$acl_final_exec_prefix"
10540 eval x=\"$x\"
10541 exec_prefix="$acl_save_exec_prefix"
10542 prefix="$acl_save_prefix"
50e1e10f 10543
bdcd5f22 10544 if test "X$x" = "X-L$dependency_libdir"; then
57aa50d4
TT
10545 haveit=yes
10546 break
10547 fi
10548 done
10549 if test -z "$haveit"; then
bdcd5f22
TT
10550 if test -d "$dependency_libdir"; then
10551 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$dependency_libdir"
57aa50d4
TT
10552 fi
10553 fi
10554 fi
10555 fi
10556 ;;
10557 -R*)
10558 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10559 if test "$enable_rpath" != no; then
10560 haveit=
10561 for x in $rpathdirs; do
10562 if test "X$x" = "X$dir"; then
10563 haveit=yes
10564 break
10565 fi
10566 done
10567 if test -z "$haveit"; then
10568 rpathdirs="$rpathdirs $dir"
10569 fi
10570 haveit=
10571 for x in $ltrpathdirs; do
10572 if test "X$x" = "X$dir"; then
10573 haveit=yes
10574 break
10575 fi
10576 done
10577 if test -z "$haveit"; then
10578 ltrpathdirs="$ltrpathdirs $dir"
10579 fi
10580 fi
10581 ;;
10582 -l*)
10583 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
10584 ;;
10585 *.la)
10586 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10587 ;;
10588 *)
10589 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
10590 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10591 ;;
10592 esac
10593 done
10594 fi
10595 else
10596 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10597 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
10598 fi
10599 fi
10600 fi
10601 done
10602 done
10603 if test "X$rpathdirs" != "X"; then
93613951 10604 if test -n "$acl_hardcode_libdir_separator"; then
57aa50d4
TT
10605 alldirs=
10606 for found_dir in $rpathdirs; do
93613951 10607 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
57aa50d4
TT
10608 done
10609 acl_save_libdir="$libdir"
10610 libdir="$alldirs"
93613951 10611 eval flag=\"$acl_hardcode_libdir_flag_spec\"
57aa50d4
TT
10612 libdir="$acl_save_libdir"
10613 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10614 else
10615 for found_dir in $rpathdirs; do
10616 acl_save_libdir="$libdir"
10617 libdir="$found_dir"
93613951 10618 eval flag=\"$acl_hardcode_libdir_flag_spec\"
57aa50d4
TT
10619 libdir="$acl_save_libdir"
10620 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10621 done
10622 fi
10623 fi
10624 if test "X$ltrpathdirs" != "X"; then
10625 for found_dir in $ltrpathdirs; do
10626 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
10627 done
10628 fi
b0cacab0 10629
93613951
TT
10630
10631
10632
10633
54445dc2
TT
10634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
10635printf %s "checking for GNU gettext in libintl... " >&6; }
10636if eval test \${$gt_func_gnugettext_libintl+y}
10637then :
10638 printf %s "(cached) " >&6
10639else $as_nop
57aa50d4
TT
10640 gt_save_CPPFLAGS="$CPPFLAGS"
10641 CPPFLAGS="$CPPFLAGS $INCINTL"
10642 gt_save_LIBS="$LIBS"
10643 LIBS="$LIBS $LIBINTL"
10644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10645/* end confdefs.h. */
93613951 10646
57aa50d4 10647#include <libintl.h>
e598c29b 10648#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
57aa50d4
TT
10649extern int _nl_msg_cat_cntr;
10650extern
10651#ifdef __cplusplus
10652"C"
10653#endif
93613951 10654const char *_nl_expand_alias (const char *);
e598c29b
TT
10655#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
10656#else
10657#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
10658#endif
10659$gt_revision_test_code
93613951 10660
57aa50d4 10661int
54445dc2 10662main (void)
57aa50d4 10663{
93613951 10664
57aa50d4 10665bindtextdomain ("", "");
e598c29b 10666return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
93613951 10667
57aa50d4
TT
10668 ;
10669 return 0;
10670}
b0cacab0 10671_ACEOF
54445dc2
TT
10672if ac_fn_c_try_link "$LINENO"
10673then :
93613951 10674 eval "$gt_func_gnugettext_libintl=yes"
54445dc2 10675else $as_nop
93613951 10676 eval "$gt_func_gnugettext_libintl=no"
6c133523 10677fi
54445dc2 10678rm -f core conftest.err conftest.$ac_objext conftest.beam \
57aa50d4 10679 conftest$ac_exeext conftest.$ac_ext
93613951 10680 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
57aa50d4
TT
10681 LIBS="$LIBS $LIBICONV"
10682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
da76d6b7 10683/* end confdefs.h. */
93613951 10684
57aa50d4 10685#include <libintl.h>
e598c29b 10686#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
57aa50d4
TT
10687extern int _nl_msg_cat_cntr;
10688extern
10689#ifdef __cplusplus
10690"C"
da76d6b7 10691#endif
93613951 10692const char *_nl_expand_alias (const char *);
e598c29b
TT
10693#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
10694#else
10695#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
10696#endif
10697$gt_revision_test_code
93613951 10698
57aa50d4 10699int
54445dc2 10700main (void)
57aa50d4 10701{
93613951 10702
57aa50d4 10703bindtextdomain ("", "");
e598c29b 10704return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
93613951 10705
57aa50d4
TT
10706 ;
10707 return 0;
10708}
da76d6b7 10709_ACEOF
54445dc2
TT
10710if ac_fn_c_try_link "$LINENO"
10711then :
57aa50d4 10712 LIBINTL="$LIBINTL $LIBICONV"
93613951
TT
10713 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10714 eval "$gt_func_gnugettext_libintl=yes"
6c133523
TT
10715
10716fi
54445dc2 10717rm -f core conftest.err conftest.$ac_objext conftest.beam \
57aa50d4
TT
10718 conftest$ac_exeext conftest.$ac_ext
10719 fi
10720 CPPFLAGS="$gt_save_CPPFLAGS"
10721 LIBS="$gt_save_LIBS"
da76d6b7 10722fi
93613951 10723eval ac_res=\$$gt_func_gnugettext_libintl
54445dc2
TT
10724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10725printf "%s\n" "$ac_res" >&6; }
57aa50d4 10726 fi
b0cacab0 10727
93613951
TT
10728 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
10729 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
57aa50d4
TT
10730 && test "$PACKAGE" != gettext-runtime \
10731 && test "$PACKAGE" != gettext-tools; }; then
10732 gt_use_preinstalled_gnugettext=yes
10733 else
10734 LIBINTL=
10735 LTLIBINTL=
10736 INCINTL=
10737 fi
740837de 10738
b0cacab0 10739
b0cacab0 10740
93613951
TT
10741 if test -n "$INTL_MACOSX_LIBS"; then
10742 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10743 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10744 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
10745 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
10746 fi
10747 fi
10748
57aa50d4
TT
10749 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10750 || test "$nls_cv_use_gnu_gettext" = "yes"; then
b0cacab0 10751
54445dc2 10752printf "%s\n" "#define ENABLE_NLS 1" >>confdefs.h
b0cacab0 10753
57aa50d4
TT
10754 else
10755 USE_NLS=no
10756 fi
10757 fi
b0cacab0 10758
54445dc2
TT
10759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
10760printf %s "checking whether to use NLS... " >&6; }
10761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
10762printf "%s\n" "$USE_NLS" >&6; }
57aa50d4 10763 if test "$USE_NLS" = "yes"; then
54445dc2
TT
10764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
10765printf %s "checking where the gettext function comes from... " >&6; }
57aa50d4 10766 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
93613951 10767 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
57aa50d4
TT
10768 gt_source="external libintl"
10769 else
10770 gt_source="libc"
10771 fi
10772 else
10773 gt_source="included intl directory"
10774 fi
54445dc2
TT
10775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
10776printf "%s\n" "$gt_source" >&6; }
57aa50d4 10777 fi
b0cacab0 10778
57aa50d4 10779 if test "$USE_NLS" = "yes"; then
b0cacab0 10780
57aa50d4 10781 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
93613951 10782 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
54445dc2
TT
10783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
10784printf %s "checking how to link with libintl... " >&6; }
10785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
10786printf "%s\n" "$LIBINTL" >&6; }
b0cacab0 10787
57aa50d4
TT
10788 for element in $INCINTL; do
10789 haveit=
10790 for x in $CPPFLAGS; do
b0cacab0 10791
57aa50d4
TT
10792 acl_save_prefix="$prefix"
10793 prefix="$acl_final_prefix"
10794 acl_save_exec_prefix="$exec_prefix"
10795 exec_prefix="$acl_final_exec_prefix"
10796 eval x=\"$x\"
10797 exec_prefix="$acl_save_exec_prefix"
10798 prefix="$acl_save_prefix"
b0cacab0 10799
57aa50d4
TT
10800 if test "X$x" = "X$element"; then
10801 haveit=yes
10802 break
10803 fi
10804 done
10805 if test -z "$haveit"; then
10806 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10807 fi
10808 done
b0cacab0 10809
57aa50d4 10810 fi
b0cacab0
TT
10811
10812
54445dc2 10813printf "%s\n" "#define HAVE_GETTEXT 1" >>confdefs.h
b0cacab0
TT
10814
10815
54445dc2 10816printf "%s\n" "#define HAVE_DCGETTEXT 1" >>confdefs.h
b0cacab0 10817
57aa50d4 10818 fi
b0cacab0 10819
57aa50d4
TT
10820 POSUB=po
10821 fi
b0cacab0
TT
10822
10823
b0cacab0 10824
57aa50d4 10825 INTLLIBS="$LIBINTL"
e1052144 10826
b0cacab0 10827
93636bde 10828
93636bde 10829
b0cacab0 10830
93636bde 10831
50e1e10f 10832
54445dc2
TT
10833{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10834printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
57aa50d4 10835set x ${MAKE-make}
54445dc2
TT
10836ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10837if eval test \${ac_cv_prog_make_${ac_make}_set+y}
10838then :
10839 printf %s "(cached) " >&6
10840else $as_nop
57aa50d4
TT
10841 cat >conftest.make <<\_ACEOF
10842SHELL = /bin/sh
10843all:
10844 @echo '@@@%%%=$(MAKE)=@@@%%%'
b0cacab0 10845_ACEOF
d6a4bcb5 10846# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
57aa50d4
TT
10847case `${MAKE-make} -f conftest.make 2>/dev/null` in
10848 *@@@%%%=?*=@@@%%%*)
10849 eval ac_cv_prog_make_${ac_make}_set=yes;;
10850 *)
10851 eval ac_cv_prog_make_${ac_make}_set=no;;
e1052144 10852esac
57aa50d4 10853rm -f conftest.make
b0cacab0 10854fi
57aa50d4 10855if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
54445dc2
TT
10856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10857printf "%s\n" "yes" >&6; }
57aa50d4 10858 SET_MAKE=
b0b9c4de 10859else
54445dc2
TT
10860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10861printf "%s\n" "no" >&6; }
57aa50d4 10862 SET_MAKE="MAKE=${MAKE-make}"
b0cacab0 10863fi
b0cacab0 10864
54445dc2
TT
10865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
10866printf %s "checking for GNU make... " >&6; }
10867if test ${_cv_gnu_make_command+y}
10868then :
10869 printf %s "(cached) " >&6
10870else $as_nop
57aa50d4 10871 _cv_gnu_make_command='' ;
e703ba4b 10872 if test -n "$FORCE_NATIVE_MAKE" ; then
f3bc1561
TT
10873 MAKES="make"
10874 else
10875 MAKES="make gmake gnumake"
10876 fi
10877 for a in "$MAKE" $MAKES ; do
57aa50d4
TT
10878 if test -z "$a" ; then continue ; fi ;
10879 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
10880 _cv_gnu_make_command=$a ;
10881 break;
10882 fi
10883 done ;
50e1e10f 10884
50e1e10f 10885fi
54445dc2
TT
10886{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
10887printf "%s\n" "$_cv_gnu_make_command" >&6; } ;
57aa50d4
TT
10888 if test "x$_cv_gnu_make_command" != "x" ; then
10889 ifGNUmake='' ;
10890 ifNotGNUmake='#' ;
10891 else
10892 ifGNUmake='#' ;
10893 ifNotGNUmake='' ;
54445dc2
TT
10894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
10895printf "%s\n" "\"Not found\"" >&6; };
57aa50d4 10896 fi
50e1e10f 10897
50e1e10f 10898
b0cacab0 10899
57aa50d4
TT
10900# Extract the first word of "ln", so it can be a program name with args.
10901set dummy ln; ac_word=$2
54445dc2
TT
10902{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10903printf %s "checking for $ac_word... " >&6; }
10904if test ${ac_cv_path_LN+y}
10905then :
10906 printf %s "(cached) " >&6
10907else $as_nop
57aa50d4
TT
10908 case $LN in
10909 [\\/]* | ?:[\\/]*)
10910 ac_cv_path_LN="$LN" # Let the user override the test with a path.
10911 ;;
10912 *)
10913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10914for as_dir in $PATH
10915do
10916 IFS=$as_save_IFS
54445dc2
TT
10917 case $as_dir in #(((
10918 '') as_dir=./ ;;
10919 */) ;;
10920 *) as_dir=$as_dir/ ;;
10921 esac
57aa50d4 10922 for ac_exec_ext in '' $ac_executable_extensions; do
54445dc2
TT
10923 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10924 ac_cv_path_LN="$as_dir$ac_word$ac_exec_ext"
10925 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
57aa50d4
TT
10926 break 2
10927 fi
10928done
10929 done
10930IFS=$as_save_IFS
6c65d251 10931
57aa50d4
TT
10932 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
10933 ;;
e1052144 10934esac
fff45483 10935fi
57aa50d4
TT
10936LN=$ac_cv_path_LN
10937if test -n "$LN"; then
54445dc2
TT
10938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
10939printf "%s\n" "$LN" >&6; }
57aa50d4 10940else
54445dc2
TT
10941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10942printf "%s\n" "no" >&6; }
fff45483 10943fi
e1052144 10944
fff45483 10945
5abc0414 10946
3fb16e74
TT
10947mkdir_p=$MKDIR_P
10948
54445dc2
TT
10949{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
10950printf %s "checking whether ln -s works... " >&6; }
57aa50d4
TT
10951LN_S=$as_ln_s
10952if test "$LN_S" = "ln -s"; then
54445dc2
TT
10953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10954printf "%s\n" "yes" >&6; }
57aa50d4 10955else
54445dc2
TT
10956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
10957printf "%s\n" "no, using $LN_S" >&6; }
fff45483 10958fi
6c65d251 10959
57aa50d4
TT
10960# Extract the first word of "mv", so it can be a program name with args.
10961set dummy mv; ac_word=$2
54445dc2
TT
10962{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10963printf %s "checking for $ac_word... " >&6; }
10964if test ${ac_cv_path_MV+y}
10965then :
10966 printf %s "(cached) " >&6
10967else $as_nop
57aa50d4
TT
10968 case $MV in
10969 [\\/]* | ?:[\\/]*)
10970 ac_cv_path_MV="$MV" # Let the user override the test with a path.
10971 ;;
10972 *)
10973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10974for as_dir in $PATH
10975do
10976 IFS=$as_save_IFS
54445dc2
TT
10977 case $as_dir in #(((
10978 '') as_dir=./ ;;
10979 */) ;;
10980 *) as_dir=$as_dir/ ;;
10981 esac
57aa50d4 10982 for ac_exec_ext in '' $ac_executable_extensions; do
54445dc2
TT
10983 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10984 ac_cv_path_MV="$as_dir$ac_word$ac_exec_ext"
10985 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
57aa50d4
TT
10986 break 2
10987 fi
10988done
10989 done
10990IFS=$as_save_IFS
6c65d251 10991
57aa50d4
TT
10992 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
10993 ;;
e1052144 10994esac
b0cacab0 10995fi
57aa50d4
TT
10996MV=$ac_cv_path_MV
10997if test -n "$MV"; then
54445dc2
TT
10998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
10999printf "%s\n" "$MV" >&6; }
b0b9c4de 11000else
54445dc2
TT
11001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11002printf "%s\n" "no" >&6; }
39fd3d4f
SJR
11003fi
11004
39fd3d4f 11005
57aa50d4
TT
11006# Extract the first word of "cp", so it can be a program name with args.
11007set dummy cp; ac_word=$2
54445dc2
TT
11008{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11009printf %s "checking for $ac_word... " >&6; }
11010if test ${ac_cv_path_CP+y}
11011then :
11012 printf %s "(cached) " >&6
11013else $as_nop
57aa50d4
TT
11014 case $CP in
11015 [\\/]* | ?:[\\/]*)
11016 ac_cv_path_CP="$CP" # Let the user override the test with a path.
11017 ;;
11018 *)
11019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11020for as_dir in $PATH
11021do
11022 IFS=$as_save_IFS
54445dc2
TT
11023 case $as_dir in #(((
11024 '') as_dir=./ ;;
11025 */) ;;
11026 *) as_dir=$as_dir/ ;;
11027 esac
57aa50d4 11028 for ac_exec_ext in '' $ac_executable_extensions; do
54445dc2
TT
11029 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11030 ac_cv_path_CP="$as_dir$ac_word$ac_exec_ext"
11031 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
57aa50d4
TT
11032 break 2
11033 fi
11034done
11035 done
11036IFS=$as_save_IFS
39fd3d4f 11037
57aa50d4
TT
11038 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11039 ;;
e1052144 11040esac
b0b9c4de 11041fi
57aa50d4
TT
11042CP=$ac_cv_path_CP
11043if test -n "$CP"; then
54445dc2
TT
11044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
11045printf "%s\n" "$CP" >&6; }
b0cacab0 11046else
54445dc2
TT
11047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11048printf "%s\n" "no" >&6; }
b0b9c4de 11049fi
b0b9c4de 11050
6c65d251 11051
57aa50d4
TT
11052# Extract the first word of "rm", so it can be a program name with args.
11053set dummy rm; ac_word=$2
54445dc2
TT
11054{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11055printf %s "checking for $ac_word... " >&6; }
11056if test ${ac_cv_path_RM+y}
11057then :
11058 printf %s "(cached) " >&6
11059else $as_nop
57aa50d4
TT
11060 case $RM in
11061 [\\/]* | ?:[\\/]*)
11062 ac_cv_path_RM="$RM" # Let the user override the test with a path.
11063 ;;
11064 *)
11065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11066for as_dir in $PATH
11067do
11068 IFS=$as_save_IFS
54445dc2
TT
11069 case $as_dir in #(((
11070 '') as_dir=./ ;;
11071 */) ;;
11072 *) as_dir=$as_dir/ ;;
11073 esac
57aa50d4 11074 for ac_exec_ext in '' $ac_executable_extensions; do
54445dc2
TT
11075 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11076 ac_cv_path_RM="$as_dir$ac_word$ac_exec_ext"
11077 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
57aa50d4
TT
11078 break 2
11079 fi
11080done
b0cacab0 11081 done
57aa50d4 11082IFS=$as_save_IFS
6c65d251 11083
57aa50d4
TT
11084 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11085 ;;
e1052144 11086esac
6928adc9 11087fi
57aa50d4
TT
11088RM=$ac_cv_path_RM
11089if test -n "$RM"; then
54445dc2
TT
11090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
11091printf "%s\n" "$RM" >&6; }
b0cacab0 11092else
54445dc2
TT
11093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11094printf "%s\n" "no" >&6; }
6928adc9 11095fi
6928adc9 11096
6c65d251 11097
57aa50d4
TT
11098# Extract the first word of "chmod", so it can be a program name with args.
11099set dummy chmod; ac_word=$2
54445dc2
TT
11100{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11101printf %s "checking for $ac_word... " >&6; }
11102if test ${ac_cv_path_CHMOD+y}
11103then :
11104 printf %s "(cached) " >&6
11105else $as_nop
57aa50d4
TT
11106 case $CHMOD in
11107 [\\/]* | ?:[\\/]*)
11108 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11109 ;;
11110 *)
11111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11112for as_dir in $PATH
11113do
11114 IFS=$as_save_IFS
54445dc2
TT
11115 case $as_dir in #(((
11116 '') as_dir=./ ;;
11117 */) ;;
11118 *) as_dir=$as_dir/ ;;
11119 esac
57aa50d4 11120 for ac_exec_ext in '' $ac_executable_extensions; do
54445dc2
TT
11121 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11122 ac_cv_path_CHMOD="$as_dir$ac_word$ac_exec_ext"
11123 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
57aa50d4
TT
11124 break 2
11125 fi
11126done
11127 done
11128IFS=$as_save_IFS
39fd3d4f 11129
57aa50d4
TT
11130 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11131 ;;
e1052144 11132esac
b0cacab0 11133fi
57aa50d4
TT
11134CHMOD=$ac_cv_path_CHMOD
11135if test -n "$CHMOD"; then
54445dc2
TT
11136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
11137printf "%s\n" "$CHMOD" >&6; }
b0cacab0 11138else
54445dc2
TT
11139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11140printf "%s\n" "no" >&6; }
b0cacab0 11141fi
39fd3d4f 11142
b0cacab0 11143
57aa50d4
TT
11144for ac_prog in gawk mawk nawk awk
11145do
11146 # Extract the first word of "$ac_prog", so it can be a program name with args.
11147set dummy $ac_prog; ac_word=$2
54445dc2
TT
11148{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11149printf %s "checking for $ac_word... " >&6; }
11150if test ${ac_cv_prog_AWK+y}
11151then :
11152 printf %s "(cached) " >&6
11153else $as_nop
57aa50d4
TT
11154 if test -n "$AWK"; then
11155 ac_cv_prog_AWK="$AWK" # Let the user override the test.
b0cacab0 11156else
57aa50d4
TT
11157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11158for as_dir in $PATH
11159do
11160 IFS=$as_save_IFS
54445dc2
TT
11161 case $as_dir in #(((
11162 '') as_dir=./ ;;
11163 */) ;;
11164 *) as_dir=$as_dir/ ;;
11165 esac
57aa50d4 11166 for ac_exec_ext in '' $ac_executable_extensions; do
54445dc2 11167 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
57aa50d4 11168 ac_cv_prog_AWK="$ac_prog"
54445dc2 11169 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
57aa50d4
TT
11170 break 2
11171 fi
11172done
11173 done
11174IFS=$as_save_IFS
b0cacab0 11175
b0cacab0 11176fi
57aa50d4
TT
11177fi
11178AWK=$ac_cv_prog_AWK
11179if test -n "$AWK"; then
54445dc2
TT
11180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11181printf "%s\n" "$AWK" >&6; }
b0cacab0 11182else
54445dc2
TT
11183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11184printf "%s\n" "no" >&6; }
b0cacab0 11185fi
b0cacab0 11186
b0cacab0 11187
57aa50d4
TT
11188 test -n "$AWK" && break
11189done
b0cacab0 11190
54445dc2
TT
11191{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11192printf %s "checking for egrep... " >&6; }
11193if test ${ac_cv_path_EGREP+y}
11194then :
11195 printf %s "(cached) " >&6
11196else $as_nop
57aa50d4
TT
11197 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11198 then ac_cv_path_EGREP="$GREP -E"
11199 else
11200 if test -z "$EGREP"; then
11201 ac_path_EGREP_found=false
11202 # Loop through the user's path and test for each of PROGNAME-LIST
11203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11204for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11205do
11206 IFS=$as_save_IFS
54445dc2
TT
11207 case $as_dir in #(((
11208 '') as_dir=./ ;;
11209 */) ;;
11210 *) as_dir=$as_dir/ ;;
11211 esac
11212 for ac_prog in egrep
11213 do
57aa50d4 11214 for ac_exec_ext in '' $ac_executable_extensions; do
54445dc2 11215 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
d6a4bcb5 11216 as_fn_executable_p "$ac_path_EGREP" || continue
57aa50d4
TT
11217# Check for GNU ac_path_EGREP and select it if it is found.
11218 # Check for GNU $ac_path_EGREP
11219case `"$ac_path_EGREP" --version 2>&1` in
11220*GNU*)
11221 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11222*)
11223 ac_count=0
54445dc2 11224 printf %s 0123456789 >"conftest.in"
57aa50d4
TT
11225 while :
11226 do
11227 cat "conftest.in" "conftest.in" >"conftest.tmp"
11228 mv "conftest.tmp" "conftest.in"
11229 cp "conftest.in" "conftest.nl"
54445dc2 11230 printf "%s\n" 'EGREP' >> "conftest.nl"
57aa50d4
TT
11231 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11232 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11233 as_fn_arith $ac_count + 1 && ac_count=$as_val
11234 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11235 # Best one so far, save it but keep looking for a better one
11236 ac_cv_path_EGREP="$ac_path_EGREP"
11237 ac_path_EGREP_max=$ac_count
11238 fi
11239 # 10*(2^10) chars as input seems more than enough
11240 test $ac_count -gt 10 && break
11241 done
11242 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
e1052144 11243esac
e1052144 11244
57aa50d4
TT
11245 $ac_path_EGREP_found && break 3
11246 done
b0cacab0 11247 done
57aa50d4
TT
11248 done
11249IFS=$as_save_IFS
11250 if test -z "$ac_cv_path_EGREP"; then
d6a4bcb5 11251 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
57aa50d4 11252 fi
b0cacab0 11253else
57aa50d4 11254 ac_cv_path_EGREP=$EGREP
b0cacab0 11255fi
e1052144 11256
57aa50d4 11257 fi
b0cacab0 11258fi
54445dc2
TT
11259{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11260printf "%s\n" "$ac_cv_path_EGREP" >&6; }
57aa50d4 11261 EGREP="$ac_cv_path_EGREP"
e1052144 11262
b0cacab0 11263
57aa50d4
TT
11264# Extract the first word of "sed", so it can be a program name with args.
11265set dummy sed; ac_word=$2
54445dc2
TT
11266{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11267printf %s "checking for $ac_word... " >&6; }
11268if test ${ac_cv_path_SED+y}
11269then :
11270 printf %s "(cached) " >&6
11271else $as_nop
57aa50d4
TT
11272 case $SED in
11273 [\\/]* | ?:[\\/]*)
11274 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11275 ;;
11276 *)
11277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11278for as_dir in $PATH
11279do
11280 IFS=$as_save_IFS
54445dc2
TT
11281 case $as_dir in #(((
11282 '') as_dir=./ ;;
11283 */) ;;
11284 *) as_dir=$as_dir/ ;;
11285 esac
57aa50d4 11286 for ac_exec_ext in '' $ac_executable_extensions; do
54445dc2
TT
11287 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11288 ac_cv_path_SED="$as_dir$ac_word$ac_exec_ext"
11289 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
57aa50d4
TT
11290 break 2
11291 fi
b0cacab0 11292done
57aa50d4
TT
11293 done
11294IFS=$as_save_IFS
b0cacab0 11295
57aa50d4
TT
11296 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11297 ;;
b0cacab0 11298esac
57aa50d4
TT
11299fi
11300SED=$ac_cv_path_SED
11301if test -n "$SED"; then
54445dc2
TT
11302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
11303printf "%s\n" "$SED" >&6; }
b0cacab0 11304else
54445dc2
TT
11305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11306printf "%s\n" "no" >&6; }
b0cacab0 11307fi
e1052144 11308
b0cacab0 11309
57aa50d4
TT
11310# Extract the first word of "perl", so it can be a program name with args.
11311set dummy perl; ac_word=$2
54445dc2
TT
11312{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11313printf %s "checking for $ac_word... " >&6; }
11314if test ${ac_cv_path_PERL+y}
11315then :
11316 printf %s "(cached) " >&6
11317else $as_nop
57aa50d4
TT
11318 case $PERL in
11319 [\\/]* | ?:[\\/]*)
11320 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11321 ;;
11322 *)
11323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11324for as_dir in $PATH
11325do
11326 IFS=$as_save_IFS
54445dc2
TT
11327 case $as_dir in #(((
11328 '') as_dir=./ ;;
11329 */) ;;
11330 *) as_dir=$as_dir/ ;;
11331 esac
57aa50d4 11332 for ac_exec_ext in '' $ac_executable_extensions; do
54445dc2
TT
11333 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11334 ac_cv_path_PERL="$as_dir$ac_word$ac_exec_ext"
11335 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
57aa50d4
TT
11336 break 2
11337 fi
b0cacab0 11338done
57aa50d4
TT
11339 done
11340IFS=$as_save_IFS
11341
11342 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11343 ;;
b0cacab0 11344esac
57aa50d4
TT
11345fi
11346PERL=$ac_cv_path_PERL
11347if test -n "$PERL"; then
54445dc2
TT
11348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
11349printf "%s\n" "$PERL" >&6; }
b0cacab0 11350else
54445dc2
TT
11351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11352printf "%s\n" "no" >&6; }
57aa50d4 11353fi
b0cacab0 11354
b0cacab0 11355
57aa50d4
TT
11356# Extract the first word of "ldconfig", so it can be a program name with args.
11357set dummy ldconfig; ac_word=$2
54445dc2
TT
11358{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11359printf %s "checking for $ac_word... " >&6; }
11360if test ${ac_cv_path_LDCONFIG+y}
11361then :
11362 printf %s "(cached) " >&6
11363else $as_nop
57aa50d4
TT
11364 case $LDCONFIG in
11365 [\\/]* | ?:[\\/]*)
11366 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
11367 ;;
11368 *)
11369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11370for as_dir in $PATH
11371do
11372 IFS=$as_save_IFS
54445dc2
TT
11373 case $as_dir in #(((
11374 '') as_dir=./ ;;
11375 */) ;;
11376 *) as_dir=$as_dir/ ;;
11377 esac
57aa50d4 11378 for ac_exec_ext in '' $ac_executable_extensions; do
54445dc2
TT
11379 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11380 ac_cv_path_LDCONFIG="$as_dir$ac_word$ac_exec_ext"
11381 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
57aa50d4
TT
11382 break 2
11383 fi
11384done
11385 done
11386IFS=$as_save_IFS
b0cacab0 11387
57aa50d4
TT
11388 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
11389 ;;
11390esac
39fd3d4f 11391fi
57aa50d4
TT
11392LDCONFIG=$ac_cv_path_LDCONFIG
11393if test -n "$LDCONFIG"; then
54445dc2
TT
11394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
11395printf "%s\n" "$LDCONFIG" >&6; }
57aa50d4 11396else
54445dc2
TT
11397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11398printf "%s\n" "no" >&6; }
b0cacab0 11399fi
39fd3d4f
SJR
11400
11401
57aa50d4
TT
11402if test -n "$ac_tool_prefix"; then
11403 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11404set dummy ${ac_tool_prefix}ar; ac_word=$2
54445dc2
TT
11405{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11406printf %s "checking for $ac_word... " >&6; }
11407if test ${ac_cv_prog_AR+y}
11408then :
11409 printf %s "(cached) " >&6
11410else $as_nop
57aa50d4
TT
11411 if test -n "$AR"; then
11412 ac_cv_prog_AR="$AR" # Let the user override the test.
11413else
11414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11415for as_dir in $PATH
11416do
11417 IFS=$as_save_IFS
54445dc2
TT
11418 case $as_dir in #(((
11419 '') as_dir=./ ;;
11420 */) ;;
11421 *) as_dir=$as_dir/ ;;
11422 esac
57aa50d4 11423 for ac_exec_ext in '' $ac_executable_extensions; do
54445dc2 11424 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
57aa50d4 11425 ac_cv_prog_AR="${ac_tool_prefix}ar"
54445dc2 11426 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
57aa50d4
TT
11427 break 2
11428 fi
11429done
11430 done
11431IFS=$as_save_IFS
39fd3d4f 11432
57aa50d4
TT
11433fi
11434fi
11435AR=$ac_cv_prog_AR
11436if test -n "$AR"; then
54445dc2
TT
11437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11438printf "%s\n" "$AR" >&6; }
57aa50d4 11439else
54445dc2
TT
11440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11441printf "%s\n" "no" >&6; }
57aa50d4 11442fi
39fd3d4f 11443
b0cacab0 11444
57aa50d4
TT
11445fi
11446if test -z "$ac_cv_prog_AR"; then
11447 ac_ct_AR=$AR
11448 # Extract the first word of "ar", so it can be a program name with args.
11449set dummy ar; ac_word=$2
54445dc2
TT
11450{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11451printf %s "checking for $ac_word... " >&6; }
11452if test ${ac_cv_prog_ac_ct_AR+y}
11453then :
11454 printf %s "(cached) " >&6
11455else $as_nop
57aa50d4
TT
11456 if test -n "$ac_ct_AR"; then
11457 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
b0cacab0 11458else
57aa50d4
TT
11459as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11460for as_dir in $PATH
11461do
11462 IFS=$as_save_IFS
54445dc2
TT
11463 case $as_dir in #(((
11464 '') as_dir=./ ;;
11465 */) ;;
11466 *) as_dir=$as_dir/ ;;
11467 esac
57aa50d4 11468 for ac_exec_ext in '' $ac_executable_extensions; do
54445dc2 11469 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
57aa50d4 11470 ac_cv_prog_ac_ct_AR="ar"
54445dc2 11471 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
57aa50d4
TT
11472 break 2
11473 fi
11474done
11475 done
11476IFS=$as_save_IFS
b0cacab0 11477
b0cacab0 11478fi
57aa50d4
TT
11479fi
11480ac_ct_AR=$ac_cv_prog_ac_ct_AR
11481if test -n "$ac_ct_AR"; then
54445dc2
TT
11482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11483printf "%s\n" "$ac_ct_AR" >&6; }
b0cacab0 11484else
54445dc2
TT
11485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11486printf "%s\n" "no" >&6; }
57aa50d4 11487fi
b0cacab0 11488
57aa50d4
TT
11489 if test "x$ac_ct_AR" = x; then
11490 AR="ar"
11491 else
11492 case $cross_compiling:$ac_tool_warned in
11493yes:)
54445dc2
TT
11494{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11495printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
57aa50d4 11496ac_tool_warned=yes ;;
e1052144 11497esac
57aa50d4
TT
11498 AR=$ac_ct_AR
11499 fi
b0cacab0 11500else
57aa50d4 11501 AR="$ac_cv_prog_AR"
b0cacab0 11502fi
e1052144 11503
57aa50d4
TT
11504if test -n "$ac_tool_prefix"; then
11505 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11506set dummy ${ac_tool_prefix}ranlib; ac_word=$2
54445dc2
TT
11507{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11508printf %s "checking for $ac_word... " >&6; }
11509if test ${ac_cv_prog_RANLIB+y}
11510then :
11511 printf %s "(cached) " >&6
11512else $as_nop
57aa50d4
TT
11513 if test -n "$RANLIB"; then
11514 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11515else
11516as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11517for as_dir in $PATH
11518do
11519 IFS=$as_save_IFS
54445dc2
TT
11520 case $as_dir in #(((
11521 '') as_dir=./ ;;
11522 */) ;;
11523 *) as_dir=$as_dir/ ;;
11524 esac
57aa50d4 11525 for ac_exec_ext in '' $ac_executable_extensions; do
54445dc2 11526 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
57aa50d4 11527 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
54445dc2 11528 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
57aa50d4
TT
11529 break 2
11530 fi
11531done
b0cacab0 11532 done
57aa50d4 11533IFS=$as_save_IFS
b0cacab0 11534
b0cacab0 11535fi
57aa50d4
TT
11536fi
11537RANLIB=$ac_cv_prog_RANLIB
11538if test -n "$RANLIB"; then
54445dc2
TT
11539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11540printf "%s\n" "$RANLIB" >&6; }
b0cacab0 11541else
54445dc2
TT
11542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11543printf "%s\n" "no" >&6; }
b0cacab0 11544fi
b0cacab0 11545
b0cacab0 11546
57aa50d4
TT
11547fi
11548if test -z "$ac_cv_prog_RANLIB"; then
11549 ac_ct_RANLIB=$RANLIB
11550 # Extract the first word of "ranlib", so it can be a program name with args.
11551set dummy ranlib; ac_word=$2
54445dc2
TT
11552{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11553printf %s "checking for $ac_word... " >&6; }
11554if test ${ac_cv_prog_ac_ct_RANLIB+y}
11555then :
11556 printf %s "(cached) " >&6
11557else $as_nop
57aa50d4
TT
11558 if test -n "$ac_ct_RANLIB"; then
11559 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
b0cacab0 11560else
57aa50d4
TT
11561as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11562for as_dir in $PATH
11563do
11564 IFS=$as_save_IFS
54445dc2
TT
11565 case $as_dir in #(((
11566 '') as_dir=./ ;;
11567 */) ;;
11568 *) as_dir=$as_dir/ ;;
11569 esac
57aa50d4 11570 for ac_exec_ext in '' $ac_executable_extensions; do
54445dc2 11571 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
57aa50d4 11572 ac_cv_prog_ac_ct_RANLIB="ranlib"
54445dc2 11573 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
57aa50d4
TT
11574 break 2
11575 fi
11576done
11577 done
11578IFS=$as_save_IFS
29a5deed 11579
b0cacab0 11580fi
57aa50d4
TT
11581fi
11582ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11583if test -n "$ac_ct_RANLIB"; then
54445dc2
TT
11584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11585printf "%s\n" "$ac_ct_RANLIB" >&6; }
b0cacab0 11586else
54445dc2
TT
11587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11588printf "%s\n" "no" >&6; }
57aa50d4 11589fi
b0cacab0 11590
57aa50d4
TT
11591 if test "x$ac_ct_RANLIB" = x; then
11592 RANLIB=":"
b0cacab0 11593 else
57aa50d4
TT
11594 case $cross_compiling:$ac_tool_warned in
11595yes:)
54445dc2
TT
11596{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11597printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
57aa50d4 11598ac_tool_warned=yes ;;
e1052144 11599esac
57aa50d4
TT
11600 RANLIB=$ac_ct_RANLIB
11601 fi
b0cacab0 11602else
57aa50d4 11603 RANLIB="$ac_cv_prog_RANLIB"
b0cacab0 11604fi
e1052144 11605
57aa50d4
TT
11606if test -n "$ac_tool_prefix"; then
11607 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11608set dummy ${ac_tool_prefix}strip; ac_word=$2
54445dc2
TT
11609{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11610printf %s "checking for $ac_word... " >&6; }
11611if test ${ac_cv_prog_STRIP+y}
11612then :
11613 printf %s "(cached) " >&6
11614else $as_nop
57aa50d4
TT
11615 if test -n "$STRIP"; then
11616 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11617else
11618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11619for as_dir in $PATH
11620do
11621 IFS=$as_save_IFS
54445dc2
TT
11622 case $as_dir in #(((
11623 '') as_dir=./ ;;
11624 */) ;;
11625 *) as_dir=$as_dir/ ;;
11626 esac
57aa50d4 11627 for ac_exec_ext in '' $ac_executable_extensions; do
54445dc2 11628 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
57aa50d4 11629 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
54445dc2 11630 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
57aa50d4
TT
11631 break 2
11632 fi
11633done
11634 done
11635IFS=$as_save_IFS
b0cacab0 11636
b0cacab0 11637fi
b0cacab0 11638fi
57aa50d4
TT
11639STRIP=$ac_cv_prog_STRIP
11640if test -n "$STRIP"; then
54445dc2
TT
11641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11642printf "%s\n" "$STRIP" >&6; }
57aa50d4 11643else
54445dc2
TT
11644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11645printf "%s\n" "no" >&6; }
b0cacab0 11646fi
e1052144 11647
b0cacab0 11648
57aa50d4
TT
11649fi
11650if test -z "$ac_cv_prog_STRIP"; then
11651 ac_ct_STRIP=$STRIP
11652 # Extract the first word of "strip", so it can be a program name with args.
11653set dummy strip; ac_word=$2
54445dc2
TT
11654{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11655printf %s "checking for $ac_word... " >&6; }
11656if test ${ac_cv_prog_ac_ct_STRIP+y}
11657then :
11658 printf %s "(cached) " >&6
11659else $as_nop
57aa50d4
TT
11660 if test -n "$ac_ct_STRIP"; then
11661 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11662else
11663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11664for as_dir in $PATH
11665do
11666 IFS=$as_save_IFS
54445dc2
TT
11667 case $as_dir in #(((
11668 '') as_dir=./ ;;
11669 */) ;;
11670 *) as_dir=$as_dir/ ;;
11671 esac
57aa50d4 11672 for ac_exec_ext in '' $ac_executable_extensions; do
54445dc2 11673 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
57aa50d4 11674 ac_cv_prog_ac_ct_STRIP="strip"
54445dc2 11675 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
57aa50d4
TT
11676 break 2
11677 fi
11678done
11679 done
11680IFS=$as_save_IFS
b0cacab0 11681
b0cacab0 11682fi
57aa50d4
TT
11683fi
11684ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11685if test -n "$ac_ct_STRIP"; then
54445dc2
TT
11686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11687printf "%s\n" "$ac_ct_STRIP" >&6; }
b0cacab0 11688else
54445dc2
TT
11689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11690printf "%s\n" "no" >&6; }
57aa50d4 11691fi
b0cacab0 11692
57aa50d4
TT
11693 if test "x$ac_ct_STRIP" = x; then
11694 STRIP=":"
b0cacab0 11695 else
57aa50d4
TT
11696 case $cross_compiling:$ac_tool_warned in
11697yes:)
54445dc2
TT
11698{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11699printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
57aa50d4 11700ac_tool_warned=yes ;;
e1052144 11701esac
57aa50d4
TT
11702 STRIP=$ac_ct_STRIP
11703 fi
b0cacab0 11704else
57aa50d4 11705 STRIP="$ac_cv_prog_STRIP"
b0cacab0 11706fi
e1052144 11707
57aa50d4
TT
11708# Extract the first word of "makeinfo", so it can be a program name with args.
11709set dummy makeinfo; ac_word=$2
54445dc2
TT
11710{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11711printf %s "checking for $ac_word... " >&6; }
11712if test ${ac_cv_prog_MAKEINFO+y}
11713then :
11714 printf %s "(cached) " >&6
11715else $as_nop
57aa50d4
TT
11716 if test -n "$MAKEINFO"; then
11717 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
11718else
11719as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11720for as_dir in $PATH
11721do
11722 IFS=$as_save_IFS
54445dc2
TT
11723 case $as_dir in #(((
11724 '') as_dir=./ ;;
11725 */) ;;
11726 *) as_dir=$as_dir/ ;;
11727 esac
57aa50d4 11728 for ac_exec_ext in '' $ac_executable_extensions; do
54445dc2 11729 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
57aa50d4 11730 ac_cv_prog_MAKEINFO="makeinfo"
54445dc2 11731 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
57aa50d4
TT
11732 break 2
11733 fi
11734done
11735 done
11736IFS=$as_save_IFS
b0cacab0 11737
b0cacab0
TT
11738fi
11739fi
57aa50d4
TT
11740MAKEINFO=$ac_cv_prog_MAKEINFO
11741if test -n "$MAKEINFO"; then
54445dc2
TT
11742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
11743printf "%s\n" "$MAKEINFO" >&6; }
b0cacab0 11744else
54445dc2
TT
11745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11746printf "%s\n" "no" >&6; }
07a0db15 11747fi
29a5deed
TT
11748
11749
57aa50d4 11750if test "_$MAKEINFO" = "_"; then
ca1de98a 11751 MAKEINFO="echo Makeinfo is missing. Info documentation will not be built."
57aa50d4
TT
11752else
11753 case "$MAKEINFO" in
11754 */missing.*)
54445dc2 11755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
57aa50d4 11756*** Makeinfo is missing. Info documentation will not be built." >&5
54445dc2 11757printf "%s\n" "$as_me: WARNING:
57aa50d4
TT
11758*** Makeinfo is missing. Info documentation will not be built." >&2;}
11759 ;;
11760 *)
11761 ;;
11762 esac
b0cacab0 11763fi
29a5deed 11764
b0cacab0 11765
57aa50d4
TT
11766# See if we need a separate native compiler.
11767if test $cross_compiling = no; then
11768 BUILD_CC="$CC"
b0cacab0 11769
b0cacab0 11770else
57aa50d4
TT
11771 for ac_prog in gcc cc
11772do
11773 # Extract the first word of "$ac_prog", so it can be a program name with args.
11774set dummy $ac_prog; ac_word=$2
54445dc2
TT
11775{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11776printf %s "checking for $ac_word... " >&6; }
11777if test ${ac_cv_prog_BUILD_CC+y}
11778then :
11779 printf %s "(cached) " >&6
11780else $as_nop
57aa50d4
TT
11781 if test -n "$BUILD_CC"; then
11782 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
11783else
11784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11785for as_dir in $PATH
11786do
11787 IFS=$as_save_IFS
54445dc2
TT
11788 case $as_dir in #(((
11789 '') as_dir=./ ;;
11790 */) ;;
11791 *) as_dir=$as_dir/ ;;
11792 esac
57aa50d4 11793 for ac_exec_ext in '' $ac_executable_extensions; do
54445dc2 11794 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
57aa50d4 11795 ac_cv_prog_BUILD_CC="$ac_prog"
54445dc2 11796 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
57aa50d4
TT
11797 break 2
11798 fi
11799done
11800 done
11801IFS=$as_save_IFS
b0cacab0 11802
b0cacab0 11803fi
57aa50d4
TT
11804fi
11805BUILD_CC=$ac_cv_prog_BUILD_CC
11806if test -n "$BUILD_CC"; then
54445dc2
TT
11807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
11808printf "%s\n" "$BUILD_CC" >&6; }
07a0db15 11809else
54445dc2
TT
11810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11811printf "%s\n" "no" >&6; }
b0cacab0 11812fi
b0cacab0 11813
b0cacab0 11814
57aa50d4
TT
11815 test -n "$BUILD_CC" && break
11816done
b0cacab0 11817
57aa50d4 11818fi
54445dc2
TT
11819ac_fn_c_check_header_compile "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default"
11820if test "x$ac_cv_header_dirent_h" = xyes
11821then :
11822 printf "%s\n" "#define HAVE_DIRENT_H 1" >>confdefs.h
b0cacab0 11823
b0cacab0 11824fi
54445dc2
TT
11825ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
11826if test "x$ac_cv_header_errno_h" = xyes
11827then :
11828 printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h
e1052144 11829
54445dc2
TT
11830fi
11831ac_fn_c_check_header_compile "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
11832if test "x$ac_cv_header_execinfo_h" = xyes
11833then :
11834 printf "%s\n" "#define HAVE_EXECINFO_H 1" >>confdefs.h
11835
11836fi
11837ac_fn_c_check_header_compile "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
11838if test "x$ac_cv_header_getopt_h" = xyes
11839then :
11840 printf "%s\n" "#define HAVE_GETOPT_H 1" >>confdefs.h
93636bde 11841
54445dc2
TT
11842fi
11843ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
11844if test "x$ac_cv_header_malloc_h" = xyes
11845then :
11846 printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
11847
11848fi
11849ac_fn_c_check_header_compile "$LINENO" "mntent.h" "ac_cv_header_mntent_h" "$ac_includes_default"
11850if test "x$ac_cv_header_mntent_h" = xyes
11851then :
11852 printf "%s\n" "#define HAVE_MNTENT_H 1" >>confdefs.h
11853
11854fi
11855ac_fn_c_check_header_compile "$LINENO" "paths.h" "ac_cv_header_paths_h" "$ac_includes_default"
11856if test "x$ac_cv_header_paths_h" = xyes
11857then :
11858 printf "%s\n" "#define HAVE_PATHS_H 1" >>confdefs.h
11859
11860fi
11861ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
11862if test "x$ac_cv_header_pthread_h" = xyes
11863then :
11864 printf "%s\n" "#define HAVE_PTHREAD_H 1" >>confdefs.h
11865
11866fi
11867ac_fn_c_check_header_compile "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default"
11868if test "x$ac_cv_header_semaphore_h" = xyes
11869then :
11870 printf "%s\n" "#define HAVE_SEMAPHORE_H 1" >>confdefs.h
11871
11872fi
11873ac_fn_c_check_header_compile "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default"
11874if test "x$ac_cv_header_setjmp_h" = xyes
11875then :
11876 printf "%s\n" "#define HAVE_SETJMP_H 1" >>confdefs.h
11877
11878fi
11879ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
11880if test "x$ac_cv_header_signal_h" = xyes
11881then :
11882 printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
11883
11884fi
11885ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
11886if test "x$ac_cv_header_stdarg_h" = xyes
11887then :
11888 printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h
11889
11890fi
11891ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
11892if test "x$ac_cv_header_stdint_h" = xyes
11893then :
11894 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
11895
11896fi
11897ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
11898if test "x$ac_cv_header_stdlib_h" = xyes
11899then :
11900 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
11901
11902fi
11903ac_fn_c_check_header_compile "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
11904if test "x$ac_cv_header_termios_h" = xyes
11905then :
11906 printf "%s\n" "#define HAVE_TERMIOS_H 1" >>confdefs.h
11907
11908fi
11909ac_fn_c_check_header_compile "$LINENO" "termio.h" "ac_cv_header_termio_h" "$ac_includes_default"
11910if test "x$ac_cv_header_termio_h" = xyes
11911then :
11912 printf "%s\n" "#define HAVE_TERMIO_H 1" >>confdefs.h
11913
11914fi
11915ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
11916if test "x$ac_cv_header_unistd_h" = xyes
11917then :
11918 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
11919
11920fi
11921ac_fn_c_check_header_compile "$LINENO" "utime.h" "ac_cv_header_utime_h" "$ac_includes_default"
11922if test "x$ac_cv_header_utime_h" = xyes
11923then :
11924 printf "%s\n" "#define HAVE_UTIME_H 1" >>confdefs.h
11925
11926fi
11927ac_fn_c_check_header_compile "$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default"
11928if test "x$ac_cv_header_attr_xattr_h" = xyes
11929then :
11930 printf "%s\n" "#define HAVE_ATTR_XATTR_H 1" >>confdefs.h
11931
11932fi
11933ac_fn_c_check_header_compile "$LINENO" "linux/falloc.h" "ac_cv_header_linux_falloc_h" "$ac_includes_default"
11934if test "x$ac_cv_header_linux_falloc_h" = xyes
11935then :
11936 printf "%s\n" "#define HAVE_LINUX_FALLOC_H 1" >>confdefs.h
11937
11938fi
11939ac_fn_c_check_header_compile "$LINENO" "linux/fd.h" "ac_cv_header_linux_fd_h" "$ac_includes_default"
11940if test "x$ac_cv_header_linux_fd_h" = xyes
11941then :
11942 printf "%s\n" "#define HAVE_LINUX_FD_H 1" >>confdefs.h
11943
11944fi
11945ac_fn_c_check_header_compile "$LINENO" "linux/fsmap.h" "ac_cv_header_linux_fsmap_h" "$ac_includes_default"
11946if test "x$ac_cv_header_linux_fsmap_h" = xyes
11947then :
11948 printf "%s\n" "#define HAVE_LINUX_FSMAP_H 1" >>confdefs.h
11949
11950fi
11951ac_fn_c_check_header_compile "$LINENO" "linux/major.h" "ac_cv_header_linux_major_h" "$ac_includes_default"
11952if test "x$ac_cv_header_linux_major_h" = xyes
11953then :
11954 printf "%s\n" "#define HAVE_LINUX_MAJOR_H 1" >>confdefs.h
11955
11956fi
11957ac_fn_c_check_header_compile "$LINENO" "linux/loop.h" "ac_cv_header_linux_loop_h" "$ac_includes_default"
11958if test "x$ac_cv_header_linux_loop_h" = xyes
11959then :
11960 printf "%s\n" "#define HAVE_LINUX_LOOP_H 1" >>confdefs.h
11961
11962fi
11963ac_fn_c_check_header_compile "$LINENO" "linux/types.h" "ac_cv_header_linux_types_h" "$ac_includes_default"
11964if test "x$ac_cv_header_linux_types_h" = xyes
11965then :
11966 printf "%s\n" "#define HAVE_LINUX_TYPES_H 1" >>confdefs.h
11967
11968fi
11969ac_fn_c_check_header_compile "$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default"
11970if test "x$ac_cv_header_net_if_dl_h" = xyes
11971then :
11972 printf "%s\n" "#define HAVE_NET_IF_DL_H 1" >>confdefs.h
11973
11974fi
11975ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
11976if test "x$ac_cv_header_netinet_in_h" = xyes
11977then :
11978 printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
11979
11980fi
11981ac_fn_c_check_header_compile "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
11982if test "x$ac_cv_header_sys_acl_h" = xyes
11983then :
11984 printf "%s\n" "#define HAVE_SYS_ACL_H 1" >>confdefs.h
11985
11986fi
11987ac_fn_c_check_header_compile "$LINENO" "sys/disklabel.h" "ac_cv_header_sys_disklabel_h" "$ac_includes_default"
11988if test "x$ac_cv_header_sys_disklabel_h" = xyes
11989then :
11990 printf "%s\n" "#define HAVE_SYS_DISKLABEL_H 1" >>confdefs.h
11991
11992fi
11993ac_fn_c_check_header_compile "$LINENO" "sys/disk.h" "ac_cv_header_sys_disk_h" "$ac_includes_default"
11994if test "x$ac_cv_header_sys_disk_h" = xyes
11995then :
11996 printf "%s\n" "#define HAVE_SYS_DISK_H 1" >>confdefs.h
11997
11998fi
11999ac_fn_c_check_header_compile "$LINENO" "sys/file.h" "ac_cv_header_sys_file_h" "$ac_includes_default"
12000if test "x$ac_cv_header_sys_file_h" = xyes
12001then :
12002 printf "%s\n" "#define HAVE_SYS_FILE_H 1" >>confdefs.h
12003
12004fi
12005ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
12006if test "x$ac_cv_header_sys_ioctl_h" = xyes
12007then :
12008 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
12009
12010fi
12011ac_fn_c_check_header_compile "$LINENO" "sys/key.h" "ac_cv_header_sys_key_h" "$ac_includes_default"
12012if test "x$ac_cv_header_sys_key_h" = xyes
12013then :
12014 printf "%s\n" "#define HAVE_SYS_KEY_H 1" >>confdefs.h
12015
12016fi
12017ac_fn_c_check_header_compile "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
12018if test "x$ac_cv_header_sys_mkdev_h" = xyes
12019then :
12020 printf "%s\n" "#define HAVE_SYS_MKDEV_H 1" >>confdefs.h
12021
12022fi
12023ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
12024if test "x$ac_cv_header_sys_mman_h" = xyes
12025then :
12026 printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h
12027
12028fi
12029ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default"
12030if test "x$ac_cv_header_sys_mount_h" = xyes
12031then :
12032 printf "%s\n" "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h
12033
12034fi
12035ac_fn_c_check_header_compile "$LINENO" "sys/prctl.h" "ac_cv_header_sys_prctl_h" "$ac_includes_default"
12036if test "x$ac_cv_header_sys_prctl_h" = xyes
12037then :
12038 printf "%s\n" "#define HAVE_SYS_PRCTL_H 1" >>confdefs.h
12039
12040fi
12041ac_fn_c_check_header_compile "$LINENO" "sys/random.h" "ac_cv_header_sys_random_h" "$ac_includes_default"
12042if test "x$ac_cv_header_sys_random_h" = xyes
12043then :
12044 printf "%s\n" "#define HAVE_SYS_RANDOM_H 1" >>confdefs.h
12045
12046fi
12047ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "$ac_includes_default"
12048if test "x$ac_cv_header_sys_resource_h" = xyes
12049then :
12050 printf "%s\n" "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h
12051
12052fi
12053ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
12054if test "x$ac_cv_header_sys_select_h" = xyes
12055then :
12056 printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
12057
12058fi
12059ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
12060if test "x$ac_cv_header_sys_socket_h" = xyes
12061then :
12062 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
12063
12064fi
12065ac_fn_c_check_header_compile "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default"
12066if test "x$ac_cv_header_sys_sockio_h" = xyes
12067then :
12068 printf "%s\n" "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h
12069
12070fi
12071ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
12072if test "x$ac_cv_header_sys_stat_h" = xyes
12073then :
12074 printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
12075
12076fi
12077ac_fn_c_check_header_compile "$LINENO" "sys/syscall.h" "ac_cv_header_sys_syscall_h" "$ac_includes_default"
12078if test "x$ac_cv_header_sys_syscall_h" = xyes
12079then :
12080 printf "%s\n" "#define HAVE_SYS_SYSCALL_H 1" >>confdefs.h
12081
12082fi
12083ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
12084if test "x$ac_cv_header_sys_sysmacros_h" = xyes
12085then :
12086 printf "%s\n" "#define HAVE_SYS_SYSMACROS_H 1" >>confdefs.h
12087
12088fi
12089ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
12090if test "x$ac_cv_header_sys_time_h" = xyes
12091then :
12092 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
12093
12094fi
12095ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
12096if test "x$ac_cv_header_sys_types_h" = xyes
12097then :
12098 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
12099
12100fi
12101ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
12102if test "x$ac_cv_header_sys_un_h" = xyes
12103then :
12104 printf "%s\n" "#define HAVE_SYS_UN_H 1" >>confdefs.h
12105
12106fi
12107ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default"
12108if test "x$ac_cv_header_sys_wait_h" = xyes
12109then :
12110 printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
12111
12112fi
12113ac_fn_c_check_header_compile "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
12114if test "x$ac_cv_header_sys_xattr_h" = xyes
12115then :
12116 printf "%s\n" "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
12117
12118fi
12119
12120{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a dd(1) program that supports iflag=fullblock" >&5
12121printf %s "checking for a dd(1) program that supports iflag=fullblock... " >&6; }
ec3a69bb
MA
12122DD=
12123for i in dd gdd ; do
12124 if "$i" if=/dev/null of=/dev/null count=1 bs=10k 2>/dev/null iflag=fullblock oflag=append ; then
12125 DD=$i
12126 break
12127 fi
12128done
12129if test -n "$DD" ; then
54445dc2
TT
12130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
12131printf "%s\n" "$DD" >&6; }
ec3a69bb 12132else
54445dc2
TT
12133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found, using dd" >&5
12134printf "%s\n" "not found, using dd" >&6; }
ec3a69bb 12135 DD=dd
54445dc2
TT
12136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&5
12137printf "%s\n" "$as_me: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&2;}
ec3a69bb
MA
12138fi
12139
12140
54445dc2 12141ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
57aa50d4
TT
12142#if HAVE_SYS_TYPES_H
12143#include <sys/types.h>
12144#endif
12145#if HAVE_SYS_SOCKET
12146#include <sys/socket.h>
12147#endif
29a5deed 12148
57aa50d4 12149"
54445dc2
TT
12150if test "x$ac_cv_header_net_if_h" = xyes
12151then :
12152 printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h
b0cacab0 12153
b0cacab0 12154fi
e1052144 12155
54445dc2
TT
12156ac_func=
12157for ac_item in $ac_func_c_list
12158do
12159 if test $ac_func; then
12160 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
12161 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
12162 echo "#define $ac_item 1" >> confdefs.h
12163 fi
12164 ac_func=
12165 else
12166 ac_func=$ac_item
12167 fi
b0cacab0 12168done
b0cacab0 12169
54445dc2
TT
12170if test "x$ac_cv_func_vprintf" = xno
12171then :
12172 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
12173if test "x$ac_cv_func__doprnt" = xyes
12174then :
b0cacab0 12175
54445dc2 12176printf "%s\n" "#define HAVE_DOPRNT 1" >>confdefs.h
b0cacab0 12177
54445dc2 12178fi
b0cacab0 12179
50e1e10f 12180fi
54445dc2
TT
12181ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
12182"
12183if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes
12184then :
12185
12186printf "%s\n" "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
29a5deed 12187
57aa50d4 12188fi
29a5deed 12189
54445dc2
TT
12190ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
12191if test "x$ac_cv_member_struct_stat_st_atim" = xyes
12192then :
12193
12194printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIM 1" >>confdefs.h
29a5deed 12195
54445dc2
TT
12196
12197fi
12198
12199ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
57aa50d4 12200"
54445dc2
TT
12201if test "x$ac_cv_type_ssize_t" = xyes
12202then :
12203
12204printf "%s\n" "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
12205
12206fi
12207
12208{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
12209printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
12210if test ${ac_cv_c_undeclared_builtin_options+y}
12211then :
12212 printf %s "(cached) " >&6
12213else $as_nop
12214 ac_save_CFLAGS=$CFLAGS
12215 ac_cv_c_undeclared_builtin_options='cannot detect'
12216 for ac_arg in '' -fno-builtin; do
12217 CFLAGS="$ac_save_CFLAGS $ac_arg"
12218 # This test program should *not* compile successfully.
12219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12220/* end confdefs.h. */
d1154eb4 12221
54445dc2
TT
12222int
12223main (void)
12224{
12225(void) strchr;
12226 ;
12227 return 0;
12228}
12229_ACEOF
12230if ac_fn_c_try_compile "$LINENO"
12231then :
50e1e10f 12232
54445dc2
TT
12233else $as_nop
12234 # This test program should compile successfully.
12235 # No library function is consistently available on
12236 # freestanding implementations, so test against a dummy
12237 # declaration. Include always-available headers on the
12238 # off chance that they somehow elicit warnings.
12239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12240/* end confdefs.h. */
12241#include <float.h>
12242#include <limits.h>
12243#include <stdarg.h>
12244#include <stddef.h>
12245extern void ac_decl (int, char *);
2873927d 12246
54445dc2
TT
12247int
12248main (void)
12249{
12250(void) ac_decl (0, (char *) 0);
12251 (void) ac_decl;
2873927d 12252
54445dc2
TT
12253 ;
12254 return 0;
12255}
2873927d 12256_ACEOF
54445dc2
TT
12257if ac_fn_c_try_compile "$LINENO"
12258then :
12259 if test x"$ac_arg" = x
12260then :
12261 ac_cv_c_undeclared_builtin_options='none needed'
12262else $as_nop
12263 ac_cv_c_undeclared_builtin_options=$ac_arg
b0cacab0 12264fi
54445dc2 12265 break
57aa50d4 12266fi
54445dc2
TT
12267rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12268fi
12269rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12270 done
12271 CFLAGS=$ac_save_CFLAGS
12272
12273fi
12274{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
12275printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
12276 case $ac_cv_c_undeclared_builtin_options in #(
12277 'cannot detect') :
12278 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12279printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12280as_fn_error $? "cannot make $CC report undeclared builtins
12281See \`config.log' for more details" "$LINENO" 5; } ;; #(
12282 'none needed') :
12283 ac_c_undeclared_builtin_options='' ;; #(
12284 *) :
12285 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
12286esac
b0cacab0 12287
54445dc2
TT
12288ac_fn_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
12289" "$ac_c_undeclared_builtin_options" "CFLAGS"
12290if test "x$ac_cv_have_decl_llseek" = xyes
12291then :
d1154eb4 12292
54445dc2 12293printf "%s\n" "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
b0cacab0 12294
b0cacab0 12295fi
54445dc2 12296ac_fn_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
57aa50d4
TT
12297 #define _LARGEFILE64_SOURCE
12298 #include <unistd.h>
54445dc2
TT
12299" "$ac_c_undeclared_builtin_options" "CFLAGS"
12300if test "x$ac_cv_have_decl_lseek64" = xyes
12301then :
d1154eb4 12302
54445dc2 12303printf "%s\n" "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
b0cacab0 12304
b0cacab0 12305fi
57aa50d4
TT
12306# The cast to long int works around a bug in the HP C Compiler
12307# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12308# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12309# This bug is HP SR number 8606223364.
54445dc2
TT
12310{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12311printf %s "checking size of short... " >&6; }
12312if test ${ac_cv_sizeof_short+y}
12313then :
12314 printf %s "(cached) " >&6
12315else $as_nop
12316 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"
12317then :
12318
12319else $as_nop
57aa50d4 12320 if test "$ac_cv_type_short" = yes; then
54445dc2
TT
12321 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12322printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
d6a4bcb5
TB
12323as_fn_error 77 "cannot compute sizeof (short)
12324See \`config.log' for more details" "$LINENO" 5; }
57aa50d4
TT
12325 else
12326 ac_cv_sizeof_short=0
12327 fi
07a0db15 12328fi
b0cacab0 12329
b0cacab0 12330fi
54445dc2
TT
12331{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12332printf "%s\n" "$ac_cv_sizeof_short" >&6; }
e1052144 12333
93636bde 12334
57aa50d4 12335
54445dc2 12336printf "%s\n" "#define SIZEOF_SHORT $ac_cv_sizeof_short" >>confdefs.h
57aa50d4
TT
12337
12338
12339# The cast to long int works around a bug in the HP C Compiler
12340# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12341# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12342# This bug is HP SR number 8606223364.
54445dc2
TT
12343{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12344printf %s "checking size of int... " >&6; }
12345if test ${ac_cv_sizeof_int+y}
12346then :
12347 printf %s "(cached) " >&6
12348else $as_nop
12349 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"
12350then :
12351
12352else $as_nop
57aa50d4 12353 if test "$ac_cv_type_int" = yes; then
54445dc2
TT
12354 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12355printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
d6a4bcb5
TB
12356as_fn_error 77 "cannot compute sizeof (int)
12357See \`config.log' for more details" "$LINENO" 5; }
57aa50d4
TT
12358 else
12359 ac_cv_sizeof_int=0
12360 fi
07a0db15 12361fi
e1052144 12362
b0cacab0 12363fi
54445dc2
TT
12364{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12365printf "%s\n" "$ac_cv_sizeof_int" >&6; }
e1052144 12366
93636bde 12367
57aa50d4 12368
54445dc2 12369printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h
b0cacab0 12370
e1052144 12371
57aa50d4
TT
12372# The cast to long int works around a bug in the HP C Compiler
12373# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12374# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12375# This bug is HP SR number 8606223364.
54445dc2
TT
12376{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12377printf %s "checking size of long... " >&6; }
12378if test ${ac_cv_sizeof_long+y}
12379then :
12380 printf %s "(cached) " >&6
12381else $as_nop
12382 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"
12383then :
12384
12385else $as_nop
57aa50d4 12386 if test "$ac_cv_type_long" = yes; then
54445dc2
TT
12387 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12388printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
d6a4bcb5
TB
12389as_fn_error 77 "cannot compute sizeof (long)
12390See \`config.log' for more details" "$LINENO" 5; }
29a5deed 12391 else
57aa50d4
TT
12392 ac_cv_sizeof_long=0
12393 fi
12394fi
39fd3d4f 12395
57aa50d4 12396fi
54445dc2
TT
12397{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12398printf "%s\n" "$ac_cv_sizeof_long" >&6; }
39fd3d4f 12399
57aa50d4
TT
12400
12401
54445dc2 12402printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h
57aa50d4
TT
12403
12404
12405# The cast to long int works around a bug in the HP C Compiler
12406# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12407# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12408# This bug is HP SR number 8606223364.
54445dc2
TT
12409{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12410printf %s "checking size of long long... " >&6; }
12411if test ${ac_cv_sizeof_long_long+y}
12412then :
12413 printf %s "(cached) " >&6
12414else $as_nop
12415 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"
12416then :
12417
12418else $as_nop
57aa50d4 12419 if test "$ac_cv_type_long_long" = yes; then
54445dc2
TT
12420 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12421printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
d6a4bcb5
TB
12422as_fn_error 77 "cannot compute sizeof (long long)
12423See \`config.log' for more details" "$LINENO" 5; }
39fd3d4f
SJR
12424 else
12425 ac_cv_sizeof_long_long=0
12426 fi
12427fi
57aa50d4 12428
39fd3d4f 12429fi
54445dc2
TT
12430{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12431printf "%s\n" "$ac_cv_sizeof_long_long" >&6; }
39fd3d4f
SJR
12432
12433
12434
54445dc2 12435printf "%s\n" "#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long" >>confdefs.h
39fd3d4f
SJR
12436
12437
cc68e8a6
TT
12438# The cast to long int works around a bug in the HP C Compiler
12439# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12440# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12441# This bug is HP SR number 8606223364.
54445dc2
TT
12442{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
12443printf %s "checking size of off_t... " >&6; }
12444if test ${ac_cv_sizeof_off_t+y}
12445then :
12446 printf %s "(cached) " >&6
12447else $as_nop
12448 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"
12449then :
12450
12451else $as_nop
cc68e8a6 12452 if test "$ac_cv_type_off_t" = yes; then
54445dc2
TT
12453 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12454printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
cc68e8a6
TT
12455as_fn_error 77 "cannot compute sizeof (off_t)
12456See \`config.log' for more details" "$LINENO" 5; }
12457 else
12458 ac_cv_sizeof_off_t=0
12459 fi
12460fi
12461
12462fi
54445dc2
TT
12463{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
12464printf "%s\n" "$ac_cv_sizeof_off_t" >&6; }
cc68e8a6
TT
12465
12466
12467
54445dc2 12468printf "%s\n" "#define SIZEOF_OFF_T $ac_cv_sizeof_off_t" >>confdefs.h
cc68e8a6
TT
12469
12470
2dd680f3
TT
12471# The cast to long int works around a bug in the HP C Compiler
12472# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12473# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12474# This bug is HP SR number 8606223364.
54445dc2
TT
12475{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
12476printf %s "checking size of time_t... " >&6; }
12477if test ${ac_cv_sizeof_time_t+y}
12478then :
12479 printf %s "(cached) " >&6
12480else $as_nop
12481 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"
12482then :
12483
12484else $as_nop
2dd680f3 12485 if test "$ac_cv_type_time_t" = yes; then
54445dc2
TT
12486 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12487printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2dd680f3
TT
12488as_fn_error 77 "cannot compute sizeof (time_t)
12489See \`config.log' for more details" "$LINENO" 5; }
12490 else
12491 ac_cv_sizeof_time_t=0
12492 fi
12493fi
12494
12495fi
54445dc2
TT
12496{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
12497printf "%s\n" "$ac_cv_sizeof_time_t" >&6; }
2dd680f3
TT
12498
12499
12500
54445dc2 12501printf "%s\n" "#define SIZEOF_TIME_T $ac_cv_sizeof_time_t" >>confdefs.h
2dd680f3
TT
12502
12503
39fd3d4f
SJR
12504SIZEOF_SHORT=$ac_cv_sizeof_short
12505SIZEOF_INT=$ac_cv_sizeof_int
12506SIZEOF_LONG=$ac_cv_sizeof_long
12507SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
cc68e8a6 12508SIZEOF_OFF_T=$ac_cv_sizeof_off_t
2dd680f3
TT
12509SIZEOF_TIME_T=$ac_cv_sizeof_time_t
12510
cc68e8a6 12511
39fd3d4f
SJR
12512
12513
12514
12515
54445dc2
TT
12516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12517printf %s "checking whether byte ordering is bigendian... " >&6; }
12518if test ${ac_cv_c_bigendian+y}
12519then :
12520 printf %s "(cached) " >&6
12521else $as_nop
39fd3d4f
SJR
12522 ac_cv_c_bigendian=unknown
12523 # See if we're dealing with a universal compiler.
57aa50d4 12524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39fd3d4f
SJR
12525/* end confdefs.h. */
12526#ifndef __APPLE_CC__
12527 not a universal capable compiler
12528 #endif
12529 typedef int dummy;
12530
12531_ACEOF
54445dc2
TT
12532if ac_fn_c_try_compile "$LINENO"
12533then :
39fd3d4f
SJR
12534
12535 # Check for potential -arch flags. It is not universal unless
57aa50d4
TT
12536 # there are at least two -arch flags with different values.
12537 ac_arch=
12538 ac_prev=
12539 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12540 if test -n "$ac_prev"; then
12541 case $ac_word in
12542 i?86 | x86_64 | ppc | ppc64)
12543 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12544 ac_arch=$ac_word
12545 else
12546 ac_cv_c_bigendian=universal
12547 break
12548 fi
12549 ;;
12550 esac
12551 ac_prev=
12552 elif test "x$ac_word" = "x-arch"; then
12553 ac_prev=arch
12554 fi
12555 done
39fd3d4f 12556fi
54445dc2 12557rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
39fd3d4f
SJR
12558 if test $ac_cv_c_bigendian = unknown; then
12559 # See if sys/param.h defines the BYTE_ORDER macro.
57aa50d4 12560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39fd3d4f
SJR
12561/* end confdefs.h. */
12562#include <sys/types.h>
12563 #include <sys/param.h>
12564
12565int
54445dc2 12566main (void)
39fd3d4f
SJR
12567{
12568#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12569 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12570 && LITTLE_ENDIAN)
12571 bogus endian macros
12572 #endif
12573
12574 ;
12575 return 0;
12576}
12577_ACEOF
54445dc2
TT
12578if ac_fn_c_try_compile "$LINENO"
12579then :
39fd3d4f 12580 # It does; now see whether it defined to BIG_ENDIAN or not.
57aa50d4 12581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39fd3d4f
SJR
12582/* end confdefs.h. */
12583#include <sys/types.h>
12584 #include <sys/param.h>
12585
b0cacab0 12586int
54445dc2 12587main (void)
07a0db15 12588{
39fd3d4f
SJR
12589#if BYTE_ORDER != BIG_ENDIAN
12590 not big endian
12591 #endif
b0cacab0
TT
12592
12593 ;
12594 return 0;
07a0db15 12595}
b0cacab0 12596_ACEOF
54445dc2
TT
12597if ac_fn_c_try_compile "$LINENO"
12598then :
39fd3d4f 12599 ac_cv_c_bigendian=yes
54445dc2 12600else $as_nop
57aa50d4 12601 ac_cv_c_bigendian=no
fc6d9d51 12602fi
54445dc2 12603rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
39fd3d4f 12604fi
54445dc2 12605rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
39fd3d4f
SJR
12606 fi
12607 if test $ac_cv_c_bigendian = unknown; then
12608 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
57aa50d4 12609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 12610/* end confdefs.h. */
39fd3d4f 12611#include <limits.h>
877eb6d9 12612
b0cacab0 12613int
54445dc2 12614main (void)
b0cacab0 12615{
39fd3d4f
SJR
12616#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12617 bogus endian macros
12618 #endif
b0cacab0
TT
12619
12620 ;
12621 return 0;
12622}
b0cacab0 12623_ACEOF
54445dc2
TT
12624if ac_fn_c_try_compile "$LINENO"
12625then :
57aa50d4
TT
12626 # It does; now see whether it defined to _BIG_ENDIAN or not.
12627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 12628/* end confdefs.h. */
39fd3d4f 12629#include <limits.h>
877eb6d9 12630
b0cacab0 12631int
54445dc2 12632main (void)
b0cacab0 12633{
39fd3d4f
SJR
12634#ifndef _BIG_ENDIAN
12635 not big endian
12636 #endif
b0cacab0
TT
12637
12638 ;
12639 return 0;
12640}
12641_ACEOF
54445dc2
TT
12642if ac_fn_c_try_compile "$LINENO"
12643then :
877eb6d9 12644 ac_cv_c_bigendian=yes
54445dc2 12645else $as_nop
57aa50d4 12646 ac_cv_c_bigendian=no
877eb6d9 12647fi
54445dc2 12648rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
39fd3d4f 12649fi
54445dc2 12650rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
39fd3d4f
SJR
12651 fi
12652 if test $ac_cv_c_bigendian = unknown; then
12653 # Compile a test program.
54445dc2
TT
12654 if test "$cross_compiling" = yes
12655then :
39fd3d4f 12656 # Try to guess by grepping values from an object file.
57aa50d4 12657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 12658/* end confdefs.h. */
54445dc2 12659unsigned short int ascii_mm[] =
39fd3d4f 12660 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
54445dc2 12661 unsigned short int ascii_ii[] =
39fd3d4f
SJR
12662 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12663 int use_ascii (int i) {
12664 return ascii_mm[i] + ascii_ii[i];
12665 }
54445dc2 12666 unsigned short int ebcdic_ii[] =
39fd3d4f 12667 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
54445dc2 12668 unsigned short int ebcdic_mm[] =
39fd3d4f
SJR
12669 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12670 int use_ebcdic (int i) {
12671 return ebcdic_mm[i] + ebcdic_ii[i];
12672 }
12673 extern int foo;
12674
b0cacab0 12675int
54445dc2 12676main (void)
b0cacab0 12677{
39fd3d4f 12678return use_ascii (foo) == use_ebcdic (foo);
b0cacab0
TT
12679 ;
12680 return 0;
12681}
12682_ACEOF
54445dc2
TT
12683if ac_fn_c_try_compile "$LINENO"
12684then :
39fd3d4f
SJR
12685 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12686 ac_cv_c_bigendian=yes
12687 fi
12688 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12689 if test "$ac_cv_c_bigendian" = unknown; then
12690 ac_cv_c_bigendian=no
12691 else
12692 # finding both strings is unlikely to happen, but who knows?
12693 ac_cv_c_bigendian=unknown
12694 fi
12695 fi
b0cacab0 12696fi
54445dc2
TT
12697rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12698else $as_nop
57aa50d4 12699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 12700/* end confdefs.h. */
e1052144 12701$ac_includes_default
b0cacab0 12702int
54445dc2 12703main (void)
b0cacab0 12704{
e1052144 12705
39fd3d4f
SJR
12706 /* Are we little or big endian? From Harbison&Steele. */
12707 union
12708 {
12709 long int l;
12710 char c[sizeof (long int)];
12711 } u;
12712 u.l = 1;
12713 return u.c[sizeof (long int) - 1] == 1;
e1052144
TT
12714
12715 ;
12716 return 0;
877eb6d9 12717}
b0cacab0 12718_ACEOF
54445dc2
TT
12719if ac_fn_c_try_run "$LINENO"
12720then :
877eb6d9 12721 ac_cv_c_bigendian=no
54445dc2 12722else $as_nop
57aa50d4 12723 ac_cv_c_bigendian=yes
877eb6d9 12724fi
57aa50d4
TT
12725rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12726 conftest.$ac_objext conftest.beam conftest.$ac_ext
877eb6d9 12727fi
e1052144 12728
39fd3d4f 12729 fi
877eb6d9 12730fi
54445dc2
TT
12731{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12732printf "%s\n" "$ac_cv_c_bigendian" >&6; }
39fd3d4f
SJR
12733 case $ac_cv_c_bigendian in #(
12734 yes)
54445dc2 12735 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
39fd3d4f
SJR
12736;; #(
12737 no)
12738 ;; #(
12739 universal)
07a0db15 12740
54445dc2 12741printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
39fd3d4f
SJR
12742
12743 ;; #(
12744 *)
d6a4bcb5 12745 as_fn_error $? "unknown endianness
57aa50d4 12746 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
39fd3d4f 12747 esac
877eb6d9 12748
91f04685
CQ
12749if test $cross_compiling = no; then
12750 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12751else
12752 CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12753fi
4ea7ea00
TT
12754ASM_TYPES_HEADER=./asm_types.h
12755
488c75a6
TT
12756echo "/* These defines are needed for the public ext2fs.h header file */" \
12757 > public_config.h
12758if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
12759 uniq tmp_config.$$ >> public_config.h
12760else
12761 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
12762fi
12763if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
12764 uniq tmp_config.$$ >> public_config.h
12765else
12766 echo "#undef WORDS_BIGENDIAN" >> public_config.h
12767fi
12768rm -f tmp_config.$$
12769PUBLIC_CONFIG_HEADER=./public_config.h
12770
54445dc2
TT
12771ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
12772if test "x$ac_cv_header_inttypes_h" = xyes
12773then :
12774 printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
b0cacab0
TT
12775
12776fi
12777
57aa50d4 12778ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
54445dc2
TT
12779if test "x$ac_cv_type_intptr_t" = xyes
12780then :
b0cacab0 12781
54445dc2 12782printf "%s\n" "#define HAVE_INTPTR_T 1" >>confdefs.h
0c193f82 12783
d2ee56d8 12784
0c193f82
TT
12785fi
12786
54445dc2
TT
12787{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
12788printf %s "checking whether struct stat has a st_flags field... " >&6; }
12789if test ${e2fsprogs_cv_struct_st_flags+y}
12790then :
12791 printf %s "(cached) " >&6
12792else $as_nop
57aa50d4 12793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 12794/* end confdefs.h. */
50e1e10f 12795#include <sys/stat.h>
b0cacab0 12796int
54445dc2 12797main (void)
b0cacab0 12798{
50e1e10f 12799struct stat stat; stat.st_flags = 0;
b0cacab0
TT
12800 ;
12801 return 0;
12802}
12803_ACEOF
54445dc2
TT
12804if ac_fn_c_try_compile "$LINENO"
12805then :
50e1e10f 12806 e2fsprogs_cv_struct_st_flags=yes
54445dc2 12807else $as_nop
57aa50d4 12808 e2fsprogs_cv_struct_st_flags=no
50e1e10f 12809fi
54445dc2
TT
12810rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12811fi
12812
12813{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
12814printf "%s\n" "$e2fsprogs_cv_struct_st_flags" >&6; }
12815if test "$e2fsprogs_cv_struct_st_flags" = yes; then
12816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
12817printf %s "checking whether st_flags field is useful... " >&6; }
12818 if test ${e2fsprogs_cv_struct_st_flags_immut+y}
12819then :
12820 printf %s "(cached) " >&6
12821else $as_nop
12822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12823/* end confdefs.h. */
12824#include <sys/stat.h>
12825int
12826main (void)
12827{
12828struct stat stat; stat.st_flags |= UF_IMMUTABLE;
12829 ;
12830 return 0;
12831}
12832_ACEOF
12833if ac_fn_c_try_compile "$LINENO"
12834then :
12835 e2fsprogs_cv_struct_st_flags_immut=yes
12836else $as_nop
12837 e2fsprogs_cv_struct_st_flags_immut=no
12838fi
12839rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12840fi
12841
12842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
12843printf "%s\n" "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
12844 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
12845
12846printf "%s\n" "#define HAVE_STAT_FLAGS 1" >>confdefs.h
12847
12848 fi
12849fi
12850ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
12851 #include <sys/socket.h>
12852"
12853if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes
12854then :
12855
12856printf "%s\n" "#define HAVE_SA_LEN 1" >>confdefs.h
12857
12858fi
12859
12860if test -n "$BLKID_CMT"; then
12861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_probe_get_topology in -lblkid" >&5
12862printf %s "checking for blkid_probe_get_topology in -lblkid... " >&6; }
12863if test ${ac_cv_lib_blkid_blkid_probe_get_topology+y}
12864then :
12865 printf %s "(cached) " >&6
12866else $as_nop
12867 ac_check_lib_save_LIBS=$LIBS
12868LIBS="-lblkid $LIBS"
12869cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12870/* end confdefs.h. */
12871
12872/* Override any GCC internal prototype to avoid an error.
12873 Use char because int might match the return type of a GCC
12874 builtin and then its argument prototype would still apply. */
12875char blkid_probe_get_topology ();
12876int
12877main (void)
12878{
12879return blkid_probe_get_topology ();
12880 ;
12881 return 0;
12882}
12883_ACEOF
12884if ac_fn_c_try_link "$LINENO"
12885then :
12886 ac_cv_lib_blkid_blkid_probe_get_topology=yes
12887else $as_nop
12888 ac_cv_lib_blkid_blkid_probe_get_topology=no
12889fi
12890rm -f core conftest.err conftest.$ac_objext conftest.beam \
12891 conftest$ac_exeext conftest.$ac_ext
12892LIBS=$ac_check_lib_save_LIBS
12893fi
12894{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_probe_get_topology" >&5
12895printf "%s\n" "$ac_cv_lib_blkid_blkid_probe_get_topology" >&6; }
12896if test "x$ac_cv_lib_blkid_blkid_probe_get_topology" = xyes
12897then :
12898
12899printf "%s\n" "#define HAVE_BLKID_PROBE_GET_TOPOLOGY 1" >>confdefs.h
12900
12901fi
12902
12903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_topology_get_dax in -lblkid" >&5
12904printf %s "checking for blkid_topology_get_dax in -lblkid... " >&6; }
12905if test ${ac_cv_lib_blkid_blkid_topology_get_dax+y}
12906then :
12907 printf %s "(cached) " >&6
12908else $as_nop
12909 ac_check_lib_save_LIBS=$LIBS
12910LIBS="-lblkid $LIBS"
12911cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12912/* end confdefs.h. */
12913
12914/* Override any GCC internal prototype to avoid an error.
12915 Use char because int might match the return type of a GCC
12916 builtin and then its argument prototype would still apply. */
12917char blkid_topology_get_dax ();
12918int
12919main (void)
12920{
12921return blkid_topology_get_dax ();
12922 ;
12923 return 0;
12924}
12925_ACEOF
12926if ac_fn_c_try_link "$LINENO"
12927then :
12928 ac_cv_lib_blkid_blkid_topology_get_dax=yes
12929else $as_nop
12930 ac_cv_lib_blkid_blkid_topology_get_dax=no
12931fi
12932rm -f core conftest.err conftest.$ac_objext conftest.beam \
12933 conftest$ac_exeext conftest.$ac_ext
12934LIBS=$ac_check_lib_save_LIBS
12935fi
12936{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_topology_get_dax" >&5
12937printf "%s\n" "$ac_cv_lib_blkid_blkid_topology_get_dax" >&6; }
12938if test "x$ac_cv_lib_blkid_blkid_topology_get_dax" = xyes
12939then :
12940
12941printf "%s\n" "#define HAVE_BLKID_TOPOLOGY_GET_DAX 1" >>confdefs.h
12942
12943fi
12944
12945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_probe_enable_partitions in -lblkid" >&5
12946printf %s "checking for blkid_probe_enable_partitions in -lblkid... " >&6; }
12947if test ${ac_cv_lib_blkid_blkid_probe_enable_partitions+y}
12948then :
12949 printf %s "(cached) " >&6
12950else $as_nop
12951 ac_check_lib_save_LIBS=$LIBS
12952LIBS="-lblkid $LIBS"
12953cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12954/* end confdefs.h. */
12955
12956/* Override any GCC internal prototype to avoid an error.
12957 Use char because int might match the return type of a GCC
12958 builtin and then its argument prototype would still apply. */
12959char blkid_probe_enable_partitions ();
12960int
12961main (void)
12962{
12963return blkid_probe_enable_partitions ();
12964 ;
12965 return 0;
12966}
12967_ACEOF
12968if ac_fn_c_try_link "$LINENO"
12969then :
12970 ac_cv_lib_blkid_blkid_probe_enable_partitions=yes
12971else $as_nop
12972 ac_cv_lib_blkid_blkid_probe_enable_partitions=no
12973fi
12974rm -f core conftest.err conftest.$ac_objext conftest.beam \
12975 conftest$ac_exeext conftest.$ac_ext
12976LIBS=$ac_check_lib_save_LIBS
12977fi
12978{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_probe_enable_partitions" >&5
12979printf "%s\n" "$ac_cv_lib_blkid_blkid_probe_enable_partitions" >&6; }
12980if test "x$ac_cv_lib_blkid_blkid_probe_enable_partitions" = xyes
12981then :
12982
12983printf "%s\n" "#define HAVE_BLKID_PROBE_ENABLE_PARTITIONS 1" >>confdefs.h
12984
12985fi
12986
12987fi
12988if test -n "$DLOPEN_LIB" ; then
12989 ac_cv_func_dlopen=yes
12990fi
12991ac_fn_c_check_func "$LINENO" "__secure_getenv" "ac_cv_func___secure_getenv"
12992if test "x$ac_cv_func___secure_getenv" = xyes
12993then :
12994 printf "%s\n" "#define HAVE___SECURE_GETENV 1" >>confdefs.h
12995
12996fi
12997ac_fn_c_check_func "$LINENO" "add_key" "ac_cv_func_add_key"
12998if test "x$ac_cv_func_add_key" = xyes
12999then :
13000 printf "%s\n" "#define HAVE_ADD_KEY 1" >>confdefs.h
13001
13002fi
13003ac_fn_c_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace"
13004if test "x$ac_cv_func_backtrace" = xyes
13005then :
13006 printf "%s\n" "#define HAVE_BACKTRACE 1" >>confdefs.h
13007
13008fi
13009ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
13010if test "x$ac_cv_func_chflags" = xyes
13011then :
13012 printf "%s\n" "#define HAVE_CHFLAGS 1" >>confdefs.h
13013
13014fi
13015ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13016if test "x$ac_cv_func_dlopen" = xyes
13017then :
13018 printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h
13019
13020fi
13021ac_fn_c_check_func "$LINENO" "fadvise64" "ac_cv_func_fadvise64"
13022if test "x$ac_cv_func_fadvise64" = xyes
13023then :
13024 printf "%s\n" "#define HAVE_FADVISE64 1" >>confdefs.h
13025
13026fi
13027ac_fn_c_check_func "$LINENO" "fallocate" "ac_cv_func_fallocate"
13028if test "x$ac_cv_func_fallocate" = xyes
13029then :
13030 printf "%s\n" "#define HAVE_FALLOCATE 1" >>confdefs.h
13031
13032fi
13033ac_fn_c_check_func "$LINENO" "fallocate64" "ac_cv_func_fallocate64"
13034if test "x$ac_cv_func_fallocate64" = xyes
13035then :
13036 printf "%s\n" "#define HAVE_FALLOCATE64 1" >>confdefs.h
13037
13038fi
13039ac_fn_c_check_func "$LINENO" "fchown" "ac_cv_func_fchown"
13040if test "x$ac_cv_func_fchown" = xyes
13041then :
13042 printf "%s\n" "#define HAVE_FCHOWN 1" >>confdefs.h
13043
13044fi
13045ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
13046if test "x$ac_cv_func_fcntl" = xyes
13047then :
13048 printf "%s\n" "#define HAVE_FCNTL 1" >>confdefs.h
13049
13050fi
13051ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
13052if test "x$ac_cv_func_fdatasync" = xyes
13053then :
13054 printf "%s\n" "#define HAVE_FDATASYNC 1" >>confdefs.h
13055
13056fi
13057ac_fn_c_check_func "$LINENO" "fstat64" "ac_cv_func_fstat64"
13058if test "x$ac_cv_func_fstat64" = xyes
13059then :
13060 printf "%s\n" "#define HAVE_FSTAT64 1" >>confdefs.h
13061
13062fi
13063ac_fn_c_check_func "$LINENO" "fsync" "ac_cv_func_fsync"
13064if test "x$ac_cv_func_fsync" = xyes
13065then :
13066 printf "%s\n" "#define HAVE_FSYNC 1" >>confdefs.h
13067
13068fi
13069ac_fn_c_check_func "$LINENO" "ftruncate64" "ac_cv_func_ftruncate64"
13070if test "x$ac_cv_func_ftruncate64" = xyes
13071then :
13072 printf "%s\n" "#define HAVE_FTRUNCATE64 1" >>confdefs.h
13073
13074fi
13075ac_fn_c_check_func "$LINENO" "futimes" "ac_cv_func_futimes"
13076if test "x$ac_cv_func_futimes" = xyes
13077then :
13078 printf "%s\n" "#define HAVE_FUTIMES 1" >>confdefs.h
13079
13080fi
13081ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
13082if test "x$ac_cv_func_getcwd" = xyes
13083then :
13084 printf "%s\n" "#define HAVE_GETCWD 1" >>confdefs.h
13085
13086fi
13087ac_fn_c_check_func "$LINENO" "getdtablesize" "ac_cv_func_getdtablesize"
13088if test "x$ac_cv_func_getdtablesize" = xyes
13089then :
13090 printf "%s\n" "#define HAVE_GETDTABLESIZE 1" >>confdefs.h
13091
13092fi
13093ac_fn_c_check_func "$LINENO" "getentropy" "ac_cv_func_getentropy"
13094if test "x$ac_cv_func_getentropy" = xyes
13095then :
13096 printf "%s\n" "#define HAVE_GETENTROPY 1" >>confdefs.h
13097
13098fi
13099ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
13100if test "x$ac_cv_func_gethostname" = xyes
13101then :
13102 printf "%s\n" "#define HAVE_GETHOSTNAME 1" >>confdefs.h
13103
13104fi
13105ac_fn_c_check_func "$LINENO" "getmntinfo" "ac_cv_func_getmntinfo"
13106if test "x$ac_cv_func_getmntinfo" = xyes
13107then :
13108 printf "%s\n" "#define HAVE_GETMNTINFO 1" >>confdefs.h
13109
13110fi
13111ac_fn_c_check_func "$LINENO" "getpwuid_r" "ac_cv_func_getpwuid_r"
13112if test "x$ac_cv_func_getpwuid_r" = xyes
13113then :
13114 printf "%s\n" "#define HAVE_GETPWUID_R 1" >>confdefs.h
13115
13116fi
13117ac_fn_c_check_func "$LINENO" "getrandom" "ac_cv_func_getrandom"
13118if test "x$ac_cv_func_getrandom" = xyes
13119then :
13120 printf "%s\n" "#define HAVE_GETRANDOM 1" >>confdefs.h
13121
13122fi
13123ac_fn_c_check_func "$LINENO" "getrlimit" "ac_cv_func_getrlimit"
13124if test "x$ac_cv_func_getrlimit" = xyes
13125then :
13126 printf "%s\n" "#define HAVE_GETRLIMIT 1" >>confdefs.h
13127
13128fi
13129ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage"
13130if test "x$ac_cv_func_getrusage" = xyes
13131then :
13132 printf "%s\n" "#define HAVE_GETRUSAGE 1" >>confdefs.h
13133
13134fi
13135ac_fn_c_check_func "$LINENO" "jrand48" "ac_cv_func_jrand48"
13136if test "x$ac_cv_func_jrand48" = xyes
13137then :
13138 printf "%s\n" "#define HAVE_JRAND48 1" >>confdefs.h
13139
13140fi
13141ac_fn_c_check_func "$LINENO" "keyctl" "ac_cv_func_keyctl"
13142if test "x$ac_cv_func_keyctl" = xyes
13143then :
13144 printf "%s\n" "#define HAVE_KEYCTL 1" >>confdefs.h
13145
13146fi
13147ac_fn_c_check_func "$LINENO" "llistxattr" "ac_cv_func_llistxattr"
13148if test "x$ac_cv_func_llistxattr" = xyes
13149then :
13150 printf "%s\n" "#define HAVE_LLISTXATTR 1" >>confdefs.h
13151
13152fi
13153ac_fn_c_check_func "$LINENO" "llseek" "ac_cv_func_llseek"
13154if test "x$ac_cv_func_llseek" = xyes
13155then :
13156 printf "%s\n" "#define HAVE_LLSEEK 1" >>confdefs.h
13157
13158fi
13159ac_fn_c_check_func "$LINENO" "lseek64" "ac_cv_func_lseek64"
13160if test "x$ac_cv_func_lseek64" = xyes
13161then :
13162 printf "%s\n" "#define HAVE_LSEEK64 1" >>confdefs.h
13163
13164fi
13165ac_fn_c_check_func "$LINENO" "mallinfo" "ac_cv_func_mallinfo"
13166if test "x$ac_cv_func_mallinfo" = xyes
13167then :
13168 printf "%s\n" "#define HAVE_MALLINFO 1" >>confdefs.h
13169
13170fi
13171ac_fn_c_check_func "$LINENO" "mallinfo2" "ac_cv_func_mallinfo2"
13172if test "x$ac_cv_func_mallinfo2" = xyes
13173then :
13174 printf "%s\n" "#define HAVE_MALLINFO2 1" >>confdefs.h
13175
13176fi
13177ac_fn_c_check_func "$LINENO" "mbstowcs" "ac_cv_func_mbstowcs"
13178if test "x$ac_cv_func_mbstowcs" = xyes
13179then :
13180 printf "%s\n" "#define HAVE_MBSTOWCS 1" >>confdefs.h
13181
13182fi
13183ac_fn_c_check_func "$LINENO" "memalign" "ac_cv_func_memalign"
13184if test "x$ac_cv_func_memalign" = xyes
13185then :
13186 printf "%s\n" "#define HAVE_MEMALIGN 1" >>confdefs.h
13187
13188fi
13189ac_fn_c_check_func "$LINENO" "mempcpy" "ac_cv_func_mempcpy"
13190if test "x$ac_cv_func_mempcpy" = xyes
13191then :
13192 printf "%s\n" "#define HAVE_MEMPCPY 1" >>confdefs.h
13193
13194fi
13195ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
13196if test "x$ac_cv_func_mmap" = xyes
13197then :
13198 printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
13199
13200fi
13201ac_fn_c_check_func "$LINENO" "msync" "ac_cv_func_msync"
13202if test "x$ac_cv_func_msync" = xyes
13203then :
13204 printf "%s\n" "#define HAVE_MSYNC 1" >>confdefs.h
13205
13206fi
13207ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
13208if test "x$ac_cv_func_nanosleep" = xyes
13209then :
13210 printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
13211
13212fi
13213ac_fn_c_check_func "$LINENO" "open64" "ac_cv_func_open64"
13214if test "x$ac_cv_func_open64" = xyes
13215then :
13216 printf "%s\n" "#define HAVE_OPEN64 1" >>confdefs.h
13217
13218fi
13219ac_fn_c_check_func "$LINENO" "pathconf" "ac_cv_func_pathconf"
13220if test "x$ac_cv_func_pathconf" = xyes
13221then :
13222 printf "%s\n" "#define HAVE_PATHCONF 1" >>confdefs.h
13223
13224fi
13225ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
13226if test "x$ac_cv_func_posix_fadvise" = xyes
13227then :
13228 printf "%s\n" "#define HAVE_POSIX_FADVISE 1" >>confdefs.h
13229
50e1e10f 13230fi
54445dc2
TT
13231ac_fn_c_check_func "$LINENO" "posix_fadvise64" "ac_cv_func_posix_fadvise64"
13232if test "x$ac_cv_func_posix_fadvise64" = xyes
13233then :
13234 printf "%s\n" "#define HAVE_POSIX_FADVISE64 1" >>confdefs.h
50e1e10f 13235
84ea6e70 13236fi
54445dc2
TT
13237ac_fn_c_check_func "$LINENO" "posix_memalign" "ac_cv_func_posix_memalign"
13238if test "x$ac_cv_func_posix_memalign" = xyes
13239then :
13240 printf "%s\n" "#define HAVE_POSIX_MEMALIGN 1" >>confdefs.h
13241
84ea6e70 13242fi
54445dc2
TT
13243ac_fn_c_check_func "$LINENO" "prctl" "ac_cv_func_prctl"
13244if test "x$ac_cv_func_prctl" = xyes
13245then :
13246 printf "%s\n" "#define HAVE_PRCTL 1" >>confdefs.h
e1052144 13247
54445dc2
TT
13248fi
13249ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread"
13250if test "x$ac_cv_func_pread" = xyes
13251then :
13252 printf "%s\n" "#define HAVE_PREAD 1" >>confdefs.h
d1154eb4 13253
54445dc2
TT
13254fi
13255ac_fn_c_check_func "$LINENO" "pwrite" "ac_cv_func_pwrite"
13256if test "x$ac_cv_func_pwrite" = xyes
13257then :
13258 printf "%s\n" "#define HAVE_PWRITE 1" >>confdefs.h
57aa50d4 13259
6c65d251 13260fi
54445dc2
TT
13261ac_fn_c_check_func "$LINENO" "pread64" "ac_cv_func_pread64"
13262if test "x$ac_cv_func_pread64" = xyes
13263then :
13264 printf "%s\n" "#define HAVE_PREAD64 1" >>confdefs.h
b0cacab0 13265
54445dc2
TT
13266fi
13267ac_fn_c_check_func "$LINENO" "pwrite64" "ac_cv_func_pwrite64"
13268if test "x$ac_cv_func_pwrite64" = xyes
13269then :
13270 printf "%s\n" "#define HAVE_PWRITE64 1" >>confdefs.h
84ea6e70 13271
50e1e10f 13272fi
54445dc2
TT
13273ac_fn_c_check_func "$LINENO" "secure_getenv" "ac_cv_func_secure_getenv"
13274if test "x$ac_cv_func_secure_getenv" = xyes
13275then :
13276 printf "%s\n" "#define HAVE_SECURE_GETENV 1" >>confdefs.h
b0cacab0 13277
54445dc2
TT
13278fi
13279ac_fn_c_check_func "$LINENO" "setmntent" "ac_cv_func_setmntent"
13280if test "x$ac_cv_func_setmntent" = xyes
13281then :
13282 printf "%s\n" "#define HAVE_SETMNTENT 1" >>confdefs.h
9ed8e5fe 13283
9ed8e5fe 13284fi
54445dc2
TT
13285ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid"
13286if test "x$ac_cv_func_setresgid" = xyes
13287then :
13288 printf "%s\n" "#define HAVE_SETRESGID 1" >>confdefs.h
13289
9ed8e5fe 13290fi
54445dc2
TT
13291ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
13292if test "x$ac_cv_func_setresuid" = xyes
13293then :
13294 printf "%s\n" "#define HAVE_SETRESUID 1" >>confdefs.h
188bf39a 13295
54445dc2
TT
13296fi
13297ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
13298if test "x$ac_cv_func_snprintf" = xyes
13299then :
13300 printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h
7154d974 13301
e598c29b 13302fi
54445dc2
TT
13303ac_fn_c_check_func "$LINENO" "srandom" "ac_cv_func_srandom"
13304if test "x$ac_cv_func_srandom" = xyes
13305then :
13306 printf "%s\n" "#define HAVE_SRANDOM 1" >>confdefs.h
e598c29b 13307
54445dc2
TT
13308fi
13309ac_fn_c_check_func "$LINENO" "stpcpy" "ac_cv_func_stpcpy"
13310if test "x$ac_cv_func_stpcpy" = xyes
13311then :
13312 printf "%s\n" "#define HAVE_STPCPY 1" >>confdefs.h
e598c29b 13313
e598c29b 13314fi
54445dc2
TT
13315ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
13316if test "x$ac_cv_func_strcasecmp" = xyes
13317then :
13318 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
13319
e598c29b 13320fi
54445dc2
TT
13321ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
13322if test "x$ac_cv_func_strdup" = xyes
13323then :
13324 printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h
e598c29b 13325
54445dc2
TT
13326fi
13327ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen"
13328if test "x$ac_cv_func_strnlen" = xyes
13329then :
13330 printf "%s\n" "#define HAVE_STRNLEN 1" >>confdefs.h
e598c29b 13331
7154d974 13332fi
54445dc2
TT
13333ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
13334if test "x$ac_cv_func_strptime" = xyes
13335then :
13336 printf "%s\n" "#define HAVE_STRPTIME 1" >>confdefs.h
7154d974 13337
54445dc2
TT
13338fi
13339ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
13340if test "x$ac_cv_func_strtoull" = xyes
13341then :
13342 printf "%s\n" "#define HAVE_STRTOULL 1" >>confdefs.h
57aa50d4 13343
9ed8e5fe 13344fi
54445dc2
TT
13345ac_fn_c_check_func "$LINENO" "sync_file_range" "ac_cv_func_sync_file_range"
13346if test "x$ac_cv_func_sync_file_range" = xyes
13347then :
13348 printf "%s\n" "#define HAVE_SYNC_FILE_RANGE 1" >>confdefs.h
13349
9ed8e5fe 13350fi
54445dc2
TT
13351ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
13352if test "x$ac_cv_func_sysconf" = xyes
13353then :
13354 printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h
188bf39a 13355
54445dc2
TT
13356fi
13357ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep"
13358if test "x$ac_cv_func_usleep" = xyes
13359then :
13360 printf "%s\n" "#define HAVE_USLEEP 1" >>confdefs.h
9ed8e5fe
ES
13361
13362fi
54445dc2
TT
13363ac_fn_c_check_func "$LINENO" "utime" "ac_cv_func_utime"
13364if test "x$ac_cv_func_utime" = xyes
13365then :
13366 printf "%s\n" "#define HAVE_UTIME 1" >>confdefs.h
9ed8e5fe
ES
13367
13368fi
54445dc2
TT
13369ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes"
13370if test "x$ac_cv_func_utimes" = xyes
13371then :
13372 printf "%s\n" "#define HAVE_UTIMES 1" >>confdefs.h
13373
32179ce2 13374fi
54445dc2
TT
13375ac_fn_c_check_func "$LINENO" "valloc" "ac_cv_func_valloc"
13376if test "x$ac_cv_func_valloc" = xyes
13377then :
13378 printf "%s\n" "#define HAVE_VALLOC 1" >>confdefs.h
21c84b71 13379
50e1e10f 13380fi
50e1e10f 13381
fc6d9d51 13382SOCKET_LIB=''
54445dc2
TT
13383{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
13384printf %s "checking for socket in -lsocket... " >&6; }
13385if test ${ac_cv_lib_socket_socket+y}
13386then :
13387 printf %s "(cached) " >&6
13388else $as_nop
b0cacab0 13389 ac_check_lib_save_LIBS=$LIBS
fc6d9d51 13390LIBS="-lsocket $LIBS"
57aa50d4 13391cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 13392/* end confdefs.h. */
93636bde 13393
e1052144
TT
13394/* Override any GCC internal prototype to avoid an error.
13395 Use char because int might match the return type of a GCC
13396 builtin and then its argument prototype would still apply. */
b0cacab0
TT
13397char socket ();
13398int
54445dc2 13399main (void)
b0cacab0 13400{
e1052144 13401return socket ();
b0cacab0
TT
13402 ;
13403 return 0;
13404}
13405_ACEOF
54445dc2
TT
13406if ac_fn_c_try_link "$LINENO"
13407then :
b0cacab0 13408 ac_cv_lib_socket_socket=yes
54445dc2 13409else $as_nop
57aa50d4 13410 ac_cv_lib_socket_socket=no
b0cacab0 13411fi
54445dc2 13412rm -f core conftest.err conftest.$ac_objext conftest.beam \
57aa50d4 13413 conftest$ac_exeext conftest.$ac_ext
b0cacab0
TT
13414LIBS=$ac_check_lib_save_LIBS
13415fi
54445dc2
TT
13416{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
13417printf "%s\n" "$ac_cv_lib_socket_socket" >&6; }
13418if test "x$ac_cv_lib_socket_socket" = xyes
13419then :
fc6d9d51 13420 SOCKET_LIB=-lsocket
50e1e10f 13421fi
fc6d9d51 13422
93636bde 13423
54445dc2
TT
13424{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for magic_file in -lmagic" >&5
13425printf %s "checking for magic_file in -lmagic... " >&6; }
13426if test ${ac_cv_lib_magic_magic_file+y}
13427then :
13428 printf %s "(cached) " >&6
13429else $as_nop
b291c11f
DW
13430 ac_check_lib_save_LIBS=$LIBS
13431LIBS="-lmagic $LIBS"
13432cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13433/* end confdefs.h. */
13434
13435/* Override any GCC internal prototype to avoid an error.
13436 Use char because int might match the return type of a GCC
13437 builtin and then its argument prototype would still apply. */
b291c11f
DW
13438char magic_file ();
13439int
54445dc2 13440main (void)
b291c11f
DW
13441{
13442return magic_file ();
13443 ;
13444 return 0;
13445}
13446_ACEOF
54445dc2
TT
13447if ac_fn_c_try_link "$LINENO"
13448then :
b291c11f 13449 ac_cv_lib_magic_magic_file=yes
54445dc2 13450else $as_nop
b291c11f
DW
13451 ac_cv_lib_magic_magic_file=no
13452fi
54445dc2 13453rm -f core conftest.err conftest.$ac_objext conftest.beam \
b291c11f
DW
13454 conftest$ac_exeext conftest.$ac_ext
13455LIBS=$ac_check_lib_save_LIBS
13456fi
54445dc2
TT
13457{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_file" >&5
13458printf "%s\n" "$ac_cv_lib_magic_magic_file" >&6; }
13459if test "x$ac_cv_lib_magic_magic_file" = xyes
13460then :
b291c11f 13461 MAGIC_LIB=-lmagic
54445dc2
TT
13462ac_fn_c_check_header_compile "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
13463if test "x$ac_cv_header_magic_h" = xyes
13464then :
13465 printf "%s\n" "#define HAVE_MAGIC_H 1" >>confdefs.h
b291c11f
DW
13466
13467fi
13468
b291c11f
DW
13469fi
13470
32179ce2 13471if test "$ac_cv_func_dlopen" = yes ; then
d2e3c0dc
TT
13472 MAGIC_LIB=$DLOPEN_LIB
13473fi
b291c11f 13474
54445dc2
TT
13475{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
13476printf %s "checking for clock_gettime in -lrt... " >&6; }
13477if test ${ac_cv_lib_rt_clock_gettime+y}
13478then :
13479 printf %s "(cached) " >&6
13480else $as_nop
c94da047
TT
13481 ac_check_lib_save_LIBS=$LIBS
13482LIBS="-lrt $LIBS"
13483cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13484/* end confdefs.h. */
13485
13486/* Override any GCC internal prototype to avoid an error.
13487 Use char because int might match the return type of a GCC
13488 builtin and then its argument prototype would still apply. */
c94da047
TT
13489char clock_gettime ();
13490int
54445dc2 13491main (void)
c94da047
TT
13492{
13493return clock_gettime ();
13494 ;
13495 return 0;
13496}
13497_ACEOF
54445dc2
TT
13498if ac_fn_c_try_link "$LINENO"
13499then :
c94da047 13500 ac_cv_lib_rt_clock_gettime=yes
54445dc2 13501else $as_nop
c94da047
TT
13502 ac_cv_lib_rt_clock_gettime=no
13503fi
54445dc2 13504rm -f core conftest.err conftest.$ac_objext conftest.beam \
c94da047
TT
13505 conftest$ac_exeext conftest.$ac_ext
13506LIBS=$ac_check_lib_save_LIBS
13507fi
54445dc2
TT
13508{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
13509printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; }
13510if test "x$ac_cv_lib_rt_clock_gettime" = xyes
13511then :
c94da047
TT
13512 CLOCK_GETTIME_LIB=-lrt
13513fi
13514
13515
81cbf1ef
DW
13516FUSE_CMT=
13517FUSE_LIB=
13518# Check whether --enable-fuse2fs was given.
54445dc2
TT
13519if test ${enable_fuse2fs+y}
13520then :
81cbf1ef
DW
13521 enableval=$enable_fuse2fs; if test "$enableval" = "no"
13522then
13523 FUSE_CMT="#"
54445dc2
TT
13524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling fuse2fs" >&5
13525printf "%s\n" "Disabling fuse2fs" >&6; }
81cbf1ef 13526else
54445dc2 13527 for ac_header in pthread.h fuse.h
81cbf1ef 13528do :
54445dc2 13529 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
81cbf1ef
DW
13530ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
13531#define FUSE_USE_VERSION 29
13532"
54445dc2
TT
13533if eval test \"x\$"$as_ac_Header"\" = x"yes"
13534then :
81cbf1ef 13535 cat >>confdefs.h <<_ACEOF
54445dc2 13536#define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
81cbf1ef
DW
13537_ACEOF
13538
54445dc2
TT
13539else $as_nop
13540 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13541printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
81cbf1ef
DW
13542as_fn_error $? "Cannot find fuse2fs headers.
13543See \`config.log' for more details" "$LINENO" 5; }
13544fi
13545
13546done
13547
81cbf1ef
DW
13548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13549/* end confdefs.h. */
13550#define FUSE_USE_VERSION 29
13551#ifdef __linux__
13552#include <linux/fs.h>
13553#include <linux/falloc.h>
13554#include <linux/xattr.h>
13555#endif
13556
13557int
54445dc2 13558main (void)
81cbf1ef
DW
13559{
13560
13561 ;
13562 return 0;
13563}
13564_ACEOF
54445dc2
TT
13565if ac_fn_c_try_cpp "$LINENO"
13566then :
81cbf1ef 13567
54445dc2
TT
13568else $as_nop
13569 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13570printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
81cbf1ef
DW
13571as_fn_error $? "Cannot find fuse2fs Linux headers.
13572See \`config.log' for more details" "$LINENO" 5; }
13573fi
13574rm -f conftest.err conftest.i conftest.$ac_ext
13575
54445dc2
TT
13576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13577printf %s "checking for fuse_main in -losxfuse... " >&6; }
13578if test ${ac_cv_lib_osxfuse_fuse_main+y}
13579then :
13580 printf %s "(cached) " >&6
13581else $as_nop
81cbf1ef
DW
13582 ac_check_lib_save_LIBS=$LIBS
13583LIBS="-losxfuse $LIBS"
13584cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13585/* end confdefs.h. */
13586
13587/* Override any GCC internal prototype to avoid an error.
13588 Use char because int might match the return type of a GCC
13589 builtin and then its argument prototype would still apply. */
81cbf1ef
DW
13590char fuse_main ();
13591int
54445dc2 13592main (void)
81cbf1ef
DW
13593{
13594return fuse_main ();
13595 ;
13596 return 0;
13597}
13598_ACEOF
54445dc2
TT
13599if ac_fn_c_try_link "$LINENO"
13600then :
81cbf1ef 13601 ac_cv_lib_osxfuse_fuse_main=yes
54445dc2 13602else $as_nop
81cbf1ef
DW
13603 ac_cv_lib_osxfuse_fuse_main=no
13604fi
54445dc2 13605rm -f core conftest.err conftest.$ac_objext conftest.beam \
81cbf1ef
DW
13606 conftest$ac_exeext conftest.$ac_ext
13607LIBS=$ac_check_lib_save_LIBS
13608fi
54445dc2
TT
13609{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13610printf "%s\n" "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13611if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes
13612then :
81cbf1ef 13613 FUSE_LIB=-losxfuse
54445dc2
TT
13614else $as_nop
13615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13616printf %s "checking for fuse_main in -lfuse... " >&6; }
13617if test ${ac_cv_lib_fuse_fuse_main+y}
13618then :
13619 printf %s "(cached) " >&6
13620else $as_nop
81cbf1ef
DW
13621 ac_check_lib_save_LIBS=$LIBS
13622LIBS="-lfuse $LIBS"
13623cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13624/* end confdefs.h. */
13625
13626/* Override any GCC internal prototype to avoid an error.
13627 Use char because int might match the return type of a GCC
13628 builtin and then its argument prototype would still apply. */
81cbf1ef
DW
13629char fuse_main ();
13630int
54445dc2 13631main (void)
81cbf1ef
DW
13632{
13633return fuse_main ();
13634 ;
13635 return 0;
13636}
13637_ACEOF
54445dc2
TT
13638if ac_fn_c_try_link "$LINENO"
13639then :
81cbf1ef 13640 ac_cv_lib_fuse_fuse_main=yes
54445dc2 13641else $as_nop
81cbf1ef
DW
13642 ac_cv_lib_fuse_fuse_main=no
13643fi
54445dc2 13644rm -f core conftest.err conftest.$ac_objext conftest.beam \
81cbf1ef
DW
13645 conftest$ac_exeext conftest.$ac_ext
13646LIBS=$ac_check_lib_save_LIBS
13647fi
54445dc2
TT
13648{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13649printf "%s\n" "$ac_cv_lib_fuse_fuse_main" >&6; }
13650if test "x$ac_cv_lib_fuse_fuse_main" = xyes
13651then :
81cbf1ef 13652 FUSE_LIB=-lfuse
54445dc2
TT
13653else $as_nop
13654 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13655printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
81cbf1ef
DW
13656as_fn_error $? "Cannot find fuse library.
13657See \`config.log' for more details" "$LINENO" 5; }
13658fi
13659
13660fi
13661
54445dc2
TT
13662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs" >&5
13663printf "%s\n" "Enabling fuse2fs" >&6; }
81cbf1ef
DW
13664fi
13665
54445dc2
TT
13666else $as_nop
13667 for ac_header in pthread.h fuse.h
81cbf1ef 13668do :
54445dc2 13669 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
81cbf1ef
DW
13670ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
13671#define FUSE_USE_VERSION 29
13672#ifdef __linux__
13673# include <linux/fs.h>
13674# include <linux/falloc.h>
13675# include <linux/xattr.h>
13676#endif
13677"
54445dc2
TT
13678if eval test \"x\$"$as_ac_Header"\" = x"yes"
13679then :
81cbf1ef 13680 cat >>confdefs.h <<_ACEOF
54445dc2 13681#define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
81cbf1ef
DW
13682_ACEOF
13683
54445dc2 13684else $as_nop
81cbf1ef
DW
13685 FUSE_CMT="#"
13686fi
13687
13688done
81cbf1ef
DW
13689if test -z "$FUSE_CMT"
13690then
54445dc2
TT
13691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13692printf %s "checking for fuse_main in -losxfuse... " >&6; }
13693if test ${ac_cv_lib_osxfuse_fuse_main+y}
13694then :
13695 printf %s "(cached) " >&6
13696else $as_nop
81cbf1ef
DW
13697 ac_check_lib_save_LIBS=$LIBS
13698LIBS="-losxfuse $LIBS"
13699cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13700/* end confdefs.h. */
13701
13702/* Override any GCC internal prototype to avoid an error.
13703 Use char because int might match the return type of a GCC
13704 builtin and then its argument prototype would still apply. */
81cbf1ef
DW
13705char fuse_main ();
13706int
54445dc2 13707main (void)
81cbf1ef
DW
13708{
13709return fuse_main ();
13710 ;
13711 return 0;
13712}
13713_ACEOF
54445dc2
TT
13714if ac_fn_c_try_link "$LINENO"
13715then :
81cbf1ef 13716 ac_cv_lib_osxfuse_fuse_main=yes
54445dc2 13717else $as_nop
81cbf1ef
DW
13718 ac_cv_lib_osxfuse_fuse_main=no
13719fi
54445dc2 13720rm -f core conftest.err conftest.$ac_objext conftest.beam \
81cbf1ef
DW
13721 conftest$ac_exeext conftest.$ac_ext
13722LIBS=$ac_check_lib_save_LIBS
13723fi
54445dc2
TT
13724{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13725printf "%s\n" "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13726if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes
13727then :
81cbf1ef 13728 FUSE_LIB=-losxfuse
54445dc2
TT
13729else $as_nop
13730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13731printf %s "checking for fuse_main in -lfuse... " >&6; }
13732if test ${ac_cv_lib_fuse_fuse_main+y}
13733then :
13734 printf %s "(cached) " >&6
13735else $as_nop
81cbf1ef
DW
13736 ac_check_lib_save_LIBS=$LIBS
13737LIBS="-lfuse $LIBS"
13738cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13739/* end confdefs.h. */
13740
13741/* Override any GCC internal prototype to avoid an error.
13742 Use char because int might match the return type of a GCC
13743 builtin and then its argument prototype would still apply. */
81cbf1ef
DW
13744char fuse_main ();
13745int
54445dc2 13746main (void)
81cbf1ef
DW
13747{
13748return fuse_main ();
13749 ;
13750 return 0;
13751}
13752_ACEOF
54445dc2
TT
13753if ac_fn_c_try_link "$LINENO"
13754then :
81cbf1ef 13755 ac_cv_lib_fuse_fuse_main=yes
54445dc2 13756else $as_nop
81cbf1ef
DW
13757 ac_cv_lib_fuse_fuse_main=no
13758fi
54445dc2 13759rm -f core conftest.err conftest.$ac_objext conftest.beam \
81cbf1ef
DW
13760 conftest$ac_exeext conftest.$ac_ext
13761LIBS=$ac_check_lib_save_LIBS
13762fi
54445dc2
TT
13763{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13764printf "%s\n" "$ac_cv_lib_fuse_fuse_main" >&6; }
13765if test "x$ac_cv_lib_fuse_fuse_main" = xyes
13766then :
81cbf1ef 13767 FUSE_LIB=-lfuse
54445dc2 13768else $as_nop
81cbf1ef
DW
13769 FUSE_CMT="#"
13770fi
13771
13772fi
13773
13774fi
13775if test -z "$FUSE_CMT"
13776then
54445dc2
TT
13777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs by default." >&5
13778printf "%s\n" "Enabling fuse2fs by default." >&6; }
81cbf1ef
DW
13779fi
13780
13781fi
13782
13783
13784
54445dc2
TT
13785{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
13786printf %s "checking for optreset... " >&6; }
13787if test ${ac_cv_have_optreset+y}
13788then :
13789 printf %s "(cached) " >&6
13790else $as_nop
57aa50d4 13791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7f45af8 13792/* end confdefs.h. */
57aa50d4
TT
13793#include <unistd.h>
13794
13795_ACEOF
13796if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
54445dc2
TT
13797 $EGREP "optreset" >/dev/null 2>&1
13798then :
57aa50d4 13799 ac_cv_have_optreset=yes
54445dc2 13800else $as_nop
57aa50d4
TT
13801 ac_cv_have_optreset=no
13802fi
54445dc2 13803rm -rf conftest*
d7f45af8 13804
d7f45af8 13805fi
54445dc2
TT
13806{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
13807printf "%s\n" "$ac_cv_have_optreset" >&6; }
57aa50d4 13808if test $ac_cv_have_optreset = yes; then
d1154eb4 13809
54445dc2 13810printf "%s\n" "#define HAVE_OPTRESET 1" >>confdefs.h
d7f45af8 13811
d7f45af8 13812fi
d1154eb4 13813
57aa50d4 13814SEM_INIT_LIB=''
cfb8e0bd
TT
13815echo GL_THREADS_API: ${gl_threads_api}
13816if test "${gl_threads_api}" != none
13817then
13818 ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
54445dc2
TT
13819if test "x$ac_cv_func_sem_init" = xyes
13820then :
13821
13822else $as_nop
13823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
13824printf %s "checking for sem_init in -lpthread... " >&6; }
13825if test ${ac_cv_lib_pthread_sem_init+y}
13826then :
13827 printf %s "(cached) " >&6
13828else $as_nop
d7f45af8
TT
13829 ac_check_lib_save_LIBS=$LIBS
13830LIBS="-lpthread $LIBS"
57aa50d4 13831cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7f45af8
TT
13832/* end confdefs.h. */
13833
13834/* Override any GCC internal prototype to avoid an error.
13835 Use char because int might match the return type of a GCC
13836 builtin and then its argument prototype would still apply. */
d7f45af8
TT
13837char sem_init ();
13838int
54445dc2 13839main (void)
d7f45af8
TT
13840{
13841return sem_init ();
13842 ;
13843 return 0;
13844}
13845_ACEOF
54445dc2
TT
13846if ac_fn_c_try_link "$LINENO"
13847then :
d7f45af8 13848 ac_cv_lib_pthread_sem_init=yes
54445dc2 13849else $as_nop
57aa50d4 13850 ac_cv_lib_pthread_sem_init=no
d7f45af8 13851fi
54445dc2 13852rm -f core conftest.err conftest.$ac_objext conftest.beam \
57aa50d4 13853 conftest$ac_exeext conftest.$ac_ext
d7f45af8
TT
13854LIBS=$ac_check_lib_save_LIBS
13855fi
54445dc2
TT
13856{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
13857printf "%s\n" "$ac_cv_lib_pthread_sem_init" >&6; }
13858if test "x$ac_cv_lib_pthread_sem_init" = xyes
13859then :
13860 printf "%s\n" "#define HAVE_SEM_INIT 1" >>confdefs.h
d7f45af8
TT
13861
13862 SEM_INIT_LIB=-lpthread
54445dc2
TT
13863else $as_nop
13864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
13865printf %s "checking for sem_init in -lrt... " >&6; }
13866if test ${ac_cv_lib_rt_sem_init+y}
13867then :
13868 printf %s "(cached) " >&6
13869else $as_nop
d7f45af8
TT
13870 ac_check_lib_save_LIBS=$LIBS
13871LIBS="-lrt $LIBS"
57aa50d4 13872cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7f45af8
TT
13873/* end confdefs.h. */
13874
13875/* Override any GCC internal prototype to avoid an error.
13876 Use char because int might match the return type of a GCC
13877 builtin and then its argument prototype would still apply. */
d7f45af8
TT
13878char sem_init ();
13879int
54445dc2 13880main (void)
d7f45af8
TT
13881{
13882return sem_init ();
13883 ;
13884 return 0;
13885}
13886_ACEOF
54445dc2
TT
13887if ac_fn_c_try_link "$LINENO"
13888then :
d7f45af8 13889 ac_cv_lib_rt_sem_init=yes
54445dc2 13890else $as_nop
57aa50d4 13891 ac_cv_lib_rt_sem_init=no
d7f45af8 13892fi
54445dc2 13893rm -f core conftest.err conftest.$ac_objext conftest.beam \
57aa50d4 13894 conftest$ac_exeext conftest.$ac_ext
d7f45af8
TT
13895LIBS=$ac_check_lib_save_LIBS
13896fi
54445dc2
TT
13897{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
13898printf "%s\n" "$ac_cv_lib_rt_sem_init" >&6; }
13899if test "x$ac_cv_lib_rt_sem_init" = xyes
13900then :
13901 printf "%s\n" "#define HAVE_SEM_INIT 1" >>confdefs.h
d7f45af8
TT
13902
13903 SEM_INIT_LIB=-lrt
54445dc2
TT
13904else $as_nop
13905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
13906printf %s "checking for sem_init in -lposix4... " >&6; }
13907if test ${ac_cv_lib_posix4_sem_init+y}
13908then :
13909 printf %s "(cached) " >&6
13910else $as_nop
d7f45af8
TT
13911 ac_check_lib_save_LIBS=$LIBS
13912LIBS="-lposix4 $LIBS"
57aa50d4 13913cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7f45af8
TT
13914/* end confdefs.h. */
13915
13916/* Override any GCC internal prototype to avoid an error.
13917 Use char because int might match the return type of a GCC
13918 builtin and then its argument prototype would still apply. */
d7f45af8
TT
13919char sem_init ();
13920int
54445dc2 13921main (void)
d7f45af8
TT
13922{
13923return sem_init ();
13924 ;
13925 return 0;
13926}
13927_ACEOF
54445dc2
TT
13928if ac_fn_c_try_link "$LINENO"
13929then :
d7f45af8 13930 ac_cv_lib_posix4_sem_init=yes
54445dc2 13931else $as_nop
57aa50d4 13932 ac_cv_lib_posix4_sem_init=no
d7f45af8 13933fi
54445dc2 13934rm -f core conftest.err conftest.$ac_objext conftest.beam \
57aa50d4 13935 conftest$ac_exeext conftest.$ac_ext
d7f45af8
TT
13936LIBS=$ac_check_lib_save_LIBS
13937fi
54445dc2
TT
13938{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
13939printf "%s\n" "$ac_cv_lib_posix4_sem_init" >&6; }
13940if test "x$ac_cv_lib_posix4_sem_init" = xyes
13941then :
13942 printf "%s\n" "#define HAVE_SEM_INIT 1" >>confdefs.h
d7f45af8
TT
13943
13944 SEM_INIT_LIB=-lposix4
13945fi
13946
13947fi
13948
13949fi
13950
cfb8e0bd 13951fi
d7f45af8
TT
13952fi
13953
54445dc2
TT
13954{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
13955printf %s "checking for unified diff option... " >&6; }
27f991b0 13956if diff -u $0 $0 > /dev/null 2>&1 ; then
e54635de
TT
13957 UNI_DIFF_OPTS=-u
13958else
13959 UNI_DIFF_OPTS=-c
13960fi
54445dc2
TT
13961{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
13962printf "%s\n" "$UNI_DIFF_OPTS" >&6; }
e54635de 13963
8f3f29d3
TT
13964case "$host_os" in
13965linux*)
d1154eb4 13966
54445dc2 13967printf "%s\n" "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
50e1e10f 13968
8f3f29d3
TT
13969 ;;
13970esac
ea1a3fa2 13971
54445dc2 13972 printf %s "checking for mount 'nosuid' option... "
ea1a3fa2
NC
13973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13974/* end confdefs.h. */
13975#include <sys/mount.h>
13976int
54445dc2 13977main (void)
ea1a3fa2
NC
13978{
13979void *temp = (void *)(MS_NOSUID); (void) temp;
13980 ;
13981 return 0;
13982}
13983_ACEOF
54445dc2
TT
13984if ac_fn_c_try_compile "$LINENO"
13985then :
ea1a3fa2 13986
54445dc2 13987printf "%s\n" "#define HAVE_MOUNT_NOSUID 1" >>confdefs.h
ea1a3fa2
NC
13988
13989 ac_cv_mount_nosuid=yes
54445dc2
TT
13990 printf "%s\n" "yes"
13991else $as_nop
ea1a3fa2
NC
13992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13993/* end confdefs.h. */
13994#include <sys/mount.h>
13995int
54445dc2 13996main (void)
ea1a3fa2
NC
13997{
13998void *temp = (void *)(MNT_NOSUID); (void) temp;
13999 ;
14000 return 0;
14001}
14002_ACEOF
54445dc2
TT
14003if ac_fn_c_try_compile "$LINENO"
14004then :
ea1a3fa2 14005
54445dc2 14006printf "%s\n" "#define HAVE_MOUNT_NOSUID 1" >>confdefs.h
ea1a3fa2
NC
14007
14008 ac_cv_mount_nosuid=yes
54445dc2
TT
14009 printf "%s\n" "yes"
14010else $as_nop
ea1a3fa2 14011 ac_cv_mount_nosuid=no
54445dc2 14012 printf "%s\n" "no"
ea1a3fa2
NC
14013
14014fi
54445dc2 14015rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
ea1a3fa2
NC
14016
14017fi
54445dc2 14018rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
ea1a3fa2
NC
14019
14020
54445dc2 14021 printf %s "checking for mount 'nodev' option... "
ea1a3fa2
NC
14022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14023/* end confdefs.h. */
14024#include <sys/mount.h>
14025int
54445dc2 14026main (void)
ea1a3fa2
NC
14027{
14028void *temp = (void *)(MS_NODEV); (void) temp;
14029 ;
14030 return 0;
14031}
14032_ACEOF
54445dc2
TT
14033if ac_fn_c_try_compile "$LINENO"
14034then :
ea1a3fa2 14035
54445dc2 14036printf "%s\n" "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
ea1a3fa2
NC
14037
14038 ac_cv_mount_nodev=yes
54445dc2
TT
14039 printf "%s\n" "yes"
14040else $as_nop
ea1a3fa2
NC
14041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14042/* end confdefs.h. */
14043#include <sys/mount.h>
14044int
54445dc2 14045main (void)
ea1a3fa2
NC
14046{
14047void *temp = (void *)(MNT_NODEV); (void) temp;
14048 ;
14049 return 0;
14050}
14051_ACEOF
54445dc2
TT
14052if ac_fn_c_try_compile "$LINENO"
14053then :
ea1a3fa2 14054
54445dc2 14055printf "%s\n" "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
ea1a3fa2
NC
14056
14057 ac_cv_mount_nodev=yes
54445dc2
TT
14058 printf "%s\n" "yes"
14059else $as_nop
ea1a3fa2 14060 ac_cv_mount_nodev=no
54445dc2 14061 printf "%s\n" "no"
ea1a3fa2
NC
14062
14063fi
54445dc2 14064rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
ea1a3fa2
NC
14065
14066fi
54445dc2 14067rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
ea1a3fa2 14068
4aece328 14069# Check whether --enable-lto was given.
54445dc2
TT
14070if test ${enable_lto+y}
14071then :
4aece328 14072 enableval=$enable_lto;
54445dc2 14073else $as_nop
139a3092 14074 enable_lto=no
4aece328
DW
14075fi
14076
14077if test "$enable_lto" = "yes" || test "$enable_lto" = "probe"; then
54445dc2
TT
14078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports LTO" >&5
14079printf %s "checking if C compiler supports LTO... " >&6; }
4aece328
DW
14080 OLD_CFLAGS="$CFLAGS"
14081 OLD_LDFLAGS="$LDFLAGS"
49715704 14082 LTO_FLAGS="-g -flto -ffat-lto-objects"
4aece328
DW
14083 CFLAGS="$CFLAGS $LTO_FLAGS"
14084 LDFLAGS="$LDFLAGS $LTO_FLAGS"
14085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14086/* end confdefs.h. */
14087
14088int
54445dc2 14089main (void)
4aece328
DW
14090{
14091
14092 ;
14093 return 0;
14094}
14095_ACEOF
54445dc2
TT
14096if ac_fn_c_try_link "$LINENO"
14097then :
14098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14099printf "%s\n" "yes" >&6; }
4aece328
DW
14100 lto_cflags=$LTO_FLAGS
14101 lto_ldflags=$LTO_FLAGS
14102 # Extract the first word of "gcc-ar", so it can be a program name with args.
14103set dummy gcc-ar; ac_word=$2
54445dc2
TT
14104{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14105printf %s "checking for $ac_word... " >&6; }
14106if test ${ac_cv_path_gcc_ar+y}
14107then :
14108 printf %s "(cached) " >&6
14109else $as_nop
4aece328
DW
14110 case $gcc_ar in
14111 [\\/]* | ?:[\\/]*)
14112 ac_cv_path_gcc_ar="$gcc_ar" # Let the user override the test with a path.
14113 ;;
14114 *)
14115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14116for as_dir in $PATH
14117do
14118 IFS=$as_save_IFS
54445dc2
TT
14119 case $as_dir in #(((
14120 '') as_dir=./ ;;
14121 */) ;;
14122 *) as_dir=$as_dir/ ;;
14123 esac
4aece328 14124 for ac_exec_ext in '' $ac_executable_extensions; do
54445dc2
TT
14125 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14126 ac_cv_path_gcc_ar="$as_dir$ac_word$ac_exec_ext"
14127 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4aece328
DW
14128 break 2
14129 fi
14130done
14131 done
14132IFS=$as_save_IFS
14133
14134 ;;
14135esac
14136fi
14137gcc_ar=$ac_cv_path_gcc_ar
14138if test -n "$gcc_ar"; then
54445dc2
TT
14139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcc_ar" >&5
14140printf "%s\n" "$gcc_ar" >&6; }
4aece328 14141else
54445dc2
TT
14142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14143printf "%s\n" "no" >&6; }
4aece328
DW
14144fi
14145
14146
14147 # Extract the first word of "gcc-ranlib", so it can be a program name with args.
14148set dummy gcc-ranlib; ac_word=$2
54445dc2
TT
14149{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14150printf %s "checking for $ac_word... " >&6; }
14151if test ${ac_cv_path_gcc_ranlib+y}
14152then :
14153 printf %s "(cached) " >&6
14154else $as_nop
4aece328
DW
14155 case $gcc_ranlib in
14156 [\\/]* | ?:[\\/]*)
14157 ac_cv_path_gcc_ranlib="$gcc_ranlib" # Let the user override the test with a path.
14158 ;;
14159 *)
14160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14161for as_dir in $PATH
14162do
14163 IFS=$as_save_IFS
54445dc2
TT
14164 case $as_dir in #(((
14165 '') as_dir=./ ;;
14166 */) ;;
14167 *) as_dir=$as_dir/ ;;
14168 esac
4aece328 14169 for ac_exec_ext in '' $ac_executable_extensions; do
54445dc2
TT
14170 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14171 ac_cv_path_gcc_ranlib="$as_dir$ac_word$ac_exec_ext"
14172 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4aece328
DW
14173 break 2
14174 fi
14175done
14176 done
14177IFS=$as_save_IFS
14178
14179 ;;
14180esac
14181fi
14182gcc_ranlib=$ac_cv_path_gcc_ranlib
14183if test -n "$gcc_ranlib"; then
54445dc2
TT
14184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcc_ranlib" >&5
14185printf "%s\n" "$gcc_ranlib" >&6; }
4aece328 14186else
54445dc2
TT
14187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14188printf "%s\n" "no" >&6; }
4aece328
DW
14189fi
14190
14191
54445dc2
TT
14192else $as_nop
14193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14194printf "%s\n" "no" >&6; }
4aece328 14195fi
54445dc2 14196rm -f core conftest.err conftest.$ac_objext conftest.beam \
4aece328
DW
14197 conftest$ac_exeext conftest.$ac_ext
14198 if test -x "$gcc_ar" && test -x "$gcc_ranlib"; then
14199 have_lto=yes
14200 AR="${gcc_ar}"
14201 RANLIB="${gcc_ranlib}"
14202 fi
14203 CFLAGS="${OLD_CFLAGS}"
14204 LDFLAGS="${OLD_LDFLAGS}"
14205
14206
14207
14208fi
14209if test "$enable_lto" = "yes" && test "$have_lto" != "yes"; then
14210 as_fn_error $? "LTO not supported by compiler." "$LINENO" 5
14211fi
1c2a76ae 14212# Check whether --enable-ubsan was given.
54445dc2
TT
14213if test ${enable_ubsan+y}
14214then :
1c2a76ae 14215 enableval=$enable_ubsan;
54445dc2 14216else $as_nop
1c2a76ae
DW
14217 enable_ubsan=no
14218fi
14219
14220if test "$enable_ubsan" = "yes" || test "$enable_ubsan" = "probe"; then
54445dc2
TT
14221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports UBSAN" >&5
14222printf %s "checking if C compiler supports UBSAN... " >&6; }
1c2a76ae
DW
14223 OLD_CFLAGS="$CFLAGS"
14224 OLD_LDFLAGS="$LDFLAGS"
14225 UBSAN_FLAGS="-fsanitize=undefined"
14226 CFLAGS="$CFLAGS $UBSAN_FLAGS"
14227 LDFLAGS="$LDFLAGS $UBSAN_FLAGS"
14228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14229/* end confdefs.h. */
14230
14231int
54445dc2 14232main (void)
1c2a76ae
DW
14233{
14234
14235 ;
14236 return 0;
14237}
14238_ACEOF
54445dc2
TT
14239if ac_fn_c_try_link "$LINENO"
14240then :
14241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14242printf "%s\n" "yes" >&6; }
1c2a76ae
DW
14243 ubsan_cflags=$UBSAN_FLAGS
14244 ubsan_ldflags=$UBSAN_FLAGS
14245 have_ubsan=yes
54445dc2
TT
14246else $as_nop
14247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14248printf "%s\n" "no" >&6; }
1c2a76ae 14249fi
54445dc2 14250rm -f core conftest.err conftest.$ac_objext conftest.beam \
1c2a76ae
DW
14251 conftest$ac_exeext conftest.$ac_ext
14252 CFLAGS="${OLD_CFLAGS}"
14253 LDFLAGS="${OLD_LDFLAGS}"
14254
14255
14256
14257fi
14258if test "$enable_ubsan" = "yes" && test "$have_ubsan" != "yes"; then
14259 as_fn_error $? "UBSAN not supported by compiler." "$LINENO" 5
14260fi
5e666e3d 14261# Check whether --enable-addrsan was given.
54445dc2
TT
14262if test ${enable_addrsan+y}
14263then :
5e666e3d 14264 enableval=$enable_addrsan;
54445dc2 14265else $as_nop
5e666e3d
DW
14266 enable_addrsan=no
14267fi
14268
14269if test "$enable_addrsan" = "yes" || test "$enable_addrsan" = "probe"; then
54445dc2
TT
14270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports ADDRSAN" >&5
14271printf %s "checking if C compiler supports ADDRSAN... " >&6; }
5e666e3d
DW
14272 OLD_CFLAGS="$CFLAGS"
14273 OLD_LDFLAGS="$LDFLAGS"
14274 ADDRSAN_FLAGS="-fsanitize=address"
14275 CFLAGS="$CFLAGS $ADDRSAN_FLAGS"
14276 LDFLAGS="$LDFLAGS $ADDRSAN_FLAGS"
14277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14278/* end confdefs.h. */
14279
14280int
54445dc2 14281main (void)
5e666e3d
DW
14282{
14283
14284 ;
14285 return 0;
14286}
14287_ACEOF
54445dc2
TT
14288if ac_fn_c_try_link "$LINENO"
14289then :
14290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14291printf "%s\n" "yes" >&6; }
5e666e3d
DW
14292 addrsan_cflags=$ADDRSAN_FLAGS
14293 addrsan_ldflags=$ADDRSAN_FLAGS
14294 have_addrsan=yes
54445dc2
TT
14295else $as_nop
14296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14297printf "%s\n" "no" >&6; }
5e666e3d 14298fi
54445dc2 14299rm -f core conftest.err conftest.$ac_objext conftest.beam \
5e666e3d
DW
14300 conftest$ac_exeext conftest.$ac_ext
14301 CFLAGS="${OLD_CFLAGS}"
14302 LDFLAGS="${OLD_LDFLAGS}"
14303
14304
14305
14306fi
14307if test "$enable_addrsan" = "yes" && test "$have_addrsan" != "yes"; then
14308 as_fn_error $? "ADDRSAN not supported by compiler." "$LINENO" 5
14309fi
bcca786b 14310# Check whether --enable-threadsan was given.
54445dc2
TT
14311if test ${enable_threadsan+y}
14312then :
bcca786b 14313 enableval=$enable_threadsan;
54445dc2 14314else $as_nop
bcca786b
DW
14315 enable_threadsan=no
14316fi
14317
14318if test "$enable_threadsan" = "yes" || test "$enable_threadsan" = "probe"; then
54445dc2
TT
14319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports THREADSAN" >&5
14320printf %s "checking if C compiler supports THREADSAN... " >&6; }
bcca786b
DW
14321 OLD_CFLAGS="$CFLAGS"
14322 OLD_LDFLAGS="$LDFLAGS"
14323 THREADSAN_FLAGS="-fsanitize=thread"
14324 CFLAGS="$CFLAGS $THREADSAN_FLAGS"
14325 LDFLAGS="$LDFLAGS $THREADSAN_FLAGS"
14326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14327/* end confdefs.h. */
14328
14329int
54445dc2 14330main (void)
bcca786b
DW
14331{
14332
14333 ;
14334 return 0;
14335}
14336_ACEOF
54445dc2
TT
14337if ac_fn_c_try_link "$LINENO"
14338then :
14339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14340printf "%s\n" "yes" >&6; }
bcca786b
DW
14341 threadsan_cflags=$THREADSAN_FLAGS
14342 threadsan_ldflags=$THREADSAN_FLAGS
14343 have_threadsan=yes
54445dc2
TT
14344else $as_nop
14345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14346printf "%s\n" "no" >&6; }
bcca786b 14347fi
54445dc2 14348rm -f core conftest.err conftest.$ac_objext conftest.beam \
bcca786b
DW
14349 conftest$ac_exeext conftest.$ac_ext
14350 CFLAGS="${OLD_CFLAGS}"
14351 LDFLAGS="${OLD_LDFLAGS}"
14352
14353
14354
14355fi
14356if test "$enable_threadsan" = "yes" && test "$have_threadsan" != "yes"; then
14357 as_fn_error $? "THREADSAN not supported by compiler." "$LINENO" 5
14358fi
14359if test "$have_threadsan" = "yes" && test "$have_addrsan" = "yes"; then
54445dc2
TT
14360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ADDRSAN and THREADSAN are not known to work together." >&5
14361printf "%s\n" "$as_me: WARNING: ADDRSAN and THREADSAN are not known to work together." >&2;}
bcca786b 14362fi
2869485b
TT
14363FUZZING_CMT="#"
14364# Check whether --enable-fuzzing was given.
14365if test ${enable_fuzzing+y}
14366then :
14367 enableval=$enable_fuzzing;
14368else $as_nop
14369 enable_fuzzing=no
14370fi
14371
14372if test "$enable_fuzzing" = "yes" || test "$enable_fuzzing" = "probe"; then
14373
14374
14375
14376
14377
14378
14379ac_ext=cpp
14380ac_cpp='$CXXCPP $CPPFLAGS'
14381ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14382ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14383ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14384if test -z "$CXX"; then
14385 if test -n "$CCC"; then
14386 CXX=$CCC
14387 else
14388 if test -n "$ac_tool_prefix"; then
14389 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
14390 do
14391 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14392set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14393{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14394printf %s "checking for $ac_word... " >&6; }
14395if test ${ac_cv_prog_CXX+y}
14396then :
14397 printf %s "(cached) " >&6
14398else $as_nop
14399 if test -n "$CXX"; then
14400 ac_cv_prog_CXX="$CXX" # Let the user override the test.
14401else
14402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14403for as_dir in $PATH
14404do
14405 IFS=$as_save_IFS
14406 case $as_dir in #(((
14407 '') as_dir=./ ;;
14408 */) ;;
14409 *) as_dir=$as_dir/ ;;
14410 esac
14411 for ac_exec_ext in '' $ac_executable_extensions; do
14412 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14413 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
14414 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14415 break 2
14416 fi
14417done
14418 done
14419IFS=$as_save_IFS
14420
14421fi
14422fi
14423CXX=$ac_cv_prog_CXX
14424if test -n "$CXX"; then
14425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
14426printf "%s\n" "$CXX" >&6; }
14427else
14428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14429printf "%s\n" "no" >&6; }
14430fi
14431
14432
14433 test -n "$CXX" && break
14434 done
14435fi
14436if test -z "$CXX"; then
14437 ac_ct_CXX=$CXX
14438 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
14439do
14440 # Extract the first word of "$ac_prog", so it can be a program name with args.
14441set dummy $ac_prog; ac_word=$2
14442{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14443printf %s "checking for $ac_word... " >&6; }
14444if test ${ac_cv_prog_ac_ct_CXX+y}
14445then :
14446 printf %s "(cached) " >&6
14447else $as_nop
14448 if test -n "$ac_ct_CXX"; then
14449 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
14450else
14451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14452for as_dir in $PATH
14453do
14454 IFS=$as_save_IFS
14455 case $as_dir in #(((
14456 '') as_dir=./ ;;
14457 */) ;;
14458 *) as_dir=$as_dir/ ;;
14459 esac
14460 for ac_exec_ext in '' $ac_executable_extensions; do
14461 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14462 ac_cv_prog_ac_ct_CXX="$ac_prog"
14463 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
14464 break 2
14465 fi
14466done
14467 done
14468IFS=$as_save_IFS
14469
14470fi
14471fi
14472ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
14473if test -n "$ac_ct_CXX"; then
14474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
14475printf "%s\n" "$ac_ct_CXX" >&6; }
14476else
14477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14478printf "%s\n" "no" >&6; }
14479fi
14480
14481
14482 test -n "$ac_ct_CXX" && break
14483done
14484
14485 if test "x$ac_ct_CXX" = x; then
14486 CXX="g++"
14487 else
14488 case $cross_compiling:$ac_tool_warned in
14489yes:)
14490{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14491printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14492ac_tool_warned=yes ;;
14493esac
14494 CXX=$ac_ct_CXX
14495 fi
14496fi
14497
14498 fi
14499fi
14500# Provide some information about the compiler.
14501printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
14502set X $ac_compile
14503ac_compiler=$2
14504for ac_option in --version -v -V -qversion; do
14505 { { ac_try="$ac_compiler $ac_option >&5"
14506case "(($ac_try" in
14507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14508 *) ac_try_echo=$ac_try;;
14509esac
14510eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14511printf "%s\n" "$ac_try_echo"; } >&5
14512 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
14513 ac_status=$?
14514 if test -s conftest.err; then
14515 sed '10a\
14516... rest of stderr output deleted ...
14517 10q' conftest.err >conftest.er1
14518 cat conftest.er1 >&5
14519 fi
14520 rm -f conftest.er1 conftest.err
14521 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14522 test $ac_status = 0; }
14523done
14524
14525{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
14526printf %s "checking whether the compiler supports GNU C++... " >&6; }
14527if test ${ac_cv_cxx_compiler_gnu+y}
14528then :
14529 printf %s "(cached) " >&6
14530else $as_nop
14531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14532/* end confdefs.h. */
14533
14534int
14535main (void)
14536{
14537#ifndef __GNUC__
14538 choke me
14539#endif
14540
14541 ;
14542 return 0;
14543}
14544_ACEOF
14545if ac_fn_cxx_try_compile "$LINENO"
14546then :
14547 ac_compiler_gnu=yes
14548else $as_nop
14549 ac_compiler_gnu=no
14550fi
14551rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14552ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
14553
14554fi
14555{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
14556printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
14557ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14558
14559if test $ac_compiler_gnu = yes; then
14560 GXX=yes
14561else
14562 GXX=
14563fi
14564ac_test_CXXFLAGS=${CXXFLAGS+y}
14565ac_save_CXXFLAGS=$CXXFLAGS
14566{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
14567printf %s "checking whether $CXX accepts -g... " >&6; }
14568if test ${ac_cv_prog_cxx_g+y}
14569then :
14570 printf %s "(cached) " >&6
14571else $as_nop
14572 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
14573 ac_cxx_werror_flag=yes
14574 ac_cv_prog_cxx_g=no
14575 CXXFLAGS="-g"
14576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14577/* end confdefs.h. */
14578
14579int
14580main (void)
14581{
14582
14583 ;
14584 return 0;
14585}
14586_ACEOF
14587if ac_fn_cxx_try_compile "$LINENO"
14588then :
14589 ac_cv_prog_cxx_g=yes
14590else $as_nop
14591 CXXFLAGS=""
14592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14593/* end confdefs.h. */
14594
14595int
14596main (void)
14597{
14598
14599 ;
14600 return 0;
14601}
14602_ACEOF
14603if ac_fn_cxx_try_compile "$LINENO"
14604then :
14605
14606else $as_nop
14607 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14608 CXXFLAGS="-g"
14609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14610/* end confdefs.h. */
14611
14612int
14613main (void)
14614{
14615
14616 ;
14617 return 0;
14618}
14619_ACEOF
14620if ac_fn_cxx_try_compile "$LINENO"
14621then :
14622 ac_cv_prog_cxx_g=yes
14623fi
14624rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14625fi
14626rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14627fi
14628rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14629 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14630fi
14631{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
14632printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
14633if test $ac_test_CXXFLAGS; then
14634 CXXFLAGS=$ac_save_CXXFLAGS
14635elif test $ac_cv_prog_cxx_g = yes; then
14636 if test "$GXX" = yes; then
14637 CXXFLAGS="-g -O2"
14638 else
14639 CXXFLAGS="-g"
14640 fi
14641else
14642 if test "$GXX" = yes; then
14643 CXXFLAGS="-O2"
14644 else
14645 CXXFLAGS=
14646 fi
14647fi
14648ac_prog_cxx_stdcxx=no
14649if test x$ac_prog_cxx_stdcxx = xno
14650then :
14651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
14652printf %s "checking for $CXX option to enable C++11 features... " >&6; }
14653if test ${ac_cv_prog_cxx_11+y}
14654then :
14655 printf %s "(cached) " >&6
14656else $as_nop
14657 ac_cv_prog_cxx_11=no
14658ac_save_CXX=$CXX
14659cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14660/* end confdefs.h. */
14661$ac_cxx_conftest_cxx11_program
14662_ACEOF
14663for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
14664do
14665 CXX="$ac_save_CXX $ac_arg"
14666 if ac_fn_cxx_try_compile "$LINENO"
14667then :
14668 ac_cv_prog_cxx_cxx11=$ac_arg
14669fi
14670rm -f core conftest.err conftest.$ac_objext conftest.beam
14671 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
14672done
14673rm -f conftest.$ac_ext
14674CXX=$ac_save_CXX
14675fi
14676
14677if test "x$ac_cv_prog_cxx_cxx11" = xno
14678then :
14679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14680printf "%s\n" "unsupported" >&6; }
14681else $as_nop
14682 if test "x$ac_cv_prog_cxx_cxx11" = x
14683then :
14684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14685printf "%s\n" "none needed" >&6; }
14686else $as_nop
14687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
14688printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
14689 CXX="$CXX $ac_cv_prog_cxx_cxx11"
14690fi
14691 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
14692 ac_prog_cxx_stdcxx=cxx11
14693fi
14694fi
14695if test x$ac_prog_cxx_stdcxx = xno
14696then :
14697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
14698printf %s "checking for $CXX option to enable C++98 features... " >&6; }
14699if test ${ac_cv_prog_cxx_98+y}
14700then :
14701 printf %s "(cached) " >&6
14702else $as_nop
14703 ac_cv_prog_cxx_98=no
14704ac_save_CXX=$CXX
14705cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14706/* end confdefs.h. */
14707$ac_cxx_conftest_cxx98_program
14708_ACEOF
14709for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
14710do
14711 CXX="$ac_save_CXX $ac_arg"
14712 if ac_fn_cxx_try_compile "$LINENO"
14713then :
14714 ac_cv_prog_cxx_cxx98=$ac_arg
14715fi
14716rm -f core conftest.err conftest.$ac_objext conftest.beam
14717 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
14718done
14719rm -f conftest.$ac_ext
14720CXX=$ac_save_CXX
14721fi
14722
14723if test "x$ac_cv_prog_cxx_cxx98" = xno
14724then :
14725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14726printf "%s\n" "unsupported" >&6; }
14727else $as_nop
14728 if test "x$ac_cv_prog_cxx_cxx98" = x
14729then :
14730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14731printf "%s\n" "none needed" >&6; }
14732else $as_nop
14733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
14734printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
14735 CXX="$CXX $ac_cv_prog_cxx_cxx98"
14736fi
14737 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
14738 ac_prog_cxx_stdcxx=cxx98
14739fi
14740fi
14741
14742ac_ext=c
14743ac_cpp='$CPP $CPPFLAGS'
14744ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14745ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14746ac_compiler_gnu=$ac_cv_c_compiler_gnu
14747
14748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports fuzzing sanitizer" >&5
14749printf %s "checking if C compiler supports fuzzing sanitizer... " >&6; }
14750 ac_ext=cpp
14751ac_cpp='$CXXCPP $CPPFLAGS'
14752ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14753ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14754ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14755
14756 OLD_CXXFLAGS="$CXXFLAGS"
14757 OLD_LDFLAGS="$LDFLAGS"
14758 FUZZER_FLAGS="-fsanitize=fuzzer"
14759 CXXFLAGS="$CXXFLAGS $FUZZER_FLAGS"
14760 LDFLAGS="$LDFLAGS $FUZZER_FLAGS"
14761
14762cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14763/* end confdefs.h. */
14764
14765 #include <stddef.h>
14766 #include <stdint.h>
14767
14768int
14769main (void)
14770{
14771 return 0;
14772 ;
14773 return 0;
14774}
14775_ACEOF
14776if ac_fn_cxx_try_compile "$LINENO"
14777then :
14778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14779printf "%s\n" "yes" >&6; }
14780 fuzzer_cflags=$FUZZER_FLAGS
14781 fuzzer_ldflags=$FUZZER_FLAGS
14782 FUZZING_CMT=
14783 have_fuzzer=yes
14784else $as_nop
14785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14786printf "%s\n" "no" >&6; }
14787 as_fn_error $? "fuzzing requested but not available" "$LINENO" 5
14788fi
14789rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14790 CXXFLAGS="${OLD_CXXFLAGS}"
14791 LDFLAGS="${OLD_LDFLAGS}"
14792 ac_ext=c
14793ac_cpp='$CPP $CPPFLAGS'
14794ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14795ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14796ac_compiler_gnu=$ac_cv_c_compiler_gnu
14797
14798
14799
14800
14801fi
14802if test "$enable_fuzzer" = "yes" && test "$have_fuzzer" != "yes"; then
14803 as_fn_error $? "Fuzzing not supported by compiler." "$LINENO" 5
14804fi
14805
e6f2bda3 14806LINUX_CMT="#"
fff45483
TT
14807CYGWIN_CMT="#"
14808UNIX_CMT=
e6f2bda3
TT
14809case "$host_os" in
14810linux*)
14811 LINUX_CMT=
fff45483
TT
14812 ;;
14813cygwin)
14814 CYGWIN_CMT=
14815 UNIX_CMT="#"
e6f2bda3
TT
14816 ;;
14817esac
14818
93636bde
TT
14819
14820
5ce368f0
DW
14821E2SCRUB_CMT="$LINUX_CMT"
14822
50e1e10f 14823case "$host_os" in
93636bde 14824linux* | gnu* | k*bsd*-gnu)
a4b2d3ce
TT
14825 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
14826 root_prefix="";
54445dc2
TT
14827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
14828printf "%s\n" "On $host_os systems, root_prefix defaults to ''" >&6; }
fc6d9d51
TT
14829 fi
14830 ;;
14831esac
fc6d9d51 14832case "$host_os" in
93636bde 14833linux* | gnu* | k*bsd*-gnu)
fc6d9d51 14834 if test "$prefix" = NONE ; then
a4b2d3ce 14835 prefix="/usr";
54445dc2
TT
14836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
14837printf "%s\n" "On $host_os systems, prefix defaults to /usr" >&6; }
bff61a7a 14838 if test "$mandir" = '${prefix}/man' ; then
54445dc2
TT
14839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
14840printf "%s\n" "...and mandir defaults to /usr/share/man" >&6; }
bff61a7a
TT
14841 mandir=/usr/share/man
14842 fi
50e1e10f
TT
14843 fi
14844;;
14845esac
a4b2d3ce 14846if test "$root_prefix" = NONE ; then
ffe1991f 14847 if test "$prefix" = NONE ; then
a4b2d3ce
TT
14848 root_prefix="$ac_default_prefix"
14849 else
14850 root_prefix="$prefix"
14851 fi
b5ffeade
TT
14852 root_bindir=$bindir
14853 root_sbindir=$sbindir
14854 root_libdir=$libdir
14855 root_sysconfdir=$sysconfdir
14856else
14857 root_bindir='${root_prefix}/bin'
14858 root_sbindir='${root_prefix}/sbin'
14859 root_libdir='${root_prefix}/lib'
14860 root_sysconfdir='${root_prefix}/etc'
a4b2d3ce 14861fi
c4ef11c5
TT
14862if test "$bindir" != '${exec_prefix}/bin'; then
14863 root_bindir=$bindir
54445dc2
TT
14864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
14865printf "%s\n" "Setting root_bindir to $root_bindir" >&6; }
c4ef11c5
TT
14866fi
14867if test "$sbindir" != '${exec_prefix}/sbin'; then
14868 root_sbindir=$sbindir
54445dc2
TT
14869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
14870printf "%s\n" "Setting root_sbindir to $root_sbindir" >&6; }
c4ef11c5
TT
14871fi
14872if test "$libdir" != '${exec_prefix}/lib'; then
14873 root_libdir=$libdir
54445dc2
TT
14874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
14875printf "%s\n" "Setting root_libdir to $root_libdir" >&6; }
c4ef11c5
TT
14876fi
14877if test "$sysconfdir" != '${prefix}/etc'; then
14878 root_sysconfdir=$sysconfdir
54445dc2
TT
14879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
14880printf "%s\n" "Setting root_sysconfdir to $root_sysconfdir" >&6; }
c4ef11c5 14881fi
a4b2d3ce 14882
93636bde
TT
14883
14884
14885
14886
55e00a25
TT
14887
14888# Check whether --with-multiarch was given.
54445dc2
TT
14889if test ${with_multiarch+y}
14890then :
d7fa4103
TT
14891 withval=$with_multiarch; if test "$withval" = "lib64"; then
14892 libdir=/usr/lib64
14893 root_libdir=/lib64
14894else
14895 libdir=$libdir/$withval
14896 root_libdir=$root_libdir/$withval
14897fi
55e00a25
TT
14898
14899fi
a2df5894 14900
54445dc2
TT
14901{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
14902printf %s "checking whether we can link with -static... " >&6; }
14903if test ${ac_cv_e2fsprogs_use_static+y}
14904then :
14905 printf %s "(cached) " >&6
14906else $as_nop
fd1677e8 14907 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS_STATIC -static"
57aa50d4 14908cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 14909/* end confdefs.h. */
ae851482 14910#include <stdio.h>
b0cacab0 14911int
54445dc2 14912main (void)
b0cacab0 14913{
ae851482 14914fflush(stdout);
b0cacab0
TT
14915 ;
14916 return 0;
14917}
14918_ACEOF
54445dc2
TT
14919if ac_fn_c_try_link "$LINENO"
14920then :
ae851482 14921 ac_cv_e2fsprogs_use_static=yes
54445dc2 14922else $as_nop
57aa50d4 14923 ac_cv_e2fsprogs_use_static=no
ae851482 14924fi
54445dc2 14925rm -f core conftest.err conftest.$ac_objext conftest.beam \
57aa50d4 14926 conftest$ac_exeext conftest.$ac_ext
ae851482
TT
14927LDFLAGS=$SAVE_LDFLAGS
14928fi
50e1e10f 14929
defde784
TT
14930case "$host_os" in
14931solaris2.*)
b0cacab0 14932 ac_cv_e2fsprogs_use_static=no
defde784
TT
14933;;
14934esac
54445dc2
TT
14935{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
14936printf "%s\n" "$ac_cv_e2fsprogs_use_static" >&6; }
ae851482 14937if test $ac_cv_e2fsprogs_use_static = yes; then
fd1677e8 14938 LDFLAGS_STATIC="$LDFLAGS_STATIC -static"
ae851482 14939fi
50e1e10f 14940
07a0db15
TT
14941case "$host_os" in
14942darwin*)
54445dc2
TT
14943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
14944printf "%s\n" "Using Apple Darwin / GNU libintl workaround" >&6; }
d1154eb4 14945
54445dc2 14946printf "%s\n" "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
07a0db15
TT
14947
14948 ;;
14949esac
50e1e10f
TT
14950if test "$cross_compiling" = yes ; then
14951 DO_TEST_SUITE=
14952else
14953 DO_TEST_SUITE=check
14954fi
14955
d1154eb4
TT
14956INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
14957if test -n "$CPPFLAGS" ; then
14958 INCLUDES="$INCLUDES $CPPFLAGS"
14959fi
c6f35b8a 14960if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
d1154eb4 14961 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
c6f35b8a 14962fi
6c59a665
TT
14963if test -n "$WITH_DIET_LIBC" ; then
14964 INCLUDES="$INCLUDES -D_REENTRANT"
14965fi
c6f35b8a 14966
dd947da2 14967if test $cross_compiling = no; then
2873927d 14968 BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
dd947da2 14969 BUILD_LDFLAGS="$LDFLAGS"
dd947da2
TT
14970fi
14971
14972
fd1677e8
TT
14973CFLAGS_SHLIB=${CFLAGS_SHLIB:-$CFLAGS}
14974CFLAGS_STLIB=${CFLAGS_STLIB:-$CFLAGS}
14975LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
14976
14977
14978
5ce368f0
DW
14979
14980
14981# Check whether --with-udev_rules_dir was given.
54445dc2
TT
14982if test ${with_udev_rules_dir+y}
14983then :
5ce368f0 14984 withval=$with_udev_rules_dir;
54445dc2 14985else $as_nop
5ce368f0
DW
14986 with_udev_rules_dir=yes
14987fi
14988
54445dc2
TT
14989if test "x${with_udev_rules_dir}" != "xno"
14990then :
5ce368f0 14991
54445dc2
TT
14992 if test "x${with_udev_rules_dir}" = "xyes"
14993then :
5ce368f0
DW
14994
14995
14996pkg_failed=no
54445dc2
TT
14997{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for udev" >&5
14998printf %s "checking for udev... " >&6; }
5ce368f0
DW
14999
15000if test -n "$udev_CFLAGS"; then
15001 pkg_cv_udev_CFLAGS="$udev_CFLAGS"
15002 elif test -n "$PKG_CONFIG"; then
15003 if test -n "$PKG_CONFIG" && \
54445dc2 15004 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
5ce368f0
DW
15005 ($PKG_CONFIG --exists --print-errors "udev") 2>&5
15006 ac_status=$?
54445dc2 15007 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5ce368f0
DW
15008 test $ac_status = 0; }; then
15009 pkg_cv_udev_CFLAGS=`$PKG_CONFIG --cflags "udev" 2>/dev/null`
15010 test "x$?" != "x0" && pkg_failed=yes
15011else
15012 pkg_failed=yes
15013fi
15014 else
15015 pkg_failed=untried
15016fi
15017if test -n "$udev_LIBS"; then
15018 pkg_cv_udev_LIBS="$udev_LIBS"
15019 elif test -n "$PKG_CONFIG"; then
15020 if test -n "$PKG_CONFIG" && \
54445dc2 15021 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
5ce368f0
DW
15022 ($PKG_CONFIG --exists --print-errors "udev") 2>&5
15023 ac_status=$?
54445dc2 15024 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5ce368f0
DW
15025 test $ac_status = 0; }; then
15026 pkg_cv_udev_LIBS=`$PKG_CONFIG --libs "udev" 2>/dev/null`
15027 test "x$?" != "x0" && pkg_failed=yes
15028else
15029 pkg_failed=yes
15030fi
15031 else
15032 pkg_failed=untried
15033fi
15034
15035
15036
15037if test $pkg_failed = yes; then
54445dc2
TT
15038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15039printf "%s\n" "no" >&6; }
5ce368f0
DW
15040
15041if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15042 _pkg_short_errors_supported=yes
15043else
15044 _pkg_short_errors_supported=no
15045fi
15046 if test $_pkg_short_errors_supported = yes; then
15047 udev_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "udev" 2>&1`
15048 else
15049 udev_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "udev" 2>&1`
15050 fi
15051 # Put the nasty error message in config.log where it belongs
15052 echo "$udev_PKG_ERRORS" >&5
15053
15054
15055 with_udev_rules_dir=""
15056
15057elif test $pkg_failed = untried; then
54445dc2
TT
15058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15059printf "%s\n" "no" >&6; }
5ce368f0
DW
15060
15061 with_udev_rules_dir=""
15062
15063else
15064 udev_CFLAGS=$pkg_cv_udev_CFLAGS
15065 udev_LIBS=$pkg_cv_udev_LIBS
54445dc2
TT
15066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15067printf "%s\n" "yes" >&6; }
5ce368f0
DW
15068
15069 with_udev_rules_dir="$($PKG_CONFIG --variable=udevdir udev)/rules.d"
15070
15071fi
15072
15073fi
54445dc2
TT
15074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for udev rules dir" >&5
15075printf %s "checking for udev rules dir... " >&6; }
5ce368f0 15076 pkg_udev_rules_dir="${with_udev_rules_dir}"
54445dc2
TT
15077 if test -n "${pkg_udev_rules_dir}"
15078then :
5ce368f0 15079
54445dc2
TT
15080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${pkg_udev_rules_dir}" >&5
15081printf "%s\n" "${pkg_udev_rules_dir}" >&6; }
5ce368f0
DW
15082 have_udev="yes"
15083
54445dc2 15084else $as_nop
5ce368f0 15085
54445dc2
TT
15086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15087printf "%s\n" "no" >&6; }
5ce368f0
DW
15088 have_udev="no"
15089
15090fi
15091
54445dc2 15092else $as_nop
5ce368f0
DW
15093
15094 have_udev="disabled"
15095
15096fi
15097
15098
15099
a2df5894
DW
15100
15101# Check whether --with-crond_dir was given.
54445dc2
TT
15102if test ${with_crond_dir+y}
15103then :
a2df5894 15104 withval=$with_crond_dir;
54445dc2 15105else $as_nop
a2df5894
DW
15106 with_crond_dir=yes
15107fi
15108
54445dc2
TT
15109if test "x${with_crond_dir}" != "xno"
15110then :
a2df5894 15111
54445dc2
TT
15112 if test "x${with_crond_dir}" = "xyes"
15113then :
a2df5894 15114
54445dc2
TT
15115 if test -d "/etc/cron.d"
15116then :
a2df5894 15117 with_crond_dir="/etc/cron.d"
54445dc2 15118else $as_nop
188bf39a 15119 have_crond="no"; with_crond_dir=""
a2df5894
DW
15120fi
15121
15122fi
54445dc2
TT
15123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for system crontab dir" >&5
15124printf %s "checking for system crontab dir... " >&6; }
a2df5894 15125 crond_dir="${with_crond_dir}"
54445dc2
TT
15126 if test -n "${crond_dir}"
15127then :
a2df5894 15128
54445dc2
TT
15129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${crond_dir}" >&5
15130printf "%s\n" "${crond_dir}" >&6; }
a2df5894
DW
15131 have_crond="yes"
15132
54445dc2 15133else $as_nop
a2df5894 15134
54445dc2
TT
15135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15136printf "%s\n" "no" >&6; }
a2df5894
DW
15137 have_crond="no"
15138
15139fi
15140
54445dc2 15141else $as_nop
a2df5894
DW
15142
15143 have_crond="disabled"
15144
15145fi
15146
15147
15148
15149
15150# Check whether --with-systemd_unit_dir was given.
54445dc2
TT
15151if test ${with_systemd_unit_dir+y}
15152then :
a2df5894 15153 withval=$with_systemd_unit_dir;
54445dc2 15154else $as_nop
a2df5894
DW
15155 with_systemd_unit_dir=yes
15156fi
15157
54445dc2
TT
15158if test "x${with_systemd_unit_dir}" != "xno"
15159then :
a2df5894 15160
54445dc2
TT
15161 if test "x${with_systemd_unit_dir}" = "xyes"
15162then :
a2df5894
DW
15163
15164
15165pkg_failed=no
54445dc2
TT
15166{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for systemd" >&5
15167printf %s "checking for systemd... " >&6; }
a2df5894
DW
15168
15169if test -n "$systemd_CFLAGS"; then
15170 pkg_cv_systemd_CFLAGS="$systemd_CFLAGS"
15171 elif test -n "$PKG_CONFIG"; then
15172 if test -n "$PKG_CONFIG" && \
54445dc2 15173 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
a2df5894
DW
15174 ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
15175 ac_status=$?
54445dc2 15176 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
a2df5894
DW
15177 test $ac_status = 0; }; then
15178 pkg_cv_systemd_CFLAGS=`$PKG_CONFIG --cflags "systemd" 2>/dev/null`
15179 test "x$?" != "x0" && pkg_failed=yes
15180else
15181 pkg_failed=yes
15182fi
15183 else
15184 pkg_failed=untried
15185fi
15186if test -n "$systemd_LIBS"; then
15187 pkg_cv_systemd_LIBS="$systemd_LIBS"
15188 elif test -n "$PKG_CONFIG"; then
15189 if test -n "$PKG_CONFIG" && \
54445dc2 15190 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
a2df5894
DW
15191 ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
15192 ac_status=$?
54445dc2 15193 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
a2df5894
DW
15194 test $ac_status = 0; }; then
15195 pkg_cv_systemd_LIBS=`$PKG_CONFIG --libs "systemd" 2>/dev/null`
15196 test "x$?" != "x0" && pkg_failed=yes
15197else
15198 pkg_failed=yes
15199fi
15200 else
15201 pkg_failed=untried
15202fi
15203
15204
15205
15206if test $pkg_failed = yes; then
54445dc2
TT
15207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15208printf "%s\n" "no" >&6; }
a2df5894
DW
15209
15210if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15211 _pkg_short_errors_supported=yes
15212else
15213 _pkg_short_errors_supported=no
15214fi
15215 if test $_pkg_short_errors_supported = yes; then
15216 systemd_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "systemd" 2>&1`
15217 else
15218 systemd_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "systemd" 2>&1`
15219 fi
15220 # Put the nasty error message in config.log where it belongs
15221 echo "$systemd_PKG_ERRORS" >&5
15222
15223
15224 with_systemd_unit_dir=""
15225
15226elif test $pkg_failed = untried; then
54445dc2
TT
15227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15228printf "%s\n" "no" >&6; }
a2df5894
DW
15229
15230 with_systemd_unit_dir=""
15231
15232else
15233 systemd_CFLAGS=$pkg_cv_systemd_CFLAGS
15234 systemd_LIBS=$pkg_cv_systemd_LIBS
54445dc2
TT
15235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15236printf "%s\n" "yes" >&6; }
a2df5894
DW
15237
15238 with_systemd_unit_dir="$($PKG_CONFIG --variable=systemdsystemunitdir systemd)"
15239
15240fi
15241
15242
15243fi
54445dc2
TT
15244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for systemd system unit dir" >&5
15245printf %s "checking for systemd system unit dir... " >&6; }
a2df5894 15246 systemd_system_unit_dir="${with_systemd_unit_dir}"
54445dc2
TT
15247 if test -n "${systemd_system_unit_dir}"
15248then :
a2df5894 15249
54445dc2
TT
15250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${systemd_system_unit_dir}" >&5
15251printf "%s\n" "${systemd_system_unit_dir}" >&6; }
a2df5894
DW
15252 have_systemd="yes"
15253
54445dc2 15254else $as_nop
a2df5894 15255
54445dc2
TT
15256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15257printf "%s\n" "no" >&6; }
a2df5894
DW
15258 have_systemd="no"
15259
15260fi
15261
54445dc2 15262else $as_nop
a2df5894
DW
15263
15264 have_systemd="disabled"
15265
15266fi
15267
15268
d1d44c14
PAA
15269OS_IO_FILE=""
15270case "$host_os" in
15271 cigwin*|mingw*|msys*)
15272 OS_IO_FILE=windows_io
15273 ;;
15274 *)
15275 OS_IO_FILE=unix_io
15276 ;;
15277esac
a2df5894 15278
50e1e10f
TT
15279test -d lib || mkdir lib
15280test -d include || mkdir include
15281test -d include/linux || mkdir include/linux
defde784 15282test -d include/asm || mkdir include/asm
44dfb378
TT
15283if test -z "$UUID_CMT" ; then
15284 uuid_out_list="lib/uuid/Makefile lib/uuid/uuid.pc \
15285 lib/uuid/uuid_types.h"
15286fi
15287if test -z "$BLKID_CMT" ; then
15288 blkid_out_list="lib/blkid/Makefile lib/blkid/blkid.pc \
15289 lib/blkid/blkid_types.h"
15290fi
e5f0f3ee 15291for i in MCONFIG Makefile \
183c73b0 15292 util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
4ea7ea00
TT
15293 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
15294 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
f34af41b 15295 $uuid_out_list $blkid_out_list lib/support/Makefile \
44dfb378 15296 lib/ss/ss.pc lib/et/com_err.pc lib/e2p/e2p.pc lib/ext2fs/ext2fs.pc \
921f4ad5 15297 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
94ba8c75 15298 debugfs/Makefile tests/Makefile tests/progs/Makefile \
2869485b
TT
15299 tests/fuzz/Makefile resize/Makefile doc/Makefile \
15300 po/Makefile.in scrub/Makefile; do
94ba8c75
TT
15301 if test -d `dirname ${srcdir}/$i` ; then
15302 outlist="$outlist $i"
15303 fi
15304done
e1052144
TT
15305ac_config_files="$ac_config_files $outlist"
15306
b0cacab0 15307cat >confcache <<\_ACEOF
50e1e10f
TT
15308# This file is a shell script that caches the results of configure
15309# tests run on this system so they can be shared between configure
b0cacab0
TT
15310# scripts and configure runs, see configure's option --config-cache.
15311# It is not useful on other systems. If it contains results you don't
15312# want to keep, you may remove or edit it.
50e1e10f 15313#
b0cacab0
TT
15314# config.status only pays attention to the cache file if you give it
15315# the --recheck option to rerun configure.
50e1e10f 15316#
b0cacab0
TT
15317# `ac_cv_env_foo' variables (set or unset) will be overridden when
15318# loading this file, other *unset* `ac_cv_foo' will be assigned the
15319# following values.
15320
15321_ACEOF
15322
21c84b71
TT
15323# The following way of writing the cache mishandles newlines in values,
15324# but we know of no workaround that is simple, portable, and efficient.
e1052144 15325# So, we kill variables containing newlines.
50e1e10f
TT
15326# Ultrix sh set writes to stderr and can't be redirected directly,
15327# and sets the high bit in the cache file unless we assign to the vars.
e1052144
TT
15328(
15329 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15330 eval ac_val=\$$ac_var
15331 case $ac_val in #(
15332 *${as_nl}*)
15333 case $ac_var in #(
54445dc2
TT
15334 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15335printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
e1052144
TT
15336 esac
15337 case $ac_var in #(
15338 _ | IFS | as_nl) ;; #(
39fd3d4f 15339 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
57aa50d4 15340 *) { eval $ac_var=; unset $ac_var;} ;;
e1052144
TT
15341 esac ;;
15342 esac
15343 done
15344
b0cacab0 15345 (set) 2>&1 |
e1052144
TT
15346 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15347 *${as_nl}ac_space=\ *)
57aa50d4
TT
15348 # `set' does not quote correctly, so add quotes: double-quote
15349 # substitution turns \\\\ into \\, and sed turns \\ into \.
b0cacab0
TT
15350 sed -n \
15351 "s/'/'\\\\''/g;
15352 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
e1052144 15353 ;; #(
b0cacab0
TT
15354 *)
15355 # `set' quotes correctly as required by POSIX, so do not add quotes.
e1052144 15356 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b0cacab0 15357 ;;
e1052144
TT
15358 esac |
15359 sort
15360) |
b0cacab0 15361 sed '
e1052144 15362 /^ac_cv_env_/b end
b0cacab0 15363 t clear
e1052144 15364 :clear
54445dc2 15365 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
b0cacab0 15366 t end
e1052144
TT
15367 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15368 :end' >>confcache
15369if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15370 if test -w "$cache_file"; then
d6a4bcb5 15371 if test "x$cache_file" != "x/dev/null"; then
54445dc2
TT
15372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15373printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
d6a4bcb5
TB
15374 if test ! -f "$cache_file" || test -h "$cache_file"; then
15375 cat confcache >"$cache_file"
15376 else
15377 case $cache_file in #(
15378 */* | ?:*)
15379 mv -f confcache "$cache_file"$$ &&
15380 mv -f "$cache_file"$$ "$cache_file" ;; #(
15381 *)
15382 mv -f confcache "$cache_file" ;;
15383 esac
15384 fi
15385 fi
50e1e10f 15386 else
54445dc2
TT
15387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15388printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
50e1e10f
TT
15389 fi
15390fi
15391rm -f confcache
15392
50e1e10f
TT
15393test "x$prefix" = xNONE && prefix=$ac_default_prefix
15394# Let make expand exec_prefix.
15395test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15396
d1154eb4 15397DEFS=-DHAVE_CONFIG_H
b0cacab0
TT
15398
15399ac_libobjs=
15400ac_ltlibobjs=
d6a4bcb5 15401U=
b0cacab0
TT
15402for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15403 # 1. Remove the extension, and $U if already installed.
e1052144 15404 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
54445dc2 15405 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
e1052144
TT
15406 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15407 # will be set to the directory where LIBOBJS objects are built.
57aa50d4
TT
15408 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15409 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
b0cacab0
TT
15410done
15411LIBOBJS=$ac_libobjs
50e1e10f 15412
b0cacab0
TT
15413LTLIBOBJS=$ac_ltlibobjs
15414
15415
15416
39fd3d4f 15417
d6a4bcb5 15418: "${CONFIG_STATUS=./config.status}"
39fd3d4f 15419ac_write_fail=0
b0cacab0
TT
15420ac_clean_files_save=$ac_clean_files
15421ac_clean_files="$ac_clean_files $CONFIG_STATUS"
54445dc2
TT
15422{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15423printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
57aa50d4
TT
15424as_write_fail=0
15425cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
b0cacab0
TT
15426#! $SHELL
15427# Generated by $as_me.
93636bde 15428# Run this file to recreate the current configuration.
93636bde 15429# Compiler output produced by configure, useful for debugging
b0cacab0 15430# configure, is in config.log if it exists.
07a0db15 15431
b0cacab0
TT
15432debug=false
15433ac_cs_recheck=false
15434ac_cs_silent=false
b0cacab0 15435
57aa50d4
TT
15436SHELL=\${CONFIG_SHELL-$SHELL}
15437export SHELL
15438_ASEOF
15439cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15440## -------------------- ##
15441## M4sh Initialization. ##
15442## -------------------- ##
b0cacab0 15443
29a5deed
TT
15444# Be more Bourne compatible
15445DUALCASE=1; export DUALCASE # for MKS sh
54445dc2
TT
15446as_nop=:
15447if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
15448then :
b0cacab0
TT
15449 emulate sh
15450 NULLCMD=:
39fd3d4f 15451 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b0cacab0
TT
15452 # is contrary to our usage. Disable this feature.
15453 alias -g '${1+"$@"}'='"$@"'
e1052144 15454 setopt NO_GLOB_SUBST
54445dc2 15455else $as_nop
57aa50d4
TT
15456 case `(set -o) 2>/dev/null` in #(
15457 *posix*) :
15458 set -o posix ;; #(
15459 *) :
15460 ;;
29a5deed 15461esac
b0cacab0 15462fi
29a5deed
TT
15463
15464
54445dc2
TT
15465
15466# Reset variables that may have inherited troublesome values from
15467# the environment.
15468
15469# IFS needs to be set, to space, tab, and newline, in precisely that order.
15470# (If _AS_PATH_WALK were called with IFS unset, it would have the
15471# side effect of setting IFS to empty, thus disabling word splitting.)
15472# Quoting is to prevent editors from complaining about space-tab.
39fd3d4f
SJR
15473as_nl='
15474'
15475export as_nl
54445dc2
TT
15476IFS=" "" $as_nl"
15477
15478PS1='$ '
15479PS2='> '
15480PS4='+ '
15481
15482# Ensure predictable behavior from utilities with locale-dependent output.
15483LC_ALL=C
15484export LC_ALL
15485LANGUAGE=C
15486export LANGUAGE
15487
15488# We cannot yet rely on "unset" to work, but we need these variables
15489# to be unset--not just set to an empty or harmless value--now, to
15490# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
15491# also avoids known problems related to "unset" and subshell syntax
15492# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
15493for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
15494do eval test \${$as_var+y} \
15495 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15496done
15497
15498# Ensure that fds 0, 1, and 2 are open.
15499if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
15500if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
15501if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
39fd3d4f
SJR
15502
15503# The user is always right.
54445dc2 15504if ${PATH_SEPARATOR+false} :; then
39fd3d4f
SJR
15505 PATH_SEPARATOR=:
15506 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15507 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15508 PATH_SEPARATOR=';'
15509 }
e1052144
TT
15510fi
15511
b0cacab0 15512
e1052144 15513# Find who we are. Look in the path if we contain no directory separator.
d6a4bcb5 15514as_myself=
57aa50d4 15515case $0 in #((
e1052144
TT
15516 *[\\/]* ) as_myself=$0 ;;
15517 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15518for as_dir in $PATH
15519do
15520 IFS=$as_save_IFS
54445dc2
TT
15521 case $as_dir in #(((
15522 '') as_dir=./ ;;
15523 */) ;;
15524 *) as_dir=$as_dir/ ;;
15525 esac
15526 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
57aa50d4 15527 done
e1052144
TT
15528IFS=$as_save_IFS
15529
15530 ;;
15531esac
15532# We did not find ourselves, most probably we were run as `sh COMMAND'
15533# in which case we are not to be found in the path.
15534if test "x$as_myself" = x; then
15535 as_myself=$0
15536fi
15537if test ! -f "$as_myself"; then
54445dc2 15538 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
57aa50d4 15539 exit 1
e1052144
TT
15540fi
15541
57aa50d4
TT
15542
15543
d6a4bcb5
TB
15544# as_fn_error STATUS ERROR [LINENO LOG_FD]
15545# ----------------------------------------
57aa50d4
TT
15546# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15547# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d6a4bcb5 15548# script with STATUS, using 1 if that was 0.
57aa50d4
TT
15549as_fn_error ()
15550{
d6a4bcb5
TB
15551 as_status=$1; test $as_status -eq 0 && as_status=1
15552 if test "$4"; then
15553 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
54445dc2 15554 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
57aa50d4 15555 fi
54445dc2 15556 printf "%s\n" "$as_me: error: $2" >&2
57aa50d4
TT
15557 as_fn_exit $as_status
15558} # as_fn_error
15559
15560
54445dc2 15561
57aa50d4
TT
15562# as_fn_set_status STATUS
15563# -----------------------
15564# Set $? to STATUS, without forking.
15565as_fn_set_status ()
15566{
15567 return $1
15568} # as_fn_set_status
15569
15570# as_fn_exit STATUS
15571# -----------------
15572# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15573as_fn_exit ()
15574{
15575 set +e
15576 as_fn_set_status $1
15577 exit $1
15578} # as_fn_exit
15579
15580# as_fn_unset VAR
15581# ---------------
15582# Portably unset VAR.
15583as_fn_unset ()
15584{
15585 { eval $1=; unset $1;}
15586}
15587as_unset=as_fn_unset
54445dc2 15588
57aa50d4
TT
15589# as_fn_append VAR VALUE
15590# ----------------------
15591# Append the text in VALUE to the end of the definition contained in VAR. Take
15592# advantage of any shell optimizations that allow amortized linear growth over
15593# repeated appends, instead of the typical quadratic growth present in naive
15594# implementations.
54445dc2
TT
15595if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
15596then :
57aa50d4
TT
15597 eval 'as_fn_append ()
15598 {
15599 eval $1+=\$2
15600 }'
54445dc2 15601else $as_nop
57aa50d4
TT
15602 as_fn_append ()
15603 {
15604 eval $1=\$$1\$2
15605 }
15606fi # as_fn_append
15607
15608# as_fn_arith ARG...
15609# ------------------
15610# Perform arithmetic evaluation on the ARGs, and store the result in the
15611# global $as_val. Take advantage of shells that can avoid forks. The arguments
15612# must be portable across $(()) and expr.
54445dc2
TT
15613if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
15614then :
57aa50d4
TT
15615 eval 'as_fn_arith ()
15616 {
15617 as_val=$(( $* ))
15618 }'
54445dc2 15619else $as_nop
57aa50d4
TT
15620 as_fn_arith ()
15621 {
15622 as_val=`expr "$@" || test $? -eq 1`
15623 }
15624fi # as_fn_arith
15625
15626
e1052144
TT
15627if expr a : '\(a\)' >/dev/null 2>&1 &&
15628 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b0cacab0
TT
15629 as_expr=expr
15630else
15631 as_expr=false
15632fi
15633
e1052144 15634if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b0cacab0
TT
15635 as_basename=basename
15636else
15637 as_basename=false
15638fi
15639
57aa50d4
TT
15640if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15641 as_dirname=dirname
15642else
15643 as_dirname=false
15644fi
b0cacab0 15645
e1052144 15646as_me=`$as_basename -- "$0" ||
b0cacab0
TT
15647$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15648 X"$0" : 'X\(//\)$' \| \
e1052144 15649 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
54445dc2 15650printf "%s\n" X/"$0" |
e1052144
TT
15651 sed '/^.*\/\([^/][^/]*\)\/*$/{
15652 s//\1/
15653 q
15654 }
15655 /^X\/\(\/\/\)$/{
15656 s//\1/
15657 q
15658 }
15659 /^X\/\(\/\).*/{
15660 s//\1/
15661 q
15662 }
15663 s/.*/./; q'`
b0cacab0 15664
57aa50d4
TT
15665# Avoid depending upon Character Ranges.
15666as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15667as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15668as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15669as_cr_digits='0123456789'
15670as_cr_alnum=$as_cr_Letters$as_cr_digits
e1052144 15671
54445dc2
TT
15672
15673# Determine whether it's possible to make 'echo' print without a newline.
15674# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
15675# for compatibility with existing Makefiles.
e1052144 15676ECHO_C= ECHO_N= ECHO_T=
57aa50d4 15677case `echo -n x` in #(((((
e1052144 15678-n*)
57aa50d4 15679 case `echo 'xy\c'` in
e1052144 15680 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
57aa50d4
TT
15681 xy) ECHO_C='\c';;
15682 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15683 ECHO_T=' ';;
e1052144
TT
15684 esac;;
15685*)
15686 ECHO_N='-n';;
b0cacab0 15687esac
b0cacab0 15688
54445dc2
TT
15689# For backward compatibility with old third-party macros, we provide
15690# the shell variables $as_echo and $as_echo_n. New code should use
15691# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
15692as_echo='printf %s\n'
15693as_echo_n='printf %s'
15694
b0cacab0 15695rm -f conf$$ conf$$.exe conf$$.file
e1052144
TT
15696if test -d conf$$.dir; then
15697 rm -f conf$$.dir/conf$$.file
15698else
15699 rm -f conf$$.dir
39fd3d4f
SJR
15700 mkdir conf$$.dir 2>/dev/null
15701fi
15702if (echo >conf$$.file) 2>/dev/null; then
15703 if ln -s conf$$.file conf$$ 2>/dev/null; then
15704 as_ln_s='ln -s'
15705 # ... but there are two gotchas:
15706 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15707 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d6a4bcb5 15708 # In both cases, we have to default to `cp -pR'.
39fd3d4f 15709 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d6a4bcb5 15710 as_ln_s='cp -pR'
39fd3d4f
SJR
15711 elif ln conf$$.file conf$$ 2>/dev/null; then
15712 as_ln_s=ln
15713 else
d6a4bcb5 15714 as_ln_s='cp -pR'
39fd3d4f 15715 fi
b0cacab0 15716else
d6a4bcb5 15717 as_ln_s='cp -pR'
b0cacab0 15718fi
e1052144
TT
15719rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15720rmdir conf$$.dir 2>/dev/null
b0cacab0 15721
57aa50d4
TT
15722
15723# as_fn_mkdir_p
15724# -------------
15725# Create "$as_dir" as a directory, including parents if necessary.
15726as_fn_mkdir_p ()
15727{
15728
15729 case $as_dir in #(
15730 -*) as_dir=./$as_dir;;
15731 esac
15732 test -d "$as_dir" || eval $as_mkdir_p || {
15733 as_dirs=
15734 while :; do
15735 case $as_dir in #(
54445dc2 15736 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
57aa50d4
TT
15737 *) as_qdir=$as_dir;;
15738 esac
15739 as_dirs="'$as_qdir' $as_dirs"
15740 as_dir=`$as_dirname -- "$as_dir" ||
15741$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15742 X"$as_dir" : 'X\(//\)[^/]' \| \
15743 X"$as_dir" : 'X\(//\)$' \| \
15744 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
54445dc2 15745printf "%s\n" X"$as_dir" |
57aa50d4
TT
15746 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15747 s//\1/
15748 q
15749 }
15750 /^X\(\/\/\)[^/].*/{
15751 s//\1/
15752 q
15753 }
15754 /^X\(\/\/\)$/{
15755 s//\1/
15756 q
15757 }
15758 /^X\(\/\).*/{
15759 s//\1/
15760 q
15761 }
15762 s/.*/./; q'`
15763 test -d "$as_dir" && break
15764 done
15765 test -z "$as_dirs" || eval "mkdir $as_dirs"
d6a4bcb5 15766 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
57aa50d4
TT
15767
15768
15769} # as_fn_mkdir_p
b0cacab0 15770if mkdir -p . 2>/dev/null; then
57aa50d4 15771 as_mkdir_p='mkdir -p "$as_dir"'
b0cacab0
TT
15772else
15773 test -d ./-p && rmdir ./-p
15774 as_mkdir_p=false
15775fi
15776
d6a4bcb5
TB
15777
15778# as_fn_executable_p FILE
15779# -----------------------
15780# Test if FILE is an executable regular file.
15781as_fn_executable_p ()
15782{
15783 test -f "$1" && test -x "$1"
15784} # as_fn_executable_p
15785as_test_x='test -x'
15786as_executable_p=as_fn_executable_p
b0cacab0
TT
15787
15788# Sed expression to map a string onto a valid CPP name.
15789as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15790
15791# Sed expression to map a string onto a valid variable name.
15792as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15793
15794
b0cacab0 15795exec 6>&1
57aa50d4
TT
15796## ----------------------------------- ##
15797## Main body of $CONFIG_STATUS script. ##
15798## ----------------------------------- ##
15799_ASEOF
15800test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
b0cacab0 15801
57aa50d4
TT
15802cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15803# Save the log message, to keep $0 and so on meaningful, and to
b0cacab0 15804# report actual input values of CONFIG_FILES etc. instead of their
e1052144
TT
15805# values after options handling.
15806ac_log="
b0cacab0 15807This file was extended by $as_me, which was
54445dc2 15808generated by GNU Autoconf 2.71. Invocation command line was
b0cacab0
TT
15809
15810 CONFIG_FILES = $CONFIG_FILES
15811 CONFIG_HEADERS = $CONFIG_HEADERS
15812 CONFIG_LINKS = $CONFIG_LINKS
15813 CONFIG_COMMANDS = $CONFIG_COMMANDS
15814 $ $0 $@
15815
e1052144
TT
15816on `(hostname || uname -n) 2>/dev/null | sed 1q`
15817"
15818
b0cacab0
TT
15819_ACEOF
15820
39fd3d4f
SJR
15821case $ac_config_files in *"
15822"*) set x $ac_config_files; shift; ac_config_files=$*;;
15823esac
15824
d1154eb4
TT
15825case $ac_config_headers in *"
15826"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15827esac
39fd3d4f
SJR
15828
15829
15830cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b0cacab0 15831# Files that config.status was made for.
e1052144 15832config_files="$ac_config_files"
d1154eb4 15833config_headers="$ac_config_headers"
e1052144 15834config_commands="$ac_config_commands"
b0cacab0 15835
e1052144 15836_ACEOF
b0cacab0 15837
39fd3d4f 15838cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b0cacab0 15839ac_cs_usage="\
57aa50d4
TT
15840\`$as_me' instantiates files and other configuration actions
15841from templates according to the current configuration. Unless the files
15842and actions are specified as TAGs, all are instantiated by default.
b0cacab0 15843
57aa50d4 15844Usage: $0 [OPTION]... [TAG]...
b0cacab0
TT
15845
15846 -h, --help print this help, then exit
29a5deed 15847 -V, --version print version number and configuration settings, then exit
61ef2474 15848 --config print configuration, then exit
39fd3d4f
SJR
15849 -q, --quiet, --silent
15850 do not print progress messages
b0cacab0
TT
15851 -d, --debug don't remove temporary files
15852 --recheck update $as_me by reconfiguring in the same conditions
39fd3d4f
SJR
15853 --file=FILE[:TEMPLATE]
15854 instantiate the configuration file FILE
d1154eb4
TT
15855 --header=FILE[:TEMPLATE]
15856 instantiate the configuration header FILE
b0cacab0
TT
15857
15858Configuration files:
15859$config_files
15860
d1154eb4
TT
15861Configuration headers:
15862$config_headers
15863
b0cacab0
TT
15864Configuration commands:
15865$config_commands
15866
57aa50d4 15867Report bugs to the package provider."
b0cacab0 15868
e1052144 15869_ACEOF
54445dc2
TT
15870ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
15871ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
39fd3d4f 15872cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
54445dc2 15873ac_cs_config='$ac_cs_config_escaped'
b0cacab0
TT
15874ac_cs_version="\\
15875config.status
54445dc2 15876configured by $0, generated by GNU Autoconf 2.71,
61ef2474 15877 with options \\"\$ac_cs_config\\"
b0cacab0 15878
54445dc2 15879Copyright (C) 2021 Free Software Foundation, Inc.
b0cacab0
TT
15880This config.status script is free software; the Free Software Foundation
15881gives unlimited permission to copy, distribute and modify it."
e1052144
TT
15882
15883ac_pwd='$ac_pwd'
15884srcdir='$srcdir'
15885INSTALL='$INSTALL'
93613951 15886MKDIR_P='$MKDIR_P'
39fd3d4f
SJR
15887AWK='$AWK'
15888test -n "\$AWK" || AWK=awk
b0cacab0
TT
15889_ACEOF
15890
39fd3d4f
SJR
15891cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15892# The default lists apply if the user does not specify any file.
b0cacab0
TT
15893ac_need_defaults=:
15894while test $# != 0
07a0db15 15895do
b0cacab0 15896 case $1 in
d6a4bcb5 15897 --*=?*)
e1052144
TT
15898 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15899 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
b0cacab0
TT
15900 ac_shift=:
15901 ;;
d6a4bcb5
TB
15902 --*=)
15903 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15904 ac_optarg=
15905 ac_shift=:
15906 ;;
e1052144 15907 *)
b0cacab0
TT
15908 ac_option=$1
15909 ac_optarg=$2
15910 ac_shift=shift
15911 ;;
b0cacab0
TT
15912 esac
15913
15914 case $ac_option in
15915 # Handling of the options.
93636bde 15916 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
b0cacab0 15917 ac_cs_recheck=: ;;
e1052144 15918 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
54445dc2 15919 printf "%s\n" "$ac_cs_version"; exit ;;
61ef2474 15920 --config | --confi | --conf | --con | --co | --c )
54445dc2 15921 printf "%s\n" "$ac_cs_config"; exit ;;
e1052144 15922 --debug | --debu | --deb | --de | --d | -d )
b0cacab0
TT
15923 debug=: ;;
15924 --file | --fil | --fi | --f )
15925 $ac_shift
39fd3d4f 15926 case $ac_optarg in
54445dc2 15927 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
d6a4bcb5 15928 '') as_fn_error $? "missing file argument" ;;
39fd3d4f 15929 esac
57aa50d4 15930 as_fn_append CONFIG_FILES " '$ac_optarg'"
b0cacab0 15931 ac_need_defaults=false;;
d1154eb4
TT
15932 --header | --heade | --head | --hea )
15933 $ac_shift
15934 case $ac_optarg in
54445dc2 15935 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
d1154eb4
TT
15936 esac
15937 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15938 ac_need_defaults=false;;
15939 --he | --h)
15940 # Conflict between --help and --header
d6a4bcb5 15941 as_fn_error $? "ambiguous option: \`$1'
d1154eb4
TT
15942Try \`$0 --help' for more information.";;
15943 --help | --hel | -h )
54445dc2 15944 printf "%s\n" "$ac_cs_usage"; exit ;;
b0cacab0
TT
15945 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15946 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15947 ac_cs_silent=: ;;
15948
15949 # This is an error.
d6a4bcb5 15950 -*) as_fn_error $? "unrecognized option: \`$1'
57aa50d4 15951Try \`$0 --help' for more information." ;;
b0cacab0 15952
57aa50d4 15953 *) as_fn_append ac_config_targets " $1"
e1052144 15954 ac_need_defaults=false ;;
b0cacab0 15955
07a0db15 15956 esac
b0cacab0 15957 shift
07a0db15
TT
15958done
15959
b0cacab0
TT
15960ac_configure_extra_args=
15961
15962if $ac_cs_silent; then
15963 exec 6>/dev/null
15964 ac_configure_extra_args="$ac_configure_extra_args --silent"
15965fi
15966
15967_ACEOF
39fd3d4f 15968cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b0cacab0 15969if \$ac_cs_recheck; then
d6a4bcb5 15970 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
39fd3d4f 15971 shift
54445dc2 15972 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
39fd3d4f 15973 CONFIG_SHELL='$SHELL'
e1052144 15974 export CONFIG_SHELL
39fd3d4f 15975 exec "\$@"
b0cacab0 15976fi
07a0db15 15977
b0cacab0 15978_ACEOF
39fd3d4f 15979cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
e1052144
TT
15980exec 5>>config.log
15981{
15982 echo
15983 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15984## Running $as_me. ##
15985_ASBOX
54445dc2 15986 printf "%s\n" "$ac_log"
e1052144 15987} >&5
07a0db15 15988
e1052144 15989_ACEOF
39fd3d4f 15990cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b0cacab0 15991#
e1052144 15992# INIT-COMMANDS
b0cacab0 15993#
b0cacab0 15994# Capture the value of obsolete ALL_LINGUAS because we need it to compute
bdcd5f22
TT
15995 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS.
15996 OBSOLETE_ALL_LINGUAS="$ALL_LINGUAS"
b0cacab0
TT
15997 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15998 LINGUAS="${LINGUAS-%UNSET%}"
15999
16000
16001_ACEOF
16002
39fd3d4f 16003cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
e1052144
TT
16004
16005# Handling of arguments.
b0cacab0
TT
16006for ac_config_target in $ac_config_targets
16007do
e1052144 16008 case $ac_config_target in
d1154eb4 16009 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
93613951 16010 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
e1052144
TT
16011 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
16012
d6a4bcb5 16013 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
b0cacab0
TT
16014 esac
16015done
16016
e1052144 16017
b0cacab0
TT
16018# If the user did not use the arguments to specify the items to instantiate,
16019# then the envvar interface is used. Set only those that are not.
16020# We use the long form for the default assignment because of an extremely
16021# bizarre bug on SunOS 4.1.3.
16022if $ac_need_defaults; then
54445dc2
TT
16023 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
16024 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
16025 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
b0cacab0
TT
16026fi
16027
16028# Have a temporary directory for convenience. Make it in the build tree
e1052144 16029# simply because there is no reason against having it here, and in addition,
b0cacab0 16030# creating and moving files from /tmp can sometimes cause problems.
e1052144
TT
16031# Hook for its removal unless debugging.
16032# Note that there is a small window in which the directory will not be cleaned:
16033# after its creation but before its name has been assigned to `$tmp'.
b0cacab0
TT
16034$debug ||
16035{
d6a4bcb5 16036 tmp= ac_tmp=
e1052144 16037 trap 'exit_status=$?
d6a4bcb5
TB
16038 : "${ac_tmp:=$tmp}"
16039 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
e1052144 16040' 0
57aa50d4 16041 trap 'as_fn_exit 1' 1 2 13 15
b0cacab0 16042}
b0cacab0
TT
16043# Create a (secure) tmp directory for tmp files.
16044
16045{
e1052144 16046 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d6a4bcb5 16047 test -d "$tmp"
b0cacab0
TT
16048} ||
16049{
e1052144
TT
16050 tmp=./conf$$-$RANDOM
16051 (umask 077 && mkdir "$tmp")
d6a4bcb5
TB
16052} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16053ac_tmp=$tmp
b0cacab0 16054
39fd3d4f
SJR
16055# Set up the scripts for CONFIG_FILES section.
16056# No need to generate them if there are no CONFIG_FILES.
16057# This happens for instance with `./config.status config.h'.
e1052144
TT
16058if test -n "$CONFIG_FILES"; then
16059
39fd3d4f
SJR
16060if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16061 ac_cs_awk_getline=:
16062 ac_cs_awk_pipe_init=
16063 ac_cs_awk_read_file='
16064 while ((getline aline < (F[key])) > 0)
16065 print(aline)
16066 close(F[key])'
16067 ac_cs_awk_pipe_fini=
16068else
16069 ac_cs_awk_getline=false
16070 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16071 ac_cs_awk_read_file='
16072 print "|#_!!_#|"
16073 print "cat " F[key] " &&"
16074 '$ac_cs_awk_pipe_init
16075 # The final `:' finishes the AND list.
16076 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16077fi
57aa50d4
TT
16078ac_cr=`echo X | tr X '\015'`
16079# On cygwin, bash can eat \r inside `` if the user requested igncr.
16080# But we know of no other shell where ac_cr would be empty at this
16081# point, so we can use a bashism as a fallback.
16082if test "x$ac_cr" = x; then
16083 eval ac_cr=\$\'\\r\'
16084fi
39fd3d4f
SJR
16085ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16086if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
d6a4bcb5 16087 ac_cs_awk_cr='\\r'
39fd3d4f
SJR
16088else
16089 ac_cs_awk_cr=$ac_cr
16090fi
e1052144 16091
d6a4bcb5 16092echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
39fd3d4f 16093_ACEOF
e1052144 16094
39fd3d4f
SJR
16095# Create commands to substitute file output variables.
16096{
16097 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
d6a4bcb5 16098 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
39fd3d4f
SJR
16099 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16100 echo "_ACAWK" &&
16101 echo "_ACEOF"
16102} >conf$$files.sh &&
16103. ./conf$$files.sh ||
d6a4bcb5 16104 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
39fd3d4f 16105rm -f conf$$files.sh
e1052144 16106
39fd3d4f
SJR
16107{
16108 echo "cat >conf$$subs.awk <<_ACEOF" &&
16109 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16110 echo "_ACEOF"
16111} >conf$$subs.sh ||
d6a4bcb5
TB
16112 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16113ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
e1052144
TT
16114ac_delim='%!_!# '
16115for ac_last_try in false false false false false :; do
39fd3d4f 16116 . ./conf$$subs.sh ||
d6a4bcb5 16117 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
39fd3d4f
SJR
16118
16119 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16120 if test $ac_delim_n = $ac_delim_num; then
e1052144
TT
16121 break
16122 elif $ac_last_try; then
d6a4bcb5 16123 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
e1052144
TT
16124 else
16125 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21c84b71 16126 fi
e1052144 16127done
39fd3d4f
SJR
16128rm -f conf$$subs.sh
16129
16130cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d6a4bcb5 16131cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
39fd3d4f
SJR
16132_ACEOF
16133sed -n '
16134h
16135s/^/S["/; s/!.*/"]=/
16136p
16137g
16138s/^[^!]*!//
16139:repl
16140t repl
16141s/'"$ac_delim"'$//
16142t delim
16143:nl
16144h
61ef2474 16145s/\(.\{148\}\)..*/\1/
39fd3d4f
SJR
16146t more1
16147s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16148p
16149n
16150b repl
16151:more1
16152s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16153p
16154g
16155s/.\{148\}//
16156t nl
16157:delim
16158h
61ef2474 16159s/\(.\{148\}\)..*/\1/
39fd3d4f
SJR
16160t more2
16161s/["\\]/\\&/g; s/^/"/; s/$/"/
16162p
16163b
16164:more2
16165s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16166p
16167g
16168s/.\{148\}//
16169t delim
16170' <conf$$subs.awk | sed '
16171/^[^""]/{
16172 N
16173 s/\n//
e1052144 16174}
39fd3d4f
SJR
16175' >>$CONFIG_STATUS || ac_write_fail=1
16176rm -f conf$$subs.awk
16177cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16178_ACAWK
d6a4bcb5 16179cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
39fd3d4f
SJR
16180 for (key in S) S_is_set[key] = 1
16181 FS = "\a"
16182 \$ac_cs_awk_pipe_init
e1052144 16183}
39fd3d4f
SJR
16184{
16185 line = $ 0
16186 nfields = split(line, field, "@")
16187 substed = 0
16188 len = length(field[1])
16189 for (i = 2; i < nfields; i++) {
16190 key = field[i]
16191 keylen = length(key)
16192 if (S_is_set[key]) {
16193 value = S[key]
16194 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16195 len += length(value) + length(field[++i])
16196 substed = 1
16197 } else
16198 len += 1 + keylen
16199 }
16200 if (nfields == 3 && !substed) {
16201 key = field[2]
16202 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
16203 \$ac_cs_awk_read_file
16204 next
16205 }
16206 }
16207 print line
488c75a6 16208}
39fd3d4f
SJR
16209\$ac_cs_awk_pipe_fini
16210_ACAWK
e1052144 16211_ACEOF
39fd3d4f
SJR
16212cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16213if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16214 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16215else
16216 cat
d6a4bcb5
TB
16217fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16218 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
b0cacab0 16219_ACEOF
e1052144 16220
d6a4bcb5
TB
16221# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16222# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
e1052144
TT
16223# trailing colons and then remove the whole line if VPATH becomes empty
16224# (actually we leave an empty line to preserve line numbers).
16225if test "x$srcdir" = x.; then
d6a4bcb5
TB
16226 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16227h
16228s///
16229s/^/:/
16230s/[ ]*$/:/
16231s/:\$(srcdir):/:/g
16232s/:\${srcdir}:/:/g
16233s/:@srcdir@:/:/g
16234s/^:*//
e1052144 16235s/:*$//
d6a4bcb5
TB
16236x
16237s/\(=[ ]*\).*/\1/
16238G
16239s/\n//
e1052144
TT
16240s/^[^=]*=[ ]*$//
16241}'
16242fi
16243
39fd3d4f 16244cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
e1052144
TT
16245fi # test -n "$CONFIG_FILES"
16246
d1154eb4
TT
16247# Set up the scripts for CONFIG_HEADERS section.
16248# No need to generate them if there are no CONFIG_HEADERS.
16249# This happens for instance with `./config.status Makefile'.
16250if test -n "$CONFIG_HEADERS"; then
d6a4bcb5 16251cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
d1154eb4
TT
16252BEGIN {
16253_ACEOF
16254
16255# Transform confdefs.h into an awk script `defines.awk', embedded as
16256# here-document in config.status, that substitutes the proper values into
16257# config.h.in to produce config.h.
16258
16259# Create a delimiter string that does not exist in confdefs.h, to ease
16260# handling of long lines.
16261ac_delim='%!_!# '
16262for ac_last_try in false false :; do
d6a4bcb5
TB
16263 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16264 if test -z "$ac_tt"; then
d1154eb4
TT
16265 break
16266 elif $ac_last_try; then
d6a4bcb5 16267 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
d1154eb4
TT
16268 else
16269 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16270 fi
16271done
16272
16273# For the awk script, D is an array of macro values keyed by name,
16274# likewise P contains macro parameters if any. Preserve backslash
16275# newline sequences.
16276
16277ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16278sed -n '
16279s/.\{148\}/&'"$ac_delim"'/g
16280t rset
16281:rset
16282s/^[ ]*#[ ]*define[ ][ ]*/ /
16283t def
16284d
16285:def
16286s/\\$//
16287t bsnl
16288s/["\\]/\\&/g
16289s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16290D["\1"]=" \3"/p
16291s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16292d
16293:bsnl
16294s/["\\]/\\&/g
16295s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16296D["\1"]=" \3\\\\\\n"\\/p
16297t cont
16298s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16299t cont
16300d
16301:cont
16302n
16303s/.\{148\}/&'"$ac_delim"'/g
16304t clear
16305:clear
16306s/\\$//
16307t bsnlc
16308s/["\\]/\\&/g; s/^/"/; s/$/"/p
16309d
16310:bsnlc
16311s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16312b cont
16313' <confdefs.h | sed '
16314s/'"$ac_delim"'/"\\\
16315"/g' >>$CONFIG_STATUS || ac_write_fail=1
16316
16317cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16318 for (key in D) D_is_set[key] = 1
16319 FS = "\a"
16320}
16321/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16322 line = \$ 0
16323 split(line, arg, " ")
16324 if (arg[1] == "#") {
16325 defundef = arg[2]
16326 mac1 = arg[3]
16327 } else {
16328 defundef = substr(arg[1], 2)
16329 mac1 = arg[2]
16330 }
16331 split(mac1, mac2, "(") #)
16332 macro = mac2[1]
16333 prefix = substr(line, 1, index(line, defundef) - 1)
16334 if (D_is_set[macro]) {
16335 # Preserve the white space surrounding the "#".
16336 print prefix "define", macro P[macro] D[macro]
16337 next
16338 } else {
16339 # Replace #undef with comments. This is necessary, for example,
16340 # in the case of _POSIX_SOURCE, which is predefined and required
16341 # on some systems where configure will not decide to define it.
16342 if (defundef == "undef") {
16343 print "/*", prefix defundef, macro, "*/"
16344 next
16345 }
16346 }
16347}
16348{ print }
16349_ACAWK
16350_ACEOF
16351cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
d6a4bcb5 16352 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
d1154eb4
TT
16353fi # test -n "$CONFIG_HEADERS"
16354
e1052144 16355
d1154eb4 16356eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
39fd3d4f
SJR
16357shift
16358for ac_tag
e1052144
TT
16359do
16360 case $ac_tag in
16361 :[FHLC]) ac_mode=$ac_tag; continue;;
16362 esac
16363 case $ac_mode$ac_tag in
16364 :[FHL]*:*);;
d6a4bcb5 16365 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
e1052144
TT
16366 :[FH]-) ac_tag=-:-;;
16367 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16368 esac
16369 ac_save_IFS=$IFS
16370 IFS=:
16371 set x $ac_tag
16372 IFS=$ac_save_IFS
16373 shift
16374 ac_file=$1
16375 shift
16376
16377 case $ac_mode in
16378 :L) ac_source=$1;;
16379 :[FH])
16380 ac_file_inputs=
16381 for ac_f
16382 do
16383 case $ac_f in
d6a4bcb5 16384 -) ac_f="$ac_tmp/stdin";;
e1052144
TT
16385 *) # Look for the file first in the build tree, then in the source tree
16386 # (if the path is not absolute). The absolute path cannot be DOS-style,
16387 # because $ac_f cannot contain `:'.
16388 test -f "$ac_f" ||
16389 case $ac_f in
16390 [\\/$]*) false;;
16391 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16392 esac ||
d6a4bcb5 16393 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
e1052144 16394 esac
54445dc2 16395 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
57aa50d4 16396 as_fn_append ac_file_inputs " '$ac_f'"
e1052144
TT
16397 done
16398
16399 # Let's still pretend it is `configure' which instantiates (i.e., don't
16400 # use $as_me), people would be surprised to read:
16401 # /* config.h. Generated by config.status. */
39fd3d4f 16402 configure_input='Generated from '`
54445dc2 16403 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
39fd3d4f 16404 `' by configure.'
e1052144
TT
16405 if test x"$ac_file" != x-; then
16406 configure_input="$ac_file. $configure_input"
54445dc2
TT
16407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16408printf "%s\n" "$as_me: creating $ac_file" >&6;}
e1052144 16409 fi
39fd3d4f
SJR
16410 # Neutralize special characters interpreted by sed in replacement strings.
16411 case $configure_input in #(
16412 *\&* | *\|* | *\\* )
54445dc2 16413 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
39fd3d4f
SJR
16414 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16415 *) ac_sed_conf_input=$configure_input;;
16416 esac
e1052144
TT
16417
16418 case $ac_tag in
d6a4bcb5
TB
16419 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16420 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
e1052144
TT
16421 esac
16422 ;;
b0cacab0
TT
16423 esac
16424
e1052144 16425 ac_dir=`$as_dirname -- "$ac_file" ||
b0cacab0
TT
16426$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16427 X"$ac_file" : 'X\(//\)[^/]' \| \
16428 X"$ac_file" : 'X\(//\)$' \| \
e1052144 16429 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
54445dc2 16430printf "%s\n" X"$ac_file" |
e1052144
TT
16431 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16432 s//\1/
16433 q
16434 }
16435 /^X\(\/\/\)[^/].*/{
16436 s//\1/
16437 q
16438 }
16439 /^X\(\/\/\)$/{
16440 s//\1/
16441 q
16442 }
16443 /^X\(\/\).*/{
16444 s//\1/
16445 q
16446 }
16447 s/.*/./; q'`
57aa50d4 16448 as_dir="$ac_dir"; as_fn_mkdir_p
b0cacab0
TT
16449 ac_builddir=.
16450
e1052144
TT
16451case "$ac_dir" in
16452.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16453*)
54445dc2 16454 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
e1052144 16455 # A ".." for each directory in $ac_dir_suffix.
54445dc2 16456 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
e1052144
TT
16457 case $ac_top_builddir_sub in
16458 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16459 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16460 esac ;;
16461esac
16462ac_abs_top_builddir=$ac_pwd
16463ac_abs_builddir=$ac_pwd$ac_dir_suffix
16464# for backward compatibility:
16465ac_top_builddir=$ac_top_build_prefix
93636bde 16466
b0cacab0 16467case $srcdir in
e1052144 16468 .) # We are building in place.
b0cacab0 16469 ac_srcdir=.
e1052144
TT
16470 ac_top_srcdir=$ac_top_builddir_sub
16471 ac_abs_top_srcdir=$ac_pwd ;;
16472 [\\/]* | ?:[\\/]* ) # Absolute name.
b0cacab0 16473 ac_srcdir=$srcdir$ac_dir_suffix;
e1052144
TT
16474 ac_top_srcdir=$srcdir
16475 ac_abs_top_srcdir=$srcdir ;;
16476 *) # Relative name.
16477 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16478 ac_top_srcdir=$ac_top_build_prefix$srcdir
16479 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b0cacab0 16480esac
e1052144 16481ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
b0cacab0 16482
b0cacab0 16483
e1052144
TT
16484 case $ac_mode in
16485 :F)
16486 #
16487 # CONFIG_FILE
16488 #
50e1e10f 16489
b0cacab0
TT
16490 case $INSTALL in
16491 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
e1052144 16492 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
50e1e10f 16493 esac
93613951
TT
16494 ac_MKDIR_P=$MKDIR_P
16495 case $MKDIR_P in
16496 [\\/$]* | ?:[\\/]* ) ;;
16497 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
16498 esac
e1052144 16499_ACEOF
50e1e10f 16500
39fd3d4f 16501cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
e1052144
TT
16502# If the template does not know about datarootdir, expand it.
16503# FIXME: This hack should be removed a few years after 2.60.
16504ac_datarootdir_hack=; ac_datarootdir_seen=
39fd3d4f
SJR
16505ac_sed_dataroot='
16506/datarootdir/ {
e1052144
TT
16507 p
16508 q
16509}
16510/@datadir@/p
16511/@docdir@/p
16512/@infodir@/p
16513/@localedir@/p
57aa50d4 16514/@mandir@/p'
39fd3d4f 16515case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
e1052144
TT
16516*datarootdir*) ac_datarootdir_seen=yes;;
16517*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
54445dc2
TT
16518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16519printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
b0cacab0 16520_ACEOF
39fd3d4f 16521cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
e1052144
TT
16522 ac_datarootdir_hack='
16523 s&@datadir@&$datadir&g
16524 s&@docdir@&$docdir&g
16525 s&@infodir@&$infodir&g
16526 s&@localedir@&$localedir&g
16527 s&@mandir@&$mandir&g
57aa50d4 16528 s&\\\${datarootdir}&$datarootdir&g' ;;
e1052144
TT
16529esac
16530_ACEOF
16531
16532# Neutralize VPATH when `$srcdir' = `.'.
16533# Shell code in configure.ac might set extrasub.
16534# FIXME: do we really want to maintain this feature?
39fd3d4f
SJR
16535cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16536ac_sed_extra="$ac_vpsub
b0cacab0
TT
16537$extrasub
16538_ACEOF
39fd3d4f 16539cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b0cacab0
TT
16540:t
16541/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
39fd3d4f 16542s|@configure_input@|$ac_sed_conf_input|;t t
e1052144 16543s&@top_builddir@&$ac_top_builddir_sub&;t t
39fd3d4f 16544s&@top_build_prefix@&$ac_top_build_prefix&;t t
e1052144
TT
16545s&@srcdir@&$ac_srcdir&;t t
16546s&@abs_srcdir@&$ac_abs_srcdir&;t t
16547s&@top_srcdir@&$ac_top_srcdir&;t t
16548s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16549s&@builddir@&$ac_builddir&;t t
16550s&@abs_builddir@&$ac_abs_builddir&;t t
16551s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16552s&@INSTALL@&$ac_INSTALL&;t t
93613951 16553s&@MKDIR_P@&$ac_MKDIR_P&;t t
e1052144 16554$ac_datarootdir_hack
39fd3d4f
SJR
16555"
16556eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
16557if $ac_cs_awk_getline; then
d6a4bcb5 16558 $AWK -f "$ac_tmp/subs.awk"
39fd3d4f 16559else
d6a4bcb5
TB
16560 $AWK -f "$ac_tmp/subs.awk" | $SHELL
16561fi \
16562 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
e1052144
TT
16563
16564test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
d6a4bcb5
TB
16565 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16566 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16567 "$ac_tmp/out"`; test -z "$ac_out"; } &&
54445dc2 16568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d6a4bcb5 16569which seems to be undefined. Please make sure it is defined" >&5
54445dc2 16570printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d6a4bcb5 16571which seems to be undefined. Please make sure it is defined" >&2;}
e1052144 16572
d6a4bcb5 16573 rm -f "$ac_tmp/stdin"
e1052144 16574 case $ac_file in
d6a4bcb5
TB
16575 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16576 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
39fd3d4f 16577 esac \
d6a4bcb5 16578 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
e1052144 16579 ;;
d1154eb4
TT
16580 :H)
16581 #
16582 # CONFIG_HEADER
16583 #
16584 if test x"$ac_file" != x-; then
16585 {
54445dc2 16586 printf "%s\n" "/* $configure_input */" >&1 \
d6a4bcb5
TB
16587 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16588 } >"$ac_tmp/config.h" \
16589 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16590 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
54445dc2
TT
16591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16592printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
d1154eb4
TT
16593 else
16594 rm -f "$ac_file"
d6a4bcb5
TB
16595 mv "$ac_tmp/config.h" "$ac_file" \
16596 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
d1154eb4
TT
16597 fi
16598 else
54445dc2 16599 printf "%s\n" "/* $configure_input */" >&1 \
d6a4bcb5
TB
16600 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16601 || as_fn_error $? "could not create -" "$LINENO" 5
d1154eb4
TT
16602 fi
16603 ;;
07a0db15 16604
54445dc2
TT
16605 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16606printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
e1052144
TT
16607 ;;
16608 esac
a04eba3f 16609
b0cacab0 16610
e1052144 16611 case $ac_file$ac_mode in
93613951 16612 "po-directories":C)
a04eba3f
TT
16613 for ac_file in $CONFIG_FILES; do
16614 # Support "outfile[:infile[:infile...]]"
16615 case "$ac_file" in
16616 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
16617 esac
16618 # PO directories have a Makefile.in generated from Makefile.in.in.
16619 case "$ac_file" in */Makefile.in)
16620 # Adjust a relative srcdir.
16621 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
93613951 16622 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
a04eba3f
TT
16623 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
16624 # In autoconf-2.13 it is called $ac_given_srcdir.
16625 # In autoconf-2.50 it is called $srcdir.
16626 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
16627 case "$ac_given_srcdir" in
16628 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
16629 /*) top_srcdir="$ac_given_srcdir" ;;
16630 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
16631 esac
93613951
TT
16632 # Treat a directory as a PO directory if and only if it has a
16633 # POTFILES.in file. This allows packages to have multiple PO
16634 # directories under different names or in different locations.
a04eba3f
TT
16635 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
16636 rm -f "$ac_dir/POTFILES"
16637 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
93613951
TT
16638 gt_tab=`printf '\t'`
16639 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
16640 POMAKEFILEDEPS="POTFILES.in"
16641 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
a04eba3f
TT
16642 # on $ac_dir but don't depend on user-specified configuration
16643 # parameters.
16644 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
16645 # The LINGUAS file contains the set of available languages.
b0cacab0 16646 if test -n "$OBSOLETE_ALL_LINGUAS"; then
a04eba3f
TT
16647 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
16648 fi
bdcd5f22 16649 ALL_LINGUAS=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
b0cacab0
TT
16650 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
16651 else
16652 # The set of available languages was given in configure.in.
bdcd5f22 16653 ALL_LINGUAS=$OBSOLETE_ALL_LINGUAS
a04eba3f 16654 fi
b0cacab0
TT
16655 # Compute POFILES
16656 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
16657 # Compute UPDATEPOFILES
16658 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
16659 # Compute DUMMYPOFILES
16660 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
16661 # Compute GMOFILES
16662 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
a04eba3f
TT
16663 case "$ac_given_srcdir" in
16664 .) srcdirpre= ;;
16665 *) srcdirpre='$(srcdir)/' ;;
16666 esac
16667 POFILES=
a04eba3f
TT
16668 UPDATEPOFILES=
16669 DUMMYPOFILES=
b0cacab0 16670 GMOFILES=
a04eba3f
TT
16671 for lang in $ALL_LINGUAS; do
16672 POFILES="$POFILES $srcdirpre$lang.po"
a04eba3f
TT
16673 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
16674 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
b0cacab0 16675 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
a04eba3f
TT
16676 done
16677 # CATALOGS depends on both $ac_dir and the user's LINGUAS
16678 # environment variable.
16679 INST_LINGUAS=
16680 if test -n "$ALL_LINGUAS"; then
16681 for presentlang in $ALL_LINGUAS; do
16682 useit=no
16683 if test "%UNSET%" != "$LINGUAS"; then
16684 desiredlanguages="$LINGUAS"
16685 else
16686 desiredlanguages="$ALL_LINGUAS"
16687 fi
16688 for desiredlang in $desiredlanguages; do
16689 # Use the presentlang catalog if desiredlang is
16690 # a. equal to presentlang, or
16691 # b. a variant of presentlang (because in this case,
16692 # presentlang can be used as a fallback for messages
16693 # which are not translated in the desiredlang catalog).
16694 case "$desiredlang" in
16695 "$presentlang"*) useit=yes;;
16696 esac
16697 done
16698 if test $useit = yes; then
16699 INST_LINGUAS="$INST_LINGUAS $presentlang"
16700 fi
16701 done
16702 fi
16703 CATALOGS=
16704 if test -n "$INST_LINGUAS"; then
16705 for lang in $INST_LINGUAS; do
16706 CATALOGS="$CATALOGS $lang.gmo"
16707 done
16708 fi
16709 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
b0cacab0 16710 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
16711 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
16712 if test -f "$f"; then
16713 case "$f" in
16714 *.orig | *.bak | *~) ;;
16715 *) cat "$f" >> "$ac_dir/Makefile" ;;
16716 esac
16717 fi
16718 done
16719 fi
16720 ;;
a64c9c13 16721 esac
b0cacab0 16722 done ;;
e1052144 16723
b0cacab0 16724 esac
e1052144 16725done # for ac_tag
07a0db15 16726
b0cacab0 16727
57aa50d4 16728as_fn_exit 0
b0cacab0 16729_ACEOF
b0cacab0
TT
16730ac_clean_files=$ac_clean_files_save
16731
39fd3d4f 16732test $ac_write_fail = 0 ||
d6a4bcb5 16733 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
39fd3d4f 16734
b0cacab0
TT
16735
16736# configure is writing to config.log, and then calls config.status.
16737# config.status does its own redirection, appending to config.log.
16738# Unfortunately, on DOS this fails, as config.log is still kept open
16739# by configure, so config.status won't be able to write to it; its
16740# output is simply discarded. So we exec the FD to /dev/null,
16741# effectively closing config.log, so it can be properly (re)opened and
16742# appended to by config.status. When coming back to configure, we
16743# need to make the FD available again.
16744if test "$no_create" != yes; then
16745 ac_cs_success=:
16746 ac_config_status_args=
16747 test "$silent" = yes &&
16748 ac_config_status_args="$ac_config_status_args --quiet"
16749 exec 5>/dev/null
16750 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16751 exec 5>>config.log
16752 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16753 # would make configure fail if this is the last instruction.
d6a4bcb5 16754 $ac_cs_success || as_fn_exit 1
b0cacab0 16755fi
39fd3d4f 16756if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
54445dc2
TT
16757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16758printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
39fd3d4f 16759fi
50e1e10f 16760
ee683a13 16761if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi
54445dc2 16762