]> git.ipfire.org Git - thirdparty/e2fsprogs.git/blame - configure
Merge branch 'support-fuse3' of https://github.com/DrDaveD/e2fsprogs into next
[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
448a3f8b
DD
706fuse3_LIBS
707fuse3_CFLAGS
c94da047 708CLOCK_GETTIME_LIB
7e3a4f0a 709ARCHIVE_LIB
b291c11f 710MAGIC_LIB
39fd3d4f 711SOCKET_LIB
2dd680f3 712SIZEOF_TIME_T
cc68e8a6 713SIZEOF_OFF_T
39fd3d4f
SJR
714SIZEOF_LONG_LONG
715SIZEOF_LONG
716SIZEOF_INT
717SIZEOF_SHORT
ec3a69bb 718DD
39fd3d4f
SJR
719BUILD_CC
720MAKEINFO
721STRIP
e598c29b 722RANLIB
39fd3d4f
SJR
723AR
724LDCONFIG
725PERL
39fd3d4f
SJR
726AWK
727CHMOD
728RM
729CP
730MV
731LN_S
3fb16e74 732mkdir_p
39fd3d4f 733LN
bcb915b0
TT
734ifNotGNUmake
735ifGNUmake
39fd3d4f
SJR
736BINARY_TYPE
737POSUB
738LTLIBINTL
739LIBINTL
740INTLLIBS
93613951
TT
741LTLIBICONV
742LIBICONV
e598c29b 743INTL_MACOSX_LIBS
93613951 744XGETTEXT_EXTRA_OPTIONS
bdcd5f22 745MSGMERGE_FOR_MSGFMT_OPTION
39fd3d4f 746MSGMERGE
93613951 747XGETTEXT_015
39fd3d4f 748XGETTEXT
93613951 749GMSGFMT_015
39fd3d4f
SJR
750GMSGFMT
751MSGFMT
93613951 752GETTEXT_MACRO_VERSION
39fd3d4f 753USE_NLS
93613951 754MKDIR_P
39fd3d4f
SJR
755INSTALL_DATA
756INSTALL_SCRIPT
757INSTALL_PROGRAM
758SET_MAKE
759VERSION
760PACKAGE
761GETTEXT_PACKAGE
749f0712
TT
762TDB_MAN_COMMENT
763TDB_CMT
39fd3d4f 764UUIDD_CMT
bdcd5f22
TT
765PTHREAD_CFLAGS
766PTHREAD_LIBS
54445dc2 767PTHREAD_CXX
bdcd5f22
TT
768PTHREAD_CC
769ax_pthread_config
54445dc2
TT
770EGREP
771GREP
bdcd5f22 772SED
39fd3d4f
SJR
773E2INITRD_MAN
774E2INITRD_PROG
775FSCK_MAN
776FSCK_PROG
8d9c50c5 777DEFRAG_CMT
39fd3d4f
SJR
778RESIZER_CMT
779IMAGER_CMT
780DEBUGFS_CMT
feb235e0 781SUBSET_CMT
0afb9be6 782ALL_CMT
39fd3d4f
SJR
783BLKID_CMT
784DEPPROFILED_LIBBLKID
785PROFILED_LIBBLKID
786DEPSTATIC_LIBBLKID
787STATIC_LIBBLKID
788DEPLIBBLKID
789LIBBLKID
790UUID_CMT
791DEPPROFILED_LIBUUID
792PROFILED_LIBUUID
793DEPSTATIC_LIBUUID
794STATIC_LIBUUID
795DEPLIBUUID
796LIBUUID
93613951
TT
797PKG_CONFIG_LIBDIR
798PKG_CONFIG_PATH
39fd3d4f 799PKG_CONFIG
b9e66a18 800DEV_FEATURES_CMT
39fd3d4f
SJR
801TEST_IO_CMT
802PRIVATE_LIBS_CMT
803LDFLAG_DYNAMIC
804PROFILED_LIB_EXT
805STATIC_LIB_EXT
806LIB_EXT
39fd3d4f
SJR
807PROFILE_CMT
808BSDLIB_CMT
809ELF_CMT
c13351f6 810Q
c1986ecb 811ES
c13351f6 812E
5aa6c3f6 813LINK_BUILD_FLAGS
183c73b0 814SYMLINK_RELATIVE
5aa6c3f6 815LINK_INSTALL_FLAGS
39fd3d4f 816MAINTAINER_CMT
39fd3d4f 817CPP
9b3018a8 818RDYNAMIC
57aa50d4 819DLOPEN_LIB
39fd3d4f
SJR
820host_os
821host_vendor
822host_cpu
823host
824build_os
825build_vendor
826build_cpu
827build
5ce368f0 828E2FSPROGS_DATE
39fd3d4f 829E2FSPROGS_PKGVER
1ac00616 830E2FSPROGS_PKGREL
39fd3d4f
SJR
831E2FSPROGS_VERSION
832E2FSPROGS_DAY
833E2FSPROGS_MONTH
834E2FSPROGS_YEAR
54445dc2
TT
835OBJEXT
836EXEEXT
837ac_ct_CC
838CPPFLAGS
839LDFLAGS
840CFLAGS
841CC
39fd3d4f
SJR
842target_alias
843host_alias
844build_alias
845LIBS
846ECHO_T
847ECHO_N
848ECHO_C
849DEFS
850mandir
851localedir
852libdir
853psdir
854pdfdir
855dvidir
856htmldir
857infodir
858docdir
859oldincludedir
860includedir
2ab53829 861runstatedir
39fd3d4f
SJR
862localstatedir
863sharedstatedir
864sysconfdir
865datadir
866datarootdir
867libexecdir
868sbindir
869bindir
870program_transform_name
871prefix
872exec_prefix
57aa50d4 873PACKAGE_URL
39fd3d4f
SJR
874PACKAGE_BUGREPORT
875PACKAGE_STRING
876PACKAGE_VERSION
877PACKAGE_TARNAME
878PACKAGE_NAME
879PATH_SEPARATOR
880SHELL'
e1052144
TT
881ac_subst_files='MCONFIG
882MAKEFILE_ELF
883MAKEFILE_BSDLIB
884MAKEFILE_PROFILE
e1052144 885MAKEFILE_LIBRARY
488c75a6
TT
886ASM_TYPES_HEADER
887PUBLIC_CONFIG_HEADER'
39fd3d4f
SJR
888ac_user_opts='
889enable_option_checking
890with_diet_libc
891with_cc
39fd3d4f
SJR
892with_ccopts
893with_ldopts
894with_root_prefix
895enable_maintainer_mode
5aa6c3f6 896enable_symlink_install
91d11da1 897enable_relative_symlinks
183c73b0 898enable_symlink_relative_symlinks
5aa6c3f6 899enable_symlink_build
c13351f6 900enable_verbose_makecmds
39fd3d4f
SJR
901enable_elf_shlibs
902enable_bsd_shlibs
903enable_profile
fedfb27f 904enable_gcov
fd1677e8 905enable_hardening
39fd3d4f
SJR
906enable_jbd_debug
907enable_blkid_debug
908enable_testio_debug
b9e66a18 909enable_developer_features
39fd3d4f
SJR
910enable_libuuid
911enable_libblkid
0afb9be6 912enable_subset
3df6014a 913enable_backtrace
39fd3d4f
SJR
914enable_debugfs
915enable_imager
916enable_resizer
8d9c50c5 917enable_defrag
39fd3d4f
SJR
918enable_fsck
919enable_e2initrd_helper
920enable_tls
bdcd5f22 921with_pthread
39fd3d4f 922enable_uuidd
d6a4bcb5 923enable_mmp
749f0712 924enable_tdb
1625bf42
TB
925enable_bmap_stats
926enable_bmap_stats_ops
39fd3d4f
SJR
927enable_nls
928with_gnu_ld
929enable_rpath
930with_libiconv_prefix
39fd3d4f 931with_libintl_prefix
fed000ae 932enable_largefile
81cbf1ef 933enable_fuse2fs
4aece328 934enable_lto
1c2a76ae 935enable_ubsan
5e666e3d 936enable_addrsan
bcca786b 937enable_threadsan
2869485b 938enable_fuzzing
55e00a25 939with_multiarch
5ce368f0 940with_udev_rules_dir
a2df5894
DW
941with_crond_dir
942with_systemd_unit_dir
39fd3d4f 943'
e1052144
TT
944 ac_precious_vars='build_alias
945host_alias
946target_alias
947CC
948CFLAGS
949LDFLAGS
29a5deed 950LIBS
e1052144 951CPPFLAGS
14b596d4 952CPP
93613951
TT
953PKG_CONFIG
954PKG_CONFIG_PATH
5ce368f0 955PKG_CONFIG_LIBDIR
448a3f8b
DD
956fuse3_CFLAGS
957fuse3_LIBS
2869485b
TT
958CXX
959CXXFLAGS
960CCC
5ce368f0 961udev_CFLAGS
a2df5894
DW
962udev_LIBS
963systemd_CFLAGS
964systemd_LIBS'
e1052144 965
50e1e10f
TT
966
967# Initialize some variables set by options.
b0cacab0
TT
968ac_init_help=
969ac_init_version=false
39fd3d4f
SJR
970ac_unrecognized_opts=
971ac_unrecognized_sep=
50e1e10f
TT
972# The variables have the same names as the options, with
973# dashes changed to underlines.
b0cacab0 974cache_file=/dev/null
50e1e10f 975exec_prefix=NONE
50e1e10f 976no_create=
50e1e10f
TT
977no_recursion=
978prefix=NONE
979program_prefix=NONE
980program_suffix=NONE
981program_transform_name=s,x,x,
982silent=
983site=
984srcdir=
50e1e10f
TT
985verbose=
986x_includes=NONE
987x_libraries=NONE
b0cacab0
TT
988
989# Installation directory options.
990# These are left unexpanded so users can "make install exec_prefix=/foo"
991# and all the variables that are supposed to be based on exec_prefix
992# by default will actually change.
993# Use braces instead of parens because sh, perl, etc. also accept them.
e1052144 994# (The list follows the same order as the GNU Coding Standards.)
21c84b71
TT
995bindir='${exec_prefix}/bin'
996sbindir='${exec_prefix}/sbin'
997libexecdir='${exec_prefix}/libexec'
e1052144
TT
998datarootdir='${prefix}/share'
999datadir='${datarootdir}'
21c84b71
TT
1000sysconfdir='${prefix}/etc'
1001sharedstatedir='${prefix}/com'
1002localstatedir='${prefix}/var'
2ab53829 1003runstatedir='${localstatedir}/run'
21c84b71
TT
1004includedir='${prefix}/include'
1005oldincludedir='/usr/include'
e1052144
TT
1006docdir='${datarootdir}/doc/${PACKAGE}'
1007infodir='${datarootdir}/info'
1008htmldir='${docdir}'
1009dvidir='${docdir}'
1010pdfdir='${docdir}'
1011psdir='${docdir}'
1012libdir='${exec_prefix}/lib'
1013localedir='${datarootdir}/locale'
1014mandir='${datarootdir}/man'
50e1e10f 1015
50e1e10f 1016ac_prev=
e1052144 1017ac_dashdash=
50e1e10f
TT
1018for ac_option
1019do
50e1e10f
TT
1020 # If the previous option needs an argument, assign it.
1021 if test -n "$ac_prev"; then
e1052144 1022 eval $ac_prev=\$ac_option
50e1e10f
TT
1023 ac_prev=
1024 continue
1025 fi
1026
e1052144 1027 case $ac_option in
d6a4bcb5
TB
1028 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1029 *=) ac_optarg= ;;
1030 *) ac_optarg=yes ;;
e1052144 1031 esac
50e1e10f 1032
e1052144
TT
1033 case $ac_dashdash$ac_option in
1034 --)
1035 ac_dashdash=yes ;;
50e1e10f 1036
21c84b71
TT
1037 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1038 ac_prev=bindir ;;
1039 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
b0cacab0 1040 bindir=$ac_optarg ;;
21c84b71
TT
1041
1042 -build | --build | --buil | --bui | --bu)
b0cacab0 1043 ac_prev=build_alias ;;
21c84b71 1044 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
b0cacab0 1045 build_alias=$ac_optarg ;;
50e1e10f
TT
1046
1047 -cache-file | --cache-file | --cache-fil | --cache-fi \
1048 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1049 ac_prev=cache_file ;;
1050 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1051 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
b0cacab0
TT
1052 cache_file=$ac_optarg ;;
1053
1054 --config-cache | -C)
1055 cache_file=config.cache ;;
50e1e10f 1056
e1052144 1057 -datadir | --datadir | --datadi | --datad)
21c84b71 1058 ac_prev=datadir ;;
e1052144 1059 -datadir=* | --datadir=* | --datadi=* | --datad=*)
b0cacab0 1060 datadir=$ac_optarg ;;
21c84b71 1061
e1052144
TT
1062 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1063 | --dataroo | --dataro | --datar)
1064 ac_prev=datarootdir ;;
1065 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1066 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1067 datarootdir=$ac_optarg ;;
1068
50e1e10f 1069 -disable-* | --disable-*)
39fd3d4f 1070 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
50e1e10f 1071 # Reject names that are not valid shell variable names.
39fd3d4f 1072 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
54445dc2 1073 as_fn_error $? "invalid feature name: \`$ac_useropt'"
39fd3d4f 1074 ac_useropt_orig=$ac_useropt
54445dc2 1075 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
39fd3d4f
SJR
1076 case $ac_user_opts in
1077 *"
1078"enable_$ac_useropt"
1079"*) ;;
1080 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1081 ac_unrecognized_sep=', ';;
1082 esac
1083 eval enable_$ac_useropt=no ;;
e1052144
TT
1084
1085 -docdir | --docdir | --docdi | --doc | --do)
1086 ac_prev=docdir ;;
1087 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1088 docdir=$ac_optarg ;;
1089
1090 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1091 ac_prev=dvidir ;;
1092 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1093 dvidir=$ac_optarg ;;
50e1e10f
TT
1094
1095 -enable-* | --enable-*)
39fd3d4f 1096 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
50e1e10f 1097 # Reject names that are not valid shell variable names.
39fd3d4f 1098 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
54445dc2 1099 as_fn_error $? "invalid feature name: \`$ac_useropt'"
39fd3d4f 1100 ac_useropt_orig=$ac_useropt
54445dc2 1101 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
39fd3d4f
SJR
1102 case $ac_user_opts in
1103 *"
1104"enable_$ac_useropt"
1105"*) ;;
1106 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1107 ac_unrecognized_sep=', ';;
1108 esac
1109 eval enable_$ac_useropt=\$ac_optarg ;;
50e1e10f
TT
1110
1111 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1112 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1113 | --exec | --exe | --ex)
1114 ac_prev=exec_prefix ;;
1115 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1116 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1117 | --exec=* | --exe=* | --ex=*)
b0cacab0 1118 exec_prefix=$ac_optarg ;;
50e1e10f
TT
1119
1120 -gas | --gas | --ga | --g)
1121 # Obsolete; use --with-gas.
1122 with_gas=yes ;;
1123
b0cacab0
TT
1124 -help | --help | --hel | --he | -h)
1125 ac_init_help=long ;;
1126 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1127 ac_init_help=recursive ;;
1128 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1129 ac_init_help=short ;;
50e1e10f
TT
1130
1131 -host | --host | --hos | --ho)
b0cacab0 1132 ac_prev=host_alias ;;
50e1e10f 1133 -host=* | --host=* | --hos=* | --ho=*)
b0cacab0 1134 host_alias=$ac_optarg ;;
50e1e10f 1135
e1052144
TT
1136 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1137 ac_prev=htmldir ;;
1138 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1139 | --ht=*)
1140 htmldir=$ac_optarg ;;
1141
21c84b71
TT
1142 -includedir | --includedir | --includedi | --included | --include \
1143 | --includ | --inclu | --incl | --inc)
1144 ac_prev=includedir ;;
1145 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1146 | --includ=* | --inclu=* | --incl=* | --inc=*)
b0cacab0 1147 includedir=$ac_optarg ;;
21c84b71
TT
1148
1149 -infodir | --infodir | --infodi | --infod | --info | --inf)
1150 ac_prev=infodir ;;
1151 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
b0cacab0 1152 infodir=$ac_optarg ;;
21c84b71
TT
1153
1154 -libdir | --libdir | --libdi | --libd)
1155 ac_prev=libdir ;;
1156 -libdir=* | --libdir=* | --libdi=* | --libd=*)
b0cacab0 1157 libdir=$ac_optarg ;;
21c84b71
TT
1158
1159 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1160 | --libexe | --libex | --libe)
1161 ac_prev=libexecdir ;;
1162 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1163 | --libexe=* | --libex=* | --libe=*)
b0cacab0 1164 libexecdir=$ac_optarg ;;
21c84b71 1165
e1052144
TT
1166 -localedir | --localedir | --localedi | --localed | --locale)
1167 ac_prev=localedir ;;
1168 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1169 localedir=$ac_optarg ;;
1170
21c84b71 1171 -localstatedir | --localstatedir | --localstatedi | --localstated \
e1052144 1172 | --localstate | --localstat | --localsta | --localst | --locals)
21c84b71
TT
1173 ac_prev=localstatedir ;;
1174 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
e1052144 1175 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
b0cacab0 1176 localstatedir=$ac_optarg ;;
21c84b71
TT
1177
1178 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1179 ac_prev=mandir ;;
1180 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
b0cacab0 1181 mandir=$ac_optarg ;;
21c84b71 1182
50e1e10f
TT
1183 -nfp | --nfp | --nf)
1184 # Obsolete; use --without-fp.
1185 with_fp=no ;;
1186
1187 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
b0cacab0 1188 | --no-cr | --no-c | -n)
50e1e10f
TT
1189 no_create=yes ;;
1190
1191 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1192 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1193 no_recursion=yes ;;
1194
21c84b71
TT
1195 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1196 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1197 | --oldin | --oldi | --old | --ol | --o)
1198 ac_prev=oldincludedir ;;
1199 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1200 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1201 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
b0cacab0 1202 oldincludedir=$ac_optarg ;;
21c84b71 1203
50e1e10f
TT
1204 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1205 ac_prev=prefix ;;
1206 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
b0cacab0 1207 prefix=$ac_optarg ;;
50e1e10f
TT
1208
1209 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1210 | --program-pre | --program-pr | --program-p)
1211 ac_prev=program_prefix ;;
1212 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1213 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
b0cacab0 1214 program_prefix=$ac_optarg ;;
50e1e10f
TT
1215
1216 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1217 | --program-suf | --program-su | --program-s)
1218 ac_prev=program_suffix ;;
1219 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1220 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
b0cacab0 1221 program_suffix=$ac_optarg ;;
50e1e10f
TT
1222
1223 -program-transform-name | --program-transform-name \
1224 | --program-transform-nam | --program-transform-na \
1225 | --program-transform-n | --program-transform- \
1226 | --program-transform | --program-transfor \
1227 | --program-transfo | --program-transf \
1228 | --program-trans | --program-tran \
1229 | --progr-tra | --program-tr | --program-t)
1230 ac_prev=program_transform_name ;;
1231 -program-transform-name=* | --program-transform-name=* \
1232 | --program-transform-nam=* | --program-transform-na=* \
1233 | --program-transform-n=* | --program-transform-=* \
1234 | --program-transform=* | --program-transfor=* \
1235 | --program-transfo=* | --program-transf=* \
1236 | --program-trans=* | --program-tran=* \
1237 | --progr-tra=* | --program-tr=* | --program-t=*)
b0cacab0 1238 program_transform_name=$ac_optarg ;;
50e1e10f 1239
e1052144
TT
1240 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1241 ac_prev=pdfdir ;;
1242 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1243 pdfdir=$ac_optarg ;;
1244
1245 -psdir | --psdir | --psdi | --psd | --ps)
1246 ac_prev=psdir ;;
1247 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1248 psdir=$ac_optarg ;;
1249
50e1e10f
TT
1250 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1251 | -silent | --silent | --silen | --sile | --sil)
1252 silent=yes ;;
1253
2ab53829
TT
1254 -runstatedir | --runstatedir | --runstatedi | --runstated \
1255 | --runstate | --runstat | --runsta | --runst | --runs \
1256 | --run | --ru | --r)
1257 ac_prev=runstatedir ;;
1258 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1259 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1260 | --run=* | --ru=* | --r=*)
1261 runstatedir=$ac_optarg ;;
1262
21c84b71
TT
1263 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1264 ac_prev=sbindir ;;
1265 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1266 | --sbi=* | --sb=*)
b0cacab0 1267 sbindir=$ac_optarg ;;
21c84b71
TT
1268
1269 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1270 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1271 | --sharedst | --shareds | --shared | --share | --shar \
1272 | --sha | --sh)
1273 ac_prev=sharedstatedir ;;
1274 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1275 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1276 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1277 | --sha=* | --sh=*)
b0cacab0 1278 sharedstatedir=$ac_optarg ;;
21c84b71 1279
50e1e10f
TT
1280 -site | --site | --sit)
1281 ac_prev=site ;;
1282 -site=* | --site=* | --sit=*)
b0cacab0 1283 site=$ac_optarg ;;
50e1e10f
TT
1284
1285 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1286 ac_prev=srcdir ;;
1287 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
b0cacab0 1288 srcdir=$ac_optarg ;;
50e1e10f 1289
21c84b71
TT
1290 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1291 | --syscon | --sysco | --sysc | --sys | --sy)
1292 ac_prev=sysconfdir ;;
1293 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1294 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
b0cacab0 1295 sysconfdir=$ac_optarg ;;
21c84b71 1296
50e1e10f 1297 -target | --target | --targe | --targ | --tar | --ta | --t)
b0cacab0 1298 ac_prev=target_alias ;;
50e1e10f 1299 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
b0cacab0 1300 target_alias=$ac_optarg ;;
50e1e10f
TT
1301
1302 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1303 verbose=yes ;;
1304
b0cacab0
TT
1305 -version | --version | --versio | --versi | --vers | -V)
1306 ac_init_version=: ;;
50e1e10f
TT
1307
1308 -with-* | --with-*)
39fd3d4f 1309 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
50e1e10f 1310 # Reject names that are not valid shell variable names.
39fd3d4f 1311 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
54445dc2 1312 as_fn_error $? "invalid package name: \`$ac_useropt'"
39fd3d4f 1313 ac_useropt_orig=$ac_useropt
54445dc2 1314 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
39fd3d4f
SJR
1315 case $ac_user_opts in
1316 *"
1317"with_$ac_useropt"
1318"*) ;;
1319 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1320 ac_unrecognized_sep=', ';;
1321 esac
1322 eval with_$ac_useropt=\$ac_optarg ;;
50e1e10f
TT
1323
1324 -without-* | --without-*)
39fd3d4f 1325 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
50e1e10f 1326 # Reject names that are not valid shell variable names.
39fd3d4f 1327 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
54445dc2 1328 as_fn_error $? "invalid package name: \`$ac_useropt'"
39fd3d4f 1329 ac_useropt_orig=$ac_useropt
54445dc2 1330 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
39fd3d4f
SJR
1331 case $ac_user_opts in
1332 *"
1333"with_$ac_useropt"
1334"*) ;;
1335 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1336 ac_unrecognized_sep=', ';;
1337 esac
1338 eval with_$ac_useropt=no ;;
50e1e10f
TT
1339
1340 --x)
1341 # Obsolete; use --with-x.
1342 with_x=yes ;;
1343
1344 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1345 | --x-incl | --x-inc | --x-in | --x-i)
1346 ac_prev=x_includes ;;
1347 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1348 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
b0cacab0 1349 x_includes=$ac_optarg ;;
50e1e10f
TT
1350
1351 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1352 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1353 ac_prev=x_libraries ;;
1354 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1355 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
b0cacab0 1356 x_libraries=$ac_optarg ;;
50e1e10f 1357
d6a4bcb5
TB
1358 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1359Try \`$0 --help' for more information"
50e1e10f
TT
1360 ;;
1361
b0cacab0
TT
1362 *=*)
1363 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1364 # Reject names that are not valid shell variable names.
57aa50d4
TT
1365 case $ac_envvar in #(
1366 '' | [0-9]* | *[!_$as_cr_alnum]* )
d6a4bcb5 1367 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
57aa50d4 1368 esac
e1052144 1369 eval $ac_envvar=\$ac_optarg
b0cacab0
TT
1370 export $ac_envvar ;;
1371
21c84b71 1372 *)
b0cacab0 1373 # FIXME: should be removed in autoconf 3.0.
54445dc2 1374 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
b0cacab0 1375 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
54445dc2 1376 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
d6a4bcb5 1377 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
50e1e10f
TT
1378 ;;
1379
1380 esac
1381done
1382
1383if test -n "$ac_prev"; then
b0cacab0 1384 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
d6a4bcb5 1385 as_fn_error $? "missing argument to $ac_option"
50e1e10f 1386fi
50e1e10f 1387
39fd3d4f
SJR
1388if test -n "$ac_unrecognized_opts"; then
1389 case $enable_option_checking in
1390 no) ;;
d6a4bcb5 1391 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
54445dc2 1392 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
39fd3d4f
SJR
1393 esac
1394fi
1395
1396# Check all directory arguments for consistency.
e1052144
TT
1397for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1398 datadir sysconfdir sharedstatedir localstatedir includedir \
1399 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2ab53829 1400 libdir localedir mandir runstatedir
50e1e10f 1401do
e1052144 1402 eval ac_val=\$$ac_var
39fd3d4f
SJR
1403 # Remove trailing slashes.
1404 case $ac_val in
1405 */ )
1406 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1407 eval $ac_var=\$ac_val;;
1408 esac
1409 # Be sure to have absolute directory names.
b0cacab0 1410 case $ac_val in
e1052144
TT
1411 [\\/$]* | ?:[\\/]* ) continue;;
1412 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
50e1e10f 1413 esac
d6a4bcb5 1414 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
50e1e10f
TT
1415done
1416
b0cacab0
TT
1417# There might be people who depend on the old broken behavior: `$host'
1418# used to hold the argument of --host etc.
1419# FIXME: To remove some day.
1420build=$build_alias
1421host=$host_alias
1422target=$target_alias
1423
1424# FIXME: To remove some day.
1425if test "x$host_alias" != x; then
1426 if test "x$build_alias" = x; then
1427 cross_compiling=maybe
b0cacab0
TT
1428 elif test "x$build_alias" != "x$host_alias"; then
1429 cross_compiling=yes
1430 fi
1431fi
50e1e10f 1432
b0cacab0
TT
1433ac_tool_prefix=
1434test -n "$host_alias" && ac_tool_prefix=$host_alias-
1435
1436test "$silent" = yes && exec 6>/dev/null
50e1e10f 1437
50e1e10f 1438
e1052144
TT
1439ac_pwd=`pwd` && test -n "$ac_pwd" &&
1440ac_ls_di=`ls -di .` &&
1441ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
d6a4bcb5 1442 as_fn_error $? "working directory cannot be determined"
e1052144 1443test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
d6a4bcb5 1444 as_fn_error $? "pwd does not report name of working directory"
e1052144
TT
1445
1446
50e1e10f
TT
1447# Find the source files, if location was not specified.
1448if test -z "$srcdir"; then
1449 ac_srcdir_defaulted=yes
e1052144 1450 # Try the directory containing this script, then the parent directory.
39fd3d4f
SJR
1451 ac_confdir=`$as_dirname -- "$as_myself" ||
1452$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1453 X"$as_myself" : 'X\(//\)[^/]' \| \
1454 X"$as_myself" : 'X\(//\)$' \| \
1455 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
54445dc2 1456printf "%s\n" X"$as_myself" |
e1052144
TT
1457 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1458 s//\1/
1459 q
1460 }
1461 /^X\(\/\/\)[^/].*/{
1462 s//\1/
1463 q
1464 }
1465 /^X\(\/\/\)$/{
1466 s//\1/
1467 q
1468 }
1469 /^X\(\/\).*/{
1470 s//\1/
1471 q
1472 }
1473 s/.*/./; q'`
50e1e10f 1474 srcdir=$ac_confdir
e1052144 1475 if test ! -r "$srcdir/$ac_unique_file"; then
50e1e10f
TT
1476 srcdir=..
1477 fi
1478else
1479 ac_srcdir_defaulted=no
1480fi
e1052144
TT
1481if test ! -r "$srcdir/$ac_unique_file"; then
1482 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
d6a4bcb5 1483 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
50e1e10f 1484fi
e1052144
TT
1485ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1486ac_abs_confdir=`(
d6a4bcb5 1487 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
e1052144
TT
1488 pwd)`
1489# When building in place, set srcdir=.
1490if test "$ac_abs_confdir" = "$ac_pwd"; then
1491 srcdir=.
1492fi
1493# Remove unnecessary trailing slashes from srcdir.
1494# Double slashes in file names in object file debugging info
1495# mess up M-x gdb in Emacs.
1496case $srcdir in
1497*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1498esac
1499for ac_var in $ac_precious_vars; do
1500 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1501 eval ac_env_${ac_var}_value=\$${ac_var}
1502 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1503 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1504done
b0cacab0
TT
1505
1506#
1507# Report the --help message.
1508#
1509if test "$ac_init_help" = "long"; then
1510 # Omit some internal or obsolete options to make the list less imposing.
1511 # This message is too long to be a string in the A/UX 3.1 sh.
1512 cat <<_ACEOF
1513\`configure' configures this package to adapt to many kinds of systems.
1514
1515Usage: $0 [OPTION]... [VAR=VALUE]...
1516
1517To assign environment variables (e.g., CC, CFLAGS...), specify them as
1518VAR=VALUE. See below for descriptions of some of the useful variables.
1519
1520Defaults for the options are specified in brackets.
1521
1522Configuration:
1523 -h, --help display this help and exit
1524 --help=short display options specific to this package
1525 --help=recursive display the short help of all the included packages
1526 -V, --version display version information and exit
d6a4bcb5 1527 -q, --quiet, --silent do not print \`checking ...' messages
b0cacab0
TT
1528 --cache-file=FILE cache test results in FILE [disabled]
1529 -C, --config-cache alias for \`--cache-file=config.cache'
1530 -n, --no-create do not create output files
1531 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1532
b0cacab0
TT
1533Installation directories:
1534 --prefix=PREFIX install architecture-independent files in PREFIX
39fd3d4f 1535 [$ac_default_prefix]
b0cacab0 1536 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
39fd3d4f 1537 [PREFIX]
b0cacab0
TT
1538
1539By default, \`make install' will install all the files in
1540\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1541an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1542for instance \`--prefix=\$HOME'.
1543
1544For better control, use the options below.
1545
1546Fine tuning of the installation directories:
39fd3d4f
SJR
1547 --bindir=DIR user executables [EPREFIX/bin]
1548 --sbindir=DIR system admin executables [EPREFIX/sbin]
1549 --libexecdir=DIR program executables [EPREFIX/libexec]
1550 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1551 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1552 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2ab53829 1553 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
39fd3d4f
SJR
1554 --libdir=DIR object code libraries [EPREFIX/lib]
1555 --includedir=DIR C header files [PREFIX/include]
1556 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1557 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1558 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1559 --infodir=DIR info documentation [DATAROOTDIR/info]
1560 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1561 --mandir=DIR man documentation [DATAROOTDIR/man]
1562 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1563 --htmldir=DIR html documentation [DOCDIR]
1564 --dvidir=DIR dvi documentation [DOCDIR]
1565 --pdfdir=DIR pdf documentation [DOCDIR]
1566 --psdir=DIR ps documentation [DOCDIR]
b0cacab0
TT
1567_ACEOF
1568
1569 cat <<\_ACEOF
1570
1571System types:
1572 --build=BUILD configure for building on BUILD [guessed]
1573 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1574_ACEOF
1575fi
1576
1577if test -n "$ac_init_help"; then
1578
1579 cat <<\_ACEOF
1580
1581Optional Features:
39fd3d4f 1582 --disable-option-checking ignore unrecognized --enable/--with options
b0cacab0
TT
1583 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1584 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
8c9e2921
TT
1585 --enable-maintainer-mode
1586 enable makefile rules useful for maintainers
1587 --enable-symlink-install
1588 use symlinks when installing instead of hard links
1589 --enable-relative-symlinks
1590 use relative symlinks when installing
91d11da1 1591
5aa6c3f6 1592 --enable-symlink-build use symlinks while building instead of hard links
8c9e2921
TT
1593 --enable-verbose-makecmds
1594 enable verbose make command output
1595 --enable-elf-shlibs select ELF shared libraries
1596 --enable-bsd-shlibs select BSD shared libraries
1597 --enable-profile build profiling libraries
1598 --enable-gcov build for coverage testing using gcov
1599 --enable-hardening build for coverage testing using gcov
1600 --enable-jbd-debug enable journal debugging
b0cacab0 1601 --enable-blkid-debug enable blkid debugging
8c9e2921
TT
1602 --disable-testio-debug disable the use of the test I/O manager for
1603 debugging
1604 --enable-developer-features
1605 enable features for use by ext4 developers
1606 --enable-libuuid build and use private uuid library
1607 --enable-libblkid build and use private blkid library
1608 --enable-subset enable subset-only build
1609 --disable-backtrace disable use backtrace
1610 --disable-debugfs disable support of debugfs program
1611 --disable-imager disable support of e2image program
1612 --disable-resizer disable support of e2resize program
1613 --disable-defrag disable support of e4defrag program
b0cacab0 1614 --enable-fsck build fsck wrapper program
8c9e2921
TT
1615 --enable-e2initrd-helper
1616 build e2initrd-helper program
3249394d 1617 --disable-tls disable use of thread local support
5610f992 1618 --disable-uuidd disable building the uuid daemon
d6a4bcb5 1619 --disable-mmp disable support mmp, Multi Mount Protection
749f0712 1620 --disable-tdb disable tdb support
8c9e2921 1621 --disable-bmap-stats disable collection of bitmap stats
1625bf42 1622 --enable-bmap-stats-ops enable collection of additional bitmap stats
b0cacab0
TT
1623 --disable-nls do not use Native Language Support
1624 --disable-rpath do not hardcode runtime library paths
fed000ae 1625 --disable-largefile omit support for large files
8c9e2921
TT
1626 --disable-fuse2fs do not build fuse2fs
1627 --enable-lto enable link time optimization
1628 --enable-ubsan enable undefined behavior sanitizer
1629 --enable-addrsan enable address sanitizer
1630 --enable-threadsan enable thread sanitizer
2869485b 1631 --enable-fuzzing enable fuzzing sanitizer
b0cacab0
TT
1632
1633Optional Packages:
1634 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1635 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
3249394d 1636 --with-diet-libc use diet libc
0b5b9f90
TT
1637 --with-cc no longer supported, use CC= instead
1638 --with-ccopts no longer supported, use CFLAGS= instead
1639 --with-ldopts no longer supported, use LDFLAGS= instead
8c9e2921
TT
1640 --with-root-prefix=PREFIX
1641 override prefix variable for files to be placed in
1642 the root
bdcd5f22 1643 --without-pthread disable use of pthread support
93613951 1644 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
b0cacab0
TT
1645 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1646 --without-libiconv-prefix don't search for libiconv in includedir and libdir
b0cacab0
TT
1647 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1648 --without-libintl-prefix don't search for libintl in includedir and libdir
8c9e2921 1649 --with-multiarch=ARCH specify the multiarch triplet
5ce368f0
DW
1650 --with-udev-rules-dir[=DIR]
1651 Install udev rules into DIR.
a2df5894
DW
1652 --with-crond-dir[=DIR] Install system crontabs into DIR.
1653 --with-systemd-unit-dir[=DIR]
1654 Install systemd system units into DIR.
b0cacab0
TT
1655
1656Some influential environment variables:
1657 CC C compiler command
1658 CFLAGS C compiler flags
1659 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1660 nonstandard directory <lib dir>
29a5deed 1661 LIBS libraries to pass to the linker, e.g. -l<library>
61ef2474 1662 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
e1052144 1663 you have headers in a nonstandard directory <include dir>
b0cacab0 1664 CPP C preprocessor
14b596d4 1665 PKG_CONFIG path to pkg-config utility
93613951
TT
1666 PKG_CONFIG_PATH
1667 directories to add to pkg-config's search path
1668 PKG_CONFIG_LIBDIR
1669 path overriding pkg-config's built-in search path
2869485b
TT
1670 CXX C++ compiler command
1671 CXXFLAGS C++ compiler flags
5ce368f0
DW
1672 udev_CFLAGS C compiler flags for udev, overriding pkg-config
1673 udev_LIBS linker flags for udev, overriding pkg-config
a2df5894
DW
1674 systemd_CFLAGS
1675 C compiler flags for systemd, overriding pkg-config
1676 systemd_LIBS
1677 linker flags for systemd, overriding pkg-config
b0cacab0
TT
1678
1679Use these variables to override the choices made by `configure' or to help
1680it to find libraries and programs with nonstandard names/locations.
1681
57aa50d4 1682Report bugs to the package provider.
b0cacab0 1683_ACEOF
e1052144 1684ac_status=$?
b0cacab0
TT
1685fi
1686
1687if test "$ac_init_help" = "recursive"; then
1688 # If there are subdirs, report their specific --help.
b0cacab0 1689 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
39fd3d4f
SJR
1690 test -d "$ac_dir" ||
1691 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1692 continue
b0cacab0
TT
1693 ac_builddir=.
1694
e1052144
TT
1695case "$ac_dir" in
1696.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1697*)
54445dc2 1698 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
e1052144 1699 # A ".." for each directory in $ac_dir_suffix.
54445dc2 1700 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
e1052144
TT
1701 case $ac_top_builddir_sub in
1702 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1703 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1704 esac ;;
1705esac
1706ac_abs_top_builddir=$ac_pwd
1707ac_abs_builddir=$ac_pwd$ac_dir_suffix
1708# for backward compatibility:
1709ac_top_builddir=$ac_top_build_prefix
b0cacab0
TT
1710
1711case $srcdir in
e1052144 1712 .) # We are building in place.
b0cacab0 1713 ac_srcdir=.
e1052144
TT
1714 ac_top_srcdir=$ac_top_builddir_sub
1715 ac_abs_top_srcdir=$ac_pwd ;;
1716 [\\/]* | ?:[\\/]* ) # Absolute name.
b0cacab0 1717 ac_srcdir=$srcdir$ac_dir_suffix;
e1052144
TT
1718 ac_top_srcdir=$srcdir
1719 ac_abs_top_srcdir=$srcdir ;;
1720 *) # Relative name.
1721 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1722 ac_top_srcdir=$ac_top_build_prefix$srcdir
1723 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b0cacab0 1724esac
e1052144
TT
1725ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1726
1727 cd "$ac_dir" || { ac_status=$?; continue; }
54445dc2
TT
1728 # Check for configure.gnu first; this name is used for a wrapper for
1729 # Metaconfig's "Configure" on case-insensitive file systems.
e1052144
TT
1730 if test -f "$ac_srcdir/configure.gnu"; then
1731 echo &&
1732 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1733 elif test -f "$ac_srcdir/configure"; then
1734 echo &&
1735 $SHELL "$ac_srcdir/configure" --help=recursive
b0cacab0 1736 else
54445dc2 1737 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
e1052144
TT
1738 fi || ac_status=$?
1739 cd "$ac_pwd" || { ac_status=$?; break; }
b0cacab0
TT
1740 done
1741fi
1742
e1052144 1743test -n "$ac_init_help" && exit $ac_status
b0cacab0
TT
1744if $ac_init_version; then
1745 cat <<\_ACEOF
e1052144 1746configure
54445dc2 1747generated by GNU Autoconf 2.71
b0cacab0 1748
54445dc2 1749Copyright (C) 2021 Free Software Foundation, Inc.
b0cacab0
TT
1750This configure script is free software; the Free Software Foundation
1751gives unlimited permission to copy, distribute and modify it.
1752_ACEOF
e1052144 1753 exit
b0cacab0 1754fi
b0cacab0 1755
57aa50d4
TT
1756## ------------------------ ##
1757## Autoconf initialization. ##
1758## ------------------------ ##
b0cacab0 1759
57aa50d4
TT
1760# ac_fn_c_try_compile LINENO
1761# --------------------------
1762# Try to compile conftest.$ac_ext, and return whether this succeeded.
1763ac_fn_c_try_compile ()
1764{
1765 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
54445dc2 1766 rm -f conftest.$ac_objext conftest.beam
57aa50d4
TT
1767 if { { ac_try="$ac_compile"
1768case "(($ac_try" in
1769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1770 *) ac_try_echo=$ac_try;;
1771esac
1772eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
54445dc2 1773printf "%s\n" "$ac_try_echo"; } >&5
57aa50d4
TT
1774 (eval "$ac_compile") 2>conftest.err
1775 ac_status=$?
1776 if test -s conftest.err; then
1777 grep -v '^ *+' conftest.err >conftest.er1
1778 cat conftest.er1 >&5
1779 mv -f conftest.er1 conftest.err
1780 fi
54445dc2 1781 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
57aa50d4
TT
1782 test $ac_status = 0; } && {
1783 test -z "$ac_c_werror_flag" ||
1784 test ! -s conftest.err
54445dc2
TT
1785 } && test -s conftest.$ac_objext
1786then :
57aa50d4 1787 ac_retval=0
54445dc2
TT
1788else $as_nop
1789 printf "%s\n" "$as_me: failed program was:" >&5
57aa50d4 1790sed 's/^/| /' conftest.$ac_ext >&5
b0cacab0 1791
57aa50d4
TT
1792 ac_retval=1
1793fi
d6a4bcb5 1794 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
61ef2474 1795 as_fn_set_status $ac_retval
57aa50d4
TT
1796
1797} # ac_fn_c_try_compile
1798
54445dc2
TT
1799# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1800# -------------------------------------------------------
1801# Tests whether HEADER exists and can be compiled using the include files in
1802# INCLUDES, setting the cache variable VAR accordingly.
1803ac_fn_c_check_header_compile ()
1804{
1805 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1807printf %s "checking for $2... " >&6; }
1808if eval test \${$3+y}
1809then :
1810 printf %s "(cached) " >&6
1811else $as_nop
1812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1813/* end confdefs.h. */
1814$4
1815#include <$2>
1816_ACEOF
1817if ac_fn_c_try_compile "$LINENO"
1818then :
1819 eval "$3=yes"
1820else $as_nop
1821 eval "$3=no"
1822fi
1823rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1824fi
1825eval ac_res=\$$3
1826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1827printf "%s\n" "$ac_res" >&6; }
1828 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1829
1830} # ac_fn_c_check_header_compile
1831
57aa50d4
TT
1832# ac_fn_c_try_link LINENO
1833# -----------------------
1834# Try to link conftest.$ac_ext, and return whether this succeeded.
1835ac_fn_c_try_link ()
b0cacab0 1836{
57aa50d4 1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
54445dc2 1838 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
57aa50d4
TT
1839 if { { ac_try="$ac_link"
1840case "(($ac_try" in
1841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1842 *) ac_try_echo=$ac_try;;
1843esac
1844eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
54445dc2 1845printf "%s\n" "$ac_try_echo"; } >&5
57aa50d4
TT
1846 (eval "$ac_link") 2>conftest.err
1847 ac_status=$?
1848 if test -s conftest.err; then
1849 grep -v '^ *+' conftest.err >conftest.er1
1850 cat conftest.er1 >&5
1851 mv -f conftest.er1 conftest.err
1852 fi
54445dc2 1853 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
57aa50d4
TT
1854 test $ac_status = 0; } && {
1855 test -z "$ac_c_werror_flag" ||
1856 test ! -s conftest.err
1857 } && test -s conftest$ac_exeext && {
1858 test "$cross_compiling" = yes ||
d6a4bcb5 1859 test -x conftest$ac_exeext
54445dc2
TT
1860 }
1861then :
57aa50d4 1862 ac_retval=0
54445dc2
TT
1863else $as_nop
1864 printf "%s\n" "$as_me: failed program was:" >&5
57aa50d4 1865sed 's/^/| /' conftest.$ac_ext >&5
b0cacab0 1866
57aa50d4
TT
1867 ac_retval=1
1868fi
1869 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1870 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1871 # interfere with the next link command; also delete a directory that is
1872 # left behind by Apple's compiler. We do this before executing the actions.
1873 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d6a4bcb5 1874 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
61ef2474 1875 as_fn_set_status $ac_retval
b0cacab0 1876
57aa50d4 1877} # ac_fn_c_try_link
b0cacab0 1878
57aa50d4
TT
1879# ac_fn_c_try_cpp LINENO
1880# ----------------------
1881# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1882ac_fn_c_try_cpp ()
1883{
1884 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1885 if { { ac_try="$ac_cpp conftest.$ac_ext"
1886case "(($ac_try" in
1887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1888 *) ac_try_echo=$ac_try;;
1889esac
1890eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
54445dc2 1891printf "%s\n" "$ac_try_echo"; } >&5
57aa50d4
TT
1892 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1893 ac_status=$?
1894 if test -s conftest.err; then
1895 grep -v '^ *+' conftest.err >conftest.er1
1896 cat conftest.er1 >&5
1897 mv -f conftest.er1 conftest.err
1898 fi
54445dc2 1899 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d6a4bcb5 1900 test $ac_status = 0; } > conftest.i && {
57aa50d4
TT
1901 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1902 test ! -s conftest.err
54445dc2
TT
1903 }
1904then :
57aa50d4 1905 ac_retval=0
54445dc2
TT
1906else $as_nop
1907 printf "%s\n" "$as_me: failed program was:" >&5
57aa50d4 1908sed 's/^/| /' conftest.$ac_ext >&5
b0cacab0 1909
57aa50d4
TT
1910 ac_retval=1
1911fi
d6a4bcb5 1912 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
61ef2474 1913 as_fn_set_status $ac_retval
b0cacab0 1914
57aa50d4 1915} # ac_fn_c_try_cpp
b0cacab0 1916
57aa50d4
TT
1917# ac_fn_c_try_run LINENO
1918# ----------------------
54445dc2
TT
1919# Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
1920# executables *can* be run.
57aa50d4
TT
1921ac_fn_c_try_run ()
1922{
1923 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924 if { { ac_try="$ac_link"
1925case "(($ac_try" in
1926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1927 *) ac_try_echo=$ac_try;;
1928esac
1929eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
54445dc2 1930printf "%s\n" "$ac_try_echo"; } >&5
57aa50d4
TT
1931 (eval "$ac_link") 2>&5
1932 ac_status=$?
54445dc2 1933 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
57aa50d4
TT
1934 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1935 { { case "(($ac_try" in
1936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1937 *) ac_try_echo=$ac_try;;
1938esac
1939eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
54445dc2 1940printf "%s\n" "$ac_try_echo"; } >&5
57aa50d4
TT
1941 (eval "$ac_try") 2>&5
1942 ac_status=$?
54445dc2
TT
1943 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1944 test $ac_status = 0; }; }
1945then :
57aa50d4 1946 ac_retval=0
54445dc2
TT
1947else $as_nop
1948 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
1949 printf "%s\n" "$as_me: failed program was:" >&5
57aa50d4 1950sed 's/^/| /' conftest.$ac_ext >&5
b0cacab0 1951
57aa50d4
TT
1952 ac_retval=$ac_status
1953fi
1954 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d6a4bcb5 1955 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
61ef2474 1956 as_fn_set_status $ac_retval
b0cacab0 1957
57aa50d4 1958} # ac_fn_c_try_run
b0cacab0 1959
57aa50d4
TT
1960# ac_fn_c_check_func LINENO FUNC VAR
1961# ----------------------------------
1962# Tests whether FUNC exists, setting the cache variable VAR accordingly
1963ac_fn_c_check_func ()
1964{
1965 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
54445dc2
TT
1966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1967printf %s "checking for $2... " >&6; }
1968if eval test \${$3+y}
1969then :
1970 printf %s "(cached) " >&6
1971else $as_nop
57aa50d4
TT
1972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1973/* end confdefs.h. */
1974/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1975 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1976#define $2 innocuous_$2
b0cacab0 1977
57aa50d4 1978/* System header to define __stub macros and hopefully few prototypes,
54445dc2 1979 which can conflict with char $2 (); below. */
a04eba3f 1980
54445dc2 1981#include <limits.h>
57aa50d4 1982#undef $2
07a0db15 1983
57aa50d4
TT
1984/* Override any GCC internal prototype to avoid an error.
1985 Use char because int might match the return type of a GCC
1986 builtin and then its argument prototype would still apply. */
1987#ifdef __cplusplus
1988extern "C"
1989#endif
1990char $2 ();
1991/* The GNU C library defines this for functions which it implements
1992 to always fail with ENOSYS. Some functions are actually named
1993 something starting with __ and the normal name is an alias. */
1994#if defined __stub_$2 || defined __stub___$2
1995choke me
1996#endif
74becf3c 1997
57aa50d4 1998int
54445dc2 1999main (void)
57aa50d4
TT
2000{
2001return $2 ();
2002 ;
2003 return 0;
2004}
2005_ACEOF
54445dc2
TT
2006if ac_fn_c_try_link "$LINENO"
2007then :
57aa50d4 2008 eval "$3=yes"
54445dc2 2009else $as_nop
57aa50d4
TT
2010 eval "$3=no"
2011fi
54445dc2 2012rm -f core conftest.err conftest.$ac_objext conftest.beam \
57aa50d4
TT
2013 conftest$ac_exeext conftest.$ac_ext
2014fi
2015eval ac_res=\$$3
54445dc2
TT
2016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2017printf "%s\n" "$ac_res" >&6; }
d6a4bcb5 2018 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
93636bde 2019
57aa50d4 2020} # ac_fn_c_check_func
93636bde 2021
e598c29b
TT
2022# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2023# ----------------------------------------------------
2024# Tries to find if the field MEMBER exists in type AGGR, after including
2025# INCLUDES, setting cache variable VAR accordingly.
2026ac_fn_c_check_member ()
2027{
2028 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
54445dc2
TT
2029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2030printf %s "checking for $2.$3... " >&6; }
2031if eval test \${$4+y}
2032then :
2033 printf %s "(cached) " >&6
2034else $as_nop
e598c29b
TT
2035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2036/* end confdefs.h. */
2037$5
2038int
54445dc2 2039main (void)
e598c29b
TT
2040{
2041static $2 ac_aggr;
2042if (ac_aggr.$3)
2043return 0;
2044 ;
2045 return 0;
2046}
2047_ACEOF
54445dc2
TT
2048if ac_fn_c_try_compile "$LINENO"
2049then :
e598c29b 2050 eval "$4=yes"
54445dc2 2051else $as_nop
e598c29b
TT
2052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2053/* end confdefs.h. */
2054$5
2055int
54445dc2 2056main (void)
e598c29b
TT
2057{
2058static $2 ac_aggr;
2059if (sizeof ac_aggr.$3)
2060return 0;
2061 ;
2062 return 0;
2063}
2064_ACEOF
54445dc2
TT
2065if ac_fn_c_try_compile "$LINENO"
2066then :
e598c29b 2067 eval "$4=yes"
54445dc2 2068else $as_nop
e598c29b
TT
2069 eval "$4=no"
2070fi
54445dc2 2071rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
e598c29b 2072fi
54445dc2 2073rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
e598c29b
TT
2074fi
2075eval ac_res=\$$4
54445dc2
TT
2076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2077printf "%s\n" "$ac_res" >&6; }
e598c29b
TT
2078 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2079
2080} # ac_fn_c_check_member
2081
2082# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2083# -------------------------------------------
2084# Tests whether TYPE exists after having included INCLUDES, setting cache
2085# variable VAR accordingly.
2086ac_fn_c_check_type ()
2087{
2088 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
54445dc2
TT
2089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2090printf %s "checking for $2... " >&6; }
2091if eval test \${$3+y}
2092then :
2093 printf %s "(cached) " >&6
2094else $as_nop
e598c29b
TT
2095 eval "$3=no"
2096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2097/* end confdefs.h. */
2098$4
2099int
54445dc2 2100main (void)
e598c29b
TT
2101{
2102if (sizeof ($2))
2103 return 0;
2104 ;
2105 return 0;
2106}
2107_ACEOF
54445dc2
TT
2108if ac_fn_c_try_compile "$LINENO"
2109then :
e598c29b
TT
2110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2111/* end confdefs.h. */
2112$4
2113int
54445dc2 2114main (void)
e598c29b
TT
2115{
2116if (sizeof (($2)))
2117 return 0;
2118 ;
2119 return 0;
2120}
2121_ACEOF
54445dc2
TT
2122if ac_fn_c_try_compile "$LINENO"
2123then :
e598c29b 2124
54445dc2 2125else $as_nop
e598c29b
TT
2126 eval "$3=yes"
2127fi
54445dc2 2128rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
e598c29b 2129fi
54445dc2 2130rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
e598c29b
TT
2131fi
2132eval ac_res=\$$3
54445dc2
TT
2133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2134printf "%s\n" "$ac_res" >&6; }
e598c29b
TT
2135 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2136
2137} # ac_fn_c_check_type
2138
54445dc2
TT
2139# ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2140# ------------------------------------------------------------------
93613951 2141# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
54445dc2
TT
2142# accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2143ac_fn_check_decl ()
d1154eb4
TT
2144{
2145 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
93613951 2146 as_decl_name=`echo $2|sed 's/ *(.*//'`
54445dc2
TT
2147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2148printf %s "checking whether $as_decl_name is declared... " >&6; }
2149if eval test \${$3+y}
2150then :
2151 printf %s "(cached) " >&6
2152else $as_nop
93613951 2153 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
54445dc2
TT
2154 eval ac_save_FLAGS=\$$6
2155 as_fn_append $6 " $5"
93613951 2156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d1154eb4
TT
2157/* end confdefs.h. */
2158$4
93613951 2159int
54445dc2 2160main (void)
93613951
TT
2161{
2162#ifndef $as_decl_name
2163#ifdef __cplusplus
2164 (void) $as_decl_use;
2165#else
2166 (void) $as_decl_name;
2167#endif
2168#endif
2169
2170 ;
2171 return 0;
2172}
d1154eb4 2173_ACEOF
54445dc2
TT
2174if ac_fn_c_try_compile "$LINENO"
2175then :
93613951 2176 eval "$3=yes"
54445dc2 2177else $as_nop
93613951 2178 eval "$3=no"
d1154eb4 2179fi
54445dc2
TT
2180rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2181 eval $6=\$ac_save_FLAGS
2182
d1154eb4
TT
2183fi
2184eval ac_res=\$$3
54445dc2
TT
2185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2186printf "%s\n" "$ac_res" >&6; }
d6a4bcb5 2187 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
d1154eb4 2188
54445dc2 2189} # ac_fn_check_decl
d1154eb4 2190
57aa50d4
TT
2191# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2192# --------------------------------------------
2193# Tries to find the compile-time value of EXPR in a program that includes
2194# INCLUDES, setting VAR accordingly. Returns whether the value could be
2195# computed
2196ac_fn_c_compute_int ()
2197{
2198 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2199 if test "$cross_compiling" = yes; then
2200 # Depending upon the size, compute the lo and hi bounds.
2201cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2202/* end confdefs.h. */
2203$4
2204int
54445dc2 2205main (void)
57aa50d4
TT
2206{
2207static int test_array [1 - 2 * !(($2) >= 0)];
d6a4bcb5
TB
2208test_array [0] = 0;
2209return test_array [0];
93636bde 2210
57aa50d4
TT
2211 ;
2212 return 0;
2213}
2214_ACEOF
54445dc2
TT
2215if ac_fn_c_try_compile "$LINENO"
2216then :
57aa50d4
TT
2217 ac_lo=0 ac_mid=0
2218 while :; do
2219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2220/* end confdefs.h. */
2221$4
2222int
54445dc2 2223main (void)
57aa50d4
TT
2224{
2225static int test_array [1 - 2 * !(($2) <= $ac_mid)];
d6a4bcb5
TB
2226test_array [0] = 0;
2227return test_array [0];
93636bde 2228
57aa50d4
TT
2229 ;
2230 return 0;
2231}
2232_ACEOF
54445dc2
TT
2233if ac_fn_c_try_compile "$LINENO"
2234then :
57aa50d4 2235 ac_hi=$ac_mid; break
54445dc2 2236else $as_nop
57aa50d4
TT
2237 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2238 if test $ac_lo -le $ac_mid; then
2239 ac_lo= ac_hi=
2240 break
2241 fi
2242 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
b0cacab0 2243fi
54445dc2 2244rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
57aa50d4 2245 done
54445dc2 2246else $as_nop
57aa50d4
TT
2247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2248/* end confdefs.h. */
2249$4
2250int
54445dc2 2251main (void)
57aa50d4
TT
2252{
2253static int test_array [1 - 2 * !(($2) < 0)];
d6a4bcb5
TB
2254test_array [0] = 0;
2255return test_array [0];
e1052144 2256
57aa50d4
TT
2257 ;
2258 return 0;
2259}
2260_ACEOF
54445dc2
TT
2261if ac_fn_c_try_compile "$LINENO"
2262then :
57aa50d4
TT
2263 ac_hi=-1 ac_mid=-1
2264 while :; do
2265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2266/* end confdefs.h. */
2267$4
2268int
54445dc2 2269main (void)
57aa50d4
TT
2270{
2271static int test_array [1 - 2 * !(($2) >= $ac_mid)];
d6a4bcb5
TB
2272test_array [0] = 0;
2273return test_array [0];
93636bde 2274
57aa50d4
TT
2275 ;
2276 return 0;
2277}
2278_ACEOF
54445dc2
TT
2279if ac_fn_c_try_compile "$LINENO"
2280then :
57aa50d4 2281 ac_lo=$ac_mid; break
54445dc2 2282else $as_nop
57aa50d4
TT
2283 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2284 if test $ac_mid -le $ac_hi; then
2285 ac_lo= ac_hi=
2286 break
2287 fi
2288 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
93636bde 2289fi
54445dc2 2290rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
57aa50d4 2291 done
54445dc2 2292else $as_nop
57aa50d4
TT
2293 ac_lo= ac_hi=
2294fi
54445dc2 2295rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
57aa50d4 2296fi
54445dc2 2297rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
57aa50d4
TT
2298# Binary search between lo and hi bounds.
2299while test "x$ac_lo" != "x$ac_hi"; do
2300 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2302/* end confdefs.h. */
2303$4
2304int
54445dc2 2305main (void)
57aa50d4
TT
2306{
2307static int test_array [1 - 2 * !(($2) <= $ac_mid)];
d6a4bcb5
TB
2308test_array [0] = 0;
2309return test_array [0];
93636bde 2310
57aa50d4
TT
2311 ;
2312 return 0;
2313}
2314_ACEOF
54445dc2
TT
2315if ac_fn_c_try_compile "$LINENO"
2316then :
57aa50d4 2317 ac_hi=$ac_mid
54445dc2 2318else $as_nop
57aa50d4
TT
2319 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2320fi
54445dc2 2321rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
57aa50d4
TT
2322done
2323case $ac_lo in #((
2324?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2325'') ac_retval=1 ;;
927566a3 2326esac
57aa50d4
TT
2327 else
2328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2329/* end confdefs.h. */
2330$4
54445dc2
TT
2331static long int longval (void) { return $2; }
2332static unsigned long int ulongval (void) { return $2; }
57aa50d4
TT
2333#include <stdio.h>
2334#include <stdlib.h>
2335int
54445dc2 2336main (void)
57aa50d4 2337{
927566a3 2338
57aa50d4
TT
2339 FILE *f = fopen ("conftest.val", "w");
2340 if (! f)
2341 return 1;
2342 if (($2) < 0)
2343 {
2344 long int i = longval ();
2345 if (i != ($2))
2346 return 1;
2347 fprintf (f, "%ld", i);
2348 }
2349 else
2350 {
2351 unsigned long int i = ulongval ();
2352 if (i != ($2))
2353 return 1;
2354 fprintf (f, "%lu", i);
2355 }
2356 /* Do not output a trailing newline, as this causes \r\n confusion
2357 on some platforms. */
2358 return ferror (f) || fclose (f) != 0;
93636bde 2359
57aa50d4
TT
2360 ;
2361 return 0;
2362}
2363_ACEOF
54445dc2
TT
2364if ac_fn_c_try_run "$LINENO"
2365then :
57aa50d4 2366 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
54445dc2 2367else $as_nop
57aa50d4
TT
2368 ac_retval=1
2369fi
2370rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2371 conftest.$ac_objext conftest.beam conftest.$ac_ext
2372rm -f conftest.val
93636bde 2373
57aa50d4 2374 fi
d6a4bcb5 2375 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
61ef2474 2376 as_fn_set_status $ac_retval
927566a3 2377
57aa50d4 2378} # ac_fn_c_compute_int
2869485b
TT
2379
2380# ac_fn_cxx_try_compile LINENO
2381# ----------------------------
2382# Try to compile conftest.$ac_ext, and return whether this succeeded.
2383ac_fn_cxx_try_compile ()
2384{
2385 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2386 rm -f conftest.$ac_objext conftest.beam
2387 if { { ac_try="$ac_compile"
2388case "(($ac_try" in
2389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2390 *) ac_try_echo=$ac_try;;
2391esac
2392eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2393printf "%s\n" "$ac_try_echo"; } >&5
2394 (eval "$ac_compile") 2>conftest.err
2395 ac_status=$?
2396 if test -s conftest.err; then
2397 grep -v '^ *+' conftest.err >conftest.er1
2398 cat conftest.er1 >&5
2399 mv -f conftest.er1 conftest.err
2400 fi
2401 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2402 test $ac_status = 0; } && {
2403 test -z "$ac_cxx_werror_flag" ||
2404 test ! -s conftest.err
2405 } && test -s conftest.$ac_objext
2406then :
2407 ac_retval=0
2408else $as_nop
2409 printf "%s\n" "$as_me: failed program was:" >&5
2410sed 's/^/| /' conftest.$ac_ext >&5
2411
2412 ac_retval=1
2413fi
2414 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2415 as_fn_set_status $ac_retval
2416
2417} # ac_fn_cxx_try_compile
54445dc2
TT
2418ac_configure_args_raw=
2419for ac_arg
2420do
2421 case $ac_arg in
2422 *\'*)
2423 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2424 esac
2425 as_fn_append ac_configure_args_raw " '$ac_arg'"
2426done
2427
2428case $ac_configure_args_raw in
2429 *$as_nl*)
2430 ac_safe_unquote= ;;
2431 *)
2432 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2433 ac_unsafe_a="$ac_unsafe_z#~"
2434 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2435 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2436esac
2437
57aa50d4
TT
2438cat >config.log <<_ACEOF
2439This file contains any messages produced by compilers while
2440running configure, to aid debugging if configure makes a mistake.
93636bde 2441
57aa50d4 2442It was created by $as_me, which was
54445dc2 2443generated by GNU Autoconf 2.71. Invocation command line was
07a0db15 2444
54445dc2 2445 $ $0$ac_configure_args_raw
e1052144 2446
57aa50d4
TT
2447_ACEOF
2448exec 5>>config.log
2449{
2450cat <<_ASUNAME
2451## --------- ##
2452## Platform. ##
2453## --------- ##
0b5b9f90 2454
57aa50d4
TT
2455hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2456uname -m = `(uname -m) 2>/dev/null || echo unknown`
2457uname -r = `(uname -r) 2>/dev/null || echo unknown`
2458uname -s = `(uname -s) 2>/dev/null || echo unknown`
2459uname -v = `(uname -v) 2>/dev/null || echo unknown`
0b5b9f90 2460
57aa50d4
TT
2461/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2462/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
0b5b9f90 2463
57aa50d4
TT
2464/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2465/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2466/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2467/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2468/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2469/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2470/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
0b5b9f90 2471
57aa50d4 2472_ASUNAME
b0cacab0 2473
b0cacab0
TT
2474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2475for as_dir in $PATH
2476do
2477 IFS=$as_save_IFS
54445dc2
TT
2478 case $as_dir in #(((
2479 '') as_dir=./ ;;
2480 */) ;;
2481 *) as_dir=$as_dir/ ;;
2482 esac
2483 printf "%s\n" "PATH: $as_dir"
57aa50d4 2484 done
e1052144 2485IFS=$as_save_IFS
b0cacab0 2486
57aa50d4 2487} >&5
74becf3c 2488
57aa50d4 2489cat >&5 <<_ACEOF
e1052144 2490
b0cacab0 2491
57aa50d4
TT
2492## ----------- ##
2493## Core tests. ##
2494## ----------- ##
b0cacab0 2495
57aa50d4 2496_ACEOF
b0cacab0 2497
57aa50d4
TT
2498
2499# Keep a trace of the command line.
2500# Strip out --no-create and --no-recursion so they do not pile up.
2501# Strip out --silent because we don't want to record it for future runs.
2502# Also quote any args containing shell meta-characters.
2503# Make two passes to allow for proper duplicate-argument suppression.
2504ac_configure_args=
2505ac_configure_args0=
2506ac_configure_args1=
2507ac_must_keep_next=false
2508for ac_pass in 1 2
b0cacab0 2509do
57aa50d4
TT
2510 for ac_arg
2511 do
2512 case $ac_arg in
2513 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2514 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2515 | -silent | --silent | --silen | --sile | --sil)
2516 continue ;;
2517 *\'*)
54445dc2 2518 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
57aa50d4
TT
2519 esac
2520 case $ac_pass in
2521 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2522 2)
2523 as_fn_append ac_configure_args1 " '$ac_arg'"
2524 if test $ac_must_keep_next = true; then
2525 ac_must_keep_next=false # Got value, back to normal.
2526 else
2527 case $ac_arg in
2528 *=* | --config-cache | -C | -disable-* | --disable-* \
2529 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2530 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2531 | -with-* | --with-* | -without-* | --without-* | --x)
2532 case "$ac_configure_args0 " in
2533 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2534 esac
2535 ;;
2536 -* ) ac_must_keep_next=true ;;
2537 esac
2538 fi
2539 as_fn_append ac_configure_args " '$ac_arg'"
2540 ;;
2541 esac
2542 done
b0cacab0 2543done
57aa50d4
TT
2544{ ac_configure_args0=; unset ac_configure_args0;}
2545{ ac_configure_args1=; unset ac_configure_args1;}
2546
2547# When interrupted or exit'd, cleanup temporary files, and complete
2548# config.log. We remove comments because anyway the quotes in there
2549# would cause problems or look ugly.
2550# WARNING: Use '\'' to represent an apostrophe within the trap.
2551# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2552trap 'exit_status=$?
54445dc2
TT
2553 # Sanitize IFS.
2554 IFS=" "" $as_nl"
57aa50d4
TT
2555 # Save into config.log some information that might help in debugging.
2556 {
2557 echo
2558
54445dc2 2559 printf "%s\n" "## ---------------- ##
57aa50d4 2560## Cache variables. ##
d6a4bcb5 2561## ---------------- ##"
57aa50d4
TT
2562 echo
2563 # The following way of writing the cache mishandles newlines in values,
2564(
2565 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2566 eval ac_val=\$$ac_var
2567 case $ac_val in #(
2568 *${as_nl}*)
2569 case $ac_var in #(
54445dc2
TT
2570 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2571printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
57aa50d4
TT
2572 esac
2573 case $ac_var in #(
2574 _ | IFS | as_nl) ;; #(
2575 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2576 *) { eval $ac_var=; unset $ac_var;} ;;
2577 esac ;;
2578 esac
2579 done
2580 (set) 2>&1 |
2581 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2582 *${as_nl}ac_space=\ *)
2583 sed -n \
2584 "s/'\''/'\''\\\\'\'''\''/g;
2585 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2586 ;; #(
2587 *)
2588 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2589 ;;
2590 esac |
2591 sort
2592)
2593 echo
2594
54445dc2 2595 printf "%s\n" "## ----------------- ##
57aa50d4 2596## Output variables. ##
d6a4bcb5 2597## ----------------- ##"
57aa50d4
TT
2598 echo
2599 for ac_var in $ac_subst_vars
2600 do
2601 eval ac_val=\$$ac_var
2602 case $ac_val in
54445dc2 2603 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
57aa50d4 2604 esac
54445dc2 2605 printf "%s\n" "$ac_var='\''$ac_val'\''"
57aa50d4
TT
2606 done | sort
2607 echo
2608
2609 if test -n "$ac_subst_files"; then
54445dc2 2610 printf "%s\n" "## ------------------- ##
57aa50d4 2611## File substitutions. ##
d6a4bcb5 2612## ------------------- ##"
57aa50d4
TT
2613 echo
2614 for ac_var in $ac_subst_files
2615 do
2616 eval ac_val=\$$ac_var
2617 case $ac_val in
54445dc2 2618 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
57aa50d4 2619 esac
54445dc2 2620 printf "%s\n" "$ac_var='\''$ac_val'\''"
57aa50d4
TT
2621 done | sort
2622 echo
2623 fi
2624
2625 if test -s confdefs.h; then
54445dc2 2626 printf "%s\n" "## ----------- ##
57aa50d4 2627## confdefs.h. ##
d6a4bcb5 2628## ----------- ##"
57aa50d4
TT
2629 echo
2630 cat confdefs.h
2631 echo
2632 fi
2633 test "$ac_signal" != 0 &&
54445dc2
TT
2634 printf "%s\n" "$as_me: caught signal $ac_signal"
2635 printf "%s\n" "$as_me: exit $exit_status"
57aa50d4
TT
2636 } >&5
2637 rm -f core *.core core.conftest.* &&
2638 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2639 exit $exit_status
2640' 0
2641for ac_signal in 1 2 13 15; do
2642 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
b0cacab0 2643done
57aa50d4 2644ac_signal=0
b0cacab0 2645
57aa50d4
TT
2646# confdefs.h avoids OS command line length limits that DEFS can exceed.
2647rm -f -r conftest* confdefs.h
b0cacab0 2648
54445dc2 2649printf "%s\n" "/* confdefs.h */" > confdefs.h
73ae2d4a 2650
57aa50d4
TT
2651# Predefined preprocessor variables.
2652
54445dc2 2653printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
57aa50d4 2654
54445dc2 2655printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
57aa50d4 2656
54445dc2 2657printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
57aa50d4 2658
54445dc2 2659printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
57aa50d4 2660
54445dc2 2661printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
57aa50d4 2662
54445dc2 2663printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
57aa50d4
TT
2664
2665
2666# Let the site file select an alternate cache file if it wants to.
2667# Prefer an explicitly selected file to automatically selected ones.
57aa50d4 2668if test -n "$CONFIG_SITE"; then
54445dc2 2669 ac_site_files="$CONFIG_SITE"
57aa50d4 2670elif test "x$prefix" != xNONE; then
54445dc2 2671 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
73ae2d4a 2672else
54445dc2 2673 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
57aa50d4 2674fi
54445dc2
TT
2675
2676for ac_site_file in $ac_site_files
b0cacab0 2677do
54445dc2
TT
2678 case $ac_site_file in #(
2679 */*) :
2680 ;; #(
2681 *) :
2682 ac_site_file=./$ac_site_file ;;
2683esac
2684 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2686printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
57aa50d4 2687 sed 's/^/| /' "$ac_site_file" >&5
d6a4bcb5 2688 . "$ac_site_file" \
54445dc2
TT
2689 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2690printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
d6a4bcb5
TB
2691as_fn_error $? "failed to load site script $ac_site_file
2692See \`config.log' for more details" "$LINENO" 5; }
b0cacab0
TT
2693 fi
2694done
b0cacab0 2695
57aa50d4 2696if test -r "$cache_file"; then
61ef2474
TT
2697 # Some versions of bash will fail to source /dev/null (special files
2698 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2699 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
54445dc2
TT
2700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2701printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
57aa50d4
TT
2702 case $cache_file in
2703 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2704 *) . "./$cache_file";;
2705 esac
73ae2d4a 2706 fi
57aa50d4 2707else
54445dc2
TT
2708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2709printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
57aa50d4 2710 >$cache_file
73ae2d4a 2711fi
57aa50d4 2712
54445dc2
TT
2713as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2714# Test code for whether the C compiler supports C89 (global declarations)
2715ac_c_conftest_c89_globals='
2716/* Does the compiler advertise C89 conformance?
2717 Do not test the value of __STDC__, because some compilers set it to 0
2718 while being otherwise adequately conformant. */
2719#if !defined __STDC__
2720# error "Compiler does not advertise C89 conformance"
2721#endif
57aa50d4 2722
54445dc2
TT
2723#include <stddef.h>
2724#include <stdarg.h>
2725struct stat;
2726/* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2727struct buf { int x; };
2728struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2729static char *e (p, i)
2730 char **p;
2731 int i;
2732{
2733 return p[i];
2734}
2735static char *f (char * (*g) (char **, int), char **p, ...)
2736{
2737 char *s;
2738 va_list v;
2739 va_start (v,p);
2740 s = g (p, va_arg (v,int));
2741 va_end (v);
2742 return s;
2743}
57aa50d4 2744
54445dc2
TT
2745/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2746 function prototypes and stuff, but not \xHH hex character constants.
2747 These do not provoke an error unfortunately, instead are silently treated
2748 as an "x". The following induces an error, until -std is added to get
2749 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2750 array size at least. It is necessary to write \x00 == 0 to get something
2751 that is true only with -std. */
2752int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
57aa50d4 2753
54445dc2
TT
2754/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2755 inside strings and character constants. */
2756#define FOO(x) '\''x'\''
2757int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
57aa50d4 2758
54445dc2
TT
2759int test (int i, double x);
2760struct s1 {int (*f) (int a);};
2761struct s2 {int (*f) (double a);};
2762int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2763 int, int);'
57aa50d4 2764
54445dc2
TT
2765# Test code for whether the C compiler supports C89 (body of main).
2766ac_c_conftest_c89_main='
2767ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2768'
57aa50d4 2769
54445dc2
TT
2770# Test code for whether the C compiler supports C99 (global declarations)
2771ac_c_conftest_c99_globals='
2772// Does the compiler advertise C99 conformance?
2773#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2774# error "Compiler does not advertise C99 conformance"
2775#endif
57aa50d4 2776
54445dc2
TT
2777#include <stdbool.h>
2778extern int puts (const char *);
2779extern int printf (const char *, ...);
2780extern int dprintf (int, const char *, ...);
2781extern void *malloc (size_t);
2782
2783// Check varargs macros. These examples are taken from C99 6.10.3.5.
2784// dprintf is used instead of fprintf to avoid needing to declare
2785// FILE and stderr.
2786#define debug(...) dprintf (2, __VA_ARGS__)
2787#define showlist(...) puts (#__VA_ARGS__)
2788#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2789static void
2790test_varargs_macros (void)
2791{
2792 int x = 1234;
2793 int y = 5678;
2794 debug ("Flag");
2795 debug ("X = %d\n", x);
2796 showlist (The first, second, and third items.);
2797 report (x>y, "x is %d but y is %d", x, y);
2798}
d1154eb4 2799
54445dc2
TT
2800// Check long long types.
2801#define BIG64 18446744073709551615ull
2802#define BIG32 4294967295ul
2803#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2804#if !BIG_OK
2805 #error "your preprocessor is broken"
2806#endif
2807#if BIG_OK
2808#else
2809 #error "your preprocessor is broken"
2810#endif
2811static long long int bignum = -9223372036854775807LL;
2812static unsigned long long int ubignum = BIG64;
d1154eb4 2813
54445dc2
TT
2814struct incomplete_array
2815{
2816 int datasize;
2817 double data[];
2818};
57aa50d4 2819
54445dc2
TT
2820struct named_init {
2821 int number;
2822 const wchar_t *name;
2823 double average;
2824};
57aa50d4 2825
54445dc2 2826typedef const char *ccp;
57aa50d4 2827
54445dc2
TT
2828static inline int
2829test_restrict (ccp restrict text)
2830{
2831 // See if C++-style comments work.
2832 // Iterate through items via the restricted pointer.
2833 // Also check for declarations in for loops.
2834 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2835 continue;
2836 return 0;
2837}
57aa50d4 2838
54445dc2
TT
2839// Check varargs and va_copy.
2840static bool
2841test_varargs (const char *format, ...)
2842{
2843 va_list args;
2844 va_start (args, format);
2845 va_list args_copy;
2846 va_copy (args_copy, args);
57aa50d4 2847
54445dc2
TT
2848 const char *str = "";
2849 int number = 0;
2850 float fnumber = 0;
57aa50d4 2851
54445dc2
TT
2852 while (*format)
2853 {
2854 switch (*format++)
2855 {
2856 case '\''s'\'': // string
2857 str = va_arg (args_copy, const char *);
2858 break;
2859 case '\''d'\'': // int
2860 number = va_arg (args_copy, int);
2861 break;
2862 case '\''f'\'': // float
2863 fnumber = va_arg (args_copy, double);
2864 break;
2865 default:
2866 break;
2867 }
2868 }
2869 va_end (args_copy);
2870 va_end (args);
57aa50d4 2871
54445dc2
TT
2872 return *str && number && fnumber;
2873}
2874'
57aa50d4 2875
54445dc2
TT
2876# Test code for whether the C compiler supports C99 (body of main).
2877ac_c_conftest_c99_main='
2878 // Check bool.
2879 _Bool success = false;
2880 success |= (argc != 0);
2881
2882 // Check restrict.
2883 if (test_restrict ("String literal") == 0)
2884 success = true;
2885 char *restrict newvar = "Another string";
2886
2887 // Check varargs.
2888 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2889 test_varargs_macros ();
2890
2891 // Check flexible array members.
2892 struct incomplete_array *ia =
2893 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2894 ia->datasize = 10;
2895 for (int i = 0; i < ia->datasize; ++i)
2896 ia->data[i] = i * 1.234;
2897
2898 // Check named initializers.
2899 struct named_init ni = {
2900 .number = 34,
2901 .name = L"Test wide string",
2902 .average = 543.34343,
2903 };
2904
2905 ni.number = 58;
2906
2907 int dynamic_array[ni.number];
2908 dynamic_array[0] = argv[0][0];
2909 dynamic_array[ni.number - 1] = 543;
2910
2911 // work around unused variable warnings
2912 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2913 || dynamic_array[ni.number - 1] != 543);
2914'
57aa50d4 2915
54445dc2
TT
2916# Test code for whether the C compiler supports C11 (global declarations)
2917ac_c_conftest_c11_globals='
2918// Does the compiler advertise C11 conformance?
2919#if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2920# error "Compiler does not advertise C11 conformance"
2921#endif
57aa50d4 2922
54445dc2
TT
2923// Check _Alignas.
2924char _Alignas (double) aligned_as_double;
2925char _Alignas (0) no_special_alignment;
2926extern char aligned_as_int;
2927char _Alignas (0) _Alignas (int) aligned_as_int;
57aa50d4 2928
54445dc2
TT
2929// Check _Alignof.
2930enum
2931{
2932 int_alignment = _Alignof (int),
2933 int_array_alignment = _Alignof (int[100]),
2934 char_alignment = _Alignof (char)
2935};
2936_Static_assert (0 < -_Alignof (int), "_Alignof is signed");
57aa50d4 2937
54445dc2
TT
2938// Check _Noreturn.
2939int _Noreturn does_not_return (void) { for (;;) continue; }
5ce368f0 2940
54445dc2
TT
2941// Check _Static_assert.
2942struct test_static_assert
2943{
2944 int x;
2945 _Static_assert (sizeof (int) <= sizeof (long int),
2946 "_Static_assert does not work in struct");
2947 long int y;
2948};
2949
2950// Check UTF-8 literals.
2951#define u8 syntax error!
2952char const utf8_literal[] = u8"happens to be ASCII" "another string";
2953
2954// Check duplicate typedefs.
2955typedef long *long_ptr;
2956typedef long int *long_ptr;
2957typedef long_ptr long_ptr;
2958
2959// Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2960struct anonymous
2961{
2962 union {
2963 struct { int i; int j; };
2964 struct { int k; long int l; } w;
2965 };
2966 int m;
2967} v1;
2968'
6c59a665 2969
54445dc2
TT
2970# Test code for whether the C compiler supports C11 (body of main).
2971ac_c_conftest_c11_main='
2972 _Static_assert ((offsetof (struct anonymous, i)
2973 == offsetof (struct anonymous, w.k)),
2974 "Anonymous union alignment botch");
2975 v1.i = 2;
2976 v1.w.k = 5;
2977 ok |= v1.i != 5;
2978'
57aa50d4 2979
54445dc2
TT
2980# Test code for whether the C compiler supports C11 (complete).
2981ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2982${ac_c_conftest_c99_globals}
2983${ac_c_conftest_c11_globals}
57aa50d4 2984
54445dc2
TT
2985int
2986main (int argc, char **argv)
2987{
2988 int ok = 0;
2989 ${ac_c_conftest_c89_main}
2990 ${ac_c_conftest_c99_main}
2991 ${ac_c_conftest_c11_main}
2992 return ok;
2993}
2994"
73ae2d4a 2995
54445dc2
TT
2996# Test code for whether the C compiler supports C99 (complete).
2997ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2998${ac_c_conftest_c99_globals}
e1052144 2999
54445dc2
TT
3000int
3001main (int argc, char **argv)
3002{
3003 int ok = 0;
3004 ${ac_c_conftest_c89_main}
3005 ${ac_c_conftest_c99_main}
3006 return ok;
3007}
3008"
57aa50d4 3009
54445dc2
TT
3010# Test code for whether the C compiler supports C89 (complete).
3011ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
57aa50d4 3012
54445dc2
TT
3013int
3014main (int argc, char **argv)
3015{
3016 int ok = 0;
3017 ${ac_c_conftest_c89_main}
3018 return ok;
3019}
3020"
57aa50d4 3021
54445dc2
TT
3022as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
3023as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
3024as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
3025as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
3026as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
3027as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
3028as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
3029as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
3030as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
3031as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
3032gt_needs="$gt_needs "
3033as_fn_append ac_func_c_list " vprintf HAVE_VPRINTF"
2869485b
TT
3034# Test code for whether the C++ compiler supports C++98 (global declarations)
3035ac_cxx_conftest_cxx98_globals='
3036// Does the compiler advertise C++98 conformance?
3037#if !defined __cplusplus || __cplusplus < 199711L
3038# error "Compiler does not advertise C++98 conformance"
3039#endif
3040
3041// These inclusions are to reject old compilers that
3042// lack the unsuffixed header files.
3043#include <cstdlib>
3044#include <exception>
3045
3046// <cassert> and <cstring> are *not* freestanding headers in C++98.
3047extern void assert (int);
3048namespace std {
3049 extern int strcmp (const char *, const char *);
3050}
3051
3052// Namespaces, exceptions, and templates were all added after "C++ 2.0".
3053using std::exception;
3054using std::strcmp;
3055
3056namespace {
3057
3058void test_exception_syntax()
3059{
3060 try {
3061 throw "test";
3062 } catch (const char *s) {
3063 // Extra parentheses suppress a warning when building autoconf itself,
3064 // due to lint rules shared with more typical C programs.
3065 assert (!(strcmp) (s, "test"));
3066 }
3067}
3068
3069template <typename T> struct test_template
3070{
3071 T const val;
3072 explicit test_template(T t) : val(t) {}
3073 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
3074};
3075
3076} // anonymous namespace
3077'
3078
3079# Test code for whether the C++ compiler supports C++98 (body of main)
3080ac_cxx_conftest_cxx98_main='
3081 assert (argc);
3082 assert (! argv[0]);
3083{
3084 test_exception_syntax ();
3085 test_template<double> tt (2.0);
3086 assert (tt.add (4) == 6.0);
3087 assert (true && !false);
3088}
3089'
3090
3091# Test code for whether the C++ compiler supports C++11 (global declarations)
3092ac_cxx_conftest_cxx11_globals='
3093// Does the compiler advertise C++ 2011 conformance?
3094#if !defined __cplusplus || __cplusplus < 201103L
3095# error "Compiler does not advertise C++11 conformance"
3096#endif
3097
3098namespace cxx11test
3099{
3100 constexpr int get_val() { return 20; }
3101
3102 struct testinit
3103 {
3104 int i;
3105 double d;
3106 };
3107
3108 class delegate
3109 {
3110 public:
3111 delegate(int n) : n(n) {}
3112 delegate(): delegate(2354) {}
3113
3114 virtual int getval() { return this->n; };
3115 protected:
3116 int n;
3117 };
3118
3119 class overridden : public delegate
3120 {
3121 public:
3122 overridden(int n): delegate(n) {}
3123 virtual int getval() override final { return this->n * 2; }
3124 };
3125
3126 class nocopy
3127 {
3128 public:
3129 nocopy(int i): i(i) {}
3130 nocopy() = default;
3131 nocopy(const nocopy&) = delete;
3132 nocopy & operator=(const nocopy&) = delete;
3133 private:
3134 int i;
3135 };
3136
3137 // for testing lambda expressions
3138 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
3139 {
3140 return f(v);
3141 }
3142
3143 // for testing variadic templates and trailing return types
3144 template <typename V> auto sum(V first) -> V
3145 {
3146 return first;
3147 }
3148 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
3149 {
3150 return first + sum(rest...);
3151 }
3152}
3153'
3154
3155# Test code for whether the C++ compiler supports C++11 (body of main)
3156ac_cxx_conftest_cxx11_main='
3157{
3158 // Test auto and decltype
3159 auto a1 = 6538;
3160 auto a2 = 48573953.4;
3161 auto a3 = "String literal";
3162
3163 int total = 0;
3164 for (auto i = a3; *i; ++i) { total += *i; }
3165
3166 decltype(a2) a4 = 34895.034;
3167}
3168{
3169 // Test constexpr
3170 short sa[cxx11test::get_val()] = { 0 };
3171}
3172{
3173 // Test initializer lists
3174 cxx11test::testinit il = { 4323, 435234.23544 };
3175}
3176{
3177 // Test range-based for
3178 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
3179 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
3180 for (auto &x : array) { x += 23; }
3181}
3182{
3183 // Test lambda expressions
3184 using cxx11test::eval;
3185 assert (eval ([](int x) { return x*2; }, 21) == 42);
3186 double d = 2.0;
3187 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
3188 assert (d == 5.0);
3189 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
3190 assert (d == 5.0);
3191}
3192{
3193 // Test use of variadic templates
3194 using cxx11test::sum;
3195 auto a = sum(1);
3196 auto b = sum(1, 2);
3197 auto c = sum(1.0, 2.0, 3.0);
3198}
3199{
3200 // Test constructor delegation
3201 cxx11test::delegate d1;
3202 cxx11test::delegate d2();
3203 cxx11test::delegate d3(45);
3204}
3205{
3206 // Test override and final
3207 cxx11test::overridden o1(55464);
3208}
3209{
3210 // Test nullptr
3211 char *c = nullptr;
3212}
3213{
3214 // Test template brackets
3215 test_template<::test_template<int>> v(test_template<int>(12));
3216}
3217{
3218 // Unicode literals
3219 char const *utf8 = u8"UTF-8 string \u2500";
3220 char16_t const *utf16 = u"UTF-8 string \u2500";
3221 char32_t const *utf32 = U"UTF-32 string \u2500";
3222}
3223'
3224
3225# Test code for whether the C compiler supports C++11 (complete).
3226ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
3227${ac_cxx_conftest_cxx11_globals}
3228
3229int
3230main (int argc, char **argv)
3231{
3232 int ok = 0;
3233 ${ac_cxx_conftest_cxx98_main}
3234 ${ac_cxx_conftest_cxx11_main}
3235 return ok;
3236}
3237"
3238
3239# Test code for whether the C compiler supports C++98 (complete).
3240ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
3241int
3242main (int argc, char **argv)
3243{
3244 int ok = 0;
3245 ${ac_cxx_conftest_cxx98_main}
3246 return ok;
3247}
3248"
3249
54445dc2
TT
3250
3251# Auxiliary files required by this configure script.
3252ac_aux_files="config.rpath install-sh config.guess config.sub"
3253
3254# Locations in which to look for auxiliary files.
3255ac_aux_dir_candidates="${srcdir}/config"
3256
3257# Search for a directory containing all of the required auxiliary files,
3258# $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3259# If we don't find one directory that contains all the files we need,
3260# we report the set of missing files from the *first* directory in
3261# $ac_aux_dir_candidates and give up.
3262ac_missing_aux_files=""
3263ac_first_candidate=:
3264printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
b0cacab0 3265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
54445dc2
TT
3266as_found=false
3267for as_dir in $ac_aux_dir_candidates
b0cacab0
TT
3268do
3269 IFS=$as_save_IFS
54445dc2
TT
3270 case $as_dir in #(((
3271 '') as_dir=./ ;;
3272 */) ;;
3273 *) as_dir=$as_dir/ ;;
3274 esac
3275 as_found=:
3276
3277 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
3278 ac_aux_dir_found=yes
3279 ac_install_sh=
3280 for ac_aux in $ac_aux_files
3281 do
3282 # As a special case, if "install-sh" is required, that requirement
3283 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3284 # and $ac_install_sh is set appropriately for whichever one is found.
3285 if test x"$ac_aux" = x"install-sh"
3286 then
3287 if test -f "${as_dir}install-sh"; then
3288 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
3289 ac_install_sh="${as_dir}install-sh -c"
3290 elif test -f "${as_dir}install.sh"; then
3291 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
3292 ac_install_sh="${as_dir}install.sh -c"
3293 elif test -f "${as_dir}shtool"; then
3294 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
3295 ac_install_sh="${as_dir}shtool install -c"
3296 else
3297 ac_aux_dir_found=no
3298 if $ac_first_candidate; then
3299 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3300 else
3301 break
3302 fi
3303 fi
3304 else
3305 if test -f "${as_dir}${ac_aux}"; then
3306 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
3307 else
3308 ac_aux_dir_found=no
3309 if $ac_first_candidate; then
3310 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3311 else
3312 break
3313 fi
3314 fi
3315 fi
3316 done
3317 if test "$ac_aux_dir_found" = yes; then
3318 ac_aux_dir="$as_dir"
3319 break
b0cacab0 3320 fi
54445dc2
TT
3321 ac_first_candidate=false
3322
3323 as_found=false
b0cacab0 3324done
e1052144 3325IFS=$as_save_IFS
54445dc2
TT
3326if $as_found
3327then :
b0cacab0 3328
54445dc2
TT
3329else $as_nop
3330 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
73ae2d4a 3331fi
b0cacab0 3332
e1052144 3333
54445dc2
TT
3334# These three variables are undocumented and unsupported,
3335# and are intended to be withdrawn in a future Autoconf release.
3336# They can cause serious problems if a builder's source tree is in a directory
3337# whose full name contains unusual characters.
3338if test -f "${ac_aux_dir}config.guess"; then
3339 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
b0cacab0 3340fi
54445dc2
TT
3341if test -f "${ac_aux_dir}config.sub"; then
3342 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
b0cacab0 3343fi
54445dc2
TT
3344if test -f "$ac_aux_dir/configure"; then
3345 ac_configure="$SHELL ${ac_aux_dir}configure"
07a0db15 3346fi
73ae2d4a 3347
54445dc2
TT
3348# Check that the precious variables saved in the cache have kept the same
3349# value.
3350ac_cache_corrupted=false
3351for ac_var in $ac_precious_vars; do
3352 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3353 eval ac_new_set=\$ac_env_${ac_var}_set
3354 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3355 eval ac_new_val=\$ac_env_${ac_var}_value
3356 case $ac_old_set,$ac_new_set in
3357 set,)
3358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3359printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3360 ac_cache_corrupted=: ;;
3361 ,set)
3362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3363printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3364 ac_cache_corrupted=: ;;
3365 ,);;
3366 *)
3367 if test "x$ac_old_val" != "x$ac_new_val"; then
3368 # differences in whitespace do not lead to failure.
3369 ac_old_val_w=`echo x $ac_old_val`
3370 ac_new_val_w=`echo x $ac_new_val`
3371 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3373printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3374 ac_cache_corrupted=:
3375 else
3376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3377printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3378 eval $ac_var=\$ac_old_val
3379 fi
3380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3381printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
3382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3383printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
3384 fi;;
3385 esac
3386 # Pass precious variables to config.status.
3387 if test "$ac_new_set" = set; then
3388 case $ac_new_val in
3389 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3390 *) ac_arg=$ac_var=$ac_new_val ;;
3391 esac
3392 case " $ac_configure_args " in
3393 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3394 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3395 esac
3396 fi
3397done
3398if $ac_cache_corrupted; then
3399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3400printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3402printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3403 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3404 and start over" "$LINENO" 5
3405fi
3406## -------------------- ##
3407## Main body of script. ##
3408## -------------------- ##
3409
3410ac_ext=c
3411ac_cpp='$CPP $CPPFLAGS'
3412ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3413ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3414ac_compiler_gnu=$ac_cv_c_compiler_gnu
3415
3416
3417
3418
3419
3420ac_config_headers="$ac_config_headers lib/config.h"
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432ac_ext=c
3433ac_cpp='$CPP $CPPFLAGS'
3434ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3435ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3436ac_compiler_gnu=$ac_cv_c_compiler_gnu
3437if test -n "$ac_tool_prefix"; then
3438 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3439set dummy ${ac_tool_prefix}gcc; ac_word=$2
3440{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3441printf %s "checking for $ac_word... " >&6; }
3442if test ${ac_cv_prog_CC+y}
3443then :
3444 printf %s "(cached) " >&6
3445else $as_nop
3446 if test -n "$CC"; then
3447 ac_cv_prog_CC="$CC" # Let the user override the test.
3448else
3449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3450for as_dir in $PATH
3451do
3452 IFS=$as_save_IFS
3453 case $as_dir in #(((
3454 '') as_dir=./ ;;
3455 */) ;;
3456 *) as_dir=$as_dir/ ;;
3457 esac
3458 for ac_exec_ext in '' $ac_executable_extensions; do
3459 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3460 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3461 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3462 break 2
3463 fi
3464done
3465 done
3466IFS=$as_save_IFS
3467
3468fi
3469fi
3470CC=$ac_cv_prog_CC
3471if test -n "$CC"; then
3472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3473printf "%s\n" "$CC" >&6; }
3474else
3475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3476printf "%s\n" "no" >&6; }
3477fi
3478
3479
3480fi
3481if test -z "$ac_cv_prog_CC"; then
3482 ac_ct_CC=$CC
3483 # Extract the first word of "gcc", so it can be a program name with args.
3484set dummy gcc; ac_word=$2
3485{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3486printf %s "checking for $ac_word... " >&6; }
3487if test ${ac_cv_prog_ac_ct_CC+y}
3488then :
3489 printf %s "(cached) " >&6
3490else $as_nop
3491 if test -n "$ac_ct_CC"; then
3492 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3493else
3494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3495for as_dir in $PATH
3496do
3497 IFS=$as_save_IFS
3498 case $as_dir in #(((
3499 '') as_dir=./ ;;
3500 */) ;;
3501 *) as_dir=$as_dir/ ;;
3502 esac
3503 for ac_exec_ext in '' $ac_executable_extensions; do
3504 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3505 ac_cv_prog_ac_ct_CC="gcc"
3506 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3507 break 2
3508 fi
3509done
3510 done
3511IFS=$as_save_IFS
3512
3513fi
3514fi
3515ac_ct_CC=$ac_cv_prog_ac_ct_CC
3516if test -n "$ac_ct_CC"; then
3517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3518printf "%s\n" "$ac_ct_CC" >&6; }
3519else
3520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3521printf "%s\n" "no" >&6; }
3522fi
3523
3524 if test "x$ac_ct_CC" = x; then
3525 CC=""
3526 else
3527 case $cross_compiling:$ac_tool_warned in
3528yes:)
3529{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3530printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3531ac_tool_warned=yes ;;
3532esac
3533 CC=$ac_ct_CC
e1052144 3534 fi
57aa50d4
TT
3535else
3536 CC="$ac_cv_prog_CC"
b0cacab0
TT
3537fi
3538
57aa50d4
TT
3539if test -z "$CC"; then
3540 if test -n "$ac_tool_prefix"; then
3541 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3542set dummy ${ac_tool_prefix}cc; ac_word=$2
54445dc2
TT
3543{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3544printf %s "checking for $ac_word... " >&6; }
3545if test ${ac_cv_prog_CC+y}
3546then :
3547 printf %s "(cached) " >&6
3548else $as_nop
57aa50d4
TT
3549 if test -n "$CC"; then
3550 ac_cv_prog_CC="$CC" # Let the user override the test.
3551else
3552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3553for as_dir in $PATH
3554do
3555 IFS=$as_save_IFS
54445dc2
TT
3556 case $as_dir in #(((
3557 '') as_dir=./ ;;
3558 */) ;;
3559 *) as_dir=$as_dir/ ;;
3560 esac
57aa50d4 3561 for ac_exec_ext in '' $ac_executable_extensions; do
54445dc2 3562 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
57aa50d4 3563 ac_cv_prog_CC="${ac_tool_prefix}cc"
54445dc2 3564 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
57aa50d4
TT
3565 break 2
3566 fi
3567done
3568 done
3569IFS=$as_save_IFS
3570
3571fi
3572fi
3573CC=$ac_cv_prog_CC
3574if test -n "$CC"; then
54445dc2
TT
3575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3576printf "%s\n" "$CC" >&6; }
57aa50d4 3577else
54445dc2
TT
3578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3579printf "%s\n" "no" >&6; }
57aa50d4
TT
3580fi
3581
3582
3583 fi
3584fi
3585if test -z "$CC"; then
3586 # Extract the first word of "cc", so it can be a program name with args.
3587set dummy cc; ac_word=$2
54445dc2
TT
3588{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3589printf %s "checking for $ac_word... " >&6; }
3590if test ${ac_cv_prog_CC+y}
3591then :
3592 printf %s "(cached) " >&6
3593else $as_nop
57aa50d4
TT
3594 if test -n "$CC"; then
3595 ac_cv_prog_CC="$CC" # Let the user override the test.
3596else
3597 ac_prog_rejected=no
3598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3599for as_dir in $PATH
3600do
3601 IFS=$as_save_IFS
54445dc2
TT
3602 case $as_dir in #(((
3603 '') as_dir=./ ;;
3604 */) ;;
3605 *) as_dir=$as_dir/ ;;
3606 esac
57aa50d4 3607 for ac_exec_ext in '' $ac_executable_extensions; do
54445dc2
TT
3608 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3609 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
57aa50d4
TT
3610 ac_prog_rejected=yes
3611 continue
3612 fi
3613 ac_cv_prog_CC="cc"
54445dc2 3614 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
57aa50d4
TT
3615 break 2
3616 fi
3617done
3618 done
3619IFS=$as_save_IFS
3620
3621if test $ac_prog_rejected = yes; then
3622 # We found a bogon in the path, so make sure we never use it.
3623 set dummy $ac_cv_prog_CC
3624 shift
3625 if test $# != 0; then
3626 # We chose a different compiler from the bogus one.
3627 # However, it has the same basename, so the bogon will be chosen
3628 # first if we set CC to just the basename; use the full file name.
3629 shift
54445dc2 3630 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
57aa50d4
TT
3631 fi
3632fi
3633fi
3634fi
3635CC=$ac_cv_prog_CC
3636if test -n "$CC"; then
54445dc2
TT
3637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3638printf "%s\n" "$CC" >&6; }
57aa50d4 3639else
54445dc2
TT
3640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3641printf "%s\n" "no" >&6; }
57aa50d4
TT
3642fi
3643
3644
3645fi
3646if test -z "$CC"; then
3647 if test -n "$ac_tool_prefix"; then
3648 for ac_prog in cl.exe
3649 do
3650 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3651set dummy $ac_tool_prefix$ac_prog; ac_word=$2
54445dc2
TT
3652{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3653printf %s "checking for $ac_word... " >&6; }
3654if test ${ac_cv_prog_CC+y}
3655then :
3656 printf %s "(cached) " >&6
3657else $as_nop
57aa50d4
TT
3658 if test -n "$CC"; then
3659 ac_cv_prog_CC="$CC" # Let the user override the test.
3660else
3661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3662for as_dir in $PATH
3663do
3664 IFS=$as_save_IFS
54445dc2
TT
3665 case $as_dir in #(((
3666 '') as_dir=./ ;;
3667 */) ;;
3668 *) as_dir=$as_dir/ ;;
3669 esac
57aa50d4 3670 for ac_exec_ext in '' $ac_executable_extensions; do
54445dc2 3671 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
57aa50d4 3672 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
54445dc2 3673 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
57aa50d4
TT
3674 break 2
3675 fi
3676done
3677 done
3678IFS=$as_save_IFS
3679
3680fi
3681fi
3682CC=$ac_cv_prog_CC
3683if test -n "$CC"; then
54445dc2
TT
3684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3685printf "%s\n" "$CC" >&6; }
57aa50d4 3686else
54445dc2
TT
3687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3688printf "%s\n" "no" >&6; }
57aa50d4
TT
3689fi
3690
3691
3692 test -n "$CC" && break
3693 done
3694fi
3695if test -z "$CC"; then
3696 ac_ct_CC=$CC
3697 for ac_prog in cl.exe
3698do
3699 # Extract the first word of "$ac_prog", so it can be a program name with args.
3700set dummy $ac_prog; ac_word=$2
54445dc2
TT
3701{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3702printf %s "checking for $ac_word... " >&6; }
3703if test ${ac_cv_prog_ac_ct_CC+y}
3704then :
3705 printf %s "(cached) " >&6
3706else $as_nop
57aa50d4
TT
3707 if test -n "$ac_ct_CC"; then
3708 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3709else
3710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3711for as_dir in $PATH
3712do
3713 IFS=$as_save_IFS
54445dc2
TT
3714 case $as_dir in #(((
3715 '') as_dir=./ ;;
3716 */) ;;
3717 *) as_dir=$as_dir/ ;;
3718 esac
57aa50d4 3719 for ac_exec_ext in '' $ac_executable_extensions; do
54445dc2 3720 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
57aa50d4 3721 ac_cv_prog_ac_ct_CC="$ac_prog"
54445dc2 3722 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
57aa50d4
TT
3723 break 2
3724 fi
3725done
3726 done
3727IFS=$as_save_IFS
3728
3729fi
3730fi
3731ac_ct_CC=$ac_cv_prog_ac_ct_CC
3732if test -n "$ac_ct_CC"; then
54445dc2
TT
3733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3734printf "%s\n" "$ac_ct_CC" >&6; }
57aa50d4 3735else
54445dc2
TT
3736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3737printf "%s\n" "no" >&6; }
57aa50d4
TT
3738fi
3739
3740
3741 test -n "$ac_ct_CC" && break
3742done
3743
3744 if test "x$ac_ct_CC" = x; then
3745 CC=""
3746 else
3747 case $cross_compiling:$ac_tool_warned in
3748yes:)
54445dc2
TT
3749{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3750printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3751ac_tool_warned=yes ;;
3752esac
3753 CC=$ac_ct_CC
3754 fi
3755fi
3756
3757fi
3758if test -z "$CC"; then
3759 if test -n "$ac_tool_prefix"; then
3760 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
3761set dummy ${ac_tool_prefix}clang; ac_word=$2
3762{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3763printf %s "checking for $ac_word... " >&6; }
3764if test ${ac_cv_prog_CC+y}
3765then :
3766 printf %s "(cached) " >&6
3767else $as_nop
3768 if test -n "$CC"; then
3769 ac_cv_prog_CC="$CC" # Let the user override the test.
3770else
3771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3772for as_dir in $PATH
3773do
3774 IFS=$as_save_IFS
3775 case $as_dir in #(((
3776 '') as_dir=./ ;;
3777 */) ;;
3778 *) as_dir=$as_dir/ ;;
3779 esac
3780 for ac_exec_ext in '' $ac_executable_extensions; do
3781 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3782 ac_cv_prog_CC="${ac_tool_prefix}clang"
3783 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3784 break 2
3785 fi
3786done
3787 done
3788IFS=$as_save_IFS
3789
3790fi
3791fi
3792CC=$ac_cv_prog_CC
3793if test -n "$CC"; then
3794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3795printf "%s\n" "$CC" >&6; }
3796else
3797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3798printf "%s\n" "no" >&6; }
3799fi
3800
3801
3802fi
3803if test -z "$ac_cv_prog_CC"; then
3804 ac_ct_CC=$CC
3805 # Extract the first word of "clang", so it can be a program name with args.
3806set dummy clang; ac_word=$2
3807{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3808printf %s "checking for $ac_word... " >&6; }
3809if test ${ac_cv_prog_ac_ct_CC+y}
3810then :
3811 printf %s "(cached) " >&6
3812else $as_nop
3813 if test -n "$ac_ct_CC"; then
3814 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3815else
3816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3817for as_dir in $PATH
3818do
3819 IFS=$as_save_IFS
3820 case $as_dir in #(((
3821 '') as_dir=./ ;;
3822 */) ;;
3823 *) as_dir=$as_dir/ ;;
3824 esac
3825 for ac_exec_ext in '' $ac_executable_extensions; do
3826 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3827 ac_cv_prog_ac_ct_CC="clang"
3828 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3829 break 2
3830 fi
3831done
3832 done
3833IFS=$as_save_IFS
3834
3835fi
3836fi
3837ac_ct_CC=$ac_cv_prog_ac_ct_CC
3838if test -n "$ac_ct_CC"; then
3839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3840printf "%s\n" "$ac_ct_CC" >&6; }
3841else
3842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3843printf "%s\n" "no" >&6; }
3844fi
3845
3846 if test "x$ac_ct_CC" = x; then
3847 CC=""
3848 else
3849 case $cross_compiling:$ac_tool_warned in
3850yes:)
3851{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3852printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
57aa50d4
TT
3853ac_tool_warned=yes ;;
3854esac
3855 CC=$ac_ct_CC
3856 fi
54445dc2
TT
3857else
3858 CC="$ac_cv_prog_CC"
57aa50d4
TT
3859fi
3860
3861fi
3862
3863
54445dc2
TT
3864test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3865printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
d6a4bcb5
TB
3866as_fn_error $? "no acceptable C compiler found in \$PATH
3867See \`config.log' for more details" "$LINENO" 5; }
b0cacab0
TT
3868
3869# Provide some information about the compiler.
54445dc2 3870printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
39fd3d4f
SJR
3871set X $ac_compile
3872ac_compiler=$2
54445dc2 3873for ac_option in --version -v -V -qversion -version; do
57aa50d4 3874 { { ac_try="$ac_compiler $ac_option >&5"
e1052144
TT
3875case "(($ac_try" in
3876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3877 *) ac_try_echo=$ac_try;;
3878esac
57aa50d4 3879eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
54445dc2 3880printf "%s\n" "$ac_try_echo"; } >&5
57aa50d4 3881 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
b0cacab0 3882 ac_status=$?
57aa50d4
TT
3883 if test -s conftest.err; then
3884 sed '10a\
3885... rest of stderr output deleted ...
3886 10q' conftest.err >conftest.er1
3887 cat conftest.er1 >&5
57aa50d4 3888 fi
61ef2474 3889 rm -f conftest.er1 conftest.err
54445dc2 3890 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
57aa50d4
TT
3891 test $ac_status = 0; }
3892done
b0cacab0 3893
57aa50d4 3894cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 3895/* end confdefs.h. */
61ef2474 3896
b0cacab0 3897int
54445dc2 3898main (void)
b0cacab0
TT
3899{
3900
3901 ;
3902 return 0;
3903}
3904_ACEOF
3905ac_clean_files_save=$ac_clean_files
61ef2474 3906ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
b0cacab0
TT
3907# Try to create an executable without -o first, disregard a.out.
3908# It will help us diagnose broken compilers, and finding out an intuition
3909# of exeext.
54445dc2
TT
3910{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3911printf %s "checking whether the C compiler works... " >&6; }
3912ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
39fd3d4f
SJR
3913
3914# The possible output files:
3915ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3916
e1052144
TT
3917ac_rmfiles=
3918for ac_file in $ac_files
3919do
3920 case $ac_file in
39fd3d4f 3921 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
e1052144
TT
3922 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3923 esac
3924done
3925rm -f $ac_rmfiles
3926
57aa50d4 3927if { { ac_try="$ac_link_default"
e1052144
TT
3928case "(($ac_try" in
3929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3930 *) ac_try_echo=$ac_try;;
3931esac
57aa50d4 3932eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
54445dc2 3933printf "%s\n" "$ac_try_echo"; } >&5
e1052144 3934 (eval "$ac_link_default") 2>&5
b0cacab0 3935 ac_status=$?
54445dc2
TT
3936 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3937 test $ac_status = 0; }
3938then :
e1052144
TT
3939 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3940# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3941# in a Makefile. We should not override ac_cv_exeext if it was cached,
3942# so that the user can short-circuit this test for compilers unknown to
3943# Autoconf.
29a5deed 3944for ac_file in $ac_files ''
b0cacab0
TT
3945do
3946 test -f "$ac_file" || continue
3947 case $ac_file in
39fd3d4f 3948 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
b0cacab0
TT
3949 ;;
3950 [ab].out )
3951 # We found the default executable, but exeext='' is most
3952 # certainly right.
3953 break;;
3954 *.* )
54445dc2 3955 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
e1052144
TT
3956 then :; else
3957 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3958 fi
3959 # We set ac_cv_exeext here because the later test for it is not
3960 # safe: cross compilers may not add the suffix if given an `-o'
3961 # argument, so we may need to know it at that point already.
3962 # Even if this section looks crufty: it has the advantage of
3963 # actually working.
b0cacab0
TT
3964 break;;
3965 * )
3966 break;;
3967 esac
3968done
e1052144
TT
3969test "$ac_cv_exeext" = no && ac_cv_exeext=
3970
54445dc2 3971else $as_nop
29a5deed
TT
3972 ac_file=''
3973fi
54445dc2
TT
3974if test -z "$ac_file"
3975then :
3976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3977printf "%s\n" "no" >&6; }
3978printf "%s\n" "$as_me: failed program was:" >&5
b0cacab0
TT
3979sed 's/^/| /' conftest.$ac_ext >&5
3980
54445dc2
TT
3981{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3982printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
d6a4bcb5
TB
3983as_fn_error 77 "C compiler cannot create executables
3984See \`config.log' for more details" "$LINENO" 5; }
54445dc2
TT
3985else $as_nop
3986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3987printf "%s\n" "yes" >&6; }
3988fi
3989{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3990printf %s "checking for C compiler default output file name... " >&6; }
3991{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3992printf "%s\n" "$ac_file" >&6; }
b0cacab0 3993ac_exeext=$ac_cv_exeext
b0cacab0 3994
61ef2474 3995rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
b0cacab0 3996ac_clean_files=$ac_clean_files_save
54445dc2
TT
3997{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3998printf %s "checking for suffix of executables... " >&6; }
57aa50d4 3999if { { ac_try="$ac_link"
e1052144
TT
4000case "(($ac_try" in
4001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4002 *) ac_try_echo=$ac_try;;
4003esac
57aa50d4 4004eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
54445dc2 4005printf "%s\n" "$ac_try_echo"; } >&5
e1052144 4006 (eval "$ac_link") 2>&5
b0cacab0 4007 ac_status=$?
54445dc2
TT
4008 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4009 test $ac_status = 0; }
4010then :
b0cacab0
TT
4011 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4012# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4013# work properly (i.e., refer to `conftest.exe'), while it won't with
4014# `rm'.
4015for ac_file in conftest.exe conftest conftest.*; do
4016 test -f "$ac_file" || continue
4017 case $ac_file in
39fd3d4f 4018 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
b0cacab0 4019 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
b0cacab0
TT
4020 break;;
4021 * ) break;;
4022 esac
4023done
54445dc2
TT
4024else $as_nop
4025 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4026printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
d6a4bcb5
TB
4027as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4028See \`config.log' for more details" "$LINENO" 5; }
73ae2d4a 4029fi
61ef2474 4030rm -f conftest conftest$ac_cv_exeext
54445dc2
TT
4031{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4032printf "%s\n" "$ac_cv_exeext" >&6; }
73ae2d4a 4033
b0cacab0
TT
4034rm -f conftest.$ac_ext
4035EXEEXT=$ac_cv_exeext
4036ac_exeext=$EXEEXT
61ef2474
TT
4037cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4038/* end confdefs.h. */
4039#include <stdio.h>
4040int
54445dc2 4041main (void)
61ef2474
TT
4042{
4043FILE *f = fopen ("conftest.out", "w");
4044 return ferror (f) || fclose (f) != 0;
4045
4046 ;
4047 return 0;
4048}
4049_ACEOF
4050ac_clean_files="$ac_clean_files conftest.out"
4051# Check that the compiler produces executables we can run. If not, either
4052# the compiler is broken, or we cross compile.
54445dc2
TT
4053{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4054printf %s "checking whether we are cross compiling... " >&6; }
61ef2474
TT
4055if test "$cross_compiling" != yes; then
4056 { { ac_try="$ac_link"
4057case "(($ac_try" in
4058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4059 *) ac_try_echo=$ac_try;;
4060esac
4061eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
54445dc2 4062printf "%s\n" "$ac_try_echo"; } >&5
61ef2474
TT
4063 (eval "$ac_link") 2>&5
4064 ac_status=$?
54445dc2 4065 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
61ef2474
TT
4066 test $ac_status = 0; }
4067 if { ac_try='./conftest$ac_cv_exeext'
4068 { { case "(($ac_try" in
4069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4070 *) ac_try_echo=$ac_try;;
4071esac
4072eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
54445dc2 4073printf "%s\n" "$ac_try_echo"; } >&5
61ef2474
TT
4074 (eval "$ac_try") 2>&5
4075 ac_status=$?
54445dc2 4076 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
61ef2474
TT
4077 test $ac_status = 0; }; }; then
4078 cross_compiling=no
4079 else
4080 if test "$cross_compiling" = maybe; then
4081 cross_compiling=yes
4082 else
54445dc2
TT
4083 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4084printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4085as_fn_error 77 "cannot run C compiled programs.
61ef2474 4086If you meant to cross compile, use \`--host'.
d6a4bcb5 4087See \`config.log' for more details" "$LINENO" 5; }
61ef2474
TT
4088 fi
4089 fi
4090fi
54445dc2
TT
4091{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4092printf "%s\n" "$cross_compiling" >&6; }
61ef2474
TT
4093
4094rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4095ac_clean_files=$ac_clean_files_save
54445dc2
TT
4096{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4097printf %s "checking for suffix of object files... " >&6; }
4098if test ${ac_cv_objext+y}
4099then :
4100 printf %s "(cached) " >&6
4101else $as_nop
57aa50d4 4102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 4103/* end confdefs.h. */
07a0db15 4104
b0cacab0 4105int
54445dc2 4106main (void)
b0cacab0 4107{
07a0db15 4108
b0cacab0
TT
4109 ;
4110 return 0;
4111}
4112_ACEOF
4113rm -f conftest.o conftest.obj
57aa50d4 4114if { { ac_try="$ac_compile"
e1052144
TT
4115case "(($ac_try" in
4116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4117 *) ac_try_echo=$ac_try;;
4118esac
57aa50d4 4119eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
54445dc2 4120printf "%s\n" "$ac_try_echo"; } >&5
e1052144 4121 (eval "$ac_compile") 2>&5
b0cacab0 4122 ac_status=$?
54445dc2
TT
4123 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4124 test $ac_status = 0; }
4125then :
e1052144
TT
4126 for ac_file in conftest.o conftest.obj conftest.*; do
4127 test -f "$ac_file" || continue;
b0cacab0 4128 case $ac_file in
39fd3d4f 4129 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
b0cacab0
TT
4130 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4131 break;;
4132 esac
4133done
54445dc2
TT
4134else $as_nop
4135 printf "%s\n" "$as_me: failed program was:" >&5
b0cacab0 4136sed 's/^/| /' conftest.$ac_ext >&5
07a0db15 4137
54445dc2
TT
4138{ { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4139printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
d6a4bcb5
TB
4140as_fn_error $? "cannot compute suffix of object files: cannot compile
4141See \`config.log' for more details" "$LINENO" 5; }
73ae2d4a 4142fi
b0cacab0 4143rm -f conftest.$ac_cv_objext conftest.$ac_ext
73ae2d4a 4144fi
54445dc2
TT
4145{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4146printf "%s\n" "$ac_cv_objext" >&6; }
b0cacab0
TT
4147OBJEXT=$ac_cv_objext
4148ac_objext=$OBJEXT
54445dc2
TT
4149{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
4150printf %s "checking whether the compiler supports GNU C... " >&6; }
4151if test ${ac_cv_c_compiler_gnu+y}
4152then :
4153 printf %s "(cached) " >&6
4154else $as_nop
57aa50d4 4155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0
TT
4156/* end confdefs.h. */
4157
4158int
54445dc2 4159main (void)
b0cacab0
TT
4160{
4161#ifndef __GNUC__
4162 choke me
4163#endif
4164
4165 ;
4166 return 0;
4167}
4168_ACEOF
54445dc2
TT
4169if ac_fn_c_try_compile "$LINENO"
4170then :
b0cacab0 4171 ac_compiler_gnu=yes
54445dc2 4172else $as_nop
57aa50d4 4173 ac_compiler_gnu=no
b0cacab0 4174fi
54445dc2 4175rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
b0cacab0
TT
4176ac_cv_c_compiler_gnu=$ac_compiler_gnu
4177
4178fi
54445dc2
TT
4179{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4180printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
4181ac_compiler_gnu=$ac_cv_c_compiler_gnu
4182
39fd3d4f
SJR
4183if test $ac_compiler_gnu = yes; then
4184 GCC=yes
4185else
4186 GCC=
4187fi
54445dc2 4188ac_test_CFLAGS=${CFLAGS+y}
b0cacab0 4189ac_save_CFLAGS=$CFLAGS
54445dc2
TT
4190{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4191printf %s "checking whether $CC accepts -g... " >&6; }
4192if test ${ac_cv_prog_cc_g+y}
4193then :
4194 printf %s "(cached) " >&6
4195else $as_nop
e1052144
TT
4196 ac_save_c_werror_flag=$ac_c_werror_flag
4197 ac_c_werror_flag=yes
4198 ac_cv_prog_cc_g=no
4199 CFLAGS="-g"
57aa50d4 4200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e1052144
TT
4201/* end confdefs.h. */
4202
4203int
54445dc2 4204main (void)
e1052144
TT
4205{
4206
4207 ;
4208 return 0;
4209}
4210_ACEOF
54445dc2
TT
4211if ac_fn_c_try_compile "$LINENO"
4212then :
e1052144 4213 ac_cv_prog_cc_g=yes
54445dc2 4214else $as_nop
57aa50d4
TT
4215 CFLAGS=""
4216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e1052144
TT
4217/* end confdefs.h. */
4218
4219int
54445dc2 4220main (void)
e1052144
TT
4221{
4222
4223 ;
4224 return 0;
4225}
4226_ACEOF
54445dc2
TT
4227if ac_fn_c_try_compile "$LINENO"
4228then :
e1052144 4229
54445dc2 4230else $as_nop
57aa50d4 4231 ac_c_werror_flag=$ac_save_c_werror_flag
e1052144 4232 CFLAGS="-g"
57aa50d4 4233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0
TT
4234/* end confdefs.h. */
4235
4236int
54445dc2 4237main (void)
b0cacab0
TT
4238{
4239
4240 ;
4241 return 0;
4242}
4243_ACEOF
54445dc2
TT
4244if ac_fn_c_try_compile "$LINENO"
4245then :
b0cacab0 4246 ac_cv_prog_cc_g=yes
e1052144 4247fi
54445dc2 4248rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
e1052144 4249fi
54445dc2 4250rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
b0cacab0 4251fi
54445dc2 4252rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
e1052144 4253 ac_c_werror_flag=$ac_save_c_werror_flag
b0cacab0 4254fi
54445dc2
TT
4255{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4256printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
4257if test $ac_test_CFLAGS; then
b0cacab0
TT
4258 CFLAGS=$ac_save_CFLAGS
4259elif test $ac_cv_prog_cc_g = yes; then
4260 if test "$GCC" = yes; then
4261 CFLAGS="-g -O2"
4262 else
4263 CFLAGS="-g"
4264 fi
73ae2d4a
TT
4265else
4266 if test "$GCC" = yes; then
4267 CFLAGS="-O2"
4268 else
4269 CFLAGS=
4270 fi
4271fi
54445dc2
TT
4272ac_prog_cc_stdc=no
4273if test x$ac_prog_cc_stdc = xno
4274then :
4275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
4276printf %s "checking for $CC option to enable C11 features... " >&6; }
4277if test ${ac_cv_prog_cc_c11+y}
4278then :
4279 printf %s "(cached) " >&6
4280else $as_nop
4281 ac_cv_prog_cc_c11=no
b0cacab0 4282ac_save_CC=$CC
57aa50d4 4283cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 4284/* end confdefs.h. */
54445dc2 4285$ac_c_conftest_c11_program
b0cacab0 4286_ACEOF
54445dc2 4287for ac_arg in '' -std=gnu11
b0cacab0
TT
4288do
4289 CC="$ac_save_CC $ac_arg"
54445dc2
TT
4290 if ac_fn_c_try_compile "$LINENO"
4291then :
4292 ac_cv_prog_cc_c11=$ac_arg
4293fi
4294rm -f core conftest.err conftest.$ac_objext conftest.beam
4295 test "x$ac_cv_prog_cc_c11" != "xno" && break
4296done
4297rm -f conftest.$ac_ext
4298CC=$ac_save_CC
4299fi
4300
4301if test "x$ac_cv_prog_cc_c11" = xno
4302then :
4303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4304printf "%s\n" "unsupported" >&6; }
4305else $as_nop
4306 if test "x$ac_cv_prog_cc_c11" = x
4307then :
4308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4309printf "%s\n" "none needed" >&6; }
4310else $as_nop
4311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
4312printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
4313 CC="$CC $ac_cv_prog_cc_c11"
4314fi
4315 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
4316 ac_prog_cc_stdc=c11
4317fi
4318fi
4319if test x$ac_prog_cc_stdc = xno
4320then :
4321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
4322printf %s "checking for $CC option to enable C99 features... " >&6; }
4323if test ${ac_cv_prog_cc_c99+y}
4324then :
4325 printf %s "(cached) " >&6
4326else $as_nop
4327 ac_cv_prog_cc_c99=no
4328ac_save_CC=$CC
4329cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4330/* end confdefs.h. */
4331$ac_c_conftest_c99_program
4332_ACEOF
4333for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
4334do
4335 CC="$ac_save_CC $ac_arg"
4336 if ac_fn_c_try_compile "$LINENO"
4337then :
4338 ac_cv_prog_cc_c99=$ac_arg
4339fi
4340rm -f core conftest.err conftest.$ac_objext conftest.beam
4341 test "x$ac_cv_prog_cc_c99" != "xno" && break
4342done
4343rm -f conftest.$ac_ext
4344CC=$ac_save_CC
4345fi
4346
4347if test "x$ac_cv_prog_cc_c99" = xno
4348then :
4349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4350printf "%s\n" "unsupported" >&6; }
4351else $as_nop
4352 if test "x$ac_cv_prog_cc_c99" = x
4353then :
4354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4355printf "%s\n" "none needed" >&6; }
4356else $as_nop
4357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
4358printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
4359 CC="$CC $ac_cv_prog_cc_c99"
4360fi
4361 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
4362 ac_prog_cc_stdc=c99
4363fi
4364fi
4365if test x$ac_prog_cc_stdc = xno
4366then :
4367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
4368printf %s "checking for $CC option to enable C89 features... " >&6; }
4369if test ${ac_cv_prog_cc_c89+y}
4370then :
4371 printf %s "(cached) " >&6
4372else $as_nop
4373 ac_cv_prog_cc_c89=no
4374ac_save_CC=$CC
4375cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4376/* end confdefs.h. */
4377$ac_c_conftest_c89_program
4378_ACEOF
4379for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4380do
4381 CC="$ac_save_CC $ac_arg"
4382 if ac_fn_c_try_compile "$LINENO"
4383then :
e1052144 4384 ac_cv_prog_cc_c89=$ac_arg
b0cacab0 4385fi
54445dc2 4386rm -f core conftest.err conftest.$ac_objext conftest.beam
e1052144 4387 test "x$ac_cv_prog_cc_c89" != "xno" && break
b0cacab0 4388done
e1052144 4389rm -f conftest.$ac_ext
b0cacab0 4390CC=$ac_save_CC
b0cacab0 4391fi
b0cacab0 4392
54445dc2
TT
4393if test "x$ac_cv_prog_cc_c89" = xno
4394then :
4395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4396printf "%s\n" "unsupported" >&6; }
4397else $as_nop
4398 if test "x$ac_cv_prog_cc_c89" = x
4399then :
4400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4401printf "%s\n" "none needed" >&6; }
4402else $as_nop
4403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4404printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
4405 CC="$CC $ac_cv_prog_cc_c89"
4406fi
4407 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
4408 ac_prog_cc_stdc=c89
4409fi
57aa50d4 4410fi
b0cacab0 4411
b0cacab0
TT
4412ac_ext=c
4413ac_cpp='$CPP $CPPFLAGS'
4414ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4415ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4416ac_compiler_gnu=$ac_cv_c_compiler_gnu
4417
57aa50d4 4418
54445dc2
TT
4419ac_header= ac_cache=
4420for ac_item in $ac_header_c_list
4421do
4422 if test $ac_cache; then
4423 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
4424 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
4425 printf "%s\n" "#define $ac_item 1" >> confdefs.h
4426 fi
4427 ac_header= ac_cache=
4428 elif test $ac_header; then
4429 ac_cache=$ac_item
4430 else
4431 ac_header=$ac_item
4432 fi
4433done
4434
4435
4436
4437
4438
4439
4440
4441
4442if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
4443then :
4444
4445printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
4446
4447fi
4448
4449
4450
4451
4452
4453
4454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4455printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4456if test ${ac_cv_safe_to_define___extensions__+y}
4457then :
4458 printf %s "(cached) " >&6
4459else $as_nop
4460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4461/* end confdefs.h. */
4462
4463# define __EXTENSIONS__ 1
4464 $ac_includes_default
4465int
4466main (void)
4467{
4468
4469 ;
4470 return 0;
4471}
4472_ACEOF
4473if ac_fn_c_try_compile "$LINENO"
4474then :
4475 ac_cv_safe_to_define___extensions__=yes
4476else $as_nop
4477 ac_cv_safe_to_define___extensions__=no
4478fi
4479rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4480fi
4481{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4482printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
4483
4484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
4485printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
4486if test ${ac_cv_should_define__xopen_source+y}
4487then :
4488 printf %s "(cached) " >&6
4489else $as_nop
4490 ac_cv_should_define__xopen_source=no
4491 if test $ac_cv_header_wchar_h = yes
4492then :
4493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4494/* end confdefs.h. */
4495
4496 #include <wchar.h>
4497 mbstate_t x;
4498int
4499main (void)
4500{
4501
4502 ;
4503 return 0;
4504}
4505_ACEOF
4506if ac_fn_c_try_compile "$LINENO"
4507then :
4508
4509else $as_nop
4510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4511/* end confdefs.h. */
4512
4513 #define _XOPEN_SOURCE 500
4514 #include <wchar.h>
4515 mbstate_t x;
4516int
4517main (void)
4518{
4519
4520 ;
4521 return 0;
4522}
4523_ACEOF
4524if ac_fn_c_try_compile "$LINENO"
4525then :
4526 ac_cv_should_define__xopen_source=yes
4527fi
4528rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4529fi
4530rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4531fi
4532fi
4533{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
4534printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
4535
4536 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
4537
4538 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
4539
4540 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
4541
4542 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
4543
4544 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
4545
4546 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
4547
4548 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4549
4550 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
4551
4552 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
4553
4554 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
4555
4556 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
4557
4558 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
4559
4560 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
4561
4562 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
4563
4564 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
4565
4566 if test $ac_cv_header_minix_config_h = yes
4567then :
4568 MINIX=yes
4569 printf "%s\n" "#define _MINIX 1" >>confdefs.h
4570
4571 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
4572
4573 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
4574
4575else $as_nop
4576 MINIX=
4577fi
4578 if test $ac_cv_safe_to_define___extensions__ = yes
4579then :
4580 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
4581
4582fi
4583 if test $ac_cv_should_define__xopen_source = yes
4584then :
4585 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
4586
4587fi
4588
4589MCONFIG=./MCONFIG
4590
4591BINARY_TYPE=bin
1ac00616
AD
4592E2FSPROGS_VERSION=`awk -F\" '/E2FSPROGS_VERS/ { print $2 }' ${srcdir}/version.h`
4593E2FSPROGS_DATE=`awk -F\" '/E2FSPROGS_DATE/ { print $2 }' ${srcdir}/version.h`
4594E2FSPROGS_DAY=$(echo $E2FSPROGS_DATE | awk -F- '{ printf "%02d", $1 }')
54445dc2
TT
4595MONTH=`echo $E2FSPROGS_DATE | awk -F- '{print $2}'`
4596YEAR=`echo $E2FSPROGS_DATE | awk -F- '{print $3}'`
4597
4598if expr $YEAR ">" 1900 > /dev/null ; then
4599 E2FSPROGS_YEAR=$YEAR
4600elif expr $YEAR ">" 90 >/dev/null ; then
4601 E2FSPROGS_YEAR=19$YEAR
4602else
4603 E2FSPROGS_YEAR=20$YEAR
4604fi
4605
4606case $MONTH in
4607Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
4608Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
4609Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
4610Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
4611May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
4612Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
4613Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
4614Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
4615Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
4616Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
4617Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
4618Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
4619*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
4620printf "%s\n" "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
4621esac
4622
1ac00616
AD
4623base_ver=`echo $E2FSPROGS_VERSION | sed -e 's/pre-//' -e 's/-.*//'`
4624base_rel=`echo $E2FSPROGS_VERSION | awk -F- '{ print $2 }'`
54445dc2
TT
4625
4626date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
4627
4628case $E2FSPROGS_VERSION in
4629*-WIP|pre-*)
1ac00616
AD
4630 E2FSPROGS_PKGVER="$base_ver"
4631 E2FSPROGS_PKGREL="WIP.$date_spec"
54445dc2
TT
4632 ;;
4633*)
4634 E2FSPROGS_PKGVER="$base_ver"
1ac00616 4635 E2FSPROGS_PKGREL="$base_rel"
54445dc2
TT
4636 ;;
4637esac
4638
4639unset DATE MONTH YEAR base_ver pre_vers date_spec
4640{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
4641printf "%s\n" "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
a30e56b9
TT
4642{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Package version ${E2FSPROGS_PKGVER} release ${E2FSPROGS_PKGREL}" >&5
4643printf "%s\n" "Package version ${E2FSPROGS_PKGVER} release ${E2FSPROGS_PKGREL}" >&6; }
54445dc2
TT
4644{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
4645printf "%s\n" "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
4646
4647
4648
4649
4650
4651
a30e56b9 4652
54445dc2
TT
4653WITH_DIET_LIBC=
4654
4655# Check whether --with-diet-libc was given.
4656if test ${with_diet_libc+y}
4657then :
4658 withval=$with_diet_libc; CC="diet cc -nostdinc"
4659WITH_DIET_LIBC=yes
4660if test -z "$LIBS"
4661then
4662 LIBS="-lcompat"
4663else
4664 LIBS="$LIBS -lcompat"
4665fi
4666{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
4667printf "%s\n" "CC=$CC" >&6; }
4668fi
4669
4670
4671
4672 # Make sure we can run config.sub.
4673$SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
4674 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
4675
4676{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4677printf %s "checking build system type... " >&6; }
4678if test ${ac_cv_build+y}
4679then :
4680 printf %s "(cached) " >&6
4681else $as_nop
4682 ac_build_alias=$build_alias
4683test "x$ac_build_alias" = x &&
4684 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
4685test "x$ac_build_alias" = x &&
4686 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4687ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
4688 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
4689
4690fi
4691{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4692printf "%s\n" "$ac_cv_build" >&6; }
4693case $ac_cv_build in
4694*-*-*) ;;
4695*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4696esac
4697build=$ac_cv_build
4698ac_save_IFS=$IFS; IFS='-'
4699set x $ac_cv_build
4700shift
4701build_cpu=$1
4702build_vendor=$2
4703shift; shift
4704# Remember, the first character of IFS is used to create $*,
4705# except with old shells:
4706build_os=$*
4707IFS=$ac_save_IFS
4708case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4709
4710
4711{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4712printf %s "checking host system type... " >&6; }
4713if test ${ac_cv_host+y}
4714then :
4715 printf %s "(cached) " >&6
4716else $as_nop
4717 if test "x$host_alias" = x; then
4718 ac_cv_host=$ac_cv_build
b0cacab0 4719else
54445dc2
TT
4720 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
4721 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
4722fi
4723
4724fi
4725{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4726printf "%s\n" "$ac_cv_host" >&6; }
4727case $ac_cv_host in
4728*-*-*) ;;
4729*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4730esac
4731host=$ac_cv_host
4732ac_save_IFS=$IFS; IFS='-'
4733set x $ac_cv_host
4734shift
4735host_cpu=$1
4736host_vendor=$2
4737shift; shift
4738# Remember, the first character of IFS is used to create $*,
4739# except with old shells:
4740host_os=$*
4741IFS=$ac_save_IFS
4742case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4743
4744
4745DLOPEN_LIB=''
4746{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
4747printf %s "checking for dlopen in -ldl... " >&6; }
4748if test ${ac_cv_lib_dl_dlopen+y}
4749then :
4750 printf %s "(cached) " >&6
4751else $as_nop
57aa50d4
TT
4752 ac_check_lib_save_LIBS=$LIBS
4753LIBS="-ldl $LIBS"
4754cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 4755/* end confdefs.h. */
57aa50d4
TT
4756
4757/* Override any GCC internal prototype to avoid an error.
4758 Use char because int might match the return type of a GCC
4759 builtin and then its argument prototype would still apply. */
57aa50d4
TT
4760char dlopen ();
4761int
54445dc2 4762main (void)
57aa50d4
TT
4763{
4764return dlopen ();
4765 ;
4766 return 0;
4767}
b0cacab0 4768_ACEOF
54445dc2
TT
4769if ac_fn_c_try_link "$LINENO"
4770then :
57aa50d4 4771 ac_cv_lib_dl_dlopen=yes
54445dc2 4772else $as_nop
57aa50d4 4773 ac_cv_lib_dl_dlopen=no
b0cacab0 4774fi
54445dc2 4775rm -f core conftest.err conftest.$ac_objext conftest.beam \
57aa50d4
TT
4776 conftest$ac_exeext conftest.$ac_ext
4777LIBS=$ac_check_lib_save_LIBS
b0cacab0 4778fi
54445dc2
TT
4779{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
4780printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
4781if test "x$ac_cv_lib_dl_dlopen" = xyes
4782then :
57aa50d4 4783 DLOPEN_LIB=-ldl
b0cacab0
TT
4784fi
4785
b0cacab0 4786
e1052144 4787
57aa50d4 4788# Check whether --with-cc was given.
54445dc2
TT
4789if test ${with_cc+y}
4790then :
d6a4bcb5 4791 withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
57aa50d4 4792fi
b0cacab0 4793
b0cacab0 4794
57aa50d4 4795# Check whether --with-ccopts was given.
54445dc2
TT
4796if test ${with_ccopts+y}
4797then :
d6a4bcb5 4798 withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
b0cacab0 4799fi
e1052144 4800
b0cacab0 4801
57aa50d4 4802# Check whether --with-ldopts was given.
54445dc2
TT
4803if test ${with_ldopts+y}
4804then :
d6a4bcb5 4805 withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
b0cacab0
TT
4806fi
4807
4808ac_ext=c
4809ac_cpp='$CPP $CPPFLAGS'
4810ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4811ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4812ac_compiler_gnu=$ac_cv_c_compiler_gnu
57aa50d4
TT
4813if test -n "$ac_tool_prefix"; then
4814 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4815set dummy ${ac_tool_prefix}gcc; ac_word=$2
54445dc2
TT
4816{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4817printf %s "checking for $ac_word... " >&6; }
4818if test ${ac_cv_prog_CC+y}
4819then :
4820 printf %s "(cached) " >&6
4821else $as_nop
57aa50d4
TT
4822 if test -n "$CC"; then
4823 ac_cv_prog_CC="$CC" # Let the user override the test.
4824else
4825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4826for as_dir in $PATH
e1052144
TT
4827do
4828 IFS=$as_save_IFS
54445dc2
TT
4829 case $as_dir in #(((
4830 '') as_dir=./ ;;
4831 */) ;;
4832 *) as_dir=$as_dir/ ;;
4833 esac
39fd3d4f 4834 for ac_exec_ext in '' $ac_executable_extensions; do
54445dc2 4835 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
57aa50d4 4836 ac_cv_prog_CC="${ac_tool_prefix}gcc"
54445dc2 4837 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
57aa50d4
TT
4838 break 2
4839 fi
e1052144 4840done
57aa50d4 4841 done
e1052144 4842IFS=$as_save_IFS
e1052144 4843
e1052144 4844fi
57aa50d4
TT
4845fi
4846CC=$ac_cv_prog_CC
4847if test -n "$CC"; then
54445dc2
TT
4848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4849printf "%s\n" "$CC" >&6; }
57aa50d4 4850else
54445dc2
TT
4851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4852printf "%s\n" "no" >&6; }
57aa50d4 4853fi
e1052144
TT
4854
4855
57aa50d4
TT
4856fi
4857if test -z "$ac_cv_prog_CC"; then
4858 ac_ct_CC=$CC
4859 # Extract the first word of "gcc", so it can be a program name with args.
4860set dummy gcc; ac_word=$2
54445dc2
TT
4861{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4862printf %s "checking for $ac_word... " >&6; }
4863if test ${ac_cv_prog_ac_ct_CC+y}
4864then :
4865 printf %s "(cached) " >&6
4866else $as_nop
57aa50d4
TT
4867 if test -n "$ac_ct_CC"; then
4868 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4869else
4870as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4871for as_dir in $PATH
e1052144
TT
4872do
4873 IFS=$as_save_IFS
54445dc2
TT
4874 case $as_dir in #(((
4875 '') as_dir=./ ;;
4876 */) ;;
4877 *) as_dir=$as_dir/ ;;
4878 esac
39fd3d4f 4879 for ac_exec_ext in '' $ac_executable_extensions; do
54445dc2 4880 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
57aa50d4 4881 ac_cv_prog_ac_ct_CC="gcc"
54445dc2 4882 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
57aa50d4
TT
4883 break 2
4884 fi
e1052144 4885done
57aa50d4 4886 done
e1052144 4887IFS=$as_save_IFS
b0cacab0 4888
e1052144 4889fi
57aa50d4
TT
4890fi
4891ac_ct_CC=$ac_cv_prog_ac_ct_CC
4892if test -n "$ac_ct_CC"; then
54445dc2
TT
4893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4894printf "%s\n" "$ac_ct_CC" >&6; }
b0cacab0 4895else
54445dc2
TT
4896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4897printf "%s\n" "no" >&6; }
57aa50d4 4898fi
b0cacab0 4899
57aa50d4
TT
4900 if test "x$ac_ct_CC" = x; then
4901 CC=""
4902 else
4903 case $cross_compiling:$ac_tool_warned in
4904yes:)
54445dc2
TT
4905{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4906printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
57aa50d4 4907ac_tool_warned=yes ;;
e1052144 4908esac
57aa50d4
TT
4909 CC=$ac_ct_CC
4910 fi
b0cacab0 4911else
57aa50d4 4912 CC="$ac_cv_prog_CC"
b0cacab0 4913fi
e1052144 4914
57aa50d4
TT
4915if test -z "$CC"; then
4916 if test -n "$ac_tool_prefix"; then
4917 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4918set dummy ${ac_tool_prefix}cc; ac_word=$2
54445dc2
TT
4919{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4920printf %s "checking for $ac_word... " >&6; }
4921if test ${ac_cv_prog_CC+y}
4922then :
4923 printf %s "(cached) " >&6
4924else $as_nop
57aa50d4
TT
4925 if test -n "$CC"; then
4926 ac_cv_prog_CC="$CC" # Let the user override the test.
4927else
4928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4929for as_dir in $PATH
4930do
4931 IFS=$as_save_IFS
54445dc2
TT
4932 case $as_dir in #(((
4933 '') as_dir=./ ;;
4934 */) ;;
4935 *) as_dir=$as_dir/ ;;
4936 esac
57aa50d4 4937 for ac_exec_ext in '' $ac_executable_extensions; do
54445dc2 4938 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
57aa50d4 4939 ac_cv_prog_CC="${ac_tool_prefix}cc"
54445dc2 4940 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
57aa50d4
TT
4941 break 2
4942 fi
4943done
4944 done
4945IFS=$as_save_IFS
b0cacab0 4946
a64c9c13 4947fi
57aa50d4
TT
4948fi
4949CC=$ac_cv_prog_CC
4950if test -n "$CC"; then
54445dc2
TT
4951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4952printf "%s\n" "$CC" >&6; }
b0cacab0 4953else
54445dc2
TT
4954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4955printf "%s\n" "no" >&6; }
a64c9c13 4956fi
b0cacab0 4957
b0cacab0 4958
57aa50d4
TT
4959 fi
4960fi
4961if test -z "$CC"; then
4962 # Extract the first word of "cc", so it can be a program name with args.
4963set dummy cc; ac_word=$2
54445dc2
TT
4964{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4965printf %s "checking for $ac_word... " >&6; }
4966if test ${ac_cv_prog_CC+y}
4967then :
4968 printf %s "(cached) " >&6
4969else $as_nop
57aa50d4
TT
4970 if test -n "$CC"; then
4971 ac_cv_prog_CC="$CC" # Let the user override the test.
a64c9c13 4972else
57aa50d4
TT
4973 ac_prog_rejected=no
4974as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4975for as_dir in $PATH
4976do
4977 IFS=$as_save_IFS
54445dc2
TT
4978 case $as_dir in #(((
4979 '') as_dir=./ ;;
4980 */) ;;
4981 *) as_dir=$as_dir/ ;;
4982 esac
57aa50d4 4983 for ac_exec_ext in '' $ac_executable_extensions; do
54445dc2
TT
4984 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4985 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
57aa50d4
TT
4986 ac_prog_rejected=yes
4987 continue
4988 fi
4989 ac_cv_prog_CC="cc"
54445dc2 4990 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
57aa50d4
TT
4991 break 2
4992 fi
4993done
4994 done
4995IFS=$as_save_IFS
b0cacab0 4996
57aa50d4
TT
4997if test $ac_prog_rejected = yes; then
4998 # We found a bogon in the path, so make sure we never use it.
4999 set dummy $ac_cv_prog_CC
5000 shift
5001 if test $# != 0; then
5002 # We chose a different compiler from the bogus one.
5003 # However, it has the same basename, so the bogon will be chosen
5004 # first if we set CC to just the basename; use the full file name.
5005 shift
54445dc2 5006 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
57aa50d4 5007 fi
b0cacab0 5008fi
b0cacab0
TT
5009fi
5010fi
57aa50d4
TT
5011CC=$ac_cv_prog_CC
5012if test -n "$CC"; then
54445dc2
TT
5013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5014printf "%s\n" "$CC" >&6; }
57aa50d4 5015else
54445dc2
TT
5016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5017printf "%s\n" "no" >&6; }
b0cacab0 5018fi
b0cacab0 5019
b0cacab0
TT
5020
5021fi
57aa50d4
TT
5022if test -z "$CC"; then
5023 if test -n "$ac_tool_prefix"; then
5024 for ac_prog in cl.exe
5025 do
5026 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5027set dummy $ac_tool_prefix$ac_prog; ac_word=$2
54445dc2
TT
5028{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5029printf %s "checking for $ac_word... " >&6; }
5030if test ${ac_cv_prog_CC+y}
5031then :
5032 printf %s "(cached) " >&6
5033else $as_nop
57aa50d4
TT
5034 if test -n "$CC"; then
5035 ac_cv_prog_CC="$CC" # Let the user override the test.
5036else
5037as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5038for as_dir in $PATH
5039do
5040 IFS=$as_save_IFS
54445dc2
TT
5041 case $as_dir in #(((
5042 '') as_dir=./ ;;
5043 */) ;;
5044 *) as_dir=$as_dir/ ;;
5045 esac
57aa50d4 5046 for ac_exec_ext in '' $ac_executable_extensions; do
54445dc2 5047 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
57aa50d4 5048 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
54445dc2 5049 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
57aa50d4
TT
5050 break 2
5051 fi
5052done
5053 done
5054IFS=$as_save_IFS
b0cacab0 5055
57aa50d4
TT
5056fi
5057fi
5058CC=$ac_cv_prog_CC
5059if test -n "$CC"; then
54445dc2
TT
5060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5061printf "%s\n" "$CC" >&6; }
57aa50d4 5062else
54445dc2
TT
5063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5064printf "%s\n" "no" >&6; }
57aa50d4 5065fi
b0cacab0
TT
5066
5067
57aa50d4
TT
5068 test -n "$CC" && break
5069 done
5070fi
5071if test -z "$CC"; then
5072 ac_ct_CC=$CC
5073 for ac_prog in cl.exe
b0cacab0 5074do
57aa50d4
TT
5075 # Extract the first word of "$ac_prog", so it can be a program name with args.
5076set dummy $ac_prog; ac_word=$2
54445dc2
TT
5077{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5078printf %s "checking for $ac_word... " >&6; }
5079if test ${ac_cv_prog_ac_ct_CC+y}
5080then :
5081 printf %s "(cached) " >&6
5082else $as_nop
57aa50d4
TT
5083 if test -n "$ac_ct_CC"; then
5084 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
b0cacab0 5085else
57aa50d4
TT
5086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5087for as_dir in $PATH
5088do
5089 IFS=$as_save_IFS
54445dc2
TT
5090 case $as_dir in #(((
5091 '') as_dir=./ ;;
5092 */) ;;
5093 *) as_dir=$as_dir/ ;;
5094 esac
57aa50d4 5095 for ac_exec_ext in '' $ac_executable_extensions; do
54445dc2 5096 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
57aa50d4 5097 ac_cv_prog_ac_ct_CC="$ac_prog"
54445dc2 5098 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
57aa50d4
TT
5099 break 2
5100 fi
5101done
5102 done
5103IFS=$as_save_IFS
b0cacab0 5104
b0cacab0 5105fi
b0cacab0 5106fi
57aa50d4
TT
5107ac_ct_CC=$ac_cv_prog_ac_ct_CC
5108if test -n "$ac_ct_CC"; then
54445dc2
TT
5109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5110printf "%s\n" "$ac_ct_CC" >&6; }
57aa50d4 5111else
54445dc2
TT
5112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5113printf "%s\n" "no" >&6; }
b0cacab0
TT
5114fi
5115
b0cacab0 5116
57aa50d4
TT
5117 test -n "$ac_ct_CC" && break
5118done
b0cacab0 5119
57aa50d4
TT
5120 if test "x$ac_ct_CC" = x; then
5121 CC=""
5122 else
5123 case $cross_compiling:$ac_tool_warned in
5124yes:)
54445dc2
TT
5125{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5126printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
57aa50d4 5127ac_tool_warned=yes ;;
e1052144 5128esac
57aa50d4
TT
5129 CC=$ac_ct_CC
5130 fi
5131fi
b0cacab0 5132
b0cacab0 5133fi
54445dc2
TT
5134if test -z "$CC"; then
5135 if test -n "$ac_tool_prefix"; then
5136 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5137set dummy ${ac_tool_prefix}clang; ac_word=$2
5138{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5139printf %s "checking for $ac_word... " >&6; }
5140if test ${ac_cv_prog_CC+y}
5141then :
5142 printf %s "(cached) " >&6
5143else $as_nop
5144 if test -n "$CC"; then
5145 ac_cv_prog_CC="$CC" # Let the user override the test.
cdf186e4 5146else
54445dc2
TT
5147as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5148for as_dir in $PATH
57aa50d4 5149do
54445dc2
TT
5150 IFS=$as_save_IFS
5151 case $as_dir in #(((
5152 '') as_dir=./ ;;
5153 */) ;;
5154 *) as_dir=$as_dir/ ;;
5155 esac
5156 for ac_exec_ext in '' $ac_executable_extensions; do
5157 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5158 ac_cv_prog_CC="${ac_tool_prefix}clang"
5159 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5160 break 2
5161 fi
57aa50d4 5162done
54445dc2
TT
5163 done
5164IFS=$as_save_IFS
2a29f135 5165
e1052144 5166fi
14b596d4 5167fi
54445dc2
TT
5168CC=$ac_cv_prog_CC
5169if test -n "$CC"; then
5170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5171printf "%s\n" "$CC" >&6; }
14b596d4 5172else
54445dc2
TT
5173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5174printf "%s\n" "no" >&6; }
14b596d4
TT
5175fi
5176
57aa50d4 5177
14b596d4 5178fi
54445dc2
TT
5179if test -z "$ac_cv_prog_CC"; then
5180 ac_ct_CC=$CC
5181 # Extract the first word of "clang", so it can be a program name with args.
5182set dummy clang; ac_word=$2
5183{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5184printf %s "checking for $ac_word... " >&6; }
5185if test ${ac_cv_prog_ac_ct_CC+y}
5186then :
5187 printf %s "(cached) " >&6
5188else $as_nop
5189 if test -n "$ac_ct_CC"; then
5190 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5aa6c3f6 5191else
54445dc2
TT
5192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5193for as_dir in $PATH
93613951
TT
5194do
5195 IFS=$as_save_IFS
54445dc2
TT
5196 case $as_dir in #(((
5197 '') as_dir=./ ;;
5198 */) ;;
5199 *) as_dir=$as_dir/ ;;
5200 esac
93613951 5201 for ac_exec_ext in '' $ac_executable_extensions; do
54445dc2
TT
5202 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5203 ac_cv_prog_ac_ct_CC="clang"
5204 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5205 break 2
5206 fi
5207done
93613951
TT
5208 done
5209IFS=$as_save_IFS
54445dc2
TT
5210
5211fi
5212fi
5213ac_ct_CC=$ac_cv_prog_ac_ct_CC
5214if test -n "$ac_ct_CC"; then
5215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5216printf "%s\n" "$ac_ct_CC" >&6; }
5217else
5218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5219printf "%s\n" "no" >&6; }
5220fi
5221
5222 if test "x$ac_ct_CC" = x; then
5223 CC=""
5224 else
5225 case $cross_compiling:$ac_tool_warned in
5226yes:)
5227{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5228printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5229ac_tool_warned=yes ;;
5230esac
5231 CC=$ac_ct_CC
93613951 5232 fi
5aa6c3f6 5233else
54445dc2 5234 CC="$ac_cv_prog_CC"
93613951 5235fi
183c73b0
TT
5236
5237fi
5238
5239
54445dc2
TT
5240test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5241printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5242as_fn_error $? "no acceptable C compiler found in \$PATH
5243See \`config.log' for more details" "$LINENO" 5; }
5244
5245# Provide some information about the compiler.
5246printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5247set X $ac_compile
5248ac_compiler=$2
5249for ac_option in --version -v -V -qversion -version; do
5250 { { ac_try="$ac_compiler $ac_option >&5"
5251case "(($ac_try" in
5252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5253 *) ac_try_echo=$ac_try;;
5254esac
5255eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5256printf "%s\n" "$ac_try_echo"; } >&5
5257 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5258 ac_status=$?
5259 if test -s conftest.err; then
5260 sed '10a\
5261... rest of stderr output deleted ...
5262 10q' conftest.err >conftest.er1
5263 cat conftest.er1 >&5
5264 fi
5265 rm -f conftest.er1 conftest.err
5266 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5267 test $ac_status = 0; }
5268done
5269
5270{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5271printf %s "checking whether the compiler supports GNU C... " >&6; }
5272if test ${ac_cv_c_compiler_gnu+y}
5273then :
5274 printf %s "(cached) " >&6
5275else $as_nop
93613951
TT
5276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5277/* end confdefs.h. */
91d11da1 5278
93613951 5279int
54445dc2 5280main (void)
93613951 5281{
54445dc2
TT
5282#ifndef __GNUC__
5283 choke me
5284#endif
183c73b0 5285
93613951
TT
5286 ;
5287 return 0;
5288}
5289_ACEOF
54445dc2
TT
5290if ac_fn_c_try_compile "$LINENO"
5291then :
5292 ac_compiler_gnu=yes
5293else $as_nop
5294 ac_compiler_gnu=no
5aa6c3f6 5295fi
54445dc2
TT
5296rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5297ac_cv_c_compiler_gnu=$ac_compiler_gnu
93613951 5298
93613951 5299fi
54445dc2
TT
5300{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5301printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5302ac_compiler_gnu=$ac_cv_c_compiler_gnu
93613951 5303
54445dc2
TT
5304if test $ac_compiler_gnu = yes; then
5305 GCC=yes
5306else
5307 GCC=
93613951 5308fi
54445dc2
TT
5309ac_test_CFLAGS=${CFLAGS+y}
5310ac_save_CFLAGS=$CFLAGS
5311{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5312printf %s "checking whether $CC accepts -g... " >&6; }
5313if test ${ac_cv_prog_cc_g+y}
5314then :
5315 printf %s "(cached) " >&6
5316else $as_nop
5317 ac_save_c_werror_flag=$ac_c_werror_flag
5318 ac_c_werror_flag=yes
5319 ac_cv_prog_cc_g=no
5320 CFLAGS="-g"
5321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
93613951 5322/* end confdefs.h. */
93613951 5323
54445dc2
TT
5324int
5325main (void)
5326{
5327
5328 ;
5329 return 0;
5330}
93613951 5331_ACEOF
54445dc2
TT
5332if ac_fn_c_try_compile "$LINENO"
5333then :
5334 ac_cv_prog_cc_g=yes
5335else $as_nop
5336 CFLAGS=""
5337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5338/* end confdefs.h. */
93613951 5339
54445dc2
TT
5340int
5341main (void)
5342{
93613951 5343
54445dc2
TT
5344 ;
5345 return 0;
5346}
5347_ACEOF
5348if ac_fn_c_try_compile "$LINENO"
5349then :
93613951 5350
54445dc2
TT
5351else $as_nop
5352 ac_c_werror_flag=$ac_save_c_werror_flag
5353 CFLAGS="-g"
5354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
93613951 5355/* end confdefs.h. */
93613951 5356
93613951 5357int
54445dc2 5358main (void)
93613951 5359{
54445dc2
TT
5360
5361 ;
93613951
TT
5362 return 0;
5363}
5364_ACEOF
54445dc2
TT
5365if ac_fn_c_try_compile "$LINENO"
5366then :
5367 ac_cv_prog_cc_g=yes
5368fi
5369rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5370fi
5371rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5372fi
5373rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5374 ac_c_werror_flag=$ac_save_c_werror_flag
5375fi
5376{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5377printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5378if test $ac_test_CFLAGS; then
5379 CFLAGS=$ac_save_CFLAGS
5380elif test $ac_cv_prog_cc_g = yes; then
5381 if test "$GCC" = yes; then
5382 CFLAGS="-g -O2"
5383 else
5384 CFLAGS="-g"
5385 fi
93613951 5386else
54445dc2
TT
5387 if test "$GCC" = yes; then
5388 CFLAGS="-O2"
5389 else
5390 CFLAGS=
5391 fi
93613951 5392fi
54445dc2
TT
5393ac_prog_cc_stdc=no
5394if test x$ac_prog_cc_stdc = xno
5395then :
5396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5397printf %s "checking for $CC option to enable C11 features... " >&6; }
5398if test ${ac_cv_prog_cc_c11+y}
5399then :
5400 printf %s "(cached) " >&6
5401else $as_nop
5402 ac_cv_prog_cc_c11=no
5403ac_save_CC=$CC
5404cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5405/* end confdefs.h. */
5406$ac_c_conftest_c11_program
5407_ACEOF
5408for ac_arg in '' -std=gnu11
5409do
5410 CC="$ac_save_CC $ac_arg"
5411 if ac_fn_c_try_compile "$LINENO"
5412then :
5413 ac_cv_prog_cc_c11=$ac_arg
5414fi
5415rm -f core conftest.err conftest.$ac_objext conftest.beam
5416 test "x$ac_cv_prog_cc_c11" != "xno" && break
5417done
5418rm -f conftest.$ac_ext
5419CC=$ac_save_CC
5420fi
5421
5422if test "x$ac_cv_prog_cc_c11" = xno
5423then :
5424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5425printf "%s\n" "unsupported" >&6; }
5426else $as_nop
5427 if test "x$ac_cv_prog_cc_c11" = x
5428then :
5429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5430printf "%s\n" "none needed" >&6; }
5431else $as_nop
5432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5433printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5434 CC="$CC $ac_cv_prog_cc_c11"
5435fi
5436 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5437 ac_prog_cc_stdc=c11
5438fi
5439fi
5440if test x$ac_prog_cc_stdc = xno
5441then :
5442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5443printf %s "checking for $CC option to enable C99 features... " >&6; }
5444if test ${ac_cv_prog_cc_c99+y}
5445then :
5446 printf %s "(cached) " >&6
5447else $as_nop
5448 ac_cv_prog_cc_c99=no
5449ac_save_CC=$CC
5450cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5451/* end confdefs.h. */
5452$ac_c_conftest_c99_program
5453_ACEOF
5454for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5455do
5456 CC="$ac_save_CC $ac_arg"
5457 if ac_fn_c_try_compile "$LINENO"
5458then :
5459 ac_cv_prog_cc_c99=$ac_arg
5460fi
5461rm -f core conftest.err conftest.$ac_objext conftest.beam
5462 test "x$ac_cv_prog_cc_c99" != "xno" && break
5463done
5464rm -f conftest.$ac_ext
5465CC=$ac_save_CC
5466fi
5467
5468if test "x$ac_cv_prog_cc_c99" = xno
5469then :
5470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5471printf "%s\n" "unsupported" >&6; }
5472else $as_nop
5473 if test "x$ac_cv_prog_cc_c99" = x
5474then :
5475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5476printf "%s\n" "none needed" >&6; }
5477else $as_nop
5478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5479printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5480 CC="$CC $ac_cv_prog_cc_c99"
5481fi
5482 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5483 ac_prog_cc_stdc=c99
5484fi
5485fi
5486if test x$ac_prog_cc_stdc = xno
5487then :
5488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5489printf %s "checking for $CC option to enable C89 features... " >&6; }
5490if test ${ac_cv_prog_cc_c89+y}
5491then :
5492 printf %s "(cached) " >&6
5493else $as_nop
5494 ac_cv_prog_cc_c89=no
5495ac_save_CC=$CC
5496cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5497/* end confdefs.h. */
5498$ac_c_conftest_c89_program
5499_ACEOF
5500for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5501do
5502 CC="$ac_save_CC $ac_arg"
5503 if ac_fn_c_try_compile "$LINENO"
5504then :
5505 ac_cv_prog_cc_c89=$ac_arg
5506fi
5507rm -f core conftest.err conftest.$ac_objext conftest.beam
5508 test "x$ac_cv_prog_cc_c89" != "xno" && break
5509done
5510rm -f conftest.$ac_ext
5511CC=$ac_save_CC
93613951
TT
5512fi
5513
54445dc2
TT
5514if test "x$ac_cv_prog_cc_c89" = xno
5515then :
5516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5517printf "%s\n" "unsupported" >&6; }
5518else $as_nop
5519 if test "x$ac_cv_prog_cc_c89" = x
5520then :
5521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5522printf "%s\n" "none needed" >&6; }
5523else $as_nop
5524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5525printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5526 CC="$CC $ac_cv_prog_cc_c89"
5527fi
5528 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5529 ac_prog_cc_stdc=c89
93613951
TT
5530fi
5531fi
93613951 5532
54445dc2
TT
5533ac_ext=c
5534ac_cpp='$CPP $CPPFLAGS'
5535ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5536ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5537ac_compiler_gnu=$ac_cv_c_compiler_gnu
5538
5539if test "$GCC" = yes; then
5540 RDYNAMIC="-rdynamic"
5541
5542fi
5543ac_ext=c
5544ac_cpp='$CPP $CPPFLAGS'
5545ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5546ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5547ac_compiler_gnu=$ac_cv_c_compiler_gnu
5548{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5549printf %s "checking how to run the C preprocessor... " >&6; }
5550# On Suns, sometimes $CPP names a directory.
5551if test -n "$CPP" && test -d "$CPP"; then
5552 CPP=
5553fi
5554if test -z "$CPP"; then
5555 if test ${ac_cv_prog_CPP+y}
5556then :
5557 printf %s "(cached) " >&6
5558else $as_nop
5559 # Double quotes because $CC needs to be expanded
5560 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
5561 do
5562 ac_preproc_ok=false
5563for ac_c_preproc_warn_flag in '' yes
5564do
5565 # Use a header file that comes with gcc, so configuring glibc
5566 # with a fresh cross-compiler works.
5567 # On the NeXT, cc -E runs the code through the compiler's parser,
5568 # not just through cpp. "Syntax error" is here to catch this case.
5569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5570/* end confdefs.h. */
5571#include <limits.h>
5572 Syntax error
5573_ACEOF
5574if ac_fn_c_try_cpp "$LINENO"
5575then :
93613951 5576
54445dc2
TT
5577else $as_nop
5578 # Broken: fails on valid input.
5579continue
93613951 5580fi
54445dc2 5581rm -f conftest.err conftest.i conftest.$ac_ext
93613951 5582
54445dc2
TT
5583 # OK, works on sane cases. Now check whether nonexistent headers
5584 # can be detected and how.
5585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5586/* end confdefs.h. */
5587#include <ac_nonexistent.h>
93613951 5588_ACEOF
54445dc2
TT
5589if ac_fn_c_try_cpp "$LINENO"
5590then :
5591 # Broken: success on invalid input.
5592continue
5593else $as_nop
5594 # Passes both tests.
5595ac_preproc_ok=:
5596break
93613951 5597fi
54445dc2 5598rm -f conftest.err conftest.i conftest.$ac_ext
93613951
TT
5599
5600done
54445dc2
TT
5601# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5602rm -f conftest.i conftest.err conftest.$ac_ext
5603if $ac_preproc_ok
5604then :
5605 break
93613951
TT
5606fi
5607
54445dc2
TT
5608 done
5609 ac_cv_prog_CPP=$CPP
93613951 5610
54445dc2
TT
5611fi
5612 CPP=$ac_cv_prog_CPP
93613951 5613else
54445dc2
TT
5614 ac_cv_prog_CPP=$CPP
5615fi
5616{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5617printf "%s\n" "$CPP" >&6; }
5618ac_preproc_ok=false
5619for ac_c_preproc_warn_flag in '' yes
5620do
5621 # Use a header file that comes with gcc, so configuring glibc
5622 # with a fresh cross-compiler works.
5623 # On the NeXT, cc -E runs the code through the compiler's parser,
5624 # not just through cpp. "Syntax error" is here to catch this case.
93613951
TT
5625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5626/* end confdefs.h. */
54445dc2
TT
5627#include <limits.h>
5628 Syntax error
5629_ACEOF
5630if ac_fn_c_try_cpp "$LINENO"
5631then :
93613951 5632
54445dc2
TT
5633else $as_nop
5634 # Broken: fails on valid input.
5635continue
5636fi
5637rm -f conftest.err conftest.i conftest.$ac_ext
93613951 5638
54445dc2
TT
5639 # OK, works on sane cases. Now check whether nonexistent headers
5640 # can be detected and how.
5641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5642/* end confdefs.h. */
5643#include <ac_nonexistent.h>
93613951 5644_ACEOF
54445dc2
TT
5645if ac_fn_c_try_cpp "$LINENO"
5646then :
5647 # Broken: success on invalid input.
5648continue
5649else $as_nop
5650 # Passes both tests.
5651ac_preproc_ok=:
5652break
93613951 5653fi
54445dc2 5654rm -f conftest.err conftest.i conftest.$ac_ext
93613951 5655
54445dc2
TT
5656done
5657# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5658rm -f conftest.i conftest.err conftest.$ac_ext
5659if $ac_preproc_ok
5660then :
93613951 5661
54445dc2
TT
5662else $as_nop
5663 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5664printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5665as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5666See \`config.log' for more details" "$LINENO" 5; }
5667fi
93613951 5668
54445dc2
TT
5669ac_ext=c
5670ac_cpp='$CPP $CPPFLAGS'
5671ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5672ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5673ac_compiler_gnu=$ac_cv_c_compiler_gnu
93613951 5674
54445dc2
TT
5675{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
5676printf %s "checking for additional special compiler flags... " >&6; }
5677if test "$GCC" = yes
5678then
5679 case "$host_cpu" in
5680 alpha) addcflags="-mieee" ;;
5681 esac
5682fi
5683if test "x$addcflags" != x
5684then
5685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
5686printf "%s\n" "$addcflags" >&6; }
5687 CFLAGS="$addcflags $CFLAGS"
5688else
5689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
5690printf "%s\n" "(none)" >&6; }
5691fi
93613951
TT
5692LIB_EXT=.a
5693STATIC_LIB_EXT=.a
5694PROFILED_LIB_EXT=.a
5695
5696# Check whether --with-root-prefix was given.
54445dc2
TT
5697if test ${with_root_prefix+y}
5698then :
93613951 5699 withval=$with_root_prefix; root_prefix=$withval
54445dc2 5700else $as_nop
93613951
TT
5701 root_prefix=NONE
5702fi
5703# Check whether --enable-maintainer-mode was given.
54445dc2
TT
5704if test ${enable_maintainer_mode+y}
5705then :
93613951
TT
5706 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
5707then
5708 MAINTAINER_CMT=#
54445dc2
TT
5709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
5710printf "%s\n" "Disabling maintainer mode" >&6; }
93613951
TT
5711else
5712 MAINTAINER_CMT=
54445dc2
TT
5713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
5714printf "%s\n" "Enabling maintainer mode" >&6; }
93613951
TT
5715fi
5716
54445dc2 5717else $as_nop
93613951 5718 MAINTAINER_CMT=#
54445dc2
TT
5719{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
5720printf "%s\n" "Disabling maintainer mode by default" >&6; }
93613951
TT
5721
5722fi
5723
5724
5725# Check whether --enable-symlink-install was given.
54445dc2
TT
5726if test ${enable_symlink_install+y}
5727then :
93613951
TT
5728 enableval=$enable_symlink_install; if test "$enableval" = "no"
5729then
5730 LINK_INSTALL_FLAGS=-f
54445dc2
TT
5731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
5732printf "%s\n" "Disabling symlinks for install" >&6; }
93613951
TT
5733else
5734 LINK_INSTALL_FLAGS=-sf
54445dc2
TT
5735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
5736printf "%s\n" "Enabling symlinks for install" >&6; }
93613951
TT
5737fi
5738
54445dc2 5739else $as_nop
93613951 5740 LINK_INSTALL_FLAGS=-f
54445dc2
TT
5741{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
5742printf "%s\n" "Disabling symlinks for install by default" >&6; }
93613951
TT
5743
5744fi
5745
5746
5747relative_symlink_defined=
5748# Check whether --enable-relative-symlinks was given.
54445dc2
TT
5749if test ${enable_relative_symlinks+y}
5750then :
93613951
TT
5751 enableval=$enable_relative_symlinks; if test "$enableval" = "no"
5752then
5753 SYMLINK_RELATIVE=
5754 relative_symlink_defined=yes
54445dc2
TT
5755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
5756printf "%s\n" "Disabling relative symlinks for install" >&6; }
93613951
TT
5757else
5758 SYMLINK_RELATIVE=--relative
5759 relative_symlink_defined=yes
54445dc2
TT
5760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
5761printf "%s\n" "Enabling relative symlinks for install" >&6; }
93613951
TT
5762fi
5763fi
5764
5765# Check whether --enable-symlink-relative-symlinks was given.
54445dc2
TT
5766if test ${enable_symlink_relative_symlinks+y}
5767then :
93613951
TT
5768 enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
5769then
5770 SYMLINK_RELATIVE=yes
54445dc2
TT
5771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
5772printf "%s\n" "Disabling relative symlinks for install" >&6; }
93613951
TT
5773else
5774 SYMLINK_RELATIVE=--relative
54445dc2
TT
5775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
5776printf "%s\n" "Enabling relative symlinks for install" >&6; }
93613951
TT
5777fi
5778
54445dc2 5779else $as_nop
93613951
TT
5780 if test -z "$relative_symlink_defined"
5781then
5782 SYMLINK_RELATIVE=
54445dc2
TT
5783{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
5784printf "%s\n" "Disabling relative symlinks for install by default" >&6; }
93613951
TT
5785fi
5786
5787fi
5788
5789
5790# Check whether --enable-symlink-build was given.
54445dc2
TT
5791if test ${enable_symlink_build+y}
5792then :
5aa6c3f6
TT
5793 enableval=$enable_symlink_build; if test "$enableval" = "no"
5794then
5795 LINK_BUILD_FLAGS=
54445dc2
TT
5796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
5797printf "%s\n" "Disabling symlinks for build" >&6; }
5aa6c3f6
TT
5798else
5799 LINK_BUILD_FLAGS=-s
54445dc2
TT
5800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
5801printf "%s\n" "Enabling symlinks for build" >&6; }
5aa6c3f6
TT
5802fi
5803
54445dc2 5804else $as_nop
5aa6c3f6 5805 LINK_BUILD_FLAGS=
54445dc2
TT
5806{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
5807printf "%s\n" "Disabling symlinks for build by default" >&6; }
5aa6c3f6
TT
5808
5809fi
5810
5811
57aa50d4 5812# Check whether --enable-verbose-makecmds was given.
54445dc2
TT
5813if test ${enable_verbose_makecmds+y}
5814then :
57aa50d4
TT
5815 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
5816then
54445dc2
TT
5817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
5818printf "%s\n" "Disabling verbose make commands" >&6; }
57aa50d4 5819 E=@echo
c1986ecb 5820 ES=echo
57aa50d4 5821 Q=@
14b596d4 5822else
54445dc2
TT
5823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
5824printf "%s\n" "Enabling verbose make commands" >&6; }
57aa50d4 5825 E=@\\#
c1986ecb 5826 ES=\\#
57aa50d4
TT
5827 Q=
5828fi
14b596d4 5829
54445dc2
TT
5830else $as_nop
5831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
5832printf "%s\n" "Disabling verbose make commands" >&6; }
57aa50d4 5833E=@echo
c1986ecb 5834ES=echo
57aa50d4 5835Q=@
14b596d4 5836
14b596d4
TT
5837fi
5838
14b596d4 5839
57aa50d4 5840
c1986ecb 5841
57aa50d4
TT
5842E2_PKG_CONFIG_STATIC=--static
5843LDFLAG_DYNAMIC=
5844PRIVATE_LIBS_CMT=
5845# Check whether --enable-elf-shlibs was given.
54445dc2
TT
5846if test ${enable_elf_shlibs+y}
5847then :
57aa50d4 5848 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
cdf186e4 5849then
57aa50d4
TT
5850 ELF_CMT=#
5851 MAKEFILE_ELF=/dev/null
54445dc2
TT
5852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
5853printf "%s\n" "Disabling ELF shared libraries" >&6; }
cdf186e4 5854else
57aa50d4
TT
5855 E2_PKG_CONFIG_STATIC=
5856 ELF_CMT=
5857 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
5858 case "$host_os" in
5859 solaris2.*)
5860 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
5861 ;;
5862 esac
5863 BINARY_TYPE=elfbin
5864 LIB_EXT=.so
5865 PRIVATE_LIBS_CMT=#
5866 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
54445dc2
TT
5867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
5868printf "%s\n" "Enabling ELF shared libraries" >&6; }
cdf186e4
TT
5869fi
5870
54445dc2 5871else $as_nop
57aa50d4
TT
5872 MAKEFILE_ELF=/dev/null
5873ELF_CMT=#
54445dc2
TT
5874{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
5875printf "%s\n" "Disabling ELF shared libraries by default" >&6; }
cdf186e4 5876
e1052144
TT
5877fi
5878
cdf186e4 5879
57aa50d4
TT
5880
5881# Check whether --enable-bsd-shlibs was given.
54445dc2
TT
5882if test ${enable_bsd_shlibs+y}
5883then :
57aa50d4 5884 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
cdf186e4 5885then
57aa50d4
TT
5886 BSDLIB_CMT=#
5887 MAKEFILE_BSDLIB=/dev/null
54445dc2
TT
5888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
5889printf "%s\n" "Disabling BSD shared libraries" >&6; }
cdf186e4 5890else
57aa50d4
TT
5891 E2_PKG_CONFIG_STATIC=
5892 BSDLIB_CMT=
5893 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
5894 LIB_EXT=.so
5895 case "$host_os" in
5896 darwin*)
5897 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
5898 LIB_EXT=.dylib
5899 ;;
5900 esac
54445dc2
TT
5901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
5902printf "%s\n" "Enabling BSD shared libraries" >&6; }
cdf186e4
TT
5903fi
5904
54445dc2 5905else $as_nop
57aa50d4
TT
5906 MAKEFILE_BSDLIB=/dev/null
5907BSDLIB_CMT=#
54445dc2
TT
5908{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
5909printf "%s\n" "Disabling BSD shared libraries by default" >&6; }
cdf186e4 5910
e1052144
TT
5911fi
5912
cdf186e4 5913
57aa50d4
TT
5914
5915# Check whether --enable-profile was given.
54445dc2
TT
5916if test ${enable_profile+y}
5917then :
57aa50d4 5918 enableval=$enable_profile; if test "$enableval" = "no"
cdf186e4 5919then
57aa50d4
TT
5920 PROFILE_CMT=#
5921 MAKEFILE_PROFILE=/dev/null
54445dc2
TT
5922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
5923printf "%s\n" "Disabling profiling libraries" >&6; }
cdf186e4 5924else
57aa50d4
TT
5925 PROFILE_CMT=
5926 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
5927 PROFILED_LIB_EXT=_p.a
54445dc2
TT
5928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
5929printf "%s\n" "Building profiling libraries" >&6; }
cdf186e4
TT
5930fi
5931
54445dc2 5932else $as_nop
57aa50d4
TT
5933 PROFILE_CMT=#
5934MAKEFILE_PROFILE=/dev/null
54445dc2
TT
5935{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
5936printf "%s\n" "Disabling profiling libraries by default" >&6; }
cdf186e4 5937
e1052144
TT
5938fi
5939
cdf186e4 5940
57aa50d4 5941
fedfb27f 5942# Check whether --enable-gcov was given.
54445dc2
TT
5943if test ${enable_gcov+y}
5944then :
fedfb27f
TT
5945 enableval=$enable_gcov; if test "$enableval" = "yes"
5946then
5947 CFLAGS="-g -fprofile-arcs -ftest-coverage"
5948 LDFLAGS="-fprofile-arcs -ftest-coverage"
54445dc2
TT
5949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5
5950printf "%s\n" "Enabling gcov support" >&6; }
fedfb27f
TT
5951fi
5952
5953fi
5954
fd1677e8
TT
5955CFLAGS_SHLIB="${CFLAGS_SHLIB:-$CFLAGS}"
5956CFLAGS_STLIB="${CFLAGS_STLIB:-$CFLAGS}"
5957LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
5958LDFLAGS_STATIC=${LDFLAGS_STATIC:-$LDFLAGS}
5959# Check whether --enable-hardening was given.
54445dc2
TT
5960if test ${enable_hardening+y}
5961then :
fd1677e8
TT
5962 enableval=$enable_hardening; if test "$enableval" = "yes"
5963then
5964 HARDEN_CFLAGS="-D_FORTIFY_SOURCE=2 -fstack-protector-strong"
5965 HARDEN_LDFLAGS="-Wl,-z,relro -Wl,-z,now"
5966 CFLAGS="$CFLAGS $HARDEN_CFLAGS -fPIE"
5967 CFLAGS_SHLIB="$CFLAGS_SHLIB $HARDEN_CFLAGS"
5968 CFLAGS_STLIB="$CFLAGS_STLIB $HARDEN_CFLAGS -fPIE"
5969 LDFLAGS="$LDFLAGS $HARDEN_LDFLAGS -fPIE -pie"
5970 LDFLAGS_STATIC="$LDFLAGS_STATIC $HARDEN_LDFLAGS"
5971 LDFLAGS_SHLIB="$LDFLAGS_SHLIB $HARDEN_LDFLAGS"
54445dc2
TT
5972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling hardening support" >&5
5973printf "%s\n" "Enabling hardening support" >&6; }
fd1677e8
TT
5974fi
5975
5976fi
cdf186e4 5977
57aa50d4
TT
5978
5979
5980
5981
5982
5983# Check whether --enable-jbd-debug was given.
54445dc2
TT
5984if test ${enable_jbd_debug+y}
5985then :
57aa50d4 5986 enableval=$enable_jbd_debug; if test "$enableval" = "no"
5d40773b 5987then
54445dc2
TT
5988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
5989printf "%s\n" "Disabling journal debugging" >&6; }
5d40773b 5990else
d1154eb4 5991
54445dc2 5992printf "%s\n" "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
57aa50d4 5993
54445dc2
TT
5994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
5995printf "%s\n" "Enabling journal debugging" >&6; }
5d40773b
TT
5996fi
5997
54445dc2
TT
5998else $as_nop
5999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
6000printf "%s\n" "Disabling journal debugging by default" >&6; }
5d40773b 6001
e1052144
TT
6002fi
6003
57aa50d4 6004# Check whether --enable-blkid-debug was given.
54445dc2
TT
6005if test ${enable_blkid_debug+y}
6006then :
57aa50d4 6007 enableval=$enable_blkid_debug; if test "$enableval" = "no"
3249394d 6008then
54445dc2
TT
6009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
6010printf "%s\n" "Disabling blkid debugging" >&6; }
3249394d 6011else
d1154eb4 6012
54445dc2 6013printf "%s\n" "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
57aa50d4 6014
54445dc2
TT
6015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
6016printf "%s\n" "Enabling blkid debugging" >&6; }
3249394d
TT
6017fi
6018
54445dc2
TT
6019else $as_nop
6020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
6021printf "%s\n" "Disabling blkid debugging by default" >&6; }
3249394d
TT
6022
6023fi
6024
57aa50d4 6025# Check whether --enable-testio-debug was given.
54445dc2
TT
6026if test ${enable_testio_debug+y}
6027then :
d1154eb4
TT
6028 enableval=$enable_testio_debug;
6029if test "$enableval" = "no"
3249394d 6030then
54445dc2
TT
6031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
6032printf "%s\n" "Disabling testio debugging" >&6; }
57aa50d4 6033 TEST_IO_CMT="#"
3249394d 6034else
57aa50d4 6035 TEST_IO_CMT=
54445dc2 6036 printf "%s\n" "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
3249394d 6037
54445dc2
TT
6038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
6039printf "%s\n" "Enabling testio debugging" >&6; }
57aa50d4 6040fi
3249394d 6041
54445dc2
TT
6042else $as_nop
6043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
6044printf "%s\n" "Enabling testio debugging by default" >&6; }
6045printf "%s\n" "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
3249394d 6046
57aa50d4 6047TEST_IO_CMT=
3249394d
TT
6048
6049fi
6050
3249394d 6051
b9e66a18 6052# Check whether --enable-developer-features was given.
54445dc2
TT
6053if test ${enable_developer_features+y}
6054then :
b9e66a18
TT
6055 enableval=$enable_developer_features;
6056if test "$enableval" = "yes"
6057then
6058 DEV_FEATURES_CMT=
54445dc2 6059 printf "%s\n" "#define CONFIG_DEVELOPER_FEATURES 1" >>confdefs.h
b9e66a18 6060
54445dc2
TT
6061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling ext4 developer features" >&5
6062printf "%s\n" "Enabling ext4 developer features" >&6; }
b9e66a18 6063else
54445dc2
TT
6064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling ext4 developer features" >&5
6065printf "%s\n" "Disabling ext4 developer features" >&6; }
b9e66a18
TT
6066 DEV_FEATURES_CMT="#"
6067fi
6068
54445dc2
TT
6069else $as_nop
6070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling ext4 developer features by default" >&5
6071printf "%s\n" "Disabling ext4 developer features by default" >&6; }
b9e66a18
TT
6072DEV_FEATURES_CMT=
6073
6074fi
6075
6076
57aa50d4
TT
6077
6078
93613951
TT
6079
6080
6081
6082
6083
57aa50d4 6084if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
93613951 6085 if test -n "$ac_tool_prefix"; then
57aa50d4
TT
6086 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6087set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
54445dc2
TT
6088{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6089printf %s "checking for $ac_word... " >&6; }
6090if test ${ac_cv_path_PKG_CONFIG+y}
6091then :
6092 printf %s "(cached) " >&6
6093else $as_nop
57aa50d4
TT
6094 case $PKG_CONFIG in
6095 [\\/]* | ?:[\\/]*)
6096 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6097 ;;
6098 *)
6099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6100for as_dir in $PATH
6101do
6102 IFS=$as_save_IFS
54445dc2
TT
6103 case $as_dir in #(((
6104 '') as_dir=./ ;;
6105 */) ;;
6106 *) as_dir=$as_dir/ ;;
6107 esac
57aa50d4 6108 for ac_exec_ext in '' $ac_executable_extensions; do
54445dc2
TT
6109 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6110 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
6111 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
57aa50d4
TT
6112 break 2
6113 fi
6114done
6115 done
6116IFS=$as_save_IFS
6117
6118 ;;
6119esac
6120fi
6121PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6122if test -n "$PKG_CONFIG"; then
54445dc2
TT
6123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6124printf "%s\n" "$PKG_CONFIG" >&6; }
57aa50d4 6125else
54445dc2
TT
6126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6127printf "%s\n" "no" >&6; }
3249394d
TT
6128fi
6129
6130
57aa50d4
TT
6131fi
6132if test -z "$ac_cv_path_PKG_CONFIG"; then
6133 ac_pt_PKG_CONFIG=$PKG_CONFIG
6134 # Extract the first word of "pkg-config", so it can be a program name with args.
6135set dummy pkg-config; ac_word=$2
54445dc2
TT
6136{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6137printf %s "checking for $ac_word... " >&6; }
6138if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
6139then :
6140 printf %s "(cached) " >&6
6141else $as_nop
57aa50d4
TT
6142 case $ac_pt_PKG_CONFIG in
6143 [\\/]* | ?:[\\/]*)
6144 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6145 ;;
6146 *)
6147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6148for as_dir in $PATH
6149do
6150 IFS=$as_save_IFS
54445dc2
TT
6151 case $as_dir in #(((
6152 '') as_dir=./ ;;
6153 */) ;;
6154 *) as_dir=$as_dir/ ;;
6155 esac
57aa50d4 6156 for ac_exec_ext in '' $ac_executable_extensions; do
54445dc2
TT
6157 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6158 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
6159 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
57aa50d4
TT
6160 break 2
6161 fi
6162done
6163 done
6164IFS=$as_save_IFS
3249394d 6165
57aa50d4
TT
6166 ;;
6167esac
6168fi
6169ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6170if test -n "$ac_pt_PKG_CONFIG"; then
54445dc2
TT
6171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6172printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
57aa50d4 6173else
54445dc2
TT
6174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6175printf "%s\n" "no" >&6; }
57aa50d4 6176fi
3249394d 6177
57aa50d4
TT
6178 if test "x$ac_pt_PKG_CONFIG" = x; then
6179 PKG_CONFIG=""
6180 else
6181 case $cross_compiling:$ac_tool_warned in
6182yes:)
54445dc2
TT
6183{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6184printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
57aa50d4
TT
6185ac_tool_warned=yes ;;
6186esac
6187 PKG_CONFIG=$ac_pt_PKG_CONFIG
3249394d 6188 fi
57aa50d4
TT
6189else
6190 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6191fi
3249394d
TT
6192
6193fi
57aa50d4 6194if test -n "$PKG_CONFIG"; then
93613951 6195 _pkg_min_version=0.9.0
54445dc2
TT
6196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6197printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
93613951 6198 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
54445dc2
TT
6199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6200printf "%s\n" "yes" >&6; }
93613951 6201 else
54445dc2
TT
6202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6203printf "%s\n" "no" >&6; }
93613951
TT
6204 PKG_CONFIG=""
6205 fi
57aa50d4
TT
6206fi
6207LIBUUID=
6208DEPLIBUUID=
6209STATIC_LIBUUID=
6210DEPSTATIC_LIBUUID=
6211PROFILED_LIBUUID=
6212DEPPROFILED_LIBUUID=
6213UUID_CMT=
6214# Check whether --enable-libuuid was given.
54445dc2
TT
6215if test ${enable_libuuid+y}
6216then :
57aa50d4 6217 enableval=$enable_libuuid; if test "$enableval" = "no"
5610f992 6218then
57aa50d4 6219 if test -z "$PKG_CONFIG"; then
d6a4bcb5 6220 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
57aa50d4
TT
6221 fi
6222
54445dc2
TT
6223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
6224printf %s "checking for uuid_generate in -luuid... " >&6; }
6225if test ${ac_cv_lib_uuid_uuid_generate+y}
6226then :
6227 printf %s "(cached) " >&6
6228else $as_nop
57aa50d4 6229 ac_check_lib_save_LIBS=$LIBS
2d7583bd 6230LIBS="-luuid $LIBS"
57aa50d4
TT
6231cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6232/* end confdefs.h. */
5610f992 6233
57aa50d4
TT
6234/* Override any GCC internal prototype to avoid an error.
6235 Use char because int might match the return type of a GCC
6236 builtin and then its argument prototype would still apply. */
57aa50d4
TT
6237char uuid_generate ();
6238int
54445dc2 6239main (void)
57aa50d4
TT
6240{
6241return uuid_generate ();
6242 ;
6243 return 0;
6244}
6245_ACEOF
54445dc2
TT
6246if ac_fn_c_try_link "$LINENO"
6247then :
57aa50d4 6248 ac_cv_lib_uuid_uuid_generate=yes
54445dc2 6249else $as_nop
57aa50d4
TT
6250 ac_cv_lib_uuid_uuid_generate=no
6251fi
54445dc2 6252rm -f core conftest.err conftest.$ac_objext conftest.beam \
57aa50d4
TT
6253 conftest$ac_exeext conftest.$ac_ext
6254LIBS=$ac_check_lib_save_LIBS
6255fi
54445dc2
TT
6256{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
6257printf "%s\n" "$ac_cv_lib_uuid_uuid_generate" >&6; }
6258if test "x$ac_cv_lib_uuid_uuid_generate" = xyes
6259then :
57aa50d4
TT
6260 LIBUUID=`$PKG_CONFIG --libs uuid`;
6261 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
54445dc2 6262else $as_nop
d6a4bcb5 6263 as_fn_error $? "external uuid library not found" "$LINENO" 5
5610f992
TT
6264fi
6265
5afdf37b 6266 PROFILED_LIBUUID=$LIBUUID
57aa50d4 6267 UUID_CMT=#
54445dc2
TT
6268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
6269printf "%s\n" "Disabling private uuid library" >&6; }
5610f992 6270else
57aa50d4
TT
6271 LIBUUID='$(LIB)/libuuid'$LIB_EXT
6272 DEPLIBUUID=$LIBUUID
6273 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
6274 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
6275 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
6276 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
54445dc2
TT
6277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
6278printf "%s\n" "Enabling private uuid library" >&6; }
57aa50d4 6279fi
5610f992 6280
54445dc2 6281else $as_nop
f5dffb81 6282 if test -n "$PKG_CONFIG"; then
54445dc2
TT
6283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
6284printf %s "checking for uuid_generate in -luuid... " >&6; }
6285if test ${ac_cv_lib_uuid_uuid_generate+y}
6286then :
6287 printf %s "(cached) " >&6
6288else $as_nop
f5dffb81
TT
6289 ac_check_lib_save_LIBS=$LIBS
6290LIBS="-luuid $LIBS"
6291cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6292/* end confdefs.h. */
6293
6294/* Override any GCC internal prototype to avoid an error.
6295 Use char because int might match the return type of a GCC
6296 builtin and then its argument prototype would still apply. */
f5dffb81
TT
6297char uuid_generate ();
6298int
54445dc2 6299main (void)
f5dffb81
TT
6300{
6301return uuid_generate ();
6302 ;
6303 return 0;
6304}
6305_ACEOF
54445dc2
TT
6306if ac_fn_c_try_link "$LINENO"
6307then :
f5dffb81 6308 ac_cv_lib_uuid_uuid_generate=yes
54445dc2 6309else $as_nop
f5dffb81
TT
6310 ac_cv_lib_uuid_uuid_generate=no
6311fi
54445dc2 6312rm -f core conftest.err conftest.$ac_objext conftest.beam \
f5dffb81
TT
6313 conftest$ac_exeext conftest.$ac_ext
6314LIBS=$ac_check_lib_save_LIBS
6315fi
54445dc2
TT
6316{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
6317printf "%s\n" "$ac_cv_lib_uuid_uuid_generate" >&6; }
6318if test "x$ac_cv_lib_uuid_uuid_generate" = xyes
6319then :
f5dffb81
TT
6320 LIBUUID=`$PKG_CONFIG --libs uuid`;
6321 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
6322fi
6323
6324fi
6325if test -n "$LIBUUID"; then
6326 PROFILED_LIBUUID=$LIBUUID
6327 UUID_CMT=#
54445dc2
TT
6328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using system uuid by default" >&5
6329printf "%s\n" "Using system uuid by default" >&6; }
f5dffb81
TT
6330else
6331 LIBUUID='$(LIB)/libuuid'$LIB_EXT
6332 DEPLIBUUID=$LIBUUID
6333 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
6334 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
6335 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
6336 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
54445dc2
TT
6337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
6338printf "%s\n" "Enabling private uuid library by default" >&6; }
f5dffb81 6339fi
5610f992
TT
6340
6341fi
6342
6343
cdf186e4 6344
a64c9c13 6345
93636bde
TT
6346
6347
93636bde 6348
93636bde
TT
6349
6350
57aa50d4 6351
93613951
TT
6352
6353
6354
6355
6356
57aa50d4 6357if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
93613951 6358 if test -n "$ac_tool_prefix"; then
57aa50d4
TT
6359 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6360set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
54445dc2
TT
6361{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6362printf %s "checking for $ac_word... " >&6; }
6363if test ${ac_cv_path_PKG_CONFIG+y}
6364then :
6365 printf %s "(cached) " >&6
6366else $as_nop
57aa50d4
TT
6367 case $PKG_CONFIG in
6368 [\\/]* | ?:[\\/]*)
6369 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6370 ;;
e1052144 6371 *)
b0cacab0
TT
6372 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6373for as_dir in $PATH
6374do
6375 IFS=$as_save_IFS
54445dc2
TT
6376 case $as_dir in #(((
6377 '') as_dir=./ ;;
6378 */) ;;
6379 *) as_dir=$as_dir/ ;;
6380 esac
57aa50d4 6381 for ac_exec_ext in '' $ac_executable_extensions; do
54445dc2
TT
6382 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6383 ac_cv_path_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
6384 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
57aa50d4
TT
6385 break 2
6386 fi
b0cacab0 6387done
57aa50d4 6388 done
e1052144 6389IFS=$as_save_IFS
b0cacab0 6390
57aa50d4 6391 ;;
b0cacab0
TT
6392esac
6393fi
57aa50d4
TT
6394PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6395if test -n "$PKG_CONFIG"; then
54445dc2
TT
6396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6397printf "%s\n" "$PKG_CONFIG" >&6; }
07a0db15 6398else
54445dc2
TT
6399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6400printf "%s\n" "no" >&6; }
07a0db15 6401fi
07a0db15 6402
57aa50d4
TT
6403
6404fi
6405if test -z "$ac_cv_path_PKG_CONFIG"; then
6406 ac_pt_PKG_CONFIG=$PKG_CONFIG
6407 # Extract the first word of "pkg-config", so it can be a program name with args.
6408set dummy pkg-config; ac_word=$2
54445dc2
TT
6409{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6410printf %s "checking for $ac_word... " >&6; }
6411if test ${ac_cv_path_ac_pt_PKG_CONFIG+y}
6412then :
6413 printf %s "(cached) " >&6
6414else $as_nop
57aa50d4 6415 case $ac_pt_PKG_CONFIG in
b0cacab0 6416 [\\/]* | ?:[\\/]*)
57aa50d4 6417 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
b0cacab0
TT
6418 ;;
6419 *)
6420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6421for as_dir in $PATH
6422do
6423 IFS=$as_save_IFS
54445dc2
TT
6424 case $as_dir in #(((
6425 '') as_dir=./ ;;
6426 */) ;;
6427 *) as_dir=$as_dir/ ;;
6428 esac
57aa50d4 6429 for ac_exec_ext in '' $ac_executable_extensions; do
54445dc2
TT
6430 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6431 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir$ac_word$ac_exec_ext"
6432 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
b0cacab0
TT
6433 break 2
6434 fi
6435done
57aa50d4 6436 done
e1052144 6437IFS=$as_save_IFS
a64c9c13 6438
b0cacab0
TT
6439 ;;
6440esac
a64c9c13 6441fi
57aa50d4
TT
6442ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6443if test -n "$ac_pt_PKG_CONFIG"; then
54445dc2
TT
6444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6445printf "%s\n" "$ac_pt_PKG_CONFIG" >&6; }
a64c9c13 6446else
54445dc2
TT
6447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6448printf "%s\n" "no" >&6; }
a64c9c13 6449fi
a64c9c13 6450
57aa50d4
TT
6451 if test "x$ac_pt_PKG_CONFIG" = x; then
6452 PKG_CONFIG=""
b0cacab0 6453 else
57aa50d4
TT
6454 case $cross_compiling:$ac_tool_warned in
6455yes:)
54445dc2
TT
6456{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6457printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
57aa50d4
TT
6458ac_tool_warned=yes ;;
6459esac
6460 PKG_CONFIG=$ac_pt_PKG_CONFIG
b0cacab0 6461 fi
57aa50d4
TT
6462else
6463 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
a64c9c13 6464fi
93636bde 6465
a64c9c13 6466fi
57aa50d4 6467if test -n "$PKG_CONFIG"; then
93613951 6468 _pkg_min_version=0.9.0
54445dc2
TT
6469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6470printf %s "checking pkg-config is at least version $_pkg_min_version... " >&6; }
93613951 6471 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
54445dc2
TT
6472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6473printf "%s\n" "yes" >&6; }
93613951 6474 else
54445dc2
TT
6475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6476printf "%s\n" "no" >&6; }
93613951
TT
6477 PKG_CONFIG=""
6478 fi
57aa50d4
TT
6479fi
6480LIBBLKID=
6481DEPLIBBLKID=
6482STATIC_LIBBLKID=
6483DEPSTATIC_LIBBLKID=
6484PROFILED_LIBBLKID=
6485DEPPROFILED_LIBBLKID=
6486BLKID_CMT=
d1154eb4 6487
57aa50d4 6488# Check whether --enable-libblkid was given.
54445dc2
TT
6489if test ${enable_libblkid+y}
6490then :
57aa50d4
TT
6491 enableval=$enable_libblkid; if test "$enableval" = "no"
6492then
6493 if test -z "$PKG_CONFIG"; then
d6a4bcb5 6494 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
57aa50d4
TT
6495 fi
6496
54445dc2
TT
6497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
6498printf %s "checking for blkid_get_cache in -lblkid... " >&6; }
6499if test ${ac_cv_lib_blkid_blkid_get_cache+y}
6500then :
6501 printf %s "(cached) " >&6
6502else $as_nop
57aa50d4 6503 ac_check_lib_save_LIBS=$LIBS
2d7583bd 6504LIBS="-lblkid -luuid $LIBS"
57aa50d4
TT
6505cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6506/* end confdefs.h. */
6507
6508/* Override any GCC internal prototype to avoid an error.
6509 Use char because int might match the return type of a GCC
6510 builtin and then its argument prototype would still apply. */
57aa50d4
TT
6511char blkid_get_cache ();
6512int
54445dc2 6513main (void)
57aa50d4
TT
6514{
6515return blkid_get_cache ();
6516 ;
6517 return 0;
6518}
6519_ACEOF
54445dc2
TT
6520if ac_fn_c_try_link "$LINENO"
6521then :
57aa50d4 6522 ac_cv_lib_blkid_blkid_get_cache=yes
54445dc2 6523else $as_nop
57aa50d4 6524 ac_cv_lib_blkid_blkid_get_cache=no
a64c9c13 6525fi
54445dc2 6526rm -f core conftest.err conftest.$ac_objext conftest.beam \
57aa50d4
TT
6527 conftest$ac_exeext conftest.$ac_ext
6528LIBS=$ac_check_lib_save_LIBS
a64c9c13 6529fi
54445dc2
TT
6530{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
6531printf "%s\n" "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
6532if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes
6533then :
57aa50d4
TT
6534 LIBBLKID=`$PKG_CONFIG --libs blkid`;
6535 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
54445dc2 6536else $as_nop
d6a4bcb5 6537 as_fn_error $? "external blkid library not found" "$LINENO" 5
a64c9c13 6538fi
93636bde 6539
57aa50d4 6540 BLKID_CMT=#
5afdf37b 6541 PROFILED_LIBBLKID=$LIBBLKID
54445dc2
TT
6542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
6543printf "%s\n" "Disabling private blkid library" >&6; }
07a0db15 6544else
57aa50d4
TT
6545 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
6546 DEPLIBBLKID=$LIBBLKID
6547 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
6548 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
6549 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
6550 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
54445dc2 6551 printf "%s\n" "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
57aa50d4 6552
54445dc2
TT
6553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
6554printf "%s\n" "Enabling private blkid library" >&6; }
b0cacab0 6555fi
57aa50d4 6556
54445dc2 6557else $as_nop
f5dffb81 6558 if test -n "$PKG_CONFIG"; then
54445dc2
TT
6559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
6560printf %s "checking for blkid_get_cache in -lblkid... " >&6; }
6561if test ${ac_cv_lib_blkid_blkid_get_cache+y}
6562then :
6563 printf %s "(cached) " >&6
6564else $as_nop
f5dffb81
TT
6565 ac_check_lib_save_LIBS=$LIBS
6566LIBS="-lblkid $LIBS"
6567cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6568/* end confdefs.h. */
6569
6570/* Override any GCC internal prototype to avoid an error.
6571 Use char because int might match the return type of a GCC
6572 builtin and then its argument prototype would still apply. */
f5dffb81
TT
6573char blkid_get_cache ();
6574int
54445dc2 6575main (void)
f5dffb81
TT
6576{
6577return blkid_get_cache ();
6578 ;
6579 return 0;
6580}
6581_ACEOF
54445dc2
TT
6582if ac_fn_c_try_link "$LINENO"
6583then :
f5dffb81 6584 ac_cv_lib_blkid_blkid_get_cache=yes
54445dc2 6585else $as_nop
f5dffb81
TT
6586 ac_cv_lib_blkid_blkid_get_cache=no
6587fi
54445dc2 6588rm -f core conftest.err conftest.$ac_objext conftest.beam \
f5dffb81
TT
6589 conftest$ac_exeext conftest.$ac_ext
6590LIBS=$ac_check_lib_save_LIBS
6591fi
54445dc2
TT
6592{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
6593printf "%s\n" "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
6594if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes
6595then :
f5dffb81
TT
6596 LIBBLKID=`$PKG_CONFIG --libs blkid`;
6597 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
6598fi
6599
6600fi
6601if test -n "$LIBBLKID"; then
6602 BLKID_CMT=#
6603 PROFILED_LIBBLKID=$LIBBLKID
54445dc2
TT
6604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using system blkid library by default" >&5
6605printf "%s\n" "Using system blkid library by default" >&6; }
f5dffb81
TT
6606else
6607 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
6608 DEPLIBBLKID=$LIBBLKID
6609 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
6610 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
6611 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
6612 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
54445dc2 6613 printf "%s\n" "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
57aa50d4 6614
54445dc2
TT
6615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
6616printf "%s\n" "Enabling private blkid library by default" >&6; }
f5dffb81 6617fi
57aa50d4 6618
a64c9c13 6619fi
07a0db15 6620
a64c9c13 6621
b0cacab0 6622
b0cacab0 6623
a64c9c13 6624
b0cacab0 6625
07a0db15 6626
57aa50d4 6627
0afb9be6 6628ALL_CMT=
feb235e0 6629SUBSET_CMT=
0afb9be6 6630# Check whether --enable-subset was given.
54445dc2
TT
6631if test ${enable_subset+y}
6632then :
0afb9be6
TT
6633 enableval=$enable_subset; if test "$enableval" = "no"
6634then
feb235e0 6635 SUBSET_CMT=#
54445dc2
TT
6636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling subset-only build" >&5
6637printf "%s\n" "Disabling subset-only build" >&6; }
0afb9be6
TT
6638else
6639 ALL_CMT=#
54445dc2
TT
6640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling subset-only-build" >&5
6641printf "%s\n" "Enabling subset-only-build" >&6; }
0afb9be6
TT
6642fi
6643
6644fi
6645
6646
3df6014a 6647
feb235e0 6648
3df6014a 6649# Check whether --enable-backtrace was given.
54445dc2
TT
6650if test ${enable_backtrace+y}
6651then :
3df6014a
TT
6652 enableval=$enable_backtrace; if test "$enableval" = "no"
6653then
54445dc2
TT
6654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
6655printf "%s\n" "Disabling use of backtrace" >&6; }
6656 printf "%s\n" "#define DISABLE_BACKTRACE 1" >>confdefs.h
3df6014a
TT
6657
6658else
54445dc2
TT
6659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
6660printf "%s\n" "Enabling use of backtrace" >&6; }
3df6014a
TT
6661fi
6662
54445dc2
TT
6663else $as_nop
6664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
6665printf "%s\n" "Enabling use of backtrace by default" >&6; }
3df6014a
TT
6666
6667fi
6668
57aa50d4 6669# Check whether --enable-debugfs was given.
54445dc2
TT
6670if test ${enable_debugfs+y}
6671then :
57aa50d4
TT
6672 enableval=$enable_debugfs; if test "$enableval" = "no"
6673then
54445dc2
TT
6674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
6675printf "%s\n" "Disabling debugfs support" >&6; }
57aa50d4 6676 DEBUGFS_CMT="#"
b0cacab0 6677else
57aa50d4 6678 DEBUGFS_CMT=
54445dc2
TT
6679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
6680printf "%s\n" "Enabling debugfs support" >&6; }
b0cacab0 6681fi
a64c9c13 6682
54445dc2
TT
6683else $as_nop
6684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
6685printf "%s\n" "Enabling debugfs support by default" >&6; }
57aa50d4 6686DEBUGFS_CMT=
a64c9c13 6687
93636bde 6688fi
57aa50d4
TT
6689
6690
6691# Check whether --enable-imager was given.
54445dc2
TT
6692if test ${enable_imager+y}
6693then :
57aa50d4
TT
6694 enableval=$enable_imager; if test "$enableval" = "no"
6695then
54445dc2
TT
6696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
6697printf "%s\n" "Disabling e2image support" >&6; }
57aa50d4 6698 IMAGER_CMT="#"
b0cacab0 6699else
57aa50d4 6700 IMAGER_CMT=
54445dc2
TT
6701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
6702printf "%s\n" "Enabling e2image support" >&6; }
b0cacab0
TT
6703fi
6704
54445dc2
TT
6705else $as_nop
6706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
6707printf "%s\n" "Enabling e2image support by default" >&6; }
57aa50d4
TT
6708IMAGER_CMT=
6709
93636bde
TT
6710fi
6711
a64c9c13 6712
57aa50d4 6713# Check whether --enable-resizer was given.
54445dc2
TT
6714if test ${enable_resizer+y}
6715then :
57aa50d4
TT
6716 enableval=$enable_resizer; if test "$enableval" = "no"
6717then
54445dc2
TT
6718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
6719printf "%s\n" "Disabling e2resize support" >&6; }
57aa50d4 6720 RESIZER_CMT="#"
b0cacab0 6721else
57aa50d4 6722 RESIZER_CMT=
54445dc2
TT
6723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
6724printf "%s\n" "Enabling e2resize support" >&6; }
57aa50d4 6725fi
b0cacab0 6726
54445dc2
TT
6727else $as_nop
6728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
6729printf "%s\n" "Enabling e2resize support by default" >&6; }
57aa50d4 6730RESIZER_CMT=
b0cacab0 6731
b0cacab0 6732fi
e1052144 6733
57aa50d4 6734
8d9c50c5 6735# Check whether --enable-defrag was given.
54445dc2
TT
6736if test ${enable_defrag+y}
6737then :
8d9c50c5
TT
6738 enableval=$enable_defrag; if test "$enableval" = "no"
6739then
54445dc2
TT
6740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
6741printf "%s\n" "Disabling e4defrag support" >&6; }
8d9c50c5
TT
6742 DEFRAG_CMT="#"
6743else
6744 DEFRAG_CMT=
54445dc2
TT
6745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
6746printf "%s\n" "Enabling e4defrag support" >&6; }
8d9c50c5
TT
6747fi
6748
54445dc2 6749else $as_nop
6c59a665
TT
6750 if test -z "$WITH_DIET_LIBC"
6751then
54445dc2
TT
6752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
6753printf "%s\n" "Enabling e4defrag support by default" >&6; }
6c59a665
TT
6754 DEFRAG_CMT=
6755else
54445dc2
TT
6756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
6757printf "%s\n" "Disabling e4defrag support by default" >&6; }
6c59a665
TT
6758 DEFRAG_CMT="#"
6759fi
8d9c50c5
TT
6760
6761fi
6762
6763
57aa50d4 6764# Check whether --enable-fsck was given.
54445dc2
TT
6765if test ${enable_fsck+y}
6766then :
57aa50d4
TT
6767 enableval=$enable_fsck; if test "$enableval" = "no"
6768then
6769 FSCK_PROG='' FSCK_MAN=''
54445dc2
TT
6770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
6771printf "%s\n" "Not building fsck wrapper" >&6; }
57aa50d4
TT
6772else
6773 FSCK_PROG=fsck FSCK_MAN=fsck.8
54445dc2
TT
6774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
6775printf "%s\n" "Building fsck wrapper" >&6; }
a64c9c13
TT
6776fi
6777
54445dc2 6778else $as_nop
57aa50d4
TT
6779 case "$host_os" in
6780 gnu*)
6781 FSCK_PROG='' FSCK_MAN=''
54445dc2
TT
6782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
6783printf "%s\n" "Not building fsck wrapper by default" >&6; }
57aa50d4
TT
6784 ;;
6785 *)
6786 FSCK_PROG=fsck FSCK_MAN=fsck.8
54445dc2
TT
6787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
6788printf "%s\n" "Building fsck wrapper by default" >&6; }
57aa50d4 6789esac
b0cacab0 6790
57aa50d4 6791fi
b0cacab0 6792
93636bde 6793
b0cacab0 6794
57aa50d4 6795# Check whether --enable-e2initrd-helper was given.
54445dc2
TT
6796if test ${enable_e2initrd_helper+y}
6797then :
57aa50d4
TT
6798 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
6799then
6800 E2INITRD_PROG='' E2INITRD_MAN=''
54445dc2
TT
6801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
6802printf "%s\n" "Not building e2initrd helper" >&6; }
57aa50d4
TT
6803else
6804 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
54445dc2
TT
6805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
6806printf "%s\n" "Building e2initrd helper" >&6; }
57aa50d4 6807fi
a64c9c13 6808
54445dc2 6809else $as_nop
57aa50d4 6810 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
54445dc2
TT
6811{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
6812printf "%s\n" "Building e2initrd helper by default" >&6; }
b0cacab0 6813
a64c9c13 6814fi
e1052144 6815
57aa50d4
TT
6816
6817
6818# Check whether --enable-tls was given.
54445dc2
TT
6819if test ${enable_tls+y}
6820then :
57aa50d4
TT
6821 enableval=$enable_tls; if test "$enableval" = "no"
6822then
6823 try_tls=""
54445dc2
TT
6824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
6825printf "%s\n" "Disabling thread local support" >&6; }
57aa50d4
TT
6826else
6827 try_tls="yes"
54445dc2
TT
6828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
6829printf "%s\n" "Enabling thread local support" >&6; }
a64c9c13
TT
6830fi
6831
54445dc2 6832else $as_nop
57aa50d4
TT
6833 if test -n "$WITH_DIET_LIBC"
6834then
6835 try_tls=""
54445dc2
TT
6836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
6837printf "%s\n" "Diet libc does not support thread local support" >&6; }
57aa50d4
TT
6838else
6839 try_tls="yes"
54445dc2
TT
6840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
6841printf "%s\n" "Try using thread local support by default" >&6; }
57aa50d4 6842fi
a64c9c13 6843
93636bde 6844fi
07a0db15 6845
57aa50d4
TT
6846if test "$try_tls" = "yes"
6847then
a64c9c13 6848
54445dc2
TT
6849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
6850printf %s "checking for thread local storage (TLS) class... " >&6; }
6851 if test ${ac_cv_tls+y}
6852then :
6853 printf %s "(cached) " >&6
6854else $as_nop
b0cacab0 6855
57aa50d4
TT
6856 ax_tls_keywords="__thread __declspec(thread) none"
6857 for ax_tls_keyword in $ax_tls_keywords; do
6858 case $ax_tls_keyword in
6859 none) ac_cv_tls=none ; break ;;
6860 *)
6861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6862/* end confdefs.h. */
6863#include <stdlib.h>
6864 static void
6865 foo(void) {
6866 static $ax_tls_keyword int bar;
6867 exit(1);
6868 }
b0cacab0 6869int
54445dc2 6870main (void)
b0cacab0 6871{
57aa50d4 6872
b0cacab0
TT
6873 ;
6874 return 0;
6875}
6876_ACEOF
54445dc2
TT
6877if ac_fn_c_try_compile "$LINENO"
6878then :
57aa50d4 6879 ac_cv_tls=$ax_tls_keyword ; break
54445dc2 6880else $as_nop
57aa50d4 6881 ac_cv_tls=none
b0cacab0 6882
b0cacab0 6883fi
54445dc2 6884rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
57aa50d4
TT
6885 esac
6886 done
6887
b0cacab0 6888fi
b0cacab0 6889
57aa50d4
TT
6890
6891 if test "$ac_cv_tls" != "none"; then
6892
54445dc2 6893printf "%s\n" "#define TLS $ac_cv_tls" >>confdefs.h
93636bde 6894
b0cacab0 6895 fi
54445dc2
TT
6896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
6897printf "%s\n" "$ac_cv_tls" >&6; }
b0cacab0 6898
57aa50d4 6899fi
d1154eb4 6900
bdcd5f22 6901# Check whether --with-pthread was given.
54445dc2
TT
6902if test ${with_pthread+y}
6903then :
bdcd5f22 6904 withval=$with_pthread; if test "$withval" = "no"
57aa50d4 6905then
bdcd5f22 6906 try_pthread=""
54445dc2
TT
6907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling pthread support" >&5
6908printf "%s\n" "Disabling pthread support" >&6; }
a64c9c13 6909else
bdcd5f22 6910 try_pthread="yes"
54445dc2
TT
6911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Testing for pthread support" >&5
6912printf "%s\n" "Testing for pthread support" >&6; }
57aa50d4 6913fi
a64c9c13 6914
54445dc2 6915else $as_nop
bdcd5f22 6916 try_pthread="yes"
54445dc2
TT
6917{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Try testing for pthread support by default" >&5
6918printf "%s\n" "Try testing for pthread support by default" >&6; }
a64c9c13 6919
bdcd5f22
TT
6920fi
6921
6922if test "$try_pthread" = "yes"
e3d10158 6923then
54445dc2
TT
6924{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6925printf %s "checking for a sed that does not truncate output... " >&6; }
6926if test ${ac_cv_path_SED+y}
6927then :
6928 printf %s "(cached) " >&6
6929else $as_nop
bdcd5f22
TT
6930 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6931 for ac_i in 1 2 3 4 5 6 7; do
6932 ac_script="$ac_script$as_nl$ac_script"
6933 done
6934 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6935 { ac_script=; unset ac_script;}
6936 if test -z "$SED"; then
6937 ac_path_SED_found=false
6938 # Loop through the user's path and test for each of PROGNAME-LIST
6939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
54445dc2
TT
6940for as_dir in $PATH
6941do
6942 IFS=$as_save_IFS
6943 case $as_dir in #(((
6944 '') as_dir=./ ;;
6945 */) ;;
6946 *) as_dir=$as_dir/ ;;
6947 esac
6948 for ac_prog in sed gsed
6949 do
6950 for ac_exec_ext in '' $ac_executable_extensions; do
6951 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
6952 as_fn_executable_p "$ac_path_SED" || continue
6953# Check for GNU ac_path_SED and select it if it is found.
6954 # Check for GNU $ac_path_SED
6955case `"$ac_path_SED" --version 2>&1` in
6956*GNU*)
6957 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6958*)
6959 ac_count=0
6960 printf %s 0123456789 >"conftest.in"
6961 while :
6962 do
6963 cat "conftest.in" "conftest.in" >"conftest.tmp"
6964 mv "conftest.tmp" "conftest.in"
6965 cp "conftest.in" "conftest.nl"
6966 printf "%s\n" '' >> "conftest.nl"
6967 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6968 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6969 as_fn_arith $ac_count + 1 && ac_count=$as_val
6970 if test $ac_count -gt ${ac_path_SED_max-0}; then
6971 # Best one so far, save it but keep looking for a better one
6972 ac_cv_path_SED="$ac_path_SED"
6973 ac_path_SED_max=$ac_count
6974 fi
6975 # 10*(2^10) chars as input seems more than enough
6976 test $ac_count -gt 10 && break
6977 done
6978 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6979esac
6980
6981 $ac_path_SED_found && break 3
6982 done
6983 done
6984 done
6985IFS=$as_save_IFS
6986 if test -z "$ac_cv_path_SED"; then
6987 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6988 fi
6989else
6990 ac_cv_path_SED=$SED
6991fi
6992
6993fi
6994{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6995printf "%s\n" "$ac_cv_path_SED" >&6; }
6996 SED="$ac_cv_path_SED"
6997 rm -f conftest.sed
6998
6999
7000{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
7001printf %s "checking for grep that handles long lines and -e... " >&6; }
7002if test ${ac_cv_path_GREP+y}
7003then :
7004 printf %s "(cached) " >&6
7005else $as_nop
7006 if test -z "$GREP"; then
7007 ac_path_GREP_found=false
7008 # Loop through the user's path and test for each of PROGNAME-LIST
7009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7010for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7011do
7012 IFS=$as_save_IFS
7013 case $as_dir in #(((
7014 '') as_dir=./ ;;
7015 */) ;;
7016 *) as_dir=$as_dir/ ;;
7017 esac
7018 for ac_prog in grep ggrep
7019 do
7020 for ac_exec_ext in '' $ac_executable_extensions; do
7021 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
7022 as_fn_executable_p "$ac_path_GREP" || continue
7023# Check for GNU ac_path_GREP and select it if it is found.
7024 # Check for GNU $ac_path_GREP
7025case `"$ac_path_GREP" --version 2>&1` in
7026*GNU*)
7027 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
7028*)
7029 ac_count=0
7030 printf %s 0123456789 >"conftest.in"
7031 while :
7032 do
7033 cat "conftest.in" "conftest.in" >"conftest.tmp"
7034 mv "conftest.tmp" "conftest.in"
7035 cp "conftest.in" "conftest.nl"
7036 printf "%s\n" 'GREP' >> "conftest.nl"
7037 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7038 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7039 as_fn_arith $ac_count + 1 && ac_count=$as_val
7040 if test $ac_count -gt ${ac_path_GREP_max-0}; then
7041 # Best one so far, save it but keep looking for a better one
7042 ac_cv_path_GREP="$ac_path_GREP"
7043 ac_path_GREP_max=$ac_count
7044 fi
7045 # 10*(2^10) chars as input seems more than enough
7046 test $ac_count -gt 10 && break
7047 done
7048 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7049esac
7050
7051 $ac_path_GREP_found && break 3
7052 done
7053 done
7054 done
7055IFS=$as_save_IFS
7056 if test -z "$ac_cv_path_GREP"; then
7057 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7058 fi
7059else
7060 ac_cv_path_GREP=$GREP
7061fi
7062
7063fi
7064{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7065printf "%s\n" "$ac_cv_path_GREP" >&6; }
7066 GREP="$ac_cv_path_GREP"
7067
7068
7069{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7070printf %s "checking for egrep... " >&6; }
7071if test ${ac_cv_path_EGREP+y}
7072then :
7073 printf %s "(cached) " >&6
7074else $as_nop
7075 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7076 then ac_cv_path_EGREP="$GREP -E"
7077 else
7078 if test -z "$EGREP"; then
7079 ac_path_EGREP_found=false
7080 # Loop through the user's path and test for each of PROGNAME-LIST
7081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7082for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
bdcd5f22
TT
7083do
7084 IFS=$as_save_IFS
54445dc2
TT
7085 case $as_dir in #(((
7086 '') as_dir=./ ;;
7087 */) ;;
7088 *) as_dir=$as_dir/ ;;
7089 esac
7090 for ac_prog in egrep
7091 do
bdcd5f22 7092 for ac_exec_ext in '' $ac_executable_extensions; do
54445dc2
TT
7093 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
7094 as_fn_executable_p "$ac_path_EGREP" || continue
7095# Check for GNU ac_path_EGREP and select it if it is found.
7096 # Check for GNU $ac_path_EGREP
7097case `"$ac_path_EGREP" --version 2>&1` in
bdcd5f22 7098*GNU*)
54445dc2 7099 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
bdcd5f22
TT
7100*)
7101 ac_count=0
54445dc2 7102 printf %s 0123456789 >"conftest.in"
bdcd5f22
TT
7103 while :
7104 do
7105 cat "conftest.in" "conftest.in" >"conftest.tmp"
7106 mv "conftest.tmp" "conftest.in"
7107 cp "conftest.in" "conftest.nl"
54445dc2
TT
7108 printf "%s\n" 'EGREP' >> "conftest.nl"
7109 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
bdcd5f22
TT
7110 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7111 as_fn_arith $ac_count + 1 && ac_count=$as_val
54445dc2 7112 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
bdcd5f22 7113 # Best one so far, save it but keep looking for a better one
54445dc2
TT
7114 ac_cv_path_EGREP="$ac_path_EGREP"
7115 ac_path_EGREP_max=$ac_count
bdcd5f22
TT
7116 fi
7117 # 10*(2^10) chars as input seems more than enough
7118 test $ac_count -gt 10 && break
7119 done
7120 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7121esac
7122
54445dc2 7123 $ac_path_EGREP_found && break 3
bdcd5f22
TT
7124 done
7125 done
7126 done
7127IFS=$as_save_IFS
54445dc2
TT
7128 if test -z "$ac_cv_path_EGREP"; then
7129 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
bdcd5f22
TT
7130 fi
7131else
54445dc2 7132 ac_cv_path_EGREP=$EGREP
e3d10158 7133fi
e1052144 7134
54445dc2 7135 fi
a64c9c13 7136fi
54445dc2
TT
7137{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7138printf "%s\n" "$ac_cv_path_EGREP" >&6; }
7139 EGREP="$ac_cv_path_EGREP"
7140
e1052144 7141
93636bde 7142
d6a4bcb5 7143
d6a4bcb5 7144
d6a4bcb5 7145
bdcd5f22
TT
7146ac_ext=c
7147ac_cpp='$CPP $CPPFLAGS'
7148ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7149ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7150ac_compiler_gnu=$ac_cv_c_compiler_gnu
d6a4bcb5 7151
bdcd5f22
TT
7152ax_pthread_ok=no
7153
7154# We used to check for pthread.h first, but this fails if pthread.h
7155# requires special compiler flags (e.g. on Tru64 or Sequent).
7156# It gets checked for in the link test anyway.
7157
7158# First of all, check if the user has set any of the PTHREAD_LIBS,
7159# etcetera environment variables, and if threads linking works using
7160# them:
7161if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
7162 ax_pthread_save_CC="$CC"
7163 ax_pthread_save_CFLAGS="$CFLAGS"
7164 ax_pthread_save_LIBS="$LIBS"
54445dc2
TT
7165 if test "x$PTHREAD_CC" != "x"
7166then :
bdcd5f22 7167 CC="$PTHREAD_CC"
54445dc2
TT
7168fi
7169 if test "x$PTHREAD_CXX" != "x"
7170then :
7171 CXX="$PTHREAD_CXX"
bdcd5f22
TT
7172fi
7173 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7174 LIBS="$PTHREAD_LIBS $LIBS"
54445dc2
TT
7175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
7176printf %s "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
bdcd5f22
TT
7177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7178/* end confdefs.h. */
d6a4bcb5 7179
bdcd5f22
TT
7180/* Override any GCC internal prototype to avoid an error.
7181 Use char because int might match the return type of a GCC
7182 builtin and then its argument prototype would still apply. */
bdcd5f22
TT
7183char pthread_join ();
7184int
54445dc2 7185main (void)
bdcd5f22
TT
7186{
7187return pthread_join ();
7188 ;
7189 return 0;
7190}
7191_ACEOF
54445dc2
TT
7192if ac_fn_c_try_link "$LINENO"
7193then :
bdcd5f22 7194 ax_pthread_ok=yes
1625bf42 7195fi
54445dc2 7196rm -f core conftest.err conftest.$ac_objext conftest.beam \
bdcd5f22 7197 conftest$ac_exeext conftest.$ac_ext
54445dc2
TT
7198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
7199printf "%s\n" "$ax_pthread_ok" >&6; }
bdcd5f22
TT
7200 if test "x$ax_pthread_ok" = "xno"; then
7201 PTHREAD_LIBS=""
7202 PTHREAD_CFLAGS=""
7203 fi
7204 CC="$ax_pthread_save_CC"
7205 CFLAGS="$ax_pthread_save_CFLAGS"
7206 LIBS="$ax_pthread_save_LIBS"
7207fi
7208
7209# We must check for the threads library under a number of different
7210# names; the ordering is very important because some systems
7211# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
7212# libraries is broken (non-POSIX).
7213
54445dc2
TT
7214# Create a list of thread flags to try. Items with a "," contain both
7215# C compiler flags (before ",") and linker flags (after ","). Other items
7216# starting with a "-" are C compiler flags, and remaining items are
7217# library names, except for "none" which indicates that we try without
7218# any flags at all, and "pthread-config" which is a program returning
7219# the flags for the Pth emulation library.
bdcd5f22
TT
7220
7221ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
7222
7223# The ordering *is* (sometimes) important. Some notes on the
7224# individual items follow:
7225
7226# pthreads: AIX (must check this before -lpthread)
7227# none: in case threads are in libc; should be tried before -Kthread and
7228# other compiler flags to prevent continual compiler warnings
7229# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
7230# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
7231# (Note: HP C rejects this with "bad form for `-t' option")
7232# -pthreads: Solaris/gcc (Note: HP C also rejects)
7233# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
7234# doesn't hurt to check since this sometimes defines pthreads and
7235# -D_REENTRANT too), HP C (must be checked before -lpthread, which
7236# is present but should not be used directly; and before -mthreads,
7237# because the compiler interprets this as "-mt" + "-hreads")
7238# -mthreads: Mingw32/gcc, Lynx/gcc
7239# pthread: Linux, etcetera
7240# --thread-safe: KAI C++
7241# pthread-config: use pthread-config program (for GNU Pth library)
7242
7243case $host_os in
7244
7245 freebsd*)
7246
7247 # -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
7248 # lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
7249
7250 ax_pthread_flags="-kthread lthread $ax_pthread_flags"
7251 ;;
1625bf42 7252
bdcd5f22 7253 hpux*)
1625bf42 7254
bdcd5f22
TT
7255 # From the cc(1) man page: "[-mt] Sets various -D flags to enable
7256 # multi-threading and also sets -lpthread."
749f0712 7257
bdcd5f22
TT
7258 ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
7259 ;;
749f0712 7260
bdcd5f22 7261 openedition*)
749f0712 7262
bdcd5f22
TT
7263 # IBM z/OS requires a feature-test macro to be defined in order to
7264 # enable POSIX threads at all, so give the user a hint if this is
7265 # not set. (We don't define these ourselves, as they can affect
7266 # other portions of the system API in unpredictable ways.)
749f0712 7267
bdcd5f22
TT
7268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7269/* end confdefs.h. */
7270
7271# if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
7272 AX_PTHREAD_ZOS_MISSING
7273# endif
7274
7275_ACEOF
7276if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
54445dc2
TT
7277 $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1
7278then :
7279 { 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
7280printf "%s\n" "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
749f0712 7281fi
54445dc2 7282rm -rf conftest*
749f0712 7283
bdcd5f22 7284 ;;
749f0712 7285
bdcd5f22 7286 solaris*)
749f0712 7287
bdcd5f22
TT
7288 # On Solaris (at least, for some versions), libc contains stubbed
7289 # (non-functional) versions of the pthreads routines, so link-based
7290 # tests will erroneously succeed. (N.B.: The stubs are missing
7291 # pthread_cleanup_push, or rather a function called by this macro,
7292 # so we could check for that, but who knows whether they'll stub
7293 # that too in a future libc.) So we'll check first for the
7294 # standard Solaris way of linking pthreads (-mt -lpthread).
749f0712 7295
54445dc2 7296 ax_pthread_flags="-mt,-lpthread pthread $ax_pthread_flags"
bdcd5f22
TT
7297 ;;
7298esac
1625bf42 7299
bdcd5f22 7300# Are we compiling with Clang?
1625bf42 7301
54445dc2
TT
7302{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
7303printf %s "checking whether $CC is Clang... " >&6; }
7304if test ${ax_cv_PTHREAD_CLANG+y}
7305then :
7306 printf %s "(cached) " >&6
7307else $as_nop
bdcd5f22
TT
7308 ax_cv_PTHREAD_CLANG=no
7309 # Note that Autoconf sets GCC=yes for Clang as well as GCC
7310 if test "x$GCC" = "xyes"; then
7311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7312/* end confdefs.h. */
7313/* Note: Clang 2.7 lacks __clang_[a-z]+__ */
7314# if defined(__clang__) && defined(__llvm__)
7315 AX_PTHREAD_CC_IS_CLANG
7316# endif
7317
7318_ACEOF
7319if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
54445dc2
TT
7320 $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1
7321then :
bdcd5f22 7322 ax_cv_PTHREAD_CLANG=yes
1625bf42 7323fi
54445dc2 7324rm -rf conftest*
1625bf42 7325
bdcd5f22 7326 fi
1625bf42
TB
7327
7328fi
54445dc2
TT
7329{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
7330printf "%s\n" "$ax_cv_PTHREAD_CLANG" >&6; }
bdcd5f22
TT
7331ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
7332
bdcd5f22 7333
54445dc2 7334# GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
bdcd5f22 7335
54445dc2
TT
7336# Note that for GCC and Clang -pthread generally implies -lpthread,
7337# except when -nostdlib is passed.
7338# This is problematic using libtool to build C++ shared libraries with pthread:
7339# [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=25460
7340# [2] https://bugzilla.redhat.com/show_bug.cgi?id=661333
7341# [3] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=468555
7342# To solve this, first try -pthread together with -lpthread for GCC
bdcd5f22 7343
54445dc2
TT
7344if test "x$GCC" = "xyes"
7345then :
7346 ax_pthread_flags="-pthread,-lpthread -pthread -pthreads $ax_pthread_flags"
7347fi
bdcd5f22 7348
54445dc2 7349# Clang takes -pthread (never supported any other flag), but we'll try with -lpthread first
bdcd5f22 7350
54445dc2
TT
7351if test "x$ax_pthread_clang" = "xyes"
7352then :
7353 ax_pthread_flags="-pthread,-lpthread -pthread"
7354fi
bdcd5f22 7355
bdcd5f22 7356
54445dc2
TT
7357# The presence of a feature test macro requesting re-entrant function
7358# definitions is, on some systems, a strong hint that pthreads support is
7359# correctly enabled
bdcd5f22 7360
54445dc2
TT
7361case $host_os in
7362 darwin* | hpux* | linux* | osf* | solaris*)
7363 ax_pthread_check_macro="_REENTRANT"
7364 ;;
d6a4bcb5 7365
54445dc2
TT
7366 aix*)
7367 ax_pthread_check_macro="_THREAD_SAFE"
7368 ;;
d1154eb4 7369
54445dc2
TT
7370 *)
7371 ax_pthread_check_macro="--"
7372 ;;
7373esac
7374if test "x$ax_pthread_check_macro" = "x--"
7375then :
7376 ax_pthread_check_cond=0
7377else $as_nop
7378 ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
bdcd5f22 7379fi
d1154eb4 7380
57aa50d4 7381
bdcd5f22
TT
7382if test "x$ax_pthread_ok" = "xno"; then
7383for ax_pthread_try_flag in $ax_pthread_flags; do
57aa50d4 7384
bdcd5f22
TT
7385 case $ax_pthread_try_flag in
7386 none)
54445dc2
TT
7387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
7388printf %s "checking whether pthreads work without any flags... " >&6; }
bdcd5f22 7389 ;;
57aa50d4 7390
54445dc2
TT
7391 *,*)
7392 PTHREAD_CFLAGS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\1/"`
7393 PTHREAD_LIBS=`echo $ax_pthread_try_flag | sed "s/^\(.*\),\(.*\)$/\2/"`
7394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"" >&5
7395printf %s "checking whether pthreads work with \"$PTHREAD_CFLAGS\" and \"$PTHREAD_LIBS\"... " >&6; }
bdcd5f22 7396 ;;
57aa50d4 7397
bdcd5f22 7398 -*)
54445dc2
TT
7399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
7400printf %s "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
bdcd5f22
TT
7401 PTHREAD_CFLAGS="$ax_pthread_try_flag"
7402 ;;
57aa50d4 7403
bdcd5f22
TT
7404 pthread-config)
7405 # Extract the first word of "pthread-config", so it can be a program name with args.
7406set dummy pthread-config; ac_word=$2
54445dc2
TT
7407{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7408printf %s "checking for $ac_word... " >&6; }
7409if test ${ac_cv_prog_ax_pthread_config+y}
7410then :
7411 printf %s "(cached) " >&6
7412else $as_nop
bdcd5f22
TT
7413 if test -n "$ax_pthread_config"; then
7414 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
7415else
7416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7417for as_dir in $PATH
7418do
7419 IFS=$as_save_IFS
54445dc2
TT
7420 case $as_dir in #(((
7421 '') as_dir=./ ;;
7422 */) ;;
7423 *) as_dir=$as_dir/ ;;
7424 esac
bdcd5f22 7425 for ac_exec_ext in '' $ac_executable_extensions; do
54445dc2 7426 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
bdcd5f22 7427 ac_cv_prog_ax_pthread_config="yes"
54445dc2 7428 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
bdcd5f22
TT
7429 break 2
7430 fi
7431done
7432 done
7433IFS=$as_save_IFS
7434
7435 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
7436fi
7437fi
7438ax_pthread_config=$ac_cv_prog_ax_pthread_config
7439if test -n "$ax_pthread_config"; then
54445dc2
TT
7440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
7441printf "%s\n" "$ax_pthread_config" >&6; }
bdcd5f22 7442else
54445dc2
TT
7443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7444printf "%s\n" "no" >&6; }
bdcd5f22
TT
7445fi
7446
7447
54445dc2
TT
7448 if test "x$ax_pthread_config" = "xno"
7449then :
bdcd5f22
TT
7450 continue
7451fi
7452 PTHREAD_CFLAGS="`pthread-config --cflags`"
7453 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
7454 ;;
7455
7456 *)
54445dc2
TT
7457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
7458printf %s "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
bdcd5f22
TT
7459 PTHREAD_LIBS="-l$ax_pthread_try_flag"
7460 ;;
7461 esac
7462
7463 ax_pthread_save_CFLAGS="$CFLAGS"
7464 ax_pthread_save_LIBS="$LIBS"
7465 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7466 LIBS="$PTHREAD_LIBS $LIBS"
7467
7468 # Check for various functions. We must include pthread.h,
7469 # since some functions may be macros. (On the Sequent, we
7470 # need a special flag -Kthread to make this header compile.)
7471 # We check for pthread_join because it is in -lpthread on IRIX
7472 # while pthread_create is in libc. We check for pthread_attr_init
7473 # due to DEC craziness with -lpthreads. We check for
7474 # pthread_cleanup_push because it is one of the few pthread
7475 # functions on Solaris that doesn't have a non-functional libc stub.
7476 # We try pthread_create on general principles.
7477
7478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7479/* end confdefs.h. */
7480#include <pthread.h>
7481# if $ax_pthread_check_cond
7482# error "$ax_pthread_check_macro must be defined"
7483# endif
54445dc2
TT
7484 static void *some_global = NULL;
7485 static void routine(void *a)
7486 {
7487 /* To avoid any unused-parameter or
7488 unused-but-set-parameter warning. */
7489 some_global = a;
7490 }
bdcd5f22
TT
7491 static void *start_routine(void *a) { return a; }
7492int
54445dc2 7493main (void)
bdcd5f22
TT
7494{
7495pthread_t th; pthread_attr_t attr;
7496 pthread_create(&th, 0, start_routine, 0);
7497 pthread_join(th, 0);
7498 pthread_attr_init(&attr);
7499 pthread_cleanup_push(routine, 0);
7500 pthread_cleanup_pop(0) /* ; */
7501 ;
7502 return 0;
7503}
7504_ACEOF
54445dc2
TT
7505if ac_fn_c_try_link "$LINENO"
7506then :
bdcd5f22
TT
7507 ax_pthread_ok=yes
7508fi
54445dc2 7509rm -f core conftest.err conftest.$ac_objext conftest.beam \
bdcd5f22
TT
7510 conftest$ac_exeext conftest.$ac_ext
7511
7512 CFLAGS="$ax_pthread_save_CFLAGS"
7513 LIBS="$ax_pthread_save_LIBS"
7514
54445dc2
TT
7515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
7516printf "%s\n" "$ax_pthread_ok" >&6; }
7517 if test "x$ax_pthread_ok" = "xyes"
7518then :
bdcd5f22
TT
7519 break
7520fi
7521
7522 PTHREAD_LIBS=""
7523 PTHREAD_CFLAGS=""
7524done
7525fi
7526
54445dc2
TT
7527
7528# Clang needs special handling, because older versions handle the -pthread
7529# option in a rather... idiosyncratic way
7530
7531if test "x$ax_pthread_clang" = "xyes"; then
7532
7533 # Clang takes -pthread; it has never supported any other flag
7534
7535 # (Note 1: This will need to be revisited if a system that Clang
7536 # supports has POSIX threads in a separate library. This tends not
7537 # to be the way of modern systems, but it's conceivable.)
7538
7539 # (Note 2: On some systems, notably Darwin, -pthread is not needed
7540 # to get POSIX threads support; the API is always present and
7541 # active. We could reasonably leave PTHREAD_CFLAGS empty. But
7542 # -pthread does define _REENTRANT, and while the Darwin headers
7543 # ignore this macro, third-party headers might not.)
7544
7545 # However, older versions of Clang make a point of warning the user
7546 # that, in an invocation where only linking and no compilation is
7547 # taking place, the -pthread option has no effect ("argument unused
7548 # during compilation"). They expect -pthread to be passed in only
7549 # when source code is being compiled.
7550 #
7551 # Problem is, this is at odds with the way Automake and most other
7552 # C build frameworks function, which is that the same flags used in
7553 # compilation (CFLAGS) are also used in linking. Many systems
7554 # supported by AX_PTHREAD require exactly this for POSIX threads
7555 # support, and in fact it is often not straightforward to specify a
7556 # flag that is used only in the compilation phase and not in
7557 # linking. Such a scenario is extremely rare in practice.
7558 #
7559 # Even though use of the -pthread flag in linking would only print
7560 # a warning, this can be a nuisance for well-run software projects
7561 # that build with -Werror. So if the active version of Clang has
7562 # this misfeature, we search for an option to squash it.
7563
7564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
7565printf %s "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
7566if test ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+y}
7567then :
7568 printf %s "(cached) " >&6
7569else $as_nop
7570 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
7571 # Create an alternate version of $ac_link that compiles and
7572 # links in two steps (.c -> .o, .o -> exe) instead of one
7573 # (.c -> exe), because the warning occurs only in the second
7574 # step
7575 ax_pthread_save_ac_link="$ac_link"
7576 ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
7577 ax_pthread_link_step=`printf "%s\n" "$ac_link" | sed "$ax_pthread_sed"`
7578 ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
7579 ax_pthread_save_CFLAGS="$CFLAGS"
7580 for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
7581 if test "x$ax_pthread_try" = "xunknown"
7582then :
7583 break
7584fi
7585 CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
7586 ac_link="$ax_pthread_save_ac_link"
7587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7588/* end confdefs.h. */
7589int main(void){return 0;}
7590_ACEOF
7591if ac_fn_c_try_link "$LINENO"
7592then :
7593 ac_link="$ax_pthread_2step_ac_link"
7594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7595/* end confdefs.h. */
7596int main(void){return 0;}
7597_ACEOF
7598if ac_fn_c_try_link "$LINENO"
7599then :
7600 break
7601fi
7602rm -f core conftest.err conftest.$ac_objext conftest.beam \
7603 conftest$ac_exeext conftest.$ac_ext
7604
7605fi
7606rm -f core conftest.err conftest.$ac_objext conftest.beam \
7607 conftest$ac_exeext conftest.$ac_ext
7608 done
7609 ac_link="$ax_pthread_save_ac_link"
7610 CFLAGS="$ax_pthread_save_CFLAGS"
7611 if test "x$ax_pthread_try" = "x"
7612then :
7613 ax_pthread_try=no
7614fi
7615 ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
7616
7617fi
7618{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
7619printf "%s\n" "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
7620
7621 case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
7622 no | unknown) ;;
7623 *) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
7624 esac
7625
7626fi # $ax_pthread_clang = yes
7627
7628
7629
bdcd5f22
TT
7630# Various other checks:
7631if test "x$ax_pthread_ok" = "xyes"; then
7632 ax_pthread_save_CFLAGS="$CFLAGS"
7633 ax_pthread_save_LIBS="$LIBS"
7634 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
7635 LIBS="$PTHREAD_LIBS $LIBS"
7636
7637 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
54445dc2
TT
7638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
7639printf %s "checking for joinable pthread attribute... " >&6; }
7640if test ${ax_cv_PTHREAD_JOINABLE_ATTR+y}
7641then :
7642 printf %s "(cached) " >&6
7643else $as_nop
bdcd5f22
TT
7644 ax_cv_PTHREAD_JOINABLE_ATTR=unknown
7645 for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
7646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7647/* end confdefs.h. */
7648#include <pthread.h>
7649int
54445dc2 7650main (void)
bdcd5f22
TT
7651{
7652int attr = $ax_pthread_attr; return attr /* ; */
7653 ;
7654 return 0;
7655}
7656_ACEOF
54445dc2
TT
7657if ac_fn_c_try_link "$LINENO"
7658then :
bdcd5f22
TT
7659 ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
7660fi
54445dc2 7661rm -f core conftest.err conftest.$ac_objext conftest.beam \
bdcd5f22
TT
7662 conftest$ac_exeext conftest.$ac_ext
7663 done
7664
7665fi
54445dc2
TT
7666{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
7667printf "%s\n" "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
bdcd5f22
TT
7668 if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
7669 test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
54445dc2
TT
7670 test "x$ax_pthread_joinable_attr_defined" != "xyes"
7671then :
bdcd5f22 7672
54445dc2 7673printf "%s\n" "#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR" >>confdefs.h
bdcd5f22
TT
7674
7675 ax_pthread_joinable_attr_defined=yes
7676
7677fi
7678
54445dc2
TT
7679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
7680printf %s "checking whether more special flags are required for pthreads... " >&6; }
7681if test ${ax_cv_PTHREAD_SPECIAL_FLAGS+y}
7682then :
7683 printf %s "(cached) " >&6
7684else $as_nop
bdcd5f22
TT
7685 ax_cv_PTHREAD_SPECIAL_FLAGS=no
7686 case $host_os in
7687 solaris*)
7688 ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
7689 ;;
7690 esac
7691
7692fi
54445dc2
TT
7693{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
7694printf "%s\n" "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
bdcd5f22 7695 if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
54445dc2
TT
7696 test "x$ax_pthread_special_flags_added" != "xyes"
7697then :
bdcd5f22
TT
7698 PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
7699 ax_pthread_special_flags_added=yes
7700fi
7701
54445dc2
TT
7702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
7703printf %s "checking for PTHREAD_PRIO_INHERIT... " >&6; }
7704if test ${ax_cv_PTHREAD_PRIO_INHERIT+y}
7705then :
7706 printf %s "(cached) " >&6
7707else $as_nop
bdcd5f22
TT
7708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7709/* end confdefs.h. */
7710#include <pthread.h>
7711int
54445dc2 7712main (void)
bdcd5f22
TT
7713{
7714int i = PTHREAD_PRIO_INHERIT;
54445dc2 7715 return i;
bdcd5f22
TT
7716 ;
7717 return 0;
7718}
7719_ACEOF
54445dc2
TT
7720if ac_fn_c_try_link "$LINENO"
7721then :
bdcd5f22 7722 ax_cv_PTHREAD_PRIO_INHERIT=yes
54445dc2 7723else $as_nop
bdcd5f22
TT
7724 ax_cv_PTHREAD_PRIO_INHERIT=no
7725fi
54445dc2 7726rm -f core conftest.err conftest.$ac_objext conftest.beam \
bdcd5f22
TT
7727 conftest$ac_exeext conftest.$ac_ext
7728
7729fi
54445dc2
TT
7730{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
7731printf "%s\n" "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
bdcd5f22 7732 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
54445dc2
TT
7733 test "x$ax_pthread_prio_inherit_defined" != "xyes"
7734then :
bdcd5f22 7735
54445dc2 7736printf "%s\n" "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
bdcd5f22
TT
7737
7738 ax_pthread_prio_inherit_defined=yes
7739
7740fi
7741
7742 CFLAGS="$ax_pthread_save_CFLAGS"
7743 LIBS="$ax_pthread_save_LIBS"
7744
7745 # More AIX lossage: compile with *_r variant
7746 if test "x$GCC" != "xyes"; then
7747 case $host_os in
7748 aix*)
7749 case "x/$CC" in #(
7750 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
7751 #handle absolute path differently from PATH based program lookup
7752 case "x$CC" in #(
7753 x/*) :
54445dc2
TT
7754
7755 if as_fn_executable_p ${CC}_r
7756then :
bdcd5f22 7757 PTHREAD_CC="${CC}_r"
54445dc2
TT
7758fi
7759 if test "x${CXX}" != "x"
7760then :
7761 if as_fn_executable_p ${CXX}_r
7762then :
7763 PTHREAD_CXX="${CXX}_r"
7764fi
7765fi
7766 ;; #(
bdcd5f22 7767 *) :
54445dc2
TT
7768
7769 for ac_prog in ${CC}_r
bdcd5f22
TT
7770do
7771 # Extract the first word of "$ac_prog", so it can be a program name with args.
7772set dummy $ac_prog; ac_word=$2
54445dc2
TT
7773{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7774printf %s "checking for $ac_word... " >&6; }
7775if test ${ac_cv_prog_PTHREAD_CC+y}
7776then :
7777 printf %s "(cached) " >&6
7778else $as_nop
bdcd5f22
TT
7779 if test -n "$PTHREAD_CC"; then
7780 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
7781else
7782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7783for as_dir in $PATH
7784do
7785 IFS=$as_save_IFS
54445dc2
TT
7786 case $as_dir in #(((
7787 '') as_dir=./ ;;
7788 */) ;;
7789 *) as_dir=$as_dir/ ;;
7790 esac
bdcd5f22 7791 for ac_exec_ext in '' $ac_executable_extensions; do
54445dc2 7792 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
bdcd5f22 7793 ac_cv_prog_PTHREAD_CC="$ac_prog"
54445dc2 7794 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
bdcd5f22
TT
7795 break 2
7796 fi
7797done
7798 done
7799IFS=$as_save_IFS
7800
7801fi
7802fi
7803PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
7804if test -n "$PTHREAD_CC"; then
54445dc2
TT
7805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
7806printf "%s\n" "$PTHREAD_CC" >&6; }
bdcd5f22 7807else
54445dc2
TT
7808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7809printf "%s\n" "no" >&6; }
bdcd5f22
TT
7810fi
7811
7812
7813 test -n "$PTHREAD_CC" && break
7814done
7815test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
54445dc2
TT
7816
7817 if test "x${CXX}" != "x"
7818then :
7819 for ac_prog in ${CXX}_r
7820do
7821 # Extract the first word of "$ac_prog", so it can be a program name with args.
7822set dummy $ac_prog; ac_word=$2
7823{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7824printf %s "checking for $ac_word... " >&6; }
7825if test ${ac_cv_prog_PTHREAD_CXX+y}
7826then :
7827 printf %s "(cached) " >&6
7828else $as_nop
7829 if test -n "$PTHREAD_CXX"; then
7830 ac_cv_prog_PTHREAD_CXX="$PTHREAD_CXX" # Let the user override the test.
7831else
7832as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7833for as_dir in $PATH
7834do
7835 IFS=$as_save_IFS
7836 case $as_dir in #(((
7837 '') as_dir=./ ;;
7838 */) ;;
7839 *) as_dir=$as_dir/ ;;
7840 esac
7841 for ac_exec_ext in '' $ac_executable_extensions; do
7842 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7843 ac_cv_prog_PTHREAD_CXX="$ac_prog"
7844 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7845 break 2
7846 fi
7847done
7848 done
7849IFS=$as_save_IFS
7850
7851fi
7852fi
7853PTHREAD_CXX=$ac_cv_prog_PTHREAD_CXX
7854if test -n "$PTHREAD_CXX"; then
7855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CXX" >&5
7856printf "%s\n" "$PTHREAD_CXX" >&6; }
7857else
7858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7859printf "%s\n" "no" >&6; }
7860fi
7861
7862
7863 test -n "$PTHREAD_CXX" && break
7864done
7865test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
7866
7867fi
7868
7869 ;;
7870esac
7871 ;; #(
bdcd5f22
TT
7872 *) :
7873 ;;
7874esac
7875 ;;
7876 esac
7877 fi
7878fi
7879
7880test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
54445dc2
TT
7881test -n "$PTHREAD_CXX" || PTHREAD_CXX="$CXX"
7882
bdcd5f22
TT
7883
7884
7885
7886
7887
7888# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
7889if test "x$ax_pthread_ok" = "xyes"; then
7890
54445dc2 7891printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h
bdcd5f22
TT
7892
7893 :
7894else
7895 ax_pthread_ok=no
7896
7897fi
7898ac_ext=c
7899ac_cpp='$CPP $CPPFLAGS'
7900ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7901ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7902ac_compiler_gnu=$ac_cv_c_compiler_gnu
7903
7904
7905else
7906test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
7907
7908fi
7909
7910# Check whether --enable-uuidd was given.
54445dc2
TT
7911if test ${enable_uuidd+y}
7912then :
bdcd5f22
TT
7913 enableval=$enable_uuidd; if test "$enableval" = "no"
7914then
54445dc2
TT
7915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
7916printf "%s\n" "Not building uuidd" >&6; }
bdcd5f22
TT
7917 UUIDD_CMT="#"
7918else
54445dc2 7919 printf "%s\n" "#define USE_UUIDD 1" >>confdefs.h
bdcd5f22
TT
7920
7921 UUIDD_CMT=""
54445dc2
TT
7922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
7923printf "%s\n" "Building uuidd" >&6; }
bdcd5f22
TT
7924fi
7925
54445dc2
TT
7926else $as_nop
7927 printf "%s\n" "#define USE_UUIDD 1" >>confdefs.h
bdcd5f22
TT
7928
7929if test -z "$UUID_CMT"
7930then
7931 UUIDD_CMT=""
54445dc2
TT
7932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
7933printf "%s\n" "Building uuidd by default" >&6; }
bdcd5f22
TT
7934else
7935 UUIDD_CMT="#"
54445dc2
TT
7936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling uuidd by default" >&5
7937printf "%s\n" "Disabling uuidd by default" >&6; }
bdcd5f22
TT
7938fi
7939
7940fi
7941
7942
7943
7944# Check whether --enable-mmp was given.
54445dc2
TT
7945if test ${enable_mmp+y}
7946then :
bdcd5f22
TT
7947 enableval=$enable_mmp; if test "$enableval" = "no"
7948then
54445dc2
TT
7949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5
7950printf "%s\n" "Disabling mmp support" >&6; }
bdcd5f22 7951else
54445dc2
TT
7952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5
7953printf "%s\n" "Enabling mmp support" >&6; }
7954 printf "%s\n" "#define CONFIG_MMP 1" >>confdefs.h
bdcd5f22
TT
7955
7956fi
7957
54445dc2
TT
7958else $as_nop
7959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
7960printf "%s\n" "Enabling mmp support by default" >&6; }
7961printf "%s\n" "#define CONFIG_MMP 1" >>confdefs.h
bdcd5f22
TT
7962
7963
7964fi
7965
7966
7967# Check whether --enable-tdb was given.
54445dc2
TT
7968if test ${enable_tdb+y}
7969then :
6eb00fb7
EB
7970 enableval=$enable_tdb;
7971if test "$enableval" = "no"
bdcd5f22 7972then
54445dc2
TT
7973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling tdb support" >&5
7974printf "%s\n" "Disabling tdb support" >&6; }
6eb00fb7 7975 CONFIG_TDB=0
bdcd5f22 7976else
54445dc2
TT
7977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling tdb support" >&5
7978printf "%s\n" "Enabling tdb support" >&6; }
6eb00fb7 7979 CONFIG_TDB=1
bdcd5f22
TT
7980fi
7981
6eb00fb7 7982
54445dc2 7983else $as_nop
bdcd5f22 7984
6eb00fb7
EB
7985case "$host_os" in
7986mingw*)
7987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling tdb support by default" >&5
7988printf "%s\n" "Disabling tdb support by default" >&6; }
7989 CONFIG_TDB=0
7990 ;;
7991*)
7992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling tdb support by default" >&5
7993printf "%s\n" "Enabling tdb support by default" >&6; }
7994 CONFIG_TDB=1
7995 ;;
7996esac
7997
bdcd5f22
TT
7998
7999fi
8000
6eb00fb7
EB
8001if test "$CONFIG_TDB" = "1"
8002then
8003 printf "%s\n" "#define CONFIG_TDB 1" >>confdefs.h
8004
8005 TDB_CMT=""
8006 TDB_MAN_COMMENT=""
8007else
8008 TDB_CMT="#"
8009 TDB_MAN_COMMENT='.\"'
8010fi
bdcd5f22
TT
8011
8012
8013
8014# Check whether --enable-bmap-stats was given.
54445dc2
TT
8015if test ${enable_bmap_stats+y}
8016then :
bdcd5f22
TT
8017 enableval=$enable_bmap_stats; if test "$enableval" = "no"
8018then
54445dc2
TT
8019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5
8020printf "%s\n" "Disabling bitmap statistics support" >&6; }
bdcd5f22 8021else
54445dc2
TT
8022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5
8023printf "%s\n" "Enabling bitmap statistics support" >&6; }
8024 printf "%s\n" "#define ENABLE_BMAP_STATS 1" >>confdefs.h
bdcd5f22
TT
8025
8026fi
8027
54445dc2
TT
8028else $as_nop
8029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5
8030printf "%s\n" "Enabling bitmap statistics support by default" >&6; }
8031printf "%s\n" "#define ENABLE_BMAP_STATS 1" >>confdefs.h
bdcd5f22
TT
8032
8033
8034fi
8035
8036
8037# Check whether --enable-bmap-stats-ops was given.
54445dc2
TT
8038if test ${enable_bmap_stats_ops+y}
8039then :
bdcd5f22
TT
8040 enableval=$enable_bmap_stats_ops; if test "$enableval" = "no"
8041then
54445dc2
TT
8042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5
8043printf "%s\n" "Disabling additional bitmap statistics" >&6; }
bdcd5f22 8044else
54445dc2
TT
8045 if test "x${enable_bmap_stats}" = "xno"
8046then :
8047 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8048printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
bdcd5f22
TT
8049as_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats
8050See \`config.log' for more details" "$LINENO" 5; }
8051fi
8052
54445dc2
TT
8053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5
8054printf "%s\n" "Enabling additional bitmap statistics" >&6; }
8055 printf "%s\n" "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h
bdcd5f22
TT
8056
8057fi
8058
54445dc2
TT
8059else $as_nop
8060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5
8061printf "%s\n" "Disabling additional bitmap statistics by default" >&6; }
bdcd5f22
TT
8062
8063fi
8064
8065MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
8066
8067GETTEXT_PACKAGE=e2fsprogs
8068PACKAGE=e2fsprogs
8069VERSION="$E2FSPROGS_VERSION"
8070VERSION=0.14.1
8071
54445dc2 8072printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
bdcd5f22
TT
8073
8074
54445dc2 8075printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
bdcd5f22
TT
8076
8077
8078
8079
8080
54445dc2
TT
8081{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8082printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
bdcd5f22 8083set x ${MAKE-make}
54445dc2
TT
8084ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8085if eval test \${ac_cv_prog_make_${ac_make}_set+y}
8086then :
8087 printf %s "(cached) " >&6
8088else $as_nop
bdcd5f22
TT
8089 cat >conftest.make <<\_ACEOF
8090SHELL = /bin/sh
8091all:
8092 @echo '@@@%%%=$(MAKE)=@@@%%%'
8093_ACEOF
8094# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8095case `${MAKE-make} -f conftest.make 2>/dev/null` in
8096 *@@@%%%=?*=@@@%%%*)
8097 eval ac_cv_prog_make_${ac_make}_set=yes;;
8098 *)
8099 eval ac_cv_prog_make_${ac_make}_set=no;;
8100esac
57aa50d4
TT
8101rm -f conftest.make
8102fi
8103if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
54445dc2
TT
8104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8105printf "%s\n" "yes" >&6; }
57aa50d4 8106 SET_MAKE=
39fd3d4f 8107else
54445dc2
TT
8108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8109printf "%s\n" "no" >&6; }
57aa50d4 8110 SET_MAKE="MAKE=${MAKE-make}"
39fd3d4f
SJR
8111fi
8112
54445dc2
TT
8113
8114 # Find a good install program. We prefer a C program (faster),
57aa50d4
TT
8115# so one script is as good as another. But avoid the broken or
8116# incompatible versions:
8117# SysV /etc/install, /usr/sbin/install
8118# SunOS /usr/etc/install
8119# IRIX /sbin/install
8120# AIX /bin/install
8121# AmigaOS /C/install, which installs bootblocks on floppy discs
8122# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8123# AFS /usr/afsws/bin/install, which mishandles nonexistent args
8124# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8125# OS/2's system install, which has a completely different semantic
8126# ./install, which can be erroneously created by make from ./install.sh.
8127# Reject install programs that cannot install multiple files.
54445dc2
TT
8128{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
8129printf %s "checking for a BSD-compatible install... " >&6; }
57aa50d4 8130if test -z "$INSTALL"; then
54445dc2
TT
8131if test ${ac_cv_path_install+y}
8132then :
8133 printf %s "(cached) " >&6
8134else $as_nop
57aa50d4
TT
8135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8136for as_dir in $PATH
8137do
8138 IFS=$as_save_IFS
54445dc2
TT
8139 case $as_dir in #(((
8140 '') as_dir=./ ;;
8141 */) ;;
8142 *) as_dir=$as_dir/ ;;
8143 esac
8144 # Account for fact that we put trailing slashes in our PATH walk.
8145case $as_dir in #((
8146 ./ | /[cC]/* | \
57aa50d4
TT
8147 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8148 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
8149 /usr/ucb/* ) ;;
8150 *)
8151 # OSF1 and SCO ODT 3.0 have their own names for install.
8152 # Don't use installbsd from OSF since it installs stuff as root
8153 # by default.
8154 for ac_prog in ginstall scoinst install; do
8155 for ac_exec_ext in '' $ac_executable_extensions; do
54445dc2 8156 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
57aa50d4 8157 if test $ac_prog = install &&
54445dc2 8158 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
57aa50d4
TT
8159 # AIX install. It has an incompatible calling convention.
8160 :
8161 elif test $ac_prog = install &&
54445dc2 8162 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
57aa50d4
TT
8163 # program-specific install script used by HP pwplus--don't use.
8164 :
8165 else
8166 rm -rf conftest.one conftest.two conftest.dir
8167 echo one > conftest.one
8168 echo two > conftest.two
8169 mkdir conftest.dir
54445dc2 8170 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
57aa50d4
TT
8171 test -s conftest.one && test -s conftest.two &&
8172 test -s conftest.dir/conftest.one &&
8173 test -s conftest.dir/conftest.two
8174 then
54445dc2 8175 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
57aa50d4
TT
8176 break 3
8177 fi
8178 fi
8179 fi
8180 done
8181 done
8182 ;;
8183esac
8184
8185 done
8186IFS=$as_save_IFS
b0cacab0 8187
57aa50d4 8188rm -rf conftest.one conftest.two conftest.dir
39fd3d4f 8189
93636bde 8190fi
54445dc2 8191 if test ${ac_cv_path_install+y}; then
57aa50d4
TT
8192 INSTALL=$ac_cv_path_install
8193 else
8194 # As a last resort, use the slow shell script. Don't cache a
8195 # value for INSTALL within a source directory, because that will
8196 # break other packages using the cache if that directory is
8197 # removed, or if the value is a relative name.
8198 INSTALL=$ac_install_sh
8199 fi
93636bde 8200fi
54445dc2
TT
8201{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
8202printf "%s\n" "$INSTALL" >&6; }
a64c9c13 8203
57aa50d4
TT
8204# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8205# It thinks the first close brace ends the variable substitution.
8206test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
b0cacab0 8207
57aa50d4 8208test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
a64c9c13 8209
57aa50d4 8210test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
39fd3d4f 8211
54445dc2
TT
8212
8213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
8214printf %s "checking for a race-free mkdir -p... " >&6; }
93613951 8215if test -z "$MKDIR_P"; then
54445dc2
TT
8216 if test ${ac_cv_path_mkdir+y}
8217then :
8218 printf %s "(cached) " >&6
8219else $as_nop
93613951
TT
8220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8221for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
8222do
8223 IFS=$as_save_IFS
54445dc2
TT
8224 case $as_dir in #(((
8225 '') as_dir=./ ;;
8226 */) ;;
8227 *) as_dir=$as_dir/ ;;
8228 esac
93613951
TT
8229 for ac_prog in mkdir gmkdir; do
8230 for ac_exec_ext in '' $ac_executable_extensions; do
54445dc2
TT
8231 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
8232 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
8233 'mkdir ('*'coreutils) '* | \
8234 'BusyBox '* | \
93613951 8235 'mkdir (fileutils) '4.1*)
54445dc2 8236 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
93613951
TT
8237 break 3;;
8238 esac
8239 done
8240 done
8241 done
8242IFS=$as_save_IFS
8243
8244fi
39fd3d4f 8245
93613951 8246 test -d ./--version && rmdir ./--version
54445dc2 8247 if test ${ac_cv_path_mkdir+y}; then
93613951
TT
8248 MKDIR_P="$ac_cv_path_mkdir -p"
8249 else
8250 # As a last resort, use the slow shell script. Don't cache a
8251 # value for MKDIR_P within a source directory, because that will
8252 # break other packages using the cache if that directory is
8253 # removed, or if the value is a relative name.
8254 MKDIR_P="$ac_install_sh -d"
57aa50d4 8255 fi
93613951 8256fi
54445dc2
TT
8257{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
8258printf "%s\n" "$MKDIR_P" >&6; }
93613951 8259
e1052144 8260
54445dc2
TT
8261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
8262printf %s "checking whether NLS is requested... " >&6; }
57aa50d4 8263 # Check whether --enable-nls was given.
54445dc2
TT
8264if test ${enable_nls+y}
8265then :
57aa50d4 8266 enableval=$enable_nls; USE_NLS=$enableval
54445dc2 8267else $as_nop
57aa50d4
TT
8268 USE_NLS=yes
8269fi
b0cacab0 8270
54445dc2
TT
8271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
8272printf "%s\n" "$USE_NLS" >&6; }
93636bde 8273
a64c9c13 8274
a64c9c13 8275
b0cacab0 8276
bdcd5f22 8277 GETTEXT_MACRO_VERSION=0.20
93613951
TT
8278
8279
b0cacab0 8280
a64c9c13 8281
57aa50d4
TT
8282# Prepare PATH_SEPARATOR.
8283# The user is always right.
8284if test "${PATH_SEPARATOR+set}" != set; then
93613951
TT
8285 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8286 # contains only /bin. Note that ksh looks also at the FPATH variable,
8287 # so we have to set that as well for the test.
8288 PATH_SEPARATOR=:
8289 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8290 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8291 || PATH_SEPARATOR=';'
8292 }
57aa50d4 8293fi
b0cacab0 8294
57aa50d4
TT
8295# Find out how to test for executable files. Don't use a zero-byte file,
8296# as systems may use methods other than mode bits to determine executability.
8297cat >conf$$.file <<_ASEOF
8298#! /bin/sh
8299exit 0
8300_ASEOF
8301chmod +x conf$$.file
8302if test -x conf$$.file >/dev/null 2>&1; then
8303 ac_executable_p="test -x"
8304else
8305 ac_executable_p="test -f"
8306fi
8307rm -f conf$$.file
b0cacab0 8308
57aa50d4
TT
8309# Extract the first word of "msgfmt", so it can be a program name with args.
8310set dummy msgfmt; ac_word=$2
54445dc2
TT
8311{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8312printf %s "checking for $ac_word... " >&6; }
8313if test ${ac_cv_path_MSGFMT+y}
8314then :
8315 printf %s "(cached) " >&6
8316else $as_nop
57aa50d4
TT
8317 case "$MSGFMT" in
8318 [\\/]* | ?:[\\/]*)
8319 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
8320 ;;
8321 *)
8322 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
8323 for ac_dir in $PATH; do
8324 IFS="$ac_save_IFS"
8325 test -z "$ac_dir" && ac_dir=.
8326 for ac_exec_ext in '' $ac_executable_extensions; do
8327 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
93613951
TT
8328 echo "$as_me: trying $ac_dir/$ac_word..." >&5
8329 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
57aa50d4
TT
8330 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
8331 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
8332 break 2
8333 fi
8334 fi
8335 done
8336 done
8337 IFS="$ac_save_IFS"
8338 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
8339 ;;
e1052144 8340esac
b0cacab0 8341fi
57aa50d4
TT
8342MSGFMT="$ac_cv_path_MSGFMT"
8343if test "$MSGFMT" != ":"; then
54445dc2
TT
8344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
8345printf "%s\n" "$MSGFMT" >&6; }
57aa50d4 8346else
54445dc2
TT
8347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8348printf "%s\n" "no" >&6; }
b0cacab0 8349fi
a64c9c13 8350
57aa50d4
TT
8351 # Extract the first word of "gmsgfmt", so it can be a program name with args.
8352set dummy gmsgfmt; ac_word=$2
54445dc2
TT
8353{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8354printf %s "checking for $ac_word... " >&6; }
8355if test ${ac_cv_path_GMSGFMT+y}
8356then :
8357 printf %s "(cached) " >&6
8358else $as_nop
57aa50d4
TT
8359 case $GMSGFMT in
8360 [\\/]* | ?:[\\/]*)
8361 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
8362 ;;
8363 *)
8364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8365for as_dir in $PATH
8366do
8367 IFS=$as_save_IFS
54445dc2
TT
8368 case $as_dir in #(((
8369 '') as_dir=./ ;;
8370 */) ;;
8371 *) as_dir=$as_dir/ ;;
8372 esac
57aa50d4 8373 for ac_exec_ext in '' $ac_executable_extensions; do
54445dc2
TT
8374 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8375 ac_cv_path_GMSGFMT="$as_dir$ac_word$ac_exec_ext"
8376 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
57aa50d4
TT
8377 break 2
8378 fi
8379done
8380 done
8381IFS=$as_save_IFS
a64c9c13 8382
57aa50d4
TT
8383 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
8384 ;;
e1052144 8385esac
57aa50d4
TT
8386fi
8387GMSGFMT=$ac_cv_path_GMSGFMT
8388if test -n "$GMSGFMT"; then
54445dc2
TT
8389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
8390printf "%s\n" "$GMSGFMT" >&6; }
b0cacab0 8391else
54445dc2
TT
8392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8393printf "%s\n" "no" >&6; }
b0cacab0 8394fi
e1052144 8395
b0cacab0 8396
b0cacab0 8397
bdcd5f22 8398 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
93613951
TT
8399 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
8400 *) GMSGFMT_015=$GMSGFMT ;;
8401 esac
8402
8403
57aa50d4
TT
8404
8405# Prepare PATH_SEPARATOR.
8406# The user is always right.
8407if test "${PATH_SEPARATOR+set}" != set; then
93613951
TT
8408 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8409 # contains only /bin. Note that ksh looks also at the FPATH variable,
8410 # so we have to set that as well for the test.
8411 PATH_SEPARATOR=:
8412 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8413 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8414 || PATH_SEPARATOR=';'
8415 }
57aa50d4 8416fi
b0cacab0 8417
57aa50d4
TT
8418# Find out how to test for executable files. Don't use a zero-byte file,
8419# as systems may use methods other than mode bits to determine executability.
8420cat >conf$$.file <<_ASEOF
8421#! /bin/sh
8422exit 0
8423_ASEOF
8424chmod +x conf$$.file
8425if test -x conf$$.file >/dev/null 2>&1; then
8426 ac_executable_p="test -x"
8427else
8428 ac_executable_p="test -f"
8429fi
8430rm -f conf$$.file
b0cacab0 8431
57aa50d4
TT
8432# Extract the first word of "xgettext", so it can be a program name with args.
8433set dummy xgettext; ac_word=$2
54445dc2
TT
8434{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8435printf %s "checking for $ac_word... " >&6; }
8436if test ${ac_cv_path_XGETTEXT+y}
8437then :
8438 printf %s "(cached) " >&6
8439else $as_nop
57aa50d4
TT
8440 case "$XGETTEXT" in
8441 [\\/]* | ?:[\\/]*)
8442 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
8443 ;;
8444 *)
8445 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
8446 for ac_dir in $PATH; do
8447 IFS="$ac_save_IFS"
8448 test -z "$ac_dir" && ac_dir=.
8449 for ac_exec_ext in '' $ac_executable_extensions; do
8450 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
93613951
TT
8451 echo "$as_me: trying $ac_dir/$ac_word..." >&5
8452 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
57aa50d4
TT
8453 (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
8454 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
8455 break 2
8456 fi
8457 fi
8458 done
8459 done
8460 IFS="$ac_save_IFS"
8461 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
8462 ;;
e1052144 8463esac
b0cacab0 8464fi
57aa50d4
TT
8465XGETTEXT="$ac_cv_path_XGETTEXT"
8466if test "$XGETTEXT" != ":"; then
54445dc2
TT
8467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
8468printf "%s\n" "$XGETTEXT" >&6; }
57aa50d4 8469else
54445dc2
TT
8470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8471printf "%s\n" "no" >&6; }
b0cacab0 8472fi
b0cacab0 8473
57aa50d4 8474 rm -f messages.po
a64c9c13 8475
93613951
TT
8476 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
8477 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
8478 *) XGETTEXT_015=$XGETTEXT ;;
8479 esac
8480
8481
b0cacab0 8482
57aa50d4
TT
8483# Prepare PATH_SEPARATOR.
8484# The user is always right.
8485if test "${PATH_SEPARATOR+set}" != set; then
93613951
TT
8486 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8487 # contains only /bin. Note that ksh looks also at the FPATH variable,
8488 # so we have to set that as well for the test.
8489 PATH_SEPARATOR=:
8490 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8491 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8492 || PATH_SEPARATOR=';'
8493 }
57aa50d4 8494fi
b0cacab0 8495
57aa50d4
TT
8496# Find out how to test for executable files. Don't use a zero-byte file,
8497# as systems may use methods other than mode bits to determine executability.
8498cat >conf$$.file <<_ASEOF
8499#! /bin/sh
8500exit 0
8501_ASEOF
8502chmod +x conf$$.file
8503if test -x conf$$.file >/dev/null 2>&1; then
8504 ac_executable_p="test -x"
8505else
8506 ac_executable_p="test -f"
8507fi
8508rm -f conf$$.file
8509
8510# Extract the first word of "msgmerge", so it can be a program name with args.
8511set dummy msgmerge; ac_word=$2
54445dc2
TT
8512{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8513printf %s "checking for $ac_word... " >&6; }
8514if test ${ac_cv_path_MSGMERGE+y}
8515then :
8516 printf %s "(cached) " >&6
8517else $as_nop
57aa50d4
TT
8518 case "$MSGMERGE" in
8519 [\\/]* | ?:[\\/]*)
8520 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
8521 ;;
8522 *)
8523 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
8524 for ac_dir in $PATH; do
8525 IFS="$ac_save_IFS"
8526 test -z "$ac_dir" && ac_dir=.
8527 for ac_exec_ext in '' $ac_executable_extensions; do
8528 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
93613951
TT
8529 echo "$as_me: trying $ac_dir/$ac_word..." >&5
8530 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
57aa50d4
TT
8531 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
8532 break 2
8533 fi
8534 fi
8535 done
8536 done
8537 IFS="$ac_save_IFS"
8538 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
8539 ;;
e1052144 8540esac
57aa50d4
TT
8541fi
8542MSGMERGE="$ac_cv_path_MSGMERGE"
8543if test "$MSGMERGE" != ":"; then
54445dc2
TT
8544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
8545printf "%s\n" "$MSGMERGE" >&6; }
b0cacab0 8546else
54445dc2
TT
8547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8548printf "%s\n" "no" >&6; }
b0cacab0 8549fi
e1052144 8550
93636bde 8551
bdcd5f22
TT
8552 if LC_ALL=C $MSGMERGE --help | grep ' --for-msgfmt ' >/dev/null; then
8553 MSGMERGE_FOR_MSGFMT_OPTION='--for-msgfmt'
8554 else
8555 if LC_ALL=C $MSGMERGE --help | grep ' --no-fuzzy-matching ' >/dev/null; then
8556 MSGMERGE_FOR_MSGFMT_OPTION='--no-fuzzy-matching --no-location --quiet'
8557 else
8558 MSGMERGE_FOR_MSGFMT_OPTION='--no-location --quiet'
8559 fi
8560 fi
93613951
TT
8561
8562
8563 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
8564
8565
8566 ac_config_commands="$ac_config_commands po-directories"
a64c9c13 8567
a64c9c13 8568
93613951 8569
e598c29b
TT
8570 if test "X$prefix" = "XNONE"; then
8571 acl_final_prefix="$ac_default_prefix"
8572 else
8573 acl_final_prefix="$prefix"
8574 fi
8575 if test "X$exec_prefix" = "XNONE"; then
8576 acl_final_exec_prefix='${prefix}'
8577 else
8578 acl_final_exec_prefix="$exec_prefix"
8579 fi
8580 acl_save_prefix="$prefix"
8581 prefix="$acl_final_prefix"
8582 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
8583 prefix="$acl_save_prefix"
93613951 8584
93613951 8585
e598c29b
TT
8586
8587# Check whether --with-gnu-ld was given.
54445dc2
TT
8588if test ${with_gnu_ld+y}
8589then :
e598c29b 8590 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
54445dc2 8591else $as_nop
e598c29b 8592 with_gnu_ld=no
93613951 8593fi
a64c9c13 8594
e598c29b
TT
8595# Prepare PATH_SEPARATOR.
8596# The user is always right.
8597if test "${PATH_SEPARATOR+set}" != set; then
8598 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
8599 # contains only /bin. Note that ksh looks also at the FPATH variable,
8600 # so we have to set that as well for the test.
8601 PATH_SEPARATOR=:
8602 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8603 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
8604 || PATH_SEPARATOR=';'
8605 }
d1154eb4
TT
8606fi
8607
bdcd5f22 8608if test -n "$LD"; then
54445dc2
TT
8609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld" >&5
8610printf %s "checking for ld... " >&6; }
bdcd5f22 8611elif test "$GCC" = yes; then
54445dc2
TT
8612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8613printf %s "checking for ld used by $CC... " >&6; }
e598c29b 8614elif test "$with_gnu_ld" = yes; then
54445dc2
TT
8615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8616printf %s "checking for GNU ld... " >&6; }
e598c29b 8617else
54445dc2
TT
8618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8619printf %s "checking for non-GNU ld... " >&6; }
d1154eb4 8620fi
bdcd5f22
TT
8621if test -n "$LD"; then
8622 # Let the user override the test with a path.
8623 :
8624else
54445dc2
TT
8625 if test ${acl_cv_path_LD+y}
8626then :
8627 printf %s "(cached) " >&6
8628else $as_nop
bdcd5f22
TT
8629
8630 acl_cv_path_LD= # Final result of this test
8631 ac_prog=ld # Program to search in $PATH
8632 if test "$GCC" = yes; then
8633 # Check if gcc -print-prog-name=ld gives a path.
8634 case $host in
8635 *-*-mingw*)
8636 # gcc leaves a trailing carriage return which upsets mingw
8637 acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8638 *)
8639 acl_output=`($CC -print-prog-name=ld) 2>&5` ;;
8640 esac
8641 case $acl_output in
8642 # Accept absolute paths.
8643 [\\/]* | ?:[\\/]*)
8644 re_direlt='/[^/][^/]*/\.\./'
8645 # Canonicalize the pathname of ld
8646 acl_output=`echo "$acl_output" | sed 's%\\\\%/%g'`
8647 while echo "$acl_output" | grep "$re_direlt" > /dev/null 2>&1; do
8648 acl_output=`echo $acl_output | sed "s%$re_direlt%/%"`
8649 done
8650 # Got the pathname. No search in PATH is needed.
8651 acl_cv_path_LD="$acl_output"
8652 ac_prog=
8653 ;;
8654 "")
8655 # If it fails, then pretend we aren't using GCC.
8656 ;;
8657 *)
8658 # If it is relative, then search for the first ld in PATH.
8659 with_gnu_ld=unknown
8660 ;;
e598c29b
TT
8661 esac
8662 fi
bdcd5f22
TT
8663 if test -n "$ac_prog"; then
8664 # Search for $ac_prog in $PATH.
8665 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8666 for ac_dir in $PATH; do
8667 IFS="$acl_save_ifs"
8668 test -z "$ac_dir" && ac_dir=.
8669 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8670 acl_cv_path_LD="$ac_dir/$ac_prog"
8671 # Check to see if the program is GNU ld. I'd rather use --version,
8672 # but apparently some variants of GNU ld only accept -v.
8673 # Break only if it was the GNU/non-GNU ld that we prefer.
8674 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
8675 *GNU* | *'with BFD'*)
8676 test "$with_gnu_ld" != no && break
8677 ;;
8678 *)
8679 test "$with_gnu_ld" != yes && break
8680 ;;
8681 esac
8682 fi
8683 done
8684 IFS="$acl_save_ifs"
8685 fi
8686 case $host in
8687 *-*-aix*)
8688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8689/* end confdefs.h. */
a30e56b9 8690#if defined __powerpc64__ || defined _ARCH_PPC64
bdcd5f22
TT
8691 int ok;
8692 #else
8693 error fail
8694 #endif
8695
8696_ACEOF
54445dc2
TT
8697if ac_fn_c_try_compile "$LINENO"
8698then :
bdcd5f22
TT
8699 # The compiler produces 64-bit code. Add option '-b64' so that the
8700 # linker groks 64-bit object files.
8701 case "$acl_cv_path_LD " in
8702 *" -b64 "*) ;;
8703 *) acl_cv_path_LD="$acl_cv_path_LD -b64" ;;
8704 esac
8705
8706fi
54445dc2 8707rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
bdcd5f22
TT
8708 ;;
8709 sparc64-*-netbsd*)
8710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8711/* end confdefs.h. */
8712#if defined __sparcv9 || defined __arch64__
8713 int ok;
8714 #else
8715 error fail
8716 #endif
8717
8718_ACEOF
54445dc2
TT
8719if ac_fn_c_try_compile "$LINENO"
8720then :
bdcd5f22 8721
54445dc2 8722else $as_nop
bdcd5f22
TT
8723 # The compiler produces 32-bit code. Add option '-m elf32_sparc'
8724 # so that the linker groks 32-bit object files.
8725 case "$acl_cv_path_LD " in
8726 *" -m elf32_sparc "*) ;;
8727 *) acl_cv_path_LD="$acl_cv_path_LD -m elf32_sparc" ;;
8728 esac
8729
d1154eb4 8730fi
54445dc2 8731rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
bdcd5f22
TT
8732 ;;
8733 esac
8734
d1154eb4 8735fi
e598c29b 8736
bdcd5f22
TT
8737 LD="$acl_cv_path_LD"
8738fi
e598c29b 8739if test -n "$LD"; then
54445dc2
TT
8740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8741printf "%s\n" "$LD" >&6; }
d1154eb4 8742else
54445dc2
TT
8743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8744printf "%s\n" "no" >&6; }
bdcd5f22 8745 as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
d1154eb4 8746fi
54445dc2
TT
8747{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8748printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
8749if test ${acl_cv_prog_gnu_ld+y}
8750then :
8751 printf %s "(cached) " >&6
8752else $as_nop
e598c29b
TT
8753 # I'd rather use --version here, but apparently some GNU lds only accept -v.
8754case `$LD -v 2>&1 </dev/null` in
8755*GNU* | *'with BFD'*)
8756 acl_cv_prog_gnu_ld=yes
8757 ;;
8758*)
8759 acl_cv_prog_gnu_ld=no
8760 ;;
8761esac
8762fi
54445dc2
TT
8763{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
8764printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; }
e598c29b 8765with_gnu_ld=$acl_cv_prog_gnu_ld
93613951 8766
d1154eb4 8767
93613951 8768
d1154eb4 8769
54445dc2
TT
8770
8771
8772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
8773printf %s "checking for shared library run path origin... " >&6; }
8774if test ${acl_cv_rpath+y}
8775then :
8776 printf %s "(cached) " >&6
8777else $as_nop
d1154eb4 8778
e598c29b
TT
8779 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
8780 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
8781 . ./conftest.sh
8782 rm -f ./conftest.sh
8783 acl_cv_rpath=done
d1154eb4 8784
93613951 8785fi
54445dc2
TT
8786{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
8787printf "%s\n" "$acl_cv_rpath" >&6; }
e598c29b
TT
8788 wl="$acl_cv_wl"
8789 acl_libext="$acl_cv_libext"
8790 acl_shlibext="$acl_cv_shlibext"
8791 acl_libname_spec="$acl_cv_libname_spec"
8792 acl_library_names_spec="$acl_cv_library_names_spec"
8793 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
8794 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
8795 acl_hardcode_direct="$acl_cv_hardcode_direct"
8796 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
8797 # Check whether --enable-rpath was given.
54445dc2
TT
8798if test ${enable_rpath+y}
8799then :
e598c29b 8800 enableval=$enable_rpath; :
54445dc2 8801else $as_nop
e598c29b 8802 enable_rpath=yes
93613951 8803fi
d1154eb4 8804
d1154eb4
TT
8805
8806
93613951 8807
54445dc2
TT
8808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking 32-bit host C ABI" >&5
8809printf %s "checking 32-bit host C ABI... " >&6; }
8810if test ${gl_cv_host_cpu_c_abi_32bit+y}
8811then :
8812 printf %s "(cached) " >&6
8813else $as_nop
bdcd5f22
TT
8814 if test -n "$gl_cv_host_cpu_c_abi"; then
8815 case "$gl_cv_host_cpu_c_abi" in
8816 i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc)
8817 gl_cv_host_cpu_c_abi_32bit=yes ;;
8818 x86_64 | alpha | arm64 | hppa64 | ia64 | mips64 | powerpc64 | powerpc64-elfv2 | riscv*-lp64* | s390x | sparc64 )
8819 gl_cv_host_cpu_c_abi_32bit=no ;;
8820 *)
8821 gl_cv_host_cpu_c_abi_32bit=unknown ;;
8822 esac
8823 else
8824 case "$host_cpu" in
8825
8826 # CPUs that only support a 32-bit ABI.
8827 arc \
8828 | bfin \
8829 | cris* \
8830 | csky \
8831 | epiphany \
8832 | ft32 \
8833 | h8300 \
8834 | m68k \
8835 | microblaze | microblazeel \
8836 | nds32 | nds32le | nds32be \
8837 | nios2 | nios2eb | nios2el \
8838 | or1k* \
8839 | or32 \
8840 | sh | sh1234 | sh1234elb \
8841 | tic6x \
8842 | xtensa* )
8843 gl_cv_host_cpu_c_abi_32bit=yes
8844 ;;
8845
8846 # CPUs that only support a 64-bit ABI.
8847 alpha | alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] \
8848 | mmix )
8849 gl_cv_host_cpu_c_abi_32bit=no
8850 ;;
8851
8852 i[34567]86 )
8853 gl_cv_host_cpu_c_abi_32bit=yes
8854 ;;
8855
8856 x86_64 )
8857 # On x86_64 systems, the C compiler may be generating code in one of
8858 # these ABIs:
8859 # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64.
8860 # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64
8861 # with native Windows (mingw, MSVC).
8862 # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32.
8863 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386.
8864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d1154eb4 8865/* end confdefs.h. */
bdcd5f22
TT
8866#if (defined __x86_64__ || defined __amd64__ \
8867 || defined _M_X64 || defined _M_AMD64) \
8868 && !(defined __ILP32__ || defined _ILP32)
8869 int ok;
8870 #else
8871 error fail
8872 #endif
e598c29b 8873
bdcd5f22 8874_ACEOF
54445dc2
TT
8875if ac_fn_c_try_compile "$LINENO"
8876then :
bdcd5f22 8877 gl_cv_host_cpu_c_abi_32bit=no
54445dc2 8878else $as_nop
bdcd5f22
TT
8879 gl_cv_host_cpu_c_abi_32bit=yes
8880fi
54445dc2 8881rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
bdcd5f22
TT
8882 ;;
8883
8884 arm* | aarch64 )
8885 # Assume arm with EABI.
8886 # On arm64 systems, the C compiler may be generating code in one of
8887 # these ABIs:
8888 # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64.
8889 # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32.
8890 # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf.
8891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8892/* end confdefs.h. */
8893#if defined __aarch64__ && !(defined __ILP32__ || defined _ILP32)
8894 int ok;
8895 #else
8896 error fail
8897 #endif
8898
8899_ACEOF
54445dc2
TT
8900if ac_fn_c_try_compile "$LINENO"
8901then :
bdcd5f22 8902 gl_cv_host_cpu_c_abi_32bit=no
54445dc2 8903else $as_nop
bdcd5f22
TT
8904 gl_cv_host_cpu_c_abi_32bit=yes
8905fi
54445dc2 8906rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
bdcd5f22
TT
8907 ;;
8908
8909 hppa1.0 | hppa1.1 | hppa2.0* | hppa64 )
8910 # On hppa, the C compiler may be generating 32-bit code or 64-bit
8911 # code. In the latter case, it defines _LP64 and __LP64__.
8912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8913/* end confdefs.h. */
8914#ifdef __LP64__
8915 int ok;
8916 #else
8917 error fail
8918 #endif
8919
8920_ACEOF
54445dc2
TT
8921if ac_fn_c_try_compile "$LINENO"
8922then :
bdcd5f22 8923 gl_cv_host_cpu_c_abi_32bit=no
54445dc2 8924else $as_nop
bdcd5f22
TT
8925 gl_cv_host_cpu_c_abi_32bit=yes
8926fi
54445dc2 8927rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
bdcd5f22
TT
8928 ;;
8929
8930 ia64* )
8931 # On ia64 on HP-UX, the C compiler may be generating 64-bit code or
8932 # 32-bit code. In the latter case, it defines _ILP32.
8933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8934/* end confdefs.h. */
8935#ifdef _ILP32
8936 int ok;
8937 #else
8938 error fail
8939 #endif
8940
8941_ACEOF
54445dc2
TT
8942if ac_fn_c_try_compile "$LINENO"
8943then :
bdcd5f22 8944 gl_cv_host_cpu_c_abi_32bit=yes
54445dc2 8945else $as_nop
bdcd5f22
TT
8946 gl_cv_host_cpu_c_abi_32bit=no
8947fi
54445dc2 8948rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
bdcd5f22
TT
8949 ;;
8950
8951 mips* )
8952 # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this
8953 # at 32.
8954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8955/* end confdefs.h. */
8956#if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64)
8957 int ok;
8958 #else
8959 error fail
8960 #endif
8961
8962_ACEOF
54445dc2
TT
8963if ac_fn_c_try_compile "$LINENO"
8964then :
bdcd5f22 8965 gl_cv_host_cpu_c_abi_32bit=no
54445dc2 8966else $as_nop
bdcd5f22
TT
8967 gl_cv_host_cpu_c_abi_32bit=yes
8968fi
54445dc2 8969rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
bdcd5f22
TT
8970 ;;
8971
8972 powerpc* )
8973 # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD.
8974 # No need to distinguish them here; the caller may distinguish
8975 # them based on the OS.
8976 # On powerpc64 systems, the C compiler may still be generating
8977 # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may
8978 # be generating 64-bit code.
8979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8980/* end confdefs.h. */
a30e56b9 8981#if defined __powerpc64__ || defined _ARCH_PPC64
bdcd5f22
TT
8982 int ok;
8983 #else
8984 error fail
8985 #endif
8986
8987_ACEOF
54445dc2
TT
8988if ac_fn_c_try_compile "$LINENO"
8989then :
bdcd5f22 8990 gl_cv_host_cpu_c_abi_32bit=no
54445dc2 8991else $as_nop
bdcd5f22
TT
8992 gl_cv_host_cpu_c_abi_32bit=yes
8993fi
54445dc2 8994rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
bdcd5f22
TT
8995 ;;
8996
8997 rs6000 )
8998 gl_cv_host_cpu_c_abi_32bit=yes
8999 ;;
9000
9001 riscv32 | riscv64 )
9002 # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d.
9003 # Size of 'long' and 'void *':
9004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9005/* end confdefs.h. */
9006#if defined __LP64__
9007 int ok;
9008 #else
9009 error fail
9010 #endif
9011
9012_ACEOF
54445dc2
TT
9013if ac_fn_c_try_compile "$LINENO"
9014then :
bdcd5f22 9015 gl_cv_host_cpu_c_abi_32bit=no
54445dc2 9016else $as_nop
bdcd5f22
TT
9017 gl_cv_host_cpu_c_abi_32bit=yes
9018fi
54445dc2 9019rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
bdcd5f22
TT
9020 ;;
9021
9022 s390* )
9023 # On s390x, the C compiler may be generating 64-bit (= s390x) code
9024 # or 31-bit (= s390) code.
9025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9026/* end confdefs.h. */
9027#if defined __LP64__ || defined __s390x__
9028 int ok;
9029 #else
9030 error fail
9031 #endif
9032
9033_ACEOF
54445dc2
TT
9034if ac_fn_c_try_compile "$LINENO"
9035then :
bdcd5f22 9036 gl_cv_host_cpu_c_abi_32bit=no
54445dc2 9037else $as_nop
bdcd5f22
TT
9038 gl_cv_host_cpu_c_abi_32bit=yes
9039fi
54445dc2 9040rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
bdcd5f22
TT
9041 ;;
9042
9043 sparc | sparc64 )
9044 # UltraSPARCs running Linux have `uname -m` = "sparc64", but the
9045 # C compiler still generates 32-bit code.
9046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9047/* end confdefs.h. */
9048#if defined __sparcv9 || defined __arch64__
9049 int ok;
9050 #else
9051 error fail
9052 #endif
9053
9054_ACEOF
54445dc2
TT
9055if ac_fn_c_try_compile "$LINENO"
9056then :
bdcd5f22 9057 gl_cv_host_cpu_c_abi_32bit=no
54445dc2 9058else $as_nop
bdcd5f22
TT
9059 gl_cv_host_cpu_c_abi_32bit=yes
9060fi
54445dc2 9061rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
bdcd5f22
TT
9062 ;;
9063
9064 *)
9065 gl_cv_host_cpu_c_abi_32bit=unknown
9066 ;;
9067 esac
9068 fi
9069
9070fi
54445dc2
TT
9071{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi_32bit" >&5
9072printf "%s\n" "$gl_cv_host_cpu_c_abi_32bit" >&6; }
bdcd5f22
TT
9073
9074 HOST_CPU_C_ABI_32BIT="$gl_cv_host_cpu_c_abi_32bit"
9075
9076
9077
9078
9079
54445dc2
TT
9080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ELF binary format" >&5
9081printf %s "checking for ELF binary format... " >&6; }
9082if test ${gl_cv_elf+y}
9083then :
9084 printf %s "(cached) " >&6
9085else $as_nop
bdcd5f22
TT
9086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9087/* end confdefs.h. */
a30e56b9 9088#ifdef __ELF__
bdcd5f22
TT
9089 Extensible Linking Format
9090 #endif
d1154eb4 9091
d1154eb4 9092_ACEOF
e598c29b 9093if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
54445dc2
TT
9094 $EGREP "Extensible Linking Format" >/dev/null 2>&1
9095then :
bdcd5f22 9096 gl_cv_elf=yes
54445dc2 9097else $as_nop
bdcd5f22 9098 gl_cv_elf=no
57aa50d4 9099fi
54445dc2 9100rm -rf conftest*
d1154eb4 9101
d1154eb4 9102
e598c29b 9103fi
54445dc2
TT
9104{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_elf" >&5
9105printf "%s\n" "$gl_cv_elf" >&6; }
a30e56b9 9106 if test $gl_cv_elf; then
bdcd5f22
TT
9107 # Extract the ELF class of a file (5th byte) in decimal.
9108 # Cf. https://en.wikipedia.org/wiki/Executable_and_Linkable_Format#File_header
9109 if od -A x < /dev/null >/dev/null 2>/dev/null; then
9110 # Use POSIX od.
9111 func_elfclass ()
9112 {
9113 od -A n -t d1 -j 4 -N 1
9114 }
9115 else
9116 # Use BSD hexdump.
9117 func_elfclass ()
9118 {
9119 dd bs=1 count=1 skip=4 2>/dev/null | hexdump -e '1/1 "%3d "'
9120 echo
9121 }
9122 fi
9123 case $HOST_CPU_C_ABI_32BIT in
9124 yes)
9125 # 32-bit ABI.
9126 acl_is_expected_elfclass ()
9127 {
a30e56b9 9128 test "`func_elfclass | sed -e 's/[ ]//g'`" = 1
bdcd5f22
TT
9129 }
9130 ;;
9131 no)
9132 # 64-bit ABI.
9133 acl_is_expected_elfclass ()
9134 {
a30e56b9 9135 test "`func_elfclass | sed -e 's/[ ]//g'`" = 2
bdcd5f22
TT
9136 }
9137 ;;
9138 *)
9139 # Unknown.
9140 acl_is_expected_elfclass ()
9141 {
9142 :
9143 }
9144 ;;
9145 esac
9146 else
9147 acl_is_expected_elfclass ()
9148 {
9149 :
9150 }
9151 fi
d1154eb4 9152
54445dc2
TT
9153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the common suffixes of directories in the library search path" >&5
9154printf %s "checking for the common suffixes of directories in the library search path... " >&6; }
9155if test ${acl_cv_libdirstems+y}
9156then :
9157 printf %s "(cached) " >&6
9158else $as_nop
bdcd5f22
TT
9159 acl_libdirstem=lib
9160 acl_libdirstem2=
9161 acl_libdirstem3=
9162 case "$host_os" in
9163 solaris*)
9164 if test $HOST_CPU_C_ABI_32BIT = no; then
9165 acl_libdirstem2=lib/64
9166 case "$host_cpu" in
9167 sparc*) acl_libdirstem3=lib/sparcv9 ;;
9168 i*86 | x86_64) acl_libdirstem3=lib/amd64 ;;
9169 esac
9170 fi
9171 ;;
9172 *)
9173 searchpath=`(LC_ALL=C $CC $CPPFLAGS $CFLAGS -print-search-dirs) 2>/dev/null \
9174 | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
9175 if test $HOST_CPU_C_ABI_32BIT != no; then
9176 # 32-bit or unknown ABI.
9177 if test -d /usr/lib32; then
9178 acl_libdirstem2=lib32
9179 fi
9180 fi
9181 if test $HOST_CPU_C_ABI_32BIT != yes; then
9182 # 64-bit or unknown ABI.
9183 if test -d /usr/lib64; then
9184 acl_libdirstem3=lib64
9185 fi
9186 fi
9187 if test -n "$searchpath"; then
9188 acl_save_IFS="${IFS= }"; IFS=":"
9189 for searchdir in $searchpath; do
9190 if test -d "$searchdir"; then
9191 case "$searchdir" in
9192 */lib32/ | */lib32 ) acl_libdirstem2=lib32 ;;
9193 */lib64/ | */lib64 ) acl_libdirstem3=lib64 ;;
9194 */../ | */.. )
9195 # Better ignore directories of this form. They are misleading.
9196 ;;
9197 *) searchdir=`cd "$searchdir" && pwd`
9198 case "$searchdir" in
9199 */lib32 ) acl_libdirstem2=lib32 ;;
9200 */lib64 ) acl_libdirstem3=lib64 ;;
9201 esac ;;
9202 esac
9203 fi
9204 done
9205 IFS="$acl_save_IFS"
9206 if test $HOST_CPU_C_ABI_32BIT = yes; then
9207 # 32-bit ABI.
9208 acl_libdirstem3=
9209 fi
9210 if test $HOST_CPU_C_ABI_32BIT = no; then
9211 # 64-bit ABI.
9212 acl_libdirstem2=
9213 fi
9214 fi
9215 ;;
9216 esac
9217 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
9218 test -n "$acl_libdirstem3" || acl_libdirstem3="$acl_libdirstem"
9219 acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2,$acl_libdirstem3"
9220
9221fi
54445dc2
TT
9222{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libdirstems" >&5
9223printf "%s\n" "$acl_cv_libdirstems" >&6; }
bdcd5f22
TT
9224 acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'`
9225 acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,//' -e 's/,.*//'`
9226 acl_libdirstem3=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,[^,]*,//' -e 's/,.*//'`
d1154eb4 9227
d1154eb4 9228
b0cacab0
TT
9229
9230
9231
b0cacab0
TT
9232
9233
9234
57aa50d4 9235
57aa50d4 9236
b0cacab0 9237
e598c29b 9238 use_additional=yes
b0cacab0 9239
e598c29b
TT
9240 acl_save_prefix="$prefix"
9241 prefix="$acl_final_prefix"
9242 acl_save_exec_prefix="$exec_prefix"
9243 exec_prefix="$acl_final_exec_prefix"
57aa50d4 9244
e598c29b
TT
9245 eval additional_includedir=\"$includedir\"
9246 eval additional_libdir=\"$libdir\"
bdcd5f22
TT
9247 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
9248 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
57aa50d4 9249
e598c29b
TT
9250 exec_prefix="$acl_save_exec_prefix"
9251 prefix="$acl_save_prefix"
57aa50d4 9252
b0cacab0 9253
e598c29b 9254# Check whether --with-libiconv-prefix was given.
54445dc2
TT
9255if test ${with_libiconv_prefix+y}
9256then :
e598c29b
TT
9257 withval=$with_libiconv_prefix;
9258 if test "X$withval" = "Xno"; then
9259 use_additional=no
9260 else
9261 if test "X$withval" = "X"; then
57aa50d4 9262
e598c29b
TT
9263 acl_save_prefix="$prefix"
9264 prefix="$acl_final_prefix"
9265 acl_save_exec_prefix="$exec_prefix"
9266 exec_prefix="$acl_final_exec_prefix"
57aa50d4 9267
e598c29b
TT
9268 eval additional_includedir=\"$includedir\"
9269 eval additional_libdir=\"$libdir\"
bdcd5f22
TT
9270 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
9271 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
57aa50d4 9272
e598c29b
TT
9273 exec_prefix="$acl_save_exec_prefix"
9274 prefix="$acl_save_prefix"
b0cacab0 9275
e598c29b
TT
9276 else
9277 additional_includedir="$withval/include"
9278 additional_libdir="$withval/$acl_libdirstem"
bdcd5f22
TT
9279 additional_libdir2="$withval/$acl_libdirstem2"
9280 additional_libdir3="$withval/$acl_libdirstem3"
e598c29b
TT
9281 fi
9282 fi
d1154eb4
TT
9283
9284fi
e1052144 9285
bdcd5f22
TT
9286 if test "X$additional_libdir2" = "X$additional_libdir"; then
9287 additional_libdir2=
9288 fi
9289 if test "X$additional_libdir3" = "X$additional_libdir"; then
9290 additional_libdir3=
9291 fi
e598c29b
TT
9292 LIBICONV=
9293 LTLIBICONV=
9294 INCICONV=
9295 LIBICONV_PREFIX=
9296 HAVE_LIBICONV=
9297 rpathdirs=
9298 ltrpathdirs=
9299 names_already_handled=
9300 names_next_round='iconv '
9301 while test -n "$names_next_round"; do
9302 names_this_round="$names_next_round"
9303 names_next_round=
9304 for name in $names_this_round; do
9305 already_handled=
9306 for n in $names_already_handled; do
9307 if test "$n" = "$name"; then
9308 already_handled=yes
9309 break
9310 fi
9311 done
9312 if test -z "$already_handled"; then
9313 names_already_handled="$names_already_handled $name"
9314 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
9315 eval value=\"\$HAVE_LIB$uppername\"
9316 if test -n "$value"; then
9317 if test "$value" = yes; then
9318 eval value=\"\$LIB$uppername\"
9319 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
9320 eval value=\"\$LTLIB$uppername\"
9321 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
9322 else
9323 :
9324 fi
9325 else
9326 found_dir=
9327 found_la=
9328 found_so=
9329 found_a=
9330 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
9331 if test -n "$acl_shlibext"; then
9332 shrext=".$acl_shlibext" # typically: shrext=.so
9333 else
9334 shrext=
9335 fi
9336 if test $use_additional = yes; then
bdcd5f22
TT
9337 for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
9338 if test "X$found_dir" = "X"; then
9339 eval dir=\$$additional_libdir_variable
9340 if test -n "$dir"; then
9341 if test -n "$acl_shlibext"; then
9342 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
9343 found_dir="$dir"
9344 found_so="$dir/$libname$shrext"
9345 else
9346 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9347 ver=`(cd "$dir" && \
9348 for f in "$libname$shrext".*; do echo "$f"; done \
9349 | sed -e "s,^$libname$shrext\\\\.,," \
9350 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9351 | sed 1q ) 2>/dev/null`
9352 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
9353 found_dir="$dir"
9354 found_so="$dir/$libname$shrext.$ver"
9355 fi
9356 else
9357 eval library_names=\"$acl_library_names_spec\"
9358 for f in $library_names; do
9359 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
9360 found_dir="$dir"
9361 found_so="$dir/$f"
9362 break
9363 fi
9364 done
9365 fi
9366 fi
e598c29b 9367 fi
bdcd5f22
TT
9368 if test "X$found_dir" = "X"; then
9369 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
e598c29b 9370 found_dir="$dir"
bdcd5f22 9371 found_a="$dir/$libname.$acl_libext"
e598c29b 9372 fi
bdcd5f22
TT
9373 fi
9374 if test "X$found_dir" != "X"; then
9375 if test -f "$dir/$libname.la"; then
9376 found_la="$dir/$libname.la"
9377 fi
9378 fi
e598c29b
TT
9379 fi
9380 fi
bdcd5f22 9381 done
e598c29b
TT
9382 fi
9383 if test "X$found_dir" = "X"; then
9384 for x in $LDFLAGS $LTLIBICONV; do
07a0db15 9385
e598c29b
TT
9386 acl_save_prefix="$prefix"
9387 prefix="$acl_final_prefix"
9388 acl_save_exec_prefix="$exec_prefix"
9389 exec_prefix="$acl_final_exec_prefix"
9390 eval x=\"$x\"
9391 exec_prefix="$acl_save_exec_prefix"
9392 prefix="$acl_save_prefix"
50e1e10f 9393
e598c29b
TT
9394 case "$x" in
9395 -L*)
9396 dir=`echo "X$x" | sed -e 's/^X-L//'`
9397 if test -n "$acl_shlibext"; then
bdcd5f22 9398 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
e598c29b
TT
9399 found_dir="$dir"
9400 found_so="$dir/$libname$shrext"
9401 else
9402 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
9403 ver=`(cd "$dir" && \
9404 for f in "$libname$shrext".*; do echo "$f"; done \
9405 | sed -e "s,^$libname$shrext\\\\.,," \
9406 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
9407 | sed 1q ) 2>/dev/null`
bdcd5f22 9408 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
e598c29b
TT
9409 found_dir="$dir"
9410 found_so="$dir/$libname$shrext.$ver"
9411 fi
9412 else
9413 eval library_names=\"$acl_library_names_spec\"
9414 for f in $library_names; do
bdcd5f22 9415 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
e598c29b
TT
9416 found_dir="$dir"
9417 found_so="$dir/$f"
9418 break
9419 fi
9420 done
9421 fi
9422 fi
9423 fi
9424 if test "X$found_dir" = "X"; then
bdcd5f22 9425 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
e598c29b
TT
9426 found_dir="$dir"
9427 found_a="$dir/$libname.$acl_libext"
9428 fi
9429 fi
9430 if test "X$found_dir" != "X"; then
9431 if test -f "$dir/$libname.la"; then
9432 found_la="$dir/$libname.la"
9433 fi
9434 fi
9435 ;;
9436 esac
9437 if test "X$found_dir" != "X"; then
9438 break
9439 fi
9440 done
9441 fi
9442 if test "X$found_dir" != "X"; then
9443 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9444 if test "X$found_so" != "X"; then
9445 if test "$enable_rpath" = no \
9446 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
bdcd5f22
TT
9447 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
9448 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
e598c29b
TT
9449 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9450 else
9451 haveit=
9452 for x in $ltrpathdirs; do
9453 if test "X$x" = "X$found_dir"; then
9454 haveit=yes
9455 break
9456 fi
9457 done
9458 if test -z "$haveit"; then
9459 ltrpathdirs="$ltrpathdirs $found_dir"
9460 fi
9461 if test "$acl_hardcode_direct" = yes; then
9462 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9463 else
9464 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
9465 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9466 haveit=
9467 for x in $rpathdirs; do
9468 if test "X$x" = "X$found_dir"; then
9469 haveit=yes
9470 break
9471 fi
9472 done
9473 if test -z "$haveit"; then
9474 rpathdirs="$rpathdirs $found_dir"
9475 fi
9476 else
9477 haveit=
9478 for x in $LDFLAGS $LIBICONV; do
93613951 9479
e598c29b
TT
9480 acl_save_prefix="$prefix"
9481 prefix="$acl_final_prefix"
9482 acl_save_exec_prefix="$exec_prefix"
9483 exec_prefix="$acl_final_exec_prefix"
9484 eval x=\"$x\"
9485 exec_prefix="$acl_save_exec_prefix"
9486 prefix="$acl_save_prefix"
b0cacab0 9487
e598c29b
TT
9488 if test "X$x" = "X-L$found_dir"; then
9489 haveit=yes
9490 break
9491 fi
9492 done
9493 if test -z "$haveit"; then
9494 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9495 fi
9496 if test "$acl_hardcode_minus_L" != no; then
9497 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9498 else
9499 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9500 fi
9501 fi
9502 fi
9503 fi
9504 else
9505 if test "X$found_a" != "X"; then
9506 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9507 else
9508 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9509 fi
9510 fi
9511 additional_includedir=
9512 case "$found_dir" in
9513 */$acl_libdirstem | */$acl_libdirstem/)
9514 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9515 if test "$name" = 'iconv'; then
9516 LIBICONV_PREFIX="$basedir"
9517 fi
9518 additional_includedir="$basedir/include"
9519 ;;
9520 */$acl_libdirstem2 | */$acl_libdirstem2/)
9521 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9522 if test "$name" = 'iconv'; then
9523 LIBICONV_PREFIX="$basedir"
9524 fi
9525 additional_includedir="$basedir/include"
9526 ;;
bdcd5f22
TT
9527 */$acl_libdirstem3 | */$acl_libdirstem3/)
9528 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
9529 if test "$name" = 'iconv'; then
9530 LIBICONV_PREFIX="$basedir"
9531 fi
9532 additional_includedir="$basedir/include"
9533 ;;
e598c29b
TT
9534 esac
9535 if test "X$additional_includedir" != "X"; then
9536 if test "X$additional_includedir" != "X/usr/include"; then
9537 haveit=
9538 if test "X$additional_includedir" = "X/usr/local/include"; then
9539 if test -n "$GCC"; then
9540 case $host_os in
9541 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9542 esac
9543 fi
9544 fi
9545 if test -z "$haveit"; then
9546 for x in $CPPFLAGS $INCICONV; do
93613951 9547
e598c29b
TT
9548 acl_save_prefix="$prefix"
9549 prefix="$acl_final_prefix"
9550 acl_save_exec_prefix="$exec_prefix"
9551 exec_prefix="$acl_final_exec_prefix"
9552 eval x=\"$x\"
9553 exec_prefix="$acl_save_exec_prefix"
9554 prefix="$acl_save_prefix"
93613951 9555
e598c29b
TT
9556 if test "X$x" = "X-I$additional_includedir"; then
9557 haveit=yes
9558 break
9559 fi
9560 done
9561 if test -z "$haveit"; then
9562 if test -d "$additional_includedir"; then
9563 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9564 fi
9565 fi
9566 fi
9567 fi
9568 fi
9569 if test -n "$found_la"; then
9570 save_libdir="$libdir"
9571 case "$found_la" in
9572 */* | *\\*) . "$found_la" ;;
9573 *) . "./$found_la" ;;
9574 esac
9575 libdir="$save_libdir"
9576 for dep in $dependency_libs; do
9577 case "$dep" in
9578 -L*)
bdcd5f22
TT
9579 dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9580 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
9581 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
9582 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
e598c29b 9583 haveit=
bdcd5f22
TT
9584 if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
9585 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
9586 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
e598c29b
TT
9587 if test -n "$GCC"; then
9588 case $host_os in
9589 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9590 esac
9591 fi
9592 fi
9593 if test -z "$haveit"; then
9594 haveit=
9595 for x in $LDFLAGS $LIBICONV; do
b0cacab0 9596
e598c29b
TT
9597 acl_save_prefix="$prefix"
9598 prefix="$acl_final_prefix"
9599 acl_save_exec_prefix="$exec_prefix"
9600 exec_prefix="$acl_final_exec_prefix"
9601 eval x=\"$x\"
9602 exec_prefix="$acl_save_exec_prefix"
9603 prefix="$acl_save_prefix"
50e1e10f 9604
bdcd5f22 9605 if test "X$x" = "X-L$dependency_libdir"; then
e598c29b
TT
9606 haveit=yes
9607 break
9608 fi
9609 done
9610 if test -z "$haveit"; then
bdcd5f22
TT
9611 if test -d "$dependency_libdir"; then
9612 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$dependency_libdir"
e598c29b
TT
9613 fi
9614 fi
9615 haveit=
9616 for x in $LDFLAGS $LTLIBICONV; do
e1052144 9617
e598c29b
TT
9618 acl_save_prefix="$prefix"
9619 prefix="$acl_final_prefix"
9620 acl_save_exec_prefix="$exec_prefix"
9621 exec_prefix="$acl_final_exec_prefix"
9622 eval x=\"$x\"
9623 exec_prefix="$acl_save_exec_prefix"
9624 prefix="$acl_save_prefix"
9625
bdcd5f22 9626 if test "X$x" = "X-L$dependency_libdir"; then
e598c29b
TT
9627 haveit=yes
9628 break
9629 fi
9630 done
9631 if test -z "$haveit"; then
bdcd5f22
TT
9632 if test -d "$dependency_libdir"; then
9633 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$dependency_libdir"
e598c29b
TT
9634 fi
9635 fi
9636 fi
9637 fi
9638 ;;
9639 -R*)
9640 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9641 if test "$enable_rpath" != no; then
9642 haveit=
9643 for x in $rpathdirs; do
9644 if test "X$x" = "X$dir"; then
9645 haveit=yes
9646 break
9647 fi
9648 done
9649 if test -z "$haveit"; then
9650 rpathdirs="$rpathdirs $dir"
9651 fi
9652 haveit=
9653 for x in $ltrpathdirs; do
9654 if test "X$x" = "X$dir"; then
9655 haveit=yes
9656 break
9657 fi
9658 done
9659 if test -z "$haveit"; then
9660 ltrpathdirs="$ltrpathdirs $dir"
9661 fi
9662 fi
9663 ;;
9664 -l*)
a30e56b9 9665 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
e598c29b
TT
9666 ;;
9667 *.la)
9668 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9669 ;;
9670 *)
9671 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9672 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9673 ;;
9674 esac
9675 done
9676 fi
9677 else
9678 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9679 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9680 fi
9681 fi
9682 fi
9683 done
93613951 9684 done
e598c29b
TT
9685 if test "X$rpathdirs" != "X"; then
9686 if test -n "$acl_hardcode_libdir_separator"; then
9687 alldirs=
9688 for found_dir in $rpathdirs; do
9689 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9690 done
9691 acl_save_libdir="$libdir"
9692 libdir="$alldirs"
9693 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9694 libdir="$acl_save_libdir"
9695 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9696 else
9697 for found_dir in $rpathdirs; do
9698 acl_save_libdir="$libdir"
9699 libdir="$found_dir"
9700 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9701 libdir="$acl_save_libdir"
9702 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9703 done
9704 fi
9705 fi
9706 if test "X$ltrpathdirs" != "X"; then
9707 for found_dir in $ltrpathdirs; do
9708 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9709 done
9710 fi
b0cacab0 9711
93613951 9712
93613951 9713
57aa50d4
TT
9714
9715
9716
9717
9718
9719
9720
9721
9722
9723
9724
b0cacab0 9725
740837de 9726
b0cacab0
TT
9727
9728
9729
93613951
TT
9730
9731
9732
9733
9734
9735
9736
93613951
TT
9737
9738
9739
54445dc2
TT
9740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
9741printf %s "checking for CFPreferencesCopyAppValue... " >&6; }
9742if test ${gt_cv_func_CFPreferencesCopyAppValue+y}
9743then :
9744 printf %s "(cached) " >&6
9745else $as_nop
93613951
TT
9746 gt_save_LIBS="$LIBS"
9747 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
9748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9749/* end confdefs.h. */
9750#include <CoreFoundation/CFPreferences.h>
9751int
54445dc2 9752main (void)
93613951
TT
9753{
9754CFPreferencesCopyAppValue(NULL, NULL)
9755 ;
9756 return 0;
9757}
9758_ACEOF
54445dc2
TT
9759if ac_fn_c_try_link "$LINENO"
9760then :
93613951 9761 gt_cv_func_CFPreferencesCopyAppValue=yes
54445dc2 9762else $as_nop
93613951 9763 gt_cv_func_CFPreferencesCopyAppValue=no
50e1e10f 9764fi
54445dc2 9765rm -f core conftest.err conftest.$ac_objext conftest.beam \
93613951
TT
9766 conftest$ac_exeext conftest.$ac_ext
9767 LIBS="$gt_save_LIBS"
50e1e10f 9768fi
54445dc2
TT
9769{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
9770printf "%s\n" "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
93613951
TT
9771 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
9772
54445dc2 9773printf "%s\n" "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
93613951
TT
9774
9775 fi
54445dc2
TT
9776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5
9777printf %s "checking for CFLocaleCopyPreferredLanguages... " >&6; }
9778if test ${gt_cv_func_CFLocaleCopyPreferredLanguages+y}
9779then :
9780 printf %s "(cached) " >&6
9781else $as_nop
93613951
TT
9782 gt_save_LIBS="$LIBS"
9783 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
9784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9785/* end confdefs.h. */
9786#include <CoreFoundation/CFLocale.h>
9787int
54445dc2 9788main (void)
93613951 9789{
bdcd5f22 9790CFLocaleCopyPreferredLanguages();
93613951
TT
9791 ;
9792 return 0;
9793}
9794_ACEOF
54445dc2
TT
9795if ac_fn_c_try_link "$LINENO"
9796then :
bdcd5f22 9797 gt_cv_func_CFLocaleCopyPreferredLanguages=yes
54445dc2 9798else $as_nop
bdcd5f22 9799 gt_cv_func_CFLocaleCopyPreferredLanguages=no
93613951 9800fi
54445dc2 9801rm -f core conftest.err conftest.$ac_objext conftest.beam \
93613951
TT
9802 conftest$ac_exeext conftest.$ac_ext
9803 LIBS="$gt_save_LIBS"
9804fi
54445dc2
TT
9805{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5
9806printf "%s\n" "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; }
bdcd5f22 9807 if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
93613951 9808
54445dc2 9809printf "%s\n" "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h
93613951
TT
9810
9811 fi
9812 INTL_MACOSX_LIBS=
bdcd5f22
TT
9813 if test $gt_cv_func_CFPreferencesCopyAppValue = yes \
9814 || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then
93613951
TT
9815 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
9816 fi
9817
50e1e10f 9818
b0cacab0
TT
9819
9820
9821
9822
57aa50d4
TT
9823 LIBINTL=
9824 LTLIBINTL=
9825 POSUB=
9826
93613951
TT
9827 case " $gt_needs " in
9828 *" need-formatstring-macros "*) gt_api_version=3 ;;
9829 *" need-ngettext "*) gt_api_version=2 ;;
9830 *) gt_api_version=1 ;;
9831 esac
9832 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
9833 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
9834
57aa50d4
TT
9835 if test "$USE_NLS" = "yes"; then
9836 gt_use_preinstalled_gnugettext=no
b0cacab0
TT
9837
9838
e598c29b
TT
9839 if test $gt_api_version -ge 3; then
9840 gt_revision_test_code='
9841#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
9842#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
9843#endif
9844typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
9845'
9846 else
9847 gt_revision_test_code=
9848 fi
9849 if test $gt_api_version -ge 2; then
9850 gt_expression_test_code=' + * ngettext ("", "", 0)'
9851 else
9852 gt_expression_test_code=
9853 fi
9854
54445dc2
TT
9855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
9856printf %s "checking for GNU gettext in libc... " >&6; }
9857if eval test \${$gt_func_gnugettext_libc+y}
9858then :
9859 printf %s "(cached) " >&6
9860else $as_nop
e598c29b
TT
9861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9862/* end confdefs.h. */
9863
9864#include <libintl.h>
9865#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
9866extern int _nl_msg_cat_cntr;
9867extern int *_nl_domain_bindings;
9868#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings)
9869#else
9870#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
9871#endif
9872$gt_revision_test_code
9873
9874int
54445dc2 9875main (void)
e598c29b
TT
9876{
9877
9878bindtextdomain ("", "");
9879return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
9880
9881 ;
9882 return 0;
9883}
9884_ACEOF
54445dc2
TT
9885if ac_fn_c_try_link "$LINENO"
9886then :
e598c29b 9887 eval "$gt_func_gnugettext_libc=yes"
54445dc2 9888else $as_nop
e598c29b
TT
9889 eval "$gt_func_gnugettext_libc=no"
9890fi
54445dc2 9891rm -f core conftest.err conftest.$ac_objext conftest.beam \
e598c29b 9892 conftest$ac_exeext conftest.$ac_ext
50e1e10f 9893fi
e598c29b 9894eval ac_res=\$$gt_func_gnugettext_libc
54445dc2
TT
9895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9896printf "%s\n" "$ac_res" >&6; }
50e1e10f 9897
e598c29b
TT
9898 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
9899
9900
9901
9902
9903
9904 am_save_CPPFLAGS="$CPPFLAGS"
9905
9906 for element in $INCICONV; do
9907 haveit=
9908 for x in $CPPFLAGS; do
9909
9910 acl_save_prefix="$prefix"
9911 prefix="$acl_final_prefix"
9912 acl_save_exec_prefix="$exec_prefix"
9913 exec_prefix="$acl_final_exec_prefix"
9914 eval x=\"$x\"
9915 exec_prefix="$acl_save_exec_prefix"
9916 prefix="$acl_save_prefix"
9917
9918 if test "X$x" = "X$element"; then
9919 haveit=yes
9920 break
9921 fi
9922 done
9923 if test -z "$haveit"; then
9924 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9925 fi
9926 done
9927
9928
54445dc2
TT
9929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9930printf %s "checking for iconv... " >&6; }
9931if test ${am_cv_func_iconv+y}
9932then :
9933 printf %s "(cached) " >&6
9934else $as_nop
e598c29b
TT
9935
9936 am_cv_func_iconv="no, consider installing GNU libiconv"
9937 am_cv_lib_iconv=no
9938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9939/* end confdefs.h. */
9940
9941#include <stdlib.h>
9942#include <iconv.h>
b0cacab0 9943
e598c29b 9944int
54445dc2 9945main (void)
e598c29b
TT
9946{
9947iconv_t cd = iconv_open("","");
9948 iconv(cd,NULL,NULL,NULL,NULL);
9949 iconv_close(cd);
9950 ;
9951 return 0;
9952}
9953_ACEOF
54445dc2
TT
9954if ac_fn_c_try_link "$LINENO"
9955then :
e598c29b
TT
9956 am_cv_func_iconv=yes
9957fi
54445dc2 9958rm -f core conftest.err conftest.$ac_objext conftest.beam \
e598c29b
TT
9959 conftest$ac_exeext conftest.$ac_ext
9960 if test "$am_cv_func_iconv" != yes; then
9961 am_save_LIBS="$LIBS"
9962 LIBS="$LIBS $LIBICONV"
9963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9964/* end confdefs.h. */
b0cacab0 9965
e598c29b
TT
9966#include <stdlib.h>
9967#include <iconv.h>
b0cacab0 9968
e598c29b 9969int
54445dc2 9970main (void)
e598c29b
TT
9971{
9972iconv_t cd = iconv_open("","");
9973 iconv(cd,NULL,NULL,NULL,NULL);
9974 iconv_close(cd);
9975 ;
9976 return 0;
9977}
9978_ACEOF
54445dc2
TT
9979if ac_fn_c_try_link "$LINENO"
9980then :
e598c29b
TT
9981 am_cv_lib_iconv=yes
9982 am_cv_func_iconv=yes
9983fi
54445dc2 9984rm -f core conftest.err conftest.$ac_objext conftest.beam \
e598c29b
TT
9985 conftest$ac_exeext conftest.$ac_ext
9986 LIBS="$am_save_LIBS"
9987 fi
b0cacab0 9988
e598c29b 9989fi
54445dc2
TT
9990{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9991printf "%s\n" "$am_cv_func_iconv" >&6; }
e598c29b 9992 if test "$am_cv_func_iconv" = yes; then
54445dc2
TT
9993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
9994printf %s "checking for working iconv... " >&6; }
9995if test ${am_cv_func_iconv_works+y}
9996then :
9997 printf %s "(cached) " >&6
9998else $as_nop
e598c29b
TT
9999
10000 am_save_LIBS="$LIBS"
10001 if test $am_cv_lib_iconv = yes; then
10002 LIBS="$LIBS $LIBICONV"
10003 fi
10004 am_cv_func_iconv_works=no
10005 for ac_iconv_const in '' 'const'; do
54445dc2
TT
10006 if test "$cross_compiling" = yes
10007then :
e598c29b
TT
10008 case "$host_os" in
10009 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
10010 *) am_cv_func_iconv_works="guessing yes" ;;
10011 esac
54445dc2 10012else $as_nop
57aa50d4
TT
10013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10014/* end confdefs.h. */
93613951 10015
e598c29b
TT
10016#include <iconv.h>
10017#include <string.h>
10018
10019#ifndef ICONV_CONST
10020# define ICONV_CONST $ac_iconv_const
10021#endif
93613951 10022
57aa50d4 10023int
54445dc2 10024main (void)
57aa50d4 10025{
e598c29b 10026int result = 0;
a30e56b9
TT
10027 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
10028 returns. */
e598c29b
TT
10029 {
10030 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
10031 if (cd_utf8_to_88591 != (iconv_t)(-1))
10032 {
10033 static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */
10034 char buf[10];
10035 ICONV_CONST char *inptr = input;
10036 size_t inbytesleft = strlen (input);
10037 char *outptr = buf;
10038 size_t outbytesleft = sizeof (buf);
10039 size_t res = iconv (cd_utf8_to_88591,
10040 &inptr, &inbytesleft,
10041 &outptr, &outbytesleft);
10042 if (res == 0)
10043 result |= 1;
10044 iconv_close (cd_utf8_to_88591);
10045 }
10046 }
10047 /* Test against Solaris 10 bug: Failures are not distinguishable from
10048 successful returns. */
10049 {
10050 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
10051 if (cd_ascii_to_88591 != (iconv_t)(-1))
10052 {
10053 static ICONV_CONST char input[] = "\263";
10054 char buf[10];
10055 ICONV_CONST char *inptr = input;
10056 size_t inbytesleft = strlen (input);
10057 char *outptr = buf;
10058 size_t outbytesleft = sizeof (buf);
10059 size_t res = iconv (cd_ascii_to_88591,
10060 &inptr, &inbytesleft,
10061 &outptr, &outbytesleft);
10062 if (res == 0)
10063 result |= 2;
10064 iconv_close (cd_ascii_to_88591);
10065 }
10066 }
10067 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
10068 {
10069 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
10070 if (cd_88591_to_utf8 != (iconv_t)(-1))
10071 {
10072 static ICONV_CONST char input[] = "\304";
10073 static char buf[2] = { (char)0xDE, (char)0xAD };
10074 ICONV_CONST char *inptr = input;
10075 size_t inbytesleft = 1;
10076 char *outptr = buf;
10077 size_t outbytesleft = 1;
10078 size_t res = iconv (cd_88591_to_utf8,
10079 &inptr, &inbytesleft,
10080 &outptr, &outbytesleft);
10081 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
10082 result |= 4;
10083 iconv_close (cd_88591_to_utf8);
10084 }
10085 }
10086#if 0 /* This bug could be worked around by the caller. */
10087 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
10088 {
10089 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
10090 if (cd_88591_to_utf8 != (iconv_t)(-1))
10091 {
10092 static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
10093 char buf[50];
10094 ICONV_CONST char *inptr = input;
10095 size_t inbytesleft = strlen (input);
10096 char *outptr = buf;
10097 size_t outbytesleft = sizeof (buf);
10098 size_t res = iconv (cd_88591_to_utf8,
10099 &inptr, &inbytesleft,
10100 &outptr, &outbytesleft);
10101 if ((int)res > 0)
10102 result |= 8;
10103 iconv_close (cd_88591_to_utf8);
10104 }
10105 }
10106#endif
10107 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
10108 provided. */
bdcd5f22
TT
10109 {
10110 /* Try standardized names. */
10111 iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP");
10112 /* Try IRIX, OSF/1 names. */
10113 iconv_t cd2 = iconv_open ("UTF-8", "eucJP");
10114 /* Try AIX names. */
10115 iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP");
10116 /* Try HP-UX names. */
10117 iconv_t cd4 = iconv_open ("utf8", "eucJP");
10118 if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1)
10119 && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1))
10120 result |= 16;
10121 if (cd1 != (iconv_t)(-1))
10122 iconv_close (cd1);
10123 if (cd2 != (iconv_t)(-1))
10124 iconv_close (cd2);
10125 if (cd3 != (iconv_t)(-1))
10126 iconv_close (cd3);
10127 if (cd4 != (iconv_t)(-1))
10128 iconv_close (cd4);
10129 }
e598c29b 10130 return result;
93613951 10131
57aa50d4
TT
10132 ;
10133 return 0;
10134}
10135_ACEOF
54445dc2
TT
10136if ac_fn_c_try_run "$LINENO"
10137then :
e598c29b 10138 am_cv_func_iconv_works=yes
57aa50d4 10139fi
e598c29b
TT
10140rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10141 conftest.$ac_objext conftest.beam conftest.$ac_ext
57aa50d4 10142fi
93613951 10143
e598c29b
TT
10144 test "$am_cv_func_iconv_works" = no || break
10145 done
10146 LIBS="$am_save_LIBS"
10147
10148fi
54445dc2
TT
10149{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
10150printf "%s\n" "$am_cv_func_iconv_works" >&6; }
e598c29b
TT
10151 case "$am_cv_func_iconv_works" in
10152 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
10153 *) am_func_iconv=yes ;;
10154 esac
10155 else
10156 am_func_iconv=no am_cv_lib_iconv=no
10157 fi
10158 if test "$am_func_iconv" = yes; then
10159
54445dc2 10160printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
e598c29b
TT
10161
10162 fi
10163 if test "$am_cv_lib_iconv" = yes; then
54445dc2
TT
10164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
10165printf %s "checking how to link with libiconv... " >&6; }
10166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
10167printf "%s\n" "$LIBICONV" >&6; }
e598c29b
TT
10168 else
10169 CPPFLAGS="$am_save_CPPFLAGS"
10170 LIBICONV=
10171 LTLIBICONV=
10172 fi
10173
10174
10175
93613951
TT
10176
10177
10178
10179
b0cacab0
TT
10180
10181
10182
57aa50d4 10183 use_additional=yes
b0cacab0 10184
57aa50d4
TT
10185 acl_save_prefix="$prefix"
10186 prefix="$acl_final_prefix"
10187 acl_save_exec_prefix="$exec_prefix"
10188 exec_prefix="$acl_final_exec_prefix"
b0cacab0 10189
57aa50d4
TT
10190 eval additional_includedir=\"$includedir\"
10191 eval additional_libdir=\"$libdir\"
bdcd5f22
TT
10192 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
10193 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
b0cacab0 10194
57aa50d4
TT
10195 exec_prefix="$acl_save_exec_prefix"
10196 prefix="$acl_save_prefix"
b0cacab0
TT
10197
10198
57aa50d4 10199# Check whether --with-libintl-prefix was given.
54445dc2
TT
10200if test ${with_libintl_prefix+y}
10201then :
57aa50d4
TT
10202 withval=$with_libintl_prefix;
10203 if test "X$withval" = "Xno"; then
10204 use_additional=no
10205 else
10206 if test "X$withval" = "X"; then
b0cacab0 10207
57aa50d4
TT
10208 acl_save_prefix="$prefix"
10209 prefix="$acl_final_prefix"
10210 acl_save_exec_prefix="$exec_prefix"
10211 exec_prefix="$acl_final_exec_prefix"
b0cacab0 10212
57aa50d4
TT
10213 eval additional_includedir=\"$includedir\"
10214 eval additional_libdir=\"$libdir\"
bdcd5f22
TT
10215 eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\"
10216 eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\"
7321d94e 10217
57aa50d4
TT
10218 exec_prefix="$acl_save_exec_prefix"
10219 prefix="$acl_save_prefix"
7321d94e 10220
57aa50d4
TT
10221 else
10222 additional_includedir="$withval/include"
93613951 10223 additional_libdir="$withval/$acl_libdirstem"
bdcd5f22
TT
10224 additional_libdir2="$withval/$acl_libdirstem2"
10225 additional_libdir3="$withval/$acl_libdirstem3"
57aa50d4
TT
10226 fi
10227 fi
7321d94e 10228
7321d94e
MK
10229fi
10230
bdcd5f22
TT
10231 if test "X$additional_libdir2" = "X$additional_libdir"; then
10232 additional_libdir2=
10233 fi
10234 if test "X$additional_libdir3" = "X$additional_libdir"; then
10235 additional_libdir3=
10236 fi
57aa50d4
TT
10237 LIBINTL=
10238 LTLIBINTL=
10239 INCINTL=
93613951
TT
10240 LIBINTL_PREFIX=
10241 HAVE_LIBINTL=
57aa50d4
TT
10242 rpathdirs=
10243 ltrpathdirs=
10244 names_already_handled=
10245 names_next_round='intl '
10246 while test -n "$names_next_round"; do
10247 names_this_round="$names_next_round"
10248 names_next_round=
10249 for name in $names_this_round; do
10250 already_handled=
10251 for n in $names_already_handled; do
10252 if test "$n" = "$name"; then
10253 already_handled=yes
10254 break
10255 fi
50e1e10f 10256 done
57aa50d4
TT
10257 if test -z "$already_handled"; then
10258 names_already_handled="$names_already_handled $name"
93613951 10259 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
57aa50d4
TT
10260 eval value=\"\$HAVE_LIB$uppername\"
10261 if test -n "$value"; then
10262 if test "$value" = yes; then
10263 eval value=\"\$LIB$uppername\"
10264 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10265 eval value=\"\$LTLIB$uppername\"
10266 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10267 else
10268 :
10269 fi
10270 else
10271 found_dir=
10272 found_la=
10273 found_so=
10274 found_a=
93613951
TT
10275 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
10276 if test -n "$acl_shlibext"; then
10277 shrext=".$acl_shlibext" # typically: shrext=.so
10278 else
10279 shrext=
10280 fi
57aa50d4 10281 if test $use_additional = yes; then
bdcd5f22
TT
10282 for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do
10283 if test "X$found_dir" = "X"; then
10284 eval dir=\$$additional_libdir_variable
10285 if test -n "$dir"; then
10286 if test -n "$acl_shlibext"; then
10287 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
10288 found_dir="$dir"
10289 found_so="$dir/$libname$shrext"
10290 else
10291 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10292 ver=`(cd "$dir" && \
10293 for f in "$libname$shrext".*; do echo "$f"; done \
10294 | sed -e "s,^$libname$shrext\\\\.,," \
10295 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10296 | sed 1q ) 2>/dev/null`
10297 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
10298 found_dir="$dir"
10299 found_so="$dir/$libname$shrext.$ver"
10300 fi
10301 else
10302 eval library_names=\"$acl_library_names_spec\"
10303 for f in $library_names; do
10304 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
10305 found_dir="$dir"
10306 found_so="$dir/$f"
10307 break
10308 fi
10309 done
10310 fi
10311 fi
93613951 10312 fi
bdcd5f22
TT
10313 if test "X$found_dir" = "X"; then
10314 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
93613951 10315 found_dir="$dir"
bdcd5f22 10316 found_a="$dir/$libname.$acl_libext"
93613951 10317 fi
bdcd5f22
TT
10318 fi
10319 if test "X$found_dir" != "X"; then
10320 if test -f "$dir/$libname.la"; then
10321 found_la="$dir/$libname.la"
10322 fi
10323 fi
57aa50d4
TT
10324 fi
10325 fi
bdcd5f22 10326 done
57aa50d4
TT
10327 fi
10328 if test "X$found_dir" = "X"; then
10329 for x in $LDFLAGS $LTLIBINTL; do
39fd3d4f 10330
57aa50d4
TT
10331 acl_save_prefix="$prefix"
10332 prefix="$acl_final_prefix"
10333 acl_save_exec_prefix="$exec_prefix"
10334 exec_prefix="$acl_final_exec_prefix"
10335 eval x=\"$x\"
10336 exec_prefix="$acl_save_exec_prefix"
10337 prefix="$acl_save_prefix"
3d05802f 10338
57aa50d4
TT
10339 case "$x" in
10340 -L*)
10341 dir=`echo "X$x" | sed -e 's/^X-L//'`
93613951 10342 if test -n "$acl_shlibext"; then
bdcd5f22 10343 if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then
57aa50d4 10344 found_dir="$dir"
93613951
TT
10345 found_so="$dir/$libname$shrext"
10346 else
10347 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10348 ver=`(cd "$dir" && \
10349 for f in "$libname$shrext".*; do echo "$f"; done \
10350 | sed -e "s,^$libname$shrext\\\\.,," \
10351 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10352 | sed 1q ) 2>/dev/null`
bdcd5f22 10353 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then
93613951
TT
10354 found_dir="$dir"
10355 found_so="$dir/$libname$shrext.$ver"
10356 fi
10357 else
10358 eval library_names=\"$acl_library_names_spec\"
10359 for f in $library_names; do
bdcd5f22 10360 if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then
93613951
TT
10361 found_dir="$dir"
10362 found_so="$dir/$f"
10363 break
10364 fi
10365 done
57aa50d4
TT
10366 fi
10367 fi
93613951
TT
10368 fi
10369 if test "X$found_dir" = "X"; then
bdcd5f22 10370 if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then
93613951
TT
10371 found_dir="$dir"
10372 found_a="$dir/$libname.$acl_libext"
10373 fi
10374 fi
10375 if test "X$found_dir" != "X"; then
10376 if test -f "$dir/$libname.la"; then
10377 found_la="$dir/$libname.la"
10378 fi
57aa50d4
TT
10379 fi
10380 ;;
10381 esac
10382 if test "X$found_dir" != "X"; then
10383 break
10384 fi
10385 done
10386 fi
10387 if test "X$found_dir" != "X"; then
10388 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10389 if test "X$found_so" != "X"; then
93613951
TT
10390 if test "$enable_rpath" = no \
10391 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
bdcd5f22
TT
10392 || test "X$found_dir" = "X/usr/$acl_libdirstem2" \
10393 || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then
57aa50d4
TT
10394 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10395 else
10396 haveit=
10397 for x in $ltrpathdirs; do
10398 if test "X$x" = "X$found_dir"; then
10399 haveit=yes
10400 break
10401 fi
10402 done
10403 if test -z "$haveit"; then
10404 ltrpathdirs="$ltrpathdirs $found_dir"
10405 fi
93613951 10406 if test "$acl_hardcode_direct" = yes; then
57aa50d4
TT
10407 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10408 else
93613951 10409 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
57aa50d4
TT
10410 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10411 haveit=
10412 for x in $rpathdirs; do
10413 if test "X$x" = "X$found_dir"; then
10414 haveit=yes
10415 break
10416 fi
10417 done
10418 if test -z "$haveit"; then
10419 rpathdirs="$rpathdirs $found_dir"
10420 fi
10421 else
10422 haveit=
10423 for x in $LDFLAGS $LIBINTL; do
6ec9ef18 10424
57aa50d4
TT
10425 acl_save_prefix="$prefix"
10426 prefix="$acl_final_prefix"
10427 acl_save_exec_prefix="$exec_prefix"
10428 exec_prefix="$acl_final_exec_prefix"
10429 eval x=\"$x\"
10430 exec_prefix="$acl_save_exec_prefix"
10431 prefix="$acl_save_prefix"
d7f45af8 10432
57aa50d4
TT
10433 if test "X$x" = "X-L$found_dir"; then
10434 haveit=yes
10435 break
10436 fi
10437 done
10438 if test -z "$haveit"; then
10439 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
10440 fi
93613951 10441 if test "$acl_hardcode_minus_L" != no; then
57aa50d4
TT
10442 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10443 else
10444 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10445 fi
10446 fi
10447 fi
10448 fi
10449 else
10450 if test "X$found_a" != "X"; then
10451 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
10452 else
10453 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
10454 fi
10455 fi
10456 additional_includedir=
10457 case "$found_dir" in
93613951
TT
10458 */$acl_libdirstem | */$acl_libdirstem/)
10459 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
10460 if test "$name" = 'intl'; then
10461 LIBINTL_PREFIX="$basedir"
10462 fi
10463 additional_includedir="$basedir/include"
10464 ;;
10465 */$acl_libdirstem2 | */$acl_libdirstem2/)
10466 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
10467 if test "$name" = 'intl'; then
10468 LIBINTL_PREFIX="$basedir"
10469 fi
57aa50d4
TT
10470 additional_includedir="$basedir/include"
10471 ;;
bdcd5f22
TT
10472 */$acl_libdirstem3 | */$acl_libdirstem3/)
10473 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'`
10474 if test "$name" = 'intl'; then
10475 LIBINTL_PREFIX="$basedir"
10476 fi
10477 additional_includedir="$basedir/include"
10478 ;;
57aa50d4
TT
10479 esac
10480 if test "X$additional_includedir" != "X"; then
10481 if test "X$additional_includedir" != "X/usr/include"; then
10482 haveit=
10483 if test "X$additional_includedir" = "X/usr/local/include"; then
10484 if test -n "$GCC"; then
10485 case $host_os in
93613951 10486 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
57aa50d4
TT
10487 esac
10488 fi
10489 fi
10490 if test -z "$haveit"; then
10491 for x in $CPPFLAGS $INCINTL; do
b0cacab0 10492
57aa50d4
TT
10493 acl_save_prefix="$prefix"
10494 prefix="$acl_final_prefix"
10495 acl_save_exec_prefix="$exec_prefix"
10496 exec_prefix="$acl_final_exec_prefix"
10497 eval x=\"$x\"
10498 exec_prefix="$acl_save_exec_prefix"
10499 prefix="$acl_save_prefix"
21c84b71 10500
57aa50d4
TT
10501 if test "X$x" = "X-I$additional_includedir"; then
10502 haveit=yes
10503 break
10504 fi
10505 done
10506 if test -z "$haveit"; then
10507 if test -d "$additional_includedir"; then
10508 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
10509 fi
10510 fi
10511 fi
10512 fi
10513 fi
10514 if test -n "$found_la"; then
10515 save_libdir="$libdir"
10516 case "$found_la" in
10517 */* | *\\*) . "$found_la" ;;
10518 *) . "./$found_la" ;;
10519 esac
10520 libdir="$save_libdir"
10521 for dep in $dependency_libs; do
10522 case "$dep" in
10523 -L*)
bdcd5f22
TT
10524 dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
10525 if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \
10526 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \
10527 && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then
57aa50d4 10528 haveit=
bdcd5f22
TT
10529 if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \
10530 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \
10531 || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then
57aa50d4
TT
10532 if test -n "$GCC"; then
10533 case $host_os in
93613951 10534 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
57aa50d4
TT
10535 esac
10536 fi
10537 fi
10538 if test -z "$haveit"; then
10539 haveit=
10540 for x in $LDFLAGS $LIBINTL; do
50e1e10f 10541
57aa50d4
TT
10542 acl_save_prefix="$prefix"
10543 prefix="$acl_final_prefix"
10544 acl_save_exec_prefix="$exec_prefix"
10545 exec_prefix="$acl_final_exec_prefix"
10546 eval x=\"$x\"
10547 exec_prefix="$acl_save_exec_prefix"
10548 prefix="$acl_save_prefix"
50e1e10f 10549
bdcd5f22 10550 if test "X$x" = "X-L$dependency_libdir"; then
57aa50d4
TT
10551 haveit=yes
10552 break
10553 fi
10554 done
10555 if test -z "$haveit"; then
bdcd5f22
TT
10556 if test -d "$dependency_libdir"; then
10557 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$dependency_libdir"
57aa50d4
TT
10558 fi
10559 fi
10560 haveit=
10561 for x in $LDFLAGS $LTLIBINTL; do
a4bf69d9 10562
57aa50d4
TT
10563 acl_save_prefix="$prefix"
10564 prefix="$acl_final_prefix"
10565 acl_save_exec_prefix="$exec_prefix"
10566 exec_prefix="$acl_final_exec_prefix"
10567 eval x=\"$x\"
10568 exec_prefix="$acl_save_exec_prefix"
10569 prefix="$acl_save_prefix"
50e1e10f 10570
bdcd5f22 10571 if test "X$x" = "X-L$dependency_libdir"; then
57aa50d4
TT
10572 haveit=yes
10573 break
10574 fi
10575 done
10576 if test -z "$haveit"; then
bdcd5f22
TT
10577 if test -d "$dependency_libdir"; then
10578 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$dependency_libdir"
57aa50d4
TT
10579 fi
10580 fi
10581 fi
10582 fi
10583 ;;
10584 -R*)
10585 dir=`echo "X$dep" | sed -e 's/^X-R//'`
10586 if test "$enable_rpath" != no; then
10587 haveit=
10588 for x in $rpathdirs; do
10589 if test "X$x" = "X$dir"; then
10590 haveit=yes
10591 break
10592 fi
10593 done
10594 if test -z "$haveit"; then
10595 rpathdirs="$rpathdirs $dir"
10596 fi
10597 haveit=
10598 for x in $ltrpathdirs; do
10599 if test "X$x" = "X$dir"; then
10600 haveit=yes
10601 break
10602 fi
10603 done
10604 if test -z "$haveit"; then
10605 ltrpathdirs="$ltrpathdirs $dir"
10606 fi
10607 fi
10608 ;;
10609 -l*)
a30e56b9 10610 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
57aa50d4
TT
10611 ;;
10612 *.la)
10613 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
10614 ;;
10615 *)
10616 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
10617 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
10618 ;;
10619 esac
10620 done
10621 fi
10622 else
10623 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
10624 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
10625 fi
10626 fi
10627 fi
10628 done
10629 done
10630 if test "X$rpathdirs" != "X"; then
93613951 10631 if test -n "$acl_hardcode_libdir_separator"; then
57aa50d4
TT
10632 alldirs=
10633 for found_dir in $rpathdirs; do
93613951 10634 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
57aa50d4
TT
10635 done
10636 acl_save_libdir="$libdir"
10637 libdir="$alldirs"
93613951 10638 eval flag=\"$acl_hardcode_libdir_flag_spec\"
57aa50d4
TT
10639 libdir="$acl_save_libdir"
10640 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10641 else
10642 for found_dir in $rpathdirs; do
10643 acl_save_libdir="$libdir"
10644 libdir="$found_dir"
93613951 10645 eval flag=\"$acl_hardcode_libdir_flag_spec\"
57aa50d4
TT
10646 libdir="$acl_save_libdir"
10647 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
10648 done
10649 fi
10650 fi
10651 if test "X$ltrpathdirs" != "X"; then
10652 for found_dir in $ltrpathdirs; do
10653 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
10654 done
10655 fi
b0cacab0 10656
93613951
TT
10657
10658
10659
10660
54445dc2
TT
10661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
10662printf %s "checking for GNU gettext in libintl... " >&6; }
10663if eval test \${$gt_func_gnugettext_libintl+y}
10664then :
10665 printf %s "(cached) " >&6
10666else $as_nop
57aa50d4
TT
10667 gt_save_CPPFLAGS="$CPPFLAGS"
10668 CPPFLAGS="$CPPFLAGS $INCINTL"
10669 gt_save_LIBS="$LIBS"
10670 LIBS="$LIBS $LIBINTL"
10671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10672/* end confdefs.h. */
93613951 10673
57aa50d4 10674#include <libintl.h>
e598c29b 10675#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
57aa50d4
TT
10676extern int _nl_msg_cat_cntr;
10677extern
10678#ifdef __cplusplus
10679"C"
10680#endif
93613951 10681const char *_nl_expand_alias (const char *);
e598c29b
TT
10682#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
10683#else
10684#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
10685#endif
10686$gt_revision_test_code
93613951 10687
57aa50d4 10688int
54445dc2 10689main (void)
57aa50d4 10690{
93613951 10691
57aa50d4 10692bindtextdomain ("", "");
e598c29b 10693return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
93613951 10694
57aa50d4
TT
10695 ;
10696 return 0;
10697}
b0cacab0 10698_ACEOF
54445dc2
TT
10699if ac_fn_c_try_link "$LINENO"
10700then :
93613951 10701 eval "$gt_func_gnugettext_libintl=yes"
54445dc2 10702else $as_nop
93613951 10703 eval "$gt_func_gnugettext_libintl=no"
6c133523 10704fi
54445dc2 10705rm -f core conftest.err conftest.$ac_objext conftest.beam \
57aa50d4 10706 conftest$ac_exeext conftest.$ac_ext
93613951 10707 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
57aa50d4
TT
10708 LIBS="$LIBS $LIBICONV"
10709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
da76d6b7 10710/* end confdefs.h. */
93613951 10711
57aa50d4 10712#include <libintl.h>
e598c29b 10713#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
57aa50d4
TT
10714extern int _nl_msg_cat_cntr;
10715extern
10716#ifdef __cplusplus
10717"C"
da76d6b7 10718#endif
93613951 10719const char *_nl_expand_alias (const char *);
e598c29b
TT
10720#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias (""))
10721#else
10722#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0
10723#endif
10724$gt_revision_test_code
93613951 10725
57aa50d4 10726int
54445dc2 10727main (void)
57aa50d4 10728{
93613951 10729
57aa50d4 10730bindtextdomain ("", "");
e598c29b 10731return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION
93613951 10732
57aa50d4
TT
10733 ;
10734 return 0;
10735}
da76d6b7 10736_ACEOF
54445dc2
TT
10737if ac_fn_c_try_link "$LINENO"
10738then :
57aa50d4 10739 LIBINTL="$LIBINTL $LIBICONV"
93613951
TT
10740 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
10741 eval "$gt_func_gnugettext_libintl=yes"
6c133523
TT
10742
10743fi
54445dc2 10744rm -f core conftest.err conftest.$ac_objext conftest.beam \
57aa50d4
TT
10745 conftest$ac_exeext conftest.$ac_ext
10746 fi
10747 CPPFLAGS="$gt_save_CPPFLAGS"
10748 LIBS="$gt_save_LIBS"
da76d6b7 10749fi
93613951 10750eval ac_res=\$$gt_func_gnugettext_libintl
54445dc2
TT
10751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10752printf "%s\n" "$ac_res" >&6; }
57aa50d4 10753 fi
b0cacab0 10754
93613951
TT
10755 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
10756 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
57aa50d4
TT
10757 && test "$PACKAGE" != gettext-runtime \
10758 && test "$PACKAGE" != gettext-tools; }; then
10759 gt_use_preinstalled_gnugettext=yes
10760 else
10761 LIBINTL=
10762 LTLIBINTL=
10763 INCINTL=
10764 fi
740837de 10765
b0cacab0 10766
b0cacab0 10767
93613951
TT
10768 if test -n "$INTL_MACOSX_LIBS"; then
10769 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10770 || test "$nls_cv_use_gnu_gettext" = "yes"; then
10771 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
10772 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
10773 fi
10774 fi
10775
57aa50d4
TT
10776 if test "$gt_use_preinstalled_gnugettext" = "yes" \
10777 || test "$nls_cv_use_gnu_gettext" = "yes"; then
b0cacab0 10778
54445dc2 10779printf "%s\n" "#define ENABLE_NLS 1" >>confdefs.h
b0cacab0 10780
57aa50d4
TT
10781 else
10782 USE_NLS=no
10783 fi
10784 fi
b0cacab0 10785
54445dc2
TT
10786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
10787printf %s "checking whether to use NLS... " >&6; }
10788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
10789printf "%s\n" "$USE_NLS" >&6; }
57aa50d4 10790 if test "$USE_NLS" = "yes"; then
54445dc2
TT
10791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
10792printf %s "checking where the gettext function comes from... " >&6; }
57aa50d4 10793 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
93613951 10794 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
57aa50d4
TT
10795 gt_source="external libintl"
10796 else
10797 gt_source="libc"
10798 fi
10799 else
10800 gt_source="included intl directory"
10801 fi
54445dc2
TT
10802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
10803printf "%s\n" "$gt_source" >&6; }
57aa50d4 10804 fi
b0cacab0 10805
57aa50d4 10806 if test "$USE_NLS" = "yes"; then
b0cacab0 10807
57aa50d4 10808 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
93613951 10809 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
54445dc2
TT
10810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
10811printf %s "checking how to link with libintl... " >&6; }
10812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
10813printf "%s\n" "$LIBINTL" >&6; }
b0cacab0 10814
57aa50d4
TT
10815 for element in $INCINTL; do
10816 haveit=
10817 for x in $CPPFLAGS; do
b0cacab0 10818
57aa50d4
TT
10819 acl_save_prefix="$prefix"
10820 prefix="$acl_final_prefix"
10821 acl_save_exec_prefix="$exec_prefix"
10822 exec_prefix="$acl_final_exec_prefix"
10823 eval x=\"$x\"
10824 exec_prefix="$acl_save_exec_prefix"
10825 prefix="$acl_save_prefix"
b0cacab0 10826
57aa50d4
TT
10827 if test "X$x" = "X$element"; then
10828 haveit=yes
10829 break
10830 fi
10831 done
10832 if test -z "$haveit"; then
10833 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
10834 fi
10835 done
b0cacab0 10836
57aa50d4 10837 fi
b0cacab0
TT
10838
10839
54445dc2 10840printf "%s\n" "#define HAVE_GETTEXT 1" >>confdefs.h
b0cacab0
TT
10841
10842
54445dc2 10843printf "%s\n" "#define HAVE_DCGETTEXT 1" >>confdefs.h
b0cacab0 10844
57aa50d4 10845 fi
b0cacab0 10846
57aa50d4
TT
10847 POSUB=po
10848 fi
b0cacab0
TT
10849
10850
b0cacab0 10851
57aa50d4 10852 INTLLIBS="$LIBINTL"
e1052144 10853
b0cacab0 10854
93636bde 10855
93636bde 10856
b0cacab0 10857
93636bde 10858
50e1e10f 10859
54445dc2
TT
10860{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10861printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
57aa50d4 10862set x ${MAKE-make}
54445dc2
TT
10863ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10864if eval test \${ac_cv_prog_make_${ac_make}_set+y}
10865then :
10866 printf %s "(cached) " >&6
10867else $as_nop
57aa50d4
TT
10868 cat >conftest.make <<\_ACEOF
10869SHELL = /bin/sh
10870all:
10871 @echo '@@@%%%=$(MAKE)=@@@%%%'
b0cacab0 10872_ACEOF
d6a4bcb5 10873# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
57aa50d4
TT
10874case `${MAKE-make} -f conftest.make 2>/dev/null` in
10875 *@@@%%%=?*=@@@%%%*)
10876 eval ac_cv_prog_make_${ac_make}_set=yes;;
10877 *)
10878 eval ac_cv_prog_make_${ac_make}_set=no;;
e1052144 10879esac
57aa50d4 10880rm -f conftest.make
b0cacab0 10881fi
57aa50d4 10882if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
54445dc2
TT
10883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10884printf "%s\n" "yes" >&6; }
57aa50d4 10885 SET_MAKE=
b0b9c4de 10886else
54445dc2
TT
10887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10888printf "%s\n" "no" >&6; }
57aa50d4 10889 SET_MAKE="MAKE=${MAKE-make}"
b0cacab0 10890fi
b0cacab0 10891
54445dc2
TT
10892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
10893printf %s "checking for GNU make... " >&6; }
10894if test ${_cv_gnu_make_command+y}
10895then :
10896 printf %s "(cached) " >&6
10897else $as_nop
57aa50d4 10898 _cv_gnu_make_command='' ;
e703ba4b 10899 if test -n "$FORCE_NATIVE_MAKE" ; then
f3bc1561
TT
10900 MAKES="make"
10901 else
10902 MAKES="make gmake gnumake"
10903 fi
10904 for a in "$MAKE" $MAKES ; do
57aa50d4
TT
10905 if test -z "$a" ; then continue ; fi ;
10906 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
10907 _cv_gnu_make_command=$a ;
10908 break;
10909 fi
10910 done ;
50e1e10f 10911
50e1e10f 10912fi
54445dc2
TT
10913{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
10914printf "%s\n" "$_cv_gnu_make_command" >&6; } ;
57aa50d4
TT
10915 if test "x$_cv_gnu_make_command" != "x" ; then
10916 ifGNUmake='' ;
10917 ifNotGNUmake='#' ;
10918 else
10919 ifGNUmake='#' ;
10920 ifNotGNUmake='' ;
54445dc2
TT
10921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
10922printf "%s\n" "\"Not found\"" >&6; };
57aa50d4 10923 fi
50e1e10f 10924
50e1e10f 10925
b0cacab0 10926
57aa50d4
TT
10927# Extract the first word of "ln", so it can be a program name with args.
10928set dummy ln; ac_word=$2
54445dc2
TT
10929{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10930printf %s "checking for $ac_word... " >&6; }
10931if test ${ac_cv_path_LN+y}
10932then :
10933 printf %s "(cached) " >&6
10934else $as_nop
57aa50d4
TT
10935 case $LN in
10936 [\\/]* | ?:[\\/]*)
10937 ac_cv_path_LN="$LN" # Let the user override the test with a path.
10938 ;;
10939 *)
10940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10941for as_dir in $PATH
10942do
10943 IFS=$as_save_IFS
54445dc2
TT
10944 case $as_dir in #(((
10945 '') as_dir=./ ;;
10946 */) ;;
10947 *) as_dir=$as_dir/ ;;
10948 esac
57aa50d4 10949 for ac_exec_ext in '' $ac_executable_extensions; do
54445dc2
TT
10950 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10951 ac_cv_path_LN="$as_dir$ac_word$ac_exec_ext"
10952 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
57aa50d4
TT
10953 break 2
10954 fi
10955done
10956 done
10957IFS=$as_save_IFS
6c65d251 10958
57aa50d4
TT
10959 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
10960 ;;
e1052144 10961esac
fff45483 10962fi
57aa50d4
TT
10963LN=$ac_cv_path_LN
10964if test -n "$LN"; then
54445dc2
TT
10965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
10966printf "%s\n" "$LN" >&6; }
57aa50d4 10967else
54445dc2
TT
10968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10969printf "%s\n" "no" >&6; }
fff45483 10970fi
e1052144 10971
fff45483 10972
5abc0414 10973
3fb16e74
TT
10974mkdir_p=$MKDIR_P
10975
54445dc2
TT
10976{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
10977printf %s "checking whether ln -s works... " >&6; }
57aa50d4
TT
10978LN_S=$as_ln_s
10979if test "$LN_S" = "ln -s"; then
54445dc2
TT
10980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10981printf "%s\n" "yes" >&6; }
57aa50d4 10982else
54445dc2
TT
10983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
10984printf "%s\n" "no, using $LN_S" >&6; }
fff45483 10985fi
6c65d251 10986
57aa50d4
TT
10987# Extract the first word of "mv", so it can be a program name with args.
10988set dummy mv; ac_word=$2
54445dc2
TT
10989{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10990printf %s "checking for $ac_word... " >&6; }
10991if test ${ac_cv_path_MV+y}
10992then :
10993 printf %s "(cached) " >&6
10994else $as_nop
57aa50d4
TT
10995 case $MV in
10996 [\\/]* | ?:[\\/]*)
10997 ac_cv_path_MV="$MV" # Let the user override the test with a path.
10998 ;;
10999 *)
11000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11001for as_dir in $PATH
11002do
11003 IFS=$as_save_IFS
54445dc2
TT
11004 case $as_dir in #(((
11005 '') as_dir=./ ;;
11006 */) ;;
11007 *) as_dir=$as_dir/ ;;
11008 esac
57aa50d4 11009 for ac_exec_ext in '' $ac_executable_extensions; do
54445dc2
TT
11010 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11011 ac_cv_path_MV="$as_dir$ac_word$ac_exec_ext"
11012 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
57aa50d4
TT
11013 break 2
11014 fi
11015done
11016 done
11017IFS=$as_save_IFS
6c65d251 11018
57aa50d4
TT
11019 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
11020 ;;
e1052144 11021esac
b0cacab0 11022fi
57aa50d4
TT
11023MV=$ac_cv_path_MV
11024if test -n "$MV"; then
54445dc2
TT
11025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
11026printf "%s\n" "$MV" >&6; }
b0b9c4de 11027else
54445dc2
TT
11028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11029printf "%s\n" "no" >&6; }
39fd3d4f
SJR
11030fi
11031
39fd3d4f 11032
57aa50d4
TT
11033# Extract the first word of "cp", so it can be a program name with args.
11034set dummy cp; ac_word=$2
54445dc2
TT
11035{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11036printf %s "checking for $ac_word... " >&6; }
11037if test ${ac_cv_path_CP+y}
11038then :
11039 printf %s "(cached) " >&6
11040else $as_nop
57aa50d4
TT
11041 case $CP in
11042 [\\/]* | ?:[\\/]*)
11043 ac_cv_path_CP="$CP" # Let the user override the test with a path.
11044 ;;
11045 *)
11046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11047for as_dir in $PATH
11048do
11049 IFS=$as_save_IFS
54445dc2
TT
11050 case $as_dir in #(((
11051 '') as_dir=./ ;;
11052 */) ;;
11053 *) as_dir=$as_dir/ ;;
11054 esac
57aa50d4 11055 for ac_exec_ext in '' $ac_executable_extensions; do
54445dc2
TT
11056 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11057 ac_cv_path_CP="$as_dir$ac_word$ac_exec_ext"
11058 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
57aa50d4
TT
11059 break 2
11060 fi
11061done
11062 done
11063IFS=$as_save_IFS
39fd3d4f 11064
57aa50d4
TT
11065 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11066 ;;
e1052144 11067esac
b0b9c4de 11068fi
57aa50d4
TT
11069CP=$ac_cv_path_CP
11070if test -n "$CP"; then
54445dc2
TT
11071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
11072printf "%s\n" "$CP" >&6; }
b0cacab0 11073else
54445dc2
TT
11074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11075printf "%s\n" "no" >&6; }
b0b9c4de 11076fi
b0b9c4de 11077
6c65d251 11078
57aa50d4
TT
11079# Extract the first word of "rm", so it can be a program name with args.
11080set dummy rm; ac_word=$2
54445dc2
TT
11081{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11082printf %s "checking for $ac_word... " >&6; }
11083if test ${ac_cv_path_RM+y}
11084then :
11085 printf %s "(cached) " >&6
11086else $as_nop
57aa50d4
TT
11087 case $RM in
11088 [\\/]* | ?:[\\/]*)
11089 ac_cv_path_RM="$RM" # Let the user override the test with a path.
11090 ;;
11091 *)
11092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11093for as_dir in $PATH
11094do
11095 IFS=$as_save_IFS
54445dc2
TT
11096 case $as_dir in #(((
11097 '') as_dir=./ ;;
11098 */) ;;
11099 *) as_dir=$as_dir/ ;;
11100 esac
57aa50d4 11101 for ac_exec_ext in '' $ac_executable_extensions; do
54445dc2
TT
11102 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11103 ac_cv_path_RM="$as_dir$ac_word$ac_exec_ext"
11104 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
57aa50d4
TT
11105 break 2
11106 fi
11107done
b0cacab0 11108 done
57aa50d4 11109IFS=$as_save_IFS
6c65d251 11110
57aa50d4
TT
11111 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11112 ;;
e1052144 11113esac
6928adc9 11114fi
57aa50d4
TT
11115RM=$ac_cv_path_RM
11116if test -n "$RM"; then
54445dc2
TT
11117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
11118printf "%s\n" "$RM" >&6; }
b0cacab0 11119else
54445dc2
TT
11120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11121printf "%s\n" "no" >&6; }
6928adc9 11122fi
6928adc9 11123
6c65d251 11124
57aa50d4
TT
11125# Extract the first word of "chmod", so it can be a program name with args.
11126set dummy chmod; ac_word=$2
54445dc2
TT
11127{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11128printf %s "checking for $ac_word... " >&6; }
11129if test ${ac_cv_path_CHMOD+y}
11130then :
11131 printf %s "(cached) " >&6
11132else $as_nop
57aa50d4
TT
11133 case $CHMOD in
11134 [\\/]* | ?:[\\/]*)
11135 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11136 ;;
11137 *)
11138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11139for as_dir in $PATH
11140do
11141 IFS=$as_save_IFS
54445dc2
TT
11142 case $as_dir in #(((
11143 '') as_dir=./ ;;
11144 */) ;;
11145 *) as_dir=$as_dir/ ;;
11146 esac
57aa50d4 11147 for ac_exec_ext in '' $ac_executable_extensions; do
54445dc2
TT
11148 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11149 ac_cv_path_CHMOD="$as_dir$ac_word$ac_exec_ext"
11150 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
57aa50d4
TT
11151 break 2
11152 fi
11153done
11154 done
11155IFS=$as_save_IFS
39fd3d4f 11156
57aa50d4
TT
11157 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11158 ;;
e1052144 11159esac
b0cacab0 11160fi
57aa50d4
TT
11161CHMOD=$ac_cv_path_CHMOD
11162if test -n "$CHMOD"; then
54445dc2
TT
11163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
11164printf "%s\n" "$CHMOD" >&6; }
b0cacab0 11165else
54445dc2
TT
11166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11167printf "%s\n" "no" >&6; }
b0cacab0 11168fi
39fd3d4f 11169
b0cacab0 11170
57aa50d4
TT
11171for ac_prog in gawk mawk nawk awk
11172do
11173 # Extract the first word of "$ac_prog", so it can be a program name with args.
11174set dummy $ac_prog; ac_word=$2
54445dc2
TT
11175{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11176printf %s "checking for $ac_word... " >&6; }
11177if test ${ac_cv_prog_AWK+y}
11178then :
11179 printf %s "(cached) " >&6
11180else $as_nop
57aa50d4
TT
11181 if test -n "$AWK"; then
11182 ac_cv_prog_AWK="$AWK" # Let the user override the test.
b0cacab0 11183else
57aa50d4
TT
11184as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11185for as_dir in $PATH
11186do
11187 IFS=$as_save_IFS
54445dc2
TT
11188 case $as_dir in #(((
11189 '') as_dir=./ ;;
11190 */) ;;
11191 *) as_dir=$as_dir/ ;;
11192 esac
57aa50d4 11193 for ac_exec_ext in '' $ac_executable_extensions; do
54445dc2 11194 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
57aa50d4 11195 ac_cv_prog_AWK="$ac_prog"
54445dc2 11196 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
57aa50d4
TT
11197 break 2
11198 fi
11199done
11200 done
11201IFS=$as_save_IFS
b0cacab0 11202
b0cacab0 11203fi
57aa50d4
TT
11204fi
11205AWK=$ac_cv_prog_AWK
11206if test -n "$AWK"; then
54445dc2
TT
11207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11208printf "%s\n" "$AWK" >&6; }
b0cacab0 11209else
54445dc2
TT
11210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11211printf "%s\n" "no" >&6; }
b0cacab0 11212fi
b0cacab0 11213
b0cacab0 11214
57aa50d4
TT
11215 test -n "$AWK" && break
11216done
b0cacab0 11217
54445dc2
TT
11218{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11219printf %s "checking for egrep... " >&6; }
11220if test ${ac_cv_path_EGREP+y}
11221then :
11222 printf %s "(cached) " >&6
11223else $as_nop
57aa50d4
TT
11224 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11225 then ac_cv_path_EGREP="$GREP -E"
11226 else
11227 if test -z "$EGREP"; then
11228 ac_path_EGREP_found=false
11229 # Loop through the user's path and test for each of PROGNAME-LIST
11230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11231for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11232do
11233 IFS=$as_save_IFS
54445dc2
TT
11234 case $as_dir in #(((
11235 '') as_dir=./ ;;
11236 */) ;;
11237 *) as_dir=$as_dir/ ;;
11238 esac
11239 for ac_prog in egrep
11240 do
57aa50d4 11241 for ac_exec_ext in '' $ac_executable_extensions; do
54445dc2 11242 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
d6a4bcb5 11243 as_fn_executable_p "$ac_path_EGREP" || continue
57aa50d4
TT
11244# Check for GNU ac_path_EGREP and select it if it is found.
11245 # Check for GNU $ac_path_EGREP
11246case `"$ac_path_EGREP" --version 2>&1` in
11247*GNU*)
11248 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11249*)
11250 ac_count=0
54445dc2 11251 printf %s 0123456789 >"conftest.in"
57aa50d4
TT
11252 while :
11253 do
11254 cat "conftest.in" "conftest.in" >"conftest.tmp"
11255 mv "conftest.tmp" "conftest.in"
11256 cp "conftest.in" "conftest.nl"
54445dc2 11257 printf "%s\n" 'EGREP' >> "conftest.nl"
57aa50d4
TT
11258 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11259 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11260 as_fn_arith $ac_count + 1 && ac_count=$as_val
11261 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11262 # Best one so far, save it but keep looking for a better one
11263 ac_cv_path_EGREP="$ac_path_EGREP"
11264 ac_path_EGREP_max=$ac_count
11265 fi
11266 # 10*(2^10) chars as input seems more than enough
11267 test $ac_count -gt 10 && break
11268 done
11269 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
e1052144 11270esac
e1052144 11271
57aa50d4
TT
11272 $ac_path_EGREP_found && break 3
11273 done
b0cacab0 11274 done
57aa50d4
TT
11275 done
11276IFS=$as_save_IFS
11277 if test -z "$ac_cv_path_EGREP"; then
d6a4bcb5 11278 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
57aa50d4 11279 fi
b0cacab0 11280else
57aa50d4 11281 ac_cv_path_EGREP=$EGREP
b0cacab0 11282fi
e1052144 11283
57aa50d4 11284 fi
b0cacab0 11285fi
54445dc2
TT
11286{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11287printf "%s\n" "$ac_cv_path_EGREP" >&6; }
57aa50d4 11288 EGREP="$ac_cv_path_EGREP"
e1052144 11289
b0cacab0 11290
57aa50d4
TT
11291# Extract the first word of "sed", so it can be a program name with args.
11292set dummy sed; ac_word=$2
54445dc2
TT
11293{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11294printf %s "checking for $ac_word... " >&6; }
11295if test ${ac_cv_path_SED+y}
11296then :
11297 printf %s "(cached) " >&6
11298else $as_nop
57aa50d4
TT
11299 case $SED in
11300 [\\/]* | ?:[\\/]*)
11301 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11302 ;;
11303 *)
11304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11305for as_dir in $PATH
11306do
11307 IFS=$as_save_IFS
54445dc2
TT
11308 case $as_dir in #(((
11309 '') as_dir=./ ;;
11310 */) ;;
11311 *) as_dir=$as_dir/ ;;
11312 esac
57aa50d4 11313 for ac_exec_ext in '' $ac_executable_extensions; do
54445dc2
TT
11314 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11315 ac_cv_path_SED="$as_dir$ac_word$ac_exec_ext"
11316 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
57aa50d4
TT
11317 break 2
11318 fi
b0cacab0 11319done
57aa50d4
TT
11320 done
11321IFS=$as_save_IFS
b0cacab0 11322
57aa50d4
TT
11323 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11324 ;;
b0cacab0 11325esac
57aa50d4
TT
11326fi
11327SED=$ac_cv_path_SED
11328if test -n "$SED"; then
54445dc2
TT
11329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
11330printf "%s\n" "$SED" >&6; }
b0cacab0 11331else
54445dc2
TT
11332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11333printf "%s\n" "no" >&6; }
b0cacab0 11334fi
e1052144 11335
b0cacab0 11336
57aa50d4
TT
11337# Extract the first word of "perl", so it can be a program name with args.
11338set dummy perl; ac_word=$2
54445dc2
TT
11339{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11340printf %s "checking for $ac_word... " >&6; }
11341if test ${ac_cv_path_PERL+y}
11342then :
11343 printf %s "(cached) " >&6
11344else $as_nop
57aa50d4
TT
11345 case $PERL in
11346 [\\/]* | ?:[\\/]*)
11347 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11348 ;;
11349 *)
11350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11351for as_dir in $PATH
11352do
11353 IFS=$as_save_IFS
54445dc2
TT
11354 case $as_dir in #(((
11355 '') as_dir=./ ;;
11356 */) ;;
11357 *) as_dir=$as_dir/ ;;
11358 esac
57aa50d4 11359 for ac_exec_ext in '' $ac_executable_extensions; do
54445dc2
TT
11360 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11361 ac_cv_path_PERL="$as_dir$ac_word$ac_exec_ext"
11362 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
57aa50d4
TT
11363 break 2
11364 fi
b0cacab0 11365done
57aa50d4
TT
11366 done
11367IFS=$as_save_IFS
11368
11369 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11370 ;;
b0cacab0 11371esac
57aa50d4
TT
11372fi
11373PERL=$ac_cv_path_PERL
11374if test -n "$PERL"; then
54445dc2
TT
11375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
11376printf "%s\n" "$PERL" >&6; }
b0cacab0 11377else
54445dc2
TT
11378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11379printf "%s\n" "no" >&6; }
57aa50d4 11380fi
b0cacab0 11381
b0cacab0 11382
57aa50d4
TT
11383# Extract the first word of "ldconfig", so it can be a program name with args.
11384set dummy ldconfig; ac_word=$2
54445dc2
TT
11385{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11386printf %s "checking for $ac_word... " >&6; }
11387if test ${ac_cv_path_LDCONFIG+y}
11388then :
11389 printf %s "(cached) " >&6
11390else $as_nop
57aa50d4
TT
11391 case $LDCONFIG in
11392 [\\/]* | ?:[\\/]*)
11393 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
11394 ;;
11395 *)
11396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11397for as_dir in $PATH
11398do
11399 IFS=$as_save_IFS
54445dc2
TT
11400 case $as_dir in #(((
11401 '') as_dir=./ ;;
11402 */) ;;
11403 *) as_dir=$as_dir/ ;;
11404 esac
57aa50d4 11405 for ac_exec_ext in '' $ac_executable_extensions; do
54445dc2
TT
11406 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11407 ac_cv_path_LDCONFIG="$as_dir$ac_word$ac_exec_ext"
11408 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
57aa50d4
TT
11409 break 2
11410 fi
11411done
11412 done
11413IFS=$as_save_IFS
b0cacab0 11414
57aa50d4
TT
11415 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
11416 ;;
11417esac
39fd3d4f 11418fi
57aa50d4
TT
11419LDCONFIG=$ac_cv_path_LDCONFIG
11420if test -n "$LDCONFIG"; then
54445dc2
TT
11421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
11422printf "%s\n" "$LDCONFIG" >&6; }
57aa50d4 11423else
54445dc2
TT
11424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11425printf "%s\n" "no" >&6; }
b0cacab0 11426fi
39fd3d4f
SJR
11427
11428
57aa50d4
TT
11429if test -n "$ac_tool_prefix"; then
11430 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11431set dummy ${ac_tool_prefix}ar; ac_word=$2
54445dc2
TT
11432{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11433printf %s "checking for $ac_word... " >&6; }
11434if test ${ac_cv_prog_AR+y}
11435then :
11436 printf %s "(cached) " >&6
11437else $as_nop
57aa50d4
TT
11438 if test -n "$AR"; then
11439 ac_cv_prog_AR="$AR" # Let the user override the test.
11440else
11441as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11442for as_dir in $PATH
11443do
11444 IFS=$as_save_IFS
54445dc2
TT
11445 case $as_dir in #(((
11446 '') as_dir=./ ;;
11447 */) ;;
11448 *) as_dir=$as_dir/ ;;
11449 esac
57aa50d4 11450 for ac_exec_ext in '' $ac_executable_extensions; do
54445dc2 11451 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
57aa50d4 11452 ac_cv_prog_AR="${ac_tool_prefix}ar"
54445dc2 11453 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
57aa50d4
TT
11454 break 2
11455 fi
11456done
11457 done
11458IFS=$as_save_IFS
39fd3d4f 11459
57aa50d4
TT
11460fi
11461fi
11462AR=$ac_cv_prog_AR
11463if test -n "$AR"; then
54445dc2
TT
11464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11465printf "%s\n" "$AR" >&6; }
57aa50d4 11466else
54445dc2
TT
11467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11468printf "%s\n" "no" >&6; }
57aa50d4 11469fi
39fd3d4f 11470
b0cacab0 11471
57aa50d4
TT
11472fi
11473if test -z "$ac_cv_prog_AR"; then
11474 ac_ct_AR=$AR
11475 # Extract the first word of "ar", so it can be a program name with args.
11476set dummy ar; ac_word=$2
54445dc2
TT
11477{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11478printf %s "checking for $ac_word... " >&6; }
11479if test ${ac_cv_prog_ac_ct_AR+y}
11480then :
11481 printf %s "(cached) " >&6
11482else $as_nop
57aa50d4
TT
11483 if test -n "$ac_ct_AR"; then
11484 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
b0cacab0 11485else
57aa50d4
TT
11486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11487for as_dir in $PATH
11488do
11489 IFS=$as_save_IFS
54445dc2
TT
11490 case $as_dir in #(((
11491 '') as_dir=./ ;;
11492 */) ;;
11493 *) as_dir=$as_dir/ ;;
11494 esac
57aa50d4 11495 for ac_exec_ext in '' $ac_executable_extensions; do
54445dc2 11496 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
57aa50d4 11497 ac_cv_prog_ac_ct_AR="ar"
54445dc2 11498 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
57aa50d4
TT
11499 break 2
11500 fi
11501done
11502 done
11503IFS=$as_save_IFS
b0cacab0 11504
b0cacab0 11505fi
57aa50d4
TT
11506fi
11507ac_ct_AR=$ac_cv_prog_ac_ct_AR
11508if test -n "$ac_ct_AR"; then
54445dc2
TT
11509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11510printf "%s\n" "$ac_ct_AR" >&6; }
b0cacab0 11511else
54445dc2
TT
11512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11513printf "%s\n" "no" >&6; }
57aa50d4 11514fi
b0cacab0 11515
57aa50d4
TT
11516 if test "x$ac_ct_AR" = x; then
11517 AR="ar"
11518 else
11519 case $cross_compiling:$ac_tool_warned in
11520yes:)
54445dc2
TT
11521{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11522printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
57aa50d4 11523ac_tool_warned=yes ;;
e1052144 11524esac
57aa50d4
TT
11525 AR=$ac_ct_AR
11526 fi
b0cacab0 11527else
57aa50d4 11528 AR="$ac_cv_prog_AR"
b0cacab0 11529fi
e1052144 11530
57aa50d4
TT
11531if test -n "$ac_tool_prefix"; then
11532 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11533set dummy ${ac_tool_prefix}ranlib; ac_word=$2
54445dc2
TT
11534{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11535printf %s "checking for $ac_word... " >&6; }
11536if test ${ac_cv_prog_RANLIB+y}
11537then :
11538 printf %s "(cached) " >&6
11539else $as_nop
57aa50d4
TT
11540 if test -n "$RANLIB"; then
11541 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11542else
11543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11544for as_dir in $PATH
11545do
11546 IFS=$as_save_IFS
54445dc2
TT
11547 case $as_dir in #(((
11548 '') as_dir=./ ;;
11549 */) ;;
11550 *) as_dir=$as_dir/ ;;
11551 esac
57aa50d4 11552 for ac_exec_ext in '' $ac_executable_extensions; do
54445dc2 11553 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
57aa50d4 11554 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
54445dc2 11555 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
57aa50d4
TT
11556 break 2
11557 fi
11558done
b0cacab0 11559 done
57aa50d4 11560IFS=$as_save_IFS
b0cacab0 11561
b0cacab0 11562fi
57aa50d4
TT
11563fi
11564RANLIB=$ac_cv_prog_RANLIB
11565if test -n "$RANLIB"; then
54445dc2
TT
11566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11567printf "%s\n" "$RANLIB" >&6; }
b0cacab0 11568else
54445dc2
TT
11569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11570printf "%s\n" "no" >&6; }
b0cacab0 11571fi
b0cacab0 11572
b0cacab0 11573
57aa50d4
TT
11574fi
11575if test -z "$ac_cv_prog_RANLIB"; then
11576 ac_ct_RANLIB=$RANLIB
11577 # Extract the first word of "ranlib", so it can be a program name with args.
11578set dummy ranlib; ac_word=$2
54445dc2
TT
11579{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11580printf %s "checking for $ac_word... " >&6; }
11581if test ${ac_cv_prog_ac_ct_RANLIB+y}
11582then :
11583 printf %s "(cached) " >&6
11584else $as_nop
57aa50d4
TT
11585 if test -n "$ac_ct_RANLIB"; then
11586 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
b0cacab0 11587else
57aa50d4
TT
11588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11589for as_dir in $PATH
11590do
11591 IFS=$as_save_IFS
54445dc2
TT
11592 case $as_dir in #(((
11593 '') as_dir=./ ;;
11594 */) ;;
11595 *) as_dir=$as_dir/ ;;
11596 esac
57aa50d4 11597 for ac_exec_ext in '' $ac_executable_extensions; do
54445dc2 11598 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
57aa50d4 11599 ac_cv_prog_ac_ct_RANLIB="ranlib"
54445dc2 11600 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
57aa50d4
TT
11601 break 2
11602 fi
11603done
11604 done
11605IFS=$as_save_IFS
29a5deed 11606
b0cacab0 11607fi
57aa50d4
TT
11608fi
11609ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11610if test -n "$ac_ct_RANLIB"; then
54445dc2
TT
11611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11612printf "%s\n" "$ac_ct_RANLIB" >&6; }
b0cacab0 11613else
54445dc2
TT
11614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11615printf "%s\n" "no" >&6; }
57aa50d4 11616fi
b0cacab0 11617
57aa50d4
TT
11618 if test "x$ac_ct_RANLIB" = x; then
11619 RANLIB=":"
b0cacab0 11620 else
57aa50d4
TT
11621 case $cross_compiling:$ac_tool_warned in
11622yes:)
54445dc2
TT
11623{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11624printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
57aa50d4 11625ac_tool_warned=yes ;;
e1052144 11626esac
57aa50d4
TT
11627 RANLIB=$ac_ct_RANLIB
11628 fi
b0cacab0 11629else
57aa50d4 11630 RANLIB="$ac_cv_prog_RANLIB"
b0cacab0 11631fi
e1052144 11632
57aa50d4
TT
11633if test -n "$ac_tool_prefix"; then
11634 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11635set dummy ${ac_tool_prefix}strip; ac_word=$2
54445dc2
TT
11636{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11637printf %s "checking for $ac_word... " >&6; }
11638if test ${ac_cv_prog_STRIP+y}
11639then :
11640 printf %s "(cached) " >&6
11641else $as_nop
57aa50d4
TT
11642 if test -n "$STRIP"; then
11643 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11644else
11645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11646for as_dir in $PATH
11647do
11648 IFS=$as_save_IFS
54445dc2
TT
11649 case $as_dir in #(((
11650 '') as_dir=./ ;;
11651 */) ;;
11652 *) as_dir=$as_dir/ ;;
11653 esac
57aa50d4 11654 for ac_exec_ext in '' $ac_executable_extensions; do
54445dc2 11655 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
57aa50d4 11656 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
54445dc2 11657 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
57aa50d4
TT
11658 break 2
11659 fi
11660done
11661 done
11662IFS=$as_save_IFS
b0cacab0 11663
b0cacab0 11664fi
b0cacab0 11665fi
57aa50d4
TT
11666STRIP=$ac_cv_prog_STRIP
11667if test -n "$STRIP"; then
54445dc2
TT
11668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11669printf "%s\n" "$STRIP" >&6; }
57aa50d4 11670else
54445dc2
TT
11671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11672printf "%s\n" "no" >&6; }
b0cacab0 11673fi
e1052144 11674
b0cacab0 11675
57aa50d4
TT
11676fi
11677if test -z "$ac_cv_prog_STRIP"; then
11678 ac_ct_STRIP=$STRIP
11679 # Extract the first word of "strip", so it can be a program name with args.
11680set dummy strip; ac_word=$2
54445dc2
TT
11681{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11682printf %s "checking for $ac_word... " >&6; }
11683if test ${ac_cv_prog_ac_ct_STRIP+y}
11684then :
11685 printf %s "(cached) " >&6
11686else $as_nop
57aa50d4
TT
11687 if test -n "$ac_ct_STRIP"; then
11688 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11689else
11690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11691for as_dir in $PATH
11692do
11693 IFS=$as_save_IFS
54445dc2
TT
11694 case $as_dir in #(((
11695 '') as_dir=./ ;;
11696 */) ;;
11697 *) as_dir=$as_dir/ ;;
11698 esac
57aa50d4 11699 for ac_exec_ext in '' $ac_executable_extensions; do
54445dc2 11700 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
57aa50d4 11701 ac_cv_prog_ac_ct_STRIP="strip"
54445dc2 11702 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
57aa50d4
TT
11703 break 2
11704 fi
11705done
11706 done
11707IFS=$as_save_IFS
b0cacab0 11708
b0cacab0 11709fi
57aa50d4
TT
11710fi
11711ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11712if test -n "$ac_ct_STRIP"; then
54445dc2
TT
11713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11714printf "%s\n" "$ac_ct_STRIP" >&6; }
b0cacab0 11715else
54445dc2
TT
11716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11717printf "%s\n" "no" >&6; }
57aa50d4 11718fi
b0cacab0 11719
57aa50d4
TT
11720 if test "x$ac_ct_STRIP" = x; then
11721 STRIP=":"
b0cacab0 11722 else
57aa50d4
TT
11723 case $cross_compiling:$ac_tool_warned in
11724yes:)
54445dc2
TT
11725{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11726printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
57aa50d4 11727ac_tool_warned=yes ;;
e1052144 11728esac
57aa50d4
TT
11729 STRIP=$ac_ct_STRIP
11730 fi
b0cacab0 11731else
57aa50d4 11732 STRIP="$ac_cv_prog_STRIP"
b0cacab0 11733fi
e1052144 11734
57aa50d4
TT
11735# Extract the first word of "makeinfo", so it can be a program name with args.
11736set dummy makeinfo; ac_word=$2
54445dc2
TT
11737{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11738printf %s "checking for $ac_word... " >&6; }
11739if test ${ac_cv_prog_MAKEINFO+y}
11740then :
11741 printf %s "(cached) " >&6
11742else $as_nop
57aa50d4
TT
11743 if test -n "$MAKEINFO"; then
11744 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
11745else
11746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11747for as_dir in $PATH
11748do
11749 IFS=$as_save_IFS
54445dc2
TT
11750 case $as_dir in #(((
11751 '') as_dir=./ ;;
11752 */) ;;
11753 *) as_dir=$as_dir/ ;;
11754 esac
57aa50d4 11755 for ac_exec_ext in '' $ac_executable_extensions; do
54445dc2 11756 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
57aa50d4 11757 ac_cv_prog_MAKEINFO="makeinfo"
54445dc2 11758 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
57aa50d4
TT
11759 break 2
11760 fi
11761done
11762 done
11763IFS=$as_save_IFS
b0cacab0 11764
b0cacab0
TT
11765fi
11766fi
57aa50d4
TT
11767MAKEINFO=$ac_cv_prog_MAKEINFO
11768if test -n "$MAKEINFO"; then
54445dc2
TT
11769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
11770printf "%s\n" "$MAKEINFO" >&6; }
b0cacab0 11771else
54445dc2
TT
11772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11773printf "%s\n" "no" >&6; }
07a0db15 11774fi
29a5deed
TT
11775
11776
57aa50d4 11777if test "_$MAKEINFO" = "_"; then
ca1de98a 11778 MAKEINFO="echo Makeinfo is missing. Info documentation will not be built."
57aa50d4
TT
11779else
11780 case "$MAKEINFO" in
11781 */missing.*)
54445dc2 11782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING:
57aa50d4 11783*** Makeinfo is missing. Info documentation will not be built." >&5
54445dc2 11784printf "%s\n" "$as_me: WARNING:
57aa50d4
TT
11785*** Makeinfo is missing. Info documentation will not be built." >&2;}
11786 ;;
11787 *)
11788 ;;
11789 esac
b0cacab0 11790fi
29a5deed 11791
b0cacab0 11792
57aa50d4
TT
11793# See if we need a separate native compiler.
11794if test $cross_compiling = no; then
11795 BUILD_CC="$CC"
b0cacab0 11796
b0cacab0 11797else
57aa50d4
TT
11798 for ac_prog in gcc cc
11799do
11800 # Extract the first word of "$ac_prog", so it can be a program name with args.
11801set dummy $ac_prog; ac_word=$2
54445dc2
TT
11802{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11803printf %s "checking for $ac_word... " >&6; }
11804if test ${ac_cv_prog_BUILD_CC+y}
11805then :
11806 printf %s "(cached) " >&6
11807else $as_nop
57aa50d4
TT
11808 if test -n "$BUILD_CC"; then
11809 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
11810else
11811as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11812for as_dir in $PATH
11813do
11814 IFS=$as_save_IFS
54445dc2
TT
11815 case $as_dir in #(((
11816 '') as_dir=./ ;;
11817 */) ;;
11818 *) as_dir=$as_dir/ ;;
11819 esac
57aa50d4 11820 for ac_exec_ext in '' $ac_executable_extensions; do
54445dc2 11821 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
57aa50d4 11822 ac_cv_prog_BUILD_CC="$ac_prog"
54445dc2 11823 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
57aa50d4
TT
11824 break 2
11825 fi
11826done
11827 done
11828IFS=$as_save_IFS
b0cacab0 11829
b0cacab0 11830fi
57aa50d4
TT
11831fi
11832BUILD_CC=$ac_cv_prog_BUILD_CC
11833if test -n "$BUILD_CC"; then
54445dc2
TT
11834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
11835printf "%s\n" "$BUILD_CC" >&6; }
07a0db15 11836else
54445dc2
TT
11837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11838printf "%s\n" "no" >&6; }
b0cacab0 11839fi
b0cacab0 11840
b0cacab0 11841
57aa50d4
TT
11842 test -n "$BUILD_CC" && break
11843done
b0cacab0 11844
57aa50d4 11845fi
54445dc2
TT
11846ac_fn_c_check_header_compile "$LINENO" "dirent.h" "ac_cv_header_dirent_h" "$ac_includes_default"
11847if test "x$ac_cv_header_dirent_h" = xyes
11848then :
11849 printf "%s\n" "#define HAVE_DIRENT_H 1" >>confdefs.h
b0cacab0 11850
b0cacab0 11851fi
54445dc2
TT
11852ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
11853if test "x$ac_cv_header_errno_h" = xyes
11854then :
11855 printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h
e1052144 11856
54445dc2
TT
11857fi
11858ac_fn_c_check_header_compile "$LINENO" "execinfo.h" "ac_cv_header_execinfo_h" "$ac_includes_default"
11859if test "x$ac_cv_header_execinfo_h" = xyes
11860then :
11861 printf "%s\n" "#define HAVE_EXECINFO_H 1" >>confdefs.h
11862
11863fi
11864ac_fn_c_check_header_compile "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
11865if test "x$ac_cv_header_getopt_h" = xyes
11866then :
11867 printf "%s\n" "#define HAVE_GETOPT_H 1" >>confdefs.h
93636bde 11868
54445dc2
TT
11869fi
11870ac_fn_c_check_header_compile "$LINENO" "malloc.h" "ac_cv_header_malloc_h" "$ac_includes_default"
11871if test "x$ac_cv_header_malloc_h" = xyes
11872then :
11873 printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
11874
11875fi
11876ac_fn_c_check_header_compile "$LINENO" "mntent.h" "ac_cv_header_mntent_h" "$ac_includes_default"
11877if test "x$ac_cv_header_mntent_h" = xyes
11878then :
11879 printf "%s\n" "#define HAVE_MNTENT_H 1" >>confdefs.h
11880
11881fi
11882ac_fn_c_check_header_compile "$LINENO" "paths.h" "ac_cv_header_paths_h" "$ac_includes_default"
11883if test "x$ac_cv_header_paths_h" = xyes
11884then :
11885 printf "%s\n" "#define HAVE_PATHS_H 1" >>confdefs.h
11886
11887fi
11888ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
11889if test "x$ac_cv_header_pthread_h" = xyes
11890then :
11891 printf "%s\n" "#define HAVE_PTHREAD_H 1" >>confdefs.h
11892
11893fi
11894ac_fn_c_check_header_compile "$LINENO" "semaphore.h" "ac_cv_header_semaphore_h" "$ac_includes_default"
11895if test "x$ac_cv_header_semaphore_h" = xyes
11896then :
11897 printf "%s\n" "#define HAVE_SEMAPHORE_H 1" >>confdefs.h
11898
11899fi
11900ac_fn_c_check_header_compile "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$ac_includes_default"
11901if test "x$ac_cv_header_setjmp_h" = xyes
11902then :
11903 printf "%s\n" "#define HAVE_SETJMP_H 1" >>confdefs.h
11904
11905fi
11906ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
11907if test "x$ac_cv_header_signal_h" = xyes
11908then :
11909 printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
11910
11911fi
11912ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
11913if test "x$ac_cv_header_stdarg_h" = xyes
11914then :
11915 printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h
11916
11917fi
11918ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
11919if test "x$ac_cv_header_stdint_h" = xyes
11920then :
11921 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
11922
11923fi
11924ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
11925if test "x$ac_cv_header_stdlib_h" = xyes
11926then :
11927 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
11928
11929fi
11930ac_fn_c_check_header_compile "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
11931if test "x$ac_cv_header_termios_h" = xyes
11932then :
11933 printf "%s\n" "#define HAVE_TERMIOS_H 1" >>confdefs.h
11934
11935fi
11936ac_fn_c_check_header_compile "$LINENO" "termio.h" "ac_cv_header_termio_h" "$ac_includes_default"
11937if test "x$ac_cv_header_termio_h" = xyes
11938then :
11939 printf "%s\n" "#define HAVE_TERMIO_H 1" >>confdefs.h
11940
11941fi
11942ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
11943if test "x$ac_cv_header_unistd_h" = xyes
11944then :
11945 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
11946
11947fi
11948ac_fn_c_check_header_compile "$LINENO" "utime.h" "ac_cv_header_utime_h" "$ac_includes_default"
11949if test "x$ac_cv_header_utime_h" = xyes
11950then :
11951 printf "%s\n" "#define HAVE_UTIME_H 1" >>confdefs.h
11952
11953fi
11954ac_fn_c_check_header_compile "$LINENO" "attr/xattr.h" "ac_cv_header_attr_xattr_h" "$ac_includes_default"
11955if test "x$ac_cv_header_attr_xattr_h" = xyes
11956then :
11957 printf "%s\n" "#define HAVE_ATTR_XATTR_H 1" >>confdefs.h
11958
11959fi
11960ac_fn_c_check_header_compile "$LINENO" "linux/falloc.h" "ac_cv_header_linux_falloc_h" "$ac_includes_default"
11961if test "x$ac_cv_header_linux_falloc_h" = xyes
11962then :
11963 printf "%s\n" "#define HAVE_LINUX_FALLOC_H 1" >>confdefs.h
11964
11965fi
11966ac_fn_c_check_header_compile "$LINENO" "linux/fd.h" "ac_cv_header_linux_fd_h" "$ac_includes_default"
11967if test "x$ac_cv_header_linux_fd_h" = xyes
11968then :
11969 printf "%s\n" "#define HAVE_LINUX_FD_H 1" >>confdefs.h
11970
11971fi
11972ac_fn_c_check_header_compile "$LINENO" "linux/fsmap.h" "ac_cv_header_linux_fsmap_h" "$ac_includes_default"
11973if test "x$ac_cv_header_linux_fsmap_h" = xyes
11974then :
11975 printf "%s\n" "#define HAVE_LINUX_FSMAP_H 1" >>confdefs.h
11976
11977fi
11978ac_fn_c_check_header_compile "$LINENO" "linux/major.h" "ac_cv_header_linux_major_h" "$ac_includes_default"
11979if test "x$ac_cv_header_linux_major_h" = xyes
11980then :
11981 printf "%s\n" "#define HAVE_LINUX_MAJOR_H 1" >>confdefs.h
11982
11983fi
11984ac_fn_c_check_header_compile "$LINENO" "linux/loop.h" "ac_cv_header_linux_loop_h" "$ac_includes_default"
11985if test "x$ac_cv_header_linux_loop_h" = xyes
11986then :
11987 printf "%s\n" "#define HAVE_LINUX_LOOP_H 1" >>confdefs.h
11988
11989fi
11990ac_fn_c_check_header_compile "$LINENO" "linux/types.h" "ac_cv_header_linux_types_h" "$ac_includes_default"
11991if test "x$ac_cv_header_linux_types_h" = xyes
11992then :
11993 printf "%s\n" "#define HAVE_LINUX_TYPES_H 1" >>confdefs.h
11994
11995fi
11996ac_fn_c_check_header_compile "$LINENO" "net/if_dl.h" "ac_cv_header_net_if_dl_h" "$ac_includes_default"
11997if test "x$ac_cv_header_net_if_dl_h" = xyes
11998then :
11999 printf "%s\n" "#define HAVE_NET_IF_DL_H 1" >>confdefs.h
12000
12001fi
12002ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
12003if test "x$ac_cv_header_netinet_in_h" = xyes
12004then :
12005 printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
12006
12007fi
12008ac_fn_c_check_header_compile "$LINENO" "sys/acl.h" "ac_cv_header_sys_acl_h" "$ac_includes_default"
12009if test "x$ac_cv_header_sys_acl_h" = xyes
12010then :
12011 printf "%s\n" "#define HAVE_SYS_ACL_H 1" >>confdefs.h
12012
12013fi
12014ac_fn_c_check_header_compile "$LINENO" "sys/disklabel.h" "ac_cv_header_sys_disklabel_h" "$ac_includes_default"
12015if test "x$ac_cv_header_sys_disklabel_h" = xyes
12016then :
12017 printf "%s\n" "#define HAVE_SYS_DISKLABEL_H 1" >>confdefs.h
12018
12019fi
12020ac_fn_c_check_header_compile "$LINENO" "sys/disk.h" "ac_cv_header_sys_disk_h" "$ac_includes_default"
12021if test "x$ac_cv_header_sys_disk_h" = xyes
12022then :
12023 printf "%s\n" "#define HAVE_SYS_DISK_H 1" >>confdefs.h
12024
12025fi
12026ac_fn_c_check_header_compile "$LINENO" "sys/file.h" "ac_cv_header_sys_file_h" "$ac_includes_default"
12027if test "x$ac_cv_header_sys_file_h" = xyes
12028then :
12029 printf "%s\n" "#define HAVE_SYS_FILE_H 1" >>confdefs.h
12030
12031fi
12032ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
12033if test "x$ac_cv_header_sys_ioctl_h" = xyes
12034then :
12035 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
12036
12037fi
12038ac_fn_c_check_header_compile "$LINENO" "sys/key.h" "ac_cv_header_sys_key_h" "$ac_includes_default"
12039if test "x$ac_cv_header_sys_key_h" = xyes
12040then :
12041 printf "%s\n" "#define HAVE_SYS_KEY_H 1" >>confdefs.h
12042
12043fi
12044ac_fn_c_check_header_compile "$LINENO" "sys/mkdev.h" "ac_cv_header_sys_mkdev_h" "$ac_includes_default"
12045if test "x$ac_cv_header_sys_mkdev_h" = xyes
12046then :
12047 printf "%s\n" "#define HAVE_SYS_MKDEV_H 1" >>confdefs.h
12048
12049fi
12050ac_fn_c_check_header_compile "$LINENO" "sys/mman.h" "ac_cv_header_sys_mman_h" "$ac_includes_default"
12051if test "x$ac_cv_header_sys_mman_h" = xyes
12052then :
12053 printf "%s\n" "#define HAVE_SYS_MMAN_H 1" >>confdefs.h
12054
12055fi
12056ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default"
12057if test "x$ac_cv_header_sys_mount_h" = xyes
12058then :
12059 printf "%s\n" "#define HAVE_SYS_MOUNT_H 1" >>confdefs.h
12060
12061fi
12062ac_fn_c_check_header_compile "$LINENO" "sys/prctl.h" "ac_cv_header_sys_prctl_h" "$ac_includes_default"
12063if test "x$ac_cv_header_sys_prctl_h" = xyes
12064then :
12065 printf "%s\n" "#define HAVE_SYS_PRCTL_H 1" >>confdefs.h
12066
12067fi
12068ac_fn_c_check_header_compile "$LINENO" "sys/random.h" "ac_cv_header_sys_random_h" "$ac_includes_default"
12069if test "x$ac_cv_header_sys_random_h" = xyes
12070then :
12071 printf "%s\n" "#define HAVE_SYS_RANDOM_H 1" >>confdefs.h
12072
12073fi
12074ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "$ac_includes_default"
12075if test "x$ac_cv_header_sys_resource_h" = xyes
12076then :
12077 printf "%s\n" "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h
12078
12079fi
12080ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
12081if test "x$ac_cv_header_sys_select_h" = xyes
12082then :
12083 printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
12084
12085fi
12086ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
12087if test "x$ac_cv_header_sys_socket_h" = xyes
12088then :
12089 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
12090
12091fi
12092ac_fn_c_check_header_compile "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default"
12093if test "x$ac_cv_header_sys_sockio_h" = xyes
12094then :
12095 printf "%s\n" "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h
12096
12097fi
12098ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
12099if test "x$ac_cv_header_sys_stat_h" = xyes
12100then :
12101 printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
12102
12103fi
12104ac_fn_c_check_header_compile "$LINENO" "sys/syscall.h" "ac_cv_header_sys_syscall_h" "$ac_includes_default"
12105if test "x$ac_cv_header_sys_syscall_h" = xyes
12106then :
12107 printf "%s\n" "#define HAVE_SYS_SYSCALL_H 1" >>confdefs.h
12108
12109fi
12110ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
12111if test "x$ac_cv_header_sys_sysmacros_h" = xyes
12112then :
12113 printf "%s\n" "#define HAVE_SYS_SYSMACROS_H 1" >>confdefs.h
12114
12115fi
12116ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
12117if test "x$ac_cv_header_sys_time_h" = xyes
12118then :
12119 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
12120
12121fi
12122ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
12123if test "x$ac_cv_header_sys_types_h" = xyes
12124then :
12125 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
12126
12127fi
12128ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
12129if test "x$ac_cv_header_sys_un_h" = xyes
12130then :
12131 printf "%s\n" "#define HAVE_SYS_UN_H 1" >>confdefs.h
12132
12133fi
12134ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default"
12135if test "x$ac_cv_header_sys_wait_h" = xyes
12136then :
12137 printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
12138
12139fi
12140ac_fn_c_check_header_compile "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$ac_includes_default"
12141if test "x$ac_cv_header_sys_xattr_h" = xyes
12142then :
12143 printf "%s\n" "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
12144
12145fi
12146
6eb00fb7
EB
12147case "$host_os" in
12148mingw*)
12149 # The above checks only detect system headers, not the headers in
12150 # ./include/mingw/, so explicitly define them to be available.
12151 printf "%s\n" "#define HAVE_LINUX_TYPES_H 1" >>confdefs.h
12152
12153 printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
12154
12155 printf "%s\n" "#define HAVE_SYS_SYSMACROS_H 1" >>confdefs.h
12156
12157 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
12158
12159 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
12160
12161 ;;
12162esac
54445dc2
TT
12163{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a dd(1) program that supports iflag=fullblock" >&5
12164printf %s "checking for a dd(1) program that supports iflag=fullblock... " >&6; }
ec3a69bb
MA
12165DD=
12166for i in dd gdd ; do
12167 if "$i" if=/dev/null of=/dev/null count=1 bs=10k 2>/dev/null iflag=fullblock oflag=append ; then
12168 DD=$i
12169 break
12170 fi
12171done
12172if test -n "$DD" ; then
54445dc2
TT
12173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
12174printf "%s\n" "$DD" >&6; }
ec3a69bb 12175else
54445dc2
TT
12176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: not found, using dd" >&5
12177printf "%s\n" "not found, using dd" >&6; }
ec3a69bb 12178 DD=dd
54445dc2
TT
12179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&5
12180printf "%s\n" "$as_me: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&2;}
ec3a69bb
MA
12181fi
12182
12183
54445dc2 12184ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
57aa50d4
TT
12185#if HAVE_SYS_TYPES_H
12186#include <sys/types.h>
12187#endif
12188#if HAVE_SYS_SOCKET
12189#include <sys/socket.h>
12190#endif
29a5deed 12191
57aa50d4 12192"
54445dc2
TT
12193if test "x$ac_cv_header_net_if_h" = xyes
12194then :
12195 printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h
b0cacab0 12196
b0cacab0 12197fi
e1052144 12198
54445dc2
TT
12199ac_func=
12200for ac_item in $ac_func_c_list
12201do
12202 if test $ac_func; then
12203 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
12204 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
12205 echo "#define $ac_item 1" >> confdefs.h
12206 fi
12207 ac_func=
12208 else
12209 ac_func=$ac_item
12210 fi
b0cacab0 12211done
b0cacab0 12212
54445dc2
TT
12213if test "x$ac_cv_func_vprintf" = xno
12214then :
12215 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
12216if test "x$ac_cv_func__doprnt" = xyes
12217then :
b0cacab0 12218
54445dc2 12219printf "%s\n" "#define HAVE_DOPRNT 1" >>confdefs.h
b0cacab0 12220
54445dc2 12221fi
b0cacab0 12222
50e1e10f 12223fi
54445dc2
TT
12224ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
12225"
12226if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes
12227then :
12228
12229printf "%s\n" "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
29a5deed 12230
57aa50d4 12231fi
29a5deed 12232
54445dc2
TT
12233ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
12234if test "x$ac_cv_member_struct_stat_st_atim" = xyes
12235then :
12236
12237printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIM 1" >>confdefs.h
29a5deed 12238
54445dc2
TT
12239
12240fi
12241
12242ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
57aa50d4 12243"
54445dc2
TT
12244if test "x$ac_cv_type_ssize_t" = xyes
12245then :
12246
12247printf "%s\n" "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
12248
12249fi
12250
12251{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
12252printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
12253if test ${ac_cv_c_undeclared_builtin_options+y}
12254then :
12255 printf %s "(cached) " >&6
12256else $as_nop
12257 ac_save_CFLAGS=$CFLAGS
12258 ac_cv_c_undeclared_builtin_options='cannot detect'
12259 for ac_arg in '' -fno-builtin; do
12260 CFLAGS="$ac_save_CFLAGS $ac_arg"
12261 # This test program should *not* compile successfully.
12262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12263/* end confdefs.h. */
d1154eb4 12264
54445dc2
TT
12265int
12266main (void)
12267{
12268(void) strchr;
12269 ;
12270 return 0;
12271}
12272_ACEOF
12273if ac_fn_c_try_compile "$LINENO"
12274then :
50e1e10f 12275
54445dc2
TT
12276else $as_nop
12277 # This test program should compile successfully.
12278 # No library function is consistently available on
12279 # freestanding implementations, so test against a dummy
12280 # declaration. Include always-available headers on the
12281 # off chance that they somehow elicit warnings.
12282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12283/* end confdefs.h. */
12284#include <float.h>
12285#include <limits.h>
12286#include <stdarg.h>
12287#include <stddef.h>
12288extern void ac_decl (int, char *);
2873927d 12289
54445dc2
TT
12290int
12291main (void)
12292{
12293(void) ac_decl (0, (char *) 0);
12294 (void) ac_decl;
2873927d 12295
54445dc2
TT
12296 ;
12297 return 0;
12298}
2873927d 12299_ACEOF
54445dc2
TT
12300if ac_fn_c_try_compile "$LINENO"
12301then :
12302 if test x"$ac_arg" = x
12303then :
12304 ac_cv_c_undeclared_builtin_options='none needed'
12305else $as_nop
12306 ac_cv_c_undeclared_builtin_options=$ac_arg
b0cacab0 12307fi
54445dc2 12308 break
57aa50d4 12309fi
54445dc2
TT
12310rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12311fi
12312rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12313 done
12314 CFLAGS=$ac_save_CFLAGS
12315
12316fi
12317{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
12318printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
12319 case $ac_cv_c_undeclared_builtin_options in #(
12320 'cannot detect') :
12321 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12322printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
12323as_fn_error $? "cannot make $CC report undeclared builtins
12324See \`config.log' for more details" "$LINENO" 5; } ;; #(
12325 'none needed') :
12326 ac_c_undeclared_builtin_options='' ;; #(
12327 *) :
12328 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
12329esac
b0cacab0 12330
54445dc2
TT
12331ac_fn_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
12332" "$ac_c_undeclared_builtin_options" "CFLAGS"
12333if test "x$ac_cv_have_decl_llseek" = xyes
12334then :
d1154eb4 12335
54445dc2 12336printf "%s\n" "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
b0cacab0 12337
b0cacab0 12338fi
54445dc2 12339ac_fn_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
57aa50d4
TT
12340 #define _LARGEFILE64_SOURCE
12341 #include <unistd.h>
54445dc2
TT
12342" "$ac_c_undeclared_builtin_options" "CFLAGS"
12343if test "x$ac_cv_have_decl_lseek64" = xyes
12344then :
d1154eb4 12345
54445dc2 12346printf "%s\n" "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
b0cacab0 12347
5598a968
EB
12348fi
12349
12350ac_fn_check_decl "$LINENO" "fsmap_sizeof" "ac_cv_have_decl_fsmap_sizeof" "#include <linux/fsmap.h>
12351" "$ac_c_undeclared_builtin_options" "CFLAGS"
12352if test "x$ac_cv_have_decl_fsmap_sizeof" = xyes
12353then :
12354
12355printf "%s\n" "#define HAVE_FSMAP_SIZEOF 1" >>confdefs.h
12356
b0cacab0 12357fi
fed000ae
MG
12358# Check whether --enable-largefile was given.
12359if test ${enable_largefile+y}
12360then :
12361 enableval=$enable_largefile;
12362fi
12363
12364if test "$enable_largefile" != no; then
12365
12366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
12367printf %s "checking for special C compiler options needed for large files... " >&6; }
12368if test ${ac_cv_sys_largefile_CC+y}
12369then :
12370 printf %s "(cached) " >&6
12371else $as_nop
12372 ac_cv_sys_largefile_CC=no
12373 if test "$GCC" != yes; then
12374 ac_save_CC=$CC
12375 while :; do
12376 # IRIX 6.2 and later do not support large files by default,
12377 # so use the C compiler's -n32 option if that helps.
12378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12379/* end confdefs.h. */
12380#include <sys/types.h>
12381 /* Check that off_t can represent 2**63 - 1 correctly.
12382 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12383 since some C++ compilers masquerading as C compilers
12384 incorrectly reject 9223372036854775807. */
12385#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
12386 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12387 && LARGE_OFF_T % 2147483647 == 1)
12388 ? 1 : -1];
12389int
12390main (void)
12391{
12392
12393 ;
12394 return 0;
12395}
12396_ACEOF
12397 if ac_fn_c_try_compile "$LINENO"
12398then :
12399 break
12400fi
12401rm -f core conftest.err conftest.$ac_objext conftest.beam
12402 CC="$CC -n32"
12403 if ac_fn_c_try_compile "$LINENO"
12404then :
12405 ac_cv_sys_largefile_CC=' -n32'; break
12406fi
12407rm -f core conftest.err conftest.$ac_objext conftest.beam
12408 break
12409 done
12410 CC=$ac_save_CC
12411 rm -f conftest.$ac_ext
12412 fi
12413fi
12414{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
12415printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
12416 if test "$ac_cv_sys_largefile_CC" != no; then
12417 CC=$CC$ac_cv_sys_largefile_CC
12418 fi
12419
12420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
12421printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
12422if test ${ac_cv_sys_file_offset_bits+y}
12423then :
12424 printf %s "(cached) " >&6
12425else $as_nop
12426 while :; do
12427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12428/* end confdefs.h. */
12429#include <sys/types.h>
12430 /* Check that off_t can represent 2**63 - 1 correctly.
12431 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12432 since some C++ compilers masquerading as C compilers
12433 incorrectly reject 9223372036854775807. */
12434#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
12435 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12436 && LARGE_OFF_T % 2147483647 == 1)
12437 ? 1 : -1];
12438int
12439main (void)
12440{
12441
12442 ;
12443 return 0;
12444}
12445_ACEOF
12446if ac_fn_c_try_compile "$LINENO"
12447then :
12448 ac_cv_sys_file_offset_bits=no; break
12449fi
12450rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12452/* end confdefs.h. */
12453#define _FILE_OFFSET_BITS 64
12454#include <sys/types.h>
12455 /* Check that off_t can represent 2**63 - 1 correctly.
12456 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12457 since some C++ compilers masquerading as C compilers
12458 incorrectly reject 9223372036854775807. */
12459#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
12460 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12461 && LARGE_OFF_T % 2147483647 == 1)
12462 ? 1 : -1];
12463int
12464main (void)
12465{
12466
12467 ;
12468 return 0;
12469}
12470_ACEOF
12471if ac_fn_c_try_compile "$LINENO"
12472then :
12473 ac_cv_sys_file_offset_bits=64; break
12474fi
12475rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12476 ac_cv_sys_file_offset_bits=unknown
12477 break
12478done
12479fi
12480{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
12481printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
12482case $ac_cv_sys_file_offset_bits in #(
12483 no | unknown) ;;
12484 *)
12485printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
12486;;
12487esac
12488rm -rf conftest*
12489 if test $ac_cv_sys_file_offset_bits = unknown; then
12490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
12491printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
12492if test ${ac_cv_sys_large_files+y}
12493then :
12494 printf %s "(cached) " >&6
12495else $as_nop
12496 while :; do
12497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12498/* end confdefs.h. */
12499#include <sys/types.h>
12500 /* Check that off_t can represent 2**63 - 1 correctly.
12501 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12502 since some C++ compilers masquerading as C compilers
12503 incorrectly reject 9223372036854775807. */
12504#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
12505 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12506 && LARGE_OFF_T % 2147483647 == 1)
12507 ? 1 : -1];
12508int
12509main (void)
12510{
12511
12512 ;
12513 return 0;
12514}
12515_ACEOF
12516if ac_fn_c_try_compile "$LINENO"
12517then :
12518 ac_cv_sys_large_files=no; break
12519fi
12520rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12522/* end confdefs.h. */
12523#define _LARGE_FILES 1
12524#include <sys/types.h>
12525 /* Check that off_t can represent 2**63 - 1 correctly.
12526 We can't simply define LARGE_OFF_T to be 9223372036854775807,
12527 since some C++ compilers masquerading as C compilers
12528 incorrectly reject 9223372036854775807. */
12529#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
12530 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
12531 && LARGE_OFF_T % 2147483647 == 1)
12532 ? 1 : -1];
12533int
12534main (void)
12535{
12536
12537 ;
12538 return 0;
12539}
12540_ACEOF
12541if ac_fn_c_try_compile "$LINENO"
12542then :
12543 ac_cv_sys_large_files=1; break
12544fi
12545rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12546 ac_cv_sys_large_files=unknown
12547 break
12548done
12549fi
12550{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
12551printf "%s\n" "$ac_cv_sys_large_files" >&6; }
12552case $ac_cv_sys_large_files in #(
12553 no | unknown) ;;
12554 *)
12555printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
12556;;
12557esac
12558rm -rf conftest*
12559 fi
12560fi
12561
57aa50d4
TT
12562# The cast to long int works around a bug in the HP C Compiler
12563# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12564# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12565# This bug is HP SR number 8606223364.
54445dc2
TT
12566{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12567printf %s "checking size of short... " >&6; }
12568if test ${ac_cv_sizeof_short+y}
12569then :
12570 printf %s "(cached) " >&6
12571else $as_nop
12572 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"
12573then :
12574
12575else $as_nop
57aa50d4 12576 if test "$ac_cv_type_short" = yes; then
54445dc2
TT
12577 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12578printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
d6a4bcb5
TB
12579as_fn_error 77 "cannot compute sizeof (short)
12580See \`config.log' for more details" "$LINENO" 5; }
57aa50d4
TT
12581 else
12582 ac_cv_sizeof_short=0
12583 fi
07a0db15 12584fi
b0cacab0 12585
b0cacab0 12586fi
54445dc2
TT
12587{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12588printf "%s\n" "$ac_cv_sizeof_short" >&6; }
e1052144 12589
93636bde 12590
57aa50d4 12591
54445dc2 12592printf "%s\n" "#define SIZEOF_SHORT $ac_cv_sizeof_short" >>confdefs.h
57aa50d4
TT
12593
12594
12595# The cast to long int works around a bug in the HP C Compiler
12596# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12597# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12598# This bug is HP SR number 8606223364.
54445dc2
TT
12599{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12600printf %s "checking size of int... " >&6; }
12601if test ${ac_cv_sizeof_int+y}
12602then :
12603 printf %s "(cached) " >&6
12604else $as_nop
12605 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"
12606then :
12607
12608else $as_nop
57aa50d4 12609 if test "$ac_cv_type_int" = yes; then
54445dc2
TT
12610 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12611printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
d6a4bcb5
TB
12612as_fn_error 77 "cannot compute sizeof (int)
12613See \`config.log' for more details" "$LINENO" 5; }
57aa50d4
TT
12614 else
12615 ac_cv_sizeof_int=0
12616 fi
07a0db15 12617fi
e1052144 12618
b0cacab0 12619fi
54445dc2
TT
12620{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12621printf "%s\n" "$ac_cv_sizeof_int" >&6; }
e1052144 12622
93636bde 12623
57aa50d4 12624
54445dc2 12625printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h
b0cacab0 12626
e1052144 12627
57aa50d4
TT
12628# The cast to long int works around a bug in the HP C Compiler
12629# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12630# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12631# This bug is HP SR number 8606223364.
54445dc2
TT
12632{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12633printf %s "checking size of long... " >&6; }
12634if test ${ac_cv_sizeof_long+y}
12635then :
12636 printf %s "(cached) " >&6
12637else $as_nop
12638 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"
12639then :
12640
12641else $as_nop
57aa50d4 12642 if test "$ac_cv_type_long" = yes; then
54445dc2
TT
12643 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12644printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
d6a4bcb5
TB
12645as_fn_error 77 "cannot compute sizeof (long)
12646See \`config.log' for more details" "$LINENO" 5; }
29a5deed 12647 else
57aa50d4
TT
12648 ac_cv_sizeof_long=0
12649 fi
12650fi
39fd3d4f 12651
57aa50d4 12652fi
54445dc2
TT
12653{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12654printf "%s\n" "$ac_cv_sizeof_long" >&6; }
39fd3d4f 12655
57aa50d4
TT
12656
12657
54445dc2 12658printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h
57aa50d4
TT
12659
12660
12661# The cast to long int works around a bug in the HP C Compiler
12662# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12663# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12664# This bug is HP SR number 8606223364.
54445dc2
TT
12665{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12666printf %s "checking size of long long... " >&6; }
12667if test ${ac_cv_sizeof_long_long+y}
12668then :
12669 printf %s "(cached) " >&6
12670else $as_nop
12671 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"
12672then :
12673
12674else $as_nop
57aa50d4 12675 if test "$ac_cv_type_long_long" = yes; then
54445dc2
TT
12676 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12677printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
d6a4bcb5
TB
12678as_fn_error 77 "cannot compute sizeof (long long)
12679See \`config.log' for more details" "$LINENO" 5; }
39fd3d4f
SJR
12680 else
12681 ac_cv_sizeof_long_long=0
12682 fi
12683fi
57aa50d4 12684
39fd3d4f 12685fi
54445dc2
TT
12686{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
12687printf "%s\n" "$ac_cv_sizeof_long_long" >&6; }
39fd3d4f
SJR
12688
12689
12690
54445dc2 12691printf "%s\n" "#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long" >>confdefs.h
39fd3d4f
SJR
12692
12693
cc68e8a6
TT
12694# The cast to long int works around a bug in the HP C Compiler
12695# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12696# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12697# This bug is HP SR number 8606223364.
54445dc2
TT
12698{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
12699printf %s "checking size of off_t... " >&6; }
12700if test ${ac_cv_sizeof_off_t+y}
12701then :
12702 printf %s "(cached) " >&6
12703else $as_nop
12704 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"
12705then :
12706
12707else $as_nop
cc68e8a6 12708 if test "$ac_cv_type_off_t" = yes; then
54445dc2
TT
12709 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12710printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
cc68e8a6
TT
12711as_fn_error 77 "cannot compute sizeof (off_t)
12712See \`config.log' for more details" "$LINENO" 5; }
12713 else
12714 ac_cv_sizeof_off_t=0
12715 fi
12716fi
12717
12718fi
54445dc2
TT
12719{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
12720printf "%s\n" "$ac_cv_sizeof_off_t" >&6; }
cc68e8a6
TT
12721
12722
12723
54445dc2 12724printf "%s\n" "#define SIZEOF_OFF_T $ac_cv_sizeof_off_t" >>confdefs.h
cc68e8a6
TT
12725
12726
2dd680f3
TT
12727# The cast to long int works around a bug in the HP C Compiler
12728# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12729# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12730# This bug is HP SR number 8606223364.
54445dc2
TT
12731{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
12732printf %s "checking size of time_t... " >&6; }
12733if test ${ac_cv_sizeof_time_t+y}
12734then :
12735 printf %s "(cached) " >&6
12736else $as_nop
12737 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"
12738then :
12739
12740else $as_nop
2dd680f3 12741 if test "$ac_cv_type_time_t" = yes; then
54445dc2
TT
12742 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12743printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2dd680f3
TT
12744as_fn_error 77 "cannot compute sizeof (time_t)
12745See \`config.log' for more details" "$LINENO" 5; }
12746 else
12747 ac_cv_sizeof_time_t=0
12748 fi
12749fi
12750
12751fi
54445dc2
TT
12752{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
12753printf "%s\n" "$ac_cv_sizeof_time_t" >&6; }
2dd680f3
TT
12754
12755
12756
54445dc2 12757printf "%s\n" "#define SIZEOF_TIME_T $ac_cv_sizeof_time_t" >>confdefs.h
2dd680f3
TT
12758
12759
39fd3d4f
SJR
12760SIZEOF_SHORT=$ac_cv_sizeof_short
12761SIZEOF_INT=$ac_cv_sizeof_int
12762SIZEOF_LONG=$ac_cv_sizeof_long
12763SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
cc68e8a6 12764SIZEOF_OFF_T=$ac_cv_sizeof_off_t
2dd680f3
TT
12765SIZEOF_TIME_T=$ac_cv_sizeof_time_t
12766
cc68e8a6 12767
39fd3d4f
SJR
12768
12769
12770
12771
54445dc2
TT
12772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
12773printf %s "checking whether byte ordering is bigendian... " >&6; }
12774if test ${ac_cv_c_bigendian+y}
12775then :
12776 printf %s "(cached) " >&6
12777else $as_nop
39fd3d4f
SJR
12778 ac_cv_c_bigendian=unknown
12779 # See if we're dealing with a universal compiler.
57aa50d4 12780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39fd3d4f
SJR
12781/* end confdefs.h. */
12782#ifndef __APPLE_CC__
12783 not a universal capable compiler
12784 #endif
12785 typedef int dummy;
12786
12787_ACEOF
54445dc2
TT
12788if ac_fn_c_try_compile "$LINENO"
12789then :
39fd3d4f
SJR
12790
12791 # Check for potential -arch flags. It is not universal unless
57aa50d4
TT
12792 # there are at least two -arch flags with different values.
12793 ac_arch=
12794 ac_prev=
12795 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12796 if test -n "$ac_prev"; then
12797 case $ac_word in
12798 i?86 | x86_64 | ppc | ppc64)
12799 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12800 ac_arch=$ac_word
12801 else
12802 ac_cv_c_bigendian=universal
12803 break
12804 fi
12805 ;;
12806 esac
12807 ac_prev=
12808 elif test "x$ac_word" = "x-arch"; then
12809 ac_prev=arch
12810 fi
12811 done
39fd3d4f 12812fi
54445dc2 12813rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
39fd3d4f
SJR
12814 if test $ac_cv_c_bigendian = unknown; then
12815 # See if sys/param.h defines the BYTE_ORDER macro.
57aa50d4 12816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39fd3d4f
SJR
12817/* end confdefs.h. */
12818#include <sys/types.h>
12819 #include <sys/param.h>
12820
12821int
54445dc2 12822main (void)
39fd3d4f
SJR
12823{
12824#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12825 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12826 && LITTLE_ENDIAN)
12827 bogus endian macros
12828 #endif
12829
12830 ;
12831 return 0;
12832}
12833_ACEOF
54445dc2
TT
12834if ac_fn_c_try_compile "$LINENO"
12835then :
39fd3d4f 12836 # It does; now see whether it defined to BIG_ENDIAN or not.
57aa50d4 12837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39fd3d4f
SJR
12838/* end confdefs.h. */
12839#include <sys/types.h>
12840 #include <sys/param.h>
12841
b0cacab0 12842int
54445dc2 12843main (void)
07a0db15 12844{
39fd3d4f
SJR
12845#if BYTE_ORDER != BIG_ENDIAN
12846 not big endian
12847 #endif
b0cacab0
TT
12848
12849 ;
12850 return 0;
07a0db15 12851}
b0cacab0 12852_ACEOF
54445dc2
TT
12853if ac_fn_c_try_compile "$LINENO"
12854then :
39fd3d4f 12855 ac_cv_c_bigendian=yes
54445dc2 12856else $as_nop
57aa50d4 12857 ac_cv_c_bigendian=no
fc6d9d51 12858fi
54445dc2 12859rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
39fd3d4f 12860fi
54445dc2 12861rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
39fd3d4f
SJR
12862 fi
12863 if test $ac_cv_c_bigendian = unknown; then
12864 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
57aa50d4 12865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 12866/* end confdefs.h. */
39fd3d4f 12867#include <limits.h>
877eb6d9 12868
b0cacab0 12869int
54445dc2 12870main (void)
b0cacab0 12871{
39fd3d4f
SJR
12872#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12873 bogus endian macros
12874 #endif
b0cacab0
TT
12875
12876 ;
12877 return 0;
12878}
b0cacab0 12879_ACEOF
54445dc2
TT
12880if ac_fn_c_try_compile "$LINENO"
12881then :
57aa50d4
TT
12882 # It does; now see whether it defined to _BIG_ENDIAN or not.
12883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 12884/* end confdefs.h. */
39fd3d4f 12885#include <limits.h>
877eb6d9 12886
b0cacab0 12887int
54445dc2 12888main (void)
b0cacab0 12889{
39fd3d4f
SJR
12890#ifndef _BIG_ENDIAN
12891 not big endian
12892 #endif
b0cacab0
TT
12893
12894 ;
12895 return 0;
12896}
12897_ACEOF
54445dc2
TT
12898if ac_fn_c_try_compile "$LINENO"
12899then :
877eb6d9 12900 ac_cv_c_bigendian=yes
54445dc2 12901else $as_nop
57aa50d4 12902 ac_cv_c_bigendian=no
877eb6d9 12903fi
54445dc2 12904rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
39fd3d4f 12905fi
54445dc2 12906rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
39fd3d4f
SJR
12907 fi
12908 if test $ac_cv_c_bigendian = unknown; then
12909 # Compile a test program.
54445dc2
TT
12910 if test "$cross_compiling" = yes
12911then :
39fd3d4f 12912 # Try to guess by grepping values from an object file.
57aa50d4 12913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 12914/* end confdefs.h. */
54445dc2 12915unsigned short int ascii_mm[] =
39fd3d4f 12916 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
54445dc2 12917 unsigned short int ascii_ii[] =
39fd3d4f
SJR
12918 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12919 int use_ascii (int i) {
12920 return ascii_mm[i] + ascii_ii[i];
12921 }
54445dc2 12922 unsigned short int ebcdic_ii[] =
39fd3d4f 12923 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
54445dc2 12924 unsigned short int ebcdic_mm[] =
39fd3d4f
SJR
12925 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12926 int use_ebcdic (int i) {
12927 return ebcdic_mm[i] + ebcdic_ii[i];
12928 }
12929 extern int foo;
12930
b0cacab0 12931int
54445dc2 12932main (void)
b0cacab0 12933{
39fd3d4f 12934return use_ascii (foo) == use_ebcdic (foo);
b0cacab0
TT
12935 ;
12936 return 0;
12937}
12938_ACEOF
54445dc2
TT
12939if ac_fn_c_try_compile "$LINENO"
12940then :
39fd3d4f
SJR
12941 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12942 ac_cv_c_bigendian=yes
12943 fi
12944 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12945 if test "$ac_cv_c_bigendian" = unknown; then
12946 ac_cv_c_bigendian=no
12947 else
12948 # finding both strings is unlikely to happen, but who knows?
12949 ac_cv_c_bigendian=unknown
12950 fi
12951 fi
b0cacab0 12952fi
54445dc2
TT
12953rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12954else $as_nop
57aa50d4 12955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 12956/* end confdefs.h. */
e1052144 12957$ac_includes_default
b0cacab0 12958int
54445dc2 12959main (void)
b0cacab0 12960{
e1052144 12961
39fd3d4f
SJR
12962 /* Are we little or big endian? From Harbison&Steele. */
12963 union
12964 {
12965 long int l;
12966 char c[sizeof (long int)];
12967 } u;
12968 u.l = 1;
12969 return u.c[sizeof (long int) - 1] == 1;
e1052144
TT
12970
12971 ;
12972 return 0;
877eb6d9 12973}
b0cacab0 12974_ACEOF
54445dc2
TT
12975if ac_fn_c_try_run "$LINENO"
12976then :
877eb6d9 12977 ac_cv_c_bigendian=no
54445dc2 12978else $as_nop
57aa50d4 12979 ac_cv_c_bigendian=yes
877eb6d9 12980fi
57aa50d4
TT
12981rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12982 conftest.$ac_objext conftest.beam conftest.$ac_ext
877eb6d9 12983fi
e1052144 12984
39fd3d4f 12985 fi
877eb6d9 12986fi
54445dc2
TT
12987{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12988printf "%s\n" "$ac_cv_c_bigendian" >&6; }
39fd3d4f
SJR
12989 case $ac_cv_c_bigendian in #(
12990 yes)
54445dc2 12991 printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
39fd3d4f
SJR
12992;; #(
12993 no)
12994 ;; #(
12995 universal)
07a0db15 12996
54445dc2 12997printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
39fd3d4f
SJR
12998
12999 ;; #(
13000 *)
d6a4bcb5 13001 as_fn_error $? "unknown endianness
57aa50d4 13002 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
39fd3d4f 13003 esac
877eb6d9 13004
91f04685
CQ
13005if test $cross_compiling = no; then
13006 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
13007else
13008 CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
13009fi
4ea7ea00
TT
13010ASM_TYPES_HEADER=./asm_types.h
13011
488c75a6
TT
13012echo "/* These defines are needed for the public ext2fs.h header file */" \
13013 > public_config.h
13014if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
13015 uniq tmp_config.$$ >> public_config.h
13016else
13017 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
13018fi
13019if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
13020 uniq tmp_config.$$ >> public_config.h
13021else
13022 echo "#undef WORDS_BIGENDIAN" >> public_config.h
13023fi
13024rm -f tmp_config.$$
13025PUBLIC_CONFIG_HEADER=./public_config.h
13026
54445dc2
TT
13027ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
13028if test "x$ac_cv_header_inttypes_h" = xyes
13029then :
13030 printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
b0cacab0
TT
13031
13032fi
13033
57aa50d4 13034ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
54445dc2
TT
13035if test "x$ac_cv_type_intptr_t" = xyes
13036then :
b0cacab0 13037
54445dc2 13038printf "%s\n" "#define HAVE_INTPTR_T 1" >>confdefs.h
0c193f82 13039
d2ee56d8 13040
0c193f82
TT
13041fi
13042
54445dc2
TT
13043{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
13044printf %s "checking whether struct stat has a st_flags field... " >&6; }
13045if test ${e2fsprogs_cv_struct_st_flags+y}
13046then :
13047 printf %s "(cached) " >&6
13048else $as_nop
57aa50d4 13049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 13050/* end confdefs.h. */
50e1e10f 13051#include <sys/stat.h>
b0cacab0 13052int
54445dc2 13053main (void)
b0cacab0 13054{
50e1e10f 13055struct stat stat; stat.st_flags = 0;
b0cacab0
TT
13056 ;
13057 return 0;
13058}
13059_ACEOF
54445dc2
TT
13060if ac_fn_c_try_compile "$LINENO"
13061then :
50e1e10f 13062 e2fsprogs_cv_struct_st_flags=yes
54445dc2 13063else $as_nop
57aa50d4 13064 e2fsprogs_cv_struct_st_flags=no
50e1e10f 13065fi
54445dc2
TT
13066rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13067fi
13068
13069{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
13070printf "%s\n" "$e2fsprogs_cv_struct_st_flags" >&6; }
13071if test "$e2fsprogs_cv_struct_st_flags" = yes; then
13072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
13073printf %s "checking whether st_flags field is useful... " >&6; }
13074 if test ${e2fsprogs_cv_struct_st_flags_immut+y}
13075then :
13076 printf %s "(cached) " >&6
13077else $as_nop
13078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13079/* end confdefs.h. */
13080#include <sys/stat.h>
13081int
13082main (void)
13083{
13084struct stat stat; stat.st_flags |= UF_IMMUTABLE;
13085 ;
13086 return 0;
13087}
13088_ACEOF
13089if ac_fn_c_try_compile "$LINENO"
13090then :
13091 e2fsprogs_cv_struct_st_flags_immut=yes
13092else $as_nop
13093 e2fsprogs_cv_struct_st_flags_immut=no
13094fi
13095rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13096fi
13097
13098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
13099printf "%s\n" "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
13100 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
13101
13102printf "%s\n" "#define HAVE_STAT_FLAGS 1" >>confdefs.h
13103
13104 fi
13105fi
13106ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
13107 #include <sys/socket.h>
13108"
13109if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes
13110then :
13111
13112printf "%s\n" "#define HAVE_SA_LEN 1" >>confdefs.h
13113
13114fi
13115
13116if test -n "$BLKID_CMT"; then
13117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_probe_get_topology in -lblkid" >&5
13118printf %s "checking for blkid_probe_get_topology in -lblkid... " >&6; }
13119if test ${ac_cv_lib_blkid_blkid_probe_get_topology+y}
13120then :
13121 printf %s "(cached) " >&6
13122else $as_nop
13123 ac_check_lib_save_LIBS=$LIBS
13124LIBS="-lblkid $LIBS"
13125cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13126/* end confdefs.h. */
13127
13128/* Override any GCC internal prototype to avoid an error.
13129 Use char because int might match the return type of a GCC
13130 builtin and then its argument prototype would still apply. */
13131char blkid_probe_get_topology ();
13132int
13133main (void)
13134{
13135return blkid_probe_get_topology ();
13136 ;
13137 return 0;
13138}
13139_ACEOF
13140if ac_fn_c_try_link "$LINENO"
13141then :
13142 ac_cv_lib_blkid_blkid_probe_get_topology=yes
13143else $as_nop
13144 ac_cv_lib_blkid_blkid_probe_get_topology=no
13145fi
13146rm -f core conftest.err conftest.$ac_objext conftest.beam \
13147 conftest$ac_exeext conftest.$ac_ext
13148LIBS=$ac_check_lib_save_LIBS
13149fi
13150{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_probe_get_topology" >&5
13151printf "%s\n" "$ac_cv_lib_blkid_blkid_probe_get_topology" >&6; }
13152if test "x$ac_cv_lib_blkid_blkid_probe_get_topology" = xyes
13153then :
13154
13155printf "%s\n" "#define HAVE_BLKID_PROBE_GET_TOPOLOGY 1" >>confdefs.h
13156
13157fi
13158
13159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_topology_get_dax in -lblkid" >&5
13160printf %s "checking for blkid_topology_get_dax in -lblkid... " >&6; }
13161if test ${ac_cv_lib_blkid_blkid_topology_get_dax+y}
13162then :
13163 printf %s "(cached) " >&6
13164else $as_nop
13165 ac_check_lib_save_LIBS=$LIBS
13166LIBS="-lblkid $LIBS"
13167cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13168/* end confdefs.h. */
13169
13170/* Override any GCC internal prototype to avoid an error.
13171 Use char because int might match the return type of a GCC
13172 builtin and then its argument prototype would still apply. */
13173char blkid_topology_get_dax ();
13174int
13175main (void)
13176{
13177return blkid_topology_get_dax ();
13178 ;
13179 return 0;
13180}
13181_ACEOF
13182if ac_fn_c_try_link "$LINENO"
13183then :
13184 ac_cv_lib_blkid_blkid_topology_get_dax=yes
13185else $as_nop
13186 ac_cv_lib_blkid_blkid_topology_get_dax=no
13187fi
13188rm -f core conftest.err conftest.$ac_objext conftest.beam \
13189 conftest$ac_exeext conftest.$ac_ext
13190LIBS=$ac_check_lib_save_LIBS
13191fi
13192{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_topology_get_dax" >&5
13193printf "%s\n" "$ac_cv_lib_blkid_blkid_topology_get_dax" >&6; }
13194if test "x$ac_cv_lib_blkid_blkid_topology_get_dax" = xyes
13195then :
13196
13197printf "%s\n" "#define HAVE_BLKID_TOPOLOGY_GET_DAX 1" >>confdefs.h
13198
13199fi
13200
13201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for blkid_probe_enable_partitions in -lblkid" >&5
13202printf %s "checking for blkid_probe_enable_partitions in -lblkid... " >&6; }
13203if test ${ac_cv_lib_blkid_blkid_probe_enable_partitions+y}
13204then :
13205 printf %s "(cached) " >&6
13206else $as_nop
13207 ac_check_lib_save_LIBS=$LIBS
13208LIBS="-lblkid $LIBS"
13209cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13210/* end confdefs.h. */
13211
13212/* Override any GCC internal prototype to avoid an error.
13213 Use char because int might match the return type of a GCC
13214 builtin and then its argument prototype would still apply. */
13215char blkid_probe_enable_partitions ();
13216int
13217main (void)
13218{
13219return blkid_probe_enable_partitions ();
13220 ;
13221 return 0;
13222}
13223_ACEOF
13224if ac_fn_c_try_link "$LINENO"
13225then :
13226 ac_cv_lib_blkid_blkid_probe_enable_partitions=yes
13227else $as_nop
13228 ac_cv_lib_blkid_blkid_probe_enable_partitions=no
13229fi
13230rm -f core conftest.err conftest.$ac_objext conftest.beam \
13231 conftest$ac_exeext conftest.$ac_ext
13232LIBS=$ac_check_lib_save_LIBS
13233fi
13234{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_probe_enable_partitions" >&5
13235printf "%s\n" "$ac_cv_lib_blkid_blkid_probe_enable_partitions" >&6; }
13236if test "x$ac_cv_lib_blkid_blkid_probe_enable_partitions" = xyes
13237then :
13238
13239printf "%s\n" "#define HAVE_BLKID_PROBE_ENABLE_PARTITIONS 1" >>confdefs.h
13240
13241fi
13242
13243fi
13244if test -n "$DLOPEN_LIB" ; then
13245 ac_cv_func_dlopen=yes
13246fi
13247ac_fn_c_check_func "$LINENO" "__secure_getenv" "ac_cv_func___secure_getenv"
13248if test "x$ac_cv_func___secure_getenv" = xyes
13249then :
13250 printf "%s\n" "#define HAVE___SECURE_GETENV 1" >>confdefs.h
13251
13252fi
13253ac_fn_c_check_func "$LINENO" "add_key" "ac_cv_func_add_key"
13254if test "x$ac_cv_func_add_key" = xyes
13255then :
13256 printf "%s\n" "#define HAVE_ADD_KEY 1" >>confdefs.h
13257
13258fi
13259ac_fn_c_check_func "$LINENO" "backtrace" "ac_cv_func_backtrace"
13260if test "x$ac_cv_func_backtrace" = xyes
13261then :
13262 printf "%s\n" "#define HAVE_BACKTRACE 1" >>confdefs.h
13263
13264fi
13265ac_fn_c_check_func "$LINENO" "chflags" "ac_cv_func_chflags"
13266if test "x$ac_cv_func_chflags" = xyes
13267then :
13268 printf "%s\n" "#define HAVE_CHFLAGS 1" >>confdefs.h
13269
13270fi
13271ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
13272if test "x$ac_cv_func_dlopen" = xyes
13273then :
13274 printf "%s\n" "#define HAVE_DLOPEN 1" >>confdefs.h
13275
13276fi
13277ac_fn_c_check_func "$LINENO" "fadvise64" "ac_cv_func_fadvise64"
13278if test "x$ac_cv_func_fadvise64" = xyes
13279then :
13280 printf "%s\n" "#define HAVE_FADVISE64 1" >>confdefs.h
13281
13282fi
13283ac_fn_c_check_func "$LINENO" "fallocate" "ac_cv_func_fallocate"
13284if test "x$ac_cv_func_fallocate" = xyes
13285then :
13286 printf "%s\n" "#define HAVE_FALLOCATE 1" >>confdefs.h
13287
13288fi
13289ac_fn_c_check_func "$LINENO" "fallocate64" "ac_cv_func_fallocate64"
13290if test "x$ac_cv_func_fallocate64" = xyes
13291then :
13292 printf "%s\n" "#define HAVE_FALLOCATE64 1" >>confdefs.h
13293
13294fi
13295ac_fn_c_check_func "$LINENO" "fchown" "ac_cv_func_fchown"
13296if test "x$ac_cv_func_fchown" = xyes
13297then :
13298 printf "%s\n" "#define HAVE_FCHOWN 1" >>confdefs.h
13299
13300fi
13301ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
13302if test "x$ac_cv_func_fcntl" = xyes
13303then :
13304 printf "%s\n" "#define HAVE_FCNTL 1" >>confdefs.h
13305
13306fi
13307ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
13308if test "x$ac_cv_func_fdatasync" = xyes
13309then :
13310 printf "%s\n" "#define HAVE_FDATASYNC 1" >>confdefs.h
13311
13312fi
13313ac_fn_c_check_func "$LINENO" "fstat64" "ac_cv_func_fstat64"
13314if test "x$ac_cv_func_fstat64" = xyes
13315then :
13316 printf "%s\n" "#define HAVE_FSTAT64 1" >>confdefs.h
13317
13318fi
13319ac_fn_c_check_func "$LINENO" "fsync" "ac_cv_func_fsync"
13320if test "x$ac_cv_func_fsync" = xyes
13321then :
13322 printf "%s\n" "#define HAVE_FSYNC 1" >>confdefs.h
13323
13324fi
13325ac_fn_c_check_func "$LINENO" "ftruncate64" "ac_cv_func_ftruncate64"
13326if test "x$ac_cv_func_ftruncate64" = xyes
13327then :
13328 printf "%s\n" "#define HAVE_FTRUNCATE64 1" >>confdefs.h
13329
13330fi
13331ac_fn_c_check_func "$LINENO" "futimes" "ac_cv_func_futimes"
13332if test "x$ac_cv_func_futimes" = xyes
13333then :
13334 printf "%s\n" "#define HAVE_FUTIMES 1" >>confdefs.h
13335
13336fi
13337ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd"
13338if test "x$ac_cv_func_getcwd" = xyes
13339then :
13340 printf "%s\n" "#define HAVE_GETCWD 1" >>confdefs.h
13341
13342fi
13343ac_fn_c_check_func "$LINENO" "getdtablesize" "ac_cv_func_getdtablesize"
13344if test "x$ac_cv_func_getdtablesize" = xyes
13345then :
13346 printf "%s\n" "#define HAVE_GETDTABLESIZE 1" >>confdefs.h
13347
13348fi
13349ac_fn_c_check_func "$LINENO" "getentropy" "ac_cv_func_getentropy"
13350if test "x$ac_cv_func_getentropy" = xyes
13351then :
13352 printf "%s\n" "#define HAVE_GETENTROPY 1" >>confdefs.h
13353
13354fi
13355ac_fn_c_check_func "$LINENO" "gethostname" "ac_cv_func_gethostname"
13356if test "x$ac_cv_func_gethostname" = xyes
13357then :
13358 printf "%s\n" "#define HAVE_GETHOSTNAME 1" >>confdefs.h
13359
13360fi
13361ac_fn_c_check_func "$LINENO" "getmntinfo" "ac_cv_func_getmntinfo"
13362if test "x$ac_cv_func_getmntinfo" = xyes
13363then :
13364 printf "%s\n" "#define HAVE_GETMNTINFO 1" >>confdefs.h
13365
13366fi
13367ac_fn_c_check_func "$LINENO" "getpwuid_r" "ac_cv_func_getpwuid_r"
13368if test "x$ac_cv_func_getpwuid_r" = xyes
13369then :
13370 printf "%s\n" "#define HAVE_GETPWUID_R 1" >>confdefs.h
13371
13372fi
13373ac_fn_c_check_func "$LINENO" "getrandom" "ac_cv_func_getrandom"
13374if test "x$ac_cv_func_getrandom" = xyes
13375then :
13376 printf "%s\n" "#define HAVE_GETRANDOM 1" >>confdefs.h
13377
13378fi
13379ac_fn_c_check_func "$LINENO" "getrlimit" "ac_cv_func_getrlimit"
13380if test "x$ac_cv_func_getrlimit" = xyes
13381then :
13382 printf "%s\n" "#define HAVE_GETRLIMIT 1" >>confdefs.h
13383
13384fi
13385ac_fn_c_check_func "$LINENO" "getrusage" "ac_cv_func_getrusage"
13386if test "x$ac_cv_func_getrusage" = xyes
13387then :
13388 printf "%s\n" "#define HAVE_GETRUSAGE 1" >>confdefs.h
13389
13390fi
13391ac_fn_c_check_func "$LINENO" "jrand48" "ac_cv_func_jrand48"
13392if test "x$ac_cv_func_jrand48" = xyes
13393then :
13394 printf "%s\n" "#define HAVE_JRAND48 1" >>confdefs.h
13395
13396fi
13397ac_fn_c_check_func "$LINENO" "keyctl" "ac_cv_func_keyctl"
13398if test "x$ac_cv_func_keyctl" = xyes
13399then :
13400 printf "%s\n" "#define HAVE_KEYCTL 1" >>confdefs.h
13401
13402fi
13403ac_fn_c_check_func "$LINENO" "llistxattr" "ac_cv_func_llistxattr"
13404if test "x$ac_cv_func_llistxattr" = xyes
13405then :
13406 printf "%s\n" "#define HAVE_LLISTXATTR 1" >>confdefs.h
13407
13408fi
13409ac_fn_c_check_func "$LINENO" "llseek" "ac_cv_func_llseek"
13410if test "x$ac_cv_func_llseek" = xyes
13411then :
13412 printf "%s\n" "#define HAVE_LLSEEK 1" >>confdefs.h
13413
13414fi
13415ac_fn_c_check_func "$LINENO" "lseek64" "ac_cv_func_lseek64"
13416if test "x$ac_cv_func_lseek64" = xyes
13417then :
13418 printf "%s\n" "#define HAVE_LSEEK64 1" >>confdefs.h
13419
13420fi
13421ac_fn_c_check_func "$LINENO" "mallinfo" "ac_cv_func_mallinfo"
13422if test "x$ac_cv_func_mallinfo" = xyes
13423then :
13424 printf "%s\n" "#define HAVE_MALLINFO 1" >>confdefs.h
13425
13426fi
13427ac_fn_c_check_func "$LINENO" "mallinfo2" "ac_cv_func_mallinfo2"
13428if test "x$ac_cv_func_mallinfo2" = xyes
13429then :
13430 printf "%s\n" "#define HAVE_MALLINFO2 1" >>confdefs.h
13431
13432fi
13433ac_fn_c_check_func "$LINENO" "mbstowcs" "ac_cv_func_mbstowcs"
13434if test "x$ac_cv_func_mbstowcs" = xyes
13435then :
13436 printf "%s\n" "#define HAVE_MBSTOWCS 1" >>confdefs.h
13437
13438fi
13439ac_fn_c_check_func "$LINENO" "memalign" "ac_cv_func_memalign"
13440if test "x$ac_cv_func_memalign" = xyes
13441then :
13442 printf "%s\n" "#define HAVE_MEMALIGN 1" >>confdefs.h
13443
13444fi
13445ac_fn_c_check_func "$LINENO" "mempcpy" "ac_cv_func_mempcpy"
13446if test "x$ac_cv_func_mempcpy" = xyes
13447then :
13448 printf "%s\n" "#define HAVE_MEMPCPY 1" >>confdefs.h
13449
13450fi
13451ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
13452if test "x$ac_cv_func_mmap" = xyes
13453then :
13454 printf "%s\n" "#define HAVE_MMAP 1" >>confdefs.h
13455
13456fi
13457ac_fn_c_check_func "$LINENO" "msync" "ac_cv_func_msync"
13458if test "x$ac_cv_func_msync" = xyes
13459then :
13460 printf "%s\n" "#define HAVE_MSYNC 1" >>confdefs.h
13461
13462fi
13463ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
13464if test "x$ac_cv_func_nanosleep" = xyes
13465then :
13466 printf "%s\n" "#define HAVE_NANOSLEEP 1" >>confdefs.h
13467
13468fi
13469ac_fn_c_check_func "$LINENO" "open64" "ac_cv_func_open64"
13470if test "x$ac_cv_func_open64" = xyes
13471then :
13472 printf "%s\n" "#define HAVE_OPEN64 1" >>confdefs.h
13473
13474fi
13475ac_fn_c_check_func "$LINENO" "pathconf" "ac_cv_func_pathconf"
13476if test "x$ac_cv_func_pathconf" = xyes
13477then :
13478 printf "%s\n" "#define HAVE_PATHCONF 1" >>confdefs.h
13479
13480fi
13481ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise"
13482if test "x$ac_cv_func_posix_fadvise" = xyes
13483then :
13484 printf "%s\n" "#define HAVE_POSIX_FADVISE 1" >>confdefs.h
13485
50e1e10f 13486fi
54445dc2
TT
13487ac_fn_c_check_func "$LINENO" "posix_fadvise64" "ac_cv_func_posix_fadvise64"
13488if test "x$ac_cv_func_posix_fadvise64" = xyes
13489then :
13490 printf "%s\n" "#define HAVE_POSIX_FADVISE64 1" >>confdefs.h
50e1e10f 13491
84ea6e70 13492fi
54445dc2
TT
13493ac_fn_c_check_func "$LINENO" "posix_memalign" "ac_cv_func_posix_memalign"
13494if test "x$ac_cv_func_posix_memalign" = xyes
13495then :
13496 printf "%s\n" "#define HAVE_POSIX_MEMALIGN 1" >>confdefs.h
13497
84ea6e70 13498fi
54445dc2
TT
13499ac_fn_c_check_func "$LINENO" "prctl" "ac_cv_func_prctl"
13500if test "x$ac_cv_func_prctl" = xyes
13501then :
13502 printf "%s\n" "#define HAVE_PRCTL 1" >>confdefs.h
e1052144 13503
54445dc2
TT
13504fi
13505ac_fn_c_check_func "$LINENO" "pread" "ac_cv_func_pread"
13506if test "x$ac_cv_func_pread" = xyes
13507then :
13508 printf "%s\n" "#define HAVE_PREAD 1" >>confdefs.h
d1154eb4 13509
54445dc2
TT
13510fi
13511ac_fn_c_check_func "$LINENO" "pwrite" "ac_cv_func_pwrite"
13512if test "x$ac_cv_func_pwrite" = xyes
13513then :
13514 printf "%s\n" "#define HAVE_PWRITE 1" >>confdefs.h
57aa50d4 13515
6c65d251 13516fi
54445dc2
TT
13517ac_fn_c_check_func "$LINENO" "pread64" "ac_cv_func_pread64"
13518if test "x$ac_cv_func_pread64" = xyes
13519then :
13520 printf "%s\n" "#define HAVE_PREAD64 1" >>confdefs.h
b0cacab0 13521
54445dc2
TT
13522fi
13523ac_fn_c_check_func "$LINENO" "pwrite64" "ac_cv_func_pwrite64"
13524if test "x$ac_cv_func_pwrite64" = xyes
13525then :
13526 printf "%s\n" "#define HAVE_PWRITE64 1" >>confdefs.h
84ea6e70 13527
4e5f24ae
TT
13528fi
13529ac_fn_c_check_func "$LINENO" "qsort_r" "ac_cv_func_qsort_r"
13530if test "x$ac_cv_func_qsort_r" = xyes
13531then :
13532 printf "%s\n" "#define HAVE_QSORT_R 1" >>confdefs.h
13533
50e1e10f 13534fi
54445dc2
TT
13535ac_fn_c_check_func "$LINENO" "secure_getenv" "ac_cv_func_secure_getenv"
13536if test "x$ac_cv_func_secure_getenv" = xyes
13537then :
13538 printf "%s\n" "#define HAVE_SECURE_GETENV 1" >>confdefs.h
b0cacab0 13539
54445dc2
TT
13540fi
13541ac_fn_c_check_func "$LINENO" "setmntent" "ac_cv_func_setmntent"
13542if test "x$ac_cv_func_setmntent" = xyes
13543then :
13544 printf "%s\n" "#define HAVE_SETMNTENT 1" >>confdefs.h
9ed8e5fe 13545
9ed8e5fe 13546fi
54445dc2
TT
13547ac_fn_c_check_func "$LINENO" "setresgid" "ac_cv_func_setresgid"
13548if test "x$ac_cv_func_setresgid" = xyes
13549then :
13550 printf "%s\n" "#define HAVE_SETRESGID 1" >>confdefs.h
13551
9ed8e5fe 13552fi
54445dc2
TT
13553ac_fn_c_check_func "$LINENO" "setresuid" "ac_cv_func_setresuid"
13554if test "x$ac_cv_func_setresuid" = xyes
13555then :
13556 printf "%s\n" "#define HAVE_SETRESUID 1" >>confdefs.h
188bf39a 13557
54445dc2
TT
13558fi
13559ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
13560if test "x$ac_cv_func_snprintf" = xyes
13561then :
13562 printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h
7154d974 13563
e598c29b 13564fi
54445dc2
TT
13565ac_fn_c_check_func "$LINENO" "srandom" "ac_cv_func_srandom"
13566if test "x$ac_cv_func_srandom" = xyes
13567then :
13568 printf "%s\n" "#define HAVE_SRANDOM 1" >>confdefs.h
e598c29b 13569
54445dc2
TT
13570fi
13571ac_fn_c_check_func "$LINENO" "stpcpy" "ac_cv_func_stpcpy"
13572if test "x$ac_cv_func_stpcpy" = xyes
13573then :
13574 printf "%s\n" "#define HAVE_STPCPY 1" >>confdefs.h
e598c29b 13575
e598c29b 13576fi
54445dc2
TT
13577ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
13578if test "x$ac_cv_func_strcasecmp" = xyes
13579then :
13580 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
13581
e598c29b 13582fi
54445dc2
TT
13583ac_fn_c_check_func "$LINENO" "strdup" "ac_cv_func_strdup"
13584if test "x$ac_cv_func_strdup" = xyes
13585then :
13586 printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h
e598c29b 13587
54445dc2
TT
13588fi
13589ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen"
13590if test "x$ac_cv_func_strnlen" = xyes
13591then :
13592 printf "%s\n" "#define HAVE_STRNLEN 1" >>confdefs.h
e598c29b 13593
7154d974 13594fi
54445dc2
TT
13595ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
13596if test "x$ac_cv_func_strptime" = xyes
13597then :
13598 printf "%s\n" "#define HAVE_STRPTIME 1" >>confdefs.h
7154d974 13599
54445dc2
TT
13600fi
13601ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
13602if test "x$ac_cv_func_strtoull" = xyes
13603then :
13604 printf "%s\n" "#define HAVE_STRTOULL 1" >>confdefs.h
57aa50d4 13605
9ed8e5fe 13606fi
54445dc2
TT
13607ac_fn_c_check_func "$LINENO" "sync_file_range" "ac_cv_func_sync_file_range"
13608if test "x$ac_cv_func_sync_file_range" = xyes
13609then :
13610 printf "%s\n" "#define HAVE_SYNC_FILE_RANGE 1" >>confdefs.h
13611
9ed8e5fe 13612fi
54445dc2
TT
13613ac_fn_c_check_func "$LINENO" "sysconf" "ac_cv_func_sysconf"
13614if test "x$ac_cv_func_sysconf" = xyes
13615then :
13616 printf "%s\n" "#define HAVE_SYSCONF 1" >>confdefs.h
188bf39a 13617
54445dc2
TT
13618fi
13619ac_fn_c_check_func "$LINENO" "usleep" "ac_cv_func_usleep"
13620if test "x$ac_cv_func_usleep" = xyes
13621then :
13622 printf "%s\n" "#define HAVE_USLEEP 1" >>confdefs.h
9ed8e5fe
ES
13623
13624fi
54445dc2
TT
13625ac_fn_c_check_func "$LINENO" "utime" "ac_cv_func_utime"
13626if test "x$ac_cv_func_utime" = xyes
13627then :
13628 printf "%s\n" "#define HAVE_UTIME 1" >>confdefs.h
9ed8e5fe
ES
13629
13630fi
54445dc2
TT
13631ac_fn_c_check_func "$LINENO" "utimes" "ac_cv_func_utimes"
13632if test "x$ac_cv_func_utimes" = xyes
13633then :
13634 printf "%s\n" "#define HAVE_UTIMES 1" >>confdefs.h
13635
32179ce2 13636fi
54445dc2
TT
13637ac_fn_c_check_func "$LINENO" "valloc" "ac_cv_func_valloc"
13638if test "x$ac_cv_func_valloc" = xyes
13639then :
13640 printf "%s\n" "#define HAVE_VALLOC 1" >>confdefs.h
21c84b71 13641
50e1e10f 13642fi
50e1e10f 13643
fc6d9d51 13644SOCKET_LIB=''
54445dc2
TT
13645{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
13646printf %s "checking for socket in -lsocket... " >&6; }
13647if test ${ac_cv_lib_socket_socket+y}
13648then :
13649 printf %s "(cached) " >&6
13650else $as_nop
b0cacab0 13651 ac_check_lib_save_LIBS=$LIBS
fc6d9d51 13652LIBS="-lsocket $LIBS"
57aa50d4 13653cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 13654/* end confdefs.h. */
93636bde 13655
e1052144
TT
13656/* Override any GCC internal prototype to avoid an error.
13657 Use char because int might match the return type of a GCC
13658 builtin and then its argument prototype would still apply. */
b0cacab0
TT
13659char socket ();
13660int
54445dc2 13661main (void)
b0cacab0 13662{
e1052144 13663return socket ();
b0cacab0
TT
13664 ;
13665 return 0;
13666}
13667_ACEOF
54445dc2
TT
13668if ac_fn_c_try_link "$LINENO"
13669then :
b0cacab0 13670 ac_cv_lib_socket_socket=yes
54445dc2 13671else $as_nop
57aa50d4 13672 ac_cv_lib_socket_socket=no
b0cacab0 13673fi
54445dc2 13674rm -f core conftest.err conftest.$ac_objext conftest.beam \
57aa50d4 13675 conftest$ac_exeext conftest.$ac_ext
b0cacab0
TT
13676LIBS=$ac_check_lib_save_LIBS
13677fi
54445dc2
TT
13678{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
13679printf "%s\n" "$ac_cv_lib_socket_socket" >&6; }
13680if test "x$ac_cv_lib_socket_socket" = xyes
13681then :
fc6d9d51 13682 SOCKET_LIB=-lsocket
50e1e10f 13683fi
fc6d9d51 13684
93636bde 13685
54445dc2
TT
13686{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for magic_file in -lmagic" >&5
13687printf %s "checking for magic_file in -lmagic... " >&6; }
13688if test ${ac_cv_lib_magic_magic_file+y}
13689then :
13690 printf %s "(cached) " >&6
13691else $as_nop
b291c11f
DW
13692 ac_check_lib_save_LIBS=$LIBS
13693LIBS="-lmagic $LIBS"
13694cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13695/* end confdefs.h. */
13696
13697/* Override any GCC internal prototype to avoid an error.
13698 Use char because int might match the return type of a GCC
13699 builtin and then its argument prototype would still apply. */
b291c11f
DW
13700char magic_file ();
13701int
54445dc2 13702main (void)
b291c11f
DW
13703{
13704return magic_file ();
13705 ;
13706 return 0;
13707}
13708_ACEOF
54445dc2
TT
13709if ac_fn_c_try_link "$LINENO"
13710then :
b291c11f 13711 ac_cv_lib_magic_magic_file=yes
54445dc2 13712else $as_nop
b291c11f
DW
13713 ac_cv_lib_magic_magic_file=no
13714fi
54445dc2 13715rm -f core conftest.err conftest.$ac_objext conftest.beam \
b291c11f
DW
13716 conftest$ac_exeext conftest.$ac_ext
13717LIBS=$ac_check_lib_save_LIBS
13718fi
54445dc2
TT
13719{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_file" >&5
13720printf "%s\n" "$ac_cv_lib_magic_magic_file" >&6; }
13721if test "x$ac_cv_lib_magic_magic_file" = xyes
13722then :
b291c11f 13723 MAGIC_LIB=-lmagic
54445dc2
TT
13724ac_fn_c_check_header_compile "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
13725if test "x$ac_cv_header_magic_h" = xyes
13726then :
13727 printf "%s\n" "#define HAVE_MAGIC_H 1" >>confdefs.h
b291c11f
DW
13728
13729fi
13730
b291c11f
DW
13731fi
13732
32179ce2 13733if test "$ac_cv_func_dlopen" = yes ; then
d2e3c0dc
TT
13734 MAGIC_LIB=$DLOPEN_LIB
13735fi
b291c11f 13736
7e3a4f0a
JSMR
13737{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archive_read_new in -larchive" >&5
13738printf %s "checking for archive_read_new in -larchive... " >&6; }
13739if test ${ac_cv_lib_archive_archive_read_new+y}
13740then :
13741 printf %s "(cached) " >&6
13742else $as_nop
13743 ac_check_lib_save_LIBS=$LIBS
13744LIBS="-larchive $LIBS"
13745cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13746/* end confdefs.h. */
13747
13748/* Override any GCC internal prototype to avoid an error.
13749 Use char because int might match the return type of a GCC
13750 builtin and then its argument prototype would still apply. */
13751char archive_read_new ();
13752int
13753main (void)
13754{
13755return archive_read_new ();
13756 ;
13757 return 0;
13758}
13759_ACEOF
13760if ac_fn_c_try_link "$LINENO"
13761then :
13762 ac_cv_lib_archive_archive_read_new=yes
13763else $as_nop
13764 ac_cv_lib_archive_archive_read_new=no
13765fi
13766rm -f core conftest.err conftest.$ac_objext conftest.beam \
13767 conftest$ac_exeext conftest.$ac_ext
13768LIBS=$ac_check_lib_save_LIBS
13769fi
13770{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_archive_archive_read_new" >&5
13771printf "%s\n" "$ac_cv_lib_archive_archive_read_new" >&6; }
13772if test "x$ac_cv_lib_archive_archive_read_new" = xyes
13773then :
13774 ARCHIVE_LIB=-larchive
13775ac_fn_c_check_header_compile "$LINENO" "archive.h" "ac_cv_header_archive_h" "$ac_includes_default"
13776if test "x$ac_cv_header_archive_h" = xyes
13777then :
13778 printf "%s\n" "#define HAVE_ARCHIVE_H 1" >>confdefs.h
13779
13780fi
13781
13782fi
13783
13784if test "$ac_cv_func_dlopen" = yes ; then
13785 ARCHIVE_LIB=$DLOPEN_LIB
13786fi
13787
54445dc2
TT
13788{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
13789printf %s "checking for clock_gettime in -lrt... " >&6; }
13790if test ${ac_cv_lib_rt_clock_gettime+y}
13791then :
13792 printf %s "(cached) " >&6
13793else $as_nop
c94da047
TT
13794 ac_check_lib_save_LIBS=$LIBS
13795LIBS="-lrt $LIBS"
13796cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13797/* end confdefs.h. */
13798
13799/* Override any GCC internal prototype to avoid an error.
13800 Use char because int might match the return type of a GCC
13801 builtin and then its argument prototype would still apply. */
c94da047
TT
13802char clock_gettime ();
13803int
54445dc2 13804main (void)
c94da047
TT
13805{
13806return clock_gettime ();
13807 ;
13808 return 0;
13809}
13810_ACEOF
54445dc2
TT
13811if ac_fn_c_try_link "$LINENO"
13812then :
c94da047 13813 ac_cv_lib_rt_clock_gettime=yes
54445dc2 13814else $as_nop
c94da047
TT
13815 ac_cv_lib_rt_clock_gettime=no
13816fi
54445dc2 13817rm -f core conftest.err conftest.$ac_objext conftest.beam \
c94da047
TT
13818 conftest$ac_exeext conftest.$ac_ext
13819LIBS=$ac_check_lib_save_LIBS
13820fi
54445dc2
TT
13821{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
13822printf "%s\n" "$ac_cv_lib_rt_clock_gettime" >&6; }
13823if test "x$ac_cv_lib_rt_clock_gettime" = xyes
13824then :
c94da047
TT
13825 CLOCK_GETTIME_LIB=-lrt
13826fi
13827
13828
81cbf1ef
DW
13829FUSE_CMT=
13830FUSE_LIB=
13831# Check whether --enable-fuse2fs was given.
54445dc2
TT
13832if test ${enable_fuse2fs+y}
13833then :
81cbf1ef
DW
13834 enableval=$enable_fuse2fs; if test "$enableval" = "no"
13835then
13836 FUSE_CMT="#"
54445dc2
TT
13837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Disabling fuse2fs" >&5
13838printf "%s\n" "Disabling fuse2fs" >&6; }
81cbf1ef 13839else
448a3f8b
DD
13840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13841/* end confdefs.h. */
13842#ifdef __linux__
13843#include <linux/fs.h>
13844#include <linux/falloc.h>
13845#include <linux/xattr.h>
13846#endif
13847
13848int
13849main (void)
13850{
13851
13852 ;
13853 return 0;
13854}
13855_ACEOF
13856if ac_fn_c_try_cpp "$LINENO"
13857then :
13858
13859else $as_nop
13860 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13861printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13862as_fn_error $? "Cannot find fuse2fs Linux headers.
13863See \`config.log' for more details" "$LINENO" 5; }
13864fi
13865rm -f conftest.err conftest.i conftest.$ac_ext
13866
13867 fuse3_CFLAGS
13868 C compiler flags for fuse3, overriding pkg-config
13869 fuse3_LIBS linker flags for fuse3, overriding pkg-config
13870
13871pkg_failed=no
13872{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse3" >&5
13873printf %s "checking for fuse3... " >&6; }
13874
13875if test -n "$fuse3_CFLAGS"; then
13876 pkg_cv_fuse3_CFLAGS="$fuse3_CFLAGS"
13877 elif test -n "$PKG_CONFIG"; then
13878 if test -n "$PKG_CONFIG" && \
13879 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fuse3\""; } >&5
13880 ($PKG_CONFIG --exists --print-errors "fuse3") 2>&5
13881 ac_status=$?
13882 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13883 test $ac_status = 0; }; then
13884 pkg_cv_fuse3_CFLAGS=`$PKG_CONFIG --cflags "fuse3" 2>/dev/null`
13885 test "x$?" != "x0" && pkg_failed=yes
13886else
13887 pkg_failed=yes
13888fi
13889 else
13890 pkg_failed=untried
13891fi
13892if test -n "$fuse3_LIBS"; then
13893 pkg_cv_fuse3_LIBS="$fuse3_LIBS"
13894 elif test -n "$PKG_CONFIG"; then
13895 if test -n "$PKG_CONFIG" && \
13896 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fuse3\""; } >&5
13897 ($PKG_CONFIG --exists --print-errors "fuse3") 2>&5
13898 ac_status=$?
13899 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13900 test $ac_status = 0; }; then
13901 pkg_cv_fuse3_LIBS=`$PKG_CONFIG --libs "fuse3" 2>/dev/null`
13902 test "x$?" != "x0" && pkg_failed=yes
13903else
13904 pkg_failed=yes
13905fi
13906 else
13907 pkg_failed=untried
13908fi
13909
13910
13911
13912if test $pkg_failed = yes; then
13913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
13914printf "%s\n" "no" >&6; }
13915
13916if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13917 _pkg_short_errors_supported=yes
13918else
13919 _pkg_short_errors_supported=no
13920fi
13921 if test $_pkg_short_errors_supported = yes; then
13922 fuse3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fuse3" 2>&1`
13923 else
13924 fuse3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fuse3" 2>&1`
13925 fi
13926 # Put the nasty error message in config.log where it belongs
13927 echo "$fuse3_PKG_ERRORS" >&5
13928
13929
13930 for ac_header in pthread.h fuse.h
81cbf1ef 13931do :
54445dc2 13932 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
81cbf1ef
DW
13933ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
13934#define FUSE_USE_VERSION 29
13935"
54445dc2
TT
13936if eval test \"x\$"$as_ac_Header"\" = x"yes"
13937then :
81cbf1ef 13938 cat >>confdefs.h <<_ACEOF
54445dc2 13939#define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
81cbf1ef
DW
13940_ACEOF
13941
54445dc2
TT
13942else $as_nop
13943 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13944printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
81cbf1ef
DW
13945as_fn_error $? "Cannot find fuse2fs headers.
13946See \`config.log' for more details" "$LINENO" 5; }
13947fi
13948
13949done
13950
448a3f8b
DD
13951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13952printf %s "checking for fuse_main in -losxfuse... " >&6; }
13953if test ${ac_cv_lib_osxfuse_fuse_main+y}
13954then :
13955 printf %s "(cached) " >&6
13956else $as_nop
13957 ac_check_lib_save_LIBS=$LIBS
13958LIBS="-losxfuse $LIBS"
13959cat confdefs.h - <<_ACEOF >conftest.$ac_ext
81cbf1ef 13960/* end confdefs.h. */
81cbf1ef 13961
448a3f8b
DD
13962/* Override any GCC internal prototype to avoid an error.
13963 Use char because int might match the return type of a GCC
13964 builtin and then its argument prototype would still apply. */
13965char fuse_main ();
81cbf1ef 13966int
54445dc2 13967main (void)
81cbf1ef 13968{
448a3f8b
DD
13969return fuse_main ();
13970 ;
13971 return 0;
13972}
13973_ACEOF
13974if ac_fn_c_try_link "$LINENO"
13975then :
13976 ac_cv_lib_osxfuse_fuse_main=yes
13977else $as_nop
13978 ac_cv_lib_osxfuse_fuse_main=no
13979fi
13980rm -f core conftest.err conftest.$ac_objext conftest.beam \
13981 conftest$ac_exeext conftest.$ac_ext
13982LIBS=$ac_check_lib_save_LIBS
13983fi
13984{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13985printf "%s\n" "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13986if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes
13987then :
13988 FUSE_LIB=-losxfuse
13989else $as_nop
13990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13991printf %s "checking for fuse_main in -lfuse... " >&6; }
13992if test ${ac_cv_lib_fuse_fuse_main+y}
13993then :
13994 printf %s "(cached) " >&6
13995else $as_nop
13996 ac_check_lib_save_LIBS=$LIBS
13997LIBS="-lfuse $LIBS"
13998cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13999/* end confdefs.h. */
81cbf1ef 14000
448a3f8b
DD
14001/* Override any GCC internal prototype to avoid an error.
14002 Use char because int might match the return type of a GCC
14003 builtin and then its argument prototype would still apply. */
14004char fuse_main ();
14005int
14006main (void)
14007{
14008return fuse_main ();
81cbf1ef
DW
14009 ;
14010 return 0;
14011}
14012_ACEOF
448a3f8b
DD
14013if ac_fn_c_try_link "$LINENO"
14014then :
14015 ac_cv_lib_fuse_fuse_main=yes
14016else $as_nop
14017 ac_cv_lib_fuse_fuse_main=no
14018fi
14019rm -f core conftest.err conftest.$ac_objext conftest.beam \
14020 conftest$ac_exeext conftest.$ac_ext
14021LIBS=$ac_check_lib_save_LIBS
14022fi
14023{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
14024printf "%s\n" "$ac_cv_lib_fuse_fuse_main" >&6; }
14025if test "x$ac_cv_lib_fuse_fuse_main" = xyes
54445dc2 14026then :
448a3f8b
DD
14027 FUSE_LIB=-lfuse
14028else $as_nop
14029 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14030printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14031as_fn_error $? "Cannot find fuse library.
14032See \`config.log' for more details" "$LINENO" 5; }
14033fi
14034
14035fi
14036
14037
14038elif test $pkg_failed = untried; then
14039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14040printf "%s\n" "no" >&6; }
14041
14042 for ac_header in pthread.h fuse.h
14043do :
14044 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
14045ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
14046#define FUSE_USE_VERSION 29
14047"
14048if eval test \"x\$"$as_ac_Header"\" = x"yes"
14049then :
14050 cat >>confdefs.h <<_ACEOF
14051#define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
14052_ACEOF
81cbf1ef 14053
54445dc2
TT
14054else $as_nop
14055 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14056printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
448a3f8b 14057as_fn_error $? "Cannot find fuse2fs headers.
81cbf1ef
DW
14058See \`config.log' for more details" "$LINENO" 5; }
14059fi
81cbf1ef 14060
448a3f8b
DD
14061done
14062
14063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
54445dc2
TT
14064printf %s "checking for fuse_main in -losxfuse... " >&6; }
14065if test ${ac_cv_lib_osxfuse_fuse_main+y}
14066then :
14067 printf %s "(cached) " >&6
14068else $as_nop
81cbf1ef
DW
14069 ac_check_lib_save_LIBS=$LIBS
14070LIBS="-losxfuse $LIBS"
14071cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14072/* end confdefs.h. */
14073
14074/* Override any GCC internal prototype to avoid an error.
14075 Use char because int might match the return type of a GCC
14076 builtin and then its argument prototype would still apply. */
81cbf1ef
DW
14077char fuse_main ();
14078int
54445dc2 14079main (void)
81cbf1ef
DW
14080{
14081return fuse_main ();
14082 ;
14083 return 0;
14084}
14085_ACEOF
54445dc2
TT
14086if ac_fn_c_try_link "$LINENO"
14087then :
81cbf1ef 14088 ac_cv_lib_osxfuse_fuse_main=yes
54445dc2 14089else $as_nop
81cbf1ef
DW
14090 ac_cv_lib_osxfuse_fuse_main=no
14091fi
54445dc2 14092rm -f core conftest.err conftest.$ac_objext conftest.beam \
81cbf1ef
DW
14093 conftest$ac_exeext conftest.$ac_ext
14094LIBS=$ac_check_lib_save_LIBS
14095fi
54445dc2
TT
14096{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
14097printf "%s\n" "$ac_cv_lib_osxfuse_fuse_main" >&6; }
14098if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes
14099then :
81cbf1ef 14100 FUSE_LIB=-losxfuse
54445dc2
TT
14101else $as_nop
14102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
14103printf %s "checking for fuse_main in -lfuse... " >&6; }
14104if test ${ac_cv_lib_fuse_fuse_main+y}
14105then :
14106 printf %s "(cached) " >&6
14107else $as_nop
81cbf1ef
DW
14108 ac_check_lib_save_LIBS=$LIBS
14109LIBS="-lfuse $LIBS"
14110cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14111/* end confdefs.h. */
14112
14113/* Override any GCC internal prototype to avoid an error.
14114 Use char because int might match the return type of a GCC
14115 builtin and then its argument prototype would still apply. */
81cbf1ef
DW
14116char fuse_main ();
14117int
54445dc2 14118main (void)
81cbf1ef
DW
14119{
14120return fuse_main ();
14121 ;
14122 return 0;
14123}
14124_ACEOF
54445dc2
TT
14125if ac_fn_c_try_link "$LINENO"
14126then :
81cbf1ef 14127 ac_cv_lib_fuse_fuse_main=yes
54445dc2 14128else $as_nop
81cbf1ef
DW
14129 ac_cv_lib_fuse_fuse_main=no
14130fi
54445dc2 14131rm -f core conftest.err conftest.$ac_objext conftest.beam \
81cbf1ef
DW
14132 conftest$ac_exeext conftest.$ac_ext
14133LIBS=$ac_check_lib_save_LIBS
14134fi
54445dc2
TT
14135{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
14136printf "%s\n" "$ac_cv_lib_fuse_fuse_main" >&6; }
14137if test "x$ac_cv_lib_fuse_fuse_main" = xyes
14138then :
81cbf1ef 14139 FUSE_LIB=-lfuse
54445dc2
TT
14140else $as_nop
14141 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14142printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
81cbf1ef
DW
14143as_fn_error $? "Cannot find fuse library.
14144See \`config.log' for more details" "$LINENO" 5; }
14145fi
14146
14147fi
14148
448a3f8b
DD
14149
14150else
14151 fuse3_CFLAGS=$pkg_cv_fuse3_CFLAGS
14152 fuse3_LIBS=$pkg_cv_fuse3_LIBS
14153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14154printf "%s\n" "yes" >&6; }
14155
14156 FUSE_LIB=-lfuse3
14157
14158fi
54445dc2
TT
14159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs" >&5
14160printf "%s\n" "Enabling fuse2fs" >&6; }
81cbf1ef
DW
14161fi
14162
54445dc2 14163else $as_nop
448a3f8b
DD
14164
14165pkg_failed=no
14166{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse3" >&5
14167printf %s "checking for fuse3... " >&6; }
14168
14169if test -n "$fuse3_CFLAGS"; then
14170 pkg_cv_fuse3_CFLAGS="$fuse3_CFLAGS"
14171 elif test -n "$PKG_CONFIG"; then
14172 if test -n "$PKG_CONFIG" && \
14173 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fuse3\""; } >&5
14174 ($PKG_CONFIG --exists --print-errors "fuse3") 2>&5
14175 ac_status=$?
14176 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14177 test $ac_status = 0; }; then
14178 pkg_cv_fuse3_CFLAGS=`$PKG_CONFIG --cflags "fuse3" 2>/dev/null`
14179 test "x$?" != "x0" && pkg_failed=yes
14180else
14181 pkg_failed=yes
14182fi
14183 else
14184 pkg_failed=untried
14185fi
14186if test -n "$fuse3_LIBS"; then
14187 pkg_cv_fuse3_LIBS="$fuse3_LIBS"
14188 elif test -n "$PKG_CONFIG"; then
14189 if test -n "$PKG_CONFIG" && \
14190 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fuse3\""; } >&5
14191 ($PKG_CONFIG --exists --print-errors "fuse3") 2>&5
14192 ac_status=$?
14193 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14194 test $ac_status = 0; }; then
14195 pkg_cv_fuse3_LIBS=`$PKG_CONFIG --libs "fuse3" 2>/dev/null`
14196 test "x$?" != "x0" && pkg_failed=yes
14197else
14198 pkg_failed=yes
14199fi
14200 else
14201 pkg_failed=untried
14202fi
14203
14204
14205
14206if test $pkg_failed = yes; then
14207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14208printf "%s\n" "no" >&6; }
14209
14210if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14211 _pkg_short_errors_supported=yes
14212else
14213 _pkg_short_errors_supported=no
14214fi
14215 if test $_pkg_short_errors_supported = yes; then
14216 fuse3_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "fuse3" 2>&1`
14217 else
14218 fuse3_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "fuse3" 2>&1`
14219 fi
14220 # Put the nasty error message in config.log where it belongs
14221 echo "$fuse3_PKG_ERRORS" >&5
14222
14223
14224 for ac_header in pthread.h fuse.h
81cbf1ef 14225do :
54445dc2 14226 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
81cbf1ef
DW
14227ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
14228#define FUSE_USE_VERSION 29
14229#ifdef __linux__
14230# include <linux/fs.h>
14231# include <linux/falloc.h>
14232# include <linux/xattr.h>
14233#endif
14234"
54445dc2
TT
14235if eval test \"x\$"$as_ac_Header"\" = x"yes"
14236then :
81cbf1ef 14237 cat >>confdefs.h <<_ACEOF
54445dc2 14238#define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
81cbf1ef
DW
14239_ACEOF
14240
54445dc2 14241else $as_nop
81cbf1ef
DW
14242 FUSE_CMT="#"
14243fi
14244
14245done
448a3f8b
DD
14246 if test -z "$FUSE_CMT"
14247 then
14248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
54445dc2
TT
14249printf %s "checking for fuse_main in -losxfuse... " >&6; }
14250if test ${ac_cv_lib_osxfuse_fuse_main+y}
14251then :
14252 printf %s "(cached) " >&6
14253else $as_nop
81cbf1ef
DW
14254 ac_check_lib_save_LIBS=$LIBS
14255LIBS="-losxfuse $LIBS"
14256cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14257/* end confdefs.h. */
14258
14259/* Override any GCC internal prototype to avoid an error.
14260 Use char because int might match the return type of a GCC
14261 builtin and then its argument prototype would still apply. */
81cbf1ef
DW
14262char fuse_main ();
14263int
54445dc2 14264main (void)
81cbf1ef
DW
14265{
14266return fuse_main ();
14267 ;
14268 return 0;
14269}
14270_ACEOF
54445dc2
TT
14271if ac_fn_c_try_link "$LINENO"
14272then :
81cbf1ef 14273 ac_cv_lib_osxfuse_fuse_main=yes
54445dc2 14274else $as_nop
81cbf1ef
DW
14275 ac_cv_lib_osxfuse_fuse_main=no
14276fi
54445dc2 14277rm -f core conftest.err conftest.$ac_objext conftest.beam \
81cbf1ef
DW
14278 conftest$ac_exeext conftest.$ac_ext
14279LIBS=$ac_check_lib_save_LIBS
14280fi
54445dc2
TT
14281{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
14282printf "%s\n" "$ac_cv_lib_osxfuse_fuse_main" >&6; }
14283if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes
14284then :
81cbf1ef 14285 FUSE_LIB=-losxfuse
54445dc2
TT
14286else $as_nop
14287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
14288printf %s "checking for fuse_main in -lfuse... " >&6; }
14289if test ${ac_cv_lib_fuse_fuse_main+y}
14290then :
14291 printf %s "(cached) " >&6
14292else $as_nop
81cbf1ef
DW
14293 ac_check_lib_save_LIBS=$LIBS
14294LIBS="-lfuse $LIBS"
14295cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14296/* end confdefs.h. */
14297
14298/* Override any GCC internal prototype to avoid an error.
14299 Use char because int might match the return type of a GCC
14300 builtin and then its argument prototype would still apply. */
81cbf1ef
DW
14301char fuse_main ();
14302int
54445dc2 14303main (void)
81cbf1ef
DW
14304{
14305return fuse_main ();
14306 ;
14307 return 0;
14308}
14309_ACEOF
54445dc2
TT
14310if ac_fn_c_try_link "$LINENO"
14311then :
81cbf1ef 14312 ac_cv_lib_fuse_fuse_main=yes
54445dc2 14313else $as_nop
81cbf1ef
DW
14314 ac_cv_lib_fuse_fuse_main=no
14315fi
54445dc2 14316rm -f core conftest.err conftest.$ac_objext conftest.beam \
81cbf1ef
DW
14317 conftest$ac_exeext conftest.$ac_ext
14318LIBS=$ac_check_lib_save_LIBS
14319fi
54445dc2
TT
14320{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
14321printf "%s\n" "$ac_cv_lib_fuse_fuse_main" >&6; }
14322if test "x$ac_cv_lib_fuse_fuse_main" = xyes
14323then :
81cbf1ef 14324 FUSE_LIB=-lfuse
54445dc2 14325else $as_nop
81cbf1ef
DW
14326 FUSE_CMT="#"
14327fi
14328
14329fi
14330
448a3f8b
DD
14331 fi
14332
14333elif test $pkg_failed = untried; then
14334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14335printf "%s\n" "no" >&6; }
14336
14337 for ac_header in pthread.h fuse.h
14338do :
14339 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
14340ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
14341#define FUSE_USE_VERSION 29
14342#ifdef __linux__
14343# include <linux/fs.h>
14344# include <linux/falloc.h>
14345# include <linux/xattr.h>
14346#endif
14347"
14348if eval test \"x\$"$as_ac_Header"\" = x"yes"
14349then :
14350 cat >>confdefs.h <<_ACEOF
14351#define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
14352_ACEOF
14353
14354else $as_nop
14355 FUSE_CMT="#"
14356fi
14357
14358done
14359 if test -z "$FUSE_CMT"
14360 then
14361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
14362printf %s "checking for fuse_main in -losxfuse... " >&6; }
14363if test ${ac_cv_lib_osxfuse_fuse_main+y}
14364then :
14365 printf %s "(cached) " >&6
14366else $as_nop
14367 ac_check_lib_save_LIBS=$LIBS
14368LIBS="-losxfuse $LIBS"
14369cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14370/* end confdefs.h. */
14371
14372/* Override any GCC internal prototype to avoid an error.
14373 Use char because int might match the return type of a GCC
14374 builtin and then its argument prototype would still apply. */
14375char fuse_main ();
14376int
14377main (void)
14378{
14379return fuse_main ();
14380 ;
14381 return 0;
14382}
14383_ACEOF
14384if ac_fn_c_try_link "$LINENO"
14385then :
14386 ac_cv_lib_osxfuse_fuse_main=yes
14387else $as_nop
14388 ac_cv_lib_osxfuse_fuse_main=no
14389fi
14390rm -f core conftest.err conftest.$ac_objext conftest.beam \
14391 conftest$ac_exeext conftest.$ac_ext
14392LIBS=$ac_check_lib_save_LIBS
14393fi
14394{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
14395printf "%s\n" "$ac_cv_lib_osxfuse_fuse_main" >&6; }
14396if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes
14397then :
14398 FUSE_LIB=-losxfuse
14399else $as_nop
14400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
14401printf %s "checking for fuse_main in -lfuse... " >&6; }
14402if test ${ac_cv_lib_fuse_fuse_main+y}
14403then :
14404 printf %s "(cached) " >&6
14405else $as_nop
14406 ac_check_lib_save_LIBS=$LIBS
14407LIBS="-lfuse $LIBS"
14408cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14409/* end confdefs.h. */
14410
14411/* Override any GCC internal prototype to avoid an error.
14412 Use char because int might match the return type of a GCC
14413 builtin and then its argument prototype would still apply. */
14414char fuse_main ();
14415int
14416main (void)
14417{
14418return fuse_main ();
14419 ;
14420 return 0;
14421}
14422_ACEOF
14423if ac_fn_c_try_link "$LINENO"
14424then :
14425 ac_cv_lib_fuse_fuse_main=yes
14426else $as_nop
14427 ac_cv_lib_fuse_fuse_main=no
14428fi
14429rm -f core conftest.err conftest.$ac_objext conftest.beam \
14430 conftest$ac_exeext conftest.$ac_ext
14431LIBS=$ac_check_lib_save_LIBS
14432fi
14433{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
14434printf "%s\n" "$ac_cv_lib_fuse_fuse_main" >&6; }
14435if test "x$ac_cv_lib_fuse_fuse_main" = xyes
14436then :
14437 FUSE_LIB=-lfuse
14438else $as_nop
14439 FUSE_CMT="#"
14440fi
14441
14442fi
14443
14444 fi
14445
14446else
14447 fuse3_CFLAGS=$pkg_cv_fuse3_CFLAGS
14448 fuse3_LIBS=$pkg_cv_fuse3_LIBS
14449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14450printf "%s\n" "yes" >&6; }
14451
14452 FUSE_LIB=-lfuse3
14453
81cbf1ef
DW
14454fi
14455if test -z "$FUSE_CMT"
14456then
54445dc2
TT
14457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs by default." >&5
14458printf "%s\n" "Enabling fuse2fs by default." >&6; }
81cbf1ef
DW
14459fi
14460
14461fi
14462
14463
14464
448a3f8b
DD
14465if test "$FUSE_LIB" = "-lfuse3"
14466then
14467 FUSE_USE_VERSION=35
14468 CFLAGS="$CFLAGS $fuse3_CFLAGS"
14469 LDFLAGS="$LDFLAGS $fuse3_LDFLAGS"
14470 for ac_header in pthread.h fuse.h
14471do :
14472 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
14473ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
14474#define FUSE_USE_VERSION 35
14475#ifdef __linux__
14476#include <linux/fs.h>
14477#include <linux/falloc.h>
14478#include <linux/xattr.h>
14479#endif
14480"
14481if eval test \"x\$"$as_ac_Header"\" = x"yes"
14482then :
14483 cat >>confdefs.h <<_ACEOF
14484#define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
14485_ACEOF
14486
14487else $as_nop
14488 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14489printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
14490as_fn_error $? "Cannot find fuse3 fuse2fs headers.
14491See \`config.log' for more details" "$LINENO" 5; }
14492fi
14493
14494done
14495elif test -n "$FUSE_LIB"
14496then
14497 FUSE_USE_VERSION=29
14498fi
14499if test -n "$FUSE_USE_VERSION"
14500then
14501
14502printf "%s\n" "#define FUSE_USE_VERSION $FUSE_USE_VERSION" >>confdefs.h
14503
14504fi
54445dc2
TT
14505{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
14506printf %s "checking for optreset... " >&6; }
14507if test ${ac_cv_have_optreset+y}
14508then :
14509 printf %s "(cached) " >&6
14510else $as_nop
57aa50d4 14511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7f45af8 14512/* end confdefs.h. */
57aa50d4
TT
14513#include <unistd.h>
14514
14515_ACEOF
14516if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
54445dc2
TT
14517 $EGREP "optreset" >/dev/null 2>&1
14518then :
57aa50d4 14519 ac_cv_have_optreset=yes
54445dc2 14520else $as_nop
57aa50d4
TT
14521 ac_cv_have_optreset=no
14522fi
54445dc2 14523rm -rf conftest*
d7f45af8 14524
d7f45af8 14525fi
54445dc2
TT
14526{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
14527printf "%s\n" "$ac_cv_have_optreset" >&6; }
57aa50d4 14528if test $ac_cv_have_optreset = yes; then
d1154eb4 14529
54445dc2 14530printf "%s\n" "#define HAVE_OPTRESET 1" >>confdefs.h
d7f45af8 14531
d7f45af8 14532fi
d1154eb4 14533
57aa50d4 14534SEM_INIT_LIB=''
cfb8e0bd
TT
14535echo GL_THREADS_API: ${gl_threads_api}
14536if test "${gl_threads_api}" != none
14537then
14538 ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
54445dc2
TT
14539if test "x$ac_cv_func_sem_init" = xyes
14540then :
14541
14542else $as_nop
14543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
14544printf %s "checking for sem_init in -lpthread... " >&6; }
14545if test ${ac_cv_lib_pthread_sem_init+y}
14546then :
14547 printf %s "(cached) " >&6
14548else $as_nop
d7f45af8
TT
14549 ac_check_lib_save_LIBS=$LIBS
14550LIBS="-lpthread $LIBS"
57aa50d4 14551cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7f45af8
TT
14552/* end confdefs.h. */
14553
14554/* Override any GCC internal prototype to avoid an error.
14555 Use char because int might match the return type of a GCC
14556 builtin and then its argument prototype would still apply. */
d7f45af8
TT
14557char sem_init ();
14558int
54445dc2 14559main (void)
d7f45af8
TT
14560{
14561return sem_init ();
14562 ;
14563 return 0;
14564}
14565_ACEOF
54445dc2
TT
14566if ac_fn_c_try_link "$LINENO"
14567then :
d7f45af8 14568 ac_cv_lib_pthread_sem_init=yes
54445dc2 14569else $as_nop
57aa50d4 14570 ac_cv_lib_pthread_sem_init=no
d7f45af8 14571fi
54445dc2 14572rm -f core conftest.err conftest.$ac_objext conftest.beam \
57aa50d4 14573 conftest$ac_exeext conftest.$ac_ext
d7f45af8
TT
14574LIBS=$ac_check_lib_save_LIBS
14575fi
54445dc2
TT
14576{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
14577printf "%s\n" "$ac_cv_lib_pthread_sem_init" >&6; }
14578if test "x$ac_cv_lib_pthread_sem_init" = xyes
14579then :
14580 printf "%s\n" "#define HAVE_SEM_INIT 1" >>confdefs.h
d7f45af8
TT
14581
14582 SEM_INIT_LIB=-lpthread
54445dc2
TT
14583else $as_nop
14584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
14585printf %s "checking for sem_init in -lrt... " >&6; }
14586if test ${ac_cv_lib_rt_sem_init+y}
14587then :
14588 printf %s "(cached) " >&6
14589else $as_nop
d7f45af8
TT
14590 ac_check_lib_save_LIBS=$LIBS
14591LIBS="-lrt $LIBS"
57aa50d4 14592cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7f45af8
TT
14593/* end confdefs.h. */
14594
14595/* Override any GCC internal prototype to avoid an error.
14596 Use char because int might match the return type of a GCC
14597 builtin and then its argument prototype would still apply. */
d7f45af8
TT
14598char sem_init ();
14599int
54445dc2 14600main (void)
d7f45af8
TT
14601{
14602return sem_init ();
14603 ;
14604 return 0;
14605}
14606_ACEOF
54445dc2
TT
14607if ac_fn_c_try_link "$LINENO"
14608then :
d7f45af8 14609 ac_cv_lib_rt_sem_init=yes
54445dc2 14610else $as_nop
57aa50d4 14611 ac_cv_lib_rt_sem_init=no
d7f45af8 14612fi
54445dc2 14613rm -f core conftest.err conftest.$ac_objext conftest.beam \
57aa50d4 14614 conftest$ac_exeext conftest.$ac_ext
d7f45af8
TT
14615LIBS=$ac_check_lib_save_LIBS
14616fi
54445dc2
TT
14617{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
14618printf "%s\n" "$ac_cv_lib_rt_sem_init" >&6; }
14619if test "x$ac_cv_lib_rt_sem_init" = xyes
14620then :
14621 printf "%s\n" "#define HAVE_SEM_INIT 1" >>confdefs.h
d7f45af8
TT
14622
14623 SEM_INIT_LIB=-lrt
54445dc2
TT
14624else $as_nop
14625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
14626printf %s "checking for sem_init in -lposix4... " >&6; }
14627if test ${ac_cv_lib_posix4_sem_init+y}
14628then :
14629 printf %s "(cached) " >&6
14630else $as_nop
d7f45af8
TT
14631 ac_check_lib_save_LIBS=$LIBS
14632LIBS="-lposix4 $LIBS"
57aa50d4 14633cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7f45af8
TT
14634/* end confdefs.h. */
14635
14636/* Override any GCC internal prototype to avoid an error.
14637 Use char because int might match the return type of a GCC
14638 builtin and then its argument prototype would still apply. */
d7f45af8
TT
14639char sem_init ();
14640int
54445dc2 14641main (void)
d7f45af8
TT
14642{
14643return sem_init ();
14644 ;
14645 return 0;
14646}
14647_ACEOF
54445dc2
TT
14648if ac_fn_c_try_link "$LINENO"
14649then :
d7f45af8 14650 ac_cv_lib_posix4_sem_init=yes
54445dc2 14651else $as_nop
57aa50d4 14652 ac_cv_lib_posix4_sem_init=no
d7f45af8 14653fi
54445dc2 14654rm -f core conftest.err conftest.$ac_objext conftest.beam \
57aa50d4 14655 conftest$ac_exeext conftest.$ac_ext
d7f45af8
TT
14656LIBS=$ac_check_lib_save_LIBS
14657fi
54445dc2
TT
14658{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
14659printf "%s\n" "$ac_cv_lib_posix4_sem_init" >&6; }
14660if test "x$ac_cv_lib_posix4_sem_init" = xyes
14661then :
14662 printf "%s\n" "#define HAVE_SEM_INIT 1" >>confdefs.h
d7f45af8
TT
14663
14664 SEM_INIT_LIB=-lposix4
14665fi
14666
14667fi
14668
14669fi
14670
cfb8e0bd 14671fi
d7f45af8
TT
14672fi
14673
4e5f24ae
TT
14674if test "$ac_cv_func_qsort_r" != no
14675then :
14676
14677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether qsort_r is GNU version" >&5
14678printf %s "checking whether qsort_r is GNU version... " >&6; }
14679if test ${e2_cv_gnu_qsort_r+y}
14680then :
14681 printf %s "(cached) " >&6
14682else $as_nop
14683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14684/* end confdefs.h. */
14685
14686#include <stdlib.h>
14687void (qsort_r)(void *base, size_t nmemb, size_t size,
14688 int (*compar)(const void *, const void *, void *),
14689 void *arg);
14690
14691int
14692main (void)
14693{
14694
14695 ;
14696 return 0;
14697}
14698_ACEOF
14699if ac_fn_c_try_compile "$LINENO"
14700then :
14701 e2_cv_gnu_qsort_r=yes
14702else $as_nop
14703 e2_cv_gnu_qsort_r=no
14704fi
14705rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14706
14707fi
14708{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $e2_cv_gnu_qsort_r" >&5
14709printf "%s\n" "$e2_cv_gnu_qsort_r" >&6; }
14710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether qsort_r is BSD version" >&5
14711printf %s "checking whether qsort_r is BSD version... " >&6; }
14712if test ${e2_cv_bsd_qsort_r+y}
14713then :
14714 printf %s "(cached) " >&6
14715else $as_nop
14716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14717/* end confdefs.h. */
14718
14719#include <stdlib.h>
14720void (qsort_r)(void *base, size_t nmemb, size_t size,
14721 void *arg, int (*compar)(void *, const void *, const void *));
14722
14723int
14724main (void)
14725{
14726
14727 ;
14728 return 0;
14729}
14730_ACEOF
14731if ac_fn_c_try_compile "$LINENO"
14732then :
14733 e2_cv_bsd_qsort_r=yes
14734else $as_nop
14735 e2_cv_bsd_qsort_r=no
14736fi
14737rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14738
14739fi
14740{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $e2_cv_bsd_qsort_r" >&5
14741printf "%s\n" "$e2_cv_bsd_qsort_r" >&6; }
14742 case "$e2_cv_gnu_qsort_r:$e2_cv_bsd_qsort_r" in #(
14743 yes:no) :
14744
6eb00fb7
EB
14745
14746printf "%s\n" "#define HAVE_GNU_QSORT_R 1" >>confdefs.h
4e5f24ae
TT
14747
14748 ;; #(
14749 no:yes) :
14750
6eb00fb7
EB
14751
14752printf "%s\n" "#define HAVE_BSD_QSORT_R 1" >>confdefs.h
4e5f24ae
TT
14753
14754 ;; #(
14755 *) :
14756 ;;
14757esac
14758
14759fi
54445dc2
TT
14760{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
14761printf %s "checking for unified diff option... " >&6; }
27f991b0 14762if diff -u $0 $0 > /dev/null 2>&1 ; then
e54635de
TT
14763 UNI_DIFF_OPTS=-u
14764else
14765 UNI_DIFF_OPTS=-c
14766fi
54445dc2
TT
14767{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
14768printf "%s\n" "$UNI_DIFF_OPTS" >&6; }
e54635de 14769
8f3f29d3
TT
14770case "$host_os" in
14771linux*)
d1154eb4 14772
54445dc2 14773printf "%s\n" "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
50e1e10f 14774
8f3f29d3
TT
14775 ;;
14776esac
ea1a3fa2 14777
54445dc2 14778 printf %s "checking for mount 'nosuid' option... "
ea1a3fa2
NC
14779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14780/* end confdefs.h. */
14781#include <sys/mount.h>
14782int
54445dc2 14783main (void)
ea1a3fa2
NC
14784{
14785void *temp = (void *)(MS_NOSUID); (void) temp;
14786 ;
14787 return 0;
14788}
14789_ACEOF
54445dc2
TT
14790if ac_fn_c_try_compile "$LINENO"
14791then :
ea1a3fa2 14792
54445dc2 14793printf "%s\n" "#define HAVE_MOUNT_NOSUID 1" >>confdefs.h
ea1a3fa2
NC
14794
14795 ac_cv_mount_nosuid=yes
54445dc2
TT
14796 printf "%s\n" "yes"
14797else $as_nop
ea1a3fa2
NC
14798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14799/* end confdefs.h. */
14800#include <sys/mount.h>
14801int
54445dc2 14802main (void)
ea1a3fa2
NC
14803{
14804void *temp = (void *)(MNT_NOSUID); (void) temp;
14805 ;
14806 return 0;
14807}
14808_ACEOF
54445dc2
TT
14809if ac_fn_c_try_compile "$LINENO"
14810then :
ea1a3fa2 14811
54445dc2 14812printf "%s\n" "#define HAVE_MOUNT_NOSUID 1" >>confdefs.h
ea1a3fa2
NC
14813
14814 ac_cv_mount_nosuid=yes
54445dc2
TT
14815 printf "%s\n" "yes"
14816else $as_nop
ea1a3fa2 14817 ac_cv_mount_nosuid=no
54445dc2 14818 printf "%s\n" "no"
ea1a3fa2
NC
14819
14820fi
54445dc2 14821rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
ea1a3fa2
NC
14822
14823fi
54445dc2 14824rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
ea1a3fa2
NC
14825
14826
54445dc2 14827 printf %s "checking for mount 'nodev' option... "
ea1a3fa2
NC
14828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14829/* end confdefs.h. */
14830#include <sys/mount.h>
14831int
54445dc2 14832main (void)
ea1a3fa2
NC
14833{
14834void *temp = (void *)(MS_NODEV); (void) temp;
14835 ;
14836 return 0;
14837}
14838_ACEOF
54445dc2
TT
14839if ac_fn_c_try_compile "$LINENO"
14840then :
ea1a3fa2 14841
54445dc2 14842printf "%s\n" "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
ea1a3fa2
NC
14843
14844 ac_cv_mount_nodev=yes
54445dc2
TT
14845 printf "%s\n" "yes"
14846else $as_nop
ea1a3fa2
NC
14847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14848/* end confdefs.h. */
14849#include <sys/mount.h>
14850int
54445dc2 14851main (void)
ea1a3fa2
NC
14852{
14853void *temp = (void *)(MNT_NODEV); (void) temp;
14854 ;
14855 return 0;
14856}
14857_ACEOF
54445dc2
TT
14858if ac_fn_c_try_compile "$LINENO"
14859then :
ea1a3fa2 14860
54445dc2 14861printf "%s\n" "#define HAVE_MOUNT_NODEV 1" >>confdefs.h
ea1a3fa2
NC
14862
14863 ac_cv_mount_nodev=yes
54445dc2
TT
14864 printf "%s\n" "yes"
14865else $as_nop
ea1a3fa2 14866 ac_cv_mount_nodev=no
54445dc2 14867 printf "%s\n" "no"
ea1a3fa2
NC
14868
14869fi
54445dc2 14870rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
ea1a3fa2
NC
14871
14872fi
54445dc2 14873rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
ea1a3fa2 14874
4aece328 14875# Check whether --enable-lto was given.
54445dc2
TT
14876if test ${enable_lto+y}
14877then :
4aece328 14878 enableval=$enable_lto;
54445dc2 14879else $as_nop
139a3092 14880 enable_lto=no
4aece328
DW
14881fi
14882
14883if test "$enable_lto" = "yes" || test "$enable_lto" = "probe"; then
54445dc2
TT
14884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports LTO" >&5
14885printf %s "checking if C compiler supports LTO... " >&6; }
4aece328
DW
14886 OLD_CFLAGS="$CFLAGS"
14887 OLD_LDFLAGS="$LDFLAGS"
49715704 14888 LTO_FLAGS="-g -flto -ffat-lto-objects"
4aece328
DW
14889 CFLAGS="$CFLAGS $LTO_FLAGS"
14890 LDFLAGS="$LDFLAGS $LTO_FLAGS"
14891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14892/* end confdefs.h. */
14893
14894int
54445dc2 14895main (void)
4aece328
DW
14896{
14897
14898 ;
14899 return 0;
14900}
14901_ACEOF
54445dc2
TT
14902if ac_fn_c_try_link "$LINENO"
14903then :
14904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14905printf "%s\n" "yes" >&6; }
4aece328
DW
14906 lto_cflags=$LTO_FLAGS
14907 lto_ldflags=$LTO_FLAGS
14908 # Extract the first word of "gcc-ar", so it can be a program name with args.
14909set dummy gcc-ar; ac_word=$2
54445dc2
TT
14910{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14911printf %s "checking for $ac_word... " >&6; }
14912if test ${ac_cv_path_gcc_ar+y}
14913then :
14914 printf %s "(cached) " >&6
14915else $as_nop
4aece328
DW
14916 case $gcc_ar in
14917 [\\/]* | ?:[\\/]*)
14918 ac_cv_path_gcc_ar="$gcc_ar" # Let the user override the test with a path.
14919 ;;
14920 *)
14921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14922for as_dir in $PATH
14923do
14924 IFS=$as_save_IFS
54445dc2
TT
14925 case $as_dir in #(((
14926 '') as_dir=./ ;;
14927 */) ;;
14928 *) as_dir=$as_dir/ ;;
14929 esac
4aece328 14930 for ac_exec_ext in '' $ac_executable_extensions; do
54445dc2
TT
14931 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14932 ac_cv_path_gcc_ar="$as_dir$ac_word$ac_exec_ext"
14933 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4aece328
DW
14934 break 2
14935 fi
14936done
14937 done
14938IFS=$as_save_IFS
14939
14940 ;;
14941esac
14942fi
14943gcc_ar=$ac_cv_path_gcc_ar
14944if test -n "$gcc_ar"; then
54445dc2
TT
14945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcc_ar" >&5
14946printf "%s\n" "$gcc_ar" >&6; }
4aece328 14947else
54445dc2
TT
14948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14949printf "%s\n" "no" >&6; }
4aece328
DW
14950fi
14951
14952
14953 # Extract the first word of "gcc-ranlib", so it can be a program name with args.
14954set dummy gcc-ranlib; ac_word=$2
54445dc2
TT
14955{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14956printf %s "checking for $ac_word... " >&6; }
14957if test ${ac_cv_path_gcc_ranlib+y}
14958then :
14959 printf %s "(cached) " >&6
14960else $as_nop
4aece328
DW
14961 case $gcc_ranlib in
14962 [\\/]* | ?:[\\/]*)
14963 ac_cv_path_gcc_ranlib="$gcc_ranlib" # Let the user override the test with a path.
14964 ;;
14965 *)
14966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14967for as_dir in $PATH
14968do
14969 IFS=$as_save_IFS
54445dc2
TT
14970 case $as_dir in #(((
14971 '') as_dir=./ ;;
14972 */) ;;
14973 *) as_dir=$as_dir/ ;;
14974 esac
4aece328 14975 for ac_exec_ext in '' $ac_executable_extensions; do
54445dc2
TT
14976 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
14977 ac_cv_path_gcc_ranlib="$as_dir$ac_word$ac_exec_ext"
14978 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4aece328
DW
14979 break 2
14980 fi
14981done
14982 done
14983IFS=$as_save_IFS
14984
14985 ;;
14986esac
14987fi
14988gcc_ranlib=$ac_cv_path_gcc_ranlib
14989if test -n "$gcc_ranlib"; then
54445dc2
TT
14990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gcc_ranlib" >&5
14991printf "%s\n" "$gcc_ranlib" >&6; }
4aece328 14992else
54445dc2
TT
14993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14994printf "%s\n" "no" >&6; }
4aece328
DW
14995fi
14996
14997
54445dc2
TT
14998else $as_nop
14999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15000printf "%s\n" "no" >&6; }
4aece328 15001fi
54445dc2 15002rm -f core conftest.err conftest.$ac_objext conftest.beam \
4aece328
DW
15003 conftest$ac_exeext conftest.$ac_ext
15004 if test -x "$gcc_ar" && test -x "$gcc_ranlib"; then
15005 have_lto=yes
15006 AR="${gcc_ar}"
15007 RANLIB="${gcc_ranlib}"
15008 fi
15009 CFLAGS="${OLD_CFLAGS}"
15010 LDFLAGS="${OLD_LDFLAGS}"
15011
15012
15013
15014fi
15015if test "$enable_lto" = "yes" && test "$have_lto" != "yes"; then
15016 as_fn_error $? "LTO not supported by compiler." "$LINENO" 5
15017fi
1c2a76ae 15018# Check whether --enable-ubsan was given.
54445dc2
TT
15019if test ${enable_ubsan+y}
15020then :
1c2a76ae 15021 enableval=$enable_ubsan;
54445dc2 15022else $as_nop
1c2a76ae
DW
15023 enable_ubsan=no
15024fi
15025
15026if test "$enable_ubsan" = "yes" || test "$enable_ubsan" = "probe"; then
54445dc2
TT
15027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports UBSAN" >&5
15028printf %s "checking if C compiler supports UBSAN... " >&6; }
1c2a76ae
DW
15029 OLD_CFLAGS="$CFLAGS"
15030 OLD_LDFLAGS="$LDFLAGS"
15031 UBSAN_FLAGS="-fsanitize=undefined"
15032 CFLAGS="$CFLAGS $UBSAN_FLAGS"
15033 LDFLAGS="$LDFLAGS $UBSAN_FLAGS"
15034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15035/* end confdefs.h. */
15036
15037int
54445dc2 15038main (void)
1c2a76ae
DW
15039{
15040
15041 ;
15042 return 0;
15043}
15044_ACEOF
54445dc2
TT
15045if ac_fn_c_try_link "$LINENO"
15046then :
15047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15048printf "%s\n" "yes" >&6; }
1c2a76ae
DW
15049 ubsan_cflags=$UBSAN_FLAGS
15050 ubsan_ldflags=$UBSAN_FLAGS
15051 have_ubsan=yes
54445dc2
TT
15052else $as_nop
15053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15054printf "%s\n" "no" >&6; }
1c2a76ae 15055fi
54445dc2 15056rm -f core conftest.err conftest.$ac_objext conftest.beam \
1c2a76ae
DW
15057 conftest$ac_exeext conftest.$ac_ext
15058 CFLAGS="${OLD_CFLAGS}"
15059 LDFLAGS="${OLD_LDFLAGS}"
15060
15061
15062
15063fi
15064if test "$enable_ubsan" = "yes" && test "$have_ubsan" != "yes"; then
15065 as_fn_error $? "UBSAN not supported by compiler." "$LINENO" 5
15066fi
5e666e3d 15067# Check whether --enable-addrsan was given.
54445dc2
TT
15068if test ${enable_addrsan+y}
15069then :
5e666e3d 15070 enableval=$enable_addrsan;
54445dc2 15071else $as_nop
5e666e3d
DW
15072 enable_addrsan=no
15073fi
15074
15075if test "$enable_addrsan" = "yes" || test "$enable_addrsan" = "probe"; then
54445dc2
TT
15076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports ADDRSAN" >&5
15077printf %s "checking if C compiler supports ADDRSAN... " >&6; }
5e666e3d
DW
15078 OLD_CFLAGS="$CFLAGS"
15079 OLD_LDFLAGS="$LDFLAGS"
15080 ADDRSAN_FLAGS="-fsanitize=address"
15081 CFLAGS="$CFLAGS $ADDRSAN_FLAGS"
15082 LDFLAGS="$LDFLAGS $ADDRSAN_FLAGS"
15083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15084/* end confdefs.h. */
15085
15086int
54445dc2 15087main (void)
5e666e3d
DW
15088{
15089
15090 ;
15091 return 0;
15092}
15093_ACEOF
54445dc2
TT
15094if ac_fn_c_try_link "$LINENO"
15095then :
15096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15097printf "%s\n" "yes" >&6; }
5e666e3d
DW
15098 addrsan_cflags=$ADDRSAN_FLAGS
15099 addrsan_ldflags=$ADDRSAN_FLAGS
15100 have_addrsan=yes
54445dc2
TT
15101else $as_nop
15102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15103printf "%s\n" "no" >&6; }
5e666e3d 15104fi
54445dc2 15105rm -f core conftest.err conftest.$ac_objext conftest.beam \
5e666e3d
DW
15106 conftest$ac_exeext conftest.$ac_ext
15107 CFLAGS="${OLD_CFLAGS}"
15108 LDFLAGS="${OLD_LDFLAGS}"
15109
15110
15111
15112fi
15113if test "$enable_addrsan" = "yes" && test "$have_addrsan" != "yes"; then
15114 as_fn_error $? "ADDRSAN not supported by compiler." "$LINENO" 5
15115fi
bcca786b 15116# Check whether --enable-threadsan was given.
54445dc2
TT
15117if test ${enable_threadsan+y}
15118then :
bcca786b 15119 enableval=$enable_threadsan;
54445dc2 15120else $as_nop
bcca786b
DW
15121 enable_threadsan=no
15122fi
15123
15124if test "$enable_threadsan" = "yes" || test "$enable_threadsan" = "probe"; then
54445dc2
TT
15125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports THREADSAN" >&5
15126printf %s "checking if C compiler supports THREADSAN... " >&6; }
bcca786b
DW
15127 OLD_CFLAGS="$CFLAGS"
15128 OLD_LDFLAGS="$LDFLAGS"
15129 THREADSAN_FLAGS="-fsanitize=thread"
15130 CFLAGS="$CFLAGS $THREADSAN_FLAGS"
15131 LDFLAGS="$LDFLAGS $THREADSAN_FLAGS"
15132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15133/* end confdefs.h. */
15134
15135int
54445dc2 15136main (void)
bcca786b
DW
15137{
15138
15139 ;
15140 return 0;
15141}
15142_ACEOF
54445dc2
TT
15143if ac_fn_c_try_link "$LINENO"
15144then :
15145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15146printf "%s\n" "yes" >&6; }
bcca786b
DW
15147 threadsan_cflags=$THREADSAN_FLAGS
15148 threadsan_ldflags=$THREADSAN_FLAGS
15149 have_threadsan=yes
54445dc2
TT
15150else $as_nop
15151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15152printf "%s\n" "no" >&6; }
bcca786b 15153fi
54445dc2 15154rm -f core conftest.err conftest.$ac_objext conftest.beam \
bcca786b
DW
15155 conftest$ac_exeext conftest.$ac_ext
15156 CFLAGS="${OLD_CFLAGS}"
15157 LDFLAGS="${OLD_LDFLAGS}"
15158
15159
15160
15161fi
15162if test "$enable_threadsan" = "yes" && test "$have_threadsan" != "yes"; then
15163 as_fn_error $? "THREADSAN not supported by compiler." "$LINENO" 5
15164fi
15165if test "$have_threadsan" = "yes" && test "$have_addrsan" = "yes"; then
54445dc2
TT
15166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ADDRSAN and THREADSAN are not known to work together." >&5
15167printf "%s\n" "$as_me: WARNING: ADDRSAN and THREADSAN are not known to work together." >&2;}
bcca786b 15168fi
2869485b
TT
15169FUZZING_CMT="#"
15170# Check whether --enable-fuzzing was given.
15171if test ${enable_fuzzing+y}
15172then :
15173 enableval=$enable_fuzzing;
15174else $as_nop
15175 enable_fuzzing=no
15176fi
15177
15178if test "$enable_fuzzing" = "yes" || test "$enable_fuzzing" = "probe"; then
15179
15180
15181
15182
15183
15184
15185ac_ext=cpp
15186ac_cpp='$CXXCPP $CPPFLAGS'
15187ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15188ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15189ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15190if test -z "$CXX"; then
15191 if test -n "$CCC"; then
15192 CXX=$CCC
15193 else
15194 if test -n "$ac_tool_prefix"; then
15195 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
15196 do
15197 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15198set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15199{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15200printf %s "checking for $ac_word... " >&6; }
15201if test ${ac_cv_prog_CXX+y}
15202then :
15203 printf %s "(cached) " >&6
15204else $as_nop
15205 if test -n "$CXX"; then
15206 ac_cv_prog_CXX="$CXX" # Let the user override the test.
15207else
15208as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15209for as_dir in $PATH
15210do
15211 IFS=$as_save_IFS
15212 case $as_dir in #(((
15213 '') as_dir=./ ;;
15214 */) ;;
15215 *) as_dir=$as_dir/ ;;
15216 esac
15217 for ac_exec_ext in '' $ac_executable_extensions; do
15218 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15219 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
15220 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15221 break 2
15222 fi
15223done
15224 done
15225IFS=$as_save_IFS
15226
15227fi
15228fi
15229CXX=$ac_cv_prog_CXX
15230if test -n "$CXX"; then
15231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
15232printf "%s\n" "$CXX" >&6; }
15233else
15234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15235printf "%s\n" "no" >&6; }
15236fi
15237
15238
15239 test -n "$CXX" && break
15240 done
15241fi
15242if test -z "$CXX"; then
15243 ac_ct_CXX=$CXX
15244 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
15245do
15246 # Extract the first word of "$ac_prog", so it can be a program name with args.
15247set dummy $ac_prog; ac_word=$2
15248{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15249printf %s "checking for $ac_word... " >&6; }
15250if test ${ac_cv_prog_ac_ct_CXX+y}
15251then :
15252 printf %s "(cached) " >&6
15253else $as_nop
15254 if test -n "$ac_ct_CXX"; then
15255 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
15256else
15257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15258for as_dir in $PATH
15259do
15260 IFS=$as_save_IFS
15261 case $as_dir in #(((
15262 '') as_dir=./ ;;
15263 */) ;;
15264 *) as_dir=$as_dir/ ;;
15265 esac
15266 for ac_exec_ext in '' $ac_executable_extensions; do
15267 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
15268 ac_cv_prog_ac_ct_CXX="$ac_prog"
15269 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
15270 break 2
15271 fi
15272done
15273 done
15274IFS=$as_save_IFS
15275
15276fi
15277fi
15278ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
15279if test -n "$ac_ct_CXX"; then
15280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
15281printf "%s\n" "$ac_ct_CXX" >&6; }
15282else
15283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15284printf "%s\n" "no" >&6; }
15285fi
15286
15287
15288 test -n "$ac_ct_CXX" && break
15289done
15290
15291 if test "x$ac_ct_CXX" = x; then
15292 CXX="g++"
15293 else
15294 case $cross_compiling:$ac_tool_warned in
15295yes:)
15296{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15297printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15298ac_tool_warned=yes ;;
15299esac
15300 CXX=$ac_ct_CXX
15301 fi
15302fi
15303
15304 fi
15305fi
15306# Provide some information about the compiler.
15307printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
15308set X $ac_compile
15309ac_compiler=$2
15310for ac_option in --version -v -V -qversion; do
15311 { { ac_try="$ac_compiler $ac_option >&5"
15312case "(($ac_try" in
15313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15314 *) ac_try_echo=$ac_try;;
15315esac
15316eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15317printf "%s\n" "$ac_try_echo"; } >&5
15318 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
15319 ac_status=$?
15320 if test -s conftest.err; then
15321 sed '10a\
15322... rest of stderr output deleted ...
15323 10q' conftest.err >conftest.er1
15324 cat conftest.er1 >&5
15325 fi
15326 rm -f conftest.er1 conftest.err
15327 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15328 test $ac_status = 0; }
15329done
15330
15331{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
15332printf %s "checking whether the compiler supports GNU C++... " >&6; }
15333if test ${ac_cv_cxx_compiler_gnu+y}
15334then :
15335 printf %s "(cached) " >&6
15336else $as_nop
15337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15338/* end confdefs.h. */
15339
15340int
15341main (void)
15342{
15343#ifndef __GNUC__
15344 choke me
15345#endif
15346
15347 ;
15348 return 0;
15349}
15350_ACEOF
15351if ac_fn_cxx_try_compile "$LINENO"
15352then :
15353 ac_compiler_gnu=yes
15354else $as_nop
15355 ac_compiler_gnu=no
15356fi
15357rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15358ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
15359
15360fi
15361{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
15362printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
15363ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15364
15365if test $ac_compiler_gnu = yes; then
15366 GXX=yes
15367else
15368 GXX=
15369fi
15370ac_test_CXXFLAGS=${CXXFLAGS+y}
15371ac_save_CXXFLAGS=$CXXFLAGS
15372{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
15373printf %s "checking whether $CXX accepts -g... " >&6; }
15374if test ${ac_cv_prog_cxx_g+y}
15375then :
15376 printf %s "(cached) " >&6
15377else $as_nop
15378 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
15379 ac_cxx_werror_flag=yes
15380 ac_cv_prog_cxx_g=no
15381 CXXFLAGS="-g"
15382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15383/* end confdefs.h. */
15384
15385int
15386main (void)
15387{
15388
15389 ;
15390 return 0;
15391}
15392_ACEOF
15393if ac_fn_cxx_try_compile "$LINENO"
15394then :
15395 ac_cv_prog_cxx_g=yes
15396else $as_nop
15397 CXXFLAGS=""
15398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15399/* end confdefs.h. */
15400
15401int
15402main (void)
15403{
15404
15405 ;
15406 return 0;
15407}
15408_ACEOF
15409if ac_fn_cxx_try_compile "$LINENO"
15410then :
15411
15412else $as_nop
15413 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
15414 CXXFLAGS="-g"
15415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15416/* end confdefs.h. */
15417
15418int
15419main (void)
15420{
15421
15422 ;
15423 return 0;
15424}
15425_ACEOF
15426if ac_fn_cxx_try_compile "$LINENO"
15427then :
15428 ac_cv_prog_cxx_g=yes
15429fi
15430rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15431fi
15432rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15433fi
15434rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15435 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
15436fi
15437{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
15438printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
15439if test $ac_test_CXXFLAGS; then
15440 CXXFLAGS=$ac_save_CXXFLAGS
15441elif test $ac_cv_prog_cxx_g = yes; then
15442 if test "$GXX" = yes; then
15443 CXXFLAGS="-g -O2"
15444 else
15445 CXXFLAGS="-g"
15446 fi
15447else
15448 if test "$GXX" = yes; then
15449 CXXFLAGS="-O2"
15450 else
15451 CXXFLAGS=
15452 fi
15453fi
15454ac_prog_cxx_stdcxx=no
15455if test x$ac_prog_cxx_stdcxx = xno
15456then :
15457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
15458printf %s "checking for $CXX option to enable C++11 features... " >&6; }
a30e56b9 15459if test ${ac_cv_prog_cxx_cxx11+y}
2869485b
TT
15460then :
15461 printf %s "(cached) " >&6
15462else $as_nop
a30e56b9 15463 ac_cv_prog_cxx_cxx11=no
2869485b
TT
15464ac_save_CXX=$CXX
15465cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15466/* end confdefs.h. */
15467$ac_cxx_conftest_cxx11_program
15468_ACEOF
15469for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
15470do
15471 CXX="$ac_save_CXX $ac_arg"
15472 if ac_fn_cxx_try_compile "$LINENO"
15473then :
15474 ac_cv_prog_cxx_cxx11=$ac_arg
15475fi
15476rm -f core conftest.err conftest.$ac_objext conftest.beam
15477 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
15478done
15479rm -f conftest.$ac_ext
15480CXX=$ac_save_CXX
15481fi
15482
15483if test "x$ac_cv_prog_cxx_cxx11" = xno
15484then :
15485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
15486printf "%s\n" "unsupported" >&6; }
15487else $as_nop
15488 if test "x$ac_cv_prog_cxx_cxx11" = x
15489then :
15490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
15491printf "%s\n" "none needed" >&6; }
15492else $as_nop
15493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
15494printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
15495 CXX="$CXX $ac_cv_prog_cxx_cxx11"
15496fi
15497 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
15498 ac_prog_cxx_stdcxx=cxx11
15499fi
15500fi
15501if test x$ac_prog_cxx_stdcxx = xno
15502then :
15503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
15504printf %s "checking for $CXX option to enable C++98 features... " >&6; }
a30e56b9 15505if test ${ac_cv_prog_cxx_cxx98+y}
2869485b
TT
15506then :
15507 printf %s "(cached) " >&6
15508else $as_nop
a30e56b9 15509 ac_cv_prog_cxx_cxx98=no
2869485b
TT
15510ac_save_CXX=$CXX
15511cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15512/* end confdefs.h. */
15513$ac_cxx_conftest_cxx98_program
15514_ACEOF
15515for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
15516do
15517 CXX="$ac_save_CXX $ac_arg"
15518 if ac_fn_cxx_try_compile "$LINENO"
15519then :
15520 ac_cv_prog_cxx_cxx98=$ac_arg
15521fi
15522rm -f core conftest.err conftest.$ac_objext conftest.beam
15523 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
15524done
15525rm -f conftest.$ac_ext
15526CXX=$ac_save_CXX
15527fi
15528
15529if test "x$ac_cv_prog_cxx_cxx98" = xno
15530then :
15531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
15532printf "%s\n" "unsupported" >&6; }
15533else $as_nop
15534 if test "x$ac_cv_prog_cxx_cxx98" = x
15535then :
15536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
15537printf "%s\n" "none needed" >&6; }
15538else $as_nop
15539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
15540printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
15541 CXX="$CXX $ac_cv_prog_cxx_cxx98"
15542fi
15543 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
15544 ac_prog_cxx_stdcxx=cxx98
15545fi
15546fi
15547
15548ac_ext=c
15549ac_cpp='$CPP $CPPFLAGS'
15550ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15551ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15552ac_compiler_gnu=$ac_cv_c_compiler_gnu
15553
15554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if C compiler supports fuzzing sanitizer" >&5
15555printf %s "checking if C compiler supports fuzzing sanitizer... " >&6; }
15556 ac_ext=cpp
15557ac_cpp='$CXXCPP $CPPFLAGS'
15558ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15559ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15560ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15561
15562 OLD_CXXFLAGS="$CXXFLAGS"
15563 OLD_LDFLAGS="$LDFLAGS"
15564 FUZZER_FLAGS="-fsanitize=fuzzer"
15565 CXXFLAGS="$CXXFLAGS $FUZZER_FLAGS"
15566 LDFLAGS="$LDFLAGS $FUZZER_FLAGS"
15567
15568cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15569/* end confdefs.h. */
15570
15571 #include <stddef.h>
15572 #include <stdint.h>
15573
15574int
15575main (void)
15576{
15577 return 0;
15578 ;
15579 return 0;
15580}
15581_ACEOF
15582if ac_fn_cxx_try_compile "$LINENO"
15583then :
15584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15585printf "%s\n" "yes" >&6; }
15586 fuzzer_cflags=$FUZZER_FLAGS
15587 fuzzer_ldflags=$FUZZER_FLAGS
15588 FUZZING_CMT=
15589 have_fuzzer=yes
15590else $as_nop
15591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15592printf "%s\n" "no" >&6; }
15593 as_fn_error $? "fuzzing requested but not available" "$LINENO" 5
15594fi
15595rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15596 CXXFLAGS="${OLD_CXXFLAGS}"
15597 LDFLAGS="${OLD_LDFLAGS}"
15598 ac_ext=c
15599ac_cpp='$CPP $CPPFLAGS'
15600ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15601ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15602ac_compiler_gnu=$ac_cv_c_compiler_gnu
15603
15604
15605
15606
15607fi
15608if test "$enable_fuzzer" = "yes" && test "$have_fuzzer" != "yes"; then
15609 as_fn_error $? "Fuzzing not supported by compiler." "$LINENO" 5
15610fi
15611
e6f2bda3 15612LINUX_CMT="#"
fff45483
TT
15613CYGWIN_CMT="#"
15614UNIX_CMT=
e6f2bda3
TT
15615case "$host_os" in
15616linux*)
15617 LINUX_CMT=
fff45483
TT
15618 ;;
15619cygwin)
15620 CYGWIN_CMT=
15621 UNIX_CMT="#"
e6f2bda3
TT
15622 ;;
15623esac
15624
93636bde
TT
15625
15626
5ce368f0
DW
15627E2SCRUB_CMT="$LINUX_CMT"
15628
50e1e10f 15629case "$host_os" in
93636bde 15630linux* | gnu* | k*bsd*-gnu)
a4b2d3ce
TT
15631 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
15632 root_prefix="";
54445dc2
TT
15633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
15634printf "%s\n" "On $host_os systems, root_prefix defaults to ''" >&6; }
fc6d9d51
TT
15635 fi
15636 ;;
15637esac
fc6d9d51 15638case "$host_os" in
93636bde 15639linux* | gnu* | k*bsd*-gnu)
fc6d9d51 15640 if test "$prefix" = NONE ; then
a4b2d3ce 15641 prefix="/usr";
54445dc2
TT
15642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
15643printf "%s\n" "On $host_os systems, prefix defaults to /usr" >&6; }
bff61a7a 15644 if test "$mandir" = '${prefix}/man' ; then
54445dc2
TT
15645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
15646printf "%s\n" "...and mandir defaults to /usr/share/man" >&6; }
bff61a7a
TT
15647 mandir=/usr/share/man
15648 fi
50e1e10f
TT
15649 fi
15650;;
15651esac
a4b2d3ce 15652if test "$root_prefix" = NONE ; then
ffe1991f 15653 if test "$prefix" = NONE ; then
a4b2d3ce
TT
15654 root_prefix="$ac_default_prefix"
15655 else
15656 root_prefix="$prefix"
15657 fi
b5ffeade
TT
15658 root_bindir=$bindir
15659 root_sbindir=$sbindir
15660 root_libdir=$libdir
15661 root_sysconfdir=$sysconfdir
15662else
15663 root_bindir='${root_prefix}/bin'
15664 root_sbindir='${root_prefix}/sbin'
15665 root_libdir='${root_prefix}/lib'
15666 root_sysconfdir='${root_prefix}/etc'
a4b2d3ce 15667fi
c4ef11c5
TT
15668if test "$bindir" != '${exec_prefix}/bin'; then
15669 root_bindir=$bindir
54445dc2
TT
15670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
15671printf "%s\n" "Setting root_bindir to $root_bindir" >&6; }
c4ef11c5
TT
15672fi
15673if test "$sbindir" != '${exec_prefix}/sbin'; then
15674 root_sbindir=$sbindir
54445dc2
TT
15675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
15676printf "%s\n" "Setting root_sbindir to $root_sbindir" >&6; }
c4ef11c5
TT
15677fi
15678if test "$libdir" != '${exec_prefix}/lib'; then
15679 root_libdir=$libdir
54445dc2
TT
15680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
15681printf "%s\n" "Setting root_libdir to $root_libdir" >&6; }
c4ef11c5
TT
15682fi
15683if test "$sysconfdir" != '${prefix}/etc'; then
15684 root_sysconfdir=$sysconfdir
54445dc2
TT
15685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
15686printf "%s\n" "Setting root_sysconfdir to $root_sysconfdir" >&6; }
c4ef11c5 15687fi
a4b2d3ce 15688
93636bde
TT
15689
15690
15691
15692
55e00a25
TT
15693
15694# Check whether --with-multiarch was given.
54445dc2
TT
15695if test ${with_multiarch+y}
15696then :
d7fa4103
TT
15697 withval=$with_multiarch; if test "$withval" = "lib64"; then
15698 libdir=/usr/lib64
15699 root_libdir=/lib64
15700else
15701 libdir=$libdir/$withval
15702 root_libdir=$root_libdir/$withval
15703fi
55e00a25
TT
15704
15705fi
a2df5894 15706
54445dc2
TT
15707{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
15708printf %s "checking whether we can link with -static... " >&6; }
15709if test ${ac_cv_e2fsprogs_use_static+y}
15710then :
15711 printf %s "(cached) " >&6
15712else $as_nop
fd1677e8 15713 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS_STATIC -static"
57aa50d4 15714cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 15715/* end confdefs.h. */
ae851482 15716#include <stdio.h>
b0cacab0 15717int
54445dc2 15718main (void)
b0cacab0 15719{
ae851482 15720fflush(stdout);
b0cacab0
TT
15721 ;
15722 return 0;
15723}
15724_ACEOF
54445dc2
TT
15725if ac_fn_c_try_link "$LINENO"
15726then :
ae851482 15727 ac_cv_e2fsprogs_use_static=yes
54445dc2 15728else $as_nop
57aa50d4 15729 ac_cv_e2fsprogs_use_static=no
ae851482 15730fi
54445dc2 15731rm -f core conftest.err conftest.$ac_objext conftest.beam \
57aa50d4 15732 conftest$ac_exeext conftest.$ac_ext
ae851482
TT
15733LDFLAGS=$SAVE_LDFLAGS
15734fi
50e1e10f 15735
defde784
TT
15736case "$host_os" in
15737solaris2.*)
b0cacab0 15738 ac_cv_e2fsprogs_use_static=no
defde784
TT
15739;;
15740esac
54445dc2
TT
15741{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
15742printf "%s\n" "$ac_cv_e2fsprogs_use_static" >&6; }
ae851482 15743if test $ac_cv_e2fsprogs_use_static = yes; then
fd1677e8 15744 LDFLAGS_STATIC="$LDFLAGS_STATIC -static"
ae851482 15745fi
50e1e10f 15746
07a0db15
TT
15747case "$host_os" in
15748darwin*)
54445dc2
TT
15749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
15750printf "%s\n" "Using Apple Darwin / GNU libintl workaround" >&6; }
d1154eb4 15751
54445dc2 15752printf "%s\n" "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
07a0db15
TT
15753
15754 ;;
15755esac
50e1e10f
TT
15756if test "$cross_compiling" = yes ; then
15757 DO_TEST_SUITE=
15758else
15759 DO_TEST_SUITE=check
15760fi
15761
d1154eb4
TT
15762INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
15763if test -n "$CPPFLAGS" ; then
15764 INCLUDES="$INCLUDES $CPPFLAGS"
15765fi
c6f35b8a 15766if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
d1154eb4 15767 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
c6f35b8a 15768fi
6c59a665
TT
15769if test -n "$WITH_DIET_LIBC" ; then
15770 INCLUDES="$INCLUDES -D_REENTRANT"
15771fi
6eb00fb7
EB
15772case "$host_os" in
15773mingw*)
15774 INCLUDES=$INCLUDES' -I$(top_srcdir)/include/mingw'
15775 ;;
15776esac
c6f35b8a 15777
dd947da2 15778if test $cross_compiling = no; then
2873927d 15779 BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
dd947da2 15780 BUILD_LDFLAGS="$LDFLAGS"
dd947da2
TT
15781fi
15782
15783
fd1677e8
TT
15784CFLAGS_SHLIB=${CFLAGS_SHLIB:-$CFLAGS}
15785CFLAGS_STLIB=${CFLAGS_STLIB:-$CFLAGS}
15786LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
15787
15788
15789
5ce368f0
DW
15790
15791
15792# Check whether --with-udev_rules_dir was given.
54445dc2
TT
15793if test ${with_udev_rules_dir+y}
15794then :
5ce368f0 15795 withval=$with_udev_rules_dir;
54445dc2 15796else $as_nop
5ce368f0
DW
15797 with_udev_rules_dir=yes
15798fi
15799
54445dc2
TT
15800if test "x${with_udev_rules_dir}" != "xno"
15801then :
5ce368f0 15802
54445dc2
TT
15803 if test "x${with_udev_rules_dir}" = "xyes"
15804then :
5ce368f0
DW
15805
15806
15807pkg_failed=no
54445dc2
TT
15808{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for udev" >&5
15809printf %s "checking for udev... " >&6; }
5ce368f0
DW
15810
15811if test -n "$udev_CFLAGS"; then
15812 pkg_cv_udev_CFLAGS="$udev_CFLAGS"
15813 elif test -n "$PKG_CONFIG"; then
15814 if test -n "$PKG_CONFIG" && \
54445dc2 15815 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
5ce368f0
DW
15816 ($PKG_CONFIG --exists --print-errors "udev") 2>&5
15817 ac_status=$?
54445dc2 15818 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5ce368f0
DW
15819 test $ac_status = 0; }; then
15820 pkg_cv_udev_CFLAGS=`$PKG_CONFIG --cflags "udev" 2>/dev/null`
15821 test "x$?" != "x0" && pkg_failed=yes
15822else
15823 pkg_failed=yes
15824fi
15825 else
15826 pkg_failed=untried
15827fi
15828if test -n "$udev_LIBS"; then
15829 pkg_cv_udev_LIBS="$udev_LIBS"
15830 elif test -n "$PKG_CONFIG"; then
15831 if test -n "$PKG_CONFIG" && \
54445dc2 15832 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
5ce368f0
DW
15833 ($PKG_CONFIG --exists --print-errors "udev") 2>&5
15834 ac_status=$?
54445dc2 15835 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5ce368f0
DW
15836 test $ac_status = 0; }; then
15837 pkg_cv_udev_LIBS=`$PKG_CONFIG --libs "udev" 2>/dev/null`
15838 test "x$?" != "x0" && pkg_failed=yes
15839else
15840 pkg_failed=yes
15841fi
15842 else
15843 pkg_failed=untried
15844fi
15845
15846
15847
15848if test $pkg_failed = yes; then
a30e56b9 15849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
54445dc2 15850printf "%s\n" "no" >&6; }
5ce368f0
DW
15851
15852if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15853 _pkg_short_errors_supported=yes
15854else
15855 _pkg_short_errors_supported=no
15856fi
15857 if test $_pkg_short_errors_supported = yes; then
a30e56b9 15858 udev_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "udev" 2>&1`
5ce368f0 15859 else
a30e56b9 15860 udev_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "udev" 2>&1`
5ce368f0 15861 fi
a30e56b9
TT
15862 # Put the nasty error message in config.log where it belongs
15863 echo "$udev_PKG_ERRORS" >&5
5ce368f0
DW
15864
15865
15866 with_udev_rules_dir=""
15867
15868elif test $pkg_failed = untried; then
a30e56b9 15869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
54445dc2 15870printf "%s\n" "no" >&6; }
5ce368f0
DW
15871
15872 with_udev_rules_dir=""
15873
15874else
a30e56b9
TT
15875 udev_CFLAGS=$pkg_cv_udev_CFLAGS
15876 udev_LIBS=$pkg_cv_udev_LIBS
54445dc2
TT
15877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15878printf "%s\n" "yes" >&6; }
5ce368f0
DW
15879
15880 with_udev_rules_dir="$($PKG_CONFIG --variable=udevdir udev)/rules.d"
15881
15882fi
15883
15884fi
54445dc2
TT
15885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for udev rules dir" >&5
15886printf %s "checking for udev rules dir... " >&6; }
5ce368f0 15887 pkg_udev_rules_dir="${with_udev_rules_dir}"
54445dc2
TT
15888 if test -n "${pkg_udev_rules_dir}"
15889then :
5ce368f0 15890
54445dc2
TT
15891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${pkg_udev_rules_dir}" >&5
15892printf "%s\n" "${pkg_udev_rules_dir}" >&6; }
5ce368f0
DW
15893 have_udev="yes"
15894
54445dc2 15895else $as_nop
5ce368f0 15896
54445dc2
TT
15897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15898printf "%s\n" "no" >&6; }
5ce368f0
DW
15899 have_udev="no"
15900
15901fi
15902
54445dc2 15903else $as_nop
5ce368f0
DW
15904
15905 have_udev="disabled"
15906
15907fi
15908
15909
15910
a2df5894
DW
15911
15912# Check whether --with-crond_dir was given.
54445dc2
TT
15913if test ${with_crond_dir+y}
15914then :
a2df5894 15915 withval=$with_crond_dir;
54445dc2 15916else $as_nop
a2df5894
DW
15917 with_crond_dir=yes
15918fi
15919
54445dc2
TT
15920if test "x${with_crond_dir}" != "xno"
15921then :
a2df5894 15922
54445dc2
TT
15923 if test "x${with_crond_dir}" = "xyes"
15924then :
a2df5894 15925
54445dc2
TT
15926 if test -d "/etc/cron.d"
15927then :
a2df5894 15928 with_crond_dir="/etc/cron.d"
54445dc2 15929else $as_nop
188bf39a 15930 have_crond="no"; with_crond_dir=""
a2df5894
DW
15931fi
15932
15933fi
54445dc2
TT
15934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for system crontab dir" >&5
15935printf %s "checking for system crontab dir... " >&6; }
a2df5894 15936 crond_dir="${with_crond_dir}"
54445dc2
TT
15937 if test -n "${crond_dir}"
15938then :
a2df5894 15939
54445dc2
TT
15940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${crond_dir}" >&5
15941printf "%s\n" "${crond_dir}" >&6; }
a2df5894
DW
15942 have_crond="yes"
15943
54445dc2 15944else $as_nop
a2df5894 15945
54445dc2
TT
15946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
15947printf "%s\n" "no" >&6; }
a2df5894
DW
15948 have_crond="no"
15949
15950fi
15951
54445dc2 15952else $as_nop
a2df5894
DW
15953
15954 have_crond="disabled"
15955
15956fi
15957
15958
15959
15960
15961# Check whether --with-systemd_unit_dir was given.
54445dc2
TT
15962if test ${with_systemd_unit_dir+y}
15963then :
a2df5894 15964 withval=$with_systemd_unit_dir;
54445dc2 15965else $as_nop
a2df5894
DW
15966 with_systemd_unit_dir=yes
15967fi
15968
54445dc2
TT
15969if test "x${with_systemd_unit_dir}" != "xno"
15970then :
a2df5894 15971
54445dc2
TT
15972 if test "x${with_systemd_unit_dir}" = "xyes"
15973then :
a2df5894
DW
15974
15975
15976pkg_failed=no
54445dc2
TT
15977{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for systemd" >&5
15978printf %s "checking for systemd... " >&6; }
a2df5894
DW
15979
15980if test -n "$systemd_CFLAGS"; then
15981 pkg_cv_systemd_CFLAGS="$systemd_CFLAGS"
15982 elif test -n "$PKG_CONFIG"; then
15983 if test -n "$PKG_CONFIG" && \
54445dc2 15984 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
a2df5894
DW
15985 ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
15986 ac_status=$?
54445dc2 15987 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
a2df5894
DW
15988 test $ac_status = 0; }; then
15989 pkg_cv_systemd_CFLAGS=`$PKG_CONFIG --cflags "systemd" 2>/dev/null`
15990 test "x$?" != "x0" && pkg_failed=yes
15991else
15992 pkg_failed=yes
15993fi
15994 else
15995 pkg_failed=untried
15996fi
15997if test -n "$systemd_LIBS"; then
15998 pkg_cv_systemd_LIBS="$systemd_LIBS"
15999 elif test -n "$PKG_CONFIG"; then
16000 if test -n "$PKG_CONFIG" && \
54445dc2 16001 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
a2df5894
DW
16002 ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
16003 ac_status=$?
54445dc2 16004 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
a2df5894
DW
16005 test $ac_status = 0; }; then
16006 pkg_cv_systemd_LIBS=`$PKG_CONFIG --libs "systemd" 2>/dev/null`
16007 test "x$?" != "x0" && pkg_failed=yes
16008else
16009 pkg_failed=yes
16010fi
16011 else
16012 pkg_failed=untried
16013fi
16014
16015
16016
16017if test $pkg_failed = yes; then
a30e56b9 16018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
54445dc2 16019printf "%s\n" "no" >&6; }
a2df5894
DW
16020
16021if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
16022 _pkg_short_errors_supported=yes
16023else
16024 _pkg_short_errors_supported=no
16025fi
16026 if test $_pkg_short_errors_supported = yes; then
a30e56b9 16027 systemd_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "systemd" 2>&1`
a2df5894 16028 else
a30e56b9 16029 systemd_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "systemd" 2>&1`
a2df5894 16030 fi
a30e56b9
TT
16031 # Put the nasty error message in config.log where it belongs
16032 echo "$systemd_PKG_ERRORS" >&5
a2df5894
DW
16033
16034
16035 with_systemd_unit_dir=""
16036
16037elif test $pkg_failed = untried; then
a30e56b9 16038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
54445dc2 16039printf "%s\n" "no" >&6; }
a2df5894
DW
16040
16041 with_systemd_unit_dir=""
16042
16043else
a30e56b9
TT
16044 systemd_CFLAGS=$pkg_cv_systemd_CFLAGS
16045 systemd_LIBS=$pkg_cv_systemd_LIBS
54445dc2
TT
16046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16047printf "%s\n" "yes" >&6; }
a2df5894
DW
16048
16049 with_systemd_unit_dir="$($PKG_CONFIG --variable=systemdsystemunitdir systemd)"
16050
16051fi
16052
16053
16054fi
54445dc2
TT
16055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for systemd system unit dir" >&5
16056printf %s "checking for systemd system unit dir... " >&6; }
a2df5894 16057 systemd_system_unit_dir="${with_systemd_unit_dir}"
54445dc2
TT
16058 if test -n "${systemd_system_unit_dir}"
16059then :
a2df5894 16060
54445dc2
TT
16061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${systemd_system_unit_dir}" >&5
16062printf "%s\n" "${systemd_system_unit_dir}" >&6; }
a2df5894
DW
16063 have_systemd="yes"
16064
54445dc2 16065else $as_nop
a2df5894 16066
54445dc2
TT
16067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16068printf "%s\n" "no" >&6; }
a2df5894
DW
16069 have_systemd="no"
16070
16071fi
16072
54445dc2 16073else $as_nop
a2df5894
DW
16074
16075 have_systemd="disabled"
16076
16077fi
16078
16079
d1d44c14
PAA
16080OS_IO_FILE=""
16081case "$host_os" in
6eb00fb7 16082 mingw*)
d1d44c14
PAA
16083 OS_IO_FILE=windows_io
16084 ;;
16085 *)
16086 OS_IO_FILE=unix_io
16087 ;;
16088esac
a2df5894 16089
a22e7f16 16090
50e1e10f
TT
16091test -d lib || mkdir lib
16092test -d include || mkdir include
16093test -d include/linux || mkdir include/linux
defde784 16094test -d include/asm || mkdir include/asm
44dfb378
TT
16095if test -z "$UUID_CMT" ; then
16096 uuid_out_list="lib/uuid/Makefile lib/uuid/uuid.pc \
16097 lib/uuid/uuid_types.h"
16098fi
16099if test -z "$BLKID_CMT" ; then
16100 blkid_out_list="lib/blkid/Makefile lib/blkid/blkid.pc \
16101 lib/blkid/blkid_types.h"
16102fi
e5f0f3ee 16103for i in MCONFIG Makefile \
183c73b0 16104 util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
4ea7ea00
TT
16105 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
16106 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
f34af41b 16107 $uuid_out_list $blkid_out_list lib/support/Makefile \
44dfb378 16108 lib/ss/ss.pc lib/et/com_err.pc lib/e2p/e2p.pc lib/ext2fs/ext2fs.pc \
921f4ad5 16109 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
94ba8c75 16110 debugfs/Makefile tests/Makefile tests/progs/Makefile \
2869485b
TT
16111 tests/fuzz/Makefile resize/Makefile doc/Makefile \
16112 po/Makefile.in scrub/Makefile; do
94ba8c75
TT
16113 if test -d `dirname ${srcdir}/$i` ; then
16114 outlist="$outlist $i"
16115 fi
16116done
e1052144
TT
16117ac_config_files="$ac_config_files $outlist"
16118
b0cacab0 16119cat >confcache <<\_ACEOF
50e1e10f
TT
16120# This file is a shell script that caches the results of configure
16121# tests run on this system so they can be shared between configure
b0cacab0
TT
16122# scripts and configure runs, see configure's option --config-cache.
16123# It is not useful on other systems. If it contains results you don't
16124# want to keep, you may remove or edit it.
50e1e10f 16125#
b0cacab0
TT
16126# config.status only pays attention to the cache file if you give it
16127# the --recheck option to rerun configure.
50e1e10f 16128#
b0cacab0
TT
16129# `ac_cv_env_foo' variables (set or unset) will be overridden when
16130# loading this file, other *unset* `ac_cv_foo' will be assigned the
16131# following values.
16132
16133_ACEOF
16134
21c84b71
TT
16135# The following way of writing the cache mishandles newlines in values,
16136# but we know of no workaround that is simple, portable, and efficient.
e1052144 16137# So, we kill variables containing newlines.
50e1e10f
TT
16138# Ultrix sh set writes to stderr and can't be redirected directly,
16139# and sets the high bit in the cache file unless we assign to the vars.
e1052144
TT
16140(
16141 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16142 eval ac_val=\$$ac_var
16143 case $ac_val in #(
16144 *${as_nl}*)
16145 case $ac_var in #(
54445dc2
TT
16146 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16147printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
e1052144
TT
16148 esac
16149 case $ac_var in #(
16150 _ | IFS | as_nl) ;; #(
39fd3d4f 16151 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
57aa50d4 16152 *) { eval $ac_var=; unset $ac_var;} ;;
e1052144
TT
16153 esac ;;
16154 esac
16155 done
16156
b0cacab0 16157 (set) 2>&1 |
e1052144
TT
16158 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16159 *${as_nl}ac_space=\ *)
57aa50d4
TT
16160 # `set' does not quote correctly, so add quotes: double-quote
16161 # substitution turns \\\\ into \\, and sed turns \\ into \.
b0cacab0
TT
16162 sed -n \
16163 "s/'/'\\\\''/g;
16164 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
e1052144 16165 ;; #(
b0cacab0
TT
16166 *)
16167 # `set' quotes correctly as required by POSIX, so do not add quotes.
e1052144 16168 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b0cacab0 16169 ;;
e1052144
TT
16170 esac |
16171 sort
16172) |
b0cacab0 16173 sed '
e1052144 16174 /^ac_cv_env_/b end
b0cacab0 16175 t clear
e1052144 16176 :clear
54445dc2 16177 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
b0cacab0 16178 t end
e1052144
TT
16179 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16180 :end' >>confcache
16181if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16182 if test -w "$cache_file"; then
d6a4bcb5 16183 if test "x$cache_file" != "x/dev/null"; then
54445dc2
TT
16184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16185printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
d6a4bcb5
TB
16186 if test ! -f "$cache_file" || test -h "$cache_file"; then
16187 cat confcache >"$cache_file"
16188 else
16189 case $cache_file in #(
16190 */* | ?:*)
16191 mv -f confcache "$cache_file"$$ &&
16192 mv -f "$cache_file"$$ "$cache_file" ;; #(
16193 *)
16194 mv -f confcache "$cache_file" ;;
16195 esac
16196 fi
16197 fi
50e1e10f 16198 else
54445dc2
TT
16199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16200printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
50e1e10f
TT
16201 fi
16202fi
16203rm -f confcache
16204
50e1e10f
TT
16205test "x$prefix" = xNONE && prefix=$ac_default_prefix
16206# Let make expand exec_prefix.
16207test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
16208
d1154eb4 16209DEFS=-DHAVE_CONFIG_H
b0cacab0
TT
16210
16211ac_libobjs=
16212ac_ltlibobjs=
d6a4bcb5 16213U=
b0cacab0
TT
16214for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
16215 # 1. Remove the extension, and $U if already installed.
e1052144 16216 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
54445dc2 16217 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
e1052144
TT
16218 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
16219 # will be set to the directory where LIBOBJS objects are built.
57aa50d4
TT
16220 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
16221 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
b0cacab0
TT
16222done
16223LIBOBJS=$ac_libobjs
50e1e10f 16224
b0cacab0
TT
16225LTLIBOBJS=$ac_ltlibobjs
16226
16227
16228
39fd3d4f 16229
d6a4bcb5 16230: "${CONFIG_STATUS=./config.status}"
39fd3d4f 16231ac_write_fail=0
b0cacab0
TT
16232ac_clean_files_save=$ac_clean_files
16233ac_clean_files="$ac_clean_files $CONFIG_STATUS"
54445dc2
TT
16234{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
16235printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
57aa50d4
TT
16236as_write_fail=0
16237cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
b0cacab0
TT
16238#! $SHELL
16239# Generated by $as_me.
93636bde 16240# Run this file to recreate the current configuration.
93636bde 16241# Compiler output produced by configure, useful for debugging
b0cacab0 16242# configure, is in config.log if it exists.
07a0db15 16243
b0cacab0
TT
16244debug=false
16245ac_cs_recheck=false
16246ac_cs_silent=false
b0cacab0 16247
57aa50d4
TT
16248SHELL=\${CONFIG_SHELL-$SHELL}
16249export SHELL
16250_ASEOF
16251cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
16252## -------------------- ##
16253## M4sh Initialization. ##
16254## -------------------- ##
b0cacab0 16255
29a5deed
TT
16256# Be more Bourne compatible
16257DUALCASE=1; export DUALCASE # for MKS sh
54445dc2
TT
16258as_nop=:
16259if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
16260then :
b0cacab0
TT
16261 emulate sh
16262 NULLCMD=:
39fd3d4f 16263 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b0cacab0
TT
16264 # is contrary to our usage. Disable this feature.
16265 alias -g '${1+"$@"}'='"$@"'
e1052144 16266 setopt NO_GLOB_SUBST
54445dc2 16267else $as_nop
57aa50d4
TT
16268 case `(set -o) 2>/dev/null` in #(
16269 *posix*) :
16270 set -o posix ;; #(
16271 *) :
16272 ;;
29a5deed 16273esac
b0cacab0 16274fi
29a5deed
TT
16275
16276
54445dc2
TT
16277
16278# Reset variables that may have inherited troublesome values from
16279# the environment.
16280
16281# IFS needs to be set, to space, tab, and newline, in precisely that order.
16282# (If _AS_PATH_WALK were called with IFS unset, it would have the
16283# side effect of setting IFS to empty, thus disabling word splitting.)
16284# Quoting is to prevent editors from complaining about space-tab.
39fd3d4f
SJR
16285as_nl='
16286'
16287export as_nl
54445dc2
TT
16288IFS=" "" $as_nl"
16289
16290PS1='$ '
16291PS2='> '
16292PS4='+ '
16293
16294# Ensure predictable behavior from utilities with locale-dependent output.
16295LC_ALL=C
16296export LC_ALL
16297LANGUAGE=C
16298export LANGUAGE
16299
16300# We cannot yet rely on "unset" to work, but we need these variables
16301# to be unset--not just set to an empty or harmless value--now, to
16302# avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
16303# also avoids known problems related to "unset" and subshell syntax
16304# in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
16305for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
16306do eval test \${$as_var+y} \
16307 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
16308done
16309
16310# Ensure that fds 0, 1, and 2 are open.
16311if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
16312if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
16313if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
39fd3d4f
SJR
16314
16315# The user is always right.
54445dc2 16316if ${PATH_SEPARATOR+false} :; then
39fd3d4f
SJR
16317 PATH_SEPARATOR=:
16318 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
16319 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
16320 PATH_SEPARATOR=';'
16321 }
e1052144
TT
16322fi
16323
b0cacab0 16324
e1052144 16325# Find who we are. Look in the path if we contain no directory separator.
d6a4bcb5 16326as_myself=
57aa50d4 16327case $0 in #((
e1052144
TT
16328 *[\\/]* ) as_myself=$0 ;;
16329 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16330for as_dir in $PATH
16331do
16332 IFS=$as_save_IFS
54445dc2
TT
16333 case $as_dir in #(((
16334 '') as_dir=./ ;;
16335 */) ;;
16336 *) as_dir=$as_dir/ ;;
16337 esac
16338 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
57aa50d4 16339 done
e1052144
TT
16340IFS=$as_save_IFS
16341
16342 ;;
16343esac
16344# We did not find ourselves, most probably we were run as `sh COMMAND'
16345# in which case we are not to be found in the path.
16346if test "x$as_myself" = x; then
16347 as_myself=$0
16348fi
16349if test ! -f "$as_myself"; then
54445dc2 16350 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
57aa50d4 16351 exit 1
e1052144
TT
16352fi
16353
57aa50d4
TT
16354
16355
d6a4bcb5
TB
16356# as_fn_error STATUS ERROR [LINENO LOG_FD]
16357# ----------------------------------------
57aa50d4
TT
16358# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
16359# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d6a4bcb5 16360# script with STATUS, using 1 if that was 0.
57aa50d4
TT
16361as_fn_error ()
16362{
d6a4bcb5
TB
16363 as_status=$1; test $as_status -eq 0 && as_status=1
16364 if test "$4"; then
16365 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
54445dc2 16366 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
57aa50d4 16367 fi
54445dc2 16368 printf "%s\n" "$as_me: error: $2" >&2
57aa50d4
TT
16369 as_fn_exit $as_status
16370} # as_fn_error
16371
16372
54445dc2 16373
57aa50d4
TT
16374# as_fn_set_status STATUS
16375# -----------------------
16376# Set $? to STATUS, without forking.
16377as_fn_set_status ()
16378{
16379 return $1
16380} # as_fn_set_status
16381
16382# as_fn_exit STATUS
16383# -----------------
16384# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
16385as_fn_exit ()
16386{
16387 set +e
16388 as_fn_set_status $1
16389 exit $1
16390} # as_fn_exit
16391
16392# as_fn_unset VAR
16393# ---------------
16394# Portably unset VAR.
16395as_fn_unset ()
16396{
16397 { eval $1=; unset $1;}
16398}
16399as_unset=as_fn_unset
54445dc2 16400
57aa50d4
TT
16401# as_fn_append VAR VALUE
16402# ----------------------
16403# Append the text in VALUE to the end of the definition contained in VAR. Take
16404# advantage of any shell optimizations that allow amortized linear growth over
16405# repeated appends, instead of the typical quadratic growth present in naive
16406# implementations.
54445dc2
TT
16407if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
16408then :
57aa50d4
TT
16409 eval 'as_fn_append ()
16410 {
16411 eval $1+=\$2
16412 }'
54445dc2 16413else $as_nop
57aa50d4
TT
16414 as_fn_append ()
16415 {
16416 eval $1=\$$1\$2
16417 }
16418fi # as_fn_append
16419
16420# as_fn_arith ARG...
16421# ------------------
16422# Perform arithmetic evaluation on the ARGs, and store the result in the
16423# global $as_val. Take advantage of shells that can avoid forks. The arguments
16424# must be portable across $(()) and expr.
54445dc2
TT
16425if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
16426then :
57aa50d4
TT
16427 eval 'as_fn_arith ()
16428 {
16429 as_val=$(( $* ))
16430 }'
54445dc2 16431else $as_nop
57aa50d4
TT
16432 as_fn_arith ()
16433 {
16434 as_val=`expr "$@" || test $? -eq 1`
16435 }
16436fi # as_fn_arith
16437
16438
e1052144
TT
16439if expr a : '\(a\)' >/dev/null 2>&1 &&
16440 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b0cacab0
TT
16441 as_expr=expr
16442else
16443 as_expr=false
16444fi
16445
e1052144 16446if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b0cacab0
TT
16447 as_basename=basename
16448else
16449 as_basename=false
16450fi
16451
57aa50d4
TT
16452if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
16453 as_dirname=dirname
16454else
16455 as_dirname=false
16456fi
b0cacab0 16457
e1052144 16458as_me=`$as_basename -- "$0" ||
b0cacab0
TT
16459$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
16460 X"$0" : 'X\(//\)$' \| \
e1052144 16461 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
54445dc2 16462printf "%s\n" X/"$0" |
e1052144
TT
16463 sed '/^.*\/\([^/][^/]*\)\/*$/{
16464 s//\1/
16465 q
16466 }
16467 /^X\/\(\/\/\)$/{
16468 s//\1/
16469 q
16470 }
16471 /^X\/\(\/\).*/{
16472 s//\1/
16473 q
16474 }
16475 s/.*/./; q'`
b0cacab0 16476
57aa50d4
TT
16477# Avoid depending upon Character Ranges.
16478as_cr_letters='abcdefghijklmnopqrstuvwxyz'
16479as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
16480as_cr_Letters=$as_cr_letters$as_cr_LETTERS
16481as_cr_digits='0123456789'
16482as_cr_alnum=$as_cr_Letters$as_cr_digits
e1052144 16483
54445dc2
TT
16484
16485# Determine whether it's possible to make 'echo' print without a newline.
16486# These variables are no longer used directly by Autoconf, but are AC_SUBSTed
16487# for compatibility with existing Makefiles.
e1052144 16488ECHO_C= ECHO_N= ECHO_T=
57aa50d4 16489case `echo -n x` in #(((((
e1052144 16490-n*)
57aa50d4 16491 case `echo 'xy\c'` in
e1052144 16492 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
57aa50d4
TT
16493 xy) ECHO_C='\c';;
16494 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
16495 ECHO_T=' ';;
e1052144
TT
16496 esac;;
16497*)
16498 ECHO_N='-n';;
b0cacab0 16499esac
b0cacab0 16500
54445dc2
TT
16501# For backward compatibility with old third-party macros, we provide
16502# the shell variables $as_echo and $as_echo_n. New code should use
16503# AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
16504as_echo='printf %s\n'
16505as_echo_n='printf %s'
16506
b0cacab0 16507rm -f conf$$ conf$$.exe conf$$.file
e1052144
TT
16508if test -d conf$$.dir; then
16509 rm -f conf$$.dir/conf$$.file
16510else
16511 rm -f conf$$.dir
39fd3d4f
SJR
16512 mkdir conf$$.dir 2>/dev/null
16513fi
16514if (echo >conf$$.file) 2>/dev/null; then
16515 if ln -s conf$$.file conf$$ 2>/dev/null; then
16516 as_ln_s='ln -s'
16517 # ... but there are two gotchas:
16518 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
16519 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d6a4bcb5 16520 # In both cases, we have to default to `cp -pR'.
39fd3d4f 16521 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d6a4bcb5 16522 as_ln_s='cp -pR'
39fd3d4f
SJR
16523 elif ln conf$$.file conf$$ 2>/dev/null; then
16524 as_ln_s=ln
16525 else
d6a4bcb5 16526 as_ln_s='cp -pR'
39fd3d4f 16527 fi
b0cacab0 16528else
d6a4bcb5 16529 as_ln_s='cp -pR'
b0cacab0 16530fi
e1052144
TT
16531rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
16532rmdir conf$$.dir 2>/dev/null
b0cacab0 16533
57aa50d4
TT
16534
16535# as_fn_mkdir_p
16536# -------------
16537# Create "$as_dir" as a directory, including parents if necessary.
16538as_fn_mkdir_p ()
16539{
16540
16541 case $as_dir in #(
16542 -*) as_dir=./$as_dir;;
16543 esac
16544 test -d "$as_dir" || eval $as_mkdir_p || {
16545 as_dirs=
16546 while :; do
16547 case $as_dir in #(
54445dc2 16548 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
57aa50d4
TT
16549 *) as_qdir=$as_dir;;
16550 esac
16551 as_dirs="'$as_qdir' $as_dirs"
16552 as_dir=`$as_dirname -- "$as_dir" ||
16553$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16554 X"$as_dir" : 'X\(//\)[^/]' \| \
16555 X"$as_dir" : 'X\(//\)$' \| \
16556 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
54445dc2 16557printf "%s\n" X"$as_dir" |
57aa50d4
TT
16558 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16559 s//\1/
16560 q
16561 }
16562 /^X\(\/\/\)[^/].*/{
16563 s//\1/
16564 q
16565 }
16566 /^X\(\/\/\)$/{
16567 s//\1/
16568 q
16569 }
16570 /^X\(\/\).*/{
16571 s//\1/
16572 q
16573 }
16574 s/.*/./; q'`
16575 test -d "$as_dir" && break
16576 done
16577 test -z "$as_dirs" || eval "mkdir $as_dirs"
d6a4bcb5 16578 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
57aa50d4
TT
16579
16580
16581} # as_fn_mkdir_p
b0cacab0 16582if mkdir -p . 2>/dev/null; then
57aa50d4 16583 as_mkdir_p='mkdir -p "$as_dir"'
b0cacab0
TT
16584else
16585 test -d ./-p && rmdir ./-p
16586 as_mkdir_p=false
16587fi
16588
d6a4bcb5
TB
16589
16590# as_fn_executable_p FILE
16591# -----------------------
16592# Test if FILE is an executable regular file.
16593as_fn_executable_p ()
16594{
16595 test -f "$1" && test -x "$1"
16596} # as_fn_executable_p
16597as_test_x='test -x'
16598as_executable_p=as_fn_executable_p
b0cacab0
TT
16599
16600# Sed expression to map a string onto a valid CPP name.
16601as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
16602
16603# Sed expression to map a string onto a valid variable name.
16604as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
16605
16606
b0cacab0 16607exec 6>&1
57aa50d4
TT
16608## ----------------------------------- ##
16609## Main body of $CONFIG_STATUS script. ##
16610## ----------------------------------- ##
16611_ASEOF
16612test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
b0cacab0 16613
57aa50d4
TT
16614cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16615# Save the log message, to keep $0 and so on meaningful, and to
b0cacab0 16616# report actual input values of CONFIG_FILES etc. instead of their
e1052144
TT
16617# values after options handling.
16618ac_log="
b0cacab0 16619This file was extended by $as_me, which was
54445dc2 16620generated by GNU Autoconf 2.71. Invocation command line was
b0cacab0
TT
16621
16622 CONFIG_FILES = $CONFIG_FILES
16623 CONFIG_HEADERS = $CONFIG_HEADERS
16624 CONFIG_LINKS = $CONFIG_LINKS
16625 CONFIG_COMMANDS = $CONFIG_COMMANDS
16626 $ $0 $@
16627
e1052144
TT
16628on `(hostname || uname -n) 2>/dev/null | sed 1q`
16629"
16630
b0cacab0
TT
16631_ACEOF
16632
39fd3d4f
SJR
16633case $ac_config_files in *"
16634"*) set x $ac_config_files; shift; ac_config_files=$*;;
16635esac
16636
d1154eb4
TT
16637case $ac_config_headers in *"
16638"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
16639esac
39fd3d4f
SJR
16640
16641
16642cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b0cacab0 16643# Files that config.status was made for.
e1052144 16644config_files="$ac_config_files"
d1154eb4 16645config_headers="$ac_config_headers"
e1052144 16646config_commands="$ac_config_commands"
b0cacab0 16647
e1052144 16648_ACEOF
b0cacab0 16649
39fd3d4f 16650cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b0cacab0 16651ac_cs_usage="\
57aa50d4
TT
16652\`$as_me' instantiates files and other configuration actions
16653from templates according to the current configuration. Unless the files
16654and actions are specified as TAGs, all are instantiated by default.
b0cacab0 16655
57aa50d4 16656Usage: $0 [OPTION]... [TAG]...
b0cacab0
TT
16657
16658 -h, --help print this help, then exit
29a5deed 16659 -V, --version print version number and configuration settings, then exit
61ef2474 16660 --config print configuration, then exit
39fd3d4f
SJR
16661 -q, --quiet, --silent
16662 do not print progress messages
b0cacab0
TT
16663 -d, --debug don't remove temporary files
16664 --recheck update $as_me by reconfiguring in the same conditions
39fd3d4f
SJR
16665 --file=FILE[:TEMPLATE]
16666 instantiate the configuration file FILE
d1154eb4
TT
16667 --header=FILE[:TEMPLATE]
16668 instantiate the configuration header FILE
b0cacab0
TT
16669
16670Configuration files:
16671$config_files
16672
d1154eb4
TT
16673Configuration headers:
16674$config_headers
16675
b0cacab0
TT
16676Configuration commands:
16677$config_commands
16678
57aa50d4 16679Report bugs to the package provider."
b0cacab0 16680
e1052144 16681_ACEOF
54445dc2
TT
16682ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
16683ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
39fd3d4f 16684cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
54445dc2 16685ac_cs_config='$ac_cs_config_escaped'
b0cacab0
TT
16686ac_cs_version="\\
16687config.status
54445dc2 16688configured by $0, generated by GNU Autoconf 2.71,
61ef2474 16689 with options \\"\$ac_cs_config\\"
b0cacab0 16690
54445dc2 16691Copyright (C) 2021 Free Software Foundation, Inc.
b0cacab0
TT
16692This config.status script is free software; the Free Software Foundation
16693gives unlimited permission to copy, distribute and modify it."
e1052144
TT
16694
16695ac_pwd='$ac_pwd'
16696srcdir='$srcdir'
16697INSTALL='$INSTALL'
93613951 16698MKDIR_P='$MKDIR_P'
39fd3d4f
SJR
16699AWK='$AWK'
16700test -n "\$AWK" || AWK=awk
b0cacab0
TT
16701_ACEOF
16702
39fd3d4f
SJR
16703cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16704# The default lists apply if the user does not specify any file.
b0cacab0
TT
16705ac_need_defaults=:
16706while test $# != 0
07a0db15 16707do
b0cacab0 16708 case $1 in
d6a4bcb5 16709 --*=?*)
e1052144
TT
16710 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16711 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
b0cacab0
TT
16712 ac_shift=:
16713 ;;
d6a4bcb5
TB
16714 --*=)
16715 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16716 ac_optarg=
16717 ac_shift=:
16718 ;;
e1052144 16719 *)
b0cacab0
TT
16720 ac_option=$1
16721 ac_optarg=$2
16722 ac_shift=shift
16723 ;;
b0cacab0
TT
16724 esac
16725
16726 case $ac_option in
16727 # Handling of the options.
93636bde 16728 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
b0cacab0 16729 ac_cs_recheck=: ;;
e1052144 16730 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
54445dc2 16731 printf "%s\n" "$ac_cs_version"; exit ;;
61ef2474 16732 --config | --confi | --conf | --con | --co | --c )
54445dc2 16733 printf "%s\n" "$ac_cs_config"; exit ;;
e1052144 16734 --debug | --debu | --deb | --de | --d | -d )
b0cacab0
TT
16735 debug=: ;;
16736 --file | --fil | --fi | --f )
16737 $ac_shift
39fd3d4f 16738 case $ac_optarg in
54445dc2 16739 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
d6a4bcb5 16740 '') as_fn_error $? "missing file argument" ;;
39fd3d4f 16741 esac
57aa50d4 16742 as_fn_append CONFIG_FILES " '$ac_optarg'"
b0cacab0 16743 ac_need_defaults=false;;
d1154eb4
TT
16744 --header | --heade | --head | --hea )
16745 $ac_shift
16746 case $ac_optarg in
54445dc2 16747 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
d1154eb4
TT
16748 esac
16749 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16750 ac_need_defaults=false;;
16751 --he | --h)
16752 # Conflict between --help and --header
d6a4bcb5 16753 as_fn_error $? "ambiguous option: \`$1'
d1154eb4
TT
16754Try \`$0 --help' for more information.";;
16755 --help | --hel | -h )
54445dc2 16756 printf "%s\n" "$ac_cs_usage"; exit ;;
b0cacab0
TT
16757 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16758 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16759 ac_cs_silent=: ;;
16760
16761 # This is an error.
d6a4bcb5 16762 -*) as_fn_error $? "unrecognized option: \`$1'
57aa50d4 16763Try \`$0 --help' for more information." ;;
b0cacab0 16764
57aa50d4 16765 *) as_fn_append ac_config_targets " $1"
e1052144 16766 ac_need_defaults=false ;;
b0cacab0 16767
07a0db15 16768 esac
b0cacab0 16769 shift
07a0db15
TT
16770done
16771
b0cacab0
TT
16772ac_configure_extra_args=
16773
16774if $ac_cs_silent; then
16775 exec 6>/dev/null
16776 ac_configure_extra_args="$ac_configure_extra_args --silent"
16777fi
16778
16779_ACEOF
39fd3d4f 16780cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b0cacab0 16781if \$ac_cs_recheck; then
d6a4bcb5 16782 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
39fd3d4f 16783 shift
54445dc2 16784 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
39fd3d4f 16785 CONFIG_SHELL='$SHELL'
e1052144 16786 export CONFIG_SHELL
39fd3d4f 16787 exec "\$@"
b0cacab0 16788fi
07a0db15 16789
b0cacab0 16790_ACEOF
39fd3d4f 16791cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
e1052144
TT
16792exec 5>>config.log
16793{
16794 echo
16795 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16796## Running $as_me. ##
16797_ASBOX
54445dc2 16798 printf "%s\n" "$ac_log"
e1052144 16799} >&5
07a0db15 16800
e1052144 16801_ACEOF
39fd3d4f 16802cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b0cacab0 16803#
e1052144 16804# INIT-COMMANDS
b0cacab0 16805#
b0cacab0 16806# Capture the value of obsolete ALL_LINGUAS because we need it to compute
bdcd5f22
TT
16807 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS.
16808 OBSOLETE_ALL_LINGUAS="$ALL_LINGUAS"
b0cacab0
TT
16809 # Capture the value of LINGUAS because we need it to compute CATALOGS.
16810 LINGUAS="${LINGUAS-%UNSET%}"
16811
16812
16813_ACEOF
16814
39fd3d4f 16815cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
e1052144
TT
16816
16817# Handling of arguments.
b0cacab0
TT
16818for ac_config_target in $ac_config_targets
16819do
e1052144 16820 case $ac_config_target in
d1154eb4 16821 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
93613951 16822 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
e1052144
TT
16823 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
16824
d6a4bcb5 16825 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
b0cacab0
TT
16826 esac
16827done
16828
e1052144 16829
b0cacab0
TT
16830# If the user did not use the arguments to specify the items to instantiate,
16831# then the envvar interface is used. Set only those that are not.
16832# We use the long form for the default assignment because of an extremely
16833# bizarre bug on SunOS 4.1.3.
16834if $ac_need_defaults; then
54445dc2
TT
16835 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
16836 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
16837 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
b0cacab0
TT
16838fi
16839
16840# Have a temporary directory for convenience. Make it in the build tree
e1052144 16841# simply because there is no reason against having it here, and in addition,
b0cacab0 16842# creating and moving files from /tmp can sometimes cause problems.
e1052144
TT
16843# Hook for its removal unless debugging.
16844# Note that there is a small window in which the directory will not be cleaned:
16845# after its creation but before its name has been assigned to `$tmp'.
b0cacab0
TT
16846$debug ||
16847{
d6a4bcb5 16848 tmp= ac_tmp=
e1052144 16849 trap 'exit_status=$?
d6a4bcb5
TB
16850 : "${ac_tmp:=$tmp}"
16851 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
e1052144 16852' 0
57aa50d4 16853 trap 'as_fn_exit 1' 1 2 13 15
b0cacab0 16854}
b0cacab0
TT
16855# Create a (secure) tmp directory for tmp files.
16856
16857{
e1052144 16858 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d6a4bcb5 16859 test -d "$tmp"
b0cacab0
TT
16860} ||
16861{
e1052144
TT
16862 tmp=./conf$$-$RANDOM
16863 (umask 077 && mkdir "$tmp")
d6a4bcb5
TB
16864} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16865ac_tmp=$tmp
b0cacab0 16866
39fd3d4f
SJR
16867# Set up the scripts for CONFIG_FILES section.
16868# No need to generate them if there are no CONFIG_FILES.
16869# This happens for instance with `./config.status config.h'.
e1052144
TT
16870if test -n "$CONFIG_FILES"; then
16871
39fd3d4f
SJR
16872if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
16873 ac_cs_awk_getline=:
16874 ac_cs_awk_pipe_init=
16875 ac_cs_awk_read_file='
16876 while ((getline aline < (F[key])) > 0)
16877 print(aline)
16878 close(F[key])'
16879 ac_cs_awk_pipe_fini=
16880else
16881 ac_cs_awk_getline=false
16882 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
16883 ac_cs_awk_read_file='
16884 print "|#_!!_#|"
16885 print "cat " F[key] " &&"
16886 '$ac_cs_awk_pipe_init
16887 # The final `:' finishes the AND list.
16888 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
16889fi
57aa50d4
TT
16890ac_cr=`echo X | tr X '\015'`
16891# On cygwin, bash can eat \r inside `` if the user requested igncr.
16892# But we know of no other shell where ac_cr would be empty at this
16893# point, so we can use a bashism as a fallback.
16894if test "x$ac_cr" = x; then
16895 eval ac_cr=\$\'\\r\'
16896fi
39fd3d4f
SJR
16897ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16898if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
d6a4bcb5 16899 ac_cs_awk_cr='\\r'
39fd3d4f
SJR
16900else
16901 ac_cs_awk_cr=$ac_cr
16902fi
e1052144 16903
d6a4bcb5 16904echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
39fd3d4f 16905_ACEOF
e1052144 16906
39fd3d4f
SJR
16907# Create commands to substitute file output variables.
16908{
16909 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
d6a4bcb5 16910 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
39fd3d4f
SJR
16911 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
16912 echo "_ACAWK" &&
16913 echo "_ACEOF"
16914} >conf$$files.sh &&
16915. ./conf$$files.sh ||
d6a4bcb5 16916 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
39fd3d4f 16917rm -f conf$$files.sh
e1052144 16918
39fd3d4f
SJR
16919{
16920 echo "cat >conf$$subs.awk <<_ACEOF" &&
16921 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16922 echo "_ACEOF"
16923} >conf$$subs.sh ||
d6a4bcb5
TB
16924 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16925ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
e1052144
TT
16926ac_delim='%!_!# '
16927for ac_last_try in false false false false false :; do
39fd3d4f 16928 . ./conf$$subs.sh ||
d6a4bcb5 16929 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
39fd3d4f
SJR
16930
16931 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16932 if test $ac_delim_n = $ac_delim_num; then
e1052144
TT
16933 break
16934 elif $ac_last_try; then
d6a4bcb5 16935 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
e1052144
TT
16936 else
16937 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21c84b71 16938 fi
e1052144 16939done
39fd3d4f
SJR
16940rm -f conf$$subs.sh
16941
16942cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d6a4bcb5 16943cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
39fd3d4f
SJR
16944_ACEOF
16945sed -n '
16946h
16947s/^/S["/; s/!.*/"]=/
16948p
16949g
16950s/^[^!]*!//
16951:repl
16952t repl
16953s/'"$ac_delim"'$//
16954t delim
16955:nl
16956h
61ef2474 16957s/\(.\{148\}\)..*/\1/
39fd3d4f
SJR
16958t more1
16959s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16960p
16961n
16962b repl
16963:more1
16964s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16965p
16966g
16967s/.\{148\}//
16968t nl
16969:delim
16970h
61ef2474 16971s/\(.\{148\}\)..*/\1/
39fd3d4f
SJR
16972t more2
16973s/["\\]/\\&/g; s/^/"/; s/$/"/
16974p
16975b
16976:more2
16977s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16978p
16979g
16980s/.\{148\}//
16981t delim
16982' <conf$$subs.awk | sed '
16983/^[^""]/{
16984 N
16985 s/\n//
e1052144 16986}
39fd3d4f
SJR
16987' >>$CONFIG_STATUS || ac_write_fail=1
16988rm -f conf$$subs.awk
16989cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16990_ACAWK
d6a4bcb5 16991cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
39fd3d4f
SJR
16992 for (key in S) S_is_set[key] = 1
16993 FS = "\a"
16994 \$ac_cs_awk_pipe_init
e1052144 16995}
39fd3d4f
SJR
16996{
16997 line = $ 0
16998 nfields = split(line, field, "@")
16999 substed = 0
17000 len = length(field[1])
17001 for (i = 2; i < nfields; i++) {
17002 key = field[i]
17003 keylen = length(key)
17004 if (S_is_set[key]) {
17005 value = S[key]
17006 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
17007 len += length(value) + length(field[++i])
17008 substed = 1
17009 } else
17010 len += 1 + keylen
17011 }
17012 if (nfields == 3 && !substed) {
17013 key = field[2]
17014 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
17015 \$ac_cs_awk_read_file
17016 next
17017 }
17018 }
17019 print line
488c75a6 17020}
39fd3d4f
SJR
17021\$ac_cs_awk_pipe_fini
17022_ACAWK
e1052144 17023_ACEOF
39fd3d4f
SJR
17024cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17025if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
17026 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
17027else
17028 cat
d6a4bcb5
TB
17029fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
17030 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
b0cacab0 17031_ACEOF
e1052144 17032
d6a4bcb5
TB
17033# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
17034# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
e1052144
TT
17035# trailing colons and then remove the whole line if VPATH becomes empty
17036# (actually we leave an empty line to preserve line numbers).
17037if test "x$srcdir" = x.; then
d6a4bcb5
TB
17038 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
17039h
17040s///
17041s/^/:/
17042s/[ ]*$/:/
17043s/:\$(srcdir):/:/g
17044s/:\${srcdir}:/:/g
17045s/:@srcdir@:/:/g
17046s/^:*//
e1052144 17047s/:*$//
d6a4bcb5
TB
17048x
17049s/\(=[ ]*\).*/\1/
17050G
17051s/\n//
e1052144
TT
17052s/^[^=]*=[ ]*$//
17053}'
17054fi
17055
39fd3d4f 17056cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
e1052144
TT
17057fi # test -n "$CONFIG_FILES"
17058
d1154eb4
TT
17059# Set up the scripts for CONFIG_HEADERS section.
17060# No need to generate them if there are no CONFIG_HEADERS.
17061# This happens for instance with `./config.status Makefile'.
17062if test -n "$CONFIG_HEADERS"; then
d6a4bcb5 17063cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
d1154eb4
TT
17064BEGIN {
17065_ACEOF
17066
17067# Transform confdefs.h into an awk script `defines.awk', embedded as
17068# here-document in config.status, that substitutes the proper values into
17069# config.h.in to produce config.h.
17070
17071# Create a delimiter string that does not exist in confdefs.h, to ease
17072# handling of long lines.
17073ac_delim='%!_!# '
17074for ac_last_try in false false :; do
d6a4bcb5
TB
17075 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
17076 if test -z "$ac_tt"; then
d1154eb4
TT
17077 break
17078 elif $ac_last_try; then
d6a4bcb5 17079 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
d1154eb4
TT
17080 else
17081 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
17082 fi
17083done
17084
17085# For the awk script, D is an array of macro values keyed by name,
17086# likewise P contains macro parameters if any. Preserve backslash
17087# newline sequences.
17088
17089ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
17090sed -n '
17091s/.\{148\}/&'"$ac_delim"'/g
17092t rset
17093:rset
17094s/^[ ]*#[ ]*define[ ][ ]*/ /
17095t def
17096d
17097:def
17098s/\\$//
17099t bsnl
17100s/["\\]/\\&/g
17101s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17102D["\1"]=" \3"/p
17103s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
17104d
17105:bsnl
17106s/["\\]/\\&/g
17107s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
17108D["\1"]=" \3\\\\\\n"\\/p
17109t cont
17110s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
17111t cont
17112d
17113:cont
17114n
17115s/.\{148\}/&'"$ac_delim"'/g
17116t clear
17117:clear
17118s/\\$//
17119t bsnlc
17120s/["\\]/\\&/g; s/^/"/; s/$/"/p
17121d
17122:bsnlc
17123s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
17124b cont
17125' <confdefs.h | sed '
17126s/'"$ac_delim"'/"\\\
17127"/g' >>$CONFIG_STATUS || ac_write_fail=1
17128
17129cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17130 for (key in D) D_is_set[key] = 1
17131 FS = "\a"
17132}
17133/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
17134 line = \$ 0
17135 split(line, arg, " ")
17136 if (arg[1] == "#") {
17137 defundef = arg[2]
17138 mac1 = arg[3]
17139 } else {
17140 defundef = substr(arg[1], 2)
17141 mac1 = arg[2]
17142 }
17143 split(mac1, mac2, "(") #)
17144 macro = mac2[1]
17145 prefix = substr(line, 1, index(line, defundef) - 1)
17146 if (D_is_set[macro]) {
17147 # Preserve the white space surrounding the "#".
17148 print prefix "define", macro P[macro] D[macro]
17149 next
17150 } else {
17151 # Replace #undef with comments. This is necessary, for example,
17152 # in the case of _POSIX_SOURCE, which is predefined and required
17153 # on some systems where configure will not decide to define it.
17154 if (defundef == "undef") {
17155 print "/*", prefix defundef, macro, "*/"
17156 next
17157 }
17158 }
17159}
17160{ print }
17161_ACAWK
17162_ACEOF
17163cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
d6a4bcb5 17164 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
d1154eb4
TT
17165fi # test -n "$CONFIG_HEADERS"
17166
e1052144 17167
d1154eb4 17168eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
39fd3d4f
SJR
17169shift
17170for ac_tag
e1052144
TT
17171do
17172 case $ac_tag in
17173 :[FHLC]) ac_mode=$ac_tag; continue;;
17174 esac
17175 case $ac_mode$ac_tag in
17176 :[FHL]*:*);;
d6a4bcb5 17177 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
e1052144
TT
17178 :[FH]-) ac_tag=-:-;;
17179 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
17180 esac
17181 ac_save_IFS=$IFS
17182 IFS=:
17183 set x $ac_tag
17184 IFS=$ac_save_IFS
17185 shift
17186 ac_file=$1
17187 shift
17188
17189 case $ac_mode in
17190 :L) ac_source=$1;;
17191 :[FH])
17192 ac_file_inputs=
17193 for ac_f
17194 do
17195 case $ac_f in
d6a4bcb5 17196 -) ac_f="$ac_tmp/stdin";;
e1052144
TT
17197 *) # Look for the file first in the build tree, then in the source tree
17198 # (if the path is not absolute). The absolute path cannot be DOS-style,
17199 # because $ac_f cannot contain `:'.
17200 test -f "$ac_f" ||
17201 case $ac_f in
17202 [\\/$]*) false;;
17203 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
17204 esac ||
d6a4bcb5 17205 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
e1052144 17206 esac
54445dc2 17207 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
57aa50d4 17208 as_fn_append ac_file_inputs " '$ac_f'"
e1052144
TT
17209 done
17210
17211 # Let's still pretend it is `configure' which instantiates (i.e., don't
17212 # use $as_me), people would be surprised to read:
17213 # /* config.h. Generated by config.status. */
39fd3d4f 17214 configure_input='Generated from '`
54445dc2 17215 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
39fd3d4f 17216 `' by configure.'
e1052144
TT
17217 if test x"$ac_file" != x-; then
17218 configure_input="$ac_file. $configure_input"
54445dc2
TT
17219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
17220printf "%s\n" "$as_me: creating $ac_file" >&6;}
e1052144 17221 fi
39fd3d4f
SJR
17222 # Neutralize special characters interpreted by sed in replacement strings.
17223 case $configure_input in #(
17224 *\&* | *\|* | *\\* )
54445dc2 17225 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
39fd3d4f
SJR
17226 sed 's/[\\\\&|]/\\\\&/g'`;; #(
17227 *) ac_sed_conf_input=$configure_input;;
17228 esac
e1052144
TT
17229
17230 case $ac_tag in
d6a4bcb5
TB
17231 *:-:* | *:-) cat >"$ac_tmp/stdin" \
17232 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
e1052144
TT
17233 esac
17234 ;;
b0cacab0
TT
17235 esac
17236
e1052144 17237 ac_dir=`$as_dirname -- "$ac_file" ||
b0cacab0
TT
17238$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17239 X"$ac_file" : 'X\(//\)[^/]' \| \
17240 X"$ac_file" : 'X\(//\)$' \| \
e1052144 17241 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
54445dc2 17242printf "%s\n" X"$ac_file" |
e1052144
TT
17243 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17244 s//\1/
17245 q
17246 }
17247 /^X\(\/\/\)[^/].*/{
17248 s//\1/
17249 q
17250 }
17251 /^X\(\/\/\)$/{
17252 s//\1/
17253 q
17254 }
17255 /^X\(\/\).*/{
17256 s//\1/
17257 q
17258 }
17259 s/.*/./; q'`
57aa50d4 17260 as_dir="$ac_dir"; as_fn_mkdir_p
b0cacab0
TT
17261 ac_builddir=.
17262
e1052144
TT
17263case "$ac_dir" in
17264.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
17265*)
54445dc2 17266 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
e1052144 17267 # A ".." for each directory in $ac_dir_suffix.
54445dc2 17268 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
e1052144
TT
17269 case $ac_top_builddir_sub in
17270 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
17271 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
17272 esac ;;
17273esac
17274ac_abs_top_builddir=$ac_pwd
17275ac_abs_builddir=$ac_pwd$ac_dir_suffix
17276# for backward compatibility:
17277ac_top_builddir=$ac_top_build_prefix
93636bde 17278
b0cacab0 17279case $srcdir in
e1052144 17280 .) # We are building in place.
b0cacab0 17281 ac_srcdir=.
e1052144
TT
17282 ac_top_srcdir=$ac_top_builddir_sub
17283 ac_abs_top_srcdir=$ac_pwd ;;
17284 [\\/]* | ?:[\\/]* ) # Absolute name.
b0cacab0 17285 ac_srcdir=$srcdir$ac_dir_suffix;
e1052144
TT
17286 ac_top_srcdir=$srcdir
17287 ac_abs_top_srcdir=$srcdir ;;
17288 *) # Relative name.
17289 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
17290 ac_top_srcdir=$ac_top_build_prefix$srcdir
17291 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b0cacab0 17292esac
e1052144 17293ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
b0cacab0 17294
b0cacab0 17295
e1052144
TT
17296 case $ac_mode in
17297 :F)
17298 #
17299 # CONFIG_FILE
17300 #
50e1e10f 17301
b0cacab0
TT
17302 case $INSTALL in
17303 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
e1052144 17304 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
50e1e10f 17305 esac
93613951
TT
17306 ac_MKDIR_P=$MKDIR_P
17307 case $MKDIR_P in
17308 [\\/$]* | ?:[\\/]* ) ;;
17309 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
17310 esac
e1052144 17311_ACEOF
50e1e10f 17312
39fd3d4f 17313cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
e1052144
TT
17314# If the template does not know about datarootdir, expand it.
17315# FIXME: This hack should be removed a few years after 2.60.
17316ac_datarootdir_hack=; ac_datarootdir_seen=
39fd3d4f
SJR
17317ac_sed_dataroot='
17318/datarootdir/ {
e1052144
TT
17319 p
17320 q
17321}
17322/@datadir@/p
17323/@docdir@/p
17324/@infodir@/p
17325/@localedir@/p
57aa50d4 17326/@mandir@/p'
39fd3d4f 17327case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
e1052144
TT
17328*datarootdir*) ac_datarootdir_seen=yes;;
17329*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
54445dc2
TT
17330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
17331printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
b0cacab0 17332_ACEOF
39fd3d4f 17333cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
e1052144
TT
17334 ac_datarootdir_hack='
17335 s&@datadir@&$datadir&g
17336 s&@docdir@&$docdir&g
17337 s&@infodir@&$infodir&g
17338 s&@localedir@&$localedir&g
17339 s&@mandir@&$mandir&g
57aa50d4 17340 s&\\\${datarootdir}&$datarootdir&g' ;;
e1052144
TT
17341esac
17342_ACEOF
17343
17344# Neutralize VPATH when `$srcdir' = `.'.
17345# Shell code in configure.ac might set extrasub.
17346# FIXME: do we really want to maintain this feature?
39fd3d4f
SJR
17347cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17348ac_sed_extra="$ac_vpsub
b0cacab0
TT
17349$extrasub
17350_ACEOF
39fd3d4f 17351cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b0cacab0
TT
17352:t
17353/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
39fd3d4f 17354s|@configure_input@|$ac_sed_conf_input|;t t
e1052144 17355s&@top_builddir@&$ac_top_builddir_sub&;t t
39fd3d4f 17356s&@top_build_prefix@&$ac_top_build_prefix&;t t
e1052144
TT
17357s&@srcdir@&$ac_srcdir&;t t
17358s&@abs_srcdir@&$ac_abs_srcdir&;t t
17359s&@top_srcdir@&$ac_top_srcdir&;t t
17360s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
17361s&@builddir@&$ac_builddir&;t t
17362s&@abs_builddir@&$ac_abs_builddir&;t t
17363s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
17364s&@INSTALL@&$ac_INSTALL&;t t
93613951 17365s&@MKDIR_P@&$ac_MKDIR_P&;t t
e1052144 17366$ac_datarootdir_hack
39fd3d4f
SJR
17367"
17368eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
17369if $ac_cs_awk_getline; then
d6a4bcb5 17370 $AWK -f "$ac_tmp/subs.awk"
39fd3d4f 17371else
d6a4bcb5
TB
17372 $AWK -f "$ac_tmp/subs.awk" | $SHELL
17373fi \
17374 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
e1052144
TT
17375
17376test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
d6a4bcb5
TB
17377 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
17378 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
17379 "$ac_tmp/out"`; test -z "$ac_out"; } &&
54445dc2 17380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d6a4bcb5 17381which seems to be undefined. Please make sure it is defined" >&5
54445dc2 17382printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d6a4bcb5 17383which seems to be undefined. Please make sure it is defined" >&2;}
e1052144 17384
d6a4bcb5 17385 rm -f "$ac_tmp/stdin"
e1052144 17386 case $ac_file in
d6a4bcb5
TB
17387 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
17388 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
39fd3d4f 17389 esac \
d6a4bcb5 17390 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
e1052144 17391 ;;
d1154eb4
TT
17392 :H)
17393 #
17394 # CONFIG_HEADER
17395 #
17396 if test x"$ac_file" != x-; then
17397 {
54445dc2 17398 printf "%s\n" "/* $configure_input */" >&1 \
d6a4bcb5
TB
17399 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
17400 } >"$ac_tmp/config.h" \
17401 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
17402 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
54445dc2
TT
17403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
17404printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
d1154eb4
TT
17405 else
17406 rm -f "$ac_file"
d6a4bcb5
TB
17407 mv "$ac_tmp/config.h" "$ac_file" \
17408 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
d1154eb4
TT
17409 fi
17410 else
54445dc2 17411 printf "%s\n" "/* $configure_input */" >&1 \
d6a4bcb5
TB
17412 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
17413 || as_fn_error $? "could not create -" "$LINENO" 5
d1154eb4
TT
17414 fi
17415 ;;
07a0db15 17416
54445dc2
TT
17417 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
17418printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
e1052144
TT
17419 ;;
17420 esac
a04eba3f 17421
b0cacab0 17422
e1052144 17423 case $ac_file$ac_mode in
93613951 17424 "po-directories":C)
a04eba3f
TT
17425 for ac_file in $CONFIG_FILES; do
17426 # Support "outfile[:infile[:infile...]]"
17427 case "$ac_file" in
17428 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
17429 esac
17430 # PO directories have a Makefile.in generated from Makefile.in.in.
17431 case "$ac_file" in */Makefile.in)
17432 # Adjust a relative srcdir.
17433 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
93613951 17434 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
a04eba3f
TT
17435 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
17436 # In autoconf-2.13 it is called $ac_given_srcdir.
17437 # In autoconf-2.50 it is called $srcdir.
17438 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
17439 case "$ac_given_srcdir" in
17440 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
17441 /*) top_srcdir="$ac_given_srcdir" ;;
17442 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
17443 esac
93613951
TT
17444 # Treat a directory as a PO directory if and only if it has a
17445 # POTFILES.in file. This allows packages to have multiple PO
17446 # directories under different names or in different locations.
a04eba3f
TT
17447 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
17448 rm -f "$ac_dir/POTFILES"
17449 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
93613951
TT
17450 gt_tab=`printf '\t'`
17451 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
17452 POMAKEFILEDEPS="POTFILES.in"
17453 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
a04eba3f
TT
17454 # on $ac_dir but don't depend on user-specified configuration
17455 # parameters.
17456 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
17457 # The LINGUAS file contains the set of available languages.
b0cacab0 17458 if test -n "$OBSOLETE_ALL_LINGUAS"; then
a04eba3f
TT
17459 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
17460 fi
bdcd5f22 17461 ALL_LINGUAS=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
b0cacab0
TT
17462 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
17463 else
17464 # The set of available languages was given in configure.in.
bdcd5f22 17465 ALL_LINGUAS=$OBSOLETE_ALL_LINGUAS
a04eba3f 17466 fi
b0cacab0
TT
17467 # Compute POFILES
17468 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
17469 # Compute UPDATEPOFILES
17470 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
17471 # Compute DUMMYPOFILES
17472 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
17473 # Compute GMOFILES
17474 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
a04eba3f
TT
17475 case "$ac_given_srcdir" in
17476 .) srcdirpre= ;;
17477 *) srcdirpre='$(srcdir)/' ;;
17478 esac
17479 POFILES=
a04eba3f
TT
17480 UPDATEPOFILES=
17481 DUMMYPOFILES=
b0cacab0 17482 GMOFILES=
a04eba3f
TT
17483 for lang in $ALL_LINGUAS; do
17484 POFILES="$POFILES $srcdirpre$lang.po"
a04eba3f
TT
17485 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
17486 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
b0cacab0 17487 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
a04eba3f
TT
17488 done
17489 # CATALOGS depends on both $ac_dir and the user's LINGUAS
17490 # environment variable.
17491 INST_LINGUAS=
17492 if test -n "$ALL_LINGUAS"; then
17493 for presentlang in $ALL_LINGUAS; do
17494 useit=no
17495 if test "%UNSET%" != "$LINGUAS"; then
17496 desiredlanguages="$LINGUAS"
17497 else
17498 desiredlanguages="$ALL_LINGUAS"
17499 fi
17500 for desiredlang in $desiredlanguages; do
17501 # Use the presentlang catalog if desiredlang is
17502 # a. equal to presentlang, or
17503 # b. a variant of presentlang (because in this case,
17504 # presentlang can be used as a fallback for messages
17505 # which are not translated in the desiredlang catalog).
17506 case "$desiredlang" in
a30e56b9 17507 "$presentlang"*) useit=yes;;
a04eba3f
TT
17508 esac
17509 done
17510 if test $useit = yes; then
17511 INST_LINGUAS="$INST_LINGUAS $presentlang"
17512 fi
17513 done
17514 fi
17515 CATALOGS=
17516 if test -n "$INST_LINGUAS"; then
17517 for lang in $INST_LINGUAS; do
17518 CATALOGS="$CATALOGS $lang.gmo"
17519 done
17520 fi
17521 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
b0cacab0 17522 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
17523 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
17524 if test -f "$f"; then
17525 case "$f" in
17526 *.orig | *.bak | *~) ;;
17527 *) cat "$f" >> "$ac_dir/Makefile" ;;
17528 esac
17529 fi
17530 done
17531 fi
17532 ;;
a64c9c13 17533 esac
b0cacab0 17534 done ;;
e1052144 17535
b0cacab0 17536 esac
e1052144 17537done # for ac_tag
07a0db15 17538
b0cacab0 17539
57aa50d4 17540as_fn_exit 0
b0cacab0 17541_ACEOF
b0cacab0
TT
17542ac_clean_files=$ac_clean_files_save
17543
39fd3d4f 17544test $ac_write_fail = 0 ||
d6a4bcb5 17545 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
39fd3d4f 17546
b0cacab0
TT
17547
17548# configure is writing to config.log, and then calls config.status.
17549# config.status does its own redirection, appending to config.log.
17550# Unfortunately, on DOS this fails, as config.log is still kept open
17551# by configure, so config.status won't be able to write to it; its
17552# output is simply discarded. So we exec the FD to /dev/null,
17553# effectively closing config.log, so it can be properly (re)opened and
17554# appended to by config.status. When coming back to configure, we
17555# need to make the FD available again.
17556if test "$no_create" != yes; then
17557 ac_cs_success=:
17558 ac_config_status_args=
17559 test "$silent" = yes &&
17560 ac_config_status_args="$ac_config_status_args --quiet"
17561 exec 5>/dev/null
17562 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17563 exec 5>>config.log
17564 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17565 # would make configure fail if this is the last instruction.
d6a4bcb5 17566 $ac_cs_success || as_fn_exit 1
b0cacab0 17567fi
39fd3d4f 17568if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
54445dc2
TT
17569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17570printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
39fd3d4f 17571fi
50e1e10f 17572
ee683a13 17573if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi
54445dc2 17574