blob: b2701d22098ae44602acba03edcc71651944bf71 [file] [log] [blame]
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001#! /bin/sh
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002# Guess values for system-dependent variables and create Makefiles.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003# Generated by GNU Autoconf 2.69.
Theodore Ts'o61ef2472010-08-01 22:30:33 -04004#
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005#
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008#
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050017if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050018 emulate sh
19 NULLCMD=:
Scott James Remnant39fd3d42009-05-14 13:03:25 +010020 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050021 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
Theodore Ts'oe1052142006-10-21 21:46:47 -040023 setopt NO_GLOB_SUBST
24else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050025 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040030esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050031fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040032
33
Scott James Remnant39fd3d42009-05-14 13:03:25 +010034as_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
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050041# 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
Scott James Remnant39fd3d42009-05-14 13:03:25 +010048 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'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050058 case $arg in #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010059 *"$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'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050072# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010074 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 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050079fi
80
Theodore Ts'oe1052142006-10-21 21:46:47 -040081
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.)
Theodore Ts'oe1052142006-10-21 21:46:47 -040087IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100090as_myself=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050091case $0 in #((
Theodore Ts'oe1052142006-10-21 21:46:47 -040092 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050094for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050098 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
Theodore Ts'oe1052142006-10-21 21:46:47 -0400100IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500101
Theodore Ts'oe1052142006-10-21 21:46:47 -0400102 ;;
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
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500111 exit 1
Theodore Ts'oe1052142006-10-21 21:46:47 -0400112fi
113
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500114# 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 || :
Theodore Ts'oe1052142006-10-21 21:46:47 -0400121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
Theodore Ts'oe1052142006-10-21 21:46:47 -0400131
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000135# 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;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500160if 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
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500195 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 :
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000239 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
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500258fi
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"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500356
357
358} # as_fn_mkdir_p
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000359
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
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500367# 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
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000403# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ----------------------------------------
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500405# 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
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000407# script with STATUS, using 1 if that was 0.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500408as_fn_error ()
409{
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000410 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
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500414 fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000415 $as_echo "$as_me: error: $2" >&2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500416 as_fn_exit $as_status
417} # as_fn_error
418
Theodore Ts'oe1052142006-10-21 21:46:47 -0400419if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422else
423 as_expr=false
424fi
425
426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428else
429 as_basename=false
430fi
431
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434else
435 as_dirname=false
436fi
Theodore Ts'oe1052142006-10-21 21:46:47 -0400437
Theodore Ts'oe1052142006-10-21 21:46:47 -0400438as_me=`$as_basename -- "$0" ||
439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100442$as_echo X/"$0" |
Theodore Ts'oe1052142006-10-21 21:46:47 -0400443 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'`
456
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500457# 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
Theodore Ts'oe1052142006-10-21 21:46:47 -0400463
464
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500465 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. :-)
Theodore Ts'oe1052142006-10-21 21:46:47 -0400470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500474 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -0400475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500479 N
Theodore Ts'oe1052142006-10-21 21:46:47 -0400480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500482 t loop
Theodore Ts'oe1052142006-10-21 21:46:47 -0400483 s/-\n.*//
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500484 ' >$as_me.lineno &&
Theodore Ts'oe1052142006-10-21 21:46:47 -0400485 chmod +x "$as_me.lineno" ||
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500487
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000488 # 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
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500492 # 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
Theodore Ts'oe1052142006-10-21 21:46:47 -0400494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500496 # Exit status is that of the last command.
497 exit
498}
499
Theodore Ts'oe1052142006-10-21 21:46:47 -0400500ECHO_C= ECHO_N= ECHO_T=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500501case `echo -n x` in #(((((
Theodore Ts'oe1052142006-10-21 21:46:47 -0400502-n*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500503 case `echo 'xy\c'` in
Theodore Ts'oe1052142006-10-21 21:46:47 -0400504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400508 esac;;
509*)
510 ECHO_N='-n';;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500511esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500512
513rm -f conf$$ conf$$.exe conf$$.file
Theodore Ts'oe1052142006-10-21 21:46:47 -0400514if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516else
517 rm -f conf$$.dir
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100518 mkdir conf$$.dir 2>/dev/null
Theodore Ts'oe1052142006-10-21 21:46:47 -0400519fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100520if (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.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000526 # In both cases, we have to default to `cp -pR'.
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000528 as_ln_s='cp -pR'
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000532 as_ln_s='cp -pR'
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100533 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500534else
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000535 as_ln_s='cp -pR'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500536fi
Theodore Ts'oe1052142006-10-21 21:46:47 -0400537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500539
540if mkdir -p . 2>/dev/null; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500541 as_mkdir_p='mkdir -p "$as_dir"'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500542else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545fi
546
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500549
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'"
552
553# Sed expression to map a string onto a valid variable name.
554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
Theodore Ts'o61ef2472010-08-01 22:30:33 -0400557test -n "$DJDIR" || exec 7<&0 </dev/null
558exec 6>&1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500559
560# Name of the host.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500562# so uname gets run too.
563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500565#
566# Initializations.
567#
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000568ac_default_prefix=/usr/local
Theodore Ts'oe1052142006-10-21 21:46:47 -0400569ac_clean_files=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500570ac_config_libobj_dir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -0400571LIBOBJS=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500572cross_compiling=no
573subdirs=
574MFLAGS=
575MAKEFLAGS=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500576
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500577# Identity of this package.
578PACKAGE_NAME=
579PACKAGE_TARNAME=
580PACKAGE_VERSION=
581PACKAGE_STRING=
582PACKAGE_BUGREPORT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500583PACKAGE_URL=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500584
585ac_unique_file="version.h"
586# Factoring default headers for most tests.
587ac_includes_default="\
588#include <stdio.h>
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400589#ifdef HAVE_SYS_TYPES_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500590# include <sys/types.h>
591#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400592#ifdef HAVE_SYS_STAT_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500593# include <sys/stat.h>
594#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400595#ifdef STDC_HEADERS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500596# include <stdlib.h>
597# include <stddef.h>
598#else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400599# ifdef HAVE_STDLIB_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500600# include <stdlib.h>
601# endif
602#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400603#ifdef HAVE_STRING_H
604# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500605# include <memory.h>
606# endif
607# include <string.h>
608#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400609#ifdef HAVE_STRINGS_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500610# include <strings.h>
611#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400612#ifdef HAVE_INTTYPES_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500613# include <inttypes.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -0400614#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400615#ifdef HAVE_STDINT_H
Theodore Ts'oe1052142006-10-21 21:46:47 -0400616# include <stdint.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500617#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400618#ifdef HAVE_UNISTD_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500619# include <unistd.h>
620#endif"
621
Theodore Ts'o93613952014-07-03 23:44:13 -0400622gt_needs=
Theodore Ts'o61ef2472010-08-01 22:30:33 -0400623ac_header_list=
Theodore Ts'o93613952014-07-03 23:44:13 -0400624gl_use_threads_default=
625ac_func_list=
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100626ac_subst_vars='LTLIBOBJS
Theodore Ts'oe1052142006-10-21 21:46:47 -0400627LIBOBJS
Theodore Ts'ofd1677e2016-05-21 23:51:19 -0400628LDFLAGS_SHLIB
629CFLAGS_STLIB
630CFLAGS_SHLIB
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100631BUILD_LDFLAGS
632BUILD_CFLAGS
Theodore Ts'o5b5bd2c2014-07-10 00:17:05 -0400633MKINSTALLDIRS
Theodore Ts'od1154eb2011-09-18 17:34:37 -0400634INCLUDES
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100635DO_TEST_SUITE
Theodore Ts'ofd1677e2016-05-21 23:51:19 -0400636LDFLAGS_STATIC
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100637root_sysconfdir
638root_libdir
639root_sbindir
640root_bindir
641root_prefix
642UNIX_CMT
643CYGWIN_CMT
644LINUX_CMT
645UNI_DIFF_OPTS
646SEM_INIT_LIB
Darrick J. Wong81cbf1e2015-05-13 17:22:40 -0700647FUSE_CMT
648FUSE_LIB
Theodore Ts'oc94da042016-06-21 23:16:39 -0400649CLOCK_GETTIME_LIB
Darrick J. Wongb291c112014-09-13 15:12:46 -0700650MAGIC_LIB
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100651SOCKET_LIB
Theodore Ts'o2dd680f2016-05-29 01:07:40 -0400652SIZEOF_TIME_T
Theodore Ts'occ68e8a2013-05-04 19:01:09 -0400653SIZEOF_OFF_T
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100654SIZEOF_LONG_LONG
655SIZEOF_LONG
656SIZEOF_INT
657SIZEOF_SHORT
Matthias Andreeec3a69b2017-08-29 01:02:36 -0400658DD
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100659BUILD_CC
660MAKEINFO
661STRIP
662AR
663LDCONFIG
664PERL
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100665AWK
666CHMOD
667RM
668CP
669MV
670LN_S
671LN
Theodore Ts'obcb915b2009-07-02 18:19:10 -0400672ifNotGNUmake
673ifGNUmake
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100674BINARY_TYPE
675POSUB
676LTLIBINTL
677LIBINTL
678INTLLIBS
679INTL_LIBTOOL_SUFFIX_PREFIX
680INTLOBJS
681GENCAT
682INSTOBJEXT
683DATADIRNAME
684CATOBJEXT
685USE_INCLUDED_LIBINTL
686BUILD_INCLUDED_LIBINTL
Theodore Ts'o93613952014-07-03 23:44:13 -0400687LTLIBC
688WINDRES
689WOE32
690WOE32DLL
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100691HAVE_WPRINTF
Theodore Ts'o93613952014-07-03 23:44:13 -0400692HAVE_NEWLOCALE
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100693HAVE_SNPRINTF
694HAVE_ASPRINTF
695HAVE_POSIX_PRINTF
Theodore Ts'o93613952014-07-03 23:44:13 -0400696INTL_DEFAULT_VERBOSITY
697INTL_MACOSX_LIBS
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100698GLIBC21
Theodore Ts'o93613952014-07-03 23:44:13 -0400699INTLBISON
700LTLIBICONV
701LIBICONV
702LTLIBMULTITHREAD
703LIBMULTITHREAD
704LTLIBTHREAD
705LIBTHREAD
706LIBPTH_PREFIX
707LTLIBPTH
708LIBPTH
709PRI_MACROS_BROKEN
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100710ALLOCA
Theodore Ts'o93613952014-07-03 23:44:13 -0400711HAVE_VISIBILITY
712CFLAG_VISIBILITY
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100713RANLIB
Theodore Ts'o93613952014-07-03 23:44:13 -0400714GLIBC2
715XGETTEXT_EXTRA_OPTIONS
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100716MSGMERGE
Theodore Ts'o93613952014-07-03 23:44:13 -0400717XGETTEXT_015
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100718XGETTEXT
Theodore Ts'o93613952014-07-03 23:44:13 -0400719GMSGFMT_015
720MSGFMT_015
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100721GMSGFMT
722MSGFMT
Theodore Ts'o93613952014-07-03 23:44:13 -0400723GETTEXT_MACRO_VERSION
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100724USE_NLS
Theodore Ts'o93613952014-07-03 23:44:13 -0400725SED
726MKDIR_P
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100727INSTALL_DATA
728INSTALL_SCRIPT
729INSTALL_PROGRAM
730SET_MAKE
731VERSION
732PACKAGE
733GETTEXT_PACKAGE
Theodore Ts'o749f0712016-05-29 20:48:54 -0400734TDB_MAN_COMMENT
735TDB_CMT
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100736UUIDD_CMT
737E2INITRD_MAN
738E2INITRD_PROG
739FSCK_MAN
740FSCK_PROG
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -0500741DEFRAG_CMT
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100742RESIZER_CMT
743IMAGER_CMT
744DEBUGFS_CMT
745BLKID_CMT
746DEPPROFILED_LIBBLKID
747PROFILED_LIBBLKID
748DEPSTATIC_LIBBLKID
749STATIC_LIBBLKID
750DEPLIBBLKID
751LIBBLKID
752UUID_CMT
753DEPPROFILED_LIBUUID
754PROFILED_LIBUUID
755DEPSTATIC_LIBUUID
756STATIC_LIBUUID
757DEPLIBUUID
758LIBUUID
Theodore Ts'o93613952014-07-03 23:44:13 -0400759PKG_CONFIG_LIBDIR
760PKG_CONFIG_PATH
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100761PKG_CONFIG
762TEST_IO_CMT
763PRIVATE_LIBS_CMT
764LDFLAG_DYNAMIC
765PROFILED_LIB_EXT
766STATIC_LIB_EXT
767LIB_EXT
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100768PROFILE_CMT
769BSDLIB_CMT
770ELF_CMT
Theodore Ts'oc13351f2009-07-02 00:11:17 -0400771Q
Theodore Ts'oc1986ec2012-06-13 15:29:13 -0400772ES
Theodore Ts'oc13351f2009-07-02 00:11:17 -0400773E
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400774LINK_BUILD_FLAGS
Theodore Ts'o183c73b2012-05-12 23:13:24 -0400775SYMLINK_RELATIVE
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400776LINK_INSTALL_FLAGS
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100777MAINTAINER_CMT
Theodore Ts'o93613952014-07-03 23:44:13 -0400778EGREP
779GREP
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100780CPP
Theodore Ts'o9b3018a2011-08-11 14:56:49 -0400781RDYNAMIC
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500782DLOPEN_LIB
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100783OBJEXT
784EXEEXT
785ac_ct_CC
786CPPFLAGS
787LDFLAGS
788CFLAGS
789CC
790host_os
791host_vendor
792host_cpu
793host
794build_os
795build_vendor
796build_cpu
797build
798E2FSPROGS_PKGVER
799E2FSPROGS_VERSION
800E2FSPROGS_DAY
801E2FSPROGS_MONTH
802E2FSPROGS_YEAR
803target_alias
804host_alias
805build_alias
806LIBS
807ECHO_T
808ECHO_N
809ECHO_C
810DEFS
811mandir
812localedir
813libdir
814psdir
815pdfdir
816dvidir
817htmldir
818infodir
819docdir
820oldincludedir
821includedir
Theodore Ts'o2ab53822016-03-15 01:10:29 -0400822runstatedir
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100823localstatedir
824sharedstatedir
825sysconfdir
826datadir
827datarootdir
828libexecdir
829sbindir
830bindir
831program_transform_name
832prefix
833exec_prefix
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500834PACKAGE_URL
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100835PACKAGE_BUGREPORT
836PACKAGE_STRING
837PACKAGE_VERSION
838PACKAGE_TARNAME
839PACKAGE_NAME
840PATH_SEPARATOR
841SHELL'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400842ac_subst_files='MCONFIG
843MAKEFILE_ELF
844MAKEFILE_BSDLIB
845MAKEFILE_PROFILE
Theodore Ts'oe1052142006-10-21 21:46:47 -0400846MAKEFILE_LIBRARY
Theodore Ts'o488c75a2008-06-07 08:55:21 -0400847ASM_TYPES_HEADER
848PUBLIC_CONFIG_HEADER'
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100849ac_user_opts='
850enable_option_checking
851with_diet_libc
852with_cc
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100853with_ccopts
854with_ldopts
855with_root_prefix
856enable_maintainer_mode
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400857enable_symlink_install
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400858enable_relative_symlinks
Theodore Ts'o183c73b2012-05-12 23:13:24 -0400859enable_symlink_relative_symlinks
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400860enable_symlink_build
Theodore Ts'oc13351f2009-07-02 00:11:17 -0400861enable_verbose_makecmds
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100862enable_elf_shlibs
863enable_bsd_shlibs
864enable_profile
Theodore Ts'ofedfb272014-02-23 00:17:09 -0500865enable_gcov
Theodore Ts'ofd1677e2016-05-21 23:51:19 -0400866enable_hardening
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100867enable_jbd_debug
868enable_blkid_debug
869enable_testio_debug
870enable_libuuid
871enable_libblkid
Theodore Ts'o3df60142013-06-16 16:14:40 -0400872enable_backtrace
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100873enable_debugfs
874enable_imager
875enable_resizer
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -0500876enable_defrag
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100877enable_fsck
878enable_e2initrd_helper
879enable_tls
880enable_uuidd
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000881enable_mmp
Theodore Ts'o749f0712016-05-29 20:48:54 -0400882enable_tdb
Tony Breeds1625bf42012-07-30 14:44:12 -0400883enable_bmap_stats
884enable_bmap_stats_ops
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100885enable_nls
Theodore Ts'o93613952014-07-03 23:44:13 -0400886enable_threads
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100887with_gnu_ld
888enable_rpath
Theodore Ts'o93613952014-07-03 23:44:13 -0400889with_libpth_prefix
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100890with_libiconv_prefix
891with_included_gettext
892with_libintl_prefix
Darrick J. Wong81cbf1e2015-05-13 17:22:40 -0700893enable_fuse2fs
Theodore Ts'o55e00a22011-09-18 23:53:23 -0400894with_multiarch
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100895'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400896 ac_precious_vars='build_alias
897host_alias
898target_alias
899CC
900CFLAGS
901LDFLAGS
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400902LIBS
Theodore Ts'oe1052142006-10-21 21:46:47 -0400903CPPFLAGS
Theodore Ts'o14b596d2009-04-22 09:18:30 -0400904CPP
Theodore Ts'o93613952014-07-03 23:44:13 -0400905PKG_CONFIG
906PKG_CONFIG_PATH
907PKG_CONFIG_LIBDIR'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400908
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000909
910# Initialize some variables set by options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500911ac_init_help=
912ac_init_version=false
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100913ac_unrecognized_opts=
914ac_unrecognized_sep=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000915# The variables have the same names as the options, with
916# dashes changed to underlines.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500917cache_file=/dev/null
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000918exec_prefix=NONE
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000919no_create=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000920no_recursion=
921prefix=NONE
922program_prefix=NONE
923program_suffix=NONE
924program_transform_name=s,x,x,
925silent=
926site=
927srcdir=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000928verbose=
929x_includes=NONE
930x_libraries=NONE
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500931
932# Installation directory options.
933# These are left unexpanded so users can "make install exec_prefix=/foo"
934# and all the variables that are supposed to be based on exec_prefix
935# by default will actually change.
936# Use braces instead of parens because sh, perl, etc. also accept them.
Theodore Ts'oe1052142006-10-21 21:46:47 -0400937# (The list follows the same order as the GNU Coding Standards.)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000938bindir='${exec_prefix}/bin'
939sbindir='${exec_prefix}/sbin'
940libexecdir='${exec_prefix}/libexec'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400941datarootdir='${prefix}/share'
942datadir='${datarootdir}'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000943sysconfdir='${prefix}/etc'
944sharedstatedir='${prefix}/com'
945localstatedir='${prefix}/var'
Theodore Ts'o2ab53822016-03-15 01:10:29 -0400946runstatedir='${localstatedir}/run'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000947includedir='${prefix}/include'
948oldincludedir='/usr/include'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400949docdir='${datarootdir}/doc/${PACKAGE}'
950infodir='${datarootdir}/info'
951htmldir='${docdir}'
952dvidir='${docdir}'
953pdfdir='${docdir}'
954psdir='${docdir}'
955libdir='${exec_prefix}/lib'
956localedir='${datarootdir}/locale'
957mandir='${datarootdir}/man'
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000958
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000959ac_prev=
Theodore Ts'oe1052142006-10-21 21:46:47 -0400960ac_dashdash=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000961for ac_option
962do
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000963 # If the previous option needs an argument, assign it.
964 if test -n "$ac_prev"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -0400965 eval $ac_prev=\$ac_option
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000966 ac_prev=
967 continue
968 fi
969
Theodore Ts'oe1052142006-10-21 21:46:47 -0400970 case $ac_option in
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000971 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
972 *=) ac_optarg= ;;
973 *) ac_optarg=yes ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400974 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000975
976 # Accept the important Cygnus configure options, so we can diagnose typos.
977
Theodore Ts'oe1052142006-10-21 21:46:47 -0400978 case $ac_dashdash$ac_option in
979 --)
980 ac_dashdash=yes ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000981
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000982 -bindir | --bindir | --bindi | --bind | --bin | --bi)
983 ac_prev=bindir ;;
984 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500985 bindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000986
987 -build | --build | --buil | --bui | --bu)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500988 ac_prev=build_alias ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000989 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500990 build_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000991
992 -cache-file | --cache-file | --cache-fil | --cache-fi \
993 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
994 ac_prev=cache_file ;;
995 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
996 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500997 cache_file=$ac_optarg ;;
998
999 --config-cache | -C)
1000 cache_file=config.cache ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001001
Theodore Ts'oe1052142006-10-21 21:46:47 -04001002 -datadir | --datadir | --datadi | --datad)
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001003 ac_prev=datadir ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001004 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001005 datadir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001006
Theodore Ts'oe1052142006-10-21 21:46:47 -04001007 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1008 | --dataroo | --dataro | --datar)
1009 ac_prev=datarootdir ;;
1010 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1011 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1012 datarootdir=$ac_optarg ;;
1013
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001014 -disable-* | --disable-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001015 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001016 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001017 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001018 as_fn_error $? "invalid feature name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001019 ac_useropt_orig=$ac_useropt
1020 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1021 case $ac_user_opts in
1022 *"
1023"enable_$ac_useropt"
1024"*) ;;
1025 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1026 ac_unrecognized_sep=', ';;
1027 esac
1028 eval enable_$ac_useropt=no ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001029
1030 -docdir | --docdir | --docdi | --doc | --do)
1031 ac_prev=docdir ;;
1032 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1033 docdir=$ac_optarg ;;
1034
1035 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1036 ac_prev=dvidir ;;
1037 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1038 dvidir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001039
1040 -enable-* | --enable-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001041 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001042 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001043 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001044 as_fn_error $? "invalid feature name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001045 ac_useropt_orig=$ac_useropt
1046 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1047 case $ac_user_opts in
1048 *"
1049"enable_$ac_useropt"
1050"*) ;;
1051 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1052 ac_unrecognized_sep=', ';;
1053 esac
1054 eval enable_$ac_useropt=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001055
1056 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1057 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1058 | --exec | --exe | --ex)
1059 ac_prev=exec_prefix ;;
1060 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1061 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1062 | --exec=* | --exe=* | --ex=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001063 exec_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001064
1065 -gas | --gas | --ga | --g)
1066 # Obsolete; use --with-gas.
1067 with_gas=yes ;;
1068
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001069 -help | --help | --hel | --he | -h)
1070 ac_init_help=long ;;
1071 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1072 ac_init_help=recursive ;;
1073 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1074 ac_init_help=short ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001075
1076 -host | --host | --hos | --ho)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001077 ac_prev=host_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001078 -host=* | --host=* | --hos=* | --ho=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001079 host_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001080
Theodore Ts'oe1052142006-10-21 21:46:47 -04001081 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1082 ac_prev=htmldir ;;
1083 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1084 | --ht=*)
1085 htmldir=$ac_optarg ;;
1086
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001087 -includedir | --includedir | --includedi | --included | --include \
1088 | --includ | --inclu | --incl | --inc)
1089 ac_prev=includedir ;;
1090 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1091 | --includ=* | --inclu=* | --incl=* | --inc=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001092 includedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001093
1094 -infodir | --infodir | --infodi | --infod | --info | --inf)
1095 ac_prev=infodir ;;
1096 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001097 infodir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001098
1099 -libdir | --libdir | --libdi | --libd)
1100 ac_prev=libdir ;;
1101 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001102 libdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001103
1104 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1105 | --libexe | --libex | --libe)
1106 ac_prev=libexecdir ;;
1107 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1108 | --libexe=* | --libex=* | --libe=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001109 libexecdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001110
Theodore Ts'oe1052142006-10-21 21:46:47 -04001111 -localedir | --localedir | --localedi | --localed | --locale)
1112 ac_prev=localedir ;;
1113 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1114 localedir=$ac_optarg ;;
1115
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001116 -localstatedir | --localstatedir | --localstatedi | --localstated \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001117 | --localstate | --localstat | --localsta | --localst | --locals)
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001118 ac_prev=localstatedir ;;
1119 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001120 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001121 localstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001122
1123 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1124 ac_prev=mandir ;;
1125 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001126 mandir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001127
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001128 -nfp | --nfp | --nf)
1129 # Obsolete; use --without-fp.
1130 with_fp=no ;;
1131
1132 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001133 | --no-cr | --no-c | -n)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001134 no_create=yes ;;
1135
1136 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1137 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1138 no_recursion=yes ;;
1139
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001140 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1141 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1142 | --oldin | --oldi | --old | --ol | --o)
1143 ac_prev=oldincludedir ;;
1144 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1145 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1146 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001147 oldincludedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001148
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001149 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1150 ac_prev=prefix ;;
1151 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001152 prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001153
1154 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1155 | --program-pre | --program-pr | --program-p)
1156 ac_prev=program_prefix ;;
1157 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1158 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001159 program_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001160
1161 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1162 | --program-suf | --program-su | --program-s)
1163 ac_prev=program_suffix ;;
1164 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1165 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001166 program_suffix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001167
1168 -program-transform-name | --program-transform-name \
1169 | --program-transform-nam | --program-transform-na \
1170 | --program-transform-n | --program-transform- \
1171 | --program-transform | --program-transfor \
1172 | --program-transfo | --program-transf \
1173 | --program-trans | --program-tran \
1174 | --progr-tra | --program-tr | --program-t)
1175 ac_prev=program_transform_name ;;
1176 -program-transform-name=* | --program-transform-name=* \
1177 | --program-transform-nam=* | --program-transform-na=* \
1178 | --program-transform-n=* | --program-transform-=* \
1179 | --program-transform=* | --program-transfor=* \
1180 | --program-transfo=* | --program-transf=* \
1181 | --program-trans=* | --program-tran=* \
1182 | --progr-tra=* | --program-tr=* | --program-t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001183 program_transform_name=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001184
Theodore Ts'oe1052142006-10-21 21:46:47 -04001185 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1186 ac_prev=pdfdir ;;
1187 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1188 pdfdir=$ac_optarg ;;
1189
1190 -psdir | --psdir | --psdi | --psd | --ps)
1191 ac_prev=psdir ;;
1192 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1193 psdir=$ac_optarg ;;
1194
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001195 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1196 | -silent | --silent | --silen | --sile | --sil)
1197 silent=yes ;;
1198
Theodore Ts'o2ab53822016-03-15 01:10:29 -04001199 -runstatedir | --runstatedir | --runstatedi | --runstated \
1200 | --runstate | --runstat | --runsta | --runst | --runs \
1201 | --run | --ru | --r)
1202 ac_prev=runstatedir ;;
1203 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1204 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1205 | --run=* | --ru=* | --r=*)
1206 runstatedir=$ac_optarg ;;
1207
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001208 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1209 ac_prev=sbindir ;;
1210 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1211 | --sbi=* | --sb=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001212 sbindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001213
1214 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1215 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1216 | --sharedst | --shareds | --shared | --share | --shar \
1217 | --sha | --sh)
1218 ac_prev=sharedstatedir ;;
1219 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1220 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1221 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1222 | --sha=* | --sh=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001223 sharedstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001224
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001225 -site | --site | --sit)
1226 ac_prev=site ;;
1227 -site=* | --site=* | --sit=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001228 site=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001229
1230 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1231 ac_prev=srcdir ;;
1232 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001233 srcdir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001234
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001235 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1236 | --syscon | --sysco | --sysc | --sys | --sy)
1237 ac_prev=sysconfdir ;;
1238 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1239 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001240 sysconfdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001241
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001242 -target | --target | --targe | --targ | --tar | --ta | --t)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001243 ac_prev=target_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001244 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001245 target_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001246
1247 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1248 verbose=yes ;;
1249
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001250 -version | --version | --versio | --versi | --vers | -V)
1251 ac_init_version=: ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001252
1253 -with-* | --with-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001254 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001255 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001256 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001257 as_fn_error $? "invalid package name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001258 ac_useropt_orig=$ac_useropt
1259 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1260 case $ac_user_opts in
1261 *"
1262"with_$ac_useropt"
1263"*) ;;
1264 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1265 ac_unrecognized_sep=', ';;
1266 esac
1267 eval with_$ac_useropt=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001268
1269 -without-* | --without-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001270 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001271 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001272 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001273 as_fn_error $? "invalid package name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001274 ac_useropt_orig=$ac_useropt
1275 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1276 case $ac_user_opts in
1277 *"
1278"with_$ac_useropt"
1279"*) ;;
1280 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1281 ac_unrecognized_sep=', ';;
1282 esac
1283 eval with_$ac_useropt=no ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001284
1285 --x)
1286 # Obsolete; use --with-x.
1287 with_x=yes ;;
1288
1289 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1290 | --x-incl | --x-inc | --x-in | --x-i)
1291 ac_prev=x_includes ;;
1292 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1293 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001294 x_includes=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001295
1296 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1297 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1298 ac_prev=x_libraries ;;
1299 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1300 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001301 x_libraries=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001302
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001303 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1304Try \`$0 --help' for more information"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001305 ;;
1306
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001307 *=*)
1308 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1309 # Reject names that are not valid shell variable names.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001310 case $ac_envvar in #(
1311 '' | [0-9]* | *[!_$as_cr_alnum]* )
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001312 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001313 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001314 eval $ac_envvar=\$ac_optarg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001315 export $ac_envvar ;;
1316
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001317 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001318 # FIXME: should be removed in autoconf 3.0.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001319 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001320 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001321 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001322 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001323 ;;
1324
1325 esac
1326done
1327
1328if test -n "$ac_prev"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001329 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001330 as_fn_error $? "missing argument to $ac_option"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001331fi
1332
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001333if test -n "$ac_unrecognized_opts"; then
1334 case $enable_option_checking in
1335 no) ;;
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001336 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001337 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1338 esac
1339fi
1340
1341# Check all directory arguments for consistency.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001342for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1343 datadir sysconfdir sharedstatedir localstatedir includedir \
1344 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
Theodore Ts'o2ab53822016-03-15 01:10:29 -04001345 libdir localedir mandir runstatedir
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001346do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001347 eval ac_val=\$$ac_var
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001348 # Remove trailing slashes.
1349 case $ac_val in
1350 */ )
1351 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1352 eval $ac_var=\$ac_val;;
1353 esac
1354 # Be sure to have absolute directory names.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001355 case $ac_val in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001356 [\\/$]* | ?:[\\/]* ) continue;;
1357 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001358 esac
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001359 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001360done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001361
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001362# There might be people who depend on the old broken behavior: `$host'
1363# used to hold the argument of --host etc.
1364# FIXME: To remove some day.
1365build=$build_alias
1366host=$host_alias
1367target=$target_alias
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001368
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001369# FIXME: To remove some day.
1370if test "x$host_alias" != x; then
1371 if test "x$build_alias" = x; then
1372 cross_compiling=maybe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001373 elif test "x$build_alias" != "x$host_alias"; then
1374 cross_compiling=yes
1375 fi
1376fi
1377
1378ac_tool_prefix=
1379test -n "$host_alias" && ac_tool_prefix=$host_alias-
1380
1381test "$silent" = yes && exec 6>/dev/null
1382
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001383
Theodore Ts'oe1052142006-10-21 21:46:47 -04001384ac_pwd=`pwd` && test -n "$ac_pwd" &&
1385ac_ls_di=`ls -di .` &&
1386ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001387 as_fn_error $? "working directory cannot be determined"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001388test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001389 as_fn_error $? "pwd does not report name of working directory"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001390
1391
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001392# Find the source files, if location was not specified.
1393if test -z "$srcdir"; then
1394 ac_srcdir_defaulted=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04001395 # Try the directory containing this script, then the parent directory.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001396 ac_confdir=`$as_dirname -- "$as_myself" ||
1397$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1398 X"$as_myself" : 'X\(//\)[^/]' \| \
1399 X"$as_myself" : 'X\(//\)$' \| \
1400 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1401$as_echo X"$as_myself" |
Theodore Ts'oe1052142006-10-21 21:46:47 -04001402 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1403 s//\1/
1404 q
1405 }
1406 /^X\(\/\/\)[^/].*/{
1407 s//\1/
1408 q
1409 }
1410 /^X\(\/\/\)$/{
1411 s//\1/
1412 q
1413 }
1414 /^X\(\/\).*/{
1415 s//\1/
1416 q
1417 }
1418 s/.*/./; q'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001419 srcdir=$ac_confdir
Theodore Ts'oe1052142006-10-21 21:46:47 -04001420 if test ! -r "$srcdir/$ac_unique_file"; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001421 srcdir=..
1422 fi
1423else
1424 ac_srcdir_defaulted=no
1425fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001426if test ! -r "$srcdir/$ac_unique_file"; then
1427 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001428 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001429fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001430ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1431ac_abs_confdir=`(
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001432 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001433 pwd)`
1434# When building in place, set srcdir=.
1435if test "$ac_abs_confdir" = "$ac_pwd"; then
1436 srcdir=.
1437fi
1438# Remove unnecessary trailing slashes from srcdir.
1439# Double slashes in file names in object file debugging info
1440# mess up M-x gdb in Emacs.
1441case $srcdir in
1442*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1443esac
1444for ac_var in $ac_precious_vars; do
1445 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1446 eval ac_env_${ac_var}_value=\$${ac_var}
1447 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1448 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1449done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001450
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001451#
1452# Report the --help message.
1453#
1454if test "$ac_init_help" = "long"; then
1455 # Omit some internal or obsolete options to make the list less imposing.
1456 # This message is too long to be a string in the A/UX 3.1 sh.
1457 cat <<_ACEOF
1458\`configure' configures this package to adapt to many kinds of systems.
1459
1460Usage: $0 [OPTION]... [VAR=VALUE]...
1461
1462To assign environment variables (e.g., CC, CFLAGS...), specify them as
1463VAR=VALUE. See below for descriptions of some of the useful variables.
1464
1465Defaults for the options are specified in brackets.
1466
1467Configuration:
1468 -h, --help display this help and exit
1469 --help=short display options specific to this package
1470 --help=recursive display the short help of all the included packages
1471 -V, --version display version information and exit
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001472 -q, --quiet, --silent do not print \`checking ...' messages
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001473 --cache-file=FILE cache test results in FILE [disabled]
1474 -C, --config-cache alias for \`--cache-file=config.cache'
1475 -n, --no-create do not create output files
1476 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1477
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001478Installation directories:
1479 --prefix=PREFIX install architecture-independent files in PREFIX
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001480 [$ac_default_prefix]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001481 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001482 [PREFIX]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001483
1484By default, \`make install' will install all the files in
1485\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1486an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1487for instance \`--prefix=\$HOME'.
1488
1489For better control, use the options below.
1490
1491Fine tuning of the installation directories:
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001492 --bindir=DIR user executables [EPREFIX/bin]
1493 --sbindir=DIR system admin executables [EPREFIX/sbin]
1494 --libexecdir=DIR program executables [EPREFIX/libexec]
1495 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1496 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1497 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
Theodore Ts'o2ab53822016-03-15 01:10:29 -04001498 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001499 --libdir=DIR object code libraries [EPREFIX/lib]
1500 --includedir=DIR C header files [PREFIX/include]
1501 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1502 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1503 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1504 --infodir=DIR info documentation [DATAROOTDIR/info]
1505 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1506 --mandir=DIR man documentation [DATAROOTDIR/man]
1507 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1508 --htmldir=DIR html documentation [DOCDIR]
1509 --dvidir=DIR dvi documentation [DOCDIR]
1510 --pdfdir=DIR pdf documentation [DOCDIR]
1511 --psdir=DIR ps documentation [DOCDIR]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001512_ACEOF
1513
1514 cat <<\_ACEOF
1515
1516System types:
1517 --build=BUILD configure for building on BUILD [guessed]
1518 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1519_ACEOF
1520fi
1521
1522if test -n "$ac_init_help"; then
1523
1524 cat <<\_ACEOF
1525
1526Optional Features:
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001527 --disable-option-checking ignore unrecognized --enable/--with options
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001528 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1529 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Theodore Ts'o98919bd2005-02-04 10:43:58 -05001530 --enable-maintainer-mode enable makefile rules useful for maintainers
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04001531 --enable-symlink-install use symlinks when installing instead of hard links
Theodore Ts'o183c73b2012-05-12 23:13:24 -04001532 --enable-relative-symlinks use relative symlinks when installing
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001533
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04001534 --enable-symlink-build use symlinks while building instead of hard links
1535 --enable-verbose-makecmds enable verbose make command output
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001536 --enable-elf-shlibs select ELF shared libraries
1537 --enable-bsd-shlibs select BSD shared libraries
1538 --enable-profile build profiling libraries
Theodore Ts'ofedfb272014-02-23 00:17:09 -05001539 --enable-gcov build for coverage testing using gcov
Theodore Ts'ofd1677e2016-05-21 23:51:19 -04001540 --enable-hardening build for coverage testing using gcov
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001541 --enable-jbd-debug enable journal debugging
1542 --enable-blkid-debug enable blkid debugging
Theodore Ts'oaf773652008-09-01 11:27:27 -04001543 --disable-testio-debug disable the use of the test I/O manager for debugging
Theodore Ts'of5dffb82015-06-20 14:20:14 -04001544 --enable-libuuid build and use private uuid library
1545 --enable-libblkid build and use private blkid library
Theodore Ts'o3df60142013-06-16 16:14:40 -04001546 --disable-backtrace disable use backtrace
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001547 --disable-debugfs disable support of debugfs program
1548 --disable-imager disable support of e2image program
1549 --disable-resizer disable support of e2resize program
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05001550 --disable-defrag disable support of e4defrag program
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001551 --enable-fsck build fsck wrapper program
1552 --enable-e2initrd-helper build e2initrd-helper program
Theodore Ts'o32493942007-12-31 10:45:01 -05001553 --disable-tls disable use of thread local support
Theodore Ts'o5610f992007-12-31 11:16:56 -05001554 --disable-uuidd disable building the uuid daemon
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001555 --disable-mmp disable support mmp, Multi Mount Protection
Theodore Ts'o749f0712016-05-29 20:48:54 -04001556 --disable-tdb disable tdb support
Tony Breeds1625bf42012-07-30 14:44:12 -04001557 --disable-bmap-stats disable collection of bitmap stats.
1558 --enable-bmap-stats-ops enable collection of additional bitmap stats
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001559 --disable-nls do not use Native Language Support
Theodore Ts'o93613952014-07-03 23:44:13 -04001560 --enable-threads={posix|solaris|pth|windows}
1561 specify multithreading API
1562 --disable-threads build without multithread safety
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001563 --disable-rpath do not hardcode runtime library paths
Theodore Ts'of5dffb82015-06-20 14:20:14 -04001564 --disable-fuse2fs do not build fuse2fs
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001565
1566Optional Packages:
1567 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1568 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Theodore Ts'o32493942007-12-31 10:45:01 -05001569 --with-diet-libc use diet libc
Theodore Ts'o0b5b9f92009-09-06 21:28:47 -04001570 --with-cc no longer supported, use CC= instead
1571 --with-ccopts no longer supported, use CFLAGS= instead
1572 --with-ldopts no longer supported, use LDFLAGS= instead
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001573 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
Theodore Ts'o93613952014-07-03 23:44:13 -04001574 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1575 --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
1576 --without-libpth-prefix don't search for libpth in includedir and libdir
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001577 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1578 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1579 --with-included-gettext use the GNU gettext library included here
1580 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1581 --without-libintl-prefix don't search for libintl in includedir and libdir
Theodore Ts'o55e00a22011-09-18 23:53:23 -04001582 --with-multiarch=ARCH specify the multiarch triplet
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001583
1584Some influential environment variables:
1585 CC C compiler command
1586 CFLAGS C compiler flags
1587 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1588 nonstandard directory <lib dir>
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001589 LIBS libraries to pass to the linker, e.g. -l<library>
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001590 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
Theodore Ts'oe1052142006-10-21 21:46:47 -04001591 you have headers in a nonstandard directory <include dir>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001592 CPP C preprocessor
Theodore Ts'o14b596d2009-04-22 09:18:30 -04001593 PKG_CONFIG path to pkg-config utility
Theodore Ts'o93613952014-07-03 23:44:13 -04001594 PKG_CONFIG_PATH
1595 directories to add to pkg-config's search path
1596 PKG_CONFIG_LIBDIR
1597 path overriding pkg-config's built-in search path
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001598
1599Use these variables to override the choices made by `configure' or to help
1600it to find libraries and programs with nonstandard names/locations.
1601
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001602Report bugs to the package provider.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001603_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001604ac_status=$?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001605fi
1606
1607if test "$ac_init_help" = "recursive"; then
1608 # If there are subdirs, report their specific --help.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001609 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001610 test -d "$ac_dir" ||
1611 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1612 continue
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001613 ac_builddir=.
1614
Theodore Ts'oe1052142006-10-21 21:46:47 -04001615case "$ac_dir" in
1616.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1617*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001618 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001619 # A ".." for each directory in $ac_dir_suffix.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001620 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001621 case $ac_top_builddir_sub in
1622 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1623 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1624 esac ;;
1625esac
1626ac_abs_top_builddir=$ac_pwd
1627ac_abs_builddir=$ac_pwd$ac_dir_suffix
1628# for backward compatibility:
1629ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001630
1631case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001632 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001633 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001634 ac_top_srcdir=$ac_top_builddir_sub
1635 ac_abs_top_srcdir=$ac_pwd ;;
1636 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001637 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001638 ac_top_srcdir=$srcdir
1639 ac_abs_top_srcdir=$srcdir ;;
1640 *) # Relative name.
1641 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1642 ac_top_srcdir=$ac_top_build_prefix$srcdir
1643 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001644esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001645ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001646
Theodore Ts'oe1052142006-10-21 21:46:47 -04001647 cd "$ac_dir" || { ac_status=$?; continue; }
1648 # Check for guested configure.
1649 if test -f "$ac_srcdir/configure.gnu"; then
1650 echo &&
1651 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1652 elif test -f "$ac_srcdir/configure"; then
1653 echo &&
1654 $SHELL "$ac_srcdir/configure" --help=recursive
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001655 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001656 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Theodore Ts'oe1052142006-10-21 21:46:47 -04001657 fi || ac_status=$?
1658 cd "$ac_pwd" || { ac_status=$?; break; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001659 done
1660fi
1661
Theodore Ts'oe1052142006-10-21 21:46:47 -04001662test -n "$ac_init_help" && exit $ac_status
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001663if $ac_init_version; then
1664 cat <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001665configure
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001666generated by GNU Autoconf 2.69
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001667
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001668Copyright (C) 2012 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001669This configure script is free software; the Free Software Foundation
1670gives unlimited permission to copy, distribute and modify it.
1671_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001672 exit
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001673fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001674
1675## ------------------------ ##
1676## Autoconf initialization. ##
1677## ------------------------ ##
1678
1679# ac_fn_c_try_compile LINENO
1680# --------------------------
1681# Try to compile conftest.$ac_ext, and return whether this succeeded.
1682ac_fn_c_try_compile ()
1683{
1684 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1685 rm -f conftest.$ac_objext
1686 if { { ac_try="$ac_compile"
1687case "(($ac_try" in
1688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1689 *) ac_try_echo=$ac_try;;
1690esac
1691eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1692$as_echo "$ac_try_echo"; } >&5
1693 (eval "$ac_compile") 2>conftest.err
1694 ac_status=$?
1695 if test -s conftest.err; then
1696 grep -v '^ *+' conftest.err >conftest.er1
1697 cat conftest.er1 >&5
1698 mv -f conftest.er1 conftest.err
1699 fi
1700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1701 test $ac_status = 0; } && {
1702 test -z "$ac_c_werror_flag" ||
1703 test ! -s conftest.err
1704 } && test -s conftest.$ac_objext; then :
1705 ac_retval=0
1706else
1707 $as_echo "$as_me: failed program was:" >&5
1708sed 's/^/| /' conftest.$ac_ext >&5
1709
1710 ac_retval=1
1711fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001712 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001713 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001714
1715} # ac_fn_c_try_compile
1716
1717# ac_fn_c_try_link LINENO
1718# -----------------------
1719# Try to link conftest.$ac_ext, and return whether this succeeded.
1720ac_fn_c_try_link ()
1721{
1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723 rm -f conftest.$ac_objext conftest$ac_exeext
1724 if { { ac_try="$ac_link"
1725case "(($ac_try" in
1726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1727 *) ac_try_echo=$ac_try;;
1728esac
1729eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1730$as_echo "$ac_try_echo"; } >&5
1731 (eval "$ac_link") 2>conftest.err
1732 ac_status=$?
1733 if test -s conftest.err; then
1734 grep -v '^ *+' conftest.err >conftest.er1
1735 cat conftest.er1 >&5
1736 mv -f conftest.er1 conftest.err
1737 fi
1738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1739 test $ac_status = 0; } && {
1740 test -z "$ac_c_werror_flag" ||
1741 test ! -s conftest.err
1742 } && test -s conftest$ac_exeext && {
1743 test "$cross_compiling" = yes ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001744 test -x conftest$ac_exeext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001745 }; then :
1746 ac_retval=0
1747else
1748 $as_echo "$as_me: failed program was:" >&5
1749sed 's/^/| /' conftest.$ac_ext >&5
1750
1751 ac_retval=1
1752fi
1753 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1754 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1755 # interfere with the next link command; also delete a directory that is
1756 # left behind by Apple's compiler. We do this before executing the actions.
1757 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001758 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001759 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001760
1761} # ac_fn_c_try_link
1762
1763# ac_fn_c_try_cpp LINENO
1764# ----------------------
1765# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1766ac_fn_c_try_cpp ()
1767{
1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769 if { { ac_try="$ac_cpp conftest.$ac_ext"
1770case "(($ac_try" in
1771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772 *) ac_try_echo=$ac_try;;
1773esac
1774eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775$as_echo "$ac_try_echo"; } >&5
1776 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1777 ac_status=$?
1778 if test -s conftest.err; then
1779 grep -v '^ *+' conftest.err >conftest.er1
1780 cat conftest.er1 >&5
1781 mv -f conftest.er1 conftest.err
1782 fi
1783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001784 test $ac_status = 0; } > conftest.i && {
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001785 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1786 test ! -s conftest.err
1787 }; then :
1788 ac_retval=0
1789else
1790 $as_echo "$as_me: failed program was:" >&5
1791sed 's/^/| /' conftest.$ac_ext >&5
1792
1793 ac_retval=1
1794fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001795 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001796 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001797
1798} # ac_fn_c_try_cpp
1799
1800# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1801# -------------------------------------------------------
1802# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1803# the include files in INCLUDES and setting the cache variable VAR
1804# accordingly.
1805ac_fn_c_check_header_mongrel ()
1806{
1807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001808 if eval \${$3+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1810$as_echo_n "checking for $2... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001811if eval \${$3+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001812 $as_echo_n "(cached) " >&6
1813fi
1814eval ac_res=\$$3
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1816$as_echo "$ac_res" >&6; }
1817else
1818 # Is the header compilable?
1819{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1820$as_echo_n "checking $2 usability... " >&6; }
1821cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1822/* end confdefs.h. */
1823$4
1824#include <$2>
1825_ACEOF
1826if ac_fn_c_try_compile "$LINENO"; then :
1827 ac_header_compiler=yes
1828else
1829 ac_header_compiler=no
1830fi
1831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1833$as_echo "$ac_header_compiler" >&6; }
1834
1835# Is the header present?
1836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1837$as_echo_n "checking $2 presence... " >&6; }
1838cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1839/* end confdefs.h. */
1840#include <$2>
1841_ACEOF
1842if ac_fn_c_try_cpp "$LINENO"; then :
1843 ac_header_preproc=yes
1844else
1845 ac_header_preproc=no
1846fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001847rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1849$as_echo "$ac_header_preproc" >&6; }
1850
1851# So? What about this header?
1852case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1853 yes:no: )
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1855$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1857$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1858 ;;
1859 no:yes:* )
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1861$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1863$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1865$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1867$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1869$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1870 ;;
1871esac
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1873$as_echo_n "checking for $2... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001874if eval \${$3+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001875 $as_echo_n "(cached) " >&6
1876else
1877 eval "$3=\$ac_header_compiler"
1878fi
1879eval ac_res=\$$3
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1881$as_echo "$ac_res" >&6; }
1882fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001883 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001884
1885} # ac_fn_c_check_header_mongrel
1886
Theodore Ts'o93613952014-07-03 23:44:13 -04001887# ac_fn_c_try_run LINENO
1888# ----------------------
1889# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1890# that executables *can* be run.
1891ac_fn_c_try_run ()
1892{
1893 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1894 if { { ac_try="$ac_link"
1895case "(($ac_try" in
1896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1897 *) ac_try_echo=$ac_try;;
1898esac
1899eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1900$as_echo "$ac_try_echo"; } >&5
1901 (eval "$ac_link") 2>&5
1902 ac_status=$?
1903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1904 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1905 { { case "(($ac_try" in
1906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1907 *) ac_try_echo=$ac_try;;
1908esac
1909eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1910$as_echo "$ac_try_echo"; } >&5
1911 (eval "$ac_try") 2>&5
1912 ac_status=$?
1913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1914 test $ac_status = 0; }; }; then :
1915 ac_retval=0
1916else
1917 $as_echo "$as_me: program exited with status $ac_status" >&5
1918 $as_echo "$as_me: failed program was:" >&5
1919sed 's/^/| /' conftest.$ac_ext >&5
1920
1921 ac_retval=$ac_status
1922fi
1923 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1924 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1925 as_fn_set_status $ac_retval
1926
1927} # ac_fn_c_try_run
1928
1929# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1930# -------------------------------------------------------
1931# Tests whether HEADER exists and can be compiled using the include files in
1932# INCLUDES, setting the cache variable VAR accordingly.
1933ac_fn_c_check_header_compile ()
1934{
1935 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1937$as_echo_n "checking for $2... " >&6; }
1938if eval \${$3+:} false; then :
1939 $as_echo_n "(cached) " >&6
1940else
1941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1942/* end confdefs.h. */
1943$4
1944#include <$2>
1945_ACEOF
1946if ac_fn_c_try_compile "$LINENO"; then :
1947 eval "$3=yes"
1948else
1949 eval "$3=no"
1950fi
1951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1952fi
1953eval ac_res=\$$3
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1955$as_echo "$ac_res" >&6; }
1956 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1957
1958} # ac_fn_c_check_header_compile
1959
1960# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1961# -------------------------------------------
1962# Tests whether TYPE exists after having included INCLUDES, setting cache
1963# variable VAR accordingly.
1964ac_fn_c_check_type ()
1965{
1966 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1968$as_echo_n "checking for $2... " >&6; }
1969if eval \${$3+:} false; then :
1970 $as_echo_n "(cached) " >&6
1971else
1972 eval "$3=no"
1973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1974/* end confdefs.h. */
1975$4
1976int
1977main ()
1978{
1979if (sizeof ($2))
1980 return 0;
1981 ;
1982 return 0;
1983}
1984_ACEOF
1985if ac_fn_c_try_compile "$LINENO"; then :
1986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1987/* end confdefs.h. */
1988$4
1989int
1990main ()
1991{
1992if (sizeof (($2)))
1993 return 0;
1994 ;
1995 return 0;
1996}
1997_ACEOF
1998if ac_fn_c_try_compile "$LINENO"; then :
1999
2000else
2001 eval "$3=yes"
2002fi
2003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2004fi
2005rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2006fi
2007eval ac_res=\$$3
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2009$as_echo "$ac_res" >&6; }
2010 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2011
2012} # ac_fn_c_check_type
2013
2014# ac_fn_c_check_func LINENO FUNC VAR
2015# ----------------------------------
2016# Tests whether FUNC exists, setting the cache variable VAR accordingly
2017ac_fn_c_check_func ()
2018{
2019 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2021$as_echo_n "checking for $2... " >&6; }
2022if eval \${$3+:} false; then :
2023 $as_echo_n "(cached) " >&6
2024else
2025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2026/* end confdefs.h. */
2027/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2028 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2029#define $2 innocuous_$2
2030
2031/* System header to define __stub macros and hopefully few prototypes,
2032 which can conflict with char $2 (); below.
2033 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2034 <limits.h> exists even on freestanding compilers. */
2035
2036#ifdef __STDC__
2037# include <limits.h>
2038#else
2039# include <assert.h>
2040#endif
2041
2042#undef $2
2043
2044/* Override any GCC internal prototype to avoid an error.
2045 Use char because int might match the return type of a GCC
2046 builtin and then its argument prototype would still apply. */
2047#ifdef __cplusplus
2048extern "C"
2049#endif
2050char $2 ();
2051/* The GNU C library defines this for functions which it implements
2052 to always fail with ENOSYS. Some functions are actually named
2053 something starting with __ and the normal name is an alias. */
2054#if defined __stub_$2 || defined __stub___$2
2055choke me
2056#endif
2057
2058int
2059main ()
2060{
2061return $2 ();
2062 ;
2063 return 0;
2064}
2065_ACEOF
2066if ac_fn_c_try_link "$LINENO"; then :
2067 eval "$3=yes"
2068else
2069 eval "$3=no"
2070fi
2071rm -f core conftest.err conftest.$ac_objext \
2072 conftest$ac_exeext conftest.$ac_ext
2073fi
2074eval ac_res=\$$3
2075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2076$as_echo "$ac_res" >&6; }
2077 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2078
2079} # ac_fn_c_check_func
2080
2081# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2082# ---------------------------------------------
2083# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2084# accordingly.
2085ac_fn_c_check_decl ()
2086{
2087 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2088 as_decl_name=`echo $2|sed 's/ *(.*//'`
2089 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2091$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2092if eval \${$3+:} false; then :
2093 $as_echo_n "(cached) " >&6
2094else
2095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2096/* end confdefs.h. */
2097$4
2098int
2099main ()
2100{
2101#ifndef $as_decl_name
2102#ifdef __cplusplus
2103 (void) $as_decl_use;
2104#else
2105 (void) $as_decl_name;
2106#endif
2107#endif
2108
2109 ;
2110 return 0;
2111}
2112_ACEOF
2113if ac_fn_c_try_compile "$LINENO"; then :
2114 eval "$3=yes"
2115else
2116 eval "$3=no"
2117fi
2118rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2119fi
2120eval ac_res=\$$3
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2122$as_echo "$ac_res" >&6; }
2123 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2124
2125} # ac_fn_c_check_decl
2126
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002127# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2128# --------------------------------------------
2129# Tries to find the compile-time value of EXPR in a program that includes
2130# INCLUDES, setting VAR accordingly. Returns whether the value could be
2131# computed
2132ac_fn_c_compute_int ()
2133{
2134 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2135 if test "$cross_compiling" = yes; then
2136 # Depending upon the size, compute the lo and hi bounds.
2137cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2138/* end confdefs.h. */
2139$4
2140int
2141main ()
2142{
2143static int test_array [1 - 2 * !(($2) >= 0)];
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002144test_array [0] = 0;
2145return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002146
2147 ;
2148 return 0;
2149}
2150_ACEOF
2151if ac_fn_c_try_compile "$LINENO"; then :
2152 ac_lo=0 ac_mid=0
2153 while :; do
2154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2155/* end confdefs.h. */
2156$4
2157int
2158main ()
2159{
2160static int test_array [1 - 2 * !(($2) <= $ac_mid)];
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002161test_array [0] = 0;
2162return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002163
2164 ;
2165 return 0;
2166}
2167_ACEOF
2168if ac_fn_c_try_compile "$LINENO"; then :
2169 ac_hi=$ac_mid; break
2170else
2171 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2172 if test $ac_lo -le $ac_mid; then
2173 ac_lo= ac_hi=
2174 break
2175 fi
2176 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2177fi
2178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2179 done
2180else
2181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2182/* end confdefs.h. */
2183$4
2184int
2185main ()
2186{
2187static int test_array [1 - 2 * !(($2) < 0)];
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002188test_array [0] = 0;
2189return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002190
2191 ;
2192 return 0;
2193}
2194_ACEOF
2195if ac_fn_c_try_compile "$LINENO"; then :
2196 ac_hi=-1 ac_mid=-1
2197 while :; do
2198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2199/* end confdefs.h. */
2200$4
2201int
2202main ()
2203{
2204static int test_array [1 - 2 * !(($2) >= $ac_mid)];
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002205test_array [0] = 0;
2206return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002207
2208 ;
2209 return 0;
2210}
2211_ACEOF
2212if ac_fn_c_try_compile "$LINENO"; then :
2213 ac_lo=$ac_mid; break
2214else
2215 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2216 if test $ac_mid -le $ac_hi; then
2217 ac_lo= ac_hi=
2218 break
2219 fi
2220 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2221fi
2222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2223 done
2224else
2225 ac_lo= ac_hi=
2226fi
2227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2228fi
2229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2230# Binary search between lo and hi bounds.
2231while test "x$ac_lo" != "x$ac_hi"; do
2232 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2234/* end confdefs.h. */
2235$4
2236int
2237main ()
2238{
2239static int test_array [1 - 2 * !(($2) <= $ac_mid)];
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002240test_array [0] = 0;
2241return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002242
2243 ;
2244 return 0;
2245}
2246_ACEOF
2247if ac_fn_c_try_compile "$LINENO"; then :
2248 ac_hi=$ac_mid
2249else
2250 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2251fi
2252rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2253done
2254case $ac_lo in #((
2255?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2256'') ac_retval=1 ;;
2257esac
2258 else
2259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2260/* end confdefs.h. */
2261$4
2262static long int longval () { return $2; }
2263static unsigned long int ulongval () { return $2; }
2264#include <stdio.h>
2265#include <stdlib.h>
2266int
2267main ()
2268{
2269
2270 FILE *f = fopen ("conftest.val", "w");
2271 if (! f)
2272 return 1;
2273 if (($2) < 0)
2274 {
2275 long int i = longval ();
2276 if (i != ($2))
2277 return 1;
2278 fprintf (f, "%ld", i);
2279 }
2280 else
2281 {
2282 unsigned long int i = ulongval ();
2283 if (i != ($2))
2284 return 1;
2285 fprintf (f, "%lu", i);
2286 }
2287 /* Do not output a trailing newline, as this causes \r\n confusion
2288 on some platforms. */
2289 return ferror (f) || fclose (f) != 0;
2290
2291 ;
2292 return 0;
2293}
2294_ACEOF
2295if ac_fn_c_try_run "$LINENO"; then :
2296 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2297else
2298 ac_retval=1
2299fi
2300rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2301 conftest.$ac_objext conftest.beam conftest.$ac_ext
2302rm -f conftest.val
2303
2304 fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002305 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002306 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002307
2308} # ac_fn_c_compute_int
2309
2310# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2311# ----------------------------------------------------
2312# Tries to find if the field MEMBER exists in type AGGR, after including
2313# INCLUDES, setting cache variable VAR accordingly.
2314ac_fn_c_check_member ()
2315{
2316 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2318$as_echo_n "checking for $2.$3... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002319if eval \${$4+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002320 $as_echo_n "(cached) " >&6
2321else
2322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2323/* end confdefs.h. */
2324$5
2325int
2326main ()
2327{
2328static $2 ac_aggr;
2329if (ac_aggr.$3)
2330return 0;
2331 ;
2332 return 0;
2333}
2334_ACEOF
2335if ac_fn_c_try_compile "$LINENO"; then :
2336 eval "$4=yes"
2337else
2338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2339/* end confdefs.h. */
2340$5
2341int
2342main ()
2343{
2344static $2 ac_aggr;
2345if (sizeof ac_aggr.$3)
2346return 0;
2347 ;
2348 return 0;
2349}
2350_ACEOF
2351if ac_fn_c_try_compile "$LINENO"; then :
2352 eval "$4=yes"
2353else
2354 eval "$4=no"
2355fi
2356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2357fi
2358rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2359fi
2360eval ac_res=\$$4
2361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2362$as_echo "$ac_res" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002363 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002364
2365} # ac_fn_c_check_member
Theodore Ts'oe1052142006-10-21 21:46:47 -04002366cat >config.log <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002367This file contains any messages produced by compilers while
2368running configure, to aid debugging if configure makes a mistake.
2369
2370It was created by $as_me, which was
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002371generated by GNU Autoconf 2.69. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002372
2373 $ $0 $@
2374
2375_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04002376exec 5>>config.log
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002377{
2378cat <<_ASUNAME
2379## --------- ##
2380## Platform. ##
2381## --------- ##
2382
2383hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2384uname -m = `(uname -m) 2>/dev/null || echo unknown`
2385uname -r = `(uname -r) 2>/dev/null || echo unknown`
2386uname -s = `(uname -s) 2>/dev/null || echo unknown`
2387uname -v = `(uname -v) 2>/dev/null || echo unknown`
2388
2389/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2390/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2391
2392/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2393/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2394/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Theodore Ts'oe1052142006-10-21 21:46:47 -04002395/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002396/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2397/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2398/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2399
2400_ASUNAME
2401
2402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2403for as_dir in $PATH
2404do
2405 IFS=$as_save_IFS
2406 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002407 $as_echo "PATH: $as_dir"
2408 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002409IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002410
2411} >&5
2412
2413cat >&5 <<_ACEOF
2414
2415
2416## ----------- ##
2417## Core tests. ##
2418## ----------- ##
2419
2420_ACEOF
2421
2422
2423# Keep a trace of the command line.
2424# Strip out --no-create and --no-recursion so they do not pile up.
2425# Strip out --silent because we don't want to record it for future runs.
2426# Also quote any args containing shell meta-characters.
2427# Make two passes to allow for proper duplicate-argument suppression.
2428ac_configure_args=
2429ac_configure_args0=
2430ac_configure_args1=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002431ac_must_keep_next=false
2432for ac_pass in 1 2
2433do
2434 for ac_arg
2435 do
2436 case $ac_arg in
2437 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2438 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2439 | -silent | --silent | --silen | --sile | --sil)
2440 continue ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002441 *\'*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002442 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002443 esac
2444 case $ac_pass in
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002445 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002446 2)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002447 as_fn_append ac_configure_args1 " '$ac_arg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002448 if test $ac_must_keep_next = true; then
2449 ac_must_keep_next=false # Got value, back to normal.
2450 else
2451 case $ac_arg in
2452 *=* | --config-cache | -C | -disable-* | --disable-* \
2453 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2454 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2455 | -with-* | --with-* | -without-* | --without-* | --x)
2456 case "$ac_configure_args0 " in
2457 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2458 esac
2459 ;;
2460 -* ) ac_must_keep_next=true ;;
2461 esac
2462 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002463 as_fn_append ac_configure_args " '$ac_arg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002464 ;;
2465 esac
2466 done
2467done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002468{ ac_configure_args0=; unset ac_configure_args0;}
2469{ ac_configure_args1=; unset ac_configure_args1;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002470
2471# When interrupted or exit'd, cleanup temporary files, and complete
2472# config.log. We remove comments because anyway the quotes in there
2473# would cause problems or look ugly.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002474# WARNING: Use '\'' to represent an apostrophe within the trap.
2475# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002476trap 'exit_status=$?
2477 # Save into config.log some information that might help in debugging.
2478 {
2479 echo
2480
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002481 $as_echo "## ---------------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002482## Cache variables. ##
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002483## ---------------- ##"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002484 echo
2485 # The following way of writing the cache mishandles newlines in values,
Theodore Ts'oe1052142006-10-21 21:46:47 -04002486(
2487 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2488 eval ac_val=\$$ac_var
2489 case $ac_val in #(
2490 *${as_nl}*)
2491 case $ac_var in #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002492 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002493$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002494 esac
2495 case $ac_var in #(
2496 _ | IFS | as_nl) ;; #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002497 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002498 *) { eval $ac_var=; unset $ac_var;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002499 esac ;;
2500 esac
2501 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002502 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -04002503 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2504 *${as_nl}ac_space=\ *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002505 sed -n \
Theodore Ts'oe1052142006-10-21 21:46:47 -04002506 "s/'\''/'\''\\\\'\'''\''/g;
2507 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2508 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002509 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04002510 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002511 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002512 esac |
2513 sort
2514)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002515 echo
2516
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002517 $as_echo "## ----------------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002518## Output variables. ##
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002519## ----------------- ##"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002520 echo
2521 for ac_var in $ac_subst_vars
2522 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04002523 eval ac_val=\$$ac_var
2524 case $ac_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002525 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002526 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002527 $as_echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002528 done | sort
2529 echo
2530
2531 if test -n "$ac_subst_files"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002532 $as_echo "## ------------------- ##
Theodore Ts'oe1052142006-10-21 21:46:47 -04002533## File substitutions. ##
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002534## ------------------- ##"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002535 echo
2536 for ac_var in $ac_subst_files
2537 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04002538 eval ac_val=\$$ac_var
2539 case $ac_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002540 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002541 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002542 $as_echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002543 done | sort
2544 echo
2545 fi
2546
2547 if test -s confdefs.h; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002548 $as_echo "## ----------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002549## confdefs.h. ##
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002550## ----------- ##"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002551 echo
Theodore Ts'oe1052142006-10-21 21:46:47 -04002552 cat confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002553 echo
2554 fi
2555 test "$ac_signal" != 0 &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002556 $as_echo "$as_me: caught signal $ac_signal"
2557 $as_echo "$as_me: exit $exit_status"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002558 } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002559 rm -f core *.core core.conftest.* &&
2560 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002561 exit $exit_status
Theodore Ts'oe1052142006-10-21 21:46:47 -04002562' 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002563for ac_signal in 1 2 13 15; do
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002564 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002565done
2566ac_signal=0
2567
2568# confdefs.h avoids OS command line length limits that DEFS can exceed.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002569rm -f -r conftest* confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002570
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002571$as_echo "/* confdefs.h */" > confdefs.h
2572
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002573# Predefined preprocessor variables.
2574
2575cat >>confdefs.h <<_ACEOF
2576#define PACKAGE_NAME "$PACKAGE_NAME"
2577_ACEOF
2578
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002579cat >>confdefs.h <<_ACEOF
2580#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2581_ACEOF
2582
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002583cat >>confdefs.h <<_ACEOF
2584#define PACKAGE_VERSION "$PACKAGE_VERSION"
2585_ACEOF
2586
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002587cat >>confdefs.h <<_ACEOF
2588#define PACKAGE_STRING "$PACKAGE_STRING"
2589_ACEOF
2590
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002591cat >>confdefs.h <<_ACEOF
2592#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2593_ACEOF
2594
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002595cat >>confdefs.h <<_ACEOF
2596#define PACKAGE_URL "$PACKAGE_URL"
2597_ACEOF
2598
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002599
2600# Let the site file select an alternate cache file if it wants to.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002601# Prefer an explicitly selected file to automatically selected ones.
2602ac_site_file1=NONE
2603ac_site_file2=NONE
Theodore Ts'oe1052142006-10-21 21:46:47 -04002604if test -n "$CONFIG_SITE"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002605 # We do not want a PATH search for config.site.
2606 case $CONFIG_SITE in #((
2607 -*) ac_site_file1=./$CONFIG_SITE;;
2608 */*) ac_site_file1=$CONFIG_SITE;;
2609 *) ac_site_file1=./$CONFIG_SITE;;
2610 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04002611elif test "x$prefix" != xNONE; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002612 ac_site_file1=$prefix/share/config.site
2613 ac_site_file2=$prefix/etc/config.site
Theodore Ts'oe1052142006-10-21 21:46:47 -04002614else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002615 ac_site_file1=$ac_default_prefix/share/config.site
2616 ac_site_file2=$ac_default_prefix/etc/config.site
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002617fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002618for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Theodore Ts'oe1052142006-10-21 21:46:47 -04002619do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002620 test "x$ac_site_file" = xNONE && continue
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002621 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002622 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002623$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002624 sed 's/^/| /' "$ac_site_file" >&5
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002625 . "$ac_site_file" \
2626 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2627$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2628as_fn_error $? "failed to load site script $ac_site_file
2629See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002630 fi
2631done
2632
2633if test -r "$cache_file"; then
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002634 # Some versions of bash will fail to source /dev/null (special files
2635 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2636 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002637 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002638$as_echo "$as_me: loading cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002639 case $cache_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04002640 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2641 *) . "./$cache_file";;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002642 esac
2643 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002644else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002645 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002646$as_echo "$as_me: creating cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002647 >$cache_file
2648fi
2649
Theodore Ts'o93613952014-07-03 23:44:13 -04002650gt_needs="$gt_needs "
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002651as_fn_append ac_header_list " stdlib.h"
2652as_fn_append ac_header_list " unistd.h"
2653as_fn_append ac_header_list " sys/param.h"
Theodore Ts'o93613952014-07-03 23:44:13 -04002654as_fn_append ac_func_list " symlink"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002655# Check that the precious variables saved in the cache have kept the same
2656# value.
2657ac_cache_corrupted=false
Theodore Ts'oe1052142006-10-21 21:46:47 -04002658for ac_var in $ac_precious_vars; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002659 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2660 eval ac_new_set=\$ac_env_${ac_var}_set
Theodore Ts'oe1052142006-10-21 21:46:47 -04002661 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2662 eval ac_new_val=\$ac_env_${ac_var}_value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002663 case $ac_old_set,$ac_new_set in
2664 set,)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002665 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002666$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002667 ac_cache_corrupted=: ;;
2668 ,set)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002669 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002670$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002671 ac_cache_corrupted=: ;;
2672 ,);;
2673 *)
2674 if test "x$ac_old_val" != "x$ac_new_val"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002675 # differences in whitespace do not lead to failure.
2676 ac_old_val_w=`echo x $ac_old_val`
2677 ac_new_val_w=`echo x $ac_new_val`
2678 if test "$ac_old_val_w" != "$ac_new_val_w"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002679 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002680$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2681 ac_cache_corrupted=:
2682 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002683 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002684$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2685 eval $ac_var=\$ac_old_val
2686 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002687 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002688$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002689 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002690$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002691 fi;;
2692 esac
2693 # Pass precious variables to config.status.
2694 if test "$ac_new_set" = set; then
2695 case $ac_new_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002696 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002697 *) ac_arg=$ac_var=$ac_new_val ;;
2698 esac
2699 case " $ac_configure_args " in
2700 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002701 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002702 esac
2703 fi
2704done
2705if $ac_cache_corrupted; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002706 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002707$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002708 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002709$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002710 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002711fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002712## -------------------- ##
2713## Main body of script. ##
2714## -------------------- ##
Theodore Ts'oe1052142006-10-21 21:46:47 -04002715
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002716ac_ext=c
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002717ac_cpp='$CPP $CPPFLAGS'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002718ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2719ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2720ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002721
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002722
2723
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002724ac_aux_dir=
Theodore Ts'oe1052142006-10-21 21:46:47 -04002725for ac_dir in config "$srcdir"/config; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002726 if test -f "$ac_dir/install-sh"; then
2727 ac_aux_dir=$ac_dir
2728 ac_install_sh="$ac_aux_dir/install-sh -c"
2729 break
2730 elif test -f "$ac_dir/install.sh"; then
2731 ac_aux_dir=$ac_dir
2732 ac_install_sh="$ac_aux_dir/install.sh -c"
2733 break
2734 elif test -f "$ac_dir/shtool"; then
2735 ac_aux_dir=$ac_dir
2736 ac_install_sh="$ac_aux_dir/shtool install -c"
2737 break
2738 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002739done
2740if test -z "$ac_aux_dir"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002741 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002742fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002743
2744# These three variables are undocumented and unsupported,
2745# and are intended to be withdrawn in a future Autoconf release.
2746# They can cause serious problems if a builder's source tree is in a directory
2747# whose full name contains unusual characters.
2748ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2749ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2750ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2751
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00002752
Theodore Ts'od1154eb2011-09-18 17:34:37 -04002753ac_config_headers="$ac_config_headers lib/config.h"
2754
2755
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002756MCONFIG=./MCONFIG
2757
Theodore Ts'o74becf31997-04-26 14:37:06 +00002758BINARY_TYPE=bin
2759E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
2760 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2761DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2762 | tr \" " "`
Theodore Ts'o2ab53822016-03-15 01:10:29 -04002763E2FSPROGS_DAY=$(echo $DATE | awk -F- '{print $1}' | sed -e '/^[1-9]$/s/^/0/')
Theodore Ts'o74becf31997-04-26 14:37:06 +00002764MONTH=`echo $DATE | awk -F- '{print $2}'`
2765YEAR=`echo $DATE | awk -F- '{print $3}'`
2766
Theodore Ts'o14790ed1999-01-12 23:32:52 +00002767if expr $YEAR ">" 1900 > /dev/null ; then
2768 E2FSPROGS_YEAR=$YEAR
2769elif expr $YEAR ">" 90 >/dev/null ; then
Theodore Ts'o74becf31997-04-26 14:37:06 +00002770 E2FSPROGS_YEAR=19$YEAR
2771else
2772 E2FSPROGS_YEAR=20$YEAR
2773fi
2774
2775case $MONTH in
Andreas Dilger927566a2006-11-12 19:41:25 -05002776Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2777Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2778Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2779Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2780May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2781Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2782Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2783Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2784Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2785Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2786Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2787Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002788*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002789$as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
Theodore Ts'o74becf31997-04-26 14:37:06 +00002790esac
2791
Andreas Dilger927566a2006-11-12 19:41:25 -05002792base_ver=`echo $E2FSPROGS_VERSION | \
2793 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
Andreas Dilger927566a2006-11-12 19:41:25 -05002794
2795date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2796
2797case $E2FSPROGS_VERSION in
2798*-WIP|pre-*)
Theodore Ts'o2ab53822016-03-15 01:10:29 -04002799 E2FSPROGS_PKGVER="$base_ver~WIP.$date_spec"
Andreas Dilger927566a2006-11-12 19:41:25 -05002800 ;;
2801*)
2802 E2FSPROGS_PKGVER="$base_ver"
2803 ;;
2804esac
2805
2806unset DATE MONTH YEAR base_ver pre_vers date_spec
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002808$as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002810$as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +00002811
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002812
2813
2814
Andreas Dilger927566a2006-11-12 19:41:25 -05002815
Theodore Ts'o6c59a662014-01-04 20:44:29 -05002816WITH_DIET_LIBC=
2817
2818# Check whether --with-diet-libc was given.
2819if test "${with_diet_libc+set}" = set; then :
2820 withval=$with_diet_libc; CC="diet cc -nostdinc"
2821WITH_DIET_LIBC=yes
2822if test -z "$LIBS"
2823then
2824 LIBS="-lcompat"
2825else
2826 LIBS="$LIBS -lcompat"
2827fi
2828{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
2829$as_echo "CC=$CC" >&6; }
2830fi
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002831# Make sure we can run config.sub.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002832$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002833 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002834
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002836$as_echo_n "checking build system type... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002837if ${ac_cv_build+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002838 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002839else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002840 ac_build_alias=$build_alias
2841test "x$ac_build_alias" = x &&
2842 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2843test "x$ac_build_alias" = x &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002844 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002845ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002846 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002847
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002848fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002850$as_echo "$ac_cv_build" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002851case $ac_cv_build in
2852*-*-*) ;;
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002853*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002854esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002855build=$ac_cv_build
Theodore Ts'oe1052142006-10-21 21:46:47 -04002856ac_save_IFS=$IFS; IFS='-'
2857set x $ac_cv_build
2858shift
2859build_cpu=$1
2860build_vendor=$2
2861shift; shift
2862# Remember, the first character of IFS is used to create $*,
2863# except with old shells:
2864build_os=$*
2865IFS=$ac_save_IFS
2866case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002867
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002868
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002870$as_echo_n "checking host system type... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002871if ${ac_cv_host+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002872 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002873else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002874 if test "x$host_alias" = x; then
2875 ac_cv_host=$ac_cv_build
2876else
2877 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002878 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002879fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002880
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002881fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002883$as_echo "$ac_cv_host" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002884case $ac_cv_host in
2885*-*-*) ;;
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002886*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002887esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002888host=$ac_cv_host
Theodore Ts'oe1052142006-10-21 21:46:47 -04002889ac_save_IFS=$IFS; IFS='-'
2890set x $ac_cv_host
2891shift
2892host_cpu=$1
2893host_vendor=$2
2894shift; shift
2895# Remember, the first character of IFS is used to create $*,
2896# except with old shells:
2897host_os=$*
2898IFS=$ac_save_IFS
2899case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002900
2901
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002902DLOPEN_LIB=''
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002903ac_ext=c
2904ac_cpp='$CPP $CPPFLAGS'
2905ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2906ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2907ac_compiler_gnu=$ac_cv_c_compiler_gnu
2908if test -n "$ac_tool_prefix"; then
2909 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2910set dummy ${ac_tool_prefix}gcc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002912$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002913if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002914 $as_echo_n "(cached) " >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002915else
2916 if test -n "$CC"; then
2917 ac_cv_prog_CC="$CC" # Let the user override the test.
2918else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2920for as_dir in $PATH
2921do
2922 IFS=$as_save_IFS
2923 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002924 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002926 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002928 break 2
2929 fi
2930done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002931 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002932IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002933
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002934fi
2935fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002936CC=$ac_cv_prog_CC
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002937if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002939$as_echo "$CC" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002940else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002942$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002943fi
2944
Theodore Ts'oe1052142006-10-21 21:46:47 -04002945
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002946fi
2947if test -z "$ac_cv_prog_CC"; then
2948 ac_ct_CC=$CC
2949 # Extract the first word of "gcc", so it can be a program name with args.
2950set dummy gcc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002952$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002953if ${ac_cv_prog_ac_ct_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002954 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002955else
2956 if test -n "$ac_ct_CC"; then
2957 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2958else
2959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2960for as_dir in $PATH
2961do
2962 IFS=$as_save_IFS
2963 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002964 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002966 ac_cv_prog_ac_ct_CC="gcc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002968 break 2
2969 fi
2970done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002971 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002972IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002973
2974fi
2975fi
2976ac_ct_CC=$ac_cv_prog_ac_ct_CC
2977if test -n "$ac_ct_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002979$as_echo "$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002980else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002982$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002983fi
2984
Theodore Ts'oe1052142006-10-21 21:46:47 -04002985 if test "x$ac_ct_CC" = x; then
2986 CC=""
2987 else
2988 case $cross_compiling:$ac_tool_warned in
2989yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002990{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002991$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04002992ac_tool_warned=yes ;;
2993esac
2994 CC=$ac_ct_CC
2995 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002996else
2997 CC="$ac_cv_prog_CC"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002998fi
2999
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003000if test -z "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003001 if test -n "$ac_tool_prefix"; then
3002 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003003set dummy ${ac_tool_prefix}cc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003005$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003006if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003007 $as_echo_n "(cached) " >&6
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003008else
3009 if test -n "$CC"; then
3010 ac_cv_prog_CC="$CC" # Let the user override the test.
3011else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3013for as_dir in $PATH
3014do
3015 IFS=$as_save_IFS
3016 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003017 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003019 ac_cv_prog_CC="${ac_tool_prefix}cc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003021 break 2
3022 fi
3023done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003024 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003025IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003026
3027fi
3028fi
3029CC=$ac_cv_prog_CC
3030if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003032$as_echo "$CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003033else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003035$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003036fi
3037
Theodore Ts'oe1052142006-10-21 21:46:47 -04003038
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003039 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003040fi
3041if test -z "$CC"; then
3042 # Extract the first word of "cc", so it can be a program name with args.
3043set dummy cc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003045$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003046if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003047 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003048else
3049 if test -n "$CC"; then
3050 ac_cv_prog_CC="$CC" # Let the user override the test.
3051else
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003052 ac_prog_rejected=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003053as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3054for as_dir in $PATH
3055do
3056 IFS=$as_save_IFS
3057 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003058 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003060 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3061 ac_prog_rejected=yes
3062 continue
3063 fi
3064 ac_cv_prog_CC="cc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003066 break 2
3067 fi
3068done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003069 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003070IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003071
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003072if test $ac_prog_rejected = yes; then
3073 # We found a bogon in the path, so make sure we never use it.
3074 set dummy $ac_cv_prog_CC
3075 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003076 if test $# != 0; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003077 # We chose a different compiler from the bogus one.
3078 # However, it has the same basename, so the bogon will be chosen
3079 # first if we set CC to just the basename; use the full file name.
3080 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003081 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003082 fi
3083fi
3084fi
3085fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003086CC=$ac_cv_prog_CC
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003087if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003089$as_echo "$CC" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003090else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003092$as_echo "no" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003093fi
3094
Theodore Ts'oe1052142006-10-21 21:46:47 -04003095
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003096fi
3097if test -z "$CC"; then
3098 if test -n "$ac_tool_prefix"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003099 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003100 do
3101 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3102set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003104$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003105if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003106 $as_echo_n "(cached) " >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003107else
3108 if test -n "$CC"; then
3109 ac_cv_prog_CC="$CC" # Let the user override the test.
3110else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3112for as_dir in $PATH
3113do
3114 IFS=$as_save_IFS
3115 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003116 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003118 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003120 break 2
3121 fi
3122done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003123 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003124IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003125
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003126fi
3127fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003128CC=$ac_cv_prog_CC
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003129if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003131$as_echo "$CC" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003132else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003134$as_echo "no" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003135fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003136
Theodore Ts'oe1052142006-10-21 21:46:47 -04003137
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003138 test -n "$CC" && break
3139 done
3140fi
3141if test -z "$CC"; then
3142 ac_ct_CC=$CC
Theodore Ts'oe1052142006-10-21 21:46:47 -04003143 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003144do
3145 # Extract the first word of "$ac_prog", so it can be a program name with args.
3146set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003148$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003149if ${ac_cv_prog_ac_ct_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003150 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003151else
3152 if test -n "$ac_ct_CC"; then
3153 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3154else
3155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3156for as_dir in $PATH
3157do
3158 IFS=$as_save_IFS
3159 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003160 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003162 ac_cv_prog_ac_ct_CC="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003164 break 2
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003165 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003166done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003167 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003168IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003169
3170fi
3171fi
3172ac_ct_CC=$ac_cv_prog_ac_ct_CC
3173if test -n "$ac_ct_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003175$as_echo "$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003176else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003178$as_echo "no" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003179fi
3180
Theodore Ts'oe1052142006-10-21 21:46:47 -04003181
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003182 test -n "$ac_ct_CC" && break
3183done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003184
Theodore Ts'oe1052142006-10-21 21:46:47 -04003185 if test "x$ac_ct_CC" = x; then
3186 CC=""
3187 else
3188 case $cross_compiling:$ac_tool_warned in
3189yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003190{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003191$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04003192ac_tool_warned=yes ;;
3193esac
3194 CC=$ac_ct_CC
3195 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003196fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003197
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003198fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003199
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003200
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003201test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003202$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003203as_fn_error $? "no acceptable C compiler found in \$PATH
3204See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003205
3206# Provide some information about the compiler.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003207$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003208set X $ac_compile
3209ac_compiler=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003210for ac_option in --version -v -V -qversion; do
3211 { { ac_try="$ac_compiler $ac_option >&5"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003212case "(($ac_try" in
3213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3214 *) ac_try_echo=$ac_try;;
3215esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003216eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3217$as_echo "$ac_try_echo"; } >&5
3218 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003219 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003220 if test -s conftest.err; then
3221 sed '10a\
3222... rest of stderr output deleted ...
3223 10q' conftest.err >conftest.er1
3224 cat conftest.er1 >&5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003225 fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003226 rm -f conftest.er1 conftest.err
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003227 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3228 test $ac_status = 0; }
3229done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003230
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003231cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003232/* end confdefs.h. */
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003233
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003234int
3235main ()
3236{
3237
3238 ;
3239 return 0;
3240}
3241_ACEOF
3242ac_clean_files_save=$ac_clean_files
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003243ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003244# Try to create an executable without -o first, disregard a.out.
3245# It will help us diagnose broken compilers, and finding out an intuition
3246# of exeext.
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3248$as_echo_n "checking whether the C compiler works... " >&6; }
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003249ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3250
3251# The possible output files:
3252ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3253
Theodore Ts'oe1052142006-10-21 21:46:47 -04003254ac_rmfiles=
3255for ac_file in $ac_files
3256do
3257 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003258 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003259 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3260 esac
3261done
3262rm -f $ac_rmfiles
3263
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003264if { { ac_try="$ac_link_default"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003265case "(($ac_try" in
3266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3267 *) ac_try_echo=$ac_try;;
3268esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003269eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3270$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003271 (eval "$ac_link_default") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003272 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3274 test $ac_status = 0; }; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003275 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3276# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3277# in a Makefile. We should not override ac_cv_exeext if it was cached,
3278# so that the user can short-circuit this test for compilers unknown to
3279# Autoconf.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003280for ac_file in $ac_files ''
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003281do
3282 test -f "$ac_file" || continue
3283 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003284 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003285 ;;
3286 [ab].out )
3287 # We found the default executable, but exeext='' is most
3288 # certainly right.
3289 break;;
3290 *.* )
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003291 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003292 then :; else
3293 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3294 fi
3295 # We set ac_cv_exeext here because the later test for it is not
3296 # safe: cross compilers may not add the suffix if given an `-o'
3297 # argument, so we may need to know it at that point already.
3298 # Even if this section looks crufty: it has the advantage of
3299 # actually working.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003300 break;;
3301 * )
3302 break;;
3303 esac
3304done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003305test "$ac_cv_exeext" = no && ac_cv_exeext=
3306
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003307else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003308 ac_file=''
3309fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003310if test -z "$ac_file"; then :
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3312$as_echo "no" >&6; }
3313$as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003314sed 's/^/| /' conftest.$ac_ext >&5
3315
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003316{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003317$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003318as_fn_error 77 "C compiler cannot create executables
3319See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003320else
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3322$as_echo "yes" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003323fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3325$as_echo_n "checking for C compiler default output file name... " >&6; }
3326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3327$as_echo "$ac_file" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003328ac_exeext=$ac_cv_exeext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003329
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003330rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003331ac_clean_files=$ac_clean_files_save
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003333$as_echo_n "checking for suffix of executables... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003334if { { ac_try="$ac_link"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003335case "(($ac_try" in
3336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3337 *) ac_try_echo=$ac_try;;
3338esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003339eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3340$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003341 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003342 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3344 test $ac_status = 0; }; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003345 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3346# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3347# work properly (i.e., refer to `conftest.exe'), while it won't with
3348# `rm'.
3349for ac_file in conftest.exe conftest conftest.*; do
3350 test -f "$ac_file" || continue
3351 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003352 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003353 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003354 break;;
3355 * ) break;;
3356 esac
3357done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003358else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003359 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003360$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003361as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3362See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003363fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003364rm -f conftest conftest$ac_cv_exeext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003366$as_echo "$ac_cv_exeext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003367
3368rm -f conftest.$ac_ext
3369EXEEXT=$ac_cv_exeext
3370ac_exeext=$EXEEXT
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003371cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3372/* end confdefs.h. */
3373#include <stdio.h>
3374int
3375main ()
3376{
3377FILE *f = fopen ("conftest.out", "w");
3378 return ferror (f) || fclose (f) != 0;
3379
3380 ;
3381 return 0;
3382}
3383_ACEOF
3384ac_clean_files="$ac_clean_files conftest.out"
3385# Check that the compiler produces executables we can run. If not, either
3386# the compiler is broken, or we cross compile.
3387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3388$as_echo_n "checking whether we are cross compiling... " >&6; }
3389if test "$cross_compiling" != yes; then
3390 { { ac_try="$ac_link"
3391case "(($ac_try" in
3392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3393 *) ac_try_echo=$ac_try;;
3394esac
3395eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3396$as_echo "$ac_try_echo"; } >&5
3397 (eval "$ac_link") 2>&5
3398 ac_status=$?
3399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3400 test $ac_status = 0; }
3401 if { ac_try='./conftest$ac_cv_exeext'
3402 { { case "(($ac_try" in
3403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3404 *) ac_try_echo=$ac_try;;
3405esac
3406eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3407$as_echo "$ac_try_echo"; } >&5
3408 (eval "$ac_try") 2>&5
3409 ac_status=$?
3410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3411 test $ac_status = 0; }; }; then
3412 cross_compiling=no
3413 else
3414 if test "$cross_compiling" = maybe; then
3415 cross_compiling=yes
3416 else
3417 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3418$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003419as_fn_error $? "cannot run C compiled programs.
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003420If you meant to cross compile, use \`--host'.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003421See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003422 fi
3423 fi
3424fi
3425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3426$as_echo "$cross_compiling" >&6; }
3427
3428rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3429ac_clean_files=$ac_clean_files_save
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003431$as_echo_n "checking for suffix of object files... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003432if ${ac_cv_objext+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003433 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003434else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003436/* end confdefs.h. */
3437
3438int
3439main ()
3440{
3441
3442 ;
3443 return 0;
3444}
3445_ACEOF
3446rm -f conftest.o conftest.obj
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003447if { { ac_try="$ac_compile"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003448case "(($ac_try" in
3449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3450 *) ac_try_echo=$ac_try;;
3451esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003452eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3453$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003454 (eval "$ac_compile") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003455 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3457 test $ac_status = 0; }; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003458 for ac_file in conftest.o conftest.obj conftest.*; do
3459 test -f "$ac_file" || continue;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003460 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003461 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003462 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3463 break;;
3464 esac
3465done
3466else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003467 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003468sed 's/^/| /' conftest.$ac_ext >&5
3469
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003470{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003471$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003472as_fn_error $? "cannot compute suffix of object files: cannot compile
3473See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003474fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003475rm -f conftest.$ac_cv_objext conftest.$ac_ext
3476fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003478$as_echo "$ac_cv_objext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003479OBJEXT=$ac_cv_objext
3480ac_objext=$OBJEXT
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003482$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003483if ${ac_cv_c_compiler_gnu+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003484 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003485else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003487/* end confdefs.h. */
3488
3489int
3490main ()
3491{
3492#ifndef __GNUC__
3493 choke me
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003494#endif
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003495
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003496 ;
3497 return 0;
3498}
3499_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003500if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003501 ac_compiler_gnu=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003502else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003503 ac_compiler_gnu=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003504fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003506ac_cv_c_compiler_gnu=$ac_compiler_gnu
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003507
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003508fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003510$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3511if test $ac_compiler_gnu = yes; then
3512 GCC=yes
3513else
3514 GCC=
3515fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003516ac_test_CFLAGS=${CFLAGS+set}
3517ac_save_CFLAGS=$CFLAGS
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003519$as_echo_n "checking whether $CC accepts -g... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003520if ${ac_cv_prog_cc_g+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003521 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003522else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003523 ac_save_c_werror_flag=$ac_c_werror_flag
3524 ac_c_werror_flag=yes
3525 ac_cv_prog_cc_g=no
3526 CFLAGS="-g"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003528/* end confdefs.h. */
3529
3530int
3531main ()
3532{
3533
3534 ;
3535 return 0;
3536}
3537_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003538if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003539 ac_cv_prog_cc_g=yes
3540else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003541 CFLAGS=""
3542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003543/* end confdefs.h. */
3544
3545int
3546main ()
3547{
3548
3549 ;
3550 return 0;
3551}
3552_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003553if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003554
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003555else
3556 ac_c_werror_flag=$ac_save_c_werror_flag
Theodore Ts'oe1052142006-10-21 21:46:47 -04003557 CFLAGS="-g"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003559/* end confdefs.h. */
3560
3561int
3562main ()
3563{
3564
3565 ;
3566 return 0;
3567}
3568_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003569if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003570 ac_cv_prog_cc_g=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003571fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003573fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3575fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3577 ac_c_werror_flag=$ac_save_c_werror_flag
3578fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003580$as_echo "$ac_cv_prog_cc_g" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003581if test "$ac_test_CFLAGS" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003582 CFLAGS=$ac_save_CFLAGS
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003583elif test $ac_cv_prog_cc_g = yes; then
3584 if test "$GCC" = yes; then
3585 CFLAGS="-g -O2"
3586 else
3587 CFLAGS="-g"
3588 fi
3589else
3590 if test "$GCC" = yes; then
3591 CFLAGS="-O2"
3592 else
3593 CFLAGS=
3594 fi
3595fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003597$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003598if ${ac_cv_prog_cc_c89+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003599 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003600else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003601 ac_cv_prog_cc_c89=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003602ac_save_CC=$CC
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003603cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003604/* end confdefs.h. */
3605#include <stdarg.h>
3606#include <stdio.h>
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003607struct stat;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003608/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3609struct buf { int x; };
3610FILE * (*rcsopen) (struct buf *, struct stat *, int);
3611static char *e (p, i)
3612 char **p;
3613 int i;
3614{
3615 return p[i];
3616}
3617static char *f (char * (*g) (char **, int), char **p, ...)
3618{
3619 char *s;
3620 va_list v;
3621 va_start (v,p);
3622 s = g (p, va_arg (v,int));
3623 va_end (v);
3624 return s;
3625}
3626
3627/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3628 function prototypes and stuff, but not '\xHH' hex character constants.
3629 These don't provoke an error unfortunately, instead are silently treated
Theodore Ts'oe1052142006-10-21 21:46:47 -04003630 as 'x'. The following induces an error, until -std is added to get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003631 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3632 array size at least. It's necessary to write '\x00'==0 to get something
Theodore Ts'oe1052142006-10-21 21:46:47 -04003633 that's true only with -std. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003634int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3635
Theodore Ts'oe1052142006-10-21 21:46:47 -04003636/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3637 inside strings and character constants. */
3638#define FOO(x) 'x'
3639int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3640
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003641int test (int i, double x);
3642struct s1 {int (*f) (int a);};
3643struct s2 {int (*f) (double a);};
3644int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3645int argc;
3646char **argv;
3647int
3648main ()
3649{
3650return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3651 ;
3652 return 0;
3653}
3654_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003655for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3656 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003657do
3658 CC="$ac_save_CC $ac_arg"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003659 if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003660 ac_cv_prog_cc_c89=$ac_arg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003661fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003662rm -f core conftest.err conftest.$ac_objext
3663 test "x$ac_cv_prog_cc_c89" != "xno" && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003664done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003665rm -f conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003666CC=$ac_save_CC
3667
3668fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003669# AC_CACHE_VAL
3670case "x$ac_cv_prog_cc_c89" in
3671 x)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003673$as_echo "none needed" >&6; } ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003674 xno)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003676$as_echo "unsupported" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003677 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04003678 CC="$CC $ac_cv_prog_cc_c89"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003680$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003681esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003682if test "x$ac_cv_prog_cc_c89" != xno; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003683
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003684fi
3685
3686ac_ext=c
3687ac_cpp='$CPP $CPPFLAGS'
3688ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3689ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3690ac_compiler_gnu=$ac_cv_c_compiler_gnu
3691
3692
3693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3694$as_echo_n "checking for dlopen in -ldl... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003695if ${ac_cv_lib_dl_dlopen+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003696 $as_echo_n "(cached) " >&6
3697else
3698 ac_check_lib_save_LIBS=$LIBS
3699LIBS="-ldl $LIBS"
3700cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3701/* end confdefs.h. */
3702
3703/* Override any GCC internal prototype to avoid an error.
3704 Use char because int might match the return type of a GCC
3705 builtin and then its argument prototype would still apply. */
3706#ifdef __cplusplus
3707extern "C"
3708#endif
3709char dlopen ();
3710int
3711main ()
3712{
3713return dlopen ();
3714 ;
3715 return 0;
3716}
3717_ACEOF
3718if ac_fn_c_try_link "$LINENO"; then :
3719 ac_cv_lib_dl_dlopen=yes
3720else
3721 ac_cv_lib_dl_dlopen=no
3722fi
3723rm -f core conftest.err conftest.$ac_objext \
3724 conftest$ac_exeext conftest.$ac_ext
3725LIBS=$ac_check_lib_save_LIBS
3726fi
3727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3728$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003729if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003730 DLOPEN_LIB=-ldl
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003731fi
3732
3733
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003734
3735# Check whether --with-cc was given.
3736if test "${with_cc+set}" = set; then :
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003737 withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003738fi
3739
3740
3741# Check whether --with-ccopts was given.
3742if test "${with_ccopts+set}" = set; then :
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003743 withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003744fi
3745
3746
3747# Check whether --with-ldopts was given.
3748if test "${with_ldopts+set}" = set; then :
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003749 withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003750fi
3751
3752ac_ext=c
3753ac_cpp='$CPP $CPPFLAGS'
3754ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3755ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3756ac_compiler_gnu=$ac_cv_c_compiler_gnu
3757if test -n "$ac_tool_prefix"; then
3758 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3759set dummy ${ac_tool_prefix}gcc; ac_word=$2
3760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3761$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003762if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003763 $as_echo_n "(cached) " >&6
3764else
3765 if test -n "$CC"; then
3766 ac_cv_prog_CC="$CC" # Let the user override the test.
3767else
3768as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3769for as_dir in $PATH
3770do
3771 IFS=$as_save_IFS
3772 test -z "$as_dir" && as_dir=.
3773 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003775 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3777 break 2
3778 fi
3779done
3780 done
3781IFS=$as_save_IFS
3782
3783fi
3784fi
3785CC=$ac_cv_prog_CC
3786if test -n "$CC"; then
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3788$as_echo "$CC" >&6; }
3789else
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3791$as_echo "no" >&6; }
3792fi
3793
3794
3795fi
3796if test -z "$ac_cv_prog_CC"; then
3797 ac_ct_CC=$CC
3798 # Extract the first word of "gcc", so it can be a program name with args.
3799set dummy gcc; ac_word=$2
3800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3801$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003802if ${ac_cv_prog_ac_ct_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003803 $as_echo_n "(cached) " >&6
3804else
3805 if test -n "$ac_ct_CC"; then
3806 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3807else
3808as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3809for as_dir in $PATH
3810do
3811 IFS=$as_save_IFS
3812 test -z "$as_dir" && as_dir=.
3813 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003815 ac_cv_prog_ac_ct_CC="gcc"
3816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3817 break 2
3818 fi
3819done
3820 done
3821IFS=$as_save_IFS
3822
3823fi
3824fi
3825ac_ct_CC=$ac_cv_prog_ac_ct_CC
3826if test -n "$ac_ct_CC"; then
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3828$as_echo "$ac_ct_CC" >&6; }
3829else
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3831$as_echo "no" >&6; }
3832fi
3833
3834 if test "x$ac_ct_CC" = x; then
3835 CC=""
3836 else
3837 case $cross_compiling:$ac_tool_warned in
3838yes:)
3839{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3840$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3841ac_tool_warned=yes ;;
3842esac
3843 CC=$ac_ct_CC
3844 fi
3845else
3846 CC="$ac_cv_prog_CC"
3847fi
3848
3849if test -z "$CC"; then
3850 if test -n "$ac_tool_prefix"; then
3851 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3852set dummy ${ac_tool_prefix}cc; ac_word=$2
3853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3854$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003855if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003856 $as_echo_n "(cached) " >&6
3857else
3858 if test -n "$CC"; then
3859 ac_cv_prog_CC="$CC" # Let the user override the test.
3860else
3861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3862for as_dir in $PATH
3863do
3864 IFS=$as_save_IFS
3865 test -z "$as_dir" && as_dir=.
3866 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003868 ac_cv_prog_CC="${ac_tool_prefix}cc"
3869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3870 break 2
3871 fi
3872done
3873 done
3874IFS=$as_save_IFS
3875
3876fi
3877fi
3878CC=$ac_cv_prog_CC
3879if test -n "$CC"; then
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3881$as_echo "$CC" >&6; }
3882else
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3884$as_echo "no" >&6; }
3885fi
3886
3887
3888 fi
3889fi
3890if test -z "$CC"; then
3891 # Extract the first word of "cc", so it can be a program name with args.
3892set dummy cc; ac_word=$2
3893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3894$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003895if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003896 $as_echo_n "(cached) " >&6
3897else
3898 if test -n "$CC"; then
3899 ac_cv_prog_CC="$CC" # Let the user override the test.
3900else
3901 ac_prog_rejected=no
3902as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3903for as_dir in $PATH
3904do
3905 IFS=$as_save_IFS
3906 test -z "$as_dir" && as_dir=.
3907 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003909 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3910 ac_prog_rejected=yes
3911 continue
3912 fi
3913 ac_cv_prog_CC="cc"
3914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3915 break 2
3916 fi
3917done
3918 done
3919IFS=$as_save_IFS
3920
3921if test $ac_prog_rejected = yes; then
3922 # We found a bogon in the path, so make sure we never use it.
3923 set dummy $ac_cv_prog_CC
3924 shift
3925 if test $# != 0; then
3926 # We chose a different compiler from the bogus one.
3927 # However, it has the same basename, so the bogon will be chosen
3928 # first if we set CC to just the basename; use the full file name.
3929 shift
3930 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3931 fi
3932fi
3933fi
3934fi
3935CC=$ac_cv_prog_CC
3936if test -n "$CC"; then
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3938$as_echo "$CC" >&6; }
3939else
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3941$as_echo "no" >&6; }
3942fi
3943
3944
3945fi
3946if test -z "$CC"; then
3947 if test -n "$ac_tool_prefix"; then
3948 for ac_prog in cl.exe
3949 do
3950 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3951set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3953$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003954if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003955 $as_echo_n "(cached) " >&6
3956else
3957 if test -n "$CC"; then
3958 ac_cv_prog_CC="$CC" # Let the user override the test.
3959else
3960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3961for as_dir in $PATH
3962do
3963 IFS=$as_save_IFS
3964 test -z "$as_dir" && as_dir=.
3965 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003967 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3969 break 2
3970 fi
3971done
3972 done
3973IFS=$as_save_IFS
3974
3975fi
3976fi
3977CC=$ac_cv_prog_CC
3978if test -n "$CC"; then
3979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3980$as_echo "$CC" >&6; }
3981else
3982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3983$as_echo "no" >&6; }
3984fi
3985
3986
3987 test -n "$CC" && break
3988 done
3989fi
3990if test -z "$CC"; then
3991 ac_ct_CC=$CC
3992 for ac_prog in cl.exe
3993do
3994 # Extract the first word of "$ac_prog", so it can be a program name with args.
3995set dummy $ac_prog; ac_word=$2
3996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3997$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003998if ${ac_cv_prog_ac_ct_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003999 $as_echo_n "(cached) " >&6
4000else
4001 if test -n "$ac_ct_CC"; then
4002 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4003else
4004as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4005for as_dir in $PATH
4006do
4007 IFS=$as_save_IFS
4008 test -z "$as_dir" && as_dir=.
4009 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004011 ac_cv_prog_ac_ct_CC="$ac_prog"
4012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4013 break 2
4014 fi
4015done
4016 done
4017IFS=$as_save_IFS
4018
4019fi
4020fi
4021ac_ct_CC=$ac_cv_prog_ac_ct_CC
4022if test -n "$ac_ct_CC"; then
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4024$as_echo "$ac_ct_CC" >&6; }
4025else
4026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4027$as_echo "no" >&6; }
4028fi
4029
4030
4031 test -n "$ac_ct_CC" && break
4032done
4033
4034 if test "x$ac_ct_CC" = x; then
4035 CC=""
4036 else
4037 case $cross_compiling:$ac_tool_warned in
4038yes:)
4039{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4040$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4041ac_tool_warned=yes ;;
4042esac
4043 CC=$ac_ct_CC
4044 fi
4045fi
4046
4047fi
4048
4049
4050test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4051$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004052as_fn_error $? "no acceptable C compiler found in \$PATH
4053See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004054
4055# Provide some information about the compiler.
4056$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4057set X $ac_compile
4058ac_compiler=$2
4059for ac_option in --version -v -V -qversion; do
4060 { { ac_try="$ac_compiler $ac_option >&5"
4061case "(($ac_try" in
4062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4063 *) ac_try_echo=$ac_try;;
4064esac
4065eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4066$as_echo "$ac_try_echo"; } >&5
4067 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4068 ac_status=$?
4069 if test -s conftest.err; then
4070 sed '10a\
4071... rest of stderr output deleted ...
4072 10q' conftest.err >conftest.er1
4073 cat conftest.er1 >&5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004074 fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04004075 rm -f conftest.er1 conftest.err
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4077 test $ac_status = 0; }
4078done
4079
4080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4081$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004082if ${ac_cv_c_compiler_gnu+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004083 $as_echo_n "(cached) " >&6
4084else
4085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4086/* end confdefs.h. */
4087
4088int
4089main ()
4090{
4091#ifndef __GNUC__
4092 choke me
4093#endif
4094
4095 ;
4096 return 0;
4097}
4098_ACEOF
4099if ac_fn_c_try_compile "$LINENO"; then :
4100 ac_compiler_gnu=yes
4101else
4102 ac_compiler_gnu=no
4103fi
4104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4105ac_cv_c_compiler_gnu=$ac_compiler_gnu
4106
4107fi
4108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4109$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4110if test $ac_compiler_gnu = yes; then
4111 GCC=yes
4112else
4113 GCC=
4114fi
4115ac_test_CFLAGS=${CFLAGS+set}
4116ac_save_CFLAGS=$CFLAGS
4117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4118$as_echo_n "checking whether $CC accepts -g... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004119if ${ac_cv_prog_cc_g+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004120 $as_echo_n "(cached) " >&6
4121else
4122 ac_save_c_werror_flag=$ac_c_werror_flag
4123 ac_c_werror_flag=yes
4124 ac_cv_prog_cc_g=no
4125 CFLAGS="-g"
4126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4127/* end confdefs.h. */
4128
4129int
4130main ()
4131{
4132
4133 ;
4134 return 0;
4135}
4136_ACEOF
4137if ac_fn_c_try_compile "$LINENO"; then :
4138 ac_cv_prog_cc_g=yes
4139else
4140 CFLAGS=""
4141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4142/* end confdefs.h. */
4143
4144int
4145main ()
4146{
4147
4148 ;
4149 return 0;
4150}
4151_ACEOF
4152if ac_fn_c_try_compile "$LINENO"; then :
4153
4154else
4155 ac_c_werror_flag=$ac_save_c_werror_flag
4156 CFLAGS="-g"
4157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4158/* end confdefs.h. */
4159
4160int
4161main ()
4162{
4163
4164 ;
4165 return 0;
4166}
4167_ACEOF
4168if ac_fn_c_try_compile "$LINENO"; then :
4169 ac_cv_prog_cc_g=yes
4170fi
4171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4172fi
4173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4174fi
4175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4176 ac_c_werror_flag=$ac_save_c_werror_flag
4177fi
4178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4179$as_echo "$ac_cv_prog_cc_g" >&6; }
4180if test "$ac_test_CFLAGS" = set; then
4181 CFLAGS=$ac_save_CFLAGS
4182elif test $ac_cv_prog_cc_g = yes; then
4183 if test "$GCC" = yes; then
4184 CFLAGS="-g -O2"
4185 else
4186 CFLAGS="-g"
4187 fi
4188else
4189 if test "$GCC" = yes; then
4190 CFLAGS="-O2"
4191 else
4192 CFLAGS=
4193 fi
4194fi
4195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4196$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004197if ${ac_cv_prog_cc_c89+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004198 $as_echo_n "(cached) " >&6
4199else
4200 ac_cv_prog_cc_c89=no
4201ac_save_CC=$CC
4202cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4203/* end confdefs.h. */
4204#include <stdarg.h>
4205#include <stdio.h>
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004206struct stat;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004207/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4208struct buf { int x; };
4209FILE * (*rcsopen) (struct buf *, struct stat *, int);
4210static char *e (p, i)
4211 char **p;
4212 int i;
4213{
4214 return p[i];
4215}
4216static char *f (char * (*g) (char **, int), char **p, ...)
4217{
4218 char *s;
4219 va_list v;
4220 va_start (v,p);
4221 s = g (p, va_arg (v,int));
4222 va_end (v);
4223 return s;
4224}
4225
4226/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4227 function prototypes and stuff, but not '\xHH' hex character constants.
4228 These don't provoke an error unfortunately, instead are silently treated
4229 as 'x'. The following induces an error, until -std is added to get
4230 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4231 array size at least. It's necessary to write '\x00'==0 to get something
4232 that's true only with -std. */
4233int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4234
4235/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4236 inside strings and character constants. */
4237#define FOO(x) 'x'
4238int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4239
4240int test (int i, double x);
4241struct s1 {int (*f) (int a);};
4242struct s2 {int (*f) (double a);};
4243int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4244int argc;
4245char **argv;
4246int
4247main ()
4248{
4249return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4250 ;
4251 return 0;
4252}
4253_ACEOF
4254for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4255 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4256do
4257 CC="$ac_save_CC $ac_arg"
4258 if ac_fn_c_try_compile "$LINENO"; then :
4259 ac_cv_prog_cc_c89=$ac_arg
4260fi
4261rm -f core conftest.err conftest.$ac_objext
4262 test "x$ac_cv_prog_cc_c89" != "xno" && break
4263done
4264rm -f conftest.$ac_ext
4265CC=$ac_save_CC
4266
4267fi
4268# AC_CACHE_VAL
4269case "x$ac_cv_prog_cc_c89" in
4270 x)
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4272$as_echo "none needed" >&6; } ;;
4273 xno)
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4275$as_echo "unsupported" >&6; } ;;
4276 *)
4277 CC="$CC $ac_cv_prog_cc_c89"
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4279$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4280esac
4281if test "x$ac_cv_prog_cc_c89" != xno; then :
4282
4283fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004284
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004285ac_ext=c
4286ac_cpp='$CPP $CPPFLAGS'
4287ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4288ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4289ac_compiler_gnu=$ac_cv_c_compiler_gnu
4290
Theodore Ts'o9b3018a2011-08-11 14:56:49 -04004291if test "$GCC" = yes; then
4292 RDYNAMIC="-rdynamic"
4293
4294fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004295ac_ext=c
4296ac_cpp='$CPP $CPPFLAGS'
4297ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4298ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4299ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004301$as_echo_n "checking how to run the C preprocessor... " >&6; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004302# On Suns, sometimes $CPP names a directory.
4303if test -n "$CPP" && test -d "$CPP"; then
4304 CPP=
4305fi
4306if test -z "$CPP"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004307 if ${ac_cv_prog_CPP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004308 $as_echo_n "(cached) " >&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004309else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004310 # Double quotes because CPP needs to be expanded
4311 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4312 do
4313 ac_preproc_ok=false
4314for ac_c_preproc_warn_flag in '' yes
4315do
4316 # Use a header file that comes with gcc, so configuring glibc
4317 # with a fresh cross-compiler works.
4318 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4319 # <limits.h> exists even on freestanding compilers.
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004320 # On the NeXT, cc -E runs the code through the compiler's parser,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004321 # not just through cpp. "Syntax error" is here to catch this case.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004323/* end confdefs.h. */
4324#ifdef __STDC__
4325# include <limits.h>
4326#else
4327# include <assert.h>
4328#endif
4329 Syntax error
4330_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004331if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004332
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004333else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004334 # Broken: fails on valid input.
4335continue
4336fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004337rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004338
Theodore Ts'oe1052142006-10-21 21:46:47 -04004339 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004340 # can be detected and how.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004342/* end confdefs.h. */
4343#include <ac_nonexistent.h>
4344_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004345if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004346 # Broken: success on invalid input.
4347continue
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004348else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004349 # Passes both tests.
4350ac_preproc_ok=:
4351break
4352fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004353rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004354
4355done
4356# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004357rm -f conftest.i conftest.err conftest.$ac_ext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004358if $ac_preproc_ok; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004359 break
4360fi
4361
4362 done
4363 ac_cv_prog_CPP=$CPP
4364
4365fi
4366 CPP=$ac_cv_prog_CPP
4367else
4368 ac_cv_prog_CPP=$CPP
4369fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004371$as_echo "$CPP" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004372ac_preproc_ok=false
4373for ac_c_preproc_warn_flag in '' yes
4374do
4375 # Use a header file that comes with gcc, so configuring glibc
4376 # with a fresh cross-compiler works.
4377 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4378 # <limits.h> exists even on freestanding compilers.
4379 # On the NeXT, cc -E runs the code through the compiler's parser,
4380 # not just through cpp. "Syntax error" is here to catch this case.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004382/* end confdefs.h. */
4383#ifdef __STDC__
4384# include <limits.h>
4385#else
4386# include <assert.h>
4387#endif
4388 Syntax error
4389_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004390if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004391
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004392else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004393 # Broken: fails on valid input.
4394continue
4395fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004396rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004397
Theodore Ts'oe1052142006-10-21 21:46:47 -04004398 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004399 # can be detected and how.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004401/* end confdefs.h. */
4402#include <ac_nonexistent.h>
4403_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004404if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004405 # Broken: success on invalid input.
4406continue
4407else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004408 # Passes both tests.
4409ac_preproc_ok=:
4410break
4411fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004412rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004413
4414done
4415# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004416rm -f conftest.i conftest.err conftest.$ac_ext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004417if $ac_preproc_ok; then :
4418
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004419else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004420 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004421$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004422as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4423See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004424fi
4425
4426ac_ext=c
4427ac_cpp='$CPP $CPPFLAGS'
4428ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4429ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4430ac_compiler_gnu=$ac_cv_c_compiler_gnu
4431
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004433$as_echo_n "checking for additional special compiler flags... " >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004434if test "$GCC" = yes
4435then
4436 case "$host_cpu" in
4437 alpha) addcflags="-mieee" ;;
4438 esac
4439fi
4440if test "x$addcflags" != x
4441then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004443$as_echo "$addcflags" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004444 CFLAGS="$addcflags $CFLAGS"
4445else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004447$as_echo "(none)" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004448fi
Theodore Ts'o93613952014-07-03 23:44:13 -04004449
4450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4451$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4452if ${ac_cv_path_GREP+:} false; then :
4453 $as_echo_n "(cached) " >&6
4454else
4455 if test -z "$GREP"; then
4456 ac_path_GREP_found=false
4457 # Loop through the user's path and test for each of PROGNAME-LIST
4458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4459for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4460do
4461 IFS=$as_save_IFS
4462 test -z "$as_dir" && as_dir=.
4463 for ac_prog in grep ggrep; do
4464 for ac_exec_ext in '' $ac_executable_extensions; do
4465 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4466 as_fn_executable_p "$ac_path_GREP" || continue
4467# Check for GNU ac_path_GREP and select it if it is found.
4468 # Check for GNU $ac_path_GREP
4469case `"$ac_path_GREP" --version 2>&1` in
4470*GNU*)
4471 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4472*)
4473 ac_count=0
4474 $as_echo_n 0123456789 >"conftest.in"
4475 while :
4476 do
4477 cat "conftest.in" "conftest.in" >"conftest.tmp"
4478 mv "conftest.tmp" "conftest.in"
4479 cp "conftest.in" "conftest.nl"
4480 $as_echo 'GREP' >> "conftest.nl"
4481 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4482 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4483 as_fn_arith $ac_count + 1 && ac_count=$as_val
4484 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4485 # Best one so far, save it but keep looking for a better one
4486 ac_cv_path_GREP="$ac_path_GREP"
4487 ac_path_GREP_max=$ac_count
4488 fi
4489 # 10*(2^10) chars as input seems more than enough
4490 test $ac_count -gt 10 && break
4491 done
4492 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4493esac
4494
4495 $ac_path_GREP_found && break 3
4496 done
4497 done
4498 done
4499IFS=$as_save_IFS
4500 if test -z "$ac_cv_path_GREP"; then
4501 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4502 fi
4503else
4504 ac_cv_path_GREP=$GREP
4505fi
4506
4507fi
4508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4509$as_echo "$ac_cv_path_GREP" >&6; }
4510 GREP="$ac_cv_path_GREP"
4511
4512
4513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4514$as_echo_n "checking for egrep... " >&6; }
4515if ${ac_cv_path_EGREP+:} false; then :
4516 $as_echo_n "(cached) " >&6
4517else
4518 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4519 then ac_cv_path_EGREP="$GREP -E"
4520 else
4521 if test -z "$EGREP"; then
4522 ac_path_EGREP_found=false
4523 # Loop through the user's path and test for each of PROGNAME-LIST
4524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4525for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4526do
4527 IFS=$as_save_IFS
4528 test -z "$as_dir" && as_dir=.
4529 for ac_prog in egrep; do
4530 for ac_exec_ext in '' $ac_executable_extensions; do
4531 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4532 as_fn_executable_p "$ac_path_EGREP" || continue
4533# Check for GNU ac_path_EGREP and select it if it is found.
4534 # Check for GNU $ac_path_EGREP
4535case `"$ac_path_EGREP" --version 2>&1` in
4536*GNU*)
4537 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4538*)
4539 ac_count=0
4540 $as_echo_n 0123456789 >"conftest.in"
4541 while :
4542 do
4543 cat "conftest.in" "conftest.in" >"conftest.tmp"
4544 mv "conftest.tmp" "conftest.in"
4545 cp "conftest.in" "conftest.nl"
4546 $as_echo 'EGREP' >> "conftest.nl"
4547 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4548 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4549 as_fn_arith $ac_count + 1 && ac_count=$as_val
4550 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4551 # Best one so far, save it but keep looking for a better one
4552 ac_cv_path_EGREP="$ac_path_EGREP"
4553 ac_path_EGREP_max=$ac_count
4554 fi
4555 # 10*(2^10) chars as input seems more than enough
4556 test $ac_count -gt 10 && break
4557 done
4558 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4559esac
4560
4561 $ac_path_EGREP_found && break 3
4562 done
4563 done
4564 done
4565IFS=$as_save_IFS
4566 if test -z "$ac_cv_path_EGREP"; then
4567 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4568 fi
4569else
4570 ac_cv_path_EGREP=$EGREP
4571fi
4572
4573 fi
4574fi
4575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4576$as_echo "$ac_cv_path_EGREP" >&6; }
4577 EGREP="$ac_cv_path_EGREP"
4578
4579
4580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4581$as_echo_n "checking for ANSI C header files... " >&6; }
4582if ${ac_cv_header_stdc+:} false; then :
4583 $as_echo_n "(cached) " >&6
4584else
4585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4586/* end confdefs.h. */
4587#include <stdlib.h>
4588#include <stdarg.h>
4589#include <string.h>
4590#include <float.h>
4591
4592int
4593main ()
4594{
4595
4596 ;
4597 return 0;
4598}
4599_ACEOF
4600if ac_fn_c_try_compile "$LINENO"; then :
4601 ac_cv_header_stdc=yes
4602else
4603 ac_cv_header_stdc=no
4604fi
4605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4606
4607if test $ac_cv_header_stdc = yes; then
4608 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4610/* end confdefs.h. */
4611#include <string.h>
4612
4613_ACEOF
4614if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4615 $EGREP "memchr" >/dev/null 2>&1; then :
4616
4617else
4618 ac_cv_header_stdc=no
4619fi
4620rm -f conftest*
4621
4622fi
4623
4624if test $ac_cv_header_stdc = yes; then
4625 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4627/* end confdefs.h. */
4628#include <stdlib.h>
4629
4630_ACEOF
4631if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4632 $EGREP "free" >/dev/null 2>&1; then :
4633
4634else
4635 ac_cv_header_stdc=no
4636fi
4637rm -f conftest*
4638
4639fi
4640
4641if test $ac_cv_header_stdc = yes; then
4642 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4643 if test "$cross_compiling" = yes; then :
4644 :
4645else
4646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4647/* end confdefs.h. */
4648#include <ctype.h>
4649#include <stdlib.h>
4650#if ((' ' & 0x0FF) == 0x020)
4651# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4652# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4653#else
4654# define ISLOWER(c) \
4655 (('a' <= (c) && (c) <= 'i') \
4656 || ('j' <= (c) && (c) <= 'r') \
4657 || ('s' <= (c) && (c) <= 'z'))
4658# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4659#endif
4660
4661#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4662int
4663main ()
4664{
4665 int i;
4666 for (i = 0; i < 256; i++)
4667 if (XOR (islower (i), ISLOWER (i))
4668 || toupper (i) != TOUPPER (i))
4669 return 2;
4670 return 0;
4671}
4672_ACEOF
4673if ac_fn_c_try_run "$LINENO"; then :
4674
4675else
4676 ac_cv_header_stdc=no
4677fi
4678rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4679 conftest.$ac_objext conftest.beam conftest.$ac_ext
4680fi
4681
4682fi
4683fi
4684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4685$as_echo "$ac_cv_header_stdc" >&6; }
4686if test $ac_cv_header_stdc = yes; then
4687
4688$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4689
4690fi
4691
4692# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4693for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4694 inttypes.h stdint.h unistd.h
4695do :
4696 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4697ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4698"
4699if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4700 cat >>confdefs.h <<_ACEOF
4701#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4702_ACEOF
4703
4704fi
4705
4706done
4707
4708
4709
4710 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4711if test "x$ac_cv_header_minix_config_h" = xyes; then :
4712 MINIX=yes
4713else
4714 MINIX=
4715fi
4716
4717
4718 if test "$MINIX" = yes; then
4719
4720$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4721
4722
4723$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4724
4725
4726$as_echo "#define _MINIX 1" >>confdefs.h
4727
4728 fi
4729
4730
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4732$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4733if ${ac_cv_safe_to_define___extensions__+:} false; then :
4734 $as_echo_n "(cached) " >&6
4735else
4736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4737/* end confdefs.h. */
4738
4739# define __EXTENSIONS__ 1
4740 $ac_includes_default
4741int
4742main ()
4743{
4744
4745 ;
4746 return 0;
4747}
4748_ACEOF
4749if ac_fn_c_try_compile "$LINENO"; then :
4750 ac_cv_safe_to_define___extensions__=yes
4751else
4752 ac_cv_safe_to_define___extensions__=no
4753fi
4754rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4755fi
4756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4757$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4758 test $ac_cv_safe_to_define___extensions__ = yes &&
4759 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4760
4761 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4762
4763 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4764
4765 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4766
4767 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4768
4769
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004770LIB_EXT=.a
4771STATIC_LIB_EXT=.a
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004772PROFILED_LIB_EXT=.a
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004773
Theodore Ts'oe1052142006-10-21 21:46:47 -04004774# Check whether --with-root-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004775if test "${with_root_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004776 withval=$with_root_prefix; root_prefix=$withval
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004777else
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004778 root_prefix=NONE
Theodore Ts'oe1052142006-10-21 21:46:47 -04004779fi
4780# Check whether --enable-maintainer-mode was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004781if test "${enable_maintainer_mode+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004782 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004783then
4784 MAINTAINER_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004786$as_echo "Disabling maintainer mode" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004787else
4788 MAINTAINER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004790$as_echo "Enabling maintainer mode" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004791fi
4792
4793else
4794 MAINTAINER_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004796$as_echo "Disabling maintainer mode by default" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004797
Theodore Ts'oe1052142006-10-21 21:46:47 -04004798fi
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004799
Theodore Ts'oe1052142006-10-21 21:46:47 -04004800
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04004801# Check whether --enable-symlink-install was given.
4802if test "${enable_symlink_install+set}" = set; then :
4803 enableval=$enable_symlink_install; if test "$enableval" = "no"
4804then
4805 LINK_INSTALL_FLAGS=-f
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4807$as_echo "Disabling symlinks for install" >&6; }
4808else
4809 LINK_INSTALL_FLAGS=-sf
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4811$as_echo "Enabling symlinks for install" >&6; }
4812fi
4813
4814else
4815 LINK_INSTALL_FLAGS=-f
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4817$as_echo "Disabling symlinks for install by default" >&6; }
4818
4819fi
4820
4821
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004822relative_symlink_defined=
4823# Check whether --enable-relative-symlinks was given.
4824if test "${enable_relative_symlinks+set}" = set; then :
4825 enableval=$enable_relative_symlinks; if test "$enableval" = "no"
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004826then
4827 SYMLINK_RELATIVE=
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004828 relative_symlink_defined=yes
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4830$as_echo "Disabling relative symlinks for install" >&6; }
4831else
4832 SYMLINK_RELATIVE=--relative
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004833 relative_symlink_defined=yes
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4835$as_echo "Enabling relative symlinks for install" >&6; }
4836fi
4837fi
4838
4839# Check whether --enable-symlink-relative-symlinks was given.
4840if test "${enable_symlink_relative_symlinks+set}" = set; then :
4841 enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4842then
4843 SYMLINK_RELATIVE=yes
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4845$as_echo "Disabling relative symlinks for install" >&6; }
4846else
4847 SYMLINK_RELATIVE=--relative
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4849$as_echo "Enabling relative symlinks for install" >&6; }
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004850fi
4851
4852else
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004853 if test -z "$relative_symlink_defined"
4854then
4855 SYMLINK_RELATIVE=
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4857$as_echo "Disabling relative symlinks for install by default" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004858fi
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04004859
4860fi
4861
4862
4863# Check whether --enable-symlink-build was given.
4864if test "${enable_symlink_build+set}" = set; then :
4865 enableval=$enable_symlink_build; if test "$enableval" = "no"
4866then
4867 LINK_BUILD_FLAGS=
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4869$as_echo "Disabling symlinks for build" >&6; }
4870else
4871 LINK_BUILD_FLAGS=-s
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4873$as_echo "Enabling symlinks for build" >&6; }
4874fi
4875
4876else
4877 LINK_BUILD_FLAGS=
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4879$as_echo "Disabling symlinks for build by default" >&6; }
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04004880
4881fi
4882
4883
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004884# Check whether --enable-verbose-makecmds was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004885if test "${enable_verbose_makecmds+set}" = set; then :
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004886 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4887then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004889$as_echo "Disabling verbose make commands" >&6; }
4890 E=@echo
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004891 ES=echo
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004892 Q=@
4893else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004895$as_echo "Enabling verbose make commands" >&6; }
4896 E=@\\#
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004897 ES=\\#
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004898 Q=
4899fi
4900
4901else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004903$as_echo "Disabling verbose make commands" >&6; }
4904E=@echo
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004905ES=echo
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004906Q=@
4907
4908fi
4909
4910
4911
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004912
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004913E2_PKG_CONFIG_STATIC=--static
Theodore Ts'o55da9872008-09-02 23:12:38 -04004914LDFLAG_DYNAMIC=
4915PRIVATE_LIBS_CMT=
Theodore Ts'oe1052142006-10-21 21:46:47 -04004916# Check whether --enable-elf-shlibs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004917if test "${enable_elf_shlibs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004918 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004919then
4920 ELF_CMT=#
4921 MAKEFILE_ELF=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004923$as_echo "Disabling ELF shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004924else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004925 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004926 ELF_CMT=
4927 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
Theodore Ts'of5955dd2000-10-25 02:38:39 +00004928 case "$host_os" in
4929 solaris2.*)
4930 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4931 ;;
4932 esac
Theodore Ts'o74becf31997-04-26 14:37:06 +00004933 BINARY_TYPE=elfbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004934 LIB_EXT=.so
Theodore Ts'o55da9872008-09-02 23:12:38 -04004935 PRIVATE_LIBS_CMT=#
4936 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004938$as_echo "Enabling ELF shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004939fi
4940
4941else
4942 MAKEFILE_ELF=/dev/null
4943ELF_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004945$as_echo "Disabling ELF shared libraries by default" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004946
Theodore Ts'oe1052142006-10-21 21:46:47 -04004947fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004948
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004949
Theodore Ts'oe1052142006-10-21 21:46:47 -04004950
4951# Check whether --enable-bsd-shlibs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004952if test "${enable_bsd_shlibs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004953 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004954then
4955 BSDLIB_CMT=#
4956 MAKEFILE_BSDLIB=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004958$as_echo "Disabling BSD shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004959else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004960 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004961 BSDLIB_CMT=
4962 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004963 LIB_EXT=.so
Theodore Ts'oe1f07222003-03-14 02:25:36 -05004964 case "$host_os" in
Theodore Ts'oaa75ecc2003-03-17 10:01:22 -05004965 darwin*)
Theodore Ts'oe1f07222003-03-14 02:25:36 -05004966 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4967 LIB_EXT=.dylib
4968 ;;
4969 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004971$as_echo "Enabling BSD shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004972fi
4973
4974else
4975 MAKEFILE_BSDLIB=/dev/null
4976BSDLIB_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004978$as_echo "Disabling BSD shared libraries by default" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004979
Theodore Ts'oe1052142006-10-21 21:46:47 -04004980fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004981
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004982
Theodore Ts'oe1052142006-10-21 21:46:47 -04004983
4984# Check whether --enable-profile was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004985if test "${enable_profile+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004986 enableval=$enable_profile; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004987then
4988 PROFILE_CMT=#
4989 MAKEFILE_PROFILE=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004991$as_echo "Disabling profiling libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004992else
4993 PROFILE_CMT=
4994 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
4995 PROFILED_LIB_EXT=_p.a
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004997$as_echo "Building profiling libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004998fi
4999
5000else
5001 PROFILE_CMT=#
5002MAKEFILE_PROFILE=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005004$as_echo "Disabling profiling libraries by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005005
Theodore Ts'oe1052142006-10-21 21:46:47 -04005006fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005007
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005008
Theodore Ts'oe1052142006-10-21 21:46:47 -04005009
Theodore Ts'ofedfb272014-02-23 00:17:09 -05005010# Check whether --enable-gcov was given.
5011if test "${enable_gcov+set}" = set; then :
5012 enableval=$enable_gcov; if test "$enableval" = "yes"
5013then
5014 CFLAGS="-g -fprofile-arcs -ftest-coverage"
5015 LDFLAGS="-fprofile-arcs -ftest-coverage"
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5
5017$as_echo "Enabling gcov support" >&6; }
5018fi
5019
5020fi
5021
Theodore Ts'ofd1677e2016-05-21 23:51:19 -04005022CFLAGS_SHLIB="${CFLAGS_SHLIB:-$CFLAGS}"
5023CFLAGS_STLIB="${CFLAGS_STLIB:-$CFLAGS}"
5024LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
5025LDFLAGS_STATIC=${LDFLAGS_STATIC:-$LDFLAGS}
5026# Check whether --enable-hardening was given.
5027if test "${enable_hardening+set}" = set; then :
5028 enableval=$enable_hardening; if test "$enableval" = "yes"
5029then
5030 HARDEN_CFLAGS="-D_FORTIFY_SOURCE=2 -fstack-protector-strong"
5031 HARDEN_LDFLAGS="-Wl,-z,relro -Wl,-z,now"
5032 CFLAGS="$CFLAGS $HARDEN_CFLAGS -fPIE"
5033 CFLAGS_SHLIB="$CFLAGS_SHLIB $HARDEN_CFLAGS"
5034 CFLAGS_STLIB="$CFLAGS_STLIB $HARDEN_CFLAGS -fPIE"
5035 LDFLAGS="$LDFLAGS $HARDEN_LDFLAGS -fPIE -pie"
5036 LDFLAGS_STATIC="$LDFLAGS_STATIC $HARDEN_LDFLAGS"
5037 LDFLAGS_SHLIB="$LDFLAGS_SHLIB $HARDEN_LDFLAGS"
5038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling hardening support" >&5
5039$as_echo "Enabling hardening support" >&6; }
5040fi
5041
5042fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005043
5044
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005045
Theodore Ts'oe1052142006-10-21 21:46:47 -04005046
Theodore Ts'o55da9872008-09-02 23:12:38 -04005047
5048
Theodore Ts'oe1052142006-10-21 21:46:47 -04005049# Check whether --enable-jbd-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005050if test "${enable_jbd_debug+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005051 enableval=$enable_jbd_debug; if test "$enableval" = "no"
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00005052then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005054$as_echo "Disabling journal debugging" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00005055else
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005056
5057$as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00005058
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005060$as_echo "Enabling journal debugging" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00005061fi
5062
5063else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005065$as_echo "Disabling journal debugging by default" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00005066
Theodore Ts'oe1052142006-10-21 21:46:47 -04005067fi
5068
5069# Check whether --enable-blkid-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005070if test "${enable_blkid_debug+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005071 enableval=$enable_blkid_debug; if test "$enableval" = "no"
Theodore Ts'of0a22d02003-02-22 13:19:53 -05005072then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005074$as_echo "Disabling blkid debugging" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05005075else
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005076
5077$as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
Theodore Ts'of0a22d02003-02-22 13:19:53 -05005078
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005080$as_echo "Enabling blkid debugging" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05005081fi
5082
5083else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005085$as_echo "Disabling blkid debugging by default" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05005086
Theodore Ts'oe1052142006-10-21 21:46:47 -04005087fi
5088
5089# Check whether --enable-testio-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005090if test "${enable_testio_debug+set}" = set; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005091 enableval=$enable_testio_debug;
5092if test "$enableval" = "no"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005093then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005095$as_echo "Disabling testio debugging" >&6; }
Theodore Ts'oaf773652008-09-01 11:27:27 -04005096 TEST_IO_CMT="#"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005097else
Theodore Ts'oaf773652008-09-01 11:27:27 -04005098 TEST_IO_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005099 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005100
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005102$as_echo "Enabling testio debugging" >&6; }
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005103fi
5104
5105else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005107$as_echo "Enabling testio debugging by default" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005108$as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
Theodore Ts'oaf773652008-09-01 11:27:27 -04005109
5110TEST_IO_CMT=
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005111
Theodore Ts'oe1052142006-10-21 21:46:47 -04005112fi
5113
Theodore Ts'oaf773652008-09-01 11:27:27 -04005114
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005115
5116
Theodore Ts'o93613952014-07-03 23:44:13 -04005117
5118
5119
5120
5121
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005122if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04005123 if test -n "$ac_tool_prefix"; then
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005124 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5125set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005127$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005128if ${ac_cv_path_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005129 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005130else
5131 case $PKG_CONFIG in
5132 [\\/]* | ?:[\\/]*)
5133 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5134 ;;
5135 *)
5136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5137for as_dir in $PATH
5138do
5139 IFS=$as_save_IFS
5140 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005141 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005143 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005145 break 2
5146 fi
5147done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005148 done
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005149IFS=$as_save_IFS
5150
5151 ;;
5152esac
5153fi
5154PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5155if test -n "$PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005157$as_echo "$PKG_CONFIG" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005158else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005160$as_echo "no" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005161fi
5162
5163
5164fi
5165if test -z "$ac_cv_path_PKG_CONFIG"; then
5166 ac_pt_PKG_CONFIG=$PKG_CONFIG
5167 # Extract the first word of "pkg-config", so it can be a program name with args.
5168set dummy pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005170$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005171if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005172 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005173else
5174 case $ac_pt_PKG_CONFIG in
5175 [\\/]* | ?:[\\/]*)
5176 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5177 ;;
5178 *)
5179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5180for as_dir in $PATH
5181do
5182 IFS=$as_save_IFS
5183 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005184 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005186 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005188 break 2
5189 fi
5190done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005191 done
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005192IFS=$as_save_IFS
5193
5194 ;;
5195esac
5196fi
5197ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5198if test -n "$ac_pt_PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005200$as_echo "$ac_pt_PKG_CONFIG" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005201else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005203$as_echo "no" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005204fi
5205
5206 if test "x$ac_pt_PKG_CONFIG" = x; then
5207 PKG_CONFIG=""
5208 else
5209 case $cross_compiling:$ac_tool_warned in
5210yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005211{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005212$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005213ac_tool_warned=yes ;;
5214esac
5215 PKG_CONFIG=$ac_pt_PKG_CONFIG
5216 fi
5217else
5218 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5219fi
5220
5221fi
5222if test -n "$PKG_CONFIG"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04005223 _pkg_min_version=0.9.0
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005225$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005226 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005228$as_echo "yes" >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005229 else
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005231$as_echo "no" >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005232 PKG_CONFIG=""
5233 fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005234fi
5235LIBUUID=
5236DEPLIBUUID=
5237STATIC_LIBUUID=
5238DEPSTATIC_LIBUUID=
5239PROFILED_LIBUUID=
5240DEPPROFILED_LIBUUID=
5241UUID_CMT=
5242# Check whether --enable-libuuid was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005243if test "${enable_libuuid+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005244 enableval=$enable_libuuid; if test "$enableval" = "no"
5245then
5246 if test -z "$PKG_CONFIG"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005247 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005248 fi
5249
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005251$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005252if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005253 $as_echo_n "(cached) " >&6
5254else
5255 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'o2d7583b2014-07-05 00:27:02 -04005256LIBS="-luuid $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005257cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005258/* end confdefs.h. */
5259
5260/* Override any GCC internal prototype to avoid an error.
5261 Use char because int might match the return type of a GCC
5262 builtin and then its argument prototype would still apply. */
5263#ifdef __cplusplus
5264extern "C"
5265#endif
5266char uuid_generate ();
5267int
5268main ()
5269{
5270return uuid_generate ();
5271 ;
5272 return 0;
5273}
5274_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005275if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005276 ac_cv_lib_uuid_uuid_generate=yes
5277else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005278 ac_cv_lib_uuid_uuid_generate=no
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005279fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005280rm -f core conftest.err conftest.$ac_objext \
5281 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005282LIBS=$ac_check_lib_save_LIBS
5283fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005285$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005286if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005287 LIBUUID=`$PKG_CONFIG --libs uuid`;
5288 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5289else
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005290 as_fn_error $? "external uuid library not found" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005291fi
5292
Theodore Ts'o5afdf372014-09-18 21:11:33 -04005293 PROFILED_LIBUUID=$LIBUUID
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005294 UUID_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005296$as_echo "Disabling private uuid library" >&6; }
5297else
5298 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5299 DEPLIBUUID=$LIBUUID
5300 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5301 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5302 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5303 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005305$as_echo "Enabling private uuid library" >&6; }
5306fi
5307
5308else
Theodore Ts'of5dffb82015-06-20 14:20:14 -04005309 if test -n "$PKG_CONFIG"; then
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5311$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5312if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
5313 $as_echo_n "(cached) " >&6
5314else
5315 ac_check_lib_save_LIBS=$LIBS
5316LIBS="-luuid $LIBS"
5317cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5318/* end confdefs.h. */
5319
5320/* Override any GCC internal prototype to avoid an error.
5321 Use char because int might match the return type of a GCC
5322 builtin and then its argument prototype would still apply. */
5323#ifdef __cplusplus
5324extern "C"
5325#endif
5326char uuid_generate ();
5327int
5328main ()
5329{
5330return uuid_generate ();
5331 ;
5332 return 0;
5333}
5334_ACEOF
5335if ac_fn_c_try_link "$LINENO"; then :
5336 ac_cv_lib_uuid_uuid_generate=yes
5337else
5338 ac_cv_lib_uuid_uuid_generate=no
5339fi
5340rm -f core conftest.err conftest.$ac_objext \
5341 conftest$ac_exeext conftest.$ac_ext
5342LIBS=$ac_check_lib_save_LIBS
5343fi
5344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5345$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5346if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
5347 LIBUUID=`$PKG_CONFIG --libs uuid`;
5348 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5349fi
5350
5351fi
5352if test -n "$LIBUUID"; then
5353 PROFILED_LIBUUID=$LIBUUID
5354 UUID_CMT=#
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system uuid by default" >&5
5356$as_echo "Using system uuid by default" >&6; }
5357else
5358 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5359 DEPLIBUUID=$LIBUUID
5360 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5361 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5362 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5363 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005365$as_echo "Enabling private uuid library by default" >&6; }
Theodore Ts'of5dffb82015-06-20 14:20:14 -04005366fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005367
5368fi
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
Theodore Ts'o93613952014-07-03 23:44:13 -04005379
5380
5381
5382
5383
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005384if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04005385 if test -n "$ac_tool_prefix"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005386 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5387set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005389$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005390if ${ac_cv_path_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005391 $as_echo_n "(cached) " >&6
5392else
5393 case $PKG_CONFIG in
5394 [\\/]* | ?:[\\/]*)
5395 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5396 ;;
5397 *)
5398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5399for as_dir in $PATH
5400do
5401 IFS=$as_save_IFS
5402 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005403 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005405 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005407 break 2
5408 fi
5409done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005410 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005411IFS=$as_save_IFS
5412
5413 ;;
5414esac
5415fi
5416PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5417if test -n "$PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005419$as_echo "$PKG_CONFIG" >&6; }
5420else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005422$as_echo "no" >&6; }
5423fi
5424
5425
5426fi
5427if test -z "$ac_cv_path_PKG_CONFIG"; then
5428 ac_pt_PKG_CONFIG=$PKG_CONFIG
5429 # Extract the first word of "pkg-config", so it can be a program name with args.
5430set dummy pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005432$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005433if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005434 $as_echo_n "(cached) " >&6
5435else
5436 case $ac_pt_PKG_CONFIG in
5437 [\\/]* | ?:[\\/]*)
5438 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5439 ;;
5440 *)
5441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5442for as_dir in $PATH
5443do
5444 IFS=$as_save_IFS
5445 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005446 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005448 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005450 break 2
5451 fi
5452done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005453 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005454IFS=$as_save_IFS
5455
5456 ;;
5457esac
5458fi
5459ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5460if test -n "$ac_pt_PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005462$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5463else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005465$as_echo "no" >&6; }
5466fi
5467
5468 if test "x$ac_pt_PKG_CONFIG" = x; then
5469 PKG_CONFIG=""
5470 else
5471 case $cross_compiling:$ac_tool_warned in
5472yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005473{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005474$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5475ac_tool_warned=yes ;;
5476esac
5477 PKG_CONFIG=$ac_pt_PKG_CONFIG
5478 fi
5479else
5480 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5481fi
5482
5483fi
5484if test -n "$PKG_CONFIG"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04005485 _pkg_min_version=0.9.0
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005487$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005488 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005490$as_echo "yes" >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005491 else
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005493$as_echo "no" >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005494 PKG_CONFIG=""
5495 fi
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005496fi
5497LIBBLKID=
5498DEPLIBBLKID=
5499STATIC_LIBBLKID=
5500DEPSTATIC_LIBBLKID=
5501PROFILED_LIBBLKID=
5502DEPPROFILED_LIBBLKID=
5503BLKID_CMT=
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005504
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005505# Check whether --enable-libblkid was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005506if test "${enable_libblkid+set}" = set; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005507 enableval=$enable_libblkid; if test "$enableval" = "no"
5508then
5509 if test -z "$PKG_CONFIG"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005510 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005511 fi
5512
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005514$as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005515if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005516 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005517else
5518 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'o2d7583b2014-07-05 00:27:02 -04005519LIBS="-lblkid -luuid $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005520cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005521/* end confdefs.h. */
5522
5523/* Override any GCC internal prototype to avoid an error.
5524 Use char because int might match the return type of a GCC
5525 builtin and then its argument prototype would still apply. */
5526#ifdef __cplusplus
5527extern "C"
5528#endif
5529char blkid_get_cache ();
5530int
5531main ()
5532{
5533return blkid_get_cache ();
5534 ;
5535 return 0;
5536}
5537_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005538if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005539 ac_cv_lib_blkid_blkid_get_cache=yes
5540else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005541 ac_cv_lib_blkid_blkid_get_cache=no
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005542fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005543rm -f core conftest.err conftest.$ac_objext \
5544 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005545LIBS=$ac_check_lib_save_LIBS
5546fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005548$as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005549if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005550 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5551 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5552else
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005553 as_fn_error $? "external blkid library not found" "$LINENO" 5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005554fi
5555
5556 BLKID_CMT=#
Theodore Ts'o5afdf372014-09-18 21:11:33 -04005557 PROFILED_LIBBLKID=$LIBBLKID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005559$as_echo "Disabling private blkid library" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005560else
5561 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5562 DEPLIBBLKID=$LIBBLKID
5563 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5564 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5565 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5566 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005567 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005568
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005570$as_echo "Enabling private blkid library" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005571fi
5572
5573else
Theodore Ts'of5dffb82015-06-20 14:20:14 -04005574 if test -n "$PKG_CONFIG"; then
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5576$as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5577if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5578 $as_echo_n "(cached) " >&6
5579else
5580 ac_check_lib_save_LIBS=$LIBS
5581LIBS="-lblkid $LIBS"
5582cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5583/* end confdefs.h. */
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005584
Theodore Ts'of5dffb82015-06-20 14:20:14 -04005585/* Override any GCC internal prototype to avoid an error.
5586 Use char because int might match the return type of a GCC
5587 builtin and then its argument prototype would still apply. */
5588#ifdef __cplusplus
5589extern "C"
5590#endif
5591char blkid_get_cache ();
5592int
5593main ()
5594{
5595return blkid_get_cache ();
5596 ;
5597 return 0;
5598}
5599_ACEOF
5600if ac_fn_c_try_link "$LINENO"; then :
5601 ac_cv_lib_blkid_blkid_get_cache=yes
5602else
5603 ac_cv_lib_blkid_blkid_get_cache=no
5604fi
5605rm -f core conftest.err conftest.$ac_objext \
5606 conftest$ac_exeext conftest.$ac_ext
5607LIBS=$ac_check_lib_save_LIBS
5608fi
5609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5610$as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5611if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5612 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5613 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5614fi
5615
5616fi
5617if test -n "$LIBBLKID"; then
5618 BLKID_CMT=#
5619 PROFILED_LIBBLKID=$LIBBLKID
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system blkid library by default" >&5
5621$as_echo "Using system blkid library by default" >&6; }
5622else
5623 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5624 DEPLIBBLKID=$LIBBLKID
5625 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5626 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5627 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5628 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5629 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5630
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005632$as_echo "Enabling private blkid library by default" >&6; }
Theodore Ts'of5dffb82015-06-20 14:20:14 -04005633fi
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005634
5635fi
5636
5637
5638
5639
5640
5641
5642
5643
Theodore Ts'o3df60142013-06-16 16:14:40 -04005644
5645# Check whether --enable-backtrace was given.
5646if test "${enable_backtrace+set}" = set; then :
5647 enableval=$enable_backtrace; if test "$enableval" = "no"
5648then
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
5650$as_echo "Disabling use of backtrace" >&6; }
5651 $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h
5652
5653else
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
5655$as_echo "Enabling use of backtrace" >&6; }
5656fi
5657
5658else
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
5660$as_echo "Enabling use of backtrace by default" >&6; }
5661
5662fi
5663
Theodore Ts'oe1052142006-10-21 21:46:47 -04005664# Check whether --enable-debugfs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005665if test "${enable_debugfs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005666 enableval=$enable_debugfs; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005667then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005669$as_echo "Disabling debugfs support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005670 DEBUGFS_CMT="#"
5671else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005672 DEBUGFS_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005674$as_echo "Enabling debugfs support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005675fi
5676
5677else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005679$as_echo "Enabling debugfs support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005680DEBUGFS_CMT=
5681
Theodore Ts'oe1052142006-10-21 21:46:47 -04005682fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005683
Theodore Ts'oe1052142006-10-21 21:46:47 -04005684
5685# Check whether --enable-imager was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005686if test "${enable_imager+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005687 enableval=$enable_imager; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005688then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005690$as_echo "Disabling e2image support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005691 IMAGER_CMT="#"
5692else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005693 IMAGER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005695$as_echo "Enabling e2image support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005696fi
5697
5698else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005700$as_echo "Enabling e2image support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005701IMAGER_CMT=
5702
Theodore Ts'oe1052142006-10-21 21:46:47 -04005703fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005704
Theodore Ts'oe1052142006-10-21 21:46:47 -04005705
5706# Check whether --enable-resizer was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005707if test "${enable_resizer+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005708 enableval=$enable_resizer; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005709then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005711$as_echo "Disabling e2resize support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005712 RESIZER_CMT="#"
5713else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005714 RESIZER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005716$as_echo "Enabling e2resize support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005717fi
5718
5719else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005721$as_echo "Enabling e2resize support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005722RESIZER_CMT=
5723
Theodore Ts'oe1052142006-10-21 21:46:47 -04005724fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005725
Theodore Ts'oe1052142006-10-21 21:46:47 -04005726
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05005727# Check whether --enable-defrag was given.
5728if test "${enable_defrag+set}" = set; then :
5729 enableval=$enable_defrag; if test "$enableval" = "no"
5730then
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5732$as_echo "Disabling e4defrag support" >&6; }
5733 DEFRAG_CMT="#"
5734else
5735 DEFRAG_CMT=
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5737$as_echo "Enabling e4defrag support" >&6; }
5738fi
5739
5740else
Theodore Ts'o6c59a662014-01-04 20:44:29 -05005741 if test -z "$WITH_DIET_LIBC"
5742then
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05005744$as_echo "Enabling e4defrag support by default" >&6; }
Theodore Ts'o6c59a662014-01-04 20:44:29 -05005745 DEFRAG_CMT=
5746else
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
5748$as_echo "Disabling e4defrag support by default" >&6; }
5749 DEFRAG_CMT="#"
5750fi
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05005751
5752fi
5753
5754
Theodore Ts'oe1052142006-10-21 21:46:47 -04005755# Check whether --enable-fsck was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005756if test "${enable_fsck+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005757 enableval=$enable_fsck; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005758then
5759 FSCK_PROG='' FSCK_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005761$as_echo "Not building fsck wrapper" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005762else
5763 FSCK_PROG=fsck FSCK_MAN=fsck.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005765$as_echo "Building fsck wrapper" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005766fi
5767
5768else
5769 case "$host_os" in
Theodore Ts'oe3632402004-05-04 19:39:54 -04005770 gnu*)
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005771 FSCK_PROG='' FSCK_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005773$as_echo "Not building fsck wrapper by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005774 ;;
5775 *)
5776 FSCK_PROG=fsck FSCK_MAN=fsck.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005778$as_echo "Building fsck wrapper by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005779esac
5780
Theodore Ts'oe1052142006-10-21 21:46:47 -04005781fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005782
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005783
Theodore Ts'oe1052142006-10-21 21:46:47 -04005784
5785# Check whether --enable-e2initrd-helper was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005786if test "${enable_e2initrd_helper+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005787 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
Theodore Ts'o5d407732004-09-18 14:53:14 -04005788then
5789 E2INITRD_PROG='' E2INITRD_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005791$as_echo "Not building e2initrd helper" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005792else
5793 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005795$as_echo "Building e2initrd helper" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005796fi
5797
5798else
5799 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005801$as_echo "Building e2initrd helper by default" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005802
Theodore Ts'oe1052142006-10-21 21:46:47 -04005803fi
Theodore Ts'o5d407732004-09-18 14:53:14 -04005804
5805
Theodore Ts'oe1052142006-10-21 21:46:47 -04005806
Theodore Ts'o32493942007-12-31 10:45:01 -05005807# Check whether --enable-tls was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005808if test "${enable_tls+set}" = set; then :
Theodore Ts'o32493942007-12-31 10:45:01 -05005809 enableval=$enable_tls; if test "$enableval" = "no"
5810then
5811 try_tls=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005813$as_echo "Disabling thread local support" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005814else
5815 try_tls="yes"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005817$as_echo "Enabling thread local support" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005818fi
5819
5820else
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005821 if test -n "$WITH_DIET_LIBC"
5822then
5823 try_tls=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005825$as_echo "Diet libc does not support thread local support" >&6; }
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005826else
5827 try_tls="yes"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005829$as_echo "Try using thread local support by default" >&6; }
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005830fi
Theodore Ts'o32493942007-12-31 10:45:01 -05005831
5832fi
5833
5834if test "$try_tls" = "yes"
5835then
5836
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005838$as_echo_n "checking for thread local storage (TLS) class... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005839 if ${ac_cv_tls+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005840 $as_echo_n "(cached) " >&6
Theodore Ts'o32493942007-12-31 10:45:01 -05005841else
5842
5843 ax_tls_keywords="__thread __declspec(thread) none"
5844 for ax_tls_keyword in $ax_tls_keywords; do
5845 case $ax_tls_keyword in
5846 none) ac_cv_tls=none ; break ;;
5847 *)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'o32493942007-12-31 10:45:01 -05005849/* end confdefs.h. */
5850#include <stdlib.h>
5851 static void
5852 foo(void) {
5853 static $ax_tls_keyword int bar;
5854 exit(1);
5855 }
5856int
5857main ()
5858{
5859
5860 ;
5861 return 0;
5862}
5863_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005864if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o32493942007-12-31 10:45:01 -05005865 ac_cv_tls=$ax_tls_keyword ; break
5866else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005867 ac_cv_tls=none
Theodore Ts'o32493942007-12-31 10:45:01 -05005868
5869fi
Theodore Ts'o32493942007-12-31 10:45:01 -05005870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5871 esac
5872 done
5873
5874fi
5875
5876
5877 if test "$ac_cv_tls" != "none"; then
5878
5879cat >>confdefs.h <<_ACEOF
5880#define TLS $ac_cv_tls
5881_ACEOF
5882
5883 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005885$as_echo "$ac_cv_tls" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005886
5887fi
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005888
Theodore Ts'o5610f992007-12-31 11:16:56 -05005889# Check whether --enable-uuidd was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005890if test "${enable_uuidd+set}" = set; then :
Theodore Ts'o5610f992007-12-31 11:16:56 -05005891 enableval=$enable_uuidd; if test "$enableval" = "no"
5892then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005894$as_echo "Not building uuidd" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05005895 UUIDD_CMT="#"
5896else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005897 $as_echo "#define USE_UUIDD 1" >>confdefs.h
Theodore Ts'o5610f992007-12-31 11:16:56 -05005898
5899 UUIDD_CMT=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005901$as_echo "Building uuidd" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05005902fi
5903
5904else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005905 $as_echo "#define USE_UUIDD 1" >>confdefs.h
Theodore Ts'o5610f992007-12-31 11:16:56 -05005906
Theodore Ts'oe3d10152014-09-19 00:26:26 -04005907if test -z "$UUID_CMT"
5908then
5909 UUIDD_CMT=""
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005911$as_echo "Building uuidd by default" >&6; }
Theodore Ts'oe3d10152014-09-19 00:26:26 -04005912else
5913 UUIDD_CMT="#"
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling uuidd by default" >&5
5915$as_echo "Disabling uuidd by default" >&6; }
5916fi
Theodore Ts'o5610f992007-12-31 11:16:56 -05005917
5918fi
5919
5920
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005921
5922# Check whether --enable-mmp was given.
5923if test "${enable_mmp+set}" = set; then :
5924 enableval=$enable_mmp; if test "$enableval" = "no"
5925then
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5
5927$as_echo "Disabling mmp support" >&6; }
5928else
5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5
5930$as_echo "Enabling mmp support" >&6; }
5931 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
5932
5933fi
5934
5935else
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
5937$as_echo "Enabling mmp support by default" >&6; }
5938$as_echo "#define CONFIG_MMP 1" >>confdefs.h
5939
5940
5941fi
5942
Tony Breeds1625bf42012-07-30 14:44:12 -04005943
Theodore Ts'o749f0712016-05-29 20:48:54 -04005944# Check whether --enable-tdb was given.
5945if test "${enable_tdb+set}" = set; then :
5946 enableval=$enable_tdb; if test "$enableval" = "no"
5947then
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling tdb support" >&5
5949$as_echo "Disabling tdb support" >&6; }
5950 TDB_CMT="#"
5951 TDB_MAN_COMMENT='.\"'
5952else
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling tdb support" >&5
5954$as_echo "Enabling tdb support" >&6; }
5955 $as_echo "#define CONFIG_TDB 1" >>confdefs.h
5956
5957 TDB_CMT=""
5958 TDB_MAN_COMMENT=""
5959fi
5960
5961else
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
5963$as_echo "Enabling mmp support by default" >&6; }
5964$as_echo "#define CONFIG_TDB 1" >>confdefs.h
5965
5966TDB_CMT=""
5967TDB_MAN_COMMENT=""
5968
5969fi
5970
5971
5972
5973
Tony Breeds1625bf42012-07-30 14:44:12 -04005974# Check whether --enable-bmap-stats was given.
5975if test "${enable_bmap_stats+set}" = set; then :
5976 enableval=$enable_bmap_stats; if test "$enableval" = "no"
5977then
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5
5979$as_echo "Disabling bitmap statistics support" >&6; }
5980else
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5
5982$as_echo "Enabling bitmap statistics support" >&6; }
5983 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
5984
5985fi
5986
5987else
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5
5989$as_echo "Enabling bitmap statistics support by default" >&6; }
5990$as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
5991
5992
5993fi
5994
5995
5996# Check whether --enable-bmap-stats-ops was given.
5997if test "${enable_bmap_stats_ops+set}" = set; then :
5998 enableval=$enable_bmap_stats_ops; if test "$enableval" = "no"
5999then
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5
6001$as_echo "Disabling additional bitmap statistics" >&6; }
6002else
6003 if test "x${enable_bmap_stats}" = "xno"; then :
6004 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6005$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6006as_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats
6007See \`config.log' for more details" "$LINENO" 5; }
6008fi
6009
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5
6011$as_echo "Enabling additional bitmap statistics" >&6; }
6012 $as_echo "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h
6013
6014fi
6015
6016else
6017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5
6018$as_echo "Disabling additional bitmap statistics by default" >&6; }
6019
6020fi
6021
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00006022MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
6023
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006024GETTEXT_PACKAGE=e2fsprogs
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006025PACKAGE=e2fsprogs
6026VERSION="$E2FSPROGS_VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006027VERSION=0.14.1
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006028
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006029cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006030#define PACKAGE "$PACKAGE"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006031_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006032
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006033
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006034cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006035#define VERSION "$VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006036_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006037
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006038
6039
6040
6041
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006043$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6044set x ${MAKE-make}
6045ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006046if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006047 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006048else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006049 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006050SHELL = /bin/sh
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006051all:
Theodore Ts'oe1052142006-10-21 21:46:47 -04006052 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006053_ACEOF
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006054# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -04006055case `${MAKE-make} -f conftest.make 2>/dev/null` in
6056 *@@@%%%=?*=@@@%%%*)
6057 eval ac_cv_prog_make_${ac_make}_set=yes;;
6058 *)
6059 eval ac_cv_prog_make_${ac_make}_set=no;;
6060esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006061rm -f conftest.make
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006062fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006063if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006065$as_echo "yes" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006066 SET_MAKE=
6067else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006069$as_echo "no" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006070 SET_MAKE="MAKE=${MAKE-make}"
6071fi
6072
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006073# Find a good install program. We prefer a C program (faster),
6074# so one script is as good as another. But avoid the broken or
6075# incompatible versions:
6076# SysV /etc/install, /usr/sbin/install
6077# SunOS /usr/etc/install
6078# IRIX /sbin/install
6079# AIX /bin/install
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006080# AmigaOS /C/install, which installs bootblocks on floppy discs
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006081# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6082# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6083# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006084# OS/2's system install, which has a completely different semantic
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006085# ./install, which can be erroneously created by make from ./install.sh.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006086# Reject install programs that cannot install multiple files.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006088$as_echo_n "checking for a BSD-compatible install... " >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006089if test -z "$INSTALL"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006090if ${ac_cv_path_install+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006091 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006092else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6094for as_dir in $PATH
6095do
6096 IFS=$as_save_IFS
6097 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006098 # Account for people who put trailing slashes in PATH elements.
6099case $as_dir/ in #((
6100 ./ | .// | /[cC]/* | \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006101 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006102 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006103 /usr/ucb/* ) ;;
6104 *)
6105 # OSF1 and SCO ODT 3.0 have their own names for install.
6106 # Don't use installbsd from OSF since it installs stuff as root
6107 # by default.
6108 for ac_prog in ginstall scoinst install; do
6109 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006110 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006111 if test $ac_prog = install &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006112 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006113 # AIX install. It has an incompatible calling convention.
6114 :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006115 elif test $ac_prog = install &&
6116 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6117 # program-specific install script used by HP pwplus--don't use.
6118 :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006119 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006120 rm -rf conftest.one conftest.two conftest.dir
6121 echo one > conftest.one
6122 echo two > conftest.two
6123 mkdir conftest.dir
6124 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6125 test -s conftest.one && test -s conftest.two &&
6126 test -s conftest.dir/conftest.one &&
6127 test -s conftest.dir/conftest.two
6128 then
6129 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6130 break 3
6131 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006132 fi
6133 fi
6134 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006135 done
6136 ;;
6137esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006138
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006139 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04006140IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006141
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006142rm -rf conftest.one conftest.two conftest.dir
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006143
6144fi
6145 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006146 INSTALL=$ac_cv_path_install
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006147 else
Theodore Ts'oe1052142006-10-21 21:46:47 -04006148 # As a last resort, use the slow shell script. Don't cache a
6149 # value for INSTALL within a source directory, because that will
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006150 # break other packages using the cache if that directory is
Theodore Ts'oe1052142006-10-21 21:46:47 -04006151 # removed, or if the value is a relative name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006152 INSTALL=$ac_install_sh
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006153 fi
6154fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006156$as_echo "$INSTALL" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006157
6158# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6159# It thinks the first close brace ends the variable substitution.
6160test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6161
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006162test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006163
6164test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6165
Theodore Ts'o93613952014-07-03 23:44:13 -04006166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6167$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6168if test -z "$MKDIR_P"; then
6169 if ${ac_cv_path_mkdir+:} false; then :
6170 $as_echo_n "(cached) " >&6
6171else
6172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6173for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6174do
6175 IFS=$as_save_IFS
6176 test -z "$as_dir" && as_dir=.
6177 for ac_prog in mkdir gmkdir; do
6178 for ac_exec_ext in '' $ac_executable_extensions; do
6179 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
6180 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6181 'mkdir (GNU coreutils) '* | \
6182 'mkdir (coreutils) '* | \
6183 'mkdir (fileutils) '4.1*)
6184 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6185 break 3;;
6186 esac
6187 done
6188 done
6189 done
6190IFS=$as_save_IFS
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006191
Theodore Ts'o93613952014-07-03 23:44:13 -04006192fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006193
Theodore Ts'o93613952014-07-03 23:44:13 -04006194 test -d ./--version && rmdir ./--version
6195 if test "${ac_cv_path_mkdir+set}" = set; then
6196 MKDIR_P="$ac_cv_path_mkdir -p"
6197 else
6198 # As a last resort, use the slow shell script. Don't cache a
6199 # value for MKDIR_P within a source directory, because that will
6200 # break other packages using the cache if that directory is
6201 # removed, or if the value is a relative name.
6202 MKDIR_P="$ac_install_sh -d"
6203 fi
6204fi
6205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6206$as_echo "$MKDIR_P" >&6; }
6207
6208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6209$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6210if ${ac_cv_path_SED+:} false; then :
6211 $as_echo_n "(cached) " >&6
6212else
6213 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6214 for ac_i in 1 2 3 4 5 6 7; do
6215 ac_script="$ac_script$as_nl$ac_script"
6216 done
6217 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6218 { ac_script=; unset ac_script;}
6219 if test -z "$SED"; then
6220 ac_path_SED_found=false
6221 # Loop through the user's path and test for each of PROGNAME-LIST
6222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6223for as_dir in $PATH
6224do
6225 IFS=$as_save_IFS
6226 test -z "$as_dir" && as_dir=.
6227 for ac_prog in sed gsed; do
6228 for ac_exec_ext in '' $ac_executable_extensions; do
6229 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6230 as_fn_executable_p "$ac_path_SED" || continue
6231# Check for GNU ac_path_SED and select it if it is found.
6232 # Check for GNU $ac_path_SED
6233case `"$ac_path_SED" --version 2>&1` in
6234*GNU*)
6235 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6236*)
6237 ac_count=0
6238 $as_echo_n 0123456789 >"conftest.in"
6239 while :
6240 do
6241 cat "conftest.in" "conftest.in" >"conftest.tmp"
6242 mv "conftest.tmp" "conftest.in"
6243 cp "conftest.in" "conftest.nl"
6244 $as_echo '' >> "conftest.nl"
6245 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6246 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6247 as_fn_arith $ac_count + 1 && ac_count=$as_val
6248 if test $ac_count -gt ${ac_path_SED_max-0}; then
6249 # Best one so far, save it but keep looking for a better one
6250 ac_cv_path_SED="$ac_path_SED"
6251 ac_path_SED_max=$ac_count
6252 fi
6253 # 10*(2^10) chars as input seems more than enough
6254 test $ac_count -gt 10 && break
6255 done
6256 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6257esac
6258
6259 $ac_path_SED_found && break 3
6260 done
6261 done
6262 done
6263IFS=$as_save_IFS
6264 if test -z "$ac_cv_path_SED"; then
6265 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6266 fi
6267else
6268 ac_cv_path_SED=$SED
6269fi
6270
6271fi
6272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6273$as_echo "$ac_cv_path_SED" >&6; }
6274 SED="$ac_cv_path_SED"
6275 rm -f conftest.sed
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006276
6277
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006279$as_echo_n "checking whether NLS is requested... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04006280 # Check whether --enable-nls was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006281if test "${enable_nls+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04006282 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006283else
6284 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04006285fi
6286
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006288$as_echo "$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006289
6290
6291
6292
Theodore Ts'o93613952014-07-03 23:44:13 -04006293 GETTEXT_MACRO_VERSION=0.18
6294
6295
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006296
6297
6298# Prepare PATH_SEPARATOR.
6299# The user is always right.
6300if test "${PATH_SEPARATOR+set}" != set; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006301 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6302 # contains only /bin. Note that ksh looks also at the FPATH variable,
6303 # so we have to set that as well for the test.
6304 PATH_SEPARATOR=:
6305 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6306 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6307 || PATH_SEPARATOR=';'
6308 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006309fi
6310
6311# Find out how to test for executable files. Don't use a zero-byte file,
6312# as systems may use methods other than mode bits to determine executability.
6313cat >conf$$.file <<_ASEOF
6314#! /bin/sh
6315exit 0
6316_ASEOF
6317chmod +x conf$$.file
6318if test -x conf$$.file >/dev/null 2>&1; then
6319 ac_executable_p="test -x"
6320else
6321 ac_executable_p="test -f"
6322fi
6323rm -f conf$$.file
6324
6325# Extract the first word of "msgfmt", so it can be a program name with args.
6326set dummy msgfmt; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006328$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006329if ${ac_cv_path_MSGFMT+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006330 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006331else
6332 case "$MSGFMT" in
6333 [\\/]* | ?:[\\/]*)
6334 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6335 ;;
6336 *)
6337 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6338 for ac_dir in $PATH; do
6339 IFS="$ac_save_IFS"
6340 test -z "$ac_dir" && ac_dir=.
6341 for ac_exec_ext in '' $ac_executable_extensions; do
6342 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006343 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6344 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006345 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6346 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6347 break 2
6348 fi
6349 fi
6350 done
6351 done
6352 IFS="$ac_save_IFS"
6353 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6354 ;;
6355esac
6356fi
6357MSGFMT="$ac_cv_path_MSGFMT"
6358if test "$MSGFMT" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006360$as_echo "$MSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006361else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006363$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006364fi
6365
6366 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6367set dummy gmsgfmt; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006369$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006370if ${ac_cv_path_GMSGFMT+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006371 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006372else
6373 case $GMSGFMT in
6374 [\\/]* | ?:[\\/]*)
6375 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6376 ;;
6377 *)
6378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6379for as_dir in $PATH
6380do
6381 IFS=$as_save_IFS
6382 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006383 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006385 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006387 break 2
6388 fi
6389done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006390 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04006391IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006392
6393 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6394 ;;
6395esac
6396fi
6397GMSGFMT=$ac_cv_path_GMSGFMT
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006398if test -n "$GMSGFMT"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006400$as_echo "$GMSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006401else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006403$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006404fi
6405
6406
6407
Theodore Ts'o93613952014-07-03 23:44:13 -04006408 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6409 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
6410 *) MSGFMT_015=$MSGFMT ;;
6411 esac
6412
6413 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6414 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
6415 *) GMSGFMT_015=$GMSGFMT ;;
6416 esac
6417
6418
Theodore Ts'oe1052142006-10-21 21:46:47 -04006419
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006420# Prepare PATH_SEPARATOR.
6421# The user is always right.
6422if test "${PATH_SEPARATOR+set}" != set; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006423 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6424 # contains only /bin. Note that ksh looks also at the FPATH variable,
6425 # so we have to set that as well for the test.
6426 PATH_SEPARATOR=:
6427 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6428 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6429 || PATH_SEPARATOR=';'
6430 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006431fi
6432
6433# Find out how to test for executable files. Don't use a zero-byte file,
6434# as systems may use methods other than mode bits to determine executability.
6435cat >conf$$.file <<_ASEOF
6436#! /bin/sh
6437exit 0
6438_ASEOF
6439chmod +x conf$$.file
6440if test -x conf$$.file >/dev/null 2>&1; then
6441 ac_executable_p="test -x"
6442else
6443 ac_executable_p="test -f"
6444fi
6445rm -f conf$$.file
6446
6447# Extract the first word of "xgettext", so it can be a program name with args.
6448set dummy xgettext; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006450$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006451if ${ac_cv_path_XGETTEXT+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006452 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006453else
6454 case "$XGETTEXT" in
6455 [\\/]* | ?:[\\/]*)
6456 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6457 ;;
6458 *)
6459 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6460 for ac_dir in $PATH; do
6461 IFS="$ac_save_IFS"
6462 test -z "$ac_dir" && ac_dir=.
6463 for ac_exec_ext in '' $ac_executable_extensions; do
6464 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006465 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6466 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006467 (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
6468 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6469 break 2
6470 fi
6471 fi
6472 done
6473 done
6474 IFS="$ac_save_IFS"
6475 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6476 ;;
6477esac
6478fi
6479XGETTEXT="$ac_cv_path_XGETTEXT"
6480if test "$XGETTEXT" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006482$as_echo "$XGETTEXT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006483else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006485$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006486fi
6487
6488 rm -f messages.po
6489
Theodore Ts'o93613952014-07-03 23:44:13 -04006490 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6491 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
6492 *) XGETTEXT_015=$XGETTEXT ;;
6493 esac
6494
6495
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006496
6497# Prepare PATH_SEPARATOR.
6498# The user is always right.
6499if test "${PATH_SEPARATOR+set}" != set; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006500 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6501 # contains only /bin. Note that ksh looks also at the FPATH variable,
6502 # so we have to set that as well for the test.
6503 PATH_SEPARATOR=:
6504 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6505 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6506 || PATH_SEPARATOR=';'
6507 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006508fi
6509
6510# Find out how to test for executable files. Don't use a zero-byte file,
6511# as systems may use methods other than mode bits to determine executability.
6512cat >conf$$.file <<_ASEOF
6513#! /bin/sh
6514exit 0
6515_ASEOF
6516chmod +x conf$$.file
6517if test -x conf$$.file >/dev/null 2>&1; then
6518 ac_executable_p="test -x"
6519else
6520 ac_executable_p="test -f"
6521fi
6522rm -f conf$$.file
6523
6524# Extract the first word of "msgmerge", so it can be a program name with args.
6525set dummy msgmerge; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006527$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006528if ${ac_cv_path_MSGMERGE+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006529 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006530else
6531 case "$MSGMERGE" in
6532 [\\/]* | ?:[\\/]*)
6533 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6534 ;;
6535 *)
6536 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6537 for ac_dir in $PATH; do
6538 IFS="$ac_save_IFS"
6539 test -z "$ac_dir" && ac_dir=.
6540 for ac_exec_ext in '' $ac_executable_extensions; do
6541 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006542 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6543 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006544 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6545 break 2
6546 fi
6547 fi
6548 done
6549 done
6550 IFS="$ac_save_IFS"
6551 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6552 ;;
6553esac
6554fi
6555MSGMERGE="$ac_cv_path_MSGMERGE"
6556if test "$MSGMERGE" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006558$as_echo "$MSGMERGE" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006559else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006561$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006562fi
6563
6564
Theodore Ts'o93613952014-07-03 23:44:13 -04006565 test -n "$localedir" || localedir='${datadir}/locale'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006566
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006567
Theodore Ts'o93613952014-07-03 23:44:13 -04006568 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
6569
6570
6571 ac_config_commands="$ac_config_commands po-directories"
6572
6573
6574
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
6576$as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
6577if ${ac_cv_gnu_library_2+:} false; then :
6578 $as_echo_n "(cached) " >&6
6579else
6580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6581/* end confdefs.h. */
6582
6583#include <features.h>
6584#ifdef __GNU_LIBRARY__
6585 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
6586 Lucky GNU user
6587 #endif
6588#endif
6589
6590_ACEOF
6591if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6592 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
6593 ac_cv_gnu_library_2=yes
6594else
6595 ac_cv_gnu_library_2=no
6596fi
6597rm -f conftest*
6598
6599
6600
6601fi
6602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
6603$as_echo "$ac_cv_gnu_library_2" >&6; }
6604
6605 GLIBC2="$ac_cv_gnu_library_2"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006606
6607
6608if test -n "$ac_tool_prefix"; then
6609 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6610set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006612$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006613if ${ac_cv_prog_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006614 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006615else
6616 if test -n "$RANLIB"; then
6617 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6618else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6620for as_dir in $PATH
6621do
6622 IFS=$as_save_IFS
6623 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006624 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006626 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006628 break 2
6629 fi
6630done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006631 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04006632IFS=$as_save_IFS
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006633
6634fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006635fi
6636RANLIB=$ac_cv_prog_RANLIB
6637if test -n "$RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006639$as_echo "$RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006640else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006642$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006643fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006644
Theodore Ts'oe1052142006-10-21 21:46:47 -04006645
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006646fi
6647if test -z "$ac_cv_prog_RANLIB"; then
6648 ac_ct_RANLIB=$RANLIB
6649 # Extract the first word of "ranlib", so it can be a program name with args.
6650set dummy ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006652$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006653if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006654 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006655else
6656 if test -n "$ac_ct_RANLIB"; then
6657 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6658else
6659as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6660for as_dir in $PATH
6661do
6662 IFS=$as_save_IFS
6663 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006664 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006666 ac_cv_prog_ac_ct_RANLIB="ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006668 break 2
6669 fi
6670done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006671 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04006672IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006673
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006674fi
6675fi
6676ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6677if test -n "$ac_ct_RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006679$as_echo "$ac_ct_RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006680else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006682$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006683fi
6684
Theodore Ts'oe1052142006-10-21 21:46:47 -04006685 if test "x$ac_ct_RANLIB" = x; then
6686 RANLIB=":"
6687 else
6688 case $cross_compiling:$ac_tool_warned in
6689yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006690{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006691$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04006692ac_tool_warned=yes ;;
6693esac
6694 RANLIB=$ac_ct_RANLIB
6695 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006696else
6697 RANLIB="$ac_cv_prog_RANLIB"
6698fi
6699
6700
Theodore Ts'o93613952014-07-03 23:44:13 -04006701
6702 CFLAG_VISIBILITY=
6703 HAVE_VISIBILITY=0
6704 if test -n "$GCC"; then
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
6706$as_echo_n "checking whether the -Werror option is usable... " >&6; }
6707 if ${gl_cv_cc_vis_werror+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006708 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006709else
Theodore Ts'o93613952014-07-03 23:44:13 -04006710
6711 gl_save_CFLAGS="$CFLAGS"
6712 CFLAGS="$CFLAGS -Werror"
6713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006714/* end confdefs.h. */
6715
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006716int
6717main ()
6718{
Theodore Ts'o93613952014-07-03 23:44:13 -04006719
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006720 ;
6721 return 0;
6722}
6723_ACEOF
Theodore Ts'o93613952014-07-03 23:44:13 -04006724if ac_fn_c_try_compile "$LINENO"; then :
6725 gl_cv_cc_vis_werror=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006726else
Theodore Ts'o93613952014-07-03 23:44:13 -04006727 gl_cv_cc_vis_werror=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006728fi
Theodore Ts'o93613952014-07-03 23:44:13 -04006729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6730 CFLAGS="$gl_save_CFLAGS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006731fi
6732
Theodore Ts'o93613952014-07-03 23:44:13 -04006733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
6734$as_echo "$gl_cv_cc_vis_werror" >&6; }
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
6736$as_echo_n "checking for simple visibility declarations... " >&6; }
6737 if ${gl_cv_cc_visibility+:} false; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006738 $as_echo_n "(cached) " >&6
6739else
Theodore Ts'o93613952014-07-03 23:44:13 -04006740
6741 gl_save_CFLAGS="$CFLAGS"
6742 CFLAGS="$CFLAGS -fvisibility=hidden"
6743 if test $gl_cv_cc_vis_werror = yes; then
6744 CFLAGS="$CFLAGS -Werror"
6745 fi
6746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6747/* end confdefs.h. */
6748extern __attribute__((__visibility__("hidden"))) int hiddenvar;
6749 extern __attribute__((__visibility__("default"))) int exportedvar;
6750 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
6751 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
6752 void dummyfunc (void) {}
6753
6754int
6755main ()
6756{
6757
6758 ;
6759 return 0;
6760}
6761_ACEOF
6762if ac_fn_c_try_compile "$LINENO"; then :
6763 gl_cv_cc_visibility=yes
6764else
6765 gl_cv_cc_visibility=no
6766fi
6767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6768 CFLAGS="$gl_save_CFLAGS"
6769fi
6770
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
6772$as_echo "$gl_cv_cc_visibility" >&6; }
6773 if test $gl_cv_cc_visibility = yes; then
6774 CFLAG_VISIBILITY="-fvisibility=hidden"
6775 HAVE_VISIBILITY=1
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006776 fi
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006777 fi
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006778
6779
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006780
Theodore Ts'o93613952014-07-03 23:44:13 -04006781cat >>confdefs.h <<_ACEOF
6782#define HAVE_VISIBILITY $HAVE_VISIBILITY
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006783_ACEOF
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006784
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006785
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006787$as_echo_n "checking for inline... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006788if ${ac_cv_c_inline+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006789 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006790else
6791 ac_cv_c_inline=no
6792for ac_kw in inline __inline__ __inline; do
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006794/* end confdefs.h. */
6795#ifndef __cplusplus
6796typedef int foo_t;
6797static $ac_kw foo_t static_foo () {return 0; }
6798$ac_kw foo_t foo () {return 0; }
6799#endif
6800
6801_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006802if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04006803 ac_cv_c_inline=$ac_kw
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006804fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6806 test "$ac_cv_c_inline" != no && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006807done
6808
6809fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006811$as_echo "$ac_cv_c_inline" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006812
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006813case $ac_cv_c_inline in
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006814 inline | yes) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006815 *)
6816 case $ac_cv_c_inline in
6817 no) ac_val=;;
6818 *) ac_val=$ac_cv_c_inline;;
6819 esac
6820 cat >>confdefs.h <<_ACEOF
6821#ifndef __cplusplus
6822#define inline $ac_val
6823#endif
6824_ACEOF
6825 ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006826esac
6827
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006828ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006829if test "x$ac_cv_type_size_t" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006830
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006831else
6832
6833cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006834#define size_t unsigned int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006835_ACEOF
6836
6837fi
6838
6839
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006841$as_echo_n "checking for stdint.h... " >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04006842if ${gl_cv_header_stdint_h+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006843 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006844else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006846/* end confdefs.h. */
6847#include <sys/types.h>
Theodore Ts'o93613952014-07-03 23:44:13 -04006848 #include <stdint.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006849int
6850main ()
6851{
Theodore Ts'o93613952014-07-03 23:44:13 -04006852uintmax_t i = (uintmax_t) -1; return !i;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006853 ;
6854 return 0;
6855}
6856_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006857if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o93613952014-07-03 23:44:13 -04006858 gl_cv_header_stdint_h=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006859else
Theodore Ts'o93613952014-07-03 23:44:13 -04006860 gl_cv_header_stdint_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006861fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006862rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006863fi
Theodore Ts'o93613952014-07-03 23:44:13 -04006864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
6865$as_echo "$gl_cv_header_stdint_h" >&6; }
6866 if test $gl_cv_header_stdint_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006867
6868cat >>confdefs.h <<_ACEOF
6869#define HAVE_STDINT_H_WITH_UINTMAX 1
6870_ACEOF
6871
6872 fi
6873
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006874# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6875# for constant arguments. Useless!
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006877$as_echo_n "checking for working alloca.h... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006878if ${ac_cv_working_alloca_h+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006879 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006880else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006882/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006883#include <alloca.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006884int
6885main ()
6886{
6887char *p = (char *) alloca (2 * sizeof (int));
Theodore Ts'oe1052142006-10-21 21:46:47 -04006888 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006889 ;
6890 return 0;
6891}
6892_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006893if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006894 ac_cv_working_alloca_h=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006895else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006896 ac_cv_working_alloca_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006897fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006898rm -f core conftest.err conftest.$ac_objext \
6899 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006900fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006902$as_echo "$ac_cv_working_alloca_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006903if test $ac_cv_working_alloca_h = yes; then
6904
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006905$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006906
6907fi
6908
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006910$as_echo_n "checking for alloca... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006911if ${ac_cv_func_alloca_works+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006912 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006913else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006915/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006916#ifdef __GNUC__
6917# define alloca __builtin_alloca
6918#else
6919# ifdef _MSC_VER
6920# include <malloc.h>
6921# define alloca _alloca
6922# else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006923# ifdef HAVE_ALLOCA_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006924# include <alloca.h>
6925# else
6926# ifdef _AIX
6927 #pragma alloca
6928# else
6929# ifndef alloca /* predefined by HP cc +Olibcalls */
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006930void *alloca (size_t);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006931# endif
6932# endif
6933# endif
6934# endif
6935#endif
6936
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006937int
6938main ()
6939{
6940char *p = (char *) alloca (1);
Theodore Ts'oe1052142006-10-21 21:46:47 -04006941 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006942 ;
6943 return 0;
6944}
6945_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006946if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006947 ac_cv_func_alloca_works=yes
6948else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006949 ac_cv_func_alloca_works=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006950fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006951rm -f core conftest.err conftest.$ac_objext \
6952 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006953fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006955$as_echo "$ac_cv_func_alloca_works" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006956
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006957if test $ac_cv_func_alloca_works = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006958
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006959$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006960
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006961else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006962 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6963# that cause trouble. Some versions do not even contain alloca or
6964# contain a buggy version. If you still want to use their alloca,
6965# use ar to extract alloca.o from them instead of compiling alloca.c.
6966
Theodore Ts'oe1052142006-10-21 21:46:47 -04006967ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006968
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006969$as_echo "#define C_ALLOCA 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006970
6971
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006973$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006974if ${ac_cv_os_cray+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006975 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006976else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006978/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006979#if defined CRAY && ! defined CRAY2
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006980webecray
6981#else
6982wenotbecray
6983#endif
6984
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006985_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006986if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006987 $EGREP "webecray" >/dev/null 2>&1; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006988 ac_cv_os_cray=yes
6989else
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006990 ac_cv_os_cray=no
6991fi
6992rm -f conftest*
6993
6994fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006996$as_echo "$ac_cv_os_cray" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006997if test $ac_cv_os_cray = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006998 for ac_func in _getb67 GETB67 getb67; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006999 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007000ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007001if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007002
7003cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007004#define CRAY_STACKSEG_END $ac_func
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007005_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007006
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007007 break
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007008fi
7009
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007010 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007011fi
7012
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007014$as_echo_n "checking stack direction for C alloca... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007015if ${ac_cv_c_stack_direction+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007016 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007017else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007018 if test "$cross_compiling" = yes; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007019 ac_cv_c_stack_direction=0
7020else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007022/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04007023$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007024int
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007025find_stack_direction (int *addr, int depth)
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007026{
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007027 int dir, dummy = 0;
7028 if (! addr)
7029 addr = &dummy;
7030 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7031 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7032 return dir + dummy;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007033}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007034
7035int
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007036main (int argc, char **argv)
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007037{
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007038 return find_stack_direction (0, argc + !argv + 20) < 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007039}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007040_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007041if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007042 ac_cv_c_stack_direction=1
7043else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007044 ac_cv_c_stack_direction=-1
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007045fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007046rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7047 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007048fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007049
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007050fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007052$as_echo "$ac_cv_c_stack_direction" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007053cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007054#define STACK_DIRECTION $ac_cv_c_stack_direction
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007055_ACEOF
7056
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007057
7058fi
7059
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007060
7061
7062
7063 for ac_header in $ac_header_list
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007064do :
7065 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007066ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7067"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007068if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007069 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007070#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007071_ACEOF
7072
7073fi
7074
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007075done
7076
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007077
7078
7079
7080
7081
7082
7083
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007084for ac_func in getpagesize
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007085do :
7086 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007087if test "x$ac_cv_func_getpagesize" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007088 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007089#define HAVE_GETPAGESIZE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007090_ACEOF
7091
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007092fi
7093done
7094
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007096$as_echo_n "checking for working mmap... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007097if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007098 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007099else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007100 if test "$cross_compiling" = yes; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007101 ac_cv_func_mmap_fixed_mapped=no
7102else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007104/* end confdefs.h. */
7105$ac_includes_default
7106/* malloc might have been renamed as rpl_malloc. */
7107#undef malloc
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007108
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007109/* Thanks to Mike Haertel and Jim Avera for this test.
7110 Here is a matrix of mmap possibilities:
7111 mmap private not fixed
7112 mmap private fixed at somewhere currently unmapped
7113 mmap private fixed at somewhere already mapped
7114 mmap shared not fixed
7115 mmap shared fixed at somewhere currently unmapped
7116 mmap shared fixed at somewhere already mapped
7117 For private mappings, we should verify that changes cannot be read()
7118 back from the file, nor mmap's back from the file at a different
7119 address. (There have been systems where private was not correctly
7120 implemented like the infamous i386 svr4.0, and systems where the
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007121 VM page cache was not coherent with the file system buffer cache
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007122 like early versions of FreeBSD and possibly contemporary NetBSD.)
7123 For shared mappings, we should conversely verify that changes get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007124 propagated back to all the places they're supposed to be.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007125
7126 Grep wants private fixed already mapped.
7127 The main things grep needs to know about mmap are:
7128 * does it exist and is it safe to write into the mmap'd area
7129 * how to use it (BSD variants) */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007130
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007131#include <fcntl.h>
7132#include <sys/mman.h>
7133
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007134#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007135char *malloc ();
7136#endif
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007137
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007138/* This mess was copied from the GNU getpagesize.h. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007139#ifndef HAVE_GETPAGESIZE
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007140# ifdef _SC_PAGESIZE
7141# define getpagesize() sysconf(_SC_PAGESIZE)
7142# else /* no _SC_PAGESIZE */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007143# ifdef HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007144# include <sys/param.h>
7145# ifdef EXEC_PAGESIZE
7146# define getpagesize() EXEC_PAGESIZE
7147# else /* no EXEC_PAGESIZE */
7148# ifdef NBPG
7149# define getpagesize() NBPG * CLSIZE
7150# ifndef CLSIZE
7151# define CLSIZE 1
7152# endif /* no CLSIZE */
7153# else /* no NBPG */
7154# ifdef NBPC
7155# define getpagesize() NBPC
7156# else /* no NBPC */
7157# ifdef PAGESIZE
7158# define getpagesize() PAGESIZE
7159# endif /* PAGESIZE */
7160# endif /* no NBPC */
7161# endif /* no NBPG */
7162# endif /* no EXEC_PAGESIZE */
7163# else /* no HAVE_SYS_PARAM_H */
7164# define getpagesize() 8192 /* punt totally */
7165# endif /* no HAVE_SYS_PARAM_H */
7166# endif /* no _SC_PAGESIZE */
7167
7168#endif /* no HAVE_GETPAGESIZE */
7169
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007170int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007171main ()
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007172{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007173 char *data, *data2, *data3;
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007174 const char *cdata2;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007175 int i, pagesize;
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007176 int fd, fd2;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007177
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007178 pagesize = getpagesize ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007179
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007180 /* First, make a file with some known garbage in it. */
7181 data = (char *) malloc (pagesize);
7182 if (!data)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007183 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007184 for (i = 0; i < pagesize; ++i)
7185 *(data + i) = rand ();
7186 umask (0);
7187 fd = creat ("conftest.mmap", 0600);
7188 if (fd < 0)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007189 return 2;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007190 if (write (fd, data, pagesize) != pagesize)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007191 return 3;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007192 close (fd);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007193
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007194 /* Next, check that the tail of a page is zero-filled. File must have
7195 non-zero length, otherwise we risk SIGBUS for entire page. */
7196 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7197 if (fd2 < 0)
7198 return 4;
7199 cdata2 = "";
7200 if (write (fd2, cdata2, 1) != 1)
7201 return 5;
7202 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7203 if (data2 == MAP_FAILED)
7204 return 6;
7205 for (i = 0; i < pagesize; ++i)
7206 if (*(data2 + i))
7207 return 7;
7208 close (fd2);
7209 if (munmap (data2, pagesize))
7210 return 8;
7211
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007212 /* Next, try to mmap the file at a fixed address which already has
7213 something else allocated at it. If we can, also make sure that
7214 we see the same garbage. */
7215 fd = open ("conftest.mmap", O_RDWR);
7216 if (fd < 0)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007217 return 9;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007218 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7219 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007220 return 10;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007221 for (i = 0; i < pagesize; ++i)
7222 if (*(data + i) != *(data2 + i))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007223 return 11;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007224
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007225 /* Finally, make sure that changes to the mapped area do not
7226 percolate back to the file as seen by read(). (This is a bug on
7227 some variants of i386 svr4.0.) */
7228 for (i = 0; i < pagesize; ++i)
7229 *(data2 + i) = *(data2 + i) + 1;
7230 data3 = (char *) malloc (pagesize);
7231 if (!data3)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007232 return 12;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007233 if (read (fd, data3, pagesize) != pagesize)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007234 return 13;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007235 for (i = 0; i < pagesize; ++i)
7236 if (*(data + i) != *(data3 + i))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007237 return 14;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007238 close (fd);
Dmitry V. Levind7de3f32017-05-18 17:46:49 +00007239 free (data);
7240 free (data3);
Theodore Ts'oe1052142006-10-21 21:46:47 -04007241 return 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007242}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007243_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007244if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007245 ac_cv_func_mmap_fixed_mapped=yes
7246else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007247 ac_cv_func_mmap_fixed_mapped=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007248fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007249rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7250 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007251fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007252
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007253fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007255$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007256if test $ac_cv_func_mmap_fixed_mapped = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007257
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007258$as_echo "#define HAVE_MMAP 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007259
7260fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007261rm -f conftest.mmap conftest.txt
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007262
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007263
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007264
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007266$as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007267if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007268 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007269else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007270
Theodore Ts'o93613952014-07-03 23:44:13 -04007271 gt_cv_int_divbyzero_sigfpe=
7272 case "$host_os" in
7273 macos* | darwin[6-9]* | darwin[1-9][0-9]*)
7274 # On Mac OS X 10.2 or newer, just assume the same as when cross-
7275 # compiling. If we were to perform the real test, 1 Crash Report
7276 # dialog window would pop up.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007277 case "$host_cpu" in
Theodore Ts'o93613952014-07-03 23:44:13 -04007278 i[34567]86 | x86_64)
7279 gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007280 esac
Theodore Ts'o93613952014-07-03 23:44:13 -04007281 ;;
7282 esac
7283 if test -z "$gt_cv_int_divbyzero_sigfpe"; then
7284 if test "$cross_compiling" = yes; then :
7285
7286 # Guess based on the CPU.
7287 case "$host_cpu" in
7288 alpha* | i[34567]86 | x86_64 | m68k | s390*)
7289 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7290 *)
7291 gt_cv_int_divbyzero_sigfpe="guessing no";;
7292 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007293
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007294else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007296/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007297
7298#include <stdlib.h>
7299#include <signal.h>
7300
7301static void
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007302sigfpe_handler (int sig)
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007303{
7304 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7305 exit (sig != SIGFPE);
7306}
7307
7308int x = 1;
7309int y = 0;
7310int z;
7311int nan;
7312
7313int main ()
7314{
7315 signal (SIGFPE, sigfpe_handler);
7316/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7317#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7318 signal (SIGTRAP, sigfpe_handler);
7319#endif
7320/* Linux/SPARC yields signal SIGILL. */
7321#if defined (__sparc__) && defined (__linux__)
7322 signal (SIGILL, sigfpe_handler);
7323#endif
7324
7325 z = x / y;
7326 nan = y / y;
Theodore Ts'o93613952014-07-03 23:44:13 -04007327 exit (2);
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007328}
7329
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007330_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007331if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007332 gt_cv_int_divbyzero_sigfpe=yes
7333else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007334 gt_cv_int_divbyzero_sigfpe=no
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007335fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007336rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7337 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007338fi
7339
Theodore Ts'o93613952014-07-03 23:44:13 -04007340 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007341
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007342fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007344$as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007345 case "$gt_cv_int_divbyzero_sigfpe" in
7346 *yes) value=1;;
7347 *) value=0;;
7348 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007349
7350cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007351#define INTDIV0_RAISES_SIGFPE $value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007352_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007353
7354
7355
Theodore Ts'o93613952014-07-03 23:44:13 -04007356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7357$as_echo_n "checking for inttypes.h... " >&6; }
7358if ${gl_cv_header_inttypes_h+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007359 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007360else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007362/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -04007363
7364#include <sys/types.h>
7365#include <inttypes.h>
7366
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007367int
7368main ()
7369{
Theodore Ts'o93613952014-07-03 23:44:13 -04007370uintmax_t i = (uintmax_t) -1; return !i;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007371 ;
7372 return 0;
7373}
7374_ACEOF
Theodore Ts'o93613952014-07-03 23:44:13 -04007375if ac_fn_c_try_compile "$LINENO"; then :
7376 gl_cv_header_inttypes_h=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007377else
Theodore Ts'o93613952014-07-03 23:44:13 -04007378 gl_cv_header_inttypes_h=no
7379fi
7380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7381fi
7382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
7383$as_echo "$gl_cv_header_inttypes_h" >&6; }
7384 if test $gl_cv_header_inttypes_h = yes; then
7385
7386cat >>confdefs.h <<_ACEOF
7387#define HAVE_INTTYPES_H_WITH_UINTMAX 1
7388_ACEOF
7389
7390 fi
7391
7392
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
7394$as_echo_n "checking for unsigned long long int... " >&6; }
7395if ${ac_cv_type_unsigned_long_long_int+:} false; then :
7396 $as_echo_n "(cached) " >&6
7397else
7398 ac_cv_type_unsigned_long_long_int=yes
7399 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7401/* end confdefs.h. */
7402
7403 /* For now, do not test the preprocessor; as of 2007 there are too many
7404 implementations with broken preprocessors. Perhaps this can
7405 be revisited in 2012. In the meantime, code should not expect
7406 #if to work with literals wider than 32 bits. */
7407 /* Test literals. */
7408 long long int ll = 9223372036854775807ll;
7409 long long int nll = -9223372036854775807LL;
7410 unsigned long long int ull = 18446744073709551615ULL;
7411 /* Test constant expressions. */
7412 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7413 ? 1 : -1)];
7414 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7415 ? 1 : -1)];
7416 int i = 63;
7417int
7418main ()
7419{
7420/* Test availability of runtime routines for shift and division. */
7421 long long int llmax = 9223372036854775807ll;
7422 unsigned long long int ullmax = 18446744073709551615ull;
7423 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7424 | (llmax / ll) | (llmax % ll)
7425 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7426 | (ullmax / ull) | (ullmax % ull));
7427 ;
7428 return 0;
7429}
7430
7431_ACEOF
7432if ac_fn_c_try_link "$LINENO"; then :
7433
7434else
7435 ac_cv_type_unsigned_long_long_int=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007436fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007437rm -f core conftest.err conftest.$ac_objext \
7438 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o93613952014-07-03 23:44:13 -04007439 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007440fi
Theodore Ts'o93613952014-07-03 23:44:13 -04007441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
7442$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
7443 if test $ac_cv_type_unsigned_long_long_int = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007444
Theodore Ts'o93613952014-07-03 23:44:13 -04007445$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007446
7447 fi
7448
7449
7450
7451
Theodore Ts'o93613952014-07-03 23:44:13 -04007452 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007453
Theodore Ts'o93613952014-07-03 23:44:13 -04007454 test $ac_cv_type_unsigned_long_long_int = yes \
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007455 && ac_type='unsigned long long' \
7456 || ac_type='unsigned long'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007457
7458cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007459#define uintmax_t $ac_type
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007460_ACEOF
7461
7462 else
7463
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007464$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007465
7466 fi
7467
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007468
Theodore Ts'o93613952014-07-03 23:44:13 -04007469 for ac_header in inttypes.h
7470do :
7471 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
7472if test "x$ac_cv_header_inttypes_h" = xyes; then :
7473 cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007474#define HAVE_INTTYPES_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007475_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007476
Theodore Ts'o93613952014-07-03 23:44:13 -04007477fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007478
Theodore Ts'o93613952014-07-03 23:44:13 -04007479done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007480
Theodore Ts'o93613952014-07-03 23:44:13 -04007481 if test $ac_cv_header_inttypes_h = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007483$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007484if ${gt_cv_inttypes_pri_broken+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007485 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007486else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007487
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007489/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -04007490
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007491#include <inttypes.h>
7492#ifdef PRId32
7493char *p = PRId32;
7494#endif
7495
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007496int
7497main ()
7498{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007499
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007500 ;
7501 return 0;
7502}
7503_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007504if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007505 gt_cv_inttypes_pri_broken=no
7506else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007507 gt_cv_inttypes_pri_broken=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007508fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007510
7511fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007513$as_echo "$gt_cv_inttypes_pri_broken" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007514 fi
7515 if test "$gt_cv_inttypes_pri_broken" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007516
7517cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007518#define PRI_MACROS_BROKEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007519_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007520
Theodore Ts'o93613952014-07-03 23:44:13 -04007521 PRI_MACROS_BROKEN=1
7522 else
7523 PRI_MACROS_BROKEN=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007524 fi
7525
7526
7527
Theodore Ts'o93613952014-07-03 23:44:13 -04007528
7529
7530
7531
7532 # Check whether --enable-threads was given.
7533if test "${enable_threads+set}" = set; then :
7534 enableval=$enable_threads; gl_use_threads=$enableval
7535else
7536 if test -n "$gl_use_threads_default"; then
7537 gl_use_threads="$gl_use_threads_default"
7538 else
7539 case "$host_os" in
7540 osf*) gl_use_threads=no ;;
7541 cygwin*)
7542 case `uname -r` in
7543 1.[0-5].*) gl_use_threads=no ;;
7544 *) gl_use_threads=yes ;;
7545 esac
7546 ;;
7547 *) gl_use_threads=yes ;;
7548 esac
7549 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007550
7551fi
7552
Theodore Ts'o93613952014-07-03 23:44:13 -04007553 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7554 # For using <pthread.h>:
7555 case "$host_os" in
7556 osf*)
7557 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
7558 # groks <pthread.h>. cc also understands the flag -pthread, but
7559 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
7560 # 2. putting a flag into CPPFLAGS that has an effect on the linker
7561 # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
7562 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
7563 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
7564 ;;
7565 esac
7566 # Some systems optimize for single-threaded programs by default, and
7567 # need special flags to disable these optimizations. For example, the
7568 # definition of 'errno' in <errno.h>.
7569 case "$host_os" in
7570 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
7571 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
7572 esac
7573 fi
7574
7575
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007576
7577
7578
7579 if test "X$prefix" = "XNONE"; then
7580 acl_final_prefix="$ac_default_prefix"
7581 else
7582 acl_final_prefix="$prefix"
7583 fi
7584 if test "X$exec_prefix" = "XNONE"; then
7585 acl_final_exec_prefix='${prefix}'
7586 else
7587 acl_final_exec_prefix="$exec_prefix"
7588 fi
7589 acl_save_prefix="$prefix"
7590 prefix="$acl_final_prefix"
7591 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7592 prefix="$acl_save_prefix"
7593
7594
Theodore Ts'o93613952014-07-03 23:44:13 -04007595
Theodore Ts'oe1052142006-10-21 21:46:47 -04007596# Check whether --with-gnu-ld was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007597if test "${with_gnu_ld+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04007598 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007599else
7600 with_gnu_ld=no
Theodore Ts'oe1052142006-10-21 21:46:47 -04007601fi
7602
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007603# Prepare PATH_SEPARATOR.
7604# The user is always right.
7605if test "${PATH_SEPARATOR+set}" != set; then
Theodore Ts'o93613952014-07-03 23:44:13 -04007606 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7607 # contains only /bin. Note that ksh looks also at the FPATH variable,
7608 # so we have to set that as well for the test.
7609 PATH_SEPARATOR=:
7610 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7611 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7612 || PATH_SEPARATOR=';'
7613 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007614fi
Theodore Ts'o93613952014-07-03 23:44:13 -04007615
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007616ac_prog=ld
7617if test "$GCC" = yes; then
7618 # Check if gcc -print-prog-name=ld gives a path.
Theodore Ts'o93613952014-07-03 23:44:13 -04007619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7620$as_echo_n "checking for ld used by $CC... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007621 case $host in
7622 *-*-mingw*)
7623 # gcc leaves a trailing carriage return which upsets mingw
7624 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7625 *)
7626 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7627 esac
7628 case $ac_prog in
7629 # Accept absolute paths.
Theodore Ts'o93613952014-07-03 23:44:13 -04007630 [\\/]* | ?:[\\/]*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007631 re_direlt='/[^/][^/]*/\.\./'
Theodore Ts'o93613952014-07-03 23:44:13 -04007632 # Canonicalize the pathname of ld
7633 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
7634 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
7635 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007636 done
7637 test -z "$LD" && LD="$ac_prog"
7638 ;;
7639 "")
7640 # If it fails, then pretend we aren't using GCC.
7641 ac_prog=ld
7642 ;;
7643 *)
7644 # If it is relative, then search for the first ld in PATH.
7645 with_gnu_ld=unknown
7646 ;;
7647 esac
7648elif test "$with_gnu_ld" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007650$as_echo_n "checking for GNU ld... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007651else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007653$as_echo_n "checking for non-GNU ld... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007654fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007655if ${acl_cv_path_LD+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007656 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007657else
7658 if test -z "$LD"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04007659 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007660 for ac_dir in $PATH; do
Theodore Ts'o93613952014-07-03 23:44:13 -04007661 IFS="$acl_save_ifs"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007662 test -z "$ac_dir" && ac_dir=.
7663 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7664 acl_cv_path_LD="$ac_dir/$ac_prog"
7665 # Check to see if the program is GNU ld. I'd rather use --version,
Theodore Ts'o93613952014-07-03 23:44:13 -04007666 # but apparently some variants of GNU ld only accept -v.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007667 # Break only if it was the GNU/non-GNU ld that we prefer.
Theodore Ts'o93613952014-07-03 23:44:13 -04007668 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007669 *GNU* | *'with BFD'*)
Theodore Ts'o93613952014-07-03 23:44:13 -04007670 test "$with_gnu_ld" != no && break
7671 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007672 *)
Theodore Ts'o93613952014-07-03 23:44:13 -04007673 test "$with_gnu_ld" != yes && break
7674 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007675 esac
7676 fi
7677 done
Theodore Ts'o93613952014-07-03 23:44:13 -04007678 IFS="$acl_save_ifs"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007679else
7680 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7681fi
7682fi
7683
7684LD="$acl_cv_path_LD"
7685if test -n "$LD"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007687$as_echo "$LD" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007688else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007690$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007691fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007692test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007694$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007695if ${acl_cv_prog_gnu_ld+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007696 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007697else
Theodore Ts'o93613952014-07-03 23:44:13 -04007698 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007699case `$LD -v 2>&1 </dev/null` in
7700*GNU* | *'with BFD'*)
Theodore Ts'o93613952014-07-03 23:44:13 -04007701 acl_cv_prog_gnu_ld=yes
7702 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007703*)
Theodore Ts'o93613952014-07-03 23:44:13 -04007704 acl_cv_prog_gnu_ld=no
7705 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007706esac
7707fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007709$as_echo "$acl_cv_prog_gnu_ld" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007710with_gnu_ld=$acl_cv_prog_gnu_ld
7711
7712
7713
Theodore Ts'o93613952014-07-03 23:44:13 -04007714
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007716$as_echo_n "checking for shared library run path origin... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007717if ${acl_cv_rpath+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007718 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007719else
7720
7721 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7722 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7723 . ./conftest.sh
7724 rm -f ./conftest.sh
7725 acl_cv_rpath=done
7726
7727fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007729$as_echo "$acl_cv_rpath" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007730 wl="$acl_cv_wl"
Theodore Ts'o93613952014-07-03 23:44:13 -04007731 acl_libext="$acl_cv_libext"
7732 acl_shlibext="$acl_cv_shlibext"
7733 acl_libname_spec="$acl_cv_libname_spec"
7734 acl_library_names_spec="$acl_cv_library_names_spec"
7735 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7736 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7737 acl_hardcode_direct="$acl_cv_hardcode_direct"
7738 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
Theodore Ts'oe1052142006-10-21 21:46:47 -04007739 # Check whether --enable-rpath was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007740if test "${enable_rpath+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04007741 enableval=$enable_rpath; :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007742else
7743 enable_rpath=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04007744fi
7745
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007746
7747
7748
Theodore Ts'o93613952014-07-03 23:44:13 -04007749 acl_libdirstem=lib
7750 acl_libdirstem2=
7751 case "$host_os" in
7752 solaris*)
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
7754$as_echo_n "checking for 64-bit host... " >&6; }
7755if ${gl_cv_solaris_64bit+:} false; then :
7756 $as_echo_n "(cached) " >&6
7757else
7758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7759/* end confdefs.h. */
7760
7761#ifdef _LP64
7762sixtyfour bits
7763#endif
7764
7765_ACEOF
7766if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7767 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
7768 gl_cv_solaris_64bit=yes
7769else
7770 gl_cv_solaris_64bit=no
7771fi
7772rm -f conftest*
7773
7774
7775fi
7776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
7777$as_echo "$gl_cv_solaris_64bit" >&6; }
7778 if test $gl_cv_solaris_64bit = yes; then
7779 acl_libdirstem=lib/64
7780 case "$host_cpu" in
7781 sparc*) acl_libdirstem2=lib/sparcv9 ;;
7782 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
7783 esac
7784 fi
7785 ;;
7786 *)
7787 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
7788 if test -n "$searchpath"; then
7789 acl_save_IFS="${IFS= }"; IFS=":"
7790 for searchdir in $searchpath; do
7791 if test -d "$searchdir"; then
7792 case "$searchdir" in
7793 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
7794 */../ | */.. )
7795 # Better ignore directories of this form. They are misleading.
7796 ;;
7797 *) searchdir=`cd "$searchdir" && pwd`
7798 case "$searchdir" in
7799 */lib64 ) acl_libdirstem=lib64 ;;
7800 esac ;;
7801 esac
7802 fi
7803 done
7804 IFS="$acl_save_IFS"
7805 fi
7806 ;;
7807 esac
7808 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
7809
7810
7811
7812 gl_threads_api=none
7813 LIBTHREAD=
7814 LTLIBTHREAD=
7815 LIBMULTITHREAD=
7816 LTLIBMULTITHREAD=
7817 if test "$gl_use_threads" != no; then
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
7819$as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
7820if ${gl_cv_have_weak+:} false; then :
7821 $as_echo_n "(cached) " >&6
7822else
7823 gl_cv_have_weak=no
7824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7825/* end confdefs.h. */
7826extern void xyzzy ();
7827#pragma weak xyzzy
7828int
7829main ()
7830{
7831xyzzy();
7832 ;
7833 return 0;
7834}
7835_ACEOF
7836if ac_fn_c_try_link "$LINENO"; then :
7837 gl_cv_have_weak=maybe
7838fi
7839rm -f core conftest.err conftest.$ac_objext \
7840 conftest$ac_exeext conftest.$ac_ext
7841 if test $gl_cv_have_weak = maybe; then
7842 if test "$cross_compiling" = yes; then :
7843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7844/* end confdefs.h. */
7845#ifdef __ELF__
7846 Extensible Linking Format
7847 #endif
7848
7849_ACEOF
7850if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7851 $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
7852 gl_cv_have_weak="guessing yes"
7853else
7854 gl_cv_have_weak="guessing no"
7855fi
7856rm -f conftest*
7857
7858
7859else
7860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7861/* end confdefs.h. */
7862
7863#include <stdio.h>
7864#pragma weak fputs
7865int main ()
7866{
7867 return (fputs == NULL);
7868}
7869_ACEOF
7870if ac_fn_c_try_run "$LINENO"; then :
7871 gl_cv_have_weak=yes
7872else
7873 gl_cv_have_weak=no
7874fi
7875rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7876 conftest.$ac_objext conftest.beam conftest.$ac_ext
7877fi
7878
7879 fi
7880
7881fi
7882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
7883$as_echo "$gl_cv_have_weak" >&6; }
7884 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7885 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
7886 # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
7887 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
7888if test "x$ac_cv_header_pthread_h" = xyes; then :
7889 gl_have_pthread_h=yes
7890else
7891 gl_have_pthread_h=no
7892fi
7893
7894
7895 if test "$gl_have_pthread_h" = yes; then
7896 # Other possible tests:
7897 # -lpthreads (FSU threads, PCthreads)
7898 # -lgthreads
7899 gl_have_pthread=
7900 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
7901 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
7902 # the second one only in libpthread, and lock.c needs it.
7903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7904/* end confdefs.h. */
7905#include <pthread.h>
7906int
7907main ()
7908{
7909pthread_mutex_lock((pthread_mutex_t*)0);
7910 pthread_mutexattr_init((pthread_mutexattr_t*)0);
7911 ;
7912 return 0;
7913}
7914_ACEOF
7915if ac_fn_c_try_link "$LINENO"; then :
7916 gl_have_pthread=yes
7917fi
7918rm -f core conftest.err conftest.$ac_objext \
7919 conftest$ac_exeext conftest.$ac_ext
7920 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
7921 # since it is defined as a macro on OSF/1.)
7922 if test -n "$gl_have_pthread"; then
7923 # The program links fine without libpthread. But it may actually
7924 # need to link with libpthread in order to create multiple threads.
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
7926$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
7927if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
7928 $as_echo_n "(cached) " >&6
7929else
7930 ac_check_lib_save_LIBS=$LIBS
7931LIBS="-lpthread $LIBS"
7932cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7933/* end confdefs.h. */
7934
7935/* Override any GCC internal prototype to avoid an error.
7936 Use char because int might match the return type of a GCC
7937 builtin and then its argument prototype would still apply. */
7938#ifdef __cplusplus
7939extern "C"
7940#endif
7941char pthread_kill ();
7942int
7943main ()
7944{
7945return pthread_kill ();
7946 ;
7947 return 0;
7948}
7949_ACEOF
7950if ac_fn_c_try_link "$LINENO"; then :
7951 ac_cv_lib_pthread_pthread_kill=yes
7952else
7953 ac_cv_lib_pthread_pthread_kill=no
7954fi
7955rm -f core conftest.err conftest.$ac_objext \
7956 conftest$ac_exeext conftest.$ac_ext
7957LIBS=$ac_check_lib_save_LIBS
7958fi
7959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
7960$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
7961if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
7962 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
7963 # On Solaris and HP-UX, most pthread functions exist also in libc.
7964 # Therefore pthread_in_use() needs to actually try to create a
7965 # thread: pthread_create from libc will fail, whereas
7966 # pthread_create will actually create a thread.
7967 case "$host_os" in
7968 solaris* | hpux*)
7969
7970$as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
7971
7972 esac
7973
7974fi
7975
7976 else
7977 # Some library is needed. Try libpthread and libc_r.
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
7979$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
7980if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
7981 $as_echo_n "(cached) " >&6
7982else
7983 ac_check_lib_save_LIBS=$LIBS
7984LIBS="-lpthread $LIBS"
7985cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7986/* end confdefs.h. */
7987
7988/* Override any GCC internal prototype to avoid an error.
7989 Use char because int might match the return type of a GCC
7990 builtin and then its argument prototype would still apply. */
7991#ifdef __cplusplus
7992extern "C"
7993#endif
7994char pthread_kill ();
7995int
7996main ()
7997{
7998return pthread_kill ();
7999 ;
8000 return 0;
8001}
8002_ACEOF
8003if ac_fn_c_try_link "$LINENO"; then :
8004 ac_cv_lib_pthread_pthread_kill=yes
8005else
8006 ac_cv_lib_pthread_pthread_kill=no
8007fi
8008rm -f core conftest.err conftest.$ac_objext \
8009 conftest$ac_exeext conftest.$ac_ext
8010LIBS=$ac_check_lib_save_LIBS
8011fi
8012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
8013$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
8014if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
8015 gl_have_pthread=yes
8016 LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
8017 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
8018fi
8019
8020 if test -z "$gl_have_pthread"; then
8021 # For FreeBSD 4.
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
8023$as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
8024if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
8025 $as_echo_n "(cached) " >&6
8026else
8027 ac_check_lib_save_LIBS=$LIBS
8028LIBS="-lc_r $LIBS"
8029cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8030/* end confdefs.h. */
8031
8032/* Override any GCC internal prototype to avoid an error.
8033 Use char because int might match the return type of a GCC
8034 builtin and then its argument prototype would still apply. */
8035#ifdef __cplusplus
8036extern "C"
8037#endif
8038char pthread_kill ();
8039int
8040main ()
8041{
8042return pthread_kill ();
8043 ;
8044 return 0;
8045}
8046_ACEOF
8047if ac_fn_c_try_link "$LINENO"; then :
8048 ac_cv_lib_c_r_pthread_kill=yes
8049else
8050 ac_cv_lib_c_r_pthread_kill=no
8051fi
8052rm -f core conftest.err conftest.$ac_objext \
8053 conftest$ac_exeext conftest.$ac_ext
8054LIBS=$ac_check_lib_save_LIBS
8055fi
8056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
8057$as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
8058if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
8059 gl_have_pthread=yes
8060 LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
8061 LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
8062fi
8063
8064 fi
8065 fi
8066 if test -n "$gl_have_pthread"; then
8067 gl_threads_api=posix
8068
8069$as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
8070
8071 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8072 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8073
8074$as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
8075
8076 LIBTHREAD=
8077 LTLIBTHREAD=
8078 fi
8079 fi
8080 fi
8081 fi
8082 fi
8083 if test -z "$gl_have_pthread"; then
8084 if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
8085 gl_have_solaristhread=
8086 gl_save_LIBS="$LIBS"
8087 LIBS="$LIBS -lthread"
8088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8089/* end confdefs.h. */
8090
8091#include <thread.h>
8092#include <synch.h>
8093
8094int
8095main ()
8096{
8097thr_self();
8098 ;
8099 return 0;
8100}
8101_ACEOF
8102if ac_fn_c_try_link "$LINENO"; then :
8103 gl_have_solaristhread=yes
8104fi
8105rm -f core conftest.err conftest.$ac_objext \
8106 conftest$ac_exeext conftest.$ac_ext
8107 LIBS="$gl_save_LIBS"
8108 if test -n "$gl_have_solaristhread"; then
8109 gl_threads_api=solaris
8110 LIBTHREAD=-lthread
8111 LTLIBTHREAD=-lthread
8112 LIBMULTITHREAD="$LIBTHREAD"
8113 LTLIBMULTITHREAD="$LTLIBTHREAD"
8114
8115$as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
8116
8117 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8118
8119$as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
8120
8121 LIBTHREAD=
8122 LTLIBTHREAD=
8123 fi
8124 fi
8125 fi
8126 fi
8127 if test "$gl_use_threads" = pth; then
8128 gl_save_CPPFLAGS="$CPPFLAGS"
8129
8130
8131
8132
8133
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
8135$as_echo_n "checking how to link with libpth... " >&6; }
8136if ${ac_cv_libpth_libs+:} false; then :
8137 $as_echo_n "(cached) " >&6
8138else
8139
8140
8141
8142
8143
8144
8145
8146
8147 use_additional=yes
8148
8149 acl_save_prefix="$prefix"
8150 prefix="$acl_final_prefix"
8151 acl_save_exec_prefix="$exec_prefix"
8152 exec_prefix="$acl_final_exec_prefix"
8153
8154 eval additional_includedir=\"$includedir\"
8155 eval additional_libdir=\"$libdir\"
8156
8157 exec_prefix="$acl_save_exec_prefix"
8158 prefix="$acl_save_prefix"
8159
8160
8161# Check whether --with-libpth-prefix was given.
8162if test "${with_libpth_prefix+set}" = set; then :
8163 withval=$with_libpth_prefix;
8164 if test "X$withval" = "Xno"; then
8165 use_additional=no
8166 else
8167 if test "X$withval" = "X"; then
8168
8169 acl_save_prefix="$prefix"
8170 prefix="$acl_final_prefix"
8171 acl_save_exec_prefix="$exec_prefix"
8172 exec_prefix="$acl_final_exec_prefix"
8173
8174 eval additional_includedir=\"$includedir\"
8175 eval additional_libdir=\"$libdir\"
8176
8177 exec_prefix="$acl_save_exec_prefix"
8178 prefix="$acl_save_prefix"
8179
8180 else
8181 additional_includedir="$withval/include"
8182 additional_libdir="$withval/$acl_libdirstem"
8183 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8184 && ! test -d "$withval/$acl_libdirstem"; then
8185 additional_libdir="$withval/$acl_libdirstem2"
8186 fi
8187 fi
8188 fi
8189
8190fi
8191
8192 LIBPTH=
8193 LTLIBPTH=
8194 INCPTH=
8195 LIBPTH_PREFIX=
8196 HAVE_LIBPTH=
8197 rpathdirs=
8198 ltrpathdirs=
8199 names_already_handled=
8200 names_next_round='pth '
8201 while test -n "$names_next_round"; do
8202 names_this_round="$names_next_round"
8203 names_next_round=
8204 for name in $names_this_round; do
8205 already_handled=
8206 for n in $names_already_handled; do
8207 if test "$n" = "$name"; then
8208 already_handled=yes
8209 break
8210 fi
8211 done
8212 if test -z "$already_handled"; then
8213 names_already_handled="$names_already_handled $name"
8214 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8215 eval value=\"\$HAVE_LIB$uppername\"
8216 if test -n "$value"; then
8217 if test "$value" = yes; then
8218 eval value=\"\$LIB$uppername\"
8219 test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
8220 eval value=\"\$LTLIB$uppername\"
8221 test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
8222 else
8223 :
8224 fi
8225 else
8226 found_dir=
8227 found_la=
8228 found_so=
8229 found_a=
8230 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8231 if test -n "$acl_shlibext"; then
8232 shrext=".$acl_shlibext" # typically: shrext=.so
8233 else
8234 shrext=
8235 fi
8236 if test $use_additional = yes; then
8237 dir="$additional_libdir"
8238 if test -n "$acl_shlibext"; then
8239 if test -f "$dir/$libname$shrext"; then
8240 found_dir="$dir"
8241 found_so="$dir/$libname$shrext"
8242 else
8243 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8244 ver=`(cd "$dir" && \
8245 for f in "$libname$shrext".*; do echo "$f"; done \
8246 | sed -e "s,^$libname$shrext\\\\.,," \
8247 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8248 | sed 1q ) 2>/dev/null`
8249 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8250 found_dir="$dir"
8251 found_so="$dir/$libname$shrext.$ver"
8252 fi
8253 else
8254 eval library_names=\"$acl_library_names_spec\"
8255 for f in $library_names; do
8256 if test -f "$dir/$f"; then
8257 found_dir="$dir"
8258 found_so="$dir/$f"
8259 break
8260 fi
8261 done
8262 fi
8263 fi
8264 fi
8265 if test "X$found_dir" = "X"; then
8266 if test -f "$dir/$libname.$acl_libext"; then
8267 found_dir="$dir"
8268 found_a="$dir/$libname.$acl_libext"
8269 fi
8270 fi
8271 if test "X$found_dir" != "X"; then
8272 if test -f "$dir/$libname.la"; then
8273 found_la="$dir/$libname.la"
8274 fi
8275 fi
8276 fi
8277 if test "X$found_dir" = "X"; then
8278 for x in $LDFLAGS $LTLIBPTH; do
8279
8280 acl_save_prefix="$prefix"
8281 prefix="$acl_final_prefix"
8282 acl_save_exec_prefix="$exec_prefix"
8283 exec_prefix="$acl_final_exec_prefix"
8284 eval x=\"$x\"
8285 exec_prefix="$acl_save_exec_prefix"
8286 prefix="$acl_save_prefix"
8287
8288 case "$x" in
8289 -L*)
8290 dir=`echo "X$x" | sed -e 's/^X-L//'`
8291 if test -n "$acl_shlibext"; then
8292 if test -f "$dir/$libname$shrext"; then
8293 found_dir="$dir"
8294 found_so="$dir/$libname$shrext"
8295 else
8296 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8297 ver=`(cd "$dir" && \
8298 for f in "$libname$shrext".*; do echo "$f"; done \
8299 | sed -e "s,^$libname$shrext\\\\.,," \
8300 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8301 | sed 1q ) 2>/dev/null`
8302 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8303 found_dir="$dir"
8304 found_so="$dir/$libname$shrext.$ver"
8305 fi
8306 else
8307 eval library_names=\"$acl_library_names_spec\"
8308 for f in $library_names; do
8309 if test -f "$dir/$f"; then
8310 found_dir="$dir"
8311 found_so="$dir/$f"
8312 break
8313 fi
8314 done
8315 fi
8316 fi
8317 fi
8318 if test "X$found_dir" = "X"; then
8319 if test -f "$dir/$libname.$acl_libext"; then
8320 found_dir="$dir"
8321 found_a="$dir/$libname.$acl_libext"
8322 fi
8323 fi
8324 if test "X$found_dir" != "X"; then
8325 if test -f "$dir/$libname.la"; then
8326 found_la="$dir/$libname.la"
8327 fi
8328 fi
8329 ;;
8330 esac
8331 if test "X$found_dir" != "X"; then
8332 break
8333 fi
8334 done
8335 fi
8336 if test "X$found_dir" != "X"; then
8337 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
8338 if test "X$found_so" != "X"; then
8339 if test "$enable_rpath" = no \
8340 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8341 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8342 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8343 else
8344 haveit=
8345 for x in $ltrpathdirs; do
8346 if test "X$x" = "X$found_dir"; then
8347 haveit=yes
8348 break
8349 fi
8350 done
8351 if test -z "$haveit"; then
8352 ltrpathdirs="$ltrpathdirs $found_dir"
8353 fi
8354 if test "$acl_hardcode_direct" = yes; then
8355 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8356 else
8357 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8358 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8359 haveit=
8360 for x in $rpathdirs; do
8361 if test "X$x" = "X$found_dir"; then
8362 haveit=yes
8363 break
8364 fi
8365 done
8366 if test -z "$haveit"; then
8367 rpathdirs="$rpathdirs $found_dir"
8368 fi
8369 else
8370 haveit=
8371 for x in $LDFLAGS $LIBPTH; do
8372
8373 acl_save_prefix="$prefix"
8374 prefix="$acl_final_prefix"
8375 acl_save_exec_prefix="$exec_prefix"
8376 exec_prefix="$acl_final_exec_prefix"
8377 eval x=\"$x\"
8378 exec_prefix="$acl_save_exec_prefix"
8379 prefix="$acl_save_prefix"
8380
8381 if test "X$x" = "X-L$found_dir"; then
8382 haveit=yes
8383 break
8384 fi
8385 done
8386 if test -z "$haveit"; then
8387 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
8388 fi
8389 if test "$acl_hardcode_minus_L" != no; then
8390 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8391 else
8392 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8393 fi
8394 fi
8395 fi
8396 fi
8397 else
8398 if test "X$found_a" != "X"; then
8399 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
8400 else
8401 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
8402 fi
8403 fi
8404 additional_includedir=
8405 case "$found_dir" in
8406 */$acl_libdirstem | */$acl_libdirstem/)
8407 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8408 if test "$name" = 'pth'; then
8409 LIBPTH_PREFIX="$basedir"
8410 fi
8411 additional_includedir="$basedir/include"
8412 ;;
8413 */$acl_libdirstem2 | */$acl_libdirstem2/)
8414 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8415 if test "$name" = 'pth'; then
8416 LIBPTH_PREFIX="$basedir"
8417 fi
8418 additional_includedir="$basedir/include"
8419 ;;
8420 esac
8421 if test "X$additional_includedir" != "X"; then
8422 if test "X$additional_includedir" != "X/usr/include"; then
8423 haveit=
8424 if test "X$additional_includedir" = "X/usr/local/include"; then
8425 if test -n "$GCC"; then
8426 case $host_os in
8427 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8428 esac
8429 fi
8430 fi
8431 if test -z "$haveit"; then
8432 for x in $CPPFLAGS $INCPTH; do
8433
8434 acl_save_prefix="$prefix"
8435 prefix="$acl_final_prefix"
8436 acl_save_exec_prefix="$exec_prefix"
8437 exec_prefix="$acl_final_exec_prefix"
8438 eval x=\"$x\"
8439 exec_prefix="$acl_save_exec_prefix"
8440 prefix="$acl_save_prefix"
8441
8442 if test "X$x" = "X-I$additional_includedir"; then
8443 haveit=yes
8444 break
8445 fi
8446 done
8447 if test -z "$haveit"; then
8448 if test -d "$additional_includedir"; then
8449 INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
8450 fi
8451 fi
8452 fi
8453 fi
8454 fi
8455 if test -n "$found_la"; then
8456 save_libdir="$libdir"
8457 case "$found_la" in
8458 */* | *\\*) . "$found_la" ;;
8459 *) . "./$found_la" ;;
8460 esac
8461 libdir="$save_libdir"
8462 for dep in $dependency_libs; do
8463 case "$dep" in
8464 -L*)
8465 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8466 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
8467 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
8468 haveit=
8469 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
8470 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
8471 if test -n "$GCC"; then
8472 case $host_os in
8473 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8474 esac
8475 fi
8476 fi
8477 if test -z "$haveit"; then
8478 haveit=
8479 for x in $LDFLAGS $LIBPTH; do
8480
8481 acl_save_prefix="$prefix"
8482 prefix="$acl_final_prefix"
8483 acl_save_exec_prefix="$exec_prefix"
8484 exec_prefix="$acl_final_exec_prefix"
8485 eval x=\"$x\"
8486 exec_prefix="$acl_save_exec_prefix"
8487 prefix="$acl_save_prefix"
8488
8489 if test "X$x" = "X-L$additional_libdir"; then
8490 haveit=yes
8491 break
8492 fi
8493 done
8494 if test -z "$haveit"; then
8495 if test -d "$additional_libdir"; then
8496 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
8497 fi
8498 fi
8499 haveit=
8500 for x in $LDFLAGS $LTLIBPTH; do
8501
8502 acl_save_prefix="$prefix"
8503 prefix="$acl_final_prefix"
8504 acl_save_exec_prefix="$exec_prefix"
8505 exec_prefix="$acl_final_exec_prefix"
8506 eval x=\"$x\"
8507 exec_prefix="$acl_save_exec_prefix"
8508 prefix="$acl_save_prefix"
8509
8510 if test "X$x" = "X-L$additional_libdir"; then
8511 haveit=yes
8512 break
8513 fi
8514 done
8515 if test -z "$haveit"; then
8516 if test -d "$additional_libdir"; then
8517 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
8518 fi
8519 fi
8520 fi
8521 fi
8522 ;;
8523 -R*)
8524 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8525 if test "$enable_rpath" != no; then
8526 haveit=
8527 for x in $rpathdirs; do
8528 if test "X$x" = "X$dir"; then
8529 haveit=yes
8530 break
8531 fi
8532 done
8533 if test -z "$haveit"; then
8534 rpathdirs="$rpathdirs $dir"
8535 fi
8536 haveit=
8537 for x in $ltrpathdirs; do
8538 if test "X$x" = "X$dir"; then
8539 haveit=yes
8540 break
8541 fi
8542 done
8543 if test -z "$haveit"; then
8544 ltrpathdirs="$ltrpathdirs $dir"
8545 fi
8546 fi
8547 ;;
8548 -l*)
8549 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8550 ;;
8551 *.la)
8552 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8553 ;;
8554 *)
8555 LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
8556 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
8557 ;;
8558 esac
8559 done
8560 fi
8561 else
8562 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8563 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
8564 fi
8565 fi
8566 fi
8567 done
8568 done
8569 if test "X$rpathdirs" != "X"; then
8570 if test -n "$acl_hardcode_libdir_separator"; then
8571 alldirs=
8572 for found_dir in $rpathdirs; do
8573 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8574 done
8575 acl_save_libdir="$libdir"
8576 libdir="$alldirs"
8577 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8578 libdir="$acl_save_libdir"
8579 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8580 else
8581 for found_dir in $rpathdirs; do
8582 acl_save_libdir="$libdir"
8583 libdir="$found_dir"
8584 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8585 libdir="$acl_save_libdir"
8586 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8587 done
8588 fi
8589 fi
8590 if test "X$ltrpathdirs" != "X"; then
8591 for found_dir in $ltrpathdirs; do
8592 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
8593 done
8594 fi
8595
8596
8597
8598
8599
8600
8601 ac_cv_libpth_libs="$LIBPTH"
8602 ac_cv_libpth_ltlibs="$LTLIBPTH"
8603 ac_cv_libpth_cppflags="$INCPTH"
8604 ac_cv_libpth_prefix="$LIBPTH_PREFIX"
8605
8606fi
8607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
8608$as_echo "$ac_cv_libpth_libs" >&6; }
8609 LIBPTH="$ac_cv_libpth_libs"
8610 LTLIBPTH="$ac_cv_libpth_ltlibs"
8611 INCPTH="$ac_cv_libpth_cppflags"
8612 LIBPTH_PREFIX="$ac_cv_libpth_prefix"
8613
8614 for element in $INCPTH; do
8615 haveit=
8616 for x in $CPPFLAGS; do
8617
8618 acl_save_prefix="$prefix"
8619 prefix="$acl_final_prefix"
8620 acl_save_exec_prefix="$exec_prefix"
8621 exec_prefix="$acl_final_exec_prefix"
8622 eval x=\"$x\"
8623 exec_prefix="$acl_save_exec_prefix"
8624 prefix="$acl_save_prefix"
8625
8626 if test "X$x" = "X$element"; then
8627 haveit=yes
8628 break
8629 fi
8630 done
8631 if test -z "$haveit"; then
8632 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8633 fi
8634 done
8635
8636
8637
8638
8639 HAVE_LIBPTH=yes
8640
8641
8642
8643 gl_have_pth=
8644 gl_save_LIBS="$LIBS"
8645 LIBS="$LIBS $LIBPTH"
8646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8647/* end confdefs.h. */
8648#include <pth.h>
8649int
8650main ()
8651{
8652pth_self();
8653 ;
8654 return 0;
8655}
8656_ACEOF
8657if ac_fn_c_try_link "$LINENO"; then :
8658 gl_have_pth=yes
8659fi
8660rm -f core conftest.err conftest.$ac_objext \
8661 conftest$ac_exeext conftest.$ac_ext
8662 LIBS="$gl_save_LIBS"
8663 if test -n "$gl_have_pth"; then
8664 gl_threads_api=pth
8665 LIBTHREAD="$LIBPTH"
8666 LTLIBTHREAD="$LTLIBPTH"
8667 LIBMULTITHREAD="$LIBTHREAD"
8668 LTLIBMULTITHREAD="$LTLIBTHREAD"
8669
8670$as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
8671
8672 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8673 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8674
8675$as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
8676
8677 LIBTHREAD=
8678 LTLIBTHREAD=
8679 fi
8680 fi
8681 else
8682 CPPFLAGS="$gl_save_CPPFLAGS"
8683 fi
8684 fi
8685 if test -z "$gl_have_pthread"; then
8686 case "$gl_use_threads" in
8687 yes | windows | win32) # The 'win32' is for backward compatibility.
8688 if { case "$host_os" in
8689 mingw*) true;;
8690 *) false;;
8691 esac
8692 }; then
8693 gl_threads_api=windows
8694
8695$as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
8696
8697 fi
8698 ;;
8699 esac
8700 fi
8701 fi
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
8703$as_echo_n "checking for multithread API to use... " >&6; }
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
8705$as_echo "$gl_threads_api" >&6; }
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716
8717 if test "$gl_threads_api" = posix; then
8718 # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
8719 # pthread_rwlock_* functions.
8720 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
8721"
8722if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
8723
8724$as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
8725
8726fi
8727
8728 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
8729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8730/* end confdefs.h. */
8731
8732 #include <pthread.h>
8733int
8734main ()
8735{
8736
8737#if __FreeBSD__ == 4
8738error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
8739#elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
8740 && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
8741error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
8742#else
8743int x = (int)PTHREAD_MUTEX_RECURSIVE;
8744return !x;
8745#endif
8746
8747 ;
8748 return 0;
8749}
8750_ACEOF
8751if ac_fn_c_try_compile "$LINENO"; then :
8752
8753$as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
8754
8755fi
8756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8757 fi
8758 :
8759
8760
8761
8762
8763
8764
8765
8766
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008767
8768
8769
8770
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008771 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008772
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008773 acl_save_prefix="$prefix"
8774 prefix="$acl_final_prefix"
8775 acl_save_exec_prefix="$exec_prefix"
8776 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008777
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008778 eval additional_includedir=\"$includedir\"
8779 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008780
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008781 exec_prefix="$acl_save_exec_prefix"
8782 prefix="$acl_save_prefix"
8783
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008784
Theodore Ts'oe1052142006-10-21 21:46:47 -04008785# Check whether --with-libiconv-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008786if test "${with_libiconv_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04008787 withval=$with_libiconv_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008788 if test "X$withval" = "Xno"; then
8789 use_additional=no
8790 else
8791 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008792
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008793 acl_save_prefix="$prefix"
8794 prefix="$acl_final_prefix"
8795 acl_save_exec_prefix="$exec_prefix"
8796 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008797
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008798 eval additional_includedir=\"$includedir\"
8799 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008800
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008801 exec_prefix="$acl_save_exec_prefix"
8802 prefix="$acl_save_prefix"
8803
8804 else
8805 additional_includedir="$withval/include"
Theodore Ts'o93613952014-07-03 23:44:13 -04008806 additional_libdir="$withval/$acl_libdirstem"
8807 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8808 && ! test -d "$withval/$acl_libdirstem"; then
8809 additional_libdir="$withval/$acl_libdirstem2"
8810 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008811 fi
8812 fi
8813
Theodore Ts'oe1052142006-10-21 21:46:47 -04008814fi
8815
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008816 LIBICONV=
8817 LTLIBICONV=
8818 INCICONV=
Theodore Ts'o93613952014-07-03 23:44:13 -04008819 LIBICONV_PREFIX=
8820 HAVE_LIBICONV=
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008821 rpathdirs=
8822 ltrpathdirs=
8823 names_already_handled=
8824 names_next_round='iconv '
8825 while test -n "$names_next_round"; do
8826 names_this_round="$names_next_round"
8827 names_next_round=
8828 for name in $names_this_round; do
8829 already_handled=
8830 for n in $names_already_handled; do
8831 if test "$n" = "$name"; then
8832 already_handled=yes
8833 break
8834 fi
8835 done
8836 if test -z "$already_handled"; then
8837 names_already_handled="$names_already_handled $name"
Theodore Ts'o93613952014-07-03 23:44:13 -04008838 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008839 eval value=\"\$HAVE_LIB$uppername\"
8840 if test -n "$value"; then
8841 if test "$value" = yes; then
8842 eval value=\"\$LIB$uppername\"
8843 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8844 eval value=\"\$LTLIB$uppername\"
8845 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8846 else
8847 :
8848 fi
8849 else
8850 found_dir=
8851 found_la=
8852 found_so=
8853 found_a=
Theodore Ts'o93613952014-07-03 23:44:13 -04008854 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8855 if test -n "$acl_shlibext"; then
8856 shrext=".$acl_shlibext" # typically: shrext=.so
8857 else
8858 shrext=
8859 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008860 if test $use_additional = yes; then
Theodore Ts'o93613952014-07-03 23:44:13 -04008861 dir="$additional_libdir"
8862 if test -n "$acl_shlibext"; then
8863 if test -f "$dir/$libname$shrext"; then
8864 found_dir="$dir"
8865 found_so="$dir/$libname$shrext"
8866 else
8867 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8868 ver=`(cd "$dir" && \
8869 for f in "$libname$shrext".*; do echo "$f"; done \
8870 | sed -e "s,^$libname$shrext\\\\.,," \
8871 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8872 | sed 1q ) 2>/dev/null`
8873 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8874 found_dir="$dir"
8875 found_so="$dir/$libname$shrext.$ver"
8876 fi
8877 else
8878 eval library_names=\"$acl_library_names_spec\"
8879 for f in $library_names; do
8880 if test -f "$dir/$f"; then
8881 found_dir="$dir"
8882 found_so="$dir/$f"
8883 break
8884 fi
8885 done
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008886 fi
8887 fi
8888 fi
Theodore Ts'o93613952014-07-03 23:44:13 -04008889 if test "X$found_dir" = "X"; then
8890 if test -f "$dir/$libname.$acl_libext"; then
8891 found_dir="$dir"
8892 found_a="$dir/$libname.$acl_libext"
8893 fi
8894 fi
8895 if test "X$found_dir" != "X"; then
8896 if test -f "$dir/$libname.la"; then
8897 found_la="$dir/$libname.la"
8898 fi
8899 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008900 fi
8901 if test "X$found_dir" = "X"; then
8902 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008903
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008904 acl_save_prefix="$prefix"
8905 prefix="$acl_final_prefix"
8906 acl_save_exec_prefix="$exec_prefix"
8907 exec_prefix="$acl_final_exec_prefix"
8908 eval x=\"$x\"
8909 exec_prefix="$acl_save_exec_prefix"
8910 prefix="$acl_save_prefix"
8911
8912 case "$x" in
8913 -L*)
8914 dir=`echo "X$x" | sed -e 's/^X-L//'`
Theodore Ts'o93613952014-07-03 23:44:13 -04008915 if test -n "$acl_shlibext"; then
8916 if test -f "$dir/$libname$shrext"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008917 found_dir="$dir"
Theodore Ts'o93613952014-07-03 23:44:13 -04008918 found_so="$dir/$libname$shrext"
8919 else
8920 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8921 ver=`(cd "$dir" && \
8922 for f in "$libname$shrext".*; do echo "$f"; done \
8923 | sed -e "s,^$libname$shrext\\\\.,," \
8924 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8925 | sed 1q ) 2>/dev/null`
8926 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8927 found_dir="$dir"
8928 found_so="$dir/$libname$shrext.$ver"
8929 fi
8930 else
8931 eval library_names=\"$acl_library_names_spec\"
8932 for f in $library_names; do
8933 if test -f "$dir/$f"; then
8934 found_dir="$dir"
8935 found_so="$dir/$f"
8936 break
8937 fi
8938 done
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008939 fi
8940 fi
8941 fi
Theodore Ts'o93613952014-07-03 23:44:13 -04008942 if test "X$found_dir" = "X"; then
8943 if test -f "$dir/$libname.$acl_libext"; then
8944 found_dir="$dir"
8945 found_a="$dir/$libname.$acl_libext"
8946 fi
8947 fi
8948 if test "X$found_dir" != "X"; then
8949 if test -f "$dir/$libname.la"; then
8950 found_la="$dir/$libname.la"
8951 fi
8952 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008953 ;;
8954 esac
8955 if test "X$found_dir" != "X"; then
8956 break
8957 fi
8958 done
8959 fi
8960 if test "X$found_dir" != "X"; then
8961 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8962 if test "X$found_so" != "X"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04008963 if test "$enable_rpath" = no \
8964 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8965 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008966 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8967 else
8968 haveit=
8969 for x in $ltrpathdirs; do
8970 if test "X$x" = "X$found_dir"; then
8971 haveit=yes
8972 break
8973 fi
8974 done
8975 if test -z "$haveit"; then
8976 ltrpathdirs="$ltrpathdirs $found_dir"
8977 fi
Theodore Ts'o93613952014-07-03 23:44:13 -04008978 if test "$acl_hardcode_direct" = yes; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008979 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8980 else
Theodore Ts'o93613952014-07-03 23:44:13 -04008981 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008982 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8983 haveit=
8984 for x in $rpathdirs; do
8985 if test "X$x" = "X$found_dir"; then
8986 haveit=yes
8987 break
8988 fi
8989 done
8990 if test -z "$haveit"; then
8991 rpathdirs="$rpathdirs $found_dir"
8992 fi
8993 else
8994 haveit=
8995 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008996
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008997 acl_save_prefix="$prefix"
8998 prefix="$acl_final_prefix"
8999 acl_save_exec_prefix="$exec_prefix"
9000 exec_prefix="$acl_final_exec_prefix"
9001 eval x=\"$x\"
9002 exec_prefix="$acl_save_exec_prefix"
9003 prefix="$acl_save_prefix"
9004
9005 if test "X$x" = "X-L$found_dir"; then
9006 haveit=yes
9007 break
9008 fi
9009 done
9010 if test -z "$haveit"; then
9011 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9012 fi
Theodore Ts'o93613952014-07-03 23:44:13 -04009013 if test "$acl_hardcode_minus_L" != no; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009014 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9015 else
9016 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9017 fi
9018 fi
9019 fi
9020 fi
9021 else
9022 if test "X$found_a" != "X"; then
9023 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9024 else
9025 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9026 fi
9027 fi
9028 additional_includedir=
9029 case "$found_dir" in
Theodore Ts'o93613952014-07-03 23:44:13 -04009030 */$acl_libdirstem | */$acl_libdirstem/)
9031 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9032 if test "$name" = 'iconv'; then
9033 LIBICONV_PREFIX="$basedir"
9034 fi
9035 additional_includedir="$basedir/include"
9036 ;;
9037 */$acl_libdirstem2 | */$acl_libdirstem2/)
9038 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9039 if test "$name" = 'iconv'; then
9040 LIBICONV_PREFIX="$basedir"
9041 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009042 additional_includedir="$basedir/include"
9043 ;;
9044 esac
9045 if test "X$additional_includedir" != "X"; then
9046 if test "X$additional_includedir" != "X/usr/include"; then
9047 haveit=
9048 if test "X$additional_includedir" = "X/usr/local/include"; then
9049 if test -n "$GCC"; then
9050 case $host_os in
Theodore Ts'o93613952014-07-03 23:44:13 -04009051 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009052 esac
9053 fi
9054 fi
9055 if test -z "$haveit"; then
9056 for x in $CPPFLAGS $INCICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009057
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009058 acl_save_prefix="$prefix"
9059 prefix="$acl_final_prefix"
9060 acl_save_exec_prefix="$exec_prefix"
9061 exec_prefix="$acl_final_exec_prefix"
9062 eval x=\"$x\"
9063 exec_prefix="$acl_save_exec_prefix"
9064 prefix="$acl_save_prefix"
9065
9066 if test "X$x" = "X-I$additional_includedir"; then
9067 haveit=yes
9068 break
9069 fi
9070 done
9071 if test -z "$haveit"; then
9072 if test -d "$additional_includedir"; then
9073 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9074 fi
9075 fi
9076 fi
9077 fi
9078 fi
9079 if test -n "$found_la"; then
9080 save_libdir="$libdir"
9081 case "$found_la" in
9082 */* | *\\*) . "$found_la" ;;
9083 *) . "./$found_la" ;;
9084 esac
9085 libdir="$save_libdir"
9086 for dep in $dependency_libs; do
9087 case "$dep" in
9088 -L*)
9089 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
Theodore Ts'o93613952014-07-03 23:44:13 -04009090 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
9091 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009092 haveit=
Theodore Ts'o93613952014-07-03 23:44:13 -04009093 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
9094 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009095 if test -n "$GCC"; then
9096 case $host_os in
Theodore Ts'o93613952014-07-03 23:44:13 -04009097 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009098 esac
9099 fi
9100 fi
9101 if test -z "$haveit"; then
9102 haveit=
9103 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009104
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009105 acl_save_prefix="$prefix"
9106 prefix="$acl_final_prefix"
9107 acl_save_exec_prefix="$exec_prefix"
9108 exec_prefix="$acl_final_exec_prefix"
9109 eval x=\"$x\"
9110 exec_prefix="$acl_save_exec_prefix"
9111 prefix="$acl_save_prefix"
9112
9113 if test "X$x" = "X-L$additional_libdir"; then
9114 haveit=yes
9115 break
9116 fi
9117 done
9118 if test -z "$haveit"; then
9119 if test -d "$additional_libdir"; then
9120 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9121 fi
9122 fi
9123 haveit=
9124 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009125
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009126 acl_save_prefix="$prefix"
9127 prefix="$acl_final_prefix"
9128 acl_save_exec_prefix="$exec_prefix"
9129 exec_prefix="$acl_final_exec_prefix"
9130 eval x=\"$x\"
9131 exec_prefix="$acl_save_exec_prefix"
9132 prefix="$acl_save_prefix"
9133
9134 if test "X$x" = "X-L$additional_libdir"; then
9135 haveit=yes
9136 break
9137 fi
9138 done
9139 if test -z "$haveit"; then
9140 if test -d "$additional_libdir"; then
9141 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9142 fi
9143 fi
9144 fi
9145 fi
9146 ;;
9147 -R*)
9148 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9149 if test "$enable_rpath" != no; then
9150 haveit=
9151 for x in $rpathdirs; do
9152 if test "X$x" = "X$dir"; then
9153 haveit=yes
9154 break
9155 fi
9156 done
9157 if test -z "$haveit"; then
9158 rpathdirs="$rpathdirs $dir"
9159 fi
9160 haveit=
9161 for x in $ltrpathdirs; do
9162 if test "X$x" = "X$dir"; then
9163 haveit=yes
9164 break
9165 fi
9166 done
9167 if test -z "$haveit"; then
9168 ltrpathdirs="$ltrpathdirs $dir"
9169 fi
9170 fi
9171 ;;
9172 -l*)
9173 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9174 ;;
9175 *.la)
9176 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9177 ;;
9178 *)
9179 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9180 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9181 ;;
9182 esac
9183 done
9184 fi
9185 else
9186 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9187 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9188 fi
9189 fi
9190 fi
9191 done
9192 done
9193 if test "X$rpathdirs" != "X"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04009194 if test -n "$acl_hardcode_libdir_separator"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009195 alldirs=
9196 for found_dir in $rpathdirs; do
Theodore Ts'o93613952014-07-03 23:44:13 -04009197 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009198 done
9199 acl_save_libdir="$libdir"
9200 libdir="$alldirs"
Theodore Ts'o93613952014-07-03 23:44:13 -04009201 eval flag=\"$acl_hardcode_libdir_flag_spec\"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009202 libdir="$acl_save_libdir"
9203 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9204 else
9205 for found_dir in $rpathdirs; do
9206 acl_save_libdir="$libdir"
9207 libdir="$found_dir"
Theodore Ts'o93613952014-07-03 23:44:13 -04009208 eval flag=\"$acl_hardcode_libdir_flag_spec\"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009209 libdir="$acl_save_libdir"
9210 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9211 done
9212 fi
9213 fi
9214 if test "X$ltrpathdirs" != "X"; then
9215 for found_dir in $ltrpathdirs; do
9216 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9217 done
9218 fi
9219
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009220
9221
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009222
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009223
9224
9225
9226
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009227
9228
9229
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009230
9231 am_save_CPPFLAGS="$CPPFLAGS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009232
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009233 for element in $INCICONV; do
9234 haveit=
9235 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009236
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009237 acl_save_prefix="$prefix"
9238 prefix="$acl_final_prefix"
9239 acl_save_exec_prefix="$exec_prefix"
9240 exec_prefix="$acl_final_exec_prefix"
9241 eval x=\"$x\"
9242 exec_prefix="$acl_save_exec_prefix"
9243 prefix="$acl_save_prefix"
9244
9245 if test "X$x" = "X$element"; then
9246 haveit=yes
9247 break
9248 fi
9249 done
9250 if test -z "$haveit"; then
9251 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9252 fi
9253 done
9254
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009255
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009257$as_echo_n "checking for iconv... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009258if ${am_cv_func_iconv+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009259 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009260else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009261
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009262 am_cv_func_iconv="no, consider installing GNU libiconv"
9263 am_cv_lib_iconv=no
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009265/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -04009266
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009267#include <stdlib.h>
9268#include <iconv.h>
Theodore Ts'o93613952014-07-03 23:44:13 -04009269
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009270int
9271main ()
9272{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009273iconv_t cd = iconv_open("","");
Theodore Ts'o93613952014-07-03 23:44:13 -04009274 iconv(cd,NULL,NULL,NULL,NULL);
9275 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009276 ;
9277 return 0;
9278}
9279_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009280if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009281 am_cv_func_iconv=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009282fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009283rm -f core conftest.err conftest.$ac_objext \
9284 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009285 if test "$am_cv_func_iconv" != yes; then
9286 am_save_LIBS="$LIBS"
9287 LIBS="$LIBS $LIBICONV"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009289/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -04009290
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009291#include <stdlib.h>
9292#include <iconv.h>
Theodore Ts'o93613952014-07-03 23:44:13 -04009293
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009294int
9295main ()
9296{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009297iconv_t cd = iconv_open("","");
Theodore Ts'o93613952014-07-03 23:44:13 -04009298 iconv(cd,NULL,NULL,NULL,NULL);
9299 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009300 ;
9301 return 0;
9302}
9303_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009304if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009305 am_cv_lib_iconv=yes
9306 am_cv_func_iconv=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009307fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009308rm -f core conftest.err conftest.$ac_objext \
9309 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009310 LIBS="$am_save_LIBS"
9311 fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009312
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009313fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009315$as_echo "$am_cv_func_iconv" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009316 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'o93613952014-07-03 23:44:13 -04009317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
9318$as_echo_n "checking for working iconv... " >&6; }
9319if ${am_cv_func_iconv_works+:} false; then :
9320 $as_echo_n "(cached) " >&6
9321else
9322
9323 am_save_LIBS="$LIBS"
9324 if test $am_cv_lib_iconv = yes; then
9325 LIBS="$LIBS $LIBICONV"
9326 fi
9327 if test "$cross_compiling" = yes; then :
9328
9329 case "$host_os" in
9330 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
9331 *) am_cv_func_iconv_works="guessing yes" ;;
9332 esac
9333
9334else
9335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9336/* end confdefs.h. */
9337
9338#include <iconv.h>
9339#include <string.h>
9340int main ()
9341{
9342 int result = 0;
9343 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
9344 returns. */
9345 {
9346 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
9347 if (cd_utf8_to_88591 != (iconv_t)(-1))
9348 {
9349 static const char input[] = "\342\202\254"; /* EURO SIGN */
9350 char buf[10];
9351 const char *inptr = input;
9352 size_t inbytesleft = strlen (input);
9353 char *outptr = buf;
9354 size_t outbytesleft = sizeof (buf);
9355 size_t res = iconv (cd_utf8_to_88591,
9356 (char **) &inptr, &inbytesleft,
9357 &outptr, &outbytesleft);
9358 if (res == 0)
9359 result |= 1;
9360 iconv_close (cd_utf8_to_88591);
9361 }
9362 }
9363 /* Test against Solaris 10 bug: Failures are not distinguishable from
9364 successful returns. */
9365 {
9366 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
9367 if (cd_ascii_to_88591 != (iconv_t)(-1))
9368 {
9369 static const char input[] = "\263";
9370 char buf[10];
9371 const char *inptr = input;
9372 size_t inbytesleft = strlen (input);
9373 char *outptr = buf;
9374 size_t outbytesleft = sizeof (buf);
9375 size_t res = iconv (cd_ascii_to_88591,
9376 (char **) &inptr, &inbytesleft,
9377 &outptr, &outbytesleft);
9378 if (res == 0)
9379 result |= 2;
9380 iconv_close (cd_ascii_to_88591);
9381 }
9382 }
9383 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
9384 {
9385 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
9386 if (cd_88591_to_utf8 != (iconv_t)(-1))
9387 {
9388 static const char input[] = "\304";
9389 static char buf[2] = { (char)0xDE, (char)0xAD };
9390 const char *inptr = input;
9391 size_t inbytesleft = 1;
9392 char *outptr = buf;
9393 size_t outbytesleft = 1;
9394 size_t res = iconv (cd_88591_to_utf8,
9395 (char **) &inptr, &inbytesleft,
9396 &outptr, &outbytesleft);
9397 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
9398 result |= 4;
9399 iconv_close (cd_88591_to_utf8);
9400 }
9401 }
9402#if 0 /* This bug could be worked around by the caller. */
9403 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
9404 {
9405 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
9406 if (cd_88591_to_utf8 != (iconv_t)(-1))
9407 {
9408 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
9409 char buf[50];
9410 const char *inptr = input;
9411 size_t inbytesleft = strlen (input);
9412 char *outptr = buf;
9413 size_t outbytesleft = sizeof (buf);
9414 size_t res = iconv (cd_88591_to_utf8,
9415 (char **) &inptr, &inbytesleft,
9416 &outptr, &outbytesleft);
9417 if ((int)res > 0)
9418 result |= 8;
9419 iconv_close (cd_88591_to_utf8);
9420 }
9421 }
9422#endif
9423 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
9424 provided. */
9425 if (/* Try standardized names. */
9426 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
9427 /* Try IRIX, OSF/1 names. */
9428 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
9429 /* Try AIX names. */
9430 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
9431 /* Try HP-UX names. */
9432 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
9433 result |= 16;
9434 return result;
9435}
9436_ACEOF
9437if ac_fn_c_try_run "$LINENO"; then :
9438 am_cv_func_iconv_works=yes
9439else
9440 am_cv_func_iconv_works=no
9441fi
9442rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9443 conftest.$ac_objext conftest.beam conftest.$ac_ext
9444fi
9445
9446 LIBS="$am_save_LIBS"
9447
9448fi
9449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
9450$as_echo "$am_cv_func_iconv_works" >&6; }
9451 case "$am_cv_func_iconv_works" in
9452 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
9453 *) am_func_iconv=yes ;;
9454 esac
9455 else
9456 am_func_iconv=no am_cv_lib_iconv=no
9457 fi
9458 if test "$am_func_iconv" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009459
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009460$as_echo "#define HAVE_ICONV 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009461
9462 fi
9463 if test "$am_cv_lib_iconv" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009465$as_echo_n "checking how to link with libiconv... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009467$as_echo "$LIBICONV" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009468 else
9469 CPPFLAGS="$am_save_CPPFLAGS"
9470 LIBICONV=
9471 LTLIBICONV=
9472 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009473
9474
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009475
9476 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009478$as_echo_n "checking for iconv declaration... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009479 if ${am_cv_proto_iconv+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009480 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009481else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009482
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009484/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009485
9486#include <stdlib.h>
9487#include <iconv.h>
9488extern
9489#ifdef __cplusplus
9490"C"
9491#endif
Theodore Ts'o93613952014-07-03 23:44:13 -04009492#if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009493size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9494#else
9495size_t iconv();
9496#endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009497
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009498int
9499main ()
9500{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009501
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009502 ;
9503 return 0;
9504}
9505_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009506if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009507 am_cv_proto_iconv_arg1=""
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009508else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009509 am_cv_proto_iconv_arg1="const"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009510fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009512 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);"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009513fi
9514
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009515 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
Theodore Ts'o93613952014-07-03 23:44:13 -04009516 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
9517 $am_cv_proto_iconv" >&5
9518$as_echo "
9519 $am_cv_proto_iconv" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009520
9521cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009522#define ICONV_CONST $am_cv_proto_iconv_arg1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009523_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009524
Theodore Ts'o93613952014-07-03 23:44:13 -04009525
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009526 fi
9527
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009528
Theodore Ts'o93613952014-07-03 23:44:13 -04009529
9530
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009532/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -04009533int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009534int
9535main ()
9536{
Theodore Ts'o93613952014-07-03 23:44:13 -04009537
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009538 ;
9539 return 0;
9540}
9541_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009542if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o93613952014-07-03 23:44:13 -04009543
9544$as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
9545
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009546fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009547rm -f core conftest.err conftest.$ac_objext \
9548 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009549
Theodore Ts'o93613952014-07-03 23:44:13 -04009550 for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
9551do :
9552 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9553ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9554if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9555 cat >>confdefs.h <<_ACEOF
9556#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009557_ACEOF
Theodore Ts'o93613952014-07-03 23:44:13 -04009558
9559fi
9560
9561done
9562
9563 for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
9564 stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \
9565 argz_stringify argz_next __fsetlocking
9566do :
9567 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9568ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9569if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9570 cat >>confdefs.h <<_ACEOF
9571#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9572_ACEOF
9573
9574fi
9575done
9576
9577
9578 ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "#include <stdio.h>
9579"
9580if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then :
9581 ac_have_decl=1
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009582else
Theodore Ts'o93613952014-07-03 23:44:13 -04009583 ac_have_decl=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009584fi
Theodore Ts'o93613952014-07-03 23:44:13 -04009585
9586cat >>confdefs.h <<_ACEOF
9587#define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
9588_ACEOF
9589ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "#include <stdio.h>
9590"
9591if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then :
9592 ac_have_decl=1
9593else
9594 ac_have_decl=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009595fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009596
Theodore Ts'o93613952014-07-03 23:44:13 -04009597cat >>confdefs.h <<_ACEOF
9598#define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
9599_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009600
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009601
Theodore Ts'o93613952014-07-03 23:44:13 -04009602
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009603
9604 for ac_prog in bison
9605do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009606 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009607set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009609$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009610if ${ac_cv_prog_INTLBISON+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009611 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009612else
9613 if test -n "$INTLBISON"; then
9614 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9615else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9617for as_dir in $PATH
9618do
9619 IFS=$as_save_IFS
9620 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009621 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009623 ac_cv_prog_INTLBISON="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009625 break 2
9626 fi
9627done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009628 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009629IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009630
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009631fi
9632fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009633INTLBISON=$ac_cv_prog_INTLBISON
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009634if test -n "$INTLBISON"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009636$as_echo "$INTLBISON" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009637else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009639$as_echo "no" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009640fi
9641
Theodore Ts'oe1052142006-10-21 21:46:47 -04009642
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009643 test -n "$INTLBISON" && break
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009644done
9645
9646 if test -z "$INTLBISON"; then
9647 ac_verc_fail=yes
9648 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009650$as_echo_n "checking version of bison... " >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009651 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9652 case $ac_prog_version in
9653 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9654 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9655 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9656 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9657 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009659$as_echo "$ac_prog_version" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009660 fi
9661 if test $ac_verc_fail = yes; then
9662 INTLBISON=:
9663 fi
9664
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009665
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009666
Theodore Ts'o93613952014-07-03 23:44:13 -04009667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
9668$as_echo_n "checking for long long int... " >&6; }
9669if ${ac_cv_type_long_long_int+:} false; then :
9670 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009671else
Theodore Ts'o93613952014-07-03 23:44:13 -04009672 ac_cv_type_long_long_int=yes
9673 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
9674 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
9675 if test $ac_cv_type_long_long_int = yes; then
9676 if test "$cross_compiling" = yes; then :
9677 :
9678else
9679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9680/* end confdefs.h. */
9681#include <limits.h>
9682 #ifndef LLONG_MAX
9683 # define HALF \
9684 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
9685 # define LLONG_MAX (HALF - 1 + HALF)
9686 #endif
9687int
9688main ()
9689{
9690long long int n = 1;
9691 int i;
9692 for (i = 0; ; i++)
9693 {
9694 long long int m = n << i;
9695 if (m >> i != n)
9696 return 1;
9697 if (LLONG_MAX / 2 < m)
9698 break;
9699 }
9700 return 0;
9701 ;
9702 return 0;
9703}
9704_ACEOF
9705if ac_fn_c_try_run "$LINENO"; then :
9706
9707else
9708 ac_cv_type_long_long_int=no
9709fi
9710rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9711 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009712fi
9713
Theodore Ts'o93613952014-07-03 23:44:13 -04009714 fi
9715 fi
9716fi
9717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
9718$as_echo "$ac_cv_type_long_long_int" >&6; }
9719 if test $ac_cv_type_long_long_int = yes; then
9720
9721$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
9722
9723 fi
9724
9725
9726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
9727$as_echo_n "checking for wchar_t... " >&6; }
9728if ${gt_cv_c_wchar_t+:} false; then :
9729 $as_echo_n "(cached) " >&6
9730else
9731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9732/* end confdefs.h. */
9733#include <stddef.h>
9734 wchar_t foo = (wchar_t)'\0';
9735int
9736main ()
9737{
9738
9739 ;
9740 return 0;
9741}
9742_ACEOF
9743if ac_fn_c_try_compile "$LINENO"; then :
9744 gt_cv_c_wchar_t=yes
9745else
9746 gt_cv_c_wchar_t=no
9747fi
9748rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9749fi
9750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
9751$as_echo "$gt_cv_c_wchar_t" >&6; }
9752 if test $gt_cv_c_wchar_t = yes; then
9753
9754$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
9755
9756 fi
9757
9758
9759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
9760$as_echo_n "checking for wint_t... " >&6; }
9761if ${gt_cv_c_wint_t+:} false; then :
9762 $as_echo_n "(cached) " >&6
9763else
9764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9765/* end confdefs.h. */
9766
9767/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9768 <wchar.h>.
9769 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
9770 before <wchar.h>. */
9771#include <stddef.h>
9772#include <stdio.h>
9773#include <time.h>
9774#include <wchar.h>
9775 wint_t foo = (wchar_t)'\0';
9776int
9777main ()
9778{
9779
9780 ;
9781 return 0;
9782}
9783_ACEOF
9784if ac_fn_c_try_compile "$LINENO"; then :
9785 gt_cv_c_wint_t=yes
9786else
9787 gt_cv_c_wint_t=no
9788fi
9789rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9790fi
9791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
9792$as_echo "$gt_cv_c_wint_t" >&6; }
9793 if test $gt_cv_c_wint_t = yes; then
9794
9795$as_echo "#define HAVE_WINT_T 1" >>confdefs.h
9796
9797 fi
9798
9799
9800
9801
9802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
9803$as_echo_n "checking for intmax_t... " >&6; }
9804if ${gt_cv_c_intmax_t+:} false; then :
9805 $as_echo_n "(cached) " >&6
9806else
9807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9808/* end confdefs.h. */
9809
9810#include <stddef.h>
9811#include <stdlib.h>
9812#if HAVE_STDINT_H_WITH_UINTMAX
9813#include <stdint.h>
9814#endif
9815#if HAVE_INTTYPES_H_WITH_UINTMAX
9816#include <inttypes.h>
9817#endif
9818
9819int
9820main ()
9821{
9822intmax_t x = -1;
9823 return !x;
9824 ;
9825 return 0;
9826}
9827_ACEOF
9828if ac_fn_c_try_compile "$LINENO"; then :
9829 gt_cv_c_intmax_t=yes
9830else
9831 gt_cv_c_intmax_t=no
9832fi
9833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9834fi
9835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
9836$as_echo "$gt_cv_c_intmax_t" >&6; }
9837 if test $gt_cv_c_intmax_t = yes; then
9838
9839$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
9840
9841 fi
9842
9843
9844
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
9846$as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
9847if ${gt_cv_func_printf_posix+:} false; then :
9848 $as_echo_n "(cached) " >&6
9849else
9850
9851 if test "$cross_compiling" = yes; then :
9852
9853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9854/* end confdefs.h. */
9855
9856#if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
9857 notposix
9858#endif
9859
9860_ACEOF
9861if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9862 $EGREP "notposix" >/dev/null 2>&1; then :
9863 gt_cv_func_printf_posix="guessing no"
9864else
9865 gt_cv_func_printf_posix="guessing yes"
9866fi
9867rm -f conftest*
9868
9869
9870else
9871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9872/* end confdefs.h. */
9873
9874#include <stdio.h>
9875#include <string.h>
9876/* The string "%2$d %1$d", with dollar characters protected from the shell's
9877 dollar expansion (possibly an autoconf bug). */
9878static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
9879static char buf[100];
9880int main ()
9881{
9882 sprintf (buf, format, 33, 55);
9883 return (strcmp (buf, "55 33") != 0);
9884}
9885_ACEOF
9886if ac_fn_c_try_run "$LINENO"; then :
9887 gt_cv_func_printf_posix=yes
9888else
9889 gt_cv_func_printf_posix=no
9890fi
9891rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9892 conftest.$ac_objext conftest.beam conftest.$ac_ext
9893fi
9894
9895
9896fi
9897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
9898$as_echo "$gt_cv_func_printf_posix" >&6; }
9899 case $gt_cv_func_printf_posix in
9900 *yes)
9901
9902$as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
9903
9904 ;;
9905 esac
9906
9907
9908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
9909$as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
9910if ${ac_cv_gnu_library_2_1+:} false; then :
9911 $as_echo_n "(cached) " >&6
9912else
9913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9914/* end confdefs.h. */
9915
9916#include <features.h>
9917#ifdef __GNU_LIBRARY__
9918 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9919 Lucky GNU user
9920 #endif
9921#endif
9922#ifdef __UCLIBC__
9923 Lucky user
9924#endif
9925
9926_ACEOF
9927if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9928 $EGREP "Lucky" >/dev/null 2>&1; then :
9929 ac_cv_gnu_library_2_1=yes
9930else
9931 ac_cv_gnu_library_2_1=no
9932fi
9933rm -f conftest*
9934
9935
9936
9937fi
9938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
9939$as_echo "$ac_cv_gnu_library_2_1" >&6; }
9940
9941 GLIBC21="$ac_cv_gnu_library_2_1"
9942
9943
9944
9945 for ac_header in stdint.h
9946do :
9947 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
9948if test "x$ac_cv_header_stdint_h" = xyes; then :
9949 cat >>confdefs.h <<_ACEOF
9950#define HAVE_STDINT_H 1
9951_ACEOF
9952
9953fi
9954
9955done
9956
9957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
9958$as_echo_n "checking for SIZE_MAX... " >&6; }
9959if ${gl_cv_size_max+:} false; then :
9960 $as_echo_n "(cached) " >&6
9961else
9962
9963 gl_cv_size_max=
9964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9965/* end confdefs.h. */
9966
9967#include <limits.h>
9968#if HAVE_STDINT_H
9969#include <stdint.h>
9970#endif
9971#ifdef SIZE_MAX
9972Found it
9973#endif
9974
9975_ACEOF
9976if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9977 $EGREP "Found it" >/dev/null 2>&1; then :
9978 gl_cv_size_max=yes
9979fi
9980rm -f conftest*
9981
9982 if test -z "$gl_cv_size_max"; then
9983 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
9984#include <limits.h>"; then :
9985
9986else
9987 size_t_bits_minus_1=
9988fi
9989
9990 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
9991
9992else
9993 fits_in_uint=
9994fi
9995
9996 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
9997 if test $fits_in_uint = 1; then
9998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9999/* end confdefs.h. */
10000#include <stddef.h>
10001 extern size_t foo;
10002 extern unsigned long foo;
10003
10004int
10005main ()
10006{
10007
10008 ;
10009 return 0;
10010}
10011_ACEOF
10012if ac_fn_c_try_compile "$LINENO"; then :
10013 fits_in_uint=0
10014fi
10015rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10016 fi
10017 if test $fits_in_uint = 1; then
10018 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
10019 else
10020 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
10021 fi
10022 else
10023 gl_cv_size_max='((size_t)~(size_t)0)'
10024 fi
10025 fi
10026
10027fi
10028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
10029$as_echo "$gl_cv_size_max" >&6; }
10030 if test "$gl_cv_size_max" != yes; then
10031
10032cat >>confdefs.h <<_ACEOF
10033#define SIZE_MAX $gl_cv_size_max
10034_ACEOF
10035
10036 fi
10037
10038
10039
10040
10041 for ac_header in stdint.h
10042do :
10043 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
10044if test "x$ac_cv_header_stdint_h" = xyes; then :
10045 cat >>confdefs.h <<_ACEOF
10046#define HAVE_STDINT_H 1
10047_ACEOF
10048
10049fi
10050
10051done
10052
10053
10054
10055
10056
10057 for ac_func in $ac_func_list
10058do :
10059 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10060ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10061if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10062 cat >>confdefs.h <<_ACEOF
10063#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10064_ACEOF
10065
10066fi
10067done
10068
10069
10070
10071
10072
10073
10074
10075
10076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
10077$as_echo_n "checking for working fcntl.h... " >&6; }
10078if ${gl_cv_header_working_fcntl_h+:} false; then :
10079 $as_echo_n "(cached) " >&6
10080else
10081 if test "$cross_compiling" = yes; then :
10082 gl_cv_header_working_fcntl_h=cross-compiling
10083else
10084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10085/* end confdefs.h. */
10086#include <sys/types.h>
10087 #include <sys/stat.h>
10088 #if HAVE_UNISTD_H
10089 # include <unistd.h>
10090 #else /* on Windows with MSVC */
10091 # include <io.h>
10092 # include <stdlib.h>
10093 # defined sleep(n) _sleep ((n) * 1000)
10094 #endif
10095 #include <fcntl.h>
10096 #ifndef O_NOATIME
10097 #define O_NOATIME 0
10098 #endif
10099 #ifndef O_NOFOLLOW
10100 #define O_NOFOLLOW 0
10101 #endif
10102 static int const constants[] =
10103 {
10104 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
10105 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
10106 };
10107
10108int
10109main ()
10110{
10111
10112 int result = !constants;
10113 #if HAVE_SYMLINK
10114 {
10115 static char const sym[] = "conftest.sym";
10116 if (symlink ("/dev/null", sym) != 0)
10117 result |= 2;
10118 else
10119 {
10120 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
10121 if (fd >= 0)
10122 {
10123 close (fd);
10124 result |= 4;
10125 }
10126 }
10127 if (unlink (sym) != 0 || symlink (".", sym) != 0)
10128 result |= 2;
10129 else
10130 {
10131 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
10132 if (fd >= 0)
10133 {
10134 close (fd);
10135 result |= 4;
10136 }
10137 }
10138 unlink (sym);
10139 }
10140 #endif
10141 {
10142 static char const file[] = "confdefs.h";
10143 int fd = open (file, O_RDONLY | O_NOATIME);
10144 if (fd < 0)
10145 result |= 8;
10146 else
10147 {
10148 struct stat st0;
10149 if (fstat (fd, &st0) != 0)
10150 result |= 16;
10151 else
10152 {
10153 char c;
10154 sleep (1);
10155 if (read (fd, &c, 1) != 1)
10156 result |= 24;
10157 else
10158 {
10159 if (close (fd) != 0)
10160 result |= 32;
10161 else
10162 {
10163 struct stat st1;
10164 if (stat (file, &st1) != 0)
10165 result |= 40;
10166 else
10167 if (st0.st_atime != st1.st_atime)
10168 result |= 64;
10169 }
10170 }
10171 }
10172 }
10173 }
10174 return result;
10175 ;
10176 return 0;
10177}
10178_ACEOF
10179if ac_fn_c_try_run "$LINENO"; then :
10180 gl_cv_header_working_fcntl_h=yes
10181else
10182 case $? in #(
10183 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
10184 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
10185 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
10186 *) gl_cv_header_working_fcntl_h='no';;
10187 esac
10188fi
10189rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10190 conftest.$ac_objext conftest.beam conftest.$ac_ext
10191fi
10192
10193fi
10194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
10195$as_echo "$gl_cv_header_working_fcntl_h" >&6; }
10196
10197 case $gl_cv_header_working_fcntl_h in #(
10198 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
10199 *) ac_val=1;;
10200 esac
10201
10202cat >>confdefs.h <<_ACEOF
10203#define HAVE_WORKING_O_NOATIME $ac_val
10204_ACEOF
10205
10206
10207 case $gl_cv_header_working_fcntl_h in #(
10208 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
10209 *) ac_val=1;;
10210 esac
10211
10212cat >>confdefs.h <<_ACEOF
10213#define HAVE_WORKING_O_NOFOLLOW $ac_val
10214_ACEOF
10215
10216
10217
10218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10219$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10220if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10221 $as_echo_n "(cached) " >&6
10222else
10223 gt_save_LIBS="$LIBS"
10224 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10226/* end confdefs.h. */
10227#include <CoreFoundation/CFPreferences.h>
10228int
10229main ()
10230{
10231CFPreferencesCopyAppValue(NULL, NULL)
10232 ;
10233 return 0;
10234}
10235_ACEOF
10236if ac_fn_c_try_link "$LINENO"; then :
10237 gt_cv_func_CFPreferencesCopyAppValue=yes
10238else
10239 gt_cv_func_CFPreferencesCopyAppValue=no
10240fi
10241rm -f core conftest.err conftest.$ac_objext \
10242 conftest$ac_exeext conftest.$ac_ext
10243 LIBS="$gt_save_LIBS"
10244fi
10245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10246$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10247 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10248
10249$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10250
10251 fi
10252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10253$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10254if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10255 $as_echo_n "(cached) " >&6
10256else
10257 gt_save_LIBS="$LIBS"
10258 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10260/* end confdefs.h. */
10261#include <CoreFoundation/CFLocale.h>
10262int
10263main ()
10264{
10265CFLocaleCopyCurrent();
10266 ;
10267 return 0;
10268}
10269_ACEOF
10270if ac_fn_c_try_link "$LINENO"; then :
10271 gt_cv_func_CFLocaleCopyCurrent=yes
10272else
10273 gt_cv_func_CFLocaleCopyCurrent=no
10274fi
10275rm -f core conftest.err conftest.$ac_objext \
10276 conftest$ac_exeext conftest.$ac_ext
10277 LIBS="$gt_save_LIBS"
10278fi
10279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10280$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10281 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10282
10283$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10284
10285 fi
10286 INTL_MACOSX_LIBS=
10287 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10288 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10289 fi
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300 case "$enable_silent_rules" in
10301 yes) INTL_DEFAULT_VERBOSITY=0;;
10302 no) INTL_DEFAULT_VERBOSITY=1;;
10303 *) INTL_DEFAULT_VERBOSITY=1;;
10304 esac
10305
10306
10307 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
10308if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
10309
10310else
10311
10312$as_echo "#define ptrdiff_t long" >>confdefs.h
10313
10314
10315fi
10316
10317 for ac_header in features.h stddef.h stdlib.h string.h
10318do :
10319 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10320ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10321if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10322 cat >>confdefs.h <<_ACEOF
10323#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10324_ACEOF
10325
10326fi
10327
10328done
10329
10330 for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \
10331 snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
10332do :
10333 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10334ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10335if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10336 cat >>confdefs.h <<_ACEOF
10337#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10338_ACEOF
10339
10340fi
10341done
10342
10343
10344 ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
10345"
10346if test "x$ac_cv_have_decl__snprintf" = xyes; then :
10347 ac_have_decl=1
10348else
10349 ac_have_decl=0
10350fi
10351
10352cat >>confdefs.h <<_ACEOF
10353#define HAVE_DECL__SNPRINTF $ac_have_decl
10354_ACEOF
10355ac_fn_c_check_decl "$LINENO" "_snwprintf" "ac_cv_have_decl__snwprintf" "#include <stdio.h>
10356"
10357if test "x$ac_cv_have_decl__snwprintf" = xyes; then :
10358 ac_have_decl=1
10359else
10360 ac_have_decl=0
10361fi
10362
10363cat >>confdefs.h <<_ACEOF
10364#define HAVE_DECL__SNWPRINTF $ac_have_decl
10365_ACEOF
10366
10367
10368 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "#include <stdio.h>
10369"
10370if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
10371 ac_have_decl=1
10372else
10373 ac_have_decl=0
10374fi
10375
10376cat >>confdefs.h <<_ACEOF
10377#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
10378_ACEOF
10379
10380
10381 case $gt_cv_func_printf_posix in
10382 *yes) HAVE_POSIX_PRINTF=1 ;;
10383 *) HAVE_POSIX_PRINTF=0 ;;
10384 esac
10385
10386 if test "$ac_cv_func_asprintf" = yes; then
10387 HAVE_ASPRINTF=1
10388 else
10389 HAVE_ASPRINTF=0
10390 fi
10391
10392 if test "$ac_cv_func_snprintf" = yes; then
10393 HAVE_SNPRINTF=1
10394 else
10395 HAVE_SNPRINTF=0
10396 fi
10397
10398 if test "$ac_cv_func_newlocale" = yes; then
10399 HAVE_NEWLOCALE=1
10400 else
10401 HAVE_NEWLOCALE=0
10402 fi
10403
10404 if test "$ac_cv_func_wprintf" = yes; then
10405 HAVE_WPRINTF=1
10406 else
10407 HAVE_WPRINTF=0
10408 fi
10409
10410
10411
10412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10413$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10414if ${am_cv_langinfo_codeset+:} false; then :
10415 $as_echo_n "(cached) " >&6
10416else
10417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10418/* end confdefs.h. */
10419#include <langinfo.h>
10420int
10421main ()
10422{
10423char* cs = nl_langinfo(CODESET); return !cs;
10424 ;
10425 return 0;
10426}
10427_ACEOF
10428if ac_fn_c_try_link "$LINENO"; then :
10429 am_cv_langinfo_codeset=yes
10430else
10431 am_cv_langinfo_codeset=no
10432fi
10433rm -f core conftest.err conftest.$ac_objext \
10434 conftest$ac_exeext conftest.$ac_ext
10435
10436fi
10437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10438$as_echo "$am_cv_langinfo_codeset" >&6; }
10439 if test $am_cv_langinfo_codeset = yes; then
10440
10441$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10442
10443 fi
10444
10445
10446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10447$as_echo_n "checking for LC_MESSAGES... " >&6; }
10448if ${gt_cv_val_LC_MESSAGES+:} false; then :
10449 $as_echo_n "(cached) " >&6
10450else
10451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10452/* end confdefs.h. */
10453#include <locale.h>
10454int
10455main ()
10456{
10457return LC_MESSAGES
10458 ;
10459 return 0;
10460}
10461_ACEOF
10462if ac_fn_c_try_link "$LINENO"; then :
10463 gt_cv_val_LC_MESSAGES=yes
10464else
10465 gt_cv_val_LC_MESSAGES=no
10466fi
10467rm -f core conftest.err conftest.$ac_objext \
10468 conftest$ac_exeext conftest.$ac_ext
10469fi
10470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
10471$as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
10472 if test $gt_cv_val_LC_MESSAGES = yes; then
10473
10474$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10475
10476 fi
10477
10478
10479 if test "$enable_shared" = yes; then
10480 case "$host_os" in
10481 mingw* | cygwin*) is_woe32dll=yes ;;
10482 *) is_woe32dll=no ;;
10483 esac
10484 else
10485 is_woe32dll=no
10486 fi
10487 WOE32DLL=$is_woe32dll
10488
10489
10490 case "$host_os" in
10491 mingw* | cygwin*) is_woe32=yes ;;
10492 *) is_woe32=no ;;
10493 esac
10494 WOE32=$is_woe32
10495
10496 if test $WOE32 = yes; then
10497 if test -n "$ac_tool_prefix"; then
10498 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
10499set dummy ${ac_tool_prefix}windres; ac_word=$2
10500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10501$as_echo_n "checking for $ac_word... " >&6; }
10502if ${ac_cv_prog_WINDRES+:} false; then :
10503 $as_echo_n "(cached) " >&6
10504else
10505 if test -n "$WINDRES"; then
10506 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
10507else
10508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10509for as_dir in $PATH
10510do
10511 IFS=$as_save_IFS
10512 test -z "$as_dir" && as_dir=.
10513 for ac_exec_ext in '' $ac_executable_extensions; do
10514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10515 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
10516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10517 break 2
10518 fi
10519done
10520 done
10521IFS=$as_save_IFS
10522
10523fi
10524fi
10525WINDRES=$ac_cv_prog_WINDRES
10526if test -n "$WINDRES"; then
10527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
10528$as_echo "$WINDRES" >&6; }
10529else
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10531$as_echo "no" >&6; }
10532fi
10533
10534
10535fi
10536if test -z "$ac_cv_prog_WINDRES"; then
10537 ac_ct_WINDRES=$WINDRES
10538 # Extract the first word of "windres", so it can be a program name with args.
10539set dummy windres; ac_word=$2
10540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10541$as_echo_n "checking for $ac_word... " >&6; }
10542if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
10543 $as_echo_n "(cached) " >&6
10544else
10545 if test -n "$ac_ct_WINDRES"; then
10546 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
10547else
10548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10549for as_dir in $PATH
10550do
10551 IFS=$as_save_IFS
10552 test -z "$as_dir" && as_dir=.
10553 for ac_exec_ext in '' $ac_executable_extensions; do
10554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10555 ac_cv_prog_ac_ct_WINDRES="windres"
10556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10557 break 2
10558 fi
10559done
10560 done
10561IFS=$as_save_IFS
10562
10563fi
10564fi
10565ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
10566if test -n "$ac_ct_WINDRES"; then
10567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
10568$as_echo "$ac_ct_WINDRES" >&6; }
10569else
10570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10571$as_echo "no" >&6; }
10572fi
10573
10574 if test "x$ac_ct_WINDRES" = x; then
10575 WINDRES=""
10576 else
10577 case $cross_compiling:$ac_tool_warned in
10578yes:)
10579{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10580$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10581ac_tool_warned=yes ;;
10582esac
10583 WINDRES=$ac_ct_WINDRES
10584 fi
10585else
10586 WINDRES="$ac_cv_prog_WINDRES"
10587fi
10588
10589 fi
10590
10591 case "$host_os" in
10592 hpux*) LTLIBC="" ;;
10593 *) LTLIBC="-lc" ;;
10594 esac
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10623$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10624if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10625 $as_echo_n "(cached) " >&6
10626else
10627 gt_save_LIBS="$LIBS"
10628 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10630/* end confdefs.h. */
10631#include <CoreFoundation/CFPreferences.h>
10632int
10633main ()
10634{
10635CFPreferencesCopyAppValue(NULL, NULL)
10636 ;
10637 return 0;
10638}
10639_ACEOF
10640if ac_fn_c_try_link "$LINENO"; then :
10641 gt_cv_func_CFPreferencesCopyAppValue=yes
10642else
10643 gt_cv_func_CFPreferencesCopyAppValue=no
10644fi
10645rm -f core conftest.err conftest.$ac_objext \
10646 conftest$ac_exeext conftest.$ac_ext
10647 LIBS="$gt_save_LIBS"
10648fi
10649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10650$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10651 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10652
10653$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10654
10655 fi
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10657$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10658if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10659 $as_echo_n "(cached) " >&6
10660else
10661 gt_save_LIBS="$LIBS"
10662 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10664/* end confdefs.h. */
10665#include <CoreFoundation/CFLocale.h>
10666int
10667main ()
10668{
10669CFLocaleCopyCurrent();
10670 ;
10671 return 0;
10672}
10673_ACEOF
10674if ac_fn_c_try_link "$LINENO"; then :
10675 gt_cv_func_CFLocaleCopyCurrent=yes
10676else
10677 gt_cv_func_CFLocaleCopyCurrent=no
10678fi
10679rm -f core conftest.err conftest.$ac_objext \
10680 conftest$ac_exeext conftest.$ac_ext
10681 LIBS="$gt_save_LIBS"
10682fi
10683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10684$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10685 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10686
10687$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10688
10689 fi
10690 INTL_MACOSX_LIBS=
10691 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10692 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10693 fi
10694
10695
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010696
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010697
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010698
10699
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010700 BUILD_INCLUDED_LIBINTL=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010701 USE_INCLUDED_LIBINTL=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010702
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010703 LIBINTL=
10704 LTLIBINTL=
10705 POSUB=
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010706
Theodore Ts'o93613952014-07-03 23:44:13 -040010707 case " $gt_needs " in
10708 *" need-formatstring-macros "*) gt_api_version=3 ;;
10709 *" need-ngettext "*) gt_api_version=2 ;;
10710 *) gt_api_version=1 ;;
10711 esac
10712 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
10713 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
10714
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010715 if test "$USE_NLS" = "yes"; then
10716 gt_use_preinstalled_gnugettext=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010717
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010719$as_echo_n "checking whether included gettext is requested... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010720
Theodore Ts'oe1052142006-10-21 21:46:47 -040010721# Check whether --with-included-gettext was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010722if test "${with_included_gettext+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -040010723 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010724else
10725 nls_cv_force_use_gnu_gettext=no
Theodore Ts'oe1052142006-10-21 21:46:47 -040010726fi
10727
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010729$as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010730
10731 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10732 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010733
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010734
Theodore Ts'o93613952014-07-03 23:44:13 -040010735 if test $gt_api_version -ge 3; then
10736 gt_revision_test_code='
10737#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10738#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
10739#endif
10740typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
10741'
10742 else
10743 gt_revision_test_code=
10744 fi
10745 if test $gt_api_version -ge 2; then
10746 gt_expression_test_code=' + * ngettext ("", "", 0)'
10747 else
10748 gt_expression_test_code=
10749 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010750
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010752$as_echo_n "checking for GNU gettext in libc... " >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -040010753if eval \${$gt_func_gnugettext_libc+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010754 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010755else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010757/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -040010758
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010759#include <libintl.h>
Theodore Ts'o93613952014-07-03 23:44:13 -040010760$gt_revision_test_code
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010761extern int _nl_msg_cat_cntr;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010762extern int *_nl_domain_bindings;
Theodore Ts'o93613952014-07-03 23:44:13 -040010763
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010764int
10765main ()
10766{
Theodore Ts'o93613952014-07-03 23:44:13 -040010767
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010768bindtextdomain ("", "");
Theodore Ts'o93613952014-07-03 23:44:13 -040010769return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
10770
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010771 ;
10772 return 0;
10773}
10774_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010775if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o93613952014-07-03 23:44:13 -040010776 eval "$gt_func_gnugettext_libc=yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010777else
Theodore Ts'o93613952014-07-03 23:44:13 -040010778 eval "$gt_func_gnugettext_libc=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010779fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010780rm -f core conftest.err conftest.$ac_objext \
10781 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010782fi
Theodore Ts'o93613952014-07-03 23:44:13 -040010783eval ac_res=\$$gt_func_gnugettext_libc
10784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10785$as_echo "$ac_res" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010786
Theodore Ts'o93613952014-07-03 23:44:13 -040010787 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
10788
10789
10790
10791
10792
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010793
10794
10795
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010796 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010797
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010798 acl_save_prefix="$prefix"
10799 prefix="$acl_final_prefix"
10800 acl_save_exec_prefix="$exec_prefix"
10801 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010802
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010803 eval additional_includedir=\"$includedir\"
10804 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010805
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010806 exec_prefix="$acl_save_exec_prefix"
10807 prefix="$acl_save_prefix"
10808
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010809
Theodore Ts'oe1052142006-10-21 21:46:47 -040010810# Check whether --with-libintl-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010811if test "${with_libintl_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -040010812 withval=$with_libintl_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010813 if test "X$withval" = "Xno"; then
10814 use_additional=no
10815 else
10816 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010817
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010818 acl_save_prefix="$prefix"
10819 prefix="$acl_final_prefix"
10820 acl_save_exec_prefix="$exec_prefix"
10821 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010822
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010823 eval additional_includedir=\"$includedir\"
10824 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010825
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010826 exec_prefix="$acl_save_exec_prefix"
10827 prefix="$acl_save_prefix"
10828
10829 else
10830 additional_includedir="$withval/include"
Theodore Ts'o93613952014-07-03 23:44:13 -040010831 additional_libdir="$withval/$acl_libdirstem"
10832 if test "$acl_libdirstem2" != "$acl_libdirstem" \
10833 && ! test -d "$withval/$acl_libdirstem"; then
10834 additional_libdir="$withval/$acl_libdirstem2"
10835 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010836 fi
10837 fi
10838
Theodore Ts'oe1052142006-10-21 21:46:47 -040010839fi
10840
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010841 LIBINTL=
10842 LTLIBINTL=
10843 INCINTL=
Theodore Ts'o93613952014-07-03 23:44:13 -040010844 LIBINTL_PREFIX=
10845 HAVE_LIBINTL=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010846 rpathdirs=
10847 ltrpathdirs=
10848 names_already_handled=
10849 names_next_round='intl '
10850 while test -n "$names_next_round"; do
10851 names_this_round="$names_next_round"
10852 names_next_round=
10853 for name in $names_this_round; do
10854 already_handled=
10855 for n in $names_already_handled; do
10856 if test "$n" = "$name"; then
10857 already_handled=yes
10858 break
10859 fi
10860 done
10861 if test -z "$already_handled"; then
10862 names_already_handled="$names_already_handled $name"
Theodore Ts'o93613952014-07-03 23:44:13 -040010863 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010864 eval value=\"\$HAVE_LIB$uppername\"
10865 if test -n "$value"; then
10866 if test "$value" = yes; then
10867 eval value=\"\$LIB$uppername\"
10868 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10869 eval value=\"\$LTLIB$uppername\"
10870 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10871 else
10872 :
10873 fi
10874 else
10875 found_dir=
10876 found_la=
10877 found_so=
10878 found_a=
Theodore Ts'o93613952014-07-03 23:44:13 -040010879 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
10880 if test -n "$acl_shlibext"; then
10881 shrext=".$acl_shlibext" # typically: shrext=.so
10882 else
10883 shrext=
10884 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010885 if test $use_additional = yes; then
Theodore Ts'o93613952014-07-03 23:44:13 -040010886 dir="$additional_libdir"
10887 if test -n "$acl_shlibext"; then
10888 if test -f "$dir/$libname$shrext"; then
10889 found_dir="$dir"
10890 found_so="$dir/$libname$shrext"
10891 else
10892 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10893 ver=`(cd "$dir" && \
10894 for f in "$libname$shrext".*; do echo "$f"; done \
10895 | sed -e "s,^$libname$shrext\\\\.,," \
10896 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10897 | sed 1q ) 2>/dev/null`
10898 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10899 found_dir="$dir"
10900 found_so="$dir/$libname$shrext.$ver"
10901 fi
10902 else
10903 eval library_names=\"$acl_library_names_spec\"
10904 for f in $library_names; do
10905 if test -f "$dir/$f"; then
10906 found_dir="$dir"
10907 found_so="$dir/$f"
10908 break
10909 fi
10910 done
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010911 fi
10912 fi
10913 fi
Theodore Ts'o93613952014-07-03 23:44:13 -040010914 if test "X$found_dir" = "X"; then
10915 if test -f "$dir/$libname.$acl_libext"; then
10916 found_dir="$dir"
10917 found_a="$dir/$libname.$acl_libext"
10918 fi
10919 fi
10920 if test "X$found_dir" != "X"; then
10921 if test -f "$dir/$libname.la"; then
10922 found_la="$dir/$libname.la"
10923 fi
10924 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010925 fi
10926 if test "X$found_dir" = "X"; then
10927 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010928
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010929 acl_save_prefix="$prefix"
10930 prefix="$acl_final_prefix"
10931 acl_save_exec_prefix="$exec_prefix"
10932 exec_prefix="$acl_final_exec_prefix"
10933 eval x=\"$x\"
10934 exec_prefix="$acl_save_exec_prefix"
10935 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010936
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010937 case "$x" in
10938 -L*)
10939 dir=`echo "X$x" | sed -e 's/^X-L//'`
Theodore Ts'o93613952014-07-03 23:44:13 -040010940 if test -n "$acl_shlibext"; then
10941 if test -f "$dir/$libname$shrext"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010942 found_dir="$dir"
Theodore Ts'o93613952014-07-03 23:44:13 -040010943 found_so="$dir/$libname$shrext"
10944 else
10945 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10946 ver=`(cd "$dir" && \
10947 for f in "$libname$shrext".*; do echo "$f"; done \
10948 | sed -e "s,^$libname$shrext\\\\.,," \
10949 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10950 | sed 1q ) 2>/dev/null`
10951 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10952 found_dir="$dir"
10953 found_so="$dir/$libname$shrext.$ver"
10954 fi
10955 else
10956 eval library_names=\"$acl_library_names_spec\"
10957 for f in $library_names; do
10958 if test -f "$dir/$f"; then
10959 found_dir="$dir"
10960 found_so="$dir/$f"
10961 break
10962 fi
10963 done
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010964 fi
10965 fi
10966 fi
Theodore Ts'o93613952014-07-03 23:44:13 -040010967 if test "X$found_dir" = "X"; then
10968 if test -f "$dir/$libname.$acl_libext"; then
10969 found_dir="$dir"
10970 found_a="$dir/$libname.$acl_libext"
10971 fi
10972 fi
10973 if test "X$found_dir" != "X"; then
10974 if test -f "$dir/$libname.la"; then
10975 found_la="$dir/$libname.la"
10976 fi
10977 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010978 ;;
10979 esac
10980 if test "X$found_dir" != "X"; then
10981 break
10982 fi
10983 done
10984 fi
10985 if test "X$found_dir" != "X"; then
10986 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10987 if test "X$found_so" != "X"; then
Theodore Ts'o93613952014-07-03 23:44:13 -040010988 if test "$enable_rpath" = no \
10989 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
10990 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010991 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10992 else
10993 haveit=
10994 for x in $ltrpathdirs; do
10995 if test "X$x" = "X$found_dir"; then
10996 haveit=yes
10997 break
10998 fi
10999 done
11000 if test -z "$haveit"; then
11001 ltrpathdirs="$ltrpathdirs $found_dir"
11002 fi
Theodore Ts'o93613952014-07-03 23:44:13 -040011003 if test "$acl_hardcode_direct" = yes; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011004 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11005 else
Theodore Ts'o93613952014-07-03 23:44:13 -040011006 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011007 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11008 haveit=
11009 for x in $rpathdirs; do
11010 if test "X$x" = "X$found_dir"; then
11011 haveit=yes
11012 break
11013 fi
11014 done
11015 if test -z "$haveit"; then
11016 rpathdirs="$rpathdirs $found_dir"
11017 fi
11018 else
11019 haveit=
11020 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011021
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011022 acl_save_prefix="$prefix"
11023 prefix="$acl_final_prefix"
11024 acl_save_exec_prefix="$exec_prefix"
11025 exec_prefix="$acl_final_exec_prefix"
11026 eval x=\"$x\"
11027 exec_prefix="$acl_save_exec_prefix"
11028 prefix="$acl_save_prefix"
11029
11030 if test "X$x" = "X-L$found_dir"; then
11031 haveit=yes
11032 break
11033 fi
11034 done
11035 if test -z "$haveit"; then
11036 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
11037 fi
Theodore Ts'o93613952014-07-03 23:44:13 -040011038 if test "$acl_hardcode_minus_L" != no; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011039 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11040 else
11041 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11042 fi
11043 fi
11044 fi
11045 fi
11046 else
11047 if test "X$found_a" != "X"; then
11048 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
11049 else
11050 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
11051 fi
11052 fi
11053 additional_includedir=
11054 case "$found_dir" in
Theodore Ts'o93613952014-07-03 23:44:13 -040011055 */$acl_libdirstem | */$acl_libdirstem/)
11056 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
11057 if test "$name" = 'intl'; then
11058 LIBINTL_PREFIX="$basedir"
11059 fi
11060 additional_includedir="$basedir/include"
11061 ;;
11062 */$acl_libdirstem2 | */$acl_libdirstem2/)
11063 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
11064 if test "$name" = 'intl'; then
11065 LIBINTL_PREFIX="$basedir"
11066 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011067 additional_includedir="$basedir/include"
11068 ;;
11069 esac
11070 if test "X$additional_includedir" != "X"; then
11071 if test "X$additional_includedir" != "X/usr/include"; then
11072 haveit=
11073 if test "X$additional_includedir" = "X/usr/local/include"; then
11074 if test -n "$GCC"; then
11075 case $host_os in
Theodore Ts'o93613952014-07-03 23:44:13 -040011076 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011077 esac
11078 fi
11079 fi
11080 if test -z "$haveit"; then
11081 for x in $CPPFLAGS $INCINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011082
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011083 acl_save_prefix="$prefix"
11084 prefix="$acl_final_prefix"
11085 acl_save_exec_prefix="$exec_prefix"
11086 exec_prefix="$acl_final_exec_prefix"
11087 eval x=\"$x\"
11088 exec_prefix="$acl_save_exec_prefix"
11089 prefix="$acl_save_prefix"
11090
11091 if test "X$x" = "X-I$additional_includedir"; then
11092 haveit=yes
11093 break
11094 fi
11095 done
11096 if test -z "$haveit"; then
11097 if test -d "$additional_includedir"; then
11098 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
11099 fi
11100 fi
11101 fi
11102 fi
11103 fi
11104 if test -n "$found_la"; then
11105 save_libdir="$libdir"
11106 case "$found_la" in
11107 */* | *\\*) . "$found_la" ;;
11108 *) . "./$found_la" ;;
11109 esac
11110 libdir="$save_libdir"
11111 for dep in $dependency_libs; do
11112 case "$dep" in
11113 -L*)
11114 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
Theodore Ts'o93613952014-07-03 23:44:13 -040011115 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
11116 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011117 haveit=
Theodore Ts'o93613952014-07-03 23:44:13 -040011118 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
11119 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011120 if test -n "$GCC"; then
11121 case $host_os in
Theodore Ts'o93613952014-07-03 23:44:13 -040011122 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011123 esac
11124 fi
11125 fi
11126 if test -z "$haveit"; then
11127 haveit=
11128 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011129
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011130 acl_save_prefix="$prefix"
11131 prefix="$acl_final_prefix"
11132 acl_save_exec_prefix="$exec_prefix"
11133 exec_prefix="$acl_final_exec_prefix"
11134 eval x=\"$x\"
11135 exec_prefix="$acl_save_exec_prefix"
11136 prefix="$acl_save_prefix"
11137
11138 if test "X$x" = "X-L$additional_libdir"; then
11139 haveit=yes
11140 break
11141 fi
11142 done
11143 if test -z "$haveit"; then
11144 if test -d "$additional_libdir"; then
11145 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
11146 fi
11147 fi
11148 haveit=
11149 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011150
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011151 acl_save_prefix="$prefix"
11152 prefix="$acl_final_prefix"
11153 acl_save_exec_prefix="$exec_prefix"
11154 exec_prefix="$acl_final_exec_prefix"
11155 eval x=\"$x\"
11156 exec_prefix="$acl_save_exec_prefix"
11157 prefix="$acl_save_prefix"
11158
11159 if test "X$x" = "X-L$additional_libdir"; then
11160 haveit=yes
11161 break
11162 fi
11163 done
11164 if test -z "$haveit"; then
11165 if test -d "$additional_libdir"; then
11166 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
11167 fi
11168 fi
11169 fi
11170 fi
11171 ;;
11172 -R*)
11173 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11174 if test "$enable_rpath" != no; then
11175 haveit=
11176 for x in $rpathdirs; do
11177 if test "X$x" = "X$dir"; then
11178 haveit=yes
11179 break
11180 fi
11181 done
11182 if test -z "$haveit"; then
11183 rpathdirs="$rpathdirs $dir"
11184 fi
11185 haveit=
11186 for x in $ltrpathdirs; do
11187 if test "X$x" = "X$dir"; then
11188 haveit=yes
11189 break
11190 fi
11191 done
11192 if test -z "$haveit"; then
11193 ltrpathdirs="$ltrpathdirs $dir"
11194 fi
11195 fi
11196 ;;
11197 -l*)
11198 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11199 ;;
11200 *.la)
11201 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11202 ;;
11203 *)
11204 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
11205 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
11206 ;;
11207 esac
11208 done
11209 fi
11210 else
11211 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11212 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
11213 fi
11214 fi
11215 fi
11216 done
11217 done
11218 if test "X$rpathdirs" != "X"; then
Theodore Ts'o93613952014-07-03 23:44:13 -040011219 if test -n "$acl_hardcode_libdir_separator"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011220 alldirs=
11221 for found_dir in $rpathdirs; do
Theodore Ts'o93613952014-07-03 23:44:13 -040011222 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011223 done
11224 acl_save_libdir="$libdir"
11225 libdir="$alldirs"
Theodore Ts'o93613952014-07-03 23:44:13 -040011226 eval flag=\"$acl_hardcode_libdir_flag_spec\"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011227 libdir="$acl_save_libdir"
11228 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11229 else
11230 for found_dir in $rpathdirs; do
11231 acl_save_libdir="$libdir"
11232 libdir="$found_dir"
Theodore Ts'o93613952014-07-03 23:44:13 -040011233 eval flag=\"$acl_hardcode_libdir_flag_spec\"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011234 libdir="$acl_save_libdir"
11235 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11236 done
11237 fi
11238 fi
11239 if test "X$ltrpathdirs" != "X"; then
11240 for found_dir in $ltrpathdirs; do
11241 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
11242 done
11243 fi
11244
Theodore Ts'o93613952014-07-03 23:44:13 -040011245
11246
11247
11248
11249
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011251$as_echo_n "checking for GNU gettext in libintl... " >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -040011252if eval \${$gt_func_gnugettext_libintl+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011253 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011254else
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011255 gt_save_CPPFLAGS="$CPPFLAGS"
11256 CPPFLAGS="$CPPFLAGS $INCINTL"
11257 gt_save_LIBS="$LIBS"
11258 LIBS="$LIBS $LIBINTL"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011260/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -040011261
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011262#include <libintl.h>
Theodore Ts'o93613952014-07-03 23:44:13 -040011263$gt_revision_test_code
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011264extern int _nl_msg_cat_cntr;
11265extern
11266#ifdef __cplusplus
11267"C"
11268#endif
Theodore Ts'o93613952014-07-03 23:44:13 -040011269const char *_nl_expand_alias (const char *);
11270
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011271int
11272main ()
11273{
Theodore Ts'o93613952014-07-03 23:44:13 -040011274
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011275bindtextdomain ("", "");
Theodore Ts'o93613952014-07-03 23:44:13 -040011276return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11277
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011278 ;
11279 return 0;
11280}
11281_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011282if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o93613952014-07-03 23:44:13 -040011283 eval "$gt_func_gnugettext_libintl=yes"
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011284else
Theodore Ts'o93613952014-07-03 23:44:13 -040011285 eval "$gt_func_gnugettext_libintl=no"
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011286fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011287rm -f core conftest.err conftest.$ac_objext \
11288 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o93613952014-07-03 23:44:13 -040011289 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011290 LIBS="$LIBS $LIBICONV"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011292/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -040011293
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011294#include <libintl.h>
Theodore Ts'o93613952014-07-03 23:44:13 -040011295$gt_revision_test_code
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011296extern int _nl_msg_cat_cntr;
11297extern
11298#ifdef __cplusplus
11299"C"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011300#endif
Theodore Ts'o93613952014-07-03 23:44:13 -040011301const char *_nl_expand_alias (const char *);
11302
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011303int
11304main ()
11305{
Theodore Ts'o93613952014-07-03 23:44:13 -040011306
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011307bindtextdomain ("", "");
Theodore Ts'o93613952014-07-03 23:44:13 -040011308return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11309
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011310 ;
11311 return 0;
11312}
11313_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011314if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011315 LIBINTL="$LIBINTL $LIBICONV"
Theodore Ts'o93613952014-07-03 23:44:13 -040011316 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
11317 eval "$gt_func_gnugettext_libintl=yes"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011318
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011319fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011320rm -f core conftest.err conftest.$ac_objext \
11321 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011322 fi
11323 CPPFLAGS="$gt_save_CPPFLAGS"
11324 LIBS="$gt_save_LIBS"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011325fi
Theodore Ts'o93613952014-07-03 23:44:13 -040011326eval ac_res=\$$gt_func_gnugettext_libintl
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11328$as_echo "$ac_res" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011329 fi
11330
Theodore Ts'o93613952014-07-03 23:44:13 -040011331 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
11332 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011333 && test "$PACKAGE" != gettext-runtime \
11334 && test "$PACKAGE" != gettext-tools; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011335 gt_use_preinstalled_gnugettext=yes
11336 else
11337 LIBINTL=
11338 LTLIBINTL=
11339 INCINTL=
11340 fi
11341
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011342
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011343 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
11344 nls_cv_use_gnu_gettext=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011345 fi
11346 fi
11347
11348 if test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011349 BUILD_INCLUDED_LIBINTL=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011350 USE_INCLUDED_LIBINTL=yes
Theodore Ts'o93613952014-07-03 23:44:13 -040011351 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
11352 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011353 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011354 fi
11355
Theodore Ts'o93613952014-07-03 23:44:13 -040011356 CATOBJEXT=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011357 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11358 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11359 CATOBJEXT=.gmo
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011360 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011361
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011362
Theodore Ts'o93613952014-07-03 23:44:13 -040011363 if test -n "$INTL_MACOSX_LIBS"; then
11364 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11365 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11366 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
11367 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
11368 fi
11369 fi
11370
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011371 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11372 || test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011373
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011374$as_echo "#define ENABLE_NLS 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011375
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011376 else
11377 USE_NLS=no
11378 fi
11379 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011380
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011382$as_echo_n "checking whether to use NLS... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011384$as_echo "$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011385 if test "$USE_NLS" = "yes"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011387$as_echo_n "checking where the gettext function comes from... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011388 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
Theodore Ts'o93613952014-07-03 23:44:13 -040011389 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011390 gt_source="external libintl"
11391 else
11392 gt_source="libc"
11393 fi
11394 else
11395 gt_source="included intl directory"
11396 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011398$as_echo "$gt_source" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011399 fi
11400
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011401 if test "$USE_NLS" = "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011402
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011403 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
Theodore Ts'o93613952014-07-03 23:44:13 -040011404 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011406$as_echo_n "checking how to link with libintl... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011408$as_echo "$LIBINTL" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011409
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011410 for element in $INCINTL; do
11411 haveit=
11412 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011413
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011414 acl_save_prefix="$prefix"
11415 prefix="$acl_final_prefix"
11416 acl_save_exec_prefix="$exec_prefix"
11417 exec_prefix="$acl_final_exec_prefix"
11418 eval x=\"$x\"
11419 exec_prefix="$acl_save_exec_prefix"
11420 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011421
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011422 if test "X$x" = "X$element"; then
11423 haveit=yes
11424 break
11425 fi
11426 done
11427 if test -z "$haveit"; then
11428 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11429 fi
11430 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011431
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011432 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011433
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011434
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011435$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011436
11437
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011438$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011439
11440 fi
11441
11442 POSUB=po
11443 fi
11444
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011445
11446 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011447 BUILD_INCLUDED_LIBINTL=yes
11448 fi
11449
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011450
11451
11452
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011453
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011454 nls_cv_header_intl=
11455 nls_cv_header_libgt=
11456
11457 DATADIRNAME=share
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011458
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011459
11460 INSTOBJEXT=.mo
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011461
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011462
11463 GENCAT=gencat
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011464
11465
Theodore Ts'o93613952014-07-03 23:44:13 -040011466 INTLOBJS=
11467 if test "$USE_INCLUDED_LIBINTL" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011468 INTLOBJS="\$(GETTOBJS)"
11469 fi
11470
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011471
11472 INTL_LIBTOOL_SUFFIX_PREFIX=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011473
11474
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011475
11476 INTLLIBS="$LIBINTL"
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011477
11478
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011479
11480
11481
11482
11483
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011485$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11486set x ${MAKE-make}
11487ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011488if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011489 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011490else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011491 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040011492SHELL = /bin/sh
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011493all:
Theodore Ts'oe1052142006-10-21 21:46:47 -040011494 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011495_ACEOF
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011496# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011497case `${MAKE-make} -f conftest.make 2>/dev/null` in
11498 *@@@%%%=?*=@@@%%%*)
11499 eval ac_cv_prog_make_${ac_make}_set=yes;;
11500 *)
11501 eval ac_cv_prog_make_${ac_make}_set=no;;
11502esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011503rm -f conftest.make
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011504fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011505if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011507$as_echo "yes" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011508 SET_MAKE=
11509else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011511$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011512 SET_MAKE="MAKE=${MAKE-make}"
11513fi
11514
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -040011516$as_echo_n "checking for GNU make... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011517if ${_cv_gnu_make_command+:} false; then :
Theodore Ts'obcb915b2009-07-02 18:19:10 -040011518 $as_echo_n "(cached) " >&6
11519else
11520 _cv_gnu_make_command='' ;
Theodore Ts'oe703ba42016-09-11 23:11:31 -040011521 if test -n "$FORCE_NATIVE_MAKE" ; then
Theodore Ts'of3bc1562016-09-04 00:16:35 -040011522 MAKES="make"
11523 else
11524 MAKES="make gmake gnumake"
11525 fi
11526 for a in "$MAKE" $MAKES ; do
Theodore Ts'obcb915b2009-07-02 18:19:10 -040011527 if test -z "$a" ; then continue ; fi ;
11528 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
11529 _cv_gnu_make_command=$a ;
11530 break;
11531 fi
11532 done ;
11533
11534fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -040011536$as_echo "$_cv_gnu_make_command" >&6; } ;
11537 if test "x$_cv_gnu_make_command" != "x" ; then
11538 ifGNUmake='' ;
11539 ifNotGNUmake='#' ;
11540 else
11541 ifGNUmake='#' ;
11542 ifNotGNUmake='' ;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -040011544$as_echo "\"Not found\"" >&6; };
11545 fi
11546
11547
11548
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011549# Extract the first word of "ln", so it can be a program name with args.
11550set dummy ln; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011552$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011553if ${ac_cv_path_LN+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011554 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011555else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011556 case $LN in
11557 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011558 ac_cv_path_LN="$LN" # Let the user override the test with a path.
11559 ;;
11560 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11562for as_dir in $PATH
11563do
11564 IFS=$as_save_IFS
11565 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011566 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011568 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011570 break 2
11571 fi
11572done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011573 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011574IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011575
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011576 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
11577 ;;
11578esac
11579fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011580LN=$ac_cv_path_LN
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011581if test -n "$LN"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011583$as_echo "$LN" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011584else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011586$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011587fi
11588
Theodore Ts'oe1052142006-10-21 21:46:47 -040011589
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011591$as_echo_n "checking whether ln -s works... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011592LN_S=$as_ln_s
11593if test "$LN_S" = "ln -s"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011595$as_echo "yes" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011596else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011598$as_echo "no, using $LN_S" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011599fi
11600
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011601# Extract the first word of "mv", so it can be a program name with args.
11602set dummy mv; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011604$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011605if ${ac_cv_path_MV+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011606 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011607else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011608 case $MV in
11609 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011610 ac_cv_path_MV="$MV" # Let the user override the test with a path.
11611 ;;
11612 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11614for as_dir in $PATH
11615do
11616 IFS=$as_save_IFS
11617 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011618 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011620 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011622 break 2
11623 fi
11624done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011625 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011626IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011627
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011628 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
11629 ;;
11630esac
11631fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011632MV=$ac_cv_path_MV
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011633if test -n "$MV"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011635$as_echo "$MV" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011636else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011638$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011639fi
11640
Theodore Ts'oe1052142006-10-21 21:46:47 -040011641
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011642# Extract the first word of "cp", so it can be a program name with args.
11643set dummy cp; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011645$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011646if ${ac_cv_path_CP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011647 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011648else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011649 case $CP in
11650 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011651 ac_cv_path_CP="$CP" # Let the user override the test with a path.
11652 ;;
11653 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11655for as_dir in $PATH
11656do
11657 IFS=$as_save_IFS
11658 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011659 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011661 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011663 break 2
11664 fi
11665done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011666 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011667IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011668
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011669 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11670 ;;
11671esac
11672fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011673CP=$ac_cv_path_CP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011674if test -n "$CP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011676$as_echo "$CP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011677else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011679$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011680fi
11681
Theodore Ts'oe1052142006-10-21 21:46:47 -040011682
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011683# Extract the first word of "rm", so it can be a program name with args.
11684set dummy rm; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011686$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011687if ${ac_cv_path_RM+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011688 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011689else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011690 case $RM in
11691 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011692 ac_cv_path_RM="$RM" # Let the user override the test with a path.
11693 ;;
11694 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11696for as_dir in $PATH
11697do
11698 IFS=$as_save_IFS
11699 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011700 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011702 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011704 break 2
11705 fi
11706done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011707 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011708IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011709
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011710 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11711 ;;
11712esac
11713fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011714RM=$ac_cv_path_RM
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011715if test -n "$RM"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011717$as_echo "$RM" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011718else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011720$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011721fi
11722
Theodore Ts'oe1052142006-10-21 21:46:47 -040011723
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011724# Extract the first word of "chmod", so it can be a program name with args.
11725set dummy chmod; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011727$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011728if ${ac_cv_path_CHMOD+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011729 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011730else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011731 case $CHMOD in
11732 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011733 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11734 ;;
11735 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11737for as_dir in $PATH
11738do
11739 IFS=$as_save_IFS
11740 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011741 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011743 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011745 break 2
11746 fi
11747done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011748 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011749IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011750
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011751 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11752 ;;
11753esac
11754fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011755CHMOD=$ac_cv_path_CHMOD
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011756if test -n "$CHMOD"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011758$as_echo "$CHMOD" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011759else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011761$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011762fi
11763
Theodore Ts'oe1052142006-10-21 21:46:47 -040011764
Theodore Ts'o32237012005-01-17 19:13:39 -050011765for ac_prog in gawk mawk nawk awk
11766do
11767 # Extract the first word of "$ac_prog", so it can be a program name with args.
11768set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011770$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011771if ${ac_cv_prog_AWK+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011772 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011773else
Theodore Ts'o32237012005-01-17 19:13:39 -050011774 if test -n "$AWK"; then
11775 ac_cv_prog_AWK="$AWK" # Let the user override the test.
11776else
11777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011778for as_dir in $PATH
11779do
11780 IFS=$as_save_IFS
11781 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011782 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o32237012005-01-17 19:13:39 -050011784 ac_cv_prog_AWK="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011786 break 2
11787 fi
11788done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011789 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011790IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011791
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011792fi
Theodore Ts'o32237012005-01-17 19:13:39 -050011793fi
11794AWK=$ac_cv_prog_AWK
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011795if test -n "$AWK"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011797$as_echo "$AWK" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011798else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011800$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011801fi
11802
Theodore Ts'oe1052142006-10-21 21:46:47 -040011803
Theodore Ts'o32237012005-01-17 19:13:39 -050011804 test -n "$AWK" && break
11805done
11806
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011808$as_echo_n "checking for egrep... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011809if ${ac_cv_path_EGREP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011810 $as_echo_n "(cached) " >&6
Theodore Ts'o32237012005-01-17 19:13:39 -050011811else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011812 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11813 then ac_cv_path_EGREP="$GREP -E"
11814 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011815 if test -z "$EGREP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011816 ac_path_EGREP_found=false
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011817 # Loop through the user's path and test for each of PROGNAME-LIST
11818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'oe1052142006-10-21 21:46:47 -040011819for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11820do
11821 IFS=$as_save_IFS
11822 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011823 for ac_prog in egrep; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011824 for ac_exec_ext in '' $ac_executable_extensions; do
11825 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011826 as_fn_executable_p "$ac_path_EGREP" || continue
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011827# Check for GNU ac_path_EGREP and select it if it is found.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011828 # Check for GNU $ac_path_EGREP
11829case `"$ac_path_EGREP" --version 2>&1` in
11830*GNU*)
11831 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11832*)
11833 ac_count=0
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011834 $as_echo_n 0123456789 >"conftest.in"
Theodore Ts'oe1052142006-10-21 21:46:47 -040011835 while :
11836 do
11837 cat "conftest.in" "conftest.in" >"conftest.tmp"
11838 mv "conftest.tmp" "conftest.in"
11839 cp "conftest.in" "conftest.nl"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011840 $as_echo 'EGREP' >> "conftest.nl"
Theodore Ts'oe1052142006-10-21 21:46:47 -040011841 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11842 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011843 as_fn_arith $ac_count + 1 && ac_count=$as_val
Theodore Ts'oe1052142006-10-21 21:46:47 -040011844 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11845 # Best one so far, save it but keep looking for a better one
11846 ac_cv_path_EGREP="$ac_path_EGREP"
11847 ac_path_EGREP_max=$ac_count
Theodore Ts'o32237012005-01-17 19:13:39 -050011848 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011849 # 10*(2^10) chars as input seems more than enough
11850 test $ac_count -gt 10 && break
11851 done
11852 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11853esac
11854
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011855 $ac_path_EGREP_found && break 3
11856 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011857 done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011858 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011859IFS=$as_save_IFS
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011860 if test -z "$ac_cv_path_EGREP"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011861 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011862 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011863else
11864 ac_cv_path_EGREP=$EGREP
11865fi
11866
Theodore Ts'oe1052142006-10-21 21:46:47 -040011867 fi
11868fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011870$as_echo "$ac_cv_path_EGREP" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -040011871 EGREP="$ac_cv_path_EGREP"
Theodore Ts'o32237012005-01-17 19:13:39 -050011872
11873
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011874# Extract the first word of "sed", so it can be a program name with args.
11875set dummy sed; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011877$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011878if ${ac_cv_path_SED+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011879 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011880else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011881 case $SED in
11882 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011883 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11884 ;;
11885 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11887for as_dir in $PATH
11888do
11889 IFS=$as_save_IFS
11890 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011891 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011893 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011895 break 2
11896 fi
11897done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011898 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011899IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011900
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011901 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11902 ;;
11903esac
11904fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011905SED=$ac_cv_path_SED
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011906if test -n "$SED"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011908$as_echo "$SED" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011909else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011911$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011912fi
11913
Theodore Ts'oe1052142006-10-21 21:46:47 -040011914
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011915# Extract the first word of "perl", so it can be a program name with args.
11916set dummy perl; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011918$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011919if ${ac_cv_path_PERL+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011920 $as_echo_n "(cached) " >&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011921else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011922 case $PERL in
11923 [\\/]* | ?:[\\/]*)
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011924 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11925 ;;
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011926 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11928for as_dir in $PATH
11929do
11930 IFS=$as_save_IFS
11931 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011932 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011934 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011936 break 2
11937 fi
11938done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011939 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011940IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011941
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011942 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11943 ;;
11944esac
11945fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011946PERL=$ac_cv_path_PERL
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011947if test -n "$PERL"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011949$as_echo "$PERL" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011950else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011952$as_echo "no" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011953fi
11954
Theodore Ts'oe1052142006-10-21 21:46:47 -040011955
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011956# Extract the first word of "ldconfig", so it can be a program name with args.
11957set dummy ldconfig; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011959$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011960if ${ac_cv_path_LDCONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011961 $as_echo_n "(cached) " >&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011962else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011963 case $LDCONFIG in
11964 [\\/]* | ?:[\\/]*)
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011965 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
11966 ;;
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011967 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11969for as_dir in $PATH
11970do
11971 IFS=$as_save_IFS
11972 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011973 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011975 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011977 break 2
11978 fi
11979done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011980 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011981IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011982
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011983 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
11984 ;;
11985esac
11986fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011987LDCONFIG=$ac_cv_path_LDCONFIG
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011988if test -n "$LDCONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011990$as_echo "$LDCONFIG" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011991else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011993$as_echo "no" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011994fi
11995
Theodore Ts'oe1052142006-10-21 21:46:47 -040011996
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011997if test -n "$ac_tool_prefix"; then
11998 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011999set dummy ${ac_tool_prefix}ar; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012001$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012002if ${ac_cv_prog_AR+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012003 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012004else
12005 if test -n "$AR"; then
12006 ac_cv_prog_AR="$AR" # Let the user override the test.
12007else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012008as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12009for as_dir in $PATH
12010do
12011 IFS=$as_save_IFS
12012 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012013 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012015 ac_cv_prog_AR="${ac_tool_prefix}ar"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012017 break 2
12018 fi
12019done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012020 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012021IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012022
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012023fi
12024fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012025AR=$ac_cv_prog_AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012026if test -n "$AR"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012028$as_echo "$AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012029else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012031$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012032fi
12033
Theodore Ts'oe1052142006-10-21 21:46:47 -040012034
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012035fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012036if test -z "$ac_cv_prog_AR"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012037 ac_ct_AR=$AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012038 # Extract the first word of "ar", so it can be a program name with args.
12039set dummy ar; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012041$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012042if ${ac_cv_prog_ac_ct_AR+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012043 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012044else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012045 if test -n "$ac_ct_AR"; then
12046 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012047else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12049for as_dir in $PATH
12050do
12051 IFS=$as_save_IFS
12052 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012053 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012055 ac_cv_prog_ac_ct_AR="ar"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012057 break 2
12058 fi
12059done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012060 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012061IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012062
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012063fi
12064fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012065ac_ct_AR=$ac_cv_prog_ac_ct_AR
12066if test -n "$ac_ct_AR"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012068$as_echo "$ac_ct_AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012069else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012071$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012072fi
12073
Theodore Ts'oe1052142006-10-21 21:46:47 -040012074 if test "x$ac_ct_AR" = x; then
12075 AR="ar"
12076 else
12077 case $cross_compiling:$ac_tool_warned in
12078yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012079{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012080$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012081ac_tool_warned=yes ;;
12082esac
12083 AR=$ac_ct_AR
12084 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012085else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012086 AR="$ac_cv_prog_AR"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012087fi
12088
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012089if test -n "$ac_tool_prefix"; then
12090 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012091set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012093$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012094if ${ac_cv_prog_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012095 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012096else
12097 if test -n "$RANLIB"; then
12098 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12099else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12101for as_dir in $PATH
12102do
12103 IFS=$as_save_IFS
12104 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012105 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012107 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012109 break 2
12110 fi
12111done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012112 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012113IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012114
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012115fi
12116fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012117RANLIB=$ac_cv_prog_RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012118if test -n "$RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012120$as_echo "$RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012121else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012123$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012124fi
12125
Theodore Ts'oe1052142006-10-21 21:46:47 -040012126
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012127fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012128if test -z "$ac_cv_prog_RANLIB"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012129 ac_ct_RANLIB=$RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012130 # Extract the first word of "ranlib", so it can be a program name with args.
12131set dummy ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012133$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012134if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012135 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012136else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012137 if test -n "$ac_ct_RANLIB"; then
12138 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012139else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12141for as_dir in $PATH
12142do
12143 IFS=$as_save_IFS
12144 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012145 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012147 ac_cv_prog_ac_ct_RANLIB="ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012149 break 2
12150 fi
12151done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012152 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012153IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012154
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012155fi
12156fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012157ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12158if test -n "$ac_ct_RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012160$as_echo "$ac_ct_RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012161else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012163$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012164fi
12165
Theodore Ts'oe1052142006-10-21 21:46:47 -040012166 if test "x$ac_ct_RANLIB" = x; then
12167 RANLIB=":"
12168 else
12169 case $cross_compiling:$ac_tool_warned in
12170yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012171{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012172$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012173ac_tool_warned=yes ;;
12174esac
12175 RANLIB=$ac_ct_RANLIB
12176 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012177else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012178 RANLIB="$ac_cv_prog_RANLIB"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012179fi
12180
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012181if test -n "$ac_tool_prefix"; then
12182 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012183set dummy ${ac_tool_prefix}strip; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012185$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012186if ${ac_cv_prog_STRIP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012187 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012188else
12189 if test -n "$STRIP"; then
12190 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12191else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12193for as_dir in $PATH
12194do
12195 IFS=$as_save_IFS
12196 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012197 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012199 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012201 break 2
12202 fi
12203done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012204 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012205IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012206
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012207fi
12208fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012209STRIP=$ac_cv_prog_STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012210if test -n "$STRIP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012212$as_echo "$STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012213else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012215$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012216fi
12217
Theodore Ts'oe1052142006-10-21 21:46:47 -040012218
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012219fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012220if test -z "$ac_cv_prog_STRIP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012221 ac_ct_STRIP=$STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012222 # Extract the first word of "strip", so it can be a program name with args.
12223set dummy strip; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012225$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012226if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012227 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012228else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012229 if test -n "$ac_ct_STRIP"; then
12230 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012231else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12233for as_dir in $PATH
12234do
12235 IFS=$as_save_IFS
12236 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012237 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012239 ac_cv_prog_ac_ct_STRIP="strip"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012241 break 2
12242 fi
12243done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012244 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012245IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012246
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012247fi
12248fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012249ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12250if test -n "$ac_ct_STRIP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012252$as_echo "$ac_ct_STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012253else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012255$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012256fi
12257
Theodore Ts'oe1052142006-10-21 21:46:47 -040012258 if test "x$ac_ct_STRIP" = x; then
12259 STRIP=":"
12260 else
12261 case $cross_compiling:$ac_tool_warned in
12262yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012263{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012264$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012265ac_tool_warned=yes ;;
12266esac
12267 STRIP=$ac_ct_STRIP
12268 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012269else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012270 STRIP="$ac_cv_prog_STRIP"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012271fi
12272
Manish Katiyar7321d942008-04-14 17:20:03 +053012273# Extract the first word of "makeinfo", so it can be a program name with args.
12274set dummy makeinfo; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012276$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012277if ${ac_cv_prog_MAKEINFO+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012278 $as_echo_n "(cached) " >&6
Manish Katiyar7321d942008-04-14 17:20:03 +053012279else
12280 if test -n "$MAKEINFO"; then
12281 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
12282else
12283as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12284for as_dir in $PATH
12285do
12286 IFS=$as_save_IFS
12287 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012288 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012289 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Manish Katiyar7321d942008-04-14 17:20:03 +053012290 ac_cv_prog_MAKEINFO="makeinfo"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Manish Katiyar7321d942008-04-14 17:20:03 +053012292 break 2
12293 fi
12294done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012295 done
Manish Katiyar7321d942008-04-14 17:20:03 +053012296IFS=$as_save_IFS
12297
12298fi
12299fi
12300MAKEINFO=$ac_cv_prog_MAKEINFO
12301if test -n "$MAKEINFO"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012303$as_echo "$MAKEINFO" >&6; }
Manish Katiyar7321d942008-04-14 17:20:03 +053012304else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012306$as_echo "no" >&6; }
Manish Katiyar7321d942008-04-14 17:20:03 +053012307fi
12308
12309
12310if test "_$MAKEINFO" = "_"; then
Theodore Ts'oca1de982016-09-11 23:30:25 -040012311 MAKEINFO="echo Makeinfo is missing. Info documentation will not be built."
Manish Katiyar7321d942008-04-14 17:20:03 +053012312else
12313 case "$MAKEINFO" in
12314 */missing.*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
Manish Katiyar7321d942008-04-14 17:20:03 +053012316*** Makeinfo is missing. Info documentation will not be built." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012317$as_echo "$as_me: WARNING:
Manish Katiyar7321d942008-04-14 17:20:03 +053012318*** Makeinfo is missing. Info documentation will not be built." >&2;}
12319 ;;
12320 *)
12321 ;;
12322 esac
12323fi
12324
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012325
Theodore Ts'o6c133521999-07-03 20:37:03 +000012326# See if we need a separate native compiler.
12327if test $cross_compiling = no; then
12328 BUILD_CC="$CC"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012329
Theodore Ts'o6c133521999-07-03 20:37:03 +000012330else
12331 for ac_prog in gcc cc
12332do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012333 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'o6c133521999-07-03 20:37:03 +000012334set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012335{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012336$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012337if ${ac_cv_prog_BUILD_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012338 $as_echo_n "(cached) " >&6
Theodore Ts'o6c133521999-07-03 20:37:03 +000012339else
12340 if test -n "$BUILD_CC"; then
12341 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
12342else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12344for as_dir in $PATH
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012345do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012346 IFS=$as_save_IFS
12347 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012348 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012350 ac_cv_prog_BUILD_CC="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012352 break 2
12353 fi
12354done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012355 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012356IFS=$as_save_IFS
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012357
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012358fi
12359fi
12360BUILD_CC=$ac_cv_prog_BUILD_CC
12361if test -n "$BUILD_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012363$as_echo "$BUILD_CC" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012364else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012366$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012367fi
12368
Theodore Ts'oe1052142006-10-21 21:46:47 -040012369
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012370 test -n "$BUILD_CC" && break
12371done
12372
12373fi
Theodore Ts'o3829c162017-12-12 23:45:02 -050012374for 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
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012375do :
12376 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12377ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012378if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012379 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012380#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012381_ACEOF
12382
12383fi
12384
12385done
12386
Matthias Andreeec3a69b2017-08-29 01:02:36 -040012387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a dd(1) program that supports iflag=fullblock" >&5
12388$as_echo_n "checking for a dd(1) program that supports iflag=fullblock... " >&6; }
12389DD=
12390for i in dd gdd ; do
12391 if "$i" if=/dev/null of=/dev/null count=1 bs=10k 2>/dev/null iflag=fullblock oflag=append ; then
12392 DD=$i
12393 break
12394 fi
12395done
12396if test -n "$DD" ; then
12397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DD" >&5
12398$as_echo "$DD" >&6; }
12399else
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found, using dd" >&5
12401$as_echo "not found, using dd" >&6; }
12402 DD=dd
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&5
12404$as_echo "$as_me: WARNING: No GNU-compatible dd(1) program found, expect some self-test failures." >&2;}
12405fi
12406
12407
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012408for ac_header in net/if.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012409do :
12410 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012411#if HAVE_SYS_TYPES_H
12412#include <sys/types.h>
12413#endif
12414#if HAVE_SYS_SOCKET
12415#include <sys/socket.h>
12416#endif
12417
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012418"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012419if test "x$ac_cv_header_net_if_h" = xyes; then :
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012420 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012421#define HAVE_NET_IF_H 1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012422_ACEOF
12423
12424fi
12425
12426done
12427
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012428for ac_func in vprintf
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012429do :
12430 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012431if test "x$ac_cv_func_vprintf" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012432 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012433#define HAVE_VPRINTF 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012434_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012435
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012436ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012437if test "x$ac_cv_func__doprnt" = xyes; then :
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012438
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012439$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012440
12441fi
12442
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012443fi
12444done
12445
12446
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012447ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
12448"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012449if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012450
12451$as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
Theodore Ts'offf45482003-04-13 00:44:19 -040012452
12453fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012454
Theodore Ts'o28739272014-01-03 00:26:43 -050012455ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
12456if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
12457
12458cat >>confdefs.h <<_ACEOF
12459#define HAVE_STRUCT_STAT_ST_ATIM 1
12460_ACEOF
12461
12462
12463fi
12464
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012465ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
12466"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012467if test "x$ac_cv_type_ssize_t" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012468
12469$as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012470
Theodore Ts'offf45482003-04-13 00:44:19 -040012471fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012472
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012473ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
12474"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012475if test "x$ac_cv_have_decl_llseek" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012476
12477$as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
Theodore Ts'offf45482003-04-13 00:44:19 -040012478
12479fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012480
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012481ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012482 #define _LARGEFILE64_SOURCE
12483 #include <unistd.h>
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012484"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012485if test "x$ac_cv_have_decl_lseek64" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012486
12487$as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012488
12489fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012490
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012491# The cast to long int works around a bug in the HP C Compiler
12492# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12493# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12494# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012496$as_echo_n "checking size of short... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012497if ${ac_cv_sizeof_short+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012498 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012499else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012500 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012501
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012502else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012503 if test "$ac_cv_type_short" = yes; then
12504 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012505$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012506as_fn_error 77 "cannot compute sizeof (short)
12507See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012508 else
12509 ac_cv_sizeof_short=0
12510 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012511fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012512
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012513fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012515$as_echo "$ac_cv_sizeof_short" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012516
12517
12518
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012519cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012520#define SIZEOF_SHORT $ac_cv_sizeof_short
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012521_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012522
12523
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012524# The cast to long int works around a bug in the HP C Compiler
12525# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12526# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12527# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012529$as_echo_n "checking size of int... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012530if ${ac_cv_sizeof_int+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012531 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012532else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012533 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012534
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012535else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012536 if test "$ac_cv_type_int" = yes; then
12537 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012538$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012539as_fn_error 77 "cannot compute sizeof (int)
12540See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012541 else
12542 ac_cv_sizeof_int=0
12543 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012544fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012545
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012546fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012548$as_echo "$ac_cv_sizeof_int" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012549
12550
12551
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012552cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012553#define SIZEOF_INT $ac_cv_sizeof_int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012554_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012555
12556
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012557# The cast to long int works around a bug in the HP C Compiler
12558# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12559# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12560# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012562$as_echo_n "checking size of long... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012563if ${ac_cv_sizeof_long+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012564 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012565else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012566 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012567
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012568else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012569 if test "$ac_cv_type_long" = yes; then
12570 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012571$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012572as_fn_error 77 "cannot compute sizeof (long)
12573See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012574 else
12575 ac_cv_sizeof_long=0
12576 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012577fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012578
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012579fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012581$as_echo "$ac_cv_sizeof_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012582
12583
12584
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012585cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012586#define SIZEOF_LONG $ac_cv_sizeof_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012587_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012588
12589
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012590# The cast to long int works around a bug in the HP C Compiler
12591# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12592# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12593# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012595$as_echo_n "checking size of long long... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012596if ${ac_cv_sizeof_long_long+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012597 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012598else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012599 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012600
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012601else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012602 if test "$ac_cv_type_long_long" = yes; then
12603 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012604$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012605as_fn_error 77 "cannot compute sizeof (long long)
12606See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012607 else
12608 ac_cv_sizeof_long_long=0
12609 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012610fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012611
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012612fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012614$as_echo "$ac_cv_sizeof_long_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012615
12616
12617
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012618cat >>confdefs.h <<_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000012619#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012620_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000012621
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012622
Theodore Ts'occ68e8a2013-05-04 19:01:09 -040012623# The cast to long int works around a bug in the HP C Compiler
12624# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12625# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12626# This bug is HP SR number 8606223364.
12627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
12628$as_echo_n "checking size of off_t... " >&6; }
12629if ${ac_cv_sizeof_off_t+:} false; then :
12630 $as_echo_n "(cached) " >&6
12631else
12632 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
12633
12634else
12635 if test "$ac_cv_type_off_t" = yes; then
12636 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12637$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12638as_fn_error 77 "cannot compute sizeof (off_t)
12639See \`config.log' for more details" "$LINENO" 5; }
12640 else
12641 ac_cv_sizeof_off_t=0
12642 fi
12643fi
12644
12645fi
12646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
12647$as_echo "$ac_cv_sizeof_off_t" >&6; }
12648
12649
12650
12651cat >>confdefs.h <<_ACEOF
12652#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12653_ACEOF
12654
12655
Theodore Ts'o2dd680f2016-05-29 01:07:40 -040012656# The cast to long int works around a bug in the HP C Compiler
12657# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12658# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12659# This bug is HP SR number 8606223364.
12660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
12661$as_echo_n "checking size of time_t... " >&6; }
12662if ${ac_cv_sizeof_time_t+:} false; then :
12663 $as_echo_n "(cached) " >&6
12664else
12665 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then :
12666
12667else
12668 if test "$ac_cv_type_time_t" = yes; then
12669 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12670$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12671as_fn_error 77 "cannot compute sizeof (time_t)
12672See \`config.log' for more details" "$LINENO" 5; }
12673 else
12674 ac_cv_sizeof_time_t=0
12675 fi
12676fi
12677
12678fi
12679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
12680$as_echo "$ac_cv_sizeof_time_t" >&6; }
12681
12682
12683
12684cat >>confdefs.h <<_ACEOF
12685#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
12686_ACEOF
12687
12688
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012689SIZEOF_SHORT=$ac_cv_sizeof_short
12690SIZEOF_INT=$ac_cv_sizeof_int
12691SIZEOF_LONG=$ac_cv_sizeof_long
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000012692SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
Theodore Ts'occ68e8a2013-05-04 19:01:09 -040012693SIZEOF_OFF_T=$ac_cv_sizeof_off_t
Theodore Ts'o2dd680f2016-05-29 01:07:40 -040012694SIZEOF_TIME_T=$ac_cv_sizeof_time_t
12695
Theodore Ts'occ68e8a2013-05-04 19:01:09 -040012696
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000012697
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012698
12699
12700
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012702$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012703if ${ac_cv_c_bigendian+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012704 $as_echo_n "(cached) " >&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012705else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012706 ac_cv_c_bigendian=unknown
12707 # See if we're dealing with a universal compiler.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012709/* end confdefs.h. */
12710#ifndef __APPLE_CC__
12711 not a universal capable compiler
12712 #endif
12713 typedef int dummy;
12714
12715_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012716if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012717
12718 # Check for potential -arch flags. It is not universal unless
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012719 # there are at least two -arch flags with different values.
12720 ac_arch=
12721 ac_prev=
12722 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12723 if test -n "$ac_prev"; then
12724 case $ac_word in
12725 i?86 | x86_64 | ppc | ppc64)
12726 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12727 ac_arch=$ac_word
12728 else
12729 ac_cv_c_bigendian=universal
12730 break
12731 fi
12732 ;;
12733 esac
12734 ac_prev=
12735 elif test "x$ac_word" = "x-arch"; then
12736 ac_prev=arch
12737 fi
12738 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012739fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012740rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12741 if test $ac_cv_c_bigendian = unknown; then
12742 # See if sys/param.h defines the BYTE_ORDER macro.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012744/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012745#include <sys/types.h>
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012746 #include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012747
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012748int
12749main ()
12750{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012751#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12752 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12753 && LITTLE_ENDIAN)
12754 bogus endian macros
12755 #endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012756
12757 ;
12758 return 0;
12759}
12760_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012761if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012762 # It does; now see whether it defined to BIG_ENDIAN or not.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012764/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012765#include <sys/types.h>
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012766 #include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012767
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012768int
12769main ()
12770{
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012771#if BYTE_ORDER != BIG_ENDIAN
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012772 not big endian
12773 #endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012774
12775 ;
12776 return 0;
12777}
12778_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012779if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012780 ac_cv_c_bigendian=yes
12781else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012782 ac_cv_c_bigendian=no
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012783fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012785fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12787 fi
12788 if test $ac_cv_c_bigendian = unknown; then
12789 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012791/* end confdefs.h. */
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012792#include <limits.h>
12793
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012794int
12795main ()
12796{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012797#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12798 bogus endian macros
12799 #endif
12800
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012801 ;
12802 return 0;
12803}
12804_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012805if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012806 # It does; now see whether it defined to _BIG_ENDIAN or not.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012808/* end confdefs.h. */
12809#include <limits.h>
12810
12811int
12812main ()
12813{
12814#ifndef _BIG_ENDIAN
12815 not big endian
12816 #endif
12817
12818 ;
12819 return 0;
12820}
12821_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012822if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012823 ac_cv_c_bigendian=yes
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012824else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012825 ac_cv_c_bigendian=no
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012826fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012828fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12830 fi
12831 if test $ac_cv_c_bigendian = unknown; then
12832 # Compile a test program.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012833 if test "$cross_compiling" = yes; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012834 # Try to guess by grepping values from an object file.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012836/* end confdefs.h. */
12837short int ascii_mm[] =
12838 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12839 short int ascii_ii[] =
12840 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12841 int use_ascii (int i) {
12842 return ascii_mm[i] + ascii_ii[i];
12843 }
12844 short int ebcdic_ii[] =
12845 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12846 short int ebcdic_mm[] =
12847 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12848 int use_ebcdic (int i) {
12849 return ebcdic_mm[i] + ebcdic_ii[i];
12850 }
12851 extern int foo;
12852
12853int
12854main ()
12855{
12856return use_ascii (foo) == use_ebcdic (foo);
12857 ;
12858 return 0;
12859}
12860_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012861if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012862 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12863 ac_cv_c_bigendian=yes
12864 fi
12865 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12866 if test "$ac_cv_c_bigendian" = unknown; then
12867 ac_cv_c_bigendian=no
12868 else
12869 # finding both strings is unlikely to happen, but who knows?
12870 ac_cv_c_bigendian=unknown
12871 fi
12872 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012873fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012874rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012875else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012877/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040012878$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012879int
12880main ()
12881{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012882
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012883 /* Are we little or big endian? From Harbison&Steele. */
12884 union
12885 {
12886 long int l;
12887 char c[sizeof (long int)];
12888 } u;
12889 u.l = 1;
12890 return u.c[sizeof (long int) - 1] == 1;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012891
12892 ;
12893 return 0;
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012894}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012895_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012896if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012897 ac_cv_c_bigendian=no
12898else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012899 ac_cv_c_bigendian=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012900fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012901rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12902 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012903fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012904
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012905 fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012906fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012908$as_echo "$ac_cv_c_bigendian" >&6; }
12909 case $ac_cv_c_bigendian in #(
12910 yes)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012911 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012912;; #(
12913 no)
12914 ;; #(
12915 universal)
12916
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012917$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012918
12919 ;; #(
12920 *)
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012921 as_fn_error $? "unknown endianness
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012922 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012923 esac
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012924
Chen Qi91f04682014-05-05 21:08:42 -040012925if test $cross_compiling = no; then
12926 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12927else
12928 CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12929fi
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040012930ASM_TYPES_HEADER=./asm_types.h
12931
Theodore Ts'o488c75a2008-06-07 08:55:21 -040012932echo "/* These defines are needed for the public ext2fs.h header file */" \
12933 > public_config.h
12934if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
12935 uniq tmp_config.$$ >> public_config.h
12936else
12937 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
12938fi
12939if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
12940 uniq tmp_config.$$ >> public_config.h
12941else
12942 echo "#undef WORDS_BIGENDIAN" >> public_config.h
12943fi
12944rm -f tmp_config.$$
12945PUBLIC_CONFIG_HEADER=./public_config.h
12946
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012947for ac_header in inttypes.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012948do :
12949 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012950if test "x$ac_cv_header_inttypes_h" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012951 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012952#define HAVE_INTTYPES_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012953_ACEOF
12954
12955fi
12956
Theodore Ts'o0c193f82003-08-01 14:26:23 -040012957done
12958
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012959ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012960if test "x$ac_cv_type_intptr_t" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012961
12962cat >>confdefs.h <<_ACEOF
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050012963#define HAVE_INTPTR_T 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012964_ACEOF
12965
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050012966
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012967fi
12968
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012970$as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012971if ${e2fsprogs_cv_struct_st_flags+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012972 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012973else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012975/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012976#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012977int
12978main ()
12979{
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012980struct stat stat; stat.st_flags = 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012981 ;
12982 return 0;
12983}
12984_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012985if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012986 e2fsprogs_cv_struct_st_flags=yes
12987else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012988 e2fsprogs_cv_struct_st_flags=no
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012989fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012990rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12991fi
12992
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012994$as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012995if test "$e2fsprogs_cv_struct_st_flags" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012997$as_echo_n "checking whether st_flags field is useful... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012998 if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012999 $as_echo_n "(cached) " >&6
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000013000else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013002/* end confdefs.h. */
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000013003#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013004int
13005main ()
13006{
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000013007struct stat stat; stat.st_flags |= UF_IMMUTABLE;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013008 ;
13009 return 0;
13010}
13011_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013012if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000013013 e2fsprogs_cv_struct_st_flags_immut=yes
13014else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013015 e2fsprogs_cv_struct_st_flags_immut=no
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000013016fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040013017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13018fi
13019
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013021$as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000013022 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013023
13024$as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013025
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000013026 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013027fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013028ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h>
Theodore Ts'o6c65d252005-01-19 12:59:48 -050013029 #include <sys/socket.h>
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013030"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013031if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013032
13033cat >>confdefs.h <<_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050013034#define HAVE_SA_LEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013035_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050013036
13037fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013038
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013039if test -n "$BLKID_CMT"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013041$as_echo_n "checking for library containing blkid_probe_all... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013042if ${ac_cv_search_blkid_probe_all+:} false; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013043 $as_echo_n "(cached) " >&6
13044else
13045 ac_func_search_save_LIBS=$LIBS
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013046cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013047/* end confdefs.h. */
13048
13049/* Override any GCC internal prototype to avoid an error.
13050 Use char because int might match the return type of a GCC
13051 builtin and then its argument prototype would still apply. */
13052#ifdef __cplusplus
13053extern "C"
13054#endif
13055char blkid_probe_all ();
13056int
13057main ()
13058{
13059return blkid_probe_all ();
13060 ;
13061 return 0;
13062}
13063_ACEOF
13064for ac_lib in '' blkid; do
13065 if test -z "$ac_lib"; then
13066 ac_res="none required"
13067 else
13068 ac_res=-l$ac_lib
13069 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13070 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013071 if ac_fn_c_try_link "$LINENO"; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013072 ac_cv_search_blkid_probe_all=$ac_res
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013073fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013074rm -f core conftest.err conftest.$ac_objext \
13075 conftest$ac_exeext
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013076 if ${ac_cv_search_blkid_probe_all+:} false; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013077 break
13078fi
13079done
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013080if ${ac_cv_search_blkid_probe_all+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013081
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013082else
13083 ac_cv_search_blkid_probe_all=no
13084fi
13085rm conftest.$ac_ext
13086LIBS=$ac_func_search_save_LIBS
13087fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013088{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013089$as_echo "$ac_cv_search_blkid_probe_all" >&6; }
13090ac_res=$ac_cv_search_blkid_probe_all
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013091if test "$ac_res" != no; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013092 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13093
13094fi
13095
13096fi
Theodore Ts'o32179ce2016-06-07 00:14:35 -040013097if test -n "$DLOPEN_LIB" ; then
13098 ac_cv_func_dlopen=yes
13099fi
Theodore Ts'o0df5f922017-05-23 23:08:47 -040013100for 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 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
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013101do :
13102 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13103ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013104if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013105 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013106#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013107_ACEOF
13108
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013109fi
13110done
13111
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013112SOCKET_LIB=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013114$as_echo_n "checking for socket in -lsocket... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013115if ${ac_cv_lib_socket_socket+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013116 $as_echo_n "(cached) " >&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013117else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013118 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013119LIBS="-lsocket $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013120cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013121/* end confdefs.h. */
13122
Theodore Ts'oe1052142006-10-21 21:46:47 -040013123/* Override any GCC internal prototype to avoid an error.
13124 Use char because int might match the return type of a GCC
13125 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013126#ifdef __cplusplus
13127extern "C"
13128#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013129char socket ();
13130int
13131main ()
13132{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013133return socket ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013134 ;
13135 return 0;
13136}
13137_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013138if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013139 ac_cv_lib_socket_socket=yes
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013140else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013141 ac_cv_lib_socket_socket=no
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013142fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013143rm -f core conftest.err conftest.$ac_objext \
13144 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013145LIBS=$ac_check_lib_save_LIBS
13146fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013148$as_echo "$ac_cv_lib_socket_socket" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013149if test "x$ac_cv_lib_socket_socket" = xyes; then :
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013150 SOCKET_LIB=-lsocket
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013151fi
13152
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013153
Darrick J. Wongb291c112014-09-13 15:12:46 -070013154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_file in -lmagic" >&5
13155$as_echo_n "checking for magic_file in -lmagic... " >&6; }
13156if ${ac_cv_lib_magic_magic_file+:} false; then :
13157 $as_echo_n "(cached) " >&6
13158else
13159 ac_check_lib_save_LIBS=$LIBS
13160LIBS="-lmagic $LIBS"
13161cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13162/* end confdefs.h. */
13163
13164/* Override any GCC internal prototype to avoid an error.
13165 Use char because int might match the return type of a GCC
13166 builtin and then its argument prototype would still apply. */
13167#ifdef __cplusplus
13168extern "C"
13169#endif
13170char magic_file ();
13171int
13172main ()
13173{
13174return magic_file ();
13175 ;
13176 return 0;
13177}
13178_ACEOF
13179if ac_fn_c_try_link "$LINENO"; then :
13180 ac_cv_lib_magic_magic_file=yes
13181else
13182 ac_cv_lib_magic_magic_file=no
13183fi
13184rm -f core conftest.err conftest.$ac_objext \
13185 conftest$ac_exeext conftest.$ac_ext
13186LIBS=$ac_check_lib_save_LIBS
13187fi
13188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_file" >&5
13189$as_echo "$ac_cv_lib_magic_magic_file" >&6; }
13190if test "x$ac_cv_lib_magic_magic_file" = xyes; then :
13191 MAGIC_LIB=-lmagic
13192for ac_header in magic.h
13193do :
13194 ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
13195if test "x$ac_cv_header_magic_h" = xyes; then :
13196 cat >>confdefs.h <<_ACEOF
13197#define HAVE_MAGIC_H 1
13198_ACEOF
13199
13200fi
13201
13202done
13203
13204fi
13205
Theodore Ts'o32179ce2016-06-07 00:14:35 -040013206if test "$ac_cv_func_dlopen" = yes ; then
Theodore Ts'od2e3c0d2014-09-21 01:25:58 -040013207 MAGIC_LIB=$DLOPEN_LIB
13208fi
Darrick J. Wongb291c112014-09-13 15:12:46 -070013209
Theodore Ts'oc94da042016-06-21 23:16:39 -040013210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
13211$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
13212if ${ac_cv_lib_rt_clock_gettime+:} false; then :
13213 $as_echo_n "(cached) " >&6
13214else
13215 ac_check_lib_save_LIBS=$LIBS
13216LIBS="-lrt $LIBS"
13217cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13218/* end confdefs.h. */
13219
13220/* Override any GCC internal prototype to avoid an error.
13221 Use char because int might match the return type of a GCC
13222 builtin and then its argument prototype would still apply. */
13223#ifdef __cplusplus
13224extern "C"
13225#endif
13226char clock_gettime ();
13227int
13228main ()
13229{
13230return clock_gettime ();
13231 ;
13232 return 0;
13233}
13234_ACEOF
13235if ac_fn_c_try_link "$LINENO"; then :
13236 ac_cv_lib_rt_clock_gettime=yes
13237else
13238 ac_cv_lib_rt_clock_gettime=no
13239fi
13240rm -f core conftest.err conftest.$ac_objext \
13241 conftest$ac_exeext conftest.$ac_ext
13242LIBS=$ac_check_lib_save_LIBS
13243fi
13244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
13245$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
13246if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
13247 CLOCK_GETTIME_LIB=-lrt
13248fi
13249
13250
Darrick J. Wong81cbf1e2015-05-13 17:22:40 -070013251FUSE_CMT=
13252FUSE_LIB=
13253# Check whether --enable-fuse2fs was given.
13254if test "${enable_fuse2fs+set}" = set; then :
13255 enableval=$enable_fuse2fs; if test "$enableval" = "no"
13256then
13257 FUSE_CMT="#"
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling fuse2fs" >&5
13259$as_echo "Disabling fuse2fs" >&6; }
13260else
13261 for ac_header in pthread.h fuse.h
13262do :
13263 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13264ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
13265#define FUSE_USE_VERSION 29
13266"
13267if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13268 cat >>confdefs.h <<_ACEOF
13269#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13270_ACEOF
13271
13272else
13273 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13274$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13275as_fn_error $? "Cannot find fuse2fs headers.
13276See \`config.log' for more details" "$LINENO" 5; }
13277fi
13278
13279done
13280
13281
13282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13283/* end confdefs.h. */
13284#define FUSE_USE_VERSION 29
13285#ifdef __linux__
13286#include <linux/fs.h>
13287#include <linux/falloc.h>
13288#include <linux/xattr.h>
13289#endif
13290
13291int
13292main ()
13293{
13294
13295 ;
13296 return 0;
13297}
13298_ACEOF
13299if ac_fn_c_try_cpp "$LINENO"; then :
13300
13301else
13302 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13303$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13304as_fn_error $? "Cannot find fuse2fs Linux headers.
13305See \`config.log' for more details" "$LINENO" 5; }
13306fi
13307rm -f conftest.err conftest.i conftest.$ac_ext
13308
13309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13310$as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
13311if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
13312 $as_echo_n "(cached) " >&6
13313else
13314 ac_check_lib_save_LIBS=$LIBS
13315LIBS="-losxfuse $LIBS"
13316cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13317/* end confdefs.h. */
13318
13319/* Override any GCC internal prototype to avoid an error.
13320 Use char because int might match the return type of a GCC
13321 builtin and then its argument prototype would still apply. */
13322#ifdef __cplusplus
13323extern "C"
13324#endif
13325char fuse_main ();
13326int
13327main ()
13328{
13329return fuse_main ();
13330 ;
13331 return 0;
13332}
13333_ACEOF
13334if ac_fn_c_try_link "$LINENO"; then :
13335 ac_cv_lib_osxfuse_fuse_main=yes
13336else
13337 ac_cv_lib_osxfuse_fuse_main=no
13338fi
13339rm -f core conftest.err conftest.$ac_objext \
13340 conftest$ac_exeext conftest.$ac_ext
13341LIBS=$ac_check_lib_save_LIBS
13342fi
13343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13344$as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13345if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
13346 FUSE_LIB=-losxfuse
13347else
13348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13349$as_echo_n "checking for fuse_main in -lfuse... " >&6; }
13350if ${ac_cv_lib_fuse_fuse_main+:} false; then :
13351 $as_echo_n "(cached) " >&6
13352else
13353 ac_check_lib_save_LIBS=$LIBS
13354LIBS="-lfuse $LIBS"
13355cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13356/* end confdefs.h. */
13357
13358/* Override any GCC internal prototype to avoid an error.
13359 Use char because int might match the return type of a GCC
13360 builtin and then its argument prototype would still apply. */
13361#ifdef __cplusplus
13362extern "C"
13363#endif
13364char fuse_main ();
13365int
13366main ()
13367{
13368return fuse_main ();
13369 ;
13370 return 0;
13371}
13372_ACEOF
13373if ac_fn_c_try_link "$LINENO"; then :
13374 ac_cv_lib_fuse_fuse_main=yes
13375else
13376 ac_cv_lib_fuse_fuse_main=no
13377fi
13378rm -f core conftest.err conftest.$ac_objext \
13379 conftest$ac_exeext conftest.$ac_ext
13380LIBS=$ac_check_lib_save_LIBS
13381fi
13382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13383$as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
13384if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
13385 FUSE_LIB=-lfuse
13386else
13387 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13388$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13389as_fn_error $? "Cannot find fuse library.
13390See \`config.log' for more details" "$LINENO" 5; }
13391fi
13392
13393fi
13394
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs" >&5
13396$as_echo "Enabling fuse2fs" >&6; }
13397fi
13398
13399else
13400 for ac_header in pthread.h fuse.h
13401do :
13402 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13403ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
13404#define FUSE_USE_VERSION 29
13405#ifdef __linux__
13406# include <linux/fs.h>
13407# include <linux/falloc.h>
13408# include <linux/xattr.h>
13409#endif
13410"
13411if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13412 cat >>confdefs.h <<_ACEOF
13413#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13414_ACEOF
13415
13416else
13417 FUSE_CMT="#"
13418fi
13419
13420done
13421
13422if test -z "$FUSE_CMT"
13423then
13424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13425$as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
13426if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
13427 $as_echo_n "(cached) " >&6
13428else
13429 ac_check_lib_save_LIBS=$LIBS
13430LIBS="-losxfuse $LIBS"
13431cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13432/* end confdefs.h. */
13433
13434/* Override any GCC internal prototype to avoid an error.
13435 Use char because int might match the return type of a GCC
13436 builtin and then its argument prototype would still apply. */
13437#ifdef __cplusplus
13438extern "C"
13439#endif
13440char fuse_main ();
13441int
13442main ()
13443{
13444return fuse_main ();
13445 ;
13446 return 0;
13447}
13448_ACEOF
13449if ac_fn_c_try_link "$LINENO"; then :
13450 ac_cv_lib_osxfuse_fuse_main=yes
13451else
13452 ac_cv_lib_osxfuse_fuse_main=no
13453fi
13454rm -f core conftest.err conftest.$ac_objext \
13455 conftest$ac_exeext conftest.$ac_ext
13456LIBS=$ac_check_lib_save_LIBS
13457fi
13458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13459$as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13460if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
13461 FUSE_LIB=-losxfuse
13462else
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13464$as_echo_n "checking for fuse_main in -lfuse... " >&6; }
13465if ${ac_cv_lib_fuse_fuse_main+:} false; then :
13466 $as_echo_n "(cached) " >&6
13467else
13468 ac_check_lib_save_LIBS=$LIBS
13469LIBS="-lfuse $LIBS"
13470cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13471/* end confdefs.h. */
13472
13473/* Override any GCC internal prototype to avoid an error.
13474 Use char because int might match the return type of a GCC
13475 builtin and then its argument prototype would still apply. */
13476#ifdef __cplusplus
13477extern "C"
13478#endif
13479char fuse_main ();
13480int
13481main ()
13482{
13483return fuse_main ();
13484 ;
13485 return 0;
13486}
13487_ACEOF
13488if ac_fn_c_try_link "$LINENO"; then :
13489 ac_cv_lib_fuse_fuse_main=yes
13490else
13491 ac_cv_lib_fuse_fuse_main=no
13492fi
13493rm -f core conftest.err conftest.$ac_objext \
13494 conftest$ac_exeext conftest.$ac_ext
13495LIBS=$ac_check_lib_save_LIBS
13496fi
13497{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13498$as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
13499if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
13500 FUSE_LIB=-lfuse
13501else
13502 FUSE_CMT="#"
13503fi
13504
13505fi
13506
13507fi
13508if test -z "$FUSE_CMT"
13509then
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs by default." >&5
13511$as_echo "Enabling fuse2fs by default." >&6; }
13512fi
13513
13514fi
13515
13516
13517
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013519$as_echo_n "checking for optreset... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013520if ${ac_cv_have_optreset+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013521 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013522else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013524/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013525#include <unistd.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013526
13527_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013528if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013529 $EGREP "optreset" >/dev/null 2>&1; then :
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013530 ac_cv_have_optreset=yes
13531else
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013532 ac_cv_have_optreset=no
13533fi
13534rm -f conftest*
13535
13536fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013538$as_echo "$ac_cv_have_optreset" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013539if test $ac_cv_have_optreset = yes; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013540
13541$as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013542
13543fi
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013544
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013545SEM_INIT_LIB=''
Theodore Ts'ocfb8e0b2017-07-27 19:43:00 -040013546echo GL_THREADS_API: ${gl_threads_api}
13547if test "${gl_threads_api}" != none
13548then
13549 ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013550if test "x$ac_cv_func_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013551
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013552else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013554$as_echo_n "checking for sem_init in -lpthread... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013555if ${ac_cv_lib_pthread_sem_init+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013556 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013557else
13558 ac_check_lib_save_LIBS=$LIBS
13559LIBS="-lpthread $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013560cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013561/* end confdefs.h. */
13562
13563/* Override any GCC internal prototype to avoid an error.
13564 Use char because int might match the return type of a GCC
13565 builtin and then its argument prototype would still apply. */
13566#ifdef __cplusplus
13567extern "C"
13568#endif
13569char sem_init ();
13570int
13571main ()
13572{
13573return sem_init ();
13574 ;
13575 return 0;
13576}
13577_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013578if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013579 ac_cv_lib_pthread_sem_init=yes
13580else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013581 ac_cv_lib_pthread_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013582fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013583rm -f core conftest.err conftest.$ac_objext \
13584 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013585LIBS=$ac_check_lib_save_LIBS
13586fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013588$as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013589if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013590 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013591
13592 SEM_INIT_LIB=-lpthread
13593else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013595$as_echo_n "checking for sem_init in -lrt... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013596if ${ac_cv_lib_rt_sem_init+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013597 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013598else
13599 ac_check_lib_save_LIBS=$LIBS
13600LIBS="-lrt $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013601cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013602/* end confdefs.h. */
13603
13604/* Override any GCC internal prototype to avoid an error.
13605 Use char because int might match the return type of a GCC
13606 builtin and then its argument prototype would still apply. */
13607#ifdef __cplusplus
13608extern "C"
13609#endif
13610char sem_init ();
13611int
13612main ()
13613{
13614return sem_init ();
13615 ;
13616 return 0;
13617}
13618_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013619if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013620 ac_cv_lib_rt_sem_init=yes
13621else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013622 ac_cv_lib_rt_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013623fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013624rm -f core conftest.err conftest.$ac_objext \
13625 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013626LIBS=$ac_check_lib_save_LIBS
13627fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013629$as_echo "$ac_cv_lib_rt_sem_init" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013630if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013631 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013632
13633 SEM_INIT_LIB=-lrt
13634else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013636$as_echo_n "checking for sem_init in -lposix4... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013637if ${ac_cv_lib_posix4_sem_init+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013638 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013639else
13640 ac_check_lib_save_LIBS=$LIBS
13641LIBS="-lposix4 $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013642cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013643/* end confdefs.h. */
13644
13645/* Override any GCC internal prototype to avoid an error.
13646 Use char because int might match the return type of a GCC
13647 builtin and then its argument prototype would still apply. */
13648#ifdef __cplusplus
13649extern "C"
13650#endif
13651char sem_init ();
13652int
13653main ()
13654{
13655return sem_init ();
13656 ;
13657 return 0;
13658}
13659_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013660if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013661 ac_cv_lib_posix4_sem_init=yes
13662else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013663 ac_cv_lib_posix4_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013664fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013665rm -f core conftest.err conftest.$ac_objext \
13666 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013667LIBS=$ac_check_lib_save_LIBS
13668fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013670$as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013671if test "x$ac_cv_lib_posix4_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013672 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013673
13674 SEM_INIT_LIB=-lposix4
13675fi
13676
13677fi
13678
13679fi
13680
13681fi
Theodore Ts'ocfb8e0b2017-07-27 19:43:00 -040013682fi
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013683
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013685$as_echo_n "checking for unified diff option... " >&6; }
Theodore Ts'o27f991b2008-04-01 20:32:55 -040013686if diff -u $0 $0 > /dev/null 2>&1 ; then
Theodore Ts'oe54635d2006-08-06 14:33:13 -040013687 UNI_DIFF_OPTS=-u
13688else
13689 UNI_DIFF_OPTS=-c
13690fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013692$as_echo "$UNI_DIFF_OPTS" >&6; }
Theodore Ts'oe54635d2006-08-06 14:33:13 -040013693
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000013694case "$host_os" in
13695linux*)
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013696
13697$as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013698
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000013699 ;;
13700esac
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040013701LINUX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040013702CYGWIN_CMT="#"
13703UNIX_CMT=
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040013704case "$host_os" in
13705linux*)
13706 LINUX_CMT=
13707 ;;
Theodore Ts'offf45482003-04-13 00:44:19 -040013708cygwin)
13709 CYGWIN_CMT=
13710 UNIX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040013711 ;;
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040013712esac
13713
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013714
13715
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013716case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013717linux* | gnu* | k*bsd*-gnu)
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013718 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
13719 root_prefix="";
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013721$as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013722 fi
13723 ;;
13724esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013725case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013726linux* | gnu* | k*bsd*-gnu)
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013727 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013728 prefix="/usr";
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013730$as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
Theodore Ts'obff61a72002-05-21 22:21:38 -040013731 if test "$mandir" = '${prefix}/man' ; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013733$as_echo "...and mandir defaults to /usr/share/man" >&6; }
Theodore Ts'obff61a72002-05-21 22:21:38 -040013734 mandir=/usr/share/man
13735 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013736 fi
13737;;
13738esac
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013739if test "$root_prefix" = NONE ; then
Theodore Ts'offe19911998-04-08 06:05:49 +000013740 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013741 root_prefix="$ac_default_prefix"
13742 else
13743 root_prefix="$prefix"
13744 fi
Theodore Ts'ob5ffead2002-05-11 19:17:00 -040013745 root_bindir=$bindir
13746 root_sbindir=$sbindir
13747 root_libdir=$libdir
13748 root_sysconfdir=$sysconfdir
13749else
13750 root_bindir='${root_prefix}/bin'
13751 root_sbindir='${root_prefix}/sbin'
13752 root_libdir='${root_prefix}/lib'
13753 root_sysconfdir='${root_prefix}/etc'
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013754fi
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050013755if test "$bindir" != '${exec_prefix}/bin'; then
13756 root_bindir=$bindir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013758$as_echo "Setting root_bindir to $root_bindir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050013759fi
13760if test "$sbindir" != '${exec_prefix}/sbin'; then
13761 root_sbindir=$sbindir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013763$as_echo "Setting root_sbindir to $root_sbindir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050013764fi
13765if test "$libdir" != '${exec_prefix}/lib'; then
13766 root_libdir=$libdir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013768$as_echo "Setting root_libdir to $root_libdir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050013769fi
13770if test "$sysconfdir" != '${prefix}/etc'; then
13771 root_sysconfdir=$sysconfdir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013773$as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050013774fi
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013775
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013776
13777
13778
13779
Theodore Ts'o55e00a22011-09-18 23:53:23 -040013780
13781# Check whether --with-multiarch was given.
13782if test "${with_multiarch+set}" = set; then :
Theodore Ts'od7fa4102014-02-05 15:45:36 -050013783 withval=$with_multiarch; if test "$withval" = "lib64"; then
13784 libdir=/usr/lib64
13785 root_libdir=/lib64
13786else
13787 libdir=$libdir/$withval
13788 root_libdir=$root_libdir/$withval
13789fi
Theodore Ts'o55e00a22011-09-18 23:53:23 -040013790
13791fi
Theodore Ts'od3de1a72012-12-15 22:10:27 -050013792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
13793$as_echo_n "checking whether we can link with -static... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013794if ${ac_cv_e2fsprogs_use_static+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013795 $as_echo_n "(cached) " >&6
Theodore Ts'oae851481997-04-29 18:13:24 +000013796else
Theodore Ts'ofd1677e2016-05-21 23:51:19 -040013797 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS_STATIC -static"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013798cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013799/* end confdefs.h. */
Theodore Ts'oae851481997-04-29 18:13:24 +000013800#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013801int
13802main ()
13803{
Theodore Ts'oae851481997-04-29 18:13:24 +000013804fflush(stdout);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013805 ;
13806 return 0;
13807}
13808_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013809if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oae851481997-04-29 18:13:24 +000013810 ac_cv_e2fsprogs_use_static=yes
13811else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013812 ac_cv_e2fsprogs_use_static=no
Theodore Ts'oae851481997-04-29 18:13:24 +000013813fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013814rm -f core conftest.err conftest.$ac_objext \
13815 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oae851481997-04-29 18:13:24 +000013816LDFLAGS=$SAVE_LDFLAGS
13817fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013818
Theodore Ts'odefde781999-01-04 07:39:19 +000013819case "$host_os" in
13820solaris2.*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013821 ac_cv_e2fsprogs_use_static=no
Theodore Ts'odefde781999-01-04 07:39:19 +000013822;;
13823esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013825$as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
Theodore Ts'oae851481997-04-29 18:13:24 +000013826if test $ac_cv_e2fsprogs_use_static = yes; then
Theodore Ts'ofd1677e2016-05-21 23:51:19 -040013827 LDFLAGS_STATIC="$LDFLAGS_STATIC -static"
Theodore Ts'oae851481997-04-29 18:13:24 +000013828fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013829
Theodore Ts'o07a0db12003-07-05 14:50:24 -040013830case "$host_os" in
13831darwin*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013833$as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013834
13835$as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
Theodore Ts'o07a0db12003-07-05 14:50:24 -040013836
13837 ;;
13838esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013839if test "$cross_compiling" = yes ; then
13840 DO_TEST_SUITE=
13841else
13842 DO_TEST_SUITE=check
13843fi
13844
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013845INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
13846if test -n "$CPPFLAGS" ; then
13847 INCLUDES="$INCLUDES $CPPFLAGS"
13848fi
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040013849if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013850 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040013851fi
Theodore Ts'o6c59a662014-01-04 20:44:29 -050013852if test -n "$WITH_DIET_LIBC" ; then
13853 INCLUDES="$INCLUDES -D_REENTRANT"
13854fi
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040013855
Theodore Ts'o5b5bd2c2014-07-10 00:17:05 -040013856
13857 MKINSTALLDIRS=
13858 if test -n "$ac_aux_dir"; then
13859 case "$ac_aux_dir" in
13860 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
13861 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
13862 esac
13863 fi
13864 if test -z "$MKINSTALLDIRS"; then
13865 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
13866 fi
13867
13868
Theodore Ts'odd947da2005-11-09 18:37:07 -040013869if test $cross_compiling = no; then
Theodore Ts'o28739272014-01-03 00:26:43 -050013870 BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
Theodore Ts'odd947da2005-11-09 18:37:07 -040013871 BUILD_LDFLAGS="$LDFLAGS"
Theodore Ts'odd947da2005-11-09 18:37:07 -040013872fi
13873
13874
Theodore Ts'ofd1677e2016-05-21 23:51:19 -040013875CFLAGS_SHLIB=${CFLAGS_SHLIB:-$CFLAGS}
13876CFLAGS_STLIB=${CFLAGS_STLIB:-$CFLAGS}
13877LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
13878
13879
13880
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013881test -d lib || mkdir lib
13882test -d include || mkdir include
13883test -d include/linux || mkdir include/linux
Theodore Ts'odefde781999-01-04 07:39:19 +000013884test -d include/asm || mkdir include/asm
Theodore Ts'o44dfb372015-07-01 19:42:05 -040013885if test -z "$UUID_CMT" ; then
13886 uuid_out_list="lib/uuid/Makefile lib/uuid/uuid.pc \
13887 lib/uuid/uuid_types.h"
13888fi
13889if test -z "$BLKID_CMT" ; then
13890 blkid_out_list="lib/blkid/Makefile lib/blkid/blkid.pc \
13891 lib/blkid/blkid_types.h"
13892fi
Theodore Ts'obff0cc92003-03-23 01:37:53 -050013893for i in MCONFIG Makefile e2fsprogs.spec \
Theodore Ts'o183c73b2012-05-12 23:13:24 -040013894 util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040013895 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
13896 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
Theodore Ts'of34af412015-07-11 23:05:57 -040013897 $uuid_out_list $blkid_out_list lib/support/Makefile \
Theodore Ts'o44dfb372015-07-01 19:42:05 -040013898 lib/ss/ss.pc lib/et/com_err.pc lib/e2p/e2p.pc lib/ext2fs/ext2fs.pc \
Theodore Ts'o921f4ad2004-11-19 17:25:27 -050013899 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050013900 debugfs/Makefile tests/Makefile tests/progs/Makefile \
Matthias Andree98a5ad62009-07-15 17:37:52 +020013901 resize/Makefile doc/Makefile intl/Makefile \
13902 intl/libgnuintl.h po/Makefile.in ; do
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050013903 if test -d `dirname ${srcdir}/$i` ; then
13904 outlist="$outlist $i"
13905 fi
13906done
Theodore Ts'oe1052142006-10-21 21:46:47 -040013907ac_config_files="$ac_config_files $outlist"
13908
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013909cat >confcache <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013910# This file is a shell script that caches the results of configure
13911# tests run on this system so they can be shared between configure
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013912# scripts and configure runs, see configure's option --config-cache.
13913# It is not useful on other systems. If it contains results you don't
13914# want to keep, you may remove or edit it.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013915#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013916# config.status only pays attention to the cache file if you give it
13917# the --recheck option to rerun configure.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013918#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013919# `ac_cv_env_foo' variables (set or unset) will be overridden when
13920# loading this file, other *unset* `ac_cv_foo' will be assigned the
13921# following values.
13922
13923_ACEOF
13924
Theodore Ts'o21c84b71997-04-29 16:15:03 +000013925# The following way of writing the cache mishandles newlines in values,
13926# but we know of no workaround that is simple, portable, and efficient.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013927# So, we kill variables containing newlines.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013928# Ultrix sh set writes to stderr and can't be redirected directly,
13929# and sets the high bit in the cache file unless we assign to the vars.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013930(
13931 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13932 eval ac_val=\$$ac_var
13933 case $ac_val in #(
13934 *${as_nl}*)
13935 case $ac_var in #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013936 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013937$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013938 esac
13939 case $ac_var in #(
13940 _ | IFS | as_nl) ;; #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013941 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013942 *) { eval $ac_var=; unset $ac_var;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013943 esac ;;
13944 esac
13945 done
13946
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013947 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -040013948 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13949 *${as_nl}ac_space=\ *)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013950 # `set' does not quote correctly, so add quotes: double-quote
13951 # substitution turns \\\\ into \\, and sed turns \\ into \.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013952 sed -n \
13953 "s/'/'\\\\''/g;
13954 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Theodore Ts'oe1052142006-10-21 21:46:47 -040013955 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013956 *)
13957 # `set' quotes correctly as required by POSIX, so do not add quotes.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013958 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013959 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013960 esac |
13961 sort
13962) |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013963 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -040013964 /^ac_cv_env_/b end
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013965 t clear
Theodore Ts'oe1052142006-10-21 21:46:47 -040013966 :clear
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013967 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13968 t end
Theodore Ts'oe1052142006-10-21 21:46:47 -040013969 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13970 :end' >>confcache
13971if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13972 if test -w "$cache_file"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013973 if test "x$cache_file" != "x/dev/null"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013974 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013975$as_echo "$as_me: updating cache $cache_file" >&6;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013976 if test ! -f "$cache_file" || test -h "$cache_file"; then
13977 cat confcache >"$cache_file"
13978 else
13979 case $cache_file in #(
13980 */* | ?:*)
13981 mv -f confcache "$cache_file"$$ &&
13982 mv -f "$cache_file"$$ "$cache_file" ;; #(
13983 *)
13984 mv -f confcache "$cache_file" ;;
13985 esac
13986 fi
13987 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013988 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013989 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013990$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013991 fi
13992fi
13993rm -f confcache
13994
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013995test "x$prefix" = xNONE && prefix=$ac_default_prefix
13996# Let make expand exec_prefix.
13997test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13998
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013999DEFS=-DHAVE_CONFIG_H
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014000
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014001ac_libobjs=
14002ac_ltlibobjs=
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014003U=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014004for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
14005 # 1. Remove the extension, and $U if already installed.
Theodore Ts'oe1052142006-10-21 21:46:47 -040014006 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014007 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Theodore Ts'oe1052142006-10-21 21:46:47 -040014008 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
14009 # will be set to the directory where LIBOBJS objects are built.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014010 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
14011 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014012done
14013LIBOBJS=$ac_libobjs
14014
14015LTLIBOBJS=$ac_ltlibobjs
14016
14017
14018
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014019
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014020: "${CONFIG_STATUS=./config.status}"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014021ac_write_fail=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014022ac_clean_files_save=$ac_clean_files
14023ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014024{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014025$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014026as_write_fail=0
14027cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014028#! $SHELL
14029# Generated by $as_me.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014030# Run this file to recreate the current configuration.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014031# Compiler output produced by configure, useful for debugging
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014032# configure, is in config.log if it exists.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014033
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014034debug=false
14035ac_cs_recheck=false
14036ac_cs_silent=false
Theodore Ts'o07a0db12003-07-05 14:50:24 -040014037
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014038SHELL=\${CONFIG_SHELL-$SHELL}
14039export SHELL
14040_ASEOF
14041cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14042## -------------------- ##
14043## M4sh Initialization. ##
14044## -------------------- ##
Theodore Ts'o07a0db12003-07-05 14:50:24 -040014045
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014046# Be more Bourne compatible
14047DUALCASE=1; export DUALCASE # for MKS sh
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014048if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014049 emulate sh
14050 NULLCMD=:
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014051 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014052 # is contrary to our usage. Disable this feature.
14053 alias -g '${1+"$@"}'='"$@"'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014054 setopt NO_GLOB_SUBST
14055else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014056 case `(set -o) 2>/dev/null` in #(
14057 *posix*) :
14058 set -o posix ;; #(
14059 *) :
14060 ;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014061esac
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014062fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014063
14064
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014065as_nl='
14066'
14067export as_nl
14068# Printing a long string crashes Solaris 7 /usr/bin/printf.
14069as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14070as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14071as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014072# Prefer a ksh shell builtin over an external printf program on Solaris,
14073# but without wasting forks for bash or zsh.
14074if test -z "$BASH_VERSION$ZSH_VERSION" \
14075 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14076 as_echo='print -r --'
14077 as_echo_n='print -rn --'
14078elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014079 as_echo='printf %s\n'
14080 as_echo_n='printf %s'
14081else
14082 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14083 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14084 as_echo_n='/usr/ucb/echo -n'
14085 else
14086 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14087 as_echo_n_body='eval
14088 arg=$1;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014089 case $arg in #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014090 *"$as_nl"*)
14091 expr "X$arg" : "X\\(.*\\)$as_nl";
14092 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14093 esac;
14094 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14095 '
14096 export as_echo_n_body
14097 as_echo_n='sh -c $as_echo_n_body as_echo'
14098 fi
14099 export as_echo_body
14100 as_echo='sh -c $as_echo_body as_echo'
14101fi
14102
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014103# The user is always right.
14104if test "${PATH_SEPARATOR+set}" != set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014105 PATH_SEPARATOR=:
14106 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14107 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14108 PATH_SEPARATOR=';'
14109 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014110fi
14111
Theodore Ts'oe1052142006-10-21 21:46:47 -040014112
14113# IFS
14114# We need space, tab and new line, in precisely that order. Quoting is
14115# there to prevent editors from complaining about space-tab.
14116# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14117# splitting by setting IFS to empty value.)
Theodore Ts'oe1052142006-10-21 21:46:47 -040014118IFS=" "" $as_nl"
14119
14120# Find who we are. Look in the path if we contain no directory separator.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014121as_myself=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014122case $0 in #((
Theodore Ts'oe1052142006-10-21 21:46:47 -040014123 *[\\/]* ) as_myself=$0 ;;
14124 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014125for as_dir in $PATH
14126do
14127 IFS=$as_save_IFS
14128 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014129 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14130 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040014131IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014132
Theodore Ts'oe1052142006-10-21 21:46:47 -040014133 ;;
14134esac
14135# We did not find ourselves, most probably we were run as `sh COMMAND'
14136# in which case we are not to be found in the path.
14137if test "x$as_myself" = x; then
14138 as_myself=$0
14139fi
14140if test ! -f "$as_myself"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014141 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014142 exit 1
Theodore Ts'oe1052142006-10-21 21:46:47 -040014143fi
14144
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014145# Unset variables that we do not need and which cause bugs (e.g. in
14146# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14147# suppresses any "Segmentation fault" message there. '((' could
14148# trigger a bug in pdksh 5.2.14.
14149for as_var in BASH_ENV ENV MAIL MAILPATH
14150do eval test x\${$as_var+set} = xset \
14151 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Theodore Ts'oe1052142006-10-21 21:46:47 -040014152done
14153PS1='$ '
14154PS2='> '
14155PS4='+ '
14156
14157# NLS nuisances.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014158LC_ALL=C
14159export LC_ALL
14160LANGUAGE=C
14161export LANGUAGE
Theodore Ts'oe1052142006-10-21 21:46:47 -040014162
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014163# CDPATH.
14164(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14165
14166
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014167# as_fn_error STATUS ERROR [LINENO LOG_FD]
14168# ----------------------------------------
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014169# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14170# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014171# script with STATUS, using 1 if that was 0.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014172as_fn_error ()
14173{
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014174 as_status=$1; test $as_status -eq 0 && as_status=1
14175 if test "$4"; then
14176 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14177 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014178 fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014179 $as_echo "$as_me: error: $2" >&2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014180 as_fn_exit $as_status
14181} # as_fn_error
14182
14183
14184# as_fn_set_status STATUS
14185# -----------------------
14186# Set $? to STATUS, without forking.
14187as_fn_set_status ()
14188{
14189 return $1
14190} # as_fn_set_status
14191
14192# as_fn_exit STATUS
14193# -----------------
14194# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14195as_fn_exit ()
14196{
14197 set +e
14198 as_fn_set_status $1
14199 exit $1
14200} # as_fn_exit
14201
14202# as_fn_unset VAR
14203# ---------------
14204# Portably unset VAR.
14205as_fn_unset ()
14206{
14207 { eval $1=; unset $1;}
14208}
14209as_unset=as_fn_unset
14210# as_fn_append VAR VALUE
14211# ----------------------
14212# Append the text in VALUE to the end of the definition contained in VAR. Take
14213# advantage of any shell optimizations that allow amortized linear growth over
14214# repeated appends, instead of the typical quadratic growth present in naive
14215# implementations.
14216if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14217 eval 'as_fn_append ()
14218 {
14219 eval $1+=\$2
14220 }'
14221else
14222 as_fn_append ()
14223 {
14224 eval $1=\$$1\$2
14225 }
14226fi # as_fn_append
14227
14228# as_fn_arith ARG...
14229# ------------------
14230# Perform arithmetic evaluation on the ARGs, and store the result in the
14231# global $as_val. Take advantage of shells that can avoid forks. The arguments
14232# must be portable across $(()) and expr.
14233if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14234 eval 'as_fn_arith ()
14235 {
14236 as_val=$(( $* ))
14237 }'
14238else
14239 as_fn_arith ()
14240 {
14241 as_val=`expr "$@" || test $? -eq 1`
14242 }
14243fi # as_fn_arith
14244
14245
Theodore Ts'oe1052142006-10-21 21:46:47 -040014246if expr a : '\(a\)' >/dev/null 2>&1 &&
14247 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14248 as_expr=expr
14249else
14250 as_expr=false
14251fi
14252
14253if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14254 as_basename=basename
14255else
14256 as_basename=false
14257fi
14258
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014259if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14260 as_dirname=dirname
14261else
14262 as_dirname=false
14263fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014264
Theodore Ts'oe1052142006-10-21 21:46:47 -040014265as_me=`$as_basename -- "$0" ||
14266$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14267 X"$0" : 'X\(//\)$' \| \
14268 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014269$as_echo X/"$0" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040014270 sed '/^.*\/\([^/][^/]*\)\/*$/{
14271 s//\1/
14272 q
14273 }
14274 /^X\/\(\/\/\)$/{
14275 s//\1/
14276 q
14277 }
14278 /^X\/\(\/\).*/{
14279 s//\1/
14280 q
14281 }
14282 s/.*/./; q'`
14283
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014284# Avoid depending upon Character Ranges.
14285as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14286as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14287as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14288as_cr_digits='0123456789'
14289as_cr_alnum=$as_cr_Letters$as_cr_digits
Theodore Ts'oe1052142006-10-21 21:46:47 -040014290
14291ECHO_C= ECHO_N= ECHO_T=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014292case `echo -n x` in #(((((
Theodore Ts'oe1052142006-10-21 21:46:47 -040014293-n*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014294 case `echo 'xy\c'` in
Theodore Ts'oe1052142006-10-21 21:46:47 -040014295 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014296 xy) ECHO_C='\c';;
14297 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14298 ECHO_T=' ';;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014299 esac;;
14300*)
14301 ECHO_N='-n';;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014302esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014303
14304rm -f conf$$ conf$$.exe conf$$.file
Theodore Ts'oe1052142006-10-21 21:46:47 -040014305if test -d conf$$.dir; then
14306 rm -f conf$$.dir/conf$$.file
14307else
14308 rm -f conf$$.dir
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014309 mkdir conf$$.dir 2>/dev/null
Theodore Ts'oe1052142006-10-21 21:46:47 -040014310fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014311if (echo >conf$$.file) 2>/dev/null; then
14312 if ln -s conf$$.file conf$$ 2>/dev/null; then
14313 as_ln_s='ln -s'
14314 # ... but there are two gotchas:
14315 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14316 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014317 # In both cases, we have to default to `cp -pR'.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014318 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014319 as_ln_s='cp -pR'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014320 elif ln conf$$.file conf$$ 2>/dev/null; then
14321 as_ln_s=ln
14322 else
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014323 as_ln_s='cp -pR'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014324 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014325else
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014326 as_ln_s='cp -pR'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014327fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014328rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14329rmdir conf$$.dir 2>/dev/null
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014330
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014331
14332# as_fn_mkdir_p
14333# -------------
14334# Create "$as_dir" as a directory, including parents if necessary.
14335as_fn_mkdir_p ()
14336{
14337
14338 case $as_dir in #(
14339 -*) as_dir=./$as_dir;;
14340 esac
14341 test -d "$as_dir" || eval $as_mkdir_p || {
14342 as_dirs=
14343 while :; do
14344 case $as_dir in #(
14345 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14346 *) as_qdir=$as_dir;;
14347 esac
14348 as_dirs="'$as_qdir' $as_dirs"
14349 as_dir=`$as_dirname -- "$as_dir" ||
14350$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14351 X"$as_dir" : 'X\(//\)[^/]' \| \
14352 X"$as_dir" : 'X\(//\)$' \| \
14353 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14354$as_echo X"$as_dir" |
14355 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14356 s//\1/
14357 q
14358 }
14359 /^X\(\/\/\)[^/].*/{
14360 s//\1/
14361 q
14362 }
14363 /^X\(\/\/\)$/{
14364 s//\1/
14365 q
14366 }
14367 /^X\(\/\).*/{
14368 s//\1/
14369 q
14370 }
14371 s/.*/./; q'`
14372 test -d "$as_dir" && break
14373 done
14374 test -z "$as_dirs" || eval "mkdir $as_dirs"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014375 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014376
14377
14378} # as_fn_mkdir_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014379if mkdir -p . 2>/dev/null; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014380 as_mkdir_p='mkdir -p "$as_dir"'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014381else
14382 test -d ./-p && rmdir ./-p
14383 as_mkdir_p=false
14384fi
14385
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014386
14387# as_fn_executable_p FILE
14388# -----------------------
14389# Test if FILE is an executable regular file.
14390as_fn_executable_p ()
14391{
14392 test -f "$1" && test -x "$1"
14393} # as_fn_executable_p
14394as_test_x='test -x'
14395as_executable_p=as_fn_executable_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014396
14397# Sed expression to map a string onto a valid CPP name.
14398as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14399
14400# Sed expression to map a string onto a valid variable name.
14401as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14402
14403
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014404exec 6>&1
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014405## ----------------------------------- ##
14406## Main body of $CONFIG_STATUS script. ##
14407## ----------------------------------- ##
14408_ASEOF
14409test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014410
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014411cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14412# Save the log message, to keep $0 and so on meaningful, and to
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014413# report actual input values of CONFIG_FILES etc. instead of their
Theodore Ts'oe1052142006-10-21 21:46:47 -040014414# values after options handling.
14415ac_log="
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014416This file was extended by $as_me, which was
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014417generated by GNU Autoconf 2.69. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014418
14419 CONFIG_FILES = $CONFIG_FILES
14420 CONFIG_HEADERS = $CONFIG_HEADERS
14421 CONFIG_LINKS = $CONFIG_LINKS
14422 CONFIG_COMMANDS = $CONFIG_COMMANDS
14423 $ $0 $@
14424
Theodore Ts'oe1052142006-10-21 21:46:47 -040014425on `(hostname || uname -n) 2>/dev/null | sed 1q`
14426"
14427
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014428_ACEOF
14429
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014430case $ac_config_files in *"
14431"*) set x $ac_config_files; shift; ac_config_files=$*;;
14432esac
14433
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014434case $ac_config_headers in *"
14435"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14436esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014437
14438
14439cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014440# Files that config.status was made for.
Theodore Ts'oe1052142006-10-21 21:46:47 -040014441config_files="$ac_config_files"
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014442config_headers="$ac_config_headers"
Theodore Ts'oe1052142006-10-21 21:46:47 -040014443config_commands="$ac_config_commands"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014444
Theodore Ts'oe1052142006-10-21 21:46:47 -040014445_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014446
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014447cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014448ac_cs_usage="\
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014449\`$as_me' instantiates files and other configuration actions
14450from templates according to the current configuration. Unless the files
14451and actions are specified as TAGs, all are instantiated by default.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014452
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014453Usage: $0 [OPTION]... [TAG]...
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014454
14455 -h, --help print this help, then exit
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014456 -V, --version print version number and configuration settings, then exit
Theodore Ts'o61ef2472010-08-01 22:30:33 -040014457 --config print configuration, then exit
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014458 -q, --quiet, --silent
14459 do not print progress messages
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014460 -d, --debug don't remove temporary files
14461 --recheck update $as_me by reconfiguring in the same conditions
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014462 --file=FILE[:TEMPLATE]
14463 instantiate the configuration file FILE
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014464 --header=FILE[:TEMPLATE]
14465 instantiate the configuration header FILE
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014466
14467Configuration files:
14468$config_files
14469
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014470Configuration headers:
14471$config_headers
14472
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014473Configuration commands:
14474$config_commands
14475
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014476Report bugs to the package provider."
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014477
Theodore Ts'oe1052142006-10-21 21:46:47 -040014478_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014479cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'o61ef2472010-08-01 22:30:33 -040014480ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014481ac_cs_version="\\
14482config.status
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014483configured by $0, generated by GNU Autoconf 2.69,
Theodore Ts'o61ef2472010-08-01 22:30:33 -040014484 with options \\"\$ac_cs_config\\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014485
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014486Copyright (C) 2012 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014487This config.status script is free software; the Free Software Foundation
14488gives unlimited permission to copy, distribute and modify it."
Theodore Ts'oe1052142006-10-21 21:46:47 -040014489
14490ac_pwd='$ac_pwd'
14491srcdir='$srcdir'
14492INSTALL='$INSTALL'
Theodore Ts'o93613952014-07-03 23:44:13 -040014493MKDIR_P='$MKDIR_P'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014494AWK='$AWK'
14495test -n "\$AWK" || AWK=awk
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014496_ACEOF
14497
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014498cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14499# The default lists apply if the user does not specify any file.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014500ac_need_defaults=:
14501while test $# != 0
14502do
14503 case $1 in
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014504 --*=?*)
Theodore Ts'oe1052142006-10-21 21:46:47 -040014505 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14506 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014507 ac_shift=:
14508 ;;
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014509 --*=)
14510 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14511 ac_optarg=
14512 ac_shift=:
14513 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014514 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014515 ac_option=$1
14516 ac_optarg=$2
14517 ac_shift=shift
14518 ;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014519 esac
14520
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014521 case $ac_option in
14522 # Handling of the options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014523 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14524 ac_cs_recheck=: ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014525 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014526 $as_echo "$ac_cs_version"; exit ;;
Theodore Ts'o61ef2472010-08-01 22:30:33 -040014527 --config | --confi | --conf | --con | --co | --c )
14528 $as_echo "$ac_cs_config"; exit ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014529 --debug | --debu | --deb | --de | --d | -d )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014530 debug=: ;;
14531 --file | --fil | --fi | --f )
14532 $ac_shift
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014533 case $ac_optarg in
14534 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014535 '') as_fn_error $? "missing file argument" ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014536 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014537 as_fn_append CONFIG_FILES " '$ac_optarg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014538 ac_need_defaults=false;;
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014539 --header | --heade | --head | --hea )
14540 $ac_shift
14541 case $ac_optarg in
14542 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14543 esac
14544 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14545 ac_need_defaults=false;;
14546 --he | --h)
14547 # Conflict between --help and --header
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014548 as_fn_error $? "ambiguous option: \`$1'
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014549Try \`$0 --help' for more information.";;
14550 --help | --hel | -h )
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014551 $as_echo "$ac_cs_usage"; exit ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014552 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14553 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14554 ac_cs_silent=: ;;
14555
14556 # This is an error.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014557 -*) as_fn_error $? "unrecognized option: \`$1'
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014558Try \`$0 --help' for more information." ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014559
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014560 *) as_fn_append ac_config_targets " $1"
Theodore Ts'oe1052142006-10-21 21:46:47 -040014561 ac_need_defaults=false ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014562
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014563 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014564 shift
14565done
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014566
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014567ac_configure_extra_args=
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014568
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014569if $ac_cs_silent; then
14570 exec 6>/dev/null
14571 ac_configure_extra_args="$ac_configure_extra_args --silent"
14572fi
14573
14574_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014575cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014576if \$ac_cs_recheck; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014577 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014578 shift
14579 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14580 CONFIG_SHELL='$SHELL'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014581 export CONFIG_SHELL
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014582 exec "\$@"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014583fi
14584
14585_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014586cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040014587exec 5>>config.log
14588{
14589 echo
14590 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14591## Running $as_me. ##
14592_ASBOX
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014593 $as_echo "$ac_log"
Theodore Ts'oe1052142006-10-21 21:46:47 -040014594} >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014595
Theodore Ts'oe1052142006-10-21 21:46:47 -040014596_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014597cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014598#
Theodore Ts'oe1052142006-10-21 21:46:47 -040014599# INIT-COMMANDS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014600#
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014601# Capture the value of obsolete ALL_LINGUAS because we need it to compute
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014602 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
Theodore Ts'o93613952014-07-03 23:44:13 -040014603 # from automake < 1.5.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014604 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014605 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14606 LINGUAS="${LINGUAS-%UNSET%}"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014607
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014608
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014609_ACEOF
14610
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014611cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040014612
14613# Handling of arguments.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014614for ac_config_target in $ac_config_targets
14615do
Theodore Ts'oe1052142006-10-21 21:46:47 -040014616 case $ac_config_target in
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014617 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
Theodore Ts'o93613952014-07-03 23:44:13 -040014618 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014619 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
14620
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014621 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014622 esac
14623done
14624
Theodore Ts'oe1052142006-10-21 21:46:47 -040014625
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014626# If the user did not use the arguments to specify the items to instantiate,
14627# then the envvar interface is used. Set only those that are not.
14628# We use the long form for the default assignment because of an extremely
14629# bizarre bug on SunOS 4.1.3.
14630if $ac_need_defaults; then
14631 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014632 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014633 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14634fi
14635
14636# Have a temporary directory for convenience. Make it in the build tree
Theodore Ts'oe1052142006-10-21 21:46:47 -040014637# simply because there is no reason against having it here, and in addition,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014638# creating and moving files from /tmp can sometimes cause problems.
Theodore Ts'oe1052142006-10-21 21:46:47 -040014639# Hook for its removal unless debugging.
14640# Note that there is a small window in which the directory will not be cleaned:
14641# after its creation but before its name has been assigned to `$tmp'.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014642$debug ||
14643{
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014644 tmp= ac_tmp=
Theodore Ts'oe1052142006-10-21 21:46:47 -040014645 trap 'exit_status=$?
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014646 : "${ac_tmp:=$tmp}"
14647 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
Theodore Ts'oe1052142006-10-21 21:46:47 -040014648' 0
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014649 trap 'as_fn_exit 1' 1 2 13 15
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014650}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014651# Create a (secure) tmp directory for tmp files.
14652
14653{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014654 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014655 test -d "$tmp"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014656} ||
14657{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014658 tmp=./conf$$-$RANDOM
14659 (umask 077 && mkdir "$tmp")
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014660} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14661ac_tmp=$tmp
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014662
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014663# Set up the scripts for CONFIG_FILES section.
14664# No need to generate them if there are no CONFIG_FILES.
14665# This happens for instance with `./config.status config.h'.
Theodore Ts'oe1052142006-10-21 21:46:47 -040014666if test -n "$CONFIG_FILES"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014667
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014668if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14669 ac_cs_awk_getline=:
14670 ac_cs_awk_pipe_init=
14671 ac_cs_awk_read_file='
14672 while ((getline aline < (F[key])) > 0)
14673 print(aline)
14674 close(F[key])'
14675 ac_cs_awk_pipe_fini=
14676else
14677 ac_cs_awk_getline=false
14678 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14679 ac_cs_awk_read_file='
14680 print "|#_!!_#|"
14681 print "cat " F[key] " &&"
14682 '$ac_cs_awk_pipe_init
14683 # The final `:' finishes the AND list.
14684 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14685fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014686ac_cr=`echo X | tr X '\015'`
14687# On cygwin, bash can eat \r inside `` if the user requested igncr.
14688# But we know of no other shell where ac_cr would be empty at this
14689# point, so we can use a bashism as a fallback.
14690if test "x$ac_cr" = x; then
14691 eval ac_cr=\$\'\\r\'
14692fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014693ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14694if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014695 ac_cs_awk_cr='\\r'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014696else
14697 ac_cs_awk_cr=$ac_cr
14698fi
14699
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014700echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014701_ACEOF
14702
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014703# Create commands to substitute file output variables.
14704{
14705 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014706 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014707 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14708 echo "_ACAWK" &&
14709 echo "_ACEOF"
14710} >conf$$files.sh &&
14711. ./conf$$files.sh ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014712 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014713rm -f conf$$files.sh
Theodore Ts'oe1052142006-10-21 21:46:47 -040014714
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014715{
14716 echo "cat >conf$$subs.awk <<_ACEOF" &&
14717 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14718 echo "_ACEOF"
14719} >conf$$subs.sh ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014720 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14721ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040014722ac_delim='%!_!# '
14723for ac_last_try in false false false false false :; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014724 . ./conf$$subs.sh ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014725 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014726
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014727 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14728 if test $ac_delim_n = $ac_delim_num; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040014729 break
14730 elif $ac_last_try; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014731 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014732 else
14733 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014734 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014735done
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014736rm -f conf$$subs.sh
Theodore Ts'oe1052142006-10-21 21:46:47 -040014737
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014738cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014739cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040014740_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014741sed -n '
14742h
14743s/^/S["/; s/!.*/"]=/
14744p
14745g
14746s/^[^!]*!//
14747:repl
14748t repl
14749s/'"$ac_delim"'$//
14750t delim
14751:nl
14752h
Theodore Ts'o61ef2472010-08-01 22:30:33 -040014753s/\(.\{148\}\)..*/\1/
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014754t more1
14755s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14756p
14757n
14758b repl
14759:more1
14760s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14761p
14762g
14763s/.\{148\}//
14764t nl
14765:delim
14766h
Theodore Ts'o61ef2472010-08-01 22:30:33 -040014767s/\(.\{148\}\)..*/\1/
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014768t more2
14769s/["\\]/\\&/g; s/^/"/; s/$/"/
14770p
14771b
14772:more2
14773s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14774p
14775g
14776s/.\{148\}//
14777t delim
14778' <conf$$subs.awk | sed '
14779/^[^""]/{
14780 N
14781 s/\n//
14782}
14783' >>$CONFIG_STATUS || ac_write_fail=1
14784rm -f conf$$subs.awk
14785cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14786_ACAWK
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014787cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014788 for (key in S) S_is_set[key] = 1
14789 FS = ""
14790 \$ac_cs_awk_pipe_init
14791}
14792{
14793 line = $ 0
14794 nfields = split(line, field, "@")
14795 substed = 0
14796 len = length(field[1])
14797 for (i = 2; i < nfields; i++) {
14798 key = field[i]
14799 keylen = length(key)
14800 if (S_is_set[key]) {
14801 value = S[key]
14802 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14803 len += length(value) + length(field[++i])
14804 substed = 1
14805 } else
14806 len += 1 + keylen
14807 }
14808 if (nfields == 3 && !substed) {
14809 key = field[2]
14810 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
14811 \$ac_cs_awk_read_file
14812 next
14813 }
14814 }
14815 print line
14816}
14817\$ac_cs_awk_pipe_fini
14818_ACAWK
Theodore Ts'oe1052142006-10-21 21:46:47 -040014819_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014820cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14821if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14822 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14823else
14824 cat
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014825fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14826 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014827_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040014828
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014829# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14830# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
Theodore Ts'oe1052142006-10-21 21:46:47 -040014831# trailing colons and then remove the whole line if VPATH becomes empty
14832# (actually we leave an empty line to preserve line numbers).
14833if test "x$srcdir" = x.; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014834 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14835h
14836s///
14837s/^/:/
14838s/[ ]*$/:/
14839s/:\$(srcdir):/:/g
14840s/:\${srcdir}:/:/g
14841s/:@srcdir@:/:/g
14842s/^:*//
Theodore Ts'oe1052142006-10-21 21:46:47 -040014843s/:*$//
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014844x
14845s/\(=[ ]*\).*/\1/
14846G
14847s/\n//
Theodore Ts'oe1052142006-10-21 21:46:47 -040014848s/^[^=]*=[ ]*$//
14849}'
14850fi
14851
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014852cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014853fi # test -n "$CONFIG_FILES"
14854
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014855# Set up the scripts for CONFIG_HEADERS section.
14856# No need to generate them if there are no CONFIG_HEADERS.
14857# This happens for instance with `./config.status Makefile'.
14858if test -n "$CONFIG_HEADERS"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014859cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014860BEGIN {
14861_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040014862
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014863# Transform confdefs.h into an awk script `defines.awk', embedded as
14864# here-document in config.status, that substitutes the proper values into
14865# config.h.in to produce config.h.
14866
14867# Create a delimiter string that does not exist in confdefs.h, to ease
14868# handling of long lines.
14869ac_delim='%!_!# '
14870for ac_last_try in false false :; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014871 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14872 if test -z "$ac_tt"; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014873 break
14874 elif $ac_last_try; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014875 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014876 else
14877 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14878 fi
14879done
14880
14881# For the awk script, D is an array of macro values keyed by name,
14882# likewise P contains macro parameters if any. Preserve backslash
14883# newline sequences.
14884
14885ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14886sed -n '
14887s/.\{148\}/&'"$ac_delim"'/g
14888t rset
14889:rset
14890s/^[ ]*#[ ]*define[ ][ ]*/ /
14891t def
14892d
14893:def
14894s/\\$//
14895t bsnl
14896s/["\\]/\\&/g
14897s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14898D["\1"]=" \3"/p
14899s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14900d
14901:bsnl
14902s/["\\]/\\&/g
14903s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14904D["\1"]=" \3\\\\\\n"\\/p
14905t cont
14906s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14907t cont
14908d
14909:cont
14910n
14911s/.\{148\}/&'"$ac_delim"'/g
14912t clear
14913:clear
14914s/\\$//
14915t bsnlc
14916s/["\\]/\\&/g; s/^/"/; s/$/"/p
14917d
14918:bsnlc
14919s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14920b cont
14921' <confdefs.h | sed '
14922s/'"$ac_delim"'/"\\\
14923"/g' >>$CONFIG_STATUS || ac_write_fail=1
14924
14925cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14926 for (key in D) D_is_set[key] = 1
14927 FS = ""
14928}
14929/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14930 line = \$ 0
14931 split(line, arg, " ")
14932 if (arg[1] == "#") {
14933 defundef = arg[2]
14934 mac1 = arg[3]
14935 } else {
14936 defundef = substr(arg[1], 2)
14937 mac1 = arg[2]
14938 }
14939 split(mac1, mac2, "(") #)
14940 macro = mac2[1]
14941 prefix = substr(line, 1, index(line, defundef) - 1)
14942 if (D_is_set[macro]) {
14943 # Preserve the white space surrounding the "#".
14944 print prefix "define", macro P[macro] D[macro]
14945 next
14946 } else {
14947 # Replace #undef with comments. This is necessary, for example,
14948 # in the case of _POSIX_SOURCE, which is predefined and required
14949 # on some systems where configure will not decide to define it.
14950 if (defundef == "undef") {
14951 print "/*", prefix defundef, macro, "*/"
14952 next
14953 }
14954 }
14955}
14956{ print }
14957_ACAWK
14958_ACEOF
14959cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014960 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014961fi # test -n "$CONFIG_HEADERS"
14962
14963
14964eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014965shift
14966for ac_tag
Theodore Ts'oe1052142006-10-21 21:46:47 -040014967do
14968 case $ac_tag in
14969 :[FHLC]) ac_mode=$ac_tag; continue;;
14970 esac
14971 case $ac_mode$ac_tag in
14972 :[FHL]*:*);;
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014973 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014974 :[FH]-) ac_tag=-:-;;
14975 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14976 esac
14977 ac_save_IFS=$IFS
14978 IFS=:
14979 set x $ac_tag
14980 IFS=$ac_save_IFS
14981 shift
14982 ac_file=$1
14983 shift
14984
14985 case $ac_mode in
14986 :L) ac_source=$1;;
14987 :[FH])
14988 ac_file_inputs=
14989 for ac_f
14990 do
14991 case $ac_f in
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014992 -) ac_f="$ac_tmp/stdin";;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014993 *) # Look for the file first in the build tree, then in the source tree
14994 # (if the path is not absolute). The absolute path cannot be DOS-style,
14995 # because $ac_f cannot contain `:'.
14996 test -f "$ac_f" ||
14997 case $ac_f in
14998 [\\/$]*) false;;
14999 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
15000 esac ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015001 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015002 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015003 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050015004 as_fn_append ac_file_inputs " '$ac_f'"
Theodore Ts'oe1052142006-10-21 21:46:47 -040015005 done
15006
15007 # Let's still pretend it is `configure' which instantiates (i.e., don't
15008 # use $as_me), people would be surprised to read:
15009 # /* config.h. Generated by config.status. */
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015010 configure_input='Generated from '`
15011 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
15012 `' by configure.'
Theodore Ts'oe1052142006-10-21 21:46:47 -040015013 if test x"$ac_file" != x-; then
15014 configure_input="$ac_file. $configure_input"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050015015 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015016$as_echo "$as_me: creating $ac_file" >&6;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040015017 fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015018 # Neutralize special characters interpreted by sed in replacement strings.
15019 case $configure_input in #(
15020 *\&* | *\|* | *\\* )
15021 ac_sed_conf_input=`$as_echo "$configure_input" |
15022 sed 's/[\\\\&|]/\\\\&/g'`;; #(
15023 *) ac_sed_conf_input=$configure_input;;
15024 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040015025
15026 case $ac_tag in
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015027 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15028 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015029 esac
15030 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015031 esac
15032
Theodore Ts'oe1052142006-10-21 21:46:47 -040015033 ac_dir=`$as_dirname -- "$ac_file" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015034$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15035 X"$ac_file" : 'X\(//\)[^/]' \| \
15036 X"$ac_file" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -040015037 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015038$as_echo X"$ac_file" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040015039 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15040 s//\1/
15041 q
15042 }
15043 /^X\(\/\/\)[^/].*/{
15044 s//\1/
15045 q
15046 }
15047 /^X\(\/\/\)$/{
15048 s//\1/
15049 q
15050 }
15051 /^X\(\/\).*/{
15052 s//\1/
15053 q
15054 }
15055 s/.*/./; q'`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050015056 as_dir="$ac_dir"; as_fn_mkdir_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015057 ac_builddir=.
15058
Theodore Ts'oe1052142006-10-21 21:46:47 -040015059case "$ac_dir" in
15060.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15061*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015062 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040015063 # A ".." for each directory in $ac_dir_suffix.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015064 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040015065 case $ac_top_builddir_sub in
15066 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15067 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15068 esac ;;
15069esac
15070ac_abs_top_builddir=$ac_pwd
15071ac_abs_builddir=$ac_pwd$ac_dir_suffix
15072# for backward compatibility:
15073ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015074
15075case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -040015076 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015077 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015078 ac_top_srcdir=$ac_top_builddir_sub
15079 ac_abs_top_srcdir=$ac_pwd ;;
15080 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015081 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015082 ac_top_srcdir=$srcdir
15083 ac_abs_top_srcdir=$srcdir ;;
15084 *) # Relative name.
15085 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15086 ac_top_srcdir=$ac_top_build_prefix$srcdir
15087 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015088esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040015089ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015090
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015091
Theodore Ts'oe1052142006-10-21 21:46:47 -040015092 case $ac_mode in
15093 :F)
15094 #
15095 # CONFIG_FILE
15096 #
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015097
15098 case $INSTALL in
15099 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015100 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015101 esac
Theodore Ts'o93613952014-07-03 23:44:13 -040015102 ac_MKDIR_P=$MKDIR_P
15103 case $MKDIR_P in
15104 [\\/$]* | ?:[\\/]* ) ;;
15105 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15106 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015107_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040015108
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015109cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040015110# If the template does not know about datarootdir, expand it.
15111# FIXME: This hack should be removed a few years after 2.60.
15112ac_datarootdir_hack=; ac_datarootdir_seen=
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015113ac_sed_dataroot='
15114/datarootdir/ {
Theodore Ts'oe1052142006-10-21 21:46:47 -040015115 p
15116 q
15117}
15118/@datadir@/p
15119/@docdir@/p
15120/@infodir@/p
15121/@localedir@/p
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050015122/@mandir@/p'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015123case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Theodore Ts'oe1052142006-10-21 21:46:47 -040015124*datarootdir*) ac_datarootdir_seen=yes;;
15125*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050015126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015127$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040015128_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015129cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040015130 ac_datarootdir_hack='
15131 s&@datadir@&$datadir&g
15132 s&@docdir@&$docdir&g
15133 s&@infodir@&$infodir&g
15134 s&@localedir@&$localedir&g
15135 s&@mandir@&$mandir&g
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050015136 s&\\\${datarootdir}&$datarootdir&g' ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015137esac
15138_ACEOF
15139
15140# Neutralize VPATH when `$srcdir' = `.'.
15141# Shell code in configure.ac might set extrasub.
15142# FIXME: do we really want to maintain this feature?
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015143cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15144ac_sed_extra="$ac_vpsub
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015145$extrasub
15146_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015147cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015148:t
15149/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015150s|@configure_input@|$ac_sed_conf_input|;t t
Theodore Ts'oe1052142006-10-21 21:46:47 -040015151s&@top_builddir@&$ac_top_builddir_sub&;t t
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015152s&@top_build_prefix@&$ac_top_build_prefix&;t t
Theodore Ts'oe1052142006-10-21 21:46:47 -040015153s&@srcdir@&$ac_srcdir&;t t
15154s&@abs_srcdir@&$ac_abs_srcdir&;t t
15155s&@top_srcdir@&$ac_top_srcdir&;t t
15156s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15157s&@builddir@&$ac_builddir&;t t
15158s&@abs_builddir@&$ac_abs_builddir&;t t
15159s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15160s&@INSTALL@&$ac_INSTALL&;t t
Theodore Ts'o93613952014-07-03 23:44:13 -040015161s&@MKDIR_P@&$ac_MKDIR_P&;t t
Theodore Ts'oe1052142006-10-21 21:46:47 -040015162$ac_datarootdir_hack
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015163"
15164eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15165if $ac_cs_awk_getline; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015166 $AWK -f "$ac_tmp/subs.awk"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015167else
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015168 $AWK -f "$ac_tmp/subs.awk" | $SHELL
15169fi \
15170 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015171
Theodore Ts'oe1052142006-10-21 21:46:47 -040015172test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015173 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15174 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15175 "$ac_tmp/out"`; test -z "$ac_out"; } &&
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050015176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015177which seems to be undefined. Please make sure it is defined" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015178$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015179which seems to be undefined. Please make sure it is defined" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015180
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015181 rm -f "$ac_tmp/stdin"
Theodore Ts'oe1052142006-10-21 21:46:47 -040015182 case $ac_file in
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015183 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15184 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015185 esac \
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015186 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040015187 ;;
Theodore Ts'od1154eb2011-09-18 17:34:37 -040015188 :H)
15189 #
15190 # CONFIG_HEADER
15191 #
15192 if test x"$ac_file" != x-; then
15193 {
15194 $as_echo "/* $configure_input */" \
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015195 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15196 } >"$ac_tmp/config.h" \
15197 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15198 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040015199 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15200$as_echo "$as_me: $ac_file is unchanged" >&6;}
15201 else
15202 rm -f "$ac_file"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015203 mv "$ac_tmp/config.h" "$ac_file" \
15204 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040015205 fi
15206 else
15207 $as_echo "/* $configure_input */" \
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015208 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15209 || as_fn_error $? "could not create -" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040015210 fi
15211 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015212
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050015213 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015214$as_echo "$as_me: executing $ac_file commands" >&6;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040015215 ;;
15216 esac
15217
15218
15219 case $ac_file$ac_mode in
Theodore Ts'o93613952014-07-03 23:44:13 -040015220 "po-directories":C)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015221 for ac_file in $CONFIG_FILES; do
15222 # Support "outfile[:infile[:infile...]]"
15223 case "$ac_file" in
15224 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000015225 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015226 # PO directories have a Makefile.in generated from Makefile.in.in.
15227 case "$ac_file" in */Makefile.in)
15228 # Adjust a relative srcdir.
15229 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
Theodore Ts'o93613952014-07-03 23:44:13 -040015230 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015231 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15232 # In autoconf-2.13 it is called $ac_given_srcdir.
15233 # In autoconf-2.50 it is called $srcdir.
15234 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15235 case "$ac_given_srcdir" in
15236 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15237 /*) top_srcdir="$ac_given_srcdir" ;;
15238 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
15239 esac
Theodore Ts'o93613952014-07-03 23:44:13 -040015240 # Treat a directory as a PO directory if and only if it has a
15241 # POTFILES.in file. This allows packages to have multiple PO
15242 # directories under different names or in different locations.
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015243 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15244 rm -f "$ac_dir/POTFILES"
15245 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
Theodore Ts'o93613952014-07-03 23:44:13 -040015246 gt_tab=`printf '\t'`
15247 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"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015248 POMAKEFILEDEPS="POTFILES.in"
15249 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015250 # on $ac_dir but don't depend on user-specified configuration
15251 # parameters.
15252 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15253 # The LINGUAS file contains the set of available languages.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015254 if test -n "$OBSOLETE_ALL_LINGUAS"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015255 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
15256 fi
Theodore Ts'o93613952014-07-03 23:44:13 -040015257 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15258 # Hide the ALL_LINGUAS assignment from automake < 1.5.
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015259 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015260 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15261 else
15262 # The set of available languages was given in configure.in.
Theodore Ts'o93613952014-07-03 23:44:13 -040015263 # Hide the ALL_LINGUAS assignment from automake < 1.5.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015264 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015265 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015266 # Compute POFILES
15267 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
15268 # Compute UPDATEPOFILES
15269 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
15270 # Compute DUMMYPOFILES
15271 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
15272 # Compute GMOFILES
15273 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015274 case "$ac_given_srcdir" in
15275 .) srcdirpre= ;;
15276 *) srcdirpre='$(srcdir)/' ;;
15277 esac
15278 POFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015279 UPDATEPOFILES=
15280 DUMMYPOFILES=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015281 GMOFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015282 for lang in $ALL_LINGUAS; do
15283 POFILES="$POFILES $srcdirpre$lang.po"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015284 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15285 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015286 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015287 done
15288 # CATALOGS depends on both $ac_dir and the user's LINGUAS
15289 # environment variable.
15290 INST_LINGUAS=
15291 if test -n "$ALL_LINGUAS"; then
15292 for presentlang in $ALL_LINGUAS; do
15293 useit=no
15294 if test "%UNSET%" != "$LINGUAS"; then
15295 desiredlanguages="$LINGUAS"
15296 else
15297 desiredlanguages="$ALL_LINGUAS"
15298 fi
15299 for desiredlang in $desiredlanguages; do
15300 # Use the presentlang catalog if desiredlang is
15301 # a. equal to presentlang, or
15302 # b. a variant of presentlang (because in this case,
15303 # presentlang can be used as a fallback for messages
15304 # which are not translated in the desiredlang catalog).
15305 case "$desiredlang" in
15306 "$presentlang"*) useit=yes;;
15307 esac
15308 done
15309 if test $useit = yes; then
15310 INST_LINGUAS="$INST_LINGUAS $presentlang"
15311 fi
15312 done
15313 fi
15314 CATALOGS=
15315 if test -n "$INST_LINGUAS"; then
15316 for lang in $INST_LINGUAS; do
15317 CATALOGS="$CATALOGS $lang.gmo"
15318 done
15319 fi
15320 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015321 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"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015322 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15323 if test -f "$f"; then
15324 case "$f" in
15325 *.orig | *.bak | *~) ;;
15326 *) cat "$f" >> "$ac_dir/Makefile" ;;
15327 esac
15328 fi
15329 done
15330 fi
15331 ;;
15332 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015333 done ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015334
Theodore Ts'oe1052142006-10-21 21:46:47 -040015335 esac
15336done # for ac_tag
15337
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015338
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050015339as_fn_exit 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015340_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015341ac_clean_files=$ac_clean_files_save
15342
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015343test $ac_write_fail = 0 ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015344 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015345
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015346
15347# configure is writing to config.log, and then calls config.status.
15348# config.status does its own redirection, appending to config.log.
15349# Unfortunately, on DOS this fails, as config.log is still kept open
15350# by configure, so config.status won't be able to write to it; its
15351# output is simply discarded. So we exec the FD to /dev/null,
15352# effectively closing config.log, so it can be properly (re)opened and
15353# appended to by config.status. When coming back to configure, we
15354# need to make the FD available again.
15355if test "$no_create" != yes; then
15356 ac_cs_success=:
15357 ac_config_status_args=
15358 test "$silent" = yes &&
15359 ac_config_status_args="$ac_config_status_args --quiet"
15360 exec 5>/dev/null
15361 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15362 exec 5>>config.log
15363 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15364 # would make configure fail if this is the last instruction.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015365 $ac_cs_success || as_fn_exit 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015366fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015367if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050015368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015369$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15370fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015371
Theodore Ts'oee683a12005-02-05 15:53:56 -050015372if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi