blob: 03e24d14d777a99a8da7d3c470b47c063243672d [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
636ET_DIR
637SS_DIR
Theodore Ts'ofd1677e2016-05-21 23:51:19 -0400638LDFLAGS_STATIC
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100639root_sysconfdir
640root_libdir
641root_sbindir
642root_bindir
643root_prefix
644UNIX_CMT
645CYGWIN_CMT
646LINUX_CMT
647UNI_DIFF_OPTS
648SEM_INIT_LIB
Darrick J. Wong81cbf1e2015-05-13 17:22:40 -0700649FUSE_CMT
650FUSE_LIB
Theodore Ts'oc94da042016-06-21 23:16:39 -0400651CLOCK_GETTIME_LIB
Darrick J. Wongb291c112014-09-13 15:12:46 -0700652MAGIC_LIB
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100653SOCKET_LIB
Theodore Ts'o2dd680f2016-05-29 01:07:40 -0400654SIZEOF_TIME_T
Theodore Ts'occ68e8a2013-05-04 19:01:09 -0400655SIZEOF_OFF_T
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100656SIZEOF_LONG_LONG
657SIZEOF_LONG
658SIZEOF_INT
659SIZEOF_SHORT
660BUILD_CC
661MAKEINFO
662STRIP
663AR
664LDCONFIG
665PERL
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100666AWK
667CHMOD
668RM
669CP
670MV
671LN_S
672LN
Theodore Ts'obcb915b2009-07-02 18:19:10 -0400673ifNotGNUmake
674ifGNUmake
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100675BINARY_TYPE
676POSUB
677LTLIBINTL
678LIBINTL
679INTLLIBS
680INTL_LIBTOOL_SUFFIX_PREFIX
681INTLOBJS
682GENCAT
683INSTOBJEXT
684DATADIRNAME
685CATOBJEXT
686USE_INCLUDED_LIBINTL
687BUILD_INCLUDED_LIBINTL
Theodore Ts'o93613952014-07-03 23:44:13 -0400688LTLIBC
689WINDRES
690WOE32
691WOE32DLL
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100692HAVE_WPRINTF
Theodore Ts'o93613952014-07-03 23:44:13 -0400693HAVE_NEWLOCALE
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100694HAVE_SNPRINTF
695HAVE_ASPRINTF
696HAVE_POSIX_PRINTF
Theodore Ts'o93613952014-07-03 23:44:13 -0400697INTL_DEFAULT_VERBOSITY
698INTL_MACOSX_LIBS
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100699GLIBC21
Theodore Ts'o93613952014-07-03 23:44:13 -0400700INTLBISON
701LTLIBICONV
702LIBICONV
703LTLIBMULTITHREAD
704LIBMULTITHREAD
705LTLIBTHREAD
706LIBTHREAD
707LIBPTH_PREFIX
708LTLIBPTH
709LIBPTH
710PRI_MACROS_BROKEN
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100711ALLOCA
Theodore Ts'o93613952014-07-03 23:44:13 -0400712HAVE_VISIBILITY
713CFLAG_VISIBILITY
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100714RANLIB
Theodore Ts'o93613952014-07-03 23:44:13 -0400715GLIBC2
716XGETTEXT_EXTRA_OPTIONS
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100717MSGMERGE
Theodore Ts'o93613952014-07-03 23:44:13 -0400718XGETTEXT_015
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100719XGETTEXT
Theodore Ts'o93613952014-07-03 23:44:13 -0400720GMSGFMT_015
721MSGFMT_015
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100722GMSGFMT
723MSGFMT
Theodore Ts'o93613952014-07-03 23:44:13 -0400724GETTEXT_MACRO_VERSION
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100725USE_NLS
Theodore Ts'o93613952014-07-03 23:44:13 -0400726SED
727MKDIR_P
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100728INSTALL_DATA
729INSTALL_SCRIPT
730INSTALL_PROGRAM
731SET_MAKE
732VERSION
733PACKAGE
734GETTEXT_PACKAGE
Theodore Ts'o749f0712016-05-29 20:48:54 -0400735TDB_MAN_COMMENT
736TDB_CMT
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100737UUIDD_CMT
738E2INITRD_MAN
739E2INITRD_PROG
740FSCK_MAN
741FSCK_PROG
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -0500742DEFRAG_CMT
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100743RESIZER_CMT
744IMAGER_CMT
745DEBUGFS_CMT
746BLKID_CMT
747DEPPROFILED_LIBBLKID
748PROFILED_LIBBLKID
749DEPSTATIC_LIBBLKID
750STATIC_LIBBLKID
751DEPLIBBLKID
752LIBBLKID
753UUID_CMT
754DEPPROFILED_LIBUUID
755PROFILED_LIBUUID
756DEPSTATIC_LIBUUID
757STATIC_LIBUUID
758DEPLIBUUID
759LIBUUID
Theodore Ts'o93613952014-07-03 23:44:13 -0400760PKG_CONFIG_LIBDIR
761PKG_CONFIG_PATH
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100762PKG_CONFIG
763TEST_IO_CMT
764PRIVATE_LIBS_CMT
765LDFLAG_DYNAMIC
766PROFILED_LIB_EXT
767STATIC_LIB_EXT
768LIB_EXT
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100769PROFILE_CMT
770BSDLIB_CMT
771ELF_CMT
Theodore Ts'oc13351f2009-07-02 00:11:17 -0400772Q
Theodore Ts'oc1986ec2012-06-13 15:29:13 -0400773ES
Theodore Ts'oc13351f2009-07-02 00:11:17 -0400774E
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400775LINK_BUILD_FLAGS
Theodore Ts'o183c73b2012-05-12 23:13:24 -0400776SYMLINK_RELATIVE
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400777LINK_INSTALL_FLAGS
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100778MAINTAINER_CMT
Theodore Ts'o93613952014-07-03 23:44:13 -0400779EGREP
780GREP
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100781CPP
Theodore Ts'o9b3018a2011-08-11 14:56:49 -0400782RDYNAMIC
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500783DLOPEN_LIB
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100784OBJEXT
785EXEEXT
786ac_ct_CC
787CPPFLAGS
788LDFLAGS
789CFLAGS
790CC
791host_os
792host_vendor
793host_cpu
794host
795build_os
796build_vendor
797build_cpu
798build
799E2FSPROGS_PKGVER
800E2FSPROGS_VERSION
801E2FSPROGS_DAY
802E2FSPROGS_MONTH
803E2FSPROGS_YEAR
804target_alias
805host_alias
806build_alias
807LIBS
808ECHO_T
809ECHO_N
810ECHO_C
811DEFS
812mandir
813localedir
814libdir
815psdir
816pdfdir
817dvidir
818htmldir
819infodir
820docdir
821oldincludedir
822includedir
Theodore Ts'o2ab53822016-03-15 01:10:29 -0400823runstatedir
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100824localstatedir
825sharedstatedir
826sysconfdir
827datadir
828datarootdir
829libexecdir
830sbindir
831bindir
832program_transform_name
833prefix
834exec_prefix
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500835PACKAGE_URL
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100836PACKAGE_BUGREPORT
837PACKAGE_STRING
838PACKAGE_VERSION
839PACKAGE_TARNAME
840PACKAGE_NAME
841PATH_SEPARATOR
842SHELL'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400843ac_subst_files='MCONFIG
844MAKEFILE_ELF
845MAKEFILE_BSDLIB
846MAKEFILE_PROFILE
Theodore Ts'oe1052142006-10-21 21:46:47 -0400847MAKEFILE_LIBRARY
Theodore Ts'o488c75a2008-06-07 08:55:21 -0400848ASM_TYPES_HEADER
849PUBLIC_CONFIG_HEADER'
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100850ac_user_opts='
851enable_option_checking
852with_diet_libc
853with_cc
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100854with_ccopts
855with_ldopts
856with_root_prefix
857enable_maintainer_mode
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400858enable_symlink_install
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400859enable_relative_symlinks
Theodore Ts'o183c73b2012-05-12 23:13:24 -0400860enable_symlink_relative_symlinks
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400861enable_symlink_build
Theodore Ts'oc13351f2009-07-02 00:11:17 -0400862enable_verbose_makecmds
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100863enable_elf_shlibs
864enable_bsd_shlibs
865enable_profile
Theodore Ts'ofedfb272014-02-23 00:17:09 -0500866enable_gcov
Theodore Ts'ofd1677e2016-05-21 23:51:19 -0400867enable_hardening
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100868enable_jbd_debug
869enable_blkid_debug
870enable_testio_debug
871enable_libuuid
872enable_libblkid
Theodore Ts'o3df60142013-06-16 16:14:40 -0400873enable_backtrace
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100874enable_debugfs
875enable_imager
876enable_resizer
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -0500877enable_defrag
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100878enable_fsck
879enable_e2initrd_helper
880enable_tls
881enable_uuidd
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000882enable_mmp
Theodore Ts'o749f0712016-05-29 20:48:54 -0400883enable_tdb
Tony Breeds1625bf42012-07-30 14:44:12 -0400884enable_bmap_stats
885enable_bmap_stats_ops
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100886enable_nls
Theodore Ts'o93613952014-07-03 23:44:13 -0400887enable_threads
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100888with_gnu_ld
889enable_rpath
Theodore Ts'o93613952014-07-03 23:44:13 -0400890with_libpth_prefix
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100891with_libiconv_prefix
892with_included_gettext
893with_libintl_prefix
Darrick J. Wong81cbf1e2015-05-13 17:22:40 -0700894enable_fuse2fs
Theodore Ts'o55e00a22011-09-18 23:53:23 -0400895with_multiarch
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100896'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400897 ac_precious_vars='build_alias
898host_alias
899target_alias
900CC
901CFLAGS
902LDFLAGS
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400903LIBS
Theodore Ts'oe1052142006-10-21 21:46:47 -0400904CPPFLAGS
Theodore Ts'o14b596d2009-04-22 09:18:30 -0400905CPP
Theodore Ts'o93613952014-07-03 23:44:13 -0400906PKG_CONFIG
907PKG_CONFIG_PATH
908PKG_CONFIG_LIBDIR'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400909
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000910
911# Initialize some variables set by options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500912ac_init_help=
913ac_init_version=false
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100914ac_unrecognized_opts=
915ac_unrecognized_sep=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000916# The variables have the same names as the options, with
917# dashes changed to underlines.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500918cache_file=/dev/null
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000919exec_prefix=NONE
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000920no_create=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000921no_recursion=
922prefix=NONE
923program_prefix=NONE
924program_suffix=NONE
925program_transform_name=s,x,x,
926silent=
927site=
928srcdir=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000929verbose=
930x_includes=NONE
931x_libraries=NONE
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500932
933# Installation directory options.
934# These are left unexpanded so users can "make install exec_prefix=/foo"
935# and all the variables that are supposed to be based on exec_prefix
936# by default will actually change.
937# Use braces instead of parens because sh, perl, etc. also accept them.
Theodore Ts'oe1052142006-10-21 21:46:47 -0400938# (The list follows the same order as the GNU Coding Standards.)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000939bindir='${exec_prefix}/bin'
940sbindir='${exec_prefix}/sbin'
941libexecdir='${exec_prefix}/libexec'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400942datarootdir='${prefix}/share'
943datadir='${datarootdir}'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000944sysconfdir='${prefix}/etc'
945sharedstatedir='${prefix}/com'
946localstatedir='${prefix}/var'
Theodore Ts'o2ab53822016-03-15 01:10:29 -0400947runstatedir='${localstatedir}/run'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000948includedir='${prefix}/include'
949oldincludedir='/usr/include'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400950docdir='${datarootdir}/doc/${PACKAGE}'
951infodir='${datarootdir}/info'
952htmldir='${docdir}'
953dvidir='${docdir}'
954pdfdir='${docdir}'
955psdir='${docdir}'
956libdir='${exec_prefix}/lib'
957localedir='${datarootdir}/locale'
958mandir='${datarootdir}/man'
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000959
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000960ac_prev=
Theodore Ts'oe1052142006-10-21 21:46:47 -0400961ac_dashdash=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000962for ac_option
963do
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000964 # If the previous option needs an argument, assign it.
965 if test -n "$ac_prev"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -0400966 eval $ac_prev=\$ac_option
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000967 ac_prev=
968 continue
969 fi
970
Theodore Ts'oe1052142006-10-21 21:46:47 -0400971 case $ac_option in
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000972 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
973 *=) ac_optarg= ;;
974 *) ac_optarg=yes ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400975 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000976
977 # Accept the important Cygnus configure options, so we can diagnose typos.
978
Theodore Ts'oe1052142006-10-21 21:46:47 -0400979 case $ac_dashdash$ac_option in
980 --)
981 ac_dashdash=yes ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000982
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000983 -bindir | --bindir | --bindi | --bind | --bin | --bi)
984 ac_prev=bindir ;;
985 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500986 bindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000987
988 -build | --build | --buil | --bui | --bu)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500989 ac_prev=build_alias ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000990 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500991 build_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000992
993 -cache-file | --cache-file | --cache-fil | --cache-fi \
994 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
995 ac_prev=cache_file ;;
996 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
997 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500998 cache_file=$ac_optarg ;;
999
1000 --config-cache | -C)
1001 cache_file=config.cache ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001002
Theodore Ts'oe1052142006-10-21 21:46:47 -04001003 -datadir | --datadir | --datadi | --datad)
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001004 ac_prev=datadir ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001005 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001006 datadir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001007
Theodore Ts'oe1052142006-10-21 21:46:47 -04001008 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1009 | --dataroo | --dataro | --datar)
1010 ac_prev=datarootdir ;;
1011 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1012 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1013 datarootdir=$ac_optarg ;;
1014
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001015 -disable-* | --disable-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001016 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001017 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001018 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001019 as_fn_error $? "invalid feature name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001020 ac_useropt_orig=$ac_useropt
1021 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1022 case $ac_user_opts in
1023 *"
1024"enable_$ac_useropt"
1025"*) ;;
1026 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1027 ac_unrecognized_sep=', ';;
1028 esac
1029 eval enable_$ac_useropt=no ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001030
1031 -docdir | --docdir | --docdi | --doc | --do)
1032 ac_prev=docdir ;;
1033 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1034 docdir=$ac_optarg ;;
1035
1036 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1037 ac_prev=dvidir ;;
1038 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1039 dvidir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001040
1041 -enable-* | --enable-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001042 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001043 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001044 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001045 as_fn_error $? "invalid feature name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001046 ac_useropt_orig=$ac_useropt
1047 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1048 case $ac_user_opts in
1049 *"
1050"enable_$ac_useropt"
1051"*) ;;
1052 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1053 ac_unrecognized_sep=', ';;
1054 esac
1055 eval enable_$ac_useropt=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001056
1057 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1058 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1059 | --exec | --exe | --ex)
1060 ac_prev=exec_prefix ;;
1061 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1062 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1063 | --exec=* | --exe=* | --ex=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001064 exec_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001065
1066 -gas | --gas | --ga | --g)
1067 # Obsolete; use --with-gas.
1068 with_gas=yes ;;
1069
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001070 -help | --help | --hel | --he | -h)
1071 ac_init_help=long ;;
1072 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1073 ac_init_help=recursive ;;
1074 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1075 ac_init_help=short ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001076
1077 -host | --host | --hos | --ho)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001078 ac_prev=host_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001079 -host=* | --host=* | --hos=* | --ho=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001080 host_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001081
Theodore Ts'oe1052142006-10-21 21:46:47 -04001082 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1083 ac_prev=htmldir ;;
1084 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1085 | --ht=*)
1086 htmldir=$ac_optarg ;;
1087
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001088 -includedir | --includedir | --includedi | --included | --include \
1089 | --includ | --inclu | --incl | --inc)
1090 ac_prev=includedir ;;
1091 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1092 | --includ=* | --inclu=* | --incl=* | --inc=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001093 includedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001094
1095 -infodir | --infodir | --infodi | --infod | --info | --inf)
1096 ac_prev=infodir ;;
1097 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001098 infodir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001099
1100 -libdir | --libdir | --libdi | --libd)
1101 ac_prev=libdir ;;
1102 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001103 libdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001104
1105 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1106 | --libexe | --libex | --libe)
1107 ac_prev=libexecdir ;;
1108 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1109 | --libexe=* | --libex=* | --libe=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001110 libexecdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001111
Theodore Ts'oe1052142006-10-21 21:46:47 -04001112 -localedir | --localedir | --localedi | --localed | --locale)
1113 ac_prev=localedir ;;
1114 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1115 localedir=$ac_optarg ;;
1116
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001117 -localstatedir | --localstatedir | --localstatedi | --localstated \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001118 | --localstate | --localstat | --localsta | --localst | --locals)
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001119 ac_prev=localstatedir ;;
1120 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001121 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001122 localstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001123
1124 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1125 ac_prev=mandir ;;
1126 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001127 mandir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001128
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001129 -nfp | --nfp | --nf)
1130 # Obsolete; use --without-fp.
1131 with_fp=no ;;
1132
1133 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001134 | --no-cr | --no-c | -n)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001135 no_create=yes ;;
1136
1137 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1138 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1139 no_recursion=yes ;;
1140
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001141 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1142 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1143 | --oldin | --oldi | --old | --ol | --o)
1144 ac_prev=oldincludedir ;;
1145 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1146 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1147 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001148 oldincludedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001149
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001150 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1151 ac_prev=prefix ;;
1152 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001153 prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001154
1155 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1156 | --program-pre | --program-pr | --program-p)
1157 ac_prev=program_prefix ;;
1158 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1159 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001160 program_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001161
1162 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1163 | --program-suf | --program-su | --program-s)
1164 ac_prev=program_suffix ;;
1165 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1166 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001167 program_suffix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001168
1169 -program-transform-name | --program-transform-name \
1170 | --program-transform-nam | --program-transform-na \
1171 | --program-transform-n | --program-transform- \
1172 | --program-transform | --program-transfor \
1173 | --program-transfo | --program-transf \
1174 | --program-trans | --program-tran \
1175 | --progr-tra | --program-tr | --program-t)
1176 ac_prev=program_transform_name ;;
1177 -program-transform-name=* | --program-transform-name=* \
1178 | --program-transform-nam=* | --program-transform-na=* \
1179 | --program-transform-n=* | --program-transform-=* \
1180 | --program-transform=* | --program-transfor=* \
1181 | --program-transfo=* | --program-transf=* \
1182 | --program-trans=* | --program-tran=* \
1183 | --progr-tra=* | --program-tr=* | --program-t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001184 program_transform_name=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001185
Theodore Ts'oe1052142006-10-21 21:46:47 -04001186 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1187 ac_prev=pdfdir ;;
1188 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1189 pdfdir=$ac_optarg ;;
1190
1191 -psdir | --psdir | --psdi | --psd | --ps)
1192 ac_prev=psdir ;;
1193 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1194 psdir=$ac_optarg ;;
1195
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001196 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1197 | -silent | --silent | --silen | --sile | --sil)
1198 silent=yes ;;
1199
Theodore Ts'o2ab53822016-03-15 01:10:29 -04001200 -runstatedir | --runstatedir | --runstatedi | --runstated \
1201 | --runstate | --runstat | --runsta | --runst | --runs \
1202 | --run | --ru | --r)
1203 ac_prev=runstatedir ;;
1204 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1205 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1206 | --run=* | --ru=* | --r=*)
1207 runstatedir=$ac_optarg ;;
1208
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001209 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1210 ac_prev=sbindir ;;
1211 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1212 | --sbi=* | --sb=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001213 sbindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001214
1215 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1216 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1217 | --sharedst | --shareds | --shared | --share | --shar \
1218 | --sha | --sh)
1219 ac_prev=sharedstatedir ;;
1220 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1221 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1222 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1223 | --sha=* | --sh=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001224 sharedstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001225
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001226 -site | --site | --sit)
1227 ac_prev=site ;;
1228 -site=* | --site=* | --sit=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001229 site=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001230
1231 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1232 ac_prev=srcdir ;;
1233 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001234 srcdir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001235
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001236 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1237 | --syscon | --sysco | --sysc | --sys | --sy)
1238 ac_prev=sysconfdir ;;
1239 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1240 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001241 sysconfdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001242
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001243 -target | --target | --targe | --targ | --tar | --ta | --t)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001244 ac_prev=target_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001245 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001246 target_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001247
1248 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1249 verbose=yes ;;
1250
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001251 -version | --version | --versio | --versi | --vers | -V)
1252 ac_init_version=: ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001253
1254 -with-* | --with-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001255 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001256 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001257 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001258 as_fn_error $? "invalid package name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001259 ac_useropt_orig=$ac_useropt
1260 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1261 case $ac_user_opts in
1262 *"
1263"with_$ac_useropt"
1264"*) ;;
1265 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1266 ac_unrecognized_sep=', ';;
1267 esac
1268 eval with_$ac_useropt=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001269
1270 -without-* | --without-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001271 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001272 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001273 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001274 as_fn_error $? "invalid package name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001275 ac_useropt_orig=$ac_useropt
1276 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1277 case $ac_user_opts in
1278 *"
1279"with_$ac_useropt"
1280"*) ;;
1281 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1282 ac_unrecognized_sep=', ';;
1283 esac
1284 eval with_$ac_useropt=no ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001285
1286 --x)
1287 # Obsolete; use --with-x.
1288 with_x=yes ;;
1289
1290 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1291 | --x-incl | --x-inc | --x-in | --x-i)
1292 ac_prev=x_includes ;;
1293 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1294 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001295 x_includes=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001296
1297 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1298 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1299 ac_prev=x_libraries ;;
1300 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1301 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001302 x_libraries=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001303
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001304 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1305Try \`$0 --help' for more information"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001306 ;;
1307
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001308 *=*)
1309 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1310 # Reject names that are not valid shell variable names.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001311 case $ac_envvar in #(
1312 '' | [0-9]* | *[!_$as_cr_alnum]* )
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001313 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001314 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001315 eval $ac_envvar=\$ac_optarg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001316 export $ac_envvar ;;
1317
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001318 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001319 # FIXME: should be removed in autoconf 3.0.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001320 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001321 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001322 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001323 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001324 ;;
1325
1326 esac
1327done
1328
1329if test -n "$ac_prev"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001330 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001331 as_fn_error $? "missing argument to $ac_option"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001332fi
1333
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001334if test -n "$ac_unrecognized_opts"; then
1335 case $enable_option_checking in
1336 no) ;;
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001337 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001338 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1339 esac
1340fi
1341
1342# Check all directory arguments for consistency.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001343for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1344 datadir sysconfdir sharedstatedir localstatedir includedir \
1345 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
Theodore Ts'o2ab53822016-03-15 01:10:29 -04001346 libdir localedir mandir runstatedir
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001347do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001348 eval ac_val=\$$ac_var
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001349 # Remove trailing slashes.
1350 case $ac_val in
1351 */ )
1352 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1353 eval $ac_var=\$ac_val;;
1354 esac
1355 # Be sure to have absolute directory names.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001356 case $ac_val in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001357 [\\/$]* | ?:[\\/]* ) continue;;
1358 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001359 esac
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001360 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001361done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001362
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001363# There might be people who depend on the old broken behavior: `$host'
1364# used to hold the argument of --host etc.
1365# FIXME: To remove some day.
1366build=$build_alias
1367host=$host_alias
1368target=$target_alias
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001369
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001370# FIXME: To remove some day.
1371if test "x$host_alias" != x; then
1372 if test "x$build_alias" = x; then
1373 cross_compiling=maybe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001374 elif test "x$build_alias" != "x$host_alias"; then
1375 cross_compiling=yes
1376 fi
1377fi
1378
1379ac_tool_prefix=
1380test -n "$host_alias" && ac_tool_prefix=$host_alias-
1381
1382test "$silent" = yes && exec 6>/dev/null
1383
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001384
Theodore Ts'oe1052142006-10-21 21:46:47 -04001385ac_pwd=`pwd` && test -n "$ac_pwd" &&
1386ac_ls_di=`ls -di .` &&
1387ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001388 as_fn_error $? "working directory cannot be determined"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001389test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001390 as_fn_error $? "pwd does not report name of working directory"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001391
1392
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001393# Find the source files, if location was not specified.
1394if test -z "$srcdir"; then
1395 ac_srcdir_defaulted=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04001396 # Try the directory containing this script, then the parent directory.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001397 ac_confdir=`$as_dirname -- "$as_myself" ||
1398$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1399 X"$as_myself" : 'X\(//\)[^/]' \| \
1400 X"$as_myself" : 'X\(//\)$' \| \
1401 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1402$as_echo X"$as_myself" |
Theodore Ts'oe1052142006-10-21 21:46:47 -04001403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1404 s//\1/
1405 q
1406 }
1407 /^X\(\/\/\)[^/].*/{
1408 s//\1/
1409 q
1410 }
1411 /^X\(\/\/\)$/{
1412 s//\1/
1413 q
1414 }
1415 /^X\(\/\).*/{
1416 s//\1/
1417 q
1418 }
1419 s/.*/./; q'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001420 srcdir=$ac_confdir
Theodore Ts'oe1052142006-10-21 21:46:47 -04001421 if test ! -r "$srcdir/$ac_unique_file"; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001422 srcdir=..
1423 fi
1424else
1425 ac_srcdir_defaulted=no
1426fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001427if test ! -r "$srcdir/$ac_unique_file"; then
1428 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001429 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001430fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001431ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1432ac_abs_confdir=`(
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001433 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001434 pwd)`
1435# When building in place, set srcdir=.
1436if test "$ac_abs_confdir" = "$ac_pwd"; then
1437 srcdir=.
1438fi
1439# Remove unnecessary trailing slashes from srcdir.
1440# Double slashes in file names in object file debugging info
1441# mess up M-x gdb in Emacs.
1442case $srcdir in
1443*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1444esac
1445for ac_var in $ac_precious_vars; do
1446 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1447 eval ac_env_${ac_var}_value=\$${ac_var}
1448 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1449 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1450done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001451
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001452#
1453# Report the --help message.
1454#
1455if test "$ac_init_help" = "long"; then
1456 # Omit some internal or obsolete options to make the list less imposing.
1457 # This message is too long to be a string in the A/UX 3.1 sh.
1458 cat <<_ACEOF
1459\`configure' configures this package to adapt to many kinds of systems.
1460
1461Usage: $0 [OPTION]... [VAR=VALUE]...
1462
1463To assign environment variables (e.g., CC, CFLAGS...), specify them as
1464VAR=VALUE. See below for descriptions of some of the useful variables.
1465
1466Defaults for the options are specified in brackets.
1467
1468Configuration:
1469 -h, --help display this help and exit
1470 --help=short display options specific to this package
1471 --help=recursive display the short help of all the included packages
1472 -V, --version display version information and exit
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001473 -q, --quiet, --silent do not print \`checking ...' messages
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001474 --cache-file=FILE cache test results in FILE [disabled]
1475 -C, --config-cache alias for \`--cache-file=config.cache'
1476 -n, --no-create do not create output files
1477 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1478
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001479Installation directories:
1480 --prefix=PREFIX install architecture-independent files in PREFIX
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001481 [$ac_default_prefix]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001482 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001483 [PREFIX]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001484
1485By default, \`make install' will install all the files in
1486\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1487an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1488for instance \`--prefix=\$HOME'.
1489
1490For better control, use the options below.
1491
1492Fine tuning of the installation directories:
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001493 --bindir=DIR user executables [EPREFIX/bin]
1494 --sbindir=DIR system admin executables [EPREFIX/sbin]
1495 --libexecdir=DIR program executables [EPREFIX/libexec]
1496 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1497 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1498 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
Theodore Ts'o2ab53822016-03-15 01:10:29 -04001499 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001500 --libdir=DIR object code libraries [EPREFIX/lib]
1501 --includedir=DIR C header files [PREFIX/include]
1502 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1503 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1504 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1505 --infodir=DIR info documentation [DATAROOTDIR/info]
1506 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1507 --mandir=DIR man documentation [DATAROOTDIR/man]
1508 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1509 --htmldir=DIR html documentation [DOCDIR]
1510 --dvidir=DIR dvi documentation [DOCDIR]
1511 --pdfdir=DIR pdf documentation [DOCDIR]
1512 --psdir=DIR ps documentation [DOCDIR]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001513_ACEOF
1514
1515 cat <<\_ACEOF
1516
1517System types:
1518 --build=BUILD configure for building on BUILD [guessed]
1519 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1520_ACEOF
1521fi
1522
1523if test -n "$ac_init_help"; then
1524
1525 cat <<\_ACEOF
1526
1527Optional Features:
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001528 --disable-option-checking ignore unrecognized --enable/--with options
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001529 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1530 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Theodore Ts'o98919bd2005-02-04 10:43:58 -05001531 --enable-maintainer-mode enable makefile rules useful for maintainers
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04001532 --enable-symlink-install use symlinks when installing instead of hard links
Theodore Ts'o183c73b2012-05-12 23:13:24 -04001533 --enable-relative-symlinks use relative symlinks when installing
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001534
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04001535 --enable-symlink-build use symlinks while building instead of hard links
1536 --enable-verbose-makecmds enable verbose make command output
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001537 --enable-elf-shlibs select ELF shared libraries
1538 --enable-bsd-shlibs select BSD shared libraries
1539 --enable-profile build profiling libraries
Theodore Ts'ofedfb272014-02-23 00:17:09 -05001540 --enable-gcov build for coverage testing using gcov
Theodore Ts'ofd1677e2016-05-21 23:51:19 -04001541 --enable-hardening build for coverage testing using gcov
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001542 --enable-jbd-debug enable journal debugging
1543 --enable-blkid-debug enable blkid debugging
Theodore Ts'oaf773652008-09-01 11:27:27 -04001544 --disable-testio-debug disable the use of the test I/O manager for debugging
Theodore Ts'of5dffb82015-06-20 14:20:14 -04001545 --enable-libuuid build and use private uuid library
1546 --enable-libblkid build and use private blkid library
Theodore Ts'o3df60142013-06-16 16:14:40 -04001547 --disable-backtrace disable use backtrace
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001548 --disable-debugfs disable support of debugfs program
1549 --disable-imager disable support of e2image program
1550 --disable-resizer disable support of e2resize program
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05001551 --disable-defrag disable support of e4defrag program
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001552 --enable-fsck build fsck wrapper program
1553 --enable-e2initrd-helper build e2initrd-helper program
Theodore Ts'o32493942007-12-31 10:45:01 -05001554 --disable-tls disable use of thread local support
Theodore Ts'o5610f992007-12-31 11:16:56 -05001555 --disable-uuidd disable building the uuid daemon
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001556 --disable-mmp disable support mmp, Multi Mount Protection
Theodore Ts'o749f0712016-05-29 20:48:54 -04001557 --disable-tdb disable tdb support
Tony Breeds1625bf42012-07-30 14:44:12 -04001558 --disable-bmap-stats disable collection of bitmap stats.
1559 --enable-bmap-stats-ops enable collection of additional bitmap stats
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001560 --disable-nls do not use Native Language Support
Theodore Ts'o93613952014-07-03 23:44:13 -04001561 --enable-threads={posix|solaris|pth|windows}
1562 specify multithreading API
1563 --disable-threads build without multithread safety
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001564 --disable-rpath do not hardcode runtime library paths
Theodore Ts'of5dffb82015-06-20 14:20:14 -04001565 --disable-fuse2fs do not build fuse2fs
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001566
1567Optional Packages:
1568 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1569 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Theodore Ts'o32493942007-12-31 10:45:01 -05001570 --with-diet-libc use diet libc
Theodore Ts'o0b5b9f92009-09-06 21:28:47 -04001571 --with-cc no longer supported, use CC= instead
1572 --with-ccopts no longer supported, use CFLAGS= instead
1573 --with-ldopts no longer supported, use LDFLAGS= instead
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001574 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
Theodore Ts'o93613952014-07-03 23:44:13 -04001575 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1576 --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
1577 --without-libpth-prefix don't search for libpth in includedir and libdir
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001578 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1579 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1580 --with-included-gettext use the GNU gettext library included here
1581 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1582 --without-libintl-prefix don't search for libintl in includedir and libdir
Theodore Ts'o55e00a22011-09-18 23:53:23 -04001583 --with-multiarch=ARCH specify the multiarch triplet
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001584
1585Some influential environment variables:
1586 CC C compiler command
1587 CFLAGS C compiler flags
1588 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1589 nonstandard directory <lib dir>
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001590 LIBS libraries to pass to the linker, e.g. -l<library>
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001591 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
Theodore Ts'oe1052142006-10-21 21:46:47 -04001592 you have headers in a nonstandard directory <include dir>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001593 CPP C preprocessor
Theodore Ts'o14b596d2009-04-22 09:18:30 -04001594 PKG_CONFIG path to pkg-config utility
Theodore Ts'o93613952014-07-03 23:44:13 -04001595 PKG_CONFIG_PATH
1596 directories to add to pkg-config's search path
1597 PKG_CONFIG_LIBDIR
1598 path overriding pkg-config's built-in search path
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001599
1600Use these variables to override the choices made by `configure' or to help
1601it to find libraries and programs with nonstandard names/locations.
1602
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001603Report bugs to the package provider.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001604_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001605ac_status=$?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001606fi
1607
1608if test "$ac_init_help" = "recursive"; then
1609 # If there are subdirs, report their specific --help.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001610 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001611 test -d "$ac_dir" ||
1612 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1613 continue
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001614 ac_builddir=.
1615
Theodore Ts'oe1052142006-10-21 21:46:47 -04001616case "$ac_dir" in
1617.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1618*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001619 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001620 # A ".." for each directory in $ac_dir_suffix.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001621 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001622 case $ac_top_builddir_sub in
1623 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1624 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1625 esac ;;
1626esac
1627ac_abs_top_builddir=$ac_pwd
1628ac_abs_builddir=$ac_pwd$ac_dir_suffix
1629# for backward compatibility:
1630ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001631
1632case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001633 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001634 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001635 ac_top_srcdir=$ac_top_builddir_sub
1636 ac_abs_top_srcdir=$ac_pwd ;;
1637 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001638 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001639 ac_top_srcdir=$srcdir
1640 ac_abs_top_srcdir=$srcdir ;;
1641 *) # Relative name.
1642 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1643 ac_top_srcdir=$ac_top_build_prefix$srcdir
1644 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001645esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001646ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001647
Theodore Ts'oe1052142006-10-21 21:46:47 -04001648 cd "$ac_dir" || { ac_status=$?; continue; }
1649 # Check for guested configure.
1650 if test -f "$ac_srcdir/configure.gnu"; then
1651 echo &&
1652 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1653 elif test -f "$ac_srcdir/configure"; then
1654 echo &&
1655 $SHELL "$ac_srcdir/configure" --help=recursive
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001656 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001657 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Theodore Ts'oe1052142006-10-21 21:46:47 -04001658 fi || ac_status=$?
1659 cd "$ac_pwd" || { ac_status=$?; break; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001660 done
1661fi
1662
Theodore Ts'oe1052142006-10-21 21:46:47 -04001663test -n "$ac_init_help" && exit $ac_status
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001664if $ac_init_version; then
1665 cat <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001666configure
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001667generated by GNU Autoconf 2.69
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001668
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001669Copyright (C) 2012 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001670This configure script is free software; the Free Software Foundation
1671gives unlimited permission to copy, distribute and modify it.
1672_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001673 exit
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001674fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001675
1676## ------------------------ ##
1677## Autoconf initialization. ##
1678## ------------------------ ##
1679
1680# ac_fn_c_try_compile LINENO
1681# --------------------------
1682# Try to compile conftest.$ac_ext, and return whether this succeeded.
1683ac_fn_c_try_compile ()
1684{
1685 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1686 rm -f conftest.$ac_objext
1687 if { { ac_try="$ac_compile"
1688case "(($ac_try" in
1689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1690 *) ac_try_echo=$ac_try;;
1691esac
1692eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1693$as_echo "$ac_try_echo"; } >&5
1694 (eval "$ac_compile") 2>conftest.err
1695 ac_status=$?
1696 if test -s conftest.err; then
1697 grep -v '^ *+' conftest.err >conftest.er1
1698 cat conftest.er1 >&5
1699 mv -f conftest.er1 conftest.err
1700 fi
1701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1702 test $ac_status = 0; } && {
1703 test -z "$ac_c_werror_flag" ||
1704 test ! -s conftest.err
1705 } && test -s conftest.$ac_objext; then :
1706 ac_retval=0
1707else
1708 $as_echo "$as_me: failed program was:" >&5
1709sed 's/^/| /' conftest.$ac_ext >&5
1710
1711 ac_retval=1
1712fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001713 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001714 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001715
1716} # ac_fn_c_try_compile
1717
1718# ac_fn_c_try_link LINENO
1719# -----------------------
1720# Try to link conftest.$ac_ext, and return whether this succeeded.
1721ac_fn_c_try_link ()
1722{
1723 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1724 rm -f conftest.$ac_objext conftest$ac_exeext
1725 if { { ac_try="$ac_link"
1726case "(($ac_try" in
1727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1728 *) ac_try_echo=$ac_try;;
1729esac
1730eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1731$as_echo "$ac_try_echo"; } >&5
1732 (eval "$ac_link") 2>conftest.err
1733 ac_status=$?
1734 if test -s conftest.err; then
1735 grep -v '^ *+' conftest.err >conftest.er1
1736 cat conftest.er1 >&5
1737 mv -f conftest.er1 conftest.err
1738 fi
1739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1740 test $ac_status = 0; } && {
1741 test -z "$ac_c_werror_flag" ||
1742 test ! -s conftest.err
1743 } && test -s conftest$ac_exeext && {
1744 test "$cross_compiling" = yes ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001745 test -x conftest$ac_exeext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001746 }; then :
1747 ac_retval=0
1748else
1749 $as_echo "$as_me: failed program was:" >&5
1750sed 's/^/| /' conftest.$ac_ext >&5
1751
1752 ac_retval=1
1753fi
1754 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1755 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1756 # interfere with the next link command; also delete a directory that is
1757 # left behind by Apple's compiler. We do this before executing the actions.
1758 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001759 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001760 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001761
1762} # ac_fn_c_try_link
1763
1764# ac_fn_c_try_cpp LINENO
1765# ----------------------
1766# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1767ac_fn_c_try_cpp ()
1768{
1769 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1770 if { { ac_try="$ac_cpp conftest.$ac_ext"
1771case "(($ac_try" in
1772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1773 *) ac_try_echo=$ac_try;;
1774esac
1775eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1776$as_echo "$ac_try_echo"; } >&5
1777 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1778 ac_status=$?
1779 if test -s conftest.err; then
1780 grep -v '^ *+' conftest.err >conftest.er1
1781 cat conftest.er1 >&5
1782 mv -f conftest.er1 conftest.err
1783 fi
1784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001785 test $ac_status = 0; } > conftest.i && {
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001786 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1787 test ! -s conftest.err
1788 }; then :
1789 ac_retval=0
1790else
1791 $as_echo "$as_me: failed program was:" >&5
1792sed 's/^/| /' conftest.$ac_ext >&5
1793
1794 ac_retval=1
1795fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001796 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001797 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001798
1799} # ac_fn_c_try_cpp
1800
1801# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1802# -------------------------------------------------------
1803# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1804# the include files in INCLUDES and setting the cache variable VAR
1805# accordingly.
1806ac_fn_c_check_header_mongrel ()
1807{
1808 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001809 if eval \${$3+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1811$as_echo_n "checking for $2... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001812if eval \${$3+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001813 $as_echo_n "(cached) " >&6
1814fi
1815eval ac_res=\$$3
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1817$as_echo "$ac_res" >&6; }
1818else
1819 # Is the header compilable?
1820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1821$as_echo_n "checking $2 usability... " >&6; }
1822cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1823/* end confdefs.h. */
1824$4
1825#include <$2>
1826_ACEOF
1827if ac_fn_c_try_compile "$LINENO"; then :
1828 ac_header_compiler=yes
1829else
1830 ac_header_compiler=no
1831fi
1832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1834$as_echo "$ac_header_compiler" >&6; }
1835
1836# Is the header present?
1837{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1838$as_echo_n "checking $2 presence... " >&6; }
1839cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1840/* end confdefs.h. */
1841#include <$2>
1842_ACEOF
1843if ac_fn_c_try_cpp "$LINENO"; then :
1844 ac_header_preproc=yes
1845else
1846 ac_header_preproc=no
1847fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001848rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1850$as_echo "$ac_header_preproc" >&6; }
1851
1852# So? What about this header?
1853case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1854 yes:no: )
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1856$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1857 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1858$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1859 ;;
1860 no:yes:* )
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1862$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1864$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1866$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1868$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1870$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1871 ;;
1872esac
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1874$as_echo_n "checking for $2... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001875if eval \${$3+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001876 $as_echo_n "(cached) " >&6
1877else
1878 eval "$3=\$ac_header_compiler"
1879fi
1880eval ac_res=\$$3
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1882$as_echo "$ac_res" >&6; }
1883fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001884 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001885
1886} # ac_fn_c_check_header_mongrel
1887
Theodore Ts'o93613952014-07-03 23:44:13 -04001888# ac_fn_c_try_run LINENO
1889# ----------------------
1890# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1891# that executables *can* be run.
1892ac_fn_c_try_run ()
1893{
1894 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1895 if { { ac_try="$ac_link"
1896case "(($ac_try" in
1897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1898 *) ac_try_echo=$ac_try;;
1899esac
1900eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1901$as_echo "$ac_try_echo"; } >&5
1902 (eval "$ac_link") 2>&5
1903 ac_status=$?
1904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1905 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1906 { { case "(($ac_try" in
1907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1908 *) ac_try_echo=$ac_try;;
1909esac
1910eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1911$as_echo "$ac_try_echo"; } >&5
1912 (eval "$ac_try") 2>&5
1913 ac_status=$?
1914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1915 test $ac_status = 0; }; }; then :
1916 ac_retval=0
1917else
1918 $as_echo "$as_me: program exited with status $ac_status" >&5
1919 $as_echo "$as_me: failed program was:" >&5
1920sed 's/^/| /' conftest.$ac_ext >&5
1921
1922 ac_retval=$ac_status
1923fi
1924 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1925 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1926 as_fn_set_status $ac_retval
1927
1928} # ac_fn_c_try_run
1929
1930# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1931# -------------------------------------------------------
1932# Tests whether HEADER exists and can be compiled using the include files in
1933# INCLUDES, setting the cache variable VAR accordingly.
1934ac_fn_c_check_header_compile ()
1935{
1936 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1938$as_echo_n "checking for $2... " >&6; }
1939if eval \${$3+:} false; then :
1940 $as_echo_n "(cached) " >&6
1941else
1942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1943/* end confdefs.h. */
1944$4
1945#include <$2>
1946_ACEOF
1947if ac_fn_c_try_compile "$LINENO"; then :
1948 eval "$3=yes"
1949else
1950 eval "$3=no"
1951fi
1952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1953fi
1954eval ac_res=\$$3
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1956$as_echo "$ac_res" >&6; }
1957 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1958
1959} # ac_fn_c_check_header_compile
1960
1961# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1962# -------------------------------------------
1963# Tests whether TYPE exists after having included INCLUDES, setting cache
1964# variable VAR accordingly.
1965ac_fn_c_check_type ()
1966{
1967 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1969$as_echo_n "checking for $2... " >&6; }
1970if eval \${$3+:} false; then :
1971 $as_echo_n "(cached) " >&6
1972else
1973 eval "$3=no"
1974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1975/* end confdefs.h. */
1976$4
1977int
1978main ()
1979{
1980if (sizeof ($2))
1981 return 0;
1982 ;
1983 return 0;
1984}
1985_ACEOF
1986if ac_fn_c_try_compile "$LINENO"; then :
1987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988/* end confdefs.h. */
1989$4
1990int
1991main ()
1992{
1993if (sizeof (($2)))
1994 return 0;
1995 ;
1996 return 0;
1997}
1998_ACEOF
1999if ac_fn_c_try_compile "$LINENO"; then :
2000
2001else
2002 eval "$3=yes"
2003fi
2004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2005fi
2006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2007fi
2008eval ac_res=\$$3
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2010$as_echo "$ac_res" >&6; }
2011 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2012
2013} # ac_fn_c_check_type
2014
2015# ac_fn_c_check_func LINENO FUNC VAR
2016# ----------------------------------
2017# Tests whether FUNC exists, setting the cache variable VAR accordingly
2018ac_fn_c_check_func ()
2019{
2020 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2022$as_echo_n "checking for $2... " >&6; }
2023if eval \${$3+:} false; then :
2024 $as_echo_n "(cached) " >&6
2025else
2026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2027/* end confdefs.h. */
2028/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2029 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2030#define $2 innocuous_$2
2031
2032/* System header to define __stub macros and hopefully few prototypes,
2033 which can conflict with char $2 (); below.
2034 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2035 <limits.h> exists even on freestanding compilers. */
2036
2037#ifdef __STDC__
2038# include <limits.h>
2039#else
2040# include <assert.h>
2041#endif
2042
2043#undef $2
2044
2045/* Override any GCC internal prototype to avoid an error.
2046 Use char because int might match the return type of a GCC
2047 builtin and then its argument prototype would still apply. */
2048#ifdef __cplusplus
2049extern "C"
2050#endif
2051char $2 ();
2052/* The GNU C library defines this for functions which it implements
2053 to always fail with ENOSYS. Some functions are actually named
2054 something starting with __ and the normal name is an alias. */
2055#if defined __stub_$2 || defined __stub___$2
2056choke me
2057#endif
2058
2059int
2060main ()
2061{
2062return $2 ();
2063 ;
2064 return 0;
2065}
2066_ACEOF
2067if ac_fn_c_try_link "$LINENO"; then :
2068 eval "$3=yes"
2069else
2070 eval "$3=no"
2071fi
2072rm -f core conftest.err conftest.$ac_objext \
2073 conftest$ac_exeext conftest.$ac_ext
2074fi
2075eval ac_res=\$$3
2076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2077$as_echo "$ac_res" >&6; }
2078 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2079
2080} # ac_fn_c_check_func
2081
2082# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2083# ---------------------------------------------
2084# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2085# accordingly.
2086ac_fn_c_check_decl ()
2087{
2088 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2089 as_decl_name=`echo $2|sed 's/ *(.*//'`
2090 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2092$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2093if eval \${$3+:} false; then :
2094 $as_echo_n "(cached) " >&6
2095else
2096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2097/* end confdefs.h. */
2098$4
2099int
2100main ()
2101{
2102#ifndef $as_decl_name
2103#ifdef __cplusplus
2104 (void) $as_decl_use;
2105#else
2106 (void) $as_decl_name;
2107#endif
2108#endif
2109
2110 ;
2111 return 0;
2112}
2113_ACEOF
2114if ac_fn_c_try_compile "$LINENO"; then :
2115 eval "$3=yes"
2116else
2117 eval "$3=no"
2118fi
2119rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2120fi
2121eval ac_res=\$$3
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2123$as_echo "$ac_res" >&6; }
2124 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2125
2126} # ac_fn_c_check_decl
2127
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002128# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2129# --------------------------------------------
2130# Tries to find the compile-time value of EXPR in a program that includes
2131# INCLUDES, setting VAR accordingly. Returns whether the value could be
2132# computed
2133ac_fn_c_compute_int ()
2134{
2135 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2136 if test "$cross_compiling" = yes; then
2137 # Depending upon the size, compute the lo and hi bounds.
2138cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2139/* end confdefs.h. */
2140$4
2141int
2142main ()
2143{
2144static int test_array [1 - 2 * !(($2) >= 0)];
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002145test_array [0] = 0;
2146return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002147
2148 ;
2149 return 0;
2150}
2151_ACEOF
2152if ac_fn_c_try_compile "$LINENO"; then :
2153 ac_lo=0 ac_mid=0
2154 while :; do
2155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2156/* end confdefs.h. */
2157$4
2158int
2159main ()
2160{
2161static int test_array [1 - 2 * !(($2) <= $ac_mid)];
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002162test_array [0] = 0;
2163return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002164
2165 ;
2166 return 0;
2167}
2168_ACEOF
2169if ac_fn_c_try_compile "$LINENO"; then :
2170 ac_hi=$ac_mid; break
2171else
2172 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2173 if test $ac_lo -le $ac_mid; then
2174 ac_lo= ac_hi=
2175 break
2176 fi
2177 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2178fi
2179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2180 done
2181else
2182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2183/* end confdefs.h. */
2184$4
2185int
2186main ()
2187{
2188static int test_array [1 - 2 * !(($2) < 0)];
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002189test_array [0] = 0;
2190return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002191
2192 ;
2193 return 0;
2194}
2195_ACEOF
2196if ac_fn_c_try_compile "$LINENO"; then :
2197 ac_hi=-1 ac_mid=-1
2198 while :; do
2199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2200/* end confdefs.h. */
2201$4
2202int
2203main ()
2204{
2205static int test_array [1 - 2 * !(($2) >= $ac_mid)];
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002206test_array [0] = 0;
2207return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002208
2209 ;
2210 return 0;
2211}
2212_ACEOF
2213if ac_fn_c_try_compile "$LINENO"; then :
2214 ac_lo=$ac_mid; break
2215else
2216 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2217 if test $ac_mid -le $ac_hi; then
2218 ac_lo= ac_hi=
2219 break
2220 fi
2221 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2222fi
2223rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2224 done
2225else
2226 ac_lo= ac_hi=
2227fi
2228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2229fi
2230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2231# Binary search between lo and hi bounds.
2232while test "x$ac_lo" != "x$ac_hi"; do
2233 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2235/* end confdefs.h. */
2236$4
2237int
2238main ()
2239{
2240static int test_array [1 - 2 * !(($2) <= $ac_mid)];
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002241test_array [0] = 0;
2242return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002243
2244 ;
2245 return 0;
2246}
2247_ACEOF
2248if ac_fn_c_try_compile "$LINENO"; then :
2249 ac_hi=$ac_mid
2250else
2251 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2252fi
2253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2254done
2255case $ac_lo in #((
2256?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2257'') ac_retval=1 ;;
2258esac
2259 else
2260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2261/* end confdefs.h. */
2262$4
2263static long int longval () { return $2; }
2264static unsigned long int ulongval () { return $2; }
2265#include <stdio.h>
2266#include <stdlib.h>
2267int
2268main ()
2269{
2270
2271 FILE *f = fopen ("conftest.val", "w");
2272 if (! f)
2273 return 1;
2274 if (($2) < 0)
2275 {
2276 long int i = longval ();
2277 if (i != ($2))
2278 return 1;
2279 fprintf (f, "%ld", i);
2280 }
2281 else
2282 {
2283 unsigned long int i = ulongval ();
2284 if (i != ($2))
2285 return 1;
2286 fprintf (f, "%lu", i);
2287 }
2288 /* Do not output a trailing newline, as this causes \r\n confusion
2289 on some platforms. */
2290 return ferror (f) || fclose (f) != 0;
2291
2292 ;
2293 return 0;
2294}
2295_ACEOF
2296if ac_fn_c_try_run "$LINENO"; then :
2297 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2298else
2299 ac_retval=1
2300fi
2301rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2302 conftest.$ac_objext conftest.beam conftest.$ac_ext
2303rm -f conftest.val
2304
2305 fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002306 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002307 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002308
2309} # ac_fn_c_compute_int
2310
2311# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2312# ----------------------------------------------------
2313# Tries to find if the field MEMBER exists in type AGGR, after including
2314# INCLUDES, setting cache variable VAR accordingly.
2315ac_fn_c_check_member ()
2316{
2317 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2319$as_echo_n "checking for $2.$3... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002320if eval \${$4+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002321 $as_echo_n "(cached) " >&6
2322else
2323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2324/* end confdefs.h. */
2325$5
2326int
2327main ()
2328{
2329static $2 ac_aggr;
2330if (ac_aggr.$3)
2331return 0;
2332 ;
2333 return 0;
2334}
2335_ACEOF
2336if ac_fn_c_try_compile "$LINENO"; then :
2337 eval "$4=yes"
2338else
2339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2340/* end confdefs.h. */
2341$5
2342int
2343main ()
2344{
2345static $2 ac_aggr;
2346if (sizeof ac_aggr.$3)
2347return 0;
2348 ;
2349 return 0;
2350}
2351_ACEOF
2352if ac_fn_c_try_compile "$LINENO"; then :
2353 eval "$4=yes"
2354else
2355 eval "$4=no"
2356fi
2357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2358fi
2359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2360fi
2361eval ac_res=\$$4
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2363$as_echo "$ac_res" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002364 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002365
2366} # ac_fn_c_check_member
Theodore Ts'oe1052142006-10-21 21:46:47 -04002367cat >config.log <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002368This file contains any messages produced by compilers while
2369running configure, to aid debugging if configure makes a mistake.
2370
2371It was created by $as_me, which was
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002372generated by GNU Autoconf 2.69. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002373
2374 $ $0 $@
2375
2376_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04002377exec 5>>config.log
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002378{
2379cat <<_ASUNAME
2380## --------- ##
2381## Platform. ##
2382## --------- ##
2383
2384hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2385uname -m = `(uname -m) 2>/dev/null || echo unknown`
2386uname -r = `(uname -r) 2>/dev/null || echo unknown`
2387uname -s = `(uname -s) 2>/dev/null || echo unknown`
2388uname -v = `(uname -v) 2>/dev/null || echo unknown`
2389
2390/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2391/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2392
2393/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2394/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2395/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Theodore Ts'oe1052142006-10-21 21:46:47 -04002396/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002397/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2398/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2399/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2400
2401_ASUNAME
2402
2403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2404for as_dir in $PATH
2405do
2406 IFS=$as_save_IFS
2407 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002408 $as_echo "PATH: $as_dir"
2409 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002410IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002411
2412} >&5
2413
2414cat >&5 <<_ACEOF
2415
2416
2417## ----------- ##
2418## Core tests. ##
2419## ----------- ##
2420
2421_ACEOF
2422
2423
2424# Keep a trace of the command line.
2425# Strip out --no-create and --no-recursion so they do not pile up.
2426# Strip out --silent because we don't want to record it for future runs.
2427# Also quote any args containing shell meta-characters.
2428# Make two passes to allow for proper duplicate-argument suppression.
2429ac_configure_args=
2430ac_configure_args0=
2431ac_configure_args1=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002432ac_must_keep_next=false
2433for ac_pass in 1 2
2434do
2435 for ac_arg
2436 do
2437 case $ac_arg in
2438 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2439 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2440 | -silent | --silent | --silen | --sile | --sil)
2441 continue ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002442 *\'*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002443 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002444 esac
2445 case $ac_pass in
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002446 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002447 2)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002448 as_fn_append ac_configure_args1 " '$ac_arg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002449 if test $ac_must_keep_next = true; then
2450 ac_must_keep_next=false # Got value, back to normal.
2451 else
2452 case $ac_arg in
2453 *=* | --config-cache | -C | -disable-* | --disable-* \
2454 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2455 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2456 | -with-* | --with-* | -without-* | --without-* | --x)
2457 case "$ac_configure_args0 " in
2458 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2459 esac
2460 ;;
2461 -* ) ac_must_keep_next=true ;;
2462 esac
2463 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002464 as_fn_append ac_configure_args " '$ac_arg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002465 ;;
2466 esac
2467 done
2468done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002469{ ac_configure_args0=; unset ac_configure_args0;}
2470{ ac_configure_args1=; unset ac_configure_args1;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002471
2472# When interrupted or exit'd, cleanup temporary files, and complete
2473# config.log. We remove comments because anyway the quotes in there
2474# would cause problems or look ugly.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002475# WARNING: Use '\'' to represent an apostrophe within the trap.
2476# 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 -05002477trap 'exit_status=$?
2478 # Save into config.log some information that might help in debugging.
2479 {
2480 echo
2481
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002482 $as_echo "## ---------------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002483## Cache variables. ##
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002484## ---------------- ##"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002485 echo
2486 # The following way of writing the cache mishandles newlines in values,
Theodore Ts'oe1052142006-10-21 21:46:47 -04002487(
2488 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2489 eval ac_val=\$$ac_var
2490 case $ac_val in #(
2491 *${as_nl}*)
2492 case $ac_var in #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002493 *_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 +01002494$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002495 esac
2496 case $ac_var in #(
2497 _ | IFS | as_nl) ;; #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002498 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002499 *) { eval $ac_var=; unset $ac_var;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002500 esac ;;
2501 esac
2502 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002503 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -04002504 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2505 *${as_nl}ac_space=\ *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002506 sed -n \
Theodore Ts'oe1052142006-10-21 21:46:47 -04002507 "s/'\''/'\''\\\\'\'''\''/g;
2508 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2509 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002510 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04002511 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002512 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002513 esac |
2514 sort
2515)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002516 echo
2517
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002518 $as_echo "## ----------------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002519## Output variables. ##
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002520## ----------------- ##"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002521 echo
2522 for ac_var in $ac_subst_vars
2523 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04002524 eval ac_val=\$$ac_var
2525 case $ac_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002526 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002527 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002528 $as_echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002529 done | sort
2530 echo
2531
2532 if test -n "$ac_subst_files"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002533 $as_echo "## ------------------- ##
Theodore Ts'oe1052142006-10-21 21:46:47 -04002534## File substitutions. ##
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002535## ------------------- ##"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002536 echo
2537 for ac_var in $ac_subst_files
2538 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04002539 eval ac_val=\$$ac_var
2540 case $ac_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002541 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002542 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002543 $as_echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002544 done | sort
2545 echo
2546 fi
2547
2548 if test -s confdefs.h; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002549 $as_echo "## ----------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002550## confdefs.h. ##
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002551## ----------- ##"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002552 echo
Theodore Ts'oe1052142006-10-21 21:46:47 -04002553 cat confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002554 echo
2555 fi
2556 test "$ac_signal" != 0 &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002557 $as_echo "$as_me: caught signal $ac_signal"
2558 $as_echo "$as_me: exit $exit_status"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002559 } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002560 rm -f core *.core core.conftest.* &&
2561 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002562 exit $exit_status
Theodore Ts'oe1052142006-10-21 21:46:47 -04002563' 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002564for ac_signal in 1 2 13 15; do
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002565 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002566done
2567ac_signal=0
2568
2569# confdefs.h avoids OS command line length limits that DEFS can exceed.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002570rm -f -r conftest* confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002571
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002572$as_echo "/* confdefs.h */" > confdefs.h
2573
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002574# Predefined preprocessor variables.
2575
2576cat >>confdefs.h <<_ACEOF
2577#define PACKAGE_NAME "$PACKAGE_NAME"
2578_ACEOF
2579
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002580cat >>confdefs.h <<_ACEOF
2581#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2582_ACEOF
2583
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002584cat >>confdefs.h <<_ACEOF
2585#define PACKAGE_VERSION "$PACKAGE_VERSION"
2586_ACEOF
2587
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002588cat >>confdefs.h <<_ACEOF
2589#define PACKAGE_STRING "$PACKAGE_STRING"
2590_ACEOF
2591
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002592cat >>confdefs.h <<_ACEOF
2593#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2594_ACEOF
2595
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002596cat >>confdefs.h <<_ACEOF
2597#define PACKAGE_URL "$PACKAGE_URL"
2598_ACEOF
2599
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002600
2601# Let the site file select an alternate cache file if it wants to.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002602# Prefer an explicitly selected file to automatically selected ones.
2603ac_site_file1=NONE
2604ac_site_file2=NONE
Theodore Ts'oe1052142006-10-21 21:46:47 -04002605if test -n "$CONFIG_SITE"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002606 # We do not want a PATH search for config.site.
2607 case $CONFIG_SITE in #((
2608 -*) ac_site_file1=./$CONFIG_SITE;;
2609 */*) ac_site_file1=$CONFIG_SITE;;
2610 *) ac_site_file1=./$CONFIG_SITE;;
2611 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04002612elif test "x$prefix" != xNONE; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002613 ac_site_file1=$prefix/share/config.site
2614 ac_site_file2=$prefix/etc/config.site
Theodore Ts'oe1052142006-10-21 21:46:47 -04002615else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002616 ac_site_file1=$ac_default_prefix/share/config.site
2617 ac_site_file2=$ac_default_prefix/etc/config.site
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002618fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002619for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Theodore Ts'oe1052142006-10-21 21:46:47 -04002620do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002621 test "x$ac_site_file" = xNONE && continue
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002622 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002623 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002624$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002625 sed 's/^/| /' "$ac_site_file" >&5
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002626 . "$ac_site_file" \
2627 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2628$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2629as_fn_error $? "failed to load site script $ac_site_file
2630See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002631 fi
2632done
2633
2634if test -r "$cache_file"; then
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002635 # Some versions of bash will fail to source /dev/null (special files
2636 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2637 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002638 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002639$as_echo "$as_me: loading cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002640 case $cache_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04002641 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2642 *) . "./$cache_file";;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002643 esac
2644 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002645else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002646 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002647$as_echo "$as_me: creating cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002648 >$cache_file
2649fi
2650
Theodore Ts'o93613952014-07-03 23:44:13 -04002651gt_needs="$gt_needs "
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002652as_fn_append ac_header_list " stdlib.h"
2653as_fn_append ac_header_list " unistd.h"
2654as_fn_append ac_header_list " sys/param.h"
Theodore Ts'o93613952014-07-03 23:44:13 -04002655as_fn_append ac_func_list " symlink"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002656# Check that the precious variables saved in the cache have kept the same
2657# value.
2658ac_cache_corrupted=false
Theodore Ts'oe1052142006-10-21 21:46:47 -04002659for ac_var in $ac_precious_vars; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002660 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2661 eval ac_new_set=\$ac_env_${ac_var}_set
Theodore Ts'oe1052142006-10-21 21:46:47 -04002662 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2663 eval ac_new_val=\$ac_env_${ac_var}_value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002664 case $ac_old_set,$ac_new_set in
2665 set,)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002666 { $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 +01002667$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 -05002668 ac_cache_corrupted=: ;;
2669 ,set)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002670 { $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 +01002671$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002672 ac_cache_corrupted=: ;;
2673 ,);;
2674 *)
2675 if test "x$ac_old_val" != "x$ac_new_val"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002676 # differences in whitespace do not lead to failure.
2677 ac_old_val_w=`echo x $ac_old_val`
2678 ac_new_val_w=`echo x $ac_new_val`
2679 if test "$ac_old_val_w" != "$ac_new_val_w"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002680 { $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 +01002681$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2682 ac_cache_corrupted=:
2683 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002684 { $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 +01002685$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2686 eval $ac_var=\$ac_old_val
2687 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002688 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002689$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002690 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002691$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002692 fi;;
2693 esac
2694 # Pass precious variables to config.status.
2695 if test "$ac_new_set" = set; then
2696 case $ac_new_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002697 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002698 *) ac_arg=$ac_var=$ac_new_val ;;
2699 esac
2700 case " $ac_configure_args " in
2701 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002702 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002703 esac
2704 fi
2705done
2706if $ac_cache_corrupted; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002707 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002708$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002709 { $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 +01002710$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002711 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002712fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002713## -------------------- ##
2714## Main body of script. ##
2715## -------------------- ##
Theodore Ts'oe1052142006-10-21 21:46:47 -04002716
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002717ac_ext=c
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002718ac_cpp='$CPP $CPPFLAGS'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002719ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2720ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2721ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002722
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002723
2724
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002725ac_aux_dir=
Theodore Ts'oe1052142006-10-21 21:46:47 -04002726for ac_dir in config "$srcdir"/config; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002727 if test -f "$ac_dir/install-sh"; then
2728 ac_aux_dir=$ac_dir
2729 ac_install_sh="$ac_aux_dir/install-sh -c"
2730 break
2731 elif test -f "$ac_dir/install.sh"; then
2732 ac_aux_dir=$ac_dir
2733 ac_install_sh="$ac_aux_dir/install.sh -c"
2734 break
2735 elif test -f "$ac_dir/shtool"; then
2736 ac_aux_dir=$ac_dir
2737 ac_install_sh="$ac_aux_dir/shtool install -c"
2738 break
2739 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002740done
2741if test -z "$ac_aux_dir"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002742 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 +00002743fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002744
2745# These three variables are undocumented and unsupported,
2746# and are intended to be withdrawn in a future Autoconf release.
2747# They can cause serious problems if a builder's source tree is in a directory
2748# whose full name contains unusual characters.
2749ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2750ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2751ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2752
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00002753
Theodore Ts'od1154eb2011-09-18 17:34:37 -04002754ac_config_headers="$ac_config_headers lib/config.h"
2755
2756
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002757MCONFIG=./MCONFIG
2758
Theodore Ts'o74becf31997-04-26 14:37:06 +00002759BINARY_TYPE=bin
2760E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
2761 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2762DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2763 | tr \" " "`
Theodore Ts'o2ab53822016-03-15 01:10:29 -04002764E2FSPROGS_DAY=$(echo $DATE | awk -F- '{print $1}' | sed -e '/^[1-9]$/s/^/0/')
Theodore Ts'o74becf31997-04-26 14:37:06 +00002765MONTH=`echo $DATE | awk -F- '{print $2}'`
2766YEAR=`echo $DATE | awk -F- '{print $3}'`
2767
Theodore Ts'o14790ed1999-01-12 23:32:52 +00002768if expr $YEAR ">" 1900 > /dev/null ; then
2769 E2FSPROGS_YEAR=$YEAR
2770elif expr $YEAR ">" 90 >/dev/null ; then
Theodore Ts'o74becf31997-04-26 14:37:06 +00002771 E2FSPROGS_YEAR=19$YEAR
2772else
2773 E2FSPROGS_YEAR=20$YEAR
2774fi
2775
2776case $MONTH in
Andreas Dilger927566a2006-11-12 19:41:25 -05002777Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2778Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2779Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2780Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2781May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2782Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2783Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2784Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2785Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2786Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2787Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2788Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002789*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002790$as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
Theodore Ts'o74becf31997-04-26 14:37:06 +00002791esac
2792
Andreas Dilger927566a2006-11-12 19:41:25 -05002793base_ver=`echo $E2FSPROGS_VERSION | \
2794 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
Andreas Dilger927566a2006-11-12 19:41:25 -05002795
2796date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2797
2798case $E2FSPROGS_VERSION in
2799*-WIP|pre-*)
Theodore Ts'o2ab53822016-03-15 01:10:29 -04002800 E2FSPROGS_PKGVER="$base_ver~WIP.$date_spec"
Andreas Dilger927566a2006-11-12 19:41:25 -05002801 ;;
2802*)
2803 E2FSPROGS_PKGVER="$base_ver"
2804 ;;
2805esac
2806
2807unset DATE MONTH YEAR base_ver pre_vers date_spec
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002808{ $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 +01002809$as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002811$as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +00002812
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002813
2814
2815
Andreas Dilger927566a2006-11-12 19:41:25 -05002816
Theodore Ts'o6c59a662014-01-04 20:44:29 -05002817WITH_DIET_LIBC=
2818
2819# Check whether --with-diet-libc was given.
2820if test "${with_diet_libc+set}" = set; then :
2821 withval=$with_diet_libc; CC="diet cc -nostdinc"
2822WITH_DIET_LIBC=yes
2823if test -z "$LIBS"
2824then
2825 LIBS="-lcompat"
2826else
2827 LIBS="$LIBS -lcompat"
2828fi
2829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
2830$as_echo "CC=$CC" >&6; }
2831fi
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002832# Make sure we can run config.sub.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002833$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002834 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002835
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002837$as_echo_n "checking build system type... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002838if ${ac_cv_build+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002839 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002840else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002841 ac_build_alias=$build_alias
2842test "x$ac_build_alias" = x &&
2843 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2844test "x$ac_build_alias" = x &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002845 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002846ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002847 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002848
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002849fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002851$as_echo "$ac_cv_build" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002852case $ac_cv_build in
2853*-*-*) ;;
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002854*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002855esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002856build=$ac_cv_build
Theodore Ts'oe1052142006-10-21 21:46:47 -04002857ac_save_IFS=$IFS; IFS='-'
2858set x $ac_cv_build
2859shift
2860build_cpu=$1
2861build_vendor=$2
2862shift; shift
2863# Remember, the first character of IFS is used to create $*,
2864# except with old shells:
2865build_os=$*
2866IFS=$ac_save_IFS
2867case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002868
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002869
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002871$as_echo_n "checking host system type... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002872if ${ac_cv_host+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002873 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002874else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002875 if test "x$host_alias" = x; then
2876 ac_cv_host=$ac_cv_build
2877else
2878 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002879 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002880fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002881
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002882fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002884$as_echo "$ac_cv_host" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002885case $ac_cv_host in
2886*-*-*) ;;
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002887*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002888esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002889host=$ac_cv_host
Theodore Ts'oe1052142006-10-21 21:46:47 -04002890ac_save_IFS=$IFS; IFS='-'
2891set x $ac_cv_host
2892shift
2893host_cpu=$1
2894host_vendor=$2
2895shift; shift
2896# Remember, the first character of IFS is used to create $*,
2897# except with old shells:
2898host_os=$*
2899IFS=$ac_save_IFS
2900case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002901
2902
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002903DLOPEN_LIB=''
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002904ac_ext=c
2905ac_cpp='$CPP $CPPFLAGS'
2906ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2907ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2908ac_compiler_gnu=$ac_cv_c_compiler_gnu
2909if test -n "$ac_tool_prefix"; then
2910 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2911set dummy ${ac_tool_prefix}gcc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002913$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002914if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002915 $as_echo_n "(cached) " >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002916else
2917 if test -n "$CC"; then
2918 ac_cv_prog_CC="$CC" # Let the user override the test.
2919else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002920as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2921for as_dir in $PATH
2922do
2923 IFS=$as_save_IFS
2924 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002925 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002927 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002929 break 2
2930 fi
2931done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002932 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002933IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002934
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002935fi
2936fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002937CC=$ac_cv_prog_CC
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002938if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002940$as_echo "$CC" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002941else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002943$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002944fi
2945
Theodore Ts'oe1052142006-10-21 21:46:47 -04002946
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002947fi
2948if test -z "$ac_cv_prog_CC"; then
2949 ac_ct_CC=$CC
2950 # Extract the first word of "gcc", so it can be a program name with args.
2951set dummy gcc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002953$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002954if ${ac_cv_prog_ac_ct_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002955 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002956else
2957 if test -n "$ac_ct_CC"; then
2958 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2959else
2960as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2961for as_dir in $PATH
2962do
2963 IFS=$as_save_IFS
2964 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002965 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002967 ac_cv_prog_ac_ct_CC="gcc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002969 break 2
2970 fi
2971done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002972 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002973IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002974
2975fi
2976fi
2977ac_ct_CC=$ac_cv_prog_ac_ct_CC
2978if test -n "$ac_ct_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002980$as_echo "$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002981else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002983$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002984fi
2985
Theodore Ts'oe1052142006-10-21 21:46:47 -04002986 if test "x$ac_ct_CC" = x; then
2987 CC=""
2988 else
2989 case $cross_compiling:$ac_tool_warned in
2990yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002991{ $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 +01002992$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04002993ac_tool_warned=yes ;;
2994esac
2995 CC=$ac_ct_CC
2996 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002997else
2998 CC="$ac_cv_prog_CC"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002999fi
3000
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003001if test -z "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003002 if test -n "$ac_tool_prefix"; then
3003 # 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 -05003004set dummy ${ac_tool_prefix}cc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003006$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003007if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003008 $as_echo_n "(cached) " >&6
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003009else
3010 if test -n "$CC"; then
3011 ac_cv_prog_CC="$CC" # Let the user override the test.
3012else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3014for as_dir in $PATH
3015do
3016 IFS=$as_save_IFS
3017 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003018 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003020 ac_cv_prog_CC="${ac_tool_prefix}cc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003022 break 2
3023 fi
3024done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003025 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003026IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003027
3028fi
3029fi
3030CC=$ac_cv_prog_CC
3031if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003033$as_echo "$CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003034else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003036$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003037fi
3038
Theodore Ts'oe1052142006-10-21 21:46:47 -04003039
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003040 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003041fi
3042if test -z "$CC"; then
3043 # Extract the first word of "cc", so it can be a program name with args.
3044set dummy cc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003046$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003047if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003048 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003049else
3050 if test -n "$CC"; then
3051 ac_cv_prog_CC="$CC" # Let the user override the test.
3052else
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003053 ac_prog_rejected=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3055for as_dir in $PATH
3056do
3057 IFS=$as_save_IFS
3058 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003059 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003061 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3062 ac_prog_rejected=yes
3063 continue
3064 fi
3065 ac_cv_prog_CC="cc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003067 break 2
3068 fi
3069done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003070 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003071IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003072
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003073if test $ac_prog_rejected = yes; then
3074 # We found a bogon in the path, so make sure we never use it.
3075 set dummy $ac_cv_prog_CC
3076 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003077 if test $# != 0; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003078 # We chose a different compiler from the bogus one.
3079 # However, it has the same basename, so the bogon will be chosen
3080 # first if we set CC to just the basename; use the full file name.
3081 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003082 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003083 fi
3084fi
3085fi
3086fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003087CC=$ac_cv_prog_CC
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003088if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003090$as_echo "$CC" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003091else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003093$as_echo "no" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003094fi
3095
Theodore Ts'oe1052142006-10-21 21:46:47 -04003096
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003097fi
3098if test -z "$CC"; then
3099 if test -n "$ac_tool_prefix"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003100 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003101 do
3102 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3103set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003105$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003106if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003107 $as_echo_n "(cached) " >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003108else
3109 if test -n "$CC"; then
3110 ac_cv_prog_CC="$CC" # Let the user override the test.
3111else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3113for as_dir in $PATH
3114do
3115 IFS=$as_save_IFS
3116 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003117 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003119 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003121 break 2
3122 fi
3123done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003124 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003125IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003126
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003127fi
3128fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003129CC=$ac_cv_prog_CC
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003130if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003132$as_echo "$CC" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003133else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003135$as_echo "no" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003136fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003137
Theodore Ts'oe1052142006-10-21 21:46:47 -04003138
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003139 test -n "$CC" && break
3140 done
3141fi
3142if test -z "$CC"; then
3143 ac_ct_CC=$CC
Theodore Ts'oe1052142006-10-21 21:46:47 -04003144 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003145do
3146 # Extract the first word of "$ac_prog", so it can be a program name with args.
3147set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003149$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003150if ${ac_cv_prog_ac_ct_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003151 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003152else
3153 if test -n "$ac_ct_CC"; then
3154 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3155else
3156as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3157for as_dir in $PATH
3158do
3159 IFS=$as_save_IFS
3160 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003161 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003163 ac_cv_prog_ac_ct_CC="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003165 break 2
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003166 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003167done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003168 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003169IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003170
3171fi
3172fi
3173ac_ct_CC=$ac_cv_prog_ac_ct_CC
3174if test -n "$ac_ct_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003176$as_echo "$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003177else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003179$as_echo "no" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003180fi
3181
Theodore Ts'oe1052142006-10-21 21:46:47 -04003182
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003183 test -n "$ac_ct_CC" && break
3184done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003185
Theodore Ts'oe1052142006-10-21 21:46:47 -04003186 if test "x$ac_ct_CC" = x; then
3187 CC=""
3188 else
3189 case $cross_compiling:$ac_tool_warned in
3190yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003191{ $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 +01003192$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04003193ac_tool_warned=yes ;;
3194esac
3195 CC=$ac_ct_CC
3196 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003197fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003198
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003199fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003200
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003201
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003202test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003203$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003204as_fn_error $? "no acceptable C compiler found in \$PATH
3205See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003206
3207# Provide some information about the compiler.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003208$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003209set X $ac_compile
3210ac_compiler=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003211for ac_option in --version -v -V -qversion; do
3212 { { ac_try="$ac_compiler $ac_option >&5"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003213case "(($ac_try" in
3214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3215 *) ac_try_echo=$ac_try;;
3216esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003217eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3218$as_echo "$ac_try_echo"; } >&5
3219 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003220 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003221 if test -s conftest.err; then
3222 sed '10a\
3223... rest of stderr output deleted ...
3224 10q' conftest.err >conftest.er1
3225 cat conftest.er1 >&5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003226 fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003227 rm -f conftest.er1 conftest.err
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3229 test $ac_status = 0; }
3230done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003231
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003232cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003233/* end confdefs.h. */
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003234
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003235int
3236main ()
3237{
3238
3239 ;
3240 return 0;
3241}
3242_ACEOF
3243ac_clean_files_save=$ac_clean_files
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003244ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003245# Try to create an executable without -o first, disregard a.out.
3246# It will help us diagnose broken compilers, and finding out an intuition
3247# of exeext.
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3249$as_echo_n "checking whether the C compiler works... " >&6; }
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003250ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3251
3252# The possible output files:
3253ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3254
Theodore Ts'oe1052142006-10-21 21:46:47 -04003255ac_rmfiles=
3256for ac_file in $ac_files
3257do
3258 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003259 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003260 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3261 esac
3262done
3263rm -f $ac_rmfiles
3264
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003265if { { ac_try="$ac_link_default"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003266case "(($ac_try" in
3267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3268 *) ac_try_echo=$ac_try;;
3269esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003270eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3271$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003272 (eval "$ac_link_default") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003273 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3275 test $ac_status = 0; }; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003276 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3277# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3278# in a Makefile. We should not override ac_cv_exeext if it was cached,
3279# so that the user can short-circuit this test for compilers unknown to
3280# Autoconf.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003281for ac_file in $ac_files ''
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003282do
3283 test -f "$ac_file" || continue
3284 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003285 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003286 ;;
3287 [ab].out )
3288 # We found the default executable, but exeext='' is most
3289 # certainly right.
3290 break;;
3291 *.* )
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003292 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003293 then :; else
3294 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3295 fi
3296 # We set ac_cv_exeext here because the later test for it is not
3297 # safe: cross compilers may not add the suffix if given an `-o'
3298 # argument, so we may need to know it at that point already.
3299 # Even if this section looks crufty: it has the advantage of
3300 # actually working.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003301 break;;
3302 * )
3303 break;;
3304 esac
3305done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003306test "$ac_cv_exeext" = no && ac_cv_exeext=
3307
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003308else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003309 ac_file=''
3310fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003311if test -z "$ac_file"; then :
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3313$as_echo "no" >&6; }
3314$as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003315sed 's/^/| /' conftest.$ac_ext >&5
3316
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003317{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003318$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003319as_fn_error 77 "C compiler cannot create executables
3320See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003321else
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3323$as_echo "yes" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003324fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3326$as_echo_n "checking for C compiler default output file name... " >&6; }
3327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3328$as_echo "$ac_file" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003329ac_exeext=$ac_cv_exeext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003330
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003331rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003332ac_clean_files=$ac_clean_files_save
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003334$as_echo_n "checking for suffix of executables... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003335if { { ac_try="$ac_link"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003336case "(($ac_try" in
3337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3338 *) ac_try_echo=$ac_try;;
3339esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003340eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3341$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003342 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003343 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003344 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3345 test $ac_status = 0; }; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003346 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3347# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3348# work properly (i.e., refer to `conftest.exe'), while it won't with
3349# `rm'.
3350for ac_file in conftest.exe conftest conftest.*; do
3351 test -f "$ac_file" || continue
3352 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003353 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003354 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003355 break;;
3356 * ) break;;
3357 esac
3358done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003359else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003360 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003361$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003362as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3363See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003364fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003365rm -f conftest conftest$ac_cv_exeext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003367$as_echo "$ac_cv_exeext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003368
3369rm -f conftest.$ac_ext
3370EXEEXT=$ac_cv_exeext
3371ac_exeext=$EXEEXT
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003372cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3373/* end confdefs.h. */
3374#include <stdio.h>
3375int
3376main ()
3377{
3378FILE *f = fopen ("conftest.out", "w");
3379 return ferror (f) || fclose (f) != 0;
3380
3381 ;
3382 return 0;
3383}
3384_ACEOF
3385ac_clean_files="$ac_clean_files conftest.out"
3386# Check that the compiler produces executables we can run. If not, either
3387# the compiler is broken, or we cross compile.
3388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3389$as_echo_n "checking whether we are cross compiling... " >&6; }
3390if test "$cross_compiling" != yes; then
3391 { { ac_try="$ac_link"
3392case "(($ac_try" in
3393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3394 *) ac_try_echo=$ac_try;;
3395esac
3396eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3397$as_echo "$ac_try_echo"; } >&5
3398 (eval "$ac_link") 2>&5
3399 ac_status=$?
3400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3401 test $ac_status = 0; }
3402 if { ac_try='./conftest$ac_cv_exeext'
3403 { { case "(($ac_try" in
3404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3405 *) ac_try_echo=$ac_try;;
3406esac
3407eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3408$as_echo "$ac_try_echo"; } >&5
3409 (eval "$ac_try") 2>&5
3410 ac_status=$?
3411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3412 test $ac_status = 0; }; }; then
3413 cross_compiling=no
3414 else
3415 if test "$cross_compiling" = maybe; then
3416 cross_compiling=yes
3417 else
3418 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3419$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003420as_fn_error $? "cannot run C compiled programs.
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003421If you meant to cross compile, use \`--host'.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003422See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003423 fi
3424 fi
3425fi
3426{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3427$as_echo "$cross_compiling" >&6; }
3428
3429rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3430ac_clean_files=$ac_clean_files_save
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003432$as_echo_n "checking for suffix of object files... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003433if ${ac_cv_objext+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003434 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003435else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003437/* end confdefs.h. */
3438
3439int
3440main ()
3441{
3442
3443 ;
3444 return 0;
3445}
3446_ACEOF
3447rm -f conftest.o conftest.obj
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003448if { { ac_try="$ac_compile"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003449case "(($ac_try" in
3450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3451 *) ac_try_echo=$ac_try;;
3452esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003453eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3454$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003455 (eval "$ac_compile") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003456 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3458 test $ac_status = 0; }; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003459 for ac_file in conftest.o conftest.obj conftest.*; do
3460 test -f "$ac_file" || continue;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003461 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003462 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003463 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3464 break;;
3465 esac
3466done
3467else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003468 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003469sed 's/^/| /' conftest.$ac_ext >&5
3470
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003471{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003472$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003473as_fn_error $? "cannot compute suffix of object files: cannot compile
3474See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003475fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003476rm -f conftest.$ac_cv_objext conftest.$ac_ext
3477fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003479$as_echo "$ac_cv_objext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003480OBJEXT=$ac_cv_objext
3481ac_objext=$OBJEXT
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003482{ $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 +01003483$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003484if ${ac_cv_c_compiler_gnu+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003485 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003486else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003488/* end confdefs.h. */
3489
3490int
3491main ()
3492{
3493#ifndef __GNUC__
3494 choke me
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003495#endif
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003496
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003497 ;
3498 return 0;
3499}
3500_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003501if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003502 ac_compiler_gnu=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003503else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003504 ac_compiler_gnu=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003505fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003507ac_cv_c_compiler_gnu=$ac_compiler_gnu
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003508
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003509fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003511$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3512if test $ac_compiler_gnu = yes; then
3513 GCC=yes
3514else
3515 GCC=
3516fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003517ac_test_CFLAGS=${CFLAGS+set}
3518ac_save_CFLAGS=$CFLAGS
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003520$as_echo_n "checking whether $CC accepts -g... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003521if ${ac_cv_prog_cc_g+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003522 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003523else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003524 ac_save_c_werror_flag=$ac_c_werror_flag
3525 ac_c_werror_flag=yes
3526 ac_cv_prog_cc_g=no
3527 CFLAGS="-g"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003529/* end confdefs.h. */
3530
3531int
3532main ()
3533{
3534
3535 ;
3536 return 0;
3537}
3538_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003539if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003540 ac_cv_prog_cc_g=yes
3541else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003542 CFLAGS=""
3543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003544/* end confdefs.h. */
3545
3546int
3547main ()
3548{
3549
3550 ;
3551 return 0;
3552}
3553_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003554if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003555
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003556else
3557 ac_c_werror_flag=$ac_save_c_werror_flag
Theodore Ts'oe1052142006-10-21 21:46:47 -04003558 CFLAGS="-g"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003560/* end confdefs.h. */
3561
3562int
3563main ()
3564{
3565
3566 ;
3567 return 0;
3568}
3569_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003570if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003571 ac_cv_prog_cc_g=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003572fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003574fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3576fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3578 ac_c_werror_flag=$ac_save_c_werror_flag
3579fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003581$as_echo "$ac_cv_prog_cc_g" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003582if test "$ac_test_CFLAGS" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003583 CFLAGS=$ac_save_CFLAGS
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003584elif test $ac_cv_prog_cc_g = yes; then
3585 if test "$GCC" = yes; then
3586 CFLAGS="-g -O2"
3587 else
3588 CFLAGS="-g"
3589 fi
3590else
3591 if test "$GCC" = yes; then
3592 CFLAGS="-O2"
3593 else
3594 CFLAGS=
3595 fi
3596fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003598$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003599if ${ac_cv_prog_cc_c89+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003600 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003601else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003602 ac_cv_prog_cc_c89=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003603ac_save_CC=$CC
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003604cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003605/* end confdefs.h. */
3606#include <stdarg.h>
3607#include <stdio.h>
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003608struct stat;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003609/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3610struct buf { int x; };
3611FILE * (*rcsopen) (struct buf *, struct stat *, int);
3612static char *e (p, i)
3613 char **p;
3614 int i;
3615{
3616 return p[i];
3617}
3618static char *f (char * (*g) (char **, int), char **p, ...)
3619{
3620 char *s;
3621 va_list v;
3622 va_start (v,p);
3623 s = g (p, va_arg (v,int));
3624 va_end (v);
3625 return s;
3626}
3627
3628/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3629 function prototypes and stuff, but not '\xHH' hex character constants.
3630 These don't provoke an error unfortunately, instead are silently treated
Theodore Ts'oe1052142006-10-21 21:46:47 -04003631 as 'x'. The following induces an error, until -std is added to get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003632 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3633 array size at least. It's necessary to write '\x00'==0 to get something
Theodore Ts'oe1052142006-10-21 21:46:47 -04003634 that's true only with -std. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003635int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3636
Theodore Ts'oe1052142006-10-21 21:46:47 -04003637/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3638 inside strings and character constants. */
3639#define FOO(x) 'x'
3640int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3641
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003642int test (int i, double x);
3643struct s1 {int (*f) (int a);};
3644struct s2 {int (*f) (double a);};
3645int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3646int argc;
3647char **argv;
3648int
3649main ()
3650{
3651return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3652 ;
3653 return 0;
3654}
3655_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003656for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3657 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003658do
3659 CC="$ac_save_CC $ac_arg"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003660 if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003661 ac_cv_prog_cc_c89=$ac_arg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003662fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003663rm -f core conftest.err conftest.$ac_objext
3664 test "x$ac_cv_prog_cc_c89" != "xno" && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003665done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003666rm -f conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003667CC=$ac_save_CC
3668
3669fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003670# AC_CACHE_VAL
3671case "x$ac_cv_prog_cc_c89" in
3672 x)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003674$as_echo "none needed" >&6; } ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003675 xno)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003677$as_echo "unsupported" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003678 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04003679 CC="$CC $ac_cv_prog_cc_c89"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003681$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003682esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003683if test "x$ac_cv_prog_cc_c89" != xno; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003684
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003685fi
3686
3687ac_ext=c
3688ac_cpp='$CPP $CPPFLAGS'
3689ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3690ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3691ac_compiler_gnu=$ac_cv_c_compiler_gnu
3692
3693
3694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3695$as_echo_n "checking for dlopen in -ldl... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003696if ${ac_cv_lib_dl_dlopen+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003697 $as_echo_n "(cached) " >&6
3698else
3699 ac_check_lib_save_LIBS=$LIBS
3700LIBS="-ldl $LIBS"
3701cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3702/* end confdefs.h. */
3703
3704/* Override any GCC internal prototype to avoid an error.
3705 Use char because int might match the return type of a GCC
3706 builtin and then its argument prototype would still apply. */
3707#ifdef __cplusplus
3708extern "C"
3709#endif
3710char dlopen ();
3711int
3712main ()
3713{
3714return dlopen ();
3715 ;
3716 return 0;
3717}
3718_ACEOF
3719if ac_fn_c_try_link "$LINENO"; then :
3720 ac_cv_lib_dl_dlopen=yes
3721else
3722 ac_cv_lib_dl_dlopen=no
3723fi
3724rm -f core conftest.err conftest.$ac_objext \
3725 conftest$ac_exeext conftest.$ac_ext
3726LIBS=$ac_check_lib_save_LIBS
3727fi
3728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3729$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003730if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003731 DLOPEN_LIB=-ldl
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003732fi
3733
3734
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003735
3736# Check whether --with-cc was given.
3737if test "${with_cc+set}" = set; then :
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003738 withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003739fi
3740
3741
3742# Check whether --with-ccopts was given.
3743if test "${with_ccopts+set}" = set; then :
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003744 withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003745fi
3746
3747
3748# Check whether --with-ldopts was given.
3749if test "${with_ldopts+set}" = set; then :
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003750 withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003751fi
3752
3753ac_ext=c
3754ac_cpp='$CPP $CPPFLAGS'
3755ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3756ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3757ac_compiler_gnu=$ac_cv_c_compiler_gnu
3758if test -n "$ac_tool_prefix"; then
3759 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3760set dummy ${ac_tool_prefix}gcc; ac_word=$2
3761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3762$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003763if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003764 $as_echo_n "(cached) " >&6
3765else
3766 if test -n "$CC"; then
3767 ac_cv_prog_CC="$CC" # Let the user override the test.
3768else
3769as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3770for as_dir in $PATH
3771do
3772 IFS=$as_save_IFS
3773 test -z "$as_dir" && as_dir=.
3774 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003776 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3778 break 2
3779 fi
3780done
3781 done
3782IFS=$as_save_IFS
3783
3784fi
3785fi
3786CC=$ac_cv_prog_CC
3787if test -n "$CC"; then
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3789$as_echo "$CC" >&6; }
3790else
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3792$as_echo "no" >&6; }
3793fi
3794
3795
3796fi
3797if test -z "$ac_cv_prog_CC"; then
3798 ac_ct_CC=$CC
3799 # Extract the first word of "gcc", so it can be a program name with args.
3800set dummy gcc; ac_word=$2
3801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3802$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003803if ${ac_cv_prog_ac_ct_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003804 $as_echo_n "(cached) " >&6
3805else
3806 if test -n "$ac_ct_CC"; then
3807 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3808else
3809as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3810for as_dir in $PATH
3811do
3812 IFS=$as_save_IFS
3813 test -z "$as_dir" && as_dir=.
3814 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003816 ac_cv_prog_ac_ct_CC="gcc"
3817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3818 break 2
3819 fi
3820done
3821 done
3822IFS=$as_save_IFS
3823
3824fi
3825fi
3826ac_ct_CC=$ac_cv_prog_ac_ct_CC
3827if test -n "$ac_ct_CC"; then
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3829$as_echo "$ac_ct_CC" >&6; }
3830else
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3832$as_echo "no" >&6; }
3833fi
3834
3835 if test "x$ac_ct_CC" = x; then
3836 CC=""
3837 else
3838 case $cross_compiling:$ac_tool_warned in
3839yes:)
3840{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3841$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3842ac_tool_warned=yes ;;
3843esac
3844 CC=$ac_ct_CC
3845 fi
3846else
3847 CC="$ac_cv_prog_CC"
3848fi
3849
3850if test -z "$CC"; then
3851 if test -n "$ac_tool_prefix"; then
3852 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3853set dummy ${ac_tool_prefix}cc; ac_word=$2
3854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3855$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003856if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003857 $as_echo_n "(cached) " >&6
3858else
3859 if test -n "$CC"; then
3860 ac_cv_prog_CC="$CC" # Let the user override the test.
3861else
3862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3863for as_dir in $PATH
3864do
3865 IFS=$as_save_IFS
3866 test -z "$as_dir" && as_dir=.
3867 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003869 ac_cv_prog_CC="${ac_tool_prefix}cc"
3870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3871 break 2
3872 fi
3873done
3874 done
3875IFS=$as_save_IFS
3876
3877fi
3878fi
3879CC=$ac_cv_prog_CC
3880if test -n "$CC"; then
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3882$as_echo "$CC" >&6; }
3883else
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3885$as_echo "no" >&6; }
3886fi
3887
3888
3889 fi
3890fi
3891if test -z "$CC"; then
3892 # Extract the first word of "cc", so it can be a program name with args.
3893set dummy cc; ac_word=$2
3894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3895$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003896if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003897 $as_echo_n "(cached) " >&6
3898else
3899 if test -n "$CC"; then
3900 ac_cv_prog_CC="$CC" # Let the user override the test.
3901else
3902 ac_prog_rejected=no
3903as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3904for as_dir in $PATH
3905do
3906 IFS=$as_save_IFS
3907 test -z "$as_dir" && as_dir=.
3908 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003910 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3911 ac_prog_rejected=yes
3912 continue
3913 fi
3914 ac_cv_prog_CC="cc"
3915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3916 break 2
3917 fi
3918done
3919 done
3920IFS=$as_save_IFS
3921
3922if test $ac_prog_rejected = yes; then
3923 # We found a bogon in the path, so make sure we never use it.
3924 set dummy $ac_cv_prog_CC
3925 shift
3926 if test $# != 0; then
3927 # We chose a different compiler from the bogus one.
3928 # However, it has the same basename, so the bogon will be chosen
3929 # first if we set CC to just the basename; use the full file name.
3930 shift
3931 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3932 fi
3933fi
3934fi
3935fi
3936CC=$ac_cv_prog_CC
3937if test -n "$CC"; then
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3939$as_echo "$CC" >&6; }
3940else
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3942$as_echo "no" >&6; }
3943fi
3944
3945
3946fi
3947if test -z "$CC"; then
3948 if test -n "$ac_tool_prefix"; then
3949 for ac_prog in cl.exe
3950 do
3951 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3952set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3954$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003955if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003956 $as_echo_n "(cached) " >&6
3957else
3958 if test -n "$CC"; then
3959 ac_cv_prog_CC="$CC" # Let the user override the test.
3960else
3961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3962for as_dir in $PATH
3963do
3964 IFS=$as_save_IFS
3965 test -z "$as_dir" && as_dir=.
3966 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003968 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3970 break 2
3971 fi
3972done
3973 done
3974IFS=$as_save_IFS
3975
3976fi
3977fi
3978CC=$ac_cv_prog_CC
3979if test -n "$CC"; then
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3981$as_echo "$CC" >&6; }
3982else
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3984$as_echo "no" >&6; }
3985fi
3986
3987
3988 test -n "$CC" && break
3989 done
3990fi
3991if test -z "$CC"; then
3992 ac_ct_CC=$CC
3993 for ac_prog in cl.exe
3994do
3995 # Extract the first word of "$ac_prog", so it can be a program name with args.
3996set dummy $ac_prog; ac_word=$2
3997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3998$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003999if ${ac_cv_prog_ac_ct_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004000 $as_echo_n "(cached) " >&6
4001else
4002 if test -n "$ac_ct_CC"; then
4003 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4004else
4005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4006for as_dir in $PATH
4007do
4008 IFS=$as_save_IFS
4009 test -z "$as_dir" && as_dir=.
4010 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004012 ac_cv_prog_ac_ct_CC="$ac_prog"
4013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4014 break 2
4015 fi
4016done
4017 done
4018IFS=$as_save_IFS
4019
4020fi
4021fi
4022ac_ct_CC=$ac_cv_prog_ac_ct_CC
4023if test -n "$ac_ct_CC"; then
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4025$as_echo "$ac_ct_CC" >&6; }
4026else
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4028$as_echo "no" >&6; }
4029fi
4030
4031
4032 test -n "$ac_ct_CC" && break
4033done
4034
4035 if test "x$ac_ct_CC" = x; then
4036 CC=""
4037 else
4038 case $cross_compiling:$ac_tool_warned in
4039yes:)
4040{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4041$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4042ac_tool_warned=yes ;;
4043esac
4044 CC=$ac_ct_CC
4045 fi
4046fi
4047
4048fi
4049
4050
4051test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4052$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004053as_fn_error $? "no acceptable C compiler found in \$PATH
4054See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004055
4056# Provide some information about the compiler.
4057$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4058set X $ac_compile
4059ac_compiler=$2
4060for ac_option in --version -v -V -qversion; do
4061 { { ac_try="$ac_compiler $ac_option >&5"
4062case "(($ac_try" in
4063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4064 *) ac_try_echo=$ac_try;;
4065esac
4066eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4067$as_echo "$ac_try_echo"; } >&5
4068 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4069 ac_status=$?
4070 if test -s conftest.err; then
4071 sed '10a\
4072... rest of stderr output deleted ...
4073 10q' conftest.err >conftest.er1
4074 cat conftest.er1 >&5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004075 fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04004076 rm -f conftest.er1 conftest.err
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4078 test $ac_status = 0; }
4079done
4080
4081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4082$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004083if ${ac_cv_c_compiler_gnu+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004084 $as_echo_n "(cached) " >&6
4085else
4086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4087/* end confdefs.h. */
4088
4089int
4090main ()
4091{
4092#ifndef __GNUC__
4093 choke me
4094#endif
4095
4096 ;
4097 return 0;
4098}
4099_ACEOF
4100if ac_fn_c_try_compile "$LINENO"; then :
4101 ac_compiler_gnu=yes
4102else
4103 ac_compiler_gnu=no
4104fi
4105rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4106ac_cv_c_compiler_gnu=$ac_compiler_gnu
4107
4108fi
4109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4110$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4111if test $ac_compiler_gnu = yes; then
4112 GCC=yes
4113else
4114 GCC=
4115fi
4116ac_test_CFLAGS=${CFLAGS+set}
4117ac_save_CFLAGS=$CFLAGS
4118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4119$as_echo_n "checking whether $CC accepts -g... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004120if ${ac_cv_prog_cc_g+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004121 $as_echo_n "(cached) " >&6
4122else
4123 ac_save_c_werror_flag=$ac_c_werror_flag
4124 ac_c_werror_flag=yes
4125 ac_cv_prog_cc_g=no
4126 CFLAGS="-g"
4127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4128/* end confdefs.h. */
4129
4130int
4131main ()
4132{
4133
4134 ;
4135 return 0;
4136}
4137_ACEOF
4138if ac_fn_c_try_compile "$LINENO"; then :
4139 ac_cv_prog_cc_g=yes
4140else
4141 CFLAGS=""
4142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4143/* end confdefs.h. */
4144
4145int
4146main ()
4147{
4148
4149 ;
4150 return 0;
4151}
4152_ACEOF
4153if ac_fn_c_try_compile "$LINENO"; then :
4154
4155else
4156 ac_c_werror_flag=$ac_save_c_werror_flag
4157 CFLAGS="-g"
4158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4159/* end confdefs.h. */
4160
4161int
4162main ()
4163{
4164
4165 ;
4166 return 0;
4167}
4168_ACEOF
4169if ac_fn_c_try_compile "$LINENO"; then :
4170 ac_cv_prog_cc_g=yes
4171fi
4172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4173fi
4174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4175fi
4176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4177 ac_c_werror_flag=$ac_save_c_werror_flag
4178fi
4179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4180$as_echo "$ac_cv_prog_cc_g" >&6; }
4181if test "$ac_test_CFLAGS" = set; then
4182 CFLAGS=$ac_save_CFLAGS
4183elif test $ac_cv_prog_cc_g = yes; then
4184 if test "$GCC" = yes; then
4185 CFLAGS="-g -O2"
4186 else
4187 CFLAGS="-g"
4188 fi
4189else
4190 if test "$GCC" = yes; then
4191 CFLAGS="-O2"
4192 else
4193 CFLAGS=
4194 fi
4195fi
4196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4197$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004198if ${ac_cv_prog_cc_c89+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004199 $as_echo_n "(cached) " >&6
4200else
4201 ac_cv_prog_cc_c89=no
4202ac_save_CC=$CC
4203cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4204/* end confdefs.h. */
4205#include <stdarg.h>
4206#include <stdio.h>
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004207struct stat;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004208/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4209struct buf { int x; };
4210FILE * (*rcsopen) (struct buf *, struct stat *, int);
4211static char *e (p, i)
4212 char **p;
4213 int i;
4214{
4215 return p[i];
4216}
4217static char *f (char * (*g) (char **, int), char **p, ...)
4218{
4219 char *s;
4220 va_list v;
4221 va_start (v,p);
4222 s = g (p, va_arg (v,int));
4223 va_end (v);
4224 return s;
4225}
4226
4227/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4228 function prototypes and stuff, but not '\xHH' hex character constants.
4229 These don't provoke an error unfortunately, instead are silently treated
4230 as 'x'. The following induces an error, until -std is added to get
4231 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4232 array size at least. It's necessary to write '\x00'==0 to get something
4233 that's true only with -std. */
4234int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4235
4236/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4237 inside strings and character constants. */
4238#define FOO(x) 'x'
4239int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4240
4241int test (int i, double x);
4242struct s1 {int (*f) (int a);};
4243struct s2 {int (*f) (double a);};
4244int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4245int argc;
4246char **argv;
4247int
4248main ()
4249{
4250return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4251 ;
4252 return 0;
4253}
4254_ACEOF
4255for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4256 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4257do
4258 CC="$ac_save_CC $ac_arg"
4259 if ac_fn_c_try_compile "$LINENO"; then :
4260 ac_cv_prog_cc_c89=$ac_arg
4261fi
4262rm -f core conftest.err conftest.$ac_objext
4263 test "x$ac_cv_prog_cc_c89" != "xno" && break
4264done
4265rm -f conftest.$ac_ext
4266CC=$ac_save_CC
4267
4268fi
4269# AC_CACHE_VAL
4270case "x$ac_cv_prog_cc_c89" in
4271 x)
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4273$as_echo "none needed" >&6; } ;;
4274 xno)
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4276$as_echo "unsupported" >&6; } ;;
4277 *)
4278 CC="$CC $ac_cv_prog_cc_c89"
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4280$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4281esac
4282if test "x$ac_cv_prog_cc_c89" != xno; then :
4283
4284fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004285
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004286ac_ext=c
4287ac_cpp='$CPP $CPPFLAGS'
4288ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4289ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4290ac_compiler_gnu=$ac_cv_c_compiler_gnu
4291
Theodore Ts'o9b3018a2011-08-11 14:56:49 -04004292if test "$GCC" = yes; then
4293 RDYNAMIC="-rdynamic"
4294
4295fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004296ac_ext=c
4297ac_cpp='$CPP $CPPFLAGS'
4298ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4299ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4300ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004302$as_echo_n "checking how to run the C preprocessor... " >&6; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004303# On Suns, sometimes $CPP names a directory.
4304if test -n "$CPP" && test -d "$CPP"; then
4305 CPP=
4306fi
4307if test -z "$CPP"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004308 if ${ac_cv_prog_CPP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004309 $as_echo_n "(cached) " >&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004310else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004311 # Double quotes because CPP needs to be expanded
4312 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4313 do
4314 ac_preproc_ok=false
4315for ac_c_preproc_warn_flag in '' yes
4316do
4317 # Use a header file that comes with gcc, so configuring glibc
4318 # with a fresh cross-compiler works.
4319 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4320 # <limits.h> exists even on freestanding compilers.
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004321 # On the NeXT, cc -E runs the code through the compiler's parser,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004322 # not just through cpp. "Syntax error" is here to catch this case.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004324/* end confdefs.h. */
4325#ifdef __STDC__
4326# include <limits.h>
4327#else
4328# include <assert.h>
4329#endif
4330 Syntax error
4331_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004332if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004333
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004334else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004335 # Broken: fails on valid input.
4336continue
4337fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004338rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004339
Theodore Ts'oe1052142006-10-21 21:46:47 -04004340 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004341 # can be detected and how.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004343/* end confdefs.h. */
4344#include <ac_nonexistent.h>
4345_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004346if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004347 # Broken: success on invalid input.
4348continue
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004349else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004350 # Passes both tests.
4351ac_preproc_ok=:
4352break
4353fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004354rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004355
4356done
4357# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004358rm -f conftest.i conftest.err conftest.$ac_ext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004359if $ac_preproc_ok; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004360 break
4361fi
4362
4363 done
4364 ac_cv_prog_CPP=$CPP
4365
4366fi
4367 CPP=$ac_cv_prog_CPP
4368else
4369 ac_cv_prog_CPP=$CPP
4370fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004372$as_echo "$CPP" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004373ac_preproc_ok=false
4374for ac_c_preproc_warn_flag in '' yes
4375do
4376 # Use a header file that comes with gcc, so configuring glibc
4377 # with a fresh cross-compiler works.
4378 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4379 # <limits.h> exists even on freestanding compilers.
4380 # On the NeXT, cc -E runs the code through the compiler's parser,
4381 # not just through cpp. "Syntax error" is here to catch this case.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004383/* end confdefs.h. */
4384#ifdef __STDC__
4385# include <limits.h>
4386#else
4387# include <assert.h>
4388#endif
4389 Syntax error
4390_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004391if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004392
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004393else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004394 # Broken: fails on valid input.
4395continue
4396fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004397rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004398
Theodore Ts'oe1052142006-10-21 21:46:47 -04004399 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004400 # can be detected and how.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004402/* end confdefs.h. */
4403#include <ac_nonexistent.h>
4404_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004405if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004406 # Broken: success on invalid input.
4407continue
4408else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004409 # Passes both tests.
4410ac_preproc_ok=:
4411break
4412fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004413rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004414
4415done
4416# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004417rm -f conftest.i conftest.err conftest.$ac_ext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004418if $ac_preproc_ok; then :
4419
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004420else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004421 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004422$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004423as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4424See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004425fi
4426
4427ac_ext=c
4428ac_cpp='$CPP $CPPFLAGS'
4429ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4430ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4431ac_compiler_gnu=$ac_cv_c_compiler_gnu
4432
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004434$as_echo_n "checking for additional special compiler flags... " >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004435if test "$GCC" = yes
4436then
4437 case "$host_cpu" in
4438 alpha) addcflags="-mieee" ;;
4439 esac
4440fi
4441if test "x$addcflags" != x
4442then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004444$as_echo "$addcflags" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004445 CFLAGS="$addcflags $CFLAGS"
4446else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004448$as_echo "(none)" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004449fi
Theodore Ts'o93613952014-07-03 23:44:13 -04004450
4451{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4452$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4453if ${ac_cv_path_GREP+:} false; then :
4454 $as_echo_n "(cached) " >&6
4455else
4456 if test -z "$GREP"; then
4457 ac_path_GREP_found=false
4458 # Loop through the user's path and test for each of PROGNAME-LIST
4459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4460for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4461do
4462 IFS=$as_save_IFS
4463 test -z "$as_dir" && as_dir=.
4464 for ac_prog in grep ggrep; do
4465 for ac_exec_ext in '' $ac_executable_extensions; do
4466 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4467 as_fn_executable_p "$ac_path_GREP" || continue
4468# Check for GNU ac_path_GREP and select it if it is found.
4469 # Check for GNU $ac_path_GREP
4470case `"$ac_path_GREP" --version 2>&1` in
4471*GNU*)
4472 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4473*)
4474 ac_count=0
4475 $as_echo_n 0123456789 >"conftest.in"
4476 while :
4477 do
4478 cat "conftest.in" "conftest.in" >"conftest.tmp"
4479 mv "conftest.tmp" "conftest.in"
4480 cp "conftest.in" "conftest.nl"
4481 $as_echo 'GREP' >> "conftest.nl"
4482 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4483 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4484 as_fn_arith $ac_count + 1 && ac_count=$as_val
4485 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4486 # Best one so far, save it but keep looking for a better one
4487 ac_cv_path_GREP="$ac_path_GREP"
4488 ac_path_GREP_max=$ac_count
4489 fi
4490 # 10*(2^10) chars as input seems more than enough
4491 test $ac_count -gt 10 && break
4492 done
4493 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4494esac
4495
4496 $ac_path_GREP_found && break 3
4497 done
4498 done
4499 done
4500IFS=$as_save_IFS
4501 if test -z "$ac_cv_path_GREP"; then
4502 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4503 fi
4504else
4505 ac_cv_path_GREP=$GREP
4506fi
4507
4508fi
4509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4510$as_echo "$ac_cv_path_GREP" >&6; }
4511 GREP="$ac_cv_path_GREP"
4512
4513
4514{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4515$as_echo_n "checking for egrep... " >&6; }
4516if ${ac_cv_path_EGREP+:} false; then :
4517 $as_echo_n "(cached) " >&6
4518else
4519 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4520 then ac_cv_path_EGREP="$GREP -E"
4521 else
4522 if test -z "$EGREP"; then
4523 ac_path_EGREP_found=false
4524 # Loop through the user's path and test for each of PROGNAME-LIST
4525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4526for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4527do
4528 IFS=$as_save_IFS
4529 test -z "$as_dir" && as_dir=.
4530 for ac_prog in egrep; do
4531 for ac_exec_ext in '' $ac_executable_extensions; do
4532 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4533 as_fn_executable_p "$ac_path_EGREP" || continue
4534# Check for GNU ac_path_EGREP and select it if it is found.
4535 # Check for GNU $ac_path_EGREP
4536case `"$ac_path_EGREP" --version 2>&1` in
4537*GNU*)
4538 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4539*)
4540 ac_count=0
4541 $as_echo_n 0123456789 >"conftest.in"
4542 while :
4543 do
4544 cat "conftest.in" "conftest.in" >"conftest.tmp"
4545 mv "conftest.tmp" "conftest.in"
4546 cp "conftest.in" "conftest.nl"
4547 $as_echo 'EGREP' >> "conftest.nl"
4548 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4549 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4550 as_fn_arith $ac_count + 1 && ac_count=$as_val
4551 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4552 # Best one so far, save it but keep looking for a better one
4553 ac_cv_path_EGREP="$ac_path_EGREP"
4554 ac_path_EGREP_max=$ac_count
4555 fi
4556 # 10*(2^10) chars as input seems more than enough
4557 test $ac_count -gt 10 && break
4558 done
4559 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4560esac
4561
4562 $ac_path_EGREP_found && break 3
4563 done
4564 done
4565 done
4566IFS=$as_save_IFS
4567 if test -z "$ac_cv_path_EGREP"; then
4568 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4569 fi
4570else
4571 ac_cv_path_EGREP=$EGREP
4572fi
4573
4574 fi
4575fi
4576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4577$as_echo "$ac_cv_path_EGREP" >&6; }
4578 EGREP="$ac_cv_path_EGREP"
4579
4580
4581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4582$as_echo_n "checking for ANSI C header files... " >&6; }
4583if ${ac_cv_header_stdc+:} false; then :
4584 $as_echo_n "(cached) " >&6
4585else
4586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4587/* end confdefs.h. */
4588#include <stdlib.h>
4589#include <stdarg.h>
4590#include <string.h>
4591#include <float.h>
4592
4593int
4594main ()
4595{
4596
4597 ;
4598 return 0;
4599}
4600_ACEOF
4601if ac_fn_c_try_compile "$LINENO"; then :
4602 ac_cv_header_stdc=yes
4603else
4604 ac_cv_header_stdc=no
4605fi
4606rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4607
4608if test $ac_cv_header_stdc = yes; then
4609 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4611/* end confdefs.h. */
4612#include <string.h>
4613
4614_ACEOF
4615if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4616 $EGREP "memchr" >/dev/null 2>&1; then :
4617
4618else
4619 ac_cv_header_stdc=no
4620fi
4621rm -f conftest*
4622
4623fi
4624
4625if test $ac_cv_header_stdc = yes; then
4626 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4628/* end confdefs.h. */
4629#include <stdlib.h>
4630
4631_ACEOF
4632if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4633 $EGREP "free" >/dev/null 2>&1; then :
4634
4635else
4636 ac_cv_header_stdc=no
4637fi
4638rm -f conftest*
4639
4640fi
4641
4642if test $ac_cv_header_stdc = yes; then
4643 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4644 if test "$cross_compiling" = yes; then :
4645 :
4646else
4647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4648/* end confdefs.h. */
4649#include <ctype.h>
4650#include <stdlib.h>
4651#if ((' ' & 0x0FF) == 0x020)
4652# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4653# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4654#else
4655# define ISLOWER(c) \
4656 (('a' <= (c) && (c) <= 'i') \
4657 || ('j' <= (c) && (c) <= 'r') \
4658 || ('s' <= (c) && (c) <= 'z'))
4659# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4660#endif
4661
4662#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4663int
4664main ()
4665{
4666 int i;
4667 for (i = 0; i < 256; i++)
4668 if (XOR (islower (i), ISLOWER (i))
4669 || toupper (i) != TOUPPER (i))
4670 return 2;
4671 return 0;
4672}
4673_ACEOF
4674if ac_fn_c_try_run "$LINENO"; then :
4675
4676else
4677 ac_cv_header_stdc=no
4678fi
4679rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4680 conftest.$ac_objext conftest.beam conftest.$ac_ext
4681fi
4682
4683fi
4684fi
4685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4686$as_echo "$ac_cv_header_stdc" >&6; }
4687if test $ac_cv_header_stdc = yes; then
4688
4689$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4690
4691fi
4692
4693# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4694for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4695 inttypes.h stdint.h unistd.h
4696do :
4697 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4698ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4699"
4700if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4701 cat >>confdefs.h <<_ACEOF
4702#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4703_ACEOF
4704
4705fi
4706
4707done
4708
4709
4710
4711 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4712if test "x$ac_cv_header_minix_config_h" = xyes; then :
4713 MINIX=yes
4714else
4715 MINIX=
4716fi
4717
4718
4719 if test "$MINIX" = yes; then
4720
4721$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4722
4723
4724$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4725
4726
4727$as_echo "#define _MINIX 1" >>confdefs.h
4728
4729 fi
4730
4731
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4733$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4734if ${ac_cv_safe_to_define___extensions__+:} false; then :
4735 $as_echo_n "(cached) " >&6
4736else
4737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4738/* end confdefs.h. */
4739
4740# define __EXTENSIONS__ 1
4741 $ac_includes_default
4742int
4743main ()
4744{
4745
4746 ;
4747 return 0;
4748}
4749_ACEOF
4750if ac_fn_c_try_compile "$LINENO"; then :
4751 ac_cv_safe_to_define___extensions__=yes
4752else
4753 ac_cv_safe_to_define___extensions__=no
4754fi
4755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4756fi
4757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4758$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4759 test $ac_cv_safe_to_define___extensions__ = yes &&
4760 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4761
4762 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4763
4764 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4765
4766 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4767
4768 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4769
4770
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004771LIB_EXT=.a
4772STATIC_LIB_EXT=.a
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004773PROFILED_LIB_EXT=.a
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004774
Theodore Ts'oe1052142006-10-21 21:46:47 -04004775# Check whether --with-root-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004776if test "${with_root_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004777 withval=$with_root_prefix; root_prefix=$withval
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004778else
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004779 root_prefix=NONE
Theodore Ts'oe1052142006-10-21 21:46:47 -04004780fi
4781# Check whether --enable-maintainer-mode was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004782if test "${enable_maintainer_mode+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004783 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004784then
4785 MAINTAINER_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004787$as_echo "Disabling maintainer mode" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004788else
4789 MAINTAINER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004791$as_echo "Enabling maintainer mode" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004792fi
4793
4794else
4795 MAINTAINER_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004797$as_echo "Disabling maintainer mode by default" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004798
Theodore Ts'oe1052142006-10-21 21:46:47 -04004799fi
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004800
Theodore Ts'oe1052142006-10-21 21:46:47 -04004801
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04004802# Check whether --enable-symlink-install was given.
4803if test "${enable_symlink_install+set}" = set; then :
4804 enableval=$enable_symlink_install; if test "$enableval" = "no"
4805then
4806 LINK_INSTALL_FLAGS=-f
4807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4808$as_echo "Disabling symlinks for install" >&6; }
4809else
4810 LINK_INSTALL_FLAGS=-sf
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4812$as_echo "Enabling symlinks for install" >&6; }
4813fi
4814
4815else
4816 LINK_INSTALL_FLAGS=-f
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4818$as_echo "Disabling symlinks for install by default" >&6; }
4819
4820fi
4821
4822
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004823relative_symlink_defined=
4824# Check whether --enable-relative-symlinks was given.
4825if test "${enable_relative_symlinks+set}" = set; then :
4826 enableval=$enable_relative_symlinks; if test "$enableval" = "no"
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004827then
4828 SYMLINK_RELATIVE=
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004829 relative_symlink_defined=yes
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4831$as_echo "Disabling relative symlinks for install" >&6; }
4832else
4833 SYMLINK_RELATIVE=--relative
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004834 relative_symlink_defined=yes
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4836$as_echo "Enabling relative symlinks for install" >&6; }
4837fi
4838fi
4839
4840# Check whether --enable-symlink-relative-symlinks was given.
4841if test "${enable_symlink_relative_symlinks+set}" = set; then :
4842 enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4843then
4844 SYMLINK_RELATIVE=yes
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4846$as_echo "Disabling relative symlinks for install" >&6; }
4847else
4848 SYMLINK_RELATIVE=--relative
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4850$as_echo "Enabling relative symlinks for install" >&6; }
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004851fi
4852
4853else
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004854 if test -z "$relative_symlink_defined"
4855then
4856 SYMLINK_RELATIVE=
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4858$as_echo "Disabling relative symlinks for install by default" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004859fi
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04004860
4861fi
4862
4863
4864# Check whether --enable-symlink-build was given.
4865if test "${enable_symlink_build+set}" = set; then :
4866 enableval=$enable_symlink_build; if test "$enableval" = "no"
4867then
4868 LINK_BUILD_FLAGS=
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4870$as_echo "Disabling symlinks for build" >&6; }
4871else
4872 LINK_BUILD_FLAGS=-s
4873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4874$as_echo "Enabling symlinks for build" >&6; }
4875fi
4876
4877else
4878 LINK_BUILD_FLAGS=
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4880$as_echo "Disabling symlinks for build by default" >&6; }
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04004881
4882fi
4883
4884
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004885# Check whether --enable-verbose-makecmds was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004886if test "${enable_verbose_makecmds+set}" = set; then :
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004887 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4888then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004890$as_echo "Disabling verbose make commands" >&6; }
4891 E=@echo
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004892 ES=echo
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004893 Q=@
4894else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004896$as_echo "Enabling verbose make commands" >&6; }
4897 E=@\\#
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004898 ES=\\#
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004899 Q=
4900fi
4901
4902else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004904$as_echo "Disabling verbose make commands" >&6; }
4905E=@echo
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004906ES=echo
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004907Q=@
4908
4909fi
4910
4911
4912
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004913
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004914E2_PKG_CONFIG_STATIC=--static
Theodore Ts'o55da9872008-09-02 23:12:38 -04004915LDFLAG_DYNAMIC=
4916PRIVATE_LIBS_CMT=
Theodore Ts'oe1052142006-10-21 21:46:47 -04004917# Check whether --enable-elf-shlibs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004918if test "${enable_elf_shlibs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004919 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004920then
4921 ELF_CMT=#
4922 MAKEFILE_ELF=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004924$as_echo "Disabling ELF shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004925else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004926 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004927 ELF_CMT=
4928 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
Theodore Ts'of5955dd2000-10-25 02:38:39 +00004929 case "$host_os" in
4930 solaris2.*)
4931 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4932 ;;
4933 esac
Theodore Ts'o74becf31997-04-26 14:37:06 +00004934 BINARY_TYPE=elfbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004935 LIB_EXT=.so
Theodore Ts'o55da9872008-09-02 23:12:38 -04004936 PRIVATE_LIBS_CMT=#
4937 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004939$as_echo "Enabling ELF shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004940fi
4941
4942else
4943 MAKEFILE_ELF=/dev/null
4944ELF_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004946$as_echo "Disabling ELF shared libraries by default" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004947
Theodore Ts'oe1052142006-10-21 21:46:47 -04004948fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004949
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004950
Theodore Ts'oe1052142006-10-21 21:46:47 -04004951
4952# Check whether --enable-bsd-shlibs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004953if test "${enable_bsd_shlibs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004954 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004955then
4956 BSDLIB_CMT=#
4957 MAKEFILE_BSDLIB=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004959$as_echo "Disabling BSD shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004960else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004961 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004962 BSDLIB_CMT=
4963 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004964 LIB_EXT=.so
Theodore Ts'oe1f07222003-03-14 02:25:36 -05004965 case "$host_os" in
Theodore Ts'oaa75ecc2003-03-17 10:01:22 -05004966 darwin*)
Theodore Ts'oe1f07222003-03-14 02:25:36 -05004967 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4968 LIB_EXT=.dylib
4969 ;;
4970 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004972$as_echo "Enabling BSD shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004973fi
4974
4975else
4976 MAKEFILE_BSDLIB=/dev/null
4977BSDLIB_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004979$as_echo "Disabling BSD shared libraries by default" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004980
Theodore Ts'oe1052142006-10-21 21:46:47 -04004981fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004982
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004983
Theodore Ts'oe1052142006-10-21 21:46:47 -04004984
4985# Check whether --enable-profile was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004986if test "${enable_profile+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004987 enableval=$enable_profile; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004988then
4989 PROFILE_CMT=#
4990 MAKEFILE_PROFILE=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004992$as_echo "Disabling profiling libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004993else
4994 PROFILE_CMT=
4995 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
4996 PROFILED_LIB_EXT=_p.a
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004998$as_echo "Building profiling libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004999fi
5000
5001else
5002 PROFILE_CMT=#
5003MAKEFILE_PROFILE=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005005$as_echo "Disabling profiling libraries by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005006
Theodore Ts'oe1052142006-10-21 21:46:47 -04005007fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005008
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005009
Theodore Ts'oe1052142006-10-21 21:46:47 -04005010
Theodore Ts'ofedfb272014-02-23 00:17:09 -05005011# Check whether --enable-gcov was given.
5012if test "${enable_gcov+set}" = set; then :
5013 enableval=$enable_gcov; if test "$enableval" = "yes"
5014then
5015 CFLAGS="-g -fprofile-arcs -ftest-coverage"
5016 LDFLAGS="-fprofile-arcs -ftest-coverage"
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5
5018$as_echo "Enabling gcov support" >&6; }
5019fi
5020
5021fi
5022
Theodore Ts'ofd1677e2016-05-21 23:51:19 -04005023CFLAGS_SHLIB="${CFLAGS_SHLIB:-$CFLAGS}"
5024CFLAGS_STLIB="${CFLAGS_STLIB:-$CFLAGS}"
5025LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
5026LDFLAGS_STATIC=${LDFLAGS_STATIC:-$LDFLAGS}
5027# Check whether --enable-hardening was given.
5028if test "${enable_hardening+set}" = set; then :
5029 enableval=$enable_hardening; if test "$enableval" = "yes"
5030then
5031 HARDEN_CFLAGS="-D_FORTIFY_SOURCE=2 -fstack-protector-strong"
5032 HARDEN_LDFLAGS="-Wl,-z,relro -Wl,-z,now"
5033 CFLAGS="$CFLAGS $HARDEN_CFLAGS -fPIE"
5034 CFLAGS_SHLIB="$CFLAGS_SHLIB $HARDEN_CFLAGS"
5035 CFLAGS_STLIB="$CFLAGS_STLIB $HARDEN_CFLAGS -fPIE"
5036 LDFLAGS="$LDFLAGS $HARDEN_LDFLAGS -fPIE -pie"
5037 LDFLAGS_STATIC="$LDFLAGS_STATIC $HARDEN_LDFLAGS"
5038 LDFLAGS_SHLIB="$LDFLAGS_SHLIB $HARDEN_LDFLAGS"
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling hardening support" >&5
5040$as_echo "Enabling hardening support" >&6; }
5041fi
5042
5043fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005044
5045
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005046
Theodore Ts'oe1052142006-10-21 21:46:47 -04005047
Theodore Ts'o55da9872008-09-02 23:12:38 -04005048
5049
Theodore Ts'oe1052142006-10-21 21:46:47 -04005050# Check whether --enable-jbd-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005051if test "${enable_jbd_debug+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005052 enableval=$enable_jbd_debug; if test "$enableval" = "no"
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00005053then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005055$as_echo "Disabling journal debugging" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00005056else
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005057
5058$as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00005059
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005061$as_echo "Enabling journal debugging" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00005062fi
5063
5064else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005066$as_echo "Disabling journal debugging by default" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00005067
Theodore Ts'oe1052142006-10-21 21:46:47 -04005068fi
5069
5070# Check whether --enable-blkid-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005071if test "${enable_blkid_debug+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005072 enableval=$enable_blkid_debug; if test "$enableval" = "no"
Theodore Ts'of0a22d02003-02-22 13:19:53 -05005073then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005075$as_echo "Disabling blkid debugging" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05005076else
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005077
5078$as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
Theodore Ts'of0a22d02003-02-22 13:19:53 -05005079
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005081$as_echo "Enabling blkid debugging" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05005082fi
5083
5084else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005086$as_echo "Disabling blkid debugging by default" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05005087
Theodore Ts'oe1052142006-10-21 21:46:47 -04005088fi
5089
5090# Check whether --enable-testio-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005091if test "${enable_testio_debug+set}" = set; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005092 enableval=$enable_testio_debug;
5093if test "$enableval" = "no"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005094then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005096$as_echo "Disabling testio debugging" >&6; }
Theodore Ts'oaf773652008-09-01 11:27:27 -04005097 TEST_IO_CMT="#"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005098else
Theodore Ts'oaf773652008-09-01 11:27:27 -04005099 TEST_IO_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005100 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005101
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005103$as_echo "Enabling testio debugging" >&6; }
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005104fi
5105
5106else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005108$as_echo "Enabling testio debugging by default" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005109$as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
Theodore Ts'oaf773652008-09-01 11:27:27 -04005110
5111TEST_IO_CMT=
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005112
Theodore Ts'oe1052142006-10-21 21:46:47 -04005113fi
5114
Theodore Ts'oaf773652008-09-01 11:27:27 -04005115
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005116
5117
Theodore Ts'o93613952014-07-03 23:44:13 -04005118
5119
5120
5121
5122
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005123if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04005124 if test -n "$ac_tool_prefix"; then
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005125 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5126set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005128$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005129if ${ac_cv_path_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005130 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005131else
5132 case $PKG_CONFIG in
5133 [\\/]* | ?:[\\/]*)
5134 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5135 ;;
5136 *)
5137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5138for as_dir in $PATH
5139do
5140 IFS=$as_save_IFS
5141 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005142 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005144 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005146 break 2
5147 fi
5148done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005149 done
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005150IFS=$as_save_IFS
5151
5152 ;;
5153esac
5154fi
5155PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5156if test -n "$PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005158$as_echo "$PKG_CONFIG" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005159else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005161$as_echo "no" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005162fi
5163
5164
5165fi
5166if test -z "$ac_cv_path_PKG_CONFIG"; then
5167 ac_pt_PKG_CONFIG=$PKG_CONFIG
5168 # Extract the first word of "pkg-config", so it can be a program name with args.
5169set dummy pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005171$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005172if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005173 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005174else
5175 case $ac_pt_PKG_CONFIG in
5176 [\\/]* | ?:[\\/]*)
5177 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5178 ;;
5179 *)
5180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5181for as_dir in $PATH
5182do
5183 IFS=$as_save_IFS
5184 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005185 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005187 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005189 break 2
5190 fi
5191done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005192 done
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005193IFS=$as_save_IFS
5194
5195 ;;
5196esac
5197fi
5198ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5199if test -n "$ac_pt_PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005201$as_echo "$ac_pt_PKG_CONFIG" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005202else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005204$as_echo "no" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005205fi
5206
5207 if test "x$ac_pt_PKG_CONFIG" = x; then
5208 PKG_CONFIG=""
5209 else
5210 case $cross_compiling:$ac_tool_warned in
5211yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005212{ $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 +01005213$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005214ac_tool_warned=yes ;;
5215esac
5216 PKG_CONFIG=$ac_pt_PKG_CONFIG
5217 fi
5218else
5219 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5220fi
5221
5222fi
5223if test -n "$PKG_CONFIG"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04005224 _pkg_min_version=0.9.0
5225 { $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 +01005226$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005227 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005229$as_echo "yes" >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005230 else
5231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005232$as_echo "no" >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005233 PKG_CONFIG=""
5234 fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005235fi
5236LIBUUID=
5237DEPLIBUUID=
5238STATIC_LIBUUID=
5239DEPSTATIC_LIBUUID=
5240PROFILED_LIBUUID=
5241DEPPROFILED_LIBUUID=
5242UUID_CMT=
5243# Check whether --enable-libuuid was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005244if test "${enable_libuuid+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005245 enableval=$enable_libuuid; if test "$enableval" = "no"
5246then
5247 if test -z "$PKG_CONFIG"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005248 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005249 fi
5250
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005252$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005253if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005254 $as_echo_n "(cached) " >&6
5255else
5256 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'o2d7583b2014-07-05 00:27:02 -04005257LIBS="-luuid $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005258cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005259/* end confdefs.h. */
5260
5261/* Override any GCC internal prototype to avoid an error.
5262 Use char because int might match the return type of a GCC
5263 builtin and then its argument prototype would still apply. */
5264#ifdef __cplusplus
5265extern "C"
5266#endif
5267char uuid_generate ();
5268int
5269main ()
5270{
5271return uuid_generate ();
5272 ;
5273 return 0;
5274}
5275_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005276if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005277 ac_cv_lib_uuid_uuid_generate=yes
5278else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005279 ac_cv_lib_uuid_uuid_generate=no
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005280fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005281rm -f core conftest.err conftest.$ac_objext \
5282 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005283LIBS=$ac_check_lib_save_LIBS
5284fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005286$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005287if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005288 LIBUUID=`$PKG_CONFIG --libs uuid`;
5289 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5290else
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005291 as_fn_error $? "external uuid library not found" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005292fi
5293
Theodore Ts'o5afdf372014-09-18 21:11:33 -04005294 PROFILED_LIBUUID=$LIBUUID
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005295 UUID_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005297$as_echo "Disabling private uuid library" >&6; }
5298else
5299 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5300 DEPLIBUUID=$LIBUUID
5301 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5302 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5303 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5304 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005306$as_echo "Enabling private uuid library" >&6; }
5307fi
5308
5309else
Theodore Ts'of5dffb82015-06-20 14:20:14 -04005310 if test -n "$PKG_CONFIG"; then
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5312$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5313if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
5314 $as_echo_n "(cached) " >&6
5315else
5316 ac_check_lib_save_LIBS=$LIBS
5317LIBS="-luuid $LIBS"
5318cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5319/* end confdefs.h. */
5320
5321/* Override any GCC internal prototype to avoid an error.
5322 Use char because int might match the return type of a GCC
5323 builtin and then its argument prototype would still apply. */
5324#ifdef __cplusplus
5325extern "C"
5326#endif
5327char uuid_generate ();
5328int
5329main ()
5330{
5331return uuid_generate ();
5332 ;
5333 return 0;
5334}
5335_ACEOF
5336if ac_fn_c_try_link "$LINENO"; then :
5337 ac_cv_lib_uuid_uuid_generate=yes
5338else
5339 ac_cv_lib_uuid_uuid_generate=no
5340fi
5341rm -f core conftest.err conftest.$ac_objext \
5342 conftest$ac_exeext conftest.$ac_ext
5343LIBS=$ac_check_lib_save_LIBS
5344fi
5345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5346$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5347if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
5348 LIBUUID=`$PKG_CONFIG --libs uuid`;
5349 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5350fi
5351
5352fi
5353if test -n "$LIBUUID"; then
5354 PROFILED_LIBUUID=$LIBUUID
5355 UUID_CMT=#
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system uuid by default" >&5
5357$as_echo "Using system uuid by default" >&6; }
5358else
5359 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5360 DEPLIBUUID=$LIBUUID
5361 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5362 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5363 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5364 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005366$as_echo "Enabling private uuid library by default" >&6; }
Theodore Ts'of5dffb82015-06-20 14:20:14 -04005367fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005368
5369fi
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
Theodore Ts'o93613952014-07-03 23:44:13 -04005380
5381
5382
5383
5384
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005385if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04005386 if test -n "$ac_tool_prefix"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005387 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5388set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005390$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005391if ${ac_cv_path_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005392 $as_echo_n "(cached) " >&6
5393else
5394 case $PKG_CONFIG in
5395 [\\/]* | ?:[\\/]*)
5396 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5397 ;;
5398 *)
5399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5400for as_dir in $PATH
5401do
5402 IFS=$as_save_IFS
5403 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005404 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005406 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005408 break 2
5409 fi
5410done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005411 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005412IFS=$as_save_IFS
5413
5414 ;;
5415esac
5416fi
5417PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5418if test -n "$PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005420$as_echo "$PKG_CONFIG" >&6; }
5421else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005423$as_echo "no" >&6; }
5424fi
5425
5426
5427fi
5428if test -z "$ac_cv_path_PKG_CONFIG"; then
5429 ac_pt_PKG_CONFIG=$PKG_CONFIG
5430 # Extract the first word of "pkg-config", so it can be a program name with args.
5431set dummy pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005432{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005433$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005434if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005435 $as_echo_n "(cached) " >&6
5436else
5437 case $ac_pt_PKG_CONFIG in
5438 [\\/]* | ?:[\\/]*)
5439 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5440 ;;
5441 *)
5442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5443for as_dir in $PATH
5444do
5445 IFS=$as_save_IFS
5446 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005447 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005449 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005451 break 2
5452 fi
5453done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005454 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005455IFS=$as_save_IFS
5456
5457 ;;
5458esac
5459fi
5460ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5461if test -n "$ac_pt_PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005463$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5464else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005466$as_echo "no" >&6; }
5467fi
5468
5469 if test "x$ac_pt_PKG_CONFIG" = x; then
5470 PKG_CONFIG=""
5471 else
5472 case $cross_compiling:$ac_tool_warned in
5473yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005474{ $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 +01005475$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5476ac_tool_warned=yes ;;
5477esac
5478 PKG_CONFIG=$ac_pt_PKG_CONFIG
5479 fi
5480else
5481 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5482fi
5483
5484fi
5485if test -n "$PKG_CONFIG"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04005486 _pkg_min_version=0.9.0
5487 { $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 +01005488$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005489 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005491$as_echo "yes" >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005492 else
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005494$as_echo "no" >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005495 PKG_CONFIG=""
5496 fi
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005497fi
5498LIBBLKID=
5499DEPLIBBLKID=
5500STATIC_LIBBLKID=
5501DEPSTATIC_LIBBLKID=
5502PROFILED_LIBBLKID=
5503DEPPROFILED_LIBBLKID=
5504BLKID_CMT=
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005505
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005506# Check whether --enable-libblkid was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005507if test "${enable_libblkid+set}" = set; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005508 enableval=$enable_libblkid; if test "$enableval" = "no"
5509then
5510 if test -z "$PKG_CONFIG"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005511 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005512 fi
5513
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005515$as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005516if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005517 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005518else
5519 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'o2d7583b2014-07-05 00:27:02 -04005520LIBS="-lblkid -luuid $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005521cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005522/* end confdefs.h. */
5523
5524/* Override any GCC internal prototype to avoid an error.
5525 Use char because int might match the return type of a GCC
5526 builtin and then its argument prototype would still apply. */
5527#ifdef __cplusplus
5528extern "C"
5529#endif
5530char blkid_get_cache ();
5531int
5532main ()
5533{
5534return blkid_get_cache ();
5535 ;
5536 return 0;
5537}
5538_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005539if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005540 ac_cv_lib_blkid_blkid_get_cache=yes
5541else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005542 ac_cv_lib_blkid_blkid_get_cache=no
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005543fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005544rm -f core conftest.err conftest.$ac_objext \
5545 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005546LIBS=$ac_check_lib_save_LIBS
5547fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005549$as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005550if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005551 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5552 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5553else
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005554 as_fn_error $? "external blkid library not found" "$LINENO" 5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005555fi
5556
5557 BLKID_CMT=#
Theodore Ts'o5afdf372014-09-18 21:11:33 -04005558 PROFILED_LIBBLKID=$LIBBLKID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005560$as_echo "Disabling private blkid library" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005561else
5562 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5563 DEPLIBBLKID=$LIBBLKID
5564 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5565 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5566 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5567 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005568 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005569
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005571$as_echo "Enabling private blkid library" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005572fi
5573
5574else
Theodore Ts'of5dffb82015-06-20 14:20:14 -04005575 if test -n "$PKG_CONFIG"; then
5576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5577$as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5578if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5579 $as_echo_n "(cached) " >&6
5580else
5581 ac_check_lib_save_LIBS=$LIBS
5582LIBS="-lblkid $LIBS"
5583cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5584/* end confdefs.h. */
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005585
Theodore Ts'of5dffb82015-06-20 14:20:14 -04005586/* Override any GCC internal prototype to avoid an error.
5587 Use char because int might match the return type of a GCC
5588 builtin and then its argument prototype would still apply. */
5589#ifdef __cplusplus
5590extern "C"
5591#endif
5592char blkid_get_cache ();
5593int
5594main ()
5595{
5596return blkid_get_cache ();
5597 ;
5598 return 0;
5599}
5600_ACEOF
5601if ac_fn_c_try_link "$LINENO"; then :
5602 ac_cv_lib_blkid_blkid_get_cache=yes
5603else
5604 ac_cv_lib_blkid_blkid_get_cache=no
5605fi
5606rm -f core conftest.err conftest.$ac_objext \
5607 conftest$ac_exeext conftest.$ac_ext
5608LIBS=$ac_check_lib_save_LIBS
5609fi
5610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5611$as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5612if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5613 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5614 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5615fi
5616
5617fi
5618if test -n "$LIBBLKID"; then
5619 BLKID_CMT=#
5620 PROFILED_LIBBLKID=$LIBBLKID
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system blkid library by default" >&5
5622$as_echo "Using system blkid library by default" >&6; }
5623else
5624 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5625 DEPLIBBLKID=$LIBBLKID
5626 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5627 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5628 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5629 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5630 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5631
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005633$as_echo "Enabling private blkid library by default" >&6; }
Theodore Ts'of5dffb82015-06-20 14:20:14 -04005634fi
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005635
5636fi
5637
5638
5639
5640
5641
5642
5643
5644
Theodore Ts'o3df60142013-06-16 16:14:40 -04005645
5646# Check whether --enable-backtrace was given.
5647if test "${enable_backtrace+set}" = set; then :
5648 enableval=$enable_backtrace; if test "$enableval" = "no"
5649then
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
5651$as_echo "Disabling use of backtrace" >&6; }
5652 $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h
5653
5654else
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
5656$as_echo "Enabling use of backtrace" >&6; }
5657fi
5658
5659else
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
5661$as_echo "Enabling use of backtrace by default" >&6; }
5662
5663fi
5664
Theodore Ts'oe1052142006-10-21 21:46:47 -04005665# Check whether --enable-debugfs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005666if test "${enable_debugfs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005667 enableval=$enable_debugfs; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005668then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005670$as_echo "Disabling debugfs support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005671 DEBUGFS_CMT="#"
5672else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005673 DEBUGFS_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005675$as_echo "Enabling debugfs support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005676fi
5677
5678else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005680$as_echo "Enabling debugfs support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005681DEBUGFS_CMT=
5682
Theodore Ts'oe1052142006-10-21 21:46:47 -04005683fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005684
Theodore Ts'oe1052142006-10-21 21:46:47 -04005685
5686# Check whether --enable-imager was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005687if test "${enable_imager+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005688 enableval=$enable_imager; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005689then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005691$as_echo "Disabling e2image support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005692 IMAGER_CMT="#"
5693else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005694 IMAGER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005696$as_echo "Enabling e2image support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005697fi
5698
5699else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005701$as_echo "Enabling e2image support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005702IMAGER_CMT=
5703
Theodore Ts'oe1052142006-10-21 21:46:47 -04005704fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005705
Theodore Ts'oe1052142006-10-21 21:46:47 -04005706
5707# Check whether --enable-resizer was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005708if test "${enable_resizer+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005709 enableval=$enable_resizer; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005710then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005712$as_echo "Disabling e2resize support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005713 RESIZER_CMT="#"
5714else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005715 RESIZER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005717$as_echo "Enabling e2resize support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005718fi
5719
5720else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005722$as_echo "Enabling e2resize support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005723RESIZER_CMT=
5724
Theodore Ts'oe1052142006-10-21 21:46:47 -04005725fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005726
Theodore Ts'oe1052142006-10-21 21:46:47 -04005727
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05005728# Check whether --enable-defrag was given.
5729if test "${enable_defrag+set}" = set; then :
5730 enableval=$enable_defrag; if test "$enableval" = "no"
5731then
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5733$as_echo "Disabling e4defrag support" >&6; }
5734 DEFRAG_CMT="#"
5735else
5736 DEFRAG_CMT=
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5738$as_echo "Enabling e4defrag support" >&6; }
5739fi
5740
5741else
Theodore Ts'o6c59a662014-01-04 20:44:29 -05005742 if test -z "$WITH_DIET_LIBC"
5743then
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05005745$as_echo "Enabling e4defrag support by default" >&6; }
Theodore Ts'o6c59a662014-01-04 20:44:29 -05005746 DEFRAG_CMT=
5747else
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
5749$as_echo "Disabling e4defrag support by default" >&6; }
5750 DEFRAG_CMT="#"
5751fi
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05005752
5753fi
5754
5755
Theodore Ts'oe1052142006-10-21 21:46:47 -04005756# Check whether --enable-fsck was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005757if test "${enable_fsck+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005758 enableval=$enable_fsck; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005759then
5760 FSCK_PROG='' FSCK_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005762$as_echo "Not building fsck wrapper" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005763else
5764 FSCK_PROG=fsck FSCK_MAN=fsck.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005766$as_echo "Building fsck wrapper" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005767fi
5768
5769else
5770 case "$host_os" in
Theodore Ts'oe3632402004-05-04 19:39:54 -04005771 gnu*)
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005772 FSCK_PROG='' FSCK_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005774$as_echo "Not building fsck wrapper by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005775 ;;
5776 *)
5777 FSCK_PROG=fsck FSCK_MAN=fsck.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005779$as_echo "Building fsck wrapper by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005780esac
5781
Theodore Ts'oe1052142006-10-21 21:46:47 -04005782fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005783
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005784
Theodore Ts'oe1052142006-10-21 21:46:47 -04005785
5786# Check whether --enable-e2initrd-helper was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005787if test "${enable_e2initrd_helper+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005788 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
Theodore Ts'o5d407732004-09-18 14:53:14 -04005789then
5790 E2INITRD_PROG='' E2INITRD_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005792$as_echo "Not building e2initrd helper" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005793else
5794 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005796$as_echo "Building e2initrd helper" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005797fi
5798
5799else
5800 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005802$as_echo "Building e2initrd helper by default" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005803
Theodore Ts'oe1052142006-10-21 21:46:47 -04005804fi
Theodore Ts'o5d407732004-09-18 14:53:14 -04005805
5806
Theodore Ts'oe1052142006-10-21 21:46:47 -04005807
Theodore Ts'o32493942007-12-31 10:45:01 -05005808# Check whether --enable-tls was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005809if test "${enable_tls+set}" = set; then :
Theodore Ts'o32493942007-12-31 10:45:01 -05005810 enableval=$enable_tls; if test "$enableval" = "no"
5811then
5812 try_tls=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005814$as_echo "Disabling thread local support" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005815else
5816 try_tls="yes"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005818$as_echo "Enabling thread local support" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005819fi
5820
5821else
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005822 if test -n "$WITH_DIET_LIBC"
5823then
5824 try_tls=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005825 { $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 +01005826$as_echo "Diet libc does not support thread local support" >&6; }
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005827else
5828 try_tls="yes"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005830$as_echo "Try using thread local support by default" >&6; }
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005831fi
Theodore Ts'o32493942007-12-31 10:45:01 -05005832
5833fi
5834
5835if test "$try_tls" = "yes"
5836then
5837
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005839$as_echo_n "checking for thread local storage (TLS) class... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005840 if ${ac_cv_tls+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005841 $as_echo_n "(cached) " >&6
Theodore Ts'o32493942007-12-31 10:45:01 -05005842else
5843
5844 ax_tls_keywords="__thread __declspec(thread) none"
5845 for ax_tls_keyword in $ax_tls_keywords; do
5846 case $ax_tls_keyword in
5847 none) ac_cv_tls=none ; break ;;
5848 *)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'o32493942007-12-31 10:45:01 -05005850/* end confdefs.h. */
5851#include <stdlib.h>
5852 static void
5853 foo(void) {
5854 static $ax_tls_keyword int bar;
5855 exit(1);
5856 }
5857int
5858main ()
5859{
5860
5861 ;
5862 return 0;
5863}
5864_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005865if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o32493942007-12-31 10:45:01 -05005866 ac_cv_tls=$ax_tls_keyword ; break
5867else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005868 ac_cv_tls=none
Theodore Ts'o32493942007-12-31 10:45:01 -05005869
5870fi
Theodore Ts'o32493942007-12-31 10:45:01 -05005871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5872 esac
5873 done
5874
5875fi
5876
5877
5878 if test "$ac_cv_tls" != "none"; then
5879
5880cat >>confdefs.h <<_ACEOF
5881#define TLS $ac_cv_tls
5882_ACEOF
5883
5884 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005886$as_echo "$ac_cv_tls" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005887
5888fi
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005889
Theodore Ts'o5610f992007-12-31 11:16:56 -05005890# Check whether --enable-uuidd was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005891if test "${enable_uuidd+set}" = set; then :
Theodore Ts'o5610f992007-12-31 11:16:56 -05005892 enableval=$enable_uuidd; if test "$enableval" = "no"
5893then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005895$as_echo "Not building uuidd" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05005896 UUIDD_CMT="#"
5897else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005898 $as_echo "#define USE_UUIDD 1" >>confdefs.h
Theodore Ts'o5610f992007-12-31 11:16:56 -05005899
5900 UUIDD_CMT=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005902$as_echo "Building uuidd" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05005903fi
5904
5905else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005906 $as_echo "#define USE_UUIDD 1" >>confdefs.h
Theodore Ts'o5610f992007-12-31 11:16:56 -05005907
Theodore Ts'oe3d10152014-09-19 00:26:26 -04005908if test -z "$UUID_CMT"
5909then
5910 UUIDD_CMT=""
5911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005912$as_echo "Building uuidd by default" >&6; }
Theodore Ts'oe3d10152014-09-19 00:26:26 -04005913else
5914 UUIDD_CMT="#"
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling uuidd by default" >&5
5916$as_echo "Disabling uuidd by default" >&6; }
5917fi
Theodore Ts'o5610f992007-12-31 11:16:56 -05005918
5919fi
5920
5921
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005922
5923# Check whether --enable-mmp was given.
5924if test "${enable_mmp+set}" = set; then :
5925 enableval=$enable_mmp; if test "$enableval" = "no"
5926then
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5
5928$as_echo "Disabling mmp support" >&6; }
5929else
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5
5931$as_echo "Enabling mmp support" >&6; }
5932 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
5933
5934fi
5935
5936else
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
5938$as_echo "Enabling mmp support by default" >&6; }
5939$as_echo "#define CONFIG_MMP 1" >>confdefs.h
5940
5941
5942fi
5943
Tony Breeds1625bf42012-07-30 14:44:12 -04005944
Theodore Ts'o749f0712016-05-29 20:48:54 -04005945# Check whether --enable-tdb was given.
5946if test "${enable_tdb+set}" = set; then :
5947 enableval=$enable_tdb; if test "$enableval" = "no"
5948then
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling tdb support" >&5
5950$as_echo "Disabling tdb support" >&6; }
5951 TDB_CMT="#"
5952 TDB_MAN_COMMENT='.\"'
5953else
5954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling tdb support" >&5
5955$as_echo "Enabling tdb support" >&6; }
5956 $as_echo "#define CONFIG_TDB 1" >>confdefs.h
5957
5958 TDB_CMT=""
5959 TDB_MAN_COMMENT=""
5960fi
5961
5962else
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
5964$as_echo "Enabling mmp support by default" >&6; }
5965$as_echo "#define CONFIG_TDB 1" >>confdefs.h
5966
5967TDB_CMT=""
5968TDB_MAN_COMMENT=""
5969
5970fi
5971
5972
5973
5974
Tony Breeds1625bf42012-07-30 14:44:12 -04005975# Check whether --enable-bmap-stats was given.
5976if test "${enable_bmap_stats+set}" = set; then :
5977 enableval=$enable_bmap_stats; if test "$enableval" = "no"
5978then
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5
5980$as_echo "Disabling bitmap statistics support" >&6; }
5981else
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5
5983$as_echo "Enabling bitmap statistics support" >&6; }
5984 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
5985
5986fi
5987
5988else
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5
5990$as_echo "Enabling bitmap statistics support by default" >&6; }
5991$as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
5992
5993
5994fi
5995
5996
5997# Check whether --enable-bmap-stats-ops was given.
5998if test "${enable_bmap_stats_ops+set}" = set; then :
5999 enableval=$enable_bmap_stats_ops; if test "$enableval" = "no"
6000then
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5
6002$as_echo "Disabling additional bitmap statistics" >&6; }
6003else
6004 if test "x${enable_bmap_stats}" = "xno"; then :
6005 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6006$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6007as_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats
6008See \`config.log' for more details" "$LINENO" 5; }
6009fi
6010
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5
6012$as_echo "Enabling additional bitmap statistics" >&6; }
6013 $as_echo "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h
6014
6015fi
6016
6017else
6018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5
6019$as_echo "Disabling additional bitmap statistics by default" >&6; }
6020
6021fi
6022
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00006023MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
6024
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006025GETTEXT_PACKAGE=e2fsprogs
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006026PACKAGE=e2fsprogs
6027VERSION="$E2FSPROGS_VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006028VERSION=0.14.1
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006029
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006030cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006031#define PACKAGE "$PACKAGE"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006032_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006033
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006034
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006035cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006036#define VERSION "$VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006037_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006038
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006039
6040
6041
6042
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006044$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6045set x ${MAKE-make}
6046ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006047if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006048 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006049else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006050 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006051SHELL = /bin/sh
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006052all:
Theodore Ts'oe1052142006-10-21 21:46:47 -04006053 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006054_ACEOF
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006055# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -04006056case `${MAKE-make} -f conftest.make 2>/dev/null` in
6057 *@@@%%%=?*=@@@%%%*)
6058 eval ac_cv_prog_make_${ac_make}_set=yes;;
6059 *)
6060 eval ac_cv_prog_make_${ac_make}_set=no;;
6061esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006062rm -f conftest.make
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006063fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006064if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006066$as_echo "yes" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006067 SET_MAKE=
6068else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006070$as_echo "no" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006071 SET_MAKE="MAKE=${MAKE-make}"
6072fi
6073
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006074# Find a good install program. We prefer a C program (faster),
6075# so one script is as good as another. But avoid the broken or
6076# incompatible versions:
6077# SysV /etc/install, /usr/sbin/install
6078# SunOS /usr/etc/install
6079# IRIX /sbin/install
6080# AIX /bin/install
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006081# AmigaOS /C/install, which installs bootblocks on floppy discs
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006082# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6083# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6084# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006085# OS/2's system install, which has a completely different semantic
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006086# ./install, which can be erroneously created by make from ./install.sh.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006087# Reject install programs that cannot install multiple files.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006089$as_echo_n "checking for a BSD-compatible install... " >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006090if test -z "$INSTALL"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006091if ${ac_cv_path_install+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006092 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006093else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6095for as_dir in $PATH
6096do
6097 IFS=$as_save_IFS
6098 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006099 # Account for people who put trailing slashes in PATH elements.
6100case $as_dir/ in #((
6101 ./ | .// | /[cC]/* | \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006102 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006103 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006104 /usr/ucb/* ) ;;
6105 *)
6106 # OSF1 and SCO ODT 3.0 have their own names for install.
6107 # Don't use installbsd from OSF since it installs stuff as root
6108 # by default.
6109 for ac_prog in ginstall scoinst install; do
6110 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006111 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006112 if test $ac_prog = install &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006113 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006114 # AIX install. It has an incompatible calling convention.
6115 :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006116 elif test $ac_prog = install &&
6117 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6118 # program-specific install script used by HP pwplus--don't use.
6119 :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006120 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006121 rm -rf conftest.one conftest.two conftest.dir
6122 echo one > conftest.one
6123 echo two > conftest.two
6124 mkdir conftest.dir
6125 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6126 test -s conftest.one && test -s conftest.two &&
6127 test -s conftest.dir/conftest.one &&
6128 test -s conftest.dir/conftest.two
6129 then
6130 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6131 break 3
6132 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006133 fi
6134 fi
6135 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006136 done
6137 ;;
6138esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006139
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006140 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04006141IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006142
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006143rm -rf conftest.one conftest.two conftest.dir
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006144
6145fi
6146 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006147 INSTALL=$ac_cv_path_install
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006148 else
Theodore Ts'oe1052142006-10-21 21:46:47 -04006149 # As a last resort, use the slow shell script. Don't cache a
6150 # value for INSTALL within a source directory, because that will
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006151 # break other packages using the cache if that directory is
Theodore Ts'oe1052142006-10-21 21:46:47 -04006152 # removed, or if the value is a relative name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006153 INSTALL=$ac_install_sh
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006154 fi
6155fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006157$as_echo "$INSTALL" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006158
6159# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6160# It thinks the first close brace ends the variable substitution.
6161test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6162
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006163test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006164
6165test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6166
Theodore Ts'o93613952014-07-03 23:44:13 -04006167{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6168$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6169if test -z "$MKDIR_P"; then
6170 if ${ac_cv_path_mkdir+:} false; then :
6171 $as_echo_n "(cached) " >&6
6172else
6173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6174for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6175do
6176 IFS=$as_save_IFS
6177 test -z "$as_dir" && as_dir=.
6178 for ac_prog in mkdir gmkdir; do
6179 for ac_exec_ext in '' $ac_executable_extensions; do
6180 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
6181 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6182 'mkdir (GNU coreutils) '* | \
6183 'mkdir (coreutils) '* | \
6184 'mkdir (fileutils) '4.1*)
6185 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6186 break 3;;
6187 esac
6188 done
6189 done
6190 done
6191IFS=$as_save_IFS
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006192
Theodore Ts'o93613952014-07-03 23:44:13 -04006193fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006194
Theodore Ts'o93613952014-07-03 23:44:13 -04006195 test -d ./--version && rmdir ./--version
6196 if test "${ac_cv_path_mkdir+set}" = set; then
6197 MKDIR_P="$ac_cv_path_mkdir -p"
6198 else
6199 # As a last resort, use the slow shell script. Don't cache a
6200 # value for MKDIR_P within a source directory, because that will
6201 # break other packages using the cache if that directory is
6202 # removed, or if the value is a relative name.
6203 MKDIR_P="$ac_install_sh -d"
6204 fi
6205fi
6206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6207$as_echo "$MKDIR_P" >&6; }
6208
6209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6210$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6211if ${ac_cv_path_SED+:} false; then :
6212 $as_echo_n "(cached) " >&6
6213else
6214 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6215 for ac_i in 1 2 3 4 5 6 7; do
6216 ac_script="$ac_script$as_nl$ac_script"
6217 done
6218 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6219 { ac_script=; unset ac_script;}
6220 if test -z "$SED"; then
6221 ac_path_SED_found=false
6222 # Loop through the user's path and test for each of PROGNAME-LIST
6223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6224for as_dir in $PATH
6225do
6226 IFS=$as_save_IFS
6227 test -z "$as_dir" && as_dir=.
6228 for ac_prog in sed gsed; do
6229 for ac_exec_ext in '' $ac_executable_extensions; do
6230 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6231 as_fn_executable_p "$ac_path_SED" || continue
6232# Check for GNU ac_path_SED and select it if it is found.
6233 # Check for GNU $ac_path_SED
6234case `"$ac_path_SED" --version 2>&1` in
6235*GNU*)
6236 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6237*)
6238 ac_count=0
6239 $as_echo_n 0123456789 >"conftest.in"
6240 while :
6241 do
6242 cat "conftest.in" "conftest.in" >"conftest.tmp"
6243 mv "conftest.tmp" "conftest.in"
6244 cp "conftest.in" "conftest.nl"
6245 $as_echo '' >> "conftest.nl"
6246 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6247 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6248 as_fn_arith $ac_count + 1 && ac_count=$as_val
6249 if test $ac_count -gt ${ac_path_SED_max-0}; then
6250 # Best one so far, save it but keep looking for a better one
6251 ac_cv_path_SED="$ac_path_SED"
6252 ac_path_SED_max=$ac_count
6253 fi
6254 # 10*(2^10) chars as input seems more than enough
6255 test $ac_count -gt 10 && break
6256 done
6257 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6258esac
6259
6260 $ac_path_SED_found && break 3
6261 done
6262 done
6263 done
6264IFS=$as_save_IFS
6265 if test -z "$ac_cv_path_SED"; then
6266 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6267 fi
6268else
6269 ac_cv_path_SED=$SED
6270fi
6271
6272fi
6273{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6274$as_echo "$ac_cv_path_SED" >&6; }
6275 SED="$ac_cv_path_SED"
6276 rm -f conftest.sed
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006277
6278
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006280$as_echo_n "checking whether NLS is requested... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04006281 # Check whether --enable-nls was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006282if test "${enable_nls+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04006283 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006284else
6285 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04006286fi
6287
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006289$as_echo "$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006290
6291
6292
6293
Theodore Ts'o93613952014-07-03 23:44:13 -04006294 GETTEXT_MACRO_VERSION=0.18
6295
6296
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006297
6298
6299# Prepare PATH_SEPARATOR.
6300# The user is always right.
6301if test "${PATH_SEPARATOR+set}" != set; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006302 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6303 # contains only /bin. Note that ksh looks also at the FPATH variable,
6304 # so we have to set that as well for the test.
6305 PATH_SEPARATOR=:
6306 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6307 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6308 || PATH_SEPARATOR=';'
6309 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006310fi
6311
6312# Find out how to test for executable files. Don't use a zero-byte file,
6313# as systems may use methods other than mode bits to determine executability.
6314cat >conf$$.file <<_ASEOF
6315#! /bin/sh
6316exit 0
6317_ASEOF
6318chmod +x conf$$.file
6319if test -x conf$$.file >/dev/null 2>&1; then
6320 ac_executable_p="test -x"
6321else
6322 ac_executable_p="test -f"
6323fi
6324rm -f conf$$.file
6325
6326# Extract the first word of "msgfmt", so it can be a program name with args.
6327set dummy msgfmt; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006329$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006330if ${ac_cv_path_MSGFMT+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006331 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006332else
6333 case "$MSGFMT" in
6334 [\\/]* | ?:[\\/]*)
6335 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6336 ;;
6337 *)
6338 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6339 for ac_dir in $PATH; do
6340 IFS="$ac_save_IFS"
6341 test -z "$ac_dir" && ac_dir=.
6342 for ac_exec_ext in '' $ac_executable_extensions; do
6343 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006344 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6345 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006346 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6347 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6348 break 2
6349 fi
6350 fi
6351 done
6352 done
6353 IFS="$ac_save_IFS"
6354 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6355 ;;
6356esac
6357fi
6358MSGFMT="$ac_cv_path_MSGFMT"
6359if test "$MSGFMT" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006361$as_echo "$MSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006362else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006364$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006365fi
6366
6367 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6368set dummy gmsgfmt; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006370$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006371if ${ac_cv_path_GMSGFMT+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006372 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006373else
6374 case $GMSGFMT in
6375 [\\/]* | ?:[\\/]*)
6376 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6377 ;;
6378 *)
6379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6380for as_dir in $PATH
6381do
6382 IFS=$as_save_IFS
6383 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006384 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006386 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006388 break 2
6389 fi
6390done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006391 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04006392IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006393
6394 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6395 ;;
6396esac
6397fi
6398GMSGFMT=$ac_cv_path_GMSGFMT
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006399if test -n "$GMSGFMT"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006401$as_echo "$GMSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006402else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006404$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006405fi
6406
6407
6408
Theodore Ts'o93613952014-07-03 23:44:13 -04006409 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6410 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
6411 *) MSGFMT_015=$MSGFMT ;;
6412 esac
6413
6414 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6415 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
6416 *) GMSGFMT_015=$GMSGFMT ;;
6417 esac
6418
6419
Theodore Ts'oe1052142006-10-21 21:46:47 -04006420
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006421# Prepare PATH_SEPARATOR.
6422# The user is always right.
6423if test "${PATH_SEPARATOR+set}" != set; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006424 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6425 # contains only /bin. Note that ksh looks also at the FPATH variable,
6426 # so we have to set that as well for the test.
6427 PATH_SEPARATOR=:
6428 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6429 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6430 || PATH_SEPARATOR=';'
6431 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006432fi
6433
6434# Find out how to test for executable files. Don't use a zero-byte file,
6435# as systems may use methods other than mode bits to determine executability.
6436cat >conf$$.file <<_ASEOF
6437#! /bin/sh
6438exit 0
6439_ASEOF
6440chmod +x conf$$.file
6441if test -x conf$$.file >/dev/null 2>&1; then
6442 ac_executable_p="test -x"
6443else
6444 ac_executable_p="test -f"
6445fi
6446rm -f conf$$.file
6447
6448# Extract the first word of "xgettext", so it can be a program name with args.
6449set dummy xgettext; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006451$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006452if ${ac_cv_path_XGETTEXT+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006453 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006454else
6455 case "$XGETTEXT" in
6456 [\\/]* | ?:[\\/]*)
6457 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6458 ;;
6459 *)
6460 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6461 for ac_dir in $PATH; do
6462 IFS="$ac_save_IFS"
6463 test -z "$ac_dir" && ac_dir=.
6464 for ac_exec_ext in '' $ac_executable_extensions; do
6465 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006466 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6467 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 -05006468 (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
6469 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6470 break 2
6471 fi
6472 fi
6473 done
6474 done
6475 IFS="$ac_save_IFS"
6476 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6477 ;;
6478esac
6479fi
6480XGETTEXT="$ac_cv_path_XGETTEXT"
6481if test "$XGETTEXT" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006483$as_echo "$XGETTEXT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006484else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006486$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006487fi
6488
6489 rm -f messages.po
6490
Theodore Ts'o93613952014-07-03 23:44:13 -04006491 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6492 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
6493 *) XGETTEXT_015=$XGETTEXT ;;
6494 esac
6495
6496
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006497
6498# Prepare PATH_SEPARATOR.
6499# The user is always right.
6500if test "${PATH_SEPARATOR+set}" != set; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006501 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6502 # contains only /bin. Note that ksh looks also at the FPATH variable,
6503 # so we have to set that as well for the test.
6504 PATH_SEPARATOR=:
6505 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6506 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6507 || PATH_SEPARATOR=';'
6508 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006509fi
6510
6511# Find out how to test for executable files. Don't use a zero-byte file,
6512# as systems may use methods other than mode bits to determine executability.
6513cat >conf$$.file <<_ASEOF
6514#! /bin/sh
6515exit 0
6516_ASEOF
6517chmod +x conf$$.file
6518if test -x conf$$.file >/dev/null 2>&1; then
6519 ac_executable_p="test -x"
6520else
6521 ac_executable_p="test -f"
6522fi
6523rm -f conf$$.file
6524
6525# Extract the first word of "msgmerge", so it can be a program name with args.
6526set dummy msgmerge; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006528$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006529if ${ac_cv_path_MSGMERGE+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006530 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006531else
6532 case "$MSGMERGE" in
6533 [\\/]* | ?:[\\/]*)
6534 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6535 ;;
6536 *)
6537 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6538 for ac_dir in $PATH; do
6539 IFS="$ac_save_IFS"
6540 test -z "$ac_dir" && ac_dir=.
6541 for ac_exec_ext in '' $ac_executable_extensions; do
6542 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006543 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6544 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006545 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6546 break 2
6547 fi
6548 fi
6549 done
6550 done
6551 IFS="$ac_save_IFS"
6552 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6553 ;;
6554esac
6555fi
6556MSGMERGE="$ac_cv_path_MSGMERGE"
6557if test "$MSGMERGE" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006559$as_echo "$MSGMERGE" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006560else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006562$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006563fi
6564
6565
Theodore Ts'o93613952014-07-03 23:44:13 -04006566 test -n "$localedir" || localedir='${datadir}/locale'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006567
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006568
Theodore Ts'o93613952014-07-03 23:44:13 -04006569 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
6570
6571
6572 ac_config_commands="$ac_config_commands po-directories"
6573
6574
6575
6576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
6577$as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
6578if ${ac_cv_gnu_library_2+:} false; then :
6579 $as_echo_n "(cached) " >&6
6580else
6581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6582/* end confdefs.h. */
6583
6584#include <features.h>
6585#ifdef __GNU_LIBRARY__
6586 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
6587 Lucky GNU user
6588 #endif
6589#endif
6590
6591_ACEOF
6592if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6593 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
6594 ac_cv_gnu_library_2=yes
6595else
6596 ac_cv_gnu_library_2=no
6597fi
6598rm -f conftest*
6599
6600
6601
6602fi
6603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
6604$as_echo "$ac_cv_gnu_library_2" >&6; }
6605
6606 GLIBC2="$ac_cv_gnu_library_2"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006607
6608
6609if test -n "$ac_tool_prefix"; then
6610 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6611set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006613$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006614if ${ac_cv_prog_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006615 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006616else
6617 if test -n "$RANLIB"; then
6618 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6619else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6621for as_dir in $PATH
6622do
6623 IFS=$as_save_IFS
6624 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006625 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006627 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006629 break 2
6630 fi
6631done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006632 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04006633IFS=$as_save_IFS
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006634
6635fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006636fi
6637RANLIB=$ac_cv_prog_RANLIB
6638if test -n "$RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006640$as_echo "$RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006641else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006643$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006644fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006645
Theodore Ts'oe1052142006-10-21 21:46:47 -04006646
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006647fi
6648if test -z "$ac_cv_prog_RANLIB"; then
6649 ac_ct_RANLIB=$RANLIB
6650 # Extract the first word of "ranlib", so it can be a program name with args.
6651set dummy ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006653$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006654if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006655 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006656else
6657 if test -n "$ac_ct_RANLIB"; then
6658 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6659else
6660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6661for as_dir in $PATH
6662do
6663 IFS=$as_save_IFS
6664 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006665 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006667 ac_cv_prog_ac_ct_RANLIB="ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006669 break 2
6670 fi
6671done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006672 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04006673IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006674
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006675fi
6676fi
6677ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6678if test -n "$ac_ct_RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006680$as_echo "$ac_ct_RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006681else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006683$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006684fi
6685
Theodore Ts'oe1052142006-10-21 21:46:47 -04006686 if test "x$ac_ct_RANLIB" = x; then
6687 RANLIB=":"
6688 else
6689 case $cross_compiling:$ac_tool_warned in
6690yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006691{ $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 +01006692$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04006693ac_tool_warned=yes ;;
6694esac
6695 RANLIB=$ac_ct_RANLIB
6696 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006697else
6698 RANLIB="$ac_cv_prog_RANLIB"
6699fi
6700
6701
Theodore Ts'o93613952014-07-03 23:44:13 -04006702
6703 CFLAG_VISIBILITY=
6704 HAVE_VISIBILITY=0
6705 if test -n "$GCC"; then
6706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
6707$as_echo_n "checking whether the -Werror option is usable... " >&6; }
6708 if ${gl_cv_cc_vis_werror+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006709 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006710else
Theodore Ts'o93613952014-07-03 23:44:13 -04006711
6712 gl_save_CFLAGS="$CFLAGS"
6713 CFLAGS="$CFLAGS -Werror"
6714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006715/* end confdefs.h. */
6716
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006717int
6718main ()
6719{
Theodore Ts'o93613952014-07-03 23:44:13 -04006720
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006721 ;
6722 return 0;
6723}
6724_ACEOF
Theodore Ts'o93613952014-07-03 23:44:13 -04006725if ac_fn_c_try_compile "$LINENO"; then :
6726 gl_cv_cc_vis_werror=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006727else
Theodore Ts'o93613952014-07-03 23:44:13 -04006728 gl_cv_cc_vis_werror=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006729fi
Theodore Ts'o93613952014-07-03 23:44:13 -04006730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6731 CFLAGS="$gl_save_CFLAGS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006732fi
6733
Theodore Ts'o93613952014-07-03 23:44:13 -04006734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
6735$as_echo "$gl_cv_cc_vis_werror" >&6; }
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
6737$as_echo_n "checking for simple visibility declarations... " >&6; }
6738 if ${gl_cv_cc_visibility+:} false; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006739 $as_echo_n "(cached) " >&6
6740else
Theodore Ts'o93613952014-07-03 23:44:13 -04006741
6742 gl_save_CFLAGS="$CFLAGS"
6743 CFLAGS="$CFLAGS -fvisibility=hidden"
6744 if test $gl_cv_cc_vis_werror = yes; then
6745 CFLAGS="$CFLAGS -Werror"
6746 fi
6747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6748/* end confdefs.h. */
6749extern __attribute__((__visibility__("hidden"))) int hiddenvar;
6750 extern __attribute__((__visibility__("default"))) int exportedvar;
6751 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
6752 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
6753 void dummyfunc (void) {}
6754
6755int
6756main ()
6757{
6758
6759 ;
6760 return 0;
6761}
6762_ACEOF
6763if ac_fn_c_try_compile "$LINENO"; then :
6764 gl_cv_cc_visibility=yes
6765else
6766 gl_cv_cc_visibility=no
6767fi
6768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6769 CFLAGS="$gl_save_CFLAGS"
6770fi
6771
6772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
6773$as_echo "$gl_cv_cc_visibility" >&6; }
6774 if test $gl_cv_cc_visibility = yes; then
6775 CFLAG_VISIBILITY="-fvisibility=hidden"
6776 HAVE_VISIBILITY=1
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006777 fi
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006778 fi
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006779
6780
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006781
Theodore Ts'o93613952014-07-03 23:44:13 -04006782cat >>confdefs.h <<_ACEOF
6783#define HAVE_VISIBILITY $HAVE_VISIBILITY
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006784_ACEOF
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006785
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006786
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006788$as_echo_n "checking for inline... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006789if ${ac_cv_c_inline+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006790 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006791else
6792 ac_cv_c_inline=no
6793for ac_kw in inline __inline__ __inline; do
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006795/* end confdefs.h. */
6796#ifndef __cplusplus
6797typedef int foo_t;
6798static $ac_kw foo_t static_foo () {return 0; }
6799$ac_kw foo_t foo () {return 0; }
6800#endif
6801
6802_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006803if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04006804 ac_cv_c_inline=$ac_kw
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006805fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6807 test "$ac_cv_c_inline" != no && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006808done
6809
6810fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006812$as_echo "$ac_cv_c_inline" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006813
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006814case $ac_cv_c_inline in
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006815 inline | yes) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006816 *)
6817 case $ac_cv_c_inline in
6818 no) ac_val=;;
6819 *) ac_val=$ac_cv_c_inline;;
6820 esac
6821 cat >>confdefs.h <<_ACEOF
6822#ifndef __cplusplus
6823#define inline $ac_val
6824#endif
6825_ACEOF
6826 ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006827esac
6828
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006829ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006830if test "x$ac_cv_type_size_t" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006831
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006832else
6833
6834cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006835#define size_t unsigned int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006836_ACEOF
6837
6838fi
6839
6840
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006842$as_echo_n "checking for stdint.h... " >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04006843if ${gl_cv_header_stdint_h+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006844 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006845else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006847/* end confdefs.h. */
6848#include <sys/types.h>
Theodore Ts'o93613952014-07-03 23:44:13 -04006849 #include <stdint.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006850int
6851main ()
6852{
Theodore Ts'o93613952014-07-03 23:44:13 -04006853uintmax_t i = (uintmax_t) -1; return !i;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006854 ;
6855 return 0;
6856}
6857_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006858if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o93613952014-07-03 23:44:13 -04006859 gl_cv_header_stdint_h=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006860else
Theodore Ts'o93613952014-07-03 23:44:13 -04006861 gl_cv_header_stdint_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006862fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006864fi
Theodore Ts'o93613952014-07-03 23:44:13 -04006865{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
6866$as_echo "$gl_cv_header_stdint_h" >&6; }
6867 if test $gl_cv_header_stdint_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006868
6869cat >>confdefs.h <<_ACEOF
6870#define HAVE_STDINT_H_WITH_UINTMAX 1
6871_ACEOF
6872
6873 fi
6874
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006875# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6876# for constant arguments. Useless!
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006878$as_echo_n "checking for working alloca.h... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006879if ${ac_cv_working_alloca_h+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006880 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006881else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006883/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006884#include <alloca.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006885int
6886main ()
6887{
6888char *p = (char *) alloca (2 * sizeof (int));
Theodore Ts'oe1052142006-10-21 21:46:47 -04006889 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006890 ;
6891 return 0;
6892}
6893_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006894if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006895 ac_cv_working_alloca_h=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006896else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006897 ac_cv_working_alloca_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006898fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006899rm -f core conftest.err conftest.$ac_objext \
6900 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006901fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006903$as_echo "$ac_cv_working_alloca_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006904if test $ac_cv_working_alloca_h = yes; then
6905
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006906$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006907
6908fi
6909
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006911$as_echo_n "checking for alloca... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006912if ${ac_cv_func_alloca_works+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006913 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006914else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006916/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006917#ifdef __GNUC__
6918# define alloca __builtin_alloca
6919#else
6920# ifdef _MSC_VER
6921# include <malloc.h>
6922# define alloca _alloca
6923# else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006924# ifdef HAVE_ALLOCA_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006925# include <alloca.h>
6926# else
6927# ifdef _AIX
6928 #pragma alloca
6929# else
6930# ifndef alloca /* predefined by HP cc +Olibcalls */
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006931void *alloca (size_t);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006932# endif
6933# endif
6934# endif
6935# endif
6936#endif
6937
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006938int
6939main ()
6940{
6941char *p = (char *) alloca (1);
Theodore Ts'oe1052142006-10-21 21:46:47 -04006942 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006943 ;
6944 return 0;
6945}
6946_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006947if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006948 ac_cv_func_alloca_works=yes
6949else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006950 ac_cv_func_alloca_works=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006951fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006952rm -f core conftest.err conftest.$ac_objext \
6953 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006954fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006956$as_echo "$ac_cv_func_alloca_works" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006957
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006958if test $ac_cv_func_alloca_works = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006959
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006960$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006961
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006962else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006963 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6964# that cause trouble. Some versions do not even contain alloca or
6965# contain a buggy version. If you still want to use their alloca,
6966# use ar to extract alloca.o from them instead of compiling alloca.c.
6967
Theodore Ts'oe1052142006-10-21 21:46:47 -04006968ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006969
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006970$as_echo "#define C_ALLOCA 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006971
6972
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006973{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006974$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006975if ${ac_cv_os_cray+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006976 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006977else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006979/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006980#if defined CRAY && ! defined CRAY2
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006981webecray
6982#else
6983wenotbecray
6984#endif
6985
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006986_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006987if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006988 $EGREP "webecray" >/dev/null 2>&1; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006989 ac_cv_os_cray=yes
6990else
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006991 ac_cv_os_cray=no
6992fi
6993rm -f conftest*
6994
6995fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006997$as_echo "$ac_cv_os_cray" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006998if test $ac_cv_os_cray = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006999 for ac_func in _getb67 GETB67 getb67; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007000 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007001ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007002if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007003
7004cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007005#define CRAY_STACKSEG_END $ac_func
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007006_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007007
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007008 break
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007009fi
7010
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007011 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007012fi
7013
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007015$as_echo_n "checking stack direction for C alloca... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007016if ${ac_cv_c_stack_direction+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007017 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007018else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007019 if test "$cross_compiling" = yes; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007020 ac_cv_c_stack_direction=0
7021else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007023/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04007024$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007025int
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007026find_stack_direction (int *addr, int depth)
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007027{
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007028 int dir, dummy = 0;
7029 if (! addr)
7030 addr = &dummy;
7031 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7032 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7033 return dir + dummy;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007034}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007035
7036int
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007037main (int argc, char **argv)
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007038{
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007039 return find_stack_direction (0, argc + !argv + 20) < 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007040}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007041_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007042if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007043 ac_cv_c_stack_direction=1
7044else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007045 ac_cv_c_stack_direction=-1
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007046fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007047rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7048 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007049fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007050
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007051fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007053$as_echo "$ac_cv_c_stack_direction" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007054cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007055#define STACK_DIRECTION $ac_cv_c_stack_direction
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007056_ACEOF
7057
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007058
7059fi
7060
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007061
7062
7063
7064 for ac_header in $ac_header_list
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007065do :
7066 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007067ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7068"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007069if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007070 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007071#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007072_ACEOF
7073
7074fi
7075
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007076done
7077
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007078
7079
7080
7081
7082
7083
7084
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007085for ac_func in getpagesize
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007086do :
7087 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007088if test "x$ac_cv_func_getpagesize" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007089 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007090#define HAVE_GETPAGESIZE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007091_ACEOF
7092
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007093fi
7094done
7095
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007097$as_echo_n "checking for working mmap... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007098if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007099 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007100else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007101 if test "$cross_compiling" = yes; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007102 ac_cv_func_mmap_fixed_mapped=no
7103else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007105/* end confdefs.h. */
7106$ac_includes_default
7107/* malloc might have been renamed as rpl_malloc. */
7108#undef malloc
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007109
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007110/* Thanks to Mike Haertel and Jim Avera for this test.
7111 Here is a matrix of mmap possibilities:
7112 mmap private not fixed
7113 mmap private fixed at somewhere currently unmapped
7114 mmap private fixed at somewhere already mapped
7115 mmap shared not fixed
7116 mmap shared fixed at somewhere currently unmapped
7117 mmap shared fixed at somewhere already mapped
7118 For private mappings, we should verify that changes cannot be read()
7119 back from the file, nor mmap's back from the file at a different
7120 address. (There have been systems where private was not correctly
7121 implemented like the infamous i386 svr4.0, and systems where the
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007122 VM page cache was not coherent with the file system buffer cache
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007123 like early versions of FreeBSD and possibly contemporary NetBSD.)
7124 For shared mappings, we should conversely verify that changes get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007125 propagated back to all the places they're supposed to be.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007126
7127 Grep wants private fixed already mapped.
7128 The main things grep needs to know about mmap are:
7129 * does it exist and is it safe to write into the mmap'd area
7130 * how to use it (BSD variants) */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007131
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007132#include <fcntl.h>
7133#include <sys/mman.h>
7134
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007135#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007136char *malloc ();
7137#endif
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007138
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007139/* This mess was copied from the GNU getpagesize.h. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007140#ifndef HAVE_GETPAGESIZE
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007141# ifdef _SC_PAGESIZE
7142# define getpagesize() sysconf(_SC_PAGESIZE)
7143# else /* no _SC_PAGESIZE */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007144# ifdef HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007145# include <sys/param.h>
7146# ifdef EXEC_PAGESIZE
7147# define getpagesize() EXEC_PAGESIZE
7148# else /* no EXEC_PAGESIZE */
7149# ifdef NBPG
7150# define getpagesize() NBPG * CLSIZE
7151# ifndef CLSIZE
7152# define CLSIZE 1
7153# endif /* no CLSIZE */
7154# else /* no NBPG */
7155# ifdef NBPC
7156# define getpagesize() NBPC
7157# else /* no NBPC */
7158# ifdef PAGESIZE
7159# define getpagesize() PAGESIZE
7160# endif /* PAGESIZE */
7161# endif /* no NBPC */
7162# endif /* no NBPG */
7163# endif /* no EXEC_PAGESIZE */
7164# else /* no HAVE_SYS_PARAM_H */
7165# define getpagesize() 8192 /* punt totally */
7166# endif /* no HAVE_SYS_PARAM_H */
7167# endif /* no _SC_PAGESIZE */
7168
7169#endif /* no HAVE_GETPAGESIZE */
7170
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007171int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007172main ()
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007173{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007174 char *data, *data2, *data3;
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007175 const char *cdata2;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007176 int i, pagesize;
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007177 int fd, fd2;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007178
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007179 pagesize = getpagesize ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007180
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007181 /* First, make a file with some known garbage in it. */
7182 data = (char *) malloc (pagesize);
7183 if (!data)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007184 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007185 for (i = 0; i < pagesize; ++i)
7186 *(data + i) = rand ();
7187 umask (0);
7188 fd = creat ("conftest.mmap", 0600);
7189 if (fd < 0)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007190 return 2;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007191 if (write (fd, data, pagesize) != pagesize)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007192 return 3;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007193 close (fd);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007194
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007195 /* Next, check that the tail of a page is zero-filled. File must have
7196 non-zero length, otherwise we risk SIGBUS for entire page. */
7197 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7198 if (fd2 < 0)
7199 return 4;
7200 cdata2 = "";
7201 if (write (fd2, cdata2, 1) != 1)
7202 return 5;
7203 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7204 if (data2 == MAP_FAILED)
7205 return 6;
7206 for (i = 0; i < pagesize; ++i)
7207 if (*(data2 + i))
7208 return 7;
7209 close (fd2);
7210 if (munmap (data2, pagesize))
7211 return 8;
7212
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007213 /* Next, try to mmap the file at a fixed address which already has
7214 something else allocated at it. If we can, also make sure that
7215 we see the same garbage. */
7216 fd = open ("conftest.mmap", O_RDWR);
7217 if (fd < 0)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007218 return 9;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007219 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7220 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007221 return 10;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007222 for (i = 0; i < pagesize; ++i)
7223 if (*(data + i) != *(data2 + i))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007224 return 11;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007225
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007226 /* Finally, make sure that changes to the mapped area do not
7227 percolate back to the file as seen by read(). (This is a bug on
7228 some variants of i386 svr4.0.) */
7229 for (i = 0; i < pagesize; ++i)
7230 *(data2 + i) = *(data2 + i) + 1;
7231 data3 = (char *) malloc (pagesize);
7232 if (!data3)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007233 return 12;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007234 if (read (fd, data3, pagesize) != pagesize)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007235 return 13;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007236 for (i = 0; i < pagesize; ++i)
7237 if (*(data + i) != *(data3 + i))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007238 return 14;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007239 close (fd);
Theodore Ts'oe1052142006-10-21 21:46:47 -04007240 return 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007241}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007242_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007243if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007244 ac_cv_func_mmap_fixed_mapped=yes
7245else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007246 ac_cv_func_mmap_fixed_mapped=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007247fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007248rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7249 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007250fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007251
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007252fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007254$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007255if test $ac_cv_func_mmap_fixed_mapped = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007256
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007257$as_echo "#define HAVE_MMAP 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007258
7259fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007260rm -f conftest.mmap conftest.txt
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007261
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007262
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007263
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007265$as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007266if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007267 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007268else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007269
Theodore Ts'o93613952014-07-03 23:44:13 -04007270 gt_cv_int_divbyzero_sigfpe=
7271 case "$host_os" in
7272 macos* | darwin[6-9]* | darwin[1-9][0-9]*)
7273 # On Mac OS X 10.2 or newer, just assume the same as when cross-
7274 # compiling. If we were to perform the real test, 1 Crash Report
7275 # dialog window would pop up.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007276 case "$host_cpu" in
Theodore Ts'o93613952014-07-03 23:44:13 -04007277 i[34567]86 | x86_64)
7278 gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007279 esac
Theodore Ts'o93613952014-07-03 23:44:13 -04007280 ;;
7281 esac
7282 if test -z "$gt_cv_int_divbyzero_sigfpe"; then
7283 if test "$cross_compiling" = yes; then :
7284
7285 # Guess based on the CPU.
7286 case "$host_cpu" in
7287 alpha* | i[34567]86 | x86_64 | m68k | s390*)
7288 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7289 *)
7290 gt_cv_int_divbyzero_sigfpe="guessing no";;
7291 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007292
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007293else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007295/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007296
7297#include <stdlib.h>
7298#include <signal.h>
7299
7300static void
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007301sigfpe_handler (int sig)
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007302{
7303 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7304 exit (sig != SIGFPE);
7305}
7306
7307int x = 1;
7308int y = 0;
7309int z;
7310int nan;
7311
7312int main ()
7313{
7314 signal (SIGFPE, sigfpe_handler);
7315/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7316#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7317 signal (SIGTRAP, sigfpe_handler);
7318#endif
7319/* Linux/SPARC yields signal SIGILL. */
7320#if defined (__sparc__) && defined (__linux__)
7321 signal (SIGILL, sigfpe_handler);
7322#endif
7323
7324 z = x / y;
7325 nan = y / y;
Theodore Ts'o93613952014-07-03 23:44:13 -04007326 exit (2);
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007327}
7328
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007329_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007330if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007331 gt_cv_int_divbyzero_sigfpe=yes
7332else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007333 gt_cv_int_divbyzero_sigfpe=no
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007334fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007335rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7336 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007337fi
7338
Theodore Ts'o93613952014-07-03 23:44:13 -04007339 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007340
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007341fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007343$as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007344 case "$gt_cv_int_divbyzero_sigfpe" in
7345 *yes) value=1;;
7346 *) value=0;;
7347 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007348
7349cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007350#define INTDIV0_RAISES_SIGFPE $value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007351_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007352
7353
7354
Theodore Ts'o93613952014-07-03 23:44:13 -04007355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7356$as_echo_n "checking for inttypes.h... " >&6; }
7357if ${gl_cv_header_inttypes_h+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007358 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007359else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007361/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -04007362
7363#include <sys/types.h>
7364#include <inttypes.h>
7365
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007366int
7367main ()
7368{
Theodore Ts'o93613952014-07-03 23:44:13 -04007369uintmax_t i = (uintmax_t) -1; return !i;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007370 ;
7371 return 0;
7372}
7373_ACEOF
Theodore Ts'o93613952014-07-03 23:44:13 -04007374if ac_fn_c_try_compile "$LINENO"; then :
7375 gl_cv_header_inttypes_h=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007376else
Theodore Ts'o93613952014-07-03 23:44:13 -04007377 gl_cv_header_inttypes_h=no
7378fi
7379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7380fi
7381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
7382$as_echo "$gl_cv_header_inttypes_h" >&6; }
7383 if test $gl_cv_header_inttypes_h = yes; then
7384
7385cat >>confdefs.h <<_ACEOF
7386#define HAVE_INTTYPES_H_WITH_UINTMAX 1
7387_ACEOF
7388
7389 fi
7390
7391
7392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
7393$as_echo_n "checking for unsigned long long int... " >&6; }
7394if ${ac_cv_type_unsigned_long_long_int+:} false; then :
7395 $as_echo_n "(cached) " >&6
7396else
7397 ac_cv_type_unsigned_long_long_int=yes
7398 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7400/* end confdefs.h. */
7401
7402 /* For now, do not test the preprocessor; as of 2007 there are too many
7403 implementations with broken preprocessors. Perhaps this can
7404 be revisited in 2012. In the meantime, code should not expect
7405 #if to work with literals wider than 32 bits. */
7406 /* Test literals. */
7407 long long int ll = 9223372036854775807ll;
7408 long long int nll = -9223372036854775807LL;
7409 unsigned long long int ull = 18446744073709551615ULL;
7410 /* Test constant expressions. */
7411 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7412 ? 1 : -1)];
7413 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7414 ? 1 : -1)];
7415 int i = 63;
7416int
7417main ()
7418{
7419/* Test availability of runtime routines for shift and division. */
7420 long long int llmax = 9223372036854775807ll;
7421 unsigned long long int ullmax = 18446744073709551615ull;
7422 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7423 | (llmax / ll) | (llmax % ll)
7424 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7425 | (ullmax / ull) | (ullmax % ull));
7426 ;
7427 return 0;
7428}
7429
7430_ACEOF
7431if ac_fn_c_try_link "$LINENO"; then :
7432
7433else
7434 ac_cv_type_unsigned_long_long_int=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007435fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007436rm -f core conftest.err conftest.$ac_objext \
7437 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o93613952014-07-03 23:44:13 -04007438 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007439fi
Theodore Ts'o93613952014-07-03 23:44:13 -04007440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
7441$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
7442 if test $ac_cv_type_unsigned_long_long_int = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007443
Theodore Ts'o93613952014-07-03 23:44:13 -04007444$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007445
7446 fi
7447
7448
7449
7450
Theodore Ts'o93613952014-07-03 23:44:13 -04007451 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007452
Theodore Ts'o93613952014-07-03 23:44:13 -04007453 test $ac_cv_type_unsigned_long_long_int = yes \
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007454 && ac_type='unsigned long long' \
7455 || ac_type='unsigned long'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007456
7457cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007458#define uintmax_t $ac_type
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007459_ACEOF
7460
7461 else
7462
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007463$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007464
7465 fi
7466
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007467
Theodore Ts'o93613952014-07-03 23:44:13 -04007468 for ac_header in inttypes.h
7469do :
7470 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
7471if test "x$ac_cv_header_inttypes_h" = xyes; then :
7472 cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007473#define HAVE_INTTYPES_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007474_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007475
Theodore Ts'o93613952014-07-03 23:44:13 -04007476fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007477
Theodore Ts'o93613952014-07-03 23:44:13 -04007478done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007479
Theodore Ts'o93613952014-07-03 23:44:13 -04007480 if test $ac_cv_header_inttypes_h = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007481 { $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 +01007482$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007483if ${gt_cv_inttypes_pri_broken+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007484 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007485else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007486
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007488/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -04007489
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007490#include <inttypes.h>
7491#ifdef PRId32
7492char *p = PRId32;
7493#endif
7494
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007495int
7496main ()
7497{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007498
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007499 ;
7500 return 0;
7501}
7502_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007503if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007504 gt_cv_inttypes_pri_broken=no
7505else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007506 gt_cv_inttypes_pri_broken=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007507fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007509
7510fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007512$as_echo "$gt_cv_inttypes_pri_broken" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007513 fi
7514 if test "$gt_cv_inttypes_pri_broken" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007515
7516cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007517#define PRI_MACROS_BROKEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007518_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007519
Theodore Ts'o93613952014-07-03 23:44:13 -04007520 PRI_MACROS_BROKEN=1
7521 else
7522 PRI_MACROS_BROKEN=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007523 fi
7524
7525
7526
Theodore Ts'o93613952014-07-03 23:44:13 -04007527
7528
7529
7530
7531 # Check whether --enable-threads was given.
7532if test "${enable_threads+set}" = set; then :
7533 enableval=$enable_threads; gl_use_threads=$enableval
7534else
7535 if test -n "$gl_use_threads_default"; then
7536 gl_use_threads="$gl_use_threads_default"
7537 else
7538 case "$host_os" in
7539 osf*) gl_use_threads=no ;;
7540 cygwin*)
7541 case `uname -r` in
7542 1.[0-5].*) gl_use_threads=no ;;
7543 *) gl_use_threads=yes ;;
7544 esac
7545 ;;
7546 *) gl_use_threads=yes ;;
7547 esac
7548 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007549
7550fi
7551
Theodore Ts'o93613952014-07-03 23:44:13 -04007552 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7553 # For using <pthread.h>:
7554 case "$host_os" in
7555 osf*)
7556 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
7557 # groks <pthread.h>. cc also understands the flag -pthread, but
7558 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
7559 # 2. putting a flag into CPPFLAGS that has an effect on the linker
7560 # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
7561 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
7562 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
7563 ;;
7564 esac
7565 # Some systems optimize for single-threaded programs by default, and
7566 # need special flags to disable these optimizations. For example, the
7567 # definition of 'errno' in <errno.h>.
7568 case "$host_os" in
7569 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
7570 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
7571 esac
7572 fi
7573
7574
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007575
7576
7577
7578 if test "X$prefix" = "XNONE"; then
7579 acl_final_prefix="$ac_default_prefix"
7580 else
7581 acl_final_prefix="$prefix"
7582 fi
7583 if test "X$exec_prefix" = "XNONE"; then
7584 acl_final_exec_prefix='${prefix}'
7585 else
7586 acl_final_exec_prefix="$exec_prefix"
7587 fi
7588 acl_save_prefix="$prefix"
7589 prefix="$acl_final_prefix"
7590 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7591 prefix="$acl_save_prefix"
7592
7593
Theodore Ts'o93613952014-07-03 23:44:13 -04007594
Theodore Ts'oe1052142006-10-21 21:46:47 -04007595# Check whether --with-gnu-ld was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007596if test "${with_gnu_ld+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04007597 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007598else
7599 with_gnu_ld=no
Theodore Ts'oe1052142006-10-21 21:46:47 -04007600fi
7601
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007602# Prepare PATH_SEPARATOR.
7603# The user is always right.
7604if test "${PATH_SEPARATOR+set}" != set; then
Theodore Ts'o93613952014-07-03 23:44:13 -04007605 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7606 # contains only /bin. Note that ksh looks also at the FPATH variable,
7607 # so we have to set that as well for the test.
7608 PATH_SEPARATOR=:
7609 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7610 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7611 || PATH_SEPARATOR=';'
7612 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007613fi
Theodore Ts'o93613952014-07-03 23:44:13 -04007614
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007615ac_prog=ld
7616if test "$GCC" = yes; then
7617 # Check if gcc -print-prog-name=ld gives a path.
Theodore Ts'o93613952014-07-03 23:44:13 -04007618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7619$as_echo_n "checking for ld used by $CC... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007620 case $host in
7621 *-*-mingw*)
7622 # gcc leaves a trailing carriage return which upsets mingw
7623 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7624 *)
7625 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7626 esac
7627 case $ac_prog in
7628 # Accept absolute paths.
Theodore Ts'o93613952014-07-03 23:44:13 -04007629 [\\/]* | ?:[\\/]*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007630 re_direlt='/[^/][^/]*/\.\./'
Theodore Ts'o93613952014-07-03 23:44:13 -04007631 # Canonicalize the pathname of ld
7632 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
7633 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
7634 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007635 done
7636 test -z "$LD" && LD="$ac_prog"
7637 ;;
7638 "")
7639 # If it fails, then pretend we aren't using GCC.
7640 ac_prog=ld
7641 ;;
7642 *)
7643 # If it is relative, then search for the first ld in PATH.
7644 with_gnu_ld=unknown
7645 ;;
7646 esac
7647elif test "$with_gnu_ld" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007649$as_echo_n "checking for GNU ld... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007650else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007652$as_echo_n "checking for non-GNU ld... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007653fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007654if ${acl_cv_path_LD+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007655 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007656else
7657 if test -z "$LD"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04007658 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007659 for ac_dir in $PATH; do
Theodore Ts'o93613952014-07-03 23:44:13 -04007660 IFS="$acl_save_ifs"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007661 test -z "$ac_dir" && ac_dir=.
7662 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7663 acl_cv_path_LD="$ac_dir/$ac_prog"
7664 # Check to see if the program is GNU ld. I'd rather use --version,
Theodore Ts'o93613952014-07-03 23:44:13 -04007665 # but apparently some variants of GNU ld only accept -v.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007666 # Break only if it was the GNU/non-GNU ld that we prefer.
Theodore Ts'o93613952014-07-03 23:44:13 -04007667 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007668 *GNU* | *'with BFD'*)
Theodore Ts'o93613952014-07-03 23:44:13 -04007669 test "$with_gnu_ld" != no && break
7670 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007671 *)
Theodore Ts'o93613952014-07-03 23:44:13 -04007672 test "$with_gnu_ld" != yes && break
7673 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007674 esac
7675 fi
7676 done
Theodore Ts'o93613952014-07-03 23:44:13 -04007677 IFS="$acl_save_ifs"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007678else
7679 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7680fi
7681fi
7682
7683LD="$acl_cv_path_LD"
7684if test -n "$LD"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007686$as_echo "$LD" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007687else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007689$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007690fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007691test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007693$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007694if ${acl_cv_prog_gnu_ld+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007695 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007696else
Theodore Ts'o93613952014-07-03 23:44:13 -04007697 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007698case `$LD -v 2>&1 </dev/null` in
7699*GNU* | *'with BFD'*)
Theodore Ts'o93613952014-07-03 23:44:13 -04007700 acl_cv_prog_gnu_ld=yes
7701 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007702*)
Theodore Ts'o93613952014-07-03 23:44:13 -04007703 acl_cv_prog_gnu_ld=no
7704 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007705esac
7706fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007708$as_echo "$acl_cv_prog_gnu_ld" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007709with_gnu_ld=$acl_cv_prog_gnu_ld
7710
7711
7712
Theodore Ts'o93613952014-07-03 23:44:13 -04007713
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007715$as_echo_n "checking for shared library run path origin... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007716if ${acl_cv_rpath+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007717 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007718else
7719
7720 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7721 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7722 . ./conftest.sh
7723 rm -f ./conftest.sh
7724 acl_cv_rpath=done
7725
7726fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007728$as_echo "$acl_cv_rpath" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007729 wl="$acl_cv_wl"
Theodore Ts'o93613952014-07-03 23:44:13 -04007730 acl_libext="$acl_cv_libext"
7731 acl_shlibext="$acl_cv_shlibext"
7732 acl_libname_spec="$acl_cv_libname_spec"
7733 acl_library_names_spec="$acl_cv_library_names_spec"
7734 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7735 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7736 acl_hardcode_direct="$acl_cv_hardcode_direct"
7737 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
Theodore Ts'oe1052142006-10-21 21:46:47 -04007738 # Check whether --enable-rpath was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007739if test "${enable_rpath+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04007740 enableval=$enable_rpath; :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007741else
7742 enable_rpath=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04007743fi
7744
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007745
7746
7747
Theodore Ts'o93613952014-07-03 23:44:13 -04007748 acl_libdirstem=lib
7749 acl_libdirstem2=
7750 case "$host_os" in
7751 solaris*)
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
7753$as_echo_n "checking for 64-bit host... " >&6; }
7754if ${gl_cv_solaris_64bit+:} false; then :
7755 $as_echo_n "(cached) " >&6
7756else
7757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7758/* end confdefs.h. */
7759
7760#ifdef _LP64
7761sixtyfour bits
7762#endif
7763
7764_ACEOF
7765if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7766 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
7767 gl_cv_solaris_64bit=yes
7768else
7769 gl_cv_solaris_64bit=no
7770fi
7771rm -f conftest*
7772
7773
7774fi
7775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
7776$as_echo "$gl_cv_solaris_64bit" >&6; }
7777 if test $gl_cv_solaris_64bit = yes; then
7778 acl_libdirstem=lib/64
7779 case "$host_cpu" in
7780 sparc*) acl_libdirstem2=lib/sparcv9 ;;
7781 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
7782 esac
7783 fi
7784 ;;
7785 *)
7786 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
7787 if test -n "$searchpath"; then
7788 acl_save_IFS="${IFS= }"; IFS=":"
7789 for searchdir in $searchpath; do
7790 if test -d "$searchdir"; then
7791 case "$searchdir" in
7792 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
7793 */../ | */.. )
7794 # Better ignore directories of this form. They are misleading.
7795 ;;
7796 *) searchdir=`cd "$searchdir" && pwd`
7797 case "$searchdir" in
7798 */lib64 ) acl_libdirstem=lib64 ;;
7799 esac ;;
7800 esac
7801 fi
7802 done
7803 IFS="$acl_save_IFS"
7804 fi
7805 ;;
7806 esac
7807 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
7808
7809
7810
7811 gl_threads_api=none
7812 LIBTHREAD=
7813 LTLIBTHREAD=
7814 LIBMULTITHREAD=
7815 LTLIBMULTITHREAD=
7816 if test "$gl_use_threads" != no; then
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
7818$as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
7819if ${gl_cv_have_weak+:} false; then :
7820 $as_echo_n "(cached) " >&6
7821else
7822 gl_cv_have_weak=no
7823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7824/* end confdefs.h. */
7825extern void xyzzy ();
7826#pragma weak xyzzy
7827int
7828main ()
7829{
7830xyzzy();
7831 ;
7832 return 0;
7833}
7834_ACEOF
7835if ac_fn_c_try_link "$LINENO"; then :
7836 gl_cv_have_weak=maybe
7837fi
7838rm -f core conftest.err conftest.$ac_objext \
7839 conftest$ac_exeext conftest.$ac_ext
7840 if test $gl_cv_have_weak = maybe; then
7841 if test "$cross_compiling" = yes; then :
7842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7843/* end confdefs.h. */
7844#ifdef __ELF__
7845 Extensible Linking Format
7846 #endif
7847
7848_ACEOF
7849if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7850 $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
7851 gl_cv_have_weak="guessing yes"
7852else
7853 gl_cv_have_weak="guessing no"
7854fi
7855rm -f conftest*
7856
7857
7858else
7859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7860/* end confdefs.h. */
7861
7862#include <stdio.h>
7863#pragma weak fputs
7864int main ()
7865{
7866 return (fputs == NULL);
7867}
7868_ACEOF
7869if ac_fn_c_try_run "$LINENO"; then :
7870 gl_cv_have_weak=yes
7871else
7872 gl_cv_have_weak=no
7873fi
7874rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7875 conftest.$ac_objext conftest.beam conftest.$ac_ext
7876fi
7877
7878 fi
7879
7880fi
7881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
7882$as_echo "$gl_cv_have_weak" >&6; }
7883 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7884 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
7885 # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
7886 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
7887if test "x$ac_cv_header_pthread_h" = xyes; then :
7888 gl_have_pthread_h=yes
7889else
7890 gl_have_pthread_h=no
7891fi
7892
7893
7894 if test "$gl_have_pthread_h" = yes; then
7895 # Other possible tests:
7896 # -lpthreads (FSU threads, PCthreads)
7897 # -lgthreads
7898 gl_have_pthread=
7899 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
7900 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
7901 # the second one only in libpthread, and lock.c needs it.
7902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7903/* end confdefs.h. */
7904#include <pthread.h>
7905int
7906main ()
7907{
7908pthread_mutex_lock((pthread_mutex_t*)0);
7909 pthread_mutexattr_init((pthread_mutexattr_t*)0);
7910 ;
7911 return 0;
7912}
7913_ACEOF
7914if ac_fn_c_try_link "$LINENO"; then :
7915 gl_have_pthread=yes
7916fi
7917rm -f core conftest.err conftest.$ac_objext \
7918 conftest$ac_exeext conftest.$ac_ext
7919 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
7920 # since it is defined as a macro on OSF/1.)
7921 if test -n "$gl_have_pthread"; then
7922 # The program links fine without libpthread. But it may actually
7923 # need to link with libpthread in order to create multiple threads.
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
7925$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
7926if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
7927 $as_echo_n "(cached) " >&6
7928else
7929 ac_check_lib_save_LIBS=$LIBS
7930LIBS="-lpthread $LIBS"
7931cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7932/* end confdefs.h. */
7933
7934/* Override any GCC internal prototype to avoid an error.
7935 Use char because int might match the return type of a GCC
7936 builtin and then its argument prototype would still apply. */
7937#ifdef __cplusplus
7938extern "C"
7939#endif
7940char pthread_kill ();
7941int
7942main ()
7943{
7944return pthread_kill ();
7945 ;
7946 return 0;
7947}
7948_ACEOF
7949if ac_fn_c_try_link "$LINENO"; then :
7950 ac_cv_lib_pthread_pthread_kill=yes
7951else
7952 ac_cv_lib_pthread_pthread_kill=no
7953fi
7954rm -f core conftest.err conftest.$ac_objext \
7955 conftest$ac_exeext conftest.$ac_ext
7956LIBS=$ac_check_lib_save_LIBS
7957fi
7958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
7959$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
7960if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
7961 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
7962 # On Solaris and HP-UX, most pthread functions exist also in libc.
7963 # Therefore pthread_in_use() needs to actually try to create a
7964 # thread: pthread_create from libc will fail, whereas
7965 # pthread_create will actually create a thread.
7966 case "$host_os" in
7967 solaris* | hpux*)
7968
7969$as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
7970
7971 esac
7972
7973fi
7974
7975 else
7976 # Some library is needed. Try libpthread and libc_r.
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
7978$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
7979if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
7980 $as_echo_n "(cached) " >&6
7981else
7982 ac_check_lib_save_LIBS=$LIBS
7983LIBS="-lpthread $LIBS"
7984cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7985/* end confdefs.h. */
7986
7987/* Override any GCC internal prototype to avoid an error.
7988 Use char because int might match the return type of a GCC
7989 builtin and then its argument prototype would still apply. */
7990#ifdef __cplusplus
7991extern "C"
7992#endif
7993char pthread_kill ();
7994int
7995main ()
7996{
7997return pthread_kill ();
7998 ;
7999 return 0;
8000}
8001_ACEOF
8002if ac_fn_c_try_link "$LINENO"; then :
8003 ac_cv_lib_pthread_pthread_kill=yes
8004else
8005 ac_cv_lib_pthread_pthread_kill=no
8006fi
8007rm -f core conftest.err conftest.$ac_objext \
8008 conftest$ac_exeext conftest.$ac_ext
8009LIBS=$ac_check_lib_save_LIBS
8010fi
8011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
8012$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
8013if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
8014 gl_have_pthread=yes
8015 LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
8016 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
8017fi
8018
8019 if test -z "$gl_have_pthread"; then
8020 # For FreeBSD 4.
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
8022$as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
8023if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
8024 $as_echo_n "(cached) " >&6
8025else
8026 ac_check_lib_save_LIBS=$LIBS
8027LIBS="-lc_r $LIBS"
8028cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8029/* end confdefs.h. */
8030
8031/* Override any GCC internal prototype to avoid an error.
8032 Use char because int might match the return type of a GCC
8033 builtin and then its argument prototype would still apply. */
8034#ifdef __cplusplus
8035extern "C"
8036#endif
8037char pthread_kill ();
8038int
8039main ()
8040{
8041return pthread_kill ();
8042 ;
8043 return 0;
8044}
8045_ACEOF
8046if ac_fn_c_try_link "$LINENO"; then :
8047 ac_cv_lib_c_r_pthread_kill=yes
8048else
8049 ac_cv_lib_c_r_pthread_kill=no
8050fi
8051rm -f core conftest.err conftest.$ac_objext \
8052 conftest$ac_exeext conftest.$ac_ext
8053LIBS=$ac_check_lib_save_LIBS
8054fi
8055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
8056$as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
8057if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
8058 gl_have_pthread=yes
8059 LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
8060 LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
8061fi
8062
8063 fi
8064 fi
8065 if test -n "$gl_have_pthread"; then
8066 gl_threads_api=posix
8067
8068$as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
8069
8070 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8071 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8072
8073$as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
8074
8075 LIBTHREAD=
8076 LTLIBTHREAD=
8077 fi
8078 fi
8079 fi
8080 fi
8081 fi
8082 if test -z "$gl_have_pthread"; then
8083 if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
8084 gl_have_solaristhread=
8085 gl_save_LIBS="$LIBS"
8086 LIBS="$LIBS -lthread"
8087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8088/* end confdefs.h. */
8089
8090#include <thread.h>
8091#include <synch.h>
8092
8093int
8094main ()
8095{
8096thr_self();
8097 ;
8098 return 0;
8099}
8100_ACEOF
8101if ac_fn_c_try_link "$LINENO"; then :
8102 gl_have_solaristhread=yes
8103fi
8104rm -f core conftest.err conftest.$ac_objext \
8105 conftest$ac_exeext conftest.$ac_ext
8106 LIBS="$gl_save_LIBS"
8107 if test -n "$gl_have_solaristhread"; then
8108 gl_threads_api=solaris
8109 LIBTHREAD=-lthread
8110 LTLIBTHREAD=-lthread
8111 LIBMULTITHREAD="$LIBTHREAD"
8112 LTLIBMULTITHREAD="$LTLIBTHREAD"
8113
8114$as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
8115
8116 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8117
8118$as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
8119
8120 LIBTHREAD=
8121 LTLIBTHREAD=
8122 fi
8123 fi
8124 fi
8125 fi
8126 if test "$gl_use_threads" = pth; then
8127 gl_save_CPPFLAGS="$CPPFLAGS"
8128
8129
8130
8131
8132
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
8134$as_echo_n "checking how to link with libpth... " >&6; }
8135if ${ac_cv_libpth_libs+:} false; then :
8136 $as_echo_n "(cached) " >&6
8137else
8138
8139
8140
8141
8142
8143
8144
8145
8146 use_additional=yes
8147
8148 acl_save_prefix="$prefix"
8149 prefix="$acl_final_prefix"
8150 acl_save_exec_prefix="$exec_prefix"
8151 exec_prefix="$acl_final_exec_prefix"
8152
8153 eval additional_includedir=\"$includedir\"
8154 eval additional_libdir=\"$libdir\"
8155
8156 exec_prefix="$acl_save_exec_prefix"
8157 prefix="$acl_save_prefix"
8158
8159
8160# Check whether --with-libpth-prefix was given.
8161if test "${with_libpth_prefix+set}" = set; then :
8162 withval=$with_libpth_prefix;
8163 if test "X$withval" = "Xno"; then
8164 use_additional=no
8165 else
8166 if test "X$withval" = "X"; then
8167
8168 acl_save_prefix="$prefix"
8169 prefix="$acl_final_prefix"
8170 acl_save_exec_prefix="$exec_prefix"
8171 exec_prefix="$acl_final_exec_prefix"
8172
8173 eval additional_includedir=\"$includedir\"
8174 eval additional_libdir=\"$libdir\"
8175
8176 exec_prefix="$acl_save_exec_prefix"
8177 prefix="$acl_save_prefix"
8178
8179 else
8180 additional_includedir="$withval/include"
8181 additional_libdir="$withval/$acl_libdirstem"
8182 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8183 && ! test -d "$withval/$acl_libdirstem"; then
8184 additional_libdir="$withval/$acl_libdirstem2"
8185 fi
8186 fi
8187 fi
8188
8189fi
8190
8191 LIBPTH=
8192 LTLIBPTH=
8193 INCPTH=
8194 LIBPTH_PREFIX=
8195 HAVE_LIBPTH=
8196 rpathdirs=
8197 ltrpathdirs=
8198 names_already_handled=
8199 names_next_round='pth '
8200 while test -n "$names_next_round"; do
8201 names_this_round="$names_next_round"
8202 names_next_round=
8203 for name in $names_this_round; do
8204 already_handled=
8205 for n in $names_already_handled; do
8206 if test "$n" = "$name"; then
8207 already_handled=yes
8208 break
8209 fi
8210 done
8211 if test -z "$already_handled"; then
8212 names_already_handled="$names_already_handled $name"
8213 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8214 eval value=\"\$HAVE_LIB$uppername\"
8215 if test -n "$value"; then
8216 if test "$value" = yes; then
8217 eval value=\"\$LIB$uppername\"
8218 test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
8219 eval value=\"\$LTLIB$uppername\"
8220 test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
8221 else
8222 :
8223 fi
8224 else
8225 found_dir=
8226 found_la=
8227 found_so=
8228 found_a=
8229 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8230 if test -n "$acl_shlibext"; then
8231 shrext=".$acl_shlibext" # typically: shrext=.so
8232 else
8233 shrext=
8234 fi
8235 if test $use_additional = yes; then
8236 dir="$additional_libdir"
8237 if test -n "$acl_shlibext"; then
8238 if test -f "$dir/$libname$shrext"; then
8239 found_dir="$dir"
8240 found_so="$dir/$libname$shrext"
8241 else
8242 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8243 ver=`(cd "$dir" && \
8244 for f in "$libname$shrext".*; do echo "$f"; done \
8245 | sed -e "s,^$libname$shrext\\\\.,," \
8246 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8247 | sed 1q ) 2>/dev/null`
8248 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8249 found_dir="$dir"
8250 found_so="$dir/$libname$shrext.$ver"
8251 fi
8252 else
8253 eval library_names=\"$acl_library_names_spec\"
8254 for f in $library_names; do
8255 if test -f "$dir/$f"; then
8256 found_dir="$dir"
8257 found_so="$dir/$f"
8258 break
8259 fi
8260 done
8261 fi
8262 fi
8263 fi
8264 if test "X$found_dir" = "X"; then
8265 if test -f "$dir/$libname.$acl_libext"; then
8266 found_dir="$dir"
8267 found_a="$dir/$libname.$acl_libext"
8268 fi
8269 fi
8270 if test "X$found_dir" != "X"; then
8271 if test -f "$dir/$libname.la"; then
8272 found_la="$dir/$libname.la"
8273 fi
8274 fi
8275 fi
8276 if test "X$found_dir" = "X"; then
8277 for x in $LDFLAGS $LTLIBPTH; do
8278
8279 acl_save_prefix="$prefix"
8280 prefix="$acl_final_prefix"
8281 acl_save_exec_prefix="$exec_prefix"
8282 exec_prefix="$acl_final_exec_prefix"
8283 eval x=\"$x\"
8284 exec_prefix="$acl_save_exec_prefix"
8285 prefix="$acl_save_prefix"
8286
8287 case "$x" in
8288 -L*)
8289 dir=`echo "X$x" | sed -e 's/^X-L//'`
8290 if test -n "$acl_shlibext"; then
8291 if test -f "$dir/$libname$shrext"; then
8292 found_dir="$dir"
8293 found_so="$dir/$libname$shrext"
8294 else
8295 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8296 ver=`(cd "$dir" && \
8297 for f in "$libname$shrext".*; do echo "$f"; done \
8298 | sed -e "s,^$libname$shrext\\\\.,," \
8299 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8300 | sed 1q ) 2>/dev/null`
8301 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8302 found_dir="$dir"
8303 found_so="$dir/$libname$shrext.$ver"
8304 fi
8305 else
8306 eval library_names=\"$acl_library_names_spec\"
8307 for f in $library_names; do
8308 if test -f "$dir/$f"; then
8309 found_dir="$dir"
8310 found_so="$dir/$f"
8311 break
8312 fi
8313 done
8314 fi
8315 fi
8316 fi
8317 if test "X$found_dir" = "X"; then
8318 if test -f "$dir/$libname.$acl_libext"; then
8319 found_dir="$dir"
8320 found_a="$dir/$libname.$acl_libext"
8321 fi
8322 fi
8323 if test "X$found_dir" != "X"; then
8324 if test -f "$dir/$libname.la"; then
8325 found_la="$dir/$libname.la"
8326 fi
8327 fi
8328 ;;
8329 esac
8330 if test "X$found_dir" != "X"; then
8331 break
8332 fi
8333 done
8334 fi
8335 if test "X$found_dir" != "X"; then
8336 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
8337 if test "X$found_so" != "X"; then
8338 if test "$enable_rpath" = no \
8339 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8340 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8341 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8342 else
8343 haveit=
8344 for x in $ltrpathdirs; do
8345 if test "X$x" = "X$found_dir"; then
8346 haveit=yes
8347 break
8348 fi
8349 done
8350 if test -z "$haveit"; then
8351 ltrpathdirs="$ltrpathdirs $found_dir"
8352 fi
8353 if test "$acl_hardcode_direct" = yes; then
8354 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8355 else
8356 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8357 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8358 haveit=
8359 for x in $rpathdirs; do
8360 if test "X$x" = "X$found_dir"; then
8361 haveit=yes
8362 break
8363 fi
8364 done
8365 if test -z "$haveit"; then
8366 rpathdirs="$rpathdirs $found_dir"
8367 fi
8368 else
8369 haveit=
8370 for x in $LDFLAGS $LIBPTH; do
8371
8372 acl_save_prefix="$prefix"
8373 prefix="$acl_final_prefix"
8374 acl_save_exec_prefix="$exec_prefix"
8375 exec_prefix="$acl_final_exec_prefix"
8376 eval x=\"$x\"
8377 exec_prefix="$acl_save_exec_prefix"
8378 prefix="$acl_save_prefix"
8379
8380 if test "X$x" = "X-L$found_dir"; then
8381 haveit=yes
8382 break
8383 fi
8384 done
8385 if test -z "$haveit"; then
8386 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
8387 fi
8388 if test "$acl_hardcode_minus_L" != no; then
8389 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8390 else
8391 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8392 fi
8393 fi
8394 fi
8395 fi
8396 else
8397 if test "X$found_a" != "X"; then
8398 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
8399 else
8400 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
8401 fi
8402 fi
8403 additional_includedir=
8404 case "$found_dir" in
8405 */$acl_libdirstem | */$acl_libdirstem/)
8406 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8407 if test "$name" = 'pth'; then
8408 LIBPTH_PREFIX="$basedir"
8409 fi
8410 additional_includedir="$basedir/include"
8411 ;;
8412 */$acl_libdirstem2 | */$acl_libdirstem2/)
8413 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8414 if test "$name" = 'pth'; then
8415 LIBPTH_PREFIX="$basedir"
8416 fi
8417 additional_includedir="$basedir/include"
8418 ;;
8419 esac
8420 if test "X$additional_includedir" != "X"; then
8421 if test "X$additional_includedir" != "X/usr/include"; then
8422 haveit=
8423 if test "X$additional_includedir" = "X/usr/local/include"; then
8424 if test -n "$GCC"; then
8425 case $host_os in
8426 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8427 esac
8428 fi
8429 fi
8430 if test -z "$haveit"; then
8431 for x in $CPPFLAGS $INCPTH; do
8432
8433 acl_save_prefix="$prefix"
8434 prefix="$acl_final_prefix"
8435 acl_save_exec_prefix="$exec_prefix"
8436 exec_prefix="$acl_final_exec_prefix"
8437 eval x=\"$x\"
8438 exec_prefix="$acl_save_exec_prefix"
8439 prefix="$acl_save_prefix"
8440
8441 if test "X$x" = "X-I$additional_includedir"; then
8442 haveit=yes
8443 break
8444 fi
8445 done
8446 if test -z "$haveit"; then
8447 if test -d "$additional_includedir"; then
8448 INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
8449 fi
8450 fi
8451 fi
8452 fi
8453 fi
8454 if test -n "$found_la"; then
8455 save_libdir="$libdir"
8456 case "$found_la" in
8457 */* | *\\*) . "$found_la" ;;
8458 *) . "./$found_la" ;;
8459 esac
8460 libdir="$save_libdir"
8461 for dep in $dependency_libs; do
8462 case "$dep" in
8463 -L*)
8464 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8465 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
8466 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
8467 haveit=
8468 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
8469 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
8470 if test -n "$GCC"; then
8471 case $host_os in
8472 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8473 esac
8474 fi
8475 fi
8476 if test -z "$haveit"; then
8477 haveit=
8478 for x in $LDFLAGS $LIBPTH; do
8479
8480 acl_save_prefix="$prefix"
8481 prefix="$acl_final_prefix"
8482 acl_save_exec_prefix="$exec_prefix"
8483 exec_prefix="$acl_final_exec_prefix"
8484 eval x=\"$x\"
8485 exec_prefix="$acl_save_exec_prefix"
8486 prefix="$acl_save_prefix"
8487
8488 if test "X$x" = "X-L$additional_libdir"; then
8489 haveit=yes
8490 break
8491 fi
8492 done
8493 if test -z "$haveit"; then
8494 if test -d "$additional_libdir"; then
8495 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
8496 fi
8497 fi
8498 haveit=
8499 for x in $LDFLAGS $LTLIBPTH; do
8500
8501 acl_save_prefix="$prefix"
8502 prefix="$acl_final_prefix"
8503 acl_save_exec_prefix="$exec_prefix"
8504 exec_prefix="$acl_final_exec_prefix"
8505 eval x=\"$x\"
8506 exec_prefix="$acl_save_exec_prefix"
8507 prefix="$acl_save_prefix"
8508
8509 if test "X$x" = "X-L$additional_libdir"; then
8510 haveit=yes
8511 break
8512 fi
8513 done
8514 if test -z "$haveit"; then
8515 if test -d "$additional_libdir"; then
8516 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
8517 fi
8518 fi
8519 fi
8520 fi
8521 ;;
8522 -R*)
8523 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8524 if test "$enable_rpath" != no; then
8525 haveit=
8526 for x in $rpathdirs; do
8527 if test "X$x" = "X$dir"; then
8528 haveit=yes
8529 break
8530 fi
8531 done
8532 if test -z "$haveit"; then
8533 rpathdirs="$rpathdirs $dir"
8534 fi
8535 haveit=
8536 for x in $ltrpathdirs; do
8537 if test "X$x" = "X$dir"; then
8538 haveit=yes
8539 break
8540 fi
8541 done
8542 if test -z "$haveit"; then
8543 ltrpathdirs="$ltrpathdirs $dir"
8544 fi
8545 fi
8546 ;;
8547 -l*)
8548 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8549 ;;
8550 *.la)
8551 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8552 ;;
8553 *)
8554 LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
8555 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
8556 ;;
8557 esac
8558 done
8559 fi
8560 else
8561 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8562 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
8563 fi
8564 fi
8565 fi
8566 done
8567 done
8568 if test "X$rpathdirs" != "X"; then
8569 if test -n "$acl_hardcode_libdir_separator"; then
8570 alldirs=
8571 for found_dir in $rpathdirs; do
8572 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8573 done
8574 acl_save_libdir="$libdir"
8575 libdir="$alldirs"
8576 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8577 libdir="$acl_save_libdir"
8578 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8579 else
8580 for found_dir in $rpathdirs; do
8581 acl_save_libdir="$libdir"
8582 libdir="$found_dir"
8583 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8584 libdir="$acl_save_libdir"
8585 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8586 done
8587 fi
8588 fi
8589 if test "X$ltrpathdirs" != "X"; then
8590 for found_dir in $ltrpathdirs; do
8591 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
8592 done
8593 fi
8594
8595
8596
8597
8598
8599
8600 ac_cv_libpth_libs="$LIBPTH"
8601 ac_cv_libpth_ltlibs="$LTLIBPTH"
8602 ac_cv_libpth_cppflags="$INCPTH"
8603 ac_cv_libpth_prefix="$LIBPTH_PREFIX"
8604
8605fi
8606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
8607$as_echo "$ac_cv_libpth_libs" >&6; }
8608 LIBPTH="$ac_cv_libpth_libs"
8609 LTLIBPTH="$ac_cv_libpth_ltlibs"
8610 INCPTH="$ac_cv_libpth_cppflags"
8611 LIBPTH_PREFIX="$ac_cv_libpth_prefix"
8612
8613 for element in $INCPTH; do
8614 haveit=
8615 for x in $CPPFLAGS; do
8616
8617 acl_save_prefix="$prefix"
8618 prefix="$acl_final_prefix"
8619 acl_save_exec_prefix="$exec_prefix"
8620 exec_prefix="$acl_final_exec_prefix"
8621 eval x=\"$x\"
8622 exec_prefix="$acl_save_exec_prefix"
8623 prefix="$acl_save_prefix"
8624
8625 if test "X$x" = "X$element"; then
8626 haveit=yes
8627 break
8628 fi
8629 done
8630 if test -z "$haveit"; then
8631 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8632 fi
8633 done
8634
8635
8636
8637
8638 HAVE_LIBPTH=yes
8639
8640
8641
8642 gl_have_pth=
8643 gl_save_LIBS="$LIBS"
8644 LIBS="$LIBS $LIBPTH"
8645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8646/* end confdefs.h. */
8647#include <pth.h>
8648int
8649main ()
8650{
8651pth_self();
8652 ;
8653 return 0;
8654}
8655_ACEOF
8656if ac_fn_c_try_link "$LINENO"; then :
8657 gl_have_pth=yes
8658fi
8659rm -f core conftest.err conftest.$ac_objext \
8660 conftest$ac_exeext conftest.$ac_ext
8661 LIBS="$gl_save_LIBS"
8662 if test -n "$gl_have_pth"; then
8663 gl_threads_api=pth
8664 LIBTHREAD="$LIBPTH"
8665 LTLIBTHREAD="$LTLIBPTH"
8666 LIBMULTITHREAD="$LIBTHREAD"
8667 LTLIBMULTITHREAD="$LTLIBTHREAD"
8668
8669$as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
8670
8671 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8672 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8673
8674$as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
8675
8676 LIBTHREAD=
8677 LTLIBTHREAD=
8678 fi
8679 fi
8680 else
8681 CPPFLAGS="$gl_save_CPPFLAGS"
8682 fi
8683 fi
8684 if test -z "$gl_have_pthread"; then
8685 case "$gl_use_threads" in
8686 yes | windows | win32) # The 'win32' is for backward compatibility.
8687 if { case "$host_os" in
8688 mingw*) true;;
8689 *) false;;
8690 esac
8691 }; then
8692 gl_threads_api=windows
8693
8694$as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
8695
8696 fi
8697 ;;
8698 esac
8699 fi
8700 fi
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
8702$as_echo_n "checking for multithread API to use... " >&6; }
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
8704$as_echo "$gl_threads_api" >&6; }
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714
8715
8716 if test "$gl_threads_api" = posix; then
8717 # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
8718 # pthread_rwlock_* functions.
8719 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
8720"
8721if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
8722
8723$as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
8724
8725fi
8726
8727 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
8728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8729/* end confdefs.h. */
8730
8731 #include <pthread.h>
8732int
8733main ()
8734{
8735
8736#if __FreeBSD__ == 4
8737error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
8738#elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
8739 && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
8740error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
8741#else
8742int x = (int)PTHREAD_MUTEX_RECURSIVE;
8743return !x;
8744#endif
8745
8746 ;
8747 return 0;
8748}
8749_ACEOF
8750if ac_fn_c_try_compile "$LINENO"; then :
8751
8752$as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
8753
8754fi
8755rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8756 fi
8757 :
8758
8759
8760
8761
8762
8763
8764
8765
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008766
8767
8768
8769
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008770 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008771
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008772 acl_save_prefix="$prefix"
8773 prefix="$acl_final_prefix"
8774 acl_save_exec_prefix="$exec_prefix"
8775 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008776
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008777 eval additional_includedir=\"$includedir\"
8778 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008779
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008780 exec_prefix="$acl_save_exec_prefix"
8781 prefix="$acl_save_prefix"
8782
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008783
Theodore Ts'oe1052142006-10-21 21:46:47 -04008784# Check whether --with-libiconv-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008785if test "${with_libiconv_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04008786 withval=$with_libiconv_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008787 if test "X$withval" = "Xno"; then
8788 use_additional=no
8789 else
8790 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008791
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008792 acl_save_prefix="$prefix"
8793 prefix="$acl_final_prefix"
8794 acl_save_exec_prefix="$exec_prefix"
8795 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008796
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008797 eval additional_includedir=\"$includedir\"
8798 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008799
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008800 exec_prefix="$acl_save_exec_prefix"
8801 prefix="$acl_save_prefix"
8802
8803 else
8804 additional_includedir="$withval/include"
Theodore Ts'o93613952014-07-03 23:44:13 -04008805 additional_libdir="$withval/$acl_libdirstem"
8806 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8807 && ! test -d "$withval/$acl_libdirstem"; then
8808 additional_libdir="$withval/$acl_libdirstem2"
8809 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008810 fi
8811 fi
8812
Theodore Ts'oe1052142006-10-21 21:46:47 -04008813fi
8814
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008815 LIBICONV=
8816 LTLIBICONV=
8817 INCICONV=
Theodore Ts'o93613952014-07-03 23:44:13 -04008818 LIBICONV_PREFIX=
8819 HAVE_LIBICONV=
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008820 rpathdirs=
8821 ltrpathdirs=
8822 names_already_handled=
8823 names_next_round='iconv '
8824 while test -n "$names_next_round"; do
8825 names_this_round="$names_next_round"
8826 names_next_round=
8827 for name in $names_this_round; do
8828 already_handled=
8829 for n in $names_already_handled; do
8830 if test "$n" = "$name"; then
8831 already_handled=yes
8832 break
8833 fi
8834 done
8835 if test -z "$already_handled"; then
8836 names_already_handled="$names_already_handled $name"
Theodore Ts'o93613952014-07-03 23:44:13 -04008837 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008838 eval value=\"\$HAVE_LIB$uppername\"
8839 if test -n "$value"; then
8840 if test "$value" = yes; then
8841 eval value=\"\$LIB$uppername\"
8842 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8843 eval value=\"\$LTLIB$uppername\"
8844 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8845 else
8846 :
8847 fi
8848 else
8849 found_dir=
8850 found_la=
8851 found_so=
8852 found_a=
Theodore Ts'o93613952014-07-03 23:44:13 -04008853 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8854 if test -n "$acl_shlibext"; then
8855 shrext=".$acl_shlibext" # typically: shrext=.so
8856 else
8857 shrext=
8858 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008859 if test $use_additional = yes; then
Theodore Ts'o93613952014-07-03 23:44:13 -04008860 dir="$additional_libdir"
8861 if test -n "$acl_shlibext"; then
8862 if test -f "$dir/$libname$shrext"; then
8863 found_dir="$dir"
8864 found_so="$dir/$libname$shrext"
8865 else
8866 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8867 ver=`(cd "$dir" && \
8868 for f in "$libname$shrext".*; do echo "$f"; done \
8869 | sed -e "s,^$libname$shrext\\\\.,," \
8870 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8871 | sed 1q ) 2>/dev/null`
8872 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8873 found_dir="$dir"
8874 found_so="$dir/$libname$shrext.$ver"
8875 fi
8876 else
8877 eval library_names=\"$acl_library_names_spec\"
8878 for f in $library_names; do
8879 if test -f "$dir/$f"; then
8880 found_dir="$dir"
8881 found_so="$dir/$f"
8882 break
8883 fi
8884 done
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008885 fi
8886 fi
8887 fi
Theodore Ts'o93613952014-07-03 23:44:13 -04008888 if test "X$found_dir" = "X"; then
8889 if test -f "$dir/$libname.$acl_libext"; then
8890 found_dir="$dir"
8891 found_a="$dir/$libname.$acl_libext"
8892 fi
8893 fi
8894 if test "X$found_dir" != "X"; then
8895 if test -f "$dir/$libname.la"; then
8896 found_la="$dir/$libname.la"
8897 fi
8898 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008899 fi
8900 if test "X$found_dir" = "X"; then
8901 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008902
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008903 acl_save_prefix="$prefix"
8904 prefix="$acl_final_prefix"
8905 acl_save_exec_prefix="$exec_prefix"
8906 exec_prefix="$acl_final_exec_prefix"
8907 eval x=\"$x\"
8908 exec_prefix="$acl_save_exec_prefix"
8909 prefix="$acl_save_prefix"
8910
8911 case "$x" in
8912 -L*)
8913 dir=`echo "X$x" | sed -e 's/^X-L//'`
Theodore Ts'o93613952014-07-03 23:44:13 -04008914 if test -n "$acl_shlibext"; then
8915 if test -f "$dir/$libname$shrext"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008916 found_dir="$dir"
Theodore Ts'o93613952014-07-03 23:44:13 -04008917 found_so="$dir/$libname$shrext"
8918 else
8919 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8920 ver=`(cd "$dir" && \
8921 for f in "$libname$shrext".*; do echo "$f"; done \
8922 | sed -e "s,^$libname$shrext\\\\.,," \
8923 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8924 | sed 1q ) 2>/dev/null`
8925 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8926 found_dir="$dir"
8927 found_so="$dir/$libname$shrext.$ver"
8928 fi
8929 else
8930 eval library_names=\"$acl_library_names_spec\"
8931 for f in $library_names; do
8932 if test -f "$dir/$f"; then
8933 found_dir="$dir"
8934 found_so="$dir/$f"
8935 break
8936 fi
8937 done
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008938 fi
8939 fi
8940 fi
Theodore Ts'o93613952014-07-03 23:44:13 -04008941 if test "X$found_dir" = "X"; then
8942 if test -f "$dir/$libname.$acl_libext"; then
8943 found_dir="$dir"
8944 found_a="$dir/$libname.$acl_libext"
8945 fi
8946 fi
8947 if test "X$found_dir" != "X"; then
8948 if test -f "$dir/$libname.la"; then
8949 found_la="$dir/$libname.la"
8950 fi
8951 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008952 ;;
8953 esac
8954 if test "X$found_dir" != "X"; then
8955 break
8956 fi
8957 done
8958 fi
8959 if test "X$found_dir" != "X"; then
8960 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8961 if test "X$found_so" != "X"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04008962 if test "$enable_rpath" = no \
8963 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8964 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008965 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8966 else
8967 haveit=
8968 for x in $ltrpathdirs; do
8969 if test "X$x" = "X$found_dir"; then
8970 haveit=yes
8971 break
8972 fi
8973 done
8974 if test -z "$haveit"; then
8975 ltrpathdirs="$ltrpathdirs $found_dir"
8976 fi
Theodore Ts'o93613952014-07-03 23:44:13 -04008977 if test "$acl_hardcode_direct" = yes; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008978 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8979 else
Theodore Ts'o93613952014-07-03 23:44:13 -04008980 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008981 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8982 haveit=
8983 for x in $rpathdirs; do
8984 if test "X$x" = "X$found_dir"; then
8985 haveit=yes
8986 break
8987 fi
8988 done
8989 if test -z "$haveit"; then
8990 rpathdirs="$rpathdirs $found_dir"
8991 fi
8992 else
8993 haveit=
8994 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008995
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008996 acl_save_prefix="$prefix"
8997 prefix="$acl_final_prefix"
8998 acl_save_exec_prefix="$exec_prefix"
8999 exec_prefix="$acl_final_exec_prefix"
9000 eval x=\"$x\"
9001 exec_prefix="$acl_save_exec_prefix"
9002 prefix="$acl_save_prefix"
9003
9004 if test "X$x" = "X-L$found_dir"; then
9005 haveit=yes
9006 break
9007 fi
9008 done
9009 if test -z "$haveit"; then
9010 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9011 fi
Theodore Ts'o93613952014-07-03 23:44:13 -04009012 if test "$acl_hardcode_minus_L" != no; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009013 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9014 else
9015 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9016 fi
9017 fi
9018 fi
9019 fi
9020 else
9021 if test "X$found_a" != "X"; then
9022 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9023 else
9024 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9025 fi
9026 fi
9027 additional_includedir=
9028 case "$found_dir" in
Theodore Ts'o93613952014-07-03 23:44:13 -04009029 */$acl_libdirstem | */$acl_libdirstem/)
9030 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9031 if test "$name" = 'iconv'; then
9032 LIBICONV_PREFIX="$basedir"
9033 fi
9034 additional_includedir="$basedir/include"
9035 ;;
9036 */$acl_libdirstem2 | */$acl_libdirstem2/)
9037 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9038 if test "$name" = 'iconv'; then
9039 LIBICONV_PREFIX="$basedir"
9040 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009041 additional_includedir="$basedir/include"
9042 ;;
9043 esac
9044 if test "X$additional_includedir" != "X"; then
9045 if test "X$additional_includedir" != "X/usr/include"; then
9046 haveit=
9047 if test "X$additional_includedir" = "X/usr/local/include"; then
9048 if test -n "$GCC"; then
9049 case $host_os in
Theodore Ts'o93613952014-07-03 23:44:13 -04009050 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009051 esac
9052 fi
9053 fi
9054 if test -z "$haveit"; then
9055 for x in $CPPFLAGS $INCICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009056
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009057 acl_save_prefix="$prefix"
9058 prefix="$acl_final_prefix"
9059 acl_save_exec_prefix="$exec_prefix"
9060 exec_prefix="$acl_final_exec_prefix"
9061 eval x=\"$x\"
9062 exec_prefix="$acl_save_exec_prefix"
9063 prefix="$acl_save_prefix"
9064
9065 if test "X$x" = "X-I$additional_includedir"; then
9066 haveit=yes
9067 break
9068 fi
9069 done
9070 if test -z "$haveit"; then
9071 if test -d "$additional_includedir"; then
9072 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9073 fi
9074 fi
9075 fi
9076 fi
9077 fi
9078 if test -n "$found_la"; then
9079 save_libdir="$libdir"
9080 case "$found_la" in
9081 */* | *\\*) . "$found_la" ;;
9082 *) . "./$found_la" ;;
9083 esac
9084 libdir="$save_libdir"
9085 for dep in $dependency_libs; do
9086 case "$dep" in
9087 -L*)
9088 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
Theodore Ts'o93613952014-07-03 23:44:13 -04009089 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
9090 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009091 haveit=
Theodore Ts'o93613952014-07-03 23:44:13 -04009092 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
9093 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009094 if test -n "$GCC"; then
9095 case $host_os in
Theodore Ts'o93613952014-07-03 23:44:13 -04009096 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009097 esac
9098 fi
9099 fi
9100 if test -z "$haveit"; then
9101 haveit=
9102 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009103
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009104 acl_save_prefix="$prefix"
9105 prefix="$acl_final_prefix"
9106 acl_save_exec_prefix="$exec_prefix"
9107 exec_prefix="$acl_final_exec_prefix"
9108 eval x=\"$x\"
9109 exec_prefix="$acl_save_exec_prefix"
9110 prefix="$acl_save_prefix"
9111
9112 if test "X$x" = "X-L$additional_libdir"; then
9113 haveit=yes
9114 break
9115 fi
9116 done
9117 if test -z "$haveit"; then
9118 if test -d "$additional_libdir"; then
9119 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9120 fi
9121 fi
9122 haveit=
9123 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009124
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009125 acl_save_prefix="$prefix"
9126 prefix="$acl_final_prefix"
9127 acl_save_exec_prefix="$exec_prefix"
9128 exec_prefix="$acl_final_exec_prefix"
9129 eval x=\"$x\"
9130 exec_prefix="$acl_save_exec_prefix"
9131 prefix="$acl_save_prefix"
9132
9133 if test "X$x" = "X-L$additional_libdir"; then
9134 haveit=yes
9135 break
9136 fi
9137 done
9138 if test -z "$haveit"; then
9139 if test -d "$additional_libdir"; then
9140 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9141 fi
9142 fi
9143 fi
9144 fi
9145 ;;
9146 -R*)
9147 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9148 if test "$enable_rpath" != no; then
9149 haveit=
9150 for x in $rpathdirs; do
9151 if test "X$x" = "X$dir"; then
9152 haveit=yes
9153 break
9154 fi
9155 done
9156 if test -z "$haveit"; then
9157 rpathdirs="$rpathdirs $dir"
9158 fi
9159 haveit=
9160 for x in $ltrpathdirs; do
9161 if test "X$x" = "X$dir"; then
9162 haveit=yes
9163 break
9164 fi
9165 done
9166 if test -z "$haveit"; then
9167 ltrpathdirs="$ltrpathdirs $dir"
9168 fi
9169 fi
9170 ;;
9171 -l*)
9172 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9173 ;;
9174 *.la)
9175 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9176 ;;
9177 *)
9178 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9179 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9180 ;;
9181 esac
9182 done
9183 fi
9184 else
9185 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9186 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9187 fi
9188 fi
9189 fi
9190 done
9191 done
9192 if test "X$rpathdirs" != "X"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04009193 if test -n "$acl_hardcode_libdir_separator"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009194 alldirs=
9195 for found_dir in $rpathdirs; do
Theodore Ts'o93613952014-07-03 23:44:13 -04009196 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009197 done
9198 acl_save_libdir="$libdir"
9199 libdir="$alldirs"
Theodore Ts'o93613952014-07-03 23:44:13 -04009200 eval flag=\"$acl_hardcode_libdir_flag_spec\"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009201 libdir="$acl_save_libdir"
9202 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9203 else
9204 for found_dir in $rpathdirs; do
9205 acl_save_libdir="$libdir"
9206 libdir="$found_dir"
Theodore Ts'o93613952014-07-03 23:44:13 -04009207 eval flag=\"$acl_hardcode_libdir_flag_spec\"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009208 libdir="$acl_save_libdir"
9209 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9210 done
9211 fi
9212 fi
9213 if test "X$ltrpathdirs" != "X"; then
9214 for found_dir in $ltrpathdirs; do
9215 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9216 done
9217 fi
9218
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009219
9220
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009221
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009222
9223
9224
9225
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009226
9227
9228
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009229
9230 am_save_CPPFLAGS="$CPPFLAGS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009231
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009232 for element in $INCICONV; do
9233 haveit=
9234 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009235
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009236 acl_save_prefix="$prefix"
9237 prefix="$acl_final_prefix"
9238 acl_save_exec_prefix="$exec_prefix"
9239 exec_prefix="$acl_final_exec_prefix"
9240 eval x=\"$x\"
9241 exec_prefix="$acl_save_exec_prefix"
9242 prefix="$acl_save_prefix"
9243
9244 if test "X$x" = "X$element"; then
9245 haveit=yes
9246 break
9247 fi
9248 done
9249 if test -z "$haveit"; then
9250 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9251 fi
9252 done
9253
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009254
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009256$as_echo_n "checking for iconv... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009257if ${am_cv_func_iconv+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009258 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009259else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009260
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009261 am_cv_func_iconv="no, consider installing GNU libiconv"
9262 am_cv_lib_iconv=no
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009264/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -04009265
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009266#include <stdlib.h>
9267#include <iconv.h>
Theodore Ts'o93613952014-07-03 23:44:13 -04009268
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009269int
9270main ()
9271{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009272iconv_t cd = iconv_open("","");
Theodore Ts'o93613952014-07-03 23:44:13 -04009273 iconv(cd,NULL,NULL,NULL,NULL);
9274 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009275 ;
9276 return 0;
9277}
9278_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009279if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009280 am_cv_func_iconv=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009281fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009282rm -f core conftest.err conftest.$ac_objext \
9283 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009284 if test "$am_cv_func_iconv" != yes; then
9285 am_save_LIBS="$LIBS"
9286 LIBS="$LIBS $LIBICONV"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009288/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -04009289
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009290#include <stdlib.h>
9291#include <iconv.h>
Theodore Ts'o93613952014-07-03 23:44:13 -04009292
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009293int
9294main ()
9295{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009296iconv_t cd = iconv_open("","");
Theodore Ts'o93613952014-07-03 23:44:13 -04009297 iconv(cd,NULL,NULL,NULL,NULL);
9298 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009299 ;
9300 return 0;
9301}
9302_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009303if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009304 am_cv_lib_iconv=yes
9305 am_cv_func_iconv=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009306fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009307rm -f core conftest.err conftest.$ac_objext \
9308 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009309 LIBS="$am_save_LIBS"
9310 fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009311
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009312fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009313{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009314$as_echo "$am_cv_func_iconv" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009315 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'o93613952014-07-03 23:44:13 -04009316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
9317$as_echo_n "checking for working iconv... " >&6; }
9318if ${am_cv_func_iconv_works+:} false; then :
9319 $as_echo_n "(cached) " >&6
9320else
9321
9322 am_save_LIBS="$LIBS"
9323 if test $am_cv_lib_iconv = yes; then
9324 LIBS="$LIBS $LIBICONV"
9325 fi
9326 if test "$cross_compiling" = yes; then :
9327
9328 case "$host_os" in
9329 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
9330 *) am_cv_func_iconv_works="guessing yes" ;;
9331 esac
9332
9333else
9334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9335/* end confdefs.h. */
9336
9337#include <iconv.h>
9338#include <string.h>
9339int main ()
9340{
9341 int result = 0;
9342 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
9343 returns. */
9344 {
9345 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
9346 if (cd_utf8_to_88591 != (iconv_t)(-1))
9347 {
9348 static const char input[] = "\342\202\254"; /* EURO SIGN */
9349 char buf[10];
9350 const char *inptr = input;
9351 size_t inbytesleft = strlen (input);
9352 char *outptr = buf;
9353 size_t outbytesleft = sizeof (buf);
9354 size_t res = iconv (cd_utf8_to_88591,
9355 (char **) &inptr, &inbytesleft,
9356 &outptr, &outbytesleft);
9357 if (res == 0)
9358 result |= 1;
9359 iconv_close (cd_utf8_to_88591);
9360 }
9361 }
9362 /* Test against Solaris 10 bug: Failures are not distinguishable from
9363 successful returns. */
9364 {
9365 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
9366 if (cd_ascii_to_88591 != (iconv_t)(-1))
9367 {
9368 static const char input[] = "\263";
9369 char buf[10];
9370 const char *inptr = input;
9371 size_t inbytesleft = strlen (input);
9372 char *outptr = buf;
9373 size_t outbytesleft = sizeof (buf);
9374 size_t res = iconv (cd_ascii_to_88591,
9375 (char **) &inptr, &inbytesleft,
9376 &outptr, &outbytesleft);
9377 if (res == 0)
9378 result |= 2;
9379 iconv_close (cd_ascii_to_88591);
9380 }
9381 }
9382 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
9383 {
9384 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
9385 if (cd_88591_to_utf8 != (iconv_t)(-1))
9386 {
9387 static const char input[] = "\304";
9388 static char buf[2] = { (char)0xDE, (char)0xAD };
9389 const char *inptr = input;
9390 size_t inbytesleft = 1;
9391 char *outptr = buf;
9392 size_t outbytesleft = 1;
9393 size_t res = iconv (cd_88591_to_utf8,
9394 (char **) &inptr, &inbytesleft,
9395 &outptr, &outbytesleft);
9396 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
9397 result |= 4;
9398 iconv_close (cd_88591_to_utf8);
9399 }
9400 }
9401#if 0 /* This bug could be worked around by the caller. */
9402 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
9403 {
9404 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
9405 if (cd_88591_to_utf8 != (iconv_t)(-1))
9406 {
9407 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
9408 char buf[50];
9409 const char *inptr = input;
9410 size_t inbytesleft = strlen (input);
9411 char *outptr = buf;
9412 size_t outbytesleft = sizeof (buf);
9413 size_t res = iconv (cd_88591_to_utf8,
9414 (char **) &inptr, &inbytesleft,
9415 &outptr, &outbytesleft);
9416 if ((int)res > 0)
9417 result |= 8;
9418 iconv_close (cd_88591_to_utf8);
9419 }
9420 }
9421#endif
9422 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
9423 provided. */
9424 if (/* Try standardized names. */
9425 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
9426 /* Try IRIX, OSF/1 names. */
9427 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
9428 /* Try AIX names. */
9429 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
9430 /* Try HP-UX names. */
9431 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
9432 result |= 16;
9433 return result;
9434}
9435_ACEOF
9436if ac_fn_c_try_run "$LINENO"; then :
9437 am_cv_func_iconv_works=yes
9438else
9439 am_cv_func_iconv_works=no
9440fi
9441rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9442 conftest.$ac_objext conftest.beam conftest.$ac_ext
9443fi
9444
9445 LIBS="$am_save_LIBS"
9446
9447fi
9448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
9449$as_echo "$am_cv_func_iconv_works" >&6; }
9450 case "$am_cv_func_iconv_works" in
9451 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
9452 *) am_func_iconv=yes ;;
9453 esac
9454 else
9455 am_func_iconv=no am_cv_lib_iconv=no
9456 fi
9457 if test "$am_func_iconv" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009458
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009459$as_echo "#define HAVE_ICONV 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009460
9461 fi
9462 if test "$am_cv_lib_iconv" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009464$as_echo_n "checking how to link with libiconv... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009466$as_echo "$LIBICONV" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009467 else
9468 CPPFLAGS="$am_save_CPPFLAGS"
9469 LIBICONV=
9470 LTLIBICONV=
9471 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009472
9473
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009474
9475 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009477$as_echo_n "checking for iconv declaration... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009478 if ${am_cv_proto_iconv+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009479 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009480else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009481
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009483/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009484
9485#include <stdlib.h>
9486#include <iconv.h>
9487extern
9488#ifdef __cplusplus
9489"C"
9490#endif
Theodore Ts'o93613952014-07-03 23:44:13 -04009491#if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009492size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9493#else
9494size_t iconv();
9495#endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009496
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009497int
9498main ()
9499{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009500
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009501 ;
9502 return 0;
9503}
9504_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009505if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009506 am_cv_proto_iconv_arg1=""
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009507else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009508 am_cv_proto_iconv_arg1="const"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009509fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009511 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 +00009512fi
9513
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009514 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
Theodore Ts'o93613952014-07-03 23:44:13 -04009515 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
9516 $am_cv_proto_iconv" >&5
9517$as_echo "
9518 $am_cv_proto_iconv" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009519
9520cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009521#define ICONV_CONST $am_cv_proto_iconv_arg1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009522_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009523
Theodore Ts'o93613952014-07-03 23:44:13 -04009524
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009525 fi
9526
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009527
Theodore Ts'o93613952014-07-03 23:44:13 -04009528
9529
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009531/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -04009532int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009533int
9534main ()
9535{
Theodore Ts'o93613952014-07-03 23:44:13 -04009536
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009537 ;
9538 return 0;
9539}
9540_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009541if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o93613952014-07-03 23:44:13 -04009542
9543$as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
9544
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009545fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009546rm -f core conftest.err conftest.$ac_objext \
9547 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009548
Theodore Ts'o93613952014-07-03 23:44:13 -04009549 for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
9550do :
9551 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9552ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9553if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9554 cat >>confdefs.h <<_ACEOF
9555#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009556_ACEOF
Theodore Ts'o93613952014-07-03 23:44:13 -04009557
9558fi
9559
9560done
9561
9562 for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
9563 stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \
9564 argz_stringify argz_next __fsetlocking
9565do :
9566 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9567ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9568if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9569 cat >>confdefs.h <<_ACEOF
9570#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9571_ACEOF
9572
9573fi
9574done
9575
9576
9577 ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "#include <stdio.h>
9578"
9579if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then :
9580 ac_have_decl=1
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009581else
Theodore Ts'o93613952014-07-03 23:44:13 -04009582 ac_have_decl=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009583fi
Theodore Ts'o93613952014-07-03 23:44:13 -04009584
9585cat >>confdefs.h <<_ACEOF
9586#define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
9587_ACEOF
9588ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "#include <stdio.h>
9589"
9590if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then :
9591 ac_have_decl=1
9592else
9593 ac_have_decl=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009594fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009595
Theodore Ts'o93613952014-07-03 23:44:13 -04009596cat >>confdefs.h <<_ACEOF
9597#define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
9598_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009599
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009600
Theodore Ts'o93613952014-07-03 23:44:13 -04009601
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009602
9603 for ac_prog in bison
9604do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009605 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009606set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009608$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009609if ${ac_cv_prog_INTLBISON+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009610 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009611else
9612 if test -n "$INTLBISON"; then
9613 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9614else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9616for as_dir in $PATH
9617do
9618 IFS=$as_save_IFS
9619 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009620 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009622 ac_cv_prog_INTLBISON="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009624 break 2
9625 fi
9626done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009627 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009628IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009629
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009630fi
9631fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009632INTLBISON=$ac_cv_prog_INTLBISON
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009633if test -n "$INTLBISON"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009635$as_echo "$INTLBISON" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009636else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009638$as_echo "no" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009639fi
9640
Theodore Ts'oe1052142006-10-21 21:46:47 -04009641
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009642 test -n "$INTLBISON" && break
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009643done
9644
9645 if test -z "$INTLBISON"; then
9646 ac_verc_fail=yes
9647 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009649$as_echo_n "checking version of bison... " >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009650 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9651 case $ac_prog_version in
9652 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9653 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9654 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9655 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9656 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009658$as_echo "$ac_prog_version" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009659 fi
9660 if test $ac_verc_fail = yes; then
9661 INTLBISON=:
9662 fi
9663
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009664
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009665
Theodore Ts'o93613952014-07-03 23:44:13 -04009666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
9667$as_echo_n "checking for long long int... " >&6; }
9668if ${ac_cv_type_long_long_int+:} false; then :
9669 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009670else
Theodore Ts'o93613952014-07-03 23:44:13 -04009671 ac_cv_type_long_long_int=yes
9672 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
9673 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
9674 if test $ac_cv_type_long_long_int = yes; then
9675 if test "$cross_compiling" = yes; then :
9676 :
9677else
9678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9679/* end confdefs.h. */
9680#include <limits.h>
9681 #ifndef LLONG_MAX
9682 # define HALF \
9683 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
9684 # define LLONG_MAX (HALF - 1 + HALF)
9685 #endif
9686int
9687main ()
9688{
9689long long int n = 1;
9690 int i;
9691 for (i = 0; ; i++)
9692 {
9693 long long int m = n << i;
9694 if (m >> i != n)
9695 return 1;
9696 if (LLONG_MAX / 2 < m)
9697 break;
9698 }
9699 return 0;
9700 ;
9701 return 0;
9702}
9703_ACEOF
9704if ac_fn_c_try_run "$LINENO"; then :
9705
9706else
9707 ac_cv_type_long_long_int=no
9708fi
9709rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9710 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009711fi
9712
Theodore Ts'o93613952014-07-03 23:44:13 -04009713 fi
9714 fi
9715fi
9716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
9717$as_echo "$ac_cv_type_long_long_int" >&6; }
9718 if test $ac_cv_type_long_long_int = yes; then
9719
9720$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
9721
9722 fi
9723
9724
9725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
9726$as_echo_n "checking for wchar_t... " >&6; }
9727if ${gt_cv_c_wchar_t+:} false; then :
9728 $as_echo_n "(cached) " >&6
9729else
9730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9731/* end confdefs.h. */
9732#include <stddef.h>
9733 wchar_t foo = (wchar_t)'\0';
9734int
9735main ()
9736{
9737
9738 ;
9739 return 0;
9740}
9741_ACEOF
9742if ac_fn_c_try_compile "$LINENO"; then :
9743 gt_cv_c_wchar_t=yes
9744else
9745 gt_cv_c_wchar_t=no
9746fi
9747rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9748fi
9749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
9750$as_echo "$gt_cv_c_wchar_t" >&6; }
9751 if test $gt_cv_c_wchar_t = yes; then
9752
9753$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
9754
9755 fi
9756
9757
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
9759$as_echo_n "checking for wint_t... " >&6; }
9760if ${gt_cv_c_wint_t+:} false; then :
9761 $as_echo_n "(cached) " >&6
9762else
9763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9764/* end confdefs.h. */
9765
9766/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9767 <wchar.h>.
9768 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
9769 before <wchar.h>. */
9770#include <stddef.h>
9771#include <stdio.h>
9772#include <time.h>
9773#include <wchar.h>
9774 wint_t foo = (wchar_t)'\0';
9775int
9776main ()
9777{
9778
9779 ;
9780 return 0;
9781}
9782_ACEOF
9783if ac_fn_c_try_compile "$LINENO"; then :
9784 gt_cv_c_wint_t=yes
9785else
9786 gt_cv_c_wint_t=no
9787fi
9788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9789fi
9790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
9791$as_echo "$gt_cv_c_wint_t" >&6; }
9792 if test $gt_cv_c_wint_t = yes; then
9793
9794$as_echo "#define HAVE_WINT_T 1" >>confdefs.h
9795
9796 fi
9797
9798
9799
9800
9801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
9802$as_echo_n "checking for intmax_t... " >&6; }
9803if ${gt_cv_c_intmax_t+:} false; then :
9804 $as_echo_n "(cached) " >&6
9805else
9806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9807/* end confdefs.h. */
9808
9809#include <stddef.h>
9810#include <stdlib.h>
9811#if HAVE_STDINT_H_WITH_UINTMAX
9812#include <stdint.h>
9813#endif
9814#if HAVE_INTTYPES_H_WITH_UINTMAX
9815#include <inttypes.h>
9816#endif
9817
9818int
9819main ()
9820{
9821intmax_t x = -1;
9822 return !x;
9823 ;
9824 return 0;
9825}
9826_ACEOF
9827if ac_fn_c_try_compile "$LINENO"; then :
9828 gt_cv_c_intmax_t=yes
9829else
9830 gt_cv_c_intmax_t=no
9831fi
9832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9833fi
9834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
9835$as_echo "$gt_cv_c_intmax_t" >&6; }
9836 if test $gt_cv_c_intmax_t = yes; then
9837
9838$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
9839
9840 fi
9841
9842
9843
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
9845$as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
9846if ${gt_cv_func_printf_posix+:} false; then :
9847 $as_echo_n "(cached) " >&6
9848else
9849
9850 if test "$cross_compiling" = yes; then :
9851
9852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9853/* end confdefs.h. */
9854
9855#if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
9856 notposix
9857#endif
9858
9859_ACEOF
9860if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9861 $EGREP "notposix" >/dev/null 2>&1; then :
9862 gt_cv_func_printf_posix="guessing no"
9863else
9864 gt_cv_func_printf_posix="guessing yes"
9865fi
9866rm -f conftest*
9867
9868
9869else
9870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9871/* end confdefs.h. */
9872
9873#include <stdio.h>
9874#include <string.h>
9875/* The string "%2$d %1$d", with dollar characters protected from the shell's
9876 dollar expansion (possibly an autoconf bug). */
9877static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
9878static char buf[100];
9879int main ()
9880{
9881 sprintf (buf, format, 33, 55);
9882 return (strcmp (buf, "55 33") != 0);
9883}
9884_ACEOF
9885if ac_fn_c_try_run "$LINENO"; then :
9886 gt_cv_func_printf_posix=yes
9887else
9888 gt_cv_func_printf_posix=no
9889fi
9890rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9891 conftest.$ac_objext conftest.beam conftest.$ac_ext
9892fi
9893
9894
9895fi
9896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
9897$as_echo "$gt_cv_func_printf_posix" >&6; }
9898 case $gt_cv_func_printf_posix in
9899 *yes)
9900
9901$as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
9902
9903 ;;
9904 esac
9905
9906
9907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
9908$as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
9909if ${ac_cv_gnu_library_2_1+:} false; then :
9910 $as_echo_n "(cached) " >&6
9911else
9912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9913/* end confdefs.h. */
9914
9915#include <features.h>
9916#ifdef __GNU_LIBRARY__
9917 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9918 Lucky GNU user
9919 #endif
9920#endif
9921#ifdef __UCLIBC__
9922 Lucky user
9923#endif
9924
9925_ACEOF
9926if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9927 $EGREP "Lucky" >/dev/null 2>&1; then :
9928 ac_cv_gnu_library_2_1=yes
9929else
9930 ac_cv_gnu_library_2_1=no
9931fi
9932rm -f conftest*
9933
9934
9935
9936fi
9937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
9938$as_echo "$ac_cv_gnu_library_2_1" >&6; }
9939
9940 GLIBC21="$ac_cv_gnu_library_2_1"
9941
9942
9943
9944 for ac_header in stdint.h
9945do :
9946 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
9947if test "x$ac_cv_header_stdint_h" = xyes; then :
9948 cat >>confdefs.h <<_ACEOF
9949#define HAVE_STDINT_H 1
9950_ACEOF
9951
9952fi
9953
9954done
9955
9956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
9957$as_echo_n "checking for SIZE_MAX... " >&6; }
9958if ${gl_cv_size_max+:} false; then :
9959 $as_echo_n "(cached) " >&6
9960else
9961
9962 gl_cv_size_max=
9963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9964/* end confdefs.h. */
9965
9966#include <limits.h>
9967#if HAVE_STDINT_H
9968#include <stdint.h>
9969#endif
9970#ifdef SIZE_MAX
9971Found it
9972#endif
9973
9974_ACEOF
9975if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9976 $EGREP "Found it" >/dev/null 2>&1; then :
9977 gl_cv_size_max=yes
9978fi
9979rm -f conftest*
9980
9981 if test -z "$gl_cv_size_max"; then
9982 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
9983#include <limits.h>"; then :
9984
9985else
9986 size_t_bits_minus_1=
9987fi
9988
9989 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
9990
9991else
9992 fits_in_uint=
9993fi
9994
9995 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
9996 if test $fits_in_uint = 1; then
9997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9998/* end confdefs.h. */
9999#include <stddef.h>
10000 extern size_t foo;
10001 extern unsigned long foo;
10002
10003int
10004main ()
10005{
10006
10007 ;
10008 return 0;
10009}
10010_ACEOF
10011if ac_fn_c_try_compile "$LINENO"; then :
10012 fits_in_uint=0
10013fi
10014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10015 fi
10016 if test $fits_in_uint = 1; then
10017 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
10018 else
10019 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
10020 fi
10021 else
10022 gl_cv_size_max='((size_t)~(size_t)0)'
10023 fi
10024 fi
10025
10026fi
10027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
10028$as_echo "$gl_cv_size_max" >&6; }
10029 if test "$gl_cv_size_max" != yes; then
10030
10031cat >>confdefs.h <<_ACEOF
10032#define SIZE_MAX $gl_cv_size_max
10033_ACEOF
10034
10035 fi
10036
10037
10038
10039
10040 for ac_header in stdint.h
10041do :
10042 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
10043if test "x$ac_cv_header_stdint_h" = xyes; then :
10044 cat >>confdefs.h <<_ACEOF
10045#define HAVE_STDINT_H 1
10046_ACEOF
10047
10048fi
10049
10050done
10051
10052
10053
10054
10055
10056 for ac_func in $ac_func_list
10057do :
10058 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10059ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10060if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10061 cat >>confdefs.h <<_ACEOF
10062#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10063_ACEOF
10064
10065fi
10066done
10067
10068
10069
10070
10071
10072
10073
10074
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
10076$as_echo_n "checking for working fcntl.h... " >&6; }
10077if ${gl_cv_header_working_fcntl_h+:} false; then :
10078 $as_echo_n "(cached) " >&6
10079else
10080 if test "$cross_compiling" = yes; then :
10081 gl_cv_header_working_fcntl_h=cross-compiling
10082else
10083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10084/* end confdefs.h. */
10085#include <sys/types.h>
10086 #include <sys/stat.h>
10087 #if HAVE_UNISTD_H
10088 # include <unistd.h>
10089 #else /* on Windows with MSVC */
10090 # include <io.h>
10091 # include <stdlib.h>
10092 # defined sleep(n) _sleep ((n) * 1000)
10093 #endif
10094 #include <fcntl.h>
10095 #ifndef O_NOATIME
10096 #define O_NOATIME 0
10097 #endif
10098 #ifndef O_NOFOLLOW
10099 #define O_NOFOLLOW 0
10100 #endif
10101 static int const constants[] =
10102 {
10103 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
10104 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
10105 };
10106
10107int
10108main ()
10109{
10110
10111 int result = !constants;
10112 #if HAVE_SYMLINK
10113 {
10114 static char const sym[] = "conftest.sym";
10115 if (symlink ("/dev/null", sym) != 0)
10116 result |= 2;
10117 else
10118 {
10119 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
10120 if (fd >= 0)
10121 {
10122 close (fd);
10123 result |= 4;
10124 }
10125 }
10126 if (unlink (sym) != 0 || symlink (".", sym) != 0)
10127 result |= 2;
10128 else
10129 {
10130 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
10131 if (fd >= 0)
10132 {
10133 close (fd);
10134 result |= 4;
10135 }
10136 }
10137 unlink (sym);
10138 }
10139 #endif
10140 {
10141 static char const file[] = "confdefs.h";
10142 int fd = open (file, O_RDONLY | O_NOATIME);
10143 if (fd < 0)
10144 result |= 8;
10145 else
10146 {
10147 struct stat st0;
10148 if (fstat (fd, &st0) != 0)
10149 result |= 16;
10150 else
10151 {
10152 char c;
10153 sleep (1);
10154 if (read (fd, &c, 1) != 1)
10155 result |= 24;
10156 else
10157 {
10158 if (close (fd) != 0)
10159 result |= 32;
10160 else
10161 {
10162 struct stat st1;
10163 if (stat (file, &st1) != 0)
10164 result |= 40;
10165 else
10166 if (st0.st_atime != st1.st_atime)
10167 result |= 64;
10168 }
10169 }
10170 }
10171 }
10172 }
10173 return result;
10174 ;
10175 return 0;
10176}
10177_ACEOF
10178if ac_fn_c_try_run "$LINENO"; then :
10179 gl_cv_header_working_fcntl_h=yes
10180else
10181 case $? in #(
10182 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
10183 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
10184 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
10185 *) gl_cv_header_working_fcntl_h='no';;
10186 esac
10187fi
10188rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10189 conftest.$ac_objext conftest.beam conftest.$ac_ext
10190fi
10191
10192fi
10193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
10194$as_echo "$gl_cv_header_working_fcntl_h" >&6; }
10195
10196 case $gl_cv_header_working_fcntl_h in #(
10197 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
10198 *) ac_val=1;;
10199 esac
10200
10201cat >>confdefs.h <<_ACEOF
10202#define HAVE_WORKING_O_NOATIME $ac_val
10203_ACEOF
10204
10205
10206 case $gl_cv_header_working_fcntl_h in #(
10207 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
10208 *) ac_val=1;;
10209 esac
10210
10211cat >>confdefs.h <<_ACEOF
10212#define HAVE_WORKING_O_NOFOLLOW $ac_val
10213_ACEOF
10214
10215
10216
10217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10218$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10219if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10220 $as_echo_n "(cached) " >&6
10221else
10222 gt_save_LIBS="$LIBS"
10223 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10225/* end confdefs.h. */
10226#include <CoreFoundation/CFPreferences.h>
10227int
10228main ()
10229{
10230CFPreferencesCopyAppValue(NULL, NULL)
10231 ;
10232 return 0;
10233}
10234_ACEOF
10235if ac_fn_c_try_link "$LINENO"; then :
10236 gt_cv_func_CFPreferencesCopyAppValue=yes
10237else
10238 gt_cv_func_CFPreferencesCopyAppValue=no
10239fi
10240rm -f core conftest.err conftest.$ac_objext \
10241 conftest$ac_exeext conftest.$ac_ext
10242 LIBS="$gt_save_LIBS"
10243fi
10244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10245$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10246 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10247
10248$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10249
10250 fi
10251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10252$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10253if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10254 $as_echo_n "(cached) " >&6
10255else
10256 gt_save_LIBS="$LIBS"
10257 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10259/* end confdefs.h. */
10260#include <CoreFoundation/CFLocale.h>
10261int
10262main ()
10263{
10264CFLocaleCopyCurrent();
10265 ;
10266 return 0;
10267}
10268_ACEOF
10269if ac_fn_c_try_link "$LINENO"; then :
10270 gt_cv_func_CFLocaleCopyCurrent=yes
10271else
10272 gt_cv_func_CFLocaleCopyCurrent=no
10273fi
10274rm -f core conftest.err conftest.$ac_objext \
10275 conftest$ac_exeext conftest.$ac_ext
10276 LIBS="$gt_save_LIBS"
10277fi
10278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10279$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10280 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10281
10282$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10283
10284 fi
10285 INTL_MACOSX_LIBS=
10286 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10287 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10288 fi
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299 case "$enable_silent_rules" in
10300 yes) INTL_DEFAULT_VERBOSITY=0;;
10301 no) INTL_DEFAULT_VERBOSITY=1;;
10302 *) INTL_DEFAULT_VERBOSITY=1;;
10303 esac
10304
10305
10306 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
10307if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
10308
10309else
10310
10311$as_echo "#define ptrdiff_t long" >>confdefs.h
10312
10313
10314fi
10315
10316 for ac_header in features.h stddef.h stdlib.h string.h
10317do :
10318 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10319ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10320if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10321 cat >>confdefs.h <<_ACEOF
10322#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10323_ACEOF
10324
10325fi
10326
10327done
10328
10329 for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \
10330 snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
10331do :
10332 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10333ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10334if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10335 cat >>confdefs.h <<_ACEOF
10336#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10337_ACEOF
10338
10339fi
10340done
10341
10342
10343 ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
10344"
10345if test "x$ac_cv_have_decl__snprintf" = xyes; then :
10346 ac_have_decl=1
10347else
10348 ac_have_decl=0
10349fi
10350
10351cat >>confdefs.h <<_ACEOF
10352#define HAVE_DECL__SNPRINTF $ac_have_decl
10353_ACEOF
10354ac_fn_c_check_decl "$LINENO" "_snwprintf" "ac_cv_have_decl__snwprintf" "#include <stdio.h>
10355"
10356if test "x$ac_cv_have_decl__snwprintf" = xyes; then :
10357 ac_have_decl=1
10358else
10359 ac_have_decl=0
10360fi
10361
10362cat >>confdefs.h <<_ACEOF
10363#define HAVE_DECL__SNWPRINTF $ac_have_decl
10364_ACEOF
10365
10366
10367 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "#include <stdio.h>
10368"
10369if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
10370 ac_have_decl=1
10371else
10372 ac_have_decl=0
10373fi
10374
10375cat >>confdefs.h <<_ACEOF
10376#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
10377_ACEOF
10378
10379
10380 case $gt_cv_func_printf_posix in
10381 *yes) HAVE_POSIX_PRINTF=1 ;;
10382 *) HAVE_POSIX_PRINTF=0 ;;
10383 esac
10384
10385 if test "$ac_cv_func_asprintf" = yes; then
10386 HAVE_ASPRINTF=1
10387 else
10388 HAVE_ASPRINTF=0
10389 fi
10390
10391 if test "$ac_cv_func_snprintf" = yes; then
10392 HAVE_SNPRINTF=1
10393 else
10394 HAVE_SNPRINTF=0
10395 fi
10396
10397 if test "$ac_cv_func_newlocale" = yes; then
10398 HAVE_NEWLOCALE=1
10399 else
10400 HAVE_NEWLOCALE=0
10401 fi
10402
10403 if test "$ac_cv_func_wprintf" = yes; then
10404 HAVE_WPRINTF=1
10405 else
10406 HAVE_WPRINTF=0
10407 fi
10408
10409
10410
10411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10412$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10413if ${am_cv_langinfo_codeset+:} false; then :
10414 $as_echo_n "(cached) " >&6
10415else
10416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10417/* end confdefs.h. */
10418#include <langinfo.h>
10419int
10420main ()
10421{
10422char* cs = nl_langinfo(CODESET); return !cs;
10423 ;
10424 return 0;
10425}
10426_ACEOF
10427if ac_fn_c_try_link "$LINENO"; then :
10428 am_cv_langinfo_codeset=yes
10429else
10430 am_cv_langinfo_codeset=no
10431fi
10432rm -f core conftest.err conftest.$ac_objext \
10433 conftest$ac_exeext conftest.$ac_ext
10434
10435fi
10436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10437$as_echo "$am_cv_langinfo_codeset" >&6; }
10438 if test $am_cv_langinfo_codeset = yes; then
10439
10440$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10441
10442 fi
10443
10444
10445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10446$as_echo_n "checking for LC_MESSAGES... " >&6; }
10447if ${gt_cv_val_LC_MESSAGES+:} false; then :
10448 $as_echo_n "(cached) " >&6
10449else
10450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10451/* end confdefs.h. */
10452#include <locale.h>
10453int
10454main ()
10455{
10456return LC_MESSAGES
10457 ;
10458 return 0;
10459}
10460_ACEOF
10461if ac_fn_c_try_link "$LINENO"; then :
10462 gt_cv_val_LC_MESSAGES=yes
10463else
10464 gt_cv_val_LC_MESSAGES=no
10465fi
10466rm -f core conftest.err conftest.$ac_objext \
10467 conftest$ac_exeext conftest.$ac_ext
10468fi
10469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
10470$as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
10471 if test $gt_cv_val_LC_MESSAGES = yes; then
10472
10473$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10474
10475 fi
10476
10477
10478 if test "$enable_shared" = yes; then
10479 case "$host_os" in
10480 mingw* | cygwin*) is_woe32dll=yes ;;
10481 *) is_woe32dll=no ;;
10482 esac
10483 else
10484 is_woe32dll=no
10485 fi
10486 WOE32DLL=$is_woe32dll
10487
10488
10489 case "$host_os" in
10490 mingw* | cygwin*) is_woe32=yes ;;
10491 *) is_woe32=no ;;
10492 esac
10493 WOE32=$is_woe32
10494
10495 if test $WOE32 = yes; then
10496 if test -n "$ac_tool_prefix"; then
10497 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
10498set dummy ${ac_tool_prefix}windres; ac_word=$2
10499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10500$as_echo_n "checking for $ac_word... " >&6; }
10501if ${ac_cv_prog_WINDRES+:} false; then :
10502 $as_echo_n "(cached) " >&6
10503else
10504 if test -n "$WINDRES"; then
10505 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
10506else
10507as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10508for as_dir in $PATH
10509do
10510 IFS=$as_save_IFS
10511 test -z "$as_dir" && as_dir=.
10512 for ac_exec_ext in '' $ac_executable_extensions; do
10513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10514 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
10515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10516 break 2
10517 fi
10518done
10519 done
10520IFS=$as_save_IFS
10521
10522fi
10523fi
10524WINDRES=$ac_cv_prog_WINDRES
10525if test -n "$WINDRES"; then
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
10527$as_echo "$WINDRES" >&6; }
10528else
10529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10530$as_echo "no" >&6; }
10531fi
10532
10533
10534fi
10535if test -z "$ac_cv_prog_WINDRES"; then
10536 ac_ct_WINDRES=$WINDRES
10537 # Extract the first word of "windres", so it can be a program name with args.
10538set dummy windres; ac_word=$2
10539{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10540$as_echo_n "checking for $ac_word... " >&6; }
10541if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
10542 $as_echo_n "(cached) " >&6
10543else
10544 if test -n "$ac_ct_WINDRES"; then
10545 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
10546else
10547as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10548for as_dir in $PATH
10549do
10550 IFS=$as_save_IFS
10551 test -z "$as_dir" && as_dir=.
10552 for ac_exec_ext in '' $ac_executable_extensions; do
10553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10554 ac_cv_prog_ac_ct_WINDRES="windres"
10555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10556 break 2
10557 fi
10558done
10559 done
10560IFS=$as_save_IFS
10561
10562fi
10563fi
10564ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
10565if test -n "$ac_ct_WINDRES"; then
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
10567$as_echo "$ac_ct_WINDRES" >&6; }
10568else
10569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10570$as_echo "no" >&6; }
10571fi
10572
10573 if test "x$ac_ct_WINDRES" = x; then
10574 WINDRES=""
10575 else
10576 case $cross_compiling:$ac_tool_warned in
10577yes:)
10578{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10579$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10580ac_tool_warned=yes ;;
10581esac
10582 WINDRES=$ac_ct_WINDRES
10583 fi
10584else
10585 WINDRES="$ac_cv_prog_WINDRES"
10586fi
10587
10588 fi
10589
10590 case "$host_os" in
10591 hpux*) LTLIBC="" ;;
10592 *) LTLIBC="-lc" ;;
10593 esac
10594
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10622$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10623if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10624 $as_echo_n "(cached) " >&6
10625else
10626 gt_save_LIBS="$LIBS"
10627 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10629/* end confdefs.h. */
10630#include <CoreFoundation/CFPreferences.h>
10631int
10632main ()
10633{
10634CFPreferencesCopyAppValue(NULL, NULL)
10635 ;
10636 return 0;
10637}
10638_ACEOF
10639if ac_fn_c_try_link "$LINENO"; then :
10640 gt_cv_func_CFPreferencesCopyAppValue=yes
10641else
10642 gt_cv_func_CFPreferencesCopyAppValue=no
10643fi
10644rm -f core conftest.err conftest.$ac_objext \
10645 conftest$ac_exeext conftest.$ac_ext
10646 LIBS="$gt_save_LIBS"
10647fi
10648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10649$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10650 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10651
10652$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10653
10654 fi
10655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10656$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10657if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10658 $as_echo_n "(cached) " >&6
10659else
10660 gt_save_LIBS="$LIBS"
10661 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10663/* end confdefs.h. */
10664#include <CoreFoundation/CFLocale.h>
10665int
10666main ()
10667{
10668CFLocaleCopyCurrent();
10669 ;
10670 return 0;
10671}
10672_ACEOF
10673if ac_fn_c_try_link "$LINENO"; then :
10674 gt_cv_func_CFLocaleCopyCurrent=yes
10675else
10676 gt_cv_func_CFLocaleCopyCurrent=no
10677fi
10678rm -f core conftest.err conftest.$ac_objext \
10679 conftest$ac_exeext conftest.$ac_ext
10680 LIBS="$gt_save_LIBS"
10681fi
10682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10683$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10684 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10685
10686$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10687
10688 fi
10689 INTL_MACOSX_LIBS=
10690 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10691 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10692 fi
10693
10694
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010695
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010696
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010697
10698
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010699 BUILD_INCLUDED_LIBINTL=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010700 USE_INCLUDED_LIBINTL=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010701
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010702 LIBINTL=
10703 LTLIBINTL=
10704 POSUB=
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010705
Theodore Ts'o93613952014-07-03 23:44:13 -040010706 case " $gt_needs " in
10707 *" need-formatstring-macros "*) gt_api_version=3 ;;
10708 *" need-ngettext "*) gt_api_version=2 ;;
10709 *) gt_api_version=1 ;;
10710 esac
10711 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
10712 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
10713
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010714 if test "$USE_NLS" = "yes"; then
10715 gt_use_preinstalled_gnugettext=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010716
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010718$as_echo_n "checking whether included gettext is requested... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010719
Theodore Ts'oe1052142006-10-21 21:46:47 -040010720# Check whether --with-included-gettext was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010721if test "${with_included_gettext+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -040010722 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010723else
10724 nls_cv_force_use_gnu_gettext=no
Theodore Ts'oe1052142006-10-21 21:46:47 -040010725fi
10726
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010728$as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010729
10730 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10731 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010732
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010733
Theodore Ts'o93613952014-07-03 23:44:13 -040010734 if test $gt_api_version -ge 3; then
10735 gt_revision_test_code='
10736#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10737#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
10738#endif
10739typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
10740'
10741 else
10742 gt_revision_test_code=
10743 fi
10744 if test $gt_api_version -ge 2; then
10745 gt_expression_test_code=' + * ngettext ("", "", 0)'
10746 else
10747 gt_expression_test_code=
10748 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010749
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010751$as_echo_n "checking for GNU gettext in libc... " >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -040010752if eval \${$gt_func_gnugettext_libc+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010753 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010754else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010756/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -040010757
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010758#include <libintl.h>
Theodore Ts'o93613952014-07-03 23:44:13 -040010759$gt_revision_test_code
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010760extern int _nl_msg_cat_cntr;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010761extern int *_nl_domain_bindings;
Theodore Ts'o93613952014-07-03 23:44:13 -040010762
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010763int
10764main ()
10765{
Theodore Ts'o93613952014-07-03 23:44:13 -040010766
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010767bindtextdomain ("", "");
Theodore Ts'o93613952014-07-03 23:44:13 -040010768return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
10769
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010770 ;
10771 return 0;
10772}
10773_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010774if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o93613952014-07-03 23:44:13 -040010775 eval "$gt_func_gnugettext_libc=yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010776else
Theodore Ts'o93613952014-07-03 23:44:13 -040010777 eval "$gt_func_gnugettext_libc=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010778fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010779rm -f core conftest.err conftest.$ac_objext \
10780 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010781fi
Theodore Ts'o93613952014-07-03 23:44:13 -040010782eval ac_res=\$$gt_func_gnugettext_libc
10783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10784$as_echo "$ac_res" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010785
Theodore Ts'o93613952014-07-03 23:44:13 -040010786 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
10787
10788
10789
10790
10791
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010792
10793
10794
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010795 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010796
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010797 acl_save_prefix="$prefix"
10798 prefix="$acl_final_prefix"
10799 acl_save_exec_prefix="$exec_prefix"
10800 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010801
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010802 eval additional_includedir=\"$includedir\"
10803 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010804
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010805 exec_prefix="$acl_save_exec_prefix"
10806 prefix="$acl_save_prefix"
10807
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010808
Theodore Ts'oe1052142006-10-21 21:46:47 -040010809# Check whether --with-libintl-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010810if test "${with_libintl_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -040010811 withval=$with_libintl_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010812 if test "X$withval" = "Xno"; then
10813 use_additional=no
10814 else
10815 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010816
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010817 acl_save_prefix="$prefix"
10818 prefix="$acl_final_prefix"
10819 acl_save_exec_prefix="$exec_prefix"
10820 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010821
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010822 eval additional_includedir=\"$includedir\"
10823 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010824
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010825 exec_prefix="$acl_save_exec_prefix"
10826 prefix="$acl_save_prefix"
10827
10828 else
10829 additional_includedir="$withval/include"
Theodore Ts'o93613952014-07-03 23:44:13 -040010830 additional_libdir="$withval/$acl_libdirstem"
10831 if test "$acl_libdirstem2" != "$acl_libdirstem" \
10832 && ! test -d "$withval/$acl_libdirstem"; then
10833 additional_libdir="$withval/$acl_libdirstem2"
10834 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010835 fi
10836 fi
10837
Theodore Ts'oe1052142006-10-21 21:46:47 -040010838fi
10839
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010840 LIBINTL=
10841 LTLIBINTL=
10842 INCINTL=
Theodore Ts'o93613952014-07-03 23:44:13 -040010843 LIBINTL_PREFIX=
10844 HAVE_LIBINTL=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010845 rpathdirs=
10846 ltrpathdirs=
10847 names_already_handled=
10848 names_next_round='intl '
10849 while test -n "$names_next_round"; do
10850 names_this_round="$names_next_round"
10851 names_next_round=
10852 for name in $names_this_round; do
10853 already_handled=
10854 for n in $names_already_handled; do
10855 if test "$n" = "$name"; then
10856 already_handled=yes
10857 break
10858 fi
10859 done
10860 if test -z "$already_handled"; then
10861 names_already_handled="$names_already_handled $name"
Theodore Ts'o93613952014-07-03 23:44:13 -040010862 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010863 eval value=\"\$HAVE_LIB$uppername\"
10864 if test -n "$value"; then
10865 if test "$value" = yes; then
10866 eval value=\"\$LIB$uppername\"
10867 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10868 eval value=\"\$LTLIB$uppername\"
10869 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10870 else
10871 :
10872 fi
10873 else
10874 found_dir=
10875 found_la=
10876 found_so=
10877 found_a=
Theodore Ts'o93613952014-07-03 23:44:13 -040010878 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
10879 if test -n "$acl_shlibext"; then
10880 shrext=".$acl_shlibext" # typically: shrext=.so
10881 else
10882 shrext=
10883 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010884 if test $use_additional = yes; then
Theodore Ts'o93613952014-07-03 23:44:13 -040010885 dir="$additional_libdir"
10886 if test -n "$acl_shlibext"; then
10887 if test -f "$dir/$libname$shrext"; then
10888 found_dir="$dir"
10889 found_so="$dir/$libname$shrext"
10890 else
10891 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10892 ver=`(cd "$dir" && \
10893 for f in "$libname$shrext".*; do echo "$f"; done \
10894 | sed -e "s,^$libname$shrext\\\\.,," \
10895 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10896 | sed 1q ) 2>/dev/null`
10897 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10898 found_dir="$dir"
10899 found_so="$dir/$libname$shrext.$ver"
10900 fi
10901 else
10902 eval library_names=\"$acl_library_names_spec\"
10903 for f in $library_names; do
10904 if test -f "$dir/$f"; then
10905 found_dir="$dir"
10906 found_so="$dir/$f"
10907 break
10908 fi
10909 done
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010910 fi
10911 fi
10912 fi
Theodore Ts'o93613952014-07-03 23:44:13 -040010913 if test "X$found_dir" = "X"; then
10914 if test -f "$dir/$libname.$acl_libext"; then
10915 found_dir="$dir"
10916 found_a="$dir/$libname.$acl_libext"
10917 fi
10918 fi
10919 if test "X$found_dir" != "X"; then
10920 if test -f "$dir/$libname.la"; then
10921 found_la="$dir/$libname.la"
10922 fi
10923 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010924 fi
10925 if test "X$found_dir" = "X"; then
10926 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010927
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010928 acl_save_prefix="$prefix"
10929 prefix="$acl_final_prefix"
10930 acl_save_exec_prefix="$exec_prefix"
10931 exec_prefix="$acl_final_exec_prefix"
10932 eval x=\"$x\"
10933 exec_prefix="$acl_save_exec_prefix"
10934 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010935
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010936 case "$x" in
10937 -L*)
10938 dir=`echo "X$x" | sed -e 's/^X-L//'`
Theodore Ts'o93613952014-07-03 23:44:13 -040010939 if test -n "$acl_shlibext"; then
10940 if test -f "$dir/$libname$shrext"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010941 found_dir="$dir"
Theodore Ts'o93613952014-07-03 23:44:13 -040010942 found_so="$dir/$libname$shrext"
10943 else
10944 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10945 ver=`(cd "$dir" && \
10946 for f in "$libname$shrext".*; do echo "$f"; done \
10947 | sed -e "s,^$libname$shrext\\\\.,," \
10948 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10949 | sed 1q ) 2>/dev/null`
10950 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10951 found_dir="$dir"
10952 found_so="$dir/$libname$shrext.$ver"
10953 fi
10954 else
10955 eval library_names=\"$acl_library_names_spec\"
10956 for f in $library_names; do
10957 if test -f "$dir/$f"; then
10958 found_dir="$dir"
10959 found_so="$dir/$f"
10960 break
10961 fi
10962 done
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010963 fi
10964 fi
10965 fi
Theodore Ts'o93613952014-07-03 23:44:13 -040010966 if test "X$found_dir" = "X"; then
10967 if test -f "$dir/$libname.$acl_libext"; then
10968 found_dir="$dir"
10969 found_a="$dir/$libname.$acl_libext"
10970 fi
10971 fi
10972 if test "X$found_dir" != "X"; then
10973 if test -f "$dir/$libname.la"; then
10974 found_la="$dir/$libname.la"
10975 fi
10976 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010977 ;;
10978 esac
10979 if test "X$found_dir" != "X"; then
10980 break
10981 fi
10982 done
10983 fi
10984 if test "X$found_dir" != "X"; then
10985 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10986 if test "X$found_so" != "X"; then
Theodore Ts'o93613952014-07-03 23:44:13 -040010987 if test "$enable_rpath" = no \
10988 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
10989 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010990 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10991 else
10992 haveit=
10993 for x in $ltrpathdirs; do
10994 if test "X$x" = "X$found_dir"; then
10995 haveit=yes
10996 break
10997 fi
10998 done
10999 if test -z "$haveit"; then
11000 ltrpathdirs="$ltrpathdirs $found_dir"
11001 fi
Theodore Ts'o93613952014-07-03 23:44:13 -040011002 if test "$acl_hardcode_direct" = yes; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011003 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11004 else
Theodore Ts'o93613952014-07-03 23:44:13 -040011005 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011006 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11007 haveit=
11008 for x in $rpathdirs; do
11009 if test "X$x" = "X$found_dir"; then
11010 haveit=yes
11011 break
11012 fi
11013 done
11014 if test -z "$haveit"; then
11015 rpathdirs="$rpathdirs $found_dir"
11016 fi
11017 else
11018 haveit=
11019 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011020
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011021 acl_save_prefix="$prefix"
11022 prefix="$acl_final_prefix"
11023 acl_save_exec_prefix="$exec_prefix"
11024 exec_prefix="$acl_final_exec_prefix"
11025 eval x=\"$x\"
11026 exec_prefix="$acl_save_exec_prefix"
11027 prefix="$acl_save_prefix"
11028
11029 if test "X$x" = "X-L$found_dir"; then
11030 haveit=yes
11031 break
11032 fi
11033 done
11034 if test -z "$haveit"; then
11035 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
11036 fi
Theodore Ts'o93613952014-07-03 23:44:13 -040011037 if test "$acl_hardcode_minus_L" != no; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011038 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11039 else
11040 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11041 fi
11042 fi
11043 fi
11044 fi
11045 else
11046 if test "X$found_a" != "X"; then
11047 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
11048 else
11049 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
11050 fi
11051 fi
11052 additional_includedir=
11053 case "$found_dir" in
Theodore Ts'o93613952014-07-03 23:44:13 -040011054 */$acl_libdirstem | */$acl_libdirstem/)
11055 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
11056 if test "$name" = 'intl'; then
11057 LIBINTL_PREFIX="$basedir"
11058 fi
11059 additional_includedir="$basedir/include"
11060 ;;
11061 */$acl_libdirstem2 | */$acl_libdirstem2/)
11062 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
11063 if test "$name" = 'intl'; then
11064 LIBINTL_PREFIX="$basedir"
11065 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011066 additional_includedir="$basedir/include"
11067 ;;
11068 esac
11069 if test "X$additional_includedir" != "X"; then
11070 if test "X$additional_includedir" != "X/usr/include"; then
11071 haveit=
11072 if test "X$additional_includedir" = "X/usr/local/include"; then
11073 if test -n "$GCC"; then
11074 case $host_os in
Theodore Ts'o93613952014-07-03 23:44:13 -040011075 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011076 esac
11077 fi
11078 fi
11079 if test -z "$haveit"; then
11080 for x in $CPPFLAGS $INCINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011081
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011082 acl_save_prefix="$prefix"
11083 prefix="$acl_final_prefix"
11084 acl_save_exec_prefix="$exec_prefix"
11085 exec_prefix="$acl_final_exec_prefix"
11086 eval x=\"$x\"
11087 exec_prefix="$acl_save_exec_prefix"
11088 prefix="$acl_save_prefix"
11089
11090 if test "X$x" = "X-I$additional_includedir"; then
11091 haveit=yes
11092 break
11093 fi
11094 done
11095 if test -z "$haveit"; then
11096 if test -d "$additional_includedir"; then
11097 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
11098 fi
11099 fi
11100 fi
11101 fi
11102 fi
11103 if test -n "$found_la"; then
11104 save_libdir="$libdir"
11105 case "$found_la" in
11106 */* | *\\*) . "$found_la" ;;
11107 *) . "./$found_la" ;;
11108 esac
11109 libdir="$save_libdir"
11110 for dep in $dependency_libs; do
11111 case "$dep" in
11112 -L*)
11113 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
Theodore Ts'o93613952014-07-03 23:44:13 -040011114 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
11115 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011116 haveit=
Theodore Ts'o93613952014-07-03 23:44:13 -040011117 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
11118 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011119 if test -n "$GCC"; then
11120 case $host_os in
Theodore Ts'o93613952014-07-03 23:44:13 -040011121 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011122 esac
11123 fi
11124 fi
11125 if test -z "$haveit"; then
11126 haveit=
11127 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011128
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011129 acl_save_prefix="$prefix"
11130 prefix="$acl_final_prefix"
11131 acl_save_exec_prefix="$exec_prefix"
11132 exec_prefix="$acl_final_exec_prefix"
11133 eval x=\"$x\"
11134 exec_prefix="$acl_save_exec_prefix"
11135 prefix="$acl_save_prefix"
11136
11137 if test "X$x" = "X-L$additional_libdir"; then
11138 haveit=yes
11139 break
11140 fi
11141 done
11142 if test -z "$haveit"; then
11143 if test -d "$additional_libdir"; then
11144 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
11145 fi
11146 fi
11147 haveit=
11148 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011149
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011150 acl_save_prefix="$prefix"
11151 prefix="$acl_final_prefix"
11152 acl_save_exec_prefix="$exec_prefix"
11153 exec_prefix="$acl_final_exec_prefix"
11154 eval x=\"$x\"
11155 exec_prefix="$acl_save_exec_prefix"
11156 prefix="$acl_save_prefix"
11157
11158 if test "X$x" = "X-L$additional_libdir"; then
11159 haveit=yes
11160 break
11161 fi
11162 done
11163 if test -z "$haveit"; then
11164 if test -d "$additional_libdir"; then
11165 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
11166 fi
11167 fi
11168 fi
11169 fi
11170 ;;
11171 -R*)
11172 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11173 if test "$enable_rpath" != no; then
11174 haveit=
11175 for x in $rpathdirs; do
11176 if test "X$x" = "X$dir"; then
11177 haveit=yes
11178 break
11179 fi
11180 done
11181 if test -z "$haveit"; then
11182 rpathdirs="$rpathdirs $dir"
11183 fi
11184 haveit=
11185 for x in $ltrpathdirs; do
11186 if test "X$x" = "X$dir"; then
11187 haveit=yes
11188 break
11189 fi
11190 done
11191 if test -z "$haveit"; then
11192 ltrpathdirs="$ltrpathdirs $dir"
11193 fi
11194 fi
11195 ;;
11196 -l*)
11197 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11198 ;;
11199 *.la)
11200 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11201 ;;
11202 *)
11203 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
11204 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
11205 ;;
11206 esac
11207 done
11208 fi
11209 else
11210 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11211 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
11212 fi
11213 fi
11214 fi
11215 done
11216 done
11217 if test "X$rpathdirs" != "X"; then
Theodore Ts'o93613952014-07-03 23:44:13 -040011218 if test -n "$acl_hardcode_libdir_separator"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011219 alldirs=
11220 for found_dir in $rpathdirs; do
Theodore Ts'o93613952014-07-03 23:44:13 -040011221 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011222 done
11223 acl_save_libdir="$libdir"
11224 libdir="$alldirs"
Theodore Ts'o93613952014-07-03 23:44:13 -040011225 eval flag=\"$acl_hardcode_libdir_flag_spec\"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011226 libdir="$acl_save_libdir"
11227 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11228 else
11229 for found_dir in $rpathdirs; do
11230 acl_save_libdir="$libdir"
11231 libdir="$found_dir"
Theodore Ts'o93613952014-07-03 23:44:13 -040011232 eval flag=\"$acl_hardcode_libdir_flag_spec\"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011233 libdir="$acl_save_libdir"
11234 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11235 done
11236 fi
11237 fi
11238 if test "X$ltrpathdirs" != "X"; then
11239 for found_dir in $ltrpathdirs; do
11240 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
11241 done
11242 fi
11243
Theodore Ts'o93613952014-07-03 23:44:13 -040011244
11245
11246
11247
11248
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011250$as_echo_n "checking for GNU gettext in libintl... " >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -040011251if eval \${$gt_func_gnugettext_libintl+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011252 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011253else
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011254 gt_save_CPPFLAGS="$CPPFLAGS"
11255 CPPFLAGS="$CPPFLAGS $INCINTL"
11256 gt_save_LIBS="$LIBS"
11257 LIBS="$LIBS $LIBINTL"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011259/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -040011260
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011261#include <libintl.h>
Theodore Ts'o93613952014-07-03 23:44:13 -040011262$gt_revision_test_code
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011263extern int _nl_msg_cat_cntr;
11264extern
11265#ifdef __cplusplus
11266"C"
11267#endif
Theodore Ts'o93613952014-07-03 23:44:13 -040011268const char *_nl_expand_alias (const char *);
11269
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011270int
11271main ()
11272{
Theodore Ts'o93613952014-07-03 23:44:13 -040011273
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011274bindtextdomain ("", "");
Theodore Ts'o93613952014-07-03 23:44:13 -040011275return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11276
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011277 ;
11278 return 0;
11279}
11280_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011281if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o93613952014-07-03 23:44:13 -040011282 eval "$gt_func_gnugettext_libintl=yes"
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011283else
Theodore Ts'o93613952014-07-03 23:44:13 -040011284 eval "$gt_func_gnugettext_libintl=no"
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011285fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011286rm -f core conftest.err conftest.$ac_objext \
11287 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o93613952014-07-03 23:44:13 -040011288 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011289 LIBS="$LIBS $LIBICONV"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011291/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -040011292
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011293#include <libintl.h>
Theodore Ts'o93613952014-07-03 23:44:13 -040011294$gt_revision_test_code
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011295extern int _nl_msg_cat_cntr;
11296extern
11297#ifdef __cplusplus
11298"C"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011299#endif
Theodore Ts'o93613952014-07-03 23:44:13 -040011300const char *_nl_expand_alias (const char *);
11301
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011302int
11303main ()
11304{
Theodore Ts'o93613952014-07-03 23:44:13 -040011305
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011306bindtextdomain ("", "");
Theodore Ts'o93613952014-07-03 23:44:13 -040011307return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11308
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011309 ;
11310 return 0;
11311}
11312_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011313if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011314 LIBINTL="$LIBINTL $LIBICONV"
Theodore Ts'o93613952014-07-03 23:44:13 -040011315 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
11316 eval "$gt_func_gnugettext_libintl=yes"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011317
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011318fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011319rm -f core conftest.err conftest.$ac_objext \
11320 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011321 fi
11322 CPPFLAGS="$gt_save_CPPFLAGS"
11323 LIBS="$gt_save_LIBS"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011324fi
Theodore Ts'o93613952014-07-03 23:44:13 -040011325eval ac_res=\$$gt_func_gnugettext_libintl
11326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11327$as_echo "$ac_res" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011328 fi
11329
Theodore Ts'o93613952014-07-03 23:44:13 -040011330 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
11331 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011332 && test "$PACKAGE" != gettext-runtime \
11333 && test "$PACKAGE" != gettext-tools; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011334 gt_use_preinstalled_gnugettext=yes
11335 else
11336 LIBINTL=
11337 LTLIBINTL=
11338 INCINTL=
11339 fi
11340
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011341
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011342 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
11343 nls_cv_use_gnu_gettext=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011344 fi
11345 fi
11346
11347 if test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011348 BUILD_INCLUDED_LIBINTL=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011349 USE_INCLUDED_LIBINTL=yes
Theodore Ts'o93613952014-07-03 23:44:13 -040011350 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
11351 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011352 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011353 fi
11354
Theodore Ts'o93613952014-07-03 23:44:13 -040011355 CATOBJEXT=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011356 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11357 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11358 CATOBJEXT=.gmo
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011359 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011360
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011361
Theodore Ts'o93613952014-07-03 23:44:13 -040011362 if test -n "$INTL_MACOSX_LIBS"; then
11363 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11364 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11365 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
11366 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
11367 fi
11368 fi
11369
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011370 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11371 || test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011372
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011373$as_echo "#define ENABLE_NLS 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011374
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011375 else
11376 USE_NLS=no
11377 fi
11378 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011379
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011381$as_echo_n "checking whether to use NLS... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011383$as_echo "$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011384 if test "$USE_NLS" = "yes"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011386$as_echo_n "checking where the gettext function comes from... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011387 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
Theodore Ts'o93613952014-07-03 23:44:13 -040011388 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011389 gt_source="external libintl"
11390 else
11391 gt_source="libc"
11392 fi
11393 else
11394 gt_source="included intl directory"
11395 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011397$as_echo "$gt_source" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011398 fi
11399
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011400 if test "$USE_NLS" = "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011401
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011402 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
Theodore Ts'o93613952014-07-03 23:44:13 -040011403 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011405$as_echo_n "checking how to link with libintl... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011407$as_echo "$LIBINTL" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011408
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011409 for element in $INCINTL; do
11410 haveit=
11411 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011412
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011413 acl_save_prefix="$prefix"
11414 prefix="$acl_final_prefix"
11415 acl_save_exec_prefix="$exec_prefix"
11416 exec_prefix="$acl_final_exec_prefix"
11417 eval x=\"$x\"
11418 exec_prefix="$acl_save_exec_prefix"
11419 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011420
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011421 if test "X$x" = "X$element"; then
11422 haveit=yes
11423 break
11424 fi
11425 done
11426 if test -z "$haveit"; then
11427 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11428 fi
11429 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011430
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011431 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011432
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011433
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011434$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011435
11436
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011437$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011438
11439 fi
11440
11441 POSUB=po
11442 fi
11443
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011444
11445 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011446 BUILD_INCLUDED_LIBINTL=yes
11447 fi
11448
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011449
11450
11451
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011452
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011453 nls_cv_header_intl=
11454 nls_cv_header_libgt=
11455
11456 DATADIRNAME=share
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011457
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011458
11459 INSTOBJEXT=.mo
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011460
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011461
11462 GENCAT=gencat
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011463
11464
Theodore Ts'o93613952014-07-03 23:44:13 -040011465 INTLOBJS=
11466 if test "$USE_INCLUDED_LIBINTL" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011467 INTLOBJS="\$(GETTOBJS)"
11468 fi
11469
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011470
11471 INTL_LIBTOOL_SUFFIX_PREFIX=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011472
11473
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011474
11475 INTLLIBS="$LIBINTL"
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011476
11477
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011478
11479
11480
11481
11482
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011484$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11485set x ${MAKE-make}
11486ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011487if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011488 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011489else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011490 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040011491SHELL = /bin/sh
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011492all:
Theodore Ts'oe1052142006-10-21 21:46:47 -040011493 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011494_ACEOF
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011495# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011496case `${MAKE-make} -f conftest.make 2>/dev/null` in
11497 *@@@%%%=?*=@@@%%%*)
11498 eval ac_cv_prog_make_${ac_make}_set=yes;;
11499 *)
11500 eval ac_cv_prog_make_${ac_make}_set=no;;
11501esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011502rm -f conftest.make
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011503fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011504if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011506$as_echo "yes" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011507 SET_MAKE=
11508else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011510$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011511 SET_MAKE="MAKE=${MAKE-make}"
11512fi
11513
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -040011515$as_echo_n "checking for GNU make... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011516if ${_cv_gnu_make_command+:} false; then :
Theodore Ts'obcb915b2009-07-02 18:19:10 -040011517 $as_echo_n "(cached) " >&6
11518else
11519 _cv_gnu_make_command='' ;
11520 for a in "$MAKE" make gmake gnumake ; do
11521 if test -z "$a" ; then continue ; fi ;
11522 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
11523 _cv_gnu_make_command=$a ;
11524 break;
11525 fi
11526 done ;
11527
11528fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -040011530$as_echo "$_cv_gnu_make_command" >&6; } ;
11531 if test "x$_cv_gnu_make_command" != "x" ; then
11532 ifGNUmake='' ;
11533 ifNotGNUmake='#' ;
11534 else
11535 ifGNUmake='#' ;
11536 ifNotGNUmake='' ;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -040011538$as_echo "\"Not found\"" >&6; };
11539 fi
11540
11541
11542
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011543# Extract the first word of "ln", so it can be a program name with args.
11544set dummy ln; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011546$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011547if ${ac_cv_path_LN+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011548 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011549else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011550 case $LN in
11551 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011552 ac_cv_path_LN="$LN" # Let the user override the test with a path.
11553 ;;
11554 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11556for as_dir in $PATH
11557do
11558 IFS=$as_save_IFS
11559 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011560 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011562 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011564 break 2
11565 fi
11566done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011567 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011568IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011569
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011570 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
11571 ;;
11572esac
11573fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011574LN=$ac_cv_path_LN
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011575if test -n "$LN"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011577$as_echo "$LN" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011578else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011580$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011581fi
11582
Theodore Ts'oe1052142006-10-21 21:46:47 -040011583
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011585$as_echo_n "checking whether ln -s works... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011586LN_S=$as_ln_s
11587if test "$LN_S" = "ln -s"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011589$as_echo "yes" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011590else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011592$as_echo "no, using $LN_S" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011593fi
11594
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011595# Extract the first word of "mv", so it can be a program name with args.
11596set dummy mv; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011598$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011599if ${ac_cv_path_MV+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011600 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011601else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011602 case $MV in
11603 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011604 ac_cv_path_MV="$MV" # Let the user override the test with a path.
11605 ;;
11606 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11608for as_dir in $PATH
11609do
11610 IFS=$as_save_IFS
11611 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011612 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011614 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011616 break 2
11617 fi
11618done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011619 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011620IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011621
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011622 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
11623 ;;
11624esac
11625fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011626MV=$ac_cv_path_MV
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011627if test -n "$MV"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011629$as_echo "$MV" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011630else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011632$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011633fi
11634
Theodore Ts'oe1052142006-10-21 21:46:47 -040011635
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011636# Extract the first word of "cp", so it can be a program name with args.
11637set dummy cp; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011639$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011640if ${ac_cv_path_CP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011641 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011642else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011643 case $CP in
11644 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011645 ac_cv_path_CP="$CP" # Let the user override the test with a path.
11646 ;;
11647 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11649for as_dir in $PATH
11650do
11651 IFS=$as_save_IFS
11652 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011653 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011655 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011657 break 2
11658 fi
11659done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011660 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011661IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011662
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011663 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11664 ;;
11665esac
11666fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011667CP=$ac_cv_path_CP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011668if test -n "$CP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011670$as_echo "$CP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011671else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011673$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011674fi
11675
Theodore Ts'oe1052142006-10-21 21:46:47 -040011676
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011677# Extract the first word of "rm", so it can be a program name with args.
11678set dummy rm; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011680$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011681if ${ac_cv_path_RM+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011682 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011683else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011684 case $RM in
11685 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011686 ac_cv_path_RM="$RM" # Let the user override the test with a path.
11687 ;;
11688 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11690for as_dir in $PATH
11691do
11692 IFS=$as_save_IFS
11693 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011694 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011696 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011698 break 2
11699 fi
11700done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011701 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011702IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011703
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011704 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11705 ;;
11706esac
11707fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011708RM=$ac_cv_path_RM
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011709if test -n "$RM"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011711$as_echo "$RM" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011712else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011714$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011715fi
11716
Theodore Ts'oe1052142006-10-21 21:46:47 -040011717
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011718# Extract the first word of "chmod", so it can be a program name with args.
11719set dummy chmod; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011721$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011722if ${ac_cv_path_CHMOD+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011723 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011724else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011725 case $CHMOD in
11726 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011727 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11728 ;;
11729 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11731for as_dir in $PATH
11732do
11733 IFS=$as_save_IFS
11734 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011735 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011737 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011739 break 2
11740 fi
11741done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011742 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011743IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011744
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011745 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11746 ;;
11747esac
11748fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011749CHMOD=$ac_cv_path_CHMOD
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011750if test -n "$CHMOD"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011752$as_echo "$CHMOD" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011753else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011755$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011756fi
11757
Theodore Ts'oe1052142006-10-21 21:46:47 -040011758
Theodore Ts'o32237012005-01-17 19:13:39 -050011759for ac_prog in gawk mawk nawk awk
11760do
11761 # Extract the first word of "$ac_prog", so it can be a program name with args.
11762set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011764$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011765if ${ac_cv_prog_AWK+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011766 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011767else
Theodore Ts'o32237012005-01-17 19:13:39 -050011768 if test -n "$AWK"; then
11769 ac_cv_prog_AWK="$AWK" # Let the user override the test.
11770else
11771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011772for as_dir in $PATH
11773do
11774 IFS=$as_save_IFS
11775 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011776 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o32237012005-01-17 19:13:39 -050011778 ac_cv_prog_AWK="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011780 break 2
11781 fi
11782done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011783 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011784IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011785
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011786fi
Theodore Ts'o32237012005-01-17 19:13:39 -050011787fi
11788AWK=$ac_cv_prog_AWK
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011789if test -n "$AWK"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011791$as_echo "$AWK" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011792else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011794$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011795fi
11796
Theodore Ts'oe1052142006-10-21 21:46:47 -040011797
Theodore Ts'o32237012005-01-17 19:13:39 -050011798 test -n "$AWK" && break
11799done
11800
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011801{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011802$as_echo_n "checking for egrep... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011803if ${ac_cv_path_EGREP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011804 $as_echo_n "(cached) " >&6
Theodore Ts'o32237012005-01-17 19:13:39 -050011805else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011806 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11807 then ac_cv_path_EGREP="$GREP -E"
11808 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011809 if test -z "$EGREP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011810 ac_path_EGREP_found=false
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011811 # Loop through the user's path and test for each of PROGNAME-LIST
11812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'oe1052142006-10-21 21:46:47 -040011813for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11814do
11815 IFS=$as_save_IFS
11816 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011817 for ac_prog in egrep; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011818 for ac_exec_ext in '' $ac_executable_extensions; do
11819 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011820 as_fn_executable_p "$ac_path_EGREP" || continue
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011821# Check for GNU ac_path_EGREP and select it if it is found.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011822 # Check for GNU $ac_path_EGREP
11823case `"$ac_path_EGREP" --version 2>&1` in
11824*GNU*)
11825 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11826*)
11827 ac_count=0
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011828 $as_echo_n 0123456789 >"conftest.in"
Theodore Ts'oe1052142006-10-21 21:46:47 -040011829 while :
11830 do
11831 cat "conftest.in" "conftest.in" >"conftest.tmp"
11832 mv "conftest.tmp" "conftest.in"
11833 cp "conftest.in" "conftest.nl"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011834 $as_echo 'EGREP' >> "conftest.nl"
Theodore Ts'oe1052142006-10-21 21:46:47 -040011835 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11836 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011837 as_fn_arith $ac_count + 1 && ac_count=$as_val
Theodore Ts'oe1052142006-10-21 21:46:47 -040011838 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11839 # Best one so far, save it but keep looking for a better one
11840 ac_cv_path_EGREP="$ac_path_EGREP"
11841 ac_path_EGREP_max=$ac_count
Theodore Ts'o32237012005-01-17 19:13:39 -050011842 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011843 # 10*(2^10) chars as input seems more than enough
11844 test $ac_count -gt 10 && break
11845 done
11846 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11847esac
11848
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011849 $ac_path_EGREP_found && break 3
11850 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011851 done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011852 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011853IFS=$as_save_IFS
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011854 if test -z "$ac_cv_path_EGREP"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011855 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 +010011856 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011857else
11858 ac_cv_path_EGREP=$EGREP
11859fi
11860
Theodore Ts'oe1052142006-10-21 21:46:47 -040011861 fi
11862fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011864$as_echo "$ac_cv_path_EGREP" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -040011865 EGREP="$ac_cv_path_EGREP"
Theodore Ts'o32237012005-01-17 19:13:39 -050011866
11867
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011868# Extract the first word of "sed", so it can be a program name with args.
11869set dummy sed; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011871$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011872if ${ac_cv_path_SED+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011873 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011874else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011875 case $SED in
11876 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011877 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11878 ;;
11879 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11881for as_dir in $PATH
11882do
11883 IFS=$as_save_IFS
11884 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011885 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011887 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011889 break 2
11890 fi
11891done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011892 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011893IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011894
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011895 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11896 ;;
11897esac
11898fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011899SED=$ac_cv_path_SED
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011900if test -n "$SED"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011902$as_echo "$SED" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011903else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011905$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011906fi
11907
Theodore Ts'oe1052142006-10-21 21:46:47 -040011908
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011909# Extract the first word of "perl", so it can be a program name with args.
11910set dummy perl; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011912$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011913if ${ac_cv_path_PERL+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011914 $as_echo_n "(cached) " >&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011915else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011916 case $PERL in
11917 [\\/]* | ?:[\\/]*)
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011918 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11919 ;;
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011920 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11922for as_dir in $PATH
11923do
11924 IFS=$as_save_IFS
11925 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011926 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011928 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011930 break 2
11931 fi
11932done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011933 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011934IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011935
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011936 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11937 ;;
11938esac
11939fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011940PERL=$ac_cv_path_PERL
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011941if test -n "$PERL"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011943$as_echo "$PERL" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011944else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011946$as_echo "no" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011947fi
11948
Theodore Ts'oe1052142006-10-21 21:46:47 -040011949
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011950# Extract the first word of "ldconfig", so it can be a program name with args.
11951set dummy ldconfig; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011953$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011954if ${ac_cv_path_LDCONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011955 $as_echo_n "(cached) " >&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011956else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011957 case $LDCONFIG in
11958 [\\/]* | ?:[\\/]*)
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011959 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
11960 ;;
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011961 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11963for as_dir in $PATH
11964do
11965 IFS=$as_save_IFS
11966 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011967 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011968 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011969 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011971 break 2
11972 fi
11973done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011974 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011975IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011976
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011977 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
11978 ;;
11979esac
11980fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011981LDCONFIG=$ac_cv_path_LDCONFIG
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011982if test -n "$LDCONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011984$as_echo "$LDCONFIG" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011985else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011987$as_echo "no" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011988fi
11989
Theodore Ts'oe1052142006-10-21 21:46:47 -040011990
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011991if test -n "$ac_tool_prefix"; then
11992 # 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 +000011993set dummy ${ac_tool_prefix}ar; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011995$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011996if ${ac_cv_prog_AR+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011997 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011998else
11999 if test -n "$AR"; then
12000 ac_cv_prog_AR="$AR" # Let the user override the test.
12001else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012002as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12003for as_dir in $PATH
12004do
12005 IFS=$as_save_IFS
12006 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012007 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012009 ac_cv_prog_AR="${ac_tool_prefix}ar"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012011 break 2
12012 fi
12013done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012014 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012015IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012016
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012017fi
12018fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012019AR=$ac_cv_prog_AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012020if test -n "$AR"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012022$as_echo "$AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012023else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012025$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012026fi
12027
Theodore Ts'oe1052142006-10-21 21:46:47 -040012028
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012029fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012030if test -z "$ac_cv_prog_AR"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012031 ac_ct_AR=$AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012032 # Extract the first word of "ar", so it can be a program name with args.
12033set dummy ar; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012034{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012035$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012036if ${ac_cv_prog_ac_ct_AR+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012037 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012038else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012039 if test -n "$ac_ct_AR"; then
12040 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012041else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12043for as_dir in $PATH
12044do
12045 IFS=$as_save_IFS
12046 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012047 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012049 ac_cv_prog_ac_ct_AR="ar"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012051 break 2
12052 fi
12053done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012054 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012055IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012056
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012057fi
12058fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012059ac_ct_AR=$ac_cv_prog_ac_ct_AR
12060if test -n "$ac_ct_AR"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012062$as_echo "$ac_ct_AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012063else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012065$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012066fi
12067
Theodore Ts'oe1052142006-10-21 21:46:47 -040012068 if test "x$ac_ct_AR" = x; then
12069 AR="ar"
12070 else
12071 case $cross_compiling:$ac_tool_warned in
12072yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012073{ $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 +010012074$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012075ac_tool_warned=yes ;;
12076esac
12077 AR=$ac_ct_AR
12078 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012079else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012080 AR="$ac_cv_prog_AR"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012081fi
12082
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012083if test -n "$ac_tool_prefix"; then
12084 # 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 +000012085set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012087$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012088if ${ac_cv_prog_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012089 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012090else
12091 if test -n "$RANLIB"; then
12092 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12093else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12095for as_dir in $PATH
12096do
12097 IFS=$as_save_IFS
12098 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012099 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012101 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012103 break 2
12104 fi
12105done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012106 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012107IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012108
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012109fi
12110fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012111RANLIB=$ac_cv_prog_RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012112if test -n "$RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012114$as_echo "$RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012115else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012117$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012118fi
12119
Theodore Ts'oe1052142006-10-21 21:46:47 -040012120
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012121fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012122if test -z "$ac_cv_prog_RANLIB"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012123 ac_ct_RANLIB=$RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012124 # Extract the first word of "ranlib", so it can be a program name with args.
12125set dummy ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012127$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012128if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012129 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012130else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012131 if test -n "$ac_ct_RANLIB"; then
12132 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012133else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12135for as_dir in $PATH
12136do
12137 IFS=$as_save_IFS
12138 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012139 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012141 ac_cv_prog_ac_ct_RANLIB="ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012143 break 2
12144 fi
12145done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012146 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012147IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012148
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012149fi
12150fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012151ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12152if test -n "$ac_ct_RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012154$as_echo "$ac_ct_RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012155else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012157$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012158fi
12159
Theodore Ts'oe1052142006-10-21 21:46:47 -040012160 if test "x$ac_ct_RANLIB" = x; then
12161 RANLIB=":"
12162 else
12163 case $cross_compiling:$ac_tool_warned in
12164yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012165{ $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 +010012166$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012167ac_tool_warned=yes ;;
12168esac
12169 RANLIB=$ac_ct_RANLIB
12170 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012171else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012172 RANLIB="$ac_cv_prog_RANLIB"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012173fi
12174
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012175if test -n "$ac_tool_prefix"; then
12176 # 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 +000012177set dummy ${ac_tool_prefix}strip; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012179$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012180if ${ac_cv_prog_STRIP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012181 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012182else
12183 if test -n "$STRIP"; then
12184 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12185else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012186as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12187for as_dir in $PATH
12188do
12189 IFS=$as_save_IFS
12190 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012191 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012193 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012195 break 2
12196 fi
12197done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012198 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012199IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012200
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012201fi
12202fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012203STRIP=$ac_cv_prog_STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012204if test -n "$STRIP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012206$as_echo "$STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012207else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012209$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012210fi
12211
Theodore Ts'oe1052142006-10-21 21:46:47 -040012212
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012213fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012214if test -z "$ac_cv_prog_STRIP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012215 ac_ct_STRIP=$STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012216 # Extract the first word of "strip", so it can be a program name with args.
12217set dummy strip; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012219$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012220if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012221 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012222else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012223 if test -n "$ac_ct_STRIP"; then
12224 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012225else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012226as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12227for as_dir in $PATH
12228do
12229 IFS=$as_save_IFS
12230 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012231 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012233 ac_cv_prog_ac_ct_STRIP="strip"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012235 break 2
12236 fi
12237done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012238 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012239IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012240
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012241fi
12242fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012243ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12244if test -n "$ac_ct_STRIP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012246$as_echo "$ac_ct_STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012247else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012249$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012250fi
12251
Theodore Ts'oe1052142006-10-21 21:46:47 -040012252 if test "x$ac_ct_STRIP" = x; then
12253 STRIP=":"
12254 else
12255 case $cross_compiling:$ac_tool_warned in
12256yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012257{ $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 +010012258$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012259ac_tool_warned=yes ;;
12260esac
12261 STRIP=$ac_ct_STRIP
12262 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012263else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012264 STRIP="$ac_cv_prog_STRIP"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012265fi
12266
Manish Katiyar7321d942008-04-14 17:20:03 +053012267# Extract the first word of "makeinfo", so it can be a program name with args.
12268set dummy makeinfo; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012270$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012271if ${ac_cv_prog_MAKEINFO+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012272 $as_echo_n "(cached) " >&6
Manish Katiyar7321d942008-04-14 17:20:03 +053012273else
12274 if test -n "$MAKEINFO"; then
12275 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
12276else
12277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12278for as_dir in $PATH
12279do
12280 IFS=$as_save_IFS
12281 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012282 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Manish Katiyar7321d942008-04-14 17:20:03 +053012284 ac_cv_prog_MAKEINFO="makeinfo"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Manish Katiyar7321d942008-04-14 17:20:03 +053012286 break 2
12287 fi
12288done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012289 done
Manish Katiyar7321d942008-04-14 17:20:03 +053012290IFS=$as_save_IFS
12291
12292fi
12293fi
12294MAKEINFO=$ac_cv_prog_MAKEINFO
12295if test -n "$MAKEINFO"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012297$as_echo "$MAKEINFO" >&6; }
Manish Katiyar7321d942008-04-14 17:20:03 +053012298else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012300$as_echo "no" >&6; }
Manish Katiyar7321d942008-04-14 17:20:03 +053012301fi
12302
12303
12304if test "_$MAKEINFO" = "_"; then
12305 MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true"
12306else
12307 case "$MAKEINFO" in
12308 */missing.*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
Manish Katiyar7321d942008-04-14 17:20:03 +053012310*** Makeinfo is missing. Info documentation will not be built." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012311$as_echo "$as_me: WARNING:
Manish Katiyar7321d942008-04-14 17:20:03 +053012312*** Makeinfo is missing. Info documentation will not be built." >&2;}
12313 ;;
12314 *)
12315 ;;
12316 esac
12317fi
12318
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012319
Theodore Ts'o6c133521999-07-03 20:37:03 +000012320# See if we need a separate native compiler.
12321if test $cross_compiling = no; then
12322 BUILD_CC="$CC"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012323
Theodore Ts'o6c133521999-07-03 20:37:03 +000012324else
12325 for ac_prog in gcc cc
12326do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012327 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'o6c133521999-07-03 20:37:03 +000012328set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012330$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012331if ${ac_cv_prog_BUILD_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012332 $as_echo_n "(cached) " >&6
Theodore Ts'o6c133521999-07-03 20:37:03 +000012333else
12334 if test -n "$BUILD_CC"; then
12335 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
12336else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012337as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12338for as_dir in $PATH
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012339do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012340 IFS=$as_save_IFS
12341 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012342 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012344 ac_cv_prog_BUILD_CC="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012346 break 2
12347 fi
12348done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012349 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012350IFS=$as_save_IFS
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012351
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012352fi
12353fi
12354BUILD_CC=$ac_cv_prog_BUILD_CC
12355if test -n "$BUILD_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012357$as_echo "$BUILD_CC" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012358else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012360$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012361fi
12362
Theodore Ts'oe1052142006-10-21 21:46:47 -040012363
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012364 test -n "$BUILD_CC" && break
12365done
12366
12367fi
Theodore Ts'o74f2c4a2015-06-19 19:28:25 -040012368for 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/major.h linux/loop.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
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012369do :
12370 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12371ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012372if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012373 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012374#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012375_ACEOF
12376
12377fi
12378
12379done
12380
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012381for ac_header in net/if.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012382do :
12383 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012384#if HAVE_SYS_TYPES_H
12385#include <sys/types.h>
12386#endif
12387#if HAVE_SYS_SOCKET
12388#include <sys/socket.h>
12389#endif
12390
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012391"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012392if test "x$ac_cv_header_net_if_h" = xyes; then :
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012393 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012394#define HAVE_NET_IF_H 1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012395_ACEOF
12396
12397fi
12398
12399done
12400
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012401for ac_func in vprintf
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012402do :
12403 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012404if test "x$ac_cv_func_vprintf" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012405 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012406#define HAVE_VPRINTF 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012407_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012408
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012409ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012410if test "x$ac_cv_func__doprnt" = xyes; then :
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012411
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012412$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012413
12414fi
12415
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012416fi
12417done
12418
12419
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012420ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
12421"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012422if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012423
12424$as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
Theodore Ts'offf45482003-04-13 00:44:19 -040012425
12426fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012427
Theodore Ts'o28739272014-01-03 00:26:43 -050012428ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
12429if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
12430
12431cat >>confdefs.h <<_ACEOF
12432#define HAVE_STRUCT_STAT_ST_ATIM 1
12433_ACEOF
12434
12435
12436fi
12437
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012438ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
12439"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012440if test "x$ac_cv_type_ssize_t" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012441
12442$as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012443
Theodore Ts'offf45482003-04-13 00:44:19 -040012444fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012445
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012446ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
12447"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012448if test "x$ac_cv_have_decl_llseek" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012449
12450$as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
Theodore Ts'offf45482003-04-13 00:44:19 -040012451
12452fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012453
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012454ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012455 #define _LARGEFILE64_SOURCE
12456 #include <unistd.h>
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012457"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012458if test "x$ac_cv_have_decl_lseek64" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012459
12460$as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012461
12462fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012463
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012464# The cast to long int works around a bug in the HP C Compiler
12465# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12466# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12467# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012469$as_echo_n "checking size of short... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012470if ${ac_cv_sizeof_short+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012471 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012472else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012473 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 -050012474
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012475else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012476 if test "$ac_cv_type_short" = yes; then
12477 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012478$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012479as_fn_error 77 "cannot compute sizeof (short)
12480See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012481 else
12482 ac_cv_sizeof_short=0
12483 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012484fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012485
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012486fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012488$as_echo "$ac_cv_sizeof_short" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012489
12490
12491
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012492cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012493#define SIZEOF_SHORT $ac_cv_sizeof_short
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012494_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012495
12496
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012497# The cast to long int works around a bug in the HP C Compiler
12498# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12499# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12500# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012502$as_echo_n "checking size of int... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012503if ${ac_cv_sizeof_int+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012504 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012505else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012506 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 -050012507
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012508else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012509 if test "$ac_cv_type_int" = yes; then
12510 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012511$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012512as_fn_error 77 "cannot compute sizeof (int)
12513See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012514 else
12515 ac_cv_sizeof_int=0
12516 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012517fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012518
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012519fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012521$as_echo "$ac_cv_sizeof_int" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012522
12523
12524
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012525cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012526#define SIZEOF_INT $ac_cv_sizeof_int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012527_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012528
12529
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012530# The cast to long int works around a bug in the HP C Compiler
12531# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12532# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12533# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012535$as_echo_n "checking size of long... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012536if ${ac_cv_sizeof_long+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012537 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012538else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012539 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 -050012540
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012541else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012542 if test "$ac_cv_type_long" = yes; then
12543 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012544$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012545as_fn_error 77 "cannot compute sizeof (long)
12546See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012547 else
12548 ac_cv_sizeof_long=0
12549 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012550fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012551
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012552fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012554$as_echo "$ac_cv_sizeof_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012555
12556
12557
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012558cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012559#define SIZEOF_LONG $ac_cv_sizeof_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012560_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012561
12562
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012563# The cast to long int works around a bug in the HP C Compiler
12564# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12565# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12566# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012568$as_echo_n "checking size of long long... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012569if ${ac_cv_sizeof_long_long+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012570 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012571else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012572 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 -050012573
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012574else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012575 if test "$ac_cv_type_long_long" = yes; then
12576 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012577$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012578as_fn_error 77 "cannot compute sizeof (long long)
12579See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012580 else
12581 ac_cv_sizeof_long_long=0
12582 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012583fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012584
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012585fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012587$as_echo "$ac_cv_sizeof_long_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012588
12589
12590
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012591cat >>confdefs.h <<_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000012592#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012593_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000012594
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012595
Theodore Ts'occ68e8a2013-05-04 19:01:09 -040012596# The cast to long int works around a bug in the HP C Compiler
12597# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12598# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12599# This bug is HP SR number 8606223364.
12600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
12601$as_echo_n "checking size of off_t... " >&6; }
12602if ${ac_cv_sizeof_off_t+:} false; then :
12603 $as_echo_n "(cached) " >&6
12604else
12605 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
12606
12607else
12608 if test "$ac_cv_type_off_t" = yes; then
12609 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12610$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12611as_fn_error 77 "cannot compute sizeof (off_t)
12612See \`config.log' for more details" "$LINENO" 5; }
12613 else
12614 ac_cv_sizeof_off_t=0
12615 fi
12616fi
12617
12618fi
12619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
12620$as_echo "$ac_cv_sizeof_off_t" >&6; }
12621
12622
12623
12624cat >>confdefs.h <<_ACEOF
12625#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12626_ACEOF
12627
12628
Theodore Ts'o2dd680f2016-05-29 01:07:40 -040012629# The cast to long int works around a bug in the HP C Compiler
12630# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12631# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12632# This bug is HP SR number 8606223364.
12633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
12634$as_echo_n "checking size of time_t... " >&6; }
12635if ${ac_cv_sizeof_time_t+:} false; then :
12636 $as_echo_n "(cached) " >&6
12637else
12638 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then :
12639
12640else
12641 if test "$ac_cv_type_time_t" = yes; then
12642 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12643$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12644as_fn_error 77 "cannot compute sizeof (time_t)
12645See \`config.log' for more details" "$LINENO" 5; }
12646 else
12647 ac_cv_sizeof_time_t=0
12648 fi
12649fi
12650
12651fi
12652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
12653$as_echo "$ac_cv_sizeof_time_t" >&6; }
12654
12655
12656
12657cat >>confdefs.h <<_ACEOF
12658#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
12659_ACEOF
12660
12661
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012662SIZEOF_SHORT=$ac_cv_sizeof_short
12663SIZEOF_INT=$ac_cv_sizeof_int
12664SIZEOF_LONG=$ac_cv_sizeof_long
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000012665SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
Theodore Ts'occ68e8a2013-05-04 19:01:09 -040012666SIZEOF_OFF_T=$ac_cv_sizeof_off_t
Theodore Ts'o2dd680f2016-05-29 01:07:40 -040012667SIZEOF_TIME_T=$ac_cv_sizeof_time_t
12668
Theodore Ts'occ68e8a2013-05-04 19:01:09 -040012669
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000012670
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012671
12672
12673
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012675$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012676if ${ac_cv_c_bigendian+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012677 $as_echo_n "(cached) " >&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012678else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012679 ac_cv_c_bigendian=unknown
12680 # See if we're dealing with a universal compiler.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012682/* end confdefs.h. */
12683#ifndef __APPLE_CC__
12684 not a universal capable compiler
12685 #endif
12686 typedef int dummy;
12687
12688_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012689if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012690
12691 # Check for potential -arch flags. It is not universal unless
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012692 # there are at least two -arch flags with different values.
12693 ac_arch=
12694 ac_prev=
12695 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12696 if test -n "$ac_prev"; then
12697 case $ac_word in
12698 i?86 | x86_64 | ppc | ppc64)
12699 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12700 ac_arch=$ac_word
12701 else
12702 ac_cv_c_bigendian=universal
12703 break
12704 fi
12705 ;;
12706 esac
12707 ac_prev=
12708 elif test "x$ac_word" = "x-arch"; then
12709 ac_prev=arch
12710 fi
12711 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012712fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12714 if test $ac_cv_c_bigendian = unknown; then
12715 # See if sys/param.h defines the BYTE_ORDER macro.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012717/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012718#include <sys/types.h>
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012719 #include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012720
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012721int
12722main ()
12723{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012724#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12725 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12726 && LITTLE_ENDIAN)
12727 bogus endian macros
12728 #endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012729
12730 ;
12731 return 0;
12732}
12733_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012734if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012735 # It does; now see whether it defined to BIG_ENDIAN or not.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012737/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012738#include <sys/types.h>
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012739 #include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012740
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012741int
12742main ()
12743{
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012744#if BYTE_ORDER != BIG_ENDIAN
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012745 not big endian
12746 #endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012747
12748 ;
12749 return 0;
12750}
12751_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012752if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012753 ac_cv_c_bigendian=yes
12754else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012755 ac_cv_c_bigendian=no
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012756fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012757rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012758fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12760 fi
12761 if test $ac_cv_c_bigendian = unknown; then
12762 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
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. */
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012765#include <limits.h>
12766
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012767int
12768main ()
12769{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012770#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12771 bogus endian macros
12772 #endif
12773
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012774 ;
12775 return 0;
12776}
12777_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012778if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012779 # It does; now see whether it defined to _BIG_ENDIAN or not.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012781/* end confdefs.h. */
12782#include <limits.h>
12783
12784int
12785main ()
12786{
12787#ifndef _BIG_ENDIAN
12788 not big endian
12789 #endif
12790
12791 ;
12792 return 0;
12793}
12794_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012795if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012796 ac_cv_c_bigendian=yes
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012797else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012798 ac_cv_c_bigendian=no
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012799fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012800rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012801fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12803 fi
12804 if test $ac_cv_c_bigendian = unknown; then
12805 # Compile a test program.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012806 if test "$cross_compiling" = yes; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012807 # Try to guess by grepping values from an object file.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012809/* end confdefs.h. */
12810short int ascii_mm[] =
12811 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12812 short int ascii_ii[] =
12813 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12814 int use_ascii (int i) {
12815 return ascii_mm[i] + ascii_ii[i];
12816 }
12817 short int ebcdic_ii[] =
12818 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12819 short int ebcdic_mm[] =
12820 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12821 int use_ebcdic (int i) {
12822 return ebcdic_mm[i] + ebcdic_ii[i];
12823 }
12824 extern int foo;
12825
12826int
12827main ()
12828{
12829return use_ascii (foo) == use_ebcdic (foo);
12830 ;
12831 return 0;
12832}
12833_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012834if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012835 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12836 ac_cv_c_bigendian=yes
12837 fi
12838 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12839 if test "$ac_cv_c_bigendian" = unknown; then
12840 ac_cv_c_bigendian=no
12841 else
12842 # finding both strings is unlikely to happen, but who knows?
12843 ac_cv_c_bigendian=unknown
12844 fi
12845 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012846fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012847rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012848else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012850/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040012851$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012852int
12853main ()
12854{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012855
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012856 /* Are we little or big endian? From Harbison&Steele. */
12857 union
12858 {
12859 long int l;
12860 char c[sizeof (long int)];
12861 } u;
12862 u.l = 1;
12863 return u.c[sizeof (long int) - 1] == 1;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012864
12865 ;
12866 return 0;
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012867}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012868_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012869if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012870 ac_cv_c_bigendian=no
12871else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012872 ac_cv_c_bigendian=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012873fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012874rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12875 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012876fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012877
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012878 fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012879fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012881$as_echo "$ac_cv_c_bigendian" >&6; }
12882 case $ac_cv_c_bigendian in #(
12883 yes)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012884 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012885;; #(
12886 no)
12887 ;; #(
12888 universal)
12889
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012890$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012891
12892 ;; #(
12893 *)
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012894 as_fn_error $? "unknown endianness
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012895 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012896 esac
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012897
Chen Qi91f04682014-05-05 21:08:42 -040012898if test $cross_compiling = no; then
12899 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12900else
12901 CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12902fi
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040012903ASM_TYPES_HEADER=./asm_types.h
12904
Theodore Ts'o488c75a2008-06-07 08:55:21 -040012905echo "/* These defines are needed for the public ext2fs.h header file */" \
12906 > public_config.h
12907if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
12908 uniq tmp_config.$$ >> public_config.h
12909else
12910 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
12911fi
12912if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
12913 uniq tmp_config.$$ >> public_config.h
12914else
12915 echo "#undef WORDS_BIGENDIAN" >> public_config.h
12916fi
12917rm -f tmp_config.$$
12918PUBLIC_CONFIG_HEADER=./public_config.h
12919
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012920for ac_header in inttypes.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012921do :
12922 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012923if test "x$ac_cv_header_inttypes_h" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012924 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012925#define HAVE_INTTYPES_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012926_ACEOF
12927
12928fi
12929
Theodore Ts'o0c193f82003-08-01 14:26:23 -040012930done
12931
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012932ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012933if test "x$ac_cv_type_intptr_t" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012934
12935cat >>confdefs.h <<_ACEOF
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050012936#define HAVE_INTPTR_T 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012937_ACEOF
12938
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050012939
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012940fi
12941
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012942{ $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 +010012943$as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012944if ${e2fsprogs_cv_struct_st_flags+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012945 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012946else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012948/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012949#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012950int
12951main ()
12952{
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012953struct stat stat; stat.st_flags = 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012954 ;
12955 return 0;
12956}
12957_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012958if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012959 e2fsprogs_cv_struct_st_flags=yes
12960else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012961 e2fsprogs_cv_struct_st_flags=no
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012962fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12964fi
12965
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012967$as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012968if test "$e2fsprogs_cv_struct_st_flags" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012970$as_echo_n "checking whether st_flags field is useful... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012971 if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012972 $as_echo_n "(cached) " >&6
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000012973else
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'oc03bc4e1999-10-20 18:20:36 +000012976#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012977int
12978main ()
12979{
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000012980struct stat stat; stat.st_flags |= UF_IMMUTABLE;
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'oc03bc4e1999-10-20 18:20:36 +000012986 e2fsprogs_cv_struct_st_flags_immut=yes
12987else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012988 e2fsprogs_cv_struct_st_flags_immut=no
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +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_immut" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012994$as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000012995 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012996
12997$as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012998
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000012999 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013000fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013001ac_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 -050013002 #include <sys/socket.h>
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013003"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013004if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013005
13006cat >>confdefs.h <<_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050013007#define HAVE_SA_LEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013008_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050013009
13010fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013011
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013012if test -n "$BLKID_CMT"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013014$as_echo_n "checking for library containing blkid_probe_all... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013015if ${ac_cv_search_blkid_probe_all+:} false; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013016 $as_echo_n "(cached) " >&6
13017else
13018 ac_func_search_save_LIBS=$LIBS
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013019cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013020/* end confdefs.h. */
13021
13022/* Override any GCC internal prototype to avoid an error.
13023 Use char because int might match the return type of a GCC
13024 builtin and then its argument prototype would still apply. */
13025#ifdef __cplusplus
13026extern "C"
13027#endif
13028char blkid_probe_all ();
13029int
13030main ()
13031{
13032return blkid_probe_all ();
13033 ;
13034 return 0;
13035}
13036_ACEOF
13037for ac_lib in '' blkid; do
13038 if test -z "$ac_lib"; then
13039 ac_res="none required"
13040 else
13041 ac_res=-l$ac_lib
13042 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13043 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013044 if ac_fn_c_try_link "$LINENO"; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013045 ac_cv_search_blkid_probe_all=$ac_res
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013046fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013047rm -f core conftest.err conftest.$ac_objext \
13048 conftest$ac_exeext
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013049 if ${ac_cv_search_blkid_probe_all+:} false; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013050 break
13051fi
13052done
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013053if ${ac_cv_search_blkid_probe_all+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013054
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013055else
13056 ac_cv_search_blkid_probe_all=no
13057fi
13058rm conftest.$ac_ext
13059LIBS=$ac_func_search_save_LIBS
13060fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013062$as_echo "$ac_cv_search_blkid_probe_all" >&6; }
13063ac_res=$ac_cv_search_blkid_probe_all
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013064if test "$ac_res" != no; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013065 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13066
13067fi
13068
13069fi
Theodore Ts'o32179ce2016-06-07 00:14:35 -040013070if test -n "$DLOPEN_LIB" ; then
13071 ac_cv_func_dlopen=yes
13072fi
13073for ac_func in __secure_getenv add_key backtrace blkid_probe_get_topology blkid_probe_enable_partitions chflags dlopen fadvise64 fallocate fallocate64 fchown fdatasync fstat64 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 -050013074do :
13075 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13076ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013077if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013078 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013079#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013080_ACEOF
13081
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013082fi
13083done
13084
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013085SOCKET_LIB=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013087$as_echo_n "checking for socket in -lsocket... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013088if ${ac_cv_lib_socket_socket+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013089 $as_echo_n "(cached) " >&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013090else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013091 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013092LIBS="-lsocket $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013093cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013094/* end confdefs.h. */
13095
Theodore Ts'oe1052142006-10-21 21:46:47 -040013096/* Override any GCC internal prototype to avoid an error.
13097 Use char because int might match the return type of a GCC
13098 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013099#ifdef __cplusplus
13100extern "C"
13101#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013102char socket ();
13103int
13104main ()
13105{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013106return socket ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013107 ;
13108 return 0;
13109}
13110_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013111if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013112 ac_cv_lib_socket_socket=yes
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013113else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013114 ac_cv_lib_socket_socket=no
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013115fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013116rm -f core conftest.err conftest.$ac_objext \
13117 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013118LIBS=$ac_check_lib_save_LIBS
13119fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013121$as_echo "$ac_cv_lib_socket_socket" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013122if test "x$ac_cv_lib_socket_socket" = xyes; then :
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013123 SOCKET_LIB=-lsocket
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013124fi
13125
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013126
Darrick J. Wongb291c112014-09-13 15:12:46 -070013127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_file in -lmagic" >&5
13128$as_echo_n "checking for magic_file in -lmagic... " >&6; }
13129if ${ac_cv_lib_magic_magic_file+:} false; then :
13130 $as_echo_n "(cached) " >&6
13131else
13132 ac_check_lib_save_LIBS=$LIBS
13133LIBS="-lmagic $LIBS"
13134cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13135/* end confdefs.h. */
13136
13137/* Override any GCC internal prototype to avoid an error.
13138 Use char because int might match the return type of a GCC
13139 builtin and then its argument prototype would still apply. */
13140#ifdef __cplusplus
13141extern "C"
13142#endif
13143char magic_file ();
13144int
13145main ()
13146{
13147return magic_file ();
13148 ;
13149 return 0;
13150}
13151_ACEOF
13152if ac_fn_c_try_link "$LINENO"; then :
13153 ac_cv_lib_magic_magic_file=yes
13154else
13155 ac_cv_lib_magic_magic_file=no
13156fi
13157rm -f core conftest.err conftest.$ac_objext \
13158 conftest$ac_exeext conftest.$ac_ext
13159LIBS=$ac_check_lib_save_LIBS
13160fi
13161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_file" >&5
13162$as_echo "$ac_cv_lib_magic_magic_file" >&6; }
13163if test "x$ac_cv_lib_magic_magic_file" = xyes; then :
13164 MAGIC_LIB=-lmagic
13165for ac_header in magic.h
13166do :
13167 ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
13168if test "x$ac_cv_header_magic_h" = xyes; then :
13169 cat >>confdefs.h <<_ACEOF
13170#define HAVE_MAGIC_H 1
13171_ACEOF
13172
13173fi
13174
13175done
13176
13177fi
13178
Theodore Ts'o32179ce2016-06-07 00:14:35 -040013179if test "$ac_cv_func_dlopen" = yes ; then
Theodore Ts'od2e3c0d2014-09-21 01:25:58 -040013180 MAGIC_LIB=$DLOPEN_LIB
13181fi
Darrick J. Wongb291c112014-09-13 15:12:46 -070013182
Theodore Ts'oc94da042016-06-21 23:16:39 -040013183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
13184$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
13185if ${ac_cv_lib_rt_clock_gettime+:} false; then :
13186 $as_echo_n "(cached) " >&6
13187else
13188 ac_check_lib_save_LIBS=$LIBS
13189LIBS="-lrt $LIBS"
13190cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13191/* end confdefs.h. */
13192
13193/* Override any GCC internal prototype to avoid an error.
13194 Use char because int might match the return type of a GCC
13195 builtin and then its argument prototype would still apply. */
13196#ifdef __cplusplus
13197extern "C"
13198#endif
13199char clock_gettime ();
13200int
13201main ()
13202{
13203return clock_gettime ();
13204 ;
13205 return 0;
13206}
13207_ACEOF
13208if ac_fn_c_try_link "$LINENO"; then :
13209 ac_cv_lib_rt_clock_gettime=yes
13210else
13211 ac_cv_lib_rt_clock_gettime=no
13212fi
13213rm -f core conftest.err conftest.$ac_objext \
13214 conftest$ac_exeext conftest.$ac_ext
13215LIBS=$ac_check_lib_save_LIBS
13216fi
13217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
13218$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
13219if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
13220 CLOCK_GETTIME_LIB=-lrt
13221fi
13222
13223
Darrick J. Wong81cbf1e2015-05-13 17:22:40 -070013224FUSE_CMT=
13225FUSE_LIB=
13226# Check whether --enable-fuse2fs was given.
13227if test "${enable_fuse2fs+set}" = set; then :
13228 enableval=$enable_fuse2fs; if test "$enableval" = "no"
13229then
13230 FUSE_CMT="#"
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling fuse2fs" >&5
13232$as_echo "Disabling fuse2fs" >&6; }
13233else
13234 for ac_header in pthread.h fuse.h
13235do :
13236 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13237ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
13238#define FUSE_USE_VERSION 29
13239"
13240if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13241 cat >>confdefs.h <<_ACEOF
13242#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13243_ACEOF
13244
13245else
13246 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13247$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13248as_fn_error $? "Cannot find fuse2fs headers.
13249See \`config.log' for more details" "$LINENO" 5; }
13250fi
13251
13252done
13253
13254
13255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13256/* end confdefs.h. */
13257#define FUSE_USE_VERSION 29
13258#ifdef __linux__
13259#include <linux/fs.h>
13260#include <linux/falloc.h>
13261#include <linux/xattr.h>
13262#endif
13263
13264int
13265main ()
13266{
13267
13268 ;
13269 return 0;
13270}
13271_ACEOF
13272if ac_fn_c_try_cpp "$LINENO"; then :
13273
13274else
13275 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13276$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13277as_fn_error $? "Cannot find fuse2fs Linux headers.
13278See \`config.log' for more details" "$LINENO" 5; }
13279fi
13280rm -f conftest.err conftest.i conftest.$ac_ext
13281
13282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13283$as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
13284if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
13285 $as_echo_n "(cached) " >&6
13286else
13287 ac_check_lib_save_LIBS=$LIBS
13288LIBS="-losxfuse $LIBS"
13289cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13290/* end confdefs.h. */
13291
13292/* Override any GCC internal prototype to avoid an error.
13293 Use char because int might match the return type of a GCC
13294 builtin and then its argument prototype would still apply. */
13295#ifdef __cplusplus
13296extern "C"
13297#endif
13298char fuse_main ();
13299int
13300main ()
13301{
13302return fuse_main ();
13303 ;
13304 return 0;
13305}
13306_ACEOF
13307if ac_fn_c_try_link "$LINENO"; then :
13308 ac_cv_lib_osxfuse_fuse_main=yes
13309else
13310 ac_cv_lib_osxfuse_fuse_main=no
13311fi
13312rm -f core conftest.err conftest.$ac_objext \
13313 conftest$ac_exeext conftest.$ac_ext
13314LIBS=$ac_check_lib_save_LIBS
13315fi
13316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13317$as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13318if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
13319 FUSE_LIB=-losxfuse
13320else
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13322$as_echo_n "checking for fuse_main in -lfuse... " >&6; }
13323if ${ac_cv_lib_fuse_fuse_main+:} false; then :
13324 $as_echo_n "(cached) " >&6
13325else
13326 ac_check_lib_save_LIBS=$LIBS
13327LIBS="-lfuse $LIBS"
13328cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13329/* end confdefs.h. */
13330
13331/* Override any GCC internal prototype to avoid an error.
13332 Use char because int might match the return type of a GCC
13333 builtin and then its argument prototype would still apply. */
13334#ifdef __cplusplus
13335extern "C"
13336#endif
13337char fuse_main ();
13338int
13339main ()
13340{
13341return fuse_main ();
13342 ;
13343 return 0;
13344}
13345_ACEOF
13346if ac_fn_c_try_link "$LINENO"; then :
13347 ac_cv_lib_fuse_fuse_main=yes
13348else
13349 ac_cv_lib_fuse_fuse_main=no
13350fi
13351rm -f core conftest.err conftest.$ac_objext \
13352 conftest$ac_exeext conftest.$ac_ext
13353LIBS=$ac_check_lib_save_LIBS
13354fi
13355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13356$as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
13357if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
13358 FUSE_LIB=-lfuse
13359else
13360 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13361$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13362as_fn_error $? "Cannot find fuse library.
13363See \`config.log' for more details" "$LINENO" 5; }
13364fi
13365
13366fi
13367
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs" >&5
13369$as_echo "Enabling fuse2fs" >&6; }
13370fi
13371
13372else
13373 for ac_header in pthread.h fuse.h
13374do :
13375 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13376ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
13377#define FUSE_USE_VERSION 29
13378#ifdef __linux__
13379# include <linux/fs.h>
13380# include <linux/falloc.h>
13381# include <linux/xattr.h>
13382#endif
13383"
13384if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13385 cat >>confdefs.h <<_ACEOF
13386#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13387_ACEOF
13388
13389else
13390 FUSE_CMT="#"
13391fi
13392
13393done
13394
13395if test -z "$FUSE_CMT"
13396then
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13398$as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
13399if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
13400 $as_echo_n "(cached) " >&6
13401else
13402 ac_check_lib_save_LIBS=$LIBS
13403LIBS="-losxfuse $LIBS"
13404cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13405/* end confdefs.h. */
13406
13407/* Override any GCC internal prototype to avoid an error.
13408 Use char because int might match the return type of a GCC
13409 builtin and then its argument prototype would still apply. */
13410#ifdef __cplusplus
13411extern "C"
13412#endif
13413char fuse_main ();
13414int
13415main ()
13416{
13417return fuse_main ();
13418 ;
13419 return 0;
13420}
13421_ACEOF
13422if ac_fn_c_try_link "$LINENO"; then :
13423 ac_cv_lib_osxfuse_fuse_main=yes
13424else
13425 ac_cv_lib_osxfuse_fuse_main=no
13426fi
13427rm -f core conftest.err conftest.$ac_objext \
13428 conftest$ac_exeext conftest.$ac_ext
13429LIBS=$ac_check_lib_save_LIBS
13430fi
13431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13432$as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13433if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
13434 FUSE_LIB=-losxfuse
13435else
13436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13437$as_echo_n "checking for fuse_main in -lfuse... " >&6; }
13438if ${ac_cv_lib_fuse_fuse_main+:} false; then :
13439 $as_echo_n "(cached) " >&6
13440else
13441 ac_check_lib_save_LIBS=$LIBS
13442LIBS="-lfuse $LIBS"
13443cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13444/* end confdefs.h. */
13445
13446/* Override any GCC internal prototype to avoid an error.
13447 Use char because int might match the return type of a GCC
13448 builtin and then its argument prototype would still apply. */
13449#ifdef __cplusplus
13450extern "C"
13451#endif
13452char fuse_main ();
13453int
13454main ()
13455{
13456return fuse_main ();
13457 ;
13458 return 0;
13459}
13460_ACEOF
13461if ac_fn_c_try_link "$LINENO"; then :
13462 ac_cv_lib_fuse_fuse_main=yes
13463else
13464 ac_cv_lib_fuse_fuse_main=no
13465fi
13466rm -f core conftest.err conftest.$ac_objext \
13467 conftest$ac_exeext conftest.$ac_ext
13468LIBS=$ac_check_lib_save_LIBS
13469fi
13470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13471$as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
13472if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
13473 FUSE_LIB=-lfuse
13474else
13475 FUSE_CMT="#"
13476fi
13477
13478fi
13479
13480fi
13481if test -z "$FUSE_CMT"
13482then
13483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs by default." >&5
13484$as_echo "Enabling fuse2fs by default." >&6; }
13485fi
13486
13487fi
13488
13489
13490
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013492$as_echo_n "checking for optreset... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013493if ${ac_cv_have_optreset+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013494 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013495else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013497/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013498#include <unistd.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013499
13500_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013501if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013502 $EGREP "optreset" >/dev/null 2>&1; then :
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013503 ac_cv_have_optreset=yes
13504else
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013505 ac_cv_have_optreset=no
13506fi
13507rm -f conftest*
13508
13509fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013511$as_echo "$ac_cv_have_optreset" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013512if test $ac_cv_have_optreset = yes; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013513
13514$as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013515
13516fi
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013517
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013518SEM_INIT_LIB=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013519ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013520if test "x$ac_cv_func_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013521
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013522else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013524$as_echo_n "checking for sem_init in -lpthread... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013525if ${ac_cv_lib_pthread_sem_init+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013526 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013527else
13528 ac_check_lib_save_LIBS=$LIBS
13529LIBS="-lpthread $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013530cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013531/* end confdefs.h. */
13532
13533/* Override any GCC internal prototype to avoid an error.
13534 Use char because int might match the return type of a GCC
13535 builtin and then its argument prototype would still apply. */
13536#ifdef __cplusplus
13537extern "C"
13538#endif
13539char sem_init ();
13540int
13541main ()
13542{
13543return sem_init ();
13544 ;
13545 return 0;
13546}
13547_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013548if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013549 ac_cv_lib_pthread_sem_init=yes
13550else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013551 ac_cv_lib_pthread_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013552fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013553rm -f core conftest.err conftest.$ac_objext \
13554 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013555LIBS=$ac_check_lib_save_LIBS
13556fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013558$as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013559if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013560 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013561
13562 SEM_INIT_LIB=-lpthread
13563else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013565$as_echo_n "checking for sem_init in -lrt... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013566if ${ac_cv_lib_rt_sem_init+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013567 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013568else
13569 ac_check_lib_save_LIBS=$LIBS
13570LIBS="-lrt $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013571cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013572/* end confdefs.h. */
13573
13574/* Override any GCC internal prototype to avoid an error.
13575 Use char because int might match the return type of a GCC
13576 builtin and then its argument prototype would still apply. */
13577#ifdef __cplusplus
13578extern "C"
13579#endif
13580char sem_init ();
13581int
13582main ()
13583{
13584return sem_init ();
13585 ;
13586 return 0;
13587}
13588_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013589if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013590 ac_cv_lib_rt_sem_init=yes
13591else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013592 ac_cv_lib_rt_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013593fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013594rm -f core conftest.err conftest.$ac_objext \
13595 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013596LIBS=$ac_check_lib_save_LIBS
13597fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013599$as_echo "$ac_cv_lib_rt_sem_init" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013600if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013601 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013602
13603 SEM_INIT_LIB=-lrt
13604else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013606$as_echo_n "checking for sem_init in -lposix4... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013607if ${ac_cv_lib_posix4_sem_init+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013608 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013609else
13610 ac_check_lib_save_LIBS=$LIBS
13611LIBS="-lposix4 $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013612cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013613/* end confdefs.h. */
13614
13615/* Override any GCC internal prototype to avoid an error.
13616 Use char because int might match the return type of a GCC
13617 builtin and then its argument prototype would still apply. */
13618#ifdef __cplusplus
13619extern "C"
13620#endif
13621char sem_init ();
13622int
13623main ()
13624{
13625return sem_init ();
13626 ;
13627 return 0;
13628}
13629_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013630if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013631 ac_cv_lib_posix4_sem_init=yes
13632else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013633 ac_cv_lib_posix4_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013634fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013635rm -f core conftest.err conftest.$ac_objext \
13636 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013637LIBS=$ac_check_lib_save_LIBS
13638fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013640$as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013641if test "x$ac_cv_lib_posix4_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013642 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013643
13644 SEM_INIT_LIB=-lposix4
13645fi
13646
13647fi
13648
13649fi
13650
13651fi
13652
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013654$as_echo_n "checking for unified diff option... " >&6; }
Theodore Ts'o27f991b2008-04-01 20:32:55 -040013655if diff -u $0 $0 > /dev/null 2>&1 ; then
Theodore Ts'oe54635d2006-08-06 14:33:13 -040013656 UNI_DIFF_OPTS=-u
13657else
13658 UNI_DIFF_OPTS=-c
13659fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013661$as_echo "$UNI_DIFF_OPTS" >&6; }
Theodore Ts'oe54635d2006-08-06 14:33:13 -040013662
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000013663case "$host_os" in
13664linux*)
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013665
13666$as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013667
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000013668 ;;
13669esac
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040013670LINUX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040013671CYGWIN_CMT="#"
13672UNIX_CMT=
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040013673case "$host_os" in
13674linux*)
13675 LINUX_CMT=
13676 ;;
Theodore Ts'offf45482003-04-13 00:44:19 -040013677cygwin)
13678 CYGWIN_CMT=
13679 UNIX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040013680 ;;
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040013681esac
13682
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013683
13684
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013685case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013686linux* | gnu* | k*bsd*-gnu)
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013687 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
13688 root_prefix="";
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013689 { $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 +010013690$as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013691 fi
13692 ;;
13693esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013694case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013695linux* | gnu* | k*bsd*-gnu)
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013696 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013697 prefix="/usr";
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013698 { $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 +010013699$as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
Theodore Ts'obff61a72002-05-21 22:21:38 -040013700 if test "$mandir" = '${prefix}/man' ; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013702$as_echo "...and mandir defaults to /usr/share/man" >&6; }
Theodore Ts'obff61a72002-05-21 22:21:38 -040013703 mandir=/usr/share/man
13704 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013705 fi
13706;;
13707esac
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013708if test "$root_prefix" = NONE ; then
Theodore Ts'offe19911998-04-08 06:05:49 +000013709 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013710 root_prefix="$ac_default_prefix"
13711 else
13712 root_prefix="$prefix"
13713 fi
Theodore Ts'ob5ffead2002-05-11 19:17:00 -040013714 root_bindir=$bindir
13715 root_sbindir=$sbindir
13716 root_libdir=$libdir
13717 root_sysconfdir=$sysconfdir
13718else
13719 root_bindir='${root_prefix}/bin'
13720 root_sbindir='${root_prefix}/sbin'
13721 root_libdir='${root_prefix}/lib'
13722 root_sysconfdir='${root_prefix}/etc'
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013723fi
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050013724if test "$bindir" != '${exec_prefix}/bin'; then
13725 root_bindir=$bindir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013727$as_echo "Setting root_bindir to $root_bindir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050013728fi
13729if test "$sbindir" != '${exec_prefix}/sbin'; then
13730 root_sbindir=$sbindir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013732$as_echo "Setting root_sbindir to $root_sbindir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050013733fi
13734if test "$libdir" != '${exec_prefix}/lib'; then
13735 root_libdir=$libdir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013737$as_echo "Setting root_libdir to $root_libdir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050013738fi
13739if test "$sysconfdir" != '${prefix}/etc'; then
13740 root_sysconfdir=$sysconfdir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013742$as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050013743fi
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013744
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013745
13746
13747
13748
Theodore Ts'o55e00a22011-09-18 23:53:23 -040013749
13750# Check whether --with-multiarch was given.
13751if test "${with_multiarch+set}" = set; then :
Theodore Ts'od7fa4102014-02-05 15:45:36 -050013752 withval=$with_multiarch; if test "$withval" = "lib64"; then
13753 libdir=/usr/lib64
13754 root_libdir=/lib64
13755else
13756 libdir=$libdir/$withval
13757 root_libdir=$root_libdir/$withval
13758fi
Theodore Ts'o55e00a22011-09-18 23:53:23 -040013759
13760fi
Theodore Ts'od3de1a72012-12-15 22:10:27 -050013761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
13762$as_echo_n "checking whether we can link with -static... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013763if ${ac_cv_e2fsprogs_use_static+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013764 $as_echo_n "(cached) " >&6
Theodore Ts'oae851481997-04-29 18:13:24 +000013765else
Theodore Ts'ofd1677e2016-05-21 23:51:19 -040013766 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS_STATIC -static"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013767cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013768/* end confdefs.h. */
Theodore Ts'oae851481997-04-29 18:13:24 +000013769#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013770int
13771main ()
13772{
Theodore Ts'oae851481997-04-29 18:13:24 +000013773fflush(stdout);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013774 ;
13775 return 0;
13776}
13777_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013778if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oae851481997-04-29 18:13:24 +000013779 ac_cv_e2fsprogs_use_static=yes
13780else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013781 ac_cv_e2fsprogs_use_static=no
Theodore Ts'oae851481997-04-29 18:13:24 +000013782fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013783rm -f core conftest.err conftest.$ac_objext \
13784 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oae851481997-04-29 18:13:24 +000013785LDFLAGS=$SAVE_LDFLAGS
13786fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013787
Theodore Ts'odefde781999-01-04 07:39:19 +000013788case "$host_os" in
13789solaris2.*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013790 ac_cv_e2fsprogs_use_static=no
Theodore Ts'odefde781999-01-04 07:39:19 +000013791;;
13792esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013794$as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
Theodore Ts'oae851481997-04-29 18:13:24 +000013795if test $ac_cv_e2fsprogs_use_static = yes; then
Theodore Ts'ofd1677e2016-05-21 23:51:19 -040013796 LDFLAGS_STATIC="$LDFLAGS_STATIC -static"
Theodore Ts'oae851481997-04-29 18:13:24 +000013797fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013798
Theodore Ts'o07a0db12003-07-05 14:50:24 -040013799case "$host_os" in
13800darwin*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013802$as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013803
13804$as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
Theodore Ts'o07a0db12003-07-05 14:50:24 -040013805
13806 ;;
13807esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013808SS_DIR=`cd ${srcdir}/lib/ss; pwd`
13809ET_DIR=`cd ${srcdir}/lib/et; pwd`
13810
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013811
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013812if test "$cross_compiling" = yes ; then
13813 DO_TEST_SUITE=
13814else
13815 DO_TEST_SUITE=check
13816fi
13817
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013818INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
13819if test -n "$CPPFLAGS" ; then
13820 INCLUDES="$INCLUDES $CPPFLAGS"
13821fi
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040013822if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013823 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040013824fi
Theodore Ts'o6c59a662014-01-04 20:44:29 -050013825if test -n "$WITH_DIET_LIBC" ; then
13826 INCLUDES="$INCLUDES -D_REENTRANT"
13827fi
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040013828
Theodore Ts'o5b5bd2c2014-07-10 00:17:05 -040013829
13830 MKINSTALLDIRS=
13831 if test -n "$ac_aux_dir"; then
13832 case "$ac_aux_dir" in
13833 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
13834 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
13835 esac
13836 fi
13837 if test -z "$MKINSTALLDIRS"; then
13838 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
13839 fi
13840
13841
Theodore Ts'odd947da2005-11-09 18:37:07 -040013842if test $cross_compiling = no; then
Theodore Ts'o28739272014-01-03 00:26:43 -050013843 BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
Theodore Ts'odd947da2005-11-09 18:37:07 -040013844 BUILD_LDFLAGS="$LDFLAGS"
Theodore Ts'odd947da2005-11-09 18:37:07 -040013845fi
13846
13847
Theodore Ts'ofd1677e2016-05-21 23:51:19 -040013848CFLAGS_SHLIB=${CFLAGS_SHLIB:-$CFLAGS}
13849CFLAGS_STLIB=${CFLAGS_STLIB:-$CFLAGS}
13850LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
13851
13852
13853
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013854test -d lib || mkdir lib
13855test -d include || mkdir include
13856test -d include/linux || mkdir include/linux
Theodore Ts'odefde781999-01-04 07:39:19 +000013857test -d include/asm || mkdir include/asm
Theodore Ts'o44dfb372015-07-01 19:42:05 -040013858if test -z "$UUID_CMT" ; then
13859 uuid_out_list="lib/uuid/Makefile lib/uuid/uuid.pc \
13860 lib/uuid/uuid_types.h"
13861fi
13862if test -z "$BLKID_CMT" ; then
13863 blkid_out_list="lib/blkid/Makefile lib/blkid/blkid.pc \
13864 lib/blkid/blkid_types.h"
13865fi
Theodore Ts'obff0cc92003-03-23 01:37:53 -050013866for i in MCONFIG Makefile e2fsprogs.spec \
Theodore Ts'o183c73b2012-05-12 23:13:24 -040013867 util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040013868 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
13869 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
Theodore Ts'of34af412015-07-11 23:05:57 -040013870 $uuid_out_list $blkid_out_list lib/support/Makefile \
Theodore Ts'o44dfb372015-07-01 19:42:05 -040013871 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 -050013872 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050013873 debugfs/Makefile tests/Makefile tests/progs/Makefile \
Matthias Andree98a5ad62009-07-15 17:37:52 +020013874 resize/Makefile doc/Makefile intl/Makefile \
13875 intl/libgnuintl.h po/Makefile.in ; do
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050013876 if test -d `dirname ${srcdir}/$i` ; then
13877 outlist="$outlist $i"
13878 fi
13879done
Theodore Ts'oe1052142006-10-21 21:46:47 -040013880ac_config_files="$ac_config_files $outlist"
13881
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013882cat >confcache <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013883# This file is a shell script that caches the results of configure
13884# tests run on this system so they can be shared between configure
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013885# scripts and configure runs, see configure's option --config-cache.
13886# It is not useful on other systems. If it contains results you don't
13887# want to keep, you may remove or edit it.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013888#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013889# config.status only pays attention to the cache file if you give it
13890# the --recheck option to rerun configure.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013891#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013892# `ac_cv_env_foo' variables (set or unset) will be overridden when
13893# loading this file, other *unset* `ac_cv_foo' will be assigned the
13894# following values.
13895
13896_ACEOF
13897
Theodore Ts'o21c84b71997-04-29 16:15:03 +000013898# The following way of writing the cache mishandles newlines in values,
13899# but we know of no workaround that is simple, portable, and efficient.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013900# So, we kill variables containing newlines.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013901# Ultrix sh set writes to stderr and can't be redirected directly,
13902# and sets the high bit in the cache file unless we assign to the vars.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013903(
13904 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13905 eval ac_val=\$$ac_var
13906 case $ac_val in #(
13907 *${as_nl}*)
13908 case $ac_var in #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013909 *_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 +010013910$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013911 esac
13912 case $ac_var in #(
13913 _ | IFS | as_nl) ;; #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013914 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013915 *) { eval $ac_var=; unset $ac_var;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013916 esac ;;
13917 esac
13918 done
13919
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013920 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -040013921 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13922 *${as_nl}ac_space=\ *)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013923 # `set' does not quote correctly, so add quotes: double-quote
13924 # substitution turns \\\\ into \\, and sed turns \\ into \.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013925 sed -n \
13926 "s/'/'\\\\''/g;
13927 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Theodore Ts'oe1052142006-10-21 21:46:47 -040013928 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013929 *)
13930 # `set' quotes correctly as required by POSIX, so do not add quotes.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013931 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013932 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013933 esac |
13934 sort
13935) |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013936 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -040013937 /^ac_cv_env_/b end
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013938 t clear
Theodore Ts'oe1052142006-10-21 21:46:47 -040013939 :clear
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013940 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13941 t end
Theodore Ts'oe1052142006-10-21 21:46:47 -040013942 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13943 :end' >>confcache
13944if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13945 if test -w "$cache_file"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013946 if test "x$cache_file" != "x/dev/null"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013947 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013948$as_echo "$as_me: updating cache $cache_file" >&6;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013949 if test ! -f "$cache_file" || test -h "$cache_file"; then
13950 cat confcache >"$cache_file"
13951 else
13952 case $cache_file in #(
13953 */* | ?:*)
13954 mv -f confcache "$cache_file"$$ &&
13955 mv -f "$cache_file"$$ "$cache_file" ;; #(
13956 *)
13957 mv -f confcache "$cache_file" ;;
13958 esac
13959 fi
13960 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013961 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013962 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013963$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013964 fi
13965fi
13966rm -f confcache
13967
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013968test "x$prefix" = xNONE && prefix=$ac_default_prefix
13969# Let make expand exec_prefix.
13970test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13971
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013972DEFS=-DHAVE_CONFIG_H
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013973
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013974ac_libobjs=
13975ac_ltlibobjs=
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013976U=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013977for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13978 # 1. Remove the extension, and $U if already installed.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013979 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013980 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Theodore Ts'oe1052142006-10-21 21:46:47 -040013981 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13982 # will be set to the directory where LIBOBJS objects are built.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013983 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13984 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013985done
13986LIBOBJS=$ac_libobjs
13987
13988LTLIBOBJS=$ac_ltlibobjs
13989
13990
13991
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013992
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013993: "${CONFIG_STATUS=./config.status}"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013994ac_write_fail=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013995ac_clean_files_save=$ac_clean_files
13996ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013997{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013998$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013999as_write_fail=0
14000cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014001#! $SHELL
14002# Generated by $as_me.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014003# Run this file to recreate the current configuration.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014004# Compiler output produced by configure, useful for debugging
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014005# configure, is in config.log if it exists.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014006
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014007debug=false
14008ac_cs_recheck=false
14009ac_cs_silent=false
Theodore Ts'o07a0db12003-07-05 14:50:24 -040014010
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014011SHELL=\${CONFIG_SHELL-$SHELL}
14012export SHELL
14013_ASEOF
14014cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14015## -------------------- ##
14016## M4sh Initialization. ##
14017## -------------------- ##
Theodore Ts'o07a0db12003-07-05 14:50:24 -040014018
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014019# Be more Bourne compatible
14020DUALCASE=1; export DUALCASE # for MKS sh
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014021if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014022 emulate sh
14023 NULLCMD=:
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014024 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014025 # is contrary to our usage. Disable this feature.
14026 alias -g '${1+"$@"}'='"$@"'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014027 setopt NO_GLOB_SUBST
14028else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014029 case `(set -o) 2>/dev/null` in #(
14030 *posix*) :
14031 set -o posix ;; #(
14032 *) :
14033 ;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014034esac
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014035fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014036
14037
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014038as_nl='
14039'
14040export as_nl
14041# Printing a long string crashes Solaris 7 /usr/bin/printf.
14042as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14043as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14044as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014045# Prefer a ksh shell builtin over an external printf program on Solaris,
14046# but without wasting forks for bash or zsh.
14047if test -z "$BASH_VERSION$ZSH_VERSION" \
14048 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14049 as_echo='print -r --'
14050 as_echo_n='print -rn --'
14051elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014052 as_echo='printf %s\n'
14053 as_echo_n='printf %s'
14054else
14055 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14056 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14057 as_echo_n='/usr/ucb/echo -n'
14058 else
14059 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14060 as_echo_n_body='eval
14061 arg=$1;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014062 case $arg in #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014063 *"$as_nl"*)
14064 expr "X$arg" : "X\\(.*\\)$as_nl";
14065 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14066 esac;
14067 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14068 '
14069 export as_echo_n_body
14070 as_echo_n='sh -c $as_echo_n_body as_echo'
14071 fi
14072 export as_echo_body
14073 as_echo='sh -c $as_echo_body as_echo'
14074fi
14075
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014076# The user is always right.
14077if test "${PATH_SEPARATOR+set}" != set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014078 PATH_SEPARATOR=:
14079 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14080 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14081 PATH_SEPARATOR=';'
14082 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014083fi
14084
Theodore Ts'oe1052142006-10-21 21:46:47 -040014085
14086# IFS
14087# We need space, tab and new line, in precisely that order. Quoting is
14088# there to prevent editors from complaining about space-tab.
14089# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14090# splitting by setting IFS to empty value.)
Theodore Ts'oe1052142006-10-21 21:46:47 -040014091IFS=" "" $as_nl"
14092
14093# Find who we are. Look in the path if we contain no directory separator.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014094as_myself=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014095case $0 in #((
Theodore Ts'oe1052142006-10-21 21:46:47 -040014096 *[\\/]* ) as_myself=$0 ;;
14097 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014098for as_dir in $PATH
14099do
14100 IFS=$as_save_IFS
14101 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14103 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040014104IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014105
Theodore Ts'oe1052142006-10-21 21:46:47 -040014106 ;;
14107esac
14108# We did not find ourselves, most probably we were run as `sh COMMAND'
14109# in which case we are not to be found in the path.
14110if test "x$as_myself" = x; then
14111 as_myself=$0
14112fi
14113if test ! -f "$as_myself"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014115 exit 1
Theodore Ts'oe1052142006-10-21 21:46:47 -040014116fi
14117
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014118# Unset variables that we do not need and which cause bugs (e.g. in
14119# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14120# suppresses any "Segmentation fault" message there. '((' could
14121# trigger a bug in pdksh 5.2.14.
14122for as_var in BASH_ENV ENV MAIL MAILPATH
14123do eval test x\${$as_var+set} = xset \
14124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Theodore Ts'oe1052142006-10-21 21:46:47 -040014125done
14126PS1='$ '
14127PS2='> '
14128PS4='+ '
14129
14130# NLS nuisances.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014131LC_ALL=C
14132export LC_ALL
14133LANGUAGE=C
14134export LANGUAGE
Theodore Ts'oe1052142006-10-21 21:46:47 -040014135
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014136# CDPATH.
14137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14138
14139
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014140# as_fn_error STATUS ERROR [LINENO LOG_FD]
14141# ----------------------------------------
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014142# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14143# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014144# script with STATUS, using 1 if that was 0.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014145as_fn_error ()
14146{
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014147 as_status=$1; test $as_status -eq 0 && as_status=1
14148 if test "$4"; then
14149 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14150 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014151 fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014152 $as_echo "$as_me: error: $2" >&2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014153 as_fn_exit $as_status
14154} # as_fn_error
14155
14156
14157# as_fn_set_status STATUS
14158# -----------------------
14159# Set $? to STATUS, without forking.
14160as_fn_set_status ()
14161{
14162 return $1
14163} # as_fn_set_status
14164
14165# as_fn_exit STATUS
14166# -----------------
14167# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14168as_fn_exit ()
14169{
14170 set +e
14171 as_fn_set_status $1
14172 exit $1
14173} # as_fn_exit
14174
14175# as_fn_unset VAR
14176# ---------------
14177# Portably unset VAR.
14178as_fn_unset ()
14179{
14180 { eval $1=; unset $1;}
14181}
14182as_unset=as_fn_unset
14183# as_fn_append VAR VALUE
14184# ----------------------
14185# Append the text in VALUE to the end of the definition contained in VAR. Take
14186# advantage of any shell optimizations that allow amortized linear growth over
14187# repeated appends, instead of the typical quadratic growth present in naive
14188# implementations.
14189if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14190 eval 'as_fn_append ()
14191 {
14192 eval $1+=\$2
14193 }'
14194else
14195 as_fn_append ()
14196 {
14197 eval $1=\$$1\$2
14198 }
14199fi # as_fn_append
14200
14201# as_fn_arith ARG...
14202# ------------------
14203# Perform arithmetic evaluation on the ARGs, and store the result in the
14204# global $as_val. Take advantage of shells that can avoid forks. The arguments
14205# must be portable across $(()) and expr.
14206if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14207 eval 'as_fn_arith ()
14208 {
14209 as_val=$(( $* ))
14210 }'
14211else
14212 as_fn_arith ()
14213 {
14214 as_val=`expr "$@" || test $? -eq 1`
14215 }
14216fi # as_fn_arith
14217
14218
Theodore Ts'oe1052142006-10-21 21:46:47 -040014219if expr a : '\(a\)' >/dev/null 2>&1 &&
14220 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14221 as_expr=expr
14222else
14223 as_expr=false
14224fi
14225
14226if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14227 as_basename=basename
14228else
14229 as_basename=false
14230fi
14231
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014232if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14233 as_dirname=dirname
14234else
14235 as_dirname=false
14236fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014237
Theodore Ts'oe1052142006-10-21 21:46:47 -040014238as_me=`$as_basename -- "$0" ||
14239$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14240 X"$0" : 'X\(//\)$' \| \
14241 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014242$as_echo X/"$0" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040014243 sed '/^.*\/\([^/][^/]*\)\/*$/{
14244 s//\1/
14245 q
14246 }
14247 /^X\/\(\/\/\)$/{
14248 s//\1/
14249 q
14250 }
14251 /^X\/\(\/\).*/{
14252 s//\1/
14253 q
14254 }
14255 s/.*/./; q'`
14256
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014257# Avoid depending upon Character Ranges.
14258as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14259as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14260as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14261as_cr_digits='0123456789'
14262as_cr_alnum=$as_cr_Letters$as_cr_digits
Theodore Ts'oe1052142006-10-21 21:46:47 -040014263
14264ECHO_C= ECHO_N= ECHO_T=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014265case `echo -n x` in #(((((
Theodore Ts'oe1052142006-10-21 21:46:47 -040014266-n*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014267 case `echo 'xy\c'` in
Theodore Ts'oe1052142006-10-21 21:46:47 -040014268 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014269 xy) ECHO_C='\c';;
14270 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14271 ECHO_T=' ';;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014272 esac;;
14273*)
14274 ECHO_N='-n';;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014275esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014276
14277rm -f conf$$ conf$$.exe conf$$.file
Theodore Ts'oe1052142006-10-21 21:46:47 -040014278if test -d conf$$.dir; then
14279 rm -f conf$$.dir/conf$$.file
14280else
14281 rm -f conf$$.dir
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014282 mkdir conf$$.dir 2>/dev/null
Theodore Ts'oe1052142006-10-21 21:46:47 -040014283fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014284if (echo >conf$$.file) 2>/dev/null; then
14285 if ln -s conf$$.file conf$$ 2>/dev/null; then
14286 as_ln_s='ln -s'
14287 # ... but there are two gotchas:
14288 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14289 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014290 # In both cases, we have to default to `cp -pR'.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014291 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014292 as_ln_s='cp -pR'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014293 elif ln conf$$.file conf$$ 2>/dev/null; then
14294 as_ln_s=ln
14295 else
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014296 as_ln_s='cp -pR'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014297 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014298else
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014299 as_ln_s='cp -pR'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014300fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014301rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14302rmdir conf$$.dir 2>/dev/null
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014303
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014304
14305# as_fn_mkdir_p
14306# -------------
14307# Create "$as_dir" as a directory, including parents if necessary.
14308as_fn_mkdir_p ()
14309{
14310
14311 case $as_dir in #(
14312 -*) as_dir=./$as_dir;;
14313 esac
14314 test -d "$as_dir" || eval $as_mkdir_p || {
14315 as_dirs=
14316 while :; do
14317 case $as_dir in #(
14318 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14319 *) as_qdir=$as_dir;;
14320 esac
14321 as_dirs="'$as_qdir' $as_dirs"
14322 as_dir=`$as_dirname -- "$as_dir" ||
14323$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14324 X"$as_dir" : 'X\(//\)[^/]' \| \
14325 X"$as_dir" : 'X\(//\)$' \| \
14326 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14327$as_echo X"$as_dir" |
14328 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14329 s//\1/
14330 q
14331 }
14332 /^X\(\/\/\)[^/].*/{
14333 s//\1/
14334 q
14335 }
14336 /^X\(\/\/\)$/{
14337 s//\1/
14338 q
14339 }
14340 /^X\(\/\).*/{
14341 s//\1/
14342 q
14343 }
14344 s/.*/./; q'`
14345 test -d "$as_dir" && break
14346 done
14347 test -z "$as_dirs" || eval "mkdir $as_dirs"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014348 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014349
14350
14351} # as_fn_mkdir_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014352if mkdir -p . 2>/dev/null; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014353 as_mkdir_p='mkdir -p "$as_dir"'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014354else
14355 test -d ./-p && rmdir ./-p
14356 as_mkdir_p=false
14357fi
14358
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014359
14360# as_fn_executable_p FILE
14361# -----------------------
14362# Test if FILE is an executable regular file.
14363as_fn_executable_p ()
14364{
14365 test -f "$1" && test -x "$1"
14366} # as_fn_executable_p
14367as_test_x='test -x'
14368as_executable_p=as_fn_executable_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014369
14370# Sed expression to map a string onto a valid CPP name.
14371as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14372
14373# Sed expression to map a string onto a valid variable name.
14374as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14375
14376
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014377exec 6>&1
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014378## ----------------------------------- ##
14379## Main body of $CONFIG_STATUS script. ##
14380## ----------------------------------- ##
14381_ASEOF
14382test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014383
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014384cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14385# Save the log message, to keep $0 and so on meaningful, and to
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014386# report actual input values of CONFIG_FILES etc. instead of their
Theodore Ts'oe1052142006-10-21 21:46:47 -040014387# values after options handling.
14388ac_log="
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014389This file was extended by $as_me, which was
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014390generated by GNU Autoconf 2.69. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014391
14392 CONFIG_FILES = $CONFIG_FILES
14393 CONFIG_HEADERS = $CONFIG_HEADERS
14394 CONFIG_LINKS = $CONFIG_LINKS
14395 CONFIG_COMMANDS = $CONFIG_COMMANDS
14396 $ $0 $@
14397
Theodore Ts'oe1052142006-10-21 21:46:47 -040014398on `(hostname || uname -n) 2>/dev/null | sed 1q`
14399"
14400
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014401_ACEOF
14402
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014403case $ac_config_files in *"
14404"*) set x $ac_config_files; shift; ac_config_files=$*;;
14405esac
14406
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014407case $ac_config_headers in *"
14408"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14409esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014410
14411
14412cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014413# Files that config.status was made for.
Theodore Ts'oe1052142006-10-21 21:46:47 -040014414config_files="$ac_config_files"
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014415config_headers="$ac_config_headers"
Theodore Ts'oe1052142006-10-21 21:46:47 -040014416config_commands="$ac_config_commands"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014417
Theodore Ts'oe1052142006-10-21 21:46:47 -040014418_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014419
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014420cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014421ac_cs_usage="\
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014422\`$as_me' instantiates files and other configuration actions
14423from templates according to the current configuration. Unless the files
14424and actions are specified as TAGs, all are instantiated by default.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014425
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014426Usage: $0 [OPTION]... [TAG]...
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014427
14428 -h, --help print this help, then exit
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014429 -V, --version print version number and configuration settings, then exit
Theodore Ts'o61ef2472010-08-01 22:30:33 -040014430 --config print configuration, then exit
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014431 -q, --quiet, --silent
14432 do not print progress messages
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014433 -d, --debug don't remove temporary files
14434 --recheck update $as_me by reconfiguring in the same conditions
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014435 --file=FILE[:TEMPLATE]
14436 instantiate the configuration file FILE
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014437 --header=FILE[:TEMPLATE]
14438 instantiate the configuration header FILE
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014439
14440Configuration files:
14441$config_files
14442
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014443Configuration headers:
14444$config_headers
14445
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014446Configuration commands:
14447$config_commands
14448
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014449Report bugs to the package provider."
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014450
Theodore Ts'oe1052142006-10-21 21:46:47 -040014451_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014452cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'o61ef2472010-08-01 22:30:33 -040014453ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014454ac_cs_version="\\
14455config.status
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014456configured by $0, generated by GNU Autoconf 2.69,
Theodore Ts'o61ef2472010-08-01 22:30:33 -040014457 with options \\"\$ac_cs_config\\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014458
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014459Copyright (C) 2012 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014460This config.status script is free software; the Free Software Foundation
14461gives unlimited permission to copy, distribute and modify it."
Theodore Ts'oe1052142006-10-21 21:46:47 -040014462
14463ac_pwd='$ac_pwd'
14464srcdir='$srcdir'
14465INSTALL='$INSTALL'
Theodore Ts'o93613952014-07-03 23:44:13 -040014466MKDIR_P='$MKDIR_P'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014467AWK='$AWK'
14468test -n "\$AWK" || AWK=awk
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014469_ACEOF
14470
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014471cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14472# The default lists apply if the user does not specify any file.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014473ac_need_defaults=:
14474while test $# != 0
14475do
14476 case $1 in
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014477 --*=?*)
Theodore Ts'oe1052142006-10-21 21:46:47 -040014478 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14479 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014480 ac_shift=:
14481 ;;
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014482 --*=)
14483 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14484 ac_optarg=
14485 ac_shift=:
14486 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014487 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014488 ac_option=$1
14489 ac_optarg=$2
14490 ac_shift=shift
14491 ;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014492 esac
14493
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014494 case $ac_option in
14495 # Handling of the options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014496 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14497 ac_cs_recheck=: ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014498 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014499 $as_echo "$ac_cs_version"; exit ;;
Theodore Ts'o61ef2472010-08-01 22:30:33 -040014500 --config | --confi | --conf | --con | --co | --c )
14501 $as_echo "$ac_cs_config"; exit ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014502 --debug | --debu | --deb | --de | --d | -d )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014503 debug=: ;;
14504 --file | --fil | --fi | --f )
14505 $ac_shift
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014506 case $ac_optarg in
14507 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014508 '') as_fn_error $? "missing file argument" ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014509 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014510 as_fn_append CONFIG_FILES " '$ac_optarg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014511 ac_need_defaults=false;;
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014512 --header | --heade | --head | --hea )
14513 $ac_shift
14514 case $ac_optarg in
14515 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14516 esac
14517 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14518 ac_need_defaults=false;;
14519 --he | --h)
14520 # Conflict between --help and --header
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014521 as_fn_error $? "ambiguous option: \`$1'
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014522Try \`$0 --help' for more information.";;
14523 --help | --hel | -h )
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014524 $as_echo "$ac_cs_usage"; exit ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014525 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14526 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14527 ac_cs_silent=: ;;
14528
14529 # This is an error.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014530 -*) as_fn_error $? "unrecognized option: \`$1'
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014531Try \`$0 --help' for more information." ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014532
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014533 *) as_fn_append ac_config_targets " $1"
Theodore Ts'oe1052142006-10-21 21:46:47 -040014534 ac_need_defaults=false ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014535
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014536 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014537 shift
14538done
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014539
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014540ac_configure_extra_args=
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014541
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014542if $ac_cs_silent; then
14543 exec 6>/dev/null
14544 ac_configure_extra_args="$ac_configure_extra_args --silent"
14545fi
14546
14547_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014548cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014549if \$ac_cs_recheck; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014550 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014551 shift
14552 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14553 CONFIG_SHELL='$SHELL'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014554 export CONFIG_SHELL
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014555 exec "\$@"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014556fi
14557
14558_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014559cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040014560exec 5>>config.log
14561{
14562 echo
14563 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14564## Running $as_me. ##
14565_ASBOX
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014566 $as_echo "$ac_log"
Theodore Ts'oe1052142006-10-21 21:46:47 -040014567} >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014568
Theodore Ts'oe1052142006-10-21 21:46:47 -040014569_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014570cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014571#
Theodore Ts'oe1052142006-10-21 21:46:47 -040014572# INIT-COMMANDS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014573#
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014574# Capture the value of obsolete ALL_LINGUAS because we need it to compute
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014575 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
Theodore Ts'o93613952014-07-03 23:44:13 -040014576 # from automake < 1.5.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014577 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014578 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14579 LINGUAS="${LINGUAS-%UNSET%}"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014580
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014581
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014582_ACEOF
14583
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014584cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040014585
14586# Handling of arguments.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014587for ac_config_target in $ac_config_targets
14588do
Theodore Ts'oe1052142006-10-21 21:46:47 -040014589 case $ac_config_target in
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014590 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
Theodore Ts'o93613952014-07-03 23:44:13 -040014591 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014592 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
14593
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014594 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014595 esac
14596done
14597
Theodore Ts'oe1052142006-10-21 21:46:47 -040014598
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014599# If the user did not use the arguments to specify the items to instantiate,
14600# then the envvar interface is used. Set only those that are not.
14601# We use the long form for the default assignment because of an extremely
14602# bizarre bug on SunOS 4.1.3.
14603if $ac_need_defaults; then
14604 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014605 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014606 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14607fi
14608
14609# Have a temporary directory for convenience. Make it in the build tree
Theodore Ts'oe1052142006-10-21 21:46:47 -040014610# simply because there is no reason against having it here, and in addition,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014611# creating and moving files from /tmp can sometimes cause problems.
Theodore Ts'oe1052142006-10-21 21:46:47 -040014612# Hook for its removal unless debugging.
14613# Note that there is a small window in which the directory will not be cleaned:
14614# after its creation but before its name has been assigned to `$tmp'.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014615$debug ||
14616{
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014617 tmp= ac_tmp=
Theodore Ts'oe1052142006-10-21 21:46:47 -040014618 trap 'exit_status=$?
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014619 : "${ac_tmp:=$tmp}"
14620 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
Theodore Ts'oe1052142006-10-21 21:46:47 -040014621' 0
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014622 trap 'as_fn_exit 1' 1 2 13 15
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014623}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014624# Create a (secure) tmp directory for tmp files.
14625
14626{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014627 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014628 test -d "$tmp"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014629} ||
14630{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014631 tmp=./conf$$-$RANDOM
14632 (umask 077 && mkdir "$tmp")
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014633} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14634ac_tmp=$tmp
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014635
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014636# Set up the scripts for CONFIG_FILES section.
14637# No need to generate them if there are no CONFIG_FILES.
14638# This happens for instance with `./config.status config.h'.
Theodore Ts'oe1052142006-10-21 21:46:47 -040014639if test -n "$CONFIG_FILES"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014640
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014641if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14642 ac_cs_awk_getline=:
14643 ac_cs_awk_pipe_init=
14644 ac_cs_awk_read_file='
14645 while ((getline aline < (F[key])) > 0)
14646 print(aline)
14647 close(F[key])'
14648 ac_cs_awk_pipe_fini=
14649else
14650 ac_cs_awk_getline=false
14651 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14652 ac_cs_awk_read_file='
14653 print "|#_!!_#|"
14654 print "cat " F[key] " &&"
14655 '$ac_cs_awk_pipe_init
14656 # The final `:' finishes the AND list.
14657 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14658fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014659ac_cr=`echo X | tr X '\015'`
14660# On cygwin, bash can eat \r inside `` if the user requested igncr.
14661# But we know of no other shell where ac_cr would be empty at this
14662# point, so we can use a bashism as a fallback.
14663if test "x$ac_cr" = x; then
14664 eval ac_cr=\$\'\\r\'
14665fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014666ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14667if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014668 ac_cs_awk_cr='\\r'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014669else
14670 ac_cs_awk_cr=$ac_cr
14671fi
14672
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014673echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014674_ACEOF
14675
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014676# Create commands to substitute file output variables.
14677{
14678 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014679 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014680 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14681 echo "_ACAWK" &&
14682 echo "_ACEOF"
14683} >conf$$files.sh &&
14684. ./conf$$files.sh ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014685 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014686rm -f conf$$files.sh
Theodore Ts'oe1052142006-10-21 21:46:47 -040014687
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014688{
14689 echo "cat >conf$$subs.awk <<_ACEOF" &&
14690 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14691 echo "_ACEOF"
14692} >conf$$subs.sh ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014693 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14694ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040014695ac_delim='%!_!# '
14696for ac_last_try in false false false false false :; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014697 . ./conf$$subs.sh ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014698 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014699
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014700 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14701 if test $ac_delim_n = $ac_delim_num; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040014702 break
14703 elif $ac_last_try; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014704 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014705 else
14706 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014707 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014708done
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014709rm -f conf$$subs.sh
Theodore Ts'oe1052142006-10-21 21:46:47 -040014710
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014711cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014712cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040014713_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014714sed -n '
14715h
14716s/^/S["/; s/!.*/"]=/
14717p
14718g
14719s/^[^!]*!//
14720:repl
14721t repl
14722s/'"$ac_delim"'$//
14723t delim
14724:nl
14725h
Theodore Ts'o61ef2472010-08-01 22:30:33 -040014726s/\(.\{148\}\)..*/\1/
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014727t more1
14728s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14729p
14730n
14731b repl
14732:more1
14733s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14734p
14735g
14736s/.\{148\}//
14737t nl
14738:delim
14739h
Theodore Ts'o61ef2472010-08-01 22:30:33 -040014740s/\(.\{148\}\)..*/\1/
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014741t more2
14742s/["\\]/\\&/g; s/^/"/; s/$/"/
14743p
14744b
14745:more2
14746s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14747p
14748g
14749s/.\{148\}//
14750t delim
14751' <conf$$subs.awk | sed '
14752/^[^""]/{
14753 N
14754 s/\n//
14755}
14756' >>$CONFIG_STATUS || ac_write_fail=1
14757rm -f conf$$subs.awk
14758cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14759_ACAWK
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014760cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014761 for (key in S) S_is_set[key] = 1
14762 FS = ""
14763 \$ac_cs_awk_pipe_init
14764}
14765{
14766 line = $ 0
14767 nfields = split(line, field, "@")
14768 substed = 0
14769 len = length(field[1])
14770 for (i = 2; i < nfields; i++) {
14771 key = field[i]
14772 keylen = length(key)
14773 if (S_is_set[key]) {
14774 value = S[key]
14775 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14776 len += length(value) + length(field[++i])
14777 substed = 1
14778 } else
14779 len += 1 + keylen
14780 }
14781 if (nfields == 3 && !substed) {
14782 key = field[2]
14783 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
14784 \$ac_cs_awk_read_file
14785 next
14786 }
14787 }
14788 print line
14789}
14790\$ac_cs_awk_pipe_fini
14791_ACAWK
Theodore Ts'oe1052142006-10-21 21:46:47 -040014792_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014793cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14794if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14795 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14796else
14797 cat
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014798fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14799 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014800_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040014801
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014802# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14803# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
Theodore Ts'oe1052142006-10-21 21:46:47 -040014804# trailing colons and then remove the whole line if VPATH becomes empty
14805# (actually we leave an empty line to preserve line numbers).
14806if test "x$srcdir" = x.; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014807 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14808h
14809s///
14810s/^/:/
14811s/[ ]*$/:/
14812s/:\$(srcdir):/:/g
14813s/:\${srcdir}:/:/g
14814s/:@srcdir@:/:/g
14815s/^:*//
Theodore Ts'oe1052142006-10-21 21:46:47 -040014816s/:*$//
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014817x
14818s/\(=[ ]*\).*/\1/
14819G
14820s/\n//
Theodore Ts'oe1052142006-10-21 21:46:47 -040014821s/^[^=]*=[ ]*$//
14822}'
14823fi
14824
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014825cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014826fi # test -n "$CONFIG_FILES"
14827
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014828# Set up the scripts for CONFIG_HEADERS section.
14829# No need to generate them if there are no CONFIG_HEADERS.
14830# This happens for instance with `./config.status Makefile'.
14831if test -n "$CONFIG_HEADERS"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014832cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014833BEGIN {
14834_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040014835
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014836# Transform confdefs.h into an awk script `defines.awk', embedded as
14837# here-document in config.status, that substitutes the proper values into
14838# config.h.in to produce config.h.
14839
14840# Create a delimiter string that does not exist in confdefs.h, to ease
14841# handling of long lines.
14842ac_delim='%!_!# '
14843for ac_last_try in false false :; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014844 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14845 if test -z "$ac_tt"; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014846 break
14847 elif $ac_last_try; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014848 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014849 else
14850 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14851 fi
14852done
14853
14854# For the awk script, D is an array of macro values keyed by name,
14855# likewise P contains macro parameters if any. Preserve backslash
14856# newline sequences.
14857
14858ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14859sed -n '
14860s/.\{148\}/&'"$ac_delim"'/g
14861t rset
14862:rset
14863s/^[ ]*#[ ]*define[ ][ ]*/ /
14864t def
14865d
14866:def
14867s/\\$//
14868t bsnl
14869s/["\\]/\\&/g
14870s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14871D["\1"]=" \3"/p
14872s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14873d
14874:bsnl
14875s/["\\]/\\&/g
14876s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14877D["\1"]=" \3\\\\\\n"\\/p
14878t cont
14879s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14880t cont
14881d
14882:cont
14883n
14884s/.\{148\}/&'"$ac_delim"'/g
14885t clear
14886:clear
14887s/\\$//
14888t bsnlc
14889s/["\\]/\\&/g; s/^/"/; s/$/"/p
14890d
14891:bsnlc
14892s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14893b cont
14894' <confdefs.h | sed '
14895s/'"$ac_delim"'/"\\\
14896"/g' >>$CONFIG_STATUS || ac_write_fail=1
14897
14898cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14899 for (key in D) D_is_set[key] = 1
14900 FS = ""
14901}
14902/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14903 line = \$ 0
14904 split(line, arg, " ")
14905 if (arg[1] == "#") {
14906 defundef = arg[2]
14907 mac1 = arg[3]
14908 } else {
14909 defundef = substr(arg[1], 2)
14910 mac1 = arg[2]
14911 }
14912 split(mac1, mac2, "(") #)
14913 macro = mac2[1]
14914 prefix = substr(line, 1, index(line, defundef) - 1)
14915 if (D_is_set[macro]) {
14916 # Preserve the white space surrounding the "#".
14917 print prefix "define", macro P[macro] D[macro]
14918 next
14919 } else {
14920 # Replace #undef with comments. This is necessary, for example,
14921 # in the case of _POSIX_SOURCE, which is predefined and required
14922 # on some systems where configure will not decide to define it.
14923 if (defundef == "undef") {
14924 print "/*", prefix defundef, macro, "*/"
14925 next
14926 }
14927 }
14928}
14929{ print }
14930_ACAWK
14931_ACEOF
14932cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014933 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014934fi # test -n "$CONFIG_HEADERS"
14935
14936
14937eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014938shift
14939for ac_tag
Theodore Ts'oe1052142006-10-21 21:46:47 -040014940do
14941 case $ac_tag in
14942 :[FHLC]) ac_mode=$ac_tag; continue;;
14943 esac
14944 case $ac_mode$ac_tag in
14945 :[FHL]*:*);;
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014946 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014947 :[FH]-) ac_tag=-:-;;
14948 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14949 esac
14950 ac_save_IFS=$IFS
14951 IFS=:
14952 set x $ac_tag
14953 IFS=$ac_save_IFS
14954 shift
14955 ac_file=$1
14956 shift
14957
14958 case $ac_mode in
14959 :L) ac_source=$1;;
14960 :[FH])
14961 ac_file_inputs=
14962 for ac_f
14963 do
14964 case $ac_f in
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014965 -) ac_f="$ac_tmp/stdin";;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014966 *) # Look for the file first in the build tree, then in the source tree
14967 # (if the path is not absolute). The absolute path cannot be DOS-style,
14968 # because $ac_f cannot contain `:'.
14969 test -f "$ac_f" ||
14970 case $ac_f in
14971 [\\/$]*) false;;
14972 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14973 esac ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014974 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014975 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014976 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014977 as_fn_append ac_file_inputs " '$ac_f'"
Theodore Ts'oe1052142006-10-21 21:46:47 -040014978 done
14979
14980 # Let's still pretend it is `configure' which instantiates (i.e., don't
14981 # use $as_me), people would be surprised to read:
14982 # /* config.h. Generated by config.status. */
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014983 configure_input='Generated from '`
14984 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14985 `' by configure.'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014986 if test x"$ac_file" != x-; then
14987 configure_input="$ac_file. $configure_input"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014988 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014989$as_echo "$as_me: creating $ac_file" >&6;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040014990 fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014991 # Neutralize special characters interpreted by sed in replacement strings.
14992 case $configure_input in #(
14993 *\&* | *\|* | *\\* )
14994 ac_sed_conf_input=`$as_echo "$configure_input" |
14995 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14996 *) ac_sed_conf_input=$configure_input;;
14997 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040014998
14999 case $ac_tag in
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015000 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15001 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015002 esac
15003 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015004 esac
15005
Theodore Ts'oe1052142006-10-21 21:46:47 -040015006 ac_dir=`$as_dirname -- "$ac_file" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015007$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15008 X"$ac_file" : 'X\(//\)[^/]' \| \
15009 X"$ac_file" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -040015010 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015011$as_echo X"$ac_file" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040015012 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15013 s//\1/
15014 q
15015 }
15016 /^X\(\/\/\)[^/].*/{
15017 s//\1/
15018 q
15019 }
15020 /^X\(\/\/\)$/{
15021 s//\1/
15022 q
15023 }
15024 /^X\(\/\).*/{
15025 s//\1/
15026 q
15027 }
15028 s/.*/./; q'`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050015029 as_dir="$ac_dir"; as_fn_mkdir_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015030 ac_builddir=.
15031
Theodore Ts'oe1052142006-10-21 21:46:47 -040015032case "$ac_dir" in
15033.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15034*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015035 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040015036 # A ".." for each directory in $ac_dir_suffix.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015037 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040015038 case $ac_top_builddir_sub in
15039 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15040 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15041 esac ;;
15042esac
15043ac_abs_top_builddir=$ac_pwd
15044ac_abs_builddir=$ac_pwd$ac_dir_suffix
15045# for backward compatibility:
15046ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015047
15048case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -040015049 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015050 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015051 ac_top_srcdir=$ac_top_builddir_sub
15052 ac_abs_top_srcdir=$ac_pwd ;;
15053 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015054 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015055 ac_top_srcdir=$srcdir
15056 ac_abs_top_srcdir=$srcdir ;;
15057 *) # Relative name.
15058 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15059 ac_top_srcdir=$ac_top_build_prefix$srcdir
15060 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015061esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040015062ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015063
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015064
Theodore Ts'oe1052142006-10-21 21:46:47 -040015065 case $ac_mode in
15066 :F)
15067 #
15068 # CONFIG_FILE
15069 #
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015070
15071 case $INSTALL in
15072 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015073 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015074 esac
Theodore Ts'o93613952014-07-03 23:44:13 -040015075 ac_MKDIR_P=$MKDIR_P
15076 case $MKDIR_P in
15077 [\\/$]* | ?:[\\/]* ) ;;
15078 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15079 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015080_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040015081
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015082cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040015083# If the template does not know about datarootdir, expand it.
15084# FIXME: This hack should be removed a few years after 2.60.
15085ac_datarootdir_hack=; ac_datarootdir_seen=
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015086ac_sed_dataroot='
15087/datarootdir/ {
Theodore Ts'oe1052142006-10-21 21:46:47 -040015088 p
15089 q
15090}
15091/@datadir@/p
15092/@docdir@/p
15093/@infodir@/p
15094/@localedir@/p
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050015095/@mandir@/p'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015096case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Theodore Ts'oe1052142006-10-21 21:46:47 -040015097*datarootdir*) ac_datarootdir_seen=yes;;
15098*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050015099 { $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 +010015100$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040015101_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015102cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040015103 ac_datarootdir_hack='
15104 s&@datadir@&$datadir&g
15105 s&@docdir@&$docdir&g
15106 s&@infodir@&$infodir&g
15107 s&@localedir@&$localedir&g
15108 s&@mandir@&$mandir&g
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050015109 s&\\\${datarootdir}&$datarootdir&g' ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015110esac
15111_ACEOF
15112
15113# Neutralize VPATH when `$srcdir' = `.'.
15114# Shell code in configure.ac might set extrasub.
15115# FIXME: do we really want to maintain this feature?
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015116cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15117ac_sed_extra="$ac_vpsub
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015118$extrasub
15119_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015120cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015121:t
15122/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015123s|@configure_input@|$ac_sed_conf_input|;t t
Theodore Ts'oe1052142006-10-21 21:46:47 -040015124s&@top_builddir@&$ac_top_builddir_sub&;t t
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015125s&@top_build_prefix@&$ac_top_build_prefix&;t t
Theodore Ts'oe1052142006-10-21 21:46:47 -040015126s&@srcdir@&$ac_srcdir&;t t
15127s&@abs_srcdir@&$ac_abs_srcdir&;t t
15128s&@top_srcdir@&$ac_top_srcdir&;t t
15129s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15130s&@builddir@&$ac_builddir&;t t
15131s&@abs_builddir@&$ac_abs_builddir&;t t
15132s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15133s&@INSTALL@&$ac_INSTALL&;t t
Theodore Ts'o93613952014-07-03 23:44:13 -040015134s&@MKDIR_P@&$ac_MKDIR_P&;t t
Theodore Ts'oe1052142006-10-21 21:46:47 -040015135$ac_datarootdir_hack
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015136"
15137eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15138if $ac_cs_awk_getline; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015139 $AWK -f "$ac_tmp/subs.awk"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015140else
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015141 $AWK -f "$ac_tmp/subs.awk" | $SHELL
15142fi \
15143 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015144
Theodore Ts'oe1052142006-10-21 21:46:47 -040015145test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015146 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15147 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15148 "$ac_tmp/out"`; test -z "$ac_out"; } &&
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050015149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015150which seems to be undefined. Please make sure it is defined" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015151$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015152which seems to be undefined. Please make sure it is defined" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015153
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015154 rm -f "$ac_tmp/stdin"
Theodore Ts'oe1052142006-10-21 21:46:47 -040015155 case $ac_file in
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015156 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15157 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015158 esac \
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015159 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040015160 ;;
Theodore Ts'od1154eb2011-09-18 17:34:37 -040015161 :H)
15162 #
15163 # CONFIG_HEADER
15164 #
15165 if test x"$ac_file" != x-; then
15166 {
15167 $as_echo "/* $configure_input */" \
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015168 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15169 } >"$ac_tmp/config.h" \
15170 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15171 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040015172 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15173$as_echo "$as_me: $ac_file is unchanged" >&6;}
15174 else
15175 rm -f "$ac_file"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015176 mv "$ac_tmp/config.h" "$ac_file" \
15177 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040015178 fi
15179 else
15180 $as_echo "/* $configure_input */" \
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015181 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15182 || as_fn_error $? "could not create -" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040015183 fi
15184 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015185
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050015186 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015187$as_echo "$as_me: executing $ac_file commands" >&6;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040015188 ;;
15189 esac
15190
15191
15192 case $ac_file$ac_mode in
Theodore Ts'o93613952014-07-03 23:44:13 -040015193 "po-directories":C)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015194 for ac_file in $CONFIG_FILES; do
15195 # Support "outfile[:infile[:infile...]]"
15196 case "$ac_file" in
15197 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000015198 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015199 # PO directories have a Makefile.in generated from Makefile.in.in.
15200 case "$ac_file" in */Makefile.in)
15201 # Adjust a relative srcdir.
15202 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
Theodore Ts'o93613952014-07-03 23:44:13 -040015203 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015204 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15205 # In autoconf-2.13 it is called $ac_given_srcdir.
15206 # In autoconf-2.50 it is called $srcdir.
15207 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15208 case "$ac_given_srcdir" in
15209 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15210 /*) top_srcdir="$ac_given_srcdir" ;;
15211 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
15212 esac
Theodore Ts'o93613952014-07-03 23:44:13 -040015213 # Treat a directory as a PO directory if and only if it has a
15214 # POTFILES.in file. This allows packages to have multiple PO
15215 # directories under different names or in different locations.
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015216 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15217 rm -f "$ac_dir/POTFILES"
15218 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
Theodore Ts'o93613952014-07-03 23:44:13 -040015219 gt_tab=`printf '\t'`
15220 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 -050015221 POMAKEFILEDEPS="POTFILES.in"
15222 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015223 # on $ac_dir but don't depend on user-specified configuration
15224 # parameters.
15225 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15226 # The LINGUAS file contains the set of available languages.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015227 if test -n "$OBSOLETE_ALL_LINGUAS"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015228 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
15229 fi
Theodore Ts'o93613952014-07-03 23:44:13 -040015230 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15231 # Hide the ALL_LINGUAS assignment from automake < 1.5.
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015232 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015233 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15234 else
15235 # The set of available languages was given in configure.in.
Theodore Ts'o93613952014-07-03 23:44:13 -040015236 # Hide the ALL_LINGUAS assignment from automake < 1.5.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015237 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015238 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015239 # Compute POFILES
15240 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
15241 # Compute UPDATEPOFILES
15242 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
15243 # Compute DUMMYPOFILES
15244 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
15245 # Compute GMOFILES
15246 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015247 case "$ac_given_srcdir" in
15248 .) srcdirpre= ;;
15249 *) srcdirpre='$(srcdir)/' ;;
15250 esac
15251 POFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015252 UPDATEPOFILES=
15253 DUMMYPOFILES=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015254 GMOFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015255 for lang in $ALL_LINGUAS; do
15256 POFILES="$POFILES $srcdirpre$lang.po"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015257 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15258 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015259 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015260 done
15261 # CATALOGS depends on both $ac_dir and the user's LINGUAS
15262 # environment variable.
15263 INST_LINGUAS=
15264 if test -n "$ALL_LINGUAS"; then
15265 for presentlang in $ALL_LINGUAS; do
15266 useit=no
15267 if test "%UNSET%" != "$LINGUAS"; then
15268 desiredlanguages="$LINGUAS"
15269 else
15270 desiredlanguages="$ALL_LINGUAS"
15271 fi
15272 for desiredlang in $desiredlanguages; do
15273 # Use the presentlang catalog if desiredlang is
15274 # a. equal to presentlang, or
15275 # b. a variant of presentlang (because in this case,
15276 # presentlang can be used as a fallback for messages
15277 # which are not translated in the desiredlang catalog).
15278 case "$desiredlang" in
15279 "$presentlang"*) useit=yes;;
15280 esac
15281 done
15282 if test $useit = yes; then
15283 INST_LINGUAS="$INST_LINGUAS $presentlang"
15284 fi
15285 done
15286 fi
15287 CATALOGS=
15288 if test -n "$INST_LINGUAS"; then
15289 for lang in $INST_LINGUAS; do
15290 CATALOGS="$CATALOGS $lang.gmo"
15291 done
15292 fi
15293 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015294 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 -040015295 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15296 if test -f "$f"; then
15297 case "$f" in
15298 *.orig | *.bak | *~) ;;
15299 *) cat "$f" >> "$ac_dir/Makefile" ;;
15300 esac
15301 fi
15302 done
15303 fi
15304 ;;
15305 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015306 done ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015307
Theodore Ts'oe1052142006-10-21 21:46:47 -040015308 esac
15309done # for ac_tag
15310
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015311
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050015312as_fn_exit 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015313_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015314ac_clean_files=$ac_clean_files_save
15315
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015316test $ac_write_fail = 0 ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015317 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015318
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015319
15320# configure is writing to config.log, and then calls config.status.
15321# config.status does its own redirection, appending to config.log.
15322# Unfortunately, on DOS this fails, as config.log is still kept open
15323# by configure, so config.status won't be able to write to it; its
15324# output is simply discarded. So we exec the FD to /dev/null,
15325# effectively closing config.log, so it can be properly (re)opened and
15326# appended to by config.status. When coming back to configure, we
15327# need to make the FD available again.
15328if test "$no_create" != yes; then
15329 ac_cs_success=:
15330 ac_config_status_args=
15331 test "$silent" = yes &&
15332 ac_config_status_args="$ac_config_status_args --quiet"
15333 exec 5>/dev/null
15334 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15335 exec 5>>config.log
15336 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15337 # would make configure fail if this is the last instruction.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015338 $ac_cs_success || as_fn_exit 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015339fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015340if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050015341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015342$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15343fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015344
Theodore Ts'oee683a12005-02-05 15:53:56 -050015345if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi