]> git.ipfire.org Git - thirdparty/e2fsprogs.git/blame - configure
enable link time optimization, if requested
[thirdparty/e2fsprogs.git] / configure
CommitLineData
50e1e10f 1#! /bin/sh
50e1e10f 2# Guess values for system-dependent variables and create Makefiles.
d6a4bcb5 3# Generated by GNU Autoconf 2.69.
61ef2474 4#
50e1e10f 5#
d6a4bcb5 6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
61ef2474 7#
57aa50d4 8#
50e1e10f
TT
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
57aa50d4
TT
11## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
b0cacab0 14
29a5deed
TT
15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
57aa50d4 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
b0cacab0
TT
18 emulate sh
19 NULLCMD=:
39fd3d4f 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b0cacab0
TT
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
e1052144
TT
23 setopt NO_GLOB_SUBST
24else
57aa50d4
TT
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
29a5deed 30esac
b0cacab0 31fi
29a5deed
TT
32
33
39fd3d4f
SJR
34as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
57aa50d4
TT
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
39fd3d4f
SJR
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
e1052144 54 else
39fd3d4f
SJR
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
57aa50d4 58 case $arg in #(
39fd3d4f
SJR
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
e1052144 67 fi
39fd3d4f
SJR
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
e1052144
TT
79fi
80
b0cacab0 81
e1052144
TT
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
e1052144
TT
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
d6a4bcb5 90as_myself=
57aa50d4 91case $0 in #((
e1052144
TT
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
57aa50d4
TT
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
e1052144
TT
100IFS=$as_save_IFS
101
102 ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
39fd3d4f 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
57aa50d4 111 exit 1
e1052144
TT
112fi
113
57aa50d4
TT
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
e1052144 121done
b0cacab0
TT
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
39fd3d4f
SJR
127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
b0cacab0 131
57aa50d4
TT
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
d6a4bcb5
TB
135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
57aa50d4
TT
160if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
d6a4bcb5
TB
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
57aa50d4
TT
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202else
203 as_have_required=no
204fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211do
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225fi
226fi
227 done;;
228 esac
229 as_found=false
230done
231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234fi; }
235IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
d6a4bcb5
TB
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241# neutralization value for shells without unset; and this also
242# works around shells that cannot unset nonexistent variables.
243# Preserve -v and -x to the replacement shell.
244BASH_ENV=/dev/null
245ENV=/dev/null
246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252esac
253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254# Admittedly, this is quite paranoid, since all the known shells bail
255# out after a failed `exec'.
256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257exit 255
57aa50d4
TT
258fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268$0: including any error possibly output before this
269$0: message. Then install a modern shell, or manually run
270$0: the script under such a shell if you do have one."
271 fi
272 exit 1
273fi
274fi
275fi
276SHELL=${CONFIG_SHELL-/bin/sh}
277export SHELL
278# Unset more variables known to interfere with behavior of common tools.
279CLICOLOR_FORCE= GREP_OPTIONS=
280unset CLICOLOR_FORCE GREP_OPTIONS
281
282## --------------------- ##
283## M4sh Shell Functions. ##
284## --------------------- ##
285# as_fn_unset VAR
286# ---------------
287# Portably unset VAR.
288as_fn_unset ()
289{
290 { eval $1=; unset $1;}
291}
292as_unset=as_fn_unset
293
294# as_fn_set_status STATUS
295# -----------------------
296# Set $? to STATUS, without forking.
297as_fn_set_status ()
298{
299 return $1
300} # as_fn_set_status
301
302# as_fn_exit STATUS
303# -----------------
304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305as_fn_exit ()
306{
307 set +e
308 as_fn_set_status $1
309 exit $1
310} # as_fn_exit
311
312# as_fn_mkdir_p
313# -------------
314# Create "$as_dir" as a directory, including parents if necessary.
315as_fn_mkdir_p ()
316{
317
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334$as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
d6a4bcb5 355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
57aa50d4
TT
356
357
358} # as_fn_mkdir_p
d6a4bcb5
TB
359
360# as_fn_executable_p FILE
361# -----------------------
362# Test if FILE is an executable regular file.
363as_fn_executable_p ()
364{
365 test -f "$1" && test -x "$1"
366} # as_fn_executable_p
57aa50d4
TT
367# as_fn_append VAR VALUE
368# ----------------------
369# Append the text in VALUE to the end of the definition contained in VAR. Take
370# advantage of any shell optimizations that allow amortized linear growth over
371# repeated appends, instead of the typical quadratic growth present in naive
372# implementations.
373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
378else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383fi # as_fn_append
384
385# as_fn_arith ARG...
386# ------------------
387# Perform arithmetic evaluation on the ARGs, and store the result in the
388# global $as_val. Take advantage of shells that can avoid forks. The arguments
389# must be portable across $(()) and expr.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400fi # as_fn_arith
401
402
d6a4bcb5
TB
403# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ----------------------------------------
57aa50d4
TT
405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d6a4bcb5 407# script with STATUS, using 1 if that was 0.
57aa50d4
TT
408as_fn_error ()
409{
d6a4bcb5
TB
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
57aa50d4 414 fi
d6a4bcb5 415 $as_echo "$as_me: error: $2" >&2
57aa50d4
TT
416 as_fn_exit $as_status
417} # as_fn_error
418
e1052144
TT
419if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b0cacab0
TT
421 as_expr=expr
422else
423 as_expr=false
424fi
425
e1052144 426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b0cacab0
TT
427 as_basename=basename
428else
429 as_basename=false
430fi
431
57aa50d4
TT
432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434else
435 as_dirname=false
436fi
b0cacab0 437
e1052144 438as_me=`$as_basename -- "$0" ||
b0cacab0
TT
439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
e1052144 441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
39fd3d4f 442$as_echo X/"$0" |
e1052144
TT
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
b0cacab0 456
57aa50d4
TT
457# Avoid depending upon Character Ranges.
458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461as_cr_digits='0123456789'
462as_cr_alnum=$as_cr_Letters$as_cr_digits
b0cacab0 463
b0cacab0 464
57aa50d4
TT
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
479 N
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
e1052144 487
d6a4bcb5
TB
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
57aa50d4
TT
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
e1052144
TT
498}
499
57aa50d4
TT
500ECHO_C= ECHO_N= ECHO_T=
501case `echo -n x` in #(((((
502-n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
509*)
510 ECHO_N='-n';;
511esac
b0cacab0 512
57aa50d4
TT
513rm -f conf$$ conf$$.exe conf$$.file
514if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
e1052144 519fi
57aa50d4
TT
520if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d6a4bcb5 526 # In both cases, we have to default to `cp -pR'.
57aa50d4 527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d6a4bcb5 528 as_ln_s='cp -pR'
57aa50d4
TT
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
d6a4bcb5 532 as_ln_s='cp -pR'
57aa50d4 533 fi
e1052144 534else
d6a4bcb5 535 as_ln_s='cp -pR'
e1052144 536fi
57aa50d4
TT
537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
b0cacab0 539
57aa50d4
TT
540if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
e1052144
TT
545fi
546
d6a4bcb5
TB
547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
e1052144 549
57aa50d4
TT
550# Sed expression to map a string onto a valid CPP name.
551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
e1052144 552
57aa50d4
TT
553# Sed expression to map a string onto a valid variable name.
554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
e1052144 555
29a5deed 556
61ef2474
TT
557test -n "$DJDIR" || exec 7<&0 </dev/null
558exec 6>&1
b0cacab0
TT
559
560# Name of the host.
d6a4bcb5 561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
b0cacab0
TT
562# so uname gets run too.
563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
50e1e10f 564
b0cacab0
TT
565#
566# Initializations.
567#
50e1e10f 568ac_default_prefix=/usr/local
e1052144 569ac_clean_files=
b0cacab0 570ac_config_libobj_dir=.
e1052144 571LIBOBJS=
b0cacab0
TT
572cross_compiling=no
573subdirs=
574MFLAGS=
575MAKEFLAGS=
b0cacab0 576
b0cacab0
TT
577# Identity of this package.
578PACKAGE_NAME=
579PACKAGE_TARNAME=
580PACKAGE_VERSION=
581PACKAGE_STRING=
582PACKAGE_BUGREPORT=
57aa50d4 583PACKAGE_URL=
b0cacab0
TT
584
585ac_unique_file="version.h"
586# Factoring default headers for most tests.
587ac_includes_default="\
588#include <stdio.h>
29a5deed 589#ifdef HAVE_SYS_TYPES_H
b0cacab0
TT
590# include <sys/types.h>
591#endif
29a5deed 592#ifdef HAVE_SYS_STAT_H
b0cacab0
TT
593# include <sys/stat.h>
594#endif
29a5deed 595#ifdef STDC_HEADERS
b0cacab0
TT
596# include <stdlib.h>
597# include <stddef.h>
598#else
29a5deed 599# ifdef HAVE_STDLIB_H
b0cacab0
TT
600# include <stdlib.h>
601# endif
602#endif
29a5deed
TT
603#ifdef HAVE_STRING_H
604# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
b0cacab0
TT
605# include <memory.h>
606# endif
607# include <string.h>
608#endif
29a5deed 609#ifdef HAVE_STRINGS_H
b0cacab0
TT
610# include <strings.h>
611#endif
29a5deed 612#ifdef HAVE_INTTYPES_H
b0cacab0 613# include <inttypes.h>
e1052144 614#endif
29a5deed 615#ifdef HAVE_STDINT_H
e1052144 616# include <stdint.h>
b0cacab0 617#endif
29a5deed 618#ifdef HAVE_UNISTD_H
b0cacab0
TT
619# include <unistd.h>
620#endif"
621
93613951 622gt_needs=
61ef2474 623ac_header_list=
93613951
TT
624gl_use_threads_default=
625ac_func_list=
39fd3d4f 626ac_subst_vars='LTLIBOBJS
e1052144 627LIBOBJS
a2df5894
DW
628systemd_system_unit_dir
629have_systemd
630systemd_LIBS
631systemd_CFLAGS
632crond_dir
633have_crond
5ce368f0
DW
634pkg_udev_rules_dir
635have_udev
636udev_LIBS
637udev_CFLAGS
fd1677e8
TT
638LDFLAGS_SHLIB
639CFLAGS_STLIB
640CFLAGS_SHLIB
39fd3d4f
SJR
641BUILD_LDFLAGS
642BUILD_CFLAGS
5b5bd2c2 643MKINSTALLDIRS
d1154eb4 644INCLUDES
39fd3d4f 645DO_TEST_SUITE
fd1677e8 646LDFLAGS_STATIC
39fd3d4f
SJR
647root_sysconfdir
648root_libdir
649root_sbindir
650root_bindir
651root_prefix
5ce368f0 652E2SCRUB_CMT
39fd3d4f
SJR
653UNIX_CMT
654CYGWIN_CMT
655LINUX_CMT
4aece328
DW
656lto_ldflags
657lto_cflags
658have_lto
659gcc_ranlib
660gcc_ar
39fd3d4f
SJR
661UNI_DIFF_OPTS
662SEM_INIT_LIB
81cbf1ef
DW
663FUSE_CMT
664FUSE_LIB
c94da047 665CLOCK_GETTIME_LIB
b291c11f 666MAGIC_LIB
39fd3d4f 667SOCKET_LIB
2dd680f3 668SIZEOF_TIME_T
cc68e8a6 669SIZEOF_OFF_T
39fd3d4f
SJR
670SIZEOF_LONG_LONG
671SIZEOF_LONG
672SIZEOF_INT
673SIZEOF_SHORT
ec3a69bb 674DD
39fd3d4f
SJR
675BUILD_CC
676MAKEINFO
677STRIP
678AR
679LDCONFIG
680PERL
39fd3d4f
SJR
681AWK
682CHMOD
683RM
684CP
685MV
686LN_S
687LN
bcb915b0
TT
688ifNotGNUmake
689ifGNUmake
39fd3d4f
SJR
690BINARY_TYPE
691POSUB
692LTLIBINTL
693LIBINTL
694INTLLIBS
695INTL_LIBTOOL_SUFFIX_PREFIX
696INTLOBJS
697GENCAT
698INSTOBJEXT
699DATADIRNAME
700CATOBJEXT
701USE_INCLUDED_LIBINTL
702BUILD_INCLUDED_LIBINTL
93613951
TT
703LTLIBC
704WINDRES
705WOE32
706WOE32DLL
39fd3d4f 707HAVE_WPRINTF
93613951 708HAVE_NEWLOCALE
39fd3d4f
SJR
709HAVE_SNPRINTF
710HAVE_ASPRINTF
711HAVE_POSIX_PRINTF
93613951
TT
712INTL_DEFAULT_VERBOSITY
713INTL_MACOSX_LIBS
39fd3d4f 714GLIBC21
93613951
TT
715INTLBISON
716LTLIBICONV
717LIBICONV
718LTLIBMULTITHREAD
719LIBMULTITHREAD
720LTLIBTHREAD
721LIBTHREAD
722LIBPTH_PREFIX
723LTLIBPTH
724LIBPTH
725PRI_MACROS_BROKEN
39fd3d4f 726ALLOCA
93613951
TT
727HAVE_VISIBILITY
728CFLAG_VISIBILITY
39fd3d4f 729RANLIB
93613951
TT
730GLIBC2
731XGETTEXT_EXTRA_OPTIONS
39fd3d4f 732MSGMERGE
93613951 733XGETTEXT_015
39fd3d4f 734XGETTEXT
93613951
TT
735GMSGFMT_015
736MSGFMT_015
39fd3d4f
SJR
737GMSGFMT
738MSGFMT
93613951 739GETTEXT_MACRO_VERSION
39fd3d4f 740USE_NLS
93613951
TT
741SED
742MKDIR_P
39fd3d4f
SJR
743INSTALL_DATA
744INSTALL_SCRIPT
745INSTALL_PROGRAM
746SET_MAKE
747VERSION
748PACKAGE
749GETTEXT_PACKAGE
749f0712
TT
750TDB_MAN_COMMENT
751TDB_CMT
39fd3d4f
SJR
752UUIDD_CMT
753E2INITRD_MAN
754E2INITRD_PROG
755FSCK_MAN
756FSCK_PROG
8d9c50c5 757DEFRAG_CMT
39fd3d4f
SJR
758RESIZER_CMT
759IMAGER_CMT
760DEBUGFS_CMT
761BLKID_CMT
762DEPPROFILED_LIBBLKID
763PROFILED_LIBBLKID
764DEPSTATIC_LIBBLKID
765STATIC_LIBBLKID
766DEPLIBBLKID
767LIBBLKID
768UUID_CMT
769DEPPROFILED_LIBUUID
770PROFILED_LIBUUID
771DEPSTATIC_LIBUUID
772STATIC_LIBUUID
773DEPLIBUUID
774LIBUUID
93613951
TT
775PKG_CONFIG_LIBDIR
776PKG_CONFIG_PATH
39fd3d4f
SJR
777PKG_CONFIG
778TEST_IO_CMT
779PRIVATE_LIBS_CMT
780LDFLAG_DYNAMIC
781PROFILED_LIB_EXT
782STATIC_LIB_EXT
783LIB_EXT
39fd3d4f
SJR
784PROFILE_CMT
785BSDLIB_CMT
786ELF_CMT
c13351f6 787Q
c1986ecb 788ES
c13351f6 789E
5aa6c3f6 790LINK_BUILD_FLAGS
183c73b0 791SYMLINK_RELATIVE
5aa6c3f6 792LINK_INSTALL_FLAGS
39fd3d4f 793MAINTAINER_CMT
93613951
TT
794EGREP
795GREP
39fd3d4f 796CPP
9b3018a8 797RDYNAMIC
57aa50d4 798DLOPEN_LIB
39fd3d4f
SJR
799OBJEXT
800EXEEXT
801ac_ct_CC
802CPPFLAGS
803LDFLAGS
804CFLAGS
805CC
806host_os
807host_vendor
808host_cpu
809host
810build_os
811build_vendor
812build_cpu
813build
5ce368f0 814E2FSPROGS_DATE
39fd3d4f
SJR
815E2FSPROGS_PKGVER
816E2FSPROGS_VERSION
817E2FSPROGS_DAY
818E2FSPROGS_MONTH
819E2FSPROGS_YEAR
820target_alias
821host_alias
822build_alias
823LIBS
824ECHO_T
825ECHO_N
826ECHO_C
827DEFS
828mandir
829localedir
830libdir
831psdir
832pdfdir
833dvidir
834htmldir
835infodir
836docdir
837oldincludedir
838includedir
2ab53829 839runstatedir
39fd3d4f
SJR
840localstatedir
841sharedstatedir
842sysconfdir
843datadir
844datarootdir
845libexecdir
846sbindir
847bindir
848program_transform_name
849prefix
850exec_prefix
57aa50d4 851PACKAGE_URL
39fd3d4f
SJR
852PACKAGE_BUGREPORT
853PACKAGE_STRING
854PACKAGE_VERSION
855PACKAGE_TARNAME
856PACKAGE_NAME
857PATH_SEPARATOR
858SHELL'
e1052144
TT
859ac_subst_files='MCONFIG
860MAKEFILE_ELF
861MAKEFILE_BSDLIB
862MAKEFILE_PROFILE
e1052144 863MAKEFILE_LIBRARY
488c75a6
TT
864ASM_TYPES_HEADER
865PUBLIC_CONFIG_HEADER'
39fd3d4f
SJR
866ac_user_opts='
867enable_option_checking
868with_diet_libc
869with_cc
39fd3d4f
SJR
870with_ccopts
871with_ldopts
872with_root_prefix
873enable_maintainer_mode
5aa6c3f6 874enable_symlink_install
91d11da1 875enable_relative_symlinks
183c73b0 876enable_symlink_relative_symlinks
5aa6c3f6 877enable_symlink_build
c13351f6 878enable_verbose_makecmds
39fd3d4f
SJR
879enable_elf_shlibs
880enable_bsd_shlibs
881enable_profile
fedfb27f 882enable_gcov
fd1677e8 883enable_hardening
39fd3d4f
SJR
884enable_jbd_debug
885enable_blkid_debug
886enable_testio_debug
887enable_libuuid
888enable_libblkid
3df6014a 889enable_backtrace
39fd3d4f
SJR
890enable_debugfs
891enable_imager
892enable_resizer
8d9c50c5 893enable_defrag
39fd3d4f
SJR
894enable_fsck
895enable_e2initrd_helper
896enable_tls
897enable_uuidd
d6a4bcb5 898enable_mmp
749f0712 899enable_tdb
1625bf42
TB
900enable_bmap_stats
901enable_bmap_stats_ops
39fd3d4f 902enable_nls
93613951 903enable_threads
39fd3d4f
SJR
904with_gnu_ld
905enable_rpath
93613951 906with_libpth_prefix
39fd3d4f
SJR
907with_libiconv_prefix
908with_included_gettext
909with_libintl_prefix
81cbf1ef 910enable_fuse2fs
4aece328 911enable_lto
55e00a25 912with_multiarch
5ce368f0 913with_udev_rules_dir
a2df5894
DW
914with_crond_dir
915with_systemd_unit_dir
39fd3d4f 916'
e1052144
TT
917 ac_precious_vars='build_alias
918host_alias
919target_alias
920CC
921CFLAGS
922LDFLAGS
29a5deed 923LIBS
e1052144 924CPPFLAGS
14b596d4 925CPP
93613951
TT
926PKG_CONFIG
927PKG_CONFIG_PATH
5ce368f0
DW
928PKG_CONFIG_LIBDIR
929udev_CFLAGS
a2df5894
DW
930udev_LIBS
931systemd_CFLAGS
932systemd_LIBS'
e1052144 933
50e1e10f
TT
934
935# Initialize some variables set by options.
b0cacab0
TT
936ac_init_help=
937ac_init_version=false
39fd3d4f
SJR
938ac_unrecognized_opts=
939ac_unrecognized_sep=
50e1e10f
TT
940# The variables have the same names as the options, with
941# dashes changed to underlines.
b0cacab0 942cache_file=/dev/null
50e1e10f 943exec_prefix=NONE
50e1e10f 944no_create=
50e1e10f
TT
945no_recursion=
946prefix=NONE
947program_prefix=NONE
948program_suffix=NONE
949program_transform_name=s,x,x,
950silent=
951site=
952srcdir=
50e1e10f
TT
953verbose=
954x_includes=NONE
955x_libraries=NONE
b0cacab0
TT
956
957# Installation directory options.
958# These are left unexpanded so users can "make install exec_prefix=/foo"
959# and all the variables that are supposed to be based on exec_prefix
960# by default will actually change.
961# Use braces instead of parens because sh, perl, etc. also accept them.
e1052144 962# (The list follows the same order as the GNU Coding Standards.)
21c84b71
TT
963bindir='${exec_prefix}/bin'
964sbindir='${exec_prefix}/sbin'
965libexecdir='${exec_prefix}/libexec'
e1052144
TT
966datarootdir='${prefix}/share'
967datadir='${datarootdir}'
21c84b71
TT
968sysconfdir='${prefix}/etc'
969sharedstatedir='${prefix}/com'
970localstatedir='${prefix}/var'
2ab53829 971runstatedir='${localstatedir}/run'
21c84b71
TT
972includedir='${prefix}/include'
973oldincludedir='/usr/include'
e1052144
TT
974docdir='${datarootdir}/doc/${PACKAGE}'
975infodir='${datarootdir}/info'
976htmldir='${docdir}'
977dvidir='${docdir}'
978pdfdir='${docdir}'
979psdir='${docdir}'
980libdir='${exec_prefix}/lib'
981localedir='${datarootdir}/locale'
982mandir='${datarootdir}/man'
50e1e10f 983
50e1e10f 984ac_prev=
e1052144 985ac_dashdash=
50e1e10f
TT
986for ac_option
987do
50e1e10f
TT
988 # If the previous option needs an argument, assign it.
989 if test -n "$ac_prev"; then
e1052144 990 eval $ac_prev=\$ac_option
50e1e10f
TT
991 ac_prev=
992 continue
993 fi
994
e1052144 995 case $ac_option in
d6a4bcb5
TB
996 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
997 *=) ac_optarg= ;;
998 *) ac_optarg=yes ;;
e1052144 999 esac
50e1e10f
TT
1000
1001 # Accept the important Cygnus configure options, so we can diagnose typos.
1002
e1052144
TT
1003 case $ac_dashdash$ac_option in
1004 --)
1005 ac_dashdash=yes ;;
50e1e10f 1006
21c84b71
TT
1007 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1008 ac_prev=bindir ;;
1009 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
b0cacab0 1010 bindir=$ac_optarg ;;
21c84b71
TT
1011
1012 -build | --build | --buil | --bui | --bu)
b0cacab0 1013 ac_prev=build_alias ;;
21c84b71 1014 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
b0cacab0 1015 build_alias=$ac_optarg ;;
50e1e10f
TT
1016
1017 -cache-file | --cache-file | --cache-fil | --cache-fi \
1018 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1019 ac_prev=cache_file ;;
1020 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1021 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
b0cacab0
TT
1022 cache_file=$ac_optarg ;;
1023
1024 --config-cache | -C)
1025 cache_file=config.cache ;;
50e1e10f 1026
e1052144 1027 -datadir | --datadir | --datadi | --datad)
21c84b71 1028 ac_prev=datadir ;;
e1052144 1029 -datadir=* | --datadir=* | --datadi=* | --datad=*)
b0cacab0 1030 datadir=$ac_optarg ;;
21c84b71 1031
e1052144
TT
1032 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1033 | --dataroo | --dataro | --datar)
1034 ac_prev=datarootdir ;;
1035 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1036 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1037 datarootdir=$ac_optarg ;;
1038
50e1e10f 1039 -disable-* | --disable-*)
39fd3d4f 1040 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
50e1e10f 1041 # Reject names that are not valid shell variable names.
39fd3d4f 1042 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d6a4bcb5 1043 as_fn_error $? "invalid feature name: $ac_useropt"
39fd3d4f
SJR
1044 ac_useropt_orig=$ac_useropt
1045 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1046 case $ac_user_opts in
1047 *"
1048"enable_$ac_useropt"
1049"*) ;;
1050 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1051 ac_unrecognized_sep=', ';;
1052 esac
1053 eval enable_$ac_useropt=no ;;
e1052144
TT
1054
1055 -docdir | --docdir | --docdi | --doc | --do)
1056 ac_prev=docdir ;;
1057 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1058 docdir=$ac_optarg ;;
1059
1060 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1061 ac_prev=dvidir ;;
1062 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1063 dvidir=$ac_optarg ;;
50e1e10f
TT
1064
1065 -enable-* | --enable-*)
39fd3d4f 1066 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
50e1e10f 1067 # Reject names that are not valid shell variable names.
39fd3d4f 1068 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d6a4bcb5 1069 as_fn_error $? "invalid feature name: $ac_useropt"
39fd3d4f
SJR
1070 ac_useropt_orig=$ac_useropt
1071 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1072 case $ac_user_opts in
1073 *"
1074"enable_$ac_useropt"
1075"*) ;;
1076 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1077 ac_unrecognized_sep=', ';;
1078 esac
1079 eval enable_$ac_useropt=\$ac_optarg ;;
50e1e10f
TT
1080
1081 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1082 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1083 | --exec | --exe | --ex)
1084 ac_prev=exec_prefix ;;
1085 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1086 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1087 | --exec=* | --exe=* | --ex=*)
b0cacab0 1088 exec_prefix=$ac_optarg ;;
50e1e10f
TT
1089
1090 -gas | --gas | --ga | --g)
1091 # Obsolete; use --with-gas.
1092 with_gas=yes ;;
1093
b0cacab0
TT
1094 -help | --help | --hel | --he | -h)
1095 ac_init_help=long ;;
1096 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1097 ac_init_help=recursive ;;
1098 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1099 ac_init_help=short ;;
50e1e10f
TT
1100
1101 -host | --host | --hos | --ho)
b0cacab0 1102 ac_prev=host_alias ;;
50e1e10f 1103 -host=* | --host=* | --hos=* | --ho=*)
b0cacab0 1104 host_alias=$ac_optarg ;;
50e1e10f 1105
e1052144
TT
1106 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1107 ac_prev=htmldir ;;
1108 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1109 | --ht=*)
1110 htmldir=$ac_optarg ;;
1111
21c84b71
TT
1112 -includedir | --includedir | --includedi | --included | --include \
1113 | --includ | --inclu | --incl | --inc)
1114 ac_prev=includedir ;;
1115 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1116 | --includ=* | --inclu=* | --incl=* | --inc=*)
b0cacab0 1117 includedir=$ac_optarg ;;
21c84b71
TT
1118
1119 -infodir | --infodir | --infodi | --infod | --info | --inf)
1120 ac_prev=infodir ;;
1121 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
b0cacab0 1122 infodir=$ac_optarg ;;
21c84b71
TT
1123
1124 -libdir | --libdir | --libdi | --libd)
1125 ac_prev=libdir ;;
1126 -libdir=* | --libdir=* | --libdi=* | --libd=*)
b0cacab0 1127 libdir=$ac_optarg ;;
21c84b71
TT
1128
1129 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1130 | --libexe | --libex | --libe)
1131 ac_prev=libexecdir ;;
1132 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1133 | --libexe=* | --libex=* | --libe=*)
b0cacab0 1134 libexecdir=$ac_optarg ;;
21c84b71 1135
e1052144
TT
1136 -localedir | --localedir | --localedi | --localed | --locale)
1137 ac_prev=localedir ;;
1138 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1139 localedir=$ac_optarg ;;
1140
21c84b71 1141 -localstatedir | --localstatedir | --localstatedi | --localstated \
e1052144 1142 | --localstate | --localstat | --localsta | --localst | --locals)
21c84b71
TT
1143 ac_prev=localstatedir ;;
1144 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
e1052144 1145 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
b0cacab0 1146 localstatedir=$ac_optarg ;;
21c84b71
TT
1147
1148 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1149 ac_prev=mandir ;;
1150 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
b0cacab0 1151 mandir=$ac_optarg ;;
21c84b71 1152
50e1e10f
TT
1153 -nfp | --nfp | --nf)
1154 # Obsolete; use --without-fp.
1155 with_fp=no ;;
1156
1157 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
b0cacab0 1158 | --no-cr | --no-c | -n)
50e1e10f
TT
1159 no_create=yes ;;
1160
1161 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1162 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1163 no_recursion=yes ;;
1164
21c84b71
TT
1165 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1166 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1167 | --oldin | --oldi | --old | --ol | --o)
1168 ac_prev=oldincludedir ;;
1169 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1170 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1171 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
b0cacab0 1172 oldincludedir=$ac_optarg ;;
21c84b71 1173
50e1e10f
TT
1174 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1175 ac_prev=prefix ;;
1176 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
b0cacab0 1177 prefix=$ac_optarg ;;
50e1e10f
TT
1178
1179 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1180 | --program-pre | --program-pr | --program-p)
1181 ac_prev=program_prefix ;;
1182 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1183 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
b0cacab0 1184 program_prefix=$ac_optarg ;;
50e1e10f
TT
1185
1186 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1187 | --program-suf | --program-su | --program-s)
1188 ac_prev=program_suffix ;;
1189 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1190 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
b0cacab0 1191 program_suffix=$ac_optarg ;;
50e1e10f
TT
1192
1193 -program-transform-name | --program-transform-name \
1194 | --program-transform-nam | --program-transform-na \
1195 | --program-transform-n | --program-transform- \
1196 | --program-transform | --program-transfor \
1197 | --program-transfo | --program-transf \
1198 | --program-trans | --program-tran \
1199 | --progr-tra | --program-tr | --program-t)
1200 ac_prev=program_transform_name ;;
1201 -program-transform-name=* | --program-transform-name=* \
1202 | --program-transform-nam=* | --program-transform-na=* \
1203 | --program-transform-n=* | --program-transform-=* \
1204 | --program-transform=* | --program-transfor=* \
1205 | --program-transfo=* | --program-transf=* \
1206 | --program-trans=* | --program-tran=* \
1207 | --progr-tra=* | --program-tr=* | --program-t=*)
b0cacab0 1208 program_transform_name=$ac_optarg ;;
50e1e10f 1209
e1052144
TT
1210 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1211 ac_prev=pdfdir ;;
1212 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1213 pdfdir=$ac_optarg ;;
1214
1215 -psdir | --psdir | --psdi | --psd | --ps)
1216 ac_prev=psdir ;;
1217 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1218 psdir=$ac_optarg ;;
1219
50e1e10f
TT
1220 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1221 | -silent | --silent | --silen | --sile | --sil)
1222 silent=yes ;;
1223
2ab53829
TT
1224 -runstatedir | --runstatedir | --runstatedi | --runstated \
1225 | --runstate | --runstat | --runsta | --runst | --runs \
1226 | --run | --ru | --r)
1227 ac_prev=runstatedir ;;
1228 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1229 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1230 | --run=* | --ru=* | --r=*)
1231 runstatedir=$ac_optarg ;;
1232
21c84b71
TT
1233 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1234 ac_prev=sbindir ;;
1235 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1236 | --sbi=* | --sb=*)
b0cacab0 1237 sbindir=$ac_optarg ;;
21c84b71
TT
1238
1239 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1240 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1241 | --sharedst | --shareds | --shared | --share | --shar \
1242 | --sha | --sh)
1243 ac_prev=sharedstatedir ;;
1244 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1245 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1246 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1247 | --sha=* | --sh=*)
b0cacab0 1248 sharedstatedir=$ac_optarg ;;
21c84b71 1249
50e1e10f
TT
1250 -site | --site | --sit)
1251 ac_prev=site ;;
1252 -site=* | --site=* | --sit=*)
b0cacab0 1253 site=$ac_optarg ;;
50e1e10f
TT
1254
1255 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1256 ac_prev=srcdir ;;
1257 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
b0cacab0 1258 srcdir=$ac_optarg ;;
50e1e10f 1259
21c84b71
TT
1260 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1261 | --syscon | --sysco | --sysc | --sys | --sy)
1262 ac_prev=sysconfdir ;;
1263 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1264 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
b0cacab0 1265 sysconfdir=$ac_optarg ;;
21c84b71 1266
50e1e10f 1267 -target | --target | --targe | --targ | --tar | --ta | --t)
b0cacab0 1268 ac_prev=target_alias ;;
50e1e10f 1269 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
b0cacab0 1270 target_alias=$ac_optarg ;;
50e1e10f
TT
1271
1272 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1273 verbose=yes ;;
1274
b0cacab0
TT
1275 -version | --version | --versio | --versi | --vers | -V)
1276 ac_init_version=: ;;
50e1e10f
TT
1277
1278 -with-* | --with-*)
39fd3d4f 1279 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
50e1e10f 1280 # Reject names that are not valid shell variable names.
39fd3d4f 1281 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d6a4bcb5 1282 as_fn_error $? "invalid package name: $ac_useropt"
39fd3d4f
SJR
1283 ac_useropt_orig=$ac_useropt
1284 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1285 case $ac_user_opts in
1286 *"
1287"with_$ac_useropt"
1288"*) ;;
1289 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1290 ac_unrecognized_sep=', ';;
1291 esac
1292 eval with_$ac_useropt=\$ac_optarg ;;
50e1e10f
TT
1293
1294 -without-* | --without-*)
39fd3d4f 1295 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
50e1e10f 1296 # Reject names that are not valid shell variable names.
39fd3d4f 1297 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
d6a4bcb5 1298 as_fn_error $? "invalid package name: $ac_useropt"
39fd3d4f
SJR
1299 ac_useropt_orig=$ac_useropt
1300 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1301 case $ac_user_opts in
1302 *"
1303"with_$ac_useropt"
1304"*) ;;
1305 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1306 ac_unrecognized_sep=', ';;
1307 esac
1308 eval with_$ac_useropt=no ;;
50e1e10f
TT
1309
1310 --x)
1311 # Obsolete; use --with-x.
1312 with_x=yes ;;
1313
1314 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1315 | --x-incl | --x-inc | --x-in | --x-i)
1316 ac_prev=x_includes ;;
1317 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1318 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
b0cacab0 1319 x_includes=$ac_optarg ;;
50e1e10f
TT
1320
1321 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1322 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1323 ac_prev=x_libraries ;;
1324 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1325 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
b0cacab0 1326 x_libraries=$ac_optarg ;;
50e1e10f 1327
d6a4bcb5
TB
1328 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1329Try \`$0 --help' for more information"
50e1e10f
TT
1330 ;;
1331
b0cacab0
TT
1332 *=*)
1333 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1334 # Reject names that are not valid shell variable names.
57aa50d4
TT
1335 case $ac_envvar in #(
1336 '' | [0-9]* | *[!_$as_cr_alnum]* )
d6a4bcb5 1337 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
57aa50d4 1338 esac
e1052144 1339 eval $ac_envvar=\$ac_optarg
b0cacab0
TT
1340 export $ac_envvar ;;
1341
21c84b71 1342 *)
b0cacab0 1343 # FIXME: should be removed in autoconf 3.0.
39fd3d4f 1344 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
b0cacab0 1345 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
39fd3d4f 1346 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
d6a4bcb5 1347 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
50e1e10f
TT
1348 ;;
1349
1350 esac
1351done
1352
1353if test -n "$ac_prev"; then
b0cacab0 1354 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
d6a4bcb5 1355 as_fn_error $? "missing argument to $ac_option"
50e1e10f 1356fi
50e1e10f 1357
39fd3d4f
SJR
1358if test -n "$ac_unrecognized_opts"; then
1359 case $enable_option_checking in
1360 no) ;;
d6a4bcb5 1361 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
39fd3d4f
SJR
1362 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1363 esac
1364fi
1365
1366# Check all directory arguments for consistency.
e1052144
TT
1367for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1368 datadir sysconfdir sharedstatedir localstatedir includedir \
1369 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2ab53829 1370 libdir localedir mandir runstatedir
50e1e10f 1371do
e1052144 1372 eval ac_val=\$$ac_var
39fd3d4f
SJR
1373 # Remove trailing slashes.
1374 case $ac_val in
1375 */ )
1376 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1377 eval $ac_var=\$ac_val;;
1378 esac
1379 # Be sure to have absolute directory names.
b0cacab0 1380 case $ac_val in
e1052144
TT
1381 [\\/$]* | ?:[\\/]* ) continue;;
1382 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
50e1e10f 1383 esac
d6a4bcb5 1384 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
50e1e10f
TT
1385done
1386
b0cacab0
TT
1387# There might be people who depend on the old broken behavior: `$host'
1388# used to hold the argument of --host etc.
1389# FIXME: To remove some day.
1390build=$build_alias
1391host=$host_alias
1392target=$target_alias
1393
1394# FIXME: To remove some day.
1395if test "x$host_alias" != x; then
1396 if test "x$build_alias" = x; then
1397 cross_compiling=maybe
b0cacab0
TT
1398 elif test "x$build_alias" != "x$host_alias"; then
1399 cross_compiling=yes
1400 fi
1401fi
50e1e10f 1402
b0cacab0
TT
1403ac_tool_prefix=
1404test -n "$host_alias" && ac_tool_prefix=$host_alias-
1405
1406test "$silent" = yes && exec 6>/dev/null
50e1e10f 1407
50e1e10f 1408
e1052144
TT
1409ac_pwd=`pwd` && test -n "$ac_pwd" &&
1410ac_ls_di=`ls -di .` &&
1411ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
d6a4bcb5 1412 as_fn_error $? "working directory cannot be determined"
e1052144 1413test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
d6a4bcb5 1414 as_fn_error $? "pwd does not report name of working directory"
e1052144
TT
1415
1416
50e1e10f
TT
1417# Find the source files, if location was not specified.
1418if test -z "$srcdir"; then
1419 ac_srcdir_defaulted=yes
e1052144 1420 # Try the directory containing this script, then the parent directory.
39fd3d4f
SJR
1421 ac_confdir=`$as_dirname -- "$as_myself" ||
1422$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1423 X"$as_myself" : 'X\(//\)[^/]' \| \
1424 X"$as_myself" : 'X\(//\)$' \| \
1425 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1426$as_echo X"$as_myself" |
e1052144
TT
1427 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1428 s//\1/
1429 q
1430 }
1431 /^X\(\/\/\)[^/].*/{
1432 s//\1/
1433 q
1434 }
1435 /^X\(\/\/\)$/{
1436 s//\1/
1437 q
1438 }
1439 /^X\(\/\).*/{
1440 s//\1/
1441 q
1442 }
1443 s/.*/./; q'`
50e1e10f 1444 srcdir=$ac_confdir
e1052144 1445 if test ! -r "$srcdir/$ac_unique_file"; then
50e1e10f
TT
1446 srcdir=..
1447 fi
1448else
1449 ac_srcdir_defaulted=no
1450fi
e1052144
TT
1451if test ! -r "$srcdir/$ac_unique_file"; then
1452 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
d6a4bcb5 1453 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
50e1e10f 1454fi
e1052144
TT
1455ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1456ac_abs_confdir=`(
d6a4bcb5 1457 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
e1052144
TT
1458 pwd)`
1459# When building in place, set srcdir=.
1460if test "$ac_abs_confdir" = "$ac_pwd"; then
1461 srcdir=.
1462fi
1463# Remove unnecessary trailing slashes from srcdir.
1464# Double slashes in file names in object file debugging info
1465# mess up M-x gdb in Emacs.
1466case $srcdir in
1467*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1468esac
1469for ac_var in $ac_precious_vars; do
1470 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1471 eval ac_env_${ac_var}_value=\$${ac_var}
1472 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1473 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1474done
b0cacab0
TT
1475
1476#
1477# Report the --help message.
1478#
1479if test "$ac_init_help" = "long"; then
1480 # Omit some internal or obsolete options to make the list less imposing.
1481 # This message is too long to be a string in the A/UX 3.1 sh.
1482 cat <<_ACEOF
1483\`configure' configures this package to adapt to many kinds of systems.
1484
1485Usage: $0 [OPTION]... [VAR=VALUE]...
1486
1487To assign environment variables (e.g., CC, CFLAGS...), specify them as
1488VAR=VALUE. See below for descriptions of some of the useful variables.
1489
1490Defaults for the options are specified in brackets.
1491
1492Configuration:
1493 -h, --help display this help and exit
1494 --help=short display options specific to this package
1495 --help=recursive display the short help of all the included packages
1496 -V, --version display version information and exit
d6a4bcb5 1497 -q, --quiet, --silent do not print \`checking ...' messages
b0cacab0
TT
1498 --cache-file=FILE cache test results in FILE [disabled]
1499 -C, --config-cache alias for \`--cache-file=config.cache'
1500 -n, --no-create do not create output files
1501 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1502
b0cacab0
TT
1503Installation directories:
1504 --prefix=PREFIX install architecture-independent files in PREFIX
39fd3d4f 1505 [$ac_default_prefix]
b0cacab0 1506 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
39fd3d4f 1507 [PREFIX]
b0cacab0
TT
1508
1509By default, \`make install' will install all the files in
1510\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1511an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1512for instance \`--prefix=\$HOME'.
1513
1514For better control, use the options below.
1515
1516Fine tuning of the installation directories:
39fd3d4f
SJR
1517 --bindir=DIR user executables [EPREFIX/bin]
1518 --sbindir=DIR system admin executables [EPREFIX/sbin]
1519 --libexecdir=DIR program executables [EPREFIX/libexec]
1520 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1521 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1522 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2ab53829 1523 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
39fd3d4f
SJR
1524 --libdir=DIR object code libraries [EPREFIX/lib]
1525 --includedir=DIR C header files [PREFIX/include]
1526 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1527 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1528 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1529 --infodir=DIR info documentation [DATAROOTDIR/info]
1530 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1531 --mandir=DIR man documentation [DATAROOTDIR/man]
1532 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1533 --htmldir=DIR html documentation [DOCDIR]
1534 --dvidir=DIR dvi documentation [DOCDIR]
1535 --pdfdir=DIR pdf documentation [DOCDIR]
1536 --psdir=DIR ps documentation [DOCDIR]
b0cacab0
TT
1537_ACEOF
1538
1539 cat <<\_ACEOF
1540
1541System types:
1542 --build=BUILD configure for building on BUILD [guessed]
1543 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1544_ACEOF
1545fi
1546
1547if test -n "$ac_init_help"; then
1548
1549 cat <<\_ACEOF
1550
1551Optional Features:
39fd3d4f 1552 --disable-option-checking ignore unrecognized --enable/--with options
b0cacab0
TT
1553 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1554 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
98919bdb 1555 --enable-maintainer-mode enable makefile rules useful for maintainers
5aa6c3f6 1556 --enable-symlink-install use symlinks when installing instead of hard links
183c73b0 1557 --enable-relative-symlinks use relative symlinks when installing
91d11da1 1558
5aa6c3f6
TT
1559 --enable-symlink-build use symlinks while building instead of hard links
1560 --enable-verbose-makecmds enable verbose make command output
b0cacab0
TT
1561 --enable-elf-shlibs select ELF shared libraries
1562 --enable-bsd-shlibs select BSD shared libraries
1563 --enable-profile build profiling libraries
fedfb27f 1564 --enable-gcov build for coverage testing using gcov
fd1677e8 1565 --enable-hardening build for coverage testing using gcov
b0cacab0
TT
1566 --enable-jbd-debug enable journal debugging
1567 --enable-blkid-debug enable blkid debugging
af773654 1568 --disable-testio-debug disable the use of the test I/O manager for debugging
f5dffb81
TT
1569 --enable-libuuid build and use private uuid library
1570 --enable-libblkid build and use private blkid library
3df6014a 1571 --disable-backtrace disable use backtrace
b0cacab0
TT
1572 --disable-debugfs disable support of debugfs program
1573 --disable-imager disable support of e2image program
1574 --disable-resizer disable support of e2resize program
8d9c50c5 1575 --disable-defrag disable support of e4defrag program
b0cacab0
TT
1576 --enable-fsck build fsck wrapper program
1577 --enable-e2initrd-helper build e2initrd-helper program
3249394d 1578 --disable-tls disable use of thread local support
5610f992 1579 --disable-uuidd disable building the uuid daemon
d6a4bcb5 1580 --disable-mmp disable support mmp, Multi Mount Protection
749f0712 1581 --disable-tdb disable tdb support
1625bf42
TB
1582 --disable-bmap-stats disable collection of bitmap stats.
1583 --enable-bmap-stats-ops enable collection of additional bitmap stats
b0cacab0 1584 --disable-nls do not use Native Language Support
93613951
TT
1585 --enable-threads={posix|solaris|pth|windows}
1586 specify multithreading API
1587 --disable-threads build without multithread safety
b0cacab0 1588 --disable-rpath do not hardcode runtime library paths
f5dffb81 1589 --disable-fuse2fs do not build fuse2fs
4aece328 1590 --enable-lto enable link time optimization
b0cacab0
TT
1591
1592Optional Packages:
1593 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1594 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
3249394d 1595 --with-diet-libc use diet libc
0b5b9f90
TT
1596 --with-cc no longer supported, use CC= instead
1597 --with-ccopts no longer supported, use CFLAGS= instead
1598 --with-ldopts no longer supported, use LDFLAGS= instead
b0cacab0 1599 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
93613951
TT
1600 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1601 --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
1602 --without-libpth-prefix don't search for libpth in includedir and libdir
b0cacab0
TT
1603 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1604 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1605 --with-included-gettext use the GNU gettext library included here
1606 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1607 --without-libintl-prefix don't search for libintl in includedir and libdir
55e00a25 1608 --with-multiarch=ARCH specify the multiarch triplet
5ce368f0
DW
1609 --with-udev-rules-dir[=DIR]
1610 Install udev rules into DIR.
a2df5894
DW
1611 --with-crond-dir[=DIR] Install system crontabs into DIR.
1612 --with-systemd-unit-dir[=DIR]
1613 Install systemd system units into DIR.
b0cacab0
TT
1614
1615Some influential environment variables:
1616 CC C compiler command
1617 CFLAGS C compiler flags
1618 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1619 nonstandard directory <lib dir>
29a5deed 1620 LIBS libraries to pass to the linker, e.g. -l<library>
61ef2474 1621 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
e1052144 1622 you have headers in a nonstandard directory <include dir>
b0cacab0 1623 CPP C preprocessor
14b596d4 1624 PKG_CONFIG path to pkg-config utility
93613951
TT
1625 PKG_CONFIG_PATH
1626 directories to add to pkg-config's search path
1627 PKG_CONFIG_LIBDIR
1628 path overriding pkg-config's built-in search path
5ce368f0
DW
1629 udev_CFLAGS C compiler flags for udev, overriding pkg-config
1630 udev_LIBS linker flags for udev, overriding pkg-config
a2df5894
DW
1631 systemd_CFLAGS
1632 C compiler flags for systemd, overriding pkg-config
1633 systemd_LIBS
1634 linker flags for systemd, overriding pkg-config
b0cacab0
TT
1635
1636Use these variables to override the choices made by `configure' or to help
1637it to find libraries and programs with nonstandard names/locations.
1638
57aa50d4 1639Report bugs to the package provider.
b0cacab0 1640_ACEOF
e1052144 1641ac_status=$?
b0cacab0
TT
1642fi
1643
1644if test "$ac_init_help" = "recursive"; then
1645 # If there are subdirs, report their specific --help.
b0cacab0 1646 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
39fd3d4f
SJR
1647 test -d "$ac_dir" ||
1648 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1649 continue
b0cacab0
TT
1650 ac_builddir=.
1651
e1052144
TT
1652case "$ac_dir" in
1653.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1654*)
39fd3d4f 1655 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
e1052144 1656 # A ".." for each directory in $ac_dir_suffix.
39fd3d4f 1657 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
e1052144
TT
1658 case $ac_top_builddir_sub in
1659 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1660 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1661 esac ;;
1662esac
1663ac_abs_top_builddir=$ac_pwd
1664ac_abs_builddir=$ac_pwd$ac_dir_suffix
1665# for backward compatibility:
1666ac_top_builddir=$ac_top_build_prefix
b0cacab0
TT
1667
1668case $srcdir in
e1052144 1669 .) # We are building in place.
b0cacab0 1670 ac_srcdir=.
e1052144
TT
1671 ac_top_srcdir=$ac_top_builddir_sub
1672 ac_abs_top_srcdir=$ac_pwd ;;
1673 [\\/]* | ?:[\\/]* ) # Absolute name.
b0cacab0 1674 ac_srcdir=$srcdir$ac_dir_suffix;
e1052144
TT
1675 ac_top_srcdir=$srcdir
1676 ac_abs_top_srcdir=$srcdir ;;
1677 *) # Relative name.
1678 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1679 ac_top_srcdir=$ac_top_build_prefix$srcdir
1680 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b0cacab0 1681esac
e1052144
TT
1682ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1683
1684 cd "$ac_dir" || { ac_status=$?; continue; }
1685 # Check for guested configure.
1686 if test -f "$ac_srcdir/configure.gnu"; then
1687 echo &&
1688 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1689 elif test -f "$ac_srcdir/configure"; then
1690 echo &&
1691 $SHELL "$ac_srcdir/configure" --help=recursive
b0cacab0 1692 else
39fd3d4f 1693 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
e1052144
TT
1694 fi || ac_status=$?
1695 cd "$ac_pwd" || { ac_status=$?; break; }
b0cacab0
TT
1696 done
1697fi
1698
e1052144 1699test -n "$ac_init_help" && exit $ac_status
b0cacab0
TT
1700if $ac_init_version; then
1701 cat <<\_ACEOF
e1052144 1702configure
d6a4bcb5 1703generated by GNU Autoconf 2.69
b0cacab0 1704
d6a4bcb5 1705Copyright (C) 2012 Free Software Foundation, Inc.
b0cacab0
TT
1706This configure script is free software; the Free Software Foundation
1707gives unlimited permission to copy, distribute and modify it.
1708_ACEOF
e1052144 1709 exit
b0cacab0 1710fi
b0cacab0 1711
57aa50d4
TT
1712## ------------------------ ##
1713## Autoconf initialization. ##
1714## ------------------------ ##
b0cacab0 1715
57aa50d4
TT
1716# ac_fn_c_try_compile LINENO
1717# --------------------------
1718# Try to compile conftest.$ac_ext, and return whether this succeeded.
1719ac_fn_c_try_compile ()
1720{
1721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722 rm -f conftest.$ac_objext
1723 if { { ac_try="$ac_compile"
1724case "(($ac_try" in
1725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1726 *) ac_try_echo=$ac_try;;
1727esac
1728eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1729$as_echo "$ac_try_echo"; } >&5
1730 (eval "$ac_compile") 2>conftest.err
1731 ac_status=$?
1732 if test -s conftest.err; then
1733 grep -v '^ *+' conftest.err >conftest.er1
1734 cat conftest.er1 >&5
1735 mv -f conftest.er1 conftest.err
1736 fi
1737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1738 test $ac_status = 0; } && {
1739 test -z "$ac_c_werror_flag" ||
1740 test ! -s conftest.err
1741 } && test -s conftest.$ac_objext; then :
1742 ac_retval=0
1743else
1744 $as_echo "$as_me: failed program was:" >&5
1745sed 's/^/| /' conftest.$ac_ext >&5
b0cacab0 1746
57aa50d4
TT
1747 ac_retval=1
1748fi
d6a4bcb5 1749 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
61ef2474 1750 as_fn_set_status $ac_retval
57aa50d4
TT
1751
1752} # ac_fn_c_try_compile
1753
1754# ac_fn_c_try_link LINENO
1755# -----------------------
1756# Try to link conftest.$ac_ext, and return whether this succeeded.
1757ac_fn_c_try_link ()
b0cacab0 1758{
57aa50d4
TT
1759 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1760 rm -f conftest.$ac_objext conftest$ac_exeext
1761 if { { ac_try="$ac_link"
1762case "(($ac_try" in
1763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1764 *) ac_try_echo=$ac_try;;
1765esac
1766eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1767$as_echo "$ac_try_echo"; } >&5
1768 (eval "$ac_link") 2>conftest.err
1769 ac_status=$?
1770 if test -s conftest.err; then
1771 grep -v '^ *+' conftest.err >conftest.er1
1772 cat conftest.er1 >&5
1773 mv -f conftest.er1 conftest.err
1774 fi
1775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1776 test $ac_status = 0; } && {
1777 test -z "$ac_c_werror_flag" ||
1778 test ! -s conftest.err
1779 } && test -s conftest$ac_exeext && {
1780 test "$cross_compiling" = yes ||
d6a4bcb5 1781 test -x conftest$ac_exeext
57aa50d4
TT
1782 }; then :
1783 ac_retval=0
1784else
1785 $as_echo "$as_me: failed program was:" >&5
1786sed 's/^/| /' conftest.$ac_ext >&5
b0cacab0 1787
57aa50d4
TT
1788 ac_retval=1
1789fi
1790 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1791 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1792 # interfere with the next link command; also delete a directory that is
1793 # left behind by Apple's compiler. We do this before executing the actions.
1794 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d6a4bcb5 1795 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
61ef2474 1796 as_fn_set_status $ac_retval
b0cacab0 1797
57aa50d4 1798} # ac_fn_c_try_link
b0cacab0 1799
57aa50d4
TT
1800# ac_fn_c_try_cpp LINENO
1801# ----------------------
1802# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1803ac_fn_c_try_cpp ()
1804{
1805 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1806 if { { ac_try="$ac_cpp conftest.$ac_ext"
1807case "(($ac_try" in
1808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1809 *) ac_try_echo=$ac_try;;
1810esac
1811eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1812$as_echo "$ac_try_echo"; } >&5
1813 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1814 ac_status=$?
1815 if test -s conftest.err; then
1816 grep -v '^ *+' conftest.err >conftest.er1
1817 cat conftest.er1 >&5
1818 mv -f conftest.er1 conftest.err
1819 fi
1820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
d6a4bcb5 1821 test $ac_status = 0; } > conftest.i && {
57aa50d4
TT
1822 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1823 test ! -s conftest.err
1824 }; then :
1825 ac_retval=0
1826else
1827 $as_echo "$as_me: failed program was:" >&5
1828sed 's/^/| /' conftest.$ac_ext >&5
b0cacab0 1829
57aa50d4
TT
1830 ac_retval=1
1831fi
d6a4bcb5 1832 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
61ef2474 1833 as_fn_set_status $ac_retval
b0cacab0 1834
57aa50d4 1835} # ac_fn_c_try_cpp
b0cacab0 1836
93613951
TT
1837# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1838# -------------------------------------------------------
1839# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1840# the include files in INCLUDES and setting the cache variable VAR
1841# accordingly.
1842ac_fn_c_check_header_mongrel ()
1843{
1844 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1845 if eval \${$3+:} false; then :
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1847$as_echo_n "checking for $2... " >&6; }
1848if eval \${$3+:} false; then :
1849 $as_echo_n "(cached) " >&6
1850fi
1851eval ac_res=\$$3
1852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1853$as_echo "$ac_res" >&6; }
1854else
1855 # Is the header compilable?
1856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1857$as_echo_n "checking $2 usability... " >&6; }
1858cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1859/* end confdefs.h. */
1860$4
1861#include <$2>
1862_ACEOF
1863if ac_fn_c_try_compile "$LINENO"; then :
1864 ac_header_compiler=yes
1865else
1866 ac_header_compiler=no
1867fi
1868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1870$as_echo "$ac_header_compiler" >&6; }
1871
1872# Is the header present?
1873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1874$as_echo_n "checking $2 presence... " >&6; }
1875cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1876/* end confdefs.h. */
1877#include <$2>
1878_ACEOF
1879if ac_fn_c_try_cpp "$LINENO"; then :
1880 ac_header_preproc=yes
1881else
1882 ac_header_preproc=no
1883fi
1884rm -f conftest.err conftest.i conftest.$ac_ext
1885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1886$as_echo "$ac_header_preproc" >&6; }
1887
1888# So? What about this header?
1889case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1890 yes:no: )
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1892$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1894$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1895 ;;
1896 no:yes:* )
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1898$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1900$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1902$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1904$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1906$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1907 ;;
1908esac
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1910$as_echo_n "checking for $2... " >&6; }
1911if eval \${$3+:} false; then :
1912 $as_echo_n "(cached) " >&6
1913else
1914 eval "$3=\$ac_header_compiler"
1915fi
1916eval ac_res=\$$3
1917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1918$as_echo "$ac_res" >&6; }
1919fi
1920 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1921
1922} # ac_fn_c_check_header_mongrel
1923
57aa50d4
TT
1924# ac_fn_c_try_run LINENO
1925# ----------------------
1926# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1927# that executables *can* be run.
1928ac_fn_c_try_run ()
1929{
1930 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1931 if { { ac_try="$ac_link"
1932case "(($ac_try" in
1933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1934 *) ac_try_echo=$ac_try;;
1935esac
1936eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1937$as_echo "$ac_try_echo"; } >&5
1938 (eval "$ac_link") 2>&5
1939 ac_status=$?
1940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1941 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1942 { { case "(($ac_try" in
1943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1944 *) ac_try_echo=$ac_try;;
1945esac
1946eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1947$as_echo "$ac_try_echo"; } >&5
1948 (eval "$ac_try") 2>&5
1949 ac_status=$?
1950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1951 test $ac_status = 0; }; }; then :
1952 ac_retval=0
1953else
1954 $as_echo "$as_me: program exited with status $ac_status" >&5
1955 $as_echo "$as_me: failed program was:" >&5
1956sed 's/^/| /' conftest.$ac_ext >&5
b0cacab0 1957
57aa50d4
TT
1958 ac_retval=$ac_status
1959fi
1960 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
d6a4bcb5 1961 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
61ef2474 1962 as_fn_set_status $ac_retval
b0cacab0 1963
57aa50d4 1964} # ac_fn_c_try_run
b0cacab0 1965
93613951
TT
1966# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1967# -------------------------------------------------------
1968# Tests whether HEADER exists and can be compiled using the include files in
1969# INCLUDES, setting the cache variable VAR accordingly.
1970ac_fn_c_check_header_compile ()
1971{
1972 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1974$as_echo_n "checking for $2... " >&6; }
1975if eval \${$3+:} false; then :
1976 $as_echo_n "(cached) " >&6
1977else
1978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1979/* end confdefs.h. */
1980$4
1981#include <$2>
1982_ACEOF
1983if ac_fn_c_try_compile "$LINENO"; then :
1984 eval "$3=yes"
1985else
1986 eval "$3=no"
1987fi
1988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1989fi
1990eval ac_res=\$$3
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1992$as_echo "$ac_res" >&6; }
1993 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1994
1995} # ac_fn_c_check_header_compile
1996
57aa50d4
TT
1997# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1998# -------------------------------------------
1999# Tests whether TYPE exists after having included INCLUDES, setting cache
2000# variable VAR accordingly.
2001ac_fn_c_check_type ()
2002{
2003 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2005$as_echo_n "checking for $2... " >&6; }
d6a4bcb5 2006if eval \${$3+:} false; then :
57aa50d4 2007 $as_echo_n "(cached) " >&6
e1052144 2008else
57aa50d4
TT
2009 eval "$3=no"
2010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2011/* end confdefs.h. */
2012$4
2013int
2014main ()
2015{
2016if (sizeof ($2))
2017 return 0;
2018 ;
2019 return 0;
2020}
2021_ACEOF
2022if ac_fn_c_try_compile "$LINENO"; then :
2023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2024/* end confdefs.h. */
2025$4
2026int
2027main ()
2028{
2029if (sizeof (($2)))
2030 return 0;
2031 ;
2032 return 0;
2033}
2034_ACEOF
2035if ac_fn_c_try_compile "$LINENO"; then :
50e1e10f 2036
50e1e10f 2037else
57aa50d4 2038 eval "$3=yes"
b0cacab0 2039fi
57aa50d4 2040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50e1e10f 2041fi
57aa50d4
TT
2042rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2043fi
2044eval ac_res=\$$3
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2046$as_echo "$ac_res" >&6; }
d6a4bcb5 2047 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
50e1e10f 2048
57aa50d4 2049} # ac_fn_c_check_type
b0cacab0 2050
57aa50d4
TT
2051# ac_fn_c_check_func LINENO FUNC VAR
2052# ----------------------------------
2053# Tests whether FUNC exists, setting the cache variable VAR accordingly
2054ac_fn_c_check_func ()
2055{
2056 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2058$as_echo_n "checking for $2... " >&6; }
d6a4bcb5 2059if eval \${$3+:} false; then :
57aa50d4
TT
2060 $as_echo_n "(cached) " >&6
2061else
2062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2063/* end confdefs.h. */
2064/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2065 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2066#define $2 innocuous_$2
b0cacab0 2067
57aa50d4
TT
2068/* System header to define __stub macros and hopefully few prototypes,
2069 which can conflict with char $2 (); below.
2070 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2071 <limits.h> exists even on freestanding compilers. */
b0cacab0 2072
57aa50d4
TT
2073#ifdef __STDC__
2074# include <limits.h>
2075#else
2076# include <assert.h>
2077#endif
a04eba3f 2078
57aa50d4 2079#undef $2
07a0db15 2080
57aa50d4
TT
2081/* Override any GCC internal prototype to avoid an error.
2082 Use char because int might match the return type of a GCC
2083 builtin and then its argument prototype would still apply. */
2084#ifdef __cplusplus
2085extern "C"
2086#endif
2087char $2 ();
2088/* The GNU C library defines this for functions which it implements
2089 to always fail with ENOSYS. Some functions are actually named
2090 something starting with __ and the normal name is an alias. */
2091#if defined __stub_$2 || defined __stub___$2
2092choke me
2093#endif
74becf3c 2094
57aa50d4
TT
2095int
2096main ()
2097{
2098return $2 ();
2099 ;
2100 return 0;
2101}
2102_ACEOF
2103if ac_fn_c_try_link "$LINENO"; then :
2104 eval "$3=yes"
2105else
2106 eval "$3=no"
2107fi
2108rm -f core conftest.err conftest.$ac_objext \
2109 conftest$ac_exeext conftest.$ac_ext
2110fi
2111eval ac_res=\$$3
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2113$as_echo "$ac_res" >&6; }
d6a4bcb5 2114 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
93636bde 2115
57aa50d4 2116} # ac_fn_c_check_func
93636bde 2117
93613951
TT
2118# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2119# ---------------------------------------------
2120# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
d1154eb4 2121# accordingly.
93613951 2122ac_fn_c_check_decl ()
d1154eb4
TT
2123{
2124 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
93613951
TT
2125 as_decl_name=`echo $2|sed 's/ *(.*//'`
2126 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2128$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
d6a4bcb5 2129if eval \${$3+:} false; then :
d1154eb4 2130 $as_echo_n "(cached) " >&6
d1154eb4 2131else
93613951 2132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d1154eb4
TT
2133/* end confdefs.h. */
2134$4
93613951
TT
2135int
2136main ()
2137{
2138#ifndef $as_decl_name
2139#ifdef __cplusplus
2140 (void) $as_decl_use;
2141#else
2142 (void) $as_decl_name;
2143#endif
2144#endif
2145
2146 ;
2147 return 0;
2148}
d1154eb4
TT
2149_ACEOF
2150if ac_fn_c_try_compile "$LINENO"; then :
93613951 2151 eval "$3=yes"
d1154eb4 2152else
93613951 2153 eval "$3=no"
d1154eb4
TT
2154fi
2155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d1154eb4
TT
2156fi
2157eval ac_res=\$$3
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2159$as_echo "$ac_res" >&6; }
d6a4bcb5 2160 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
d1154eb4 2161
93613951 2162} # ac_fn_c_check_decl
d1154eb4 2163
57aa50d4
TT
2164# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2165# --------------------------------------------
2166# Tries to find the compile-time value of EXPR in a program that includes
2167# INCLUDES, setting VAR accordingly. Returns whether the value could be
2168# computed
2169ac_fn_c_compute_int ()
2170{
2171 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2172 if test "$cross_compiling" = yes; then
2173 # Depending upon the size, compute the lo and hi bounds.
2174cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2175/* end confdefs.h. */
2176$4
2177int
2178main ()
2179{
2180static int test_array [1 - 2 * !(($2) >= 0)];
d6a4bcb5
TB
2181test_array [0] = 0;
2182return test_array [0];
93636bde 2183
57aa50d4
TT
2184 ;
2185 return 0;
2186}
2187_ACEOF
2188if ac_fn_c_try_compile "$LINENO"; then :
2189 ac_lo=0 ac_mid=0
2190 while :; do
2191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2192/* end confdefs.h. */
2193$4
2194int
2195main ()
2196{
2197static int test_array [1 - 2 * !(($2) <= $ac_mid)];
d6a4bcb5
TB
2198test_array [0] = 0;
2199return test_array [0];
93636bde 2200
57aa50d4
TT
2201 ;
2202 return 0;
2203}
2204_ACEOF
2205if ac_fn_c_try_compile "$LINENO"; then :
2206 ac_hi=$ac_mid; break
2207else
2208 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2209 if test $ac_lo -le $ac_mid; then
2210 ac_lo= ac_hi=
2211 break
2212 fi
2213 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
b0cacab0 2214fi
57aa50d4
TT
2215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2216 done
2217else
2218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2219/* end confdefs.h. */
2220$4
2221int
2222main ()
2223{
2224static int test_array [1 - 2 * !(($2) < 0)];
d6a4bcb5
TB
2225test_array [0] = 0;
2226return test_array [0];
e1052144 2227
57aa50d4
TT
2228 ;
2229 return 0;
2230}
2231_ACEOF
2232if ac_fn_c_try_compile "$LINENO"; then :
2233 ac_hi=-1 ac_mid=-1
2234 while :; do
2235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2236/* end confdefs.h. */
2237$4
2238int
2239main ()
2240{
2241static int test_array [1 - 2 * !(($2) >= $ac_mid)];
d6a4bcb5
TB
2242test_array [0] = 0;
2243return test_array [0];
93636bde 2244
57aa50d4
TT
2245 ;
2246 return 0;
2247}
2248_ACEOF
2249if ac_fn_c_try_compile "$LINENO"; then :
2250 ac_lo=$ac_mid; break
93636bde 2251else
57aa50d4
TT
2252 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2253 if test $ac_mid -le $ac_hi; then
2254 ac_lo= ac_hi=
2255 break
2256 fi
2257 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
93636bde 2258fi
57aa50d4
TT
2259rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2260 done
2261else
2262 ac_lo= ac_hi=
2263fi
2264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2265fi
2266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2267# Binary search between lo and hi bounds.
2268while test "x$ac_lo" != "x$ac_hi"; do
2269 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2271/* end confdefs.h. */
2272$4
2273int
2274main ()
2275{
2276static int test_array [1 - 2 * !(($2) <= $ac_mid)];
d6a4bcb5
TB
2277test_array [0] = 0;
2278return test_array [0];
93636bde 2279
57aa50d4
TT
2280 ;
2281 return 0;
2282}
2283_ACEOF
2284if ac_fn_c_try_compile "$LINENO"; then :
2285 ac_hi=$ac_mid
2286else
2287 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2288fi
2289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2290done
2291case $ac_lo in #((
2292?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2293'') ac_retval=1 ;;
927566a3 2294esac
57aa50d4
TT
2295 else
2296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2297/* end confdefs.h. */
2298$4
2299static long int longval () { return $2; }
2300static unsigned long int ulongval () { return $2; }
2301#include <stdio.h>
2302#include <stdlib.h>
2303int
2304main ()
2305{
927566a3 2306
57aa50d4
TT
2307 FILE *f = fopen ("conftest.val", "w");
2308 if (! f)
2309 return 1;
2310 if (($2) < 0)
2311 {
2312 long int i = longval ();
2313 if (i != ($2))
2314 return 1;
2315 fprintf (f, "%ld", i);
2316 }
2317 else
2318 {
2319 unsigned long int i = ulongval ();
2320 if (i != ($2))
2321 return 1;
2322 fprintf (f, "%lu", i);
2323 }
2324 /* Do not output a trailing newline, as this causes \r\n confusion
2325 on some platforms. */
2326 return ferror (f) || fclose (f) != 0;
93636bde 2327
57aa50d4
TT
2328 ;
2329 return 0;
2330}
2331_ACEOF
2332if ac_fn_c_try_run "$LINENO"; then :
2333 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2334else
2335 ac_retval=1
2336fi
2337rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2338 conftest.$ac_objext conftest.beam conftest.$ac_ext
2339rm -f conftest.val
93636bde 2340
57aa50d4 2341 fi
d6a4bcb5 2342 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
61ef2474 2343 as_fn_set_status $ac_retval
927566a3 2344
57aa50d4 2345} # ac_fn_c_compute_int
b0cacab0 2346
57aa50d4
TT
2347# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2348# ----------------------------------------------------
2349# Tries to find if the field MEMBER exists in type AGGR, after including
2350# INCLUDES, setting cache variable VAR accordingly.
2351ac_fn_c_check_member ()
2352{
2353 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2355$as_echo_n "checking for $2.$3... " >&6; }
d6a4bcb5 2356if eval \${$4+:} false; then :
39fd3d4f 2357 $as_echo_n "(cached) " >&6
b0cacab0 2358else
57aa50d4
TT
2359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2360/* end confdefs.h. */
2361$5
2362int
2363main ()
2364{
2365static $2 ac_aggr;
2366if (ac_aggr.$3)
2367return 0;
2368 ;
2369 return 0;
2370}
2371_ACEOF
2372if ac_fn_c_try_compile "$LINENO"; then :
2373 eval "$4=yes"
2374else
2375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2376/* end confdefs.h. */
2377$5
2378int
2379main ()
2380{
2381static $2 ac_aggr;
2382if (sizeof ac_aggr.$3)
2383return 0;
2384 ;
2385 return 0;
2386}
2387_ACEOF
2388if ac_fn_c_try_compile "$LINENO"; then :
2389 eval "$4=yes"
2390else
2391 eval "$4=no"
b0cacab0 2392fi
57aa50d4
TT
2393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2394fi
2395rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2396fi
2397eval ac_res=\$$4
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2399$as_echo "$ac_res" >&6; }
d6a4bcb5 2400 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
e1052144 2401
57aa50d4 2402} # ac_fn_c_check_member
57aa50d4
TT
2403cat >config.log <<_ACEOF
2404This file contains any messages produced by compilers while
2405running configure, to aid debugging if configure makes a mistake.
93636bde 2406
57aa50d4 2407It was created by $as_me, which was
d6a4bcb5 2408generated by GNU Autoconf 2.69. Invocation command line was
07a0db15 2409
57aa50d4 2410 $ $0 $@
e1052144 2411
57aa50d4
TT
2412_ACEOF
2413exec 5>>config.log
2414{
2415cat <<_ASUNAME
2416## --------- ##
2417## Platform. ##
2418## --------- ##
0b5b9f90 2419
57aa50d4
TT
2420hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2421uname -m = `(uname -m) 2>/dev/null || echo unknown`
2422uname -r = `(uname -r) 2>/dev/null || echo unknown`
2423uname -s = `(uname -s) 2>/dev/null || echo unknown`
2424uname -v = `(uname -v) 2>/dev/null || echo unknown`
0b5b9f90 2425
57aa50d4
TT
2426/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2427/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
0b5b9f90 2428
57aa50d4
TT
2429/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2430/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2431/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2432/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2433/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2434/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2435/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
0b5b9f90 2436
57aa50d4 2437_ASUNAME
b0cacab0 2438
b0cacab0
TT
2439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2440for as_dir in $PATH
2441do
2442 IFS=$as_save_IFS
2443 test -z "$as_dir" && as_dir=.
57aa50d4
TT
2444 $as_echo "PATH: $as_dir"
2445 done
e1052144 2446IFS=$as_save_IFS
b0cacab0 2447
57aa50d4 2448} >&5
74becf3c 2449
57aa50d4 2450cat >&5 <<_ACEOF
e1052144 2451
b0cacab0 2452
57aa50d4
TT
2453## ----------- ##
2454## Core tests. ##
2455## ----------- ##
b0cacab0 2456
57aa50d4 2457_ACEOF
b0cacab0 2458
57aa50d4
TT
2459
2460# Keep a trace of the command line.
2461# Strip out --no-create and --no-recursion so they do not pile up.
2462# Strip out --silent because we don't want to record it for future runs.
2463# Also quote any args containing shell meta-characters.
2464# Make two passes to allow for proper duplicate-argument suppression.
2465ac_configure_args=
2466ac_configure_args0=
2467ac_configure_args1=
2468ac_must_keep_next=false
2469for ac_pass in 1 2
b0cacab0 2470do
57aa50d4
TT
2471 for ac_arg
2472 do
2473 case $ac_arg in
2474 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2475 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2476 | -silent | --silent | --silen | --sile | --sil)
2477 continue ;;
2478 *\'*)
2479 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2480 esac
2481 case $ac_pass in
2482 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2483 2)
2484 as_fn_append ac_configure_args1 " '$ac_arg'"
2485 if test $ac_must_keep_next = true; then
2486 ac_must_keep_next=false # Got value, back to normal.
2487 else
2488 case $ac_arg in
2489 *=* | --config-cache | -C | -disable-* | --disable-* \
2490 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2491 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2492 | -with-* | --with-* | -without-* | --without-* | --x)
2493 case "$ac_configure_args0 " in
2494 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2495 esac
2496 ;;
2497 -* ) ac_must_keep_next=true ;;
2498 esac
2499 fi
2500 as_fn_append ac_configure_args " '$ac_arg'"
2501 ;;
2502 esac
2503 done
b0cacab0 2504done
57aa50d4
TT
2505{ ac_configure_args0=; unset ac_configure_args0;}
2506{ ac_configure_args1=; unset ac_configure_args1;}
2507
2508# When interrupted or exit'd, cleanup temporary files, and complete
2509# config.log. We remove comments because anyway the quotes in there
2510# would cause problems or look ugly.
2511# WARNING: Use '\'' to represent an apostrophe within the trap.
2512# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2513trap 'exit_status=$?
2514 # Save into config.log some information that might help in debugging.
2515 {
2516 echo
2517
d6a4bcb5 2518 $as_echo "## ---------------- ##
57aa50d4 2519## Cache variables. ##
d6a4bcb5 2520## ---------------- ##"
57aa50d4
TT
2521 echo
2522 # The following way of writing the cache mishandles newlines in values,
2523(
2524 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2525 eval ac_val=\$$ac_var
2526 case $ac_val in #(
2527 *${as_nl}*)
2528 case $ac_var in #(
2529 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2530$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2531 esac
2532 case $ac_var in #(
2533 _ | IFS | as_nl) ;; #(
2534 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2535 *) { eval $ac_var=; unset $ac_var;} ;;
2536 esac ;;
2537 esac
2538 done
2539 (set) 2>&1 |
2540 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2541 *${as_nl}ac_space=\ *)
2542 sed -n \
2543 "s/'\''/'\''\\\\'\'''\''/g;
2544 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2545 ;; #(
2546 *)
2547 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2548 ;;
2549 esac |
2550 sort
2551)
2552 echo
2553
d6a4bcb5 2554 $as_echo "## ----------------- ##
57aa50d4 2555## Output variables. ##
d6a4bcb5 2556## ----------------- ##"
57aa50d4
TT
2557 echo
2558 for ac_var in $ac_subst_vars
2559 do
2560 eval ac_val=\$$ac_var
2561 case $ac_val in
2562 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2563 esac
2564 $as_echo "$ac_var='\''$ac_val'\''"
2565 done | sort
2566 echo
2567
2568 if test -n "$ac_subst_files"; then
d6a4bcb5 2569 $as_echo "## ------------------- ##
57aa50d4 2570## File substitutions. ##
d6a4bcb5 2571## ------------------- ##"
57aa50d4
TT
2572 echo
2573 for ac_var in $ac_subst_files
2574 do
2575 eval ac_val=\$$ac_var
2576 case $ac_val in
2577 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2578 esac
2579 $as_echo "$ac_var='\''$ac_val'\''"
2580 done | sort
2581 echo
2582 fi
2583
2584 if test -s confdefs.h; then
d6a4bcb5 2585 $as_echo "## ----------- ##
57aa50d4 2586## confdefs.h. ##
d6a4bcb5 2587## ----------- ##"
57aa50d4
TT
2588 echo
2589 cat confdefs.h
2590 echo
2591 fi
2592 test "$ac_signal" != 0 &&
2593 $as_echo "$as_me: caught signal $ac_signal"
2594 $as_echo "$as_me: exit $exit_status"
2595 } >&5
2596 rm -f core *.core core.conftest.* &&
2597 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2598 exit $exit_status
2599' 0
2600for ac_signal in 1 2 13 15; do
2601 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
b0cacab0 2602done
57aa50d4 2603ac_signal=0
b0cacab0 2604
57aa50d4
TT
2605# confdefs.h avoids OS command line length limits that DEFS can exceed.
2606rm -f -r conftest* confdefs.h
b0cacab0 2607
57aa50d4 2608$as_echo "/* confdefs.h */" > confdefs.h
73ae2d4a 2609
57aa50d4
TT
2610# Predefined preprocessor variables.
2611
2612cat >>confdefs.h <<_ACEOF
2613#define PACKAGE_NAME "$PACKAGE_NAME"
2614_ACEOF
2615
2616cat >>confdefs.h <<_ACEOF
2617#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2618_ACEOF
2619
2620cat >>confdefs.h <<_ACEOF
2621#define PACKAGE_VERSION "$PACKAGE_VERSION"
2622_ACEOF
2623
2624cat >>confdefs.h <<_ACEOF
2625#define PACKAGE_STRING "$PACKAGE_STRING"
2626_ACEOF
2627
2628cat >>confdefs.h <<_ACEOF
2629#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2630_ACEOF
2631
2632cat >>confdefs.h <<_ACEOF
2633#define PACKAGE_URL "$PACKAGE_URL"
2634_ACEOF
2635
2636
2637# Let the site file select an alternate cache file if it wants to.
2638# Prefer an explicitly selected file to automatically selected ones.
2639ac_site_file1=NONE
2640ac_site_file2=NONE
2641if test -n "$CONFIG_SITE"; then
d6a4bcb5
TB
2642 # We do not want a PATH search for config.site.
2643 case $CONFIG_SITE in #((
2644 -*) ac_site_file1=./$CONFIG_SITE;;
2645 */*) ac_site_file1=$CONFIG_SITE;;
2646 *) ac_site_file1=./$CONFIG_SITE;;
2647 esac
57aa50d4
TT
2648elif test "x$prefix" != xNONE; then
2649 ac_site_file1=$prefix/share/config.site
2650 ac_site_file2=$prefix/etc/config.site
73ae2d4a 2651else
57aa50d4
TT
2652 ac_site_file1=$ac_default_prefix/share/config.site
2653 ac_site_file2=$ac_default_prefix/etc/config.site
2654fi
2655for ac_site_file in "$ac_site_file1" "$ac_site_file2"
b0cacab0 2656do
57aa50d4 2657 test "x$ac_site_file" = xNONE && continue
61ef2474 2658 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
57aa50d4
TT
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2660$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2661 sed 's/^/| /' "$ac_site_file" >&5
d6a4bcb5
TB
2662 . "$ac_site_file" \
2663 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2664$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2665as_fn_error $? "failed to load site script $ac_site_file
2666See \`config.log' for more details" "$LINENO" 5; }
b0cacab0
TT
2667 fi
2668done
b0cacab0 2669
57aa50d4 2670if test -r "$cache_file"; then
61ef2474
TT
2671 # Some versions of bash will fail to source /dev/null (special files
2672 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2673 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
57aa50d4
TT
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2675$as_echo "$as_me: loading cache $cache_file" >&6;}
2676 case $cache_file in
2677 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2678 *) . "./$cache_file";;
2679 esac
73ae2d4a 2680 fi
57aa50d4
TT
2681else
2682 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2683$as_echo "$as_me: creating cache $cache_file" >&6;}
2684 >$cache_file
73ae2d4a 2685fi
57aa50d4 2686
93613951 2687gt_needs="$gt_needs "
61ef2474
TT
2688as_fn_append ac_header_list " stdlib.h"
2689as_fn_append ac_header_list " unistd.h"
2690as_fn_append ac_header_list " sys/param.h"
93613951 2691as_fn_append ac_func_list " symlink"
57aa50d4
TT
2692# Check that the precious variables saved in the cache have kept the same
2693# value.
2694ac_cache_corrupted=false
2695for ac_var in $ac_precious_vars; do
2696 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2697 eval ac_new_set=\$ac_env_${ac_var}_set
2698 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2699 eval ac_new_val=\$ac_env_${ac_var}_value
2700 case $ac_old_set,$ac_new_set in
2701 set,)
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2703$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2704 ac_cache_corrupted=: ;;
2705 ,set)
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2707$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2708 ac_cache_corrupted=: ;;
2709 ,);;
2710 *)
2711 if test "x$ac_old_val" != "x$ac_new_val"; then
2712 # differences in whitespace do not lead to failure.
2713 ac_old_val_w=`echo x $ac_old_val`
2714 ac_new_val_w=`echo x $ac_new_val`
2715 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2717$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2718 ac_cache_corrupted=:
2719 else
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2721$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2722 eval $ac_var=\$ac_old_val
2723 fi
2724 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2725$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2727$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2728 fi;;
2729 esac
2730 # Pass precious variables to config.status.
2731 if test "$ac_new_set" = set; then
2732 case $ac_new_val in
2733 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2734 *) ac_arg=$ac_var=$ac_new_val ;;
2735 esac
2736 case " $ac_configure_args " in
2737 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2738 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2739 esac
2740 fi
2741done
2742if $ac_cache_corrupted; then
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2744$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2746$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
d6a4bcb5 2747 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
73ae2d4a 2748fi
57aa50d4
TT
2749## -------------------- ##
2750## Main body of script. ##
2751## -------------------- ##
2752
2753ac_ext=c
2754ac_cpp='$CPP $CPPFLAGS'
2755ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2756ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2757ac_compiler_gnu=$ac_cv_c_compiler_gnu
2758
2759
2760
2761ac_aux_dir=
2762for ac_dir in config "$srcdir"/config; do
d6a4bcb5
TB
2763 if test -f "$ac_dir/install-sh"; then
2764 ac_aux_dir=$ac_dir
2765 ac_install_sh="$ac_aux_dir/install-sh -c"
2766 break
2767 elif test -f "$ac_dir/install.sh"; then
2768 ac_aux_dir=$ac_dir
2769 ac_install_sh="$ac_aux_dir/install.sh -c"
2770 break
2771 elif test -f "$ac_dir/shtool"; then
2772 ac_aux_dir=$ac_dir
2773 ac_install_sh="$ac_aux_dir/shtool install -c"
2774 break
2775 fi
57aa50d4
TT
2776done
2777if test -z "$ac_aux_dir"; then
d6a4bcb5 2778 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
73ae2d4a 2779fi
57aa50d4
TT
2780
2781# These three variables are undocumented and unsupported,
2782# and are intended to be withdrawn in a future Autoconf release.
2783# They can cause serious problems if a builder's source tree is in a directory
2784# whose full name contains unusual characters.
2785ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2786ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2787ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2788
2789
d1154eb4
TT
2790ac_config_headers="$ac_config_headers lib/config.h"
2791
2792
57aa50d4
TT
2793MCONFIG=./MCONFIG
2794
2795BINARY_TYPE=bin
2796E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
2797 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
5ce368f0
DW
2798E2FSPROGS_DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2799 | tr \" " " | awk '{print $1}'`
2800E2FSPROGS_DAY=$(echo $E2FSPROGS_DATE | awk -F- '{print $1}' | sed -e '/^[1-9]$/s/^/0/')
2801MONTH=`echo $E2FSPROGS_DATE | awk -F- '{print $2}'`
2802YEAR=`echo $E2FSPROGS_DATE | awk -F- '{print $3}'`
57aa50d4
TT
2803
2804if expr $YEAR ">" 1900 > /dev/null ; then
2805 E2FSPROGS_YEAR=$YEAR
2806elif expr $YEAR ">" 90 >/dev/null ; then
2807 E2FSPROGS_YEAR=19$YEAR
73ae2d4a 2808else
57aa50d4
TT
2809 E2FSPROGS_YEAR=20$YEAR
2810fi
2811
2812case $MONTH in
2813Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2814Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2815Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2816Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2817May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2818Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2819Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2820Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2821Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2822Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2823Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2824Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
2825*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
2826$as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
2827esac
2828
2829base_ver=`echo $E2FSPROGS_VERSION | \
2830 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
2831
2832date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2833
2834case $E2FSPROGS_VERSION in
2835*-WIP|pre-*)
2ab53829 2836 E2FSPROGS_PKGVER="$base_ver~WIP.$date_spec"
57aa50d4
TT
2837 ;;
2838*)
2839 E2FSPROGS_PKGVER="$base_ver"
2840 ;;
2841esac
2842
2843unset DATE MONTH YEAR base_ver pre_vers date_spec
2844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
2845$as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
2846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
2847$as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
2848
2849
2850
2851
2852
5ce368f0 2853
6c59a665
TT
2854WITH_DIET_LIBC=
2855
2856# Check whether --with-diet-libc was given.
2857if test "${with_diet_libc+set}" = set; then :
2858 withval=$with_diet_libc; CC="diet cc -nostdinc"
2859WITH_DIET_LIBC=yes
2860if test -z "$LIBS"
2861then
2862 LIBS="-lcompat"
2863else
2864 LIBS="$LIBS -lcompat"
2865fi
2866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
2867$as_echo "CC=$CC" >&6; }
2868fi
57aa50d4
TT
2869# Make sure we can run config.sub.
2870$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
d6a4bcb5 2871 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
57aa50d4
TT
2872
2873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2874$as_echo_n "checking build system type... " >&6; }
d6a4bcb5 2875if ${ac_cv_build+:} false; then :
57aa50d4
TT
2876 $as_echo_n "(cached) " >&6
2877else
2878 ac_build_alias=$build_alias
2879test "x$ac_build_alias" = x &&
2880 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2881test "x$ac_build_alias" = x &&
d6a4bcb5 2882 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
57aa50d4 2883ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
d6a4bcb5 2884 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
57aa50d4 2885
73ae2d4a 2886fi
57aa50d4
TT
2887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2888$as_echo "$ac_cv_build" >&6; }
2889case $ac_cv_build in
2890*-*-*) ;;
d6a4bcb5 2891*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
57aa50d4
TT
2892esac
2893build=$ac_cv_build
2894ac_save_IFS=$IFS; IFS='-'
2895set x $ac_cv_build
2896shift
2897build_cpu=$1
2898build_vendor=$2
2899shift; shift
2900# Remember, the first character of IFS is used to create $*,
2901# except with old shells:
2902build_os=$*
2903IFS=$ac_save_IFS
2904case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
73ae2d4a 2905
e1052144 2906
57aa50d4
TT
2907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2908$as_echo_n "checking host system type... " >&6; }
d6a4bcb5 2909if ${ac_cv_host+:} false; then :
57aa50d4
TT
2910 $as_echo_n "(cached) " >&6
2911else
2912 if test "x$host_alias" = x; then
2913 ac_cv_host=$ac_cv_build
2914else
2915 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
d6a4bcb5 2916 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
b0cacab0 2917fi
57aa50d4
TT
2918
2919fi
2920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2921$as_echo "$ac_cv_host" >&6; }
2922case $ac_cv_host in
2923*-*-*) ;;
d6a4bcb5 2924*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
57aa50d4
TT
2925esac
2926host=$ac_cv_host
2927ac_save_IFS=$IFS; IFS='-'
2928set x $ac_cv_host
2929shift
2930host_cpu=$1
2931host_vendor=$2
2932shift; shift
2933# Remember, the first character of IFS is used to create $*,
2934# except with old shells:
2935host_os=$*
2936IFS=$ac_save_IFS
2937case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2938
2939
2940DLOPEN_LIB=''
2941ac_ext=c
2942ac_cpp='$CPP $CPPFLAGS'
2943ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2944ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2945ac_compiler_gnu=$ac_cv_c_compiler_gnu
2946if test -n "$ac_tool_prefix"; then
2947 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2948set dummy ${ac_tool_prefix}gcc; ac_word=$2
2949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39fd3d4f 2950$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 2951if ${ac_cv_prog_CC+:} false; then :
39fd3d4f 2952 $as_echo_n "(cached) " >&6
73ae2d4a
TT
2953else
2954 if test -n "$CC"; then
2955 ac_cv_prog_CC="$CC" # Let the user override the test.
2956else
b0cacab0
TT
2957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2958for as_dir in $PATH
2959do
2960 IFS=$as_save_IFS
2961 test -z "$as_dir" && as_dir=.
57aa50d4 2962 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 2963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
2964 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b0cacab0
TT
2966 break 2
2967 fi
2968done
57aa50d4 2969 done
e1052144 2970IFS=$as_save_IFS
b0cacab0 2971
73ae2d4a
TT
2972fi
2973fi
b0cacab0 2974CC=$ac_cv_prog_CC
73ae2d4a 2975if test -n "$CC"; then
57aa50d4 2976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
39fd3d4f 2977$as_echo "$CC" >&6; }
73ae2d4a 2978else
57aa50d4 2979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39fd3d4f 2980$as_echo "no" >&6; }
73ae2d4a 2981fi
b0cacab0 2982
e1052144 2983
b0cacab0 2984fi
57aa50d4 2985if test -z "$ac_cv_prog_CC"; then
b0cacab0 2986 ac_ct_CC=$CC
57aa50d4
TT
2987 # Extract the first word of "gcc", so it can be a program name with args.
2988set dummy gcc; ac_word=$2
2989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39fd3d4f 2990$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 2991if ${ac_cv_prog_ac_ct_CC+:} false; then :
39fd3d4f 2992 $as_echo_n "(cached) " >&6
b0cacab0
TT
2993else
2994 if test -n "$ac_ct_CC"; then
2995 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2996else
2997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2998for as_dir in $PATH
2999do
3000 IFS=$as_save_IFS
3001 test -z "$as_dir" && as_dir=.
57aa50d4 3002 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 3003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
3004 ac_cv_prog_ac_ct_CC="gcc"
3005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b0cacab0 3006 break 2
93636bde 3007 fi
b0cacab0 3008done
57aa50d4 3009 done
e1052144 3010IFS=$as_save_IFS
b0cacab0
TT
3011
3012fi
3013fi
3014ac_ct_CC=$ac_cv_prog_ac_ct_CC
3015if test -n "$ac_ct_CC"; then
57aa50d4 3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
39fd3d4f 3017$as_echo "$ac_ct_CC" >&6; }
b0cacab0 3018else
57aa50d4 3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39fd3d4f 3020$as_echo "no" >&6; }
07a0db15 3021fi
73ae2d4a 3022
e1052144
TT
3023 if test "x$ac_ct_CC" = x; then
3024 CC=""
3025 else
3026 case $cross_compiling:$ac_tool_warned in
3027yes:)
57aa50d4 3028{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
39fd3d4f 3029$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
e1052144
TT
3030ac_tool_warned=yes ;;
3031esac
3032 CC=$ac_ct_CC
3033 fi
57aa50d4
TT
3034else
3035 CC="$ac_cv_prog_CC"
b0cacab0
TT
3036fi
3037
57aa50d4
TT
3038if test -z "$CC"; then
3039 if test -n "$ac_tool_prefix"; then
3040 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3041set dummy ${ac_tool_prefix}cc; ac_word=$2
3042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3043$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 3044if ${ac_cv_prog_CC+:} false; then :
57aa50d4
TT
3045 $as_echo_n "(cached) " >&6
3046else
3047 if test -n "$CC"; then
3048 ac_cv_prog_CC="$CC" # Let the user override the test.
3049else
3050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3051for as_dir in $PATH
3052do
3053 IFS=$as_save_IFS
3054 test -z "$as_dir" && as_dir=.
3055 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 3056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
3057 ac_cv_prog_CC="${ac_tool_prefix}cc"
3058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3059 break 2
3060 fi
3061done
3062 done
3063IFS=$as_save_IFS
3064
3065fi
3066fi
3067CC=$ac_cv_prog_CC
3068if test -n "$CC"; then
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3070$as_echo "$CC" >&6; }
3071else
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3073$as_echo "no" >&6; }
3074fi
3075
3076
3077 fi
3078fi
3079if test -z "$CC"; then
3080 # Extract the first word of "cc", so it can be a program name with args.
3081set dummy cc; ac_word=$2
3082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3083$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 3084if ${ac_cv_prog_CC+:} false; then :
57aa50d4
TT
3085 $as_echo_n "(cached) " >&6
3086else
3087 if test -n "$CC"; then
3088 ac_cv_prog_CC="$CC" # Let the user override the test.
3089else
3090 ac_prog_rejected=no
3091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3092for as_dir in $PATH
3093do
3094 IFS=$as_save_IFS
3095 test -z "$as_dir" && as_dir=.
3096 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 3097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
3098 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3099 ac_prog_rejected=yes
3100 continue
3101 fi
3102 ac_cv_prog_CC="cc"
3103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3104 break 2
3105 fi
3106done
3107 done
3108IFS=$as_save_IFS
3109
3110if test $ac_prog_rejected = yes; then
3111 # We found a bogon in the path, so make sure we never use it.
3112 set dummy $ac_cv_prog_CC
3113 shift
3114 if test $# != 0; then
3115 # We chose a different compiler from the bogus one.
3116 # However, it has the same basename, so the bogon will be chosen
3117 # first if we set CC to just the basename; use the full file name.
3118 shift
3119 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3120 fi
3121fi
3122fi
3123fi
3124CC=$ac_cv_prog_CC
3125if test -n "$CC"; then
3126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3127$as_echo "$CC" >&6; }
3128else
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3130$as_echo "no" >&6; }
3131fi
3132
3133
3134fi
3135if test -z "$CC"; then
3136 if test -n "$ac_tool_prefix"; then
3137 for ac_prog in cl.exe
3138 do
3139 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3140set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3142$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 3143if ${ac_cv_prog_CC+:} false; then :
57aa50d4
TT
3144 $as_echo_n "(cached) " >&6
3145else
3146 if test -n "$CC"; then
3147 ac_cv_prog_CC="$CC" # Let the user override the test.
3148else
3149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3150for as_dir in $PATH
3151do
3152 IFS=$as_save_IFS
3153 test -z "$as_dir" && as_dir=.
3154 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 3155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
3156 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3158 break 2
3159 fi
3160done
3161 done
3162IFS=$as_save_IFS
3163
3164fi
3165fi
3166CC=$ac_cv_prog_CC
3167if test -n "$CC"; then
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3169$as_echo "$CC" >&6; }
3170else
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3172$as_echo "no" >&6; }
3173fi
3174
3175
3176 test -n "$CC" && break
3177 done
3178fi
3179if test -z "$CC"; then
3180 ac_ct_CC=$CC
3181 for ac_prog in cl.exe
3182do
3183 # Extract the first word of "$ac_prog", so it can be a program name with args.
3184set dummy $ac_prog; ac_word=$2
3185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3186$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 3187if ${ac_cv_prog_ac_ct_CC+:} false; then :
57aa50d4
TT
3188 $as_echo_n "(cached) " >&6
3189else
3190 if test -n "$ac_ct_CC"; then
3191 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3192else
3193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3194for as_dir in $PATH
3195do
3196 IFS=$as_save_IFS
3197 test -z "$as_dir" && as_dir=.
3198 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 3199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
3200 ac_cv_prog_ac_ct_CC="$ac_prog"
3201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3202 break 2
3203 fi
3204done
3205 done
3206IFS=$as_save_IFS
3207
3208fi
3209fi
3210ac_ct_CC=$ac_cv_prog_ac_ct_CC
3211if test -n "$ac_ct_CC"; then
3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3213$as_echo "$ac_ct_CC" >&6; }
3214else
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3216$as_echo "no" >&6; }
3217fi
3218
3219
3220 test -n "$ac_ct_CC" && break
3221done
3222
3223 if test "x$ac_ct_CC" = x; then
3224 CC=""
3225 else
3226 case $cross_compiling:$ac_tool_warned in
3227yes:)
3228{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3229$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3230ac_tool_warned=yes ;;
3231esac
3232 CC=$ac_ct_CC
3233 fi
3234fi
3235
3236fi
3237
3238
3239test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3240$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d6a4bcb5
TB
3241as_fn_error $? "no acceptable C compiler found in \$PATH
3242See \`config.log' for more details" "$LINENO" 5; }
b0cacab0
TT
3243
3244# Provide some information about the compiler.
57aa50d4 3245$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
39fd3d4f
SJR
3246set X $ac_compile
3247ac_compiler=$2
57aa50d4
TT
3248for ac_option in --version -v -V -qversion; do
3249 { { ac_try="$ac_compiler $ac_option >&5"
e1052144
TT
3250case "(($ac_try" in
3251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3252 *) ac_try_echo=$ac_try;;
3253esac
57aa50d4
TT
3254eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3255$as_echo "$ac_try_echo"; } >&5
3256 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
b0cacab0 3257 ac_status=$?
57aa50d4
TT
3258 if test -s conftest.err; then
3259 sed '10a\
3260... rest of stderr output deleted ...
3261 10q' conftest.err >conftest.er1
3262 cat conftest.er1 >&5
57aa50d4 3263 fi
61ef2474 3264 rm -f conftest.er1 conftest.err
57aa50d4
TT
3265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3266 test $ac_status = 0; }
3267done
b0cacab0 3268
57aa50d4 3269cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 3270/* end confdefs.h. */
61ef2474 3271
b0cacab0
TT
3272int
3273main ()
3274{
3275
3276 ;
3277 return 0;
3278}
3279_ACEOF
3280ac_clean_files_save=$ac_clean_files
61ef2474 3281ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
b0cacab0
TT
3282# Try to create an executable without -o first, disregard a.out.
3283# It will help us diagnose broken compilers, and finding out an intuition
3284# of exeext.
61ef2474
TT
3285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3286$as_echo_n "checking whether the C compiler works... " >&6; }
39fd3d4f
SJR
3287ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3288
3289# The possible output files:
3290ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3291
e1052144
TT
3292ac_rmfiles=
3293for ac_file in $ac_files
3294do
3295 case $ac_file in
39fd3d4f 3296 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
e1052144
TT
3297 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3298 esac
3299done
3300rm -f $ac_rmfiles
3301
57aa50d4 3302if { { ac_try="$ac_link_default"
e1052144
TT
3303case "(($ac_try" in
3304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3305 *) ac_try_echo=$ac_try;;
3306esac
57aa50d4
TT
3307eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3308$as_echo "$ac_try_echo"; } >&5
e1052144 3309 (eval "$ac_link_default") 2>&5
b0cacab0 3310 ac_status=$?
57aa50d4
TT
3311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3312 test $ac_status = 0; }; then :
e1052144
TT
3313 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3314# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3315# in a Makefile. We should not override ac_cv_exeext if it was cached,
3316# so that the user can short-circuit this test for compilers unknown to
3317# Autoconf.
29a5deed 3318for ac_file in $ac_files ''
b0cacab0
TT
3319do
3320 test -f "$ac_file" || continue
3321 case $ac_file in
39fd3d4f 3322 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
b0cacab0
TT
3323 ;;
3324 [ab].out )
3325 # We found the default executable, but exeext='' is most
3326 # certainly right.
3327 break;;
3328 *.* )
57aa50d4 3329 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
e1052144
TT
3330 then :; else
3331 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3332 fi
3333 # We set ac_cv_exeext here because the later test for it is not
3334 # safe: cross compilers may not add the suffix if given an `-o'
3335 # argument, so we may need to know it at that point already.
3336 # Even if this section looks crufty: it has the advantage of
3337 # actually working.
b0cacab0
TT
3338 break;;
3339 * )
3340 break;;
3341 esac
3342done
e1052144
TT
3343test "$ac_cv_exeext" = no && ac_cv_exeext=
3344
b0cacab0 3345else
29a5deed
TT
3346 ac_file=''
3347fi
57aa50d4 3348if test -z "$ac_file"; then :
61ef2474
TT
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3350$as_echo "no" >&6; }
3351$as_echo "$as_me: failed program was:" >&5
b0cacab0
TT
3352sed 's/^/| /' conftest.$ac_ext >&5
3353
57aa50d4 3354{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39fd3d4f 3355$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d6a4bcb5
TB
3356as_fn_error 77 "C compiler cannot create executables
3357See \`config.log' for more details" "$LINENO" 5; }
61ef2474
TT
3358else
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3360$as_echo "yes" >&6; }
b0cacab0 3361fi
61ef2474
TT
3362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3363$as_echo_n "checking for C compiler default output file name... " >&6; }
3364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3365$as_echo "$ac_file" >&6; }
b0cacab0 3366ac_exeext=$ac_cv_exeext
b0cacab0 3367
61ef2474 3368rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
b0cacab0 3369ac_clean_files=$ac_clean_files_save
57aa50d4 3370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
39fd3d4f 3371$as_echo_n "checking for suffix of executables... " >&6; }
57aa50d4 3372if { { ac_try="$ac_link"
e1052144
TT
3373case "(($ac_try" in
3374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3375 *) ac_try_echo=$ac_try;;
3376esac
57aa50d4
TT
3377eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3378$as_echo "$ac_try_echo"; } >&5
e1052144 3379 (eval "$ac_link") 2>&5
b0cacab0 3380 ac_status=$?
57aa50d4
TT
3381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3382 test $ac_status = 0; }; then :
b0cacab0
TT
3383 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3384# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3385# work properly (i.e., refer to `conftest.exe'), while it won't with
3386# `rm'.
3387for ac_file in conftest.exe conftest conftest.*; do
3388 test -f "$ac_file" || continue
3389 case $ac_file in
39fd3d4f 3390 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
b0cacab0 3391 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
b0cacab0
TT
3392 break;;
3393 * ) break;;
3394 esac
3395done
73ae2d4a 3396else
57aa50d4 3397 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39fd3d4f 3398$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d6a4bcb5
TB
3399as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3400See \`config.log' for more details" "$LINENO" 5; }
73ae2d4a 3401fi
61ef2474 3402rm -f conftest conftest$ac_cv_exeext
57aa50d4 3403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
39fd3d4f 3404$as_echo "$ac_cv_exeext" >&6; }
73ae2d4a 3405
b0cacab0
TT
3406rm -f conftest.$ac_ext
3407EXEEXT=$ac_cv_exeext
3408ac_exeext=$EXEEXT
61ef2474
TT
3409cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3410/* end confdefs.h. */
3411#include <stdio.h>
3412int
3413main ()
3414{
3415FILE *f = fopen ("conftest.out", "w");
3416 return ferror (f) || fclose (f) != 0;
3417
3418 ;
3419 return 0;
3420}
3421_ACEOF
3422ac_clean_files="$ac_clean_files conftest.out"
3423# Check that the compiler produces executables we can run. If not, either
3424# the compiler is broken, or we cross compile.
3425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3426$as_echo_n "checking whether we are cross compiling... " >&6; }
3427if test "$cross_compiling" != yes; then
3428 { { ac_try="$ac_link"
3429case "(($ac_try" in
3430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3431 *) ac_try_echo=$ac_try;;
3432esac
3433eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3434$as_echo "$ac_try_echo"; } >&5
3435 (eval "$ac_link") 2>&5
3436 ac_status=$?
3437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3438 test $ac_status = 0; }
3439 if { ac_try='./conftest$ac_cv_exeext'
3440 { { case "(($ac_try" in
3441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3442 *) ac_try_echo=$ac_try;;
3443esac
3444eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3445$as_echo "$ac_try_echo"; } >&5
3446 (eval "$ac_try") 2>&5
3447 ac_status=$?
3448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3449 test $ac_status = 0; }; }; then
3450 cross_compiling=no
3451 else
3452 if test "$cross_compiling" = maybe; then
3453 cross_compiling=yes
3454 else
3455 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3456$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d6a4bcb5 3457as_fn_error $? "cannot run C compiled programs.
61ef2474 3458If you meant to cross compile, use \`--host'.
d6a4bcb5 3459See \`config.log' for more details" "$LINENO" 5; }
61ef2474
TT
3460 fi
3461 fi
3462fi
3463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3464$as_echo "$cross_compiling" >&6; }
3465
3466rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3467ac_clean_files=$ac_clean_files_save
57aa50d4 3468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
39fd3d4f 3469$as_echo_n "checking for suffix of object files... " >&6; }
d6a4bcb5 3470if ${ac_cv_objext+:} false; then :
39fd3d4f 3471 $as_echo_n "(cached) " >&6
73ae2d4a 3472else
57aa50d4 3473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 3474/* end confdefs.h. */
07a0db15 3475
b0cacab0
TT
3476int
3477main ()
3478{
07a0db15 3479
b0cacab0
TT
3480 ;
3481 return 0;
3482}
3483_ACEOF
3484rm -f conftest.o conftest.obj
57aa50d4 3485if { { ac_try="$ac_compile"
e1052144
TT
3486case "(($ac_try" in
3487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3488 *) ac_try_echo=$ac_try;;
3489esac
57aa50d4
TT
3490eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3491$as_echo "$ac_try_echo"; } >&5
e1052144 3492 (eval "$ac_compile") 2>&5
b0cacab0 3493 ac_status=$?
57aa50d4
TT
3494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3495 test $ac_status = 0; }; then :
e1052144
TT
3496 for ac_file in conftest.o conftest.obj conftest.*; do
3497 test -f "$ac_file" || continue;
b0cacab0 3498 case $ac_file in
39fd3d4f 3499 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
b0cacab0
TT
3500 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3501 break;;
3502 esac
3503done
93636bde 3504else
39fd3d4f 3505 $as_echo "$as_me: failed program was:" >&5
b0cacab0 3506sed 's/^/| /' conftest.$ac_ext >&5
07a0db15 3507
57aa50d4 3508{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39fd3d4f 3509$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d6a4bcb5
TB
3510as_fn_error $? "cannot compute suffix of object files: cannot compile
3511See \`config.log' for more details" "$LINENO" 5; }
73ae2d4a 3512fi
b0cacab0 3513rm -f conftest.$ac_cv_objext conftest.$ac_ext
73ae2d4a 3514fi
57aa50d4 3515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
39fd3d4f 3516$as_echo "$ac_cv_objext" >&6; }
b0cacab0
TT
3517OBJEXT=$ac_cv_objext
3518ac_objext=$OBJEXT
57aa50d4 3519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
39fd3d4f 3520$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d6a4bcb5 3521if ${ac_cv_c_compiler_gnu+:} false; then :
39fd3d4f 3522 $as_echo_n "(cached) " >&6
b0cacab0 3523else
57aa50d4 3524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0
TT
3525/* end confdefs.h. */
3526
3527int
3528main ()
3529{
3530#ifndef __GNUC__
3531 choke me
3532#endif
3533
3534 ;
3535 return 0;
3536}
3537_ACEOF
57aa50d4 3538if ac_fn_c_try_compile "$LINENO"; then :
b0cacab0
TT
3539 ac_compiler_gnu=yes
3540else
57aa50d4 3541 ac_compiler_gnu=no
b0cacab0 3542fi
e1052144 3543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b0cacab0
TT
3544ac_cv_c_compiler_gnu=$ac_compiler_gnu
3545
3546fi
57aa50d4 3547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
39fd3d4f
SJR
3548$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3549if test $ac_compiler_gnu = yes; then
3550 GCC=yes
3551else
3552 GCC=
3553fi
b0cacab0
TT
3554ac_test_CFLAGS=${CFLAGS+set}
3555ac_save_CFLAGS=$CFLAGS
57aa50d4 3556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
39fd3d4f 3557$as_echo_n "checking whether $CC accepts -g... " >&6; }
d6a4bcb5 3558if ${ac_cv_prog_cc_g+:} false; then :
39fd3d4f 3559 $as_echo_n "(cached) " >&6
b0cacab0 3560else
e1052144
TT
3561 ac_save_c_werror_flag=$ac_c_werror_flag
3562 ac_c_werror_flag=yes
3563 ac_cv_prog_cc_g=no
3564 CFLAGS="-g"
57aa50d4 3565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e1052144
TT
3566/* end confdefs.h. */
3567
3568int
3569main ()
3570{
3571
3572 ;
3573 return 0;
3574}
3575_ACEOF
57aa50d4 3576if ac_fn_c_try_compile "$LINENO"; then :
e1052144
TT
3577 ac_cv_prog_cc_g=yes
3578else
57aa50d4
TT
3579 CFLAGS=""
3580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
e1052144
TT
3581/* end confdefs.h. */
3582
3583int
3584main ()
3585{
3586
3587 ;
3588 return 0;
3589}
3590_ACEOF
57aa50d4 3591if ac_fn_c_try_compile "$LINENO"; then :
e1052144 3592
57aa50d4
TT
3593else
3594 ac_c_werror_flag=$ac_save_c_werror_flag
e1052144 3595 CFLAGS="-g"
57aa50d4 3596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0
TT
3597/* end confdefs.h. */
3598
3599int
3600main ()
3601{
3602
3603 ;
3604 return 0;
3605}
3606_ACEOF
57aa50d4 3607if ac_fn_c_try_compile "$LINENO"; then :
b0cacab0 3608 ac_cv_prog_cc_g=yes
e1052144 3609fi
e1052144
TT
3610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3611fi
e1052144 3612rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
b0cacab0 3613fi
e1052144
TT
3614rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3615 ac_c_werror_flag=$ac_save_c_werror_flag
b0cacab0 3616fi
57aa50d4 3617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
39fd3d4f 3618$as_echo "$ac_cv_prog_cc_g" >&6; }
b0cacab0
TT
3619if test "$ac_test_CFLAGS" = set; then
3620 CFLAGS=$ac_save_CFLAGS
3621elif test $ac_cv_prog_cc_g = yes; then
3622 if test "$GCC" = yes; then
3623 CFLAGS="-g -O2"
3624 else
3625 CFLAGS="-g"
3626 fi
73ae2d4a
TT
3627else
3628 if test "$GCC" = yes; then
3629 CFLAGS="-O2"
3630 else
3631 CFLAGS=
3632 fi
3633fi
57aa50d4 3634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
39fd3d4f 3635$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
d6a4bcb5 3636if ${ac_cv_prog_cc_c89+:} false; then :
39fd3d4f 3637 $as_echo_n "(cached) " >&6
b0cacab0 3638else
e1052144 3639 ac_cv_prog_cc_c89=no
b0cacab0 3640ac_save_CC=$CC
57aa50d4 3641cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0
TT
3642/* end confdefs.h. */
3643#include <stdarg.h>
3644#include <stdio.h>
d6a4bcb5 3645struct stat;
b0cacab0
TT
3646/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3647struct buf { int x; };
3648FILE * (*rcsopen) (struct buf *, struct stat *, int);
3649static char *e (p, i)
3650 char **p;
3651 int i;
3652{
3653 return p[i];
3654}
3655static char *f (char * (*g) (char **, int), char **p, ...)
3656{
3657 char *s;
3658 va_list v;
3659 va_start (v,p);
3660 s = g (p, va_arg (v,int));
3661 va_end (v);
3662 return s;
3663}
3664
3665/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3666 function prototypes and stuff, but not '\xHH' hex character constants.
3667 These don't provoke an error unfortunately, instead are silently treated
e1052144 3668 as 'x'. The following induces an error, until -std is added to get
b0cacab0
TT
3669 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3670 array size at least. It's necessary to write '\x00'==0 to get something
e1052144 3671 that's true only with -std. */
b0cacab0
TT
3672int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3673
e1052144
TT
3674/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3675 inside strings and character constants. */
3676#define FOO(x) 'x'
3677int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3678
b0cacab0
TT
3679int test (int i, double x);
3680struct s1 {int (*f) (int a);};
3681struct s2 {int (*f) (double a);};
3682int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3683int argc;
3684char **argv;
3685int
3686main ()
3687{
3688return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3689 ;
3690 return 0;
3691}
3692_ACEOF
e1052144
TT
3693for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3694 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
b0cacab0
TT
3695do
3696 CC="$ac_save_CC $ac_arg"
57aa50d4 3697 if ac_fn_c_try_compile "$LINENO"; then :
e1052144 3698 ac_cv_prog_cc_c89=$ac_arg
b0cacab0 3699fi
e1052144
TT
3700rm -f core conftest.err conftest.$ac_objext
3701 test "x$ac_cv_prog_cc_c89" != "xno" && break
b0cacab0 3702done
e1052144 3703rm -f conftest.$ac_ext
b0cacab0
TT
3704CC=$ac_save_CC
3705
3706fi
e1052144
TT
3707# AC_CACHE_VAL
3708case "x$ac_cv_prog_cc_c89" in
3709 x)
57aa50d4 3710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
39fd3d4f 3711$as_echo "none needed" >&6; } ;;
e1052144 3712 xno)
57aa50d4 3713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
39fd3d4f 3714$as_echo "unsupported" >&6; } ;;
b0cacab0 3715 *)
e1052144 3716 CC="$CC $ac_cv_prog_cc_c89"
57aa50d4 3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
39fd3d4f 3718$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
b0cacab0 3719esac
57aa50d4 3720if test "x$ac_cv_prog_cc_c89" != xno; then :
b0cacab0 3721
57aa50d4 3722fi
b0cacab0 3723
b0cacab0
TT
3724ac_ext=c
3725ac_cpp='$CPP $CPPFLAGS'
3726ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3727ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3728ac_compiler_gnu=$ac_cv_c_compiler_gnu
3729
57aa50d4
TT
3730
3731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3732$as_echo_n "checking for dlopen in -ldl... " >&6; }
d6a4bcb5 3733if ${ac_cv_lib_dl_dlopen+:} false; then :
39fd3d4f 3734 $as_echo_n "(cached) " >&6
b0cacab0 3735else
57aa50d4
TT
3736 ac_check_lib_save_LIBS=$LIBS
3737LIBS="-ldl $LIBS"
3738cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 3739/* end confdefs.h. */
57aa50d4
TT
3740
3741/* Override any GCC internal prototype to avoid an error.
3742 Use char because int might match the return type of a GCC
3743 builtin and then its argument prototype would still apply. */
3744#ifdef __cplusplus
3745extern "C"
b0cacab0 3746#endif
57aa50d4
TT
3747char dlopen ();
3748int
3749main ()
3750{
3751return dlopen ();
3752 ;
3753 return 0;
3754}
b0cacab0 3755_ACEOF
57aa50d4
TT
3756if ac_fn_c_try_link "$LINENO"; then :
3757 ac_cv_lib_dl_dlopen=yes
b0cacab0 3758else
57aa50d4 3759 ac_cv_lib_dl_dlopen=no
b0cacab0 3760fi
57aa50d4
TT
3761rm -f core conftest.err conftest.$ac_objext \
3762 conftest$ac_exeext conftest.$ac_ext
3763LIBS=$ac_check_lib_save_LIBS
b0cacab0 3764fi
57aa50d4
TT
3765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3766$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
d6a4bcb5 3767if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
57aa50d4 3768 DLOPEN_LIB=-ldl
b0cacab0
TT
3769fi
3770
b0cacab0 3771
e1052144 3772
57aa50d4
TT
3773# Check whether --with-cc was given.
3774if test "${with_cc+set}" = set; then :
d6a4bcb5 3775 withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
57aa50d4 3776fi
b0cacab0 3777
b0cacab0 3778
57aa50d4
TT
3779# Check whether --with-ccopts was given.
3780if test "${with_ccopts+set}" = set; then :
d6a4bcb5 3781 withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
b0cacab0 3782fi
e1052144 3783
b0cacab0 3784
57aa50d4
TT
3785# Check whether --with-ldopts was given.
3786if test "${with_ldopts+set}" = set; then :
d6a4bcb5 3787 withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
b0cacab0
TT
3788fi
3789
3790ac_ext=c
3791ac_cpp='$CPP $CPPFLAGS'
3792ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3793ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3794ac_compiler_gnu=$ac_cv_c_compiler_gnu
57aa50d4
TT
3795if test -n "$ac_tool_prefix"; then
3796 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3797set dummy ${ac_tool_prefix}gcc; ac_word=$2
3798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3799$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 3800if ${ac_cv_prog_CC+:} false; then :
39fd3d4f 3801 $as_echo_n "(cached) " >&6
e1052144 3802else
57aa50d4
TT
3803 if test -n "$CC"; then
3804 ac_cv_prog_CC="$CC" # Let the user override the test.
3805else
3806as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3807for as_dir in $PATH
e1052144
TT
3808do
3809 IFS=$as_save_IFS
3810 test -z "$as_dir" && as_dir=.
39fd3d4f 3811 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 3812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
3813 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3815 break 2
3816 fi
e1052144 3817done
57aa50d4 3818 done
e1052144 3819IFS=$as_save_IFS
e1052144 3820
e1052144 3821fi
57aa50d4
TT
3822fi
3823CC=$ac_cv_prog_CC
3824if test -n "$CC"; then
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3826$as_echo "$CC" >&6; }
3827else
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3829$as_echo "no" >&6; }
3830fi
e1052144
TT
3831
3832
57aa50d4
TT
3833fi
3834if test -z "$ac_cv_prog_CC"; then
3835 ac_ct_CC=$CC
3836 # Extract the first word of "gcc", so it can be a program name with args.
3837set dummy gcc; ac_word=$2
3838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3839$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 3840if ${ac_cv_prog_ac_ct_CC+:} false; then :
39fd3d4f 3841 $as_echo_n "(cached) " >&6
e1052144 3842else
57aa50d4
TT
3843 if test -n "$ac_ct_CC"; then
3844 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3845else
3846as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3847for as_dir in $PATH
e1052144
TT
3848do
3849 IFS=$as_save_IFS
3850 test -z "$as_dir" && as_dir=.
39fd3d4f 3851 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 3852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
3853 ac_cv_prog_ac_ct_CC="gcc"
3854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3855 break 2
3856 fi
e1052144 3857done
57aa50d4 3858 done
e1052144 3859IFS=$as_save_IFS
b0cacab0 3860
e1052144 3861fi
57aa50d4
TT
3862fi
3863ac_ct_CC=$ac_cv_prog_ac_ct_CC
3864if test -n "$ac_ct_CC"; then
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3866$as_echo "$ac_ct_CC" >&6; }
b0cacab0 3867else
57aa50d4
TT
3868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3869$as_echo "no" >&6; }
3870fi
b0cacab0 3871
57aa50d4
TT
3872 if test "x$ac_ct_CC" = x; then
3873 CC=""
3874 else
3875 case $cross_compiling:$ac_tool_warned in
3876yes:)
3877{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3878$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3879ac_tool_warned=yes ;;
e1052144 3880esac
57aa50d4
TT
3881 CC=$ac_ct_CC
3882 fi
b0cacab0 3883else
57aa50d4 3884 CC="$ac_cv_prog_CC"
b0cacab0 3885fi
e1052144 3886
57aa50d4
TT
3887if test -z "$CC"; then
3888 if test -n "$ac_tool_prefix"; then
3889 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3890set dummy ${ac_tool_prefix}cc; ac_word=$2
3891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3892$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 3893if ${ac_cv_prog_CC+:} false; then :
57aa50d4 3894 $as_echo_n "(cached) " >&6
a64c9c13 3895else
57aa50d4
TT
3896 if test -n "$CC"; then
3897 ac_cv_prog_CC="$CC" # Let the user override the test.
3898else
3899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3900for as_dir in $PATH
3901do
3902 IFS=$as_save_IFS
3903 test -z "$as_dir" && as_dir=.
3904 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 3905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
3906 ac_cv_prog_CC="${ac_tool_prefix}cc"
3907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3908 break 2
3909 fi
3910done
3911 done
3912IFS=$as_save_IFS
b0cacab0 3913
a64c9c13 3914fi
57aa50d4
TT
3915fi
3916CC=$ac_cv_prog_CC
3917if test -n "$CC"; then
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3919$as_echo "$CC" >&6; }
b0cacab0 3920else
57aa50d4
TT
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3922$as_echo "no" >&6; }
a64c9c13 3923fi
b0cacab0 3924
b0cacab0 3925
57aa50d4
TT
3926 fi
3927fi
3928if test -z "$CC"; then
3929 # Extract the first word of "cc", so it can be a program name with args.
3930set dummy cc; ac_word=$2
3931{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3932$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 3933if ${ac_cv_prog_CC+:} false; then :
57aa50d4 3934 $as_echo_n "(cached) " >&6
a64c9c13 3935else
57aa50d4
TT
3936 if test -n "$CC"; then
3937 ac_cv_prog_CC="$CC" # Let the user override the test.
a64c9c13 3938else
57aa50d4
TT
3939 ac_prog_rejected=no
3940as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3941for as_dir in $PATH
3942do
3943 IFS=$as_save_IFS
3944 test -z "$as_dir" && as_dir=.
3945 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 3946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
3947 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3948 ac_prog_rejected=yes
3949 continue
3950 fi
3951 ac_cv_prog_CC="cc"
3952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3953 break 2
3954 fi
3955done
3956 done
3957IFS=$as_save_IFS
b0cacab0 3958
57aa50d4
TT
3959if test $ac_prog_rejected = yes; then
3960 # We found a bogon in the path, so make sure we never use it.
3961 set dummy $ac_cv_prog_CC
3962 shift
3963 if test $# != 0; then
3964 # We chose a different compiler from the bogus one.
3965 # However, it has the same basename, so the bogon will be chosen
3966 # first if we set CC to just the basename; use the full file name.
3967 shift
3968 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3969 fi
b0cacab0 3970fi
b0cacab0
TT
3971fi
3972fi
57aa50d4
TT
3973CC=$ac_cv_prog_CC
3974if test -n "$CC"; then
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3976$as_echo "$CC" >&6; }
3977else
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3979$as_echo "no" >&6; }
b0cacab0 3980fi
b0cacab0 3981
b0cacab0
TT
3982
3983fi
57aa50d4
TT
3984if test -z "$CC"; then
3985 if test -n "$ac_tool_prefix"; then
3986 for ac_prog in cl.exe
3987 do
3988 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3989set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3991$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 3992if ${ac_cv_prog_CC+:} false; then :
57aa50d4
TT
3993 $as_echo_n "(cached) " >&6
3994else
3995 if test -n "$CC"; then
3996 ac_cv_prog_CC="$CC" # Let the user override the test.
3997else
3998as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3999for as_dir in $PATH
4000do
4001 IFS=$as_save_IFS
4002 test -z "$as_dir" && as_dir=.
4003 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 4004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
4005 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4007 break 2
4008 fi
4009done
4010 done
4011IFS=$as_save_IFS
b0cacab0 4012
57aa50d4
TT
4013fi
4014fi
4015CC=$ac_cv_prog_CC
4016if test -n "$CC"; then
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4018$as_echo "$CC" >&6; }
4019else
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4021$as_echo "no" >&6; }
4022fi
b0cacab0
TT
4023
4024
57aa50d4
TT
4025 test -n "$CC" && break
4026 done
4027fi
4028if test -z "$CC"; then
4029 ac_ct_CC=$CC
4030 for ac_prog in cl.exe
b0cacab0 4031do
57aa50d4
TT
4032 # Extract the first word of "$ac_prog", so it can be a program name with args.
4033set dummy $ac_prog; ac_word=$2
4034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4035$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 4036if ${ac_cv_prog_ac_ct_CC+:} false; then :
39fd3d4f 4037 $as_echo_n "(cached) " >&6
b0cacab0 4038else
57aa50d4
TT
4039 if test -n "$ac_ct_CC"; then
4040 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
b0cacab0 4041else
57aa50d4
TT
4042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4043for as_dir in $PATH
4044do
4045 IFS=$as_save_IFS
4046 test -z "$as_dir" && as_dir=.
4047 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 4048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
4049 ac_cv_prog_ac_ct_CC="$ac_prog"
4050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4051 break 2
4052 fi
4053done
4054 done
4055IFS=$as_save_IFS
b0cacab0 4056
b0cacab0 4057fi
b0cacab0 4058fi
57aa50d4
TT
4059ac_ct_CC=$ac_cv_prog_ac_ct_CC
4060if test -n "$ac_ct_CC"; then
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4062$as_echo "$ac_ct_CC" >&6; }
4063else
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4065$as_echo "no" >&6; }
b0cacab0
TT
4066fi
4067
b0cacab0 4068
57aa50d4
TT
4069 test -n "$ac_ct_CC" && break
4070done
b0cacab0 4071
57aa50d4
TT
4072 if test "x$ac_ct_CC" = x; then
4073 CC=""
4074 else
4075 case $cross_compiling:$ac_tool_warned in
4076yes:)
4077{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4078$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4079ac_tool_warned=yes ;;
e1052144 4080esac
57aa50d4
TT
4081 CC=$ac_ct_CC
4082 fi
4083fi
b0cacab0 4084
b0cacab0 4085fi
e1052144 4086
b0cacab0 4087
57aa50d4
TT
4088test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4089$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d6a4bcb5
TB
4090as_fn_error $? "no acceptable C compiler found in \$PATH
4091See \`config.log' for more details" "$LINENO" 5; }
57aa50d4
TT
4092
4093# Provide some information about the compiler.
4094$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4095set X $ac_compile
4096ac_compiler=$2
4097for ac_option in --version -v -V -qversion; do
4098 { { ac_try="$ac_compiler $ac_option >&5"
e1052144
TT
4099case "(($ac_try" in
4100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4101 *) ac_try_echo=$ac_try;;
4102esac
57aa50d4
TT
4103eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4104$as_echo "$ac_try_echo"; } >&5
4105 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
b0cacab0 4106 ac_status=$?
57aa50d4
TT
4107 if test -s conftest.err; then
4108 sed '10a\
4109... rest of stderr output deleted ...
4110 10q' conftest.err >conftest.er1
4111 cat conftest.er1 >&5
57aa50d4 4112 fi
61ef2474 4113 rm -f conftest.er1 conftest.err
57aa50d4
TT
4114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4115 test $ac_status = 0; }
4116done
e1052144 4117
57aa50d4
TT
4118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4119$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
d6a4bcb5 4120if ${ac_cv_c_compiler_gnu+:} false; then :
39fd3d4f 4121 $as_echo_n "(cached) " >&6
b0cacab0 4122else
57aa50d4
TT
4123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4124/* end confdefs.h. */
b0cacab0 4125
57aa50d4
TT
4126int
4127main ()
4128{
4129#ifndef __GNUC__
4130 choke me
4131#endif
a64c9c13 4132
57aa50d4
TT
4133 ;
4134 return 0;
4135}
4136_ACEOF
4137if ac_fn_c_try_compile "$LINENO"; then :
4138 ac_compiler_gnu=yes
b1c92f91 4139else
57aa50d4 4140 ac_compiler_gnu=no
b1c92f91 4141fi
57aa50d4
TT
4142rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4143ac_cv_c_compiler_gnu=$ac_compiler_gnu
b0cacab0 4144
e1052144 4145fi
57aa50d4
TT
4146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4147$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4148if test $ac_compiler_gnu = yes; then
4149 GCC=yes
98919bdb 4150else
57aa50d4 4151 GCC=
98919bdb 4152fi
57aa50d4
TT
4153ac_test_CFLAGS=${CFLAGS+set}
4154ac_save_CFLAGS=$CFLAGS
4155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4156$as_echo_n "checking whether $CC accepts -g... " >&6; }
d6a4bcb5 4157if ${ac_cv_prog_cc_g+:} false; then :
57aa50d4 4158 $as_echo_n "(cached) " >&6
98919bdb 4159else
57aa50d4
TT
4160 ac_save_c_werror_flag=$ac_c_werror_flag
4161 ac_c_werror_flag=yes
4162 ac_cv_prog_cc_g=no
4163 CFLAGS="-g"
4164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4165/* end confdefs.h. */
e1052144 4166
57aa50d4
TT
4167int
4168main ()
4169{
98919bdb 4170
57aa50d4
TT
4171 ;
4172 return 0;
4173}
4174_ACEOF
4175if ac_fn_c_try_compile "$LINENO"; then :
4176 ac_cv_prog_cc_g=yes
c13351f6 4177else
57aa50d4
TT
4178 CFLAGS=""
4179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4180/* end confdefs.h. */
c13351f6 4181
57aa50d4
TT
4182int
4183main ()
4184{
c13351f6 4185
57aa50d4
TT
4186 ;
4187 return 0;
4188}
4189_ACEOF
4190if ac_fn_c_try_compile "$LINENO"; then :
c13351f6 4191
57aa50d4
TT
4192else
4193 ac_c_werror_flag=$ac_save_c_werror_flag
4194 CFLAGS="-g"
4195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4196/* end confdefs.h. */
c13351f6 4197
57aa50d4
TT
4198int
4199main ()
4200{
c13351f6 4201
57aa50d4
TT
4202 ;
4203 return 0;
4204}
b0cacab0 4205_ACEOF
57aa50d4
TT
4206if ac_fn_c_try_compile "$LINENO"; then :
4207 ac_cv_prog_cc_g=yes
1917875f 4208fi
57aa50d4 4209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
e1052144 4210fi
57aa50d4 4211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8fdc9985 4212fi
57aa50d4
TT
4213rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4214 ac_c_werror_flag=$ac_save_c_werror_flag
e1052144 4215fi
57aa50d4
TT
4216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4217$as_echo "$ac_cv_prog_cc_g" >&6; }
4218if test "$ac_test_CFLAGS" = set; then
4219 CFLAGS=$ac_save_CFLAGS
4220elif test $ac_cv_prog_cc_g = yes; then
4221 if test "$GCC" = yes; then
4222 CFLAGS="-g -O2"
4223 else
4224 CFLAGS="-g"
4225 fi
a64c9c13 4226else
57aa50d4
TT
4227 if test "$GCC" = yes; then
4228 CFLAGS="-O2"
4229 else
4230 CFLAGS=
4231 fi
a64c9c13 4232fi
57aa50d4
TT
4233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4234$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
d6a4bcb5 4235if ${ac_cv_prog_cc_c89+:} false; then :
57aa50d4 4236 $as_echo_n "(cached) " >&6
a64c9c13 4237else
57aa50d4
TT
4238 ac_cv_prog_cc_c89=no
4239ac_save_CC=$CC
4240cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4241/* end confdefs.h. */
4242#include <stdarg.h>
4243#include <stdio.h>
d6a4bcb5 4244struct stat;
57aa50d4
TT
4245/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4246struct buf { int x; };
4247FILE * (*rcsopen) (struct buf *, struct stat *, int);
4248static char *e (p, i)
4249 char **p;
4250 int i;
4251{
4252 return p[i];
4253}
4254static char *f (char * (*g) (char **, int), char **p, ...)
4255{
4256 char *s;
4257 va_list v;
4258 va_start (v,p);
4259 s = g (p, va_arg (v,int));
4260 va_end (v);
4261 return s;
4262}
e1052144 4263
57aa50d4
TT
4264/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4265 function prototypes and stuff, but not '\xHH' hex character constants.
4266 These don't provoke an error unfortunately, instead are silently treated
4267 as 'x'. The following induces an error, until -std is added to get
4268 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4269 array size at least. It's necessary to write '\x00'==0 to get something
4270 that's true only with -std. */
4271int osf4_cc_array ['\x00' == 0 ? 1 : -1];
93636bde 4272
57aa50d4
TT
4273/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4274 inside strings and character constants. */
4275#define FOO(x) 'x'
4276int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
a64c9c13 4277
57aa50d4
TT
4278int test (int i, double x);
4279struct s1 {int (*f) (int a);};
4280struct s2 {int (*f) (double a);};
4281int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4282int argc;
4283char **argv;
4284int
4285main ()
4286{
4287return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4288 ;
4289 return 0;
4290}
4291_ACEOF
4292for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4293 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4294do
4295 CC="$ac_save_CC $ac_arg"
4296 if ac_fn_c_try_compile "$LINENO"; then :
4297 ac_cv_prog_cc_c89=$ac_arg
a64c9c13 4298fi
57aa50d4
TT
4299rm -f core conftest.err conftest.$ac_objext
4300 test "x$ac_cv_prog_cc_c89" != "xno" && break
4301done
4302rm -f conftest.$ac_ext
4303CC=$ac_save_CC
a64c9c13 4304
57aa50d4
TT
4305fi
4306# AC_CACHE_VAL
4307case "x$ac_cv_prog_cc_c89" in
4308 x)
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4310$as_echo "none needed" >&6; } ;;
4311 xno)
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4313$as_echo "unsupported" >&6; } ;;
4314 *)
4315 CC="$CC $ac_cv_prog_cc_c89"
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4317$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4318esac
4319if test "x$ac_cv_prog_cc_c89" != xno; then :
a64c9c13 4320
e1052144
TT
4321fi
4322
57aa50d4
TT
4323ac_ext=c
4324ac_cpp='$CPP $CPPFLAGS'
4325ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4326ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4327ac_compiler_gnu=$ac_cv_c_compiler_gnu
93636bde 4328
9b3018a8
TT
4329if test "$GCC" = yes; then
4330 RDYNAMIC="-rdynamic"
4331
4332fi
57aa50d4
TT
4333ac_ext=c
4334ac_cpp='$CPP $CPPFLAGS'
4335ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4336ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4337ac_compiler_gnu=$ac_cv_c_compiler_gnu
4338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4339$as_echo_n "checking how to run the C preprocessor... " >&6; }
4340# On Suns, sometimes $CPP names a directory.
4341if test -n "$CPP" && test -d "$CPP"; then
4342 CPP=
4343fi
4344if test -z "$CPP"; then
d6a4bcb5 4345 if ${ac_cv_prog_CPP+:} false; then :
57aa50d4
TT
4346 $as_echo_n "(cached) " >&6
4347else
4348 # Double quotes because CPP needs to be expanded
4349 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4350 do
4351 ac_preproc_ok=false
4352for ac_c_preproc_warn_flag in '' yes
4353do
4354 # Use a header file that comes with gcc, so configuring glibc
4355 # with a fresh cross-compiler works.
4356 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4357 # <limits.h> exists even on freestanding compilers.
4358 # On the NeXT, cc -E runs the code through the compiler's parser,
4359 # not just through cpp. "Syntax error" is here to catch this case.
4360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4361/* end confdefs.h. */
4362#ifdef __STDC__
4363# include <limits.h>
4364#else
4365# include <assert.h>
4366#endif
4367 Syntax error
4368_ACEOF
4369if ac_fn_c_try_cpp "$LINENO"; then :
a64c9c13 4370
cdf186e4 4371else
57aa50d4
TT
4372 # Broken: fails on valid input.
4373continue
cdf186e4 4374fi
d6a4bcb5 4375rm -f conftest.err conftest.i conftest.$ac_ext
cdf186e4 4376
57aa50d4
TT
4377 # OK, works on sane cases. Now check whether nonexistent headers
4378 # can be detected and how.
4379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4380/* end confdefs.h. */
4381#include <ac_nonexistent.h>
4382_ACEOF
4383if ac_fn_c_try_cpp "$LINENO"; then :
4384 # Broken: success on invalid input.
4385continue
cdf186e4 4386else
57aa50d4
TT
4387 # Passes both tests.
4388ac_preproc_ok=:
4389break
4390fi
d6a4bcb5 4391rm -f conftest.err conftest.i conftest.$ac_ext
cdf186e4 4392
57aa50d4
TT
4393done
4394# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
d6a4bcb5 4395rm -f conftest.i conftest.err conftest.$ac_ext
57aa50d4
TT
4396if $ac_preproc_ok; then :
4397 break
e1052144
TT
4398fi
4399
57aa50d4
TT
4400 done
4401 ac_cv_prog_CPP=$CPP
93636bde 4402
cdf186e4 4403fi
57aa50d4 4404 CPP=$ac_cv_prog_CPP
cdf186e4 4405else
57aa50d4 4406 ac_cv_prog_CPP=$CPP
e1052144 4407fi
57aa50d4
TT
4408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4409$as_echo "$CPP" >&6; }
4410ac_preproc_ok=false
4411for ac_c_preproc_warn_flag in '' yes
4412do
4413 # Use a header file that comes with gcc, so configuring glibc
4414 # with a fresh cross-compiler works.
4415 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4416 # <limits.h> exists even on freestanding compilers.
4417 # On the NeXT, cc -E runs the code through the compiler's parser,
4418 # not just through cpp. "Syntax error" is here to catch this case.
4419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4420/* end confdefs.h. */
4421#ifdef __STDC__
4422# include <limits.h>
4423#else
4424# include <assert.h>
4425#endif
4426 Syntax error
b0cacab0 4427_ACEOF
57aa50d4 4428if ac_fn_c_try_cpp "$LINENO"; then :
80bfaa3e
TT
4429
4430else
57aa50d4
TT
4431 # Broken: fails on valid input.
4432continue
e1052144 4433fi
d6a4bcb5 4434rm -f conftest.err conftest.i conftest.$ac_ext
e1052144 4435
57aa50d4
TT
4436 # OK, works on sane cases. Now check whether nonexistent headers
4437 # can be detected and how.
4438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4439/* end confdefs.h. */
4440#include <ac_nonexistent.h>
b0cacab0 4441_ACEOF
57aa50d4
TT
4442if ac_fn_c_try_cpp "$LINENO"; then :
4443 # Broken: success on invalid input.
4444continue
f0a22d0f 4445else
57aa50d4
TT
4446 # Passes both tests.
4447ac_preproc_ok=:
4448break
e1052144 4449fi
d6a4bcb5 4450rm -f conftest.err conftest.i conftest.$ac_ext
e1052144 4451
57aa50d4
TT
4452done
4453# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
d6a4bcb5 4454rm -f conftest.i conftest.err conftest.$ac_ext
57aa50d4 4455if $ac_preproc_ok; then :
2a29f135
TT
4456
4457else
57aa50d4
TT
4458 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4459$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d6a4bcb5
TB
4460as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4461See \`config.log' for more details" "$LINENO" 5; }
e1052144
TT
4462fi
4463
57aa50d4
TT
4464ac_ext=c
4465ac_cpp='$CPP $CPPFLAGS'
4466ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4467ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4468ac_compiler_gnu=$ac_cv_c_compiler_gnu
af773654 4469
57aa50d4
TT
4470{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
4471$as_echo_n "checking for additional special compiler flags... " >&6; }
4472if test "$GCC" = yes
4473then
4474 case "$host_cpu" in
4475 alpha) addcflags="-mieee" ;;
4476 esac
14b596d4 4477fi
57aa50d4
TT
4478if test "x$addcflags" != x
4479then
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
4481$as_echo "$addcflags" >&6; }
4482 CFLAGS="$addcflags $CFLAGS"
14b596d4 4483else
57aa50d4
TT
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
4485$as_echo "(none)" >&6; }
14b596d4
TT
4486fi
4487
93613951
TT
4488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4489$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4490if ${ac_cv_path_GREP+:} false; then :
4491 $as_echo_n "(cached) " >&6
57aa50d4 4492else
93613951
TT
4493 if test -z "$GREP"; then
4494 ac_path_GREP_found=false
4495 # Loop through the user's path and test for each of PROGNAME-LIST
4496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4497for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4498do
4499 IFS=$as_save_IFS
4500 test -z "$as_dir" && as_dir=.
4501 for ac_prog in grep ggrep; do
4502 for ac_exec_ext in '' $ac_executable_extensions; do
4503 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4504 as_fn_executable_p "$ac_path_GREP" || continue
4505# Check for GNU ac_path_GREP and select it if it is found.
4506 # Check for GNU $ac_path_GREP
4507case `"$ac_path_GREP" --version 2>&1` in
4508*GNU*)
4509 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4510*)
4511 ac_count=0
4512 $as_echo_n 0123456789 >"conftest.in"
4513 while :
4514 do
4515 cat "conftest.in" "conftest.in" >"conftest.tmp"
4516 mv "conftest.tmp" "conftest.in"
4517 cp "conftest.in" "conftest.nl"
4518 $as_echo 'GREP' >> "conftest.nl"
4519 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4520 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4521 as_fn_arith $ac_count + 1 && ac_count=$as_val
4522 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4523 # Best one so far, save it but keep looking for a better one
4524 ac_cv_path_GREP="$ac_path_GREP"
4525 ac_path_GREP_max=$ac_count
4526 fi
4527 # 10*(2^10) chars as input seems more than enough
4528 test $ac_count -gt 10 && break
4529 done
4530 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4531esac
14b596d4 4532
93613951
TT
4533 $ac_path_GREP_found && break 3
4534 done
4535 done
4536 done
4537IFS=$as_save_IFS
4538 if test -z "$ac_cv_path_GREP"; then
4539 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4540 fi
57aa50d4 4541else
93613951
TT
4542 ac_cv_path_GREP=$GREP
4543fi
57aa50d4 4544
14b596d4 4545fi
93613951
TT
4546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4547$as_echo "$ac_cv_path_GREP" >&6; }
4548 GREP="$ac_cv_path_GREP"
14b596d4 4549
14b596d4 4550
93613951
TT
4551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4552$as_echo_n "checking for egrep... " >&6; }
4553if ${ac_cv_path_EGREP+:} false; then :
4554 $as_echo_n "(cached) " >&6
5aa6c3f6 4555else
93613951
TT
4556 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4557 then ac_cv_path_EGREP="$GREP -E"
4558 else
4559 if test -z "$EGREP"; then
4560 ac_path_EGREP_found=false
4561 # Loop through the user's path and test for each of PROGNAME-LIST
4562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4563for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4564do
4565 IFS=$as_save_IFS
4566 test -z "$as_dir" && as_dir=.
4567 for ac_prog in egrep; do
4568 for ac_exec_ext in '' $ac_executable_extensions; do
4569 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4570 as_fn_executable_p "$ac_path_EGREP" || continue
4571# Check for GNU ac_path_EGREP and select it if it is found.
4572 # Check for GNU $ac_path_EGREP
4573case `"$ac_path_EGREP" --version 2>&1` in
4574*GNU*)
4575 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4576*)
4577 ac_count=0
4578 $as_echo_n 0123456789 >"conftest.in"
4579 while :
4580 do
4581 cat "conftest.in" "conftest.in" >"conftest.tmp"
4582 mv "conftest.tmp" "conftest.in"
4583 cp "conftest.in" "conftest.nl"
4584 $as_echo 'EGREP' >> "conftest.nl"
4585 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4586 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4587 as_fn_arith $ac_count + 1 && ac_count=$as_val
4588 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4589 # Best one so far, save it but keep looking for a better one
4590 ac_cv_path_EGREP="$ac_path_EGREP"
4591 ac_path_EGREP_max=$ac_count
4592 fi
4593 # 10*(2^10) chars as input seems more than enough
4594 test $ac_count -gt 10 && break
4595 done
4596 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4597esac
5aa6c3f6 4598
93613951
TT
4599 $ac_path_EGREP_found && break 3
4600 done
4601 done
4602 done
4603IFS=$as_save_IFS
4604 if test -z "$ac_cv_path_EGREP"; then
4605 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4606 fi
5aa6c3f6 4607else
93613951
TT
4608 ac_cv_path_EGREP=$EGREP
4609fi
183c73b0 4610
93613951 4611 fi
183c73b0 4612fi
93613951
TT
4613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4614$as_echo "$ac_cv_path_EGREP" >&6; }
4615 EGREP="$ac_cv_path_EGREP"
183c73b0
TT
4616
4617
93613951
TT
4618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4619$as_echo_n "checking for ANSI C header files... " >&6; }
4620if ${ac_cv_header_stdc+:} false; then :
4621 $as_echo_n "(cached) " >&6
91d11da1 4622else
93613951
TT
4623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4624/* end confdefs.h. */
4625#include <stdlib.h>
4626#include <stdarg.h>
4627#include <string.h>
4628#include <float.h>
91d11da1 4629
93613951
TT
4630int
4631main ()
4632{
183c73b0 4633
93613951
TT
4634 ;
4635 return 0;
4636}
4637_ACEOF
4638if ac_fn_c_try_compile "$LINENO"; then :
4639 ac_cv_header_stdc=yes
183c73b0 4640else
93613951 4641 ac_cv_header_stdc=no
5aa6c3f6 4642fi
93613951 4643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5aa6c3f6 4644
93613951
TT
4645if test $ac_cv_header_stdc = yes; then
4646 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4648/* end confdefs.h. */
4649#include <string.h>
4650
4651_ACEOF
4652if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4653 $EGREP "memchr" >/dev/null 2>&1; then :
4654
4655else
4656 ac_cv_header_stdc=no
4657fi
4658rm -f conftest*
4659
4660fi
4661
4662if test $ac_cv_header_stdc = yes; then
4663 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4665/* end confdefs.h. */
4666#include <stdlib.h>
4667
4668_ACEOF
4669if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4670 $EGREP "free" >/dev/null 2>&1; then :
4671
4672else
4673 ac_cv_header_stdc=no
4674fi
4675rm -f conftest*
4676
4677fi
4678
4679if test $ac_cv_header_stdc = yes; then
4680 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4681 if test "$cross_compiling" = yes; then :
4682 :
4683else
4684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4685/* end confdefs.h. */
4686#include <ctype.h>
4687#include <stdlib.h>
4688#if ((' ' & 0x0FF) == 0x020)
4689# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4690# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4691#else
4692# define ISLOWER(c) \
4693 (('a' <= (c) && (c) <= 'i') \
4694 || ('j' <= (c) && (c) <= 'r') \
4695 || ('s' <= (c) && (c) <= 'z'))
4696# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4697#endif
4698
4699#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4700int
4701main ()
4702{
4703 int i;
4704 for (i = 0; i < 256; i++)
4705 if (XOR (islower (i), ISLOWER (i))
4706 || toupper (i) != TOUPPER (i))
4707 return 2;
4708 return 0;
4709}
4710_ACEOF
4711if ac_fn_c_try_run "$LINENO"; then :
4712
4713else
4714 ac_cv_header_stdc=no
4715fi
4716rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4717 conftest.$ac_objext conftest.beam conftest.$ac_ext
4718fi
4719
4720fi
4721fi
4722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4723$as_echo "$ac_cv_header_stdc" >&6; }
4724if test $ac_cv_header_stdc = yes; then
4725
4726$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4727
4728fi
4729
4730# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4731for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4732 inttypes.h stdint.h unistd.h
4733do :
4734 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4735ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4736"
4737if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4738 cat >>confdefs.h <<_ACEOF
4739#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4740_ACEOF
4741
4742fi
4743
4744done
4745
4746
4747
4748 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4749if test "x$ac_cv_header_minix_config_h" = xyes; then :
4750 MINIX=yes
4751else
4752 MINIX=
4753fi
4754
4755
4756 if test "$MINIX" = yes; then
4757
4758$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4759
4760
4761$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4762
4763
4764$as_echo "#define _MINIX 1" >>confdefs.h
4765
4766 fi
4767
4768
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4770$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4771if ${ac_cv_safe_to_define___extensions__+:} false; then :
4772 $as_echo_n "(cached) " >&6
4773else
4774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4775/* end confdefs.h. */
4776
4777# define __EXTENSIONS__ 1
4778 $ac_includes_default
4779int
4780main ()
4781{
4782
4783 ;
4784 return 0;
4785}
4786_ACEOF
4787if ac_fn_c_try_compile "$LINENO"; then :
4788 ac_cv_safe_to_define___extensions__=yes
4789else
4790 ac_cv_safe_to_define___extensions__=no
4791fi
4792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4793fi
4794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4795$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4796 test $ac_cv_safe_to_define___extensions__ = yes &&
4797 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4798
4799 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4800
4801 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4802
4803 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4804
4805 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4806
4807
4808LIB_EXT=.a
4809STATIC_LIB_EXT=.a
4810PROFILED_LIB_EXT=.a
4811
4812# Check whether --with-root-prefix was given.
4813if test "${with_root_prefix+set}" = set; then :
4814 withval=$with_root_prefix; root_prefix=$withval
4815else
4816 root_prefix=NONE
4817fi
4818# Check whether --enable-maintainer-mode was given.
4819if test "${enable_maintainer_mode+set}" = set; then :
4820 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
4821then
4822 MAINTAINER_CMT=#
4823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
4824$as_echo "Disabling maintainer mode" >&6; }
4825else
4826 MAINTAINER_CMT=
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
4828$as_echo "Enabling maintainer mode" >&6; }
4829fi
4830
4831else
4832 MAINTAINER_CMT=#
4833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
4834$as_echo "Disabling maintainer mode by default" >&6; }
4835
4836fi
4837
4838
4839# Check whether --enable-symlink-install was given.
4840if test "${enable_symlink_install+set}" = set; then :
4841 enableval=$enable_symlink_install; if test "$enableval" = "no"
4842then
4843 LINK_INSTALL_FLAGS=-f
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4845$as_echo "Disabling symlinks for install" >&6; }
4846else
4847 LINK_INSTALL_FLAGS=-sf
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4849$as_echo "Enabling symlinks for install" >&6; }
4850fi
4851
4852else
4853 LINK_INSTALL_FLAGS=-f
4854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4855$as_echo "Disabling symlinks for install by default" >&6; }
4856
4857fi
4858
4859
4860relative_symlink_defined=
4861# Check whether --enable-relative-symlinks was given.
4862if test "${enable_relative_symlinks+set}" = set; then :
4863 enableval=$enable_relative_symlinks; if test "$enableval" = "no"
4864then
4865 SYMLINK_RELATIVE=
4866 relative_symlink_defined=yes
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4868$as_echo "Disabling relative symlinks for install" >&6; }
4869else
4870 SYMLINK_RELATIVE=--relative
4871 relative_symlink_defined=yes
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4873$as_echo "Enabling relative symlinks for install" >&6; }
4874fi
4875fi
4876
4877# Check whether --enable-symlink-relative-symlinks was given.
4878if test "${enable_symlink_relative_symlinks+set}" = set; then :
4879 enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4880then
4881 SYMLINK_RELATIVE=yes
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4883$as_echo "Disabling relative symlinks for install" >&6; }
4884else
4885 SYMLINK_RELATIVE=--relative
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4887$as_echo "Enabling relative symlinks for install" >&6; }
4888fi
4889
4890else
4891 if test -z "$relative_symlink_defined"
4892then
4893 SYMLINK_RELATIVE=
4894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4895$as_echo "Disabling relative symlinks for install by default" >&6; }
4896fi
4897
4898fi
4899
4900
4901# Check whether --enable-symlink-build was given.
4902if test "${enable_symlink_build+set}" = set; then :
5aa6c3f6
TT
4903 enableval=$enable_symlink_build; if test "$enableval" = "no"
4904then
4905 LINK_BUILD_FLAGS=
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4907$as_echo "Disabling symlinks for build" >&6; }
4908else
4909 LINK_BUILD_FLAGS=-s
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4911$as_echo "Enabling symlinks for build" >&6; }
4912fi
4913
4914else
4915 LINK_BUILD_FLAGS=
183c73b0
TT
4916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4917$as_echo "Disabling symlinks for build by default" >&6; }
5aa6c3f6
TT
4918
4919fi
4920
4921
57aa50d4
TT
4922# Check whether --enable-verbose-makecmds was given.
4923if test "${enable_verbose_makecmds+set}" = set; then :
4924 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4925then
4926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4927$as_echo "Disabling verbose make commands" >&6; }
4928 E=@echo
c1986ecb 4929 ES=echo
57aa50d4 4930 Q=@
14b596d4 4931else
57aa50d4
TT
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
4933$as_echo "Enabling verbose make commands" >&6; }
4934 E=@\\#
c1986ecb 4935 ES=\\#
57aa50d4
TT
4936 Q=
4937fi
14b596d4 4938
14b596d4 4939else
57aa50d4
TT
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
4941$as_echo "Disabling verbose make commands" >&6; }
4942E=@echo
c1986ecb 4943ES=echo
57aa50d4 4944Q=@
14b596d4 4945
14b596d4
TT
4946fi
4947
14b596d4 4948
57aa50d4 4949
c1986ecb 4950
57aa50d4
TT
4951E2_PKG_CONFIG_STATIC=--static
4952LDFLAG_DYNAMIC=
4953PRIVATE_LIBS_CMT=
4954# Check whether --enable-elf-shlibs was given.
4955if test "${enable_elf_shlibs+set}" = set; then :
4956 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
cdf186e4 4957then
57aa50d4
TT
4958 ELF_CMT=#
4959 MAKEFILE_ELF=/dev/null
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
4961$as_echo "Disabling ELF shared libraries" >&6; }
cdf186e4 4962else
57aa50d4
TT
4963 E2_PKG_CONFIG_STATIC=
4964 ELF_CMT=
4965 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
4966 case "$host_os" in
4967 solaris2.*)
4968 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4969 ;;
4970 esac
4971 BINARY_TYPE=elfbin
4972 LIB_EXT=.so
4973 PRIVATE_LIBS_CMT=#
4974 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
4976$as_echo "Enabling ELF shared libraries" >&6; }
cdf186e4
TT
4977fi
4978
4979else
57aa50d4
TT
4980 MAKEFILE_ELF=/dev/null
4981ELF_CMT=#
4982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
4983$as_echo "Disabling ELF shared libraries by default" >&6; }
cdf186e4 4984
e1052144
TT
4985fi
4986
cdf186e4 4987
57aa50d4
TT
4988
4989# Check whether --enable-bsd-shlibs was given.
4990if test "${enable_bsd_shlibs+set}" = set; then :
4991 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
cdf186e4 4992then
57aa50d4
TT
4993 BSDLIB_CMT=#
4994 MAKEFILE_BSDLIB=/dev/null
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
4996$as_echo "Disabling BSD shared libraries" >&6; }
cdf186e4 4997else
57aa50d4
TT
4998 E2_PKG_CONFIG_STATIC=
4999 BSDLIB_CMT=
5000 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
5001 LIB_EXT=.so
5002 case "$host_os" in
5003 darwin*)
5004 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
5005 LIB_EXT=.dylib
5006 ;;
5007 esac
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
5009$as_echo "Enabling BSD shared libraries" >&6; }
cdf186e4
TT
5010fi
5011
5012else
57aa50d4
TT
5013 MAKEFILE_BSDLIB=/dev/null
5014BSDLIB_CMT=#
5015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
5016$as_echo "Disabling BSD shared libraries by default" >&6; }
cdf186e4 5017
e1052144
TT
5018fi
5019
cdf186e4 5020
57aa50d4
TT
5021
5022# Check whether --enable-profile was given.
5023if test "${enable_profile+set}" = set; then :
5024 enableval=$enable_profile; if test "$enableval" = "no"
cdf186e4 5025then
57aa50d4
TT
5026 PROFILE_CMT=#
5027 MAKEFILE_PROFILE=/dev/null
5028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
5029$as_echo "Disabling profiling libraries" >&6; }
cdf186e4 5030else
57aa50d4
TT
5031 PROFILE_CMT=
5032 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
5033 PROFILED_LIB_EXT=_p.a
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
5035$as_echo "Building profiling libraries" >&6; }
cdf186e4
TT
5036fi
5037
5038else
57aa50d4
TT
5039 PROFILE_CMT=#
5040MAKEFILE_PROFILE=/dev/null
5041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
5042$as_echo "Disabling profiling libraries by default" >&6; }
cdf186e4 5043
e1052144
TT
5044fi
5045
cdf186e4 5046
57aa50d4 5047
fedfb27f
TT
5048# Check whether --enable-gcov was given.
5049if test "${enable_gcov+set}" = set; then :
5050 enableval=$enable_gcov; if test "$enableval" = "yes"
5051then
5052 CFLAGS="-g -fprofile-arcs -ftest-coverage"
5053 LDFLAGS="-fprofile-arcs -ftest-coverage"
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5
5055$as_echo "Enabling gcov support" >&6; }
5056fi
5057
5058fi
5059
fd1677e8
TT
5060CFLAGS_SHLIB="${CFLAGS_SHLIB:-$CFLAGS}"
5061CFLAGS_STLIB="${CFLAGS_STLIB:-$CFLAGS}"
5062LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
5063LDFLAGS_STATIC=${LDFLAGS_STATIC:-$LDFLAGS}
5064# Check whether --enable-hardening was given.
5065if test "${enable_hardening+set}" = set; then :
5066 enableval=$enable_hardening; if test "$enableval" = "yes"
5067then
5068 HARDEN_CFLAGS="-D_FORTIFY_SOURCE=2 -fstack-protector-strong"
5069 HARDEN_LDFLAGS="-Wl,-z,relro -Wl,-z,now"
5070 CFLAGS="$CFLAGS $HARDEN_CFLAGS -fPIE"
5071 CFLAGS_SHLIB="$CFLAGS_SHLIB $HARDEN_CFLAGS"
5072 CFLAGS_STLIB="$CFLAGS_STLIB $HARDEN_CFLAGS -fPIE"
5073 LDFLAGS="$LDFLAGS $HARDEN_LDFLAGS -fPIE -pie"
5074 LDFLAGS_STATIC="$LDFLAGS_STATIC $HARDEN_LDFLAGS"
5075 LDFLAGS_SHLIB="$LDFLAGS_SHLIB $HARDEN_LDFLAGS"
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling hardening support" >&5
5077$as_echo "Enabling hardening support" >&6; }
5078fi
5079
5080fi
cdf186e4 5081
57aa50d4
TT
5082
5083
5084
5085
5086
5087# Check whether --enable-jbd-debug was given.
5088if test "${enable_jbd_debug+set}" = set; then :
5089 enableval=$enable_jbd_debug; if test "$enableval" = "no"
5d40773b 5090then
57aa50d4
TT
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
5092$as_echo "Disabling journal debugging" >&6; }
5d40773b 5093else
d1154eb4
TT
5094
5095$as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
57aa50d4
TT
5096
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
5098$as_echo "Enabling journal debugging" >&6; }
5d40773b
TT
5099fi
5100
5101else
57aa50d4
TT
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
5103$as_echo "Disabling journal debugging by default" >&6; }
5d40773b 5104
e1052144
TT
5105fi
5106
57aa50d4
TT
5107# Check whether --enable-blkid-debug was given.
5108if test "${enable_blkid_debug+set}" = set; then :
5109 enableval=$enable_blkid_debug; if test "$enableval" = "no"
3249394d 5110then
57aa50d4
TT
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
5112$as_echo "Disabling blkid debugging" >&6; }
3249394d 5113else
d1154eb4
TT
5114
5115$as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
57aa50d4
TT
5116
5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
5118$as_echo "Enabling blkid debugging" >&6; }
3249394d
TT
5119fi
5120
5121else
57aa50d4
TT
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
5123$as_echo "Disabling blkid debugging by default" >&6; }
3249394d
TT
5124
5125fi
5126
57aa50d4
TT
5127# Check whether --enable-testio-debug was given.
5128if test "${enable_testio_debug+set}" = set; then :
d1154eb4
TT
5129 enableval=$enable_testio_debug;
5130if test "$enableval" = "no"
3249394d 5131then
57aa50d4
TT
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
5133$as_echo "Disabling testio debugging" >&6; }
5134 TEST_IO_CMT="#"
3249394d 5135else
57aa50d4
TT
5136 TEST_IO_CMT=
5137 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
3249394d 5138
57aa50d4
TT
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
5140$as_echo "Enabling testio debugging" >&6; }
5141fi
3249394d 5142
3249394d 5143else
57aa50d4
TT
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
5145$as_echo "Enabling testio debugging by default" >&6; }
5146$as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
3249394d 5147
57aa50d4 5148TEST_IO_CMT=
3249394d
TT
5149
5150fi
5151
3249394d 5152
57aa50d4
TT
5153
5154
93613951
TT
5155
5156
5157
5158
5159
57aa50d4 5160if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
93613951 5161 if test -n "$ac_tool_prefix"; then
57aa50d4
TT
5162 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5163set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5165$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 5166if ${ac_cv_path_PKG_CONFIG+:} false; then :
57aa50d4
TT
5167 $as_echo_n "(cached) " >&6
5168else
5169 case $PKG_CONFIG in
5170 [\\/]* | ?:[\\/]*)
5171 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5172 ;;
5173 *)
5174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5175for as_dir in $PATH
5176do
5177 IFS=$as_save_IFS
5178 test -z "$as_dir" && as_dir=.
5179 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 5180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
5181 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5183 break 2
5184 fi
5185done
5186 done
5187IFS=$as_save_IFS
5188
5189 ;;
5190esac
5191fi
5192PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5193if test -n "$PKG_CONFIG"; then
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5195$as_echo "$PKG_CONFIG" >&6; }
5196else
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5198$as_echo "no" >&6; }
3249394d
TT
5199fi
5200
5201
57aa50d4
TT
5202fi
5203if test -z "$ac_cv_path_PKG_CONFIG"; then
5204 ac_pt_PKG_CONFIG=$PKG_CONFIG
5205 # Extract the first word of "pkg-config", so it can be a program name with args.
5206set dummy pkg-config; ac_word=$2
5207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5208$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 5209if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
57aa50d4
TT
5210 $as_echo_n "(cached) " >&6
5211else
5212 case $ac_pt_PKG_CONFIG in
5213 [\\/]* | ?:[\\/]*)
5214 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5215 ;;
5216 *)
5217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5218for as_dir in $PATH
5219do
5220 IFS=$as_save_IFS
5221 test -z "$as_dir" && as_dir=.
5222 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 5223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
5224 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5226 break 2
5227 fi
5228done
5229 done
5230IFS=$as_save_IFS
3249394d 5231
57aa50d4
TT
5232 ;;
5233esac
5234fi
5235ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5236if test -n "$ac_pt_PKG_CONFIG"; then
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5238$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5239else
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5241$as_echo "no" >&6; }
5242fi
3249394d 5243
57aa50d4
TT
5244 if test "x$ac_pt_PKG_CONFIG" = x; then
5245 PKG_CONFIG=""
5246 else
5247 case $cross_compiling:$ac_tool_warned in
5248yes:)
5249{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5250$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5251ac_tool_warned=yes ;;
5252esac
5253 PKG_CONFIG=$ac_pt_PKG_CONFIG
3249394d 5254 fi
57aa50d4
TT
5255else
5256 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5257fi
3249394d
TT
5258
5259fi
57aa50d4 5260if test -n "$PKG_CONFIG"; then
93613951
TT
5261 _pkg_min_version=0.9.0
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
57aa50d4 5263$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
93613951
TT
5264 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
57aa50d4 5266$as_echo "yes" >&6; }
93613951
TT
5267 else
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
57aa50d4 5269$as_echo "no" >&6; }
93613951
TT
5270 PKG_CONFIG=""
5271 fi
57aa50d4
TT
5272fi
5273LIBUUID=
5274DEPLIBUUID=
5275STATIC_LIBUUID=
5276DEPSTATIC_LIBUUID=
5277PROFILED_LIBUUID=
5278DEPPROFILED_LIBUUID=
5279UUID_CMT=
5280# Check whether --enable-libuuid was given.
5281if test "${enable_libuuid+set}" = set; then :
5282 enableval=$enable_libuuid; if test "$enableval" = "no"
5610f992 5283then
57aa50d4 5284 if test -z "$PKG_CONFIG"; then
d6a4bcb5 5285 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
57aa50d4
TT
5286 fi
5287
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5289$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
d6a4bcb5 5290if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
57aa50d4 5291 $as_echo_n "(cached) " >&6
5610f992 5292else
57aa50d4 5293 ac_check_lib_save_LIBS=$LIBS
2d7583bd 5294LIBS="-luuid $LIBS"
57aa50d4
TT
5295cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5296/* end confdefs.h. */
5610f992 5297
57aa50d4
TT
5298/* Override any GCC internal prototype to avoid an error.
5299 Use char because int might match the return type of a GCC
5300 builtin and then its argument prototype would still apply. */
5301#ifdef __cplusplus
5302extern "C"
5303#endif
5304char uuid_generate ();
5305int
5306main ()
5307{
5308return uuid_generate ();
5309 ;
5310 return 0;
5311}
5312_ACEOF
5313if ac_fn_c_try_link "$LINENO"; then :
5314 ac_cv_lib_uuid_uuid_generate=yes
5315else
5316 ac_cv_lib_uuid_uuid_generate=no
5317fi
5318rm -f core conftest.err conftest.$ac_objext \
5319 conftest$ac_exeext conftest.$ac_ext
5320LIBS=$ac_check_lib_save_LIBS
5321fi
5322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5323$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
d6a4bcb5 5324if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
57aa50d4
TT
5325 LIBUUID=`$PKG_CONFIG --libs uuid`;
5326 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5327else
d6a4bcb5 5328 as_fn_error $? "external uuid library not found" "$LINENO" 5
5610f992
TT
5329fi
5330
5afdf37b 5331 PROFILED_LIBUUID=$LIBUUID
57aa50d4
TT
5332 UUID_CMT=#
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
5334$as_echo "Disabling private uuid library" >&6; }
5610f992 5335else
57aa50d4
TT
5336 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5337 DEPLIBUUID=$LIBUUID
5338 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5339 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5340 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5341 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
5343$as_echo "Enabling private uuid library" >&6; }
5344fi
5610f992 5345
57aa50d4 5346else
f5dffb81
TT
5347 if test -n "$PKG_CONFIG"; then
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5349$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5350if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
5351 $as_echo_n "(cached) " >&6
5352else
5353 ac_check_lib_save_LIBS=$LIBS
5354LIBS="-luuid $LIBS"
5355cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5356/* end confdefs.h. */
5357
5358/* Override any GCC internal prototype to avoid an error.
5359 Use char because int might match the return type of a GCC
5360 builtin and then its argument prototype would still apply. */
5361#ifdef __cplusplus
5362extern "C"
5363#endif
5364char uuid_generate ();
5365int
5366main ()
5367{
5368return uuid_generate ();
5369 ;
5370 return 0;
5371}
5372_ACEOF
5373if ac_fn_c_try_link "$LINENO"; then :
5374 ac_cv_lib_uuid_uuid_generate=yes
5375else
5376 ac_cv_lib_uuid_uuid_generate=no
5377fi
5378rm -f core conftest.err conftest.$ac_objext \
5379 conftest$ac_exeext conftest.$ac_ext
5380LIBS=$ac_check_lib_save_LIBS
5381fi
5382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5383$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5384if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
5385 LIBUUID=`$PKG_CONFIG --libs uuid`;
5386 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5387fi
5388
5389fi
5390if test -n "$LIBUUID"; then
5391 PROFILED_LIBUUID=$LIBUUID
5392 UUID_CMT=#
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system uuid by default" >&5
5394$as_echo "Using system uuid by default" >&6; }
5395else
5396 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5397 DEPLIBUUID=$LIBUUID
5398 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5399 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5400 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5401 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
57aa50d4 5403$as_echo "Enabling private uuid library by default" >&6; }
f5dffb81 5404fi
5610f992
TT
5405
5406fi
5407
5408
cdf186e4 5409
a64c9c13 5410
93636bde
TT
5411
5412
93636bde 5413
93636bde
TT
5414
5415
57aa50d4 5416
93613951
TT
5417
5418
5419
5420
5421
57aa50d4 5422if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
93613951 5423 if test -n "$ac_tool_prefix"; then
57aa50d4
TT
5424 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5425set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
5426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5427$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 5428if ${ac_cv_path_PKG_CONFIG+:} false; then :
39fd3d4f 5429 $as_echo_n "(cached) " >&6
a64c9c13 5430else
57aa50d4
TT
5431 case $PKG_CONFIG in
5432 [\\/]* | ?:[\\/]*)
5433 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5434 ;;
e1052144 5435 *)
b0cacab0
TT
5436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5437for as_dir in $PATH
5438do
5439 IFS=$as_save_IFS
5440 test -z "$as_dir" && as_dir=.
57aa50d4 5441 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 5442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
5443 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5445 break 2
5446 fi
b0cacab0 5447done
57aa50d4 5448 done
e1052144 5449IFS=$as_save_IFS
b0cacab0 5450
57aa50d4 5451 ;;
b0cacab0
TT
5452esac
5453fi
57aa50d4
TT
5454PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5455if test -n "$PKG_CONFIG"; then
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
5457$as_echo "$PKG_CONFIG" >&6; }
07a0db15 5458else
57aa50d4 5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39fd3d4f 5460$as_echo "no" >&6; }
07a0db15 5461fi
07a0db15 5462
57aa50d4
TT
5463
5464fi
5465if test -z "$ac_cv_path_PKG_CONFIG"; then
5466 ac_pt_PKG_CONFIG=$PKG_CONFIG
5467 # Extract the first word of "pkg-config", so it can be a program name with args.
5468set dummy pkg-config; ac_word=$2
5469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39fd3d4f 5470$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 5471if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
39fd3d4f 5472 $as_echo_n "(cached) " >&6
a64c9c13 5473else
57aa50d4 5474 case $ac_pt_PKG_CONFIG in
b0cacab0 5475 [\\/]* | ?:[\\/]*)
57aa50d4 5476 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
b0cacab0
TT
5477 ;;
5478 *)
5479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5480for as_dir in $PATH
5481do
5482 IFS=$as_save_IFS
5483 test -z "$as_dir" && as_dir=.
57aa50d4 5484 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 5485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
5486 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b0cacab0
TT
5488 break 2
5489 fi
5490done
57aa50d4 5491 done
e1052144 5492IFS=$as_save_IFS
a64c9c13 5493
b0cacab0
TT
5494 ;;
5495esac
a64c9c13 5496fi
57aa50d4
TT
5497ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5498if test -n "$ac_pt_PKG_CONFIG"; then
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
5500$as_echo "$ac_pt_PKG_CONFIG" >&6; }
a64c9c13 5501else
57aa50d4 5502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39fd3d4f 5503$as_echo "no" >&6; }
a64c9c13 5504fi
a64c9c13 5505
57aa50d4
TT
5506 if test "x$ac_pt_PKG_CONFIG" = x; then
5507 PKG_CONFIG=""
b0cacab0 5508 else
57aa50d4
TT
5509 case $cross_compiling:$ac_tool_warned in
5510yes:)
5511{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5512$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5513ac_tool_warned=yes ;;
5514esac
5515 PKG_CONFIG=$ac_pt_PKG_CONFIG
b0cacab0 5516 fi
57aa50d4
TT
5517else
5518 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
a64c9c13 5519fi
93636bde 5520
a64c9c13 5521fi
57aa50d4 5522if test -n "$PKG_CONFIG"; then
93613951
TT
5523 _pkg_min_version=0.9.0
5524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
57aa50d4 5525$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
93613951
TT
5526 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
57aa50d4 5528$as_echo "yes" >&6; }
93613951
TT
5529 else
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
57aa50d4 5531$as_echo "no" >&6; }
93613951
TT
5532 PKG_CONFIG=""
5533 fi
57aa50d4
TT
5534fi
5535LIBBLKID=
5536DEPLIBBLKID=
5537STATIC_LIBBLKID=
5538DEPSTATIC_LIBBLKID=
5539PROFILED_LIBBLKID=
5540DEPPROFILED_LIBBLKID=
5541BLKID_CMT=
d1154eb4 5542
57aa50d4
TT
5543# Check whether --enable-libblkid was given.
5544if test "${enable_libblkid+set}" = set; then :
5545 enableval=$enable_libblkid; if test "$enableval" = "no"
5546then
5547 if test -z "$PKG_CONFIG"; then
d6a4bcb5 5548 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
57aa50d4
TT
5549 fi
5550
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5552$as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
d6a4bcb5 5553if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
39fd3d4f 5554 $as_echo_n "(cached) " >&6
a64c9c13 5555else
57aa50d4 5556 ac_check_lib_save_LIBS=$LIBS
2d7583bd 5557LIBS="-lblkid -luuid $LIBS"
57aa50d4
TT
5558cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5559/* end confdefs.h. */
5560
5561/* Override any GCC internal prototype to avoid an error.
5562 Use char because int might match the return type of a GCC
5563 builtin and then its argument prototype would still apply. */
5564#ifdef __cplusplus
5565extern "C"
5566#endif
5567char blkid_get_cache ();
5568int
5569main ()
5570{
5571return blkid_get_cache ();
5572 ;
5573 return 0;
5574}
5575_ACEOF
5576if ac_fn_c_try_link "$LINENO"; then :
5577 ac_cv_lib_blkid_blkid_get_cache=yes
b0cacab0 5578else
57aa50d4 5579 ac_cv_lib_blkid_blkid_get_cache=no
a64c9c13 5580fi
57aa50d4
TT
5581rm -f core conftest.err conftest.$ac_objext \
5582 conftest$ac_exeext conftest.$ac_ext
5583LIBS=$ac_check_lib_save_LIBS
a64c9c13 5584fi
57aa50d4
TT
5585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5586$as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
d6a4bcb5 5587if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
57aa50d4
TT
5588 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5589 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
b0cacab0 5590else
d6a4bcb5 5591 as_fn_error $? "external blkid library not found" "$LINENO" 5
a64c9c13 5592fi
93636bde 5593
57aa50d4 5594 BLKID_CMT=#
5afdf37b 5595 PROFILED_LIBBLKID=$LIBBLKID
57aa50d4
TT
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
5597$as_echo "Disabling private blkid library" >&6; }
07a0db15 5598else
57aa50d4
TT
5599 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5600 DEPLIBBLKID=$LIBBLKID
5601 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5602 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5603 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5604 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5605 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5606
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
5608$as_echo "Enabling private blkid library" >&6; }
b0cacab0 5609fi
57aa50d4 5610
a64c9c13 5611else
f5dffb81
TT
5612 if test -n "$PKG_CONFIG"; then
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5614$as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5615if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5616 $as_echo_n "(cached) " >&6
5617else
5618 ac_check_lib_save_LIBS=$LIBS
5619LIBS="-lblkid $LIBS"
5620cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5621/* end confdefs.h. */
5622
5623/* Override any GCC internal prototype to avoid an error.
5624 Use char because int might match the return type of a GCC
5625 builtin and then its argument prototype would still apply. */
5626#ifdef __cplusplus
5627extern "C"
5628#endif
5629char blkid_get_cache ();
5630int
5631main ()
5632{
5633return blkid_get_cache ();
5634 ;
5635 return 0;
5636}
5637_ACEOF
5638if ac_fn_c_try_link "$LINENO"; then :
5639 ac_cv_lib_blkid_blkid_get_cache=yes
5640else
5641 ac_cv_lib_blkid_blkid_get_cache=no
5642fi
5643rm -f core conftest.err conftest.$ac_objext \
5644 conftest$ac_exeext conftest.$ac_ext
5645LIBS=$ac_check_lib_save_LIBS
5646fi
5647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5648$as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5649if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5650 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5651 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5652fi
5653
5654fi
5655if test -n "$LIBBLKID"; then
5656 BLKID_CMT=#
5657 PROFILED_LIBBLKID=$LIBBLKID
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system blkid library by default" >&5
5659$as_echo "Using system blkid library by default" >&6; }
5660else
5661 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5662 DEPLIBBLKID=$LIBBLKID
5663 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5664 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5665 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5666 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5667 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
57aa50d4 5668
f5dffb81 5669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
57aa50d4 5670$as_echo "Enabling private blkid library by default" >&6; }
f5dffb81 5671fi
57aa50d4 5672
a64c9c13 5673fi
07a0db15 5674
a64c9c13 5675
b0cacab0 5676
b0cacab0 5677
a64c9c13 5678
b0cacab0 5679
07a0db15 5680
57aa50d4 5681
3df6014a
TT
5682
5683# Check whether --enable-backtrace was given.
5684if test "${enable_backtrace+set}" = set; then :
5685 enableval=$enable_backtrace; if test "$enableval" = "no"
5686then
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
5688$as_echo "Disabling use of backtrace" >&6; }
5689 $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h
5690
5691else
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
5693$as_echo "Enabling use of backtrace" >&6; }
5694fi
5695
5696else
5697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
5698$as_echo "Enabling use of backtrace by default" >&6; }
5699
5700fi
5701
57aa50d4
TT
5702# Check whether --enable-debugfs was given.
5703if test "${enable_debugfs+set}" = set; then :
5704 enableval=$enable_debugfs; if test "$enableval" = "no"
5705then
5706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
5707$as_echo "Disabling debugfs support" >&6; }
5708 DEBUGFS_CMT="#"
b0cacab0 5709else
57aa50d4
TT
5710 DEBUGFS_CMT=
5711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
5712$as_echo "Enabling debugfs support" >&6; }
b0cacab0 5713fi
a64c9c13 5714
b0cacab0 5715else
57aa50d4
TT
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
5717$as_echo "Enabling debugfs support by default" >&6; }
5718DEBUGFS_CMT=
a64c9c13 5719
93636bde 5720fi
57aa50d4
TT
5721
5722
5723# Check whether --enable-imager was given.
5724if test "${enable_imager+set}" = set; then :
5725 enableval=$enable_imager; if test "$enableval" = "no"
5726then
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
5728$as_echo "Disabling e2image support" >&6; }
5729 IMAGER_CMT="#"
b0cacab0 5730else
57aa50d4
TT
5731 IMAGER_CMT=
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
5733$as_echo "Enabling e2image support" >&6; }
b0cacab0
TT
5734fi
5735
b0cacab0 5736else
57aa50d4
TT
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
5738$as_echo "Enabling e2image support by default" >&6; }
5739IMAGER_CMT=
5740
93636bde
TT
5741fi
5742
a64c9c13 5743
57aa50d4
TT
5744# Check whether --enable-resizer was given.
5745if test "${enable_resizer+set}" = set; then :
5746 enableval=$enable_resizer; if test "$enableval" = "no"
5747then
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
5749$as_echo "Disabling e2resize support" >&6; }
5750 RESIZER_CMT="#"
b0cacab0 5751else
57aa50d4
TT
5752 RESIZER_CMT=
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
5754$as_echo "Enabling e2resize support" >&6; }
5755fi
b0cacab0 5756
b0cacab0 5757else
57aa50d4
TT
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
5759$as_echo "Enabling e2resize support by default" >&6; }
5760RESIZER_CMT=
b0cacab0 5761
b0cacab0 5762fi
e1052144 5763
57aa50d4 5764
8d9c50c5
TT
5765# Check whether --enable-defrag was given.
5766if test "${enable_defrag+set}" = set; then :
5767 enableval=$enable_defrag; if test "$enableval" = "no"
5768then
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5770$as_echo "Disabling e4defrag support" >&6; }
5771 DEFRAG_CMT="#"
5772else
5773 DEFRAG_CMT=
5774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5775$as_echo "Enabling e4defrag support" >&6; }
5776fi
5777
5778else
6c59a665
TT
5779 if test -z "$WITH_DIET_LIBC"
5780then
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
8d9c50c5 5782$as_echo "Enabling e4defrag support by default" >&6; }
6c59a665
TT
5783 DEFRAG_CMT=
5784else
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
5786$as_echo "Disabling e4defrag support by default" >&6; }
5787 DEFRAG_CMT="#"
5788fi
8d9c50c5
TT
5789
5790fi
5791
5792
57aa50d4
TT
5793# Check whether --enable-fsck was given.
5794if test "${enable_fsck+set}" = set; then :
5795 enableval=$enable_fsck; if test "$enableval" = "no"
5796then
5797 FSCK_PROG='' FSCK_MAN=''
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
5799$as_echo "Not building fsck wrapper" >&6; }
5800else
5801 FSCK_PROG=fsck FSCK_MAN=fsck.8
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
5803$as_echo "Building fsck wrapper" >&6; }
a64c9c13
TT
5804fi
5805
57aa50d4
TT
5806else
5807 case "$host_os" in
5808 gnu*)
5809 FSCK_PROG='' FSCK_MAN=''
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
5811$as_echo "Not building fsck wrapper by default" >&6; }
5812 ;;
5813 *)
5814 FSCK_PROG=fsck FSCK_MAN=fsck.8
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
5816$as_echo "Building fsck wrapper by default" >&6; }
5817esac
b0cacab0 5818
57aa50d4 5819fi
b0cacab0 5820
93636bde 5821
b0cacab0 5822
57aa50d4
TT
5823# Check whether --enable-e2initrd-helper was given.
5824if test "${enable_e2initrd_helper+set}" = set; then :
5825 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
5826then
5827 E2INITRD_PROG='' E2INITRD_MAN=''
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
5829$as_echo "Not building e2initrd helper" >&6; }
5830else
5831 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
5833$as_echo "Building e2initrd helper" >&6; }
5834fi
a64c9c13 5835
a64c9c13 5836else
57aa50d4
TT
5837 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
5838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
5839$as_echo "Building e2initrd helper by default" >&6; }
b0cacab0 5840
a64c9c13 5841fi
e1052144 5842
57aa50d4
TT
5843
5844
5845# Check whether --enable-tls was given.
5846if test "${enable_tls+set}" = set; then :
5847 enableval=$enable_tls; if test "$enableval" = "no"
5848then
5849 try_tls=""
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
5851$as_echo "Disabling thread local support" >&6; }
5852else
5853 try_tls="yes"
5854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
5855$as_echo "Enabling thread local support" >&6; }
a64c9c13
TT
5856fi
5857
57aa50d4
TT
5858else
5859 if test -n "$WITH_DIET_LIBC"
5860then
5861 try_tls=""
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
5863$as_echo "Diet libc does not support thread local support" >&6; }
5864else
5865 try_tls="yes"
5866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
5867$as_echo "Try using thread local support by default" >&6; }
5868fi
a64c9c13 5869
93636bde 5870fi
07a0db15 5871
57aa50d4
TT
5872if test "$try_tls" = "yes"
5873then
a64c9c13 5874
57aa50d4
TT
5875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
5876$as_echo_n "checking for thread local storage (TLS) class... " >&6; }
d6a4bcb5 5877 if ${ac_cv_tls+:} false; then :
39fd3d4f 5878 $as_echo_n "(cached) " >&6
b0cacab0 5879else
b0cacab0 5880
57aa50d4
TT
5881 ax_tls_keywords="__thread __declspec(thread) none"
5882 for ax_tls_keyword in $ax_tls_keywords; do
5883 case $ax_tls_keyword in
5884 none) ac_cv_tls=none ; break ;;
5885 *)
5886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5887/* end confdefs.h. */
5888#include <stdlib.h>
5889 static void
5890 foo(void) {
5891 static $ax_tls_keyword int bar;
5892 exit(1);
5893 }
b0cacab0
TT
5894int
5895main ()
5896{
57aa50d4 5897
b0cacab0
TT
5898 ;
5899 return 0;
5900}
5901_ACEOF
57aa50d4
TT
5902if ac_fn_c_try_compile "$LINENO"; then :
5903 ac_cv_tls=$ax_tls_keyword ; break
b0cacab0 5904else
57aa50d4 5905 ac_cv_tls=none
b0cacab0 5906
b0cacab0 5907fi
e1052144 5908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57aa50d4
TT
5909 esac
5910 done
5911
b0cacab0 5912fi
b0cacab0 5913
57aa50d4
TT
5914
5915 if test "$ac_cv_tls" != "none"; then
5916
5917cat >>confdefs.h <<_ACEOF
5918#define TLS $ac_cv_tls
b0cacab0 5919_ACEOF
93636bde 5920
b0cacab0 5921 fi
57aa50d4
TT
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
5923$as_echo "$ac_cv_tls" >&6; }
b0cacab0 5924
57aa50d4 5925fi
d1154eb4 5926
57aa50d4
TT
5927# Check whether --enable-uuidd was given.
5928if test "${enable_uuidd+set}" = set; then :
5929 enableval=$enable_uuidd; if test "$enableval" = "no"
5930then
5931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
5932$as_echo "Not building uuidd" >&6; }
5933 UUIDD_CMT="#"
a64c9c13 5934else
57aa50d4
TT
5935 $as_echo "#define USE_UUIDD 1" >>confdefs.h
5936
5937 UUIDD_CMT=""
5938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
5939$as_echo "Building uuidd" >&6; }
5940fi
a64c9c13 5941
a64c9c13 5942else
57aa50d4 5943 $as_echo "#define USE_UUIDD 1" >>confdefs.h
a64c9c13 5944
e3d10158
TT
5945if test -z "$UUID_CMT"
5946then
5947 UUIDD_CMT=""
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
57aa50d4 5949$as_echo "Building uuidd by default" >&6; }
e3d10158
TT
5950else
5951 UUIDD_CMT="#"
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling uuidd by default" >&5
5953$as_echo "Disabling uuidd by default" >&6; }
5954fi
e1052144 5955
a64c9c13 5956fi
e1052144 5957
93636bde 5958
d6a4bcb5
TB
5959
5960# Check whether --enable-mmp was given.
5961if test "${enable_mmp+set}" = set; then :
5962 enableval=$enable_mmp; if test "$enableval" = "no"
5963then
5964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5
5965$as_echo "Disabling mmp support" >&6; }
5966else
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5
5968$as_echo "Enabling mmp support" >&6; }
5969 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
5970
5971fi
5972
5973else
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
5975$as_echo "Enabling mmp support by default" >&6; }
5976$as_echo "#define CONFIG_MMP 1" >>confdefs.h
5977
5978
1625bf42
TB
5979fi
5980
5981
749f0712
TT
5982# Check whether --enable-tdb was given.
5983if test "${enable_tdb+set}" = set; then :
5984 enableval=$enable_tdb; if test "$enableval" = "no"
5985then
5986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling tdb support" >&5
5987$as_echo "Disabling tdb support" >&6; }
5988 TDB_CMT="#"
5989 TDB_MAN_COMMENT='.\"'
5990else
5991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling tdb support" >&5
5992$as_echo "Enabling tdb support" >&6; }
5993 $as_echo "#define CONFIG_TDB 1" >>confdefs.h
5994
5995 TDB_CMT=""
5996 TDB_MAN_COMMENT=""
5997fi
5998
5999else
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
6001$as_echo "Enabling mmp support by default" >&6; }
6002$as_echo "#define CONFIG_TDB 1" >>confdefs.h
6003
6004TDB_CMT=""
6005TDB_MAN_COMMENT=""
6006
6007fi
6008
6009
6010
6011
1625bf42
TB
6012# Check whether --enable-bmap-stats was given.
6013if test "${enable_bmap_stats+set}" = set; then :
6014 enableval=$enable_bmap_stats; if test "$enableval" = "no"
6015then
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5
6017$as_echo "Disabling bitmap statistics support" >&6; }
6018else
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5
6020$as_echo "Enabling bitmap statistics support" >&6; }
6021 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
6022
6023fi
6024
6025else
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5
6027$as_echo "Enabling bitmap statistics support by default" >&6; }
6028$as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
6029
6030
6031fi
6032
6033
6034# Check whether --enable-bmap-stats-ops was given.
6035if test "${enable_bmap_stats_ops+set}" = set; then :
6036 enableval=$enable_bmap_stats_ops; if test "$enableval" = "no"
6037then
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5
6039$as_echo "Disabling additional bitmap statistics" >&6; }
6040else
6041 if test "x${enable_bmap_stats}" = "xno"; then :
6042 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6043$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6044as_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats
6045See \`config.log' for more details" "$LINENO" 5; }
6046fi
6047
6048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5
6049$as_echo "Enabling additional bitmap statistics" >&6; }
6050 $as_echo "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h
6051
6052fi
6053
6054else
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5
6056$as_echo "Disabling additional bitmap statistics by default" >&6; }
6057
d6a4bcb5
TB
6058fi
6059
57aa50d4 6060MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
a64c9c13 6061
57aa50d4
TT
6062GETTEXT_PACKAGE=e2fsprogs
6063PACKAGE=e2fsprogs
6064VERSION="$E2FSPROGS_VERSION"
6065VERSION=0.14.1
d1154eb4 6066
57aa50d4
TT
6067cat >>confdefs.h <<_ACEOF
6068#define PACKAGE "$PACKAGE"
b0cacab0 6069_ACEOF
a64c9c13 6070
d1154eb4 6071
57aa50d4
TT
6072cat >>confdefs.h <<_ACEOF
6073#define VERSION "$VERSION"
6074_ACEOF
6075
6076
6077
6078
6079
6080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6081$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6082set x ${MAKE-make}
6083ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
d6a4bcb5 6084if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
39fd3d4f 6085 $as_echo_n "(cached) " >&6
b0cacab0 6086else
57aa50d4
TT
6087 cat >conftest.make <<\_ACEOF
6088SHELL = /bin/sh
6089all:
6090 @echo '@@@%%%=$(MAKE)=@@@%%%'
b0cacab0 6091_ACEOF
d6a4bcb5 6092# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
57aa50d4
TT
6093case `${MAKE-make} -f conftest.make 2>/dev/null` in
6094 *@@@%%%=?*=@@@%%%*)
6095 eval ac_cv_prog_make_${ac_make}_set=yes;;
6096 *)
6097 eval ac_cv_prog_make_${ac_make}_set=no;;
e1052144 6098esac
57aa50d4
TT
6099rm -f conftest.make
6100fi
6101if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6103$as_echo "yes" >&6; }
6104 SET_MAKE=
39fd3d4f 6105else
57aa50d4
TT
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6107$as_echo "no" >&6; }
6108 SET_MAKE="MAKE=${MAKE-make}"
39fd3d4f
SJR
6109fi
6110
57aa50d4
TT
6111# Find a good install program. We prefer a C program (faster),
6112# so one script is as good as another. But avoid the broken or
6113# incompatible versions:
6114# SysV /etc/install, /usr/sbin/install
6115# SunOS /usr/etc/install
6116# IRIX /sbin/install
6117# AIX /bin/install
6118# AmigaOS /C/install, which installs bootblocks on floppy discs
6119# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6120# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6121# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6122# OS/2's system install, which has a completely different semantic
6123# ./install, which can be erroneously created by make from ./install.sh.
6124# Reject install programs that cannot install multiple files.
6125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
6126$as_echo_n "checking for a BSD-compatible install... " >&6; }
6127if test -z "$INSTALL"; then
d6a4bcb5 6128if ${ac_cv_path_install+:} false; then :
57aa50d4 6129 $as_echo_n "(cached) " >&6
93636bde 6130else
57aa50d4
TT
6131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6132for as_dir in $PATH
6133do
6134 IFS=$as_save_IFS
6135 test -z "$as_dir" && as_dir=.
6136 # Account for people who put trailing slashes in PATH elements.
6137case $as_dir/ in #((
6138 ./ | .// | /[cC]/* | \
6139 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6140 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
6141 /usr/ucb/* ) ;;
6142 *)
6143 # OSF1 and SCO ODT 3.0 have their own names for install.
6144 # Don't use installbsd from OSF since it installs stuff as root
6145 # by default.
6146 for ac_prog in ginstall scoinst install; do
6147 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 6148 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
57aa50d4
TT
6149 if test $ac_prog = install &&
6150 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6151 # AIX install. It has an incompatible calling convention.
6152 :
6153 elif test $ac_prog = install &&
6154 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6155 # program-specific install script used by HP pwplus--don't use.
6156 :
6157 else
6158 rm -rf conftest.one conftest.two conftest.dir
6159 echo one > conftest.one
6160 echo two > conftest.two
6161 mkdir conftest.dir
6162 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6163 test -s conftest.one && test -s conftest.two &&
6164 test -s conftest.dir/conftest.one &&
6165 test -s conftest.dir/conftest.two
6166 then
6167 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6168 break 3
6169 fi
6170 fi
6171 fi
6172 done
6173 done
6174 ;;
6175esac
6176
6177 done
6178IFS=$as_save_IFS
b0cacab0 6179
57aa50d4 6180rm -rf conftest.one conftest.two conftest.dir
39fd3d4f 6181
93636bde 6182fi
57aa50d4
TT
6183 if test "${ac_cv_path_install+set}" = set; then
6184 INSTALL=$ac_cv_path_install
6185 else
6186 # As a last resort, use the slow shell script. Don't cache a
6187 # value for INSTALL within a source directory, because that will
6188 # break other packages using the cache if that directory is
6189 # removed, or if the value is a relative name.
6190 INSTALL=$ac_install_sh
6191 fi
93636bde 6192fi
57aa50d4
TT
6193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
6194$as_echo "$INSTALL" >&6; }
a64c9c13 6195
57aa50d4
TT
6196# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6197# It thinks the first close brace ends the variable substitution.
6198test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
b0cacab0 6199
57aa50d4 6200test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
a64c9c13 6201
57aa50d4 6202test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
39fd3d4f 6203
93613951
TT
6204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6205$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6206if test -z "$MKDIR_P"; then
6207 if ${ac_cv_path_mkdir+:} false; then :
6208 $as_echo_n "(cached) " >&6
6209else
6210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6211for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6212do
6213 IFS=$as_save_IFS
6214 test -z "$as_dir" && as_dir=.
6215 for ac_prog in mkdir gmkdir; do
6216 for ac_exec_ext in '' $ac_executable_extensions; do
6217 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
6218 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6219 'mkdir (GNU coreutils) '* | \
6220 'mkdir (coreutils) '* | \
6221 'mkdir (fileutils) '4.1*)
6222 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6223 break 3;;
6224 esac
6225 done
6226 done
6227 done
6228IFS=$as_save_IFS
6229
6230fi
39fd3d4f 6231
93613951
TT
6232 test -d ./--version && rmdir ./--version
6233 if test "${ac_cv_path_mkdir+set}" = set; then
6234 MKDIR_P="$ac_cv_path_mkdir -p"
6235 else
6236 # As a last resort, use the slow shell script. Don't cache a
6237 # value for MKDIR_P within a source directory, because that will
6238 # break other packages using the cache if that directory is
6239 # removed, or if the value is a relative name.
6240 MKDIR_P="$ac_install_sh -d"
57aa50d4 6241 fi
93613951
TT
6242fi
6243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6244$as_echo "$MKDIR_P" >&6; }
6245
6246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6247$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6248if ${ac_cv_path_SED+:} false; then :
6249 $as_echo_n "(cached) " >&6
6250else
6251 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6252 for ac_i in 1 2 3 4 5 6 7; do
6253 ac_script="$ac_script$as_nl$ac_script"
6254 done
6255 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6256 { ac_script=; unset ac_script;}
6257 if test -z "$SED"; then
6258 ac_path_SED_found=false
6259 # Loop through the user's path and test for each of PROGNAME-LIST
6260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6261for as_dir in $PATH
6262do
6263 IFS=$as_save_IFS
6264 test -z "$as_dir" && as_dir=.
6265 for ac_prog in sed gsed; do
6266 for ac_exec_ext in '' $ac_executable_extensions; do
6267 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6268 as_fn_executable_p "$ac_path_SED" || continue
6269# Check for GNU ac_path_SED and select it if it is found.
6270 # Check for GNU $ac_path_SED
6271case `"$ac_path_SED" --version 2>&1` in
6272*GNU*)
6273 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6274*)
6275 ac_count=0
6276 $as_echo_n 0123456789 >"conftest.in"
6277 while :
6278 do
6279 cat "conftest.in" "conftest.in" >"conftest.tmp"
6280 mv "conftest.tmp" "conftest.in"
6281 cp "conftest.in" "conftest.nl"
6282 $as_echo '' >> "conftest.nl"
6283 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6284 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6285 as_fn_arith $ac_count + 1 && ac_count=$as_val
6286 if test $ac_count -gt ${ac_path_SED_max-0}; then
6287 # Best one so far, save it but keep looking for a better one
6288 ac_cv_path_SED="$ac_path_SED"
6289 ac_path_SED_max=$ac_count
6290 fi
6291 # 10*(2^10) chars as input seems more than enough
6292 test $ac_count -gt 10 && break
6293 done
6294 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6295esac
6296
6297 $ac_path_SED_found && break 3
6298 done
6299 done
6300 done
6301IFS=$as_save_IFS
6302 if test -z "$ac_cv_path_SED"; then
6303 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
57aa50d4 6304 fi
93613951
TT
6305else
6306 ac_cv_path_SED=$SED
6307fi
b0cacab0 6308
93613951
TT
6309fi
6310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6311$as_echo "$ac_cv_path_SED" >&6; }
6312 SED="$ac_cv_path_SED"
6313 rm -f conftest.sed
39fd3d4f 6314
e1052144 6315
57aa50d4
TT
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
6317$as_echo_n "checking whether NLS is requested... " >&6; }
6318 # Check whether --enable-nls was given.
6319if test "${enable_nls+set}" = set; then :
6320 enableval=$enable_nls; USE_NLS=$enableval
b0cacab0 6321else
57aa50d4
TT
6322 USE_NLS=yes
6323fi
b0cacab0 6324
57aa50d4
TT
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6326$as_echo "$USE_NLS" >&6; }
93636bde 6327
a64c9c13 6328
a64c9c13 6329
b0cacab0 6330
93613951
TT
6331 GETTEXT_MACRO_VERSION=0.18
6332
6333
b0cacab0 6334
a64c9c13 6335
57aa50d4
TT
6336# Prepare PATH_SEPARATOR.
6337# The user is always right.
6338if test "${PATH_SEPARATOR+set}" != set; then
93613951
TT
6339 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6340 # contains only /bin. Note that ksh looks also at the FPATH variable,
6341 # so we have to set that as well for the test.
6342 PATH_SEPARATOR=:
6343 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6344 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6345 || PATH_SEPARATOR=';'
6346 }
57aa50d4 6347fi
b0cacab0 6348
57aa50d4
TT
6349# Find out how to test for executable files. Don't use a zero-byte file,
6350# as systems may use methods other than mode bits to determine executability.
6351cat >conf$$.file <<_ASEOF
6352#! /bin/sh
6353exit 0
6354_ASEOF
6355chmod +x conf$$.file
6356if test -x conf$$.file >/dev/null 2>&1; then
6357 ac_executable_p="test -x"
6358else
6359 ac_executable_p="test -f"
6360fi
6361rm -f conf$$.file
b0cacab0 6362
57aa50d4
TT
6363# Extract the first word of "msgfmt", so it can be a program name with args.
6364set dummy msgfmt; ac_word=$2
6365{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6366$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 6367if ${ac_cv_path_MSGFMT+:} false; then :
39fd3d4f 6368 $as_echo_n "(cached) " >&6
93636bde 6369else
57aa50d4
TT
6370 case "$MSGFMT" in
6371 [\\/]* | ?:[\\/]*)
6372 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6373 ;;
6374 *)
6375 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6376 for ac_dir in $PATH; do
6377 IFS="$ac_save_IFS"
6378 test -z "$ac_dir" && ac_dir=.
6379 for ac_exec_ext in '' $ac_executable_extensions; do
6380 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
93613951
TT
6381 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6382 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
57aa50d4
TT
6383 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6384 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6385 break 2
6386 fi
6387 fi
6388 done
6389 done
6390 IFS="$ac_save_IFS"
6391 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6392 ;;
e1052144 6393esac
b0cacab0 6394fi
57aa50d4
TT
6395MSGFMT="$ac_cv_path_MSGFMT"
6396if test "$MSGFMT" != ":"; then
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
6398$as_echo "$MSGFMT" >&6; }
6399else
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6401$as_echo "no" >&6; }
b0cacab0 6402fi
a64c9c13 6403
57aa50d4
TT
6404 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6405set dummy gmsgfmt; ac_word=$2
6406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6407$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 6408if ${ac_cv_path_GMSGFMT+:} false; then :
39fd3d4f 6409 $as_echo_n "(cached) " >&6
93636bde 6410else
57aa50d4
TT
6411 case $GMSGFMT in
6412 [\\/]* | ?:[\\/]*)
6413 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6414 ;;
6415 *)
6416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6417for as_dir in $PATH
6418do
6419 IFS=$as_save_IFS
6420 test -z "$as_dir" && as_dir=.
6421 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 6422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
6423 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
6424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6425 break 2
6426 fi
6427done
6428 done
6429IFS=$as_save_IFS
a64c9c13 6430
57aa50d4
TT
6431 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6432 ;;
e1052144 6433esac
57aa50d4
TT
6434fi
6435GMSGFMT=$ac_cv_path_GMSGFMT
6436if test -n "$GMSGFMT"; then
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
6438$as_echo "$GMSGFMT" >&6; }
b0cacab0 6439else
57aa50d4
TT
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6441$as_echo "no" >&6; }
b0cacab0 6442fi
e1052144 6443
b0cacab0 6444
b0cacab0 6445
93613951
TT
6446 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6447 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
6448 *) MSGFMT_015=$MSGFMT ;;
6449 esac
6450
6451 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6452 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
6453 *) GMSGFMT_015=$GMSGFMT ;;
6454 esac
6455
6456
57aa50d4
TT
6457
6458# Prepare PATH_SEPARATOR.
6459# The user is always right.
6460if test "${PATH_SEPARATOR+set}" != set; then
93613951
TT
6461 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6462 # contains only /bin. Note that ksh looks also at the FPATH variable,
6463 # so we have to set that as well for the test.
6464 PATH_SEPARATOR=:
6465 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6466 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6467 || PATH_SEPARATOR=';'
6468 }
57aa50d4 6469fi
b0cacab0 6470
57aa50d4
TT
6471# Find out how to test for executable files. Don't use a zero-byte file,
6472# as systems may use methods other than mode bits to determine executability.
6473cat >conf$$.file <<_ASEOF
6474#! /bin/sh
6475exit 0
6476_ASEOF
6477chmod +x conf$$.file
6478if test -x conf$$.file >/dev/null 2>&1; then
6479 ac_executable_p="test -x"
6480else
6481 ac_executable_p="test -f"
6482fi
6483rm -f conf$$.file
b0cacab0 6484
57aa50d4
TT
6485# Extract the first word of "xgettext", so it can be a program name with args.
6486set dummy xgettext; ac_word=$2
6487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6488$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 6489if ${ac_cv_path_XGETTEXT+:} false; then :
39fd3d4f 6490 $as_echo_n "(cached) " >&6
a64c9c13 6491else
57aa50d4
TT
6492 case "$XGETTEXT" in
6493 [\\/]* | ?:[\\/]*)
6494 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6495 ;;
6496 *)
6497 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6498 for ac_dir in $PATH; do
6499 IFS="$ac_save_IFS"
6500 test -z "$ac_dir" && ac_dir=.
6501 for ac_exec_ext in '' $ac_executable_extensions; do
6502 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
93613951
TT
6503 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6504 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
57aa50d4
TT
6505 (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
6506 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6507 break 2
6508 fi
6509 fi
6510 done
6511 done
6512 IFS="$ac_save_IFS"
6513 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6514 ;;
e1052144 6515esac
b0cacab0 6516fi
57aa50d4
TT
6517XGETTEXT="$ac_cv_path_XGETTEXT"
6518if test "$XGETTEXT" != ":"; then
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
6520$as_echo "$XGETTEXT" >&6; }
6521else
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6523$as_echo "no" >&6; }
b0cacab0 6524fi
b0cacab0 6525
57aa50d4 6526 rm -f messages.po
a64c9c13 6527
93613951
TT
6528 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6529 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
6530 *) XGETTEXT_015=$XGETTEXT ;;
6531 esac
6532
6533
b0cacab0 6534
57aa50d4
TT
6535# Prepare PATH_SEPARATOR.
6536# The user is always right.
6537if test "${PATH_SEPARATOR+set}" != set; then
93613951
TT
6538 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6539 # contains only /bin. Note that ksh looks also at the FPATH variable,
6540 # so we have to set that as well for the test.
6541 PATH_SEPARATOR=:
6542 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6543 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6544 || PATH_SEPARATOR=';'
6545 }
57aa50d4 6546fi
b0cacab0 6547
57aa50d4
TT
6548# Find out how to test for executable files. Don't use a zero-byte file,
6549# as systems may use methods other than mode bits to determine executability.
6550cat >conf$$.file <<_ASEOF
6551#! /bin/sh
6552exit 0
6553_ASEOF
6554chmod +x conf$$.file
6555if test -x conf$$.file >/dev/null 2>&1; then
6556 ac_executable_p="test -x"
6557else
6558 ac_executable_p="test -f"
6559fi
6560rm -f conf$$.file
6561
6562# Extract the first word of "msgmerge", so it can be a program name with args.
6563set dummy msgmerge; ac_word=$2
6564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6565$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 6566if ${ac_cv_path_MSGMERGE+:} false; then :
39fd3d4f 6567 $as_echo_n "(cached) " >&6
b0cacab0 6568else
57aa50d4
TT
6569 case "$MSGMERGE" in
6570 [\\/]* | ?:[\\/]*)
6571 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6572 ;;
6573 *)
6574 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6575 for ac_dir in $PATH; do
6576 IFS="$ac_save_IFS"
6577 test -z "$ac_dir" && ac_dir=.
6578 for ac_exec_ext in '' $ac_executable_extensions; do
6579 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
93613951
TT
6580 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6581 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
57aa50d4
TT
6582 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6583 break 2
6584 fi
6585 fi
6586 done
6587 done
6588 IFS="$ac_save_IFS"
6589 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6590 ;;
e1052144 6591esac
57aa50d4
TT
6592fi
6593MSGMERGE="$ac_cv_path_MSGMERGE"
6594if test "$MSGMERGE" != ":"; then
6595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
6596$as_echo "$MSGMERGE" >&6; }
b0cacab0 6597else
57aa50d4
TT
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6599$as_echo "no" >&6; }
b0cacab0 6600fi
e1052144 6601
93636bde 6602
93613951
TT
6603 test -n "$localedir" || localedir='${datadir}/locale'
6604
6605
6606 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
6607
6608
6609 ac_config_commands="$ac_config_commands po-directories"
a64c9c13 6610
a64c9c13 6611
93613951
TT
6612
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
6614$as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
6615if ${ac_cv_gnu_library_2+:} false; then :
6616 $as_echo_n "(cached) " >&6
6617else
6618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6619/* end confdefs.h. */
6620
6621#include <features.h>
6622#ifdef __GNU_LIBRARY__
6623 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
6624 Lucky GNU user
6625 #endif
6626#endif
6627
6628_ACEOF
6629if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6630 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
6631 ac_cv_gnu_library_2=yes
6632else
6633 ac_cv_gnu_library_2=no
6634fi
6635rm -f conftest*
6636
a64c9c13 6637
a64c9c13 6638
93613951
TT
6639fi
6640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
6641$as_echo "$ac_cv_gnu_library_2" >&6; }
6642
6643 GLIBC2="$ac_cv_gnu_library_2"
57aa50d4 6644
a64c9c13 6645
57aa50d4
TT
6646if test -n "$ac_tool_prefix"; then
6647 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6648set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6650$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 6651if ${ac_cv_prog_RANLIB+:} false; then :
39fd3d4f 6652 $as_echo_n "(cached) " >&6
b0cacab0 6653else
57aa50d4
TT
6654 if test -n "$RANLIB"; then
6655 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
b0cacab0 6656else
57aa50d4
TT
6657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6658for as_dir in $PATH
6659do
6660 IFS=$as_save_IFS
6661 test -z "$as_dir" && as_dir=.
6662 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 6663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
6664 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6666 break 2
6667 fi
6668done
6669 done
6670IFS=$as_save_IFS
d1154eb4
TT
6671
6672fi
6673fi
6674RANLIB=$ac_cv_prog_RANLIB
6675if test -n "$RANLIB"; then
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6677$as_echo "$RANLIB" >&6; }
6678else
6679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6680$as_echo "no" >&6; }
6681fi
6682
6683
6684fi
6685if test -z "$ac_cv_prog_RANLIB"; then
6686 ac_ct_RANLIB=$RANLIB
6687 # Extract the first word of "ranlib", so it can be a program name with args.
6688set dummy ranlib; ac_word=$2
6689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6690$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 6691if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
d1154eb4
TT
6692 $as_echo_n "(cached) " >&6
6693else
6694 if test -n "$ac_ct_RANLIB"; then
6695 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6696else
6697as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6698for as_dir in $PATH
6699do
6700 IFS=$as_save_IFS
6701 test -z "$as_dir" && as_dir=.
6702 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 6703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
d1154eb4
TT
6704 ac_cv_prog_ac_ct_RANLIB="ranlib"
6705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6706 break 2
6707 fi
6708done
6709 done
6710IFS=$as_save_IFS
6711
6712fi
6713fi
6714ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6715if test -n "$ac_ct_RANLIB"; then
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6717$as_echo "$ac_ct_RANLIB" >&6; }
6718else
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6720$as_echo "no" >&6; }
6721fi
6722
6723 if test "x$ac_ct_RANLIB" = x; then
6724 RANLIB=":"
6725 else
6726 case $cross_compiling:$ac_tool_warned in
6727yes:)
6728{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6729$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6730ac_tool_warned=yes ;;
6731esac
6732 RANLIB=$ac_ct_RANLIB
6733 fi
6734else
6735 RANLIB="$ac_cv_prog_RANLIB"
6736fi
6737
6738
93613951
TT
6739
6740 CFLAG_VISIBILITY=
6741 HAVE_VISIBILITY=0
6742 if test -n "$GCC"; then
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
6744$as_echo_n "checking whether the -Werror option is usable... " >&6; }
6745 if ${gl_cv_cc_vis_werror+:} false; then :
d1154eb4
TT
6746 $as_echo_n "(cached) " >&6
6747else
93613951
TT
6748
6749 gl_save_CFLAGS="$CFLAGS"
6750 CFLAGS="$CFLAGS -Werror"
6751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d1154eb4
TT
6752/* end confdefs.h. */
6753
d1154eb4
TT
6754int
6755main ()
6756{
93613951 6757
d1154eb4
TT
6758 ;
6759 return 0;
6760}
6761_ACEOF
93613951
TT
6762if ac_fn_c_try_compile "$LINENO"; then :
6763 gl_cv_cc_vis_werror=yes
d1154eb4 6764else
93613951 6765 gl_cv_cc_vis_werror=no
d1154eb4 6766fi
93613951
TT
6767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6768 CFLAGS="$gl_save_CFLAGS"
d1154eb4
TT
6769fi
6770
93613951
TT
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
6772$as_echo "$gl_cv_cc_vis_werror" >&6; }
6773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
6774$as_echo_n "checking for simple visibility declarations... " >&6; }
6775 if ${gl_cv_cc_visibility+:} false; then :
6776 $as_echo_n "(cached) " >&6
6777else
d1154eb4 6778
93613951
TT
6779 gl_save_CFLAGS="$CFLAGS"
6780 CFLAGS="$CFLAGS -fvisibility=hidden"
6781 if test $gl_cv_cc_vis_werror = yes; then
6782 CFLAGS="$CFLAGS -Werror"
6783 fi
6784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6785/* end confdefs.h. */
6786extern __attribute__((__visibility__("hidden"))) int hiddenvar;
6787 extern __attribute__((__visibility__("default"))) int exportedvar;
6788 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
6789 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
6790 void dummyfunc (void) {}
d1154eb4 6791
93613951
TT
6792int
6793main ()
6794{
d1154eb4 6795
93613951
TT
6796 ;
6797 return 0;
6798}
6799_ACEOF
6800if ac_fn_c_try_compile "$LINENO"; then :
6801 gl_cv_cc_visibility=yes
d1154eb4 6802else
93613951
TT
6803 gl_cv_cc_visibility=no
6804fi
6805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6806 CFLAGS="$gl_save_CFLAGS"
6807fi
d1154eb4 6808
93613951
TT
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
6810$as_echo "$gl_cv_cc_visibility" >&6; }
6811 if test $gl_cv_cc_visibility = yes; then
6812 CFLAG_VISIBILITY="-fvisibility=hidden"
6813 HAVE_VISIBILITY=1
6814 fi
d1154eb4 6815 fi
d1154eb4 6816
d1154eb4
TT
6817
6818
93613951
TT
6819cat >>confdefs.h <<_ACEOF
6820#define HAVE_VISIBILITY $HAVE_VISIBILITY
6821_ACEOF
6822
6823
6824{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
6825$as_echo_n "checking for inline... " >&6; }
6826if ${ac_cv_c_inline+:} false; then :
57aa50d4
TT
6827 $as_echo_n "(cached) " >&6
6828else
93613951
TT
6829 ac_cv_c_inline=no
6830for ac_kw in inline __inline__ __inline; do
d1154eb4
TT
6831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6832/* end confdefs.h. */
93613951
TT
6833#ifndef __cplusplus
6834typedef int foo_t;
6835static $ac_kw foo_t static_foo () {return 0; }
6836$ac_kw foo_t foo () {return 0; }
6837#endif
d1154eb4 6838
d1154eb4
TT
6839_ACEOF
6840if ac_fn_c_try_compile "$LINENO"; then :
93613951 6841 ac_cv_c_inline=$ac_kw
57aa50d4 6842fi
d1154eb4 6843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
93613951
TT
6844 test "$ac_cv_c_inline" != no && break
6845done
d1154eb4 6846
d1154eb4 6847fi
93613951
TT
6848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
6849$as_echo "$ac_cv_c_inline" >&6; }
d1154eb4 6850
93613951
TT
6851case $ac_cv_c_inline in
6852 inline | yes) ;;
6853 *)
6854 case $ac_cv_c_inline in
6855 no) ac_val=;;
6856 *) ac_val=$ac_cv_c_inline;;
6857 esac
6858 cat >>confdefs.h <<_ACEOF
6859#ifndef __cplusplus
6860#define inline $ac_val
6861#endif
d1154eb4 6862_ACEOF
93613951
TT
6863 ;;
6864esac
d1154eb4 6865
93613951
TT
6866ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
6867if test "x$ac_cv_type_size_t" = xyes; then :
d1154eb4 6868
57aa50d4 6869else
d1154eb4 6870
93613951
TT
6871cat >>confdefs.h <<_ACEOF
6872#define size_t unsigned int
d1154eb4 6873_ACEOF
b0cacab0 6874
57aa50d4 6875fi
b0cacab0
TT
6876
6877
93613951
TT
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
6879$as_echo_n "checking for stdint.h... " >&6; }
6880if ${gl_cv_header_stdint_h+:} false; then :
57aa50d4 6881 $as_echo_n "(cached) " >&6
b0cacab0 6882else
d1154eb4 6883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 6884/* end confdefs.h. */
93613951
TT
6885#include <sys/types.h>
6886 #include <stdint.h>
a64c9c13 6887int
b0cacab0
TT
6888main ()
6889{
93613951 6890uintmax_t i = (uintmax_t) -1; return !i;
d1154eb4 6891 ;
b0cacab0 6892 return 0;
a64c9c13 6893}
b0cacab0 6894_ACEOF
d1154eb4 6895if ac_fn_c_try_compile "$LINENO"; then :
93613951 6896 gl_cv_header_stdint_h=yes
b0cacab0 6897else
93613951 6898 gl_cv_header_stdint_h=no
b0cacab0 6899fi
d1154eb4 6900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
d1154eb4 6901fi
93613951
TT
6902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
6903$as_echo "$gl_cv_header_stdint_h" >&6; }
6904 if test $gl_cv_header_stdint_h = yes; then
b0cacab0 6905
93613951
TT
6906cat >>confdefs.h <<_ACEOF
6907#define HAVE_STDINT_H_WITH_UINTMAX 1
d1154eb4 6908_ACEOF
b0cacab0 6909
93613951 6910 fi
b0cacab0 6911
93613951
TT
6912# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6913# for constant arguments. Useless!
6914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
6915$as_echo_n "checking for working alloca.h... " >&6; }
6916if ${ac_cv_working_alloca_h+:} false; then :
39fd3d4f 6917 $as_echo_n "(cached) " >&6
a64c9c13 6918else
57aa50d4 6919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 6920/* end confdefs.h. */
93613951 6921#include <alloca.h>
57aa50d4
TT
6922int
6923main ()
6924{
93613951
TT
6925char *p = (char *) alloca (2 * sizeof (int));
6926 if (p) return 0;
57aa50d4
TT
6927 ;
6928 return 0;
6929}
b0cacab0 6930_ACEOF
93613951
TT
6931if ac_fn_c_try_link "$LINENO"; then :
6932 ac_cv_working_alloca_h=yes
b0cacab0 6933else
93613951 6934 ac_cv_working_alloca_h=no
57aa50d4 6935fi
93613951
TT
6936rm -f core conftest.err conftest.$ac_objext \
6937 conftest$ac_exeext conftest.$ac_ext
57aa50d4 6938fi
93613951
TT
6939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
6940$as_echo "$ac_cv_working_alloca_h" >&6; }
6941if test $ac_cv_working_alloca_h = yes; then
57aa50d4 6942
93613951 6943$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
57aa50d4 6944
a64c9c13 6945fi
b0cacab0 6946
93613951
TT
6947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
6948$as_echo_n "checking for alloca... " >&6; }
6949if ${ac_cv_func_alloca_works+:} false; then :
57aa50d4 6950 $as_echo_n "(cached) " >&6
b0cacab0 6951else
57aa50d4 6952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 6953/* end confdefs.h. */
93613951
TT
6954#ifdef __GNUC__
6955# define alloca __builtin_alloca
6956#else
6957# ifdef _MSC_VER
6958# include <malloc.h>
6959# define alloca _alloca
6960# else
6961# ifdef HAVE_ALLOCA_H
6962# include <alloca.h>
6963# else
6964# ifdef _AIX
6965 #pragma alloca
6966# else
6967# ifndef alloca /* predefined by HP cc +Olibcalls */
6968void *alloca (size_t);
6969# endif
6970# endif
6971# endif
6972# endif
6973#endif
b0cacab0 6974
57aa50d4
TT
6975int
6976main ()
b0cacab0 6977{
93613951
TT
6978char *p = (char *) alloca (1);
6979 if (p) return 0;
57aa50d4
TT
6980 ;
6981 return 0;
b0cacab0
TT
6982}
6983_ACEOF
93613951
TT
6984if ac_fn_c_try_link "$LINENO"; then :
6985 ac_cv_func_alloca_works=yes
b0cacab0 6986else
93613951 6987 ac_cv_func_alloca_works=no
57aa50d4 6988fi
93613951
TT
6989rm -f core conftest.err conftest.$ac_objext \
6990 conftest$ac_exeext conftest.$ac_ext
57aa50d4 6991fi
93613951
TT
6992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
6993$as_echo "$ac_cv_func_alloca_works" >&6; }
57aa50d4 6994
93613951 6995if test $ac_cv_func_alloca_works = yes; then
57aa50d4 6996
93613951 6997$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
57aa50d4 6998
b0cacab0 6999else
93613951
TT
7000 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7001# that cause trouble. Some versions do not even contain alloca or
7002# contain a buggy version. If you still want to use their alloca,
7003# use ar to extract alloca.o from them instead of compiling alloca.c.
b0cacab0 7004
93613951 7005ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
57aa50d4 7006
93613951 7007$as_echo "#define C_ALLOCA 1" >>confdefs.h
57aa50d4 7008
57aa50d4 7009
93613951
TT
7010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
7011$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
7012if ${ac_cv_os_cray+:} false; then :
57aa50d4
TT
7013 $as_echo_n "(cached) " >&6
7014else
57aa50d4
TT
7015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7016/* end confdefs.h. */
93613951
TT
7017#if defined CRAY && ! defined CRAY2
7018webecray
7019#else
7020wenotbecray
57aa50d4 7021#endif
b0cacab0 7022
57aa50d4 7023_ACEOF
93613951
TT
7024if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7025 $EGREP "webecray" >/dev/null 2>&1; then :
7026 ac_cv_os_cray=yes
7027else
7028 ac_cv_os_cray=no
a64c9c13 7029fi
93613951 7030rm -f conftest*
d1154eb4
TT
7031
7032fi
93613951
TT
7033{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
7034$as_echo "$ac_cv_os_cray" >&6; }
7035if test $ac_cv_os_cray = yes; then
7036 for ac_func in _getb67 GETB67 getb67; do
7037 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7038ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7039if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
e1052144 7040
57aa50d4 7041cat >>confdefs.h <<_ACEOF
93613951 7042#define CRAY_STACKSEG_END $ac_func
57aa50d4 7043_ACEOF
e1052144 7044
93613951 7045 break
a64c9c13 7046fi
07a0db15 7047
93613951 7048 done
57aa50d4 7049fi
b0cacab0 7050
93613951
TT
7051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7052$as_echo_n "checking stack direction for C alloca... " >&6; }
7053if ${ac_cv_c_stack_direction+:} false; then :
39fd3d4f 7054 $as_echo_n "(cached) " >&6
93613951
TT
7055else
7056 if test "$cross_compiling" = yes; then :
7057 ac_cv_c_stack_direction=0
b0cacab0 7058else
57aa50d4 7059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 7060/* end confdefs.h. */
93613951 7061$ac_includes_default
b0cacab0 7062int
93613951 7063find_stack_direction (int *addr, int depth)
b0cacab0 7064{
93613951
TT
7065 int dir, dummy = 0;
7066 if (! addr)
7067 addr = &dummy;
7068 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7069 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7070 return dir + dummy;
b0cacab0 7071}
93636bde 7072
b0cacab0 7073int
93613951 7074main (int argc, char **argv)
b0cacab0 7075{
93613951 7076 return find_stack_direction (0, argc + !argv + 20) < 0;
b0cacab0
TT
7077}
7078_ACEOF
93613951
TT
7079if ac_fn_c_try_run "$LINENO"; then :
7080 ac_cv_c_stack_direction=1
a64c9c13 7081else
93613951 7082 ac_cv_c_stack_direction=-1
b0cacab0 7083fi
93613951
TT
7084rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7085 conftest.$ac_objext conftest.beam conftest.$ac_ext
b0cacab0 7086fi
b0cacab0 7087
93613951
TT
7088fi
7089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7090$as_echo "$ac_cv_c_stack_direction" >&6; }
7091cat >>confdefs.h <<_ACEOF
7092#define STACK_DIRECTION $ac_cv_c_stack_direction
7093_ACEOF
57aa50d4 7094
b0cacab0 7095
57aa50d4 7096fi
b0cacab0 7097
57aa50d4
TT
7098
7099
b0cacab0 7100
93613951
TT
7101 for ac_header in $ac_header_list
7102do :
7103 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7104ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7105"
7106if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7107 cat >>confdefs.h <<_ACEOF
7108#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
b0cacab0 7109_ACEOF
93613951 7110
a64c9c13 7111fi
07a0db15 7112
93613951 7113done
a64c9c13 7114
a64c9c13 7115
b0cacab0 7116
b0cacab0 7117
a04eba3f 7118
a04eba3f 7119
b0cacab0 7120
b0cacab0 7121
93613951
TT
7122for ac_func in getpagesize
7123do :
7124 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
7125if test "x$ac_cv_func_getpagesize" = xyes; then :
7126 cat >>confdefs.h <<_ACEOF
7127#define HAVE_GETPAGESIZE 1
b0cacab0
TT
7128_ACEOF
7129
93613951
TT
7130fi
7131done
b0cacab0 7132
93613951
TT
7133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7134$as_echo_n "checking for working mmap... " >&6; }
7135if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
39fd3d4f 7136 $as_echo_n "(cached) " >&6
93613951
TT
7137else
7138 if test "$cross_compiling" = yes; then :
7139 ac_cv_func_mmap_fixed_mapped=no
b0cacab0 7140else
57aa50d4 7141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 7142/* end confdefs.h. */
93613951
TT
7143$ac_includes_default
7144/* malloc might have been renamed as rpl_malloc. */
7145#undef malloc
57aa50d4 7146
93613951
TT
7147/* Thanks to Mike Haertel and Jim Avera for this test.
7148 Here is a matrix of mmap possibilities:
7149 mmap private not fixed
7150 mmap private fixed at somewhere currently unmapped
7151 mmap private fixed at somewhere already mapped
7152 mmap shared not fixed
7153 mmap shared fixed at somewhere currently unmapped
7154 mmap shared fixed at somewhere already mapped
7155 For private mappings, we should verify that changes cannot be read()
7156 back from the file, nor mmap's back from the file at a different
7157 address. (There have been systems where private was not correctly
7158 implemented like the infamous i386 svr4.0, and systems where the
7159 VM page cache was not coherent with the file system buffer cache
7160 like early versions of FreeBSD and possibly contemporary NetBSD.)
7161 For shared mappings, we should conversely verify that changes get
7162 propagated back to all the places they're supposed to be.
7163
7164 Grep wants private fixed already mapped.
7165 The main things grep needs to know about mmap are:
7166 * does it exist and is it safe to write into the mmap'd area
7167 * how to use it (BSD variants) */
7168
7169#include <fcntl.h>
7170#include <sys/mman.h>
7171
7172#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
7173char *malloc ();
57aa50d4
TT
7174#endif
7175
93613951
TT
7176/* This mess was copied from the GNU getpagesize.h. */
7177#ifndef HAVE_GETPAGESIZE
7178# ifdef _SC_PAGESIZE
7179# define getpagesize() sysconf(_SC_PAGESIZE)
7180# else /* no _SC_PAGESIZE */
7181# ifdef HAVE_SYS_PARAM_H
7182# include <sys/param.h>
7183# ifdef EXEC_PAGESIZE
7184# define getpagesize() EXEC_PAGESIZE
7185# else /* no EXEC_PAGESIZE */
7186# ifdef NBPG
7187# define getpagesize() NBPG * CLSIZE
7188# ifndef CLSIZE
7189# define CLSIZE 1
7190# endif /* no CLSIZE */
7191# else /* no NBPG */
7192# ifdef NBPC
7193# define getpagesize() NBPC
7194# else /* no NBPC */
7195# ifdef PAGESIZE
7196# define getpagesize() PAGESIZE
7197# endif /* PAGESIZE */
7198# endif /* no NBPC */
7199# endif /* no NBPG */
7200# endif /* no EXEC_PAGESIZE */
7201# else /* no HAVE_SYS_PARAM_H */
7202# define getpagesize() 8192 /* punt totally */
7203# endif /* no HAVE_SYS_PARAM_H */
7204# endif /* no _SC_PAGESIZE */
7205
7206#endif /* no HAVE_GETPAGESIZE */
7207
57aa50d4
TT
7208int
7209main ()
7210{
93613951
TT
7211 char *data, *data2, *data3;
7212 const char *cdata2;
7213 int i, pagesize;
7214 int fd, fd2;
7215
7216 pagesize = getpagesize ();
7217
7218 /* First, make a file with some known garbage in it. */
7219 data = (char *) malloc (pagesize);
7220 if (!data)
7221 return 1;
7222 for (i = 0; i < pagesize; ++i)
7223 *(data + i) = rand ();
7224 umask (0);
7225 fd = creat ("conftest.mmap", 0600);
7226 if (fd < 0)
7227 return 2;
7228 if (write (fd, data, pagesize) != pagesize)
7229 return 3;
7230 close (fd);
7231
7232 /* Next, check that the tail of a page is zero-filled. File must have
7233 non-zero length, otherwise we risk SIGBUS for entire page. */
7234 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7235 if (fd2 < 0)
7236 return 4;
7237 cdata2 = "";
7238 if (write (fd2, cdata2, 1) != 1)
7239 return 5;
7240 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7241 if (data2 == MAP_FAILED)
7242 return 6;
7243 for (i = 0; i < pagesize; ++i)
7244 if (*(data2 + i))
7245 return 7;
7246 close (fd2);
7247 if (munmap (data2, pagesize))
7248 return 8;
7249
7250 /* Next, try to mmap the file at a fixed address which already has
7251 something else allocated at it. If we can, also make sure that
7252 we see the same garbage. */
7253 fd = open ("conftest.mmap", O_RDWR);
7254 if (fd < 0)
7255 return 9;
7256 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7257 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7258 return 10;
7259 for (i = 0; i < pagesize; ++i)
7260 if (*(data + i) != *(data2 + i))
7261 return 11;
7262
7263 /* Finally, make sure that changes to the mapped area do not
7264 percolate back to the file as seen by read(). (This is a bug on
7265 some variants of i386 svr4.0.) */
7266 for (i = 0; i < pagesize; ++i)
7267 *(data2 + i) = *(data2 + i) + 1;
7268 data3 = (char *) malloc (pagesize);
7269 if (!data3)
7270 return 12;
7271 if (read (fd, data3, pagesize) != pagesize)
7272 return 13;
7273 for (i = 0; i < pagesize; ++i)
7274 if (*(data + i) != *(data3 + i))
7275 return 14;
7276 close (fd);
a2df5894
DW
7277 free (data);
7278 free (data3);
57aa50d4
TT
7279 return 0;
7280}
b0cacab0 7281_ACEOF
93613951
TT
7282if ac_fn_c_try_run "$LINENO"; then :
7283 ac_cv_func_mmap_fixed_mapped=yes
b0cacab0 7284else
93613951 7285 ac_cv_func_mmap_fixed_mapped=no
b0cacab0 7286fi
93613951
TT
7287rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7288 conftest.$ac_objext conftest.beam conftest.$ac_ext
57aa50d4 7289fi
b0cacab0 7290
93613951
TT
7291fi
7292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
7293$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7294if test $ac_cv_func_mmap_fixed_mapped = yes; then
b0cacab0 7295
93613951 7296$as_echo "#define HAVE_MMAP 1" >>confdefs.h
e1052144 7297
93613951
TT
7298fi
7299rm -f conftest.mmap conftest.txt
b0cacab0 7300
e1052144 7301
93613951
TT
7302
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
7304$as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
7305if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
39fd3d4f 7306 $as_echo_n "(cached) " >&6
b0cacab0 7307else
b0cacab0 7308
93613951
TT
7309 gt_cv_int_divbyzero_sigfpe=
7310 case "$host_os" in
7311 macos* | darwin[6-9]* | darwin[1-9][0-9]*)
7312 # On Mac OS X 10.2 or newer, just assume the same as when cross-
7313 # compiling. If we were to perform the real test, 1 Crash Report
7314 # dialog window would pop up.
7315 case "$host_cpu" in
7316 i[34567]86 | x86_64)
7317 gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
7318 esac
7319 ;;
7320 esac
7321 if test -z "$gt_cv_int_divbyzero_sigfpe"; then
7322 if test "$cross_compiling" = yes; then :
7323
7324 # Guess based on the CPU.
7325 case "$host_cpu" in
7326 alpha* | i[34567]86 | x86_64 | m68k | s390*)
7327 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7328 *)
7329 gt_cv_int_divbyzero_sigfpe="guessing no";;
7330 esac
57aa50d4 7331
93613951
TT
7332else
7333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57aa50d4
TT
7334/* end confdefs.h. */
7335
93613951
TT
7336#include <stdlib.h>
7337#include <signal.h>
b0cacab0 7338
93613951
TT
7339static void
7340sigfpe_handler (int sig)
7341{
7342 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7343 exit (sig != SIGFPE);
7344}
b0cacab0 7345
93613951
TT
7346int x = 1;
7347int y = 0;
7348int z;
7349int nan;
b0cacab0 7350
57aa50d4
TT
7351int main ()
7352{
93613951
TT
7353 signal (SIGFPE, sigfpe_handler);
7354/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7355#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7356 signal (SIGTRAP, sigfpe_handler);
7357#endif
7358/* Linux/SPARC yields signal SIGILL. */
7359#if defined (__sparc__) && defined (__linux__)
7360 signal (SIGILL, sigfpe_handler);
7361#endif
7362
7363 z = x / y;
7364 nan = y / y;
7365 exit (2);
57aa50d4 7366}
93613951 7367
57aa50d4
TT
7368_ACEOF
7369if ac_fn_c_try_run "$LINENO"; then :
93613951 7370 gt_cv_int_divbyzero_sigfpe=yes
57aa50d4 7371else
93613951 7372 gt_cv_int_divbyzero_sigfpe=no
57aa50d4
TT
7373fi
7374rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7375 conftest.$ac_objext conftest.beam conftest.$ac_ext
7376fi
7377
93613951 7378 fi
57aa50d4
TT
7379
7380fi
93613951
TT
7381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
7382$as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
7383 case "$gt_cv_int_divbyzero_sigfpe" in
7384 *yes) value=1;;
7385 *) value=0;;
7386 esac
57aa50d4 7387
93613951
TT
7388cat >>confdefs.h <<_ACEOF
7389#define INTDIV0_RAISES_SIGFPE $value
7390_ACEOF
57aa50d4 7391
57aa50d4 7392
93613951
TT
7393
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7395$as_echo_n "checking for inttypes.h... " >&6; }
7396if ${gl_cv_header_inttypes_h+:} false; then :
39fd3d4f 7397 $as_echo_n "(cached) " >&6
b0cacab0 7398else
57aa50d4 7399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 7400/* end confdefs.h. */
93613951
TT
7401
7402#include <sys/types.h>
7403#include <inttypes.h>
7404
57aa50d4
TT
7405int
7406main ()
7407{
93613951 7408uintmax_t i = (uintmax_t) -1; return !i;
57aa50d4
TT
7409 ;
7410 return 0;
7411}
7412_ACEOF
93613951
TT
7413if ac_fn_c_try_compile "$LINENO"; then :
7414 gl_cv_header_inttypes_h=yes
57aa50d4 7415else
93613951 7416 gl_cv_header_inttypes_h=no
57aa50d4 7417fi
93613951 7418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57aa50d4 7419fi
93613951
TT
7420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
7421$as_echo "$gl_cv_header_inttypes_h" >&6; }
7422 if test $gl_cv_header_inttypes_h = yes; then
b0cacab0 7423
93613951
TT
7424cat >>confdefs.h <<_ACEOF
7425#define HAVE_INTTYPES_H_WITH_UINTMAX 1
7426_ACEOF
b0cacab0 7427
93613951 7428 fi
57aa50d4 7429
93613951
TT
7430
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
7432$as_echo_n "checking for unsigned long long int... " >&6; }
7433if ${ac_cv_type_unsigned_long_long_int+:} false; then :
57aa50d4
TT
7434 $as_echo_n "(cached) " >&6
7435else
93613951
TT
7436 ac_cv_type_unsigned_long_long_int=yes
7437 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57aa50d4 7439/* end confdefs.h. */
b0cacab0 7440
93613951
TT
7441 /* For now, do not test the preprocessor; as of 2007 there are too many
7442 implementations with broken preprocessors. Perhaps this can
7443 be revisited in 2012. In the meantime, code should not expect
7444 #if to work with literals wider than 32 bits. */
7445 /* Test literals. */
7446 long long int ll = 9223372036854775807ll;
7447 long long int nll = -9223372036854775807LL;
7448 unsigned long long int ull = 18446744073709551615ULL;
7449 /* Test constant expressions. */
7450 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7451 ? 1 : -1)];
7452 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7453 ? 1 : -1)];
7454 int i = 63;
57aa50d4
TT
7455int
7456main ()
7457{
93613951
TT
7458/* Test availability of runtime routines for shift and division. */
7459 long long int llmax = 9223372036854775807ll;
7460 unsigned long long int ullmax = 18446744073709551615ull;
7461 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7462 | (llmax / ll) | (llmax % ll)
7463 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7464 | (ullmax / ull) | (ullmax % ull));
57aa50d4
TT
7465 ;
7466 return 0;
7467}
93613951 7468
57aa50d4
TT
7469_ACEOF
7470if ac_fn_c_try_link "$LINENO"; then :
93613951 7471
57aa50d4 7472else
93613951 7473 ac_cv_type_unsigned_long_long_int=no
57aa50d4
TT
7474fi
7475rm -f core conftest.err conftest.$ac_objext \
7476 conftest$ac_exeext conftest.$ac_ext
93613951 7477 fi
57aa50d4 7478fi
93613951
TT
7479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
7480$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
7481 if test $ac_cv_type_unsigned_long_long_int = yes; then
b0cacab0 7482
93613951 7483$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
57aa50d4 7484
93613951 7485 fi
57aa50d4 7486
57aa50d4 7487
57aa50d4 7488
57aa50d4 7489
93613951 7490 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
57aa50d4 7491
93613951
TT
7492 test $ac_cv_type_unsigned_long_long_int = yes \
7493 && ac_type='unsigned long long' \
7494 || ac_type='unsigned long'
b0cacab0 7495
93613951
TT
7496cat >>confdefs.h <<_ACEOF
7497#define uintmax_t $ac_type
57aa50d4 7498_ACEOF
57aa50d4 7499
93613951 7500 else
57aa50d4 7501
93613951
TT
7502$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
7503
7504 fi
7505
7506
7507 for ac_header in inttypes.h
7508do :
7509 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
7510if test "x$ac_cv_header_inttypes_h" = xyes; then :
7511 cat >>confdefs.h <<_ACEOF
7512#define HAVE_INTTYPES_H 1
57aa50d4
TT
7513_ACEOF
7514
57aa50d4
TT
7515fi
7516
93613951 7517done
57aa50d4 7518
93613951
TT
7519 if test $ac_cv_header_inttypes_h = yes; then
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
7521$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
7522if ${gt_cv_inttypes_pri_broken+:} false; then :
57aa50d4
TT
7523 $as_echo_n "(cached) " >&6
7524else
93613951
TT
7525
7526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57aa50d4 7527/* end confdefs.h. */
93613951
TT
7528
7529#include <inttypes.h>
7530#ifdef PRId32
7531char *p = PRId32;
7532#endif
57aa50d4 7533
b0cacab0 7534int
93613951 7535main ()
b0cacab0 7536{
93613951
TT
7537
7538 ;
7539 return 0;
b0cacab0
TT
7540}
7541_ACEOF
93613951
TT
7542if ac_fn_c_try_compile "$LINENO"; then :
7543 gt_cv_inttypes_pri_broken=no
b0cacab0 7544else
93613951 7545 gt_cv_inttypes_pri_broken=yes
57aa50d4 7546fi
93613951 7547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
57aa50d4
TT
7548
7549fi
93613951
TT
7550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
7551$as_echo "$gt_cv_inttypes_pri_broken" >&6; }
7552 fi
7553 if test "$gt_cv_inttypes_pri_broken" = yes; then
7554
57aa50d4 7555cat >>confdefs.h <<_ACEOF
93613951 7556#define PRI_MACROS_BROKEN 1
57aa50d4
TT
7557_ACEOF
7558
93613951
TT
7559 PRI_MACROS_BROKEN=1
7560 else
7561 PRI_MACROS_BROKEN=0
7562 fi
b0cacab0 7563
e1052144 7564
61ef2474
TT
7565
7566
7567
61ef2474 7568
93613951
TT
7569
7570 # Check whether --enable-threads was given.
7571if test "${enable_threads+set}" = set; then :
7572 enableval=$enable_threads; gl_use_threads=$enableval
7573else
7574 if test -n "$gl_use_threads_default"; then
7575 gl_use_threads="$gl_use_threads_default"
7576 else
7577 case "$host_os" in
7578 osf*) gl_use_threads=no ;;
7579 cygwin*)
7580 case `uname -r` in
7581 1.[0-5].*) gl_use_threads=no ;;
7582 *) gl_use_threads=yes ;;
7583 esac
7584 ;;
7585 *) gl_use_threads=yes ;;
7586 esac
7587 fi
57aa50d4 7588
b0cacab0 7589fi
57aa50d4 7590
93613951
TT
7591 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7592 # For using <pthread.h>:
7593 case "$host_os" in
7594 osf*)
7595 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
7596 # groks <pthread.h>. cc also understands the flag -pthread, but
7597 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
7598 # 2. putting a flag into CPPFLAGS that has an effect on the linker
7599 # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
7600 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
7601 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
7602 ;;
7603 esac
7604 # Some systems optimize for single-threaded programs by default, and
7605 # need special flags to disable these optimizations. For example, the
7606 # definition of 'errno' in <errno.h>.
7607 case "$host_os" in
7608 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
7609 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
7610 esac
7611 fi
57aa50d4 7612
61ef2474
TT
7613
7614
7615
7616
93613951
TT
7617 if test "X$prefix" = "XNONE"; then
7618 acl_final_prefix="$ac_default_prefix"
7619 else
7620 acl_final_prefix="$prefix"
7621 fi
7622 if test "X$exec_prefix" = "XNONE"; then
7623 acl_final_exec_prefix='${prefix}'
7624 else
7625 acl_final_exec_prefix="$exec_prefix"
7626 fi
7627 acl_save_prefix="$prefix"
7628 prefix="$acl_final_prefix"
7629 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7630 prefix="$acl_save_prefix"
61ef2474
TT
7631
7632
7633
93613951
TT
7634# Check whether --with-gnu-ld was given.
7635if test "${with_gnu_ld+set}" = set; then :
7636 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7637else
7638 with_gnu_ld=no
7639fi
b0cacab0 7640
93613951
TT
7641# Prepare PATH_SEPARATOR.
7642# The user is always right.
7643if test "${PATH_SEPARATOR+set}" != set; then
7644 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7645 # contains only /bin. Note that ksh looks also at the FPATH variable,
7646 # so we have to set that as well for the test.
7647 PATH_SEPARATOR=:
7648 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7649 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7650 || PATH_SEPARATOR=';'
7651 }
b0cacab0 7652fi
b0cacab0 7653
93613951
TT
7654ac_prog=ld
7655if test "$GCC" = yes; then
7656 # Check if gcc -print-prog-name=ld gives a path.
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7658$as_echo_n "checking for ld used by $CC... " >&6; }
7659 case $host in
7660 *-*-mingw*)
7661 # gcc leaves a trailing carriage return which upsets mingw
7662 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7663 *)
7664 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7665 esac
7666 case $ac_prog in
7667 # Accept absolute paths.
7668 [\\/]* | ?:[\\/]*)
7669 re_direlt='/[^/][^/]*/\.\./'
7670 # Canonicalize the pathname of ld
7671 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
7672 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
7673 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
7674 done
7675 test -z "$LD" && LD="$ac_prog"
7676 ;;
7677 "")
7678 # If it fails, then pretend we aren't using GCC.
7679 ac_prog=ld
7680 ;;
7681 *)
7682 # If it is relative, then search for the first ld in PATH.
7683 with_gnu_ld=unknown
7684 ;;
7685 esac
7686elif test "$with_gnu_ld" = yes; then
7687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7688$as_echo_n "checking for GNU ld... " >&6; }
b0cacab0 7689else
93613951
TT
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7691$as_echo_n "checking for non-GNU ld... " >&6; }
7692fi
7693if ${acl_cv_path_LD+:} false; then :
7694 $as_echo_n "(cached) " >&6
b0cacab0 7695else
93613951
TT
7696 if test -z "$LD"; then
7697 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7698 for ac_dir in $PATH; do
7699 IFS="$acl_save_ifs"
7700 test -z "$ac_dir" && ac_dir=.
7701 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7702 acl_cv_path_LD="$ac_dir/$ac_prog"
7703 # Check to see if the program is GNU ld. I'd rather use --version,
7704 # but apparently some variants of GNU ld only accept -v.
7705 # Break only if it was the GNU/non-GNU ld that we prefer.
7706 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
7707 *GNU* | *'with BFD'*)
7708 test "$with_gnu_ld" != no && break
7709 ;;
7710 *)
7711 test "$with_gnu_ld" != yes && break
7712 ;;
7713 esac
7714 fi
7715 done
7716 IFS="$acl_save_ifs"
7717else
7718 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7719fi
7720fi
b0cacab0 7721
93613951
TT
7722LD="$acl_cv_path_LD"
7723if test -n "$LD"; then
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7725$as_echo "$LD" >&6; }
7726else
7727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7728$as_echo "no" >&6; }
7729fi
7730test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7732$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7733if ${acl_cv_prog_gnu_ld+:} false; then :
7734 $as_echo_n "(cached) " >&6
7735else
7736 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7737case `$LD -v 2>&1 </dev/null` in
7738*GNU* | *'with BFD'*)
7739 acl_cv_prog_gnu_ld=yes
7740 ;;
7741*)
7742 acl_cv_prog_gnu_ld=no
7743 ;;
7744esac
7745fi
7746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
7747$as_echo "$acl_cv_prog_gnu_ld" >&6; }
7748with_gnu_ld=$acl_cv_prog_gnu_ld
b0cacab0 7749
b0cacab0 7750
b0cacab0 7751
b0cacab0 7752
93613951
TT
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
7754$as_echo_n "checking for shared library run path origin... " >&6; }
7755if ${acl_cv_rpath+:} false; then :
7756 $as_echo_n "(cached) " >&6
7757else
61ef2474 7758
93613951
TT
7759 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7760 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7761 . ./conftest.sh
7762 rm -f ./conftest.sh
7763 acl_cv_rpath=done
b0cacab0 7764
b0cacab0 7765fi
93613951
TT
7766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
7767$as_echo "$acl_cv_rpath" >&6; }
7768 wl="$acl_cv_wl"
7769 acl_libext="$acl_cv_libext"
7770 acl_shlibext="$acl_cv_shlibext"
7771 acl_libname_spec="$acl_cv_libname_spec"
7772 acl_library_names_spec="$acl_cv_library_names_spec"
7773 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7774 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7775 acl_hardcode_direct="$acl_cv_hardcode_direct"
7776 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
7777 # Check whether --enable-rpath was given.
7778if test "${enable_rpath+set}" = set; then :
7779 enableval=$enable_rpath; :
7780else
7781 enable_rpath=yes
b0cacab0 7782fi
b0cacab0 7783
b0cacab0 7784
b0cacab0
TT
7785
7786
93613951
TT
7787 acl_libdirstem=lib
7788 acl_libdirstem2=
7789 case "$host_os" in
7790 solaris*)
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
7792$as_echo_n "checking for 64-bit host... " >&6; }
7793if ${gl_cv_solaris_64bit+:} false; then :
39fd3d4f 7794 $as_echo_n "(cached) " >&6
b0cacab0 7795else
57aa50d4 7796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0
TT
7797/* end confdefs.h. */
7798
93613951
TT
7799#ifdef _LP64
7800sixtyfour bits
b0cacab0
TT
7801#endif
7802
7803_ACEOF
7804if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
93613951
TT
7805 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
7806 gl_cv_solaris_64bit=yes
b0cacab0 7807else
93613951 7808 gl_cv_solaris_64bit=no
b0cacab0
TT
7809fi
7810rm -f conftest*
7811
7812
b0cacab0 7813fi
93613951
TT
7814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
7815$as_echo "$gl_cv_solaris_64bit" >&6; }
7816 if test $gl_cv_solaris_64bit = yes; then
7817 acl_libdirstem=lib/64
7818 case "$host_cpu" in
7819 sparc*) acl_libdirstem2=lib/sparcv9 ;;
7820 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
7821 esac
7822 fi
7823 ;;
7824 *)
7825 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
7826 if test -n "$searchpath"; then
7827 acl_save_IFS="${IFS= }"; IFS=":"
7828 for searchdir in $searchpath; do
7829 if test -d "$searchdir"; then
7830 case "$searchdir" in
7831 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
7832 */../ | */.. )
7833 # Better ignore directories of this form. They are misleading.
7834 ;;
7835 *) searchdir=`cd "$searchdir" && pwd`
7836 case "$searchdir" in
7837 */lib64 ) acl_libdirstem=lib64 ;;
7838 esac ;;
7839 esac
7840 fi
7841 done
7842 IFS="$acl_save_IFS"
7843 fi
7844 ;;
7845 esac
7846 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
b0cacab0
TT
7847
7848
7849
93613951
TT
7850 gl_threads_api=none
7851 LIBTHREAD=
7852 LTLIBTHREAD=
7853 LIBMULTITHREAD=
7854 LTLIBMULTITHREAD=
7855 if test "$gl_use_threads" != no; then
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
7857$as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
7858if ${gl_cv_have_weak+:} false; then :
39fd3d4f 7859 $as_echo_n "(cached) " >&6
b0cacab0 7860else
93613951
TT
7861 gl_cv_have_weak=no
7862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 7863/* end confdefs.h. */
93613951
TT
7864extern void xyzzy ();
7865#pragma weak xyzzy
7866int
7867main ()
b0cacab0 7868{
93613951
TT
7869xyzzy();
7870 ;
7871 return 0;
b0cacab0 7872}
93613951
TT
7873_ACEOF
7874if ac_fn_c_try_link "$LINENO"; then :
7875 gl_cv_have_weak=maybe
7876fi
7877rm -f core conftest.err conftest.$ac_objext \
7878 conftest$ac_exeext conftest.$ac_ext
7879 if test $gl_cv_have_weak = maybe; then
7880 if test "$cross_compiling" = yes; then :
7881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7882/* end confdefs.h. */
7883#ifdef __ELF__
7884 Extensible Linking Format
7885 #endif
b0cacab0 7886
93613951
TT
7887_ACEOF
7888if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7889 $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
7890 gl_cv_have_weak="guessing yes"
7891else
7892 gl_cv_have_weak="guessing no"
7893fi
7894rm -f conftest*
b0cacab0 7895
b0cacab0
TT
7896
7897else
57aa50d4 7898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 7899/* end confdefs.h. */
b0cacab0 7900
93613951
TT
7901#include <stdio.h>
7902#pragma weak fputs
b0cacab0 7903int main ()
a04eba3f 7904{
93613951 7905 return (fputs == NULL);
a04eba3f 7906}
b0cacab0 7907_ACEOF
57aa50d4 7908if ac_fn_c_try_run "$LINENO"; then :
93613951 7909 gl_cv_have_weak=yes
a64c9c13 7910else
93613951 7911 gl_cv_have_weak=no
b0cacab0 7912fi
57aa50d4
TT
7913rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7914 conftest.$ac_objext conftest.beam conftest.$ac_ext
b0cacab0
TT
7915fi
7916
93613951 7917 fi
e1052144 7918
b0cacab0 7919fi
93613951
TT
7920{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
7921$as_echo "$gl_cv_have_weak" >&6; }
7922 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7923 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
7924 # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
7925 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
7926if test "x$ac_cv_header_pthread_h" = xyes; then :
7927 gl_have_pthread_h=yes
7928else
7929 gl_have_pthread_h=no
7930fi
b0cacab0
TT
7931
7932
93613951
TT
7933 if test "$gl_have_pthread_h" = yes; then
7934 # Other possible tests:
7935 # -lpthreads (FSU threads, PCthreads)
7936 # -lgthreads
7937 gl_have_pthread=
7938 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
7939 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
7940 # the second one only in libpthread, and lock.c needs it.
7941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 7942/* end confdefs.h. */
93613951 7943#include <pthread.h>
b0cacab0
TT
7944int
7945main ()
7946{
93613951
TT
7947pthread_mutex_lock((pthread_mutex_t*)0);
7948 pthread_mutexattr_init((pthread_mutexattr_t*)0);
b0cacab0
TT
7949 ;
7950 return 0;
7951}
7952_ACEOF
57aa50d4 7953if ac_fn_c_try_link "$LINENO"; then :
93613951 7954 gl_have_pthread=yes
b0cacab0 7955fi
57aa50d4
TT
7956rm -f core conftest.err conftest.$ac_objext \
7957 conftest$ac_exeext conftest.$ac_ext
93613951
TT
7958 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
7959 # since it is defined as a macro on OSF/1.)
7960 if test -n "$gl_have_pthread"; then
7961 # The program links fine without libpthread. But it may actually
7962 # need to link with libpthread in order to create multiple threads.
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
7964$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
7965if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
39fd3d4f 7966 $as_echo_n "(cached) " >&6
b0cacab0 7967else
93613951
TT
7968 ac_check_lib_save_LIBS=$LIBS
7969LIBS="-lpthread $LIBS"
7970cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 7971/* end confdefs.h. */
93613951
TT
7972
7973/* Override any GCC internal prototype to avoid an error.
7974 Use char because int might match the return type of a GCC
7975 builtin and then its argument prototype would still apply. */
7976#ifdef __cplusplus
7977extern "C"
7978#endif
7979char pthread_kill ();
b0cacab0
TT
7980int
7981main ()
7982{
93613951 7983return pthread_kill ();
b0cacab0
TT
7984 ;
7985 return 0;
7986}
7987_ACEOF
93613951
TT
7988if ac_fn_c_try_link "$LINENO"; then :
7989 ac_cv_lib_pthread_pthread_kill=yes
b0cacab0 7990else
93613951 7991 ac_cv_lib_pthread_pthread_kill=no
b0cacab0 7992fi
93613951
TT
7993rm -f core conftest.err conftest.$ac_objext \
7994 conftest$ac_exeext conftest.$ac_ext
7995LIBS=$ac_check_lib_save_LIBS
b0cacab0 7996fi
93613951
TT
7997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
7998$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
7999if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
8000 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
8001 # On Solaris and HP-UX, most pthread functions exist also in libc.
8002 # Therefore pthread_in_use() needs to actually try to create a
8003 # thread: pthread_create from libc will fail, whereas
8004 # pthread_create will actually create a thread.
8005 case "$host_os" in
8006 solaris* | hpux*)
b0cacab0 8007
93613951 8008$as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
b0cacab0 8009
93613951 8010 esac
b0cacab0 8011
93613951 8012fi
b0cacab0 8013
93613951
TT
8014 else
8015 # Some library is needed. Try libpthread and libc_r.
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
8017$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
8018if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
39fd3d4f 8019 $as_echo_n "(cached) " >&6
b0cacab0 8020else
93613951
TT
8021 ac_check_lib_save_LIBS=$LIBS
8022LIBS="-lpthread $LIBS"
8023cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 8024/* end confdefs.h. */
b0cacab0 8025
93613951
TT
8026/* Override any GCC internal prototype to avoid an error.
8027 Use char because int might match the return type of a GCC
8028 builtin and then its argument prototype would still apply. */
8029#ifdef __cplusplus
8030extern "C"
8031#endif
8032char pthread_kill ();
b0cacab0
TT
8033int
8034main ()
8035{
93613951 8036return pthread_kill ();
b0cacab0
TT
8037 ;
8038 return 0;
8039}
8040_ACEOF
93613951
TT
8041if ac_fn_c_try_link "$LINENO"; then :
8042 ac_cv_lib_pthread_pthread_kill=yes
b0cacab0 8043else
93613951 8044 ac_cv_lib_pthread_pthread_kill=no
b0cacab0 8045fi
93613951
TT
8046rm -f core conftest.err conftest.$ac_objext \
8047 conftest$ac_exeext conftest.$ac_ext
8048LIBS=$ac_check_lib_save_LIBS
b0cacab0 8049fi
93613951
TT
8050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
8051$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
8052if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
8053 gl_have_pthread=yes
8054 LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
8055 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
b0cacab0
TT
8056fi
8057
93613951
TT
8058 if test -z "$gl_have_pthread"; then
8059 # For FreeBSD 4.
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
8061$as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
8062if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
8063 $as_echo_n "(cached) " >&6
8064else
8065 ac_check_lib_save_LIBS=$LIBS
8066LIBS="-lc_r $LIBS"
8067cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0
TT
8068/* end confdefs.h. */
8069
93613951
TT
8070/* Override any GCC internal prototype to avoid an error.
8071 Use char because int might match the return type of a GCC
8072 builtin and then its argument prototype would still apply. */
8073#ifdef __cplusplus
8074extern "C"
b0cacab0 8075#endif
93613951
TT
8076char pthread_kill ();
8077int
8078main ()
8079{
8080return pthread_kill ();
8081 ;
8082 return 0;
8083}
b0cacab0 8084_ACEOF
93613951
TT
8085if ac_fn_c_try_link "$LINENO"; then :
8086 ac_cv_lib_c_r_pthread_kill=yes
b0cacab0 8087else
93613951 8088 ac_cv_lib_c_r_pthread_kill=no
57aa50d4 8089fi
93613951
TT
8090rm -f core conftest.err conftest.$ac_objext \
8091 conftest$ac_exeext conftest.$ac_ext
8092LIBS=$ac_check_lib_save_LIBS
8093fi
8094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
8095$as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
8096if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
8097 gl_have_pthread=yes
8098 LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
8099 LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
b0cacab0 8100fi
e1052144 8101
93613951
TT
8102 fi
8103 fi
8104 if test -n "$gl_have_pthread"; then
8105 gl_threads_api=posix
57aa50d4 8106
93613951 8107$as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
57aa50d4 8108
93613951
TT
8109 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8110 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
b0cacab0 8111
93613951 8112$as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
b0cacab0 8113
93613951
TT
8114 LIBTHREAD=
8115 LTLIBTHREAD=
8116 fi
8117 fi
8118 fi
8119 fi
8120 fi
8121 if test -z "$gl_have_pthread"; then
8122 if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
8123 gl_have_solaristhread=
8124 gl_save_LIBS="$LIBS"
8125 LIBS="$LIBS -lthread"
8126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 8127/* end confdefs.h. */
93613951
TT
8128
8129#include <thread.h>
8130#include <synch.h>
57aa50d4 8131
b0cacab0
TT
8132int
8133main ()
8134{
93613951 8135thr_self();
b0cacab0
TT
8136 ;
8137 return 0;
8138}
8139_ACEOF
93613951
TT
8140if ac_fn_c_try_link "$LINENO"; then :
8141 gl_have_solaristhread=yes
b0cacab0 8142fi
93613951
TT
8143rm -f core conftest.err conftest.$ac_objext \
8144 conftest$ac_exeext conftest.$ac_ext
8145 LIBS="$gl_save_LIBS"
8146 if test -n "$gl_have_solaristhread"; then
8147 gl_threads_api=solaris
8148 LIBTHREAD=-lthread
8149 LTLIBTHREAD=-lthread
8150 LIBMULTITHREAD="$LIBTHREAD"
8151 LTLIBMULTITHREAD="$LTLIBTHREAD"
8152
8153$as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
8154
8155 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8156
8157$as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
8158
8159 LIBTHREAD=
8160 LTLIBTHREAD=
8161 fi
8162 fi
57aa50d4 8163 fi
57aa50d4 8164 fi
93613951
TT
8165 if test "$gl_use_threads" = pth; then
8166 gl_save_CPPFLAGS="$CPPFLAGS"
b0cacab0 8167
e1052144 8168
e1052144 8169
b0cacab0 8170
57aa50d4 8171
93613951
TT
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
8173$as_echo_n "checking how to link with libpth... " >&6; }
8174if ${ac_cv_libpth_libs+:} false; then :
8175 $as_echo_n "(cached) " >&6
8176else
e1052144 8177
b0cacab0 8178
b0cacab0 8179
29a5deed 8180
b0cacab0 8181
b0cacab0 8182
b0cacab0 8183
e1052144 8184
57aa50d4 8185 use_additional=yes
b0cacab0 8186
57aa50d4
TT
8187 acl_save_prefix="$prefix"
8188 prefix="$acl_final_prefix"
8189 acl_save_exec_prefix="$exec_prefix"
8190 exec_prefix="$acl_final_exec_prefix"
b0cacab0 8191
57aa50d4
TT
8192 eval additional_includedir=\"$includedir\"
8193 eval additional_libdir=\"$libdir\"
b0cacab0 8194
57aa50d4
TT
8195 exec_prefix="$acl_save_exec_prefix"
8196 prefix="$acl_save_prefix"
b0cacab0 8197
e1052144 8198
93613951
TT
8199# Check whether --with-libpth-prefix was given.
8200if test "${with_libpth_prefix+set}" = set; then :
8201 withval=$with_libpth_prefix;
57aa50d4
TT
8202 if test "X$withval" = "Xno"; then
8203 use_additional=no
8204 else
8205 if test "X$withval" = "X"; then
b0cacab0 8206
57aa50d4
TT
8207 acl_save_prefix="$prefix"
8208 prefix="$acl_final_prefix"
8209 acl_save_exec_prefix="$exec_prefix"
8210 exec_prefix="$acl_final_exec_prefix"
e1052144 8211
57aa50d4
TT
8212 eval additional_includedir=\"$includedir\"
8213 eval additional_libdir=\"$libdir\"
e1052144 8214
57aa50d4
TT
8215 exec_prefix="$acl_save_exec_prefix"
8216 prefix="$acl_save_prefix"
b0cacab0 8217
57aa50d4
TT
8218 else
8219 additional_includedir="$withval/include"
93613951
TT
8220 additional_libdir="$withval/$acl_libdirstem"
8221 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8222 && ! test -d "$withval/$acl_libdirstem"; then
8223 additional_libdir="$withval/$acl_libdirstem2"
8224 fi
57aa50d4
TT
8225 fi
8226 fi
b0cacab0 8227
b0cacab0 8228fi
e1052144 8229
93613951
TT
8230 LIBPTH=
8231 LTLIBPTH=
8232 INCPTH=
8233 LIBPTH_PREFIX=
8234 HAVE_LIBPTH=
a04eba3f
TT
8235 rpathdirs=
8236 ltrpathdirs=
8237 names_already_handled=
93613951 8238 names_next_round='pth '
a04eba3f
TT
8239 while test -n "$names_next_round"; do
8240 names_this_round="$names_next_round"
8241 names_next_round=
8242 for name in $names_this_round; do
8243 already_handled=
8244 for n in $names_already_handled; do
8245 if test "$n" = "$name"; then
8246 already_handled=yes
8247 break
8248 fi
8249 done
8250 if test -z "$already_handled"; then
8251 names_already_handled="$names_already_handled $name"
93613951 8252 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
a04eba3f
TT
8253 eval value=\"\$HAVE_LIB$uppername\"
8254 if test -n "$value"; then
8255 if test "$value" = yes; then
8256 eval value=\"\$LIB$uppername\"
93613951 8257 test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
a04eba3f 8258 eval value=\"\$LTLIB$uppername\"
93613951 8259 test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
a04eba3f
TT
8260 else
8261 :
8262 fi
8263 else
8264 found_dir=
8265 found_la=
8266 found_so=
8267 found_a=
93613951
TT
8268 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8269 if test -n "$acl_shlibext"; then
8270 shrext=".$acl_shlibext" # typically: shrext=.so
8271 else
8272 shrext=
8273 fi
a04eba3f 8274 if test $use_additional = yes; then
93613951
TT
8275 dir="$additional_libdir"
8276 if test -n "$acl_shlibext"; then
8277 if test -f "$dir/$libname$shrext"; then
8278 found_dir="$dir"
8279 found_so="$dir/$libname$shrext"
8280 else
8281 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8282 ver=`(cd "$dir" && \
8283 for f in "$libname$shrext".*; do echo "$f"; done \
8284 | sed -e "s,^$libname$shrext\\\\.,," \
8285 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8286 | sed 1q ) 2>/dev/null`
8287 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8288 found_dir="$dir"
8289 found_so="$dir/$libname$shrext.$ver"
8290 fi
8291 else
8292 eval library_names=\"$acl_library_names_spec\"
8293 for f in $library_names; do
8294 if test -f "$dir/$f"; then
8295 found_dir="$dir"
8296 found_so="$dir/$f"
8297 break
8298 fi
8299 done
a04eba3f
TT
8300 fi
8301 fi
93613951
TT
8302 fi
8303 if test "X$found_dir" = "X"; then
8304 if test -f "$dir/$libname.$acl_libext"; then
8305 found_dir="$dir"
8306 found_a="$dir/$libname.$acl_libext"
8307 fi
8308 fi
8309 if test "X$found_dir" != "X"; then
8310 if test -f "$dir/$libname.la"; then
8311 found_la="$dir/$libname.la"
8312 fi
a04eba3f
TT
8313 fi
8314 fi
8315 if test "X$found_dir" = "X"; then
93613951 8316 for x in $LDFLAGS $LTLIBPTH; do
b0cacab0 8317
a04eba3f
TT
8318 acl_save_prefix="$prefix"
8319 prefix="$acl_final_prefix"
8320 acl_save_exec_prefix="$exec_prefix"
8321 exec_prefix="$acl_final_exec_prefix"
8322 eval x=\"$x\"
8323 exec_prefix="$acl_save_exec_prefix"
8324 prefix="$acl_save_prefix"
8325
8326 case "$x" in
8327 -L*)
8328 dir=`echo "X$x" | sed -e 's/^X-L//'`
93613951
TT
8329 if test -n "$acl_shlibext"; then
8330 if test -f "$dir/$libname$shrext"; then
a04eba3f 8331 found_dir="$dir"
93613951
TT
8332 found_so="$dir/$libname$shrext"
8333 else
8334 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8335 ver=`(cd "$dir" && \
8336 for f in "$libname$shrext".*; do echo "$f"; done \
8337 | sed -e "s,^$libname$shrext\\\\.,," \
8338 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8339 | sed 1q ) 2>/dev/null`
8340 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8341 found_dir="$dir"
8342 found_so="$dir/$libname$shrext.$ver"
8343 fi
8344 else
8345 eval library_names=\"$acl_library_names_spec\"
8346 for f in $library_names; do
8347 if test -f "$dir/$f"; then
8348 found_dir="$dir"
8349 found_so="$dir/$f"
8350 break
8351 fi
8352 done
a04eba3f
TT
8353 fi
8354 fi
93613951
TT
8355 fi
8356 if test "X$found_dir" = "X"; then
8357 if test -f "$dir/$libname.$acl_libext"; then
8358 found_dir="$dir"
8359 found_a="$dir/$libname.$acl_libext"
8360 fi
8361 fi
8362 if test "X$found_dir" != "X"; then
8363 if test -f "$dir/$libname.la"; then
8364 found_la="$dir/$libname.la"
8365 fi
a04eba3f
TT
8366 fi
8367 ;;
8368 esac
8369 if test "X$found_dir" != "X"; then
8370 break
8371 fi
8372 done
8373 fi
8374 if test "X$found_dir" != "X"; then
93613951 8375 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
a04eba3f 8376 if test "X$found_so" != "X"; then
93613951
TT
8377 if test "$enable_rpath" = no \
8378 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8379 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8380 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
a04eba3f
TT
8381 else
8382 haveit=
8383 for x in $ltrpathdirs; do
8384 if test "X$x" = "X$found_dir"; then
8385 haveit=yes
8386 break
8387 fi
8388 done
8389 if test -z "$haveit"; then
8390 ltrpathdirs="$ltrpathdirs $found_dir"
8391 fi
93613951
TT
8392 if test "$acl_hardcode_direct" = yes; then
8393 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
a04eba3f 8394 else
93613951
TT
8395 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8396 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
a04eba3f
TT
8397 haveit=
8398 for x in $rpathdirs; do
8399 if test "X$x" = "X$found_dir"; then
8400 haveit=yes
8401 break
8402 fi
8403 done
8404 if test -z "$haveit"; then
8405 rpathdirs="$rpathdirs $found_dir"
8406 fi
8407 else
8408 haveit=
93613951 8409 for x in $LDFLAGS $LIBPTH; do
b0cacab0 8410
a04eba3f
TT
8411 acl_save_prefix="$prefix"
8412 prefix="$acl_final_prefix"
8413 acl_save_exec_prefix="$exec_prefix"
8414 exec_prefix="$acl_final_exec_prefix"
8415 eval x=\"$x\"
8416 exec_prefix="$acl_save_exec_prefix"
8417 prefix="$acl_save_prefix"
8418
8419 if test "X$x" = "X-L$found_dir"; then
8420 haveit=yes
8421 break
8422 fi
8423 done
8424 if test -z "$haveit"; then
93613951 8425 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
a04eba3f 8426 fi
93613951
TT
8427 if test "$acl_hardcode_minus_L" != no; then
8428 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
a04eba3f 8429 else
93613951 8430 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
a04eba3f
TT
8431 fi
8432 fi
8433 fi
8434 fi
8435 else
8436 if test "X$found_a" != "X"; then
93613951 8437 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
a04eba3f 8438 else
93613951 8439 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
a04eba3f
TT
8440 fi
8441 fi
8442 additional_includedir=
8443 case "$found_dir" in
93613951
TT
8444 */$acl_libdirstem | */$acl_libdirstem/)
8445 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8446 if test "$name" = 'pth'; then
8447 LIBPTH_PREFIX="$basedir"
8448 fi
8449 additional_includedir="$basedir/include"
8450 ;;
8451 */$acl_libdirstem2 | */$acl_libdirstem2/)
8452 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8453 if test "$name" = 'pth'; then
8454 LIBPTH_PREFIX="$basedir"
8455 fi
a04eba3f
TT
8456 additional_includedir="$basedir/include"
8457 ;;
8458 esac
8459 if test "X$additional_includedir" != "X"; then
8460 if test "X$additional_includedir" != "X/usr/include"; then
8461 haveit=
8462 if test "X$additional_includedir" = "X/usr/local/include"; then
8463 if test -n "$GCC"; then
8464 case $host_os in
93613951 8465 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
a04eba3f
TT
8466 esac
8467 fi
8468 fi
8469 if test -z "$haveit"; then
93613951 8470 for x in $CPPFLAGS $INCPTH; do
b0cacab0 8471
a04eba3f
TT
8472 acl_save_prefix="$prefix"
8473 prefix="$acl_final_prefix"
8474 acl_save_exec_prefix="$exec_prefix"
8475 exec_prefix="$acl_final_exec_prefix"
8476 eval x=\"$x\"
8477 exec_prefix="$acl_save_exec_prefix"
8478 prefix="$acl_save_prefix"
8479
8480 if test "X$x" = "X-I$additional_includedir"; then
8481 haveit=yes
8482 break
8483 fi
8484 done
8485 if test -z "$haveit"; then
8486 if test -d "$additional_includedir"; then
93613951 8487 INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
a04eba3f
TT
8488 fi
8489 fi
8490 fi
8491 fi
8492 fi
8493 if test -n "$found_la"; then
8494 save_libdir="$libdir"
8495 case "$found_la" in
8496 */* | *\\*) . "$found_la" ;;
8497 *) . "./$found_la" ;;
8498 esac
8499 libdir="$save_libdir"
8500 for dep in $dependency_libs; do
8501 case "$dep" in
8502 -L*)
8503 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
93613951
TT
8504 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
8505 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
a04eba3f 8506 haveit=
93613951
TT
8507 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
8508 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
a04eba3f
TT
8509 if test -n "$GCC"; then
8510 case $host_os in
93613951 8511 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
a04eba3f
TT
8512 esac
8513 fi
8514 fi
8515 if test -z "$haveit"; then
8516 haveit=
93613951 8517 for x in $LDFLAGS $LIBPTH; do
b0cacab0 8518
a04eba3f
TT
8519 acl_save_prefix="$prefix"
8520 prefix="$acl_final_prefix"
8521 acl_save_exec_prefix="$exec_prefix"
8522 exec_prefix="$acl_final_exec_prefix"
8523 eval x=\"$x\"
8524 exec_prefix="$acl_save_exec_prefix"
8525 prefix="$acl_save_prefix"
8526
8527 if test "X$x" = "X-L$additional_libdir"; then
8528 haveit=yes
8529 break
8530 fi
8531 done
8532 if test -z "$haveit"; then
8533 if test -d "$additional_libdir"; then
93613951 8534 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
a04eba3f
TT
8535 fi
8536 fi
8537 haveit=
93613951 8538 for x in $LDFLAGS $LTLIBPTH; do
b0cacab0 8539
a04eba3f
TT
8540 acl_save_prefix="$prefix"
8541 prefix="$acl_final_prefix"
8542 acl_save_exec_prefix="$exec_prefix"
8543 exec_prefix="$acl_final_exec_prefix"
8544 eval x=\"$x\"
8545 exec_prefix="$acl_save_exec_prefix"
8546 prefix="$acl_save_prefix"
8547
8548 if test "X$x" = "X-L$additional_libdir"; then
8549 haveit=yes
8550 break
8551 fi
8552 done
8553 if test -z "$haveit"; then
8554 if test -d "$additional_libdir"; then
93613951 8555 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
a04eba3f
TT
8556 fi
8557 fi
8558 fi
8559 fi
8560 ;;
8561 -R*)
8562 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8563 if test "$enable_rpath" != no; then
8564 haveit=
8565 for x in $rpathdirs; do
8566 if test "X$x" = "X$dir"; then
8567 haveit=yes
8568 break
8569 fi
8570 done
8571 if test -z "$haveit"; then
8572 rpathdirs="$rpathdirs $dir"
8573 fi
8574 haveit=
8575 for x in $ltrpathdirs; do
8576 if test "X$x" = "X$dir"; then
8577 haveit=yes
8578 break
8579 fi
8580 done
8581 if test -z "$haveit"; then
8582 ltrpathdirs="$ltrpathdirs $dir"
8583 fi
8584 fi
8585 ;;
8586 -l*)
8587 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8588 ;;
8589 *.la)
8590 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8591 ;;
8592 *)
93613951
TT
8593 LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
8594 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
a04eba3f
TT
8595 ;;
8596 esac
8597 done
8598 fi
8599 else
93613951
TT
8600 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8601 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
a04eba3f
TT
8602 fi
8603 fi
8604 fi
8605 done
8606 done
8607 if test "X$rpathdirs" != "X"; then
93613951 8608 if test -n "$acl_hardcode_libdir_separator"; then
a04eba3f
TT
8609 alldirs=
8610 for found_dir in $rpathdirs; do
93613951 8611 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
a04eba3f
TT
8612 done
8613 acl_save_libdir="$libdir"
8614 libdir="$alldirs"
93613951 8615 eval flag=\"$acl_hardcode_libdir_flag_spec\"
a04eba3f 8616 libdir="$acl_save_libdir"
93613951 8617 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
a04eba3f
TT
8618 else
8619 for found_dir in $rpathdirs; do
8620 acl_save_libdir="$libdir"
8621 libdir="$found_dir"
93613951 8622 eval flag=\"$acl_hardcode_libdir_flag_spec\"
a04eba3f 8623 libdir="$acl_save_libdir"
93613951 8624 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
a04eba3f
TT
8625 done
8626 fi
8627 fi
8628 if test "X$ltrpathdirs" != "X"; then
8629 for found_dir in $ltrpathdirs; do
93613951 8630 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
a04eba3f 8631 done
b0cacab0 8632 fi
b0cacab0 8633
a04eba3f 8634
93636bde 8635
a64c9c13 8636
93636bde 8637
b0cacab0 8638
93613951
TT
8639 ac_cv_libpth_libs="$LIBPTH"
8640 ac_cv_libpth_ltlibs="$LTLIBPTH"
8641 ac_cv_libpth_cppflags="$INCPTH"
8642 ac_cv_libpth_prefix="$LIBPTH_PREFIX"
8643
8644fi
8645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
8646$as_echo "$ac_cv_libpth_libs" >&6; }
8647 LIBPTH="$ac_cv_libpth_libs"
8648 LTLIBPTH="$ac_cv_libpth_ltlibs"
8649 INCPTH="$ac_cv_libpth_cppflags"
8650 LIBPTH_PREFIX="$ac_cv_libpth_prefix"
8651
8652 for element in $INCPTH; do
8653 haveit=
8654 for x in $CPPFLAGS; do
8655
8656 acl_save_prefix="$prefix"
8657 prefix="$acl_final_prefix"
8658 acl_save_exec_prefix="$exec_prefix"
8659 exec_prefix="$acl_final_exec_prefix"
8660 eval x=\"$x\"
8661 exec_prefix="$acl_save_exec_prefix"
8662 prefix="$acl_save_prefix"
8663
8664 if test "X$x" = "X$element"; then
8665 haveit=yes
8666 break
8667 fi
8668 done
8669 if test -z "$haveit"; then
8670 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8671 fi
8672 done
8673
8674
8675
8676
8677 HAVE_LIBPTH=yes
8678
8679
8680
8681 gl_have_pth=
8682 gl_save_LIBS="$LIBS"
8683 LIBS="$LIBS $LIBPTH"
8684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8685/* end confdefs.h. */
8686#include <pth.h>
8687int
8688main ()
8689{
8690pth_self();
8691 ;
8692 return 0;
8693}
8694_ACEOF
8695if ac_fn_c_try_link "$LINENO"; then :
8696 gl_have_pth=yes
8697fi
8698rm -f core conftest.err conftest.$ac_objext \
8699 conftest$ac_exeext conftest.$ac_ext
8700 LIBS="$gl_save_LIBS"
8701 if test -n "$gl_have_pth"; then
8702 gl_threads_api=pth
8703 LIBTHREAD="$LIBPTH"
8704 LTLIBTHREAD="$LTLIBPTH"
8705 LIBMULTITHREAD="$LIBTHREAD"
8706 LTLIBMULTITHREAD="$LTLIBTHREAD"
8707
8708$as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
8709
8710 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8711 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8712
8713$as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
8714
8715 LIBTHREAD=
8716 LTLIBTHREAD=
8717 fi
8718 fi
8719 else
8720 CPPFLAGS="$gl_save_CPPFLAGS"
8721 fi
8722 fi
8723 if test -z "$gl_have_pthread"; then
8724 case "$gl_use_threads" in
8725 yes | windows | win32) # The 'win32' is for backward compatibility.
8726 if { case "$host_os" in
8727 mingw*) true;;
8728 *) false;;
8729 esac
8730 }; then
8731 gl_threads_api=windows
8732
8733$as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
8734
8735 fi
8736 ;;
8737 esac
8738 fi
8739 fi
8740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
8741$as_echo_n "checking for multithread API to use... " >&6; }
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
8743$as_echo "$gl_threads_api" >&6; }
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754
8755 if test "$gl_threads_api" = posix; then
8756 # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
8757 # pthread_rwlock_* functions.
8758 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
8759"
8760if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
8761
8762$as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
8763
8764fi
8765
8766 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
8767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8768/* end confdefs.h. */
8769
8770 #include <pthread.h>
8771int
8772main ()
8773{
8774
8775#if __FreeBSD__ == 4
8776error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
8777#elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
8778 && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
8779error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
8780#else
8781int x = (int)PTHREAD_MUTEX_RECURSIVE;
8782return !x;
8783#endif
8784
8785 ;
8786 return 0;
8787}
8788_ACEOF
8789if ac_fn_c_try_compile "$LINENO"; then :
8790
8791$as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
8792
8793fi
8794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8795 fi
8796 :
8797
8798
8799
8800
8801
8802
8803
8804
8805
8806
8807
8808
8809 use_additional=yes
8810
8811 acl_save_prefix="$prefix"
8812 prefix="$acl_final_prefix"
8813 acl_save_exec_prefix="$exec_prefix"
8814 exec_prefix="$acl_final_exec_prefix"
8815
8816 eval additional_includedir=\"$includedir\"
8817 eval additional_libdir=\"$libdir\"
8818
8819 exec_prefix="$acl_save_exec_prefix"
8820 prefix="$acl_save_prefix"
8821
8822
8823# Check whether --with-libiconv-prefix was given.
8824if test "${with_libiconv_prefix+set}" = set; then :
8825 withval=$with_libiconv_prefix;
8826 if test "X$withval" = "Xno"; then
8827 use_additional=no
8828 else
8829 if test "X$withval" = "X"; then
8830
8831 acl_save_prefix="$prefix"
8832 prefix="$acl_final_prefix"
8833 acl_save_exec_prefix="$exec_prefix"
8834 exec_prefix="$acl_final_exec_prefix"
8835
8836 eval additional_includedir=\"$includedir\"
8837 eval additional_libdir=\"$libdir\"
8838
8839 exec_prefix="$acl_save_exec_prefix"
8840 prefix="$acl_save_prefix"
8841
8842 else
8843 additional_includedir="$withval/include"
8844 additional_libdir="$withval/$acl_libdirstem"
8845 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8846 && ! test -d "$withval/$acl_libdirstem"; then
8847 additional_libdir="$withval/$acl_libdirstem2"
8848 fi
8849 fi
8850 fi
8851
8852fi
8853
8854 LIBICONV=
8855 LTLIBICONV=
8856 INCICONV=
8857 LIBICONV_PREFIX=
8858 HAVE_LIBICONV=
8859 rpathdirs=
8860 ltrpathdirs=
8861 names_already_handled=
8862 names_next_round='iconv '
8863 while test -n "$names_next_round"; do
8864 names_this_round="$names_next_round"
8865 names_next_round=
8866 for name in $names_this_round; do
8867 already_handled=
8868 for n in $names_already_handled; do
8869 if test "$n" = "$name"; then
8870 already_handled=yes
8871 break
8872 fi
8873 done
8874 if test -z "$already_handled"; then
8875 names_already_handled="$names_already_handled $name"
8876 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8877 eval value=\"\$HAVE_LIB$uppername\"
8878 if test -n "$value"; then
8879 if test "$value" = yes; then
8880 eval value=\"\$LIB$uppername\"
8881 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8882 eval value=\"\$LTLIB$uppername\"
8883 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8884 else
8885 :
8886 fi
8887 else
8888 found_dir=
8889 found_la=
8890 found_so=
8891 found_a=
8892 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8893 if test -n "$acl_shlibext"; then
8894 shrext=".$acl_shlibext" # typically: shrext=.so
8895 else
8896 shrext=
8897 fi
8898 if test $use_additional = yes; then
8899 dir="$additional_libdir"
8900 if test -n "$acl_shlibext"; then
8901 if test -f "$dir/$libname$shrext"; then
8902 found_dir="$dir"
8903 found_so="$dir/$libname$shrext"
8904 else
8905 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8906 ver=`(cd "$dir" && \
8907 for f in "$libname$shrext".*; do echo "$f"; done \
8908 | sed -e "s,^$libname$shrext\\\\.,," \
8909 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8910 | sed 1q ) 2>/dev/null`
8911 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8912 found_dir="$dir"
8913 found_so="$dir/$libname$shrext.$ver"
8914 fi
8915 else
8916 eval library_names=\"$acl_library_names_spec\"
8917 for f in $library_names; do
8918 if test -f "$dir/$f"; then
8919 found_dir="$dir"
8920 found_so="$dir/$f"
8921 break
8922 fi
8923 done
8924 fi
8925 fi
8926 fi
8927 if test "X$found_dir" = "X"; then
8928 if test -f "$dir/$libname.$acl_libext"; then
8929 found_dir="$dir"
8930 found_a="$dir/$libname.$acl_libext"
8931 fi
8932 fi
8933 if test "X$found_dir" != "X"; then
8934 if test -f "$dir/$libname.la"; then
8935 found_la="$dir/$libname.la"
8936 fi
8937 fi
8938 fi
8939 if test "X$found_dir" = "X"; then
8940 for x in $LDFLAGS $LTLIBICONV; do
8941
8942 acl_save_prefix="$prefix"
8943 prefix="$acl_final_prefix"
8944 acl_save_exec_prefix="$exec_prefix"
8945 exec_prefix="$acl_final_exec_prefix"
8946 eval x=\"$x\"
8947 exec_prefix="$acl_save_exec_prefix"
8948 prefix="$acl_save_prefix"
8949
8950 case "$x" in
8951 -L*)
8952 dir=`echo "X$x" | sed -e 's/^X-L//'`
8953 if test -n "$acl_shlibext"; then
8954 if test -f "$dir/$libname$shrext"; then
8955 found_dir="$dir"
8956 found_so="$dir/$libname$shrext"
8957 else
8958 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8959 ver=`(cd "$dir" && \
8960 for f in "$libname$shrext".*; do echo "$f"; done \
8961 | sed -e "s,^$libname$shrext\\\\.,," \
8962 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8963 | sed 1q ) 2>/dev/null`
8964 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8965 found_dir="$dir"
8966 found_so="$dir/$libname$shrext.$ver"
8967 fi
8968 else
8969 eval library_names=\"$acl_library_names_spec\"
8970 for f in $library_names; do
8971 if test -f "$dir/$f"; then
8972 found_dir="$dir"
8973 found_so="$dir/$f"
8974 break
8975 fi
8976 done
8977 fi
8978 fi
8979 fi
8980 if test "X$found_dir" = "X"; then
8981 if test -f "$dir/$libname.$acl_libext"; then
8982 found_dir="$dir"
8983 found_a="$dir/$libname.$acl_libext"
8984 fi
8985 fi
8986 if test "X$found_dir" != "X"; then
8987 if test -f "$dir/$libname.la"; then
8988 found_la="$dir/$libname.la"
8989 fi
8990 fi
8991 ;;
8992 esac
8993 if test "X$found_dir" != "X"; then
8994 break
8995 fi
8996 done
8997 fi
8998 if test "X$found_dir" != "X"; then
8999 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
9000 if test "X$found_so" != "X"; then
9001 if test "$enable_rpath" = no \
9002 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
9003 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
9004 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9005 else
9006 haveit=
9007 for x in $ltrpathdirs; do
9008 if test "X$x" = "X$found_dir"; then
9009 haveit=yes
9010 break
9011 fi
9012 done
9013 if test -z "$haveit"; then
9014 ltrpathdirs="$ltrpathdirs $found_dir"
9015 fi
9016 if test "$acl_hardcode_direct" = yes; then
9017 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9018 else
9019 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
9020 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9021 haveit=
9022 for x in $rpathdirs; do
9023 if test "X$x" = "X$found_dir"; then
9024 haveit=yes
9025 break
9026 fi
9027 done
9028 if test -z "$haveit"; then
9029 rpathdirs="$rpathdirs $found_dir"
9030 fi
9031 else
9032 haveit=
9033 for x in $LDFLAGS $LIBICONV; do
9034
9035 acl_save_prefix="$prefix"
9036 prefix="$acl_final_prefix"
9037 acl_save_exec_prefix="$exec_prefix"
9038 exec_prefix="$acl_final_exec_prefix"
9039 eval x=\"$x\"
9040 exec_prefix="$acl_save_exec_prefix"
9041 prefix="$acl_save_prefix"
9042
9043 if test "X$x" = "X-L$found_dir"; then
9044 haveit=yes
9045 break
9046 fi
9047 done
9048 if test -z "$haveit"; then
9049 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9050 fi
9051 if test "$acl_hardcode_minus_L" != no; then
9052 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9053 else
9054 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9055 fi
9056 fi
9057 fi
9058 fi
9059 else
9060 if test "X$found_a" != "X"; then
9061 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9062 else
9063 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9064 fi
9065 fi
9066 additional_includedir=
9067 case "$found_dir" in
9068 */$acl_libdirstem | */$acl_libdirstem/)
9069 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9070 if test "$name" = 'iconv'; then
9071 LIBICONV_PREFIX="$basedir"
9072 fi
9073 additional_includedir="$basedir/include"
9074 ;;
9075 */$acl_libdirstem2 | */$acl_libdirstem2/)
9076 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9077 if test "$name" = 'iconv'; then
9078 LIBICONV_PREFIX="$basedir"
9079 fi
9080 additional_includedir="$basedir/include"
9081 ;;
9082 esac
9083 if test "X$additional_includedir" != "X"; then
9084 if test "X$additional_includedir" != "X/usr/include"; then
9085 haveit=
9086 if test "X$additional_includedir" = "X/usr/local/include"; then
9087 if test -n "$GCC"; then
9088 case $host_os in
9089 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9090 esac
9091 fi
9092 fi
9093 if test -z "$haveit"; then
9094 for x in $CPPFLAGS $INCICONV; do
9095
9096 acl_save_prefix="$prefix"
9097 prefix="$acl_final_prefix"
9098 acl_save_exec_prefix="$exec_prefix"
9099 exec_prefix="$acl_final_exec_prefix"
9100 eval x=\"$x\"
9101 exec_prefix="$acl_save_exec_prefix"
9102 prefix="$acl_save_prefix"
9103
9104 if test "X$x" = "X-I$additional_includedir"; then
9105 haveit=yes
9106 break
9107 fi
9108 done
9109 if test -z "$haveit"; then
9110 if test -d "$additional_includedir"; then
9111 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9112 fi
9113 fi
9114 fi
9115 fi
9116 fi
9117 if test -n "$found_la"; then
9118 save_libdir="$libdir"
9119 case "$found_la" in
9120 */* | *\\*) . "$found_la" ;;
9121 *) . "./$found_la" ;;
9122 esac
9123 libdir="$save_libdir"
9124 for dep in $dependency_libs; do
9125 case "$dep" in
9126 -L*)
9127 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
9128 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
9129 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
9130 haveit=
9131 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
9132 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
9133 if test -n "$GCC"; then
9134 case $host_os in
9135 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
9136 esac
9137 fi
9138 fi
9139 if test -z "$haveit"; then
9140 haveit=
9141 for x in $LDFLAGS $LIBICONV; do
9142
9143 acl_save_prefix="$prefix"
9144 prefix="$acl_final_prefix"
9145 acl_save_exec_prefix="$exec_prefix"
9146 exec_prefix="$acl_final_exec_prefix"
9147 eval x=\"$x\"
9148 exec_prefix="$acl_save_exec_prefix"
9149 prefix="$acl_save_prefix"
9150
9151 if test "X$x" = "X-L$additional_libdir"; then
9152 haveit=yes
9153 break
9154 fi
9155 done
9156 if test -z "$haveit"; then
9157 if test -d "$additional_libdir"; then
9158 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9159 fi
9160 fi
9161 haveit=
9162 for x in $LDFLAGS $LTLIBICONV; do
9163
9164 acl_save_prefix="$prefix"
9165 prefix="$acl_final_prefix"
9166 acl_save_exec_prefix="$exec_prefix"
9167 exec_prefix="$acl_final_exec_prefix"
9168 eval x=\"$x\"
9169 exec_prefix="$acl_save_exec_prefix"
9170 prefix="$acl_save_prefix"
9171
9172 if test "X$x" = "X-L$additional_libdir"; then
9173 haveit=yes
9174 break
9175 fi
9176 done
9177 if test -z "$haveit"; then
9178 if test -d "$additional_libdir"; then
9179 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9180 fi
9181 fi
9182 fi
9183 fi
9184 ;;
9185 -R*)
9186 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9187 if test "$enable_rpath" != no; then
9188 haveit=
9189 for x in $rpathdirs; do
9190 if test "X$x" = "X$dir"; then
9191 haveit=yes
9192 break
9193 fi
9194 done
9195 if test -z "$haveit"; then
9196 rpathdirs="$rpathdirs $dir"
9197 fi
9198 haveit=
9199 for x in $ltrpathdirs; do
9200 if test "X$x" = "X$dir"; then
9201 haveit=yes
9202 break
9203 fi
9204 done
9205 if test -z "$haveit"; then
9206 ltrpathdirs="$ltrpathdirs $dir"
9207 fi
9208 fi
9209 ;;
9210 -l*)
9211 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9212 ;;
9213 *.la)
9214 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9215 ;;
9216 *)
9217 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9218 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9219 ;;
9220 esac
9221 done
9222 fi
9223 else
9224 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9225 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9226 fi
9227 fi
9228 fi
9229 done
9230 done
9231 if test "X$rpathdirs" != "X"; then
9232 if test -n "$acl_hardcode_libdir_separator"; then
9233 alldirs=
9234 for found_dir in $rpathdirs; do
9235 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
9236 done
9237 acl_save_libdir="$libdir"
9238 libdir="$alldirs"
9239 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9240 libdir="$acl_save_libdir"
9241 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9242 else
9243 for found_dir in $rpathdirs; do
9244 acl_save_libdir="$libdir"
9245 libdir="$found_dir"
9246 eval flag=\"$acl_hardcode_libdir_flag_spec\"
9247 libdir="$acl_save_libdir"
9248 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9249 done
9250 fi
9251 fi
9252 if test "X$ltrpathdirs" != "X"; then
9253 for found_dir in $ltrpathdirs; do
9254 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9255 done
9256 fi
9257
9258
9259
9260
9261
9262
9263
9264
9265
9266
9267
9268
9269 am_save_CPPFLAGS="$CPPFLAGS"
9270
9271 for element in $INCICONV; do
9272 haveit=
9273 for x in $CPPFLAGS; do
9274
9275 acl_save_prefix="$prefix"
9276 prefix="$acl_final_prefix"
9277 acl_save_exec_prefix="$exec_prefix"
9278 exec_prefix="$acl_final_exec_prefix"
9279 eval x=\"$x\"
9280 exec_prefix="$acl_save_exec_prefix"
9281 prefix="$acl_save_prefix"
9282
9283 if test "X$x" = "X$element"; then
9284 haveit=yes
9285 break
9286 fi
9287 done
9288 if test -z "$haveit"; then
9289 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9290 fi
9291 done
9292
9293
9294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
9295$as_echo_n "checking for iconv... " >&6; }
9296if ${am_cv_func_iconv+:} false; then :
9297 $as_echo_n "(cached) " >&6
9298else
9299
9300 am_cv_func_iconv="no, consider installing GNU libiconv"
9301 am_cv_lib_iconv=no
9302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9303/* end confdefs.h. */
9304
9305#include <stdlib.h>
9306#include <iconv.h>
9307
9308int
9309main ()
9310{
9311iconv_t cd = iconv_open("","");
9312 iconv(cd,NULL,NULL,NULL,NULL);
9313 iconv_close(cd);
9314 ;
9315 return 0;
9316}
9317_ACEOF
9318if ac_fn_c_try_link "$LINENO"; then :
9319 am_cv_func_iconv=yes
9320fi
9321rm -f core conftest.err conftest.$ac_objext \
9322 conftest$ac_exeext conftest.$ac_ext
9323 if test "$am_cv_func_iconv" != yes; then
9324 am_save_LIBS="$LIBS"
9325 LIBS="$LIBS $LIBICONV"
9326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9327/* end confdefs.h. */
9328
9329#include <stdlib.h>
9330#include <iconv.h>
9331
9332int
9333main ()
9334{
9335iconv_t cd = iconv_open("","");
9336 iconv(cd,NULL,NULL,NULL,NULL);
9337 iconv_close(cd);
9338 ;
9339 return 0;
9340}
9341_ACEOF
9342if ac_fn_c_try_link "$LINENO"; then :
9343 am_cv_lib_iconv=yes
9344 am_cv_func_iconv=yes
9345fi
9346rm -f core conftest.err conftest.$ac_objext \
9347 conftest$ac_exeext conftest.$ac_ext
9348 LIBS="$am_save_LIBS"
9349 fi
9350
9351fi
9352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
9353$as_echo "$am_cv_func_iconv" >&6; }
9354 if test "$am_cv_func_iconv" = yes; then
9355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
9356$as_echo_n "checking for working iconv... " >&6; }
9357if ${am_cv_func_iconv_works+:} false; then :
9358 $as_echo_n "(cached) " >&6
9359else
9360
9361 am_save_LIBS="$LIBS"
9362 if test $am_cv_lib_iconv = yes; then
9363 LIBS="$LIBS $LIBICONV"
9364 fi
9365 if test "$cross_compiling" = yes; then :
9366
9367 case "$host_os" in
9368 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
9369 *) am_cv_func_iconv_works="guessing yes" ;;
9370 esac
9371
9372else
9373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9374/* end confdefs.h. */
9375
9376#include <iconv.h>
9377#include <string.h>
9378int main ()
9379{
9380 int result = 0;
9381 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
9382 returns. */
9383 {
9384 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
9385 if (cd_utf8_to_88591 != (iconv_t)(-1))
9386 {
9387 static const char input[] = "\342\202\254"; /* EURO SIGN */
9388 char buf[10];
9389 const char *inptr = input;
9390 size_t inbytesleft = strlen (input);
9391 char *outptr = buf;
9392 size_t outbytesleft = sizeof (buf);
9393 size_t res = iconv (cd_utf8_to_88591,
9394 (char **) &inptr, &inbytesleft,
9395 &outptr, &outbytesleft);
9396 if (res == 0)
9397 result |= 1;
9398 iconv_close (cd_utf8_to_88591);
9399 }
9400 }
9401 /* Test against Solaris 10 bug: Failures are not distinguishable from
9402 successful returns. */
9403 {
9404 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
9405 if (cd_ascii_to_88591 != (iconv_t)(-1))
9406 {
9407 static const char input[] = "\263";
9408 char buf[10];
9409 const char *inptr = input;
9410 size_t inbytesleft = strlen (input);
9411 char *outptr = buf;
9412 size_t outbytesleft = sizeof (buf);
9413 size_t res = iconv (cd_ascii_to_88591,
9414 (char **) &inptr, &inbytesleft,
9415 &outptr, &outbytesleft);
9416 if (res == 0)
9417 result |= 2;
9418 iconv_close (cd_ascii_to_88591);
9419 }
9420 }
9421 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
9422 {
9423 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
9424 if (cd_88591_to_utf8 != (iconv_t)(-1))
9425 {
9426 static const char input[] = "\304";
9427 static char buf[2] = { (char)0xDE, (char)0xAD };
9428 const char *inptr = input;
9429 size_t inbytesleft = 1;
9430 char *outptr = buf;
9431 size_t outbytesleft = 1;
9432 size_t res = iconv (cd_88591_to_utf8,
9433 (char **) &inptr, &inbytesleft,
9434 &outptr, &outbytesleft);
9435 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
9436 result |= 4;
9437 iconv_close (cd_88591_to_utf8);
9438 }
9439 }
9440#if 0 /* This bug could be worked around by the caller. */
9441 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
9442 {
9443 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
9444 if (cd_88591_to_utf8 != (iconv_t)(-1))
9445 {
9446 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
9447 char buf[50];
9448 const char *inptr = input;
9449 size_t inbytesleft = strlen (input);
9450 char *outptr = buf;
9451 size_t outbytesleft = sizeof (buf);
9452 size_t res = iconv (cd_88591_to_utf8,
9453 (char **) &inptr, &inbytesleft,
9454 &outptr, &outbytesleft);
9455 if ((int)res > 0)
9456 result |= 8;
9457 iconv_close (cd_88591_to_utf8);
9458 }
9459 }
9460#endif
9461 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
9462 provided. */
9463 if (/* Try standardized names. */
9464 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
9465 /* Try IRIX, OSF/1 names. */
9466 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
9467 /* Try AIX names. */
9468 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
9469 /* Try HP-UX names. */
9470 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
9471 result |= 16;
9472 return result;
9473}
9474_ACEOF
9475if ac_fn_c_try_run "$LINENO"; then :
9476 am_cv_func_iconv_works=yes
9477else
9478 am_cv_func_iconv_works=no
9479fi
9480rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9481 conftest.$ac_objext conftest.beam conftest.$ac_ext
9482fi
9483
9484 LIBS="$am_save_LIBS"
9485
9486fi
9487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
9488$as_echo "$am_cv_func_iconv_works" >&6; }
9489 case "$am_cv_func_iconv_works" in
9490 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
9491 *) am_func_iconv=yes ;;
9492 esac
9493 else
9494 am_func_iconv=no am_cv_lib_iconv=no
9495 fi
9496 if test "$am_func_iconv" = yes; then
9497
9498$as_echo "#define HAVE_ICONV 1" >>confdefs.h
9499
9500 fi
9501 if test "$am_cv_lib_iconv" = yes; then
9502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
9503$as_echo_n "checking how to link with libiconv... " >&6; }
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
9505$as_echo "$LIBICONV" >&6; }
9506 else
9507 CPPFLAGS="$am_save_CPPFLAGS"
9508 LIBICONV=
9509 LTLIBICONV=
9510 fi
9511
9512
9513
9514 if test "$am_cv_func_iconv" = yes; then
9515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
9516$as_echo_n "checking for iconv declaration... " >&6; }
9517 if ${am_cv_proto_iconv+:} false; then :
9518 $as_echo_n "(cached) " >&6
9519else
9520
9521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9522/* end confdefs.h. */
9523
9524#include <stdlib.h>
9525#include <iconv.h>
9526extern
9527#ifdef __cplusplus
9528"C"
9529#endif
9530#if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
9531size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9532#else
9533size_t iconv();
9534#endif
9535
9536int
9537main ()
9538{
9539
9540 ;
9541 return 0;
9542}
9543_ACEOF
9544if ac_fn_c_try_compile "$LINENO"; then :
9545 am_cv_proto_iconv_arg1=""
9546else
9547 am_cv_proto_iconv_arg1="const"
9548fi
9549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9550 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
9551fi
9552
9553 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
9555 $am_cv_proto_iconv" >&5
9556$as_echo "
9557 $am_cv_proto_iconv" >&6; }
9558
9559cat >>confdefs.h <<_ACEOF
9560#define ICONV_CONST $am_cv_proto_iconv_arg1
9561_ACEOF
9562
9563
9564 fi
9565
9566
9567
9568
9569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9570/* end confdefs.h. */
9571int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
9572int
9573main ()
9574{
9575
9576 ;
9577 return 0;
9578}
9579_ACEOF
9580if ac_fn_c_try_link "$LINENO"; then :
9581
9582$as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
9583
9584fi
9585rm -f core conftest.err conftest.$ac_objext \
9586 conftest$ac_exeext conftest.$ac_ext
9587
9588 for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
9589do :
9590 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9591ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9592if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9593 cat >>confdefs.h <<_ACEOF
9594#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9595_ACEOF
9596
9597fi
9598
9599done
9600
9601 for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
9602 stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \
9603 argz_stringify argz_next __fsetlocking
9604do :
9605 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9606ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9607if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9608 cat >>confdefs.h <<_ACEOF
9609#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9610_ACEOF
9611
9612fi
9613done
9614
9615
9616 ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "#include <stdio.h>
9617"
9618if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then :
9619 ac_have_decl=1
9620else
9621 ac_have_decl=0
9622fi
9623
9624cat >>confdefs.h <<_ACEOF
9625#define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
9626_ACEOF
9627ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "#include <stdio.h>
9628"
9629if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then :
9630 ac_have_decl=1
9631else
9632 ac_have_decl=0
9633fi
9634
9635cat >>confdefs.h <<_ACEOF
9636#define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
9637_ACEOF
9638
9639
9640
9641
9642 for ac_prog in bison
9643do
9644 # Extract the first word of "$ac_prog", so it can be a program name with args.
9645set dummy $ac_prog; ac_word=$2
9646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9647$as_echo_n "checking for $ac_word... " >&6; }
9648if ${ac_cv_prog_INTLBISON+:} false; then :
9649 $as_echo_n "(cached) " >&6
9650else
9651 if test -n "$INTLBISON"; then
9652 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9653else
9654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9655for as_dir in $PATH
9656do
9657 IFS=$as_save_IFS
9658 test -z "$as_dir" && as_dir=.
9659 for ac_exec_ext in '' $ac_executable_extensions; do
9660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9661 ac_cv_prog_INTLBISON="$ac_prog"
9662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9663 break 2
9664 fi
9665done
9666 done
9667IFS=$as_save_IFS
9668
9669fi
9670fi
9671INTLBISON=$ac_cv_prog_INTLBISON
9672if test -n "$INTLBISON"; then
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
9674$as_echo "$INTLBISON" >&6; }
9675else
9676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9677$as_echo "no" >&6; }
9678fi
9679
9680
9681 test -n "$INTLBISON" && break
9682done
9683
9684 if test -z "$INTLBISON"; then
9685 ac_verc_fail=yes
9686 else
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
9688$as_echo_n "checking version of bison... " >&6; }
9689 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9690 case $ac_prog_version in
9691 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9692 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9693 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9694 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9695 esac
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
9697$as_echo "$ac_prog_version" >&6; }
9698 fi
9699 if test $ac_verc_fail = yes; then
9700 INTLBISON=:
b0cacab0 9701 fi
b0cacab0 9702
a04eba3f 9703
93636bde 9704
93613951
TT
9705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
9706$as_echo_n "checking for long long int... " >&6; }
9707if ${ac_cv_type_long_long_int+:} false; then :
9708 $as_echo_n "(cached) " >&6
9709else
9710 ac_cv_type_long_long_int=yes
9711 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
9712 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
9713 if test $ac_cv_type_long_long_int = yes; then
9714 if test "$cross_compiling" = yes; then :
9715 :
9716else
9717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9718/* end confdefs.h. */
9719#include <limits.h>
9720 #ifndef LLONG_MAX
9721 # define HALF \
9722 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
9723 # define LLONG_MAX (HALF - 1 + HALF)
9724 #endif
9725int
9726main ()
9727{
9728long long int n = 1;
9729 int i;
9730 for (i = 0; ; i++)
9731 {
9732 long long int m = n << i;
9733 if (m >> i != n)
9734 return 1;
9735 if (LLONG_MAX / 2 < m)
9736 break;
9737 }
9738 return 0;
9739 ;
9740 return 0;
9741}
9742_ACEOF
9743if ac_fn_c_try_run "$LINENO"; then :
a64c9c13 9744
93613951
TT
9745else
9746 ac_cv_type_long_long_int=no
9747fi
9748rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9749 conftest.$ac_objext conftest.beam conftest.$ac_ext
9750fi
93636bde 9751
93613951
TT
9752 fi
9753 fi
9754fi
9755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
9756$as_echo "$ac_cv_type_long_long_int" >&6; }
9757 if test $ac_cv_type_long_long_int = yes; then
b0cacab0 9758
93613951 9759$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
b0cacab0 9760
93613951 9761 fi
b0cacab0
TT
9762
9763
93613951
TT
9764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
9765$as_echo_n "checking for wchar_t... " >&6; }
9766if ${gt_cv_c_wchar_t+:} false; then :
9767 $as_echo_n "(cached) " >&6
50e1e10f 9768else
93613951
TT
9769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9770/* end confdefs.h. */
9771#include <stddef.h>
9772 wchar_t foo = (wchar_t)'\0';
9773int
9774main ()
9775{
50e1e10f 9776
93613951
TT
9777 ;
9778 return 0;
9779}
57aa50d4 9780_ACEOF
93613951
TT
9781if ac_fn_c_try_compile "$LINENO"; then :
9782 gt_cv_c_wchar_t=yes
9783else
9784 gt_cv_c_wchar_t=no
57aa50d4 9785fi
93613951 9786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
fc6d9d51 9787fi
93613951
TT
9788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
9789$as_echo "$gt_cv_c_wchar_t" >&6; }
9790 if test $gt_cv_c_wchar_t = yes; then
b0cacab0 9791
93613951 9792$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
b0cacab0 9793
93613951 9794 fi
50e1e10f 9795
e1052144 9796
93613951
TT
9797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
9798$as_echo_n "checking for wint_t... " >&6; }
9799if ${gt_cv_c_wint_t+:} false; then :
39fd3d4f 9800 $as_echo_n "(cached) " >&6
50e1e10f 9801else
57aa50d4
TT
9802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9803/* end confdefs.h. */
bcb915b0 9804
93613951
TT
9805/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9806 <wchar.h>.
9807 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
9808 before <wchar.h>. */
9809#include <stddef.h>
57aa50d4 9810#include <stdio.h>
93613951
TT
9811#include <time.h>
9812#include <wchar.h>
9813 wint_t foo = (wchar_t)'\0';
57aa50d4
TT
9814int
9815main ()
9816{
50e1e10f 9817
57aa50d4
TT
9818 ;
9819 return 0;
9820}
9821_ACEOF
9822if ac_fn_c_try_compile "$LINENO"; then :
93613951 9823 gt_cv_c_wint_t=yes
50e1e10f 9824else
93613951 9825 gt_cv_c_wint_t=no
50e1e10f 9826fi
57aa50d4 9827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50e1e10f 9828fi
93613951
TT
9829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
9830$as_echo "$gt_cv_c_wint_t" >&6; }
9831 if test $gt_cv_c_wint_t = yes; then
bcb915b0 9832
93613951 9833$as_echo "#define HAVE_WINT_T 1" >>confdefs.h
50e1e10f 9834
57aa50d4 9835 fi
50e1e10f 9836
e1052144 9837
e1052144 9838
57aa50d4 9839
93613951
TT
9840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
9841$as_echo_n "checking for intmax_t... " >&6; }
9842if ${gt_cv_c_intmax_t+:} false; then :
39fd3d4f 9843 $as_echo_n "(cached) " >&6
50e1e10f 9844else
57aa50d4
TT
9845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9846/* end confdefs.h. */
b0cacab0 9847
93613951
TT
9848#include <stddef.h>
9849#include <stdlib.h>
9850#if HAVE_STDINT_H_WITH_UINTMAX
9851#include <stdint.h>
9852#endif
9853#if HAVE_INTTYPES_H_WITH_UINTMAX
9854#include <inttypes.h>
57aa50d4
TT
9855#endif
9856
93613951
TT
9857int
9858main ()
9859{
9860intmax_t x = -1;
9861 return !x;
57aa50d4
TT
9862 ;
9863 return 0;
9864}
9865_ACEOF
9866if ac_fn_c_try_compile "$LINENO"; then :
93613951 9867 gt_cv_c_intmax_t=yes
50e1e10f 9868else
93613951 9869 gt_cv_c_intmax_t=no
57aa50d4
TT
9870fi
9871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50e1e10f 9872fi
93613951
TT
9873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
9874$as_echo "$gt_cv_c_intmax_t" >&6; }
9875 if test $gt_cv_c_intmax_t = yes; then
9876
9877$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
9878
57aa50d4 9879 fi
50e1e10f 9880
93613951
TT
9881
9882
9883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
9884$as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
9885if ${gt_cv_func_printf_posix+:} false; then :
9886 $as_echo_n "(cached) " >&6
9887else
9888
9889 if test "$cross_compiling" = yes; then :
9890
9891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9892/* end confdefs.h. */
9893
9894#if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
9895 notposix
9896#endif
9897
9898_ACEOF
9899if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9900 $EGREP "notposix" >/dev/null 2>&1; then :
9901 gt_cv_func_printf_posix="guessing no"
9902else
9903 gt_cv_func_printf_posix="guessing yes"
9904fi
9905rm -f conftest*
9906
9907
9908else
9909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9910/* end confdefs.h. */
9911
9912#include <stdio.h>
9913#include <string.h>
9914/* The string "%2$d %1$d", with dollar characters protected from the shell's
9915 dollar expansion (possibly an autoconf bug). */
9916static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
9917static char buf[100];
9918int main ()
9919{
9920 sprintf (buf, format, 33, 55);
9921 return (strcmp (buf, "55 33") != 0);
9922}
9923_ACEOF
9924if ac_fn_c_try_run "$LINENO"; then :
9925 gt_cv_func_printf_posix=yes
9926else
9927 gt_cv_func_printf_posix=no
9928fi
9929rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9930 conftest.$ac_objext conftest.beam conftest.$ac_ext
9931fi
9932
9933
9934fi
9935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
9936$as_echo "$gt_cv_func_printf_posix" >&6; }
9937 case $gt_cv_func_printf_posix in
9938 *yes)
9939
9940$as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
9941
9942 ;;
9943 esac
9944
9945
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
9947$as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
9948if ${ac_cv_gnu_library_2_1+:} false; then :
9949 $as_echo_n "(cached) " >&6
9950else
9951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9952/* end confdefs.h. */
9953
9954#include <features.h>
9955#ifdef __GNU_LIBRARY__
9956 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9957 Lucky GNU user
9958 #endif
9959#endif
9960#ifdef __UCLIBC__
9961 Lucky user
9962#endif
9963
9964_ACEOF
9965if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9966 $EGREP "Lucky" >/dev/null 2>&1; then :
9967 ac_cv_gnu_library_2_1=yes
9968else
9969 ac_cv_gnu_library_2_1=no
9970fi
9971rm -f conftest*
9972
9973
9974
9975fi
9976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
9977$as_echo "$ac_cv_gnu_library_2_1" >&6; }
9978
9979 GLIBC21="$ac_cv_gnu_library_2_1"
9980
9981
9982
9983 for ac_header in stdint.h
9984do :
9985 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
9986if test "x$ac_cv_header_stdint_h" = xyes; then :
9987 cat >>confdefs.h <<_ACEOF
9988#define HAVE_STDINT_H 1
57aa50d4 9989_ACEOF
e1052144 9990
93613951 9991fi
e1052144 9992
93613951 9993done
57aa50d4 9994
93613951
TT
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
9996$as_echo_n "checking for SIZE_MAX... " >&6; }
9997if ${gl_cv_size_max+:} false; then :
39fd3d4f 9998 $as_echo_n "(cached) " >&6
50e1e10f 9999else
93613951
TT
10000
10001 gl_cv_size_max=
10002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10003/* end confdefs.h. */
10004
10005#include <limits.h>
10006#if HAVE_STDINT_H
10007#include <stdint.h>
10008#endif
10009#ifdef SIZE_MAX
10010Found it
10011#endif
10012
57aa50d4 10013_ACEOF
93613951
TT
10014if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10015 $EGREP "Found it" >/dev/null 2>&1; then :
10016 gl_cv_size_max=yes
10017fi
10018rm -f conftest*
e1052144 10019
93613951
TT
10020 if test -z "$gl_cv_size_max"; then
10021 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
10022#include <limits.h>"; then :
e1052144 10023
93613951
TT
10024else
10025 size_t_bits_minus_1=
10026fi
57aa50d4 10027
93613951 10028 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
57aa50d4 10029
50e1e10f 10030else
93613951
TT
10031 fits_in_uint=
10032fi
10033
10034 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
10035 if test $fits_in_uint = 1; then
10036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57aa50d4 10037/* end confdefs.h. */
93613951
TT
10038#include <stddef.h>
10039 extern size_t foo;
10040 extern unsigned long foo;
10041
57aa50d4
TT
10042int
10043main ()
10044{
b0cacab0 10045
57aa50d4
TT
10046 ;
10047 return 0;
10048}
10049_ACEOF
10050if ac_fn_c_try_compile "$LINENO"; then :
93613951 10051 fits_in_uint=0
93636bde 10052fi
57aa50d4 10053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
93613951
TT
10054 fi
10055 if test $fits_in_uint = 1; then
10056 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
10057 else
10058 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
10059 fi
10060 else
10061 gl_cv_size_max='((size_t)~(size_t)0)'
10062 fi
10063 fi
10064
50e1e10f 10065fi
93613951
TT
10066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
10067$as_echo "$gl_cv_size_max" >&6; }
10068 if test "$gl_cv_size_max" != yes; then
50e1e10f 10069
57aa50d4 10070cat >>confdefs.h <<_ACEOF
93613951 10071#define SIZE_MAX $gl_cv_size_max
57aa50d4 10072_ACEOF
e1052144 10073
93613951 10074 fi
32237014 10075
57aa50d4 10076
e1052144 10077
57aa50d4 10078
93613951
TT
10079 for ac_header in stdint.h
10080do :
10081 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
10082if test "x$ac_cv_header_stdint_h" = xyes; then :
10083 cat >>confdefs.h <<_ACEOF
10084#define HAVE_STDINT_H 1
57aa50d4 10085_ACEOF
93613951 10086
32237014 10087fi
32237014 10088
93613951 10089done
e1052144 10090
32237014 10091
57aa50d4 10092
e1052144 10093
57aa50d4 10094
93613951
TT
10095 for ac_func in $ac_func_list
10096do :
10097 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10098ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10099if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10100 cat >>confdefs.h <<_ACEOF
10101#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
57aa50d4 10102_ACEOF
32237014 10103
32237014 10104fi
93613951
TT
10105done
10106
10107
10108
e1052144 10109
57aa50d4 10110
e1052144 10111
57aa50d4 10112
93613951
TT
10113
10114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
10115$as_echo_n "checking for working fcntl.h... " >&6; }
10116if ${gl_cv_header_working_fcntl_h+:} false; then :
39fd3d4f 10117 $as_echo_n "(cached) " >&6
93613951
TT
10118else
10119 if test "$cross_compiling" = yes; then :
10120 gl_cv_header_working_fcntl_h=cross-compiling
50e1e10f 10121else
57aa50d4
TT
10122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10123/* end confdefs.h. */
93613951
TT
10124#include <sys/types.h>
10125 #include <sys/stat.h>
10126 #if HAVE_UNISTD_H
10127 # include <unistd.h>
10128 #else /* on Windows with MSVC */
10129 # include <io.h>
10130 # include <stdlib.h>
10131 # defined sleep(n) _sleep ((n) * 1000)
10132 #endif
10133 #include <fcntl.h>
10134 #ifndef O_NOATIME
10135 #define O_NOATIME 0
10136 #endif
10137 #ifndef O_NOFOLLOW
10138 #define O_NOFOLLOW 0
10139 #endif
10140 static int const constants[] =
10141 {
10142 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
10143 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
10144 };
10145
57aa50d4
TT
10146int
10147main ()
10148{
b0cacab0 10149
93613951
TT
10150 int result = !constants;
10151 #if HAVE_SYMLINK
10152 {
10153 static char const sym[] = "conftest.sym";
10154 if (symlink ("/dev/null", sym) != 0)
10155 result |= 2;
10156 else
10157 {
10158 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
10159 if (fd >= 0)
10160 {
10161 close (fd);
10162 result |= 4;
10163 }
10164 }
10165 if (unlink (sym) != 0 || symlink (".", sym) != 0)
10166 result |= 2;
10167 else
10168 {
10169 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
10170 if (fd >= 0)
10171 {
10172 close (fd);
10173 result |= 4;
10174 }
10175 }
10176 unlink (sym);
10177 }
10178 #endif
10179 {
10180 static char const file[] = "confdefs.h";
10181 int fd = open (file, O_RDONLY | O_NOATIME);
10182 if (fd < 0)
10183 result |= 8;
10184 else
10185 {
10186 struct stat st0;
10187 if (fstat (fd, &st0) != 0)
10188 result |= 16;
10189 else
10190 {
10191 char c;
10192 sleep (1);
10193 if (read (fd, &c, 1) != 1)
10194 result |= 24;
10195 else
10196 {
10197 if (close (fd) != 0)
10198 result |= 32;
10199 else
10200 {
10201 struct stat st1;
10202 if (stat (file, &st1) != 0)
10203 result |= 40;
10204 else
10205 if (st0.st_atime != st1.st_atime)
10206 result |= 64;
10207 }
10208 }
10209 }
10210 }
10211 }
10212 return result;
57aa50d4
TT
10213 ;
10214 return 0;
10215}
10216_ACEOF
93613951
TT
10217if ac_fn_c_try_run "$LINENO"; then :
10218 gl_cv_header_working_fcntl_h=yes
50e1e10f 10219else
93613951
TT
10220 case $? in #(
10221 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
10222 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
10223 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
10224 *) gl_cv_header_working_fcntl_h='no';;
10225 esac
50e1e10f 10226fi
93613951
TT
10227rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10228 conftest.$ac_objext conftest.beam conftest.$ac_ext
50e1e10f 10229fi
57aa50d4 10230
93613951
TT
10231fi
10232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
10233$as_echo "$gl_cv_header_working_fcntl_h" >&6; }
57aa50d4 10234
93613951
TT
10235 case $gl_cv_header_working_fcntl_h in #(
10236 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
10237 *) ac_val=1;;
57aa50d4
TT
10238 esac
10239
93613951
TT
10240cat >>confdefs.h <<_ACEOF
10241#define HAVE_WORKING_O_NOATIME $ac_val
10242_ACEOF
57aa50d4 10243
57aa50d4 10244
93613951
TT
10245 case $gl_cv_header_working_fcntl_h in #(
10246 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
10247 *) ac_val=1;;
10248 esac
57aa50d4 10249
93613951
TT
10250cat >>confdefs.h <<_ACEOF
10251#define HAVE_WORKING_O_NOFOLLOW $ac_val
10252_ACEOF
57aa50d4 10253
50e1e10f 10254
e1052144 10255
93613951
TT
10256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10257$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10258if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
39fd3d4f 10259 $as_echo_n "(cached) " >&6
9d564f73 10260else
93613951
TT
10261 gt_save_LIBS="$LIBS"
10262 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57aa50d4 10264/* end confdefs.h. */
93613951 10265#include <CoreFoundation/CFPreferences.h>
57aa50d4
TT
10266int
10267main ()
10268{
93613951 10269CFPreferencesCopyAppValue(NULL, NULL)
57aa50d4
TT
10270 ;
10271 return 0;
10272}
10273_ACEOF
10274if ac_fn_c_try_link "$LINENO"; then :
93613951
TT
10275 gt_cv_func_CFPreferencesCopyAppValue=yes
10276else
10277 gt_cv_func_CFPreferencesCopyAppValue=no
9d564f73 10278fi
57aa50d4
TT
10279rm -f core conftest.err conftest.$ac_objext \
10280 conftest$ac_exeext conftest.$ac_ext
93613951
TT
10281 LIBS="$gt_save_LIBS"
10282fi
10283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10284$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10285 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10286
10287$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10288
10289 fi
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10291$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10292if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10293 $as_echo_n "(cached) " >&6
10294else
10295 gt_save_LIBS="$LIBS"
10296 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
57aa50d4 10298/* end confdefs.h. */
93613951 10299#include <CoreFoundation/CFLocale.h>
57aa50d4
TT
10300int
10301main ()
10302{
93613951 10303CFLocaleCopyCurrent();
57aa50d4
TT
10304 ;
10305 return 0;
10306}
10307_ACEOF
10308if ac_fn_c_try_link "$LINENO"; then :
93613951
TT
10309 gt_cv_func_CFLocaleCopyCurrent=yes
10310else
10311 gt_cv_func_CFLocaleCopyCurrent=no
9d564f73 10312fi
57aa50d4
TT
10313rm -f core conftest.err conftest.$ac_objext \
10314 conftest$ac_exeext conftest.$ac_ext
93613951 10315 LIBS="$gt_save_LIBS"
50e1e10f 10316fi
93613951
TT
10317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10318$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10319 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
50e1e10f 10320
93613951 10321$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
e1052144 10322
b0cacab0 10323 fi
93613951
TT
10324 INTL_MACOSX_LIBS=
10325 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10326 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
e1052144 10327 fi
b0cacab0 10328
93636bde 10329
e1052144 10330
93613951
TT
10331
10332
10333
10334
10335
10336
10337
10338 case "$enable_silent_rules" in
10339 yes) INTL_DEFAULT_VERBOSITY=0;;
10340 no) INTL_DEFAULT_VERBOSITY=1;;
10341 *) INTL_DEFAULT_VERBOSITY=1;;
10342 esac
10343
10344
10345 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
10346if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
10347
50e1e10f 10348else
b0cacab0 10349
93613951 10350$as_echo "#define ptrdiff_t long" >>confdefs.h
50e1e10f 10351
e1052144 10352
93613951 10353fi
b0cacab0 10354
93613951
TT
10355 for ac_header in features.h stddef.h stdlib.h string.h
10356do :
10357 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10358ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10359if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10360 cat >>confdefs.h <<_ACEOF
10361#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
57aa50d4 10362_ACEOF
93613951
TT
10363
10364fi
10365
10366done
10367
10368 for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \
10369 snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
10370do :
10371 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10372ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10373if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10374 cat >>confdefs.h <<_ACEOF
10375#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
57aa50d4 10376_ACEOF
93613951
TT
10377
10378fi
10379done
10380
10381
10382 ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
10383"
10384if test "x$ac_cv_have_decl__snprintf" = xyes; then :
10385 ac_have_decl=1
50e1e10f 10386else
93613951 10387 ac_have_decl=0
50e1e10f 10388fi
93613951
TT
10389
10390cat >>confdefs.h <<_ACEOF
10391#define HAVE_DECL__SNPRINTF $ac_have_decl
10392_ACEOF
10393ac_fn_c_check_decl "$LINENO" "_snwprintf" "ac_cv_have_decl__snwprintf" "#include <stdio.h>
10394"
10395if test "x$ac_cv_have_decl__snwprintf" = xyes; then :
10396 ac_have_decl=1
10397else
10398 ac_have_decl=0
50e1e10f
TT
10399fi
10400
93613951
TT
10401cat >>confdefs.h <<_ACEOF
10402#define HAVE_DECL__SNWPRINTF $ac_have_decl
10403_ACEOF
10404
10405
10406 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "#include <stdio.h>
10407"
10408if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
10409 ac_have_decl=1
10410else
10411 ac_have_decl=0
10412fi
57aa50d4
TT
10413
10414cat >>confdefs.h <<_ACEOF
93613951 10415#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
57aa50d4
TT
10416_ACEOF
10417
93613951
TT
10418
10419 case $gt_cv_func_printf_posix in
10420 *yes) HAVE_POSIX_PRINTF=1 ;;
10421 *) HAVE_POSIX_PRINTF=0 ;;
10422 esac
10423
10424 if test "$ac_cv_func_asprintf" = yes; then
10425 HAVE_ASPRINTF=1
10426 else
10427 HAVE_ASPRINTF=0
10428 fi
10429
10430 if test "$ac_cv_func_snprintf" = yes; then
10431 HAVE_SNPRINTF=1
10432 else
10433 HAVE_SNPRINTF=0
10434 fi
10435
10436 if test "$ac_cv_func_newlocale" = yes; then
10437 HAVE_NEWLOCALE=1
10438 else
10439 HAVE_NEWLOCALE=0
10440 fi
10441
10442 if test "$ac_cv_func_wprintf" = yes; then
10443 HAVE_WPRINTF=1
10444 else
10445 HAVE_WPRINTF=0
e1052144 10446 fi
50e1e10f 10447
57aa50d4 10448
93613951 10449
57aa50d4
TT
10450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10451$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
d6a4bcb5 10452if ${am_cv_langinfo_codeset+:} false; then :
39fd3d4f 10453 $as_echo_n "(cached) " >&6
50e1e10f 10454else
57aa50d4
TT
10455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10456/* end confdefs.h. */
10457#include <langinfo.h>
10458int
10459main ()
10460{
93613951 10461char* cs = nl_langinfo(CODESET); return !cs;
57aa50d4
TT
10462 ;
10463 return 0;
10464}
10465_ACEOF
10466if ac_fn_c_try_link "$LINENO"; then :
10467 am_cv_langinfo_codeset=yes
50e1e10f 10468else
57aa50d4 10469 am_cv_langinfo_codeset=no
50e1e10f 10470fi
57aa50d4
TT
10471rm -f core conftest.err conftest.$ac_objext \
10472 conftest$ac_exeext conftest.$ac_ext
7321d94e 10473
50e1e10f 10474fi
57aa50d4
TT
10475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10476$as_echo "$am_cv_langinfo_codeset" >&6; }
10477 if test $am_cv_langinfo_codeset = yes; then
50e1e10f 10478
57aa50d4 10479$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
e1052144 10480
57aa50d4 10481 fi
b0cacab0 10482
21c84b71 10483
57aa50d4
TT
10484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10485$as_echo_n "checking for LC_MESSAGES... " >&6; }
93613951 10486if ${gt_cv_val_LC_MESSAGES+:} false; then :
39fd3d4f 10487 $as_echo_n "(cached) " >&6
93636bde 10488else
57aa50d4
TT
10489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10490/* end confdefs.h. */
10491#include <locale.h>
10492int
10493main ()
10494{
10495return LC_MESSAGES
10496 ;
10497 return 0;
10498}
10499_ACEOF
10500if ac_fn_c_try_link "$LINENO"; then :
93613951 10501 gt_cv_val_LC_MESSAGES=yes
93636bde 10502else
93613951 10503 gt_cv_val_LC_MESSAGES=no
50e1e10f 10504fi
57aa50d4
TT
10505rm -f core conftest.err conftest.$ac_objext \
10506 conftest$ac_exeext conftest.$ac_ext
50e1e10f 10507fi
93613951
TT
10508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
10509$as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
10510 if test $gt_cv_val_LC_MESSAGES = yes; then
50e1e10f 10511
57aa50d4 10512$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
50e1e10f 10513
e1052144 10514 fi
50e1e10f 10515
93613951
TT
10516
10517 if test "$enable_shared" = yes; then
10518 case "$host_os" in
10519 mingw* | cygwin*) is_woe32dll=yes ;;
10520 *) is_woe32dll=no ;;
10521 esac
10522 else
10523 is_woe32dll=no
57aa50d4 10524 fi
93613951 10525 WOE32DLL=$is_woe32dll
b0cacab0 10526
93613951
TT
10527
10528 case "$host_os" in
10529 mingw* | cygwin*) is_woe32=yes ;;
10530 *) is_woe32=no ;;
10531 esac
10532 WOE32=$is_woe32
10533
10534 if test $WOE32 = yes; then
10535 if test -n "$ac_tool_prefix"; then
10536 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
10537set dummy ${ac_tool_prefix}windres; ac_word=$2
57aa50d4 10538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
39fd3d4f 10539$as_echo_n "checking for $ac_word... " >&6; }
93613951 10540if ${ac_cv_prog_WINDRES+:} false; then :
39fd3d4f 10541 $as_echo_n "(cached) " >&6
50e1e10f 10542else
93613951
TT
10543 if test -n "$WINDRES"; then
10544 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
50e1e10f 10545else
b0cacab0
TT
10546as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10547for as_dir in $PATH
10548do
10549 IFS=$as_save_IFS
10550 test -z "$as_dir" && as_dir=.
57aa50d4 10551 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 10552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
93613951 10553 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
57aa50d4 10554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
b0cacab0
TT
10555 break 2
10556 fi
10557done
57aa50d4 10558 done
e1052144 10559IFS=$as_save_IFS
b0cacab0 10560
50e1e10f
TT
10561fi
10562fi
93613951
TT
10563WINDRES=$ac_cv_prog_WINDRES
10564if test -n "$WINDRES"; then
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
10566$as_echo "$WINDRES" >&6; }
50e1e10f 10567else
57aa50d4 10568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39fd3d4f 10569$as_echo "no" >&6; }
50e1e10f
TT
10570fi
10571
e1052144 10572
93613951
TT
10573fi
10574if test -z "$ac_cv_prog_WINDRES"; then
10575 ac_ct_WINDRES=$WINDRES
10576 # Extract the first word of "windres", so it can be a program name with args.
10577set dummy windres; ac_word=$2
10578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10579$as_echo_n "checking for $ac_word... " >&6; }
10580if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
10581 $as_echo_n "(cached) " >&6
10582else
10583 if test -n "$ac_ct_WINDRES"; then
10584 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
10585else
10586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10587for as_dir in $PATH
10588do
10589 IFS=$as_save_IFS
10590 test -z "$as_dir" && as_dir=.
10591 for ac_exec_ext in '' $ac_executable_extensions; do
10592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10593 ac_cv_prog_ac_ct_WINDRES="windres"
10594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10595 break 2
10596 fi
b0cacab0 10597done
93613951
TT
10598 done
10599IFS=$as_save_IFS
b0cacab0 10600
93613951
TT
10601fi
10602fi
10603ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
10604if test -n "$ac_ct_WINDRES"; then
10605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
10606$as_echo "$ac_ct_WINDRES" >&6; }
10607else
10608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10609$as_echo "no" >&6; }
10610fi
10611
10612 if test "x$ac_ct_WINDRES" = x; then
10613 WINDRES=""
57aa50d4 10614 else
93613951
TT
10615 case $cross_compiling:$ac_tool_warned in
10616yes:)
10617{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10618$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10619ac_tool_warned=yes ;;
10620esac
10621 WINDRES=$ac_ct_WINDRES
57aa50d4 10622 fi
93613951
TT
10623else
10624 WINDRES="$ac_cv_prog_WINDRES"
10625fi
10626
57aa50d4
TT
10627 fi
10628
93613951
TT
10629 case "$host_os" in
10630 hpux*) LTLIBC="" ;;
10631 *) LTLIBC="-lc" ;;
10632 esac
57aa50d4
TT
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
b0cacab0 10643
740837de 10644
b0cacab0
TT
10645
10646
10647
93613951
TT
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10661$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10662if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10663 $as_echo_n "(cached) " >&6
50e1e10f 10664else
93613951
TT
10665 gt_save_LIBS="$LIBS"
10666 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10668/* end confdefs.h. */
10669#include <CoreFoundation/CFPreferences.h>
10670int
10671main ()
10672{
10673CFPreferencesCopyAppValue(NULL, NULL)
10674 ;
10675 return 0;
10676}
10677_ACEOF
10678if ac_fn_c_try_link "$LINENO"; then :
10679 gt_cv_func_CFPreferencesCopyAppValue=yes
10680else
10681 gt_cv_func_CFPreferencesCopyAppValue=no
50e1e10f 10682fi
93613951
TT
10683rm -f core conftest.err conftest.$ac_objext \
10684 conftest$ac_exeext conftest.$ac_ext
10685 LIBS="$gt_save_LIBS"
50e1e10f 10686fi
93613951
TT
10687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10688$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10689 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10690
10691$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10692
10693 fi
10694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10695$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10696if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10697 $as_echo_n "(cached) " >&6
10698else
10699 gt_save_LIBS="$LIBS"
10700 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10702/* end confdefs.h. */
10703#include <CoreFoundation/CFLocale.h>
10704int
10705main ()
10706{
10707CFLocaleCopyCurrent();
10708 ;
10709 return 0;
10710}
10711_ACEOF
10712if ac_fn_c_try_link "$LINENO"; then :
10713 gt_cv_func_CFLocaleCopyCurrent=yes
10714else
10715 gt_cv_func_CFLocaleCopyCurrent=no
10716fi
10717rm -f core conftest.err conftest.$ac_objext \
10718 conftest$ac_exeext conftest.$ac_ext
10719 LIBS="$gt_save_LIBS"
10720fi
10721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10722$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10723 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10724
10725$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10726
10727 fi
10728 INTL_MACOSX_LIBS=
10729 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10730 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10731 fi
10732
50e1e10f 10733
b0cacab0
TT
10734
10735
10736
10737
57aa50d4
TT
10738 BUILD_INCLUDED_LIBINTL=no
10739 USE_INCLUDED_LIBINTL=no
10740
10741 LIBINTL=
10742 LTLIBINTL=
10743 POSUB=
10744
93613951
TT
10745 case " $gt_needs " in
10746 *" need-formatstring-macros "*) gt_api_version=3 ;;
10747 *" need-ngettext "*) gt_api_version=2 ;;
10748 *) gt_api_version=1 ;;
10749 esac
10750 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
10751 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
10752
57aa50d4
TT
10753 if test "$USE_NLS" = "yes"; then
10754 gt_use_preinstalled_gnugettext=no
b0cacab0 10755
57aa50d4
TT
10756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
10757$as_echo_n "checking whether included gettext is requested... " >&6; }
b0cacab0 10758
57aa50d4
TT
10759# Check whether --with-included-gettext was given.
10760if test "${with_included_gettext+set}" = set; then :
10761 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
50e1e10f 10762else
57aa50d4 10763 nls_cv_force_use_gnu_gettext=no
50e1e10f
TT
10764fi
10765
57aa50d4
TT
10766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
10767$as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
b0cacab0 10768
57aa50d4
TT
10769 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10770 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
b0cacab0
TT
10771
10772
93613951
TT
10773 if test $gt_api_version -ge 3; then
10774 gt_revision_test_code='
10775#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10776#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
10777#endif
10778typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
10779'
10780 else
10781 gt_revision_test_code=
10782 fi
10783 if test $gt_api_version -ge 2; then
10784 gt_expression_test_code=' + * ngettext ("", "", 0)'
10785 else
10786 gt_expression_test_code=
10787 fi
b0cacab0 10788
57aa50d4
TT
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
10790$as_echo_n "checking for GNU gettext in libc... " >&6; }
93613951 10791if eval \${$gt_func_gnugettext_libc+:} false; then :
39fd3d4f 10792 $as_echo_n "(cached) " >&6
7321d94e 10793else
57aa50d4
TT
10794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10795/* end confdefs.h. */
93613951 10796
57aa50d4 10797#include <libintl.h>
93613951 10798$gt_revision_test_code
57aa50d4
TT
10799extern int _nl_msg_cat_cntr;
10800extern int *_nl_domain_bindings;
93613951 10801
57aa50d4
TT
10802int
10803main ()
10804{
93613951 10805
57aa50d4 10806bindtextdomain ("", "");
93613951
TT
10807return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
10808
57aa50d4
TT
10809 ;
10810 return 0;
10811}
10812_ACEOF
10813if ac_fn_c_try_link "$LINENO"; then :
93613951 10814 eval "$gt_func_gnugettext_libc=yes"
7321d94e 10815else
93613951 10816 eval "$gt_func_gnugettext_libc=no"
57aa50d4
TT
10817fi
10818rm -f core conftest.err conftest.$ac_objext \
10819 conftest$ac_exeext conftest.$ac_ext
10820fi
93613951
TT
10821eval ac_res=\$$gt_func_gnugettext_libc
10822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10823$as_echo "$ac_res" >&6; }
10824
10825 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
10826
10827
10828
10829
b0cacab0
TT
10830
10831
10832
10833
57aa50d4 10834 use_additional=yes
b0cacab0 10835
57aa50d4
TT
10836 acl_save_prefix="$prefix"
10837 prefix="$acl_final_prefix"
10838 acl_save_exec_prefix="$exec_prefix"
10839 exec_prefix="$acl_final_exec_prefix"
b0cacab0 10840
57aa50d4
TT
10841 eval additional_includedir=\"$includedir\"
10842 eval additional_libdir=\"$libdir\"
b0cacab0 10843
57aa50d4
TT
10844 exec_prefix="$acl_save_exec_prefix"
10845 prefix="$acl_save_prefix"
b0cacab0
TT
10846
10847
57aa50d4
TT
10848# Check whether --with-libintl-prefix was given.
10849if test "${with_libintl_prefix+set}" = set; then :
10850 withval=$with_libintl_prefix;
10851 if test "X$withval" = "Xno"; then
10852 use_additional=no
10853 else
10854 if test "X$withval" = "X"; then
b0cacab0 10855
57aa50d4
TT
10856 acl_save_prefix="$prefix"
10857 prefix="$acl_final_prefix"
10858 acl_save_exec_prefix="$exec_prefix"
10859 exec_prefix="$acl_final_exec_prefix"
b0cacab0 10860
57aa50d4
TT
10861 eval additional_includedir=\"$includedir\"
10862 eval additional_libdir=\"$libdir\"
7321d94e 10863
57aa50d4
TT
10864 exec_prefix="$acl_save_exec_prefix"
10865 prefix="$acl_save_prefix"
7321d94e 10866
57aa50d4
TT
10867 else
10868 additional_includedir="$withval/include"
93613951
TT
10869 additional_libdir="$withval/$acl_libdirstem"
10870 if test "$acl_libdirstem2" != "$acl_libdirstem" \
10871 && ! test -d "$withval/$acl_libdirstem"; then
10872 additional_libdir="$withval/$acl_libdirstem2"
10873 fi
57aa50d4
TT
10874 fi
10875 fi
7321d94e 10876
7321d94e
MK
10877fi
10878
57aa50d4
TT
10879 LIBINTL=
10880 LTLIBINTL=
10881 INCINTL=
93613951
TT
10882 LIBINTL_PREFIX=
10883 HAVE_LIBINTL=
57aa50d4
TT
10884 rpathdirs=
10885 ltrpathdirs=
10886 names_already_handled=
10887 names_next_round='intl '
10888 while test -n "$names_next_round"; do
10889 names_this_round="$names_next_round"
10890 names_next_round=
10891 for name in $names_this_round; do
10892 already_handled=
10893 for n in $names_already_handled; do
10894 if test "$n" = "$name"; then
10895 already_handled=yes
10896 break
10897 fi
50e1e10f 10898 done
57aa50d4
TT
10899 if test -z "$already_handled"; then
10900 names_already_handled="$names_already_handled $name"
93613951 10901 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
57aa50d4
TT
10902 eval value=\"\$HAVE_LIB$uppername\"
10903 if test -n "$value"; then
10904 if test "$value" = yes; then
10905 eval value=\"\$LIB$uppername\"
10906 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10907 eval value=\"\$LTLIB$uppername\"
10908 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10909 else
10910 :
10911 fi
10912 else
10913 found_dir=
10914 found_la=
10915 found_so=
10916 found_a=
93613951
TT
10917 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
10918 if test -n "$acl_shlibext"; then
10919 shrext=".$acl_shlibext" # typically: shrext=.so
10920 else
10921 shrext=
10922 fi
57aa50d4 10923 if test $use_additional = yes; then
93613951
TT
10924 dir="$additional_libdir"
10925 if test -n "$acl_shlibext"; then
10926 if test -f "$dir/$libname$shrext"; then
10927 found_dir="$dir"
10928 found_so="$dir/$libname$shrext"
10929 else
10930 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10931 ver=`(cd "$dir" && \
10932 for f in "$libname$shrext".*; do echo "$f"; done \
10933 | sed -e "s,^$libname$shrext\\\\.,," \
10934 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10935 | sed 1q ) 2>/dev/null`
10936 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10937 found_dir="$dir"
10938 found_so="$dir/$libname$shrext.$ver"
10939 fi
10940 else
10941 eval library_names=\"$acl_library_names_spec\"
10942 for f in $library_names; do
10943 if test -f "$dir/$f"; then
10944 found_dir="$dir"
10945 found_so="$dir/$f"
10946 break
10947 fi
10948 done
57aa50d4
TT
10949 fi
10950 fi
93613951
TT
10951 fi
10952 if test "X$found_dir" = "X"; then
10953 if test -f "$dir/$libname.$acl_libext"; then
10954 found_dir="$dir"
10955 found_a="$dir/$libname.$acl_libext"
10956 fi
10957 fi
10958 if test "X$found_dir" != "X"; then
10959 if test -f "$dir/$libname.la"; then
10960 found_la="$dir/$libname.la"
10961 fi
57aa50d4
TT
10962 fi
10963 fi
10964 if test "X$found_dir" = "X"; then
10965 for x in $LDFLAGS $LTLIBINTL; do
39fd3d4f 10966
57aa50d4
TT
10967 acl_save_prefix="$prefix"
10968 prefix="$acl_final_prefix"
10969 acl_save_exec_prefix="$exec_prefix"
10970 exec_prefix="$acl_final_exec_prefix"
10971 eval x=\"$x\"
10972 exec_prefix="$acl_save_exec_prefix"
10973 prefix="$acl_save_prefix"
3d05802f 10974
57aa50d4
TT
10975 case "$x" in
10976 -L*)
10977 dir=`echo "X$x" | sed -e 's/^X-L//'`
93613951
TT
10978 if test -n "$acl_shlibext"; then
10979 if test -f "$dir/$libname$shrext"; then
57aa50d4 10980 found_dir="$dir"
93613951
TT
10981 found_so="$dir/$libname$shrext"
10982 else
10983 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10984 ver=`(cd "$dir" && \
10985 for f in "$libname$shrext".*; do echo "$f"; done \
10986 | sed -e "s,^$libname$shrext\\\\.,," \
10987 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10988 | sed 1q ) 2>/dev/null`
10989 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10990 found_dir="$dir"
10991 found_so="$dir/$libname$shrext.$ver"
10992 fi
10993 else
10994 eval library_names=\"$acl_library_names_spec\"
10995 for f in $library_names; do
10996 if test -f "$dir/$f"; then
10997 found_dir="$dir"
10998 found_so="$dir/$f"
10999 break
11000 fi
11001 done
57aa50d4
TT
11002 fi
11003 fi
93613951
TT
11004 fi
11005 if test "X$found_dir" = "X"; then
11006 if test -f "$dir/$libname.$acl_libext"; then
11007 found_dir="$dir"
11008 found_a="$dir/$libname.$acl_libext"
11009 fi
11010 fi
11011 if test "X$found_dir" != "X"; then
11012 if test -f "$dir/$libname.la"; then
11013 found_la="$dir/$libname.la"
11014 fi
57aa50d4
TT
11015 fi
11016 ;;
11017 esac
11018 if test "X$found_dir" != "X"; then
11019 break
11020 fi
11021 done
11022 fi
11023 if test "X$found_dir" != "X"; then
11024 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
11025 if test "X$found_so" != "X"; then
93613951
TT
11026 if test "$enable_rpath" = no \
11027 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
11028 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
57aa50d4
TT
11029 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11030 else
11031 haveit=
11032 for x in $ltrpathdirs; do
11033 if test "X$x" = "X$found_dir"; then
11034 haveit=yes
11035 break
11036 fi
11037 done
11038 if test -z "$haveit"; then
11039 ltrpathdirs="$ltrpathdirs $found_dir"
11040 fi
93613951 11041 if test "$acl_hardcode_direct" = yes; then
57aa50d4
TT
11042 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11043 else
93613951 11044 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
57aa50d4
TT
11045 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11046 haveit=
11047 for x in $rpathdirs; do
11048 if test "X$x" = "X$found_dir"; then
11049 haveit=yes
11050 break
11051 fi
11052 done
11053 if test -z "$haveit"; then
11054 rpathdirs="$rpathdirs $found_dir"
11055 fi
11056 else
11057 haveit=
11058 for x in $LDFLAGS $LIBINTL; do
6ec9ef18 11059
57aa50d4
TT
11060 acl_save_prefix="$prefix"
11061 prefix="$acl_final_prefix"
11062 acl_save_exec_prefix="$exec_prefix"
11063 exec_prefix="$acl_final_exec_prefix"
11064 eval x=\"$x\"
11065 exec_prefix="$acl_save_exec_prefix"
11066 prefix="$acl_save_prefix"
d7f45af8 11067
57aa50d4
TT
11068 if test "X$x" = "X-L$found_dir"; then
11069 haveit=yes
11070 break
11071 fi
11072 done
11073 if test -z "$haveit"; then
11074 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
11075 fi
93613951 11076 if test "$acl_hardcode_minus_L" != no; then
57aa50d4
TT
11077 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11078 else
11079 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11080 fi
11081 fi
11082 fi
11083 fi
11084 else
11085 if test "X$found_a" != "X"; then
11086 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
11087 else
11088 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
11089 fi
11090 fi
11091 additional_includedir=
11092 case "$found_dir" in
93613951
TT
11093 */$acl_libdirstem | */$acl_libdirstem/)
11094 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
11095 if test "$name" = 'intl'; then
11096 LIBINTL_PREFIX="$basedir"
11097 fi
11098 additional_includedir="$basedir/include"
11099 ;;
11100 */$acl_libdirstem2 | */$acl_libdirstem2/)
11101 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
11102 if test "$name" = 'intl'; then
11103 LIBINTL_PREFIX="$basedir"
11104 fi
57aa50d4
TT
11105 additional_includedir="$basedir/include"
11106 ;;
11107 esac
11108 if test "X$additional_includedir" != "X"; then
11109 if test "X$additional_includedir" != "X/usr/include"; then
11110 haveit=
11111 if test "X$additional_includedir" = "X/usr/local/include"; then
11112 if test -n "$GCC"; then
11113 case $host_os in
93613951 11114 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
57aa50d4
TT
11115 esac
11116 fi
11117 fi
11118 if test -z "$haveit"; then
11119 for x in $CPPFLAGS $INCINTL; do
b0cacab0 11120
57aa50d4
TT
11121 acl_save_prefix="$prefix"
11122 prefix="$acl_final_prefix"
11123 acl_save_exec_prefix="$exec_prefix"
11124 exec_prefix="$acl_final_exec_prefix"
11125 eval x=\"$x\"
11126 exec_prefix="$acl_save_exec_prefix"
11127 prefix="$acl_save_prefix"
21c84b71 11128
57aa50d4
TT
11129 if test "X$x" = "X-I$additional_includedir"; then
11130 haveit=yes
11131 break
11132 fi
11133 done
11134 if test -z "$haveit"; then
11135 if test -d "$additional_includedir"; then
11136 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
11137 fi
11138 fi
11139 fi
11140 fi
11141 fi
11142 if test -n "$found_la"; then
11143 save_libdir="$libdir"
11144 case "$found_la" in
11145 */* | *\\*) . "$found_la" ;;
11146 *) . "./$found_la" ;;
11147 esac
11148 libdir="$save_libdir"
11149 for dep in $dependency_libs; do
11150 case "$dep" in
11151 -L*)
11152 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
93613951
TT
11153 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
11154 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
57aa50d4 11155 haveit=
93613951
TT
11156 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
11157 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
57aa50d4
TT
11158 if test -n "$GCC"; then
11159 case $host_os in
93613951 11160 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
57aa50d4
TT
11161 esac
11162 fi
11163 fi
11164 if test -z "$haveit"; then
11165 haveit=
11166 for x in $LDFLAGS $LIBINTL; do
50e1e10f 11167
57aa50d4
TT
11168 acl_save_prefix="$prefix"
11169 prefix="$acl_final_prefix"
11170 acl_save_exec_prefix="$exec_prefix"
11171 exec_prefix="$acl_final_exec_prefix"
11172 eval x=\"$x\"
11173 exec_prefix="$acl_save_exec_prefix"
11174 prefix="$acl_save_prefix"
50e1e10f 11175
57aa50d4
TT
11176 if test "X$x" = "X-L$additional_libdir"; then
11177 haveit=yes
11178 break
11179 fi
11180 done
11181 if test -z "$haveit"; then
11182 if test -d "$additional_libdir"; then
11183 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
11184 fi
11185 fi
11186 haveit=
11187 for x in $LDFLAGS $LTLIBINTL; do
a4bf69d9 11188
57aa50d4
TT
11189 acl_save_prefix="$prefix"
11190 prefix="$acl_final_prefix"
11191 acl_save_exec_prefix="$exec_prefix"
11192 exec_prefix="$acl_final_exec_prefix"
11193 eval x=\"$x\"
11194 exec_prefix="$acl_save_exec_prefix"
11195 prefix="$acl_save_prefix"
50e1e10f 11196
57aa50d4
TT
11197 if test "X$x" = "X-L$additional_libdir"; then
11198 haveit=yes
11199 break
11200 fi
11201 done
11202 if test -z "$haveit"; then
11203 if test -d "$additional_libdir"; then
11204 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
11205 fi
11206 fi
11207 fi
11208 fi
11209 ;;
11210 -R*)
11211 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11212 if test "$enable_rpath" != no; then
11213 haveit=
11214 for x in $rpathdirs; do
11215 if test "X$x" = "X$dir"; then
11216 haveit=yes
11217 break
11218 fi
11219 done
11220 if test -z "$haveit"; then
11221 rpathdirs="$rpathdirs $dir"
11222 fi
11223 haveit=
11224 for x in $ltrpathdirs; do
11225 if test "X$x" = "X$dir"; then
11226 haveit=yes
11227 break
11228 fi
11229 done
11230 if test -z "$haveit"; then
11231 ltrpathdirs="$ltrpathdirs $dir"
11232 fi
11233 fi
11234 ;;
11235 -l*)
11236 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11237 ;;
11238 *.la)
11239 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11240 ;;
11241 *)
11242 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
11243 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
11244 ;;
11245 esac
11246 done
11247 fi
11248 else
11249 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11250 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
11251 fi
11252 fi
11253 fi
11254 done
11255 done
11256 if test "X$rpathdirs" != "X"; then
93613951 11257 if test -n "$acl_hardcode_libdir_separator"; then
57aa50d4
TT
11258 alldirs=
11259 for found_dir in $rpathdirs; do
93613951 11260 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
57aa50d4
TT
11261 done
11262 acl_save_libdir="$libdir"
11263 libdir="$alldirs"
93613951 11264 eval flag=\"$acl_hardcode_libdir_flag_spec\"
57aa50d4
TT
11265 libdir="$acl_save_libdir"
11266 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11267 else
11268 for found_dir in $rpathdirs; do
11269 acl_save_libdir="$libdir"
11270 libdir="$found_dir"
93613951 11271 eval flag=\"$acl_hardcode_libdir_flag_spec\"
57aa50d4
TT
11272 libdir="$acl_save_libdir"
11273 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11274 done
11275 fi
11276 fi
11277 if test "X$ltrpathdirs" != "X"; then
11278 for found_dir in $ltrpathdirs; do
11279 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
11280 done
11281 fi
b0cacab0 11282
93613951
TT
11283
11284
11285
11286
11287
57aa50d4
TT
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
11289$as_echo_n "checking for GNU gettext in libintl... " >&6; }
93613951 11290if eval \${$gt_func_gnugettext_libintl+:} false; then :
39fd3d4f 11291 $as_echo_n "(cached) " >&6
6c133523 11292else
57aa50d4
TT
11293 gt_save_CPPFLAGS="$CPPFLAGS"
11294 CPPFLAGS="$CPPFLAGS $INCINTL"
11295 gt_save_LIBS="$LIBS"
11296 LIBS="$LIBS $LIBINTL"
11297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11298/* end confdefs.h. */
93613951 11299
57aa50d4 11300#include <libintl.h>
93613951 11301$gt_revision_test_code
57aa50d4
TT
11302extern int _nl_msg_cat_cntr;
11303extern
11304#ifdef __cplusplus
11305"C"
11306#endif
93613951
TT
11307const char *_nl_expand_alias (const char *);
11308
57aa50d4
TT
11309int
11310main ()
11311{
93613951 11312
57aa50d4 11313bindtextdomain ("", "");
93613951
TT
11314return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11315
57aa50d4
TT
11316 ;
11317 return 0;
11318}
b0cacab0 11319_ACEOF
57aa50d4 11320if ac_fn_c_try_link "$LINENO"; then :
93613951 11321 eval "$gt_func_gnugettext_libintl=yes"
6c133523 11322else
93613951 11323 eval "$gt_func_gnugettext_libintl=no"
6c133523 11324fi
57aa50d4
TT
11325rm -f core conftest.err conftest.$ac_objext \
11326 conftest$ac_exeext conftest.$ac_ext
93613951 11327 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
57aa50d4
TT
11328 LIBS="$LIBS $LIBICONV"
11329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
da76d6b7 11330/* end confdefs.h. */
93613951 11331
57aa50d4 11332#include <libintl.h>
93613951 11333$gt_revision_test_code
57aa50d4
TT
11334extern int _nl_msg_cat_cntr;
11335extern
11336#ifdef __cplusplus
11337"C"
da76d6b7 11338#endif
93613951
TT
11339const char *_nl_expand_alias (const char *);
11340
57aa50d4
TT
11341int
11342main ()
11343{
93613951 11344
57aa50d4 11345bindtextdomain ("", "");
93613951
TT
11346return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11347
57aa50d4
TT
11348 ;
11349 return 0;
11350}
da76d6b7 11351_ACEOF
57aa50d4
TT
11352if ac_fn_c_try_link "$LINENO"; then :
11353 LIBINTL="$LIBINTL $LIBICONV"
93613951
TT
11354 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
11355 eval "$gt_func_gnugettext_libintl=yes"
6c133523
TT
11356
11357fi
57aa50d4
TT
11358rm -f core conftest.err conftest.$ac_objext \
11359 conftest$ac_exeext conftest.$ac_ext
11360 fi
11361 CPPFLAGS="$gt_save_CPPFLAGS"
11362 LIBS="$gt_save_LIBS"
da76d6b7 11363fi
93613951
TT
11364eval ac_res=\$$gt_func_gnugettext_libintl
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11366$as_echo "$ac_res" >&6; }
57aa50d4 11367 fi
b0cacab0 11368
93613951
TT
11369 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
11370 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
57aa50d4
TT
11371 && test "$PACKAGE" != gettext-runtime \
11372 && test "$PACKAGE" != gettext-tools; }; then
11373 gt_use_preinstalled_gnugettext=yes
11374 else
11375 LIBINTL=
11376 LTLIBINTL=
11377 INCINTL=
11378 fi
740837de 11379
b0cacab0 11380
57aa50d4
TT
11381 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
11382 nls_cv_use_gnu_gettext=yes
11383 fi
11384 fi
b0cacab0 11385
57aa50d4
TT
11386 if test "$nls_cv_use_gnu_gettext" = "yes"; then
11387 BUILD_INCLUDED_LIBINTL=yes
11388 USE_INCLUDED_LIBINTL=yes
93613951
TT
11389 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
11390 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
57aa50d4
TT
11391 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
11392 fi
b0cacab0 11393
93613951 11394 CATOBJEXT=
57aa50d4
TT
11395 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11396 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11397 CATOBJEXT=.gmo
11398 fi
b0cacab0
TT
11399
11400
93613951
TT
11401 if test -n "$INTL_MACOSX_LIBS"; then
11402 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11403 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11404 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
11405 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
11406 fi
11407 fi
11408
57aa50d4
TT
11409 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11410 || test "$nls_cv_use_gnu_gettext" = "yes"; then
b0cacab0 11411
57aa50d4 11412$as_echo "#define ENABLE_NLS 1" >>confdefs.h
b0cacab0 11413
57aa50d4
TT
11414 else
11415 USE_NLS=no
11416 fi
11417 fi
b0cacab0 11418
57aa50d4
TT
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
11420$as_echo_n "checking whether to use NLS... " >&6; }
11421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
11422$as_echo "$USE_NLS" >&6; }
11423 if test "$USE_NLS" = "yes"; then
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
11425$as_echo_n "checking where the gettext function comes from... " >&6; }
11426 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
93613951 11427 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
57aa50d4
TT
11428 gt_source="external libintl"
11429 else
11430 gt_source="libc"
11431 fi
11432 else
11433 gt_source="included intl directory"
11434 fi
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
11436$as_echo "$gt_source" >&6; }
11437 fi
b0cacab0 11438
57aa50d4 11439 if test "$USE_NLS" = "yes"; then
b0cacab0 11440
57aa50d4 11441 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
93613951 11442 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
57aa50d4
TT
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
11444$as_echo_n "checking how to link with libintl... " >&6; }
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
11446$as_echo "$LIBINTL" >&6; }
b0cacab0 11447
57aa50d4
TT
11448 for element in $INCINTL; do
11449 haveit=
11450 for x in $CPPFLAGS; do
b0cacab0 11451
57aa50d4
TT
11452 acl_save_prefix="$prefix"
11453 prefix="$acl_final_prefix"
11454 acl_save_exec_prefix="$exec_prefix"
11455 exec_prefix="$acl_final_exec_prefix"
11456 eval x=\"$x\"
11457 exec_prefix="$acl_save_exec_prefix"
11458 prefix="$acl_save_prefix"
b0cacab0 11459
57aa50d4
TT
11460 if test "X$x" = "X$element"; then
11461 haveit=yes
11462 break
11463 fi
11464 done
11465 if test -z "$haveit"; then
11466 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11467 fi
11468 done
b0cacab0 11469
57aa50d4 11470 fi
b0cacab0
TT
11471
11472
57aa50d4 11473$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
b0cacab0
TT
11474
11475
57aa50d4 11476$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
b0cacab0 11477
57aa50d4 11478 fi
b0cacab0 11479
57aa50d4
TT
11480 POSUB=po
11481 fi
b0cacab0
TT
11482
11483
57aa50d4
TT
11484 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
11485 BUILD_INCLUDED_LIBINTL=yes
11486 fi
b0cacab0
TT
11487
11488
11489
11490
11491
57aa50d4
TT
11492 nls_cv_header_intl=
11493 nls_cv_header_libgt=
b0cacab0 11494
57aa50d4 11495 DATADIRNAME=share
762c7c65 11496
106ad96d 11497
57aa50d4 11498 INSTOBJEXT=.mo
106ad96d 11499
e7cc6f7d 11500
57aa50d4 11501 GENCAT=gencat
e7cc6f7d 11502
3d05802f 11503
93613951
TT
11504 INTLOBJS=
11505 if test "$USE_INCLUDED_LIBINTL" = yes; then
57aa50d4
TT
11506 INTLOBJS="\$(GETTOBJS)"
11507 fi
6ec9ef18 11508
d7f45af8 11509
57aa50d4 11510 INTL_LIBTOOL_SUFFIX_PREFIX=
50e1e10f 11511
50e1e10f 11512
b0cacab0 11513
57aa50d4 11514 INTLLIBS="$LIBINTL"
e1052144 11515
b0cacab0 11516
93636bde 11517
93636bde 11518
b0cacab0 11519
93636bde 11520
50e1e10f 11521
57aa50d4
TT
11522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
11523$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11524set x ${MAKE-make}
11525ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
d6a4bcb5 11526if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
57aa50d4
TT
11527 $as_echo_n "(cached) " >&6
11528else
11529 cat >conftest.make <<\_ACEOF
11530SHELL = /bin/sh
11531all:
11532 @echo '@@@%%%=$(MAKE)=@@@%%%'
b0cacab0 11533_ACEOF
d6a4bcb5 11534# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
57aa50d4
TT
11535case `${MAKE-make} -f conftest.make 2>/dev/null` in
11536 *@@@%%%=?*=@@@%%%*)
11537 eval ac_cv_prog_make_${ac_make}_set=yes;;
11538 *)
11539 eval ac_cv_prog_make_${ac_make}_set=no;;
e1052144 11540esac
57aa50d4 11541rm -f conftest.make
b0cacab0 11542fi
57aa50d4
TT
11543if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11545$as_echo "yes" >&6; }
11546 SET_MAKE=
b0b9c4de 11547else
57aa50d4
TT
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11549$as_echo "no" >&6; }
11550 SET_MAKE="MAKE=${MAKE-make}"
b0cacab0 11551fi
b0cacab0 11552
57aa50d4
TT
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
11554$as_echo_n "checking for GNU make... " >&6; }
d6a4bcb5 11555if ${_cv_gnu_make_command+:} false; then :
57aa50d4 11556 $as_echo_n "(cached) " >&6
39fd3d4f 11557else
57aa50d4 11558 _cv_gnu_make_command='' ;
e703ba4b 11559 if test -n "$FORCE_NATIVE_MAKE" ; then
f3bc1561
TT
11560 MAKES="make"
11561 else
11562 MAKES="make gmake gnumake"
11563 fi
11564 for a in "$MAKE" $MAKES ; do
57aa50d4
TT
11565 if test -z "$a" ; then continue ; fi ;
11566 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
11567 _cv_gnu_make_command=$a ;
11568 break;
11569 fi
11570 done ;
50e1e10f 11571
50e1e10f 11572fi
57aa50d4
TT
11573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
11574$as_echo "$_cv_gnu_make_command" >&6; } ;
11575 if test "x$_cv_gnu_make_command" != "x" ; then
11576 ifGNUmake='' ;
11577 ifNotGNUmake='#' ;
11578 else
11579 ifGNUmake='#' ;
11580 ifNotGNUmake='' ;
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
11582$as_echo "\"Not found\"" >&6; };
11583 fi
50e1e10f 11584
50e1e10f 11585
b0cacab0 11586
57aa50d4
TT
11587# Extract the first word of "ln", so it can be a program name with args.
11588set dummy ln; ac_word=$2
11589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11590$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 11591if ${ac_cv_path_LN+:} false; then :
39fd3d4f 11592 $as_echo_n "(cached) " >&6
fff45483 11593else
57aa50d4
TT
11594 case $LN in
11595 [\\/]* | ?:[\\/]*)
11596 ac_cv_path_LN="$LN" # Let the user override the test with a path.
11597 ;;
11598 *)
11599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11600for as_dir in $PATH
11601do
11602 IFS=$as_save_IFS
11603 test -z "$as_dir" && as_dir=.
11604 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 11605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
11606 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
11607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11608 break 2
11609 fi
11610done
11611 done
11612IFS=$as_save_IFS
6c65d251 11613
57aa50d4
TT
11614 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
11615 ;;
e1052144 11616esac
fff45483 11617fi
57aa50d4
TT
11618LN=$ac_cv_path_LN
11619if test -n "$LN"; then
11620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
11621$as_echo "$LN" >&6; }
11622else
11623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11624$as_echo "no" >&6; }
fff45483 11625fi
e1052144 11626
fff45483 11627
57aa50d4
TT
11628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
11629$as_echo_n "checking whether ln -s works... " >&6; }
11630LN_S=$as_ln_s
11631if test "$LN_S" = "ln -s"; then
11632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11633$as_echo "yes" >&6; }
11634else
11635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
11636$as_echo "no, using $LN_S" >&6; }
fff45483 11637fi
6c65d251 11638
57aa50d4
TT
11639# Extract the first word of "mv", so it can be a program name with args.
11640set dummy mv; ac_word=$2
11641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11642$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 11643if ${ac_cv_path_MV+:} false; then :
39fd3d4f 11644 $as_echo_n "(cached) " >&6
fff45483 11645else
57aa50d4
TT
11646 case $MV in
11647 [\\/]* | ?:[\\/]*)
11648 ac_cv_path_MV="$MV" # Let the user override the test with a path.
11649 ;;
11650 *)
11651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11652for as_dir in $PATH
11653do
11654 IFS=$as_save_IFS
11655 test -z "$as_dir" && as_dir=.
11656 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 11657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
11658 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
11659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11660 break 2
11661 fi
11662done
11663 done
11664IFS=$as_save_IFS
6c65d251 11665
57aa50d4
TT
11666 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
11667 ;;
e1052144 11668esac
b0cacab0 11669fi
57aa50d4
TT
11670MV=$ac_cv_path_MV
11671if test -n "$MV"; then
11672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
11673$as_echo "$MV" >&6; }
b0b9c4de 11674else
57aa50d4
TT
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11676$as_echo "no" >&6; }
39fd3d4f
SJR
11677fi
11678
39fd3d4f 11679
57aa50d4
TT
11680# Extract the first word of "cp", so it can be a program name with args.
11681set dummy cp; ac_word=$2
11682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11683$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 11684if ${ac_cv_path_CP+:} false; then :
39fd3d4f 11685 $as_echo_n "(cached) " >&6
b0cacab0 11686else
57aa50d4
TT
11687 case $CP in
11688 [\\/]* | ?:[\\/]*)
11689 ac_cv_path_CP="$CP" # Let the user override the test with a path.
11690 ;;
11691 *)
11692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11693for as_dir in $PATH
11694do
11695 IFS=$as_save_IFS
11696 test -z "$as_dir" && as_dir=.
11697 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 11698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
11699 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
11700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11701 break 2
11702 fi
11703done
11704 done
11705IFS=$as_save_IFS
39fd3d4f 11706
57aa50d4
TT
11707 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11708 ;;
e1052144 11709esac
b0b9c4de 11710fi
57aa50d4
TT
11711CP=$ac_cv_path_CP
11712if test -n "$CP"; then
11713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
11714$as_echo "$CP" >&6; }
b0cacab0 11715else
57aa50d4
TT
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11717$as_echo "no" >&6; }
b0b9c4de 11718fi
b0b9c4de 11719
6c65d251 11720
57aa50d4
TT
11721# Extract the first word of "rm", so it can be a program name with args.
11722set dummy rm; ac_word=$2
11723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11724$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 11725if ${ac_cv_path_RM+:} false; then :
39fd3d4f 11726 $as_echo_n "(cached) " >&6
6928adc9 11727else
57aa50d4
TT
11728 case $RM in
11729 [\\/]* | ?:[\\/]*)
11730 ac_cv_path_RM="$RM" # Let the user override the test with a path.
11731 ;;
11732 *)
11733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11734for as_dir in $PATH
11735do
11736 IFS=$as_save_IFS
11737 test -z "$as_dir" && as_dir=.
11738 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 11739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
11740 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
11741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11742 break 2
11743 fi
11744done
b0cacab0 11745 done
57aa50d4 11746IFS=$as_save_IFS
6c65d251 11747
57aa50d4
TT
11748 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11749 ;;
e1052144 11750esac
6928adc9 11751fi
57aa50d4
TT
11752RM=$ac_cv_path_RM
11753if test -n "$RM"; then
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
11755$as_echo "$RM" >&6; }
b0cacab0 11756else
57aa50d4
TT
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11758$as_echo "no" >&6; }
6928adc9 11759fi
6928adc9 11760
6c65d251 11761
57aa50d4
TT
11762# Extract the first word of "chmod", so it can be a program name with args.
11763set dummy chmod; ac_word=$2
11764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11765$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 11766if ${ac_cv_path_CHMOD+:} false; then :
39fd3d4f 11767 $as_echo_n "(cached) " >&6
b0cacab0 11768else
57aa50d4
TT
11769 case $CHMOD in
11770 [\\/]* | ?:[\\/]*)
11771 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11772 ;;
11773 *)
11774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11775for as_dir in $PATH
11776do
11777 IFS=$as_save_IFS
11778 test -z "$as_dir" && as_dir=.
11779 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 11780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
11781 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
11782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11783 break 2
11784 fi
11785done
11786 done
11787IFS=$as_save_IFS
39fd3d4f 11788
57aa50d4
TT
11789 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11790 ;;
e1052144 11791esac
b0cacab0 11792fi
57aa50d4
TT
11793CHMOD=$ac_cv_path_CHMOD
11794if test -n "$CHMOD"; then
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
11796$as_echo "$CHMOD" >&6; }
b0cacab0 11797else
57aa50d4
TT
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11799$as_echo "no" >&6; }
b0cacab0 11800fi
39fd3d4f 11801
b0cacab0 11802
57aa50d4
TT
11803for ac_prog in gawk mawk nawk awk
11804do
11805 # Extract the first word of "$ac_prog", so it can be a program name with args.
11806set dummy $ac_prog; ac_word=$2
11807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11808$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 11809if ${ac_cv_prog_AWK+:} false; then :
39fd3d4f 11810 $as_echo_n "(cached) " >&6
b0cacab0 11811else
57aa50d4
TT
11812 if test -n "$AWK"; then
11813 ac_cv_prog_AWK="$AWK" # Let the user override the test.
b0cacab0 11814else
57aa50d4
TT
11815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11816for as_dir in $PATH
11817do
11818 IFS=$as_save_IFS
11819 test -z "$as_dir" && as_dir=.
11820 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 11821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
11822 ac_cv_prog_AWK="$ac_prog"
11823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11824 break 2
11825 fi
11826done
11827 done
11828IFS=$as_save_IFS
b0cacab0 11829
b0cacab0 11830fi
57aa50d4
TT
11831fi
11832AWK=$ac_cv_prog_AWK
11833if test -n "$AWK"; then
11834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
11835$as_echo "$AWK" >&6; }
b0cacab0 11836else
57aa50d4
TT
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11838$as_echo "no" >&6; }
b0cacab0 11839fi
b0cacab0 11840
b0cacab0 11841
57aa50d4
TT
11842 test -n "$AWK" && break
11843done
b0cacab0 11844
57aa50d4
TT
11845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
11846$as_echo_n "checking for egrep... " >&6; }
d6a4bcb5 11847if ${ac_cv_path_EGREP+:} false; then :
57aa50d4 11848 $as_echo_n "(cached) " >&6
b0cacab0 11849else
57aa50d4
TT
11850 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11851 then ac_cv_path_EGREP="$GREP -E"
11852 else
11853 if test -z "$EGREP"; then
11854 ac_path_EGREP_found=false
11855 # Loop through the user's path and test for each of PROGNAME-LIST
11856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11857for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11858do
11859 IFS=$as_save_IFS
11860 test -z "$as_dir" && as_dir=.
11861 for ac_prog in egrep; do
11862 for ac_exec_ext in '' $ac_executable_extensions; do
11863 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
d6a4bcb5 11864 as_fn_executable_p "$ac_path_EGREP" || continue
57aa50d4
TT
11865# Check for GNU ac_path_EGREP and select it if it is found.
11866 # Check for GNU $ac_path_EGREP
11867case `"$ac_path_EGREP" --version 2>&1` in
11868*GNU*)
11869 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11870*)
11871 ac_count=0
11872 $as_echo_n 0123456789 >"conftest.in"
11873 while :
11874 do
11875 cat "conftest.in" "conftest.in" >"conftest.tmp"
11876 mv "conftest.tmp" "conftest.in"
11877 cp "conftest.in" "conftest.nl"
11878 $as_echo 'EGREP' >> "conftest.nl"
11879 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11880 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11881 as_fn_arith $ac_count + 1 && ac_count=$as_val
11882 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11883 # Best one so far, save it but keep looking for a better one
11884 ac_cv_path_EGREP="$ac_path_EGREP"
11885 ac_path_EGREP_max=$ac_count
11886 fi
11887 # 10*(2^10) chars as input seems more than enough
11888 test $ac_count -gt 10 && break
11889 done
11890 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
e1052144 11891esac
e1052144 11892
57aa50d4
TT
11893 $ac_path_EGREP_found && break 3
11894 done
b0cacab0 11895 done
57aa50d4
TT
11896 done
11897IFS=$as_save_IFS
11898 if test -z "$ac_cv_path_EGREP"; then
d6a4bcb5 11899 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
57aa50d4 11900 fi
b0cacab0 11901else
57aa50d4 11902 ac_cv_path_EGREP=$EGREP
b0cacab0 11903fi
e1052144 11904
57aa50d4 11905 fi
b0cacab0 11906fi
57aa50d4
TT
11907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
11908$as_echo "$ac_cv_path_EGREP" >&6; }
11909 EGREP="$ac_cv_path_EGREP"
e1052144 11910
b0cacab0 11911
57aa50d4
TT
11912# Extract the first word of "sed", so it can be a program name with args.
11913set dummy sed; ac_word=$2
11914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11915$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 11916if ${ac_cv_path_SED+:} false; then :
57aa50d4 11917 $as_echo_n "(cached) " >&6
b0cacab0 11918else
57aa50d4
TT
11919 case $SED in
11920 [\\/]* | ?:[\\/]*)
11921 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11922 ;;
11923 *)
11924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11925for as_dir in $PATH
11926do
11927 IFS=$as_save_IFS
11928 test -z "$as_dir" && as_dir=.
11929 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 11930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
11931 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
11932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11933 break 2
11934 fi
b0cacab0 11935done
57aa50d4
TT
11936 done
11937IFS=$as_save_IFS
b0cacab0 11938
57aa50d4
TT
11939 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11940 ;;
b0cacab0 11941esac
57aa50d4
TT
11942fi
11943SED=$ac_cv_path_SED
11944if test -n "$SED"; then
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
11946$as_echo "$SED" >&6; }
b0cacab0 11947else
57aa50d4
TT
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11949$as_echo "no" >&6; }
b0cacab0 11950fi
e1052144 11951
b0cacab0 11952
57aa50d4
TT
11953# Extract the first word of "perl", so it can be a program name with args.
11954set dummy perl; ac_word=$2
11955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11956$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 11957if ${ac_cv_path_PERL+:} false; then :
57aa50d4
TT
11958 $as_echo_n "(cached) " >&6
11959else
11960 case $PERL in
11961 [\\/]* | ?:[\\/]*)
11962 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11963 ;;
11964 *)
11965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11966for as_dir in $PATH
11967do
11968 IFS=$as_save_IFS
11969 test -z "$as_dir" && as_dir=.
11970 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 11971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
11972 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
11973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11974 break 2
11975 fi
b0cacab0 11976done
57aa50d4
TT
11977 done
11978IFS=$as_save_IFS
11979
11980 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11981 ;;
b0cacab0 11982esac
57aa50d4
TT
11983fi
11984PERL=$ac_cv_path_PERL
11985if test -n "$PERL"; then
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
11987$as_echo "$PERL" >&6; }
b0cacab0 11988else
57aa50d4
TT
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11990$as_echo "no" >&6; }
11991fi
b0cacab0 11992
b0cacab0 11993
57aa50d4
TT
11994# Extract the first word of "ldconfig", so it can be a program name with args.
11995set dummy ldconfig; ac_word=$2
11996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11997$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 11998if ${ac_cv_path_LDCONFIG+:} false; then :
57aa50d4 11999 $as_echo_n "(cached) " >&6
b0cacab0 12000else
57aa50d4
TT
12001 case $LDCONFIG in
12002 [\\/]* | ?:[\\/]*)
12003 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
12004 ;;
12005 *)
12006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12007for as_dir in $PATH
12008do
12009 IFS=$as_save_IFS
12010 test -z "$as_dir" && as_dir=.
12011 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 12012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
12013 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
12014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12015 break 2
12016 fi
12017done
12018 done
12019IFS=$as_save_IFS
b0cacab0 12020
57aa50d4
TT
12021 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
12022 ;;
12023esac
39fd3d4f 12024fi
57aa50d4
TT
12025LDCONFIG=$ac_cv_path_LDCONFIG
12026if test -n "$LDCONFIG"; then
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
12028$as_echo "$LDCONFIG" >&6; }
12029else
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12031$as_echo "no" >&6; }
b0cacab0 12032fi
39fd3d4f
SJR
12033
12034
57aa50d4
TT
12035if test -n "$ac_tool_prefix"; then
12036 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12037set dummy ${ac_tool_prefix}ar; ac_word=$2
12038{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12039$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 12040if ${ac_cv_prog_AR+:} false; then :
57aa50d4
TT
12041 $as_echo_n "(cached) " >&6
12042else
12043 if test -n "$AR"; then
12044 ac_cv_prog_AR="$AR" # Let the user override the test.
12045else
12046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12047for as_dir in $PATH
12048do
12049 IFS=$as_save_IFS
12050 test -z "$as_dir" && as_dir=.
12051 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 12052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
12053 ac_cv_prog_AR="${ac_tool_prefix}ar"
12054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12055 break 2
12056 fi
12057done
12058 done
12059IFS=$as_save_IFS
39fd3d4f 12060
57aa50d4
TT
12061fi
12062fi
12063AR=$ac_cv_prog_AR
12064if test -n "$AR"; then
12065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12066$as_echo "$AR" >&6; }
12067else
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12069$as_echo "no" >&6; }
12070fi
39fd3d4f 12071
b0cacab0 12072
57aa50d4
TT
12073fi
12074if test -z "$ac_cv_prog_AR"; then
12075 ac_ct_AR=$AR
12076 # Extract the first word of "ar", so it can be a program name with args.
12077set dummy ar; ac_word=$2
12078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12079$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 12080if ${ac_cv_prog_ac_ct_AR+:} false; then :
39fd3d4f 12081 $as_echo_n "(cached) " >&6
b0cacab0 12082else
57aa50d4
TT
12083 if test -n "$ac_ct_AR"; then
12084 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
b0cacab0 12085else
57aa50d4
TT
12086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12087for as_dir in $PATH
12088do
12089 IFS=$as_save_IFS
12090 test -z "$as_dir" && as_dir=.
12091 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 12092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
12093 ac_cv_prog_ac_ct_AR="ar"
12094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12095 break 2
12096 fi
12097done
12098 done
12099IFS=$as_save_IFS
b0cacab0 12100
b0cacab0 12101fi
57aa50d4
TT
12102fi
12103ac_ct_AR=$ac_cv_prog_ac_ct_AR
12104if test -n "$ac_ct_AR"; then
12105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12106$as_echo "$ac_ct_AR" >&6; }
b0cacab0 12107else
57aa50d4
TT
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12109$as_echo "no" >&6; }
12110fi
b0cacab0 12111
57aa50d4
TT
12112 if test "x$ac_ct_AR" = x; then
12113 AR="ar"
12114 else
12115 case $cross_compiling:$ac_tool_warned in
12116yes:)
12117{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12118$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12119ac_tool_warned=yes ;;
e1052144 12120esac
57aa50d4
TT
12121 AR=$ac_ct_AR
12122 fi
b0cacab0 12123else
57aa50d4 12124 AR="$ac_cv_prog_AR"
b0cacab0 12125fi
e1052144 12126
57aa50d4
TT
12127if test -n "$ac_tool_prefix"; then
12128 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12129set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12131$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 12132if ${ac_cv_prog_RANLIB+:} false; then :
57aa50d4 12133 $as_echo_n "(cached) " >&6
b0cacab0 12134else
57aa50d4
TT
12135 if test -n "$RANLIB"; then
12136 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12137else
12138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12139for as_dir in $PATH
12140do
12141 IFS=$as_save_IFS
12142 test -z "$as_dir" && as_dir=.
12143 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 12144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
12145 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12147 break 2
12148 fi
12149done
b0cacab0 12150 done
57aa50d4 12151IFS=$as_save_IFS
b0cacab0 12152
b0cacab0 12153fi
57aa50d4
TT
12154fi
12155RANLIB=$ac_cv_prog_RANLIB
12156if test -n "$RANLIB"; then
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12158$as_echo "$RANLIB" >&6; }
b0cacab0 12159else
57aa50d4
TT
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12161$as_echo "no" >&6; }
b0cacab0 12162fi
b0cacab0 12163
b0cacab0 12164
57aa50d4
TT
12165fi
12166if test -z "$ac_cv_prog_RANLIB"; then
12167 ac_ct_RANLIB=$RANLIB
12168 # Extract the first word of "ranlib", so it can be a program name with args.
12169set dummy ranlib; ac_word=$2
12170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12171$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 12172if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
57aa50d4
TT
12173 $as_echo_n "(cached) " >&6
12174else
12175 if test -n "$ac_ct_RANLIB"; then
12176 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
b0cacab0 12177else
57aa50d4
TT
12178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12179for as_dir in $PATH
12180do
12181 IFS=$as_save_IFS
12182 test -z "$as_dir" && as_dir=.
12183 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 12184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
12185 ac_cv_prog_ac_ct_RANLIB="ranlib"
12186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12187 break 2
12188 fi
12189done
12190 done
12191IFS=$as_save_IFS
29a5deed 12192
b0cacab0 12193fi
57aa50d4
TT
12194fi
12195ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12196if test -n "$ac_ct_RANLIB"; then
12197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12198$as_echo "$ac_ct_RANLIB" >&6; }
b0cacab0 12199else
57aa50d4
TT
12200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12201$as_echo "no" >&6; }
12202fi
b0cacab0 12203
57aa50d4
TT
12204 if test "x$ac_ct_RANLIB" = x; then
12205 RANLIB=":"
b0cacab0 12206 else
57aa50d4
TT
12207 case $cross_compiling:$ac_tool_warned in
12208yes:)
12209{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12210$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12211ac_tool_warned=yes ;;
e1052144 12212esac
57aa50d4
TT
12213 RANLIB=$ac_ct_RANLIB
12214 fi
b0cacab0 12215else
57aa50d4 12216 RANLIB="$ac_cv_prog_RANLIB"
b0cacab0 12217fi
e1052144 12218
57aa50d4
TT
12219if test -n "$ac_tool_prefix"; then
12220 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12221set dummy ${ac_tool_prefix}strip; ac_word=$2
12222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12223$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 12224if ${ac_cv_prog_STRIP+:} false; then :
57aa50d4 12225 $as_echo_n "(cached) " >&6
b0cacab0 12226else
57aa50d4
TT
12227 if test -n "$STRIP"; then
12228 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12229else
12230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12231for as_dir in $PATH
12232do
12233 IFS=$as_save_IFS
12234 test -z "$as_dir" && as_dir=.
12235 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 12236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
12237 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12239 break 2
12240 fi
12241done
12242 done
12243IFS=$as_save_IFS
b0cacab0 12244
b0cacab0 12245fi
b0cacab0 12246fi
57aa50d4
TT
12247STRIP=$ac_cv_prog_STRIP
12248if test -n "$STRIP"; then
12249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12250$as_echo "$STRIP" >&6; }
12251else
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12253$as_echo "no" >&6; }
b0cacab0 12254fi
e1052144 12255
b0cacab0 12256
57aa50d4
TT
12257fi
12258if test -z "$ac_cv_prog_STRIP"; then
12259 ac_ct_STRIP=$STRIP
12260 # Extract the first word of "strip", so it can be a program name with args.
12261set dummy strip; ac_word=$2
12262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12263$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 12264if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
39fd3d4f 12265 $as_echo_n "(cached) " >&6
b0cacab0 12266else
57aa50d4
TT
12267 if test -n "$ac_ct_STRIP"; then
12268 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12269else
12270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12271for as_dir in $PATH
12272do
12273 IFS=$as_save_IFS
12274 test -z "$as_dir" && as_dir=.
12275 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 12276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
12277 ac_cv_prog_ac_ct_STRIP="strip"
12278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12279 break 2
12280 fi
12281done
12282 done
12283IFS=$as_save_IFS
b0cacab0 12284
b0cacab0 12285fi
57aa50d4
TT
12286fi
12287ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12288if test -n "$ac_ct_STRIP"; then
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12290$as_echo "$ac_ct_STRIP" >&6; }
b0cacab0 12291else
57aa50d4
TT
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12293$as_echo "no" >&6; }
12294fi
b0cacab0 12295
57aa50d4
TT
12296 if test "x$ac_ct_STRIP" = x; then
12297 STRIP=":"
b0cacab0 12298 else
57aa50d4
TT
12299 case $cross_compiling:$ac_tool_warned in
12300yes:)
12301{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12302$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12303ac_tool_warned=yes ;;
e1052144 12304esac
57aa50d4
TT
12305 STRIP=$ac_ct_STRIP
12306 fi
b0cacab0 12307else
57aa50d4 12308 STRIP="$ac_cv_prog_STRIP"
b0cacab0 12309fi
e1052144 12310
57aa50d4
TT
12311# Extract the first word of "makeinfo", so it can be a program name with args.
12312set dummy makeinfo; ac_word=$2
12313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12314$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 12315if ${ac_cv_prog_MAKEINFO+:} false; then :
57aa50d4 12316 $as_echo_n "(cached) " >&6
07a0db15 12317else
57aa50d4
TT
12318 if test -n "$MAKEINFO"; then
12319 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
12320else
12321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12322for as_dir in $PATH
12323do
12324 IFS=$as_save_IFS
12325 test -z "$as_dir" && as_dir=.
12326 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 12327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
12328 ac_cv_prog_MAKEINFO="makeinfo"
12329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12330 break 2
12331 fi
12332done
12333 done
12334IFS=$as_save_IFS
b0cacab0 12335
b0cacab0
TT
12336fi
12337fi
57aa50d4
TT
12338MAKEINFO=$ac_cv_prog_MAKEINFO
12339if test -n "$MAKEINFO"; then
12340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
12341$as_echo "$MAKEINFO" >&6; }
b0cacab0 12342else
57aa50d4
TT
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12344$as_echo "no" >&6; }
07a0db15 12345fi
29a5deed
TT
12346
12347
57aa50d4 12348if test "_$MAKEINFO" = "_"; then
ca1de98a 12349 MAKEINFO="echo Makeinfo is missing. Info documentation will not be built."
57aa50d4
TT
12350else
12351 case "$MAKEINFO" in
12352 */missing.*)
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
12354*** Makeinfo is missing. Info documentation will not be built." >&5
12355$as_echo "$as_me: WARNING:
12356*** Makeinfo is missing. Info documentation will not be built." >&2;}
12357 ;;
12358 *)
12359 ;;
12360 esac
b0cacab0 12361fi
29a5deed 12362
b0cacab0 12363
57aa50d4
TT
12364# See if we need a separate native compiler.
12365if test $cross_compiling = no; then
12366 BUILD_CC="$CC"
b0cacab0 12367
b0cacab0 12368else
57aa50d4
TT
12369 for ac_prog in gcc cc
12370do
12371 # Extract the first word of "$ac_prog", so it can be a program name with args.
12372set dummy $ac_prog; ac_word=$2
12373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12374$as_echo_n "checking for $ac_word... " >&6; }
d6a4bcb5 12375if ${ac_cv_prog_BUILD_CC+:} false; then :
57aa50d4 12376 $as_echo_n "(cached) " >&6
b0cacab0 12377else
57aa50d4
TT
12378 if test -n "$BUILD_CC"; then
12379 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
12380else
12381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12382for as_dir in $PATH
12383do
12384 IFS=$as_save_IFS
12385 test -z "$as_dir" && as_dir=.
12386 for ac_exec_ext in '' $ac_executable_extensions; do
d6a4bcb5 12387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
57aa50d4
TT
12388 ac_cv_prog_BUILD_CC="$ac_prog"
12389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12390 break 2
12391 fi
12392done
12393 done
12394IFS=$as_save_IFS
b0cacab0 12395
b0cacab0 12396fi
57aa50d4
TT
12397fi
12398BUILD_CC=$ac_cv_prog_BUILD_CC
12399if test -n "$BUILD_CC"; then
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
12401$as_echo "$BUILD_CC" >&6; }
07a0db15 12402else
57aa50d4
TT
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12404$as_echo "no" >&6; }
b0cacab0 12405fi
b0cacab0 12406
b0cacab0 12407
57aa50d4
TT
12408 test -n "$BUILD_CC" && break
12409done
b0cacab0 12410
57aa50d4 12411fi
3829c16c 12412for ac_header in dirent.h errno.h execinfo.h getopt.h malloc.h mntent.h paths.h semaphore.h setjmp.h signal.h stdarg.h stdint.h stdlib.h termios.h termio.h unistd.h utime.h attr/xattr.h linux/falloc.h linux/fd.h linux/fsmap.h linux/major.h linux/loop.h linux/types.h net/if_dl.h netinet/in.h sys/acl.h sys/disklabel.h sys/disk.h sys/file.h sys/ioctl.h sys/key.h sys/mkdev.h sys/mman.h sys/mount.h sys/prctl.h sys/resource.h sys/select.h sys/socket.h sys/sockio.h sys/stat.h sys/syscall.h sys/sysctl.h sys/sysmacros.h sys/time.h sys/types.h sys/un.h sys/wait.h sys/xattr.h
57aa50d4
TT
12413do :
12414 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12415ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
d6a4bcb5 12416if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
57aa50d4
TT
12417 cat >>confdefs.h <<_ACEOF
12418#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
b0cacab0 12419_ACEOF
b0cacab0 12420
b0cacab0 12421fi
e1052144 12422
b0cacab0 12423done
93636bde 12424
ec3a69bb
MA
12425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a dd(1) program that supports iflag=fullblock" >&5
12426$as_echo_n "checking for a dd(1) program that supports iflag=fullblock... " >&6; }
12427DD=
12428for i in dd gdd ; do
12429 if "$i" if=/dev/null of=/dev/null count=1 bs=10k 2>/dev/null iflag=fullblock oflag=append ; then
12430 DD=$i
12431 break
12432 fi
12433done
12434if test -n "$DD" ; then
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
12436$as_echo "$DD" >&6; }
12437else
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found, using dd" >&5
12439$as_echo "not found, using dd" >&6; }
12440 DD=dd
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&5
12442$as_echo "$as_me: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&2;}
12443fi
12444
12445
57aa50d4
TT
12446for ac_header in net/if.h
12447do :
12448 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
12449#if HAVE_SYS_TYPES_H
12450#include <sys/types.h>
12451#endif
12452#if HAVE_SYS_SOCKET
12453#include <sys/socket.h>
12454#endif
29a5deed 12455
57aa50d4 12456"
d6a4bcb5 12457if test "x$ac_cv_header_net_if_h" = xyes; then :
57aa50d4
TT
12458 cat >>confdefs.h <<_ACEOF
12459#define HAVE_NET_IF_H 1
b0cacab0 12460_ACEOF
b0cacab0 12461
b0cacab0 12462fi
e1052144 12463
b0cacab0 12464done
b0cacab0 12465
57aa50d4
TT
12466for ac_func in vprintf
12467do :
12468 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
d6a4bcb5 12469if test "x$ac_cv_func_vprintf" = xyes; then :
57aa50d4
TT
12470 cat >>confdefs.h <<_ACEOF
12471#define HAVE_VPRINTF 1
b0cacab0 12472_ACEOF
b0cacab0 12473
57aa50d4 12474ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
d6a4bcb5 12475if test "x$ac_cv_func__doprnt" = xyes; then :
b0cacab0 12476
57aa50d4 12477$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
b0cacab0 12478
50e1e10f 12479fi
29a5deed 12480
57aa50d4
TT
12481fi
12482done
29a5deed
TT
12483
12484
57aa50d4
TT
12485ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
12486"
d6a4bcb5 12487if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
d1154eb4
TT
12488
12489$as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
50e1e10f 12490
2873927d
TT
12491fi
12492
12493ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
12494if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
12495
12496cat >>confdefs.h <<_ACEOF
12497#define HAVE_STRUCT_STAT_ST_ATIM 1
12498_ACEOF
12499
12500
b0cacab0 12501fi
93636bde 12502
57aa50d4
TT
12503ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
12504"
d6a4bcb5 12505if test "x$ac_cv_type_ssize_t" = xyes; then :
d1154eb4
TT
12506
12507$as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
b0cacab0 12508
57aa50d4 12509fi
b0cacab0 12510
57aa50d4
TT
12511ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
12512"
d6a4bcb5 12513if test "x$ac_cv_have_decl_llseek" = xyes; then :
d1154eb4
TT
12514
12515$as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
b0cacab0 12516
b0cacab0 12517fi
e1052144 12518
57aa50d4
TT
12519ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
12520 #define _LARGEFILE64_SOURCE
12521 #include <unistd.h>
12522"
d6a4bcb5 12523if test "x$ac_cv_have_decl_lseek64" = xyes; then :
d1154eb4
TT
12524
12525$as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
b0cacab0 12526
b0cacab0 12527fi
b0cacab0 12528
57aa50d4
TT
12529# The cast to long int works around a bug in the HP C Compiler
12530# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12531# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12532# This bug is HP SR number 8606223364.
12533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
12534$as_echo_n "checking size of short... " >&6; }
d6a4bcb5 12535if ${ac_cv_sizeof_short+:} false; then :
57aa50d4 12536 $as_echo_n "(cached) " >&6
07a0db15 12537else
57aa50d4 12538 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
b0cacab0 12539
b0cacab0 12540else
57aa50d4
TT
12541 if test "$ac_cv_type_short" = yes; then
12542 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12543$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d6a4bcb5
TB
12544as_fn_error 77 "cannot compute sizeof (short)
12545See \`config.log' for more details" "$LINENO" 5; }
57aa50d4
TT
12546 else
12547 ac_cv_sizeof_short=0
12548 fi
07a0db15 12549fi
b0cacab0 12550
b0cacab0 12551fi
57aa50d4
TT
12552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
12553$as_echo "$ac_cv_sizeof_short" >&6; }
e1052144 12554
93636bde 12555
57aa50d4
TT
12556
12557cat >>confdefs.h <<_ACEOF
12558#define SIZEOF_SHORT $ac_cv_sizeof_short
b0cacab0 12559_ACEOF
57aa50d4
TT
12560
12561
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.
12566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
12567$as_echo_n "checking size of int... " >&6; }
d6a4bcb5 12568if ${ac_cv_sizeof_int+:} false; then :
57aa50d4 12569 $as_echo_n "(cached) " >&6
07a0db15 12570else
57aa50d4 12571 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
93636bde 12572
57aa50d4
TT
12573else
12574 if test "$ac_cv_type_int" = yes; then
12575 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12576$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d6a4bcb5
TB
12577as_fn_error 77 "cannot compute sizeof (int)
12578See \`config.log' for more details" "$LINENO" 5; }
57aa50d4
TT
12579 else
12580 ac_cv_sizeof_int=0
12581 fi
07a0db15 12582fi
e1052144 12583
b0cacab0 12584fi
57aa50d4
TT
12585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
12586$as_echo "$ac_cv_sizeof_int" >&6; }
e1052144 12587
93636bde 12588
57aa50d4
TT
12589
12590cat >>confdefs.h <<_ACEOF
12591#define SIZEOF_INT $ac_cv_sizeof_int
b0cacab0 12592_ACEOF
b0cacab0 12593
e1052144 12594
57aa50d4
TT
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.
12599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
12600$as_echo_n "checking size of long... " >&6; }
d6a4bcb5 12601if ${ac_cv_sizeof_long+:} false; then :
57aa50d4
TT
12602 $as_echo_n "(cached) " >&6
12603else
12604 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
12605
12606else
12607 if test "$ac_cv_type_long" = yes; then
12608 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39fd3d4f 12609$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d6a4bcb5
TB
12610as_fn_error 77 "cannot compute sizeof (long)
12611See \`config.log' for more details" "$LINENO" 5; }
29a5deed 12612 else
57aa50d4
TT
12613 ac_cv_sizeof_long=0
12614 fi
12615fi
39fd3d4f 12616
57aa50d4
TT
12617fi
12618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
12619$as_echo "$ac_cv_sizeof_long" >&6; }
39fd3d4f 12620
57aa50d4
TT
12621
12622
12623cat >>confdefs.h <<_ACEOF
12624#define SIZEOF_LONG $ac_cv_sizeof_long
39fd3d4f 12625_ACEOF
57aa50d4
TT
12626
12627
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.
12632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
12633$as_echo_n "checking size of long long... " >&6; }
d6a4bcb5 12634if ${ac_cv_sizeof_long_long+:} false; then :
57aa50d4 12635 $as_echo_n "(cached) " >&6
39fd3d4f 12636else
57aa50d4 12637 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
39fd3d4f 12638
57aa50d4
TT
12639else
12640 if test "$ac_cv_type_long_long" = yes; then
12641 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39fd3d4f 12642$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
d6a4bcb5
TB
12643as_fn_error 77 "cannot compute sizeof (long long)
12644See \`config.log' for more details" "$LINENO" 5; }
39fd3d4f
SJR
12645 else
12646 ac_cv_sizeof_long_long=0
12647 fi
12648fi
57aa50d4 12649
39fd3d4f 12650fi
57aa50d4 12651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
39fd3d4f
SJR
12652$as_echo "$ac_cv_sizeof_long_long" >&6; }
12653
12654
12655
12656cat >>confdefs.h <<_ACEOF
12657#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
12658_ACEOF
12659
12660
cc68e8a6
TT
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.
12665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
12666$as_echo_n "checking size of off_t... " >&6; }
12667if ${ac_cv_sizeof_off_t+:} false; then :
12668 $as_echo_n "(cached) " >&6
12669else
12670 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
12671
12672else
12673 if test "$ac_cv_type_off_t" = yes; then
12674 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12675$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12676as_fn_error 77 "cannot compute sizeof (off_t)
12677See \`config.log' for more details" "$LINENO" 5; }
12678 else
12679 ac_cv_sizeof_off_t=0
12680 fi
12681fi
12682
12683fi
12684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
12685$as_echo "$ac_cv_sizeof_off_t" >&6; }
12686
12687
12688
12689cat >>confdefs.h <<_ACEOF
12690#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12691_ACEOF
12692
12693
2dd680f3
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.
12698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
12699$as_echo_n "checking size of time_t... " >&6; }
12700if ${ac_cv_sizeof_time_t+:} false; then :
12701 $as_echo_n "(cached) " >&6
12702else
12703 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then :
12704
12705else
12706 if test "$ac_cv_type_time_t" = yes; then
12707 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12708$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12709as_fn_error 77 "cannot compute sizeof (time_t)
12710See \`config.log' for more details" "$LINENO" 5; }
12711 else
12712 ac_cv_sizeof_time_t=0
12713 fi
12714fi
12715
12716fi
12717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
12718$as_echo "$ac_cv_sizeof_time_t" >&6; }
12719
12720
12721
12722cat >>confdefs.h <<_ACEOF
12723#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
12724_ACEOF
12725
12726
39fd3d4f
SJR
12727SIZEOF_SHORT=$ac_cv_sizeof_short
12728SIZEOF_INT=$ac_cv_sizeof_int
12729SIZEOF_LONG=$ac_cv_sizeof_long
12730SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
cc68e8a6 12731SIZEOF_OFF_T=$ac_cv_sizeof_off_t
2dd680f3
TT
12732SIZEOF_TIME_T=$ac_cv_sizeof_time_t
12733
cc68e8a6 12734
39fd3d4f
SJR
12735
12736
12737
12738
57aa50d4 12739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
39fd3d4f 12740$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
d6a4bcb5 12741if ${ac_cv_c_bigendian+:} false; then :
39fd3d4f
SJR
12742 $as_echo_n "(cached) " >&6
12743else
12744 ac_cv_c_bigendian=unknown
12745 # See if we're dealing with a universal compiler.
57aa50d4 12746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39fd3d4f
SJR
12747/* end confdefs.h. */
12748#ifndef __APPLE_CC__
12749 not a universal capable compiler
12750 #endif
12751 typedef int dummy;
12752
12753_ACEOF
57aa50d4 12754if ac_fn_c_try_compile "$LINENO"; then :
39fd3d4f
SJR
12755
12756 # Check for potential -arch flags. It is not universal unless
57aa50d4
TT
12757 # there are at least two -arch flags with different values.
12758 ac_arch=
12759 ac_prev=
12760 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12761 if test -n "$ac_prev"; then
12762 case $ac_word in
12763 i?86 | x86_64 | ppc | ppc64)
12764 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12765 ac_arch=$ac_word
12766 else
12767 ac_cv_c_bigendian=universal
12768 break
12769 fi
12770 ;;
12771 esac
12772 ac_prev=
12773 elif test "x$ac_word" = "x-arch"; then
12774 ac_prev=arch
12775 fi
12776 done
39fd3d4f 12777fi
39fd3d4f
SJR
12778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12779 if test $ac_cv_c_bigendian = unknown; then
12780 # See if sys/param.h defines the BYTE_ORDER macro.
57aa50d4 12781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39fd3d4f
SJR
12782/* end confdefs.h. */
12783#include <sys/types.h>
12784 #include <sys/param.h>
12785
12786int
12787main ()
12788{
12789#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12790 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12791 && LITTLE_ENDIAN)
12792 bogus endian macros
12793 #endif
12794
12795 ;
12796 return 0;
12797}
12798_ACEOF
57aa50d4 12799if ac_fn_c_try_compile "$LINENO"; then :
39fd3d4f 12800 # It does; now see whether it defined to BIG_ENDIAN or not.
57aa50d4 12801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39fd3d4f
SJR
12802/* end confdefs.h. */
12803#include <sys/types.h>
12804 #include <sys/param.h>
12805
b0cacab0
TT
12806int
12807main ()
07a0db15 12808{
39fd3d4f
SJR
12809#if BYTE_ORDER != BIG_ENDIAN
12810 not big endian
12811 #endif
b0cacab0
TT
12812
12813 ;
12814 return 0;
07a0db15 12815}
b0cacab0 12816_ACEOF
57aa50d4 12817if ac_fn_c_try_compile "$LINENO"; then :
39fd3d4f 12818 ac_cv_c_bigendian=yes
b0cacab0 12819else
57aa50d4 12820 ac_cv_c_bigendian=no
fc6d9d51 12821fi
39fd3d4f 12822rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39fd3d4f 12823fi
39fd3d4f
SJR
12824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12825 fi
12826 if test $ac_cv_c_bigendian = unknown; then
12827 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
57aa50d4 12828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 12829/* end confdefs.h. */
39fd3d4f 12830#include <limits.h>
877eb6d9 12831
b0cacab0
TT
12832int
12833main ()
12834{
39fd3d4f
SJR
12835#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12836 bogus endian macros
12837 #endif
b0cacab0
TT
12838
12839 ;
12840 return 0;
12841}
b0cacab0 12842_ACEOF
57aa50d4
TT
12843if ac_fn_c_try_compile "$LINENO"; then :
12844 # It does; now see whether it defined to _BIG_ENDIAN or not.
12845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 12846/* end confdefs.h. */
39fd3d4f 12847#include <limits.h>
877eb6d9 12848
b0cacab0
TT
12849int
12850main ()
12851{
39fd3d4f
SJR
12852#ifndef _BIG_ENDIAN
12853 not big endian
12854 #endif
b0cacab0
TT
12855
12856 ;
12857 return 0;
12858}
12859_ACEOF
57aa50d4 12860if ac_fn_c_try_compile "$LINENO"; then :
877eb6d9
TT
12861 ac_cv_c_bigendian=yes
12862else
57aa50d4 12863 ac_cv_c_bigendian=no
877eb6d9 12864fi
e1052144 12865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39fd3d4f 12866fi
39fd3d4f
SJR
12867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12868 fi
12869 if test $ac_cv_c_bigendian = unknown; then
12870 # Compile a test program.
57aa50d4 12871 if test "$cross_compiling" = yes; then :
39fd3d4f 12872 # Try to guess by grepping values from an object file.
57aa50d4 12873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 12874/* end confdefs.h. */
39fd3d4f
SJR
12875short int ascii_mm[] =
12876 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12877 short int ascii_ii[] =
12878 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12879 int use_ascii (int i) {
12880 return ascii_mm[i] + ascii_ii[i];
12881 }
12882 short int ebcdic_ii[] =
12883 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12884 short int ebcdic_mm[] =
12885 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12886 int use_ebcdic (int i) {
12887 return ebcdic_mm[i] + ebcdic_ii[i];
12888 }
12889 extern int foo;
12890
b0cacab0
TT
12891int
12892main ()
12893{
39fd3d4f 12894return use_ascii (foo) == use_ebcdic (foo);
b0cacab0
TT
12895 ;
12896 return 0;
12897}
12898_ACEOF
57aa50d4 12899if ac_fn_c_try_compile "$LINENO"; then :
39fd3d4f
SJR
12900 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12901 ac_cv_c_bigendian=yes
12902 fi
12903 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12904 if test "$ac_cv_c_bigendian" = unknown; then
12905 ac_cv_c_bigendian=no
12906 else
12907 # finding both strings is unlikely to happen, but who knows?
12908 ac_cv_c_bigendian=unknown
12909 fi
12910 fi
b0cacab0 12911fi
e1052144 12912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
877eb6d9 12913else
57aa50d4 12914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 12915/* end confdefs.h. */
e1052144 12916$ac_includes_default
b0cacab0
TT
12917int
12918main ()
12919{
e1052144 12920
39fd3d4f
SJR
12921 /* Are we little or big endian? From Harbison&Steele. */
12922 union
12923 {
12924 long int l;
12925 char c[sizeof (long int)];
12926 } u;
12927 u.l = 1;
12928 return u.c[sizeof (long int) - 1] == 1;
e1052144
TT
12929
12930 ;
12931 return 0;
877eb6d9 12932}
b0cacab0 12933_ACEOF
57aa50d4 12934if ac_fn_c_try_run "$LINENO"; then :
877eb6d9
TT
12935 ac_cv_c_bigendian=no
12936else
57aa50d4 12937 ac_cv_c_bigendian=yes
877eb6d9 12938fi
57aa50d4
TT
12939rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12940 conftest.$ac_objext conftest.beam conftest.$ac_ext
877eb6d9 12941fi
e1052144 12942
39fd3d4f 12943 fi
877eb6d9 12944fi
57aa50d4 12945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
39fd3d4f
SJR
12946$as_echo "$ac_cv_c_bigendian" >&6; }
12947 case $ac_cv_c_bigendian in #(
12948 yes)
57aa50d4 12949 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
39fd3d4f
SJR
12950;; #(
12951 no)
12952 ;; #(
12953 universal)
07a0db15 12954
57aa50d4 12955$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
39fd3d4f
SJR
12956
12957 ;; #(
12958 *)
d6a4bcb5 12959 as_fn_error $? "unknown endianness
57aa50d4 12960 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
39fd3d4f 12961 esac
877eb6d9 12962
91f04685
CQ
12963if test $cross_compiling = no; then
12964 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12965else
12966 CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12967fi
4ea7ea00
TT
12968ASM_TYPES_HEADER=./asm_types.h
12969
488c75a6
TT
12970echo "/* These defines are needed for the public ext2fs.h header file */" \
12971 > public_config.h
12972if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
12973 uniq tmp_config.$$ >> public_config.h
12974else
12975 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
12976fi
12977if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
12978 uniq tmp_config.$$ >> public_config.h
12979else
12980 echo "#undef WORDS_BIGENDIAN" >> public_config.h
12981fi
12982rm -f tmp_config.$$
12983PUBLIC_CONFIG_HEADER=./public_config.h
12984
b0cacab0 12985for ac_header in inttypes.h
57aa50d4
TT
12986do :
12987 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
d6a4bcb5 12988if test "x$ac_cv_header_inttypes_h" = xyes; then :
b0cacab0 12989 cat >>confdefs.h <<_ACEOF
57aa50d4 12990#define HAVE_INTTYPES_H 1
b0cacab0
TT
12991_ACEOF
12992
12993fi
12994
0c193f82
TT
12995done
12996
57aa50d4 12997ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
d6a4bcb5 12998if test "x$ac_cv_type_intptr_t" = xyes; then :
b0cacab0
TT
12999
13000cat >>confdefs.h <<_ACEOF
d2ee56d8 13001#define HAVE_INTPTR_T 1
b0cacab0 13002_ACEOF
0c193f82 13003
d2ee56d8 13004
0c193f82
TT
13005fi
13006
57aa50d4 13007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
39fd3d4f 13008$as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
d6a4bcb5 13009if ${e2fsprogs_cv_struct_st_flags+:} false; then :
39fd3d4f 13010 $as_echo_n "(cached) " >&6
50e1e10f 13011else
57aa50d4 13012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 13013/* end confdefs.h. */
50e1e10f 13014#include <sys/stat.h>
b0cacab0
TT
13015int
13016main ()
13017{
50e1e10f 13018struct stat stat; stat.st_flags = 0;
b0cacab0
TT
13019 ;
13020 return 0;
13021}
13022_ACEOF
57aa50d4 13023if ac_fn_c_try_compile "$LINENO"; then :
50e1e10f
TT
13024 e2fsprogs_cv_struct_st_flags=yes
13025else
57aa50d4 13026 e2fsprogs_cv_struct_st_flags=no
50e1e10f 13027fi
e1052144 13028rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50e1e10f
TT
13029fi
13030
57aa50d4 13031{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
39fd3d4f 13032$as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
50e1e10f 13033if test "$e2fsprogs_cv_struct_st_flags" = yes; then
57aa50d4 13034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
39fd3d4f 13035$as_echo_n "checking whether st_flags field is useful... " >&6; }
d6a4bcb5 13036 if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then :
39fd3d4f 13037 $as_echo_n "(cached) " >&6
b0cacab0 13038else
57aa50d4 13039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 13040/* end confdefs.h. */
c03bc4e8 13041#include <sys/stat.h>
b0cacab0
TT
13042int
13043main ()
13044{
c03bc4e8 13045struct stat stat; stat.st_flags |= UF_IMMUTABLE;
b0cacab0
TT
13046 ;
13047 return 0;
13048}
57aa50d4
TT
13049_ACEOF
13050if ac_fn_c_try_compile "$LINENO"; then :
13051 e2fsprogs_cv_struct_st_flags_immut=yes
6c65d251 13052else
57aa50d4 13053 e2fsprogs_cv_struct_st_flags_immut=no
84ea6e70 13054fi
e1052144 13055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
84ea6e70 13056fi
e1052144 13057
57aa50d4
TT
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
13059$as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
13060 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
d1154eb4
TT
13061
13062$as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
57aa50d4
TT
13063
13064 fi
6c65d251 13065fi
57aa50d4
TT
13066ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
13067 #include <sys/socket.h>
13068"
d6a4bcb5 13069if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
b0cacab0
TT
13070
13071cat >>confdefs.h <<_ACEOF
84ea6e70 13072#define HAVE_SA_LEN 1
b0cacab0 13073_ACEOF
84ea6e70 13074
50e1e10f 13075fi
b0cacab0 13076
9ed8e5fe 13077if test -n "$BLKID_CMT"; then
57aa50d4 13078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
9ed8e5fe 13079$as_echo_n "checking for library containing blkid_probe_all... " >&6; }
d6a4bcb5 13080if ${ac_cv_search_blkid_probe_all+:} false; then :
9ed8e5fe
ES
13081 $as_echo_n "(cached) " >&6
13082else
13083 ac_func_search_save_LIBS=$LIBS
57aa50d4 13084cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9ed8e5fe
ES
13085/* end confdefs.h. */
13086
13087/* Override any GCC internal prototype to avoid an error.
13088 Use char because int might match the return type of a GCC
13089 builtin and then its argument prototype would still apply. */
13090#ifdef __cplusplus
13091extern "C"
13092#endif
13093char blkid_probe_all ();
13094int
13095main ()
13096{
13097return blkid_probe_all ();
13098 ;
13099 return 0;
13100}
13101_ACEOF
13102for ac_lib in '' blkid; do
13103 if test -z "$ac_lib"; then
13104 ac_res="none required"
13105 else
13106 ac_res=-l$ac_lib
13107 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13108 fi
57aa50d4 13109 if ac_fn_c_try_link "$LINENO"; then :
9ed8e5fe 13110 ac_cv_search_blkid_probe_all=$ac_res
9ed8e5fe 13111fi
57aa50d4
TT
13112rm -f core conftest.err conftest.$ac_objext \
13113 conftest$ac_exeext
d6a4bcb5 13114 if ${ac_cv_search_blkid_probe_all+:} false; then :
9ed8e5fe
ES
13115 break
13116fi
13117done
d6a4bcb5 13118if ${ac_cv_search_blkid_probe_all+:} false; then :
57aa50d4 13119
9ed8e5fe
ES
13120else
13121 ac_cv_search_blkid_probe_all=no
13122fi
13123rm conftest.$ac_ext
13124LIBS=$ac_func_search_save_LIBS
13125fi
57aa50d4 13126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
9ed8e5fe
ES
13127$as_echo "$ac_cv_search_blkid_probe_all" >&6; }
13128ac_res=$ac_cv_search_blkid_probe_all
57aa50d4 13129if test "$ac_res" != no; then :
9ed8e5fe
ES
13130 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13131
13132fi
13133
13134fi
32179ce2
TT
13135if test -n "$DLOPEN_LIB" ; then
13136 ac_cv_func_dlopen=yes
13137fi
32b8802a 13138for ac_func in __secure_getenv add_key backtrace blkid_probe_get_topology blkid_probe_enable_partitions chflags dlopen fadvise64 fallocate fallocate64 fchown fcntl fdatasync fstat64 fsync ftruncate64 futimes getcwd getdtablesize gethostname getmntinfo getpwuid_r getrlimit getrusage jrand48 keyctl llistxattr llseek lseek64 mallinfo mbstowcs memalign mempcpy mmap msync nanosleep open64 pathconf posix_fadvise posix_fadvise64 posix_memalign prctl pread pwrite pread64 pwrite64 secure_getenv setmntent setresgid setresuid snprintf srandom stpcpy strcasecmp strdup strnlen strptime strtoull sync_file_range sysconf usleep utime utimes valloc
57aa50d4
TT
13139do :
13140 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13141ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
d6a4bcb5 13142if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
b0cacab0 13143 cat >>confdefs.h <<_ACEOF
39fd3d4f 13144#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
b0cacab0 13145_ACEOF
21c84b71 13146
50e1e10f
TT
13147fi
13148done
13149
fc6d9d51 13150SOCKET_LIB=''
57aa50d4 13151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
39fd3d4f 13152$as_echo_n "checking for socket in -lsocket... " >&6; }
d6a4bcb5 13153if ${ac_cv_lib_socket_socket+:} false; then :
39fd3d4f 13154 $as_echo_n "(cached) " >&6
50e1e10f 13155else
b0cacab0 13156 ac_check_lib_save_LIBS=$LIBS
fc6d9d51 13157LIBS="-lsocket $LIBS"
57aa50d4 13158cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 13159/* end confdefs.h. */
93636bde 13160
e1052144
TT
13161/* Override any GCC internal prototype to avoid an error.
13162 Use char because int might match the return type of a GCC
13163 builtin and then its argument prototype would still apply. */
b0cacab0
TT
13164#ifdef __cplusplus
13165extern "C"
13166#endif
b0cacab0
TT
13167char socket ();
13168int
13169main ()
13170{
e1052144 13171return socket ();
b0cacab0
TT
13172 ;
13173 return 0;
13174}
13175_ACEOF
57aa50d4 13176if ac_fn_c_try_link "$LINENO"; then :
b0cacab0
TT
13177 ac_cv_lib_socket_socket=yes
13178else
57aa50d4 13179 ac_cv_lib_socket_socket=no
b0cacab0 13180fi
57aa50d4
TT
13181rm -f core conftest.err conftest.$ac_objext \
13182 conftest$ac_exeext conftest.$ac_ext
b0cacab0
TT
13183LIBS=$ac_check_lib_save_LIBS
13184fi
57aa50d4 13185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
39fd3d4f 13186$as_echo "$ac_cv_lib_socket_socket" >&6; }
d6a4bcb5 13187if test "x$ac_cv_lib_socket_socket" = xyes; then :
fc6d9d51 13188 SOCKET_LIB=-lsocket
50e1e10f 13189fi
fc6d9d51 13190
93636bde 13191
b291c11f
DW
13192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_file in -lmagic" >&5
13193$as_echo_n "checking for magic_file in -lmagic... " >&6; }
13194if ${ac_cv_lib_magic_magic_file+:} false; then :
13195 $as_echo_n "(cached) " >&6
13196else
13197 ac_check_lib_save_LIBS=$LIBS
13198LIBS="-lmagic $LIBS"
13199cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13200/* end confdefs.h. */
13201
13202/* Override any GCC internal prototype to avoid an error.
13203 Use char because int might match the return type of a GCC
13204 builtin and then its argument prototype would still apply. */
13205#ifdef __cplusplus
13206extern "C"
13207#endif
13208char magic_file ();
13209int
13210main ()
13211{
13212return magic_file ();
13213 ;
13214 return 0;
13215}
13216_ACEOF
13217if ac_fn_c_try_link "$LINENO"; then :
13218 ac_cv_lib_magic_magic_file=yes
13219else
13220 ac_cv_lib_magic_magic_file=no
13221fi
13222rm -f core conftest.err conftest.$ac_objext \
13223 conftest$ac_exeext conftest.$ac_ext
13224LIBS=$ac_check_lib_save_LIBS
13225fi
13226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_file" >&5
13227$as_echo "$ac_cv_lib_magic_magic_file" >&6; }
13228if test "x$ac_cv_lib_magic_magic_file" = xyes; then :
13229 MAGIC_LIB=-lmagic
13230for ac_header in magic.h
13231do :
13232 ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
13233if test "x$ac_cv_header_magic_h" = xyes; then :
13234 cat >>confdefs.h <<_ACEOF
13235#define HAVE_MAGIC_H 1
13236_ACEOF
13237
13238fi
13239
13240done
13241
13242fi
13243
32179ce2 13244if test "$ac_cv_func_dlopen" = yes ; then
d2e3c0dc
TT
13245 MAGIC_LIB=$DLOPEN_LIB
13246fi
b291c11f 13247
c94da047
TT
13248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
13249$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
13250if ${ac_cv_lib_rt_clock_gettime+:} false; then :
13251 $as_echo_n "(cached) " >&6
13252else
13253 ac_check_lib_save_LIBS=$LIBS
13254LIBS="-lrt $LIBS"
13255cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13256/* end confdefs.h. */
13257
13258/* Override any GCC internal prototype to avoid an error.
13259 Use char because int might match the return type of a GCC
13260 builtin and then its argument prototype would still apply. */
13261#ifdef __cplusplus
13262extern "C"
13263#endif
13264char clock_gettime ();
13265int
13266main ()
13267{
13268return clock_gettime ();
13269 ;
13270 return 0;
13271}
13272_ACEOF
13273if ac_fn_c_try_link "$LINENO"; then :
13274 ac_cv_lib_rt_clock_gettime=yes
13275else
13276 ac_cv_lib_rt_clock_gettime=no
13277fi
13278rm -f core conftest.err conftest.$ac_objext \
13279 conftest$ac_exeext conftest.$ac_ext
13280LIBS=$ac_check_lib_save_LIBS
13281fi
13282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
13283$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
13284if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
13285 CLOCK_GETTIME_LIB=-lrt
13286fi
13287
13288
81cbf1ef
DW
13289FUSE_CMT=
13290FUSE_LIB=
13291# Check whether --enable-fuse2fs was given.
13292if test "${enable_fuse2fs+set}" = set; then :
13293 enableval=$enable_fuse2fs; if test "$enableval" = "no"
13294then
13295 FUSE_CMT="#"
13296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling fuse2fs" >&5
13297$as_echo "Disabling fuse2fs" >&6; }
13298else
13299 for ac_header in pthread.h fuse.h
13300do :
13301 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13302ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
13303#define FUSE_USE_VERSION 29
13304"
13305if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13306 cat >>confdefs.h <<_ACEOF
13307#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13308_ACEOF
13309
13310else
13311 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13312$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13313as_fn_error $? "Cannot find fuse2fs headers.
13314See \`config.log' for more details" "$LINENO" 5; }
13315fi
13316
13317done
13318
13319
13320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13321/* end confdefs.h. */
13322#define FUSE_USE_VERSION 29
13323#ifdef __linux__
13324#include <linux/fs.h>
13325#include <linux/falloc.h>
13326#include <linux/xattr.h>
13327#endif
13328
13329int
13330main ()
13331{
13332
13333 ;
13334 return 0;
13335}
13336_ACEOF
13337if ac_fn_c_try_cpp "$LINENO"; then :
13338
13339else
13340 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13341$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13342as_fn_error $? "Cannot find fuse2fs Linux headers.
13343See \`config.log' for more details" "$LINENO" 5; }
13344fi
13345rm -f conftest.err conftest.i conftest.$ac_ext
13346
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13348$as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
13349if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
13350 $as_echo_n "(cached) " >&6
13351else
13352 ac_check_lib_save_LIBS=$LIBS
13353LIBS="-losxfuse $LIBS"
13354cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13355/* end confdefs.h. */
13356
13357/* Override any GCC internal prototype to avoid an error.
13358 Use char because int might match the return type of a GCC
13359 builtin and then its argument prototype would still apply. */
13360#ifdef __cplusplus
13361extern "C"
13362#endif
13363char fuse_main ();
13364int
13365main ()
13366{
13367return fuse_main ();
13368 ;
13369 return 0;
13370}
13371_ACEOF
13372if ac_fn_c_try_link "$LINENO"; then :
13373 ac_cv_lib_osxfuse_fuse_main=yes
13374else
13375 ac_cv_lib_osxfuse_fuse_main=no
13376fi
13377rm -f core conftest.err conftest.$ac_objext \
13378 conftest$ac_exeext conftest.$ac_ext
13379LIBS=$ac_check_lib_save_LIBS
13380fi
13381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13382$as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13383if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
13384 FUSE_LIB=-losxfuse
13385else
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13387$as_echo_n "checking for fuse_main in -lfuse... " >&6; }
13388if ${ac_cv_lib_fuse_fuse_main+:} false; then :
13389 $as_echo_n "(cached) " >&6
13390else
13391 ac_check_lib_save_LIBS=$LIBS
13392LIBS="-lfuse $LIBS"
13393cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13394/* end confdefs.h. */
13395
13396/* Override any GCC internal prototype to avoid an error.
13397 Use char because int might match the return type of a GCC
13398 builtin and then its argument prototype would still apply. */
13399#ifdef __cplusplus
13400extern "C"
13401#endif
13402char fuse_main ();
13403int
13404main ()
13405{
13406return fuse_main ();
13407 ;
13408 return 0;
13409}
13410_ACEOF
13411if ac_fn_c_try_link "$LINENO"; then :
13412 ac_cv_lib_fuse_fuse_main=yes
13413else
13414 ac_cv_lib_fuse_fuse_main=no
13415fi
13416rm -f core conftest.err conftest.$ac_objext \
13417 conftest$ac_exeext conftest.$ac_ext
13418LIBS=$ac_check_lib_save_LIBS
13419fi
13420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13421$as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
13422if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
13423 FUSE_LIB=-lfuse
13424else
13425 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13426$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13427as_fn_error $? "Cannot find fuse library.
13428See \`config.log' for more details" "$LINENO" 5; }
13429fi
13430
13431fi
13432
13433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs" >&5
13434$as_echo "Enabling fuse2fs" >&6; }
13435fi
13436
13437else
13438 for ac_header in pthread.h fuse.h
13439do :
13440 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13441ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
13442#define FUSE_USE_VERSION 29
13443#ifdef __linux__
13444# include <linux/fs.h>
13445# include <linux/falloc.h>
13446# include <linux/xattr.h>
13447#endif
13448"
13449if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13450 cat >>confdefs.h <<_ACEOF
13451#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13452_ACEOF
13453
13454else
13455 FUSE_CMT="#"
13456fi
13457
13458done
13459
13460if test -z "$FUSE_CMT"
13461then
13462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13463$as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
13464if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
13465 $as_echo_n "(cached) " >&6
13466else
13467 ac_check_lib_save_LIBS=$LIBS
13468LIBS="-losxfuse $LIBS"
13469cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13470/* end confdefs.h. */
13471
13472/* Override any GCC internal prototype to avoid an error.
13473 Use char because int might match the return type of a GCC
13474 builtin and then its argument prototype would still apply. */
13475#ifdef __cplusplus
13476extern "C"
13477#endif
13478char fuse_main ();
13479int
13480main ()
13481{
13482return fuse_main ();
13483 ;
13484 return 0;
13485}
13486_ACEOF
13487if ac_fn_c_try_link "$LINENO"; then :
13488 ac_cv_lib_osxfuse_fuse_main=yes
13489else
13490 ac_cv_lib_osxfuse_fuse_main=no
13491fi
13492rm -f core conftest.err conftest.$ac_objext \
13493 conftest$ac_exeext conftest.$ac_ext
13494LIBS=$ac_check_lib_save_LIBS
13495fi
13496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13497$as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13498if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
13499 FUSE_LIB=-losxfuse
13500else
13501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13502$as_echo_n "checking for fuse_main in -lfuse... " >&6; }
13503if ${ac_cv_lib_fuse_fuse_main+:} false; then :
13504 $as_echo_n "(cached) " >&6
13505else
13506 ac_check_lib_save_LIBS=$LIBS
13507LIBS="-lfuse $LIBS"
13508cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13509/* end confdefs.h. */
13510
13511/* Override any GCC internal prototype to avoid an error.
13512 Use char because int might match the return type of a GCC
13513 builtin and then its argument prototype would still apply. */
13514#ifdef __cplusplus
13515extern "C"
13516#endif
13517char fuse_main ();
13518int
13519main ()
13520{
13521return fuse_main ();
13522 ;
13523 return 0;
13524}
13525_ACEOF
13526if ac_fn_c_try_link "$LINENO"; then :
13527 ac_cv_lib_fuse_fuse_main=yes
13528else
13529 ac_cv_lib_fuse_fuse_main=no
13530fi
13531rm -f core conftest.err conftest.$ac_objext \
13532 conftest$ac_exeext conftest.$ac_ext
13533LIBS=$ac_check_lib_save_LIBS
13534fi
13535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13536$as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
13537if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
13538 FUSE_LIB=-lfuse
13539else
13540 FUSE_CMT="#"
13541fi
13542
13543fi
13544
13545fi
13546if test -z "$FUSE_CMT"
13547then
13548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs by default." >&5
13549$as_echo "Enabling fuse2fs by default." >&6; }
13550fi
13551
13552fi
13553
13554
13555
57aa50d4 13556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
39fd3d4f 13557$as_echo_n "checking for optreset... " >&6; }
d6a4bcb5 13558if ${ac_cv_have_optreset+:} false; then :
39fd3d4f 13559 $as_echo_n "(cached) " >&6
d7f45af8 13560else
57aa50d4 13561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7f45af8 13562/* end confdefs.h. */
57aa50d4
TT
13563#include <unistd.h>
13564
13565_ACEOF
13566if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13567 $EGREP "optreset" >/dev/null 2>&1; then :
13568 ac_cv_have_optreset=yes
d7f45af8 13569else
57aa50d4
TT
13570 ac_cv_have_optreset=no
13571fi
13572rm -f conftest*
d7f45af8 13573
d7f45af8 13574fi
57aa50d4
TT
13575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
13576$as_echo "$ac_cv_have_optreset" >&6; }
13577if test $ac_cv_have_optreset = yes; then
d1154eb4
TT
13578
13579$as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
d7f45af8 13580
d7f45af8 13581fi
d1154eb4 13582
57aa50d4 13583SEM_INIT_LIB=''
cfb8e0bd
TT
13584echo GL_THREADS_API: ${gl_threads_api}
13585if test "${gl_threads_api}" != none
13586then
13587 ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
d6a4bcb5 13588if test "x$ac_cv_func_sem_init" = xyes; then :
57aa50d4 13589
d7f45af8 13590else
57aa50d4 13591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
39fd3d4f 13592$as_echo_n "checking for sem_init in -lpthread... " >&6; }
d6a4bcb5 13593if ${ac_cv_lib_pthread_sem_init+:} false; then :
39fd3d4f 13594 $as_echo_n "(cached) " >&6
d7f45af8
TT
13595else
13596 ac_check_lib_save_LIBS=$LIBS
13597LIBS="-lpthread $LIBS"
57aa50d4 13598cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7f45af8
TT
13599/* end confdefs.h. */
13600
13601/* Override any GCC internal prototype to avoid an error.
13602 Use char because int might match the return type of a GCC
13603 builtin and then its argument prototype would still apply. */
13604#ifdef __cplusplus
13605extern "C"
13606#endif
13607char sem_init ();
13608int
13609main ()
13610{
13611return sem_init ();
13612 ;
13613 return 0;
13614}
13615_ACEOF
57aa50d4 13616if ac_fn_c_try_link "$LINENO"; then :
d7f45af8
TT
13617 ac_cv_lib_pthread_sem_init=yes
13618else
57aa50d4 13619 ac_cv_lib_pthread_sem_init=no
d7f45af8 13620fi
57aa50d4
TT
13621rm -f core conftest.err conftest.$ac_objext \
13622 conftest$ac_exeext conftest.$ac_ext
d7f45af8
TT
13623LIBS=$ac_check_lib_save_LIBS
13624fi
57aa50d4 13625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
39fd3d4f 13626$as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
d6a4bcb5 13627if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
57aa50d4 13628 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
d7f45af8
TT
13629
13630 SEM_INIT_LIB=-lpthread
13631else
57aa50d4 13632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
39fd3d4f 13633$as_echo_n "checking for sem_init in -lrt... " >&6; }
d6a4bcb5 13634if ${ac_cv_lib_rt_sem_init+:} false; then :
39fd3d4f 13635 $as_echo_n "(cached) " >&6
d7f45af8
TT
13636else
13637 ac_check_lib_save_LIBS=$LIBS
13638LIBS="-lrt $LIBS"
57aa50d4 13639cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7f45af8
TT
13640/* end confdefs.h. */
13641
13642/* Override any GCC internal prototype to avoid an error.
13643 Use char because int might match the return type of a GCC
13644 builtin and then its argument prototype would still apply. */
13645#ifdef __cplusplus
13646extern "C"
13647#endif
13648char sem_init ();
13649int
13650main ()
13651{
13652return sem_init ();
13653 ;
13654 return 0;
13655}
13656_ACEOF
57aa50d4 13657if ac_fn_c_try_link "$LINENO"; then :
d7f45af8
TT
13658 ac_cv_lib_rt_sem_init=yes
13659else
57aa50d4 13660 ac_cv_lib_rt_sem_init=no
d7f45af8 13661fi
57aa50d4
TT
13662rm -f core conftest.err conftest.$ac_objext \
13663 conftest$ac_exeext conftest.$ac_ext
d7f45af8
TT
13664LIBS=$ac_check_lib_save_LIBS
13665fi
57aa50d4 13666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
39fd3d4f 13667$as_echo "$ac_cv_lib_rt_sem_init" >&6; }
d6a4bcb5 13668if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
57aa50d4 13669 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
d7f45af8
TT
13670
13671 SEM_INIT_LIB=-lrt
13672else
57aa50d4 13673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
39fd3d4f 13674$as_echo_n "checking for sem_init in -lposix4... " >&6; }
d6a4bcb5 13675if ${ac_cv_lib_posix4_sem_init+:} false; then :
39fd3d4f 13676 $as_echo_n "(cached) " >&6
d7f45af8
TT
13677else
13678 ac_check_lib_save_LIBS=$LIBS
13679LIBS="-lposix4 $LIBS"
57aa50d4 13680cat confdefs.h - <<_ACEOF >conftest.$ac_ext
d7f45af8
TT
13681/* end confdefs.h. */
13682
13683/* Override any GCC internal prototype to avoid an error.
13684 Use char because int might match the return type of a GCC
13685 builtin and then its argument prototype would still apply. */
13686#ifdef __cplusplus
13687extern "C"
13688#endif
13689char sem_init ();
13690int
13691main ()
13692{
13693return sem_init ();
13694 ;
13695 return 0;
13696}
13697_ACEOF
57aa50d4 13698if ac_fn_c_try_link "$LINENO"; then :
d7f45af8
TT
13699 ac_cv_lib_posix4_sem_init=yes
13700else
57aa50d4 13701 ac_cv_lib_posix4_sem_init=no
d7f45af8 13702fi
57aa50d4
TT
13703rm -f core conftest.err conftest.$ac_objext \
13704 conftest$ac_exeext conftest.$ac_ext
d7f45af8
TT
13705LIBS=$ac_check_lib_save_LIBS
13706fi
57aa50d4 13707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
39fd3d4f 13708$as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
d6a4bcb5 13709if test "x$ac_cv_lib_posix4_sem_init" = xyes; then :
57aa50d4 13710 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
d7f45af8
TT
13711
13712 SEM_INIT_LIB=-lposix4
13713fi
13714
13715fi
13716
13717fi
13718
cfb8e0bd 13719fi
d7f45af8
TT
13720fi
13721
57aa50d4 13722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
39fd3d4f 13723$as_echo_n "checking for unified diff option... " >&6; }
27f991b0 13724if diff -u $0 $0 > /dev/null 2>&1 ; then
e54635de
TT
13725 UNI_DIFF_OPTS=-u
13726else
13727 UNI_DIFF_OPTS=-c
13728fi
57aa50d4 13729{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
39fd3d4f 13730$as_echo "$UNI_DIFF_OPTS" >&6; }
e54635de 13731
8f3f29d3
TT
13732case "$host_os" in
13733linux*)
d1154eb4
TT
13734
13735$as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
50e1e10f 13736
8f3f29d3
TT
13737 ;;
13738esac
4aece328
DW
13739# Check whether --enable-lto was given.
13740if test "${enable_lto+set}" = set; then :
13741 enableval=$enable_lto;
13742else
13743 enable_lto=probe
13744fi
13745
13746if test "$enable_lto" = "yes" || test "$enable_lto" = "probe"; then
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C compiler supports LTO" >&5
13748$as_echo_n "checking if C compiler supports LTO... " >&6; }
13749 OLD_CFLAGS="$CFLAGS"
13750 OLD_LDFLAGS="$LDFLAGS"
13751 LTO_FLAGS="-flto -ffat-lto-objects"
13752 CFLAGS="$CFLAGS $LTO_FLAGS"
13753 LDFLAGS="$LDFLAGS $LTO_FLAGS"
13754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13755/* end confdefs.h. */
13756
13757int
13758main ()
13759{
13760
13761 ;
13762 return 0;
13763}
13764_ACEOF
13765if ac_fn_c_try_link "$LINENO"; then :
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13767$as_echo "yes" >&6; }
13768 lto_cflags=$LTO_FLAGS
13769 lto_ldflags=$LTO_FLAGS
13770 # Extract the first word of "gcc-ar", so it can be a program name with args.
13771set dummy gcc-ar; ac_word=$2
13772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13773$as_echo_n "checking for $ac_word... " >&6; }
13774if ${ac_cv_path_gcc_ar+:} false; then :
13775 $as_echo_n "(cached) " >&6
13776else
13777 case $gcc_ar in
13778 [\\/]* | ?:[\\/]*)
13779 ac_cv_path_gcc_ar="$gcc_ar" # Let the user override the test with a path.
13780 ;;
13781 *)
13782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13783for as_dir in $PATH
13784do
13785 IFS=$as_save_IFS
13786 test -z "$as_dir" && as_dir=.
13787 for ac_exec_ext in '' $ac_executable_extensions; do
13788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13789 ac_cv_path_gcc_ar="$as_dir/$ac_word$ac_exec_ext"
13790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13791 break 2
13792 fi
13793done
13794 done
13795IFS=$as_save_IFS
13796
13797 ;;
13798esac
13799fi
13800gcc_ar=$ac_cv_path_gcc_ar
13801if test -n "$gcc_ar"; then
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_ar" >&5
13803$as_echo "$gcc_ar" >&6; }
13804else
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13806$as_echo "no" >&6; }
13807fi
13808
13809
13810 # Extract the first word of "gcc-ranlib", so it can be a program name with args.
13811set dummy gcc-ranlib; ac_word=$2
13812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13813$as_echo_n "checking for $ac_word... " >&6; }
13814if ${ac_cv_path_gcc_ranlib+:} false; then :
13815 $as_echo_n "(cached) " >&6
13816else
13817 case $gcc_ranlib in
13818 [\\/]* | ?:[\\/]*)
13819 ac_cv_path_gcc_ranlib="$gcc_ranlib" # Let the user override the test with a path.
13820 ;;
13821 *)
13822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13823for as_dir in $PATH
13824do
13825 IFS=$as_save_IFS
13826 test -z "$as_dir" && as_dir=.
13827 for ac_exec_ext in '' $ac_executable_extensions; do
13828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13829 ac_cv_path_gcc_ranlib="$as_dir/$ac_word$ac_exec_ext"
13830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13831 break 2
13832 fi
13833done
13834 done
13835IFS=$as_save_IFS
13836
13837 ;;
13838esac
13839fi
13840gcc_ranlib=$ac_cv_path_gcc_ranlib
13841if test -n "$gcc_ranlib"; then
13842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_ranlib" >&5
13843$as_echo "$gcc_ranlib" >&6; }
13844else
13845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13846$as_echo "no" >&6; }
13847fi
13848
13849
13850else
13851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13852$as_echo "no" >&6; }
13853fi
13854rm -f core conftest.err conftest.$ac_objext \
13855 conftest$ac_exeext conftest.$ac_ext
13856 if test -x "$gcc_ar" && test -x "$gcc_ranlib"; then
13857 have_lto=yes
13858 AR="${gcc_ar}"
13859 RANLIB="${gcc_ranlib}"
13860 fi
13861 CFLAGS="${OLD_CFLAGS}"
13862 LDFLAGS="${OLD_LDFLAGS}"
13863
13864
13865
13866fi
13867if test "$enable_lto" = "yes" && test "$have_lto" != "yes"; then
13868 as_fn_error $? "LTO not supported by compiler." "$LINENO" 5
13869fi
e6f2bda3 13870LINUX_CMT="#"
fff45483
TT
13871CYGWIN_CMT="#"
13872UNIX_CMT=
e6f2bda3
TT
13873case "$host_os" in
13874linux*)
13875 LINUX_CMT=
fff45483
TT
13876 ;;
13877cygwin)
13878 CYGWIN_CMT=
13879 UNIX_CMT="#"
e6f2bda3
TT
13880 ;;
13881esac
13882
93636bde
TT
13883
13884
5ce368f0
DW
13885E2SCRUB_CMT="$LINUX_CMT"
13886
50e1e10f 13887case "$host_os" in
93636bde 13888linux* | gnu* | k*bsd*-gnu)
a4b2d3ce
TT
13889 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
13890 root_prefix="";
57aa50d4 13891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
39fd3d4f 13892$as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
fc6d9d51
TT
13893 fi
13894 ;;
13895esac
fc6d9d51 13896case "$host_os" in
93636bde 13897linux* | gnu* | k*bsd*-gnu)
fc6d9d51 13898 if test "$prefix" = NONE ; then
a4b2d3ce 13899 prefix="/usr";
57aa50d4 13900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
39fd3d4f 13901$as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
bff61a7a 13902 if test "$mandir" = '${prefix}/man' ; then
57aa50d4 13903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
39fd3d4f 13904$as_echo "...and mandir defaults to /usr/share/man" >&6; }
bff61a7a
TT
13905 mandir=/usr/share/man
13906 fi
50e1e10f
TT
13907 fi
13908;;
13909esac
a4b2d3ce 13910if test "$root_prefix" = NONE ; then
ffe1991f 13911 if test "$prefix" = NONE ; then
a4b2d3ce
TT
13912 root_prefix="$ac_default_prefix"
13913 else
13914 root_prefix="$prefix"
13915 fi
b5ffeade
TT
13916 root_bindir=$bindir
13917 root_sbindir=$sbindir
13918 root_libdir=$libdir
13919 root_sysconfdir=$sysconfdir
13920else
13921 root_bindir='${root_prefix}/bin'
13922 root_sbindir='${root_prefix}/sbin'
13923 root_libdir='${root_prefix}/lib'
13924 root_sysconfdir='${root_prefix}/etc'
a4b2d3ce 13925fi
c4ef11c5
TT
13926if test "$bindir" != '${exec_prefix}/bin'; then
13927 root_bindir=$bindir
57aa50d4 13928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
39fd3d4f 13929$as_echo "Setting root_bindir to $root_bindir" >&6; }
c4ef11c5
TT
13930fi
13931if test "$sbindir" != '${exec_prefix}/sbin'; then
13932 root_sbindir=$sbindir
57aa50d4 13933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
39fd3d4f 13934$as_echo "Setting root_sbindir to $root_sbindir" >&6; }
c4ef11c5
TT
13935fi
13936if test "$libdir" != '${exec_prefix}/lib'; then
13937 root_libdir=$libdir
57aa50d4 13938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
39fd3d4f 13939$as_echo "Setting root_libdir to $root_libdir" >&6; }
c4ef11c5
TT
13940fi
13941if test "$sysconfdir" != '${prefix}/etc'; then
13942 root_sysconfdir=$sysconfdir
57aa50d4 13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
39fd3d4f 13944$as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
c4ef11c5 13945fi
a4b2d3ce 13946
93636bde
TT
13947
13948
13949
13950
55e00a25
TT
13951
13952# Check whether --with-multiarch was given.
13953if test "${with_multiarch+set}" = set; then :
d7fa4103
TT
13954 withval=$with_multiarch; if test "$withval" = "lib64"; then
13955 libdir=/usr/lib64
13956 root_libdir=/lib64
13957else
13958 libdir=$libdir/$withval
13959 root_libdir=$root_libdir/$withval
13960fi
55e00a25
TT
13961
13962fi
a2df5894 13963
d3de1a71
TT
13964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
13965$as_echo_n "checking whether we can link with -static... " >&6; }
d6a4bcb5 13966if ${ac_cv_e2fsprogs_use_static+:} false; then :
39fd3d4f 13967 $as_echo_n "(cached) " >&6
ae851482 13968else
fd1677e8 13969 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS_STATIC -static"
57aa50d4 13970cat confdefs.h - <<_ACEOF >conftest.$ac_ext
b0cacab0 13971/* end confdefs.h. */
ae851482 13972#include <stdio.h>
b0cacab0
TT
13973int
13974main ()
13975{
ae851482 13976fflush(stdout);
b0cacab0
TT
13977 ;
13978 return 0;
13979}
13980_ACEOF
57aa50d4 13981if ac_fn_c_try_link "$LINENO"; then :
ae851482
TT
13982 ac_cv_e2fsprogs_use_static=yes
13983else
57aa50d4 13984 ac_cv_e2fsprogs_use_static=no
ae851482 13985fi
57aa50d4
TT
13986rm -f core conftest.err conftest.$ac_objext \
13987 conftest$ac_exeext conftest.$ac_ext
ae851482
TT
13988LDFLAGS=$SAVE_LDFLAGS
13989fi
50e1e10f 13990
defde784
TT
13991case "$host_os" in
13992solaris2.*)
b0cacab0 13993 ac_cv_e2fsprogs_use_static=no
defde784
TT
13994;;
13995esac
57aa50d4 13996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
39fd3d4f 13997$as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
ae851482 13998if test $ac_cv_e2fsprogs_use_static = yes; then
fd1677e8 13999 LDFLAGS_STATIC="$LDFLAGS_STATIC -static"
ae851482 14000fi
50e1e10f 14001
07a0db15
TT
14002case "$host_os" in
14003darwin*)
57aa50d4 14004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
39fd3d4f 14005$as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
d1154eb4
TT
14006
14007$as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
07a0db15
TT
14008
14009 ;;
14010esac
50e1e10f
TT
14011if test "$cross_compiling" = yes ; then
14012 DO_TEST_SUITE=
14013else
14014 DO_TEST_SUITE=check
14015fi
14016
d1154eb4
TT
14017INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
14018if test -n "$CPPFLAGS" ; then
14019 INCLUDES="$INCLUDES $CPPFLAGS"
14020fi
c6f35b8a 14021if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
d1154eb4 14022 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
c6f35b8a 14023fi
6c59a665
TT
14024if test -n "$WITH_DIET_LIBC" ; then
14025 INCLUDES="$INCLUDES -D_REENTRANT"
14026fi
c6f35b8a 14027
5b5bd2c2
TT
14028
14029 MKINSTALLDIRS=
14030 if test -n "$ac_aux_dir"; then
14031 case "$ac_aux_dir" in
14032 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
14033 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
14034 esac
14035 fi
14036 if test -z "$MKINSTALLDIRS"; then
14037 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
14038 fi
14039
14040
dd947da2 14041if test $cross_compiling = no; then
2873927d 14042 BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
dd947da2 14043 BUILD_LDFLAGS="$LDFLAGS"
dd947da2
TT
14044fi
14045
14046
fd1677e8
TT
14047CFLAGS_SHLIB=${CFLAGS_SHLIB:-$CFLAGS}
14048CFLAGS_STLIB=${CFLAGS_STLIB:-$CFLAGS}
14049LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
14050
14051
14052
5ce368f0
DW
14053
14054
14055# Check whether --with-udev_rules_dir was given.
14056if test "${with_udev_rules_dir+set}" = set; then :
14057 withval=$with_udev_rules_dir;
14058else
14059 with_udev_rules_dir=yes
14060fi
14061
14062if test "x${with_udev_rules_dir}" != "xno"; then :
14063
14064 if test "x${with_udev_rules_dir}" = "xyes"; then :
14065
14066
14067pkg_failed=no
14068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev" >&5
14069$as_echo_n "checking for udev... " >&6; }
14070
14071if test -n "$udev_CFLAGS"; then
14072 pkg_cv_udev_CFLAGS="$udev_CFLAGS"
14073 elif test -n "$PKG_CONFIG"; then
14074 if test -n "$PKG_CONFIG" && \
14075 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
14076 ($PKG_CONFIG --exists --print-errors "udev") 2>&5
14077 ac_status=$?
14078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14079 test $ac_status = 0; }; then
14080 pkg_cv_udev_CFLAGS=`$PKG_CONFIG --cflags "udev" 2>/dev/null`
14081 test "x$?" != "x0" && pkg_failed=yes
14082else
14083 pkg_failed=yes
14084fi
14085 else
14086 pkg_failed=untried
14087fi
14088if test -n "$udev_LIBS"; then
14089 pkg_cv_udev_LIBS="$udev_LIBS"
14090 elif test -n "$PKG_CONFIG"; then
14091 if test -n "$PKG_CONFIG" && \
14092 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"udev\""; } >&5
14093 ($PKG_CONFIG --exists --print-errors "udev") 2>&5
14094 ac_status=$?
14095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14096 test $ac_status = 0; }; then
14097 pkg_cv_udev_LIBS=`$PKG_CONFIG --libs "udev" 2>/dev/null`
14098 test "x$?" != "x0" && pkg_failed=yes
14099else
14100 pkg_failed=yes
14101fi
14102 else
14103 pkg_failed=untried
14104fi
14105
14106
14107
14108if test $pkg_failed = yes; then
14109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14110$as_echo "no" >&6; }
14111
14112if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14113 _pkg_short_errors_supported=yes
14114else
14115 _pkg_short_errors_supported=no
14116fi
14117 if test $_pkg_short_errors_supported = yes; then
14118 udev_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "udev" 2>&1`
14119 else
14120 udev_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "udev" 2>&1`
14121 fi
14122 # Put the nasty error message in config.log where it belongs
14123 echo "$udev_PKG_ERRORS" >&5
14124
14125
14126 with_udev_rules_dir=""
14127
14128elif test $pkg_failed = untried; then
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14130$as_echo "no" >&6; }
14131
14132 with_udev_rules_dir=""
14133
14134else
14135 udev_CFLAGS=$pkg_cv_udev_CFLAGS
14136 udev_LIBS=$pkg_cv_udev_LIBS
14137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14138$as_echo "yes" >&6; }
14139
14140 with_udev_rules_dir="$($PKG_CONFIG --variable=udevdir udev)/rules.d"
14141
14142fi
14143
14144fi
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev rules dir" >&5
14146$as_echo_n "checking for udev rules dir... " >&6; }
14147 pkg_udev_rules_dir="${with_udev_rules_dir}"
14148 if test -n "${pkg_udev_rules_dir}"; then :
14149
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${pkg_udev_rules_dir}" >&5
14151$as_echo "${pkg_udev_rules_dir}" >&6; }
14152 have_udev="yes"
14153
14154else
14155
14156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14157$as_echo "no" >&6; }
14158 have_udev="no"
14159
14160fi
14161
14162else
14163
14164 have_udev="disabled"
14165
14166fi
14167
14168
14169
a2df5894
DW
14170
14171# Check whether --with-crond_dir was given.
14172if test "${with_crond_dir+set}" = set; then :
14173 withval=$with_crond_dir;
14174else
14175 with_crond_dir=yes
14176fi
14177
14178if test "x${with_crond_dir}" != "xno"; then :
14179
14180 if test "x${with_crond_dir}" = "xyes"; then :
14181
14182 if test -d "/etc/cron.d"; then :
14183 with_crond_dir="/etc/cron.d"
14184fi
14185
14186fi
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for system crontab dir" >&5
14188$as_echo_n "checking for system crontab dir... " >&6; }
14189 crond_dir="${with_crond_dir}"
14190 if test -n "${crond_dir}"; then :
14191
14192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${crond_dir}" >&5
14193$as_echo "${crond_dir}" >&6; }
14194 have_crond="yes"
14195
14196else
14197
14198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14199$as_echo "no" >&6; }
14200 have_crond="no"
14201
14202fi
14203
14204else
14205
14206 have_crond="disabled"
14207
14208fi
14209
14210
14211
14212
14213# Check whether --with-systemd_unit_dir was given.
14214if test "${with_systemd_unit_dir+set}" = set; then :
14215 withval=$with_systemd_unit_dir;
14216else
14217 with_systemd_unit_dir=yes
14218fi
14219
14220if test "x${with_systemd_unit_dir}" != "xno"; then :
14221
14222 if test "x${with_systemd_unit_dir}" = "xyes"; then :
14223
14224
14225pkg_failed=no
14226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd" >&5
14227$as_echo_n "checking for systemd... " >&6; }
14228
14229if test -n "$systemd_CFLAGS"; then
14230 pkg_cv_systemd_CFLAGS="$systemd_CFLAGS"
14231 elif test -n "$PKG_CONFIG"; then
14232 if test -n "$PKG_CONFIG" && \
14233 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
14234 ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
14235 ac_status=$?
14236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14237 test $ac_status = 0; }; then
14238 pkg_cv_systemd_CFLAGS=`$PKG_CONFIG --cflags "systemd" 2>/dev/null`
14239 test "x$?" != "x0" && pkg_failed=yes
14240else
14241 pkg_failed=yes
14242fi
14243 else
14244 pkg_failed=untried
14245fi
14246if test -n "$systemd_LIBS"; then
14247 pkg_cv_systemd_LIBS="$systemd_LIBS"
14248 elif test -n "$PKG_CONFIG"; then
14249 if test -n "$PKG_CONFIG" && \
14250 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
14251 ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
14252 ac_status=$?
14253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14254 test $ac_status = 0; }; then
14255 pkg_cv_systemd_LIBS=`$PKG_CONFIG --libs "systemd" 2>/dev/null`
14256 test "x$?" != "x0" && pkg_failed=yes
14257else
14258 pkg_failed=yes
14259fi
14260 else
14261 pkg_failed=untried
14262fi
14263
14264
14265
14266if test $pkg_failed = yes; then
14267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14268$as_echo "no" >&6; }
14269
14270if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14271 _pkg_short_errors_supported=yes
14272else
14273 _pkg_short_errors_supported=no
14274fi
14275 if test $_pkg_short_errors_supported = yes; then
14276 systemd_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "systemd" 2>&1`
14277 else
14278 systemd_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "systemd" 2>&1`
14279 fi
14280 # Put the nasty error message in config.log where it belongs
14281 echo "$systemd_PKG_ERRORS" >&5
14282
14283
14284 with_systemd_unit_dir=""
14285
14286elif test $pkg_failed = untried; then
14287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14288$as_echo "no" >&6; }
14289
14290 with_systemd_unit_dir=""
14291
14292else
14293 systemd_CFLAGS=$pkg_cv_systemd_CFLAGS
14294 systemd_LIBS=$pkg_cv_systemd_LIBS
14295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14296$as_echo "yes" >&6; }
14297
14298 with_systemd_unit_dir="$($PKG_CONFIG --variable=systemdsystemunitdir systemd)"
14299
14300fi
14301
14302
14303fi
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemd system unit dir" >&5
14305$as_echo_n "checking for systemd system unit dir... " >&6; }
14306 systemd_system_unit_dir="${with_systemd_unit_dir}"
14307 if test -n "${systemd_system_unit_dir}"; then :
14308
14309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${systemd_system_unit_dir}" >&5
14310$as_echo "${systemd_system_unit_dir}" >&6; }
14311 have_systemd="yes"
14312
14313else
14314
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14316$as_echo "no" >&6; }
14317 have_systemd="no"
14318
14319fi
14320
14321else
14322
14323 have_systemd="disabled"
14324
14325fi
14326
14327
14328
50e1e10f
TT
14329test -d lib || mkdir lib
14330test -d include || mkdir include
14331test -d include/linux || mkdir include/linux
defde784 14332test -d include/asm || mkdir include/asm
44dfb378
TT
14333if test -z "$UUID_CMT" ; then
14334 uuid_out_list="lib/uuid/Makefile lib/uuid/uuid.pc \
14335 lib/uuid/uuid_types.h"
14336fi
14337if test -z "$BLKID_CMT" ; then
14338 blkid_out_list="lib/blkid/Makefile lib/blkid/blkid.pc \
14339 lib/blkid/blkid_types.h"
14340fi
bff0cc95 14341for i in MCONFIG Makefile e2fsprogs.spec \
183c73b0 14342 util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
4ea7ea00
TT
14343 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
14344 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
f34af41b 14345 $uuid_out_list $blkid_out_list lib/support/Makefile \
44dfb378 14346 lib/ss/ss.pc lib/et/com_err.pc lib/e2p/e2p.pc lib/ext2fs/ext2fs.pc \
921f4ad5 14347 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
94ba8c75 14348 debugfs/Makefile tests/Makefile tests/progs/Makefile \
98a5ad61 14349 resize/Makefile doc/Makefile intl/Makefile \
5ce368f0 14350 intl/libgnuintl.h po/Makefile.in scrub/Makefile; do
94ba8c75
TT
14351 if test -d `dirname ${srcdir}/$i` ; then
14352 outlist="$outlist $i"
14353 fi
14354done
e1052144
TT
14355ac_config_files="$ac_config_files $outlist"
14356
b0cacab0 14357cat >confcache <<\_ACEOF
50e1e10f
TT
14358# This file is a shell script that caches the results of configure
14359# tests run on this system so they can be shared between configure
b0cacab0
TT
14360# scripts and configure runs, see configure's option --config-cache.
14361# It is not useful on other systems. If it contains results you don't
14362# want to keep, you may remove or edit it.
50e1e10f 14363#
b0cacab0
TT
14364# config.status only pays attention to the cache file if you give it
14365# the --recheck option to rerun configure.
50e1e10f 14366#
b0cacab0
TT
14367# `ac_cv_env_foo' variables (set or unset) will be overridden when
14368# loading this file, other *unset* `ac_cv_foo' will be assigned the
14369# following values.
14370
14371_ACEOF
14372
21c84b71
TT
14373# The following way of writing the cache mishandles newlines in values,
14374# but we know of no workaround that is simple, portable, and efficient.
e1052144 14375# So, we kill variables containing newlines.
50e1e10f
TT
14376# Ultrix sh set writes to stderr and can't be redirected directly,
14377# and sets the high bit in the cache file unless we assign to the vars.
e1052144
TT
14378(
14379 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14380 eval ac_val=\$$ac_var
14381 case $ac_val in #(
14382 *${as_nl}*)
14383 case $ac_var in #(
57aa50d4 14384 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
39fd3d4f 14385$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
e1052144
TT
14386 esac
14387 case $ac_var in #(
14388 _ | IFS | as_nl) ;; #(
39fd3d4f 14389 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
57aa50d4 14390 *) { eval $ac_var=; unset $ac_var;} ;;
e1052144
TT
14391 esac ;;
14392 esac
14393 done
14394
b0cacab0 14395 (set) 2>&1 |
e1052144
TT
14396 case $as_nl`(ac_space=' '; set) 2>&1` in #(
14397 *${as_nl}ac_space=\ *)
57aa50d4
TT
14398 # `set' does not quote correctly, so add quotes: double-quote
14399 # substitution turns \\\\ into \\, and sed turns \\ into \.
b0cacab0
TT
14400 sed -n \
14401 "s/'/'\\\\''/g;
14402 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
e1052144 14403 ;; #(
b0cacab0
TT
14404 *)
14405 # `set' quotes correctly as required by POSIX, so do not add quotes.
e1052144 14406 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
b0cacab0 14407 ;;
e1052144
TT
14408 esac |
14409 sort
14410) |
b0cacab0 14411 sed '
e1052144 14412 /^ac_cv_env_/b end
b0cacab0 14413 t clear
e1052144 14414 :clear
b0cacab0
TT
14415 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
14416 t end
e1052144
TT
14417 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
14418 :end' >>confcache
14419if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
14420 if test -w "$cache_file"; then
d6a4bcb5 14421 if test "x$cache_file" != "x/dev/null"; then
57aa50d4 14422 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
39fd3d4f 14423$as_echo "$as_me: updating cache $cache_file" >&6;}
d6a4bcb5
TB
14424 if test ! -f "$cache_file" || test -h "$cache_file"; then
14425 cat confcache >"$cache_file"
14426 else
14427 case $cache_file in #(
14428 */* | ?:*)
14429 mv -f confcache "$cache_file"$$ &&
14430 mv -f "$cache_file"$$ "$cache_file" ;; #(
14431 *)
14432 mv -f confcache "$cache_file" ;;
14433 esac
14434 fi
14435 fi
50e1e10f 14436 else
57aa50d4 14437 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
39fd3d4f 14438$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
50e1e10f
TT
14439 fi
14440fi
14441rm -f confcache
14442
50e1e10f
TT
14443test "x$prefix" = xNONE && prefix=$ac_default_prefix
14444# Let make expand exec_prefix.
14445test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
14446
d1154eb4 14447DEFS=-DHAVE_CONFIG_H
b0cacab0
TT
14448
14449ac_libobjs=
14450ac_ltlibobjs=
d6a4bcb5 14451U=
b0cacab0
TT
14452for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14453 # 1. Remove the extension, and $U if already installed.
e1052144 14454 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
39fd3d4f 14455 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
e1052144
TT
14456 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14457 # will be set to the directory where LIBOBJS objects are built.
57aa50d4
TT
14458 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14459 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
b0cacab0
TT
14460done
14461LIBOBJS=$ac_libobjs
50e1e10f 14462
b0cacab0
TT
14463LTLIBOBJS=$ac_ltlibobjs
14464
14465
14466
39fd3d4f 14467
d6a4bcb5 14468: "${CONFIG_STATUS=./config.status}"
39fd3d4f 14469ac_write_fail=0
b0cacab0
TT
14470ac_clean_files_save=$ac_clean_files
14471ac_clean_files="$ac_clean_files $CONFIG_STATUS"
57aa50d4 14472{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
39fd3d4f 14473$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
57aa50d4
TT
14474as_write_fail=0
14475cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
b0cacab0
TT
14476#! $SHELL
14477# Generated by $as_me.
93636bde 14478# Run this file to recreate the current configuration.
93636bde 14479# Compiler output produced by configure, useful for debugging
b0cacab0 14480# configure, is in config.log if it exists.
07a0db15 14481
b0cacab0
TT
14482debug=false
14483ac_cs_recheck=false
14484ac_cs_silent=false
b0cacab0 14485
57aa50d4
TT
14486SHELL=\${CONFIG_SHELL-$SHELL}
14487export SHELL
14488_ASEOF
14489cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14490## -------------------- ##
14491## M4sh Initialization. ##
14492## -------------------- ##
b0cacab0 14493
29a5deed
TT
14494# Be more Bourne compatible
14495DUALCASE=1; export DUALCASE # for MKS sh
57aa50d4 14496if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
b0cacab0
TT
14497 emulate sh
14498 NULLCMD=:
39fd3d4f 14499 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
b0cacab0
TT
14500 # is contrary to our usage. Disable this feature.
14501 alias -g '${1+"$@"}'='"$@"'
e1052144
TT
14502 setopt NO_GLOB_SUBST
14503else
57aa50d4
TT
14504 case `(set -o) 2>/dev/null` in #(
14505 *posix*) :
14506 set -o posix ;; #(
14507 *) :
14508 ;;
29a5deed 14509esac
b0cacab0 14510fi
29a5deed
TT
14511
14512
39fd3d4f
SJR
14513as_nl='
14514'
14515export as_nl
14516# Printing a long string crashes Solaris 7 /usr/bin/printf.
14517as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14518as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14519as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
57aa50d4
TT
14520# Prefer a ksh shell builtin over an external printf program on Solaris,
14521# but without wasting forks for bash or zsh.
14522if test -z "$BASH_VERSION$ZSH_VERSION" \
14523 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14524 as_echo='print -r --'
14525 as_echo_n='print -rn --'
14526elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
39fd3d4f
SJR
14527 as_echo='printf %s\n'
14528 as_echo_n='printf %s'
14529else
14530 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14531 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14532 as_echo_n='/usr/ucb/echo -n'
e1052144 14533 else
39fd3d4f
SJR
14534 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14535 as_echo_n_body='eval
14536 arg=$1;
57aa50d4 14537 case $arg in #(
39fd3d4f
SJR
14538 *"$as_nl"*)
14539 expr "X$arg" : "X\\(.*\\)$as_nl";
14540 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14541 esac;
14542 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14543 '
14544 export as_echo_n_body
14545 as_echo_n='sh -c $as_echo_n_body as_echo'
e1052144 14546 fi
39fd3d4f
SJR
14547 export as_echo_body
14548 as_echo='sh -c $as_echo_body as_echo'
14549fi
14550
14551# The user is always right.
14552if test "${PATH_SEPARATOR+set}" != set; then
14553 PATH_SEPARATOR=:
14554 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14555 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14556 PATH_SEPARATOR=';'
14557 }
e1052144
TT
14558fi
14559
b0cacab0 14560
e1052144
TT
14561# IFS
14562# We need space, tab and new line, in precisely that order. Quoting is
14563# there to prevent editors from complaining about space-tab.
14564# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14565# splitting by setting IFS to empty value.)
e1052144
TT
14566IFS=" "" $as_nl"
14567
14568# Find who we are. Look in the path if we contain no directory separator.
d6a4bcb5 14569as_myself=
57aa50d4 14570case $0 in #((
e1052144
TT
14571 *[\\/]* ) as_myself=$0 ;;
14572 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14573for as_dir in $PATH
14574do
14575 IFS=$as_save_IFS
14576 test -z "$as_dir" && as_dir=.
57aa50d4
TT
14577 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14578 done
e1052144
TT
14579IFS=$as_save_IFS
14580
14581 ;;
14582esac
14583# We did not find ourselves, most probably we were run as `sh COMMAND'
14584# in which case we are not to be found in the path.
14585if test "x$as_myself" = x; then
14586 as_myself=$0
14587fi
14588if test ! -f "$as_myself"; then
39fd3d4f 14589 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
57aa50d4 14590 exit 1
e1052144
TT
14591fi
14592
57aa50d4
TT
14593# Unset variables that we do not need and which cause bugs (e.g. in
14594# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14595# suppresses any "Segmentation fault" message there. '((' could
14596# trigger a bug in pdksh 5.2.14.
14597for as_var in BASH_ENV ENV MAIL MAILPATH
14598do eval test x\${$as_var+set} = xset \
14599 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
e1052144 14600done
b0cacab0
TT
14601PS1='$ '
14602PS2='> '
14603PS4='+ '
14604
14605# NLS nuisances.
39fd3d4f
SJR
14606LC_ALL=C
14607export LC_ALL
14608LANGUAGE=C
14609export LANGUAGE
b0cacab0 14610
57aa50d4
TT
14611# CDPATH.
14612(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14613
14614
d6a4bcb5
TB
14615# as_fn_error STATUS ERROR [LINENO LOG_FD]
14616# ----------------------------------------
57aa50d4
TT
14617# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14618# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
d6a4bcb5 14619# script with STATUS, using 1 if that was 0.
57aa50d4
TT
14620as_fn_error ()
14621{
d6a4bcb5
TB
14622 as_status=$1; test $as_status -eq 0 && as_status=1
14623 if test "$4"; then
14624 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14625 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
57aa50d4 14626 fi
d6a4bcb5 14627 $as_echo "$as_me: error: $2" >&2
57aa50d4
TT
14628 as_fn_exit $as_status
14629} # as_fn_error
14630
14631
14632# as_fn_set_status STATUS
14633# -----------------------
14634# Set $? to STATUS, without forking.
14635as_fn_set_status ()
14636{
14637 return $1
14638} # as_fn_set_status
14639
14640# as_fn_exit STATUS
14641# -----------------
14642# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14643as_fn_exit ()
14644{
14645 set +e
14646 as_fn_set_status $1
14647 exit $1
14648} # as_fn_exit
14649
14650# as_fn_unset VAR
14651# ---------------
14652# Portably unset VAR.
14653as_fn_unset ()
14654{
14655 { eval $1=; unset $1;}
14656}
14657as_unset=as_fn_unset
14658# as_fn_append VAR VALUE
14659# ----------------------
14660# Append the text in VALUE to the end of the definition contained in VAR. Take
14661# advantage of any shell optimizations that allow amortized linear growth over
14662# repeated appends, instead of the typical quadratic growth present in naive
14663# implementations.
14664if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14665 eval 'as_fn_append ()
14666 {
14667 eval $1+=\$2
14668 }'
14669else
14670 as_fn_append ()
14671 {
14672 eval $1=\$$1\$2
14673 }
14674fi # as_fn_append
14675
14676# as_fn_arith ARG...
14677# ------------------
14678# Perform arithmetic evaluation on the ARGs, and store the result in the
14679# global $as_val. Take advantage of shells that can avoid forks. The arguments
14680# must be portable across $(()) and expr.
14681if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14682 eval 'as_fn_arith ()
14683 {
14684 as_val=$(( $* ))
14685 }'
14686else
14687 as_fn_arith ()
14688 {
14689 as_val=`expr "$@" || test $? -eq 1`
14690 }
14691fi # as_fn_arith
14692
14693
e1052144
TT
14694if expr a : '\(a\)' >/dev/null 2>&1 &&
14695 test "X`expr 00001 : '.*\(...\)'`" = X001; then
b0cacab0
TT
14696 as_expr=expr
14697else
14698 as_expr=false
14699fi
14700
e1052144 14701if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
b0cacab0
TT
14702 as_basename=basename
14703else
14704 as_basename=false
14705fi
14706
57aa50d4
TT
14707if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14708 as_dirname=dirname
14709else
14710 as_dirname=false
14711fi
b0cacab0 14712
e1052144 14713as_me=`$as_basename -- "$0" ||
b0cacab0
TT
14714$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14715 X"$0" : 'X\(//\)$' \| \
e1052144 14716 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
39fd3d4f 14717$as_echo X/"$0" |
e1052144
TT
14718 sed '/^.*\/\([^/][^/]*\)\/*$/{
14719 s//\1/
14720 q
14721 }
14722 /^X\/\(\/\/\)$/{
14723 s//\1/
14724 q
14725 }
14726 /^X\/\(\/\).*/{
14727 s//\1/
14728 q
14729 }
14730 s/.*/./; q'`
b0cacab0 14731
57aa50d4
TT
14732# Avoid depending upon Character Ranges.
14733as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14734as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14735as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14736as_cr_digits='0123456789'
14737as_cr_alnum=$as_cr_Letters$as_cr_digits
e1052144
TT
14738
14739ECHO_C= ECHO_N= ECHO_T=
57aa50d4 14740case `echo -n x` in #(((((
e1052144 14741-n*)
57aa50d4 14742 case `echo 'xy\c'` in
e1052144 14743 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
57aa50d4
TT
14744 xy) ECHO_C='\c';;
14745 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14746 ECHO_T=' ';;
e1052144
TT
14747 esac;;
14748*)
14749 ECHO_N='-n';;
b0cacab0 14750esac
b0cacab0
TT
14751
14752rm -f conf$$ conf$$.exe conf$$.file
e1052144
TT
14753if test -d conf$$.dir; then
14754 rm -f conf$$.dir/conf$$.file
14755else
14756 rm -f conf$$.dir
39fd3d4f
SJR
14757 mkdir conf$$.dir 2>/dev/null
14758fi
14759if (echo >conf$$.file) 2>/dev/null; then
14760 if ln -s conf$$.file conf$$ 2>/dev/null; then
14761 as_ln_s='ln -s'
14762 # ... but there are two gotchas:
14763 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14764 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
d6a4bcb5 14765 # In both cases, we have to default to `cp -pR'.
39fd3d4f 14766 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
d6a4bcb5 14767 as_ln_s='cp -pR'
39fd3d4f
SJR
14768 elif ln conf$$.file conf$$ 2>/dev/null; then
14769 as_ln_s=ln
14770 else
d6a4bcb5 14771 as_ln_s='cp -pR'
39fd3d4f 14772 fi
b0cacab0 14773else
d6a4bcb5 14774 as_ln_s='cp -pR'
b0cacab0 14775fi
e1052144
TT
14776rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14777rmdir conf$$.dir 2>/dev/null
b0cacab0 14778
57aa50d4
TT
14779
14780# as_fn_mkdir_p
14781# -------------
14782# Create "$as_dir" as a directory, including parents if necessary.
14783as_fn_mkdir_p ()
14784{
14785
14786 case $as_dir in #(
14787 -*) as_dir=./$as_dir;;
14788 esac
14789 test -d "$as_dir" || eval $as_mkdir_p || {
14790 as_dirs=
14791 while :; do
14792 case $as_dir in #(
14793 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14794 *) as_qdir=$as_dir;;
14795 esac
14796 as_dirs="'$as_qdir' $as_dirs"
14797 as_dir=`$as_dirname -- "$as_dir" ||
14798$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14799 X"$as_dir" : 'X\(//\)[^/]' \| \
14800 X"$as_dir" : 'X\(//\)$' \| \
14801 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14802$as_echo X"$as_dir" |
14803 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14804 s//\1/
14805 q
14806 }
14807 /^X\(\/\/\)[^/].*/{
14808 s//\1/
14809 q
14810 }
14811 /^X\(\/\/\)$/{
14812 s//\1/
14813 q
14814 }
14815 /^X\(\/\).*/{
14816 s//\1/
14817 q
14818 }
14819 s/.*/./; q'`
14820 test -d "$as_dir" && break
14821 done
14822 test -z "$as_dirs" || eval "mkdir $as_dirs"
d6a4bcb5 14823 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
57aa50d4
TT
14824
14825
14826} # as_fn_mkdir_p
b0cacab0 14827if mkdir -p . 2>/dev/null; then
57aa50d4 14828 as_mkdir_p='mkdir -p "$as_dir"'
b0cacab0
TT
14829else
14830 test -d ./-p && rmdir ./-p
14831 as_mkdir_p=false
14832fi
14833
d6a4bcb5
TB
14834
14835# as_fn_executable_p FILE
14836# -----------------------
14837# Test if FILE is an executable regular file.
14838as_fn_executable_p ()
14839{
14840 test -f "$1" && test -x "$1"
14841} # as_fn_executable_p
14842as_test_x='test -x'
14843as_executable_p=as_fn_executable_p
b0cacab0
TT
14844
14845# Sed expression to map a string onto a valid CPP name.
14846as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14847
14848# Sed expression to map a string onto a valid variable name.
14849as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14850
14851
b0cacab0 14852exec 6>&1
57aa50d4
TT
14853## ----------------------------------- ##
14854## Main body of $CONFIG_STATUS script. ##
14855## ----------------------------------- ##
14856_ASEOF
14857test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
b0cacab0 14858
57aa50d4
TT
14859cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14860# Save the log message, to keep $0 and so on meaningful, and to
b0cacab0 14861# report actual input values of CONFIG_FILES etc. instead of their
e1052144
TT
14862# values after options handling.
14863ac_log="
b0cacab0 14864This file was extended by $as_me, which was
d6a4bcb5 14865generated by GNU Autoconf 2.69. Invocation command line was
b0cacab0
TT
14866
14867 CONFIG_FILES = $CONFIG_FILES
14868 CONFIG_HEADERS = $CONFIG_HEADERS
14869 CONFIG_LINKS = $CONFIG_LINKS
14870 CONFIG_COMMANDS = $CONFIG_COMMANDS
14871 $ $0 $@
14872
e1052144
TT
14873on `(hostname || uname -n) 2>/dev/null | sed 1q`
14874"
14875
b0cacab0
TT
14876_ACEOF
14877
39fd3d4f
SJR
14878case $ac_config_files in *"
14879"*) set x $ac_config_files; shift; ac_config_files=$*;;
14880esac
14881
d1154eb4
TT
14882case $ac_config_headers in *"
14883"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14884esac
39fd3d4f
SJR
14885
14886
14887cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b0cacab0 14888# Files that config.status was made for.
e1052144 14889config_files="$ac_config_files"
d1154eb4 14890config_headers="$ac_config_headers"
e1052144 14891config_commands="$ac_config_commands"
b0cacab0 14892
e1052144 14893_ACEOF
b0cacab0 14894
39fd3d4f 14895cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b0cacab0 14896ac_cs_usage="\
57aa50d4
TT
14897\`$as_me' instantiates files and other configuration actions
14898from templates according to the current configuration. Unless the files
14899and actions are specified as TAGs, all are instantiated by default.
b0cacab0 14900
57aa50d4 14901Usage: $0 [OPTION]... [TAG]...
b0cacab0
TT
14902
14903 -h, --help print this help, then exit
29a5deed 14904 -V, --version print version number and configuration settings, then exit
61ef2474 14905 --config print configuration, then exit
39fd3d4f
SJR
14906 -q, --quiet, --silent
14907 do not print progress messages
b0cacab0
TT
14908 -d, --debug don't remove temporary files
14909 --recheck update $as_me by reconfiguring in the same conditions
39fd3d4f
SJR
14910 --file=FILE[:TEMPLATE]
14911 instantiate the configuration file FILE
d1154eb4
TT
14912 --header=FILE[:TEMPLATE]
14913 instantiate the configuration header FILE
b0cacab0
TT
14914
14915Configuration files:
14916$config_files
14917
d1154eb4
TT
14918Configuration headers:
14919$config_headers
14920
b0cacab0
TT
14921Configuration commands:
14922$config_commands
14923
57aa50d4 14924Report bugs to the package provider."
b0cacab0 14925
e1052144 14926_ACEOF
39fd3d4f 14927cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
61ef2474 14928ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
b0cacab0
TT
14929ac_cs_version="\\
14930config.status
d6a4bcb5 14931configured by $0, generated by GNU Autoconf 2.69,
61ef2474 14932 with options \\"\$ac_cs_config\\"
b0cacab0 14933
d6a4bcb5 14934Copyright (C) 2012 Free Software Foundation, Inc.
b0cacab0
TT
14935This config.status script is free software; the Free Software Foundation
14936gives unlimited permission to copy, distribute and modify it."
e1052144
TT
14937
14938ac_pwd='$ac_pwd'
14939srcdir='$srcdir'
14940INSTALL='$INSTALL'
93613951 14941MKDIR_P='$MKDIR_P'
39fd3d4f
SJR
14942AWK='$AWK'
14943test -n "\$AWK" || AWK=awk
b0cacab0
TT
14944_ACEOF
14945
39fd3d4f
SJR
14946cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14947# The default lists apply if the user does not specify any file.
b0cacab0
TT
14948ac_need_defaults=:
14949while test $# != 0
07a0db15 14950do
b0cacab0 14951 case $1 in
d6a4bcb5 14952 --*=?*)
e1052144
TT
14953 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14954 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
b0cacab0
TT
14955 ac_shift=:
14956 ;;
d6a4bcb5
TB
14957 --*=)
14958 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14959 ac_optarg=
14960 ac_shift=:
14961 ;;
e1052144 14962 *)
b0cacab0
TT
14963 ac_option=$1
14964 ac_optarg=$2
14965 ac_shift=shift
14966 ;;
b0cacab0
TT
14967 esac
14968
14969 case $ac_option in
14970 # Handling of the options.
93636bde 14971 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
b0cacab0 14972 ac_cs_recheck=: ;;
e1052144 14973 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
39fd3d4f 14974 $as_echo "$ac_cs_version"; exit ;;
61ef2474
TT
14975 --config | --confi | --conf | --con | --co | --c )
14976 $as_echo "$ac_cs_config"; exit ;;
e1052144 14977 --debug | --debu | --deb | --de | --d | -d )
b0cacab0
TT
14978 debug=: ;;
14979 --file | --fil | --fi | --f )
14980 $ac_shift
39fd3d4f
SJR
14981 case $ac_optarg in
14982 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
d6a4bcb5 14983 '') as_fn_error $? "missing file argument" ;;
39fd3d4f 14984 esac
57aa50d4 14985 as_fn_append CONFIG_FILES " '$ac_optarg'"
b0cacab0 14986 ac_need_defaults=false;;
d1154eb4
TT
14987 --header | --heade | --head | --hea )
14988 $ac_shift
14989 case $ac_optarg in
14990 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14991 esac
14992 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14993 ac_need_defaults=false;;
14994 --he | --h)
14995 # Conflict between --help and --header
d6a4bcb5 14996 as_fn_error $? "ambiguous option: \`$1'
d1154eb4
TT
14997Try \`$0 --help' for more information.";;
14998 --help | --hel | -h )
39fd3d4f 14999 $as_echo "$ac_cs_usage"; exit ;;
b0cacab0
TT
15000 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15001 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15002 ac_cs_silent=: ;;
15003
15004 # This is an error.
d6a4bcb5 15005 -*) as_fn_error $? "unrecognized option: \`$1'
57aa50d4 15006Try \`$0 --help' for more information." ;;
b0cacab0 15007
57aa50d4 15008 *) as_fn_append ac_config_targets " $1"
e1052144 15009 ac_need_defaults=false ;;
b0cacab0 15010
07a0db15 15011 esac
b0cacab0 15012 shift
07a0db15
TT
15013done
15014
b0cacab0
TT
15015ac_configure_extra_args=
15016
15017if $ac_cs_silent; then
15018 exec 6>/dev/null
15019 ac_configure_extra_args="$ac_configure_extra_args --silent"
15020fi
15021
15022_ACEOF
39fd3d4f 15023cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b0cacab0 15024if \$ac_cs_recheck; then
d6a4bcb5 15025 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
39fd3d4f
SJR
15026 shift
15027 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15028 CONFIG_SHELL='$SHELL'
e1052144 15029 export CONFIG_SHELL
39fd3d4f 15030 exec "\$@"
b0cacab0 15031fi
07a0db15 15032
b0cacab0 15033_ACEOF
39fd3d4f 15034cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
e1052144
TT
15035exec 5>>config.log
15036{
15037 echo
15038 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15039## Running $as_me. ##
15040_ASBOX
39fd3d4f 15041 $as_echo "$ac_log"
e1052144 15042} >&5
07a0db15 15043
e1052144 15044_ACEOF
39fd3d4f 15045cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
b0cacab0 15046#
e1052144 15047# INIT-COMMANDS
b0cacab0 15048#
b0cacab0
TT
15049# Capture the value of obsolete ALL_LINGUAS because we need it to compute
15050 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
93613951 15051 # from automake < 1.5.
b0cacab0
TT
15052 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
15053 # Capture the value of LINGUAS because we need it to compute CATALOGS.
15054 LINGUAS="${LINGUAS-%UNSET%}"
15055
15056
15057_ACEOF
15058
39fd3d4f 15059cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
e1052144
TT
15060
15061# Handling of arguments.
b0cacab0
TT
15062for ac_config_target in $ac_config_targets
15063do
e1052144 15064 case $ac_config_target in
d1154eb4 15065 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
93613951 15066 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
e1052144
TT
15067 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
15068
d6a4bcb5 15069 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
b0cacab0
TT
15070 esac
15071done
15072
e1052144 15073
b0cacab0
TT
15074# If the user did not use the arguments to specify the items to instantiate,
15075# then the envvar interface is used. Set only those that are not.
15076# We use the long form for the default assignment because of an extremely
15077# bizarre bug on SunOS 4.1.3.
15078if $ac_need_defaults; then
15079 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
d1154eb4 15080 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
b0cacab0
TT
15081 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15082fi
15083
15084# Have a temporary directory for convenience. Make it in the build tree
e1052144 15085# simply because there is no reason against having it here, and in addition,
b0cacab0 15086# creating and moving files from /tmp can sometimes cause problems.
e1052144
TT
15087# Hook for its removal unless debugging.
15088# Note that there is a small window in which the directory will not be cleaned:
15089# after its creation but before its name has been assigned to `$tmp'.
b0cacab0
TT
15090$debug ||
15091{
d6a4bcb5 15092 tmp= ac_tmp=
e1052144 15093 trap 'exit_status=$?
d6a4bcb5
TB
15094 : "${ac_tmp:=$tmp}"
15095 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
e1052144 15096' 0
57aa50d4 15097 trap 'as_fn_exit 1' 1 2 13 15
b0cacab0 15098}
b0cacab0
TT
15099# Create a (secure) tmp directory for tmp files.
15100
15101{
e1052144 15102 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
d6a4bcb5 15103 test -d "$tmp"
b0cacab0
TT
15104} ||
15105{
e1052144
TT
15106 tmp=./conf$$-$RANDOM
15107 (umask 077 && mkdir "$tmp")
d6a4bcb5
TB
15108} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15109ac_tmp=$tmp
b0cacab0 15110
39fd3d4f
SJR
15111# Set up the scripts for CONFIG_FILES section.
15112# No need to generate them if there are no CONFIG_FILES.
15113# This happens for instance with `./config.status config.h'.
e1052144
TT
15114if test -n "$CONFIG_FILES"; then
15115
39fd3d4f
SJR
15116if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
15117 ac_cs_awk_getline=:
15118 ac_cs_awk_pipe_init=
15119 ac_cs_awk_read_file='
15120 while ((getline aline < (F[key])) > 0)
15121 print(aline)
15122 close(F[key])'
15123 ac_cs_awk_pipe_fini=
15124else
15125 ac_cs_awk_getline=false
15126 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
15127 ac_cs_awk_read_file='
15128 print "|#_!!_#|"
15129 print "cat " F[key] " &&"
15130 '$ac_cs_awk_pipe_init
15131 # The final `:' finishes the AND list.
15132 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
15133fi
57aa50d4
TT
15134ac_cr=`echo X | tr X '\015'`
15135# On cygwin, bash can eat \r inside `` if the user requested igncr.
15136# But we know of no other shell where ac_cr would be empty at this
15137# point, so we can use a bashism as a fallback.
15138if test "x$ac_cr" = x; then
15139 eval ac_cr=\$\'\\r\'
15140fi
39fd3d4f
SJR
15141ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15142if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
d6a4bcb5 15143 ac_cs_awk_cr='\\r'
39fd3d4f
SJR
15144else
15145 ac_cs_awk_cr=$ac_cr
15146fi
e1052144 15147
d6a4bcb5 15148echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
39fd3d4f 15149_ACEOF
e1052144 15150
39fd3d4f
SJR
15151# Create commands to substitute file output variables.
15152{
15153 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
d6a4bcb5 15154 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
39fd3d4f
SJR
15155 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
15156 echo "_ACAWK" &&
15157 echo "_ACEOF"
15158} >conf$$files.sh &&
15159. ./conf$$files.sh ||
d6a4bcb5 15160 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
39fd3d4f 15161rm -f conf$$files.sh
e1052144 15162
39fd3d4f
SJR
15163{
15164 echo "cat >conf$$subs.awk <<_ACEOF" &&
15165 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15166 echo "_ACEOF"
15167} >conf$$subs.sh ||
d6a4bcb5
TB
15168 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15169ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
e1052144
TT
15170ac_delim='%!_!# '
15171for ac_last_try in false false false false false :; do
39fd3d4f 15172 . ./conf$$subs.sh ||
d6a4bcb5 15173 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
39fd3d4f
SJR
15174
15175 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15176 if test $ac_delim_n = $ac_delim_num; then
e1052144
TT
15177 break
15178 elif $ac_last_try; then
d6a4bcb5 15179 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
e1052144
TT
15180 else
15181 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21c84b71 15182 fi
e1052144 15183done
39fd3d4f
SJR
15184rm -f conf$$subs.sh
15185
15186cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
d6a4bcb5 15187cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
39fd3d4f
SJR
15188_ACEOF
15189sed -n '
15190h
15191s/^/S["/; s/!.*/"]=/
15192p
15193g
15194s/^[^!]*!//
15195:repl
15196t repl
15197s/'"$ac_delim"'$//
15198t delim
15199:nl
15200h
61ef2474 15201s/\(.\{148\}\)..*/\1/
39fd3d4f
SJR
15202t more1
15203s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15204p
15205n
15206b repl
15207:more1
15208s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15209p
15210g
15211s/.\{148\}//
15212t nl
15213:delim
15214h
61ef2474 15215s/\(.\{148\}\)..*/\1/
39fd3d4f
SJR
15216t more2
15217s/["\\]/\\&/g; s/^/"/; s/$/"/
15218p
15219b
15220:more2
15221s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15222p
15223g
15224s/.\{148\}//
15225t delim
15226' <conf$$subs.awk | sed '
15227/^[^""]/{
15228 N
15229 s/\n//
e1052144 15230}
39fd3d4f
SJR
15231' >>$CONFIG_STATUS || ac_write_fail=1
15232rm -f conf$$subs.awk
15233cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15234_ACAWK
d6a4bcb5 15235cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
39fd3d4f
SJR
15236 for (key in S) S_is_set[key] = 1
15237 FS = "\a"
15238 \$ac_cs_awk_pipe_init
e1052144 15239}
39fd3d4f
SJR
15240{
15241 line = $ 0
15242 nfields = split(line, field, "@")
15243 substed = 0
15244 len = length(field[1])
15245 for (i = 2; i < nfields; i++) {
15246 key = field[i]
15247 keylen = length(key)
15248 if (S_is_set[key]) {
15249 value = S[key]
15250 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15251 len += length(value) + length(field[++i])
15252 substed = 1
15253 } else
15254 len += 1 + keylen
15255 }
15256 if (nfields == 3 && !substed) {
15257 key = field[2]
15258 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
15259 \$ac_cs_awk_read_file
15260 next
15261 }
15262 }
15263 print line
488c75a6 15264}
39fd3d4f
SJR
15265\$ac_cs_awk_pipe_fini
15266_ACAWK
e1052144 15267_ACEOF
39fd3d4f
SJR
15268cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15269if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15270 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15271else
15272 cat
d6a4bcb5
TB
15273fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15274 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
b0cacab0 15275_ACEOF
e1052144 15276
d6a4bcb5
TB
15277# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15278# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
e1052144
TT
15279# trailing colons and then remove the whole line if VPATH becomes empty
15280# (actually we leave an empty line to preserve line numbers).
15281if test "x$srcdir" = x.; then
d6a4bcb5
TB
15282 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15283h
15284s///
15285s/^/:/
15286s/[ ]*$/:/
15287s/:\$(srcdir):/:/g
15288s/:\${srcdir}:/:/g
15289s/:@srcdir@:/:/g
15290s/^:*//
e1052144 15291s/:*$//
d6a4bcb5
TB
15292x
15293s/\(=[ ]*\).*/\1/
15294G
15295s/\n//
e1052144
TT
15296s/^[^=]*=[ ]*$//
15297}'
15298fi
15299
39fd3d4f 15300cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
e1052144
TT
15301fi # test -n "$CONFIG_FILES"
15302
d1154eb4
TT
15303# Set up the scripts for CONFIG_HEADERS section.
15304# No need to generate them if there are no CONFIG_HEADERS.
15305# This happens for instance with `./config.status Makefile'.
15306if test -n "$CONFIG_HEADERS"; then
d6a4bcb5 15307cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
d1154eb4
TT
15308BEGIN {
15309_ACEOF
15310
15311# Transform confdefs.h into an awk script `defines.awk', embedded as
15312# here-document in config.status, that substitutes the proper values into
15313# config.h.in to produce config.h.
15314
15315# Create a delimiter string that does not exist in confdefs.h, to ease
15316# handling of long lines.
15317ac_delim='%!_!# '
15318for ac_last_try in false false :; do
d6a4bcb5
TB
15319 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15320 if test -z "$ac_tt"; then
d1154eb4
TT
15321 break
15322 elif $ac_last_try; then
d6a4bcb5 15323 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
d1154eb4
TT
15324 else
15325 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15326 fi
15327done
15328
15329# For the awk script, D is an array of macro values keyed by name,
15330# likewise P contains macro parameters if any. Preserve backslash
15331# newline sequences.
15332
15333ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15334sed -n '
15335s/.\{148\}/&'"$ac_delim"'/g
15336t rset
15337:rset
15338s/^[ ]*#[ ]*define[ ][ ]*/ /
15339t def
15340d
15341:def
15342s/\\$//
15343t bsnl
15344s/["\\]/\\&/g
15345s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15346D["\1"]=" \3"/p
15347s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
15348d
15349:bsnl
15350s/["\\]/\\&/g
15351s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
15352D["\1"]=" \3\\\\\\n"\\/p
15353t cont
15354s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
15355t cont
15356d
15357:cont
15358n
15359s/.\{148\}/&'"$ac_delim"'/g
15360t clear
15361:clear
15362s/\\$//
15363t bsnlc
15364s/["\\]/\\&/g; s/^/"/; s/$/"/p
15365d
15366:bsnlc
15367s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
15368b cont
15369' <confdefs.h | sed '
15370s/'"$ac_delim"'/"\\\
15371"/g' >>$CONFIG_STATUS || ac_write_fail=1
15372
15373cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15374 for (key in D) D_is_set[key] = 1
15375 FS = "\a"
15376}
15377/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
15378 line = \$ 0
15379 split(line, arg, " ")
15380 if (arg[1] == "#") {
15381 defundef = arg[2]
15382 mac1 = arg[3]
15383 } else {
15384 defundef = substr(arg[1], 2)
15385 mac1 = arg[2]
15386 }
15387 split(mac1, mac2, "(") #)
15388 macro = mac2[1]
15389 prefix = substr(line, 1, index(line, defundef) - 1)
15390 if (D_is_set[macro]) {
15391 # Preserve the white space surrounding the "#".
15392 print prefix "define", macro P[macro] D[macro]
15393 next
15394 } else {
15395 # Replace #undef with comments. This is necessary, for example,
15396 # in the case of _POSIX_SOURCE, which is predefined and required
15397 # on some systems where configure will not decide to define it.
15398 if (defundef == "undef") {
15399 print "/*", prefix defundef, macro, "*/"
15400 next
15401 }
15402 }
15403}
15404{ print }
15405_ACAWK
15406_ACEOF
15407cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
d6a4bcb5 15408 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
d1154eb4
TT
15409fi # test -n "$CONFIG_HEADERS"
15410
e1052144 15411
d1154eb4 15412eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
39fd3d4f
SJR
15413shift
15414for ac_tag
e1052144
TT
15415do
15416 case $ac_tag in
15417 :[FHLC]) ac_mode=$ac_tag; continue;;
15418 esac
15419 case $ac_mode$ac_tag in
15420 :[FHL]*:*);;
d6a4bcb5 15421 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
e1052144
TT
15422 :[FH]-) ac_tag=-:-;;
15423 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
15424 esac
15425 ac_save_IFS=$IFS
15426 IFS=:
15427 set x $ac_tag
15428 IFS=$ac_save_IFS
15429 shift
15430 ac_file=$1
15431 shift
15432
15433 case $ac_mode in
15434 :L) ac_source=$1;;
15435 :[FH])
15436 ac_file_inputs=
15437 for ac_f
15438 do
15439 case $ac_f in
d6a4bcb5 15440 -) ac_f="$ac_tmp/stdin";;
e1052144
TT
15441 *) # Look for the file first in the build tree, then in the source tree
15442 # (if the path is not absolute). The absolute path cannot be DOS-style,
15443 # because $ac_f cannot contain `:'.
15444 test -f "$ac_f" ||
15445 case $ac_f in
15446 [\\/$]*) false;;
15447 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15448 esac ||
d6a4bcb5 15449 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
e1052144 15450 esac
39fd3d4f 15451 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
57aa50d4 15452 as_fn_append ac_file_inputs " '$ac_f'"
e1052144
TT
15453 done
15454
15455 # Let's still pretend it is `configure' which instantiates (i.e., don't
15456 # use $as_me), people would be surprised to read:
15457 # /* config.h. Generated by config.status. */
39fd3d4f
SJR
15458 configure_input='Generated from '`
15459 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15460 `' by configure.'
e1052144
TT
15461 if test x"$ac_file" != x-; then
15462 configure_input="$ac_file. $configure_input"
57aa50d4 15463 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
39fd3d4f 15464$as_echo "$as_me: creating $ac_file" >&6;}
e1052144 15465 fi
39fd3d4f
SJR
15466 # Neutralize special characters interpreted by sed in replacement strings.
15467 case $configure_input in #(
15468 *\&* | *\|* | *\\* )
15469 ac_sed_conf_input=`$as_echo "$configure_input" |
15470 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15471 *) ac_sed_conf_input=$configure_input;;
15472 esac
e1052144
TT
15473
15474 case $ac_tag in
d6a4bcb5
TB
15475 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15476 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
e1052144
TT
15477 esac
15478 ;;
b0cacab0
TT
15479 esac
15480
e1052144 15481 ac_dir=`$as_dirname -- "$ac_file" ||
b0cacab0
TT
15482$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15483 X"$ac_file" : 'X\(//\)[^/]' \| \
15484 X"$ac_file" : 'X\(//\)$' \| \
e1052144 15485 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
39fd3d4f 15486$as_echo X"$ac_file" |
e1052144
TT
15487 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15488 s//\1/
15489 q
15490 }
15491 /^X\(\/\/\)[^/].*/{
15492 s//\1/
15493 q
15494 }
15495 /^X\(\/\/\)$/{
15496 s//\1/
15497 q
15498 }
15499 /^X\(\/\).*/{
15500 s//\1/
15501 q
15502 }
15503 s/.*/./; q'`
57aa50d4 15504 as_dir="$ac_dir"; as_fn_mkdir_p
b0cacab0
TT
15505 ac_builddir=.
15506
e1052144
TT
15507case "$ac_dir" in
15508.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15509*)
39fd3d4f 15510 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
e1052144 15511 # A ".." for each directory in $ac_dir_suffix.
39fd3d4f 15512 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
e1052144
TT
15513 case $ac_top_builddir_sub in
15514 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15515 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15516 esac ;;
15517esac
15518ac_abs_top_builddir=$ac_pwd
15519ac_abs_builddir=$ac_pwd$ac_dir_suffix
15520# for backward compatibility:
15521ac_top_builddir=$ac_top_build_prefix
93636bde 15522
b0cacab0 15523case $srcdir in
e1052144 15524 .) # We are building in place.
b0cacab0 15525 ac_srcdir=.
e1052144
TT
15526 ac_top_srcdir=$ac_top_builddir_sub
15527 ac_abs_top_srcdir=$ac_pwd ;;
15528 [\\/]* | ?:[\\/]* ) # Absolute name.
b0cacab0 15529 ac_srcdir=$srcdir$ac_dir_suffix;
e1052144
TT
15530 ac_top_srcdir=$srcdir
15531 ac_abs_top_srcdir=$srcdir ;;
15532 *) # Relative name.
15533 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15534 ac_top_srcdir=$ac_top_build_prefix$srcdir
15535 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
b0cacab0 15536esac
e1052144 15537ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
b0cacab0 15538
b0cacab0 15539
e1052144
TT
15540 case $ac_mode in
15541 :F)
15542 #
15543 # CONFIG_FILE
15544 #
50e1e10f 15545
b0cacab0
TT
15546 case $INSTALL in
15547 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
e1052144 15548 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
50e1e10f 15549 esac
93613951
TT
15550 ac_MKDIR_P=$MKDIR_P
15551 case $MKDIR_P in
15552 [\\/$]* | ?:[\\/]* ) ;;
15553 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15554 esac
e1052144 15555_ACEOF
50e1e10f 15556
39fd3d4f 15557cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
e1052144
TT
15558# If the template does not know about datarootdir, expand it.
15559# FIXME: This hack should be removed a few years after 2.60.
15560ac_datarootdir_hack=; ac_datarootdir_seen=
39fd3d4f
SJR
15561ac_sed_dataroot='
15562/datarootdir/ {
e1052144
TT
15563 p
15564 q
15565}
15566/@datadir@/p
15567/@docdir@/p
15568/@infodir@/p
15569/@localedir@/p
57aa50d4 15570/@mandir@/p'
39fd3d4f 15571case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
e1052144
TT
15572*datarootdir*) ac_datarootdir_seen=yes;;
15573*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
57aa50d4 15574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
39fd3d4f 15575$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
b0cacab0 15576_ACEOF
39fd3d4f 15577cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
e1052144
TT
15578 ac_datarootdir_hack='
15579 s&@datadir@&$datadir&g
15580 s&@docdir@&$docdir&g
15581 s&@infodir@&$infodir&g
15582 s&@localedir@&$localedir&g
15583 s&@mandir@&$mandir&g
57aa50d4 15584 s&\\\${datarootdir}&$datarootdir&g' ;;
e1052144
TT
15585esac
15586_ACEOF
15587
15588# Neutralize VPATH when `$srcdir' = `.'.
15589# Shell code in configure.ac might set extrasub.
15590# FIXME: do we really want to maintain this feature?
39fd3d4f
SJR
15591cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15592ac_sed_extra="$ac_vpsub
b0cacab0
TT
15593$extrasub
15594_ACEOF
39fd3d4f 15595cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
b0cacab0
TT
15596:t
15597/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
39fd3d4f 15598s|@configure_input@|$ac_sed_conf_input|;t t
e1052144 15599s&@top_builddir@&$ac_top_builddir_sub&;t t
39fd3d4f 15600s&@top_build_prefix@&$ac_top_build_prefix&;t t
e1052144
TT
15601s&@srcdir@&$ac_srcdir&;t t
15602s&@abs_srcdir@&$ac_abs_srcdir&;t t
15603s&@top_srcdir@&$ac_top_srcdir&;t t
15604s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15605s&@builddir@&$ac_builddir&;t t
15606s&@abs_builddir@&$ac_abs_builddir&;t t
15607s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15608s&@INSTALL@&$ac_INSTALL&;t t
93613951 15609s&@MKDIR_P@&$ac_MKDIR_P&;t t
e1052144 15610$ac_datarootdir_hack
39fd3d4f
SJR
15611"
15612eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15613if $ac_cs_awk_getline; then
d6a4bcb5 15614 $AWK -f "$ac_tmp/subs.awk"
39fd3d4f 15615else
d6a4bcb5
TB
15616 $AWK -f "$ac_tmp/subs.awk" | $SHELL
15617fi \
15618 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
e1052144
TT
15619
15620test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
d6a4bcb5
TB
15621 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15622 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15623 "$ac_tmp/out"`; test -z "$ac_out"; } &&
57aa50d4 15624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d6a4bcb5 15625which seems to be undefined. Please make sure it is defined" >&5
39fd3d4f 15626$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
d6a4bcb5 15627which seems to be undefined. Please make sure it is defined" >&2;}
e1052144 15628
d6a4bcb5 15629 rm -f "$ac_tmp/stdin"
e1052144 15630 case $ac_file in
d6a4bcb5
TB
15631 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15632 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
39fd3d4f 15633 esac \
d6a4bcb5 15634 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
e1052144 15635 ;;
d1154eb4
TT
15636 :H)
15637 #
15638 # CONFIG_HEADER
15639 #
15640 if test x"$ac_file" != x-; then
15641 {
15642 $as_echo "/* $configure_input */" \
d6a4bcb5
TB
15643 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15644 } >"$ac_tmp/config.h" \
15645 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15646 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
d1154eb4
TT
15647 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15648$as_echo "$as_me: $ac_file is unchanged" >&6;}
15649 else
15650 rm -f "$ac_file"
d6a4bcb5
TB
15651 mv "$ac_tmp/config.h" "$ac_file" \
15652 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
d1154eb4
TT
15653 fi
15654 else
15655 $as_echo "/* $configure_input */" \
d6a4bcb5
TB
15656 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15657 || as_fn_error $? "could not create -" "$LINENO" 5
d1154eb4
TT
15658 fi
15659 ;;
07a0db15 15660
57aa50d4 15661 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
39fd3d4f 15662$as_echo "$as_me: executing $ac_file commands" >&6;}
e1052144
TT
15663 ;;
15664 esac
a04eba3f 15665
b0cacab0 15666
e1052144 15667 case $ac_file$ac_mode in
93613951 15668 "po-directories":C)
a04eba3f
TT
15669 for ac_file in $CONFIG_FILES; do
15670 # Support "outfile[:infile[:infile...]]"
15671 case "$ac_file" in
15672 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
15673 esac
15674 # PO directories have a Makefile.in generated from Makefile.in.in.
15675 case "$ac_file" in */Makefile.in)
15676 # Adjust a relative srcdir.
15677 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
93613951 15678 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
a04eba3f
TT
15679 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15680 # In autoconf-2.13 it is called $ac_given_srcdir.
15681 # In autoconf-2.50 it is called $srcdir.
15682 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15683 case "$ac_given_srcdir" in
15684 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15685 /*) top_srcdir="$ac_given_srcdir" ;;
15686 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
15687 esac
93613951
TT
15688 # Treat a directory as a PO directory if and only if it has a
15689 # POTFILES.in file. This allows packages to have multiple PO
15690 # directories under different names or in different locations.
a04eba3f
TT
15691 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15692 rm -f "$ac_dir/POTFILES"
15693 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
93613951
TT
15694 gt_tab=`printf '\t'`
15695 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
15696 POMAKEFILEDEPS="POTFILES.in"
15697 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
a04eba3f
TT
15698 # on $ac_dir but don't depend on user-specified configuration
15699 # parameters.
15700 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15701 # The LINGUAS file contains the set of available languages.
b0cacab0 15702 if test -n "$OBSOLETE_ALL_LINGUAS"; then
a04eba3f
TT
15703 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
15704 fi
93613951
TT
15705 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15706 # Hide the ALL_LINGUAS assignment from automake < 1.5.
a04eba3f 15707 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
b0cacab0
TT
15708 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15709 else
15710 # The set of available languages was given in configure.in.
93613951 15711 # Hide the ALL_LINGUAS assignment from automake < 1.5.
b0cacab0 15712 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
a04eba3f 15713 fi
b0cacab0
TT
15714 # Compute POFILES
15715 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
15716 # Compute UPDATEPOFILES
15717 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
15718 # Compute DUMMYPOFILES
15719 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
15720 # Compute GMOFILES
15721 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
a04eba3f
TT
15722 case "$ac_given_srcdir" in
15723 .) srcdirpre= ;;
15724 *) srcdirpre='$(srcdir)/' ;;
15725 esac
15726 POFILES=
a04eba3f
TT
15727 UPDATEPOFILES=
15728 DUMMYPOFILES=
b0cacab0 15729 GMOFILES=
a04eba3f
TT
15730 for lang in $ALL_LINGUAS; do
15731 POFILES="$POFILES $srcdirpre$lang.po"
a04eba3f
TT
15732 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15733 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
b0cacab0 15734 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
a04eba3f
TT
15735 done
15736 # CATALOGS depends on both $ac_dir and the user's LINGUAS
15737 # environment variable.
15738 INST_LINGUAS=
15739 if test -n "$ALL_LINGUAS"; then
15740 for presentlang in $ALL_LINGUAS; do
15741 useit=no
15742 if test "%UNSET%" != "$LINGUAS"; then
15743 desiredlanguages="$LINGUAS"
15744 else
15745 desiredlanguages="$ALL_LINGUAS"
15746 fi
15747 for desiredlang in $desiredlanguages; do
15748 # Use the presentlang catalog if desiredlang is
15749 # a. equal to presentlang, or
15750 # b. a variant of presentlang (because in this case,
15751 # presentlang can be used as a fallback for messages
15752 # which are not translated in the desiredlang catalog).
15753 case "$desiredlang" in
15754 "$presentlang"*) useit=yes;;
15755 esac
15756 done
15757 if test $useit = yes; then
15758 INST_LINGUAS="$INST_LINGUAS $presentlang"
15759 fi
15760 done
15761 fi
15762 CATALOGS=
15763 if test -n "$INST_LINGUAS"; then
15764 for lang in $INST_LINGUAS; do
15765 CATALOGS="$CATALOGS $lang.gmo"
15766 done
15767 fi
15768 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
b0cacab0 15769 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
15770 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15771 if test -f "$f"; then
15772 case "$f" in
15773 *.orig | *.bak | *~) ;;
15774 *) cat "$f" >> "$ac_dir/Makefile" ;;
15775 esac
15776 fi
15777 done
15778 fi
15779 ;;
a64c9c13 15780 esac
b0cacab0 15781 done ;;
e1052144 15782
b0cacab0 15783 esac
e1052144 15784done # for ac_tag
07a0db15 15785
b0cacab0 15786
57aa50d4 15787as_fn_exit 0
b0cacab0 15788_ACEOF
b0cacab0
TT
15789ac_clean_files=$ac_clean_files_save
15790
39fd3d4f 15791test $ac_write_fail = 0 ||
d6a4bcb5 15792 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
39fd3d4f 15793
b0cacab0
TT
15794
15795# configure is writing to config.log, and then calls config.status.
15796# config.status does its own redirection, appending to config.log.
15797# Unfortunately, on DOS this fails, as config.log is still kept open
15798# by configure, so config.status won't be able to write to it; its
15799# output is simply discarded. So we exec the FD to /dev/null,
15800# effectively closing config.log, so it can be properly (re)opened and
15801# appended to by config.status. When coming back to configure, we
15802# need to make the FD available again.
15803if test "$no_create" != yes; then
15804 ac_cs_success=:
15805 ac_config_status_args=
15806 test "$silent" = yes &&
15807 ac_config_status_args="$ac_config_status_args --quiet"
15808 exec 5>/dev/null
15809 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15810 exec 5>>config.log
15811 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15812 # would make configure fail if this is the last instruction.
d6a4bcb5 15813 $ac_cs_success || as_fn_exit 1
b0cacab0 15814fi
39fd3d4f 15815if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
57aa50d4 15816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
39fd3d4f
SJR
15817$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15818fi
50e1e10f 15819
ee683a13 15820if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi