blob: 5f7b429a462d590834fa2a6eb86d05ec5004b812 [file] [log] [blame]
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001#! /bin/sh
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002# Guess values for system-dependent variables and create Makefiles.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003# Generated by GNU Autoconf 2.69.
Theodore Ts'o61ef2472010-08-01 22:30:33 -04004#
Theodore Ts'o50e1e101997-04-26 13:58:21 +00005#
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008#
Theodore Ts'o50e1e101997-04-26 13:58:21 +00009# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011## -------------------- ##
12## M4sh Initialization. ##
13## -------------------- ##
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040015# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050017if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050018 emulate sh
19 NULLCMD=:
Scott James Remnant39fd3d42009-05-14 13:03:25 +010020 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050021 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
Theodore Ts'oe1052142006-10-21 21:46:47 -040023 setopt NO_GLOB_SUBST
24else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050025 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040030esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050031fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040032
33
Scott James Remnant39fd3d42009-05-14 13:03:25 +010034as_nl='
35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050041# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010048 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050058 case $arg in #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010059 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70fi
71
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050072# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010074 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050079fi
80
Theodore Ts'oe1052142006-10-21 21:46:47 -040081
82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
Theodore Ts'oe1052142006-10-21 21:46:47 -040087IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100090as_myself=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050091case $0 in #((
Theodore Ts'oe1052142006-10-21 21:46:47 -040092 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050094for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050098 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
Theodore Ts'oe1052142006-10-21 21:46:47 -0400100IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500101
Theodore Ts'oe1052142006-10-21 21:46:47 -0400102 ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500111 exit 1
Theodore Ts'oe1052142006-10-21 21:46:47 -0400112fi
113
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Theodore Ts'oe1052142006-10-21 21:46:47 -0400121done
122PS1='$ '
123PS2='> '
124PS4='+ '
125
126# NLS nuisances.
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100127LC_ALL=C
128export LC_ALL
129LANGUAGE=C
130export LANGUAGE
Theodore Ts'oe1052142006-10-21 21:46:47 -0400131
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500160if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202else
203 as_have_required=no
204fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
211do
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225fi
226fi
227 done;;
228 esac
229 as_found=false
230done
231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234fi; }
235IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241# neutralization value for shells without unset; and this also
242# works around shells that cannot unset nonexistent variables.
243# Preserve -v and -x to the replacement shell.
244BASH_ENV=/dev/null
245ENV=/dev/null
246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252esac
253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254# Admittedly, this is quite paranoid, since all the known shells bail
255# out after a failed `exec'.
256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257exit 255
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500258fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268$0: including any error possibly output before this
269$0: message. Then install a modern shell, or manually run
270$0: the script under such a shell if you do have one."
271 fi
272 exit 1
273fi
274fi
275fi
276SHELL=${CONFIG_SHELL-/bin/sh}
277export SHELL
278# Unset more variables known to interfere with behavior of common tools.
279CLICOLOR_FORCE= GREP_OPTIONS=
280unset CLICOLOR_FORCE GREP_OPTIONS
281
282## --------------------- ##
283## M4sh Shell Functions. ##
284## --------------------- ##
285# as_fn_unset VAR
286# ---------------
287# Portably unset VAR.
288as_fn_unset ()
289{
290 { eval $1=; unset $1;}
291}
292as_unset=as_fn_unset
293
294# as_fn_set_status STATUS
295# -----------------------
296# Set $? to STATUS, without forking.
297as_fn_set_status ()
298{
299 return $1
300} # as_fn_set_status
301
302# as_fn_exit STATUS
303# -----------------
304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305as_fn_exit ()
306{
307 set +e
308 as_fn_set_status $1
309 exit $1
310} # as_fn_exit
311
312# as_fn_mkdir_p
313# -------------
314# Create "$as_dir" as a directory, including parents if necessary.
315as_fn_mkdir_p ()
316{
317
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334$as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500356
357
358} # as_fn_mkdir_p
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000359
360# as_fn_executable_p FILE
361# -----------------------
362# Test if FILE is an executable regular file.
363as_fn_executable_p ()
364{
365 test -f "$1" && test -x "$1"
366} # as_fn_executable_p
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500367# as_fn_append VAR VALUE
368# ----------------------
369# Append the text in VALUE to the end of the definition contained in VAR. Take
370# advantage of any shell optimizations that allow amortized linear growth over
371# repeated appends, instead of the typical quadratic growth present in naive
372# implementations.
373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
378else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383fi # as_fn_append
384
385# as_fn_arith ARG...
386# ------------------
387# Perform arithmetic evaluation on the ARGs, and store the result in the
388# global $as_val. Take advantage of shells that can avoid forks. The arguments
389# must be portable across $(()) and expr.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400fi # as_fn_arith
401
402
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000403# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ----------------------------------------
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000407# script with STATUS, using 1 if that was 0.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500408as_fn_error ()
409{
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500414 fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000415 $as_echo "$as_me: error: $2" >&2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500416 as_fn_exit $as_status
417} # as_fn_error
418
Theodore Ts'oe1052142006-10-21 21:46:47 -0400419if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422else
423 as_expr=false
424fi
425
426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428else
429 as_basename=false
430fi
431
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434else
435 as_dirname=false
436fi
Theodore Ts'oe1052142006-10-21 21:46:47 -0400437
Theodore Ts'oe1052142006-10-21 21:46:47 -0400438as_me=`$as_basename -- "$0" ||
439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100442$as_echo X/"$0" |
Theodore Ts'oe1052142006-10-21 21:46:47 -0400443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
455 s/.*/./; q'`
456
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500457# Avoid depending upon Character Ranges.
458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461as_cr_digits='0123456789'
462as_cr_alnum=$as_cr_Letters$as_cr_digits
Theodore Ts'oe1052142006-10-21 21:46:47 -0400463
464
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
Theodore Ts'oe1052142006-10-21 21:46:47 -0400470 sed -n '
471 p
472 /[$]LINENO/=
473 ' <$as_myself |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500474 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -0400475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500479 N
Theodore Ts'oe1052142006-10-21 21:46:47 -0400480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500482 t loop
Theodore Ts'oe1052142006-10-21 21:46:47 -0400483 s/-\n.*//
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500484 ' >$as_me.lineno &&
Theodore Ts'oe1052142006-10-21 21:46:47 -0400485 chmod +x "$as_me.lineno" ||
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500487
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
Theodore Ts'oe1052142006-10-21 21:46:47 -0400494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500496 # Exit status is that of the last command.
497 exit
498}
499
Theodore Ts'oe1052142006-10-21 21:46:47 -0400500ECHO_C= ECHO_N= ECHO_T=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500501case `echo -n x` in #(((((
Theodore Ts'oe1052142006-10-21 21:46:47 -0400502-n*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500503 case `echo 'xy\c'` in
Theodore Ts'oe1052142006-10-21 21:46:47 -0400504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400508 esac;;
509*)
510 ECHO_N='-n';;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500511esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500512
513rm -f conf$$ conf$$.exe conf$$.file
Theodore Ts'oe1052142006-10-21 21:46:47 -0400514if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516else
517 rm -f conf$$.dir
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100518 mkdir conf$$.dir 2>/dev/null
Theodore Ts'oe1052142006-10-21 21:46:47 -0400519fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100520if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000526 # In both cases, we have to default to `cp -pR'.
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000528 as_ln_s='cp -pR'
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000532 as_ln_s='cp -pR'
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100533 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500534else
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000535 as_ln_s='cp -pR'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500536fi
Theodore Ts'oe1052142006-10-21 21:46:47 -0400537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500539
540if mkdir -p . 2>/dev/null; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500541 as_mkdir_p='mkdir -p "$as_dir"'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500542else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
545fi
546
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500549
550# Sed expression to map a string onto a valid CPP name.
551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
552
553# Sed expression to map a string onto a valid variable name.
554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555
556
Theodore Ts'o61ef2472010-08-01 22:30:33 -0400557test -n "$DJDIR" || exec 7<&0 </dev/null
558exec 6>&1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500559
560# Name of the host.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500562# so uname gets run too.
563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
564
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500565#
566# Initializations.
567#
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000568ac_default_prefix=/usr/local
Theodore Ts'oe1052142006-10-21 21:46:47 -0400569ac_clean_files=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500570ac_config_libobj_dir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -0400571LIBOBJS=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500572cross_compiling=no
573subdirs=
574MFLAGS=
575MAKEFLAGS=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500576
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500577# Identity of this package.
578PACKAGE_NAME=
579PACKAGE_TARNAME=
580PACKAGE_VERSION=
581PACKAGE_STRING=
582PACKAGE_BUGREPORT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500583PACKAGE_URL=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500584
585ac_unique_file="version.h"
586# Factoring default headers for most tests.
587ac_includes_default="\
588#include <stdio.h>
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400589#ifdef HAVE_SYS_TYPES_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500590# include <sys/types.h>
591#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400592#ifdef HAVE_SYS_STAT_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500593# include <sys/stat.h>
594#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400595#ifdef STDC_HEADERS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500596# include <stdlib.h>
597# include <stddef.h>
598#else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400599# ifdef HAVE_STDLIB_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500600# include <stdlib.h>
601# endif
602#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400603#ifdef HAVE_STRING_H
604# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500605# include <memory.h>
606# endif
607# include <string.h>
608#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400609#ifdef HAVE_STRINGS_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500610# include <strings.h>
611#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400612#ifdef HAVE_INTTYPES_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500613# include <inttypes.h>
Theodore Ts'oe1052142006-10-21 21:46:47 -0400614#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400615#ifdef HAVE_STDINT_H
Theodore Ts'oe1052142006-10-21 21:46:47 -0400616# include <stdint.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500617#endif
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400618#ifdef HAVE_UNISTD_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500619# include <unistd.h>
620#endif"
621
Theodore Ts'o93613952014-07-03 23:44:13 -0400622gt_needs=
Theodore Ts'o61ef2472010-08-01 22:30:33 -0400623ac_header_list=
Theodore Ts'o93613952014-07-03 23:44:13 -0400624gl_use_threads_default=
625ac_func_list=
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100626ac_subst_vars='LTLIBOBJS
Theodore Ts'oe1052142006-10-21 21:46:47 -0400627LIBOBJS
Theodore Ts'ofd1677e2016-05-21 23:51:19 -0400628LDFLAGS_SHLIB
629CFLAGS_STLIB
630CFLAGS_SHLIB
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100631BUILD_LDFLAGS
632BUILD_CFLAGS
Theodore Ts'o5b5bd2c2014-07-10 00:17:05 -0400633MKINSTALLDIRS
Theodore Ts'od1154eb2011-09-18 17:34:37 -0400634INCLUDES
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100635DO_TEST_SUITE
Theodore Ts'ofd1677e2016-05-21 23:51:19 -0400636LDFLAGS_STATIC
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100637root_sysconfdir
638root_libdir
639root_sbindir
640root_bindir
641root_prefix
642UNIX_CMT
643CYGWIN_CMT
644LINUX_CMT
645UNI_DIFF_OPTS
646SEM_INIT_LIB
Darrick J. Wong81cbf1e2015-05-13 17:22:40 -0700647FUSE_CMT
648FUSE_LIB
Theodore Ts'oc94da042016-06-21 23:16:39 -0400649CLOCK_GETTIME_LIB
Darrick J. Wongb291c112014-09-13 15:12:46 -0700650MAGIC_LIB
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100651SOCKET_LIB
Theodore Ts'o2dd680f2016-05-29 01:07:40 -0400652SIZEOF_TIME_T
Theodore Ts'occ68e8a2013-05-04 19:01:09 -0400653SIZEOF_OFF_T
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100654SIZEOF_LONG_LONG
655SIZEOF_LONG
656SIZEOF_INT
657SIZEOF_SHORT
658BUILD_CC
659MAKEINFO
660STRIP
661AR
662LDCONFIG
663PERL
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100664AWK
665CHMOD
666RM
667CP
668MV
669LN_S
670LN
Theodore Ts'obcb915b2009-07-02 18:19:10 -0400671ifNotGNUmake
672ifGNUmake
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100673BINARY_TYPE
674POSUB
675LTLIBINTL
676LIBINTL
677INTLLIBS
678INTL_LIBTOOL_SUFFIX_PREFIX
679INTLOBJS
680GENCAT
681INSTOBJEXT
682DATADIRNAME
683CATOBJEXT
684USE_INCLUDED_LIBINTL
685BUILD_INCLUDED_LIBINTL
Theodore Ts'o93613952014-07-03 23:44:13 -0400686LTLIBC
687WINDRES
688WOE32
689WOE32DLL
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100690HAVE_WPRINTF
Theodore Ts'o93613952014-07-03 23:44:13 -0400691HAVE_NEWLOCALE
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100692HAVE_SNPRINTF
693HAVE_ASPRINTF
694HAVE_POSIX_PRINTF
Theodore Ts'o93613952014-07-03 23:44:13 -0400695INTL_DEFAULT_VERBOSITY
696INTL_MACOSX_LIBS
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100697GLIBC21
Theodore Ts'o93613952014-07-03 23:44:13 -0400698INTLBISON
699LTLIBICONV
700LIBICONV
701LTLIBMULTITHREAD
702LIBMULTITHREAD
703LTLIBTHREAD
704LIBTHREAD
705LIBPTH_PREFIX
706LTLIBPTH
707LIBPTH
708PRI_MACROS_BROKEN
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100709ALLOCA
Theodore Ts'o93613952014-07-03 23:44:13 -0400710HAVE_VISIBILITY
711CFLAG_VISIBILITY
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100712RANLIB
Theodore Ts'o93613952014-07-03 23:44:13 -0400713GLIBC2
714XGETTEXT_EXTRA_OPTIONS
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100715MSGMERGE
Theodore Ts'o93613952014-07-03 23:44:13 -0400716XGETTEXT_015
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100717XGETTEXT
Theodore Ts'o93613952014-07-03 23:44:13 -0400718GMSGFMT_015
719MSGFMT_015
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100720GMSGFMT
721MSGFMT
Theodore Ts'o93613952014-07-03 23:44:13 -0400722GETTEXT_MACRO_VERSION
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100723USE_NLS
Theodore Ts'o93613952014-07-03 23:44:13 -0400724SED
725MKDIR_P
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100726INSTALL_DATA
727INSTALL_SCRIPT
728INSTALL_PROGRAM
729SET_MAKE
730VERSION
731PACKAGE
732GETTEXT_PACKAGE
Theodore Ts'o749f0712016-05-29 20:48:54 -0400733TDB_MAN_COMMENT
734TDB_CMT
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100735UUIDD_CMT
736E2INITRD_MAN
737E2INITRD_PROG
738FSCK_MAN
739FSCK_PROG
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -0500740DEFRAG_CMT
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100741RESIZER_CMT
742IMAGER_CMT
743DEBUGFS_CMT
744BLKID_CMT
745DEPPROFILED_LIBBLKID
746PROFILED_LIBBLKID
747DEPSTATIC_LIBBLKID
748STATIC_LIBBLKID
749DEPLIBBLKID
750LIBBLKID
751UUID_CMT
752DEPPROFILED_LIBUUID
753PROFILED_LIBUUID
754DEPSTATIC_LIBUUID
755STATIC_LIBUUID
756DEPLIBUUID
757LIBUUID
Theodore Ts'o93613952014-07-03 23:44:13 -0400758PKG_CONFIG_LIBDIR
759PKG_CONFIG_PATH
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100760PKG_CONFIG
761TEST_IO_CMT
762PRIVATE_LIBS_CMT
763LDFLAG_DYNAMIC
764PROFILED_LIB_EXT
765STATIC_LIB_EXT
766LIB_EXT
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100767PROFILE_CMT
768BSDLIB_CMT
769ELF_CMT
Theodore Ts'oc13351f2009-07-02 00:11:17 -0400770Q
Theodore Ts'oc1986ec2012-06-13 15:29:13 -0400771ES
Theodore Ts'oc13351f2009-07-02 00:11:17 -0400772E
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400773LINK_BUILD_FLAGS
Theodore Ts'o183c73b2012-05-12 23:13:24 -0400774SYMLINK_RELATIVE
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400775LINK_INSTALL_FLAGS
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100776MAINTAINER_CMT
Theodore Ts'o93613952014-07-03 23:44:13 -0400777EGREP
778GREP
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100779CPP
Theodore Ts'o9b3018a2011-08-11 14:56:49 -0400780RDYNAMIC
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500781DLOPEN_LIB
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100782OBJEXT
783EXEEXT
784ac_ct_CC
785CPPFLAGS
786LDFLAGS
787CFLAGS
788CC
789host_os
790host_vendor
791host_cpu
792host
793build_os
794build_vendor
795build_cpu
796build
797E2FSPROGS_PKGVER
798E2FSPROGS_VERSION
799E2FSPROGS_DAY
800E2FSPROGS_MONTH
801E2FSPROGS_YEAR
802target_alias
803host_alias
804build_alias
805LIBS
806ECHO_T
807ECHO_N
808ECHO_C
809DEFS
810mandir
811localedir
812libdir
813psdir
814pdfdir
815dvidir
816htmldir
817infodir
818docdir
819oldincludedir
820includedir
Theodore Ts'o2ab53822016-03-15 01:10:29 -0400821runstatedir
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100822localstatedir
823sharedstatedir
824sysconfdir
825datadir
826datarootdir
827libexecdir
828sbindir
829bindir
830program_transform_name
831prefix
832exec_prefix
Theodore Ts'o57aa50d2009-11-26 10:38:04 -0500833PACKAGE_URL
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100834PACKAGE_BUGREPORT
835PACKAGE_STRING
836PACKAGE_VERSION
837PACKAGE_TARNAME
838PACKAGE_NAME
839PATH_SEPARATOR
840SHELL'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400841ac_subst_files='MCONFIG
842MAKEFILE_ELF
843MAKEFILE_BSDLIB
844MAKEFILE_PROFILE
Theodore Ts'oe1052142006-10-21 21:46:47 -0400845MAKEFILE_LIBRARY
Theodore Ts'o488c75a2008-06-07 08:55:21 -0400846ASM_TYPES_HEADER
847PUBLIC_CONFIG_HEADER'
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100848ac_user_opts='
849enable_option_checking
850with_diet_libc
851with_cc
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100852with_ccopts
853with_ldopts
854with_root_prefix
855enable_maintainer_mode
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400856enable_symlink_install
Theodore Ts'o91d11da2012-09-06 23:01:14 -0400857enable_relative_symlinks
Theodore Ts'o183c73b2012-05-12 23:13:24 -0400858enable_symlink_relative_symlinks
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -0400859enable_symlink_build
Theodore Ts'oc13351f2009-07-02 00:11:17 -0400860enable_verbose_makecmds
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100861enable_elf_shlibs
862enable_bsd_shlibs
863enable_profile
Theodore Ts'ofedfb272014-02-23 00:17:09 -0500864enable_gcov
Theodore Ts'ofd1677e2016-05-21 23:51:19 -0400865enable_hardening
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100866enable_jbd_debug
867enable_blkid_debug
868enable_testio_debug
869enable_libuuid
870enable_libblkid
Theodore Ts'o3df60142013-06-16 16:14:40 -0400871enable_backtrace
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100872enable_debugfs
873enable_imager
874enable_resizer
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -0500875enable_defrag
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100876enable_fsck
877enable_e2initrd_helper
878enable_tls
879enable_uuidd
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000880enable_mmp
Theodore Ts'o749f0712016-05-29 20:48:54 -0400881enable_tdb
Tony Breeds1625bf42012-07-30 14:44:12 -0400882enable_bmap_stats
883enable_bmap_stats_ops
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100884enable_nls
Theodore Ts'o93613952014-07-03 23:44:13 -0400885enable_threads
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100886with_gnu_ld
887enable_rpath
Theodore Ts'o93613952014-07-03 23:44:13 -0400888with_libpth_prefix
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100889with_libiconv_prefix
890with_included_gettext
891with_libintl_prefix
Darrick J. Wong81cbf1e2015-05-13 17:22:40 -0700892enable_fuse2fs
Theodore Ts'o55e00a22011-09-18 23:53:23 -0400893with_multiarch
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100894'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400895 ac_precious_vars='build_alias
896host_alias
897target_alias
898CC
899CFLAGS
900LDFLAGS
Theodore Ts'o29a5dee2007-07-04 16:28:47 -0400901LIBS
Theodore Ts'oe1052142006-10-21 21:46:47 -0400902CPPFLAGS
Theodore Ts'o14b596d2009-04-22 09:18:30 -0400903CPP
Theodore Ts'o93613952014-07-03 23:44:13 -0400904PKG_CONFIG
905PKG_CONFIG_PATH
906PKG_CONFIG_LIBDIR'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400907
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000908
909# Initialize some variables set by options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500910ac_init_help=
911ac_init_version=false
Scott James Remnant39fd3d42009-05-14 13:03:25 +0100912ac_unrecognized_opts=
913ac_unrecognized_sep=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000914# The variables have the same names as the options, with
915# dashes changed to underlines.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500916cache_file=/dev/null
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000917exec_prefix=NONE
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000918no_create=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000919no_recursion=
920prefix=NONE
921program_prefix=NONE
922program_suffix=NONE
923program_transform_name=s,x,x,
924silent=
925site=
926srcdir=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000927verbose=
928x_includes=NONE
929x_libraries=NONE
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500930
931# Installation directory options.
932# These are left unexpanded so users can "make install exec_prefix=/foo"
933# and all the variables that are supposed to be based on exec_prefix
934# by default will actually change.
935# Use braces instead of parens because sh, perl, etc. also accept them.
Theodore Ts'oe1052142006-10-21 21:46:47 -0400936# (The list follows the same order as the GNU Coding Standards.)
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000937bindir='${exec_prefix}/bin'
938sbindir='${exec_prefix}/sbin'
939libexecdir='${exec_prefix}/libexec'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400940datarootdir='${prefix}/share'
941datadir='${datarootdir}'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000942sysconfdir='${prefix}/etc'
943sharedstatedir='${prefix}/com'
944localstatedir='${prefix}/var'
Theodore Ts'o2ab53822016-03-15 01:10:29 -0400945runstatedir='${localstatedir}/run'
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000946includedir='${prefix}/include'
947oldincludedir='/usr/include'
Theodore Ts'oe1052142006-10-21 21:46:47 -0400948docdir='${datarootdir}/doc/${PACKAGE}'
949infodir='${datarootdir}/info'
950htmldir='${docdir}'
951dvidir='${docdir}'
952pdfdir='${docdir}'
953psdir='${docdir}'
954libdir='${exec_prefix}/lib'
955localedir='${datarootdir}/locale'
956mandir='${datarootdir}/man'
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000957
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000958ac_prev=
Theodore Ts'oe1052142006-10-21 21:46:47 -0400959ac_dashdash=
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000960for ac_option
961do
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000962 # If the previous option needs an argument, assign it.
963 if test -n "$ac_prev"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -0400964 eval $ac_prev=\$ac_option
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000965 ac_prev=
966 continue
967 fi
968
Theodore Ts'oe1052142006-10-21 21:46:47 -0400969 case $ac_option in
Tony Breedsd6a4bcb2012-06-26 11:42:15 +1000970 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
971 *=) ac_optarg= ;;
972 *) ac_optarg=yes ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -0400973 esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000974
975 # Accept the important Cygnus configure options, so we can diagnose typos.
976
Theodore Ts'oe1052142006-10-21 21:46:47 -0400977 case $ac_dashdash$ac_option in
978 --)
979 ac_dashdash=yes ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000980
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000981 -bindir | --bindir | --bindi | --bind | --bin | --bi)
982 ac_prev=bindir ;;
983 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500984 bindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000985
986 -build | --build | --buil | --bui | --bu)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500987 ac_prev=build_alias ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +0000988 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500989 build_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +0000990
991 -cache-file | --cache-file | --cache-fil | --cache-fi \
992 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
993 ac_prev=cache_file ;;
994 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
995 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -0500996 cache_file=$ac_optarg ;;
997
998 --config-cache | -C)
999 cache_file=config.cache ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001000
Theodore Ts'oe1052142006-10-21 21:46:47 -04001001 -datadir | --datadir | --datadi | --datad)
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001002 ac_prev=datadir ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001003 -datadir=* | --datadir=* | --datadi=* | --datad=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001004 datadir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001005
Theodore Ts'oe1052142006-10-21 21:46:47 -04001006 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1007 | --dataroo | --dataro | --datar)
1008 ac_prev=datarootdir ;;
1009 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1010 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1011 datarootdir=$ac_optarg ;;
1012
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001013 -disable-* | --disable-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001014 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001015 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001016 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001017 as_fn_error $? "invalid feature name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001018 ac_useropt_orig=$ac_useropt
1019 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1020 case $ac_user_opts in
1021 *"
1022"enable_$ac_useropt"
1023"*) ;;
1024 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1025 ac_unrecognized_sep=', ';;
1026 esac
1027 eval enable_$ac_useropt=no ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001028
1029 -docdir | --docdir | --docdi | --doc | --do)
1030 ac_prev=docdir ;;
1031 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1032 docdir=$ac_optarg ;;
1033
1034 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1035 ac_prev=dvidir ;;
1036 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1037 dvidir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001038
1039 -enable-* | --enable-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001040 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001041 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001042 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001043 as_fn_error $? "invalid feature name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001044 ac_useropt_orig=$ac_useropt
1045 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1046 case $ac_user_opts in
1047 *"
1048"enable_$ac_useropt"
1049"*) ;;
1050 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1051 ac_unrecognized_sep=', ';;
1052 esac
1053 eval enable_$ac_useropt=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001054
1055 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1056 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1057 | --exec | --exe | --ex)
1058 ac_prev=exec_prefix ;;
1059 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1060 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1061 | --exec=* | --exe=* | --ex=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001062 exec_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001063
1064 -gas | --gas | --ga | --g)
1065 # Obsolete; use --with-gas.
1066 with_gas=yes ;;
1067
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001068 -help | --help | --hel | --he | -h)
1069 ac_init_help=long ;;
1070 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1071 ac_init_help=recursive ;;
1072 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1073 ac_init_help=short ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001074
1075 -host | --host | --hos | --ho)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001076 ac_prev=host_alias ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001077 -host=* | --host=* | --hos=* | --ho=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001078 host_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001079
Theodore Ts'oe1052142006-10-21 21:46:47 -04001080 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1081 ac_prev=htmldir ;;
1082 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1083 | --ht=*)
1084 htmldir=$ac_optarg ;;
1085
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001086 -includedir | --includedir | --includedi | --included | --include \
1087 | --includ | --inclu | --incl | --inc)
1088 ac_prev=includedir ;;
1089 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1090 | --includ=* | --inclu=* | --incl=* | --inc=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001091 includedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001092
1093 -infodir | --infodir | --infodi | --infod | --info | --inf)
1094 ac_prev=infodir ;;
1095 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001096 infodir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001097
1098 -libdir | --libdir | --libdi | --libd)
1099 ac_prev=libdir ;;
1100 -libdir=* | --libdir=* | --libdi=* | --libd=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001101 libdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001102
1103 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1104 | --libexe | --libex | --libe)
1105 ac_prev=libexecdir ;;
1106 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1107 | --libexe=* | --libex=* | --libe=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001108 libexecdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001109
Theodore Ts'oe1052142006-10-21 21:46:47 -04001110 -localedir | --localedir | --localedi | --localed | --locale)
1111 ac_prev=localedir ;;
1112 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1113 localedir=$ac_optarg ;;
1114
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001115 -localstatedir | --localstatedir | --localstatedi | --localstated \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001116 | --localstate | --localstat | --localsta | --localst | --locals)
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001117 ac_prev=localstatedir ;;
1118 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
Theodore Ts'oe1052142006-10-21 21:46:47 -04001119 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001120 localstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001121
1122 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1123 ac_prev=mandir ;;
1124 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001125 mandir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001126
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001127 -nfp | --nfp | --nf)
1128 # Obsolete; use --without-fp.
1129 with_fp=no ;;
1130
1131 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001132 | --no-cr | --no-c | -n)
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001133 no_create=yes ;;
1134
1135 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1136 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1137 no_recursion=yes ;;
1138
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001139 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1140 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1141 | --oldin | --oldi | --old | --ol | --o)
1142 ac_prev=oldincludedir ;;
1143 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1144 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1145 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001146 oldincludedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001147
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001148 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1149 ac_prev=prefix ;;
1150 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001151 prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001152
1153 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1154 | --program-pre | --program-pr | --program-p)
1155 ac_prev=program_prefix ;;
1156 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1157 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001158 program_prefix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001159
1160 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1161 | --program-suf | --program-su | --program-s)
1162 ac_prev=program_suffix ;;
1163 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1164 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001165 program_suffix=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001166
1167 -program-transform-name | --program-transform-name \
1168 | --program-transform-nam | --program-transform-na \
1169 | --program-transform-n | --program-transform- \
1170 | --program-transform | --program-transfor \
1171 | --program-transfo | --program-transf \
1172 | --program-trans | --program-tran \
1173 | --progr-tra | --program-tr | --program-t)
1174 ac_prev=program_transform_name ;;
1175 -program-transform-name=* | --program-transform-name=* \
1176 | --program-transform-nam=* | --program-transform-na=* \
1177 | --program-transform-n=* | --program-transform-=* \
1178 | --program-transform=* | --program-transfor=* \
1179 | --program-transfo=* | --program-transf=* \
1180 | --program-trans=* | --program-tran=* \
1181 | --progr-tra=* | --program-tr=* | --program-t=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001182 program_transform_name=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001183
Theodore Ts'oe1052142006-10-21 21:46:47 -04001184 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1185 ac_prev=pdfdir ;;
1186 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1187 pdfdir=$ac_optarg ;;
1188
1189 -psdir | --psdir | --psdi | --psd | --ps)
1190 ac_prev=psdir ;;
1191 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1192 psdir=$ac_optarg ;;
1193
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001194 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1195 | -silent | --silent | --silen | --sile | --sil)
1196 silent=yes ;;
1197
Theodore Ts'o2ab53822016-03-15 01:10:29 -04001198 -runstatedir | --runstatedir | --runstatedi | --runstated \
1199 | --runstate | --runstat | --runsta | --runst | --runs \
1200 | --run | --ru | --r)
1201 ac_prev=runstatedir ;;
1202 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1203 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1204 | --run=* | --ru=* | --r=*)
1205 runstatedir=$ac_optarg ;;
1206
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001207 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1208 ac_prev=sbindir ;;
1209 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1210 | --sbi=* | --sb=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001211 sbindir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001212
1213 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1214 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1215 | --sharedst | --shareds | --shared | --share | --shar \
1216 | --sha | --sh)
1217 ac_prev=sharedstatedir ;;
1218 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1219 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1220 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1221 | --sha=* | --sh=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001222 sharedstatedir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001223
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001224 -site | --site | --sit)
1225 ac_prev=site ;;
1226 -site=* | --site=* | --sit=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001227 site=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001228
1229 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1230 ac_prev=srcdir ;;
1231 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001232 srcdir=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001233
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001234 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1235 | --syscon | --sysco | --sysc | --sys | --sy)
1236 ac_prev=sysconfdir ;;
1237 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1238 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001239 sysconfdir=$ac_optarg ;;
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001240
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001241 -target | --target | --targe | --targ | --tar | --ta | --t)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001242 ac_prev=target_alias ;;
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 target_alias=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001245
1246 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1247 verbose=yes ;;
1248
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001249 -version | --version | --versio | --versi | --vers | -V)
1250 ac_init_version=: ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001251
1252 -with-* | --with-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001253 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001254 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001255 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001256 as_fn_error $? "invalid package name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001257 ac_useropt_orig=$ac_useropt
1258 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1259 case $ac_user_opts in
1260 *"
1261"with_$ac_useropt"
1262"*) ;;
1263 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1264 ac_unrecognized_sep=', ';;
1265 esac
1266 eval with_$ac_useropt=\$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001267
1268 -without-* | --without-*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001269 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001270 # Reject names that are not valid shell variable names.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001271 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001272 as_fn_error $? "invalid package name: $ac_useropt"
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001273 ac_useropt_orig=$ac_useropt
1274 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1275 case $ac_user_opts in
1276 *"
1277"with_$ac_useropt"
1278"*) ;;
1279 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1280 ac_unrecognized_sep=', ';;
1281 esac
1282 eval with_$ac_useropt=no ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001283
1284 --x)
1285 # Obsolete; use --with-x.
1286 with_x=yes ;;
1287
1288 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1289 | --x-incl | --x-inc | --x-in | --x-i)
1290 ac_prev=x_includes ;;
1291 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1292 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001293 x_includes=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001294
1295 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1296 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1297 ac_prev=x_libraries ;;
1298 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1299 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001300 x_libraries=$ac_optarg ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001301
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001302 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1303Try \`$0 --help' for more information"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001304 ;;
1305
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001306 *=*)
1307 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1308 # Reject names that are not valid shell variable names.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001309 case $ac_envvar in #(
1310 '' | [0-9]* | *[!_$as_cr_alnum]* )
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001311 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001312 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001313 eval $ac_envvar=\$ac_optarg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001314 export $ac_envvar ;;
1315
Theodore Ts'o21c84b71997-04-29 16:15:03 +00001316 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001317 # FIXME: should be removed in autoconf 3.0.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001318 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001319 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001320 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001321 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001322 ;;
1323
1324 esac
1325done
1326
1327if test -n "$ac_prev"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001328 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001329 as_fn_error $? "missing argument to $ac_option"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001330fi
1331
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001332if test -n "$ac_unrecognized_opts"; then
1333 case $enable_option_checking in
1334 no) ;;
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001335 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001336 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1337 esac
1338fi
1339
1340# Check all directory arguments for consistency.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001341for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1342 datadir sysconfdir sharedstatedir localstatedir includedir \
1343 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
Theodore Ts'o2ab53822016-03-15 01:10:29 -04001344 libdir localedir mandir runstatedir
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001345do
Theodore Ts'oe1052142006-10-21 21:46:47 -04001346 eval ac_val=\$$ac_var
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001347 # Remove trailing slashes.
1348 case $ac_val in
1349 */ )
1350 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1351 eval $ac_var=\$ac_val;;
1352 esac
1353 # Be sure to have absolute directory names.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001354 case $ac_val in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001355 [\\/$]* | ?:[\\/]* ) continue;;
1356 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001357 esac
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001358 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001359done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001360
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001361# There might be people who depend on the old broken behavior: `$host'
1362# used to hold the argument of --host etc.
1363# FIXME: To remove some day.
1364build=$build_alias
1365host=$host_alias
1366target=$target_alias
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001367
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001368# FIXME: To remove some day.
1369if test "x$host_alias" != x; then
1370 if test "x$build_alias" = x; then
1371 cross_compiling=maybe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001372 elif test "x$build_alias" != "x$host_alias"; then
1373 cross_compiling=yes
1374 fi
1375fi
1376
1377ac_tool_prefix=
1378test -n "$host_alias" && ac_tool_prefix=$host_alias-
1379
1380test "$silent" = yes && exec 6>/dev/null
1381
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001382
Theodore Ts'oe1052142006-10-21 21:46:47 -04001383ac_pwd=`pwd` && test -n "$ac_pwd" &&
1384ac_ls_di=`ls -di .` &&
1385ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001386 as_fn_error $? "working directory cannot be determined"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001387test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001388 as_fn_error $? "pwd does not report name of working directory"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001389
1390
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001391# Find the source files, if location was not specified.
1392if test -z "$srcdir"; then
1393 ac_srcdir_defaulted=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04001394 # Try the directory containing this script, then the parent directory.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001395 ac_confdir=`$as_dirname -- "$as_myself" ||
1396$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1397 X"$as_myself" : 'X\(//\)[^/]' \| \
1398 X"$as_myself" : 'X\(//\)$' \| \
1399 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1400$as_echo X"$as_myself" |
Theodore Ts'oe1052142006-10-21 21:46:47 -04001401 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1402 s//\1/
1403 q
1404 }
1405 /^X\(\/\/\)[^/].*/{
1406 s//\1/
1407 q
1408 }
1409 /^X\(\/\/\)$/{
1410 s//\1/
1411 q
1412 }
1413 /^X\(\/\).*/{
1414 s//\1/
1415 q
1416 }
1417 s/.*/./; q'`
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001418 srcdir=$ac_confdir
Theodore Ts'oe1052142006-10-21 21:46:47 -04001419 if test ! -r "$srcdir/$ac_unique_file"; then
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001420 srcdir=..
1421 fi
1422else
1423 ac_srcdir_defaulted=no
1424fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001425if test ! -r "$srcdir/$ac_unique_file"; then
1426 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001427 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001428fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04001429ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1430ac_abs_confdir=`(
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001431 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
Theodore Ts'oe1052142006-10-21 21:46:47 -04001432 pwd)`
1433# When building in place, set srcdir=.
1434if test "$ac_abs_confdir" = "$ac_pwd"; then
1435 srcdir=.
1436fi
1437# Remove unnecessary trailing slashes from srcdir.
1438# Double slashes in file names in object file debugging info
1439# mess up M-x gdb in Emacs.
1440case $srcdir in
1441*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1442esac
1443for ac_var in $ac_precious_vars; do
1444 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1445 eval ac_env_${ac_var}_value=\$${ac_var}
1446 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1447 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1448done
Theodore Ts'o50e1e101997-04-26 13:58:21 +00001449
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001450#
1451# Report the --help message.
1452#
1453if test "$ac_init_help" = "long"; then
1454 # Omit some internal or obsolete options to make the list less imposing.
1455 # This message is too long to be a string in the A/UX 3.1 sh.
1456 cat <<_ACEOF
1457\`configure' configures this package to adapt to many kinds of systems.
1458
1459Usage: $0 [OPTION]... [VAR=VALUE]...
1460
1461To assign environment variables (e.g., CC, CFLAGS...), specify them as
1462VAR=VALUE. See below for descriptions of some of the useful variables.
1463
1464Defaults for the options are specified in brackets.
1465
1466Configuration:
1467 -h, --help display this help and exit
1468 --help=short display options specific to this package
1469 --help=recursive display the short help of all the included packages
1470 -V, --version display version information and exit
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001471 -q, --quiet, --silent do not print \`checking ...' messages
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001472 --cache-file=FILE cache test results in FILE [disabled]
1473 -C, --config-cache alias for \`--cache-file=config.cache'
1474 -n, --no-create do not create output files
1475 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1476
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001477Installation directories:
1478 --prefix=PREFIX install architecture-independent files in PREFIX
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001479 [$ac_default_prefix]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001480 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001481 [PREFIX]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001482
1483By default, \`make install' will install all the files in
1484\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1485an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1486for instance \`--prefix=\$HOME'.
1487
1488For better control, use the options below.
1489
1490Fine tuning of the installation directories:
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001491 --bindir=DIR user executables [EPREFIX/bin]
1492 --sbindir=DIR system admin executables [EPREFIX/sbin]
1493 --libexecdir=DIR program executables [EPREFIX/libexec]
1494 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1495 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1496 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
Theodore Ts'o2ab53822016-03-15 01:10:29 -04001497 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001498 --libdir=DIR object code libraries [EPREFIX/lib]
1499 --includedir=DIR C header files [PREFIX/include]
1500 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1501 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1502 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1503 --infodir=DIR info documentation [DATAROOTDIR/info]
1504 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1505 --mandir=DIR man documentation [DATAROOTDIR/man]
1506 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1507 --htmldir=DIR html documentation [DOCDIR]
1508 --dvidir=DIR dvi documentation [DOCDIR]
1509 --pdfdir=DIR pdf documentation [DOCDIR]
1510 --psdir=DIR ps documentation [DOCDIR]
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001511_ACEOF
1512
1513 cat <<\_ACEOF
1514
1515System types:
1516 --build=BUILD configure for building on BUILD [guessed]
1517 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1518_ACEOF
1519fi
1520
1521if test -n "$ac_init_help"; then
1522
1523 cat <<\_ACEOF
1524
1525Optional Features:
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001526 --disable-option-checking ignore unrecognized --enable/--with options
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001527 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1528 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
Theodore Ts'o98919bd2005-02-04 10:43:58 -05001529 --enable-maintainer-mode enable makefile rules useful for maintainers
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04001530 --enable-symlink-install use symlinks when installing instead of hard links
Theodore Ts'o183c73b2012-05-12 23:13:24 -04001531 --enable-relative-symlinks use relative symlinks when installing
Theodore Ts'o91d11da2012-09-06 23:01:14 -04001532
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04001533 --enable-symlink-build use symlinks while building instead of hard links
1534 --enable-verbose-makecmds enable verbose make command output
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001535 --enable-elf-shlibs select ELF shared libraries
1536 --enable-bsd-shlibs select BSD shared libraries
1537 --enable-profile build profiling libraries
Theodore Ts'ofedfb272014-02-23 00:17:09 -05001538 --enable-gcov build for coverage testing using gcov
Theodore Ts'ofd1677e2016-05-21 23:51:19 -04001539 --enable-hardening build for coverage testing using gcov
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001540 --enable-jbd-debug enable journal debugging
1541 --enable-blkid-debug enable blkid debugging
Theodore Ts'oaf773652008-09-01 11:27:27 -04001542 --disable-testio-debug disable the use of the test I/O manager for debugging
Theodore Ts'of5dffb82015-06-20 14:20:14 -04001543 --enable-libuuid build and use private uuid library
1544 --enable-libblkid build and use private blkid library
Theodore Ts'o3df60142013-06-16 16:14:40 -04001545 --disable-backtrace disable use backtrace
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001546 --disable-debugfs disable support of debugfs program
1547 --disable-imager disable support of e2image program
1548 --disable-resizer disable support of e2resize program
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05001549 --disable-defrag disable support of e4defrag program
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001550 --enable-fsck build fsck wrapper program
1551 --enable-e2initrd-helper build e2initrd-helper program
Theodore Ts'o32493942007-12-31 10:45:01 -05001552 --disable-tls disable use of thread local support
Theodore Ts'o5610f992007-12-31 11:16:56 -05001553 --disable-uuidd disable building the uuid daemon
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001554 --disable-mmp disable support mmp, Multi Mount Protection
Theodore Ts'o749f0712016-05-29 20:48:54 -04001555 --disable-tdb disable tdb support
Tony Breeds1625bf42012-07-30 14:44:12 -04001556 --disable-bmap-stats disable collection of bitmap stats.
1557 --enable-bmap-stats-ops enable collection of additional bitmap stats
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001558 --disable-nls do not use Native Language Support
Theodore Ts'o93613952014-07-03 23:44:13 -04001559 --enable-threads={posix|solaris|pth|windows}
1560 specify multithreading API
1561 --disable-threads build without multithread safety
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001562 --disable-rpath do not hardcode runtime library paths
Theodore Ts'of5dffb82015-06-20 14:20:14 -04001563 --disable-fuse2fs do not build fuse2fs
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001564
1565Optional Packages:
1566 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1567 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
Theodore Ts'o32493942007-12-31 10:45:01 -05001568 --with-diet-libc use diet libc
Theodore Ts'o0b5b9f92009-09-06 21:28:47 -04001569 --with-cc no longer supported, use CC= instead
1570 --with-ccopts no longer supported, use CFLAGS= instead
1571 --with-ldopts no longer supported, use LDFLAGS= instead
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001572 --with-root-prefix=PREFIX override prefix variable for files to be placed in the root
Theodore Ts'o93613952014-07-03 23:44:13 -04001573 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1574 --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib
1575 --without-libpth-prefix don't search for libpth in includedir and libdir
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001576 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1577 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1578 --with-included-gettext use the GNU gettext library included here
1579 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1580 --without-libintl-prefix don't search for libintl in includedir and libdir
Theodore Ts'o55e00a22011-09-18 23:53:23 -04001581 --with-multiarch=ARCH specify the multiarch triplet
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001582
1583Some influential environment variables:
1584 CC C compiler command
1585 CFLAGS C compiler flags
1586 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1587 nonstandard directory <lib dir>
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04001588 LIBS libraries to pass to the linker, e.g. -l<library>
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001589 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
Theodore Ts'oe1052142006-10-21 21:46:47 -04001590 you have headers in a nonstandard directory <include dir>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001591 CPP C preprocessor
Theodore Ts'o14b596d2009-04-22 09:18:30 -04001592 PKG_CONFIG path to pkg-config utility
Theodore Ts'o93613952014-07-03 23:44:13 -04001593 PKG_CONFIG_PATH
1594 directories to add to pkg-config's search path
1595 PKG_CONFIG_LIBDIR
1596 path overriding pkg-config's built-in search path
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001597
1598Use these variables to override the choices made by `configure' or to help
1599it to find libraries and programs with nonstandard names/locations.
1600
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001601Report bugs to the package provider.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001602_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001603ac_status=$?
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001604fi
1605
1606if test "$ac_init_help" = "recursive"; then
1607 # If there are subdirs, report their specific --help.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001608 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001609 test -d "$ac_dir" ||
1610 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1611 continue
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001612 ac_builddir=.
1613
Theodore Ts'oe1052142006-10-21 21:46:47 -04001614case "$ac_dir" in
1615.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1616*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001617 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001618 # A ".." for each directory in $ac_dir_suffix.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001619 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -04001620 case $ac_top_builddir_sub in
1621 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1622 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1623 esac ;;
1624esac
1625ac_abs_top_builddir=$ac_pwd
1626ac_abs_builddir=$ac_pwd$ac_dir_suffix
1627# for backward compatibility:
1628ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001629
1630case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -04001631 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001632 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -04001633 ac_top_srcdir=$ac_top_builddir_sub
1634 ac_abs_top_srcdir=$ac_pwd ;;
1635 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001636 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -04001637 ac_top_srcdir=$srcdir
1638 ac_abs_top_srcdir=$srcdir ;;
1639 *) # Relative name.
1640 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1641 ac_top_srcdir=$ac_top_build_prefix$srcdir
1642 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001643esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04001644ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001645
Theodore Ts'oe1052142006-10-21 21:46:47 -04001646 cd "$ac_dir" || { ac_status=$?; continue; }
1647 # Check for guested configure.
1648 if test -f "$ac_srcdir/configure.gnu"; then
1649 echo &&
1650 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1651 elif test -f "$ac_srcdir/configure"; then
1652 echo &&
1653 $SHELL "$ac_srcdir/configure" --help=recursive
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001654 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01001655 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
Theodore Ts'oe1052142006-10-21 21:46:47 -04001656 fi || ac_status=$?
1657 cd "$ac_pwd" || { ac_status=$?; break; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001658 done
1659fi
1660
Theodore Ts'oe1052142006-10-21 21:46:47 -04001661test -n "$ac_init_help" && exit $ac_status
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001662if $ac_init_version; then
1663 cat <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001664configure
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001665generated by GNU Autoconf 2.69
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001666
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001667Copyright (C) 2012 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001668This configure script is free software; the Free Software Foundation
1669gives unlimited permission to copy, distribute and modify it.
1670_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04001671 exit
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05001672fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001673
1674## ------------------------ ##
1675## Autoconf initialization. ##
1676## ------------------------ ##
1677
1678# ac_fn_c_try_compile LINENO
1679# --------------------------
1680# Try to compile conftest.$ac_ext, and return whether this succeeded.
1681ac_fn_c_try_compile ()
1682{
1683 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1684 rm -f conftest.$ac_objext
1685 if { { ac_try="$ac_compile"
1686case "(($ac_try" in
1687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1688 *) ac_try_echo=$ac_try;;
1689esac
1690eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1691$as_echo "$ac_try_echo"; } >&5
1692 (eval "$ac_compile") 2>conftest.err
1693 ac_status=$?
1694 if test -s conftest.err; then
1695 grep -v '^ *+' conftest.err >conftest.er1
1696 cat conftest.er1 >&5
1697 mv -f conftest.er1 conftest.err
1698 fi
1699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1700 test $ac_status = 0; } && {
1701 test -z "$ac_c_werror_flag" ||
1702 test ! -s conftest.err
1703 } && test -s conftest.$ac_objext; then :
1704 ac_retval=0
1705else
1706 $as_echo "$as_me: failed program was:" >&5
1707sed 's/^/| /' conftest.$ac_ext >&5
1708
1709 ac_retval=1
1710fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001711 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001712 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001713
1714} # ac_fn_c_try_compile
1715
1716# ac_fn_c_try_link LINENO
1717# -----------------------
1718# Try to link conftest.$ac_ext, and return whether this succeeded.
1719ac_fn_c_try_link ()
1720{
1721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722 rm -f conftest.$ac_objext conftest$ac_exeext
1723 if { { ac_try="$ac_link"
1724case "(($ac_try" in
1725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1726 *) ac_try_echo=$ac_try;;
1727esac
1728eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1729$as_echo "$ac_try_echo"; } >&5
1730 (eval "$ac_link") 2>conftest.err
1731 ac_status=$?
1732 if test -s conftest.err; then
1733 grep -v '^ *+' conftest.err >conftest.er1
1734 cat conftest.er1 >&5
1735 mv -f conftest.er1 conftest.err
1736 fi
1737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1738 test $ac_status = 0; } && {
1739 test -z "$ac_c_werror_flag" ||
1740 test ! -s conftest.err
1741 } && test -s conftest$ac_exeext && {
1742 test "$cross_compiling" = yes ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001743 test -x conftest$ac_exeext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001744 }; then :
1745 ac_retval=0
1746else
1747 $as_echo "$as_me: failed program was:" >&5
1748sed 's/^/| /' conftest.$ac_ext >&5
1749
1750 ac_retval=1
1751fi
1752 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1753 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1754 # interfere with the next link command; also delete a directory that is
1755 # left behind by Apple's compiler. We do this before executing the actions.
1756 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001757 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001758 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001759
1760} # ac_fn_c_try_link
1761
1762# ac_fn_c_try_cpp LINENO
1763# ----------------------
1764# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1765ac_fn_c_try_cpp ()
1766{
1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1768 if { { ac_try="$ac_cpp conftest.$ac_ext"
1769case "(($ac_try" in
1770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1771 *) ac_try_echo=$ac_try;;
1772esac
1773eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1774$as_echo "$ac_try_echo"; } >&5
1775 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1776 ac_status=$?
1777 if test -s conftest.err; then
1778 grep -v '^ *+' conftest.err >conftest.er1
1779 cat conftest.er1 >&5
1780 mv -f conftest.er1 conftest.err
1781 fi
1782 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001783 test $ac_status = 0; } > conftest.i && {
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001784 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1785 test ! -s conftest.err
1786 }; then :
1787 ac_retval=0
1788else
1789 $as_echo "$as_me: failed program was:" >&5
1790sed 's/^/| /' conftest.$ac_ext >&5
1791
1792 ac_retval=1
1793fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001794 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o61ef2472010-08-01 22:30:33 -04001795 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001796
1797} # ac_fn_c_try_cpp
1798
1799# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1800# -------------------------------------------------------
1801# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1802# the include files in INCLUDES and setting the cache variable VAR
1803# accordingly.
1804ac_fn_c_check_header_mongrel ()
1805{
1806 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001807 if eval \${$3+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1809$as_echo_n "checking for $2... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001810if eval \${$3+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001811 $as_echo_n "(cached) " >&6
1812fi
1813eval ac_res=\$$3
1814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1815$as_echo "$ac_res" >&6; }
1816else
1817 # Is the header compilable?
1818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1819$as_echo_n "checking $2 usability... " >&6; }
1820cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1821/* end confdefs.h. */
1822$4
1823#include <$2>
1824_ACEOF
1825if ac_fn_c_try_compile "$LINENO"; then :
1826 ac_header_compiler=yes
1827else
1828 ac_header_compiler=no
1829fi
1830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1832$as_echo "$ac_header_compiler" >&6; }
1833
1834# Is the header present?
1835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1836$as_echo_n "checking $2 presence... " >&6; }
1837cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1838/* end confdefs.h. */
1839#include <$2>
1840_ACEOF
1841if ac_fn_c_try_cpp "$LINENO"; then :
1842 ac_header_preproc=yes
1843else
1844 ac_header_preproc=no
1845fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001846rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1848$as_echo "$ac_header_preproc" >&6; }
1849
1850# So? What about this header?
1851case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1852 yes:no: )
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1854$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1856$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1857 ;;
1858 no:yes:* )
1859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1860$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1862$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1864$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1866$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1868$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1869 ;;
1870esac
1871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1872$as_echo_n "checking for $2... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001873if eval \${$3+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001874 $as_echo_n "(cached) " >&6
1875else
1876 eval "$3=\$ac_header_compiler"
1877fi
1878eval ac_res=\$$3
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1880$as_echo "$ac_res" >&6; }
1881fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10001882 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05001883
1884} # ac_fn_c_check_header_mongrel
1885
Theodore Ts'o93613952014-07-03 23:44:13 -04001886# ac_fn_c_try_run LINENO
1887# ----------------------
1888# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1889# that executables *can* be run.
1890ac_fn_c_try_run ()
1891{
1892 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1893 if { { ac_try="$ac_link"
1894case "(($ac_try" in
1895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1896 *) ac_try_echo=$ac_try;;
1897esac
1898eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1899$as_echo "$ac_try_echo"; } >&5
1900 (eval "$ac_link") 2>&5
1901 ac_status=$?
1902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1903 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1904 { { case "(($ac_try" in
1905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1906 *) ac_try_echo=$ac_try;;
1907esac
1908eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1909$as_echo "$ac_try_echo"; } >&5
1910 (eval "$ac_try") 2>&5
1911 ac_status=$?
1912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1913 test $ac_status = 0; }; }; then :
1914 ac_retval=0
1915else
1916 $as_echo "$as_me: program exited with status $ac_status" >&5
1917 $as_echo "$as_me: failed program was:" >&5
1918sed 's/^/| /' conftest.$ac_ext >&5
1919
1920 ac_retval=$ac_status
1921fi
1922 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1923 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1924 as_fn_set_status $ac_retval
1925
1926} # ac_fn_c_try_run
1927
1928# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1929# -------------------------------------------------------
1930# Tests whether HEADER exists and can be compiled using the include files in
1931# INCLUDES, setting the cache variable VAR accordingly.
1932ac_fn_c_check_header_compile ()
1933{
1934 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1936$as_echo_n "checking for $2... " >&6; }
1937if eval \${$3+:} false; then :
1938 $as_echo_n "(cached) " >&6
1939else
1940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1941/* end confdefs.h. */
1942$4
1943#include <$2>
1944_ACEOF
1945if ac_fn_c_try_compile "$LINENO"; then :
1946 eval "$3=yes"
1947else
1948 eval "$3=no"
1949fi
1950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1951fi
1952eval ac_res=\$$3
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1954$as_echo "$ac_res" >&6; }
1955 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1956
1957} # ac_fn_c_check_header_compile
1958
1959# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1960# -------------------------------------------
1961# Tests whether TYPE exists after having included INCLUDES, setting cache
1962# variable VAR accordingly.
1963ac_fn_c_check_type ()
1964{
1965 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1967$as_echo_n "checking for $2... " >&6; }
1968if eval \${$3+:} false; then :
1969 $as_echo_n "(cached) " >&6
1970else
1971 eval "$3=no"
1972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1973/* end confdefs.h. */
1974$4
1975int
1976main ()
1977{
1978if (sizeof ($2))
1979 return 0;
1980 ;
1981 return 0;
1982}
1983_ACEOF
1984if ac_fn_c_try_compile "$LINENO"; then :
1985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1986/* end confdefs.h. */
1987$4
1988int
1989main ()
1990{
1991if (sizeof (($2)))
1992 return 0;
1993 ;
1994 return 0;
1995}
1996_ACEOF
1997if ac_fn_c_try_compile "$LINENO"; then :
1998
1999else
2000 eval "$3=yes"
2001fi
2002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2003fi
2004rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2005fi
2006eval ac_res=\$$3
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2008$as_echo "$ac_res" >&6; }
2009 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2010
2011} # ac_fn_c_check_type
2012
2013# ac_fn_c_check_func LINENO FUNC VAR
2014# ----------------------------------
2015# Tests whether FUNC exists, setting the cache variable VAR accordingly
2016ac_fn_c_check_func ()
2017{
2018 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2020$as_echo_n "checking for $2... " >&6; }
2021if eval \${$3+:} false; then :
2022 $as_echo_n "(cached) " >&6
2023else
2024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2025/* end confdefs.h. */
2026/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2027 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2028#define $2 innocuous_$2
2029
2030/* System header to define __stub macros and hopefully few prototypes,
2031 which can conflict with char $2 (); below.
2032 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2033 <limits.h> exists even on freestanding compilers. */
2034
2035#ifdef __STDC__
2036# include <limits.h>
2037#else
2038# include <assert.h>
2039#endif
2040
2041#undef $2
2042
2043/* Override any GCC internal prototype to avoid an error.
2044 Use char because int might match the return type of a GCC
2045 builtin and then its argument prototype would still apply. */
2046#ifdef __cplusplus
2047extern "C"
2048#endif
2049char $2 ();
2050/* The GNU C library defines this for functions which it implements
2051 to always fail with ENOSYS. Some functions are actually named
2052 something starting with __ and the normal name is an alias. */
2053#if defined __stub_$2 || defined __stub___$2
2054choke me
2055#endif
2056
2057int
2058main ()
2059{
2060return $2 ();
2061 ;
2062 return 0;
2063}
2064_ACEOF
2065if ac_fn_c_try_link "$LINENO"; then :
2066 eval "$3=yes"
2067else
2068 eval "$3=no"
2069fi
2070rm -f core conftest.err conftest.$ac_objext \
2071 conftest$ac_exeext conftest.$ac_ext
2072fi
2073eval ac_res=\$$3
2074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2075$as_echo "$ac_res" >&6; }
2076 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2077
2078} # ac_fn_c_check_func
2079
2080# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2081# ---------------------------------------------
2082# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2083# accordingly.
2084ac_fn_c_check_decl ()
2085{
2086 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2087 as_decl_name=`echo $2|sed 's/ *(.*//'`
2088 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2090$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2091if eval \${$3+:} false; then :
2092 $as_echo_n "(cached) " >&6
2093else
2094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2095/* end confdefs.h. */
2096$4
2097int
2098main ()
2099{
2100#ifndef $as_decl_name
2101#ifdef __cplusplus
2102 (void) $as_decl_use;
2103#else
2104 (void) $as_decl_name;
2105#endif
2106#endif
2107
2108 ;
2109 return 0;
2110}
2111_ACEOF
2112if ac_fn_c_try_compile "$LINENO"; then :
2113 eval "$3=yes"
2114else
2115 eval "$3=no"
2116fi
2117rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2118fi
2119eval ac_res=\$$3
2120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2121$as_echo "$ac_res" >&6; }
2122 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2123
2124} # ac_fn_c_check_decl
2125
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002126# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2127# --------------------------------------------
2128# Tries to find the compile-time value of EXPR in a program that includes
2129# INCLUDES, setting VAR accordingly. Returns whether the value could be
2130# computed
2131ac_fn_c_compute_int ()
2132{
2133 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2134 if test "$cross_compiling" = yes; then
2135 # Depending upon the size, compute the lo and hi bounds.
2136cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2137/* end confdefs.h. */
2138$4
2139int
2140main ()
2141{
2142static int test_array [1 - 2 * !(($2) >= 0)];
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002143test_array [0] = 0;
2144return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002145
2146 ;
2147 return 0;
2148}
2149_ACEOF
2150if ac_fn_c_try_compile "$LINENO"; then :
2151 ac_lo=0 ac_mid=0
2152 while :; do
2153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2154/* end confdefs.h. */
2155$4
2156int
2157main ()
2158{
2159static int test_array [1 - 2 * !(($2) <= $ac_mid)];
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002160test_array [0] = 0;
2161return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002162
2163 ;
2164 return 0;
2165}
2166_ACEOF
2167if ac_fn_c_try_compile "$LINENO"; then :
2168 ac_hi=$ac_mid; break
2169else
2170 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2171 if test $ac_lo -le $ac_mid; then
2172 ac_lo= ac_hi=
2173 break
2174 fi
2175 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2176fi
2177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2178 done
2179else
2180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2181/* end confdefs.h. */
2182$4
2183int
2184main ()
2185{
2186static int test_array [1 - 2 * !(($2) < 0)];
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002187test_array [0] = 0;
2188return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002189
2190 ;
2191 return 0;
2192}
2193_ACEOF
2194if ac_fn_c_try_compile "$LINENO"; then :
2195 ac_hi=-1 ac_mid=-1
2196 while :; do
2197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2198/* end confdefs.h. */
2199$4
2200int
2201main ()
2202{
2203static int test_array [1 - 2 * !(($2) >= $ac_mid)];
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002204test_array [0] = 0;
2205return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002206
2207 ;
2208 return 0;
2209}
2210_ACEOF
2211if ac_fn_c_try_compile "$LINENO"; then :
2212 ac_lo=$ac_mid; break
2213else
2214 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2215 if test $ac_mid -le $ac_hi; then
2216 ac_lo= ac_hi=
2217 break
2218 fi
2219 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2220fi
2221rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2222 done
2223else
2224 ac_lo= ac_hi=
2225fi
2226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2227fi
2228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2229# Binary search between lo and hi bounds.
2230while test "x$ac_lo" != "x$ac_hi"; do
2231 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2233/* end confdefs.h. */
2234$4
2235int
2236main ()
2237{
2238static int test_array [1 - 2 * !(($2) <= $ac_mid)];
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002239test_array [0] = 0;
2240return test_array [0];
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002241
2242 ;
2243 return 0;
2244}
2245_ACEOF
2246if ac_fn_c_try_compile "$LINENO"; then :
2247 ac_hi=$ac_mid
2248else
2249 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2250fi
2251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2252done
2253case $ac_lo in #((
2254?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2255'') ac_retval=1 ;;
2256esac
2257 else
2258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2259/* end confdefs.h. */
2260$4
2261static long int longval () { return $2; }
2262static unsigned long int ulongval () { return $2; }
2263#include <stdio.h>
2264#include <stdlib.h>
2265int
2266main ()
2267{
2268
2269 FILE *f = fopen ("conftest.val", "w");
2270 if (! f)
2271 return 1;
2272 if (($2) < 0)
2273 {
2274 long int i = longval ();
2275 if (i != ($2))
2276 return 1;
2277 fprintf (f, "%ld", i);
2278 }
2279 else
2280 {
2281 unsigned long int i = ulongval ();
2282 if (i != ($2))
2283 return 1;
2284 fprintf (f, "%lu", i);
2285 }
2286 /* Do not output a trailing newline, as this causes \r\n confusion
2287 on some platforms. */
2288 return ferror (f) || fclose (f) != 0;
2289
2290 ;
2291 return 0;
2292}
2293_ACEOF
2294if ac_fn_c_try_run "$LINENO"; then :
2295 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2296else
2297 ac_retval=1
2298fi
2299rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2300 conftest.$ac_objext conftest.beam conftest.$ac_ext
2301rm -f conftest.val
2302
2303 fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002304 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002305 as_fn_set_status $ac_retval
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002306
2307} # ac_fn_c_compute_int
2308
2309# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2310# ----------------------------------------------------
2311# Tries to find if the field MEMBER exists in type AGGR, after including
2312# INCLUDES, setting cache variable VAR accordingly.
2313ac_fn_c_check_member ()
2314{
2315 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2317$as_echo_n "checking for $2.$3... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002318if eval \${$4+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002319 $as_echo_n "(cached) " >&6
2320else
2321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2322/* end confdefs.h. */
2323$5
2324int
2325main ()
2326{
2327static $2 ac_aggr;
2328if (ac_aggr.$3)
2329return 0;
2330 ;
2331 return 0;
2332}
2333_ACEOF
2334if ac_fn_c_try_compile "$LINENO"; then :
2335 eval "$4=yes"
2336else
2337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2338/* end confdefs.h. */
2339$5
2340int
2341main ()
2342{
2343static $2 ac_aggr;
2344if (sizeof ac_aggr.$3)
2345return 0;
2346 ;
2347 return 0;
2348}
2349_ACEOF
2350if ac_fn_c_try_compile "$LINENO"; then :
2351 eval "$4=yes"
2352else
2353 eval "$4=no"
2354fi
2355rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2356fi
2357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2358fi
2359eval ac_res=\$$4
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2361$as_echo "$ac_res" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002362 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002363
2364} # ac_fn_c_check_member
Theodore Ts'oe1052142006-10-21 21:46:47 -04002365cat >config.log <<_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002366This file contains any messages produced by compilers while
2367running configure, to aid debugging if configure makes a mistake.
2368
2369It was created by $as_me, which was
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002370generated by GNU Autoconf 2.69. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002371
2372 $ $0 $@
2373
2374_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04002375exec 5>>config.log
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002376{
2377cat <<_ASUNAME
2378## --------- ##
2379## Platform. ##
2380## --------- ##
2381
2382hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2383uname -m = `(uname -m) 2>/dev/null || echo unknown`
2384uname -r = `(uname -r) 2>/dev/null || echo unknown`
2385uname -s = `(uname -s) 2>/dev/null || echo unknown`
2386uname -v = `(uname -v) 2>/dev/null || echo unknown`
2387
2388/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2389/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2390
2391/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2392/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2393/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
Theodore Ts'oe1052142006-10-21 21:46:47 -04002394/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002395/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2396/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2397/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2398
2399_ASUNAME
2400
2401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2402for as_dir in $PATH
2403do
2404 IFS=$as_save_IFS
2405 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002406 $as_echo "PATH: $as_dir"
2407 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002408IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002409
2410} >&5
2411
2412cat >&5 <<_ACEOF
2413
2414
2415## ----------- ##
2416## Core tests. ##
2417## ----------- ##
2418
2419_ACEOF
2420
2421
2422# Keep a trace of the command line.
2423# Strip out --no-create and --no-recursion so they do not pile up.
2424# Strip out --silent because we don't want to record it for future runs.
2425# Also quote any args containing shell meta-characters.
2426# Make two passes to allow for proper duplicate-argument suppression.
2427ac_configure_args=
2428ac_configure_args0=
2429ac_configure_args1=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002430ac_must_keep_next=false
2431for ac_pass in 1 2
2432do
2433 for ac_arg
2434 do
2435 case $ac_arg in
2436 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2437 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2438 | -silent | --silent | --silen | --sile | --sil)
2439 continue ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002440 *\'*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002441 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002442 esac
2443 case $ac_pass in
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002444 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002445 2)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002446 as_fn_append ac_configure_args1 " '$ac_arg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002447 if test $ac_must_keep_next = true; then
2448 ac_must_keep_next=false # Got value, back to normal.
2449 else
2450 case $ac_arg in
2451 *=* | --config-cache | -C | -disable-* | --disable-* \
2452 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2453 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2454 | -with-* | --with-* | -without-* | --without-* | --x)
2455 case "$ac_configure_args0 " in
2456 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2457 esac
2458 ;;
2459 -* ) ac_must_keep_next=true ;;
2460 esac
2461 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002462 as_fn_append ac_configure_args " '$ac_arg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002463 ;;
2464 esac
2465 done
2466done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002467{ ac_configure_args0=; unset ac_configure_args0;}
2468{ ac_configure_args1=; unset ac_configure_args1;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002469
2470# When interrupted or exit'd, cleanup temporary files, and complete
2471# config.log. We remove comments because anyway the quotes in there
2472# would cause problems or look ugly.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002473# WARNING: Use '\'' to represent an apostrophe within the trap.
2474# 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 -05002475trap 'exit_status=$?
2476 # Save into config.log some information that might help in debugging.
2477 {
2478 echo
2479
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002480 $as_echo "## ---------------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002481## Cache variables. ##
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002482## ---------------- ##"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002483 echo
2484 # The following way of writing the cache mishandles newlines in values,
Theodore Ts'oe1052142006-10-21 21:46:47 -04002485(
2486 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2487 eval ac_val=\$$ac_var
2488 case $ac_val in #(
2489 *${as_nl}*)
2490 case $ac_var in #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002491 *_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 +01002492$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002493 esac
2494 case $ac_var in #(
2495 _ | IFS | as_nl) ;; #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002496 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002497 *) { eval $ac_var=; unset $ac_var;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002498 esac ;;
2499 esac
2500 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002501 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -04002502 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2503 *${as_nl}ac_space=\ *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002504 sed -n \
Theodore Ts'oe1052142006-10-21 21:46:47 -04002505 "s/'\''/'\''\\\\'\'''\''/g;
2506 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2507 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002508 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04002509 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002510 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002511 esac |
2512 sort
2513)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002514 echo
2515
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002516 $as_echo "## ----------------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002517## Output variables. ##
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002518## ----------------- ##"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002519 echo
2520 for ac_var in $ac_subst_vars
2521 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04002522 eval ac_val=\$$ac_var
2523 case $ac_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002524 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002525 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002526 $as_echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002527 done | sort
2528 echo
2529
2530 if test -n "$ac_subst_files"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002531 $as_echo "## ------------------- ##
Theodore Ts'oe1052142006-10-21 21:46:47 -04002532## File substitutions. ##
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002533## ------------------- ##"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002534 echo
2535 for ac_var in $ac_subst_files
2536 do
Theodore Ts'oe1052142006-10-21 21:46:47 -04002537 eval ac_val=\$$ac_var
2538 case $ac_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002539 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002540 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002541 $as_echo "$ac_var='\''$ac_val'\''"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002542 done | sort
2543 echo
2544 fi
2545
2546 if test -s confdefs.h; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002547 $as_echo "## ----------- ##
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002548## confdefs.h. ##
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002549## ----------- ##"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002550 echo
Theodore Ts'oe1052142006-10-21 21:46:47 -04002551 cat confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002552 echo
2553 fi
2554 test "$ac_signal" != 0 &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002555 $as_echo "$as_me: caught signal $ac_signal"
2556 $as_echo "$as_me: exit $exit_status"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002557 } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002558 rm -f core *.core core.conftest.* &&
2559 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002560 exit $exit_status
Theodore Ts'oe1052142006-10-21 21:46:47 -04002561' 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002562for ac_signal in 1 2 13 15; do
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002563 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002564done
2565ac_signal=0
2566
2567# confdefs.h avoids OS command line length limits that DEFS can exceed.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002568rm -f -r conftest* confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002569
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002570$as_echo "/* confdefs.h */" > confdefs.h
2571
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002572# Predefined preprocessor variables.
2573
2574cat >>confdefs.h <<_ACEOF
2575#define PACKAGE_NAME "$PACKAGE_NAME"
2576_ACEOF
2577
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002578cat >>confdefs.h <<_ACEOF
2579#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2580_ACEOF
2581
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002582cat >>confdefs.h <<_ACEOF
2583#define PACKAGE_VERSION "$PACKAGE_VERSION"
2584_ACEOF
2585
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002586cat >>confdefs.h <<_ACEOF
2587#define PACKAGE_STRING "$PACKAGE_STRING"
2588_ACEOF
2589
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002590cat >>confdefs.h <<_ACEOF
2591#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2592_ACEOF
2593
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002594cat >>confdefs.h <<_ACEOF
2595#define PACKAGE_URL "$PACKAGE_URL"
2596_ACEOF
2597
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002598
2599# Let the site file select an alternate cache file if it wants to.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002600# Prefer an explicitly selected file to automatically selected ones.
2601ac_site_file1=NONE
2602ac_site_file2=NONE
Theodore Ts'oe1052142006-10-21 21:46:47 -04002603if test -n "$CONFIG_SITE"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002604 # We do not want a PATH search for config.site.
2605 case $CONFIG_SITE in #((
2606 -*) ac_site_file1=./$CONFIG_SITE;;
2607 */*) ac_site_file1=$CONFIG_SITE;;
2608 *) ac_site_file1=./$CONFIG_SITE;;
2609 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -04002610elif test "x$prefix" != xNONE; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002611 ac_site_file1=$prefix/share/config.site
2612 ac_site_file2=$prefix/etc/config.site
Theodore Ts'oe1052142006-10-21 21:46:47 -04002613else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002614 ac_site_file1=$ac_default_prefix/share/config.site
2615 ac_site_file2=$ac_default_prefix/etc/config.site
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002616fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002617for ac_site_file in "$ac_site_file1" "$ac_site_file2"
Theodore Ts'oe1052142006-10-21 21:46:47 -04002618do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002619 test "x$ac_site_file" = xNONE && continue
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002620 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002621 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002622$as_echo "$as_me: loading site script $ac_site_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002623 sed 's/^/| /' "$ac_site_file" >&5
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002624 . "$ac_site_file" \
2625 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2626$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2627as_fn_error $? "failed to load site script $ac_site_file
2628See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002629 fi
2630done
2631
2632if test -r "$cache_file"; then
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002633 # Some versions of bash will fail to source /dev/null (special files
2634 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2635 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002636 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002637$as_echo "$as_me: loading cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002638 case $cache_file in
Theodore Ts'oe1052142006-10-21 21:46:47 -04002639 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2640 *) . "./$cache_file";;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002641 esac
2642 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002643else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002644 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002645$as_echo "$as_me: creating cache $cache_file" >&6;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002646 >$cache_file
2647fi
2648
Theodore Ts'o93613952014-07-03 23:44:13 -04002649gt_needs="$gt_needs "
Theodore Ts'o61ef2472010-08-01 22:30:33 -04002650as_fn_append ac_header_list " stdlib.h"
2651as_fn_append ac_header_list " unistd.h"
2652as_fn_append ac_header_list " sys/param.h"
Theodore Ts'o93613952014-07-03 23:44:13 -04002653as_fn_append ac_func_list " symlink"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002654# Check that the precious variables saved in the cache have kept the same
2655# value.
2656ac_cache_corrupted=false
Theodore Ts'oe1052142006-10-21 21:46:47 -04002657for ac_var in $ac_precious_vars; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002658 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2659 eval ac_new_set=\$ac_env_${ac_var}_set
Theodore Ts'oe1052142006-10-21 21:46:47 -04002660 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2661 eval ac_new_val=\$ac_env_${ac_var}_value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002662 case $ac_old_set,$ac_new_set in
2663 set,)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002664 { $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 +01002665$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 -05002666 ac_cache_corrupted=: ;;
2667 ,set)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002668 { $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 +01002669$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002670 ac_cache_corrupted=: ;;
2671 ,);;
2672 *)
2673 if test "x$ac_old_val" != "x$ac_new_val"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002674 # differences in whitespace do not lead to failure.
2675 ac_old_val_w=`echo x $ac_old_val`
2676 ac_new_val_w=`echo x $ac_new_val`
2677 if test "$ac_old_val_w" != "$ac_new_val_w"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002678 { $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 +01002679$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2680 ac_cache_corrupted=:
2681 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002682 { $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 +01002683$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2684 eval $ac_var=\$ac_old_val
2685 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002686 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002687$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002688 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002689$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002690 fi;;
2691 esac
2692 # Pass precious variables to config.status.
2693 if test "$ac_new_set" = set; then
2694 case $ac_new_val in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002695 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002696 *) ac_arg=$ac_var=$ac_new_val ;;
2697 esac
2698 case " $ac_configure_args " in
2699 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002700 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002701 esac
2702 fi
2703done
2704if $ac_cache_corrupted; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002705 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002706$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002707 { $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 +01002708$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002709 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002710fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002711## -------------------- ##
2712## Main body of script. ##
2713## -------------------- ##
Theodore Ts'oe1052142006-10-21 21:46:47 -04002714
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002715ac_ext=c
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002716ac_cpp='$CPP $CPPFLAGS'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002717ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2718ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2719ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002720
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002721
2722
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002723ac_aux_dir=
Theodore Ts'oe1052142006-10-21 21:46:47 -04002724for ac_dir in config "$srcdir"/config; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002725 if test -f "$ac_dir/install-sh"; then
2726 ac_aux_dir=$ac_dir
2727 ac_install_sh="$ac_aux_dir/install-sh -c"
2728 break
2729 elif test -f "$ac_dir/install.sh"; then
2730 ac_aux_dir=$ac_dir
2731 ac_install_sh="$ac_aux_dir/install.sh -c"
2732 break
2733 elif test -f "$ac_dir/shtool"; then
2734 ac_aux_dir=$ac_dir
2735 ac_install_sh="$ac_aux_dir/shtool install -c"
2736 break
2737 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002738done
2739if test -z "$ac_aux_dir"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002740 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 +00002741fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04002742
2743# These three variables are undocumented and unsupported,
2744# and are intended to be withdrawn in a future Autoconf release.
2745# They can cause serious problems if a builder's source tree is in a directory
2746# whose full name contains unusual characters.
2747ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2748ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2749ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2750
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00002751
Theodore Ts'od1154eb2011-09-18 17:34:37 -04002752ac_config_headers="$ac_config_headers lib/config.h"
2753
2754
Theodore Ts'o50e1e101997-04-26 13:58:21 +00002755MCONFIG=./MCONFIG
2756
Theodore Ts'o74becf31997-04-26 14:37:06 +00002757BINARY_TYPE=bin
2758E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \
2759 | awk '{print $3}' | tr \" " " | awk '{print $1}'`
2760DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \
2761 | tr \" " "`
Theodore Ts'o2ab53822016-03-15 01:10:29 -04002762E2FSPROGS_DAY=$(echo $DATE | awk -F- '{print $1}' | sed -e '/^[1-9]$/s/^/0/')
Theodore Ts'o74becf31997-04-26 14:37:06 +00002763MONTH=`echo $DATE | awk -F- '{print $2}'`
2764YEAR=`echo $DATE | awk -F- '{print $3}'`
2765
Theodore Ts'o14790ed1999-01-12 23:32:52 +00002766if expr $YEAR ">" 1900 > /dev/null ; then
2767 E2FSPROGS_YEAR=$YEAR
2768elif expr $YEAR ">" 90 >/dev/null ; then
Theodore Ts'o74becf31997-04-26 14:37:06 +00002769 E2FSPROGS_YEAR=19$YEAR
2770else
2771 E2FSPROGS_YEAR=20$YEAR
2772fi
2773
2774case $MONTH in
Andreas Dilger927566a2006-11-12 19:41:25 -05002775Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;;
2776Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;;
2777Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;;
2778Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;;
2779May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;;
2780Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;;
2781Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;;
2782Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;;
2783Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;;
2784Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;;
2785Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;;
2786Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002787*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002788$as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;;
Theodore Ts'o74becf31997-04-26 14:37:06 +00002789esac
2790
Andreas Dilger927566a2006-11-12 19:41:25 -05002791base_ver=`echo $E2FSPROGS_VERSION | \
2792 sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'`
Andreas Dilger927566a2006-11-12 19:41:25 -05002793
2794date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY}
2795
2796case $E2FSPROGS_VERSION in
2797*-WIP|pre-*)
Theodore Ts'o2ab53822016-03-15 01:10:29 -04002798 E2FSPROGS_PKGVER="$base_ver~WIP.$date_spec"
Andreas Dilger927566a2006-11-12 19:41:25 -05002799 ;;
2800*)
2801 E2FSPROGS_PKGVER="$base_ver"
2802 ;;
2803esac
2804
2805unset DATE MONTH YEAR base_ver pre_vers date_spec
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002806{ $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 +01002807$as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002809$as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; }
Theodore Ts'o74becf31997-04-26 14:37:06 +00002810
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002811
2812
2813
Andreas Dilger927566a2006-11-12 19:41:25 -05002814
Theodore Ts'o6c59a662014-01-04 20:44:29 -05002815WITH_DIET_LIBC=
2816
2817# Check whether --with-diet-libc was given.
2818if test "${with_diet_libc+set}" = set; then :
2819 withval=$with_diet_libc; CC="diet cc -nostdinc"
2820WITH_DIET_LIBC=yes
2821if test -z "$LIBS"
2822then
2823 LIBS="-lcompat"
2824else
2825 LIBS="$LIBS -lcompat"
2826fi
2827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5
2828$as_echo "CC=$CC" >&6; }
2829fi
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002830# Make sure we can run config.sub.
Theodore Ts'oe1052142006-10-21 21:46:47 -04002831$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002832 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002833
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002835$as_echo_n "checking build system type... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002836if ${ac_cv_build+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002837 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002838else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002839 ac_build_alias=$build_alias
2840test "x$ac_build_alias" = x &&
2841 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2842test "x$ac_build_alias" = x &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002843 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002844ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002845 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002846
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002847fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002849$as_echo "$ac_cv_build" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002850case $ac_cv_build in
2851*-*-*) ;;
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002852*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002853esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002854build=$ac_cv_build
Theodore Ts'oe1052142006-10-21 21:46:47 -04002855ac_save_IFS=$IFS; IFS='-'
2856set x $ac_cv_build
2857shift
2858build_cpu=$1
2859build_vendor=$2
2860shift; shift
2861# Remember, the first character of IFS is used to create $*,
2862# except with old shells:
2863build_os=$*
2864IFS=$ac_save_IFS
2865case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002866
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00002867
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002869$as_echo_n "checking host system type... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002870if ${ac_cv_host+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002871 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002872else
Theodore Ts'oe1052142006-10-21 21:46:47 -04002873 if test "x$host_alias" = x; then
2874 ac_cv_host=$ac_cv_build
2875else
2876 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002877 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -04002878fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04002879
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002880fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002882$as_echo "$ac_cv_host" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04002883case $ac_cv_host in
2884*-*-*) ;;
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002885*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04002886esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002887host=$ac_cv_host
Theodore Ts'oe1052142006-10-21 21:46:47 -04002888ac_save_IFS=$IFS; IFS='-'
2889set x $ac_cv_host
2890shift
2891host_cpu=$1
2892host_vendor=$2
2893shift; shift
2894# Remember, the first character of IFS is used to create $*,
2895# except with old shells:
2896host_os=$*
2897IFS=$ac_save_IFS
2898case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002899
2900
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002901DLOPEN_LIB=''
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002902ac_ext=c
2903ac_cpp='$CPP $CPPFLAGS'
2904ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2905ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2906ac_compiler_gnu=$ac_cv_c_compiler_gnu
2907if test -n "$ac_tool_prefix"; then
2908 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2909set dummy ${ac_tool_prefix}gcc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002911$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002912if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002913 $as_echo_n "(cached) " >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00002914else
2915 if test -n "$CC"; then
2916 ac_cv_prog_CC="$CC" # Let the user override the test.
2917else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2919for as_dir in $PATH
2920do
2921 IFS=$as_save_IFS
2922 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002923 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002925 ac_cv_prog_CC="${ac_tool_prefix}gcc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002927 break 2
2928 fi
2929done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002930 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002931IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002932
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002933fi
2934fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002935CC=$ac_cv_prog_CC
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002936if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002938$as_echo "$CC" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002939else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002941$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002942fi
2943
Theodore Ts'oe1052142006-10-21 21:46:47 -04002944
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002945fi
2946if test -z "$ac_cv_prog_CC"; then
2947 ac_ct_CC=$CC
2948 # Extract the first word of "gcc", so it can be a program name with args.
2949set dummy gcc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002951$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002952if ${ac_cv_prog_ac_ct_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002953 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002954else
2955 if test -n "$ac_ct_CC"; then
2956 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2957else
2958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2959for as_dir in $PATH
2960do
2961 IFS=$as_save_IFS
2962 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002963 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10002964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002965 ac_cv_prog_ac_ct_CC="gcc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002967 break 2
2968 fi
2969done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002970 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04002971IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002972
2973fi
2974fi
2975ac_ct_CC=$ac_cv_prog_ac_ct_CC
2976if test -n "$ac_ct_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002978$as_echo "$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002979else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01002981$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002982fi
2983
Theodore Ts'oe1052142006-10-21 21:46:47 -04002984 if test "x$ac_ct_CC" = x; then
2985 CC=""
2986 else
2987 case $cross_compiling:$ac_tool_warned in
2988yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05002989{ $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 +01002990$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04002991ac_tool_warned=yes ;;
2992esac
2993 CC=$ac_ct_CC
2994 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05002995else
2996 CC="$ac_cv_prog_CC"
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002997fi
2998
Theodore Ts'o07a0db12003-07-05 14:50:24 -04002999if test -z "$CC"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003000 if test -n "$ac_tool_prefix"; then
3001 # 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 -05003002set dummy ${ac_tool_prefix}cc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003004$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003005if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003006 $as_echo_n "(cached) " >&6
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003007else
3008 if test -n "$CC"; then
3009 ac_cv_prog_CC="$CC" # Let the user override the test.
3010else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3012for as_dir in $PATH
3013do
3014 IFS=$as_save_IFS
3015 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003016 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003018 ac_cv_prog_CC="${ac_tool_prefix}cc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003020 break 2
3021 fi
3022done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003023 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003024IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003025
3026fi
3027fi
3028CC=$ac_cv_prog_CC
3029if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003031$as_echo "$CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003032else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003034$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003035fi
3036
Theodore Ts'oe1052142006-10-21 21:46:47 -04003037
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003038 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003039fi
3040if test -z "$CC"; then
3041 # Extract the first word of "cc", so it can be a program name with args.
3042set dummy cc; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003044$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003045if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003046 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003047else
3048 if test -n "$CC"; then
3049 ac_cv_prog_CC="$CC" # Let the user override the test.
3050else
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003051 ac_prog_rejected=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3053for as_dir in $PATH
3054do
3055 IFS=$as_save_IFS
3056 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003057 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003059 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3060 ac_prog_rejected=yes
3061 continue
3062 fi
3063 ac_cv_prog_CC="cc"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003065 break 2
3066 fi
3067done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003068 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003069IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003070
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003071if test $ac_prog_rejected = yes; then
3072 # We found a bogon in the path, so make sure we never use it.
3073 set dummy $ac_cv_prog_CC
3074 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003075 if test $# != 0; then
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003076 # We chose a different compiler from the bogus one.
3077 # However, it has the same basename, so the bogon will be chosen
3078 # first if we set CC to just the basename; use the full file name.
3079 shift
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003080 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003081 fi
3082fi
3083fi
3084fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003085CC=$ac_cv_prog_CC
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003086if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003088$as_echo "$CC" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003089else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003091$as_echo "no" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003092fi
3093
Theodore Ts'oe1052142006-10-21 21:46:47 -04003094
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003095fi
3096if test -z "$CC"; then
3097 if test -n "$ac_tool_prefix"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -04003098 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003099 do
3100 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3101set dummy $ac_tool_prefix$ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003103$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003104if ${ac_cv_prog_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003105 $as_echo_n "(cached) " >&6
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003106else
3107 if test -n "$CC"; then
3108 ac_cv_prog_CC="$CC" # Let the user override the test.
3109else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3111for as_dir in $PATH
3112do
3113 IFS=$as_save_IFS
3114 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003115 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003117 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003119 break 2
3120 fi
3121done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003122 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003123IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003124
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003125fi
3126fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003127CC=$ac_cv_prog_CC
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003128if test -n "$CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003130$as_echo "$CC" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003131else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003133$as_echo "no" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003134fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003135
Theodore Ts'oe1052142006-10-21 21:46:47 -04003136
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003137 test -n "$CC" && break
3138 done
3139fi
3140if test -z "$CC"; then
3141 ac_ct_CC=$CC
Theodore Ts'oe1052142006-10-21 21:46:47 -04003142 for ac_prog in cl.exe
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003143do
3144 # Extract the first word of "$ac_prog", so it can be a program name with args.
3145set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003147$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003148if ${ac_cv_prog_ac_ct_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003149 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003150else
3151 if test -n "$ac_ct_CC"; then
3152 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3153else
3154as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3155for as_dir in $PATH
3156do
3157 IFS=$as_save_IFS
3158 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003159 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003161 ac_cv_prog_ac_ct_CC="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003163 break 2
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003164 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003165done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003166 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003167IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003168
3169fi
3170fi
3171ac_ct_CC=$ac_cv_prog_ac_ct_CC
3172if test -n "$ac_ct_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003174$as_echo "$ac_ct_CC" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003175else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003177$as_echo "no" >&6; }
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003178fi
3179
Theodore Ts'oe1052142006-10-21 21:46:47 -04003180
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003181 test -n "$ac_ct_CC" && break
3182done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003183
Theodore Ts'oe1052142006-10-21 21:46:47 -04003184 if test "x$ac_ct_CC" = x; then
3185 CC=""
3186 else
3187 case $cross_compiling:$ac_tool_warned in
3188yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003189{ $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 +01003190$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04003191ac_tool_warned=yes ;;
3192esac
3193 CC=$ac_ct_CC
3194 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003195fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003196
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003197fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003198
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003199
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003200test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003201$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003202as_fn_error $? "no acceptable C compiler found in \$PATH
3203See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003204
3205# Provide some information about the compiler.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003206$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003207set X $ac_compile
3208ac_compiler=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003209for ac_option in --version -v -V -qversion; do
3210 { { ac_try="$ac_compiler $ac_option >&5"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003211case "(($ac_try" in
3212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3213 *) ac_try_echo=$ac_try;;
3214esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003215eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3216$as_echo "$ac_try_echo"; } >&5
3217 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003218 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003219 if test -s conftest.err; then
3220 sed '10a\
3221... rest of stderr output deleted ...
3222 10q' conftest.err >conftest.er1
3223 cat conftest.er1 >&5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003224 fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003225 rm -f conftest.er1 conftest.err
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3227 test $ac_status = 0; }
3228done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003229
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003230cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003231/* end confdefs.h. */
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003232
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003233int
3234main ()
3235{
3236
3237 ;
3238 return 0;
3239}
3240_ACEOF
3241ac_clean_files_save=$ac_clean_files
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003242ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003243# Try to create an executable without -o first, disregard a.out.
3244# It will help us diagnose broken compilers, and finding out an intuition
3245# of exeext.
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3247$as_echo_n "checking whether the C compiler works... " >&6; }
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003248ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3249
3250# The possible output files:
3251ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3252
Theodore Ts'oe1052142006-10-21 21:46:47 -04003253ac_rmfiles=
3254for ac_file in $ac_files
3255do
3256 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003257 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003258 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3259 esac
3260done
3261rm -f $ac_rmfiles
3262
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003263if { { ac_try="$ac_link_default"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003264case "(($ac_try" in
3265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3266 *) ac_try_echo=$ac_try;;
3267esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003268eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3269$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003270 (eval "$ac_link_default") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003271 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3273 test $ac_status = 0; }; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003274 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3275# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3276# in a Makefile. We should not override ac_cv_exeext if it was cached,
3277# so that the user can short-circuit this test for compilers unknown to
3278# Autoconf.
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003279for ac_file in $ac_files ''
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003280do
3281 test -f "$ac_file" || continue
3282 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003283 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003284 ;;
3285 [ab].out )
3286 # We found the default executable, but exeext='' is most
3287 # certainly right.
3288 break;;
3289 *.* )
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003290 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003291 then :; else
3292 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3293 fi
3294 # We set ac_cv_exeext here because the later test for it is not
3295 # safe: cross compilers may not add the suffix if given an `-o'
3296 # argument, so we may need to know it at that point already.
3297 # Even if this section looks crufty: it has the advantage of
3298 # actually working.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003299 break;;
3300 * )
3301 break;;
3302 esac
3303done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003304test "$ac_cv_exeext" = no && ac_cv_exeext=
3305
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003306else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04003307 ac_file=''
3308fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003309if test -z "$ac_file"; then :
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3311$as_echo "no" >&6; }
3312$as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003313sed 's/^/| /' conftest.$ac_ext >&5
3314
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003315{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003316$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003317as_fn_error 77 "C compiler cannot create executables
3318See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003319else
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3321$as_echo "yes" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003322fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3324$as_echo_n "checking for C compiler default output file name... " >&6; }
3325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3326$as_echo "$ac_file" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003327ac_exeext=$ac_cv_exeext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003328
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003329rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003330ac_clean_files=$ac_clean_files_save
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003332$as_echo_n "checking for suffix of executables... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003333if { { ac_try="$ac_link"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003334case "(($ac_try" in
3335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3336 *) ac_try_echo=$ac_try;;
3337esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003338eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3339$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003340 (eval "$ac_link") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003341 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3343 test $ac_status = 0; }; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003344 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3345# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3346# work properly (i.e., refer to `conftest.exe'), while it won't with
3347# `rm'.
3348for ac_file in conftest.exe conftest conftest.*; do
3349 test -f "$ac_file" || continue
3350 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003351 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003352 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003353 break;;
3354 * ) break;;
3355 esac
3356done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003357else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003358 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003359$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003360as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3361See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003362fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003363rm -f conftest conftest$ac_cv_exeext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003365$as_echo "$ac_cv_exeext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003366
3367rm -f conftest.$ac_ext
3368EXEEXT=$ac_cv_exeext
3369ac_exeext=$EXEEXT
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003370cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3371/* end confdefs.h. */
3372#include <stdio.h>
3373int
3374main ()
3375{
3376FILE *f = fopen ("conftest.out", "w");
3377 return ferror (f) || fclose (f) != 0;
3378
3379 ;
3380 return 0;
3381}
3382_ACEOF
3383ac_clean_files="$ac_clean_files conftest.out"
3384# Check that the compiler produces executables we can run. If not, either
3385# the compiler is broken, or we cross compile.
3386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3387$as_echo_n "checking whether we are cross compiling... " >&6; }
3388if test "$cross_compiling" != yes; then
3389 { { ac_try="$ac_link"
3390case "(($ac_try" in
3391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3392 *) ac_try_echo=$ac_try;;
3393esac
3394eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3395$as_echo "$ac_try_echo"; } >&5
3396 (eval "$ac_link") 2>&5
3397 ac_status=$?
3398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3399 test $ac_status = 0; }
3400 if { ac_try='./conftest$ac_cv_exeext'
3401 { { case "(($ac_try" in
3402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3403 *) ac_try_echo=$ac_try;;
3404esac
3405eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3406$as_echo "$ac_try_echo"; } >&5
3407 (eval "$ac_try") 2>&5
3408 ac_status=$?
3409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3410 test $ac_status = 0; }; }; then
3411 cross_compiling=no
3412 else
3413 if test "$cross_compiling" = maybe; then
3414 cross_compiling=yes
3415 else
3416 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3417$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003418as_fn_error $? "cannot run C compiled programs.
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003419If you meant to cross compile, use \`--host'.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003420See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o61ef2472010-08-01 22:30:33 -04003421 fi
3422 fi
3423fi
3424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3425$as_echo "$cross_compiling" >&6; }
3426
3427rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3428ac_clean_files=$ac_clean_files_save
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003430$as_echo_n "checking for suffix of object files... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003431if ${ac_cv_objext+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003432 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003433else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003435/* end confdefs.h. */
3436
3437int
3438main ()
3439{
3440
3441 ;
3442 return 0;
3443}
3444_ACEOF
3445rm -f conftest.o conftest.obj
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003446if { { ac_try="$ac_compile"
Theodore Ts'oe1052142006-10-21 21:46:47 -04003447case "(($ac_try" in
3448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3449 *) ac_try_echo=$ac_try;;
3450esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003451eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3452$as_echo "$ac_try_echo"; } >&5
Theodore Ts'oe1052142006-10-21 21:46:47 -04003453 (eval "$ac_compile") 2>&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003454 ac_status=$?
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3456 test $ac_status = 0; }; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003457 for ac_file in conftest.o conftest.obj conftest.*; do
3458 test -f "$ac_file" || continue;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003459 case $ac_file in
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003460 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003461 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3462 break;;
3463 esac
3464done
3465else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003466 $as_echo "$as_me: failed program was:" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003467sed 's/^/| /' conftest.$ac_ext >&5
3468
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003469{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003470$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003471as_fn_error $? "cannot compute suffix of object files: cannot compile
3472See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003473fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003474rm -f conftest.$ac_cv_objext conftest.$ac_ext
3475fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003477$as_echo "$ac_cv_objext" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003478OBJEXT=$ac_cv_objext
3479ac_objext=$OBJEXT
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003480{ $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 +01003481$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003482if ${ac_cv_c_compiler_gnu+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003483 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003484else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003486/* end confdefs.h. */
3487
3488int
3489main ()
3490{
3491#ifndef __GNUC__
3492 choke me
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003493#endif
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003494
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003495 ;
3496 return 0;
3497}
3498_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003499if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003500 ac_compiler_gnu=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003501else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003502 ac_compiler_gnu=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003503fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003505ac_cv_c_compiler_gnu=$ac_compiler_gnu
Theodore Ts'o07a0db12003-07-05 14:50:24 -04003506
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003507fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003509$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3510if test $ac_compiler_gnu = yes; then
3511 GCC=yes
3512else
3513 GCC=
3514fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003515ac_test_CFLAGS=${CFLAGS+set}
3516ac_save_CFLAGS=$CFLAGS
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003518$as_echo_n "checking whether $CC accepts -g... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003519if ${ac_cv_prog_cc_g+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003520 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04003521else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003522 ac_save_c_werror_flag=$ac_c_werror_flag
3523 ac_c_werror_flag=yes
3524 ac_cv_prog_cc_g=no
3525 CFLAGS="-g"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003527/* end confdefs.h. */
3528
3529int
3530main ()
3531{
3532
3533 ;
3534 return 0;
3535}
3536_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003537if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003538 ac_cv_prog_cc_g=yes
3539else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003540 CFLAGS=""
3541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003542/* end confdefs.h. */
3543
3544int
3545main ()
3546{
3547
3548 ;
3549 return 0;
3550}
3551_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003552if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003553
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003554else
3555 ac_c_werror_flag=$ac_save_c_werror_flag
Theodore Ts'oe1052142006-10-21 21:46:47 -04003556 CFLAGS="-g"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04003558/* end confdefs.h. */
3559
3560int
3561main ()
3562{
3563
3564 ;
3565 return 0;
3566}
3567_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003568if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003569 ac_cv_prog_cc_g=yes
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003570fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003572fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3574fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3576 ac_c_werror_flag=$ac_save_c_werror_flag
3577fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003579$as_echo "$ac_cv_prog_cc_g" >&6; }
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003580if test "$ac_test_CFLAGS" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003581 CFLAGS=$ac_save_CFLAGS
Theodore Ts'o73ae2d42000-02-02 16:13:14 +00003582elif test $ac_cv_prog_cc_g = yes; then
3583 if test "$GCC" = yes; then
3584 CFLAGS="-g -O2"
3585 else
3586 CFLAGS="-g"
3587 fi
3588else
3589 if test "$GCC" = yes; then
3590 CFLAGS="-O2"
3591 else
3592 CFLAGS=
3593 fi
3594fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003596$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003597if ${ac_cv_prog_cc_c89+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003598 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003599else
Theodore Ts'oe1052142006-10-21 21:46:47 -04003600 ac_cv_prog_cc_c89=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003601ac_save_CC=$CC
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003602cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003603/* end confdefs.h. */
3604#include <stdarg.h>
3605#include <stdio.h>
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003606struct stat;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003607/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3608struct buf { int x; };
3609FILE * (*rcsopen) (struct buf *, struct stat *, int);
3610static char *e (p, i)
3611 char **p;
3612 int i;
3613{
3614 return p[i];
3615}
3616static char *f (char * (*g) (char **, int), char **p, ...)
3617{
3618 char *s;
3619 va_list v;
3620 va_start (v,p);
3621 s = g (p, va_arg (v,int));
3622 va_end (v);
3623 return s;
3624}
3625
3626/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3627 function prototypes and stuff, but not '\xHH' hex character constants.
3628 These don't provoke an error unfortunately, instead are silently treated
Theodore Ts'oe1052142006-10-21 21:46:47 -04003629 as 'x'. The following induces an error, until -std is added to get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003630 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3631 array size at least. It's necessary to write '\x00'==0 to get something
Theodore Ts'oe1052142006-10-21 21:46:47 -04003632 that's true only with -std. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003633int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3634
Theodore Ts'oe1052142006-10-21 21:46:47 -04003635/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3636 inside strings and character constants. */
3637#define FOO(x) 'x'
3638int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3639
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003640int test (int i, double x);
3641struct s1 {int (*f) (int a);};
3642struct s2 {int (*f) (double a);};
3643int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3644int argc;
3645char **argv;
3646int
3647main ()
3648{
3649return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3650 ;
3651 return 0;
3652}
3653_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04003654for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3655 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003656do
3657 CC="$ac_save_CC $ac_arg"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003658 if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04003659 ac_cv_prog_cc_c89=$ac_arg
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003660fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003661rm -f core conftest.err conftest.$ac_objext
3662 test "x$ac_cv_prog_cc_c89" != "xno" && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003663done
Theodore Ts'oe1052142006-10-21 21:46:47 -04003664rm -f conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003665CC=$ac_save_CC
3666
3667fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04003668# AC_CACHE_VAL
3669case "x$ac_cv_prog_cc_c89" in
3670 x)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003672$as_echo "none needed" >&6; } ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -04003673 xno)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003675$as_echo "unsupported" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003676 *)
Theodore Ts'oe1052142006-10-21 21:46:47 -04003677 CC="$CC $ac_cv_prog_cc_c89"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01003679$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003680esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003681if test "x$ac_cv_prog_cc_c89" != xno; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05003682
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003683fi
3684
3685ac_ext=c
3686ac_cpp='$CPP $CPPFLAGS'
3687ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3688ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3689ac_compiler_gnu=$ac_cv_c_compiler_gnu
3690
3691
3692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
3693$as_echo_n "checking for dlopen in -ldl... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003694if ${ac_cv_lib_dl_dlopen+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003695 $as_echo_n "(cached) " >&6
3696else
3697 ac_check_lib_save_LIBS=$LIBS
3698LIBS="-ldl $LIBS"
3699cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3700/* end confdefs.h. */
3701
3702/* Override any GCC internal prototype to avoid an error.
3703 Use char because int might match the return type of a GCC
3704 builtin and then its argument prototype would still apply. */
3705#ifdef __cplusplus
3706extern "C"
3707#endif
3708char dlopen ();
3709int
3710main ()
3711{
3712return dlopen ();
3713 ;
3714 return 0;
3715}
3716_ACEOF
3717if ac_fn_c_try_link "$LINENO"; then :
3718 ac_cv_lib_dl_dlopen=yes
3719else
3720 ac_cv_lib_dl_dlopen=no
3721fi
3722rm -f core conftest.err conftest.$ac_objext \
3723 conftest$ac_exeext conftest.$ac_ext
3724LIBS=$ac_check_lib_save_LIBS
3725fi
3726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
3727$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003728if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003729 DLOPEN_LIB=-ldl
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003730fi
3731
3732
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003733
3734# Check whether --with-cc was given.
3735if test "${with_cc+set}" = set; then :
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003736 withval=$with_cc; as_fn_error $? "--with-cc no longer supported; use CC= instead" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003737fi
3738
3739
3740# Check whether --with-ccopts was given.
3741if test "${with_ccopts+set}" = set; then :
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003742 withval=$with_ccopts; as_fn_error $? "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003743fi
3744
3745
3746# Check whether --with-ldopts was given.
3747if test "${with_ldopts+set}" = set; then :
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003748 withval=$with_ldopts; as_fn_error $? "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003749fi
3750
3751ac_ext=c
3752ac_cpp='$CPP $CPPFLAGS'
3753ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3754ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3755ac_compiler_gnu=$ac_cv_c_compiler_gnu
3756if test -n "$ac_tool_prefix"; then
3757 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3758set dummy ${ac_tool_prefix}gcc; ac_word=$2
3759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3760$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003761if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003762 $as_echo_n "(cached) " >&6
3763else
3764 if test -n "$CC"; then
3765 ac_cv_prog_CC="$CC" # Let the user override the test.
3766else
3767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3768for as_dir in $PATH
3769do
3770 IFS=$as_save_IFS
3771 test -z "$as_dir" && as_dir=.
3772 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003774 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3776 break 2
3777 fi
3778done
3779 done
3780IFS=$as_save_IFS
3781
3782fi
3783fi
3784CC=$ac_cv_prog_CC
3785if test -n "$CC"; then
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3787$as_echo "$CC" >&6; }
3788else
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3790$as_echo "no" >&6; }
3791fi
3792
3793
3794fi
3795if test -z "$ac_cv_prog_CC"; then
3796 ac_ct_CC=$CC
3797 # Extract the first word of "gcc", so it can be a program name with args.
3798set dummy gcc; ac_word=$2
3799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3800$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003801if ${ac_cv_prog_ac_ct_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003802 $as_echo_n "(cached) " >&6
3803else
3804 if test -n "$ac_ct_CC"; then
3805 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3806else
3807as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3808for as_dir in $PATH
3809do
3810 IFS=$as_save_IFS
3811 test -z "$as_dir" && as_dir=.
3812 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003814 ac_cv_prog_ac_ct_CC="gcc"
3815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3816 break 2
3817 fi
3818done
3819 done
3820IFS=$as_save_IFS
3821
3822fi
3823fi
3824ac_ct_CC=$ac_cv_prog_ac_ct_CC
3825if test -n "$ac_ct_CC"; then
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3827$as_echo "$ac_ct_CC" >&6; }
3828else
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3830$as_echo "no" >&6; }
3831fi
3832
3833 if test "x$ac_ct_CC" = x; then
3834 CC=""
3835 else
3836 case $cross_compiling:$ac_tool_warned in
3837yes:)
3838{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3839$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3840ac_tool_warned=yes ;;
3841esac
3842 CC=$ac_ct_CC
3843 fi
3844else
3845 CC="$ac_cv_prog_CC"
3846fi
3847
3848if test -z "$CC"; then
3849 if test -n "$ac_tool_prefix"; then
3850 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3851set dummy ${ac_tool_prefix}cc; ac_word=$2
3852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3853$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003854if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003855 $as_echo_n "(cached) " >&6
3856else
3857 if test -n "$CC"; then
3858 ac_cv_prog_CC="$CC" # Let the user override the test.
3859else
3860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3861for as_dir in $PATH
3862do
3863 IFS=$as_save_IFS
3864 test -z "$as_dir" && as_dir=.
3865 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003867 ac_cv_prog_CC="${ac_tool_prefix}cc"
3868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3869 break 2
3870 fi
3871done
3872 done
3873IFS=$as_save_IFS
3874
3875fi
3876fi
3877CC=$ac_cv_prog_CC
3878if test -n "$CC"; then
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3880$as_echo "$CC" >&6; }
3881else
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3883$as_echo "no" >&6; }
3884fi
3885
3886
3887 fi
3888fi
3889if test -z "$CC"; then
3890 # Extract the first word of "cc", so it can be a program name with args.
3891set dummy cc; ac_word=$2
3892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3893$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003894if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003895 $as_echo_n "(cached) " >&6
3896else
3897 if test -n "$CC"; then
3898 ac_cv_prog_CC="$CC" # Let the user override the test.
3899else
3900 ac_prog_rejected=no
3901as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3902for as_dir in $PATH
3903do
3904 IFS=$as_save_IFS
3905 test -z "$as_dir" && as_dir=.
3906 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003908 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3909 ac_prog_rejected=yes
3910 continue
3911 fi
3912 ac_cv_prog_CC="cc"
3913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3914 break 2
3915 fi
3916done
3917 done
3918IFS=$as_save_IFS
3919
3920if test $ac_prog_rejected = yes; then
3921 # We found a bogon in the path, so make sure we never use it.
3922 set dummy $ac_cv_prog_CC
3923 shift
3924 if test $# != 0; then
3925 # We chose a different compiler from the bogus one.
3926 # However, it has the same basename, so the bogon will be chosen
3927 # first if we set CC to just the basename; use the full file name.
3928 shift
3929 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3930 fi
3931fi
3932fi
3933fi
3934CC=$ac_cv_prog_CC
3935if test -n "$CC"; then
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3937$as_echo "$CC" >&6; }
3938else
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3940$as_echo "no" >&6; }
3941fi
3942
3943
3944fi
3945if test -z "$CC"; then
3946 if test -n "$ac_tool_prefix"; then
3947 for ac_prog in cl.exe
3948 do
3949 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3950set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3952$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003953if ${ac_cv_prog_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003954 $as_echo_n "(cached) " >&6
3955else
3956 if test -n "$CC"; then
3957 ac_cv_prog_CC="$CC" # Let the user override the test.
3958else
3959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3960for as_dir in $PATH
3961do
3962 IFS=$as_save_IFS
3963 test -z "$as_dir" && as_dir=.
3964 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003966 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3968 break 2
3969 fi
3970done
3971 done
3972IFS=$as_save_IFS
3973
3974fi
3975fi
3976CC=$ac_cv_prog_CC
3977if test -n "$CC"; then
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3979$as_echo "$CC" >&6; }
3980else
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3982$as_echo "no" >&6; }
3983fi
3984
3985
3986 test -n "$CC" && break
3987 done
3988fi
3989if test -z "$CC"; then
3990 ac_ct_CC=$CC
3991 for ac_prog in cl.exe
3992do
3993 # Extract the first word of "$ac_prog", so it can be a program name with args.
3994set dummy $ac_prog; ac_word=$2
3995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3996$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10003997if ${ac_cv_prog_ac_ct_CC+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05003998 $as_echo_n "(cached) " >&6
3999else
4000 if test -n "$ac_ct_CC"; then
4001 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4002else
4003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4004for as_dir in $PATH
4005do
4006 IFS=$as_save_IFS
4007 test -z "$as_dir" && as_dir=.
4008 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004010 ac_cv_prog_ac_ct_CC="$ac_prog"
4011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4012 break 2
4013 fi
4014done
4015 done
4016IFS=$as_save_IFS
4017
4018fi
4019fi
4020ac_ct_CC=$ac_cv_prog_ac_ct_CC
4021if test -n "$ac_ct_CC"; then
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4023$as_echo "$ac_ct_CC" >&6; }
4024else
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4026$as_echo "no" >&6; }
4027fi
4028
4029
4030 test -n "$ac_ct_CC" && break
4031done
4032
4033 if test "x$ac_ct_CC" = x; then
4034 CC=""
4035 else
4036 case $cross_compiling:$ac_tool_warned in
4037yes:)
4038{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4039$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4040ac_tool_warned=yes ;;
4041esac
4042 CC=$ac_ct_CC
4043 fi
4044fi
4045
4046fi
4047
4048
4049test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4050$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004051as_fn_error $? "no acceptable C compiler found in \$PATH
4052See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004053
4054# Provide some information about the compiler.
4055$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4056set X $ac_compile
4057ac_compiler=$2
4058for ac_option in --version -v -V -qversion; do
4059 { { ac_try="$ac_compiler $ac_option >&5"
4060case "(($ac_try" in
4061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4062 *) ac_try_echo=$ac_try;;
4063esac
4064eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4065$as_echo "$ac_try_echo"; } >&5
4066 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4067 ac_status=$?
4068 if test -s conftest.err; then
4069 sed '10a\
4070... rest of stderr output deleted ...
4071 10q' conftest.err >conftest.er1
4072 cat conftest.er1 >&5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004073 fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04004074 rm -f conftest.er1 conftest.err
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004075 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4076 test $ac_status = 0; }
4077done
4078
4079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4080$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004081if ${ac_cv_c_compiler_gnu+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004082 $as_echo_n "(cached) " >&6
4083else
4084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4085/* end confdefs.h. */
4086
4087int
4088main ()
4089{
4090#ifndef __GNUC__
4091 choke me
4092#endif
4093
4094 ;
4095 return 0;
4096}
4097_ACEOF
4098if ac_fn_c_try_compile "$LINENO"; then :
4099 ac_compiler_gnu=yes
4100else
4101 ac_compiler_gnu=no
4102fi
4103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4104ac_cv_c_compiler_gnu=$ac_compiler_gnu
4105
4106fi
4107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4108$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4109if test $ac_compiler_gnu = yes; then
4110 GCC=yes
4111else
4112 GCC=
4113fi
4114ac_test_CFLAGS=${CFLAGS+set}
4115ac_save_CFLAGS=$CFLAGS
4116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4117$as_echo_n "checking whether $CC accepts -g... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004118if ${ac_cv_prog_cc_g+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004119 $as_echo_n "(cached) " >&6
4120else
4121 ac_save_c_werror_flag=$ac_c_werror_flag
4122 ac_c_werror_flag=yes
4123 ac_cv_prog_cc_g=no
4124 CFLAGS="-g"
4125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4126/* end confdefs.h. */
4127
4128int
4129main ()
4130{
4131
4132 ;
4133 return 0;
4134}
4135_ACEOF
4136if ac_fn_c_try_compile "$LINENO"; then :
4137 ac_cv_prog_cc_g=yes
4138else
4139 CFLAGS=""
4140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4141/* end confdefs.h. */
4142
4143int
4144main ()
4145{
4146
4147 ;
4148 return 0;
4149}
4150_ACEOF
4151if ac_fn_c_try_compile "$LINENO"; then :
4152
4153else
4154 ac_c_werror_flag=$ac_save_c_werror_flag
4155 CFLAGS="-g"
4156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4157/* end confdefs.h. */
4158
4159int
4160main ()
4161{
4162
4163 ;
4164 return 0;
4165}
4166_ACEOF
4167if ac_fn_c_try_compile "$LINENO"; then :
4168 ac_cv_prog_cc_g=yes
4169fi
4170rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4171fi
4172rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4173fi
4174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4175 ac_c_werror_flag=$ac_save_c_werror_flag
4176fi
4177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4178$as_echo "$ac_cv_prog_cc_g" >&6; }
4179if test "$ac_test_CFLAGS" = set; then
4180 CFLAGS=$ac_save_CFLAGS
4181elif test $ac_cv_prog_cc_g = yes; then
4182 if test "$GCC" = yes; then
4183 CFLAGS="-g -O2"
4184 else
4185 CFLAGS="-g"
4186 fi
4187else
4188 if test "$GCC" = yes; then
4189 CFLAGS="-O2"
4190 else
4191 CFLAGS=
4192 fi
4193fi
4194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4195$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004196if ${ac_cv_prog_cc_c89+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004197 $as_echo_n "(cached) " >&6
4198else
4199 ac_cv_prog_cc_c89=no
4200ac_save_CC=$CC
4201cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4202/* end confdefs.h. */
4203#include <stdarg.h>
4204#include <stdio.h>
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004205struct stat;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004206/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4207struct buf { int x; };
4208FILE * (*rcsopen) (struct buf *, struct stat *, int);
4209static char *e (p, i)
4210 char **p;
4211 int i;
4212{
4213 return p[i];
4214}
4215static char *f (char * (*g) (char **, int), char **p, ...)
4216{
4217 char *s;
4218 va_list v;
4219 va_start (v,p);
4220 s = g (p, va_arg (v,int));
4221 va_end (v);
4222 return s;
4223}
4224
4225/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4226 function prototypes and stuff, but not '\xHH' hex character constants.
4227 These don't provoke an error unfortunately, instead are silently treated
4228 as 'x'. The following induces an error, until -std is added to get
4229 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4230 array size at least. It's necessary to write '\x00'==0 to get something
4231 that's true only with -std. */
4232int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4233
4234/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4235 inside strings and character constants. */
4236#define FOO(x) 'x'
4237int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4238
4239int test (int i, double x);
4240struct s1 {int (*f) (int a);};
4241struct s2 {int (*f) (double a);};
4242int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4243int argc;
4244char **argv;
4245int
4246main ()
4247{
4248return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4249 ;
4250 return 0;
4251}
4252_ACEOF
4253for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4254 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4255do
4256 CC="$ac_save_CC $ac_arg"
4257 if ac_fn_c_try_compile "$LINENO"; then :
4258 ac_cv_prog_cc_c89=$ac_arg
4259fi
4260rm -f core conftest.err conftest.$ac_objext
4261 test "x$ac_cv_prog_cc_c89" != "xno" && break
4262done
4263rm -f conftest.$ac_ext
4264CC=$ac_save_CC
4265
4266fi
4267# AC_CACHE_VAL
4268case "x$ac_cv_prog_cc_c89" in
4269 x)
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4271$as_echo "none needed" >&6; } ;;
4272 xno)
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4274$as_echo "unsupported" >&6; } ;;
4275 *)
4276 CC="$CC $ac_cv_prog_cc_c89"
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4278$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4279esac
4280if test "x$ac_cv_prog_cc_c89" != xno; then :
4281
4282fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004283
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004284ac_ext=c
4285ac_cpp='$CPP $CPPFLAGS'
4286ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4287ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4288ac_compiler_gnu=$ac_cv_c_compiler_gnu
4289
Theodore Ts'o9b3018a2011-08-11 14:56:49 -04004290if test "$GCC" = yes; then
4291 RDYNAMIC="-rdynamic"
4292
4293fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004294ac_ext=c
4295ac_cpp='$CPP $CPPFLAGS'
4296ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4297ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4298ac_compiler_gnu=$ac_cv_c_compiler_gnu
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004300$as_echo_n "checking how to run the C preprocessor... " >&6; }
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004301# On Suns, sometimes $CPP names a directory.
4302if test -n "$CPP" && test -d "$CPP"; then
4303 CPP=
4304fi
4305if test -z "$CPP"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004306 if ${ac_cv_prog_CPP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004307 $as_echo_n "(cached) " >&6
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004308else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004309 # Double quotes because CPP needs to be expanded
4310 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4311 do
4312 ac_preproc_ok=false
4313for ac_c_preproc_warn_flag in '' yes
4314do
4315 # Use a header file that comes with gcc, so configuring glibc
4316 # with a fresh cross-compiler works.
4317 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4318 # <limits.h> exists even on freestanding compilers.
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004319 # On the NeXT, cc -E runs the code through the compiler's parser,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004320 # not just through cpp. "Syntax error" is here to catch this case.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004322/* end confdefs.h. */
4323#ifdef __STDC__
4324# include <limits.h>
4325#else
4326# include <assert.h>
4327#endif
4328 Syntax error
4329_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004330if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004331
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004332else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004333 # Broken: fails on valid input.
4334continue
4335fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004336rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004337
Theodore Ts'oe1052142006-10-21 21:46:47 -04004338 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004339 # can be detected and how.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004341/* end confdefs.h. */
4342#include <ac_nonexistent.h>
4343_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004344if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004345 # Broken: success on invalid input.
4346continue
Theodore Ts'of8bd9801999-10-26 04:19:45 +00004347else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004348 # Passes both tests.
4349ac_preproc_ok=:
4350break
4351fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004352rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004353
4354done
4355# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004356rm -f conftest.i conftest.err conftest.$ac_ext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004357if $ac_preproc_ok; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004358 break
4359fi
4360
4361 done
4362 ac_cv_prog_CPP=$CPP
4363
4364fi
4365 CPP=$ac_cv_prog_CPP
4366else
4367 ac_cv_prog_CPP=$CPP
4368fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004370$as_echo "$CPP" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004371ac_preproc_ok=false
4372for ac_c_preproc_warn_flag in '' yes
4373do
4374 # Use a header file that comes with gcc, so configuring glibc
4375 # with a fresh cross-compiler works.
4376 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4377 # <limits.h> exists even on freestanding compilers.
4378 # On the NeXT, cc -E runs the code through the compiler's parser,
4379 # not just through cpp. "Syntax error" is here to catch this case.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004381/* end confdefs.h. */
4382#ifdef __STDC__
4383# include <limits.h>
4384#else
4385# include <assert.h>
4386#endif
4387 Syntax error
4388_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004389if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004390
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004391else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004392 # Broken: fails on valid input.
4393continue
4394fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004395rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004396
Theodore Ts'oe1052142006-10-21 21:46:47 -04004397 # OK, works on sane cases. Now check whether nonexistent headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004398 # can be detected and how.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004400/* end confdefs.h. */
4401#include <ac_nonexistent.h>
4402_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004403if ac_fn_c_try_cpp "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004404 # Broken: success on invalid input.
4405continue
4406else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004407 # Passes both tests.
4408ac_preproc_ok=:
4409break
4410fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004411rm -f conftest.err conftest.i conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004412
4413done
4414# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004415rm -f conftest.i conftest.err conftest.$ac_ext
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004416if $ac_preproc_ok; then :
4417
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004418else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004419 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004420$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10004421as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4422See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004423fi
4424
4425ac_ext=c
4426ac_cpp='$CPP $CPPFLAGS'
4427ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4428ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4429ac_compiler_gnu=$ac_cv_c_compiler_gnu
4430
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004432$as_echo_n "checking for additional special compiler flags... " >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004433if test "$GCC" = yes
4434then
4435 case "$host_cpu" in
4436 alpha) addcflags="-mieee" ;;
4437 esac
4438fi
4439if test "x$addcflags" != x
4440then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004442$as_echo "$addcflags" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004443 CFLAGS="$addcflags $CFLAGS"
4444else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004446$as_echo "(none)" >&6; }
Matthias Andreeb1c92f92004-02-23 21:30:11 +01004447fi
Theodore Ts'o93613952014-07-03 23:44:13 -04004448
4449{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4450$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4451if ${ac_cv_path_GREP+:} false; then :
4452 $as_echo_n "(cached) " >&6
4453else
4454 if test -z "$GREP"; then
4455 ac_path_GREP_found=false
4456 # Loop through the user's path and test for each of PROGNAME-LIST
4457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4458for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4459do
4460 IFS=$as_save_IFS
4461 test -z "$as_dir" && as_dir=.
4462 for ac_prog in grep ggrep; do
4463 for ac_exec_ext in '' $ac_executable_extensions; do
4464 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4465 as_fn_executable_p "$ac_path_GREP" || continue
4466# Check for GNU ac_path_GREP and select it if it is found.
4467 # Check for GNU $ac_path_GREP
4468case `"$ac_path_GREP" --version 2>&1` in
4469*GNU*)
4470 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4471*)
4472 ac_count=0
4473 $as_echo_n 0123456789 >"conftest.in"
4474 while :
4475 do
4476 cat "conftest.in" "conftest.in" >"conftest.tmp"
4477 mv "conftest.tmp" "conftest.in"
4478 cp "conftest.in" "conftest.nl"
4479 $as_echo 'GREP' >> "conftest.nl"
4480 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4481 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4482 as_fn_arith $ac_count + 1 && ac_count=$as_val
4483 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4484 # Best one so far, save it but keep looking for a better one
4485 ac_cv_path_GREP="$ac_path_GREP"
4486 ac_path_GREP_max=$ac_count
4487 fi
4488 # 10*(2^10) chars as input seems more than enough
4489 test $ac_count -gt 10 && break
4490 done
4491 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4492esac
4493
4494 $ac_path_GREP_found && break 3
4495 done
4496 done
4497 done
4498IFS=$as_save_IFS
4499 if test -z "$ac_cv_path_GREP"; then
4500 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4501 fi
4502else
4503 ac_cv_path_GREP=$GREP
4504fi
4505
4506fi
4507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4508$as_echo "$ac_cv_path_GREP" >&6; }
4509 GREP="$ac_cv_path_GREP"
4510
4511
4512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4513$as_echo_n "checking for egrep... " >&6; }
4514if ${ac_cv_path_EGREP+:} false; then :
4515 $as_echo_n "(cached) " >&6
4516else
4517 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4518 then ac_cv_path_EGREP="$GREP -E"
4519 else
4520 if test -z "$EGREP"; then
4521 ac_path_EGREP_found=false
4522 # Loop through the user's path and test for each of PROGNAME-LIST
4523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4524for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4525do
4526 IFS=$as_save_IFS
4527 test -z "$as_dir" && as_dir=.
4528 for ac_prog in egrep; do
4529 for ac_exec_ext in '' $ac_executable_extensions; do
4530 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4531 as_fn_executable_p "$ac_path_EGREP" || continue
4532# Check for GNU ac_path_EGREP and select it if it is found.
4533 # Check for GNU $ac_path_EGREP
4534case `"$ac_path_EGREP" --version 2>&1` in
4535*GNU*)
4536 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4537*)
4538 ac_count=0
4539 $as_echo_n 0123456789 >"conftest.in"
4540 while :
4541 do
4542 cat "conftest.in" "conftest.in" >"conftest.tmp"
4543 mv "conftest.tmp" "conftest.in"
4544 cp "conftest.in" "conftest.nl"
4545 $as_echo 'EGREP' >> "conftest.nl"
4546 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4547 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4548 as_fn_arith $ac_count + 1 && ac_count=$as_val
4549 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4550 # Best one so far, save it but keep looking for a better one
4551 ac_cv_path_EGREP="$ac_path_EGREP"
4552 ac_path_EGREP_max=$ac_count
4553 fi
4554 # 10*(2^10) chars as input seems more than enough
4555 test $ac_count -gt 10 && break
4556 done
4557 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4558esac
4559
4560 $ac_path_EGREP_found && break 3
4561 done
4562 done
4563 done
4564IFS=$as_save_IFS
4565 if test -z "$ac_cv_path_EGREP"; then
4566 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4567 fi
4568else
4569 ac_cv_path_EGREP=$EGREP
4570fi
4571
4572 fi
4573fi
4574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4575$as_echo "$ac_cv_path_EGREP" >&6; }
4576 EGREP="$ac_cv_path_EGREP"
4577
4578
4579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4580$as_echo_n "checking for ANSI C header files... " >&6; }
4581if ${ac_cv_header_stdc+:} false; then :
4582 $as_echo_n "(cached) " >&6
4583else
4584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4585/* end confdefs.h. */
4586#include <stdlib.h>
4587#include <stdarg.h>
4588#include <string.h>
4589#include <float.h>
4590
4591int
4592main ()
4593{
4594
4595 ;
4596 return 0;
4597}
4598_ACEOF
4599if ac_fn_c_try_compile "$LINENO"; then :
4600 ac_cv_header_stdc=yes
4601else
4602 ac_cv_header_stdc=no
4603fi
4604rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4605
4606if test $ac_cv_header_stdc = yes; then
4607 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4609/* end confdefs.h. */
4610#include <string.h>
4611
4612_ACEOF
4613if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4614 $EGREP "memchr" >/dev/null 2>&1; then :
4615
4616else
4617 ac_cv_header_stdc=no
4618fi
4619rm -f conftest*
4620
4621fi
4622
4623if test $ac_cv_header_stdc = yes; then
4624 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4626/* end confdefs.h. */
4627#include <stdlib.h>
4628
4629_ACEOF
4630if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4631 $EGREP "free" >/dev/null 2>&1; then :
4632
4633else
4634 ac_cv_header_stdc=no
4635fi
4636rm -f conftest*
4637
4638fi
4639
4640if test $ac_cv_header_stdc = yes; then
4641 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4642 if test "$cross_compiling" = yes; then :
4643 :
4644else
4645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4646/* end confdefs.h. */
4647#include <ctype.h>
4648#include <stdlib.h>
4649#if ((' ' & 0x0FF) == 0x020)
4650# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4651# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4652#else
4653# define ISLOWER(c) \
4654 (('a' <= (c) && (c) <= 'i') \
4655 || ('j' <= (c) && (c) <= 'r') \
4656 || ('s' <= (c) && (c) <= 'z'))
4657# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4658#endif
4659
4660#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4661int
4662main ()
4663{
4664 int i;
4665 for (i = 0; i < 256; i++)
4666 if (XOR (islower (i), ISLOWER (i))
4667 || toupper (i) != TOUPPER (i))
4668 return 2;
4669 return 0;
4670}
4671_ACEOF
4672if ac_fn_c_try_run "$LINENO"; then :
4673
4674else
4675 ac_cv_header_stdc=no
4676fi
4677rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4678 conftest.$ac_objext conftest.beam conftest.$ac_ext
4679fi
4680
4681fi
4682fi
4683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4684$as_echo "$ac_cv_header_stdc" >&6; }
4685if test $ac_cv_header_stdc = yes; then
4686
4687$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4688
4689fi
4690
4691# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4692for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4693 inttypes.h stdint.h unistd.h
4694do :
4695 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4696ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4697"
4698if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4699 cat >>confdefs.h <<_ACEOF
4700#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4701_ACEOF
4702
4703fi
4704
4705done
4706
4707
4708
4709 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4710if test "x$ac_cv_header_minix_config_h" = xyes; then :
4711 MINIX=yes
4712else
4713 MINIX=
4714fi
4715
4716
4717 if test "$MINIX" = yes; then
4718
4719$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4720
4721
4722$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4723
4724
4725$as_echo "#define _MINIX 1" >>confdefs.h
4726
4727 fi
4728
4729
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4731$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4732if ${ac_cv_safe_to_define___extensions__+:} false; then :
4733 $as_echo_n "(cached) " >&6
4734else
4735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4736/* end confdefs.h. */
4737
4738# define __EXTENSIONS__ 1
4739 $ac_includes_default
4740int
4741main ()
4742{
4743
4744 ;
4745 return 0;
4746}
4747_ACEOF
4748if ac_fn_c_try_compile "$LINENO"; then :
4749 ac_cv_safe_to_define___extensions__=yes
4750else
4751 ac_cv_safe_to_define___extensions__=no
4752fi
4753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4754fi
4755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4756$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4757 test $ac_cv_safe_to_define___extensions__ = yes &&
4758 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4759
4760 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4761
4762 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4763
4764 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4765
4766 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4767
4768
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004769LIB_EXT=.a
4770STATIC_LIB_EXT=.a
Theodore Ts'o14b596d2009-04-22 09:18:30 -04004771PROFILED_LIB_EXT=.a
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05004772
Theodore Ts'oe1052142006-10-21 21:46:47 -04004773# Check whether --with-root-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004774if test "${with_root_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004775 withval=$with_root_prefix; root_prefix=$withval
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +00004776else
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +00004777 root_prefix=NONE
Theodore Ts'oe1052142006-10-21 21:46:47 -04004778fi
4779# Check whether --enable-maintainer-mode was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004780if test "${enable_maintainer_mode+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004781 enableval=$enable_maintainer_mode; if test "$enableval" = "no"
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004782then
4783 MAINTAINER_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004785$as_echo "Disabling maintainer mode" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004786else
4787 MAINTAINER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004789$as_echo "Enabling maintainer mode" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004790fi
4791
4792else
4793 MAINTAINER_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004795$as_echo "Disabling maintainer mode by default" >&6; }
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004796
Theodore Ts'oe1052142006-10-21 21:46:47 -04004797fi
Theodore Ts'o98919bd2005-02-04 10:43:58 -05004798
Theodore Ts'oe1052142006-10-21 21:46:47 -04004799
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04004800# Check whether --enable-symlink-install was given.
4801if test "${enable_symlink_install+set}" = set; then :
4802 enableval=$enable_symlink_install; if test "$enableval" = "no"
4803then
4804 LINK_INSTALL_FLAGS=-f
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5
4806$as_echo "Disabling symlinks for install" >&6; }
4807else
4808 LINK_INSTALL_FLAGS=-sf
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5
4810$as_echo "Enabling symlinks for install" >&6; }
4811fi
4812
4813else
4814 LINK_INSTALL_FLAGS=-f
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install by default" >&5
4816$as_echo "Disabling symlinks for install by default" >&6; }
4817
4818fi
4819
4820
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004821relative_symlink_defined=
4822# Check whether --enable-relative-symlinks was given.
4823if test "${enable_relative_symlinks+set}" = set; then :
4824 enableval=$enable_relative_symlinks; if test "$enableval" = "no"
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004825then
4826 SYMLINK_RELATIVE=
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004827 relative_symlink_defined=yes
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4829$as_echo "Disabling relative symlinks for install" >&6; }
4830else
4831 SYMLINK_RELATIVE=--relative
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004832 relative_symlink_defined=yes
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4834$as_echo "Enabling relative symlinks for install" >&6; }
4835fi
4836fi
4837
4838# Check whether --enable-symlink-relative-symlinks was given.
4839if test "${enable_symlink_relative_symlinks+set}" = set; then :
4840 enableval=$enable_symlink_relative_symlinks; if test "$enableval" = "no"
4841then
4842 SYMLINK_RELATIVE=yes
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install" >&5
4844$as_echo "Disabling relative symlinks for install" >&6; }
4845else
4846 SYMLINK_RELATIVE=--relative
4847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling relative symlinks for install" >&5
4848$as_echo "Enabling relative symlinks for install" >&6; }
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004849fi
4850
4851else
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004852 if test -z "$relative_symlink_defined"
4853then
4854 SYMLINK_RELATIVE=
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling relative symlinks for install by default" >&5
4856$as_echo "Disabling relative symlinks for install by default" >&6; }
Theodore Ts'o91d11da2012-09-06 23:01:14 -04004857fi
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04004858
4859fi
4860
4861
4862# Check whether --enable-symlink-build was given.
4863if test "${enable_symlink_build+set}" = set; then :
4864 enableval=$enable_symlink_build; if test "$enableval" = "no"
4865then
4866 LINK_BUILD_FLAGS=
4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5
4868$as_echo "Disabling symlinks for build" >&6; }
4869else
4870 LINK_BUILD_FLAGS=-s
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5
4872$as_echo "Enabling symlinks for build" >&6; }
4873fi
4874
4875else
4876 LINK_BUILD_FLAGS=
Theodore Ts'o183c73b2012-05-12 23:13:24 -04004877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build by default" >&5
4878$as_echo "Disabling symlinks for build by default" >&6; }
Theodore Ts'o5aa6c3f2010-05-17 19:21:42 -04004879
4880fi
4881
4882
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004883# Check whether --enable-verbose-makecmds was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004884if test "${enable_verbose_makecmds+set}" = set; then :
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004885 enableval=$enable_verbose_makecmds; if test "$enableval" = "no"
4886then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004888$as_echo "Disabling verbose make commands" >&6; }
4889 E=@echo
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004890 ES=echo
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004891 Q=@
4892else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004894$as_echo "Enabling verbose make commands" >&6; }
4895 E=@\\#
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004896 ES=\\#
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004897 Q=
4898fi
4899
4900else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004902$as_echo "Disabling verbose make commands" >&6; }
4903E=@echo
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004904ES=echo
Theodore Ts'oc13351f2009-07-02 00:11:17 -04004905Q=@
4906
4907fi
4908
4909
4910
Theodore Ts'oc1986ec2012-06-13 15:29:13 -04004911
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004912E2_PKG_CONFIG_STATIC=--static
Theodore Ts'o55da9872008-09-02 23:12:38 -04004913LDFLAG_DYNAMIC=
4914PRIVATE_LIBS_CMT=
Theodore Ts'oe1052142006-10-21 21:46:47 -04004915# Check whether --enable-elf-shlibs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004916if test "${enable_elf_shlibs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004917 enableval=$enable_elf_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004918then
4919 ELF_CMT=#
4920 MAKEFILE_ELF=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004922$as_echo "Disabling ELF shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004923else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004924 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004925 ELF_CMT=
4926 MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib
Theodore Ts'of5955dd2000-10-25 02:38:39 +00004927 case "$host_os" in
4928 solaris2.*)
4929 MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib
4930 ;;
4931 esac
Theodore Ts'o74becf31997-04-26 14:37:06 +00004932 BINARY_TYPE=elfbin
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004933 LIB_EXT=.so
Theodore Ts'o55da9872008-09-02 23:12:38 -04004934 PRIVATE_LIBS_CMT=#
4935 LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib'
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004937$as_echo "Enabling ELF shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004938fi
4939
4940else
4941 MAKEFILE_ELF=/dev/null
4942ELF_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004944$as_echo "Disabling ELF shared libraries by default" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004945
Theodore Ts'oe1052142006-10-21 21:46:47 -04004946fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004947
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004948
Theodore Ts'oe1052142006-10-21 21:46:47 -04004949
4950# Check whether --enable-bsd-shlibs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004951if test "${enable_bsd_shlibs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004952 enableval=$enable_bsd_shlibs; if test "$enableval" = "no"
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004953then
4954 BSDLIB_CMT=#
4955 MAKEFILE_BSDLIB=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004957$as_echo "Disabling BSD shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004958else
Theodore Ts'oa4ece352008-01-01 20:05:04 -05004959 E2_PKG_CONFIG_STATIC=
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004960 BSDLIB_CMT=
4961 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib
Theodore Ts'oa4d09611997-04-29 14:28:00 +00004962 LIB_EXT=.so
Theodore Ts'oe1f07222003-03-14 02:25:36 -05004963 case "$host_os" in
Theodore Ts'oaa75ecc2003-03-17 10:01:22 -05004964 darwin*)
Theodore Ts'oe1f07222003-03-14 02:25:36 -05004965 MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib
4966 LIB_EXT=.dylib
4967 ;;
4968 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004970$as_echo "Enabling BSD shared libraries" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004971fi
4972
4973else
4974 MAKEFILE_BSDLIB=/dev/null
4975BSDLIB_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004977$as_echo "Disabling BSD shared libraries by default" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004978
Theodore Ts'oe1052142006-10-21 21:46:47 -04004979fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04004980
Theodore Ts'o50e1e101997-04-26 13:58:21 +00004981
Theodore Ts'oe1052142006-10-21 21:46:47 -04004982
4983# Check whether --enable-profile was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004984if test "${enable_profile+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04004985 enableval=$enable_profile; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004986then
4987 PROFILE_CMT=#
4988 MAKEFILE_PROFILE=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004990$as_echo "Disabling profiling libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004991else
4992 PROFILE_CMT=
4993 MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile
4994 PROFILED_LIB_EXT=_p.a
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05004995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01004996$as_echo "Building profiling libraries" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00004997fi
4998
4999else
5000 PROFILE_CMT=#
5001MAKEFILE_PROFILE=/dev/null
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005003$as_echo "Disabling profiling libraries by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005004
Theodore Ts'oe1052142006-10-21 21:46:47 -04005005fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005006
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005007
Theodore Ts'oe1052142006-10-21 21:46:47 -04005008
Theodore Ts'ofedfb272014-02-23 00:17:09 -05005009# Check whether --enable-gcov was given.
5010if test "${enable_gcov+set}" = set; then :
5011 enableval=$enable_gcov; if test "$enableval" = "yes"
5012then
5013 CFLAGS="-g -fprofile-arcs -ftest-coverage"
5014 LDFLAGS="-fprofile-arcs -ftest-coverage"
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling gcov support" >&5
5016$as_echo "Enabling gcov support" >&6; }
5017fi
5018
5019fi
5020
Theodore Ts'ofd1677e2016-05-21 23:51:19 -04005021CFLAGS_SHLIB="${CFLAGS_SHLIB:-$CFLAGS}"
5022CFLAGS_STLIB="${CFLAGS_STLIB:-$CFLAGS}"
5023LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
5024LDFLAGS_STATIC=${LDFLAGS_STATIC:-$LDFLAGS}
5025# Check whether --enable-hardening was given.
5026if test "${enable_hardening+set}" = set; then :
5027 enableval=$enable_hardening; if test "$enableval" = "yes"
5028then
5029 HARDEN_CFLAGS="-D_FORTIFY_SOURCE=2 -fstack-protector-strong"
5030 HARDEN_LDFLAGS="-Wl,-z,relro -Wl,-z,now"
5031 CFLAGS="$CFLAGS $HARDEN_CFLAGS -fPIE"
5032 CFLAGS_SHLIB="$CFLAGS_SHLIB $HARDEN_CFLAGS"
5033 CFLAGS_STLIB="$CFLAGS_STLIB $HARDEN_CFLAGS -fPIE"
5034 LDFLAGS="$LDFLAGS $HARDEN_LDFLAGS -fPIE -pie"
5035 LDFLAGS_STATIC="$LDFLAGS_STATIC $HARDEN_LDFLAGS"
5036 LDFLAGS_SHLIB="$LDFLAGS_SHLIB $HARDEN_LDFLAGS"
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling hardening support" >&5
5038$as_echo "Enabling hardening support" >&6; }
5039fi
5040
5041fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005042
5043
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005044
Theodore Ts'oe1052142006-10-21 21:46:47 -04005045
Theodore Ts'o55da9872008-09-02 23:12:38 -04005046
5047
Theodore Ts'oe1052142006-10-21 21:46:47 -04005048# Check whether --enable-jbd-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005049if test "${enable_jbd_debug+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005050 enableval=$enable_jbd_debug; if test "$enableval" = "no"
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00005051then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005053$as_echo "Disabling journal debugging" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00005054else
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005055
5056$as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00005057
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005059$as_echo "Enabling journal debugging" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00005060fi
5061
5062else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005064$as_echo "Disabling journal debugging by default" >&6; }
Theodore Ts'o80bfaa32000-08-18 15:08:37 +00005065
Theodore Ts'oe1052142006-10-21 21:46:47 -04005066fi
5067
5068# Check whether --enable-blkid-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005069if test "${enable_blkid_debug+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005070 enableval=$enable_blkid_debug; if test "$enableval" = "no"
Theodore Ts'of0a22d02003-02-22 13:19:53 -05005071then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005073$as_echo "Disabling blkid debugging" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05005074else
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005075
5076$as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h
Theodore Ts'of0a22d02003-02-22 13:19:53 -05005077
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005079$as_echo "Enabling blkid debugging" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05005080fi
5081
5082else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005084$as_echo "Disabling blkid debugging by default" >&6; }
Theodore Ts'of0a22d02003-02-22 13:19:53 -05005085
Theodore Ts'oe1052142006-10-21 21:46:47 -04005086fi
5087
5088# Check whether --enable-testio-debug was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005089if test "${enable_testio_debug+set}" = set; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005090 enableval=$enable_testio_debug;
5091if test "$enableval" = "no"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005092then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005094$as_echo "Disabling testio debugging" >&6; }
Theodore Ts'oaf773652008-09-01 11:27:27 -04005095 TEST_IO_CMT="#"
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005096else
Theodore Ts'oaf773652008-09-01 11:27:27 -04005097 TEST_IO_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005098 $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005099
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005101$as_echo "Enabling testio debugging" >&6; }
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005102fi
5103
5104else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005106$as_echo "Enabling testio debugging by default" >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005107$as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h
Theodore Ts'oaf773652008-09-01 11:27:27 -04005108
5109TEST_IO_CMT=
Theodore Ts'o2a29f132003-05-05 12:08:47 -04005110
Theodore Ts'oe1052142006-10-21 21:46:47 -04005111fi
5112
Theodore Ts'oaf773652008-09-01 11:27:27 -04005113
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005114
5115
Theodore Ts'o93613952014-07-03 23:44:13 -04005116
5117
5118
5119
5120
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005121if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04005122 if test -n "$ac_tool_prefix"; then
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005123 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5124set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005126$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005127if ${ac_cv_path_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005128 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005129else
5130 case $PKG_CONFIG in
5131 [\\/]* | ?:[\\/]*)
5132 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5133 ;;
5134 *)
5135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5136for as_dir in $PATH
5137do
5138 IFS=$as_save_IFS
5139 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005140 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005142 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005144 break 2
5145 fi
5146done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005147 done
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005148IFS=$as_save_IFS
5149
5150 ;;
5151esac
5152fi
5153PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5154if test -n "$PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005156$as_echo "$PKG_CONFIG" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005157else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005159$as_echo "no" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005160fi
5161
5162
5163fi
5164if test -z "$ac_cv_path_PKG_CONFIG"; then
5165 ac_pt_PKG_CONFIG=$PKG_CONFIG
5166 # Extract the first word of "pkg-config", so it can be a program name with args.
5167set dummy pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005169$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005170if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005171 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005172else
5173 case $ac_pt_PKG_CONFIG in
5174 [\\/]* | ?:[\\/]*)
5175 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5176 ;;
5177 *)
5178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5179for as_dir in $PATH
5180do
5181 IFS=$as_save_IFS
5182 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005183 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005185 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005187 break 2
5188 fi
5189done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005190 done
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005191IFS=$as_save_IFS
5192
5193 ;;
5194esac
5195fi
5196ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5197if test -n "$ac_pt_PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005199$as_echo "$ac_pt_PKG_CONFIG" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005200else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005202$as_echo "no" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005203fi
5204
5205 if test "x$ac_pt_PKG_CONFIG" = x; then
5206 PKG_CONFIG=""
5207 else
5208 case $cross_compiling:$ac_tool_warned in
5209yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005210{ $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 +01005211$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005212ac_tool_warned=yes ;;
5213esac
5214 PKG_CONFIG=$ac_pt_PKG_CONFIG
5215 fi
5216else
5217 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5218fi
5219
5220fi
5221if test -n "$PKG_CONFIG"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04005222 _pkg_min_version=0.9.0
5223 { $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 +01005224$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005225 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005227$as_echo "yes" >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005228 else
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005230$as_echo "no" >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005231 PKG_CONFIG=""
5232 fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005233fi
5234LIBUUID=
5235DEPLIBUUID=
5236STATIC_LIBUUID=
5237DEPSTATIC_LIBUUID=
5238PROFILED_LIBUUID=
5239DEPPROFILED_LIBUUID=
5240UUID_CMT=
5241# Check whether --enable-libuuid was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005242if test "${enable_libuuid+set}" = set; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005243 enableval=$enable_libuuid; if test "$enableval" = "no"
5244then
5245 if test -z "$PKG_CONFIG"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005246 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005247 fi
5248
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005250$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005251if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005252 $as_echo_n "(cached) " >&6
5253else
5254 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'o2d7583b2014-07-05 00:27:02 -04005255LIBS="-luuid $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005256cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005257/* end confdefs.h. */
5258
5259/* Override any GCC internal prototype to avoid an error.
5260 Use char because int might match the return type of a GCC
5261 builtin and then its argument prototype would still apply. */
5262#ifdef __cplusplus
5263extern "C"
5264#endif
5265char uuid_generate ();
5266int
5267main ()
5268{
5269return uuid_generate ();
5270 ;
5271 return 0;
5272}
5273_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005274if ac_fn_c_try_link "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005275 ac_cv_lib_uuid_uuid_generate=yes
5276else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005277 ac_cv_lib_uuid_uuid_generate=no
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005278fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005279rm -f core conftest.err conftest.$ac_objext \
5280 conftest$ac_exeext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005281LIBS=$ac_check_lib_save_LIBS
5282fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005284$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005285if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005286 LIBUUID=`$PKG_CONFIG --libs uuid`;
5287 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5288else
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005289 as_fn_error $? "external uuid library not found" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005290fi
5291
Theodore Ts'o5afdf372014-09-18 21:11:33 -04005292 PROFILED_LIBUUID=$LIBUUID
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005293 UUID_CMT=#
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005295$as_echo "Disabling private uuid library" >&6; }
5296else
5297 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5298 DEPLIBUUID=$LIBUUID
5299 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5300 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5301 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5302 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005304$as_echo "Enabling private uuid library" >&6; }
5305fi
5306
5307else
Theodore Ts'of5dffb82015-06-20 14:20:14 -04005308 if test -n "$PKG_CONFIG"; then
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5
5310$as_echo_n "checking for uuid_generate in -luuid... " >&6; }
5311if ${ac_cv_lib_uuid_uuid_generate+:} false; then :
5312 $as_echo_n "(cached) " >&6
5313else
5314 ac_check_lib_save_LIBS=$LIBS
5315LIBS="-luuid $LIBS"
5316cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5317/* end confdefs.h. */
5318
5319/* Override any GCC internal prototype to avoid an error.
5320 Use char because int might match the return type of a GCC
5321 builtin and then its argument prototype would still apply. */
5322#ifdef __cplusplus
5323extern "C"
5324#endif
5325char uuid_generate ();
5326int
5327main ()
5328{
5329return uuid_generate ();
5330 ;
5331 return 0;
5332}
5333_ACEOF
5334if ac_fn_c_try_link "$LINENO"; then :
5335 ac_cv_lib_uuid_uuid_generate=yes
5336else
5337 ac_cv_lib_uuid_uuid_generate=no
5338fi
5339rm -f core conftest.err conftest.$ac_objext \
5340 conftest$ac_exeext conftest.$ac_ext
5341LIBS=$ac_check_lib_save_LIBS
5342fi
5343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5
5344$as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; }
5345if test "x$ac_cv_lib_uuid_uuid_generate" = xyes; then :
5346 LIBUUID=`$PKG_CONFIG --libs uuid`;
5347 STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid`
5348fi
5349
5350fi
5351if test -n "$LIBUUID"; then
5352 PROFILED_LIBUUID=$LIBUUID
5353 UUID_CMT=#
5354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system uuid by default" >&5
5355$as_echo "Using system uuid by default" >&6; }
5356else
5357 LIBUUID='$(LIB)/libuuid'$LIB_EXT
5358 DEPLIBUUID=$LIBUUID
5359 STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT
5360 DEPSTATIC_LIBUUID=$STATIC_LIBUUID
5361 PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT
5362 DEPPROFILED_LIBUUID=$PROFILED_LIBUUID
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005364$as_echo "Enabling private uuid library by default" >&6; }
Theodore Ts'of5dffb82015-06-20 14:20:14 -04005365fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005366
5367fi
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
Theodore Ts'o93613952014-07-03 23:44:13 -04005378
5379
5380
5381
5382
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005383if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04005384 if test -n "$ac_tool_prefix"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005385 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
5386set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005388$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005389if ${ac_cv_path_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005390 $as_echo_n "(cached) " >&6
5391else
5392 case $PKG_CONFIG in
5393 [\\/]* | ?:[\\/]*)
5394 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5395 ;;
5396 *)
5397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5398for as_dir in $PATH
5399do
5400 IFS=$as_save_IFS
5401 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005402 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005404 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005406 break 2
5407 fi
5408done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005409 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005410IFS=$as_save_IFS
5411
5412 ;;
5413esac
5414fi
5415PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5416if test -n "$PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005418$as_echo "$PKG_CONFIG" >&6; }
5419else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005421$as_echo "no" >&6; }
5422fi
5423
5424
5425fi
5426if test -z "$ac_cv_path_PKG_CONFIG"; then
5427 ac_pt_PKG_CONFIG=$PKG_CONFIG
5428 # Extract the first word of "pkg-config", so it can be a program name with args.
5429set dummy pkg-config; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005431$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005432if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005433 $as_echo_n "(cached) " >&6
5434else
5435 case $ac_pt_PKG_CONFIG in
5436 [\\/]* | ?:[\\/]*)
5437 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
5438 ;;
5439 *)
5440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5441for as_dir in $PATH
5442do
5443 IFS=$as_save_IFS
5444 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005445 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005447 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005449 break 2
5450 fi
5451done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005452 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005453IFS=$as_save_IFS
5454
5455 ;;
5456esac
5457fi
5458ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
5459if test -n "$ac_pt_PKG_CONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005461$as_echo "$ac_pt_PKG_CONFIG" >&6; }
5462else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005464$as_echo "no" >&6; }
5465fi
5466
5467 if test "x$ac_pt_PKG_CONFIG" = x; then
5468 PKG_CONFIG=""
5469 else
5470 case $cross_compiling:$ac_tool_warned in
5471yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005472{ $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 +01005473$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5474ac_tool_warned=yes ;;
5475esac
5476 PKG_CONFIG=$ac_pt_PKG_CONFIG
5477 fi
5478else
5479 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
5480fi
5481
5482fi
5483if test -n "$PKG_CONFIG"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04005484 _pkg_min_version=0.9.0
5485 { $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 +01005486$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005487 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005489$as_echo "yes" >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005490 else
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005492$as_echo "no" >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04005493 PKG_CONFIG=""
5494 fi
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005495fi
5496LIBBLKID=
5497DEPLIBBLKID=
5498STATIC_LIBBLKID=
5499DEPSTATIC_LIBBLKID=
5500PROFILED_LIBBLKID=
5501DEPPROFILED_LIBBLKID=
5502BLKID_CMT=
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005503
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005504# Check whether --enable-libblkid was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005505if test "${enable_libblkid+set}" = set; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005506 enableval=$enable_libblkid; if test "$enableval" = "no"
5507then
5508 if test -z "$PKG_CONFIG"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005509 as_fn_error $? "pkg-config not installed; please install it." "$LINENO" 5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005510 fi
5511
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005513$as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005514if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005515 $as_echo_n "(cached) " >&6
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005516else
5517 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'o2d7583b2014-07-05 00:27:02 -04005518LIBS="-lblkid -luuid $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005519cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005520/* end confdefs.h. */
5521
5522/* Override any GCC internal prototype to avoid an error.
5523 Use char because int might match the return type of a GCC
5524 builtin and then its argument prototype would still apply. */
5525#ifdef __cplusplus
5526extern "C"
5527#endif
5528char blkid_get_cache ();
5529int
5530main ()
5531{
5532return blkid_get_cache ();
5533 ;
5534 return 0;
5535}
5536_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005537if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005538 ac_cv_lib_blkid_blkid_get_cache=yes
5539else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005540 ac_cv_lib_blkid_blkid_get_cache=no
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005541fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005542rm -f core conftest.err conftest.$ac_objext \
5543 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005544LIBS=$ac_check_lib_save_LIBS
5545fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005547$as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005548if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005549 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5550 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5551else
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005552 as_fn_error $? "external blkid library not found" "$LINENO" 5
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005553fi
5554
5555 BLKID_CMT=#
Theodore Ts'o5afdf372014-09-18 21:11:33 -04005556 PROFILED_LIBBLKID=$LIBBLKID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005558$as_echo "Disabling private blkid library" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005559else
5560 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5561 DEPLIBBLKID=$LIBBLKID
5562 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5563 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5564 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5565 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005566 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005567
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005569$as_echo "Enabling private blkid library" >&6; }
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005570fi
5571
5572else
Theodore Ts'of5dffb82015-06-20 14:20:14 -04005573 if test -n "$PKG_CONFIG"; then
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5
5575$as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; }
5576if ${ac_cv_lib_blkid_blkid_get_cache+:} false; then :
5577 $as_echo_n "(cached) " >&6
5578else
5579 ac_check_lib_save_LIBS=$LIBS
5580LIBS="-lblkid $LIBS"
5581cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5582/* end confdefs.h. */
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005583
Theodore Ts'of5dffb82015-06-20 14:20:14 -04005584/* Override any GCC internal prototype to avoid an error.
5585 Use char because int might match the return type of a GCC
5586 builtin and then its argument prototype would still apply. */
5587#ifdef __cplusplus
5588extern "C"
5589#endif
5590char blkid_get_cache ();
5591int
5592main ()
5593{
5594return blkid_get_cache ();
5595 ;
5596 return 0;
5597}
5598_ACEOF
5599if ac_fn_c_try_link "$LINENO"; then :
5600 ac_cv_lib_blkid_blkid_get_cache=yes
5601else
5602 ac_cv_lib_blkid_blkid_get_cache=no
5603fi
5604rm -f core conftest.err conftest.$ac_objext \
5605 conftest$ac_exeext conftest.$ac_ext
5606LIBS=$ac_check_lib_save_LIBS
5607fi
5608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5
5609$as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; }
5610if test "x$ac_cv_lib_blkid_blkid_get_cache" = xyes; then :
5611 LIBBLKID=`$PKG_CONFIG --libs blkid`;
5612 STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid`
5613fi
5614
5615fi
5616if test -n "$LIBBLKID"; then
5617 BLKID_CMT=#
5618 PROFILED_LIBBLKID=$LIBBLKID
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using system blkid library by default" >&5
5620$as_echo "Using system blkid library by default" >&6; }
5621else
5622 LIBBLKID='$(LIB)/libblkid'$LIB_EXT
5623 DEPLIBBLKID=$LIBBLKID
5624 STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT
5625 DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID
5626 PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT
5627 DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID
5628 $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h
5629
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005631$as_echo "Enabling private blkid library by default" >&6; }
Theodore Ts'of5dffb82015-06-20 14:20:14 -04005632fi
Theodore Ts'o14b596d2009-04-22 09:18:30 -04005633
5634fi
5635
5636
5637
5638
5639
5640
5641
5642
Theodore Ts'o3df60142013-06-16 16:14:40 -04005643
5644# Check whether --enable-backtrace was given.
5645if test "${enable_backtrace+set}" = set; then :
5646 enableval=$enable_backtrace; if test "$enableval" = "no"
5647then
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling use of backtrace" >&5
5649$as_echo "Disabling use of backtrace" >&6; }
5650 $as_echo "#define DISABLE_BACKTRACE 1" >>confdefs.h
5651
5652else
5653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace" >&5
5654$as_echo "Enabling use of backtrace" >&6; }
5655fi
5656
5657else
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling use of backtrace by default" >&5
5659$as_echo "Enabling use of backtrace by default" >&6; }
5660
5661fi
5662
Theodore Ts'oe1052142006-10-21 21:46:47 -04005663# Check whether --enable-debugfs was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005664if test "${enable_debugfs+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005665 enableval=$enable_debugfs; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005666then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005668$as_echo "Disabling debugfs support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005669 DEBUGFS_CMT="#"
5670else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005671 DEBUGFS_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005673$as_echo "Enabling debugfs support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005674fi
5675
5676else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005678$as_echo "Enabling debugfs support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005679DEBUGFS_CMT=
5680
Theodore Ts'oe1052142006-10-21 21:46:47 -04005681fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005682
Theodore Ts'oe1052142006-10-21 21:46:47 -04005683
5684# Check whether --enable-imager was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005685if test "${enable_imager+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005686 enableval=$enable_imager; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005687then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005689$as_echo "Disabling e2image support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005690 IMAGER_CMT="#"
5691else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005692 IMAGER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005694$as_echo "Enabling e2image support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005695fi
5696
5697else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005699$as_echo "Enabling e2image support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005700IMAGER_CMT=
5701
Theodore Ts'oe1052142006-10-21 21:46:47 -04005702fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005703
Theodore Ts'oe1052142006-10-21 21:46:47 -04005704
5705# Check whether --enable-resizer was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005706if test "${enable_resizer+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005707 enableval=$enable_resizer; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005708then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005710$as_echo "Disabling e2resize support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005711 RESIZER_CMT="#"
5712else
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005713 RESIZER_CMT=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005715$as_echo "Enabling e2resize support" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005716fi
5717
5718else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005720$as_echo "Enabling e2resize support by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005721RESIZER_CMT=
5722
Theodore Ts'oe1052142006-10-21 21:46:47 -04005723fi
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005724
Theodore Ts'oe1052142006-10-21 21:46:47 -04005725
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05005726# Check whether --enable-defrag was given.
5727if test "${enable_defrag+set}" = set; then :
5728 enableval=$enable_defrag; if test "$enableval" = "no"
5729then
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5
5731$as_echo "Disabling e4defrag support" >&6; }
5732 DEFRAG_CMT="#"
5733else
5734 DEFRAG_CMT=
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5
5736$as_echo "Enabling e4defrag support" >&6; }
5737fi
5738
5739else
Theodore Ts'o6c59a662014-01-04 20:44:29 -05005740 if test -z "$WITH_DIET_LIBC"
5741then
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05005743$as_echo "Enabling e4defrag support by default" >&6; }
Theodore Ts'o6c59a662014-01-04 20:44:29 -05005744 DEFRAG_CMT=
5745else
5746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support by default" >&5
5747$as_echo "Disabling e4defrag support by default" >&6; }
5748 DEFRAG_CMT="#"
5749fi
Theodore Ts'o8d9c50c2010-12-24 15:19:44 -05005750
5751fi
5752
5753
Theodore Ts'oe1052142006-10-21 21:46:47 -04005754# Check whether --enable-fsck was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005755if test "${enable_fsck+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005756 enableval=$enable_fsck; if test "$enableval" = "no"
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005757then
5758 FSCK_PROG='' FSCK_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005760$as_echo "Not building fsck wrapper" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005761else
5762 FSCK_PROG=fsck FSCK_MAN=fsck.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005764$as_echo "Building fsck wrapper" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005765fi
5766
5767else
5768 case "$host_os" in
Theodore Ts'oe3632402004-05-04 19:39:54 -04005769 gnu*)
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005770 FSCK_PROG='' FSCK_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005772$as_echo "Not building fsck wrapper by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005773 ;;
5774 *)
5775 FSCK_PROG=fsck FSCK_MAN=fsck.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005777$as_echo "Building fsck wrapper by default" >&6; }
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005778esac
5779
Theodore Ts'oe1052142006-10-21 21:46:47 -04005780fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04005781
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00005782
Theodore Ts'oe1052142006-10-21 21:46:47 -04005783
5784# Check whether --enable-e2initrd-helper was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005785if test "${enable_e2initrd_helper+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04005786 enableval=$enable_e2initrd_helper; if test "$enableval" = "no"
Theodore Ts'o5d407732004-09-18 14:53:14 -04005787then
5788 E2INITRD_PROG='' E2INITRD_MAN=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005790$as_echo "Not building e2initrd helper" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005791else
5792 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005794$as_echo "Building e2initrd helper" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005795fi
5796
5797else
5798 E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005800$as_echo "Building e2initrd helper by default" >&6; }
Theodore Ts'o5d407732004-09-18 14:53:14 -04005801
Theodore Ts'oe1052142006-10-21 21:46:47 -04005802fi
Theodore Ts'o5d407732004-09-18 14:53:14 -04005803
5804
Theodore Ts'oe1052142006-10-21 21:46:47 -04005805
Theodore Ts'o32493942007-12-31 10:45:01 -05005806# Check whether --enable-tls was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005807if test "${enable_tls+set}" = set; then :
Theodore Ts'o32493942007-12-31 10:45:01 -05005808 enableval=$enable_tls; if test "$enableval" = "no"
5809then
5810 try_tls=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005812$as_echo "Disabling thread local support" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005813else
5814 try_tls="yes"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005816$as_echo "Enabling thread local support" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005817fi
5818
5819else
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005820 if test -n "$WITH_DIET_LIBC"
5821then
5822 try_tls=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005823 { $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 +01005824$as_echo "Diet libc does not support thread local support" >&6; }
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005825else
5826 try_tls="yes"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005828$as_echo "Try using thread local support by default" >&6; }
Theodore Ts'oeafba6c2008-07-10 10:21:42 -04005829fi
Theodore Ts'o32493942007-12-31 10:45:01 -05005830
5831fi
5832
5833if test "$try_tls" = "yes"
5834then
5835
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005837$as_echo_n "checking for thread local storage (TLS) class... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005838 if ${ac_cv_tls+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005839 $as_echo_n "(cached) " >&6
Theodore Ts'o32493942007-12-31 10:45:01 -05005840else
5841
5842 ax_tls_keywords="__thread __declspec(thread) none"
5843 for ax_tls_keyword in $ax_tls_keywords; do
5844 case $ax_tls_keyword in
5845 none) ac_cv_tls=none ; break ;;
5846 *)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'o32493942007-12-31 10:45:01 -05005848/* end confdefs.h. */
5849#include <stdlib.h>
5850 static void
5851 foo(void) {
5852 static $ax_tls_keyword int bar;
5853 exit(1);
5854 }
5855int
5856main ()
5857{
5858
5859 ;
5860 return 0;
5861}
5862_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005863if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o32493942007-12-31 10:45:01 -05005864 ac_cv_tls=$ax_tls_keyword ; break
5865else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005866 ac_cv_tls=none
Theodore Ts'o32493942007-12-31 10:45:01 -05005867
5868fi
Theodore Ts'o32493942007-12-31 10:45:01 -05005869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5870 esac
5871 done
5872
5873fi
5874
5875
5876 if test "$ac_cv_tls" != "none"; then
5877
5878cat >>confdefs.h <<_ACEOF
5879#define TLS $ac_cv_tls
5880_ACEOF
5881
5882 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005884$as_echo "$ac_cv_tls" >&6; }
Theodore Ts'o32493942007-12-31 10:45:01 -05005885
5886fi
Theodore Ts'od1154eb2011-09-18 17:34:37 -04005887
Theodore Ts'o5610f992007-12-31 11:16:56 -05005888# Check whether --enable-uuidd was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005889if test "${enable_uuidd+set}" = set; then :
Theodore Ts'o5610f992007-12-31 11:16:56 -05005890 enableval=$enable_uuidd; if test "$enableval" = "no"
5891then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005893$as_echo "Not building uuidd" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05005894 UUIDD_CMT="#"
5895else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005896 $as_echo "#define USE_UUIDD 1" >>confdefs.h
Theodore Ts'o5610f992007-12-31 11:16:56 -05005897
5898 UUIDD_CMT=""
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005900$as_echo "Building uuidd" >&6; }
Theodore Ts'o5610f992007-12-31 11:16:56 -05005901fi
5902
5903else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05005904 $as_echo "#define USE_UUIDD 1" >>confdefs.h
Theodore Ts'o5610f992007-12-31 11:16:56 -05005905
Theodore Ts'oe3d10152014-09-19 00:26:26 -04005906if test -z "$UUID_CMT"
5907then
5908 UUIDD_CMT=""
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01005910$as_echo "Building uuidd by default" >&6; }
Theodore Ts'oe3d10152014-09-19 00:26:26 -04005911else
5912 UUIDD_CMT="#"
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling uuidd by default" >&5
5914$as_echo "Disabling uuidd by default" >&6; }
5915fi
Theodore Ts'o5610f992007-12-31 11:16:56 -05005916
5917fi
5918
5919
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10005920
5921# Check whether --enable-mmp was given.
5922if test "${enable_mmp+set}" = set; then :
5923 enableval=$enable_mmp; if test "$enableval" = "no"
5924then
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling mmp support" >&5
5926$as_echo "Disabling mmp support" >&6; }
5927else
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support" >&5
5929$as_echo "Enabling mmp support" >&6; }
5930 $as_echo "#define CONFIG_MMP 1" >>confdefs.h
5931
5932fi
5933
5934else
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
5936$as_echo "Enabling mmp support by default" >&6; }
5937$as_echo "#define CONFIG_MMP 1" >>confdefs.h
5938
5939
5940fi
5941
Tony Breeds1625bf42012-07-30 14:44:12 -04005942
Theodore Ts'o749f0712016-05-29 20:48:54 -04005943# Check whether --enable-tdb was given.
5944if test "${enable_tdb+set}" = set; then :
5945 enableval=$enable_tdb; if test "$enableval" = "no"
5946then
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling tdb support" >&5
5948$as_echo "Disabling tdb support" >&6; }
5949 TDB_CMT="#"
5950 TDB_MAN_COMMENT='.\"'
5951else
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling tdb support" >&5
5953$as_echo "Enabling tdb support" >&6; }
5954 $as_echo "#define CONFIG_TDB 1" >>confdefs.h
5955
5956 TDB_CMT=""
5957 TDB_MAN_COMMENT=""
5958fi
5959
5960else
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling mmp support by default" >&5
5962$as_echo "Enabling mmp support by default" >&6; }
5963$as_echo "#define CONFIG_TDB 1" >>confdefs.h
5964
5965TDB_CMT=""
5966TDB_MAN_COMMENT=""
5967
5968fi
5969
5970
5971
5972
Tony Breeds1625bf42012-07-30 14:44:12 -04005973# Check whether --enable-bmap-stats was given.
5974if test "${enable_bmap_stats+set}" = set; then :
5975 enableval=$enable_bmap_stats; if test "$enableval" = "no"
5976then
5977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling bitmap statistics support" >&5
5978$as_echo "Disabling bitmap statistics support" >&6; }
5979else
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support" >&5
5981$as_echo "Enabling bitmap statistics support" >&6; }
5982 $as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
5983
5984fi
5985
5986else
5987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling bitmap statistics support by default" >&5
5988$as_echo "Enabling bitmap statistics support by default" >&6; }
5989$as_echo "#define ENABLE_BMAP_STATS 1" >>confdefs.h
5990
5991
5992fi
5993
5994
5995# Check whether --enable-bmap-stats-ops was given.
5996if test "${enable_bmap_stats_ops+set}" = set; then :
5997 enableval=$enable_bmap_stats_ops; if test "$enableval" = "no"
5998then
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics" >&5
6000$as_echo "Disabling additional bitmap statistics" >&6; }
6001else
6002 if test "x${enable_bmap_stats}" = "xno"; then :
6003 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6004$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6005as_fn_error $? "Error --enable-bmap-stats-ops requires bmap-stats
6006See \`config.log' for more details" "$LINENO" 5; }
6007fi
6008
6009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling additional bitmap statistics" >&5
6010$as_echo "Enabling additional bitmap statistics" >&6; }
6011 $as_echo "#define ENABLE_BMAP_STATS_OPS 1" >>confdefs.h
6012
6013fi
6014
6015else
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling additional bitmap statistics by default" >&5
6017$as_echo "Disabling additional bitmap statistics by default" >&6; }
6018
6019fi
6020
Theodore Ts'ocdf186e2001-06-13 22:16:47 +00006021MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library
6022
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006023GETTEXT_PACKAGE=e2fsprogs
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006024PACKAGE=e2fsprogs
6025VERSION="$E2FSPROGS_VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006026VERSION=0.14.1
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006027
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006028cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006029#define PACKAGE "$PACKAGE"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006030_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006031
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006032
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006033cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006034#define VERSION "$VERSION"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006035_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006036
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006037
6038
6039
6040
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006042$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6043set x ${MAKE-make}
6044ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006045if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006046 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006047else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006048 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006049SHELL = /bin/sh
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006050all:
Theodore Ts'oe1052142006-10-21 21:46:47 -04006051 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006052_ACEOF
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006053# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -04006054case `${MAKE-make} -f conftest.make 2>/dev/null` in
6055 *@@@%%%=?*=@@@%%%*)
6056 eval ac_cv_prog_make_${ac_make}_set=yes;;
6057 *)
6058 eval ac_cv_prog_make_${ac_make}_set=no;;
6059esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006060rm -f conftest.make
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006061fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006062if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006064$as_echo "yes" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006065 SET_MAKE=
6066else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006068$as_echo "no" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006069 SET_MAKE="MAKE=${MAKE-make}"
6070fi
6071
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006072# Find a good install program. We prefer a C program (faster),
6073# so one script is as good as another. But avoid the broken or
6074# incompatible versions:
6075# SysV /etc/install, /usr/sbin/install
6076# SunOS /usr/etc/install
6077# IRIX /sbin/install
6078# AIX /bin/install
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006079# AmigaOS /C/install, which installs bootblocks on floppy discs
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006080# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6081# AFS /usr/afsws/bin/install, which mishandles nonexistent args
6082# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006083# OS/2's system install, which has a completely different semantic
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006084# ./install, which can be erroneously created by make from ./install.sh.
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006085# Reject install programs that cannot install multiple files.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006087$as_echo_n "checking for a BSD-compatible install... " >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006088if test -z "$INSTALL"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006089if ${ac_cv_path_install+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006090 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006091else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6093for as_dir in $PATH
6094do
6095 IFS=$as_save_IFS
6096 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006097 # Account for people who put trailing slashes in PATH elements.
6098case $as_dir/ in #((
6099 ./ | .// | /[cC]/* | \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006100 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006101 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006102 /usr/ucb/* ) ;;
6103 *)
6104 # OSF1 and SCO ODT 3.0 have their own names for install.
6105 # Don't use installbsd from OSF since it installs stuff as root
6106 # by default.
6107 for ac_prog in ginstall scoinst install; do
6108 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006109 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006110 if test $ac_prog = install &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006111 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006112 # AIX install. It has an incompatible calling convention.
6113 :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006114 elif test $ac_prog = install &&
6115 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6116 # program-specific install script used by HP pwplus--don't use.
6117 :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006118 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006119 rm -rf conftest.one conftest.two conftest.dir
6120 echo one > conftest.one
6121 echo two > conftest.two
6122 mkdir conftest.dir
6123 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
6124 test -s conftest.one && test -s conftest.two &&
6125 test -s conftest.dir/conftest.one &&
6126 test -s conftest.dir/conftest.two
6127 then
6128 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6129 break 3
6130 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006131 fi
6132 fi
6133 done
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006134 done
6135 ;;
6136esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006137
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006138 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04006139IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006140
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006141rm -rf conftest.one conftest.two conftest.dir
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006142
6143fi
6144 if test "${ac_cv_path_install+set}" = set; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006145 INSTALL=$ac_cv_path_install
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006146 else
Theodore Ts'oe1052142006-10-21 21:46:47 -04006147 # As a last resort, use the slow shell script. Don't cache a
6148 # value for INSTALL within a source directory, because that will
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006149 # break other packages using the cache if that directory is
Theodore Ts'oe1052142006-10-21 21:46:47 -04006150 # removed, or if the value is a relative name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006151 INSTALL=$ac_install_sh
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006152 fi
6153fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006155$as_echo "$INSTALL" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006156
6157# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6158# It thinks the first close brace ends the variable substitution.
6159test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6160
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006161test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006162
6163test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6164
Theodore Ts'o93613952014-07-03 23:44:13 -04006165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6166$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6167if test -z "$MKDIR_P"; then
6168 if ${ac_cv_path_mkdir+:} false; then :
6169 $as_echo_n "(cached) " >&6
6170else
6171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6172for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6173do
6174 IFS=$as_save_IFS
6175 test -z "$as_dir" && as_dir=.
6176 for ac_prog in mkdir gmkdir; do
6177 for ac_exec_ext in '' $ac_executable_extensions; do
6178 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
6179 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6180 'mkdir (GNU coreutils) '* | \
6181 'mkdir (coreutils) '* | \
6182 'mkdir (fileutils) '4.1*)
6183 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6184 break 3;;
6185 esac
6186 done
6187 done
6188 done
6189IFS=$as_save_IFS
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006190
Theodore Ts'o93613952014-07-03 23:44:13 -04006191fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04006192
Theodore Ts'o93613952014-07-03 23:44:13 -04006193 test -d ./--version && rmdir ./--version
6194 if test "${ac_cv_path_mkdir+set}" = set; then
6195 MKDIR_P="$ac_cv_path_mkdir -p"
6196 else
6197 # As a last resort, use the slow shell script. Don't cache a
6198 # value for MKDIR_P within a source directory, because that will
6199 # break other packages using the cache if that directory is
6200 # removed, or if the value is a relative name.
6201 MKDIR_P="$ac_install_sh -d"
6202 fi
6203fi
6204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6205$as_echo "$MKDIR_P" >&6; }
6206
6207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6208$as_echo_n "checking for a sed that does not truncate output... " >&6; }
6209if ${ac_cv_path_SED+:} false; then :
6210 $as_echo_n "(cached) " >&6
6211else
6212 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6213 for ac_i in 1 2 3 4 5 6 7; do
6214 ac_script="$ac_script$as_nl$ac_script"
6215 done
6216 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6217 { ac_script=; unset ac_script;}
6218 if test -z "$SED"; then
6219 ac_path_SED_found=false
6220 # Loop through the user's path and test for each of PROGNAME-LIST
6221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6222for as_dir in $PATH
6223do
6224 IFS=$as_save_IFS
6225 test -z "$as_dir" && as_dir=.
6226 for ac_prog in sed gsed; do
6227 for ac_exec_ext in '' $ac_executable_extensions; do
6228 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6229 as_fn_executable_p "$ac_path_SED" || continue
6230# Check for GNU ac_path_SED and select it if it is found.
6231 # Check for GNU $ac_path_SED
6232case `"$ac_path_SED" --version 2>&1` in
6233*GNU*)
6234 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6235*)
6236 ac_count=0
6237 $as_echo_n 0123456789 >"conftest.in"
6238 while :
6239 do
6240 cat "conftest.in" "conftest.in" >"conftest.tmp"
6241 mv "conftest.tmp" "conftest.in"
6242 cp "conftest.in" "conftest.nl"
6243 $as_echo '' >> "conftest.nl"
6244 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6245 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6246 as_fn_arith $ac_count + 1 && ac_count=$as_val
6247 if test $ac_count -gt ${ac_path_SED_max-0}; then
6248 # Best one so far, save it but keep looking for a better one
6249 ac_cv_path_SED="$ac_path_SED"
6250 ac_path_SED_max=$ac_count
6251 fi
6252 # 10*(2^10) chars as input seems more than enough
6253 test $ac_count -gt 10 && break
6254 done
6255 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6256esac
6257
6258 $ac_path_SED_found && break 3
6259 done
6260 done
6261 done
6262IFS=$as_save_IFS
6263 if test -z "$ac_cv_path_SED"; then
6264 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6265 fi
6266else
6267 ac_cv_path_SED=$SED
6268fi
6269
6270fi
6271{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6272$as_echo "$ac_cv_path_SED" >&6; }
6273 SED="$ac_cv_path_SED"
6274 rm -f conftest.sed
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006275
6276
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006278$as_echo_n "checking whether NLS is requested... " >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -04006279 # Check whether --enable-nls was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006280if test "${enable_nls+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04006281 enableval=$enable_nls; USE_NLS=$enableval
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006282else
6283 USE_NLS=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04006284fi
6285
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006287$as_echo "$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006288
6289
6290
6291
Theodore Ts'o93613952014-07-03 23:44:13 -04006292 GETTEXT_MACRO_VERSION=0.18
6293
6294
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006295
6296
6297# Prepare PATH_SEPARATOR.
6298# The user is always right.
6299if test "${PATH_SEPARATOR+set}" != set; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006300 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6301 # contains only /bin. Note that ksh looks also at the FPATH variable,
6302 # so we have to set that as well for the test.
6303 PATH_SEPARATOR=:
6304 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6305 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6306 || PATH_SEPARATOR=';'
6307 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006308fi
6309
6310# Find out how to test for executable files. Don't use a zero-byte file,
6311# as systems may use methods other than mode bits to determine executability.
6312cat >conf$$.file <<_ASEOF
6313#! /bin/sh
6314exit 0
6315_ASEOF
6316chmod +x conf$$.file
6317if test -x conf$$.file >/dev/null 2>&1; then
6318 ac_executable_p="test -x"
6319else
6320 ac_executable_p="test -f"
6321fi
6322rm -f conf$$.file
6323
6324# Extract the first word of "msgfmt", so it can be a program name with args.
6325set dummy msgfmt; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006327$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006328if ${ac_cv_path_MSGFMT+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006329 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006330else
6331 case "$MSGFMT" in
6332 [\\/]* | ?:[\\/]*)
6333 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
6334 ;;
6335 *)
6336 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6337 for ac_dir in $PATH; do
6338 IFS="$ac_save_IFS"
6339 test -z "$ac_dir" && ac_dir=.
6340 for ac_exec_ext in '' $ac_executable_extensions; do
6341 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006342 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6343 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006344 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
6345 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
6346 break 2
6347 fi
6348 fi
6349 done
6350 done
6351 IFS="$ac_save_IFS"
6352 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
6353 ;;
6354esac
6355fi
6356MSGFMT="$ac_cv_path_MSGFMT"
6357if test "$MSGFMT" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006359$as_echo "$MSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006360else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006362$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006363fi
6364
6365 # Extract the first word of "gmsgfmt", so it can be a program name with args.
6366set dummy gmsgfmt; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006368$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006369if ${ac_cv_path_GMSGFMT+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006370 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006371else
6372 case $GMSGFMT in
6373 [\\/]* | ?:[\\/]*)
6374 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
6375 ;;
6376 *)
6377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6378for as_dir in $PATH
6379do
6380 IFS=$as_save_IFS
6381 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006382 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006384 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006386 break 2
6387 fi
6388done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006389 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04006390IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006391
6392 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
6393 ;;
6394esac
6395fi
6396GMSGFMT=$ac_cv_path_GMSGFMT
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006397if test -n "$GMSGFMT"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006399$as_echo "$GMSGFMT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006400else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006402$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006403fi
6404
6405
6406
Theodore Ts'o93613952014-07-03 23:44:13 -04006407 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6408 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
6409 *) MSGFMT_015=$MSGFMT ;;
6410 esac
6411
6412 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6413 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
6414 *) GMSGFMT_015=$GMSGFMT ;;
6415 esac
6416
6417
Theodore Ts'oe1052142006-10-21 21:46:47 -04006418
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006419# Prepare PATH_SEPARATOR.
6420# The user is always right.
6421if test "${PATH_SEPARATOR+set}" != set; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006422 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6423 # contains only /bin. Note that ksh looks also at the FPATH variable,
6424 # so we have to set that as well for the test.
6425 PATH_SEPARATOR=:
6426 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6427 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6428 || PATH_SEPARATOR=';'
6429 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006430fi
6431
6432# Find out how to test for executable files. Don't use a zero-byte file,
6433# as systems may use methods other than mode bits to determine executability.
6434cat >conf$$.file <<_ASEOF
6435#! /bin/sh
6436exit 0
6437_ASEOF
6438chmod +x conf$$.file
6439if test -x conf$$.file >/dev/null 2>&1; then
6440 ac_executable_p="test -x"
6441else
6442 ac_executable_p="test -f"
6443fi
6444rm -f conf$$.file
6445
6446# Extract the first word of "xgettext", so it can be a program name with args.
6447set dummy xgettext; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006449$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006450if ${ac_cv_path_XGETTEXT+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006451 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006452else
6453 case "$XGETTEXT" in
6454 [\\/]* | ?:[\\/]*)
6455 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
6456 ;;
6457 *)
6458 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6459 for ac_dir in $PATH; do
6460 IFS="$ac_save_IFS"
6461 test -z "$ac_dir" && ac_dir=.
6462 for ac_exec_ext in '' $ac_executable_extensions; do
6463 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006464 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6465 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 -05006466 (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
6467 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
6468 break 2
6469 fi
6470 fi
6471 done
6472 done
6473 IFS="$ac_save_IFS"
6474 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
6475 ;;
6476esac
6477fi
6478XGETTEXT="$ac_cv_path_XGETTEXT"
6479if test "$XGETTEXT" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006481$as_echo "$XGETTEXT" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006482else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006484$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006485fi
6486
6487 rm -f messages.po
6488
Theodore Ts'o93613952014-07-03 23:44:13 -04006489 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
6490 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
6491 *) XGETTEXT_015=$XGETTEXT ;;
6492 esac
6493
6494
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006495
6496# Prepare PATH_SEPARATOR.
6497# The user is always right.
6498if test "${PATH_SEPARATOR+set}" != set; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006499 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
6500 # contains only /bin. Note that ksh looks also at the FPATH variable,
6501 # so we have to set that as well for the test.
6502 PATH_SEPARATOR=:
6503 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6504 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
6505 || PATH_SEPARATOR=';'
6506 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006507fi
6508
6509# Find out how to test for executable files. Don't use a zero-byte file,
6510# as systems may use methods other than mode bits to determine executability.
6511cat >conf$$.file <<_ASEOF
6512#! /bin/sh
6513exit 0
6514_ASEOF
6515chmod +x conf$$.file
6516if test -x conf$$.file >/dev/null 2>&1; then
6517 ac_executable_p="test -x"
6518else
6519 ac_executable_p="test -f"
6520fi
6521rm -f conf$$.file
6522
6523# Extract the first word of "msgmerge", so it can be a program name with args.
6524set dummy msgmerge; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006526$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006527if ${ac_cv_path_MSGMERGE+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006528 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006529else
6530 case "$MSGMERGE" in
6531 [\\/]* | ?:[\\/]*)
6532 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
6533 ;;
6534 *)
6535 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
6536 for ac_dir in $PATH; do
6537 IFS="$ac_save_IFS"
6538 test -z "$ac_dir" && ac_dir=.
6539 for ac_exec_ext in '' $ac_executable_extensions; do
6540 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04006541 echo "$as_me: trying $ac_dir/$ac_word..." >&5
6542 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006543 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
6544 break 2
6545 fi
6546 fi
6547 done
6548 done
6549 IFS="$ac_save_IFS"
6550 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
6551 ;;
6552esac
6553fi
6554MSGMERGE="$ac_cv_path_MSGMERGE"
6555if test "$MSGMERGE" != ":"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006557$as_echo "$MSGMERGE" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006558else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006560$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006561fi
6562
6563
Theodore Ts'o93613952014-07-03 23:44:13 -04006564 test -n "$localedir" || localedir='${datadir}/locale'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006565
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006566
Theodore Ts'o93613952014-07-03 23:44:13 -04006567 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
6568
6569
6570 ac_config_commands="$ac_config_commands po-directories"
6571
6572
6573
6574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5
6575$as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; }
6576if ${ac_cv_gnu_library_2+:} false; then :
6577 $as_echo_n "(cached) " >&6
6578else
6579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6580/* end confdefs.h. */
6581
6582#include <features.h>
6583#ifdef __GNU_LIBRARY__
6584 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
6585 Lucky GNU user
6586 #endif
6587#endif
6588
6589_ACEOF
6590if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6591 $EGREP "Lucky GNU user" >/dev/null 2>&1; then :
6592 ac_cv_gnu_library_2=yes
6593else
6594 ac_cv_gnu_library_2=no
6595fi
6596rm -f conftest*
6597
6598
6599
6600fi
6601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5
6602$as_echo "$ac_cv_gnu_library_2" >&6; }
6603
6604 GLIBC2="$ac_cv_gnu_library_2"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006605
6606
6607if test -n "$ac_tool_prefix"; then
6608 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6609set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006611$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006612if ${ac_cv_prog_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006613 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006614else
6615 if test -n "$RANLIB"; then
6616 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6617else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006618as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6619for as_dir in $PATH
6620do
6621 IFS=$as_save_IFS
6622 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006623 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006625 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006627 break 2
6628 fi
6629done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006630 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04006631IFS=$as_save_IFS
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006632
6633fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006634fi
6635RANLIB=$ac_cv_prog_RANLIB
6636if test -n "$RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006638$as_echo "$RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006639else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006641$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006642fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -04006643
Theodore Ts'oe1052142006-10-21 21:46:47 -04006644
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006645fi
6646if test -z "$ac_cv_prog_RANLIB"; then
6647 ac_ct_RANLIB=$RANLIB
6648 # Extract the first word of "ranlib", so it can be a program name with args.
6649set dummy ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006651$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006652if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006653 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006654else
6655 if test -n "$ac_ct_RANLIB"; then
6656 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6657else
6658as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6659for as_dir in $PATH
6660do
6661 IFS=$as_save_IFS
6662 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006663 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006665 ac_cv_prog_ac_ct_RANLIB="ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006667 break 2
6668 fi
6669done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006670 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04006671IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006672
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006673fi
6674fi
6675ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6676if test -n "$ac_ct_RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006678$as_echo "$ac_ct_RANLIB" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006679else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006681$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006682fi
6683
Theodore Ts'oe1052142006-10-21 21:46:47 -04006684 if test "x$ac_ct_RANLIB" = x; then
6685 RANLIB=":"
6686 else
6687 case $cross_compiling:$ac_tool_warned in
6688yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006689{ $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 +01006690$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -04006691ac_tool_warned=yes ;;
6692esac
6693 RANLIB=$ac_ct_RANLIB
6694 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006695else
6696 RANLIB="$ac_cv_prog_RANLIB"
6697fi
6698
6699
Theodore Ts'o93613952014-07-03 23:44:13 -04006700
6701 CFLAG_VISIBILITY=
6702 HAVE_VISIBILITY=0
6703 if test -n "$GCC"; then
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5
6705$as_echo_n "checking whether the -Werror option is usable... " >&6; }
6706 if ${gl_cv_cc_vis_werror+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006707 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006708else
Theodore Ts'o93613952014-07-03 23:44:13 -04006709
6710 gl_save_CFLAGS="$CFLAGS"
6711 CFLAGS="$CFLAGS -Werror"
6712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006713/* end confdefs.h. */
6714
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006715int
6716main ()
6717{
Theodore Ts'o93613952014-07-03 23:44:13 -04006718
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006719 ;
6720 return 0;
6721}
6722_ACEOF
Theodore Ts'o93613952014-07-03 23:44:13 -04006723if ac_fn_c_try_compile "$LINENO"; then :
6724 gl_cv_cc_vis_werror=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006725else
Theodore Ts'o93613952014-07-03 23:44:13 -04006726 gl_cv_cc_vis_werror=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006727fi
Theodore Ts'o93613952014-07-03 23:44:13 -04006728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6729 CFLAGS="$gl_save_CFLAGS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006730fi
6731
Theodore Ts'o93613952014-07-03 23:44:13 -04006732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5
6733$as_echo "$gl_cv_cc_vis_werror" >&6; }
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5
6735$as_echo_n "checking for simple visibility declarations... " >&6; }
6736 if ${gl_cv_cc_visibility+:} false; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006737 $as_echo_n "(cached) " >&6
6738else
Theodore Ts'o93613952014-07-03 23:44:13 -04006739
6740 gl_save_CFLAGS="$CFLAGS"
6741 CFLAGS="$CFLAGS -fvisibility=hidden"
6742 if test $gl_cv_cc_vis_werror = yes; then
6743 CFLAGS="$CFLAGS -Werror"
6744 fi
6745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6746/* end confdefs.h. */
6747extern __attribute__((__visibility__("hidden"))) int hiddenvar;
6748 extern __attribute__((__visibility__("default"))) int exportedvar;
6749 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
6750 extern __attribute__((__visibility__("default"))) int exportedfunc (void);
6751 void dummyfunc (void) {}
6752
6753int
6754main ()
6755{
6756
6757 ;
6758 return 0;
6759}
6760_ACEOF
6761if ac_fn_c_try_compile "$LINENO"; then :
6762 gl_cv_cc_visibility=yes
6763else
6764 gl_cv_cc_visibility=no
6765fi
6766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6767 CFLAGS="$gl_save_CFLAGS"
6768fi
6769
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5
6771$as_echo "$gl_cv_cc_visibility" >&6; }
6772 if test $gl_cv_cc_visibility = yes; then
6773 CFLAG_VISIBILITY="-fvisibility=hidden"
6774 HAVE_VISIBILITY=1
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006775 fi
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006776 fi
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006777
6778
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006779
Theodore Ts'o93613952014-07-03 23:44:13 -04006780cat >>confdefs.h <<_ACEOF
6781#define HAVE_VISIBILITY $HAVE_VISIBILITY
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006782_ACEOF
Theodore Ts'od1154eb2011-09-18 17:34:37 -04006783
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006784
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006786$as_echo_n "checking for inline... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006787if ${ac_cv_c_inline+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006788 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006789else
6790 ac_cv_c_inline=no
6791for ac_kw in inline __inline__ __inline; do
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006793/* end confdefs.h. */
6794#ifndef __cplusplus
6795typedef int foo_t;
6796static $ac_kw foo_t static_foo () {return 0; }
6797$ac_kw foo_t foo () {return 0; }
6798#endif
6799
6800_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006801if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04006802 ac_cv_c_inline=$ac_kw
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006803fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006804rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6805 test "$ac_cv_c_inline" != no && break
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006806done
6807
6808fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006810$as_echo "$ac_cv_c_inline" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006811
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006812case $ac_cv_c_inline in
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006813 inline | yes) ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006814 *)
6815 case $ac_cv_c_inline in
6816 no) ac_val=;;
6817 *) ac_val=$ac_cv_c_inline;;
6818 esac
6819 cat >>confdefs.h <<_ACEOF
6820#ifndef __cplusplus
6821#define inline $ac_val
6822#endif
6823_ACEOF
6824 ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006825esac
6826
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006827ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006828if test "x$ac_cv_type_size_t" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006829
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006830else
6831
6832cat >>confdefs.h <<_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -04006833#define size_t unsigned int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006834_ACEOF
6835
6836fi
6837
6838
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006840$as_echo_n "checking for stdint.h... " >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -04006841if ${gl_cv_header_stdint_h+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006842 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006843else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006845/* end confdefs.h. */
6846#include <sys/types.h>
Theodore Ts'o93613952014-07-03 23:44:13 -04006847 #include <stdint.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006848int
6849main ()
6850{
Theodore Ts'o93613952014-07-03 23:44:13 -04006851uintmax_t i = (uintmax_t) -1; return !i;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006852 ;
6853 return 0;
6854}
6855_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006856if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o93613952014-07-03 23:44:13 -04006857 gl_cv_header_stdint_h=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006858else
Theodore Ts'o93613952014-07-03 23:44:13 -04006859 gl_cv_header_stdint_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006860fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04006861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006862fi
Theodore Ts'o93613952014-07-03 23:44:13 -04006863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
6864$as_echo "$gl_cv_header_stdint_h" >&6; }
6865 if test $gl_cv_header_stdint_h = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006866
6867cat >>confdefs.h <<_ACEOF
6868#define HAVE_STDINT_H_WITH_UINTMAX 1
6869_ACEOF
6870
6871 fi
6872
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006873# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
6874# for constant arguments. Useless!
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006875{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006876$as_echo_n "checking for working alloca.h... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006877if ${ac_cv_working_alloca_h+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006878 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006879else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006881/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006882#include <alloca.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006883int
6884main ()
6885{
6886char *p = (char *) alloca (2 * sizeof (int));
Theodore Ts'oe1052142006-10-21 21:46:47 -04006887 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006888 ;
6889 return 0;
6890}
6891_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006892if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006893 ac_cv_working_alloca_h=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006894else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006895 ac_cv_working_alloca_h=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006896fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006897rm -f core conftest.err conftest.$ac_objext \
6898 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006899fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006901$as_echo "$ac_cv_working_alloca_h" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006902if test $ac_cv_working_alloca_h = yes; then
6903
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006904$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006905
6906fi
6907
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006908{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006909$as_echo_n "checking for alloca... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006910if ${ac_cv_func_alloca_works+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006911 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006912else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006914/* end confdefs.h. */
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006915#ifdef __GNUC__
6916# define alloca __builtin_alloca
6917#else
6918# ifdef _MSC_VER
6919# include <malloc.h>
6920# define alloca _alloca
6921# else
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04006922# ifdef HAVE_ALLOCA_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006923# include <alloca.h>
6924# else
6925# ifdef _AIX
6926 #pragma alloca
6927# else
6928# ifndef alloca /* predefined by HP cc +Olibcalls */
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006929void *alloca (size_t);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006930# endif
6931# endif
6932# endif
6933# endif
6934#endif
6935
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006936int
6937main ()
6938{
6939char *p = (char *) alloca (1);
Theodore Ts'oe1052142006-10-21 21:46:47 -04006940 if (p) return 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006941 ;
6942 return 0;
6943}
6944_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006945if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006946 ac_cv_func_alloca_works=yes
6947else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006948 ac_cv_func_alloca_works=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006949fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006950rm -f core conftest.err conftest.$ac_objext \
6951 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006952fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006954$as_echo "$ac_cv_func_alloca_works" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006955
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006956if test $ac_cv_func_alloca_works = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006957
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006958$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006959
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006960else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006961 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
6962# that cause trouble. Some versions do not even contain alloca or
6963# contain a buggy version. If you still want to use their alloca,
6964# use ar to extract alloca.o from them instead of compiling alloca.c.
6965
Theodore Ts'oe1052142006-10-21 21:46:47 -04006966ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006967
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006968$as_echo "#define C_ALLOCA 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006969
6970
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006972$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10006973if ${ac_cv_os_cray+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006974 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006975else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006977/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04006978#if defined CRAY && ! defined CRAY2
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006979webecray
6980#else
6981wenotbecray
6982#endif
6983
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006984_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006985if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006986 $EGREP "webecray" >/dev/null 2>&1; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006987 ac_cv_os_cray=yes
6988else
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006989 ac_cv_os_cray=no
6990fi
6991rm -f conftest*
6992
6993fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006994{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006995$as_echo "$ac_cv_os_cray" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00006996if test $ac_cv_os_cray = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05006997 for ac_func in _getb67 GETB67 getb67; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +01006998 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05006999ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007000if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007001
7002cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007003#define CRAY_STACKSEG_END $ac_func
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007004_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007005
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007006 break
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007007fi
7008
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007009 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007010fi
7011
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007013$as_echo_n "checking stack direction for C alloca... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007014if ${ac_cv_c_stack_direction+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007015 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007016else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007017 if test "$cross_compiling" = yes; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007018 ac_cv_c_stack_direction=0
7019else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007021/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -04007022$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007023int
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007024find_stack_direction (int *addr, int depth)
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007025{
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007026 int dir, dummy = 0;
7027 if (! addr)
7028 addr = &dummy;
7029 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7030 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7031 return dir + dummy;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007032}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007033
7034int
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007035main (int argc, char **argv)
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007036{
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007037 return find_stack_direction (0, argc + !argv + 20) < 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007038}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007039_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007040if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007041 ac_cv_c_stack_direction=1
7042else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007043 ac_cv_c_stack_direction=-1
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007044fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007045rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7046 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007047fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007048
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007049fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007050{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007051$as_echo "$ac_cv_c_stack_direction" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007052cat >>confdefs.h <<_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007053#define STACK_DIRECTION $ac_cv_c_stack_direction
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007054_ACEOF
7055
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007056
7057fi
7058
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007059
7060
7061
7062 for ac_header in $ac_header_list
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007063do :
7064 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007065ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7066"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007067if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007068 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007069#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007070_ACEOF
7071
7072fi
7073
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007074done
7075
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007076
7077
7078
7079
7080
7081
7082
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007083for ac_func in getpagesize
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007084do :
7085 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007086if test "x$ac_cv_func_getpagesize" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007087 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007088#define HAVE_GETPAGESIZE 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007089_ACEOF
7090
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007091fi
7092done
7093
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007095$as_echo_n "checking for working mmap... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007096if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007097 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007098else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007099 if test "$cross_compiling" = yes; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007100 ac_cv_func_mmap_fixed_mapped=no
7101else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007103/* end confdefs.h. */
7104$ac_includes_default
7105/* malloc might have been renamed as rpl_malloc. */
7106#undef malloc
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007107
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007108/* Thanks to Mike Haertel and Jim Avera for this test.
7109 Here is a matrix of mmap possibilities:
7110 mmap private not fixed
7111 mmap private fixed at somewhere currently unmapped
7112 mmap private fixed at somewhere already mapped
7113 mmap shared not fixed
7114 mmap shared fixed at somewhere currently unmapped
7115 mmap shared fixed at somewhere already mapped
7116 For private mappings, we should verify that changes cannot be read()
7117 back from the file, nor mmap's back from the file at a different
7118 address. (There have been systems where private was not correctly
7119 implemented like the infamous i386 svr4.0, and systems where the
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007120 VM page cache was not coherent with the file system buffer cache
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007121 like early versions of FreeBSD and possibly contemporary NetBSD.)
7122 For shared mappings, we should conversely verify that changes get
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007123 propagated back to all the places they're supposed to be.
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007124
7125 Grep wants private fixed already mapped.
7126 The main things grep needs to know about mmap are:
7127 * does it exist and is it safe to write into the mmap'd area
7128 * how to use it (BSD variants) */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007129
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007130#include <fcntl.h>
7131#include <sys/mman.h>
7132
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007133#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007134char *malloc ();
7135#endif
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007136
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007137/* This mess was copied from the GNU getpagesize.h. */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007138#ifndef HAVE_GETPAGESIZE
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007139# ifdef _SC_PAGESIZE
7140# define getpagesize() sysconf(_SC_PAGESIZE)
7141# else /* no _SC_PAGESIZE */
Theodore Ts'o29a5dee2007-07-04 16:28:47 -04007142# ifdef HAVE_SYS_PARAM_H
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007143# include <sys/param.h>
7144# ifdef EXEC_PAGESIZE
7145# define getpagesize() EXEC_PAGESIZE
7146# else /* no EXEC_PAGESIZE */
7147# ifdef NBPG
7148# define getpagesize() NBPG * CLSIZE
7149# ifndef CLSIZE
7150# define CLSIZE 1
7151# endif /* no CLSIZE */
7152# else /* no NBPG */
7153# ifdef NBPC
7154# define getpagesize() NBPC
7155# else /* no NBPC */
7156# ifdef PAGESIZE
7157# define getpagesize() PAGESIZE
7158# endif /* PAGESIZE */
7159# endif /* no NBPC */
7160# endif /* no NBPG */
7161# endif /* no EXEC_PAGESIZE */
7162# else /* no HAVE_SYS_PARAM_H */
7163# define getpagesize() 8192 /* punt totally */
7164# endif /* no HAVE_SYS_PARAM_H */
7165# endif /* no _SC_PAGESIZE */
7166
7167#endif /* no HAVE_GETPAGESIZE */
7168
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007169int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007170main ()
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007171{
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007172 char *data, *data2, *data3;
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007173 const char *cdata2;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007174 int i, pagesize;
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007175 int fd, fd2;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007176
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007177 pagesize = getpagesize ();
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007178
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007179 /* First, make a file with some known garbage in it. */
7180 data = (char *) malloc (pagesize);
7181 if (!data)
Theodore Ts'oe1052142006-10-21 21:46:47 -04007182 return 1;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007183 for (i = 0; i < pagesize; ++i)
7184 *(data + i) = rand ();
7185 umask (0);
7186 fd = creat ("conftest.mmap", 0600);
7187 if (fd < 0)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007188 return 2;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007189 if (write (fd, data, pagesize) != pagesize)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007190 return 3;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007191 close (fd);
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007192
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007193 /* Next, check that the tail of a page is zero-filled. File must have
7194 non-zero length, otherwise we risk SIGBUS for entire page. */
7195 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7196 if (fd2 < 0)
7197 return 4;
7198 cdata2 = "";
7199 if (write (fd2, cdata2, 1) != 1)
7200 return 5;
7201 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7202 if (data2 == MAP_FAILED)
7203 return 6;
7204 for (i = 0; i < pagesize; ++i)
7205 if (*(data2 + i))
7206 return 7;
7207 close (fd2);
7208 if (munmap (data2, pagesize))
7209 return 8;
7210
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007211 /* Next, try to mmap the file at a fixed address which already has
7212 something else allocated at it. If we can, also make sure that
7213 we see the same garbage. */
7214 fd = open ("conftest.mmap", O_RDWR);
7215 if (fd < 0)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007216 return 9;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007217 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7218 MAP_PRIVATE | MAP_FIXED, fd, 0L))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007219 return 10;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007220 for (i = 0; i < pagesize; ++i)
7221 if (*(data + i) != *(data2 + i))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007222 return 11;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007223
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007224 /* Finally, make sure that changes to the mapped area do not
7225 percolate back to the file as seen by read(). (This is a bug on
7226 some variants of i386 svr4.0.) */
7227 for (i = 0; i < pagesize; ++i)
7228 *(data2 + i) = *(data2 + i) + 1;
7229 data3 = (char *) malloc (pagesize);
7230 if (!data3)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007231 return 12;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007232 if (read (fd, data3, pagesize) != pagesize)
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007233 return 13;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007234 for (i = 0; i < pagesize; ++i)
7235 if (*(data + i) != *(data3 + i))
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007236 return 14;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007237 close (fd);
Theodore Ts'oe1052142006-10-21 21:46:47 -04007238 return 0;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007239}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007240_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007241if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007242 ac_cv_func_mmap_fixed_mapped=yes
7243else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007244 ac_cv_func_mmap_fixed_mapped=no
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007245fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007246rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7247 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007248fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007249
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007250fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007251{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007252$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007253if test $ac_cv_func_mmap_fixed_mapped = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007254
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007255$as_echo "#define HAVE_MMAP 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007256
7257fi
Theodore Ts'o61ef2472010-08-01 22:30:33 -04007258rm -f conftest.mmap conftest.txt
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00007259
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007260
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007261
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007263$as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007264if ${gt_cv_int_divbyzero_sigfpe+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007265 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007266else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007267
Theodore Ts'o93613952014-07-03 23:44:13 -04007268 gt_cv_int_divbyzero_sigfpe=
7269 case "$host_os" in
7270 macos* | darwin[6-9]* | darwin[1-9][0-9]*)
7271 # On Mac OS X 10.2 or newer, just assume the same as when cross-
7272 # compiling. If we were to perform the real test, 1 Crash Report
7273 # dialog window would pop up.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007274 case "$host_cpu" in
Theodore Ts'o93613952014-07-03 23:44:13 -04007275 i[34567]86 | x86_64)
7276 gt_cv_int_divbyzero_sigfpe="guessing yes" ;;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007277 esac
Theodore Ts'o93613952014-07-03 23:44:13 -04007278 ;;
7279 esac
7280 if test -z "$gt_cv_int_divbyzero_sigfpe"; then
7281 if test "$cross_compiling" = yes; then :
7282
7283 # Guess based on the CPU.
7284 case "$host_cpu" in
7285 alpha* | i[34567]86 | x86_64 | m68k | s390*)
7286 gt_cv_int_divbyzero_sigfpe="guessing yes";;
7287 *)
7288 gt_cv_int_divbyzero_sigfpe="guessing no";;
7289 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007290
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007291else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007293/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007294
7295#include <stdlib.h>
7296#include <signal.h>
7297
7298static void
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007299sigfpe_handler (int sig)
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007300{
7301 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */
7302 exit (sig != SIGFPE);
7303}
7304
7305int x = 1;
7306int y = 0;
7307int z;
7308int nan;
7309
7310int main ()
7311{
7312 signal (SIGFPE, sigfpe_handler);
7313/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */
7314#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP)
7315 signal (SIGTRAP, sigfpe_handler);
7316#endif
7317/* Linux/SPARC yields signal SIGILL. */
7318#if defined (__sparc__) && defined (__linux__)
7319 signal (SIGILL, sigfpe_handler);
7320#endif
7321
7322 z = x / y;
7323 nan = y / y;
Theodore Ts'o93613952014-07-03 23:44:13 -04007324 exit (2);
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007325}
7326
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007327_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007328if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007329 gt_cv_int_divbyzero_sigfpe=yes
7330else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007331 gt_cv_int_divbyzero_sigfpe=no
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007332fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007333rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7334 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007335fi
7336
Theodore Ts'o93613952014-07-03 23:44:13 -04007337 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007338
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007339fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007341$as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007342 case "$gt_cv_int_divbyzero_sigfpe" in
7343 *yes) value=1;;
7344 *) value=0;;
7345 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007346
7347cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007348#define INTDIV0_RAISES_SIGFPE $value
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007349_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007350
7351
7352
Theodore Ts'o93613952014-07-03 23:44:13 -04007353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
7354$as_echo_n "checking for inttypes.h... " >&6; }
7355if ${gl_cv_header_inttypes_h+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007356 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007357else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007359/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -04007360
7361#include <sys/types.h>
7362#include <inttypes.h>
7363
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007364int
7365main ()
7366{
Theodore Ts'o93613952014-07-03 23:44:13 -04007367uintmax_t i = (uintmax_t) -1; return !i;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007368 ;
7369 return 0;
7370}
7371_ACEOF
Theodore Ts'o93613952014-07-03 23:44:13 -04007372if ac_fn_c_try_compile "$LINENO"; then :
7373 gl_cv_header_inttypes_h=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007374else
Theodore Ts'o93613952014-07-03 23:44:13 -04007375 gl_cv_header_inttypes_h=no
7376fi
7377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7378fi
7379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
7380$as_echo "$gl_cv_header_inttypes_h" >&6; }
7381 if test $gl_cv_header_inttypes_h = yes; then
7382
7383cat >>confdefs.h <<_ACEOF
7384#define HAVE_INTTYPES_H_WITH_UINTMAX 1
7385_ACEOF
7386
7387 fi
7388
7389
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
7391$as_echo_n "checking for unsigned long long int... " >&6; }
7392if ${ac_cv_type_unsigned_long_long_int+:} false; then :
7393 $as_echo_n "(cached) " >&6
7394else
7395 ac_cv_type_unsigned_long_long_int=yes
7396 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
7397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7398/* end confdefs.h. */
7399
7400 /* For now, do not test the preprocessor; as of 2007 there are too many
7401 implementations with broken preprocessors. Perhaps this can
7402 be revisited in 2012. In the meantime, code should not expect
7403 #if to work with literals wider than 32 bits. */
7404 /* Test literals. */
7405 long long int ll = 9223372036854775807ll;
7406 long long int nll = -9223372036854775807LL;
7407 unsigned long long int ull = 18446744073709551615ULL;
7408 /* Test constant expressions. */
7409 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
7410 ? 1 : -1)];
7411 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
7412 ? 1 : -1)];
7413 int i = 63;
7414int
7415main ()
7416{
7417/* Test availability of runtime routines for shift and division. */
7418 long long int llmax = 9223372036854775807ll;
7419 unsigned long long int ullmax = 18446744073709551615ull;
7420 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
7421 | (llmax / ll) | (llmax % ll)
7422 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
7423 | (ullmax / ull) | (ullmax % ull));
7424 ;
7425 return 0;
7426}
7427
7428_ACEOF
7429if ac_fn_c_try_link "$LINENO"; then :
7430
7431else
7432 ac_cv_type_unsigned_long_long_int=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007433fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007434rm -f core conftest.err conftest.$ac_objext \
7435 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o93613952014-07-03 23:44:13 -04007436 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007437fi
Theodore Ts'o93613952014-07-03 23:44:13 -04007438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
7439$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
7440 if test $ac_cv_type_unsigned_long_long_int = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007441
Theodore Ts'o93613952014-07-03 23:44:13 -04007442$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007443
7444 fi
7445
7446
7447
7448
Theodore Ts'o93613952014-07-03 23:44:13 -04007449 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007450
Theodore Ts'o93613952014-07-03 23:44:13 -04007451 test $ac_cv_type_unsigned_long_long_int = yes \
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007452 && ac_type='unsigned long long' \
7453 || ac_type='unsigned long'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007454
7455cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007456#define uintmax_t $ac_type
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007457_ACEOF
7458
7459 else
7460
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007461$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007462
7463 fi
7464
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007465
Theodore Ts'o93613952014-07-03 23:44:13 -04007466 for ac_header in inttypes.h
7467do :
7468 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
7469if test "x$ac_cv_header_inttypes_h" = xyes; then :
7470 cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007471#define HAVE_INTTYPES_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007472_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007473
Theodore Ts'o93613952014-07-03 23:44:13 -04007474fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007475
Theodore Ts'o93613952014-07-03 23:44:13 -04007476done
Theodore Ts'o07a0db12003-07-05 14:50:24 -04007477
Theodore Ts'o93613952014-07-03 23:44:13 -04007478 if test $ac_cv_header_inttypes_h = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007479 { $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 +01007480$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007481if ${gt_cv_inttypes_pri_broken+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007482 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04007483else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007484
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007486/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -04007487
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007488#include <inttypes.h>
7489#ifdef PRId32
7490char *p = PRId32;
7491#endif
7492
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007493int
7494main ()
7495{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007496
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007497 ;
7498 return 0;
7499}
7500_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007501if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007502 gt_cv_inttypes_pri_broken=no
7503else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007504 gt_cv_inttypes_pri_broken=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007505fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04007506rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007507
7508fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007510$as_echo "$gt_cv_inttypes_pri_broken" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007511 fi
7512 if test "$gt_cv_inttypes_pri_broken" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007513
7514cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007515#define PRI_MACROS_BROKEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007516_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04007517
Theodore Ts'o93613952014-07-03 23:44:13 -04007518 PRI_MACROS_BROKEN=1
7519 else
7520 PRI_MACROS_BROKEN=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007521 fi
7522
7523
7524
Theodore Ts'o93613952014-07-03 23:44:13 -04007525
7526
7527
7528
7529 # Check whether --enable-threads was given.
7530if test "${enable_threads+set}" = set; then :
7531 enableval=$enable_threads; gl_use_threads=$enableval
7532else
7533 if test -n "$gl_use_threads_default"; then
7534 gl_use_threads="$gl_use_threads_default"
7535 else
7536 case "$host_os" in
7537 osf*) gl_use_threads=no ;;
7538 cygwin*)
7539 case `uname -r` in
7540 1.[0-5].*) gl_use_threads=no ;;
7541 *) gl_use_threads=yes ;;
7542 esac
7543 ;;
7544 *) gl_use_threads=yes ;;
7545 esac
7546 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007547
7548fi
7549
Theodore Ts'o93613952014-07-03 23:44:13 -04007550 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7551 # For using <pthread.h>:
7552 case "$host_os" in
7553 osf*)
7554 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
7555 # groks <pthread.h>. cc also understands the flag -pthread, but
7556 # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
7557 # 2. putting a flag into CPPFLAGS that has an effect on the linker
7558 # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
7559 # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
7560 CPPFLAGS="$CPPFLAGS -D_REENTRANT"
7561 ;;
7562 esac
7563 # Some systems optimize for single-threaded programs by default, and
7564 # need special flags to disable these optimizations. For example, the
7565 # definition of 'errno' in <errno.h>.
7566 case "$host_os" in
7567 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
7568 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
7569 esac
7570 fi
7571
7572
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007573
7574
7575
7576 if test "X$prefix" = "XNONE"; then
7577 acl_final_prefix="$ac_default_prefix"
7578 else
7579 acl_final_prefix="$prefix"
7580 fi
7581 if test "X$exec_prefix" = "XNONE"; then
7582 acl_final_exec_prefix='${prefix}'
7583 else
7584 acl_final_exec_prefix="$exec_prefix"
7585 fi
7586 acl_save_prefix="$prefix"
7587 prefix="$acl_final_prefix"
7588 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
7589 prefix="$acl_save_prefix"
7590
7591
Theodore Ts'o93613952014-07-03 23:44:13 -04007592
Theodore Ts'oe1052142006-10-21 21:46:47 -04007593# Check whether --with-gnu-ld was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007594if test "${with_gnu_ld+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04007595 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007596else
7597 with_gnu_ld=no
Theodore Ts'oe1052142006-10-21 21:46:47 -04007598fi
7599
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007600# Prepare PATH_SEPARATOR.
7601# The user is always right.
7602if test "${PATH_SEPARATOR+set}" != set; then
Theodore Ts'o93613952014-07-03 23:44:13 -04007603 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
7604 # contains only /bin. Note that ksh looks also at the FPATH variable,
7605 # so we have to set that as well for the test.
7606 PATH_SEPARATOR=:
7607 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7608 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
7609 || PATH_SEPARATOR=';'
7610 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007611fi
Theodore Ts'o93613952014-07-03 23:44:13 -04007612
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007613ac_prog=ld
7614if test "$GCC" = yes; then
7615 # Check if gcc -print-prog-name=ld gives a path.
Theodore Ts'o93613952014-07-03 23:44:13 -04007616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7617$as_echo_n "checking for ld used by $CC... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007618 case $host in
7619 *-*-mingw*)
7620 # gcc leaves a trailing carriage return which upsets mingw
7621 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7622 *)
7623 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7624 esac
7625 case $ac_prog in
7626 # Accept absolute paths.
Theodore Ts'o93613952014-07-03 23:44:13 -04007627 [\\/]* | ?:[\\/]*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007628 re_direlt='/[^/][^/]*/\.\./'
Theodore Ts'o93613952014-07-03 23:44:13 -04007629 # Canonicalize the pathname of ld
7630 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
7631 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
7632 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007633 done
7634 test -z "$LD" && LD="$ac_prog"
7635 ;;
7636 "")
7637 # If it fails, then pretend we aren't using GCC.
7638 ac_prog=ld
7639 ;;
7640 *)
7641 # If it is relative, then search for the first ld in PATH.
7642 with_gnu_ld=unknown
7643 ;;
7644 esac
7645elif test "$with_gnu_ld" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007647$as_echo_n "checking for GNU ld... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007648else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007650$as_echo_n "checking for non-GNU ld... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007651fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007652if ${acl_cv_path_LD+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007653 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007654else
7655 if test -z "$LD"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04007656 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007657 for ac_dir in $PATH; do
Theodore Ts'o93613952014-07-03 23:44:13 -04007658 IFS="$acl_save_ifs"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007659 test -z "$ac_dir" && ac_dir=.
7660 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7661 acl_cv_path_LD="$ac_dir/$ac_prog"
7662 # Check to see if the program is GNU ld. I'd rather use --version,
Theodore Ts'o93613952014-07-03 23:44:13 -04007663 # but apparently some variants of GNU ld only accept -v.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007664 # Break only if it was the GNU/non-GNU ld that we prefer.
Theodore Ts'o93613952014-07-03 23:44:13 -04007665 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007666 *GNU* | *'with BFD'*)
Theodore Ts'o93613952014-07-03 23:44:13 -04007667 test "$with_gnu_ld" != no && break
7668 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007669 *)
Theodore Ts'o93613952014-07-03 23:44:13 -04007670 test "$with_gnu_ld" != yes && break
7671 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007672 esac
7673 fi
7674 done
Theodore Ts'o93613952014-07-03 23:44:13 -04007675 IFS="$acl_save_ifs"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007676else
7677 acl_cv_path_LD="$LD" # Let the user override the test with a path.
7678fi
7679fi
7680
7681LD="$acl_cv_path_LD"
7682if test -n "$LD"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007684$as_echo "$LD" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007685else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007687$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007688fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007689test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007691$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007692if ${acl_cv_prog_gnu_ld+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007693 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007694else
Theodore Ts'o93613952014-07-03 23:44:13 -04007695 # I'd rather use --version here, but apparently some GNU lds only accept -v.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007696case `$LD -v 2>&1 </dev/null` in
7697*GNU* | *'with BFD'*)
Theodore Ts'o93613952014-07-03 23:44:13 -04007698 acl_cv_prog_gnu_ld=yes
7699 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007700*)
Theodore Ts'o93613952014-07-03 23:44:13 -04007701 acl_cv_prog_gnu_ld=no
7702 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007703esac
7704fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007706$as_echo "$acl_cv_prog_gnu_ld" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007707with_gnu_ld=$acl_cv_prog_gnu_ld
7708
7709
7710
Theodore Ts'o93613952014-07-03 23:44:13 -04007711
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007713$as_echo_n "checking for shared library run path origin... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10007714if ${acl_cv_rpath+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007715 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007716else
7717
7718 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
7719 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
7720 . ./conftest.sh
7721 rm -f ./conftest.sh
7722 acl_cv_rpath=done
7723
7724fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007725{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01007726$as_echo "$acl_cv_rpath" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007727 wl="$acl_cv_wl"
Theodore Ts'o93613952014-07-03 23:44:13 -04007728 acl_libext="$acl_cv_libext"
7729 acl_shlibext="$acl_cv_shlibext"
7730 acl_libname_spec="$acl_cv_libname_spec"
7731 acl_library_names_spec="$acl_cv_library_names_spec"
7732 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
7733 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
7734 acl_hardcode_direct="$acl_cv_hardcode_direct"
7735 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
Theodore Ts'oe1052142006-10-21 21:46:47 -04007736 # Check whether --enable-rpath was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05007737if test "${enable_rpath+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04007738 enableval=$enable_rpath; :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007739else
7740 enable_rpath=yes
Theodore Ts'oe1052142006-10-21 21:46:47 -04007741fi
7742
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05007743
7744
7745
Theodore Ts'o93613952014-07-03 23:44:13 -04007746 acl_libdirstem=lib
7747 acl_libdirstem2=
7748 case "$host_os" in
7749 solaris*)
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
7751$as_echo_n "checking for 64-bit host... " >&6; }
7752if ${gl_cv_solaris_64bit+:} false; then :
7753 $as_echo_n "(cached) " >&6
7754else
7755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7756/* end confdefs.h. */
7757
7758#ifdef _LP64
7759sixtyfour bits
7760#endif
7761
7762_ACEOF
7763if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7764 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
7765 gl_cv_solaris_64bit=yes
7766else
7767 gl_cv_solaris_64bit=no
7768fi
7769rm -f conftest*
7770
7771
7772fi
7773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
7774$as_echo "$gl_cv_solaris_64bit" >&6; }
7775 if test $gl_cv_solaris_64bit = yes; then
7776 acl_libdirstem=lib/64
7777 case "$host_cpu" in
7778 sparc*) acl_libdirstem2=lib/sparcv9 ;;
7779 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
7780 esac
7781 fi
7782 ;;
7783 *)
7784 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
7785 if test -n "$searchpath"; then
7786 acl_save_IFS="${IFS= }"; IFS=":"
7787 for searchdir in $searchpath; do
7788 if test -d "$searchdir"; then
7789 case "$searchdir" in
7790 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
7791 */../ | */.. )
7792 # Better ignore directories of this form. They are misleading.
7793 ;;
7794 *) searchdir=`cd "$searchdir" && pwd`
7795 case "$searchdir" in
7796 */lib64 ) acl_libdirstem=lib64 ;;
7797 esac ;;
7798 esac
7799 fi
7800 done
7801 IFS="$acl_save_IFS"
7802 fi
7803 ;;
7804 esac
7805 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
7806
7807
7808
7809 gl_threads_api=none
7810 LIBTHREAD=
7811 LTLIBTHREAD=
7812 LIBMULTITHREAD=
7813 LTLIBMULTITHREAD=
7814 if test "$gl_use_threads" != no; then
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
7816$as_echo_n "checking whether imported symbols can be declared weak... " >&6; }
7817if ${gl_cv_have_weak+:} false; then :
7818 $as_echo_n "(cached) " >&6
7819else
7820 gl_cv_have_weak=no
7821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7822/* end confdefs.h. */
7823extern void xyzzy ();
7824#pragma weak xyzzy
7825int
7826main ()
7827{
7828xyzzy();
7829 ;
7830 return 0;
7831}
7832_ACEOF
7833if ac_fn_c_try_link "$LINENO"; then :
7834 gl_cv_have_weak=maybe
7835fi
7836rm -f core conftest.err conftest.$ac_objext \
7837 conftest$ac_exeext conftest.$ac_ext
7838 if test $gl_cv_have_weak = maybe; then
7839 if test "$cross_compiling" = yes; then :
7840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7841/* end confdefs.h. */
7842#ifdef __ELF__
7843 Extensible Linking Format
7844 #endif
7845
7846_ACEOF
7847if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7848 $EGREP "Extensible Linking Format" >/dev/null 2>&1; then :
7849 gl_cv_have_weak="guessing yes"
7850else
7851 gl_cv_have_weak="guessing no"
7852fi
7853rm -f conftest*
7854
7855
7856else
7857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7858/* end confdefs.h. */
7859
7860#include <stdio.h>
7861#pragma weak fputs
7862int main ()
7863{
7864 return (fputs == NULL);
7865}
7866_ACEOF
7867if ac_fn_c_try_run "$LINENO"; then :
7868 gl_cv_have_weak=yes
7869else
7870 gl_cv_have_weak=no
7871fi
7872rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7873 conftest.$ac_objext conftest.beam conftest.$ac_ext
7874fi
7875
7876 fi
7877
7878fi
7879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
7880$as_echo "$gl_cv_have_weak" >&6; }
7881 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7882 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
7883 # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
7884 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
7885if test "x$ac_cv_header_pthread_h" = xyes; then :
7886 gl_have_pthread_h=yes
7887else
7888 gl_have_pthread_h=no
7889fi
7890
7891
7892 if test "$gl_have_pthread_h" = yes; then
7893 # Other possible tests:
7894 # -lpthreads (FSU threads, PCthreads)
7895 # -lgthreads
7896 gl_have_pthread=
7897 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
7898 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
7899 # the second one only in libpthread, and lock.c needs it.
7900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7901/* end confdefs.h. */
7902#include <pthread.h>
7903int
7904main ()
7905{
7906pthread_mutex_lock((pthread_mutex_t*)0);
7907 pthread_mutexattr_init((pthread_mutexattr_t*)0);
7908 ;
7909 return 0;
7910}
7911_ACEOF
7912if ac_fn_c_try_link "$LINENO"; then :
7913 gl_have_pthread=yes
7914fi
7915rm -f core conftest.err conftest.$ac_objext \
7916 conftest$ac_exeext conftest.$ac_ext
7917 # Test for libpthread by looking for pthread_kill. (Not pthread_self,
7918 # since it is defined as a macro on OSF/1.)
7919 if test -n "$gl_have_pthread"; then
7920 # The program links fine without libpthread. But it may actually
7921 # need to link with libpthread in order to create multiple threads.
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
7923$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
7924if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
7925 $as_echo_n "(cached) " >&6
7926else
7927 ac_check_lib_save_LIBS=$LIBS
7928LIBS="-lpthread $LIBS"
7929cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7930/* end confdefs.h. */
7931
7932/* Override any GCC internal prototype to avoid an error.
7933 Use char because int might match the return type of a GCC
7934 builtin and then its argument prototype would still apply. */
7935#ifdef __cplusplus
7936extern "C"
7937#endif
7938char pthread_kill ();
7939int
7940main ()
7941{
7942return pthread_kill ();
7943 ;
7944 return 0;
7945}
7946_ACEOF
7947if ac_fn_c_try_link "$LINENO"; then :
7948 ac_cv_lib_pthread_pthread_kill=yes
7949else
7950 ac_cv_lib_pthread_pthread_kill=no
7951fi
7952rm -f core conftest.err conftest.$ac_objext \
7953 conftest$ac_exeext conftest.$ac_ext
7954LIBS=$ac_check_lib_save_LIBS
7955fi
7956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
7957$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
7958if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
7959 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
7960 # On Solaris and HP-UX, most pthread functions exist also in libc.
7961 # Therefore pthread_in_use() needs to actually try to create a
7962 # thread: pthread_create from libc will fail, whereas
7963 # pthread_create will actually create a thread.
7964 case "$host_os" in
7965 solaris* | hpux*)
7966
7967$as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
7968
7969 esac
7970
7971fi
7972
7973 else
7974 # Some library is needed. Try libpthread and libc_r.
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
7976$as_echo_n "checking for pthread_kill in -lpthread... " >&6; }
7977if ${ac_cv_lib_pthread_pthread_kill+:} false; then :
7978 $as_echo_n "(cached) " >&6
7979else
7980 ac_check_lib_save_LIBS=$LIBS
7981LIBS="-lpthread $LIBS"
7982cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7983/* end confdefs.h. */
7984
7985/* Override any GCC internal prototype to avoid an error.
7986 Use char because int might match the return type of a GCC
7987 builtin and then its argument prototype would still apply. */
7988#ifdef __cplusplus
7989extern "C"
7990#endif
7991char pthread_kill ();
7992int
7993main ()
7994{
7995return pthread_kill ();
7996 ;
7997 return 0;
7998}
7999_ACEOF
8000if ac_fn_c_try_link "$LINENO"; then :
8001 ac_cv_lib_pthread_pthread_kill=yes
8002else
8003 ac_cv_lib_pthread_pthread_kill=no
8004fi
8005rm -f core conftest.err conftest.$ac_objext \
8006 conftest$ac_exeext conftest.$ac_ext
8007LIBS=$ac_check_lib_save_LIBS
8008fi
8009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
8010$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; }
8011if test "x$ac_cv_lib_pthread_pthread_kill" = xyes; then :
8012 gl_have_pthread=yes
8013 LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
8014 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
8015fi
8016
8017 if test -z "$gl_have_pthread"; then
8018 # For FreeBSD 4.
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
8020$as_echo_n "checking for pthread_kill in -lc_r... " >&6; }
8021if ${ac_cv_lib_c_r_pthread_kill+:} false; then :
8022 $as_echo_n "(cached) " >&6
8023else
8024 ac_check_lib_save_LIBS=$LIBS
8025LIBS="-lc_r $LIBS"
8026cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8027/* end confdefs.h. */
8028
8029/* Override any GCC internal prototype to avoid an error.
8030 Use char because int might match the return type of a GCC
8031 builtin and then its argument prototype would still apply. */
8032#ifdef __cplusplus
8033extern "C"
8034#endif
8035char pthread_kill ();
8036int
8037main ()
8038{
8039return pthread_kill ();
8040 ;
8041 return 0;
8042}
8043_ACEOF
8044if ac_fn_c_try_link "$LINENO"; then :
8045 ac_cv_lib_c_r_pthread_kill=yes
8046else
8047 ac_cv_lib_c_r_pthread_kill=no
8048fi
8049rm -f core conftest.err conftest.$ac_objext \
8050 conftest$ac_exeext conftest.$ac_ext
8051LIBS=$ac_check_lib_save_LIBS
8052fi
8053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
8054$as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; }
8055if test "x$ac_cv_lib_c_r_pthread_kill" = xyes; then :
8056 gl_have_pthread=yes
8057 LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
8058 LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
8059fi
8060
8061 fi
8062 fi
8063 if test -n "$gl_have_pthread"; then
8064 gl_threads_api=posix
8065
8066$as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h
8067
8068 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8069 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8070
8071$as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
8072
8073 LIBTHREAD=
8074 LTLIBTHREAD=
8075 fi
8076 fi
8077 fi
8078 fi
8079 fi
8080 if test -z "$gl_have_pthread"; then
8081 if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
8082 gl_have_solaristhread=
8083 gl_save_LIBS="$LIBS"
8084 LIBS="$LIBS -lthread"
8085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8086/* end confdefs.h. */
8087
8088#include <thread.h>
8089#include <synch.h>
8090
8091int
8092main ()
8093{
8094thr_self();
8095 ;
8096 return 0;
8097}
8098_ACEOF
8099if ac_fn_c_try_link "$LINENO"; then :
8100 gl_have_solaristhread=yes
8101fi
8102rm -f core conftest.err conftest.$ac_objext \
8103 conftest$ac_exeext conftest.$ac_ext
8104 LIBS="$gl_save_LIBS"
8105 if test -n "$gl_have_solaristhread"; then
8106 gl_threads_api=solaris
8107 LIBTHREAD=-lthread
8108 LTLIBTHREAD=-lthread
8109 LIBMULTITHREAD="$LIBTHREAD"
8110 LTLIBMULTITHREAD="$LTLIBTHREAD"
8111
8112$as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h
8113
8114 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8115
8116$as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
8117
8118 LIBTHREAD=
8119 LTLIBTHREAD=
8120 fi
8121 fi
8122 fi
8123 fi
8124 if test "$gl_use_threads" = pth; then
8125 gl_save_CPPFLAGS="$CPPFLAGS"
8126
8127
8128
8129
8130
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
8132$as_echo_n "checking how to link with libpth... " >&6; }
8133if ${ac_cv_libpth_libs+:} false; then :
8134 $as_echo_n "(cached) " >&6
8135else
8136
8137
8138
8139
8140
8141
8142
8143
8144 use_additional=yes
8145
8146 acl_save_prefix="$prefix"
8147 prefix="$acl_final_prefix"
8148 acl_save_exec_prefix="$exec_prefix"
8149 exec_prefix="$acl_final_exec_prefix"
8150
8151 eval additional_includedir=\"$includedir\"
8152 eval additional_libdir=\"$libdir\"
8153
8154 exec_prefix="$acl_save_exec_prefix"
8155 prefix="$acl_save_prefix"
8156
8157
8158# Check whether --with-libpth-prefix was given.
8159if test "${with_libpth_prefix+set}" = set; then :
8160 withval=$with_libpth_prefix;
8161 if test "X$withval" = "Xno"; then
8162 use_additional=no
8163 else
8164 if test "X$withval" = "X"; then
8165
8166 acl_save_prefix="$prefix"
8167 prefix="$acl_final_prefix"
8168 acl_save_exec_prefix="$exec_prefix"
8169 exec_prefix="$acl_final_exec_prefix"
8170
8171 eval additional_includedir=\"$includedir\"
8172 eval additional_libdir=\"$libdir\"
8173
8174 exec_prefix="$acl_save_exec_prefix"
8175 prefix="$acl_save_prefix"
8176
8177 else
8178 additional_includedir="$withval/include"
8179 additional_libdir="$withval/$acl_libdirstem"
8180 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8181 && ! test -d "$withval/$acl_libdirstem"; then
8182 additional_libdir="$withval/$acl_libdirstem2"
8183 fi
8184 fi
8185 fi
8186
8187fi
8188
8189 LIBPTH=
8190 LTLIBPTH=
8191 INCPTH=
8192 LIBPTH_PREFIX=
8193 HAVE_LIBPTH=
8194 rpathdirs=
8195 ltrpathdirs=
8196 names_already_handled=
8197 names_next_round='pth '
8198 while test -n "$names_next_round"; do
8199 names_this_round="$names_next_round"
8200 names_next_round=
8201 for name in $names_this_round; do
8202 already_handled=
8203 for n in $names_already_handled; do
8204 if test "$n" = "$name"; then
8205 already_handled=yes
8206 break
8207 fi
8208 done
8209 if test -z "$already_handled"; then
8210 names_already_handled="$names_already_handled $name"
8211 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
8212 eval value=\"\$HAVE_LIB$uppername\"
8213 if test -n "$value"; then
8214 if test "$value" = yes; then
8215 eval value=\"\$LIB$uppername\"
8216 test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
8217 eval value=\"\$LTLIB$uppername\"
8218 test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
8219 else
8220 :
8221 fi
8222 else
8223 found_dir=
8224 found_la=
8225 found_so=
8226 found_a=
8227 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8228 if test -n "$acl_shlibext"; then
8229 shrext=".$acl_shlibext" # typically: shrext=.so
8230 else
8231 shrext=
8232 fi
8233 if test $use_additional = yes; then
8234 dir="$additional_libdir"
8235 if test -n "$acl_shlibext"; then
8236 if test -f "$dir/$libname$shrext"; then
8237 found_dir="$dir"
8238 found_so="$dir/$libname$shrext"
8239 else
8240 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8241 ver=`(cd "$dir" && \
8242 for f in "$libname$shrext".*; do echo "$f"; done \
8243 | sed -e "s,^$libname$shrext\\\\.,," \
8244 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8245 | sed 1q ) 2>/dev/null`
8246 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8247 found_dir="$dir"
8248 found_so="$dir/$libname$shrext.$ver"
8249 fi
8250 else
8251 eval library_names=\"$acl_library_names_spec\"
8252 for f in $library_names; do
8253 if test -f "$dir/$f"; then
8254 found_dir="$dir"
8255 found_so="$dir/$f"
8256 break
8257 fi
8258 done
8259 fi
8260 fi
8261 fi
8262 if test "X$found_dir" = "X"; then
8263 if test -f "$dir/$libname.$acl_libext"; then
8264 found_dir="$dir"
8265 found_a="$dir/$libname.$acl_libext"
8266 fi
8267 fi
8268 if test "X$found_dir" != "X"; then
8269 if test -f "$dir/$libname.la"; then
8270 found_la="$dir/$libname.la"
8271 fi
8272 fi
8273 fi
8274 if test "X$found_dir" = "X"; then
8275 for x in $LDFLAGS $LTLIBPTH; do
8276
8277 acl_save_prefix="$prefix"
8278 prefix="$acl_final_prefix"
8279 acl_save_exec_prefix="$exec_prefix"
8280 exec_prefix="$acl_final_exec_prefix"
8281 eval x=\"$x\"
8282 exec_prefix="$acl_save_exec_prefix"
8283 prefix="$acl_save_prefix"
8284
8285 case "$x" in
8286 -L*)
8287 dir=`echo "X$x" | sed -e 's/^X-L//'`
8288 if test -n "$acl_shlibext"; then
8289 if test -f "$dir/$libname$shrext"; then
8290 found_dir="$dir"
8291 found_so="$dir/$libname$shrext"
8292 else
8293 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8294 ver=`(cd "$dir" && \
8295 for f in "$libname$shrext".*; do echo "$f"; done \
8296 | sed -e "s,^$libname$shrext\\\\.,," \
8297 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8298 | sed 1q ) 2>/dev/null`
8299 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8300 found_dir="$dir"
8301 found_so="$dir/$libname$shrext.$ver"
8302 fi
8303 else
8304 eval library_names=\"$acl_library_names_spec\"
8305 for f in $library_names; do
8306 if test -f "$dir/$f"; then
8307 found_dir="$dir"
8308 found_so="$dir/$f"
8309 break
8310 fi
8311 done
8312 fi
8313 fi
8314 fi
8315 if test "X$found_dir" = "X"; then
8316 if test -f "$dir/$libname.$acl_libext"; then
8317 found_dir="$dir"
8318 found_a="$dir/$libname.$acl_libext"
8319 fi
8320 fi
8321 if test "X$found_dir" != "X"; then
8322 if test -f "$dir/$libname.la"; then
8323 found_la="$dir/$libname.la"
8324 fi
8325 fi
8326 ;;
8327 esac
8328 if test "X$found_dir" != "X"; then
8329 break
8330 fi
8331 done
8332 fi
8333 if test "X$found_dir" != "X"; then
8334 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
8335 if test "X$found_so" != "X"; then
8336 if test "$enable_rpath" = no \
8337 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8338 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
8339 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8340 else
8341 haveit=
8342 for x in $ltrpathdirs; do
8343 if test "X$x" = "X$found_dir"; then
8344 haveit=yes
8345 break
8346 fi
8347 done
8348 if test -z "$haveit"; then
8349 ltrpathdirs="$ltrpathdirs $found_dir"
8350 fi
8351 if test "$acl_hardcode_direct" = yes; then
8352 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8353 else
8354 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
8355 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8356 haveit=
8357 for x in $rpathdirs; do
8358 if test "X$x" = "X$found_dir"; then
8359 haveit=yes
8360 break
8361 fi
8362 done
8363 if test -z "$haveit"; then
8364 rpathdirs="$rpathdirs $found_dir"
8365 fi
8366 else
8367 haveit=
8368 for x in $LDFLAGS $LIBPTH; do
8369
8370 acl_save_prefix="$prefix"
8371 prefix="$acl_final_prefix"
8372 acl_save_exec_prefix="$exec_prefix"
8373 exec_prefix="$acl_final_exec_prefix"
8374 eval x=\"$x\"
8375 exec_prefix="$acl_save_exec_prefix"
8376 prefix="$acl_save_prefix"
8377
8378 if test "X$x" = "X-L$found_dir"; then
8379 haveit=yes
8380 break
8381 fi
8382 done
8383 if test -z "$haveit"; then
8384 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
8385 fi
8386 if test "$acl_hardcode_minus_L" != no; then
8387 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
8388 else
8389 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8390 fi
8391 fi
8392 fi
8393 fi
8394 else
8395 if test "X$found_a" != "X"; then
8396 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
8397 else
8398 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
8399 fi
8400 fi
8401 additional_includedir=
8402 case "$found_dir" in
8403 */$acl_libdirstem | */$acl_libdirstem/)
8404 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
8405 if test "$name" = 'pth'; then
8406 LIBPTH_PREFIX="$basedir"
8407 fi
8408 additional_includedir="$basedir/include"
8409 ;;
8410 */$acl_libdirstem2 | */$acl_libdirstem2/)
8411 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
8412 if test "$name" = 'pth'; then
8413 LIBPTH_PREFIX="$basedir"
8414 fi
8415 additional_includedir="$basedir/include"
8416 ;;
8417 esac
8418 if test "X$additional_includedir" != "X"; then
8419 if test "X$additional_includedir" != "X/usr/include"; then
8420 haveit=
8421 if test "X$additional_includedir" = "X/usr/local/include"; then
8422 if test -n "$GCC"; then
8423 case $host_os in
8424 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8425 esac
8426 fi
8427 fi
8428 if test -z "$haveit"; then
8429 for x in $CPPFLAGS $INCPTH; do
8430
8431 acl_save_prefix="$prefix"
8432 prefix="$acl_final_prefix"
8433 acl_save_exec_prefix="$exec_prefix"
8434 exec_prefix="$acl_final_exec_prefix"
8435 eval x=\"$x\"
8436 exec_prefix="$acl_save_exec_prefix"
8437 prefix="$acl_save_prefix"
8438
8439 if test "X$x" = "X-I$additional_includedir"; then
8440 haveit=yes
8441 break
8442 fi
8443 done
8444 if test -z "$haveit"; then
8445 if test -d "$additional_includedir"; then
8446 INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
8447 fi
8448 fi
8449 fi
8450 fi
8451 fi
8452 if test -n "$found_la"; then
8453 save_libdir="$libdir"
8454 case "$found_la" in
8455 */* | *\\*) . "$found_la" ;;
8456 *) . "./$found_la" ;;
8457 esac
8458 libdir="$save_libdir"
8459 for dep in $dependency_libs; do
8460 case "$dep" in
8461 -L*)
8462 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
8463 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
8464 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
8465 haveit=
8466 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
8467 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
8468 if test -n "$GCC"; then
8469 case $host_os in
8470 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
8471 esac
8472 fi
8473 fi
8474 if test -z "$haveit"; then
8475 haveit=
8476 for x in $LDFLAGS $LIBPTH; do
8477
8478 acl_save_prefix="$prefix"
8479 prefix="$acl_final_prefix"
8480 acl_save_exec_prefix="$exec_prefix"
8481 exec_prefix="$acl_final_exec_prefix"
8482 eval x=\"$x\"
8483 exec_prefix="$acl_save_exec_prefix"
8484 prefix="$acl_save_prefix"
8485
8486 if test "X$x" = "X-L$additional_libdir"; then
8487 haveit=yes
8488 break
8489 fi
8490 done
8491 if test -z "$haveit"; then
8492 if test -d "$additional_libdir"; then
8493 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
8494 fi
8495 fi
8496 haveit=
8497 for x in $LDFLAGS $LTLIBPTH; do
8498
8499 acl_save_prefix="$prefix"
8500 prefix="$acl_final_prefix"
8501 acl_save_exec_prefix="$exec_prefix"
8502 exec_prefix="$acl_final_exec_prefix"
8503 eval x=\"$x\"
8504 exec_prefix="$acl_save_exec_prefix"
8505 prefix="$acl_save_prefix"
8506
8507 if test "X$x" = "X-L$additional_libdir"; then
8508 haveit=yes
8509 break
8510 fi
8511 done
8512 if test -z "$haveit"; then
8513 if test -d "$additional_libdir"; then
8514 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
8515 fi
8516 fi
8517 fi
8518 fi
8519 ;;
8520 -R*)
8521 dir=`echo "X$dep" | sed -e 's/^X-R//'`
8522 if test "$enable_rpath" != no; then
8523 haveit=
8524 for x in $rpathdirs; do
8525 if test "X$x" = "X$dir"; then
8526 haveit=yes
8527 break
8528 fi
8529 done
8530 if test -z "$haveit"; then
8531 rpathdirs="$rpathdirs $dir"
8532 fi
8533 haveit=
8534 for x in $ltrpathdirs; do
8535 if test "X$x" = "X$dir"; then
8536 haveit=yes
8537 break
8538 fi
8539 done
8540 if test -z "$haveit"; then
8541 ltrpathdirs="$ltrpathdirs $dir"
8542 fi
8543 fi
8544 ;;
8545 -l*)
8546 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
8547 ;;
8548 *.la)
8549 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
8550 ;;
8551 *)
8552 LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
8553 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
8554 ;;
8555 esac
8556 done
8557 fi
8558 else
8559 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
8560 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
8561 fi
8562 fi
8563 fi
8564 done
8565 done
8566 if test "X$rpathdirs" != "X"; then
8567 if test -n "$acl_hardcode_libdir_separator"; then
8568 alldirs=
8569 for found_dir in $rpathdirs; do
8570 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
8571 done
8572 acl_save_libdir="$libdir"
8573 libdir="$alldirs"
8574 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8575 libdir="$acl_save_libdir"
8576 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8577 else
8578 for found_dir in $rpathdirs; do
8579 acl_save_libdir="$libdir"
8580 libdir="$found_dir"
8581 eval flag=\"$acl_hardcode_libdir_flag_spec\"
8582 libdir="$acl_save_libdir"
8583 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
8584 done
8585 fi
8586 fi
8587 if test "X$ltrpathdirs" != "X"; then
8588 for found_dir in $ltrpathdirs; do
8589 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
8590 done
8591 fi
8592
8593
8594
8595
8596
8597
8598 ac_cv_libpth_libs="$LIBPTH"
8599 ac_cv_libpth_ltlibs="$LTLIBPTH"
8600 ac_cv_libpth_cppflags="$INCPTH"
8601 ac_cv_libpth_prefix="$LIBPTH_PREFIX"
8602
8603fi
8604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
8605$as_echo "$ac_cv_libpth_libs" >&6; }
8606 LIBPTH="$ac_cv_libpth_libs"
8607 LTLIBPTH="$ac_cv_libpth_ltlibs"
8608 INCPTH="$ac_cv_libpth_cppflags"
8609 LIBPTH_PREFIX="$ac_cv_libpth_prefix"
8610
8611 for element in $INCPTH; do
8612 haveit=
8613 for x in $CPPFLAGS; do
8614
8615 acl_save_prefix="$prefix"
8616 prefix="$acl_final_prefix"
8617 acl_save_exec_prefix="$exec_prefix"
8618 exec_prefix="$acl_final_exec_prefix"
8619 eval x=\"$x\"
8620 exec_prefix="$acl_save_exec_prefix"
8621 prefix="$acl_save_prefix"
8622
8623 if test "X$x" = "X$element"; then
8624 haveit=yes
8625 break
8626 fi
8627 done
8628 if test -z "$haveit"; then
8629 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
8630 fi
8631 done
8632
8633
8634
8635
8636 HAVE_LIBPTH=yes
8637
8638
8639
8640 gl_have_pth=
8641 gl_save_LIBS="$LIBS"
8642 LIBS="$LIBS $LIBPTH"
8643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8644/* end confdefs.h. */
8645#include <pth.h>
8646int
8647main ()
8648{
8649pth_self();
8650 ;
8651 return 0;
8652}
8653_ACEOF
8654if ac_fn_c_try_link "$LINENO"; then :
8655 gl_have_pth=yes
8656fi
8657rm -f core conftest.err conftest.$ac_objext \
8658 conftest$ac_exeext conftest.$ac_ext
8659 LIBS="$gl_save_LIBS"
8660 if test -n "$gl_have_pth"; then
8661 gl_threads_api=pth
8662 LIBTHREAD="$LIBPTH"
8663 LTLIBTHREAD="$LTLIBPTH"
8664 LIBMULTITHREAD="$LIBTHREAD"
8665 LTLIBMULTITHREAD="$LTLIBTHREAD"
8666
8667$as_echo "#define USE_PTH_THREADS 1" >>confdefs.h
8668
8669 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
8670 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
8671
8672$as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
8673
8674 LIBTHREAD=
8675 LTLIBTHREAD=
8676 fi
8677 fi
8678 else
8679 CPPFLAGS="$gl_save_CPPFLAGS"
8680 fi
8681 fi
8682 if test -z "$gl_have_pthread"; then
8683 case "$gl_use_threads" in
8684 yes | windows | win32) # The 'win32' is for backward compatibility.
8685 if { case "$host_os" in
8686 mingw*) true;;
8687 *) false;;
8688 esac
8689 }; then
8690 gl_threads_api=windows
8691
8692$as_echo "#define USE_WINDOWS_THREADS 1" >>confdefs.h
8693
8694 fi
8695 ;;
8696 esac
8697 fi
8698 fi
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
8700$as_echo_n "checking for multithread API to use... " >&6; }
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
8702$as_echo "$gl_threads_api" >&6; }
8703
8704
8705
8706
8707
8708
8709
8710
8711
8712
8713
8714 if test "$gl_threads_api" = posix; then
8715 # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
8716 # pthread_rwlock_* functions.
8717 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
8718"
8719if test "x$ac_cv_type_pthread_rwlock_t" = xyes; then :
8720
8721$as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
8722
8723fi
8724
8725 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
8726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8727/* end confdefs.h. */
8728
8729 #include <pthread.h>
8730int
8731main ()
8732{
8733
8734#if __FreeBSD__ == 4
8735error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
8736#elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
8737 && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
8738error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
8739#else
8740int x = (int)PTHREAD_MUTEX_RECURSIVE;
8741return !x;
8742#endif
8743
8744 ;
8745 return 0;
8746}
8747_ACEOF
8748if ac_fn_c_try_compile "$LINENO"; then :
8749
8750$as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
8751
8752fi
8753rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8754 fi
8755 :
8756
8757
8758
8759
8760
8761
8762
8763
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008764
8765
8766
8767
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008768 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008769
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008770 acl_save_prefix="$prefix"
8771 prefix="$acl_final_prefix"
8772 acl_save_exec_prefix="$exec_prefix"
8773 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008774
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008775 eval additional_includedir=\"$includedir\"
8776 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008777
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008778 exec_prefix="$acl_save_exec_prefix"
8779 prefix="$acl_save_prefix"
8780
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008781
Theodore Ts'oe1052142006-10-21 21:46:47 -04008782# Check whether --with-libiconv-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05008783if test "${with_libiconv_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -04008784 withval=$with_libiconv_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008785 if test "X$withval" = "Xno"; then
8786 use_additional=no
8787 else
8788 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008789
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008790 acl_save_prefix="$prefix"
8791 prefix="$acl_final_prefix"
8792 acl_save_exec_prefix="$exec_prefix"
8793 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008794
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008795 eval additional_includedir=\"$includedir\"
8796 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008797
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008798 exec_prefix="$acl_save_exec_prefix"
8799 prefix="$acl_save_prefix"
8800
8801 else
8802 additional_includedir="$withval/include"
Theodore Ts'o93613952014-07-03 23:44:13 -04008803 additional_libdir="$withval/$acl_libdirstem"
8804 if test "$acl_libdirstem2" != "$acl_libdirstem" \
8805 && ! test -d "$withval/$acl_libdirstem"; then
8806 additional_libdir="$withval/$acl_libdirstem2"
8807 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008808 fi
8809 fi
8810
Theodore Ts'oe1052142006-10-21 21:46:47 -04008811fi
8812
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008813 LIBICONV=
8814 LTLIBICONV=
8815 INCICONV=
Theodore Ts'o93613952014-07-03 23:44:13 -04008816 LIBICONV_PREFIX=
8817 HAVE_LIBICONV=
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008818 rpathdirs=
8819 ltrpathdirs=
8820 names_already_handled=
8821 names_next_round='iconv '
8822 while test -n "$names_next_round"; do
8823 names_this_round="$names_next_round"
8824 names_next_round=
8825 for name in $names_this_round; do
8826 already_handled=
8827 for n in $names_already_handled; do
8828 if test "$n" = "$name"; then
8829 already_handled=yes
8830 break
8831 fi
8832 done
8833 if test -z "$already_handled"; then
8834 names_already_handled="$names_already_handled $name"
Theodore Ts'o93613952014-07-03 23:44:13 -04008835 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008836 eval value=\"\$HAVE_LIB$uppername\"
8837 if test -n "$value"; then
8838 if test "$value" = yes; then
8839 eval value=\"\$LIB$uppername\"
8840 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
8841 eval value=\"\$LTLIB$uppername\"
8842 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
8843 else
8844 :
8845 fi
8846 else
8847 found_dir=
8848 found_la=
8849 found_so=
8850 found_a=
Theodore Ts'o93613952014-07-03 23:44:13 -04008851 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
8852 if test -n "$acl_shlibext"; then
8853 shrext=".$acl_shlibext" # typically: shrext=.so
8854 else
8855 shrext=
8856 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008857 if test $use_additional = yes; then
Theodore Ts'o93613952014-07-03 23:44:13 -04008858 dir="$additional_libdir"
8859 if test -n "$acl_shlibext"; then
8860 if test -f "$dir/$libname$shrext"; then
8861 found_dir="$dir"
8862 found_so="$dir/$libname$shrext"
8863 else
8864 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8865 ver=`(cd "$dir" && \
8866 for f in "$libname$shrext".*; do echo "$f"; done \
8867 | sed -e "s,^$libname$shrext\\\\.,," \
8868 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8869 | sed 1q ) 2>/dev/null`
8870 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8871 found_dir="$dir"
8872 found_so="$dir/$libname$shrext.$ver"
8873 fi
8874 else
8875 eval library_names=\"$acl_library_names_spec\"
8876 for f in $library_names; do
8877 if test -f "$dir/$f"; then
8878 found_dir="$dir"
8879 found_so="$dir/$f"
8880 break
8881 fi
8882 done
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008883 fi
8884 fi
8885 fi
Theodore Ts'o93613952014-07-03 23:44:13 -04008886 if test "X$found_dir" = "X"; then
8887 if test -f "$dir/$libname.$acl_libext"; then
8888 found_dir="$dir"
8889 found_a="$dir/$libname.$acl_libext"
8890 fi
8891 fi
8892 if test "X$found_dir" != "X"; then
8893 if test -f "$dir/$libname.la"; then
8894 found_la="$dir/$libname.la"
8895 fi
8896 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008897 fi
8898 if test "X$found_dir" = "X"; then
8899 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008900
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008901 acl_save_prefix="$prefix"
8902 prefix="$acl_final_prefix"
8903 acl_save_exec_prefix="$exec_prefix"
8904 exec_prefix="$acl_final_exec_prefix"
8905 eval x=\"$x\"
8906 exec_prefix="$acl_save_exec_prefix"
8907 prefix="$acl_save_prefix"
8908
8909 case "$x" in
8910 -L*)
8911 dir=`echo "X$x" | sed -e 's/^X-L//'`
Theodore Ts'o93613952014-07-03 23:44:13 -04008912 if test -n "$acl_shlibext"; then
8913 if test -f "$dir/$libname$shrext"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008914 found_dir="$dir"
Theodore Ts'o93613952014-07-03 23:44:13 -04008915 found_so="$dir/$libname$shrext"
8916 else
8917 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
8918 ver=`(cd "$dir" && \
8919 for f in "$libname$shrext".*; do echo "$f"; done \
8920 | sed -e "s,^$libname$shrext\\\\.,," \
8921 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
8922 | sed 1q ) 2>/dev/null`
8923 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
8924 found_dir="$dir"
8925 found_so="$dir/$libname$shrext.$ver"
8926 fi
8927 else
8928 eval library_names=\"$acl_library_names_spec\"
8929 for f in $library_names; do
8930 if test -f "$dir/$f"; then
8931 found_dir="$dir"
8932 found_so="$dir/$f"
8933 break
8934 fi
8935 done
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008936 fi
8937 fi
8938 fi
Theodore Ts'o93613952014-07-03 23:44:13 -04008939 if test "X$found_dir" = "X"; then
8940 if test -f "$dir/$libname.$acl_libext"; then
8941 found_dir="$dir"
8942 found_a="$dir/$libname.$acl_libext"
8943 fi
8944 fi
8945 if test "X$found_dir" != "X"; then
8946 if test -f "$dir/$libname.la"; then
8947 found_la="$dir/$libname.la"
8948 fi
8949 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008950 ;;
8951 esac
8952 if test "X$found_dir" != "X"; then
8953 break
8954 fi
8955 done
8956 fi
8957 if test "X$found_dir" != "X"; then
8958 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
8959 if test "X$found_so" != "X"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04008960 if test "$enable_rpath" = no \
8961 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
8962 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008963 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8964 else
8965 haveit=
8966 for x in $ltrpathdirs; do
8967 if test "X$x" = "X$found_dir"; then
8968 haveit=yes
8969 break
8970 fi
8971 done
8972 if test -z "$haveit"; then
8973 ltrpathdirs="$ltrpathdirs $found_dir"
8974 fi
Theodore Ts'o93613952014-07-03 23:44:13 -04008975 if test "$acl_hardcode_direct" = yes; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008976 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8977 else
Theodore Ts'o93613952014-07-03 23:44:13 -04008978 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008979 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
8980 haveit=
8981 for x in $rpathdirs; do
8982 if test "X$x" = "X$found_dir"; then
8983 haveit=yes
8984 break
8985 fi
8986 done
8987 if test -z "$haveit"; then
8988 rpathdirs="$rpathdirs $found_dir"
8989 fi
8990 else
8991 haveit=
8992 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05008993
Theodore Ts'oa04eba32003-05-03 16:35:17 -04008994 acl_save_prefix="$prefix"
8995 prefix="$acl_final_prefix"
8996 acl_save_exec_prefix="$exec_prefix"
8997 exec_prefix="$acl_final_exec_prefix"
8998 eval x=\"$x\"
8999 exec_prefix="$acl_save_exec_prefix"
9000 prefix="$acl_save_prefix"
9001
9002 if test "X$x" = "X-L$found_dir"; then
9003 haveit=yes
9004 break
9005 fi
9006 done
9007 if test -z "$haveit"; then
9008 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
9009 fi
Theodore Ts'o93613952014-07-03 23:44:13 -04009010 if test "$acl_hardcode_minus_L" != no; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009011 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
9012 else
9013 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9014 fi
9015 fi
9016 fi
9017 fi
9018 else
9019 if test "X$found_a" != "X"; then
9020 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
9021 else
9022 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
9023 fi
9024 fi
9025 additional_includedir=
9026 case "$found_dir" in
Theodore Ts'o93613952014-07-03 23:44:13 -04009027 */$acl_libdirstem | */$acl_libdirstem/)
9028 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
9029 if test "$name" = 'iconv'; then
9030 LIBICONV_PREFIX="$basedir"
9031 fi
9032 additional_includedir="$basedir/include"
9033 ;;
9034 */$acl_libdirstem2 | */$acl_libdirstem2/)
9035 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
9036 if test "$name" = 'iconv'; then
9037 LIBICONV_PREFIX="$basedir"
9038 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009039 additional_includedir="$basedir/include"
9040 ;;
9041 esac
9042 if test "X$additional_includedir" != "X"; then
9043 if test "X$additional_includedir" != "X/usr/include"; then
9044 haveit=
9045 if test "X$additional_includedir" = "X/usr/local/include"; then
9046 if test -n "$GCC"; then
9047 case $host_os in
Theodore Ts'o93613952014-07-03 23:44:13 -04009048 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009049 esac
9050 fi
9051 fi
9052 if test -z "$haveit"; then
9053 for x in $CPPFLAGS $INCICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009054
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009055 acl_save_prefix="$prefix"
9056 prefix="$acl_final_prefix"
9057 acl_save_exec_prefix="$exec_prefix"
9058 exec_prefix="$acl_final_exec_prefix"
9059 eval x=\"$x\"
9060 exec_prefix="$acl_save_exec_prefix"
9061 prefix="$acl_save_prefix"
9062
9063 if test "X$x" = "X-I$additional_includedir"; then
9064 haveit=yes
9065 break
9066 fi
9067 done
9068 if test -z "$haveit"; then
9069 if test -d "$additional_includedir"; then
9070 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
9071 fi
9072 fi
9073 fi
9074 fi
9075 fi
9076 if test -n "$found_la"; then
9077 save_libdir="$libdir"
9078 case "$found_la" in
9079 */* | *\\*) . "$found_la" ;;
9080 *) . "./$found_la" ;;
9081 esac
9082 libdir="$save_libdir"
9083 for dep in $dependency_libs; do
9084 case "$dep" in
9085 -L*)
9086 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
Theodore Ts'o93613952014-07-03 23:44:13 -04009087 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
9088 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009089 haveit=
Theodore Ts'o93613952014-07-03 23:44:13 -04009090 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
9091 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009092 if test -n "$GCC"; then
9093 case $host_os in
Theodore Ts'o93613952014-07-03 23:44:13 -04009094 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009095 esac
9096 fi
9097 fi
9098 if test -z "$haveit"; then
9099 haveit=
9100 for x in $LDFLAGS $LIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009101
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009102 acl_save_prefix="$prefix"
9103 prefix="$acl_final_prefix"
9104 acl_save_exec_prefix="$exec_prefix"
9105 exec_prefix="$acl_final_exec_prefix"
9106 eval x=\"$x\"
9107 exec_prefix="$acl_save_exec_prefix"
9108 prefix="$acl_save_prefix"
9109
9110 if test "X$x" = "X-L$additional_libdir"; then
9111 haveit=yes
9112 break
9113 fi
9114 done
9115 if test -z "$haveit"; then
9116 if test -d "$additional_libdir"; then
9117 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
9118 fi
9119 fi
9120 haveit=
9121 for x in $LDFLAGS $LTLIBICONV; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009122
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009123 acl_save_prefix="$prefix"
9124 prefix="$acl_final_prefix"
9125 acl_save_exec_prefix="$exec_prefix"
9126 exec_prefix="$acl_final_exec_prefix"
9127 eval x=\"$x\"
9128 exec_prefix="$acl_save_exec_prefix"
9129 prefix="$acl_save_prefix"
9130
9131 if test "X$x" = "X-L$additional_libdir"; then
9132 haveit=yes
9133 break
9134 fi
9135 done
9136 if test -z "$haveit"; then
9137 if test -d "$additional_libdir"; then
9138 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
9139 fi
9140 fi
9141 fi
9142 fi
9143 ;;
9144 -R*)
9145 dir=`echo "X$dep" | sed -e 's/^X-R//'`
9146 if test "$enable_rpath" != no; then
9147 haveit=
9148 for x in $rpathdirs; do
9149 if test "X$x" = "X$dir"; then
9150 haveit=yes
9151 break
9152 fi
9153 done
9154 if test -z "$haveit"; then
9155 rpathdirs="$rpathdirs $dir"
9156 fi
9157 haveit=
9158 for x in $ltrpathdirs; do
9159 if test "X$x" = "X$dir"; then
9160 haveit=yes
9161 break
9162 fi
9163 done
9164 if test -z "$haveit"; then
9165 ltrpathdirs="$ltrpathdirs $dir"
9166 fi
9167 fi
9168 ;;
9169 -l*)
9170 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
9171 ;;
9172 *.la)
9173 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
9174 ;;
9175 *)
9176 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
9177 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
9178 ;;
9179 esac
9180 done
9181 fi
9182 else
9183 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
9184 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
9185 fi
9186 fi
9187 fi
9188 done
9189 done
9190 if test "X$rpathdirs" != "X"; then
Theodore Ts'o93613952014-07-03 23:44:13 -04009191 if test -n "$acl_hardcode_libdir_separator"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009192 alldirs=
9193 for found_dir in $rpathdirs; do
Theodore Ts'o93613952014-07-03 23:44:13 -04009194 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009195 done
9196 acl_save_libdir="$libdir"
9197 libdir="$alldirs"
Theodore Ts'o93613952014-07-03 23:44:13 -04009198 eval flag=\"$acl_hardcode_libdir_flag_spec\"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009199 libdir="$acl_save_libdir"
9200 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9201 else
9202 for found_dir in $rpathdirs; do
9203 acl_save_libdir="$libdir"
9204 libdir="$found_dir"
Theodore Ts'o93613952014-07-03 23:44:13 -04009205 eval flag=\"$acl_hardcode_libdir_flag_spec\"
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009206 libdir="$acl_save_libdir"
9207 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
9208 done
9209 fi
9210 fi
9211 if test "X$ltrpathdirs" != "X"; then
9212 for found_dir in $ltrpathdirs; do
9213 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
9214 done
9215 fi
9216
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009217
9218
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009219
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009220
9221
9222
9223
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009224
9225
9226
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009227
9228 am_save_CPPFLAGS="$CPPFLAGS"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009229
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009230 for element in $INCICONV; do
9231 haveit=
9232 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009233
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009234 acl_save_prefix="$prefix"
9235 prefix="$acl_final_prefix"
9236 acl_save_exec_prefix="$exec_prefix"
9237 exec_prefix="$acl_final_exec_prefix"
9238 eval x=\"$x\"
9239 exec_prefix="$acl_save_exec_prefix"
9240 prefix="$acl_save_prefix"
9241
9242 if test "X$x" = "X$element"; then
9243 haveit=yes
9244 break
9245 fi
9246 done
9247 if test -z "$haveit"; then
9248 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
9249 fi
9250 done
9251
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009252
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009254$as_echo_n "checking for iconv... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009255if ${am_cv_func_iconv+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009256 $as_echo_n "(cached) " >&6
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009257else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009258
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009259 am_cv_func_iconv="no, consider installing GNU libiconv"
9260 am_cv_lib_iconv=no
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009262/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -04009263
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009264#include <stdlib.h>
9265#include <iconv.h>
Theodore Ts'o93613952014-07-03 23:44:13 -04009266
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009267int
9268main ()
9269{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009270iconv_t cd = iconv_open("","");
Theodore Ts'o93613952014-07-03 23:44:13 -04009271 iconv(cd,NULL,NULL,NULL,NULL);
9272 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009273 ;
9274 return 0;
9275}
9276_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009277if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009278 am_cv_func_iconv=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009279fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009280rm -f core conftest.err conftest.$ac_objext \
9281 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009282 if test "$am_cv_func_iconv" != yes; then
9283 am_save_LIBS="$LIBS"
9284 LIBS="$LIBS $LIBICONV"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009286/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -04009287
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009288#include <stdlib.h>
9289#include <iconv.h>
Theodore Ts'o93613952014-07-03 23:44:13 -04009290
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009291int
9292main ()
9293{
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009294iconv_t cd = iconv_open("","");
Theodore Ts'o93613952014-07-03 23:44:13 -04009295 iconv(cd,NULL,NULL,NULL,NULL);
9296 iconv_close(cd);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009297 ;
9298 return 0;
9299}
9300_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009301if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009302 am_cv_lib_iconv=yes
9303 am_cv_func_iconv=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009304fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009305rm -f core conftest.err conftest.$ac_objext \
9306 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009307 LIBS="$am_save_LIBS"
9308 fi
Theodore Ts'o07a0db12003-07-05 14:50:24 -04009309
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009310fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009312$as_echo "$am_cv_func_iconv" >&6; }
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009313 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'o93613952014-07-03 23:44:13 -04009314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
9315$as_echo_n "checking for working iconv... " >&6; }
9316if ${am_cv_func_iconv_works+:} false; then :
9317 $as_echo_n "(cached) " >&6
9318else
9319
9320 am_save_LIBS="$LIBS"
9321 if test $am_cv_lib_iconv = yes; then
9322 LIBS="$LIBS $LIBICONV"
9323 fi
9324 if test "$cross_compiling" = yes; then :
9325
9326 case "$host_os" in
9327 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
9328 *) am_cv_func_iconv_works="guessing yes" ;;
9329 esac
9330
9331else
9332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9333/* end confdefs.h. */
9334
9335#include <iconv.h>
9336#include <string.h>
9337int main ()
9338{
9339 int result = 0;
9340 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
9341 returns. */
9342 {
9343 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
9344 if (cd_utf8_to_88591 != (iconv_t)(-1))
9345 {
9346 static const char input[] = "\342\202\254"; /* EURO SIGN */
9347 char buf[10];
9348 const char *inptr = input;
9349 size_t inbytesleft = strlen (input);
9350 char *outptr = buf;
9351 size_t outbytesleft = sizeof (buf);
9352 size_t res = iconv (cd_utf8_to_88591,
9353 (char **) &inptr, &inbytesleft,
9354 &outptr, &outbytesleft);
9355 if (res == 0)
9356 result |= 1;
9357 iconv_close (cd_utf8_to_88591);
9358 }
9359 }
9360 /* Test against Solaris 10 bug: Failures are not distinguishable from
9361 successful returns. */
9362 {
9363 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
9364 if (cd_ascii_to_88591 != (iconv_t)(-1))
9365 {
9366 static const char input[] = "\263";
9367 char buf[10];
9368 const char *inptr = input;
9369 size_t inbytesleft = strlen (input);
9370 char *outptr = buf;
9371 size_t outbytesleft = sizeof (buf);
9372 size_t res = iconv (cd_ascii_to_88591,
9373 (char **) &inptr, &inbytesleft,
9374 &outptr, &outbytesleft);
9375 if (res == 0)
9376 result |= 2;
9377 iconv_close (cd_ascii_to_88591);
9378 }
9379 }
9380 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
9381 {
9382 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
9383 if (cd_88591_to_utf8 != (iconv_t)(-1))
9384 {
9385 static const char input[] = "\304";
9386 static char buf[2] = { (char)0xDE, (char)0xAD };
9387 const char *inptr = input;
9388 size_t inbytesleft = 1;
9389 char *outptr = buf;
9390 size_t outbytesleft = 1;
9391 size_t res = iconv (cd_88591_to_utf8,
9392 (char **) &inptr, &inbytesleft,
9393 &outptr, &outbytesleft);
9394 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
9395 result |= 4;
9396 iconv_close (cd_88591_to_utf8);
9397 }
9398 }
9399#if 0 /* This bug could be worked around by the caller. */
9400 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
9401 {
9402 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
9403 if (cd_88591_to_utf8 != (iconv_t)(-1))
9404 {
9405 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
9406 char buf[50];
9407 const char *inptr = input;
9408 size_t inbytesleft = strlen (input);
9409 char *outptr = buf;
9410 size_t outbytesleft = sizeof (buf);
9411 size_t res = iconv (cd_88591_to_utf8,
9412 (char **) &inptr, &inbytesleft,
9413 &outptr, &outbytesleft);
9414 if ((int)res > 0)
9415 result |= 8;
9416 iconv_close (cd_88591_to_utf8);
9417 }
9418 }
9419#endif
9420 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
9421 provided. */
9422 if (/* Try standardized names. */
9423 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
9424 /* Try IRIX, OSF/1 names. */
9425 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
9426 /* Try AIX names. */
9427 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
9428 /* Try HP-UX names. */
9429 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
9430 result |= 16;
9431 return result;
9432}
9433_ACEOF
9434if ac_fn_c_try_run "$LINENO"; then :
9435 am_cv_func_iconv_works=yes
9436else
9437 am_cv_func_iconv_works=no
9438fi
9439rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9440 conftest.$ac_objext conftest.beam conftest.$ac_ext
9441fi
9442
9443 LIBS="$am_save_LIBS"
9444
9445fi
9446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
9447$as_echo "$am_cv_func_iconv_works" >&6; }
9448 case "$am_cv_func_iconv_works" in
9449 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
9450 *) am_func_iconv=yes ;;
9451 esac
9452 else
9453 am_func_iconv=no am_cv_lib_iconv=no
9454 fi
9455 if test "$am_func_iconv" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009456
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009457$as_echo "#define HAVE_ICONV 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009458
9459 fi
9460 if test "$am_cv_lib_iconv" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009462$as_echo_n "checking how to link with libiconv... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009464$as_echo "$LIBICONV" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009465 else
9466 CPPFLAGS="$am_save_CPPFLAGS"
9467 LIBICONV=
9468 LTLIBICONV=
9469 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009470
9471
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009472
9473 if test "$am_cv_func_iconv" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009475$as_echo_n "checking for iconv declaration... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009476 if ${am_cv_proto_iconv+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009477 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009478else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009479
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009481/* end confdefs.h. */
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009482
9483#include <stdlib.h>
9484#include <iconv.h>
9485extern
9486#ifdef __cplusplus
9487"C"
9488#endif
Theodore Ts'o93613952014-07-03 23:44:13 -04009489#if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009490size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
9491#else
9492size_t iconv();
9493#endif
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009494
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009495int
9496main ()
9497{
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009498
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009499 ;
9500 return 0;
9501}
9502_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009503if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009504 am_cv_proto_iconv_arg1=""
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009505else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009506 am_cv_proto_iconv_arg1="const"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009507fi
Theodore Ts'oe1052142006-10-21 21:46:47 -04009508rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009509 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 +00009510fi
9511
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009512 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
Theodore Ts'o93613952014-07-03 23:44:13 -04009513 { $as_echo "$as_me:${as_lineno-$LINENO}: result:
9514 $am_cv_proto_iconv" >&5
9515$as_echo "
9516 $am_cv_proto_iconv" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009517
9518cat >>confdefs.h <<_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009519#define ICONV_CONST $am_cv_proto_iconv_arg1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009520_ACEOF
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009521
Theodore Ts'o93613952014-07-03 23:44:13 -04009522
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009523 fi
9524
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009525
Theodore Ts'o93613952014-07-03 23:44:13 -04009526
9527
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009529/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -04009530int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009531int
9532main ()
9533{
Theodore Ts'o93613952014-07-03 23:44:13 -04009534
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009535 ;
9536 return 0;
9537}
9538_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009539if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o93613952014-07-03 23:44:13 -04009540
9541$as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h
9542
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009543fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009544rm -f core conftest.err conftest.$ac_objext \
9545 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009546
Theodore Ts'o93613952014-07-03 23:44:13 -04009547 for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h
9548do :
9549 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9550ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9551if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9552 cat >>confdefs.h <<_ACEOF
9553#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009554_ACEOF
Theodore Ts'o93613952014-07-03 23:44:13 -04009555
9556fi
9557
9558done
9559
9560 for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \
9561 stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \
9562 argz_stringify argz_next __fsetlocking
9563do :
9564 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9565ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
9566if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
9567 cat >>confdefs.h <<_ACEOF
9568#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
9569_ACEOF
9570
9571fi
9572done
9573
9574
9575 ac_fn_c_check_decl "$LINENO" "feof_unlocked" "ac_cv_have_decl_feof_unlocked" "#include <stdio.h>
9576"
9577if test "x$ac_cv_have_decl_feof_unlocked" = xyes; then :
9578 ac_have_decl=1
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009579else
Theodore Ts'o93613952014-07-03 23:44:13 -04009580 ac_have_decl=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009581fi
Theodore Ts'o93613952014-07-03 23:44:13 -04009582
9583cat >>confdefs.h <<_ACEOF
9584#define HAVE_DECL_FEOF_UNLOCKED $ac_have_decl
9585_ACEOF
9586ac_fn_c_check_decl "$LINENO" "fgets_unlocked" "ac_cv_have_decl_fgets_unlocked" "#include <stdio.h>
9587"
9588if test "x$ac_cv_have_decl_fgets_unlocked" = xyes; then :
9589 ac_have_decl=1
9590else
9591 ac_have_decl=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009592fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009593
Theodore Ts'o93613952014-07-03 23:44:13 -04009594cat >>confdefs.h <<_ACEOF
9595#define HAVE_DECL_FGETS_UNLOCKED $ac_have_decl
9596_ACEOF
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009597
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009598
Theodore Ts'o93613952014-07-03 23:44:13 -04009599
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009600
9601 for ac_prog in bison
9602do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009603 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009604set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009606$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009607if ${ac_cv_prog_INTLBISON+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009608 $as_echo_n "(cached) " >&6
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009609else
9610 if test -n "$INTLBISON"; then
9611 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
9612else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009613as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9614for as_dir in $PATH
9615do
9616 IFS=$as_save_IFS
9617 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009618 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +10009619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009620 ac_cv_prog_INTLBISON="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009622 break 2
9623 fi
9624done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009625 done
Theodore Ts'oe1052142006-10-21 21:46:47 -04009626IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009627
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009628fi
9629fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009630INTLBISON=$ac_cv_prog_INTLBISON
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009631if test -n "$INTLBISON"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009633$as_echo "$INTLBISON" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009634else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009636$as_echo "no" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009637fi
9638
Theodore Ts'oe1052142006-10-21 21:46:47 -04009639
Theodore Ts'ob0cacab2004-11-30 19:00:19 -05009640 test -n "$INTLBISON" && break
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009641done
9642
9643 if test -z "$INTLBISON"; then
9644 ac_verc_fail=yes
9645 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009647$as_echo_n "checking version of bison... " >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009648 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
9649 case $ac_prog_version in
9650 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
9651 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
9652 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
9653 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
9654 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -05009655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +01009656$as_echo "$ac_prog_version" >&6; }
Theodore Ts'oa04eba32003-05-03 16:35:17 -04009657 fi
9658 if test $ac_verc_fail = yes; then
9659 INTLBISON=:
9660 fi
9661
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009662
Theodore Ts'o93636bd2003-07-12 02:45:05 -04009663
Theodore Ts'o93613952014-07-03 23:44:13 -04009664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
9665$as_echo_n "checking for long long int... " >&6; }
9666if ${ac_cv_type_long_long_int+:} false; then :
9667 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +00009668else
Theodore Ts'o93613952014-07-03 23:44:13 -04009669 ac_cv_type_long_long_int=yes
9670 if test "x${ac_cv_prog_cc_c99-no}" = xno; then
9671 ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
9672 if test $ac_cv_type_long_long_int = yes; then
9673 if test "$cross_compiling" = yes; then :
9674 :
9675else
9676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9677/* end confdefs.h. */
9678#include <limits.h>
9679 #ifndef LLONG_MAX
9680 # define HALF \
9681 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
9682 # define LLONG_MAX (HALF - 1 + HALF)
9683 #endif
9684int
9685main ()
9686{
9687long long int n = 1;
9688 int i;
9689 for (i = 0; ; i++)
9690 {
9691 long long int m = n << i;
9692 if (m >> i != n)
9693 return 1;
9694 if (LLONG_MAX / 2 < m)
9695 break;
9696 }
9697 return 0;
9698 ;
9699 return 0;
9700}
9701_ACEOF
9702if ac_fn_c_try_run "$LINENO"; then :
9703
9704else
9705 ac_cv_type_long_long_int=no
9706fi
9707rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9708 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'oe1052142006-10-21 21:46:47 -04009709fi
9710
Theodore Ts'o93613952014-07-03 23:44:13 -04009711 fi
9712 fi
9713fi
9714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
9715$as_echo "$ac_cv_type_long_long_int" >&6; }
9716 if test $ac_cv_type_long_long_int = yes; then
9717
9718$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
9719
9720 fi
9721
9722
9723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
9724$as_echo_n "checking for wchar_t... " >&6; }
9725if ${gt_cv_c_wchar_t+:} false; then :
9726 $as_echo_n "(cached) " >&6
9727else
9728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9729/* end confdefs.h. */
9730#include <stddef.h>
9731 wchar_t foo = (wchar_t)'\0';
9732int
9733main ()
9734{
9735
9736 ;
9737 return 0;
9738}
9739_ACEOF
9740if ac_fn_c_try_compile "$LINENO"; then :
9741 gt_cv_c_wchar_t=yes
9742else
9743 gt_cv_c_wchar_t=no
9744fi
9745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9746fi
9747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
9748$as_echo "$gt_cv_c_wchar_t" >&6; }
9749 if test $gt_cv_c_wchar_t = yes; then
9750
9751$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h
9752
9753 fi
9754
9755
9756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
9757$as_echo_n "checking for wint_t... " >&6; }
9758if ${gt_cv_c_wint_t+:} false; then :
9759 $as_echo_n "(cached) " >&6
9760else
9761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9762/* end confdefs.h. */
9763
9764/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
9765 <wchar.h>.
9766 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
9767 before <wchar.h>. */
9768#include <stddef.h>
9769#include <stdio.h>
9770#include <time.h>
9771#include <wchar.h>
9772 wint_t foo = (wchar_t)'\0';
9773int
9774main ()
9775{
9776
9777 ;
9778 return 0;
9779}
9780_ACEOF
9781if ac_fn_c_try_compile "$LINENO"; then :
9782 gt_cv_c_wint_t=yes
9783else
9784 gt_cv_c_wint_t=no
9785fi
9786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9787fi
9788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
9789$as_echo "$gt_cv_c_wint_t" >&6; }
9790 if test $gt_cv_c_wint_t = yes; then
9791
9792$as_echo "#define HAVE_WINT_T 1" >>confdefs.h
9793
9794 fi
9795
9796
9797
9798
9799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
9800$as_echo_n "checking for intmax_t... " >&6; }
9801if ${gt_cv_c_intmax_t+:} false; then :
9802 $as_echo_n "(cached) " >&6
9803else
9804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9805/* end confdefs.h. */
9806
9807#include <stddef.h>
9808#include <stdlib.h>
9809#if HAVE_STDINT_H_WITH_UINTMAX
9810#include <stdint.h>
9811#endif
9812#if HAVE_INTTYPES_H_WITH_UINTMAX
9813#include <inttypes.h>
9814#endif
9815
9816int
9817main ()
9818{
9819intmax_t x = -1;
9820 return !x;
9821 ;
9822 return 0;
9823}
9824_ACEOF
9825if ac_fn_c_try_compile "$LINENO"; then :
9826 gt_cv_c_intmax_t=yes
9827else
9828 gt_cv_c_intmax_t=no
9829fi
9830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9831fi
9832{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
9833$as_echo "$gt_cv_c_intmax_t" >&6; }
9834 if test $gt_cv_c_intmax_t = yes; then
9835
9836$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
9837
9838 fi
9839
9840
9841
9842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5
9843$as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; }
9844if ${gt_cv_func_printf_posix+:} false; then :
9845 $as_echo_n "(cached) " >&6
9846else
9847
9848 if test "$cross_compiling" = yes; then :
9849
9850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9851/* end confdefs.h. */
9852
9853#if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__
9854 notposix
9855#endif
9856
9857_ACEOF
9858if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9859 $EGREP "notposix" >/dev/null 2>&1; then :
9860 gt_cv_func_printf_posix="guessing no"
9861else
9862 gt_cv_func_printf_posix="guessing yes"
9863fi
9864rm -f conftest*
9865
9866
9867else
9868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9869/* end confdefs.h. */
9870
9871#include <stdio.h>
9872#include <string.h>
9873/* The string "%2$d %1$d", with dollar characters protected from the shell's
9874 dollar expansion (possibly an autoconf bug). */
9875static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
9876static char buf[100];
9877int main ()
9878{
9879 sprintf (buf, format, 33, 55);
9880 return (strcmp (buf, "55 33") != 0);
9881}
9882_ACEOF
9883if ac_fn_c_try_run "$LINENO"; then :
9884 gt_cv_func_printf_posix=yes
9885else
9886 gt_cv_func_printf_posix=no
9887fi
9888rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9889 conftest.$ac_objext conftest.beam conftest.$ac_ext
9890fi
9891
9892
9893fi
9894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5
9895$as_echo "$gt_cv_func_printf_posix" >&6; }
9896 case $gt_cv_func_printf_posix in
9897 *yes)
9898
9899$as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h
9900
9901 ;;
9902 esac
9903
9904
9905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
9906$as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
9907if ${ac_cv_gnu_library_2_1+:} false; then :
9908 $as_echo_n "(cached) " >&6
9909else
9910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9911/* end confdefs.h. */
9912
9913#include <features.h>
9914#ifdef __GNU_LIBRARY__
9915 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
9916 Lucky GNU user
9917 #endif
9918#endif
9919#ifdef __UCLIBC__
9920 Lucky user
9921#endif
9922
9923_ACEOF
9924if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9925 $EGREP "Lucky" >/dev/null 2>&1; then :
9926 ac_cv_gnu_library_2_1=yes
9927else
9928 ac_cv_gnu_library_2_1=no
9929fi
9930rm -f conftest*
9931
9932
9933
9934fi
9935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5
9936$as_echo "$ac_cv_gnu_library_2_1" >&6; }
9937
9938 GLIBC21="$ac_cv_gnu_library_2_1"
9939
9940
9941
9942 for ac_header in stdint.h
9943do :
9944 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
9945if test "x$ac_cv_header_stdint_h" = xyes; then :
9946 cat >>confdefs.h <<_ACEOF
9947#define HAVE_STDINT_H 1
9948_ACEOF
9949
9950fi
9951
9952done
9953
9954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
9955$as_echo_n "checking for SIZE_MAX... " >&6; }
9956if ${gl_cv_size_max+:} false; then :
9957 $as_echo_n "(cached) " >&6
9958else
9959
9960 gl_cv_size_max=
9961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9962/* end confdefs.h. */
9963
9964#include <limits.h>
9965#if HAVE_STDINT_H
9966#include <stdint.h>
9967#endif
9968#ifdef SIZE_MAX
9969Found it
9970#endif
9971
9972_ACEOF
9973if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9974 $EGREP "Found it" >/dev/null 2>&1; then :
9975 gl_cv_size_max=yes
9976fi
9977rm -f conftest*
9978
9979 if test -z "$gl_cv_size_max"; then
9980 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
9981#include <limits.h>"; then :
9982
9983else
9984 size_t_bits_minus_1=
9985fi
9986
9987 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
9988
9989else
9990 fits_in_uint=
9991fi
9992
9993 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
9994 if test $fits_in_uint = 1; then
9995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9996/* end confdefs.h. */
9997#include <stddef.h>
9998 extern size_t foo;
9999 extern unsigned long foo;
10000
10001int
10002main ()
10003{
10004
10005 ;
10006 return 0;
10007}
10008_ACEOF
10009if ac_fn_c_try_compile "$LINENO"; then :
10010 fits_in_uint=0
10011fi
10012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10013 fi
10014 if test $fits_in_uint = 1; then
10015 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
10016 else
10017 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
10018 fi
10019 else
10020 gl_cv_size_max='((size_t)~(size_t)0)'
10021 fi
10022 fi
10023
10024fi
10025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
10026$as_echo "$gl_cv_size_max" >&6; }
10027 if test "$gl_cv_size_max" != yes; then
10028
10029cat >>confdefs.h <<_ACEOF
10030#define SIZE_MAX $gl_cv_size_max
10031_ACEOF
10032
10033 fi
10034
10035
10036
10037
10038 for ac_header in stdint.h
10039do :
10040 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
10041if test "x$ac_cv_header_stdint_h" = xyes; then :
10042 cat >>confdefs.h <<_ACEOF
10043#define HAVE_STDINT_H 1
10044_ACEOF
10045
10046fi
10047
10048done
10049
10050
10051
10052
10053
10054 for ac_func in $ac_func_list
10055do :
10056 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10057ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10058if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10059 cat >>confdefs.h <<_ACEOF
10060#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10061_ACEOF
10062
10063fi
10064done
10065
10066
10067
10068
10069
10070
10071
10072
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
10074$as_echo_n "checking for working fcntl.h... " >&6; }
10075if ${gl_cv_header_working_fcntl_h+:} false; then :
10076 $as_echo_n "(cached) " >&6
10077else
10078 if test "$cross_compiling" = yes; then :
10079 gl_cv_header_working_fcntl_h=cross-compiling
10080else
10081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10082/* end confdefs.h. */
10083#include <sys/types.h>
10084 #include <sys/stat.h>
10085 #if HAVE_UNISTD_H
10086 # include <unistd.h>
10087 #else /* on Windows with MSVC */
10088 # include <io.h>
10089 # include <stdlib.h>
10090 # defined sleep(n) _sleep ((n) * 1000)
10091 #endif
10092 #include <fcntl.h>
10093 #ifndef O_NOATIME
10094 #define O_NOATIME 0
10095 #endif
10096 #ifndef O_NOFOLLOW
10097 #define O_NOFOLLOW 0
10098 #endif
10099 static int const constants[] =
10100 {
10101 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
10102 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
10103 };
10104
10105int
10106main ()
10107{
10108
10109 int result = !constants;
10110 #if HAVE_SYMLINK
10111 {
10112 static char const sym[] = "conftest.sym";
10113 if (symlink ("/dev/null", sym) != 0)
10114 result |= 2;
10115 else
10116 {
10117 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
10118 if (fd >= 0)
10119 {
10120 close (fd);
10121 result |= 4;
10122 }
10123 }
10124 if (unlink (sym) != 0 || symlink (".", sym) != 0)
10125 result |= 2;
10126 else
10127 {
10128 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
10129 if (fd >= 0)
10130 {
10131 close (fd);
10132 result |= 4;
10133 }
10134 }
10135 unlink (sym);
10136 }
10137 #endif
10138 {
10139 static char const file[] = "confdefs.h";
10140 int fd = open (file, O_RDONLY | O_NOATIME);
10141 if (fd < 0)
10142 result |= 8;
10143 else
10144 {
10145 struct stat st0;
10146 if (fstat (fd, &st0) != 0)
10147 result |= 16;
10148 else
10149 {
10150 char c;
10151 sleep (1);
10152 if (read (fd, &c, 1) != 1)
10153 result |= 24;
10154 else
10155 {
10156 if (close (fd) != 0)
10157 result |= 32;
10158 else
10159 {
10160 struct stat st1;
10161 if (stat (file, &st1) != 0)
10162 result |= 40;
10163 else
10164 if (st0.st_atime != st1.st_atime)
10165 result |= 64;
10166 }
10167 }
10168 }
10169 }
10170 }
10171 return result;
10172 ;
10173 return 0;
10174}
10175_ACEOF
10176if ac_fn_c_try_run "$LINENO"; then :
10177 gl_cv_header_working_fcntl_h=yes
10178else
10179 case $? in #(
10180 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
10181 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
10182 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
10183 *) gl_cv_header_working_fcntl_h='no';;
10184 esac
10185fi
10186rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10187 conftest.$ac_objext conftest.beam conftest.$ac_ext
10188fi
10189
10190fi
10191{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
10192$as_echo "$gl_cv_header_working_fcntl_h" >&6; }
10193
10194 case $gl_cv_header_working_fcntl_h in #(
10195 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
10196 *) ac_val=1;;
10197 esac
10198
10199cat >>confdefs.h <<_ACEOF
10200#define HAVE_WORKING_O_NOATIME $ac_val
10201_ACEOF
10202
10203
10204 case $gl_cv_header_working_fcntl_h in #(
10205 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
10206 *) ac_val=1;;
10207 esac
10208
10209cat >>confdefs.h <<_ACEOF
10210#define HAVE_WORKING_O_NOFOLLOW $ac_val
10211_ACEOF
10212
10213
10214
10215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10216$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10217if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10218 $as_echo_n "(cached) " >&6
10219else
10220 gt_save_LIBS="$LIBS"
10221 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10223/* end confdefs.h. */
10224#include <CoreFoundation/CFPreferences.h>
10225int
10226main ()
10227{
10228CFPreferencesCopyAppValue(NULL, NULL)
10229 ;
10230 return 0;
10231}
10232_ACEOF
10233if ac_fn_c_try_link "$LINENO"; then :
10234 gt_cv_func_CFPreferencesCopyAppValue=yes
10235else
10236 gt_cv_func_CFPreferencesCopyAppValue=no
10237fi
10238rm -f core conftest.err conftest.$ac_objext \
10239 conftest$ac_exeext conftest.$ac_ext
10240 LIBS="$gt_save_LIBS"
10241fi
10242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10243$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10244 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10245
10246$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10247
10248 fi
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10250$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10251if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10252 $as_echo_n "(cached) " >&6
10253else
10254 gt_save_LIBS="$LIBS"
10255 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10257/* end confdefs.h. */
10258#include <CoreFoundation/CFLocale.h>
10259int
10260main ()
10261{
10262CFLocaleCopyCurrent();
10263 ;
10264 return 0;
10265}
10266_ACEOF
10267if ac_fn_c_try_link "$LINENO"; then :
10268 gt_cv_func_CFLocaleCopyCurrent=yes
10269else
10270 gt_cv_func_CFLocaleCopyCurrent=no
10271fi
10272rm -f core conftest.err conftest.$ac_objext \
10273 conftest$ac_exeext conftest.$ac_ext
10274 LIBS="$gt_save_LIBS"
10275fi
10276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10277$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10278 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10279
10280$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10281
10282 fi
10283 INTL_MACOSX_LIBS=
10284 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10285 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10286 fi
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297 case "$enable_silent_rules" in
10298 yes) INTL_DEFAULT_VERBOSITY=0;;
10299 no) INTL_DEFAULT_VERBOSITY=1;;
10300 *) INTL_DEFAULT_VERBOSITY=1;;
10301 esac
10302
10303
10304 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
10305if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
10306
10307else
10308
10309$as_echo "#define ptrdiff_t long" >>confdefs.h
10310
10311
10312fi
10313
10314 for ac_header in features.h stddef.h stdlib.h string.h
10315do :
10316 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10317ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10318if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10319 cat >>confdefs.h <<_ACEOF
10320#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10321_ACEOF
10322
10323fi
10324
10325done
10326
10327 for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \
10328 snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
10329do :
10330 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10331ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10332if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10333 cat >>confdefs.h <<_ACEOF
10334#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10335_ACEOF
10336
10337fi
10338done
10339
10340
10341 ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
10342"
10343if test "x$ac_cv_have_decl__snprintf" = xyes; then :
10344 ac_have_decl=1
10345else
10346 ac_have_decl=0
10347fi
10348
10349cat >>confdefs.h <<_ACEOF
10350#define HAVE_DECL__SNPRINTF $ac_have_decl
10351_ACEOF
10352ac_fn_c_check_decl "$LINENO" "_snwprintf" "ac_cv_have_decl__snwprintf" "#include <stdio.h>
10353"
10354if test "x$ac_cv_have_decl__snwprintf" = xyes; then :
10355 ac_have_decl=1
10356else
10357 ac_have_decl=0
10358fi
10359
10360cat >>confdefs.h <<_ACEOF
10361#define HAVE_DECL__SNWPRINTF $ac_have_decl
10362_ACEOF
10363
10364
10365 ac_fn_c_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "#include <stdio.h>
10366"
10367if test "x$ac_cv_have_decl_getc_unlocked" = xyes; then :
10368 ac_have_decl=1
10369else
10370 ac_have_decl=0
10371fi
10372
10373cat >>confdefs.h <<_ACEOF
10374#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl
10375_ACEOF
10376
10377
10378 case $gt_cv_func_printf_posix in
10379 *yes) HAVE_POSIX_PRINTF=1 ;;
10380 *) HAVE_POSIX_PRINTF=0 ;;
10381 esac
10382
10383 if test "$ac_cv_func_asprintf" = yes; then
10384 HAVE_ASPRINTF=1
10385 else
10386 HAVE_ASPRINTF=0
10387 fi
10388
10389 if test "$ac_cv_func_snprintf" = yes; then
10390 HAVE_SNPRINTF=1
10391 else
10392 HAVE_SNPRINTF=0
10393 fi
10394
10395 if test "$ac_cv_func_newlocale" = yes; then
10396 HAVE_NEWLOCALE=1
10397 else
10398 HAVE_NEWLOCALE=0
10399 fi
10400
10401 if test "$ac_cv_func_wprintf" = yes; then
10402 HAVE_WPRINTF=1
10403 else
10404 HAVE_WPRINTF=0
10405 fi
10406
10407
10408
10409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
10410$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10411if ${am_cv_langinfo_codeset+:} false; then :
10412 $as_echo_n "(cached) " >&6
10413else
10414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10415/* end confdefs.h. */
10416#include <langinfo.h>
10417int
10418main ()
10419{
10420char* cs = nl_langinfo(CODESET); return !cs;
10421 ;
10422 return 0;
10423}
10424_ACEOF
10425if ac_fn_c_try_link "$LINENO"; then :
10426 am_cv_langinfo_codeset=yes
10427else
10428 am_cv_langinfo_codeset=no
10429fi
10430rm -f core conftest.err conftest.$ac_objext \
10431 conftest$ac_exeext conftest.$ac_ext
10432
10433fi
10434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
10435$as_echo "$am_cv_langinfo_codeset" >&6; }
10436 if test $am_cv_langinfo_codeset = yes; then
10437
10438$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
10439
10440 fi
10441
10442
10443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5
10444$as_echo_n "checking for LC_MESSAGES... " >&6; }
10445if ${gt_cv_val_LC_MESSAGES+:} false; then :
10446 $as_echo_n "(cached) " >&6
10447else
10448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10449/* end confdefs.h. */
10450#include <locale.h>
10451int
10452main ()
10453{
10454return LC_MESSAGES
10455 ;
10456 return 0;
10457}
10458_ACEOF
10459if ac_fn_c_try_link "$LINENO"; then :
10460 gt_cv_val_LC_MESSAGES=yes
10461else
10462 gt_cv_val_LC_MESSAGES=no
10463fi
10464rm -f core conftest.err conftest.$ac_objext \
10465 conftest$ac_exeext conftest.$ac_ext
10466fi
10467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5
10468$as_echo "$gt_cv_val_LC_MESSAGES" >&6; }
10469 if test $gt_cv_val_LC_MESSAGES = yes; then
10470
10471$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h
10472
10473 fi
10474
10475
10476 if test "$enable_shared" = yes; then
10477 case "$host_os" in
10478 mingw* | cygwin*) is_woe32dll=yes ;;
10479 *) is_woe32dll=no ;;
10480 esac
10481 else
10482 is_woe32dll=no
10483 fi
10484 WOE32DLL=$is_woe32dll
10485
10486
10487 case "$host_os" in
10488 mingw* | cygwin*) is_woe32=yes ;;
10489 *) is_woe32=no ;;
10490 esac
10491 WOE32=$is_woe32
10492
10493 if test $WOE32 = yes; then
10494 if test -n "$ac_tool_prefix"; then
10495 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
10496set dummy ${ac_tool_prefix}windres; ac_word=$2
10497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10498$as_echo_n "checking for $ac_word... " >&6; }
10499if ${ac_cv_prog_WINDRES+:} false; then :
10500 $as_echo_n "(cached) " >&6
10501else
10502 if test -n "$WINDRES"; then
10503 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
10504else
10505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10506for as_dir in $PATH
10507do
10508 IFS=$as_save_IFS
10509 test -z "$as_dir" && as_dir=.
10510 for ac_exec_ext in '' $ac_executable_extensions; do
10511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10512 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
10513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10514 break 2
10515 fi
10516done
10517 done
10518IFS=$as_save_IFS
10519
10520fi
10521fi
10522WINDRES=$ac_cv_prog_WINDRES
10523if test -n "$WINDRES"; then
10524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
10525$as_echo "$WINDRES" >&6; }
10526else
10527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10528$as_echo "no" >&6; }
10529fi
10530
10531
10532fi
10533if test -z "$ac_cv_prog_WINDRES"; then
10534 ac_ct_WINDRES=$WINDRES
10535 # Extract the first word of "windres", so it can be a program name with args.
10536set dummy windres; ac_word=$2
10537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10538$as_echo_n "checking for $ac_word... " >&6; }
10539if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
10540 $as_echo_n "(cached) " >&6
10541else
10542 if test -n "$ac_ct_WINDRES"; then
10543 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
10544else
10545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10546for as_dir in $PATH
10547do
10548 IFS=$as_save_IFS
10549 test -z "$as_dir" && as_dir=.
10550 for ac_exec_ext in '' $ac_executable_extensions; do
10551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10552 ac_cv_prog_ac_ct_WINDRES="windres"
10553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10554 break 2
10555 fi
10556done
10557 done
10558IFS=$as_save_IFS
10559
10560fi
10561fi
10562ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
10563if test -n "$ac_ct_WINDRES"; then
10564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
10565$as_echo "$ac_ct_WINDRES" >&6; }
10566else
10567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10568$as_echo "no" >&6; }
10569fi
10570
10571 if test "x$ac_ct_WINDRES" = x; then
10572 WINDRES=""
10573 else
10574 case $cross_compiling:$ac_tool_warned in
10575yes:)
10576{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10577$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10578ac_tool_warned=yes ;;
10579esac
10580 WINDRES=$ac_ct_WINDRES
10581 fi
10582else
10583 WINDRES="$ac_cv_prog_WINDRES"
10584fi
10585
10586 fi
10587
10588 case "$host_os" in
10589 hpux*) LTLIBC="" ;;
10590 *) LTLIBC="-lc" ;;
10591 esac
10592
10593
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
10620$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
10621if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
10622 $as_echo_n "(cached) " >&6
10623else
10624 gt_save_LIBS="$LIBS"
10625 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10627/* end confdefs.h. */
10628#include <CoreFoundation/CFPreferences.h>
10629int
10630main ()
10631{
10632CFPreferencesCopyAppValue(NULL, NULL)
10633 ;
10634 return 0;
10635}
10636_ACEOF
10637if ac_fn_c_try_link "$LINENO"; then :
10638 gt_cv_func_CFPreferencesCopyAppValue=yes
10639else
10640 gt_cv_func_CFPreferencesCopyAppValue=no
10641fi
10642rm -f core conftest.err conftest.$ac_objext \
10643 conftest$ac_exeext conftest.$ac_ext
10644 LIBS="$gt_save_LIBS"
10645fi
10646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
10647$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
10648 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
10649
10650$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
10651
10652 fi
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
10654$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
10655if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
10656 $as_echo_n "(cached) " >&6
10657else
10658 gt_save_LIBS="$LIBS"
10659 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
10660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10661/* end confdefs.h. */
10662#include <CoreFoundation/CFLocale.h>
10663int
10664main ()
10665{
10666CFLocaleCopyCurrent();
10667 ;
10668 return 0;
10669}
10670_ACEOF
10671if ac_fn_c_try_link "$LINENO"; then :
10672 gt_cv_func_CFLocaleCopyCurrent=yes
10673else
10674 gt_cv_func_CFLocaleCopyCurrent=no
10675fi
10676rm -f core conftest.err conftest.$ac_objext \
10677 conftest$ac_exeext conftest.$ac_ext
10678 LIBS="$gt_save_LIBS"
10679fi
10680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
10681$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
10682 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10683
10684$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
10685
10686 fi
10687 INTL_MACOSX_LIBS=
10688 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
10689 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
10690 fi
10691
10692
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010693
Theodore Ts'o93636bd2003-07-12 02:45:05 -040010694
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010695
10696
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010697 BUILD_INCLUDED_LIBINTL=no
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010698 USE_INCLUDED_LIBINTL=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010699
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010700 LIBINTL=
10701 LTLIBINTL=
10702 POSUB=
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010703
Theodore Ts'o93613952014-07-03 23:44:13 -040010704 case " $gt_needs " in
10705 *" need-formatstring-macros "*) gt_api_version=3 ;;
10706 *" need-ngettext "*) gt_api_version=2 ;;
10707 *) gt_api_version=1 ;;
10708 esac
10709 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
10710 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
10711
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010712 if test "$USE_NLS" = "yes"; then
10713 gt_use_preinstalled_gnugettext=no
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010714
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010716$as_echo_n "checking whether included gettext is requested... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010717
Theodore Ts'oe1052142006-10-21 21:46:47 -040010718# Check whether --with-included-gettext was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010719if test "${with_included_gettext+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -040010720 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010721else
10722 nls_cv_force_use_gnu_gettext=no
Theodore Ts'oe1052142006-10-21 21:46:47 -040010723fi
10724
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010726$as_echo "$nls_cv_force_use_gnu_gettext" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010727
10728 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
10729 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010730
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010731
Theodore Ts'o93613952014-07-03 23:44:13 -040010732 if test $gt_api_version -ge 3; then
10733 gt_revision_test_code='
10734#ifndef __GNU_GETTEXT_SUPPORTED_REVISION
10735#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
10736#endif
10737typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
10738'
10739 else
10740 gt_revision_test_code=
10741 fi
10742 if test $gt_api_version -ge 2; then
10743 gt_expression_test_code=' + * ngettext ("", "", 0)'
10744 else
10745 gt_expression_test_code=
10746 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010747
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010749$as_echo_n "checking for GNU gettext in libc... " >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -040010750if eval \${$gt_func_gnugettext_libc+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010010751 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010752else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010754/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -040010755
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010756#include <libintl.h>
Theodore Ts'o93613952014-07-03 23:44:13 -040010757$gt_revision_test_code
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010758extern int _nl_msg_cat_cntr;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010759extern int *_nl_domain_bindings;
Theodore Ts'o93613952014-07-03 23:44:13 -040010760
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010761int
10762main ()
10763{
Theodore Ts'o93613952014-07-03 23:44:13 -040010764
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010765bindtextdomain ("", "");
Theodore Ts'o93613952014-07-03 23:44:13 -040010766return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
10767
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010768 ;
10769 return 0;
10770}
10771_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010772if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o93613952014-07-03 23:44:13 -040010773 eval "$gt_func_gnugettext_libc=yes"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010774else
Theodore Ts'o93613952014-07-03 23:44:13 -040010775 eval "$gt_func_gnugettext_libc=no"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010776fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010777rm -f core conftest.err conftest.$ac_objext \
10778 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010779fi
Theodore Ts'o93613952014-07-03 23:44:13 -040010780eval ac_res=\$$gt_func_gnugettext_libc
10781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10782$as_echo "$ac_res" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010783
Theodore Ts'o93613952014-07-03 23:44:13 -040010784 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
10785
10786
10787
10788
10789
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010790
10791
10792
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010793 use_additional=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010794
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010795 acl_save_prefix="$prefix"
10796 prefix="$acl_final_prefix"
10797 acl_save_exec_prefix="$exec_prefix"
10798 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010799
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010800 eval additional_includedir=\"$includedir\"
10801 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010802
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010803 exec_prefix="$acl_save_exec_prefix"
10804 prefix="$acl_save_prefix"
10805
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010806
Theodore Ts'oe1052142006-10-21 21:46:47 -040010807# Check whether --with-libintl-prefix was given.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050010808if test "${with_libintl_prefix+set}" = set; then :
Theodore Ts'oe1052142006-10-21 21:46:47 -040010809 withval=$with_libintl_prefix;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010810 if test "X$withval" = "Xno"; then
10811 use_additional=no
10812 else
10813 if test "X$withval" = "X"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010814
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010815 acl_save_prefix="$prefix"
10816 prefix="$acl_final_prefix"
10817 acl_save_exec_prefix="$exec_prefix"
10818 exec_prefix="$acl_final_exec_prefix"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010819
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010820 eval additional_includedir=\"$includedir\"
10821 eval additional_libdir=\"$libdir\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010822
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010823 exec_prefix="$acl_save_exec_prefix"
10824 prefix="$acl_save_prefix"
10825
10826 else
10827 additional_includedir="$withval/include"
Theodore Ts'o93613952014-07-03 23:44:13 -040010828 additional_libdir="$withval/$acl_libdirstem"
10829 if test "$acl_libdirstem2" != "$acl_libdirstem" \
10830 && ! test -d "$withval/$acl_libdirstem"; then
10831 additional_libdir="$withval/$acl_libdirstem2"
10832 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010833 fi
10834 fi
10835
Theodore Ts'oe1052142006-10-21 21:46:47 -040010836fi
10837
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010838 LIBINTL=
10839 LTLIBINTL=
10840 INCINTL=
Theodore Ts'o93613952014-07-03 23:44:13 -040010841 LIBINTL_PREFIX=
10842 HAVE_LIBINTL=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010843 rpathdirs=
10844 ltrpathdirs=
10845 names_already_handled=
10846 names_next_round='intl '
10847 while test -n "$names_next_round"; do
10848 names_this_round="$names_next_round"
10849 names_next_round=
10850 for name in $names_this_round; do
10851 already_handled=
10852 for n in $names_already_handled; do
10853 if test "$n" = "$name"; then
10854 already_handled=yes
10855 break
10856 fi
10857 done
10858 if test -z "$already_handled"; then
10859 names_already_handled="$names_already_handled $name"
Theodore Ts'o93613952014-07-03 23:44:13 -040010860 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010861 eval value=\"\$HAVE_LIB$uppername\"
10862 if test -n "$value"; then
10863 if test "$value" = yes; then
10864 eval value=\"\$LIB$uppername\"
10865 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
10866 eval value=\"\$LTLIB$uppername\"
10867 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
10868 else
10869 :
10870 fi
10871 else
10872 found_dir=
10873 found_la=
10874 found_so=
10875 found_a=
Theodore Ts'o93613952014-07-03 23:44:13 -040010876 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
10877 if test -n "$acl_shlibext"; then
10878 shrext=".$acl_shlibext" # typically: shrext=.so
10879 else
10880 shrext=
10881 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010882 if test $use_additional = yes; then
Theodore Ts'o93613952014-07-03 23:44:13 -040010883 dir="$additional_libdir"
10884 if test -n "$acl_shlibext"; then
10885 if test -f "$dir/$libname$shrext"; then
10886 found_dir="$dir"
10887 found_so="$dir/$libname$shrext"
10888 else
10889 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10890 ver=`(cd "$dir" && \
10891 for f in "$libname$shrext".*; do echo "$f"; done \
10892 | sed -e "s,^$libname$shrext\\\\.,," \
10893 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10894 | sed 1q ) 2>/dev/null`
10895 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10896 found_dir="$dir"
10897 found_so="$dir/$libname$shrext.$ver"
10898 fi
10899 else
10900 eval library_names=\"$acl_library_names_spec\"
10901 for f in $library_names; do
10902 if test -f "$dir/$f"; then
10903 found_dir="$dir"
10904 found_so="$dir/$f"
10905 break
10906 fi
10907 done
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010908 fi
10909 fi
10910 fi
Theodore Ts'o93613952014-07-03 23:44:13 -040010911 if test "X$found_dir" = "X"; then
10912 if test -f "$dir/$libname.$acl_libext"; then
10913 found_dir="$dir"
10914 found_a="$dir/$libname.$acl_libext"
10915 fi
10916 fi
10917 if test "X$found_dir" != "X"; then
10918 if test -f "$dir/$libname.la"; then
10919 found_la="$dir/$libname.la"
10920 fi
10921 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010922 fi
10923 if test "X$found_dir" = "X"; then
10924 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050010925
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010926 acl_save_prefix="$prefix"
10927 prefix="$acl_final_prefix"
10928 acl_save_exec_prefix="$exec_prefix"
10929 exec_prefix="$acl_final_exec_prefix"
10930 eval x=\"$x\"
10931 exec_prefix="$acl_save_exec_prefix"
10932 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000010933
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010934 case "$x" in
10935 -L*)
10936 dir=`echo "X$x" | sed -e 's/^X-L//'`
Theodore Ts'o93613952014-07-03 23:44:13 -040010937 if test -n "$acl_shlibext"; then
10938 if test -f "$dir/$libname$shrext"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010939 found_dir="$dir"
Theodore Ts'o93613952014-07-03 23:44:13 -040010940 found_so="$dir/$libname$shrext"
10941 else
10942 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
10943 ver=`(cd "$dir" && \
10944 for f in "$libname$shrext".*; do echo "$f"; done \
10945 | sed -e "s,^$libname$shrext\\\\.,," \
10946 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
10947 | sed 1q ) 2>/dev/null`
10948 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
10949 found_dir="$dir"
10950 found_so="$dir/$libname$shrext.$ver"
10951 fi
10952 else
10953 eval library_names=\"$acl_library_names_spec\"
10954 for f in $library_names; do
10955 if test -f "$dir/$f"; then
10956 found_dir="$dir"
10957 found_so="$dir/$f"
10958 break
10959 fi
10960 done
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010961 fi
10962 fi
10963 fi
Theodore Ts'o93613952014-07-03 23:44:13 -040010964 if test "X$found_dir" = "X"; then
10965 if test -f "$dir/$libname.$acl_libext"; then
10966 found_dir="$dir"
10967 found_a="$dir/$libname.$acl_libext"
10968 fi
10969 fi
10970 if test "X$found_dir" != "X"; then
10971 if test -f "$dir/$libname.la"; then
10972 found_la="$dir/$libname.la"
10973 fi
10974 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010975 ;;
10976 esac
10977 if test "X$found_dir" != "X"; then
10978 break
10979 fi
10980 done
10981 fi
10982 if test "X$found_dir" != "X"; then
10983 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
10984 if test "X$found_so" != "X"; then
Theodore Ts'o93613952014-07-03 23:44:13 -040010985 if test "$enable_rpath" = no \
10986 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
10987 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040010988 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
10989 else
10990 haveit=
10991 for x in $ltrpathdirs; do
10992 if test "X$x" = "X$found_dir"; then
10993 haveit=yes
10994 break
10995 fi
10996 done
10997 if test -z "$haveit"; then
10998 ltrpathdirs="$ltrpathdirs $found_dir"
10999 fi
Theodore Ts'o93613952014-07-03 23:44:13 -040011000 if test "$acl_hardcode_direct" = yes; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011001 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11002 else
Theodore Ts'o93613952014-07-03 23:44:13 -040011003 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011004 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11005 haveit=
11006 for x in $rpathdirs; do
11007 if test "X$x" = "X$found_dir"; then
11008 haveit=yes
11009 break
11010 fi
11011 done
11012 if test -z "$haveit"; then
11013 rpathdirs="$rpathdirs $found_dir"
11014 fi
11015 else
11016 haveit=
11017 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011018
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011019 acl_save_prefix="$prefix"
11020 prefix="$acl_final_prefix"
11021 acl_save_exec_prefix="$exec_prefix"
11022 exec_prefix="$acl_final_exec_prefix"
11023 eval x=\"$x\"
11024 exec_prefix="$acl_save_exec_prefix"
11025 prefix="$acl_save_prefix"
11026
11027 if test "X$x" = "X-L$found_dir"; then
11028 haveit=yes
11029 break
11030 fi
11031 done
11032 if test -z "$haveit"; then
11033 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
11034 fi
Theodore Ts'o93613952014-07-03 23:44:13 -040011035 if test "$acl_hardcode_minus_L" != no; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011036 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
11037 else
11038 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11039 fi
11040 fi
11041 fi
11042 fi
11043 else
11044 if test "X$found_a" != "X"; then
11045 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
11046 else
11047 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
11048 fi
11049 fi
11050 additional_includedir=
11051 case "$found_dir" in
Theodore Ts'o93613952014-07-03 23:44:13 -040011052 */$acl_libdirstem | */$acl_libdirstem/)
11053 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
11054 if test "$name" = 'intl'; then
11055 LIBINTL_PREFIX="$basedir"
11056 fi
11057 additional_includedir="$basedir/include"
11058 ;;
11059 */$acl_libdirstem2 | */$acl_libdirstem2/)
11060 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
11061 if test "$name" = 'intl'; then
11062 LIBINTL_PREFIX="$basedir"
11063 fi
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011064 additional_includedir="$basedir/include"
11065 ;;
11066 esac
11067 if test "X$additional_includedir" != "X"; then
11068 if test "X$additional_includedir" != "X/usr/include"; then
11069 haveit=
11070 if test "X$additional_includedir" = "X/usr/local/include"; then
11071 if test -n "$GCC"; then
11072 case $host_os in
Theodore Ts'o93613952014-07-03 23:44:13 -040011073 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011074 esac
11075 fi
11076 fi
11077 if test -z "$haveit"; then
11078 for x in $CPPFLAGS $INCINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011079
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011080 acl_save_prefix="$prefix"
11081 prefix="$acl_final_prefix"
11082 acl_save_exec_prefix="$exec_prefix"
11083 exec_prefix="$acl_final_exec_prefix"
11084 eval x=\"$x\"
11085 exec_prefix="$acl_save_exec_prefix"
11086 prefix="$acl_save_prefix"
11087
11088 if test "X$x" = "X-I$additional_includedir"; then
11089 haveit=yes
11090 break
11091 fi
11092 done
11093 if test -z "$haveit"; then
11094 if test -d "$additional_includedir"; then
11095 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
11096 fi
11097 fi
11098 fi
11099 fi
11100 fi
11101 if test -n "$found_la"; then
11102 save_libdir="$libdir"
11103 case "$found_la" in
11104 */* | *\\*) . "$found_la" ;;
11105 *) . "./$found_la" ;;
11106 esac
11107 libdir="$save_libdir"
11108 for dep in $dependency_libs; do
11109 case "$dep" in
11110 -L*)
11111 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
Theodore Ts'o93613952014-07-03 23:44:13 -040011112 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
11113 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011114 haveit=
Theodore Ts'o93613952014-07-03 23:44:13 -040011115 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
11116 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011117 if test -n "$GCC"; then
11118 case $host_os in
Theodore Ts'o93613952014-07-03 23:44:13 -040011119 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011120 esac
11121 fi
11122 fi
11123 if test -z "$haveit"; then
11124 haveit=
11125 for x in $LDFLAGS $LIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011126
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011127 acl_save_prefix="$prefix"
11128 prefix="$acl_final_prefix"
11129 acl_save_exec_prefix="$exec_prefix"
11130 exec_prefix="$acl_final_exec_prefix"
11131 eval x=\"$x\"
11132 exec_prefix="$acl_save_exec_prefix"
11133 prefix="$acl_save_prefix"
11134
11135 if test "X$x" = "X-L$additional_libdir"; then
11136 haveit=yes
11137 break
11138 fi
11139 done
11140 if test -z "$haveit"; then
11141 if test -d "$additional_libdir"; then
11142 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
11143 fi
11144 fi
11145 haveit=
11146 for x in $LDFLAGS $LTLIBINTL; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011147
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011148 acl_save_prefix="$prefix"
11149 prefix="$acl_final_prefix"
11150 acl_save_exec_prefix="$exec_prefix"
11151 exec_prefix="$acl_final_exec_prefix"
11152 eval x=\"$x\"
11153 exec_prefix="$acl_save_exec_prefix"
11154 prefix="$acl_save_prefix"
11155
11156 if test "X$x" = "X-L$additional_libdir"; then
11157 haveit=yes
11158 break
11159 fi
11160 done
11161 if test -z "$haveit"; then
11162 if test -d "$additional_libdir"; then
11163 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
11164 fi
11165 fi
11166 fi
11167 fi
11168 ;;
11169 -R*)
11170 dir=`echo "X$dep" | sed -e 's/^X-R//'`
11171 if test "$enable_rpath" != no; then
11172 haveit=
11173 for x in $rpathdirs; do
11174 if test "X$x" = "X$dir"; then
11175 haveit=yes
11176 break
11177 fi
11178 done
11179 if test -z "$haveit"; then
11180 rpathdirs="$rpathdirs $dir"
11181 fi
11182 haveit=
11183 for x in $ltrpathdirs; do
11184 if test "X$x" = "X$dir"; then
11185 haveit=yes
11186 break
11187 fi
11188 done
11189 if test -z "$haveit"; then
11190 ltrpathdirs="$ltrpathdirs $dir"
11191 fi
11192 fi
11193 ;;
11194 -l*)
11195 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
11196 ;;
11197 *.la)
11198 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
11199 ;;
11200 *)
11201 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
11202 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
11203 ;;
11204 esac
11205 done
11206 fi
11207 else
11208 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
11209 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
11210 fi
11211 fi
11212 fi
11213 done
11214 done
11215 if test "X$rpathdirs" != "X"; then
Theodore Ts'o93613952014-07-03 23:44:13 -040011216 if test -n "$acl_hardcode_libdir_separator"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011217 alldirs=
11218 for found_dir in $rpathdirs; do
Theodore Ts'o93613952014-07-03 23:44:13 -040011219 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011220 done
11221 acl_save_libdir="$libdir"
11222 libdir="$alldirs"
Theodore Ts'o93613952014-07-03 23:44:13 -040011223 eval flag=\"$acl_hardcode_libdir_flag_spec\"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011224 libdir="$acl_save_libdir"
11225 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11226 else
11227 for found_dir in $rpathdirs; do
11228 acl_save_libdir="$libdir"
11229 libdir="$found_dir"
Theodore Ts'o93613952014-07-03 23:44:13 -040011230 eval flag=\"$acl_hardcode_libdir_flag_spec\"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011231 libdir="$acl_save_libdir"
11232 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
11233 done
11234 fi
11235 fi
11236 if test "X$ltrpathdirs" != "X"; then
11237 for found_dir in $ltrpathdirs; do
11238 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
11239 done
11240 fi
11241
Theodore Ts'o93613952014-07-03 23:44:13 -040011242
11243
11244
11245
11246
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011248$as_echo_n "checking for GNU gettext in libintl... " >&6; }
Theodore Ts'o93613952014-07-03 23:44:13 -040011249if eval \${$gt_func_gnugettext_libintl+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011250 $as_echo_n "(cached) " >&6
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011251else
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011252 gt_save_CPPFLAGS="$CPPFLAGS"
11253 CPPFLAGS="$CPPFLAGS $INCINTL"
11254 gt_save_LIBS="$LIBS"
11255 LIBS="$LIBS $LIBINTL"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011257/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -040011258
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011259#include <libintl.h>
Theodore Ts'o93613952014-07-03 23:44:13 -040011260$gt_revision_test_code
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011261extern int _nl_msg_cat_cntr;
11262extern
11263#ifdef __cplusplus
11264"C"
11265#endif
Theodore Ts'o93613952014-07-03 23:44:13 -040011266const char *_nl_expand_alias (const char *);
11267
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011268int
11269main ()
11270{
Theodore Ts'o93613952014-07-03 23:44:13 -040011271
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011272bindtextdomain ("", "");
Theodore Ts'o93613952014-07-03 23:44:13 -040011273return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11274
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011275 ;
11276 return 0;
11277}
11278_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011279if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'o93613952014-07-03 23:44:13 -040011280 eval "$gt_func_gnugettext_libintl=yes"
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011281else
Theodore Ts'o93613952014-07-03 23:44:13 -040011282 eval "$gt_func_gnugettext_libintl=no"
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011283fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011284rm -f core conftest.err conftest.$ac_objext \
11285 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'o93613952014-07-03 23:44:13 -040011286 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
Theodore Ts'o2b5901d2004-11-19 17:06:47 -050011287 LIBS="$LIBS $LIBICONV"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011289/* end confdefs.h. */
Theodore Ts'o93613952014-07-03 23:44:13 -040011290
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011291#include <libintl.h>
Theodore Ts'o93613952014-07-03 23:44:13 -040011292$gt_revision_test_code
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011293extern int _nl_msg_cat_cntr;
11294extern
11295#ifdef __cplusplus
11296"C"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011297#endif
Theodore Ts'o93613952014-07-03 23:44:13 -040011298const char *_nl_expand_alias (const char *);
11299
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011300int
11301main ()
11302{
Theodore Ts'o93613952014-07-03 23:44:13 -040011303
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011304bindtextdomain ("", "");
Theodore Ts'o93613952014-07-03 23:44:13 -040011305return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
11306
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011307 ;
11308 return 0;
11309}
11310_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011311if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011312 LIBINTL="$LIBINTL $LIBICONV"
Theodore Ts'o93613952014-07-03 23:44:13 -040011313 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
11314 eval "$gt_func_gnugettext_libintl=yes"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011315
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011316fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011317rm -f core conftest.err conftest.$ac_objext \
11318 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011319 fi
11320 CPPFLAGS="$gt_save_CPPFLAGS"
11321 LIBS="$gt_save_LIBS"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011322fi
Theodore Ts'o93613952014-07-03 23:44:13 -040011323eval ac_res=\$$gt_func_gnugettext_libintl
11324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11325$as_echo "$ac_res" >&6; }
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011326 fi
11327
Theodore Ts'o93613952014-07-03 23:44:13 -040011328 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
11329 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011330 && test "$PACKAGE" != gettext-runtime \
11331 && test "$PACKAGE" != gettext-tools; }; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011332 gt_use_preinstalled_gnugettext=yes
11333 else
11334 LIBINTL=
11335 LTLIBINTL=
11336 INCINTL=
11337 fi
11338
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011339
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011340 if test "$gt_use_preinstalled_gnugettext" != "yes"; then
11341 nls_cv_use_gnu_gettext=yes
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011342 fi
11343 fi
11344
11345 if test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011346 BUILD_INCLUDED_LIBINTL=yes
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011347 USE_INCLUDED_LIBINTL=yes
Theodore Ts'o93613952014-07-03 23:44:13 -040011348 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD"
11349 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011350 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011351 fi
11352
Theodore Ts'o93613952014-07-03 23:44:13 -040011353 CATOBJEXT=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011354 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11355 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11356 CATOBJEXT=.gmo
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011357 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011358
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011359
Theodore Ts'o93613952014-07-03 23:44:13 -040011360 if test -n "$INTL_MACOSX_LIBS"; then
11361 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11362 || test "$nls_cv_use_gnu_gettext" = "yes"; then
11363 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
11364 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
11365 fi
11366 fi
11367
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011368 if test "$gt_use_preinstalled_gnugettext" = "yes" \
11369 || test "$nls_cv_use_gnu_gettext" = "yes"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011370
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011371$as_echo "#define ENABLE_NLS 1" >>confdefs.h
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011372
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011373 else
11374 USE_NLS=no
11375 fi
11376 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011377
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011379$as_echo_n "checking whether to use NLS... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011381$as_echo "$USE_NLS" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011382 if test "$USE_NLS" = "yes"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011384$as_echo_n "checking where the gettext function comes from... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011385 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
Theodore Ts'o93613952014-07-03 23:44:13 -040011386 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011387 gt_source="external libintl"
11388 else
11389 gt_source="libc"
11390 fi
11391 else
11392 gt_source="included intl directory"
11393 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011395$as_echo "$gt_source" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011396 fi
11397
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011398 if test "$USE_NLS" = "yes"; then
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011399
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011400 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
Theodore Ts'o93613952014-07-03 23:44:13 -040011401 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011403$as_echo_n "checking how to link with libintl... " >&6; }
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011405$as_echo "$LIBINTL" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011406
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011407 for element in $INCINTL; do
11408 haveit=
11409 for x in $CPPFLAGS; do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011410
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011411 acl_save_prefix="$prefix"
11412 prefix="$acl_final_prefix"
11413 acl_save_exec_prefix="$exec_prefix"
11414 exec_prefix="$acl_final_exec_prefix"
11415 eval x=\"$x\"
11416 exec_prefix="$acl_save_exec_prefix"
11417 prefix="$acl_save_prefix"
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011418
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011419 if test "X$x" = "X$element"; then
11420 haveit=yes
11421 break
11422 fi
11423 done
11424 if test -z "$haveit"; then
11425 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
11426 fi
11427 done
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011428
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011429 fi
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000011430
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011431
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011432$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011433
11434
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011435$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011436
11437 fi
11438
11439 POSUB=po
11440 fi
11441
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011442
11443 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011444 BUILD_INCLUDED_LIBINTL=yes
11445 fi
11446
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011447
11448
11449
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011450
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011451 nls_cv_header_intl=
11452 nls_cv_header_libgt=
11453
11454 DATADIRNAME=share
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011455
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011456
11457 INSTOBJEXT=.mo
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011458
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011459
11460 GENCAT=gencat
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011461
11462
Theodore Ts'o93613952014-07-03 23:44:13 -040011463 INTLOBJS=
11464 if test "$USE_INCLUDED_LIBINTL" = yes; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011465 INTLOBJS="\$(GETTOBJS)"
11466 fi
11467
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011468
11469 INTL_LIBTOOL_SUFFIX_PREFIX=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011470
11471
Theodore Ts'oa04eba32003-05-03 16:35:17 -040011472
11473 INTLLIBS="$LIBINTL"
Theodore Ts'o93636bd2003-07-12 02:45:05 -040011474
11475
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011476
11477
11478
11479
11480
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011482$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
11483set x ${MAKE-make}
11484ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011485if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011486 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011487else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011488 cat >conftest.make <<\_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040011489SHELL = /bin/sh
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011490all:
Theodore Ts'oe1052142006-10-21 21:46:47 -040011491 @echo '@@@%%%=$(MAKE)=@@@%%%'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011492_ACEOF
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011493# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011494case `${MAKE-make} -f conftest.make 2>/dev/null` in
11495 *@@@%%%=?*=@@@%%%*)
11496 eval ac_cv_prog_make_${ac_make}_set=yes;;
11497 *)
11498 eval ac_cv_prog_make_${ac_make}_set=no;;
11499esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011500rm -f conftest.make
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011501fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011502if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011504$as_echo "yes" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011505 SET_MAKE=
11506else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011508$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011509 SET_MAKE="MAKE=${MAKE-make}"
11510fi
11511
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -040011513$as_echo_n "checking for GNU make... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011514if ${_cv_gnu_make_command+:} false; then :
Theodore Ts'obcb915b2009-07-02 18:19:10 -040011515 $as_echo_n "(cached) " >&6
11516else
11517 _cv_gnu_make_command='' ;
Theodore Ts'oe703ba42016-09-11 23:11:31 -040011518 if test -n "$FORCE_NATIVE_MAKE" ; then
Theodore Ts'of3bc1562016-09-04 00:16:35 -040011519 MAKES="make"
11520 else
11521 MAKES="make gmake gnumake"
11522 fi
11523 for a in "$MAKE" $MAKES ; do
Theodore Ts'obcb915b2009-07-02 18:19:10 -040011524 if test -z "$a" ; then continue ; fi ;
11525 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then
11526 _cv_gnu_make_command=$a ;
11527 break;
11528 fi
11529 done ;
11530
11531fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -040011533$as_echo "$_cv_gnu_make_command" >&6; } ;
11534 if test "x$_cv_gnu_make_command" != "x" ; then
11535 ifGNUmake='' ;
11536 ifNotGNUmake='#' ;
11537 else
11538 ifGNUmake='#' ;
11539 ifNotGNUmake='' ;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
Theodore Ts'obcb915b2009-07-02 18:19:10 -040011541$as_echo "\"Not found\"" >&6; };
11542 fi
11543
11544
11545
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011546# Extract the first word of "ln", so it can be a program name with args.
11547set dummy ln; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011549$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011550if ${ac_cv_path_LN+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011551 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011552else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011553 case $LN in
11554 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011555 ac_cv_path_LN="$LN" # Let the user override the test with a path.
11556 ;;
11557 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11559for as_dir in $PATH
11560do
11561 IFS=$as_save_IFS
11562 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011563 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011565 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011567 break 2
11568 fi
11569done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011570 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011571IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011572
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011573 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
11574 ;;
11575esac
11576fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011577LN=$ac_cv_path_LN
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011578if test -n "$LN"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011580$as_echo "$LN" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011581else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011583$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011584fi
11585
Theodore Ts'oe1052142006-10-21 21:46:47 -040011586
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011588$as_echo_n "checking whether ln -s works... " >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011589LN_S=$as_ln_s
11590if test "$LN_S" = "ln -s"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011592$as_echo "yes" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011593else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011595$as_echo "no, using $LN_S" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000011596fi
11597
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011598# Extract the first word of "mv", so it can be a program name with args.
11599set dummy mv; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011601$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011602if ${ac_cv_path_MV+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011603 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011604else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011605 case $MV in
11606 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011607 ac_cv_path_MV="$MV" # Let the user override the test with a path.
11608 ;;
11609 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11611for as_dir in $PATH
11612do
11613 IFS=$as_save_IFS
11614 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011615 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011617 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011619 break 2
11620 fi
11621done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011622 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011623IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011624
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011625 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
11626 ;;
11627esac
11628fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011629MV=$ac_cv_path_MV
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011630if test -n "$MV"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011632$as_echo "$MV" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011633else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011635$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011636fi
11637
Theodore Ts'oe1052142006-10-21 21:46:47 -040011638
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011639# Extract the first word of "cp", so it can be a program name with args.
11640set dummy cp; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011642$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011643if ${ac_cv_path_CP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011644 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011645else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011646 case $CP in
11647 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011648 ac_cv_path_CP="$CP" # Let the user override the test with a path.
11649 ;;
11650 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11652for as_dir in $PATH
11653do
11654 IFS=$as_save_IFS
11655 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011656 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011658 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011660 break 2
11661 fi
11662done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011663 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011664IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011665
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011666 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
11667 ;;
11668esac
11669fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011670CP=$ac_cv_path_CP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011671if test -n "$CP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011673$as_echo "$CP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011674else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011676$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011677fi
11678
Theodore Ts'oe1052142006-10-21 21:46:47 -040011679
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011680# Extract the first word of "rm", so it can be a program name with args.
11681set dummy rm; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011683$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011684if ${ac_cv_path_RM+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011685 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011686else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011687 case $RM in
11688 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011689 ac_cv_path_RM="$RM" # Let the user override the test with a path.
11690 ;;
11691 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11693for as_dir in $PATH
11694do
11695 IFS=$as_save_IFS
11696 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011697 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011699 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011701 break 2
11702 fi
11703done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011704 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011705IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011706
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011707 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
11708 ;;
11709esac
11710fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011711RM=$ac_cv_path_RM
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011712if test -n "$RM"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011714$as_echo "$RM" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011715else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011717$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011718fi
11719
Theodore Ts'oe1052142006-10-21 21:46:47 -040011720
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011721# Extract the first word of "chmod", so it can be a program name with args.
11722set dummy chmod; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011724$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011725if ${ac_cv_path_CHMOD+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011726 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011727else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011728 case $CHMOD in
11729 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011730 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
11731 ;;
11732 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11734for as_dir in $PATH
11735do
11736 IFS=$as_save_IFS
11737 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011738 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011740 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011742 break 2
11743 fi
11744done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011745 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011746IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011747
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011748 test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":"
11749 ;;
11750esac
11751fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011752CHMOD=$ac_cv_path_CHMOD
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011753if test -n "$CHMOD"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011755$as_echo "$CHMOD" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011756else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011758$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011759fi
11760
Theodore Ts'oe1052142006-10-21 21:46:47 -040011761
Theodore Ts'o32237012005-01-17 19:13:39 -050011762for ac_prog in gawk mawk nawk awk
11763do
11764 # Extract the first word of "$ac_prog", so it can be a program name with args.
11765set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011767$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011768if ${ac_cv_prog_AWK+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011769 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011770else
Theodore Ts'o32237012005-01-17 19:13:39 -050011771 if test -n "$AWK"; then
11772 ac_cv_prog_AWK="$AWK" # Let the user override the test.
11773else
11774as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011775for as_dir in $PATH
11776do
11777 IFS=$as_save_IFS
11778 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011779 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'o32237012005-01-17 19:13:39 -050011781 ac_cv_prog_AWK="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011783 break 2
11784 fi
11785done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011786 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011787IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011788
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011789fi
Theodore Ts'o32237012005-01-17 19:13:39 -050011790fi
11791AWK=$ac_cv_prog_AWK
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011792if test -n "$AWK"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011794$as_echo "$AWK" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011795else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011797$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011798fi
11799
Theodore Ts'oe1052142006-10-21 21:46:47 -040011800
Theodore Ts'o32237012005-01-17 19:13:39 -050011801 test -n "$AWK" && break
11802done
11803
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011805$as_echo_n "checking for egrep... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011806if ${ac_cv_path_EGREP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011807 $as_echo_n "(cached) " >&6
Theodore Ts'o32237012005-01-17 19:13:39 -050011808else
Theodore Ts'oe1052142006-10-21 21:46:47 -040011809 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
11810 then ac_cv_path_EGREP="$GREP -E"
11811 else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011812 if test -z "$EGREP"; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040011813 ac_path_EGREP_found=false
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011814 # Loop through the user's path and test for each of PROGNAME-LIST
11815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'oe1052142006-10-21 21:46:47 -040011816for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11817do
11818 IFS=$as_save_IFS
11819 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011820 for ac_prog in egrep; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011821 for ac_exec_ext in '' $ac_executable_extensions; do
11822 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011823 as_fn_executable_p "$ac_path_EGREP" || continue
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011824# Check for GNU ac_path_EGREP and select it if it is found.
Theodore Ts'oe1052142006-10-21 21:46:47 -040011825 # Check for GNU $ac_path_EGREP
11826case `"$ac_path_EGREP" --version 2>&1` in
11827*GNU*)
11828 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
11829*)
11830 ac_count=0
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011831 $as_echo_n 0123456789 >"conftest.in"
Theodore Ts'oe1052142006-10-21 21:46:47 -040011832 while :
11833 do
11834 cat "conftest.in" "conftest.in" >"conftest.tmp"
11835 mv "conftest.tmp" "conftest.in"
11836 cp "conftest.in" "conftest.nl"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011837 $as_echo 'EGREP' >> "conftest.nl"
Theodore Ts'oe1052142006-10-21 21:46:47 -040011838 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
11839 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011840 as_fn_arith $ac_count + 1 && ac_count=$as_val
Theodore Ts'oe1052142006-10-21 21:46:47 -040011841 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
11842 # Best one so far, save it but keep looking for a better one
11843 ac_cv_path_EGREP="$ac_path_EGREP"
11844 ac_path_EGREP_max=$ac_count
Theodore Ts'o32237012005-01-17 19:13:39 -050011845 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011846 # 10*(2^10) chars as input seems more than enough
11847 test $ac_count -gt 10 && break
11848 done
11849 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11850esac
11851
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011852 $ac_path_EGREP_found && break 3
11853 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011854 done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011855 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011856IFS=$as_save_IFS
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011857 if test -z "$ac_cv_path_EGREP"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011858 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 +010011859 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040011860else
11861 ac_cv_path_EGREP=$EGREP
11862fi
11863
Theodore Ts'oe1052142006-10-21 21:46:47 -040011864 fi
11865fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011867$as_echo "$ac_cv_path_EGREP" >&6; }
Theodore Ts'oe1052142006-10-21 21:46:47 -040011868 EGREP="$ac_cv_path_EGREP"
Theodore Ts'o32237012005-01-17 19:13:39 -050011869
11870
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011871# Extract the first word of "sed", so it can be a program name with args.
11872set dummy sed; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011873{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011874$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011875if ${ac_cv_path_SED+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011876 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011877else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011878 case $SED in
11879 [\\/]* | ?:[\\/]*)
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011880 ac_cv_path_SED="$SED" # Let the user override the test with a path.
11881 ;;
11882 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11884for as_dir in $PATH
11885do
11886 IFS=$as_save_IFS
11887 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011888 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011890 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011892 break 2
11893 fi
11894done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011895 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011896IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011897
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011898 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
11899 ;;
11900esac
11901fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011902SED=$ac_cv_path_SED
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011903if test -n "$SED"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011905$as_echo "$SED" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011906else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011908$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000011909fi
11910
Theodore Ts'oe1052142006-10-21 21:46:47 -040011911
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011912# Extract the first word of "perl", so it can be a program name with args.
11913set dummy perl; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011915$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011916if ${ac_cv_path_PERL+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011917 $as_echo_n "(cached) " >&6
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011918else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011919 case $PERL in
11920 [\\/]* | ?:[\\/]*)
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011921 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
11922 ;;
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011923 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11925for as_dir in $PATH
11926do
11927 IFS=$as_save_IFS
11928 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011929 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011931 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011933 break 2
11934 fi
11935done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011936 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011937IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011938
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011939 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
11940 ;;
11941esac
11942fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011943PERL=$ac_cv_path_PERL
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011944if test -n "$PERL"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011946$as_echo "$PERL" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011947else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011949$as_echo "no" >&6; }
Theodore Ts'o9d564f71999-07-03 20:25:58 +000011950fi
11951
Theodore Ts'oe1052142006-10-21 21:46:47 -040011952
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011953# Extract the first word of "ldconfig", so it can be a program name with args.
11954set dummy ldconfig; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011956$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011957if ${ac_cv_path_LDCONFIG+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011958 $as_echo_n "(cached) " >&6
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011959else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011960 case $LDCONFIG in
11961 [\\/]* | ?:[\\/]*)
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011962 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
11963 ;;
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011964 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11966for as_dir in $PATH
11967do
11968 IFS=$as_save_IFS
11969 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011970 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011972 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011974 break 2
11975 fi
11976done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011977 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040011978IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011979
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011980 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":"
11981 ;;
11982esac
11983fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011984LDCONFIG=$ac_cv_path_LDCONFIG
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011985if test -n "$LDCONFIG"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011987$as_echo "$LDCONFIG" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011988else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011990$as_echo "no" >&6; }
Theodore Ts'o250f79f2001-05-19 22:02:22 +000011991fi
11992
Theodore Ts'oe1052142006-10-21 21:46:47 -040011993
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050011994if test -n "$ac_tool_prefix"; then
11995 # 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 +000011996set dummy ${ac_tool_prefix}ar; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050011997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010011998$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100011999if ${ac_cv_prog_AR+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012000 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012001else
12002 if test -n "$AR"; then
12003 ac_cv_prog_AR="$AR" # Let the user override the test.
12004else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12006for as_dir in $PATH
12007do
12008 IFS=$as_save_IFS
12009 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012010 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012012 ac_cv_prog_AR="${ac_tool_prefix}ar"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012014 break 2
12015 fi
12016done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012017 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012018IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012019
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012020fi
12021fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012022AR=$ac_cv_prog_AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012023if test -n "$AR"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012025$as_echo "$AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012026else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012028$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012029fi
12030
Theodore Ts'oe1052142006-10-21 21:46:47 -040012031
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012032fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012033if test -z "$ac_cv_prog_AR"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012034 ac_ct_AR=$AR
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012035 # Extract the first word of "ar", so it can be a program name with args.
12036set dummy ar; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012038$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012039if ${ac_cv_prog_ac_ct_AR+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012040 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012041else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012042 if test -n "$ac_ct_AR"; then
12043 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012044else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012045as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12046for as_dir in $PATH
12047do
12048 IFS=$as_save_IFS
12049 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012050 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012052 ac_cv_prog_ac_ct_AR="ar"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012054 break 2
12055 fi
12056done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012057 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012058IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012059
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012060fi
12061fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012062ac_ct_AR=$ac_cv_prog_ac_ct_AR
12063if test -n "$ac_ct_AR"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012065$as_echo "$ac_ct_AR" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012066else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012068$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012069fi
12070
Theodore Ts'oe1052142006-10-21 21:46:47 -040012071 if test "x$ac_ct_AR" = x; then
12072 AR="ar"
12073 else
12074 case $cross_compiling:$ac_tool_warned in
12075yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012076{ $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 +010012077$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012078ac_tool_warned=yes ;;
12079esac
12080 AR=$ac_ct_AR
12081 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012082else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012083 AR="$ac_cv_prog_AR"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012084fi
12085
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012086if test -n "$ac_tool_prefix"; then
12087 # 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 +000012088set dummy ${ac_tool_prefix}ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012090$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012091if ${ac_cv_prog_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012092 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012093else
12094 if test -n "$RANLIB"; then
12095 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12096else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12098for as_dir in $PATH
12099do
12100 IFS=$as_save_IFS
12101 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012102 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012104 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012106 break 2
12107 fi
12108done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012109 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012110IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012111
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012112fi
12113fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012114RANLIB=$ac_cv_prog_RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012115if test -n "$RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012117$as_echo "$RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012118else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012120$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012121fi
12122
Theodore Ts'oe1052142006-10-21 21:46:47 -040012123
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012124fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012125if test -z "$ac_cv_prog_RANLIB"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012126 ac_ct_RANLIB=$RANLIB
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012127 # Extract the first word of "ranlib", so it can be a program name with args.
12128set dummy ranlib; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012130$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012131if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012132 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012133else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012134 if test -n "$ac_ct_RANLIB"; then
12135 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012136else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12138for as_dir in $PATH
12139do
12140 IFS=$as_save_IFS
12141 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012142 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012144 ac_cv_prog_ac_ct_RANLIB="ranlib"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012146 break 2
12147 fi
12148done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012149 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012150IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012151
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012152fi
12153fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012154ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12155if test -n "$ac_ct_RANLIB"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012157$as_echo "$ac_ct_RANLIB" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012158else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012160$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012161fi
12162
Theodore Ts'oe1052142006-10-21 21:46:47 -040012163 if test "x$ac_ct_RANLIB" = x; then
12164 RANLIB=":"
12165 else
12166 case $cross_compiling:$ac_tool_warned in
12167yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012168{ $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 +010012169$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012170ac_tool_warned=yes ;;
12171esac
12172 RANLIB=$ac_ct_RANLIB
12173 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012174else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012175 RANLIB="$ac_cv_prog_RANLIB"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012176fi
12177
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012178if test -n "$ac_tool_prefix"; then
12179 # 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 +000012180set dummy ${ac_tool_prefix}strip; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012182$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012183if ${ac_cv_prog_STRIP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012184 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012185else
12186 if test -n "$STRIP"; then
12187 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12188else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12190for as_dir in $PATH
12191do
12192 IFS=$as_save_IFS
12193 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012194 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012196 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012198 break 2
12199 fi
12200done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012201 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012202IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012203
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012204fi
12205fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012206STRIP=$ac_cv_prog_STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012207if test -n "$STRIP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012209$as_echo "$STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012210else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012212$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012213fi
12214
Theodore Ts'oe1052142006-10-21 21:46:47 -040012215
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012216fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012217if test -z "$ac_cv_prog_STRIP"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012218 ac_ct_STRIP=$STRIP
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012219 # Extract the first word of "strip", so it can be a program name with args.
12220set dummy strip; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012222$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012223if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012224 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012225else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012226 if test -n "$ac_ct_STRIP"; then
12227 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012228else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012229as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12230for as_dir in $PATH
12231do
12232 IFS=$as_save_IFS
12233 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012234 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012236 ac_cv_prog_ac_ct_STRIP="strip"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012238 break 2
12239 fi
12240done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012241 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012242IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012243
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012244fi
12245fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012246ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12247if test -n "$ac_ct_STRIP"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012249$as_echo "$ac_ct_STRIP" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012250else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012252$as_echo "no" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012253fi
12254
Theodore Ts'oe1052142006-10-21 21:46:47 -040012255 if test "x$ac_ct_STRIP" = x; then
12256 STRIP=":"
12257 else
12258 case $cross_compiling:$ac_tool_warned in
12259yes:)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012260{ $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 +010012261$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040012262ac_tool_warned=yes ;;
12263esac
12264 STRIP=$ac_ct_STRIP
12265 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012266else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012267 STRIP="$ac_cv_prog_STRIP"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012268fi
12269
Manish Katiyar7321d942008-04-14 17:20:03 +053012270# Extract the first word of "makeinfo", so it can be a program name with args.
12271set dummy makeinfo; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012273$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012274if ${ac_cv_prog_MAKEINFO+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012275 $as_echo_n "(cached) " >&6
Manish Katiyar7321d942008-04-14 17:20:03 +053012276else
12277 if test -n "$MAKEINFO"; then
12278 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
12279else
12280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12281for as_dir in $PATH
12282do
12283 IFS=$as_save_IFS
12284 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012285 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Manish Katiyar7321d942008-04-14 17:20:03 +053012287 ac_cv_prog_MAKEINFO="makeinfo"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Manish Katiyar7321d942008-04-14 17:20:03 +053012289 break 2
12290 fi
12291done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012292 done
Manish Katiyar7321d942008-04-14 17:20:03 +053012293IFS=$as_save_IFS
12294
12295fi
12296fi
12297MAKEINFO=$ac_cv_prog_MAKEINFO
12298if test -n "$MAKEINFO"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012300$as_echo "$MAKEINFO" >&6; }
Manish Katiyar7321d942008-04-14 17:20:03 +053012301else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012303$as_echo "no" >&6; }
Manish Katiyar7321d942008-04-14 17:20:03 +053012304fi
12305
12306
12307if test "_$MAKEINFO" = "_"; then
Theodore Ts'oca1de982016-09-11 23:30:25 -040012308 MAKEINFO="echo Makeinfo is missing. Info documentation will not be built."
Manish Katiyar7321d942008-04-14 17:20:03 +053012309else
12310 case "$MAKEINFO" in
12311 */missing.*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
Manish Katiyar7321d942008-04-14 17:20:03 +053012313*** Makeinfo is missing. Info documentation will not be built." >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012314$as_echo "$as_me: WARNING:
Manish Katiyar7321d942008-04-14 17:20:03 +053012315*** Makeinfo is missing. Info documentation will not be built." >&2;}
12316 ;;
12317 *)
12318 ;;
12319 esac
12320fi
12321
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012322
Theodore Ts'o6c133521999-07-03 20:37:03 +000012323# See if we need a separate native compiler.
12324if test $cross_compiling = no; then
12325 BUILD_CC="$CC"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012326
Theodore Ts'o6c133521999-07-03 20:37:03 +000012327else
12328 for ac_prog in gcc cc
12329do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012330 # Extract the first word of "$ac_prog", so it can be a program name with args.
Theodore Ts'o6c133521999-07-03 20:37:03 +000012331set dummy $ac_prog; ac_word=$2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012333$as_echo_n "checking for $ac_word... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012334if ${ac_cv_prog_BUILD_CC+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012335 $as_echo_n "(cached) " >&6
Theodore Ts'o6c133521999-07-03 20:37:03 +000012336else
12337 if test -n "$BUILD_CC"; then
12338 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
12339else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012340as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12341for as_dir in $PATH
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012342do
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012343 IFS=$as_save_IFS
12344 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012345 for ac_exec_ext in '' $ac_executable_extensions; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012347 ac_cv_prog_BUILD_CC="$ac_prog"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012349 break 2
12350 fi
12351done
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012352 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040012353IFS=$as_save_IFS
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012354
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012355fi
12356fi
12357BUILD_CC=$ac_cv_prog_BUILD_CC
12358if test -n "$BUILD_CC"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012360$as_echo "$BUILD_CC" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012361else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012363$as_echo "no" >&6; }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012364fi
12365
Theodore Ts'oe1052142006-10-21 21:46:47 -040012366
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012367 test -n "$BUILD_CC" && break
12368done
12369
12370fi
Theodore Ts'o74f2c4a2015-06-19 19:28:25 -040012371for 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 -050012372do :
12373 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12374ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012375if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012376 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012377#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012378_ACEOF
12379
12380fi
12381
12382done
12383
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012384for ac_header in net/if.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012385do :
12386 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012387#if HAVE_SYS_TYPES_H
12388#include <sys/types.h>
12389#endif
12390#if HAVE_SYS_SOCKET
12391#include <sys/socket.h>
12392#endif
12393
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012394"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012395if test "x$ac_cv_header_net_if_h" = xyes; then :
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012396 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012397#define HAVE_NET_IF_H 1
Theodore Ts'oda76d6b2005-01-18 23:29:01 -050012398_ACEOF
12399
12400fi
12401
12402done
12403
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012404for ac_func in vprintf
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012405do :
12406 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012407if test "x$ac_cv_func_vprintf" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012408 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012409#define HAVE_VPRINTF 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012410_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012411
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012412ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012413if test "x$ac_cv_func__doprnt" = xyes; then :
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012414
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012415$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012416
12417fi
12418
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012419fi
12420done
12421
12422
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012423ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h>
12424"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012425if test "x$ac_cv_member_struct_dirent_d_reclen" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012426
12427$as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h
Theodore Ts'offf45482003-04-13 00:44:19 -040012428
12429fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012430
Theodore Ts'o28739272014-01-03 00:26:43 -050012431ac_fn_c_check_member "$LINENO" "struct stat" "st_atim" "ac_cv_member_struct_stat_st_atim" "$ac_includes_default"
12432if test "x$ac_cv_member_struct_stat_st_atim" = xyes; then :
12433
12434cat >>confdefs.h <<_ACEOF
12435#define HAVE_STRUCT_STAT_ST_ATIM 1
12436_ACEOF
12437
12438
12439fi
12440
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012441ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h>
12442"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012443if test "x$ac_cv_type_ssize_t" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012444
12445$as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012446
Theodore Ts'offf45482003-04-13 00:44:19 -040012447fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012448
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012449ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h>
12450"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012451if test "x$ac_cv_have_decl_llseek" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012452
12453$as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h
Theodore Ts'offf45482003-04-13 00:44:19 -040012454
12455fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012456
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012457ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012458 #define _LARGEFILE64_SOURCE
12459 #include <unistd.h>
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012460"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012461if test "x$ac_cv_have_decl_lseek64" = xyes; then :
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012462
12463$as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h
Theodore Ts'o6928adc2000-05-25 23:28:50 +000012464
12465fi
Theodore Ts'o6c65d252005-01-19 12:59:48 -050012466
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012467# The cast to long int works around a bug in the HP C Compiler
12468# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12469# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12470# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012472$as_echo_n "checking size of short... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012473if ${ac_cv_sizeof_short+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012474 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012475else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012476 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 -050012477
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012478else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012479 if test "$ac_cv_type_short" = yes; then
12480 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012481$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012482as_fn_error 77 "cannot compute sizeof (short)
12483See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012484 else
12485 ac_cv_sizeof_short=0
12486 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012487fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012488
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012489fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012491$as_echo "$ac_cv_sizeof_short" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012492
12493
12494
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012495cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012496#define SIZEOF_SHORT $ac_cv_sizeof_short
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012497_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012498
12499
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012500# The cast to long int works around a bug in the HP C Compiler
12501# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12502# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12503# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012505$as_echo_n "checking size of int... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012506if ${ac_cv_sizeof_int+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012507 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012508else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012509 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 -050012510
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012511else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012512 if test "$ac_cv_type_int" = yes; then
12513 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012514$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012515as_fn_error 77 "cannot compute sizeof (int)
12516See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012517 else
12518 ac_cv_sizeof_int=0
12519 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012520fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012521
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012522fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012524$as_echo "$ac_cv_sizeof_int" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012525
12526
12527
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012528cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012529#define SIZEOF_INT $ac_cv_sizeof_int
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012530_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012531
12532
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012533# The cast to long int works around a bug in the HP C Compiler
12534# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12535# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12536# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012538$as_echo_n "checking size of long... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012539if ${ac_cv_sizeof_long+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012540 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012541else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012542 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 -050012543
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012544else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012545 if test "$ac_cv_type_long" = yes; then
12546 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012547$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012548as_fn_error 77 "cannot compute sizeof (long)
12549See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012550 else
12551 ac_cv_sizeof_long=0
12552 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012553fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012554
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012555fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012557$as_echo "$ac_cv_sizeof_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012558
12559
12560
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012561cat >>confdefs.h <<_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012562#define SIZEOF_LONG $ac_cv_sizeof_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012563_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012564
12565
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012566# The cast to long int works around a bug in the HP C Compiler
12567# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12568# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12569# This bug is HP SR number 8606223364.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012571$as_echo_n "checking size of long long... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012572if ${ac_cv_sizeof_long_long+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012573 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012574else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012575 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 -050012576
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012577else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012578 if test "$ac_cv_type_long_long" = yes; then
12579 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012580$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012581as_fn_error 77 "cannot compute sizeof (long long)
12582See \`config.log' for more details" "$LINENO" 5; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012583 else
12584 ac_cv_sizeof_long_long=0
12585 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012586fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012587
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012588fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012590$as_echo "$ac_cv_sizeof_long_long" >&6; }
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040012591
12592
12593
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012594cat >>confdefs.h <<_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000012595#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012596_ACEOF
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000012597
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012598
Theodore Ts'occ68e8a2013-05-04 19:01:09 -040012599# The cast to long int works around a bug in the HP C Compiler
12600# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12601# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12602# This bug is HP SR number 8606223364.
12603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
12604$as_echo_n "checking size of off_t... " >&6; }
12605if ${ac_cv_sizeof_off_t+:} false; then :
12606 $as_echo_n "(cached) " >&6
12607else
12608 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
12609
12610else
12611 if test "$ac_cv_type_off_t" = yes; then
12612 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12613$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12614as_fn_error 77 "cannot compute sizeof (off_t)
12615See \`config.log' for more details" "$LINENO" 5; }
12616 else
12617 ac_cv_sizeof_off_t=0
12618 fi
12619fi
12620
12621fi
12622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
12623$as_echo "$ac_cv_sizeof_off_t" >&6; }
12624
12625
12626
12627cat >>confdefs.h <<_ACEOF
12628#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
12629_ACEOF
12630
12631
Theodore Ts'o2dd680f2016-05-29 01:07:40 -040012632# The cast to long int works around a bug in the HP C Compiler
12633# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
12634# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
12635# This bug is HP SR number 8606223364.
12636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
12637$as_echo_n "checking size of time_t... " >&6; }
12638if ${ac_cv_sizeof_time_t+:} false; then :
12639 $as_echo_n "(cached) " >&6
12640else
12641 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then :
12642
12643else
12644 if test "$ac_cv_type_time_t" = yes; then
12645 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12646$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12647as_fn_error 77 "cannot compute sizeof (time_t)
12648See \`config.log' for more details" "$LINENO" 5; }
12649 else
12650 ac_cv_sizeof_time_t=0
12651 fi
12652fi
12653
12654fi
12655{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
12656$as_echo "$ac_cv_sizeof_time_t" >&6; }
12657
12658
12659
12660cat >>confdefs.h <<_ACEOF
12661#define SIZEOF_TIME_T $ac_cv_sizeof_time_t
12662_ACEOF
12663
12664
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012665SIZEOF_SHORT=$ac_cv_sizeof_short
12666SIZEOF_INT=$ac_cv_sizeof_int
12667SIZEOF_LONG=$ac_cv_sizeof_long
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000012668SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long
Theodore Ts'occ68e8a2013-05-04 19:01:09 -040012669SIZEOF_OFF_T=$ac_cv_sizeof_off_t
Theodore Ts'o2dd680f2016-05-29 01:07:40 -040012670SIZEOF_TIME_T=$ac_cv_sizeof_time_t
12671
Theodore Ts'occ68e8a2013-05-04 19:01:09 -040012672
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000012673
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012674
12675
12676
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012678$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012679if ${ac_cv_c_bigendian+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012680 $as_echo_n "(cached) " >&6
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012681else
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012682 ac_cv_c_bigendian=unknown
12683 # See if we're dealing with a universal compiler.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012685/* end confdefs.h. */
12686#ifndef __APPLE_CC__
12687 not a universal capable compiler
12688 #endif
12689 typedef int dummy;
12690
12691_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012692if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012693
12694 # Check for potential -arch flags. It is not universal unless
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012695 # there are at least two -arch flags with different values.
12696 ac_arch=
12697 ac_prev=
12698 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
12699 if test -n "$ac_prev"; then
12700 case $ac_word in
12701 i?86 | x86_64 | ppc | ppc64)
12702 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
12703 ac_arch=$ac_word
12704 else
12705 ac_cv_c_bigendian=universal
12706 break
12707 fi
12708 ;;
12709 esac
12710 ac_prev=
12711 elif test "x$ac_word" = "x-arch"; then
12712 ac_prev=arch
12713 fi
12714 done
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012715fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012716rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12717 if test $ac_cv_c_bigendian = unknown; then
12718 # See if sys/param.h defines the BYTE_ORDER macro.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012720/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012721#include <sys/types.h>
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012722 #include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012723
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012724int
12725main ()
12726{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012727#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12728 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12729 && LITTLE_ENDIAN)
12730 bogus endian macros
12731 #endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012732
12733 ;
12734 return 0;
12735}
12736_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012737if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012738 # It does; now see whether it defined to BIG_ENDIAN or not.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012740/* end confdefs.h. */
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012741#include <sys/types.h>
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012742 #include <sys/param.h>
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012743
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012744int
12745main ()
12746{
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012747#if BYTE_ORDER != BIG_ENDIAN
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012748 not big endian
12749 #endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012750
12751 ;
12752 return 0;
12753}
12754_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012755if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012756 ac_cv_c_bigendian=yes
12757else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012758 ac_cv_c_bigendian=no
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012759fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012761fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12763 fi
12764 if test $ac_cv_c_bigendian = unknown; then
12765 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012767/* end confdefs.h. */
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012768#include <limits.h>
12769
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012770int
12771main ()
12772{
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012773#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12774 bogus endian macros
12775 #endif
12776
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012777 ;
12778 return 0;
12779}
12780_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012781if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012782 # It does; now see whether it defined to _BIG_ENDIAN or not.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012784/* end confdefs.h. */
12785#include <limits.h>
12786
12787int
12788main ()
12789{
12790#ifndef _BIG_ENDIAN
12791 not big endian
12792 #endif
12793
12794 ;
12795 return 0;
12796}
12797_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012798if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012799 ac_cv_c_bigendian=yes
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012800else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012801 ac_cv_c_bigendian=no
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012802fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012803rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012804fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012805rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12806 fi
12807 if test $ac_cv_c_bigendian = unknown; then
12808 # Compile a test program.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012809 if test "$cross_compiling" = yes; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012810 # Try to guess by grepping values from an object file.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012812/* end confdefs.h. */
12813short int ascii_mm[] =
12814 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12815 short int ascii_ii[] =
12816 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12817 int use_ascii (int i) {
12818 return ascii_mm[i] + ascii_ii[i];
12819 }
12820 short int ebcdic_ii[] =
12821 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12822 short int ebcdic_mm[] =
12823 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12824 int use_ebcdic (int i) {
12825 return ebcdic_mm[i] + ebcdic_ii[i];
12826 }
12827 extern int foo;
12828
12829int
12830main ()
12831{
12832return use_ascii (foo) == use_ebcdic (foo);
12833 ;
12834 return 0;
12835}
12836_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012837if ac_fn_c_try_compile "$LINENO"; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012838 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12839 ac_cv_c_bigendian=yes
12840 fi
12841 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12842 if test "$ac_cv_c_bigendian" = unknown; then
12843 ac_cv_c_bigendian=no
12844 else
12845 # finding both strings is unlikely to happen, but who knows?
12846 ac_cv_c_bigendian=unknown
12847 fi
12848 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012849fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012851else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012853/* end confdefs.h. */
Theodore Ts'oe1052142006-10-21 21:46:47 -040012854$ac_includes_default
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012855int
12856main ()
12857{
Theodore Ts'oe1052142006-10-21 21:46:47 -040012858
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012859 /* Are we little or big endian? From Harbison&Steele. */
12860 union
12861 {
12862 long int l;
12863 char c[sizeof (long int)];
12864 } u;
12865 u.l = 1;
12866 return u.c[sizeof (long int) - 1] == 1;
Theodore Ts'oe1052142006-10-21 21:46:47 -040012867
12868 ;
12869 return 0;
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012870}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012871_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012872if ac_fn_c_try_run "$LINENO"; then :
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012873 ac_cv_c_bigendian=no
12874else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012875 ac_cv_c_bigendian=yes
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012876fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012877rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12878 conftest.$ac_objext conftest.beam conftest.$ac_ext
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012879fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012880
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012881 fi
Theodore Ts'o93636bd2003-07-12 02:45:05 -040012882fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012884$as_echo "$ac_cv_c_bigendian" >&6; }
12885 case $ac_cv_c_bigendian in #(
12886 yes)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012887 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012888;; #(
12889 no)
12890 ;; #(
12891 universal)
12892
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012893$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012894
12895 ;; #(
12896 *)
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012897 as_fn_error $? "unknown endianness
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012898 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012899 esac
Theodore Ts'o877eb6d2001-06-11 06:54:13 +000012900
Chen Qi91f04682014-05-05 21:08:42 -040012901if test $cross_compiling = no; then
12902 BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12903else
12904 CROSS_COMPILE="1" BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh
12905fi
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040012906ASM_TYPES_HEADER=./asm_types.h
12907
Theodore Ts'o488c75a2008-06-07 08:55:21 -040012908echo "/* These defines are needed for the public ext2fs.h header file */" \
12909 > public_config.h
12910if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then
12911 uniq tmp_config.$$ >> public_config.h
12912else
12913 echo "#undef HAVE_SYS_TYPES_H" >> public_config.h
12914fi
12915if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then
12916 uniq tmp_config.$$ >> public_config.h
12917else
12918 echo "#undef WORDS_BIGENDIAN" >> public_config.h
12919fi
12920rm -f tmp_config.$$
12921PUBLIC_CONFIG_HEADER=./public_config.h
12922
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012923for ac_header in inttypes.h
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012924do :
12925 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012926if test "x$ac_cv_header_inttypes_h" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012927 cat >>confdefs.h <<_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012928#define HAVE_INTTYPES_H 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012929_ACEOF
12930
12931fi
12932
Theodore Ts'o0c193f82003-08-01 14:26:23 -040012933done
12934
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012935ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012936if test "x$ac_cv_type_intptr_t" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012937
12938cat >>confdefs.h <<_ACEOF
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050012939#define HAVE_INTPTR_T 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012940_ACEOF
12941
Theodore Ts'od2ee56d2005-01-09 00:57:45 -050012942
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012943fi
12944
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012945{ $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 +010012946$as_echo_n "checking whether struct stat has a st_flags field... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012947if ${e2fsprogs_cv_struct_st_flags+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012948 $as_echo_n "(cached) " >&6
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012949else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012951/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012952#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012953int
12954main ()
12955{
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012956struct stat stat; stat.st_flags = 0;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012957 ;
12958 return 0;
12959}
12960_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012961if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012962 e2fsprogs_cv_struct_st_flags=yes
12963else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012964 e2fsprogs_cv_struct_st_flags=no
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012965fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012966rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12967fi
12968
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012970$as_echo "$e2fsprogs_cv_struct_st_flags" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000012971if test "$e2fsprogs_cv_struct_st_flags" = yes; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012973$as_echo_n "checking whether st_flags field is useful... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100012974 if ${e2fsprogs_cv_struct_st_flags_immut+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012975 $as_echo_n "(cached) " >&6
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000012976else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012978/* end confdefs.h. */
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000012979#include <sys/stat.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012980int
12981main ()
12982{
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000012983struct stat stat; stat.st_flags |= UF_IMMUTABLE;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050012984 ;
12985 return 0;
12986}
12987_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012988if ac_fn_c_try_compile "$LINENO"; then :
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000012989 e2fsprogs_cv_struct_st_flags_immut=yes
12990else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012991 e2fsprogs_cv_struct_st_flags_immut=no
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000012992fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040012993rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12994fi
12995
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050012996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010012997$as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; }
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000012998 if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040012999
13000$as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013001
Theodore Ts'oc03bc4e1999-10-20 18:20:36 +000013002 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013003fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013004ac_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 -050013005 #include <sys/socket.h>
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013006"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013007if test "x$ac_cv_member_struct_sockaddr_sa_len" = xyes; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013008
13009cat >>confdefs.h <<_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050013010#define HAVE_SA_LEN 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013011_ACEOF
Theodore Ts'o84ea6e72004-03-19 19:29:17 -050013012
13013fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013014
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013015if test -n "$BLKID_CMT"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013017$as_echo_n "checking for library containing blkid_probe_all... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013018if ${ac_cv_search_blkid_probe_all+:} false; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013019 $as_echo_n "(cached) " >&6
13020else
13021 ac_func_search_save_LIBS=$LIBS
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013022cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013023/* end confdefs.h. */
13024
13025/* Override any GCC internal prototype to avoid an error.
13026 Use char because int might match the return type of a GCC
13027 builtin and then its argument prototype would still apply. */
13028#ifdef __cplusplus
13029extern "C"
13030#endif
13031char blkid_probe_all ();
13032int
13033main ()
13034{
13035return blkid_probe_all ();
13036 ;
13037 return 0;
13038}
13039_ACEOF
13040for ac_lib in '' blkid; do
13041 if test -z "$ac_lib"; then
13042 ac_res="none required"
13043 else
13044 ac_res=-l$ac_lib
13045 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13046 fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013047 if ac_fn_c_try_link "$LINENO"; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013048 ac_cv_search_blkid_probe_all=$ac_res
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013049fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013050rm -f core conftest.err conftest.$ac_objext \
13051 conftest$ac_exeext
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013052 if ${ac_cv_search_blkid_probe_all+:} false; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013053 break
13054fi
13055done
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013056if ${ac_cv_search_blkid_probe_all+:} false; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013057
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013058else
13059 ac_cv_search_blkid_probe_all=no
13060fi
13061rm conftest.$ac_ext
13062LIBS=$ac_func_search_save_LIBS
13063fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013064{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013065$as_echo "$ac_cv_search_blkid_probe_all" >&6; }
13066ac_res=$ac_cv_search_blkid_probe_all
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013067if test "$ac_res" != no; then :
Eric Sandeen9ed8e5f2009-10-02 11:32:42 -050013068 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13069
13070fi
13071
13072fi
Theodore Ts'o32179ce2016-06-07 00:14:35 -040013073if test -n "$DLOPEN_LIB" ; then
13074 ac_cv_func_dlopen=yes
13075fi
13076for 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 -050013077do :
13078 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13079ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013080if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013081 cat >>confdefs.h <<_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013082#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013083_ACEOF
13084
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013085fi
13086done
13087
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013088SOCKET_LIB=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013090$as_echo_n "checking for socket in -lsocket... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013091if ${ac_cv_lib_socket_socket+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013092 $as_echo_n "(cached) " >&6
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013093else
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013094 ac_check_lib_save_LIBS=$LIBS
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013095LIBS="-lsocket $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013096cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013097/* end confdefs.h. */
13098
Theodore Ts'oe1052142006-10-21 21:46:47 -040013099/* Override any GCC internal prototype to avoid an error.
13100 Use char because int might match the return type of a GCC
13101 builtin and then its argument prototype would still apply. */
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013102#ifdef __cplusplus
13103extern "C"
13104#endif
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013105char socket ();
13106int
13107main ()
13108{
Theodore Ts'oe1052142006-10-21 21:46:47 -040013109return socket ();
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013110 ;
13111 return 0;
13112}
13113_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013114if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013115 ac_cv_lib_socket_socket=yes
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013116else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013117 ac_cv_lib_socket_socket=no
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013118fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013119rm -f core conftest.err conftest.$ac_objext \
13120 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013121LIBS=$ac_check_lib_save_LIBS
13122fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013124$as_echo "$ac_cv_lib_socket_socket" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013125if test "x$ac_cv_lib_socket_socket" = xyes; then :
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013126 SOCKET_LIB=-lsocket
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013127fi
13128
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013129
Darrick J. Wongb291c112014-09-13 15:12:46 -070013130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_file in -lmagic" >&5
13131$as_echo_n "checking for magic_file in -lmagic... " >&6; }
13132if ${ac_cv_lib_magic_magic_file+:} false; then :
13133 $as_echo_n "(cached) " >&6
13134else
13135 ac_check_lib_save_LIBS=$LIBS
13136LIBS="-lmagic $LIBS"
13137cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13138/* end confdefs.h. */
13139
13140/* Override any GCC internal prototype to avoid an error.
13141 Use char because int might match the return type of a GCC
13142 builtin and then its argument prototype would still apply. */
13143#ifdef __cplusplus
13144extern "C"
13145#endif
13146char magic_file ();
13147int
13148main ()
13149{
13150return magic_file ();
13151 ;
13152 return 0;
13153}
13154_ACEOF
13155if ac_fn_c_try_link "$LINENO"; then :
13156 ac_cv_lib_magic_magic_file=yes
13157else
13158 ac_cv_lib_magic_magic_file=no
13159fi
13160rm -f core conftest.err conftest.$ac_objext \
13161 conftest$ac_exeext conftest.$ac_ext
13162LIBS=$ac_check_lib_save_LIBS
13163fi
13164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_file" >&5
13165$as_echo "$ac_cv_lib_magic_magic_file" >&6; }
13166if test "x$ac_cv_lib_magic_magic_file" = xyes; then :
13167 MAGIC_LIB=-lmagic
13168for ac_header in magic.h
13169do :
13170 ac_fn_c_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default"
13171if test "x$ac_cv_header_magic_h" = xyes; then :
13172 cat >>confdefs.h <<_ACEOF
13173#define HAVE_MAGIC_H 1
13174_ACEOF
13175
13176fi
13177
13178done
13179
13180fi
13181
Theodore Ts'o32179ce2016-06-07 00:14:35 -040013182if test "$ac_cv_func_dlopen" = yes ; then
Theodore Ts'od2e3c0d2014-09-21 01:25:58 -040013183 MAGIC_LIB=$DLOPEN_LIB
13184fi
Darrick J. Wongb291c112014-09-13 15:12:46 -070013185
Theodore Ts'oc94da042016-06-21 23:16:39 -040013186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
13187$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
13188if ${ac_cv_lib_rt_clock_gettime+:} false; then :
13189 $as_echo_n "(cached) " >&6
13190else
13191 ac_check_lib_save_LIBS=$LIBS
13192LIBS="-lrt $LIBS"
13193cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13194/* end confdefs.h. */
13195
13196/* Override any GCC internal prototype to avoid an error.
13197 Use char because int might match the return type of a GCC
13198 builtin and then its argument prototype would still apply. */
13199#ifdef __cplusplus
13200extern "C"
13201#endif
13202char clock_gettime ();
13203int
13204main ()
13205{
13206return clock_gettime ();
13207 ;
13208 return 0;
13209}
13210_ACEOF
13211if ac_fn_c_try_link "$LINENO"; then :
13212 ac_cv_lib_rt_clock_gettime=yes
13213else
13214 ac_cv_lib_rt_clock_gettime=no
13215fi
13216rm -f core conftest.err conftest.$ac_objext \
13217 conftest$ac_exeext conftest.$ac_ext
13218LIBS=$ac_check_lib_save_LIBS
13219fi
13220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
13221$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
13222if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
13223 CLOCK_GETTIME_LIB=-lrt
13224fi
13225
13226
Darrick J. Wong81cbf1e2015-05-13 17:22:40 -070013227FUSE_CMT=
13228FUSE_LIB=
13229# Check whether --enable-fuse2fs was given.
13230if test "${enable_fuse2fs+set}" = set; then :
13231 enableval=$enable_fuse2fs; if test "$enableval" = "no"
13232then
13233 FUSE_CMT="#"
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling fuse2fs" >&5
13235$as_echo "Disabling fuse2fs" >&6; }
13236else
13237 for ac_header in pthread.h fuse.h
13238do :
13239 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13240ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
13241#define FUSE_USE_VERSION 29
13242"
13243if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13244 cat >>confdefs.h <<_ACEOF
13245#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13246_ACEOF
13247
13248else
13249 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13250$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13251as_fn_error $? "Cannot find fuse2fs headers.
13252See \`config.log' for more details" "$LINENO" 5; }
13253fi
13254
13255done
13256
13257
13258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13259/* end confdefs.h. */
13260#define FUSE_USE_VERSION 29
13261#ifdef __linux__
13262#include <linux/fs.h>
13263#include <linux/falloc.h>
13264#include <linux/xattr.h>
13265#endif
13266
13267int
13268main ()
13269{
13270
13271 ;
13272 return 0;
13273}
13274_ACEOF
13275if ac_fn_c_try_cpp "$LINENO"; then :
13276
13277else
13278 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13279$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13280as_fn_error $? "Cannot find fuse2fs Linux headers.
13281See \`config.log' for more details" "$LINENO" 5; }
13282fi
13283rm -f conftest.err conftest.i conftest.$ac_ext
13284
13285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13286$as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
13287if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
13288 $as_echo_n "(cached) " >&6
13289else
13290 ac_check_lib_save_LIBS=$LIBS
13291LIBS="-losxfuse $LIBS"
13292cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13293/* end confdefs.h. */
13294
13295/* Override any GCC internal prototype to avoid an error.
13296 Use char because int might match the return type of a GCC
13297 builtin and then its argument prototype would still apply. */
13298#ifdef __cplusplus
13299extern "C"
13300#endif
13301char fuse_main ();
13302int
13303main ()
13304{
13305return fuse_main ();
13306 ;
13307 return 0;
13308}
13309_ACEOF
13310if ac_fn_c_try_link "$LINENO"; then :
13311 ac_cv_lib_osxfuse_fuse_main=yes
13312else
13313 ac_cv_lib_osxfuse_fuse_main=no
13314fi
13315rm -f core conftest.err conftest.$ac_objext \
13316 conftest$ac_exeext conftest.$ac_ext
13317LIBS=$ac_check_lib_save_LIBS
13318fi
13319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13320$as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13321if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
13322 FUSE_LIB=-losxfuse
13323else
13324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13325$as_echo_n "checking for fuse_main in -lfuse... " >&6; }
13326if ${ac_cv_lib_fuse_fuse_main+:} false; then :
13327 $as_echo_n "(cached) " >&6
13328else
13329 ac_check_lib_save_LIBS=$LIBS
13330LIBS="-lfuse $LIBS"
13331cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13332/* end confdefs.h. */
13333
13334/* Override any GCC internal prototype to avoid an error.
13335 Use char because int might match the return type of a GCC
13336 builtin and then its argument prototype would still apply. */
13337#ifdef __cplusplus
13338extern "C"
13339#endif
13340char fuse_main ();
13341int
13342main ()
13343{
13344return fuse_main ();
13345 ;
13346 return 0;
13347}
13348_ACEOF
13349if ac_fn_c_try_link "$LINENO"; then :
13350 ac_cv_lib_fuse_fuse_main=yes
13351else
13352 ac_cv_lib_fuse_fuse_main=no
13353fi
13354rm -f core conftest.err conftest.$ac_objext \
13355 conftest$ac_exeext conftest.$ac_ext
13356LIBS=$ac_check_lib_save_LIBS
13357fi
13358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13359$as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
13360if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
13361 FUSE_LIB=-lfuse
13362else
13363 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13364$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13365as_fn_error $? "Cannot find fuse library.
13366See \`config.log' for more details" "$LINENO" 5; }
13367fi
13368
13369fi
13370
13371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs" >&5
13372$as_echo "Enabling fuse2fs" >&6; }
13373fi
13374
13375else
13376 for ac_header in pthread.h fuse.h
13377do :
13378 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13379ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#define _FILE_OFFSET_BITS 64
13380#define FUSE_USE_VERSION 29
13381#ifdef __linux__
13382# include <linux/fs.h>
13383# include <linux/falloc.h>
13384# include <linux/xattr.h>
13385#endif
13386"
13387if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13388 cat >>confdefs.h <<_ACEOF
13389#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13390_ACEOF
13391
13392else
13393 FUSE_CMT="#"
13394fi
13395
13396done
13397
13398if test -z "$FUSE_CMT"
13399then
13400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -losxfuse" >&5
13401$as_echo_n "checking for fuse_main in -losxfuse... " >&6; }
13402if ${ac_cv_lib_osxfuse_fuse_main+:} false; then :
13403 $as_echo_n "(cached) " >&6
13404else
13405 ac_check_lib_save_LIBS=$LIBS
13406LIBS="-losxfuse $LIBS"
13407cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13408/* end confdefs.h. */
13409
13410/* Override any GCC internal prototype to avoid an error.
13411 Use char because int might match the return type of a GCC
13412 builtin and then its argument prototype would still apply. */
13413#ifdef __cplusplus
13414extern "C"
13415#endif
13416char fuse_main ();
13417int
13418main ()
13419{
13420return fuse_main ();
13421 ;
13422 return 0;
13423}
13424_ACEOF
13425if ac_fn_c_try_link "$LINENO"; then :
13426 ac_cv_lib_osxfuse_fuse_main=yes
13427else
13428 ac_cv_lib_osxfuse_fuse_main=no
13429fi
13430rm -f core conftest.err conftest.$ac_objext \
13431 conftest$ac_exeext conftest.$ac_ext
13432LIBS=$ac_check_lib_save_LIBS
13433fi
13434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_osxfuse_fuse_main" >&5
13435$as_echo "$ac_cv_lib_osxfuse_fuse_main" >&6; }
13436if test "x$ac_cv_lib_osxfuse_fuse_main" = xyes; then :
13437 FUSE_LIB=-losxfuse
13438else
13439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fuse_main in -lfuse" >&5
13440$as_echo_n "checking for fuse_main in -lfuse... " >&6; }
13441if ${ac_cv_lib_fuse_fuse_main+:} false; then :
13442 $as_echo_n "(cached) " >&6
13443else
13444 ac_check_lib_save_LIBS=$LIBS
13445LIBS="-lfuse $LIBS"
13446cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13447/* end confdefs.h. */
13448
13449/* Override any GCC internal prototype to avoid an error.
13450 Use char because int might match the return type of a GCC
13451 builtin and then its argument prototype would still apply. */
13452#ifdef __cplusplus
13453extern "C"
13454#endif
13455char fuse_main ();
13456int
13457main ()
13458{
13459return fuse_main ();
13460 ;
13461 return 0;
13462}
13463_ACEOF
13464if ac_fn_c_try_link "$LINENO"; then :
13465 ac_cv_lib_fuse_fuse_main=yes
13466else
13467 ac_cv_lib_fuse_fuse_main=no
13468fi
13469rm -f core conftest.err conftest.$ac_objext \
13470 conftest$ac_exeext conftest.$ac_ext
13471LIBS=$ac_check_lib_save_LIBS
13472fi
13473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fuse_fuse_main" >&5
13474$as_echo "$ac_cv_lib_fuse_fuse_main" >&6; }
13475if test "x$ac_cv_lib_fuse_fuse_main" = xyes; then :
13476 FUSE_LIB=-lfuse
13477else
13478 FUSE_CMT="#"
13479fi
13480
13481fi
13482
13483fi
13484if test -z "$FUSE_CMT"
13485then
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling fuse2fs by default." >&5
13487$as_echo "Enabling fuse2fs by default." >&6; }
13488fi
13489
13490fi
13491
13492
13493
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013495$as_echo_n "checking for optreset... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013496if ${ac_cv_have_optreset+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013497 $as_echo_n "(cached) " >&6
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013498else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013500/* end confdefs.h. */
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013501#include <unistd.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013502
13503_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013504if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013505 $EGREP "optreset" >/dev/null 2>&1; then :
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013506 ac_cv_have_optreset=yes
13507else
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013508 ac_cv_have_optreset=no
13509fi
13510rm -f conftest*
13511
13512fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013514$as_echo "$ac_cv_have_optreset" >&6; }
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013515if test $ac_cv_have_optreset = yes; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013516
13517$as_echo "#define HAVE_OPTRESET 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013518
13519fi
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013520
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013521SEM_INIT_LIB=''
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013522ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013523if test "x$ac_cv_func_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013524
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013525else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013527$as_echo_n "checking for sem_init in -lpthread... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013528if ${ac_cv_lib_pthread_sem_init+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013529 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013530else
13531 ac_check_lib_save_LIBS=$LIBS
13532LIBS="-lpthread $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013533cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013534/* end confdefs.h. */
13535
13536/* Override any GCC internal prototype to avoid an error.
13537 Use char because int might match the return type of a GCC
13538 builtin and then its argument prototype would still apply. */
13539#ifdef __cplusplus
13540extern "C"
13541#endif
13542char sem_init ();
13543int
13544main ()
13545{
13546return sem_init ();
13547 ;
13548 return 0;
13549}
13550_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013551if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013552 ac_cv_lib_pthread_sem_init=yes
13553else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013554 ac_cv_lib_pthread_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013555fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013556rm -f core conftest.err conftest.$ac_objext \
13557 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013558LIBS=$ac_check_lib_save_LIBS
13559fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013561$as_echo "$ac_cv_lib_pthread_sem_init" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013562if test "x$ac_cv_lib_pthread_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013563 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013564
13565 SEM_INIT_LIB=-lpthread
13566else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013568$as_echo_n "checking for sem_init in -lrt... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013569if ${ac_cv_lib_rt_sem_init+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013570 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013571else
13572 ac_check_lib_save_LIBS=$LIBS
13573LIBS="-lrt $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013574cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013575/* end confdefs.h. */
13576
13577/* Override any GCC internal prototype to avoid an error.
13578 Use char because int might match the return type of a GCC
13579 builtin and then its argument prototype would still apply. */
13580#ifdef __cplusplus
13581extern "C"
13582#endif
13583char sem_init ();
13584int
13585main ()
13586{
13587return sem_init ();
13588 ;
13589 return 0;
13590}
13591_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013592if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013593 ac_cv_lib_rt_sem_init=yes
13594else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013595 ac_cv_lib_rt_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013596fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013597rm -f core conftest.err conftest.$ac_objext \
13598 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013599LIBS=$ac_check_lib_save_LIBS
13600fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013601{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013602$as_echo "$ac_cv_lib_rt_sem_init" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013603if test "x$ac_cv_lib_rt_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013604 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013605
13606 SEM_INIT_LIB=-lrt
13607else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013609$as_echo_n "checking for sem_init in -lposix4... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013610if ${ac_cv_lib_posix4_sem_init+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013611 $as_echo_n "(cached) " >&6
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013612else
13613 ac_check_lib_save_LIBS=$LIBS
13614LIBS="-lposix4 $LIBS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013615cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013616/* end confdefs.h. */
13617
13618/* Override any GCC internal prototype to avoid an error.
13619 Use char because int might match the return type of a GCC
13620 builtin and then its argument prototype would still apply. */
13621#ifdef __cplusplus
13622extern "C"
13623#endif
13624char sem_init ();
13625int
13626main ()
13627{
13628return sem_init ();
13629 ;
13630 return 0;
13631}
13632_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013633if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013634 ac_cv_lib_posix4_sem_init=yes
13635else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013636 ac_cv_lib_posix4_sem_init=no
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013637fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013638rm -f core conftest.err conftest.$ac_objext \
13639 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013640LIBS=$ac_check_lib_save_LIBS
13641fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013643$as_echo "$ac_cv_lib_posix4_sem_init" >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013644if test "x$ac_cv_lib_posix4_sem_init" = xyes; then :
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013645 $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h
Theodore Ts'od7f45af2008-09-12 10:15:26 -040013646
13647 SEM_INIT_LIB=-lposix4
13648fi
13649
13650fi
13651
13652fi
13653
13654fi
13655
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013657$as_echo_n "checking for unified diff option... " >&6; }
Theodore Ts'o27f991b2008-04-01 20:32:55 -040013658if diff -u $0 $0 > /dev/null 2>&1 ; then
Theodore Ts'oe54635d2006-08-06 14:33:13 -040013659 UNI_DIFF_OPTS=-u
13660else
13661 UNI_DIFF_OPTS=-c
13662fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013664$as_echo "$UNI_DIFF_OPTS" >&6; }
Theodore Ts'oe54635d2006-08-06 14:33:13 -040013665
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000013666case "$host_os" in
13667linux*)
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013668
13669$as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013670
Theodore Ts'o8f3f29d2000-02-11 05:04:44 +000013671 ;;
13672esac
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040013673LINUX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040013674CYGWIN_CMT="#"
13675UNIX_CMT=
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040013676case "$host_os" in
13677linux*)
13678 LINUX_CMT=
13679 ;;
Theodore Ts'offf45482003-04-13 00:44:19 -040013680cygwin)
13681 CYGWIN_CMT=
13682 UNIX_CMT="#"
Theodore Ts'offf45482003-04-13 00:44:19 -040013683 ;;
Theodore Ts'oe6f2bda2002-08-18 03:37:10 -040013684esac
13685
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013686
13687
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013688case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013689linux* | gnu* | k*bsd*-gnu)
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013690 if test "$prefix" = NONE -a "$root_prefix" = NONE ; then
13691 root_prefix="";
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013692 { $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 +010013693$as_echo "On $host_os systems, root_prefix defaults to ''" >&6; }
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013694 fi
13695 ;;
13696esac
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013697case "$host_os" in
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013698linux* | gnu* | k*bsd*-gnu)
Theodore Ts'ofc6d9d51997-04-29 14:51:31 +000013699 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013700 prefix="/usr";
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013701 { $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 +010013702$as_echo "On $host_os systems, prefix defaults to /usr" >&6; }
Theodore Ts'obff61a72002-05-21 22:21:38 -040013703 if test "$mandir" = '${prefix}/man' ; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013705$as_echo "...and mandir defaults to /usr/share/man" >&6; }
Theodore Ts'obff61a72002-05-21 22:21:38 -040013706 mandir=/usr/share/man
13707 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013708 fi
13709;;
13710esac
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013711if test "$root_prefix" = NONE ; then
Theodore Ts'offe19911998-04-08 06:05:49 +000013712 if test "$prefix" = NONE ; then
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013713 root_prefix="$ac_default_prefix"
13714 else
13715 root_prefix="$prefix"
13716 fi
Theodore Ts'ob5ffead2002-05-11 19:17:00 -040013717 root_bindir=$bindir
13718 root_sbindir=$sbindir
13719 root_libdir=$libdir
13720 root_sysconfdir=$sysconfdir
13721else
13722 root_bindir='${root_prefix}/bin'
13723 root_sbindir='${root_prefix}/sbin'
13724 root_libdir='${root_prefix}/lib'
13725 root_sysconfdir='${root_prefix}/etc'
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013726fi
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050013727if test "$bindir" != '${exec_prefix}/bin'; then
13728 root_bindir=$bindir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013730$as_echo "Setting root_bindir to $root_bindir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050013731fi
13732if test "$sbindir" != '${exec_prefix}/sbin'; then
13733 root_sbindir=$sbindir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013735$as_echo "Setting root_sbindir to $root_sbindir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050013736fi
13737if test "$libdir" != '${exec_prefix}/lib'; then
13738 root_libdir=$libdir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013740$as_echo "Setting root_libdir to $root_libdir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050013741fi
13742if test "$sysconfdir" != '${prefix}/etc'; then
13743 root_sysconfdir=$sysconfdir
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013745$as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; }
Theodore Ts'oc4ef11c2008-01-04 16:55:37 -050013746fi
Theodore Ts'oa4b2d3c1998-04-03 16:12:25 +000013747
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013748
13749
13750
13751
Theodore Ts'o55e00a22011-09-18 23:53:23 -040013752
13753# Check whether --with-multiarch was given.
13754if test "${with_multiarch+set}" = set; then :
Theodore Ts'od7fa4102014-02-05 15:45:36 -050013755 withval=$with_multiarch; if test "$withval" = "lib64"; then
13756 libdir=/usr/lib64
13757 root_libdir=/lib64
13758else
13759 libdir=$libdir/$withval
13760 root_libdir=$root_libdir/$withval
13761fi
Theodore Ts'o55e00a22011-09-18 23:53:23 -040013762
13763fi
Theodore Ts'od3de1a72012-12-15 22:10:27 -050013764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can link with -static" >&5
13765$as_echo_n "checking whether we can link with -static... " >&6; }
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013766if ${ac_cv_e2fsprogs_use_static+:} false; then :
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013767 $as_echo_n "(cached) " >&6
Theodore Ts'oae851481997-04-29 18:13:24 +000013768else
Theodore Ts'ofd1677e2016-05-21 23:51:19 -040013769 SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS_STATIC -static"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013770cat confdefs.h - <<_ACEOF >conftest.$ac_ext
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013771/* end confdefs.h. */
Theodore Ts'oae851481997-04-29 18:13:24 +000013772#include <stdio.h>
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013773int
13774main ()
13775{
Theodore Ts'oae851481997-04-29 18:13:24 +000013776fflush(stdout);
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013777 ;
13778 return 0;
13779}
13780_ACEOF
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013781if ac_fn_c_try_link "$LINENO"; then :
Theodore Ts'oae851481997-04-29 18:13:24 +000013782 ac_cv_e2fsprogs_use_static=yes
13783else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013784 ac_cv_e2fsprogs_use_static=no
Theodore Ts'oae851481997-04-29 18:13:24 +000013785fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013786rm -f core conftest.err conftest.$ac_objext \
13787 conftest$ac_exeext conftest.$ac_ext
Theodore Ts'oae851481997-04-29 18:13:24 +000013788LDFLAGS=$SAVE_LDFLAGS
13789fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013790
Theodore Ts'odefde781999-01-04 07:39:19 +000013791case "$host_os" in
13792solaris2.*)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013793 ac_cv_e2fsprogs_use_static=no
Theodore Ts'odefde781999-01-04 07:39:19 +000013794;;
13795esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013797$as_echo "$ac_cv_e2fsprogs_use_static" >&6; }
Theodore Ts'oae851481997-04-29 18:13:24 +000013798if test $ac_cv_e2fsprogs_use_static = yes; then
Theodore Ts'ofd1677e2016-05-21 23:51:19 -040013799 LDFLAGS_STATIC="$LDFLAGS_STATIC -static"
Theodore Ts'oae851481997-04-29 18:13:24 +000013800fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013801
Theodore Ts'o07a0db12003-07-05 14:50:24 -040013802case "$host_os" in
13803darwin*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013805$as_echo "Using Apple Darwin / GNU libintl workaround" >&6; }
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013806
13807$as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h
Theodore Ts'o07a0db12003-07-05 14:50:24 -040013808
13809 ;;
13810esac
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013811if test "$cross_compiling" = yes ; then
13812 DO_TEST_SUITE=
13813else
13814 DO_TEST_SUITE=check
13815fi
13816
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013817INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib'
13818if test -n "$CPPFLAGS" ; then
13819 INCLUDES="$INCLUDES $CPPFLAGS"
13820fi
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040013821if test "$USE_INCLUDED_LIBINTL" = "yes" ; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013822 INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl'
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040013823fi
Theodore Ts'o6c59a662014-01-04 20:44:29 -050013824if test -n "$WITH_DIET_LIBC" ; then
13825 INCLUDES="$INCLUDES -D_REENTRANT"
13826fi
Theodore Ts'oc6f35b82003-05-17 16:29:27 -040013827
Theodore Ts'o5b5bd2c2014-07-10 00:17:05 -040013828
13829 MKINSTALLDIRS=
13830 if test -n "$ac_aux_dir"; then
13831 case "$ac_aux_dir" in
13832 /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;;
13833 *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;;
13834 esac
13835 fi
13836 if test -z "$MKINSTALLDIRS"; then
13837 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
13838 fi
13839
13840
Theodore Ts'odd947da2005-11-09 18:37:07 -040013841if test $cross_compiling = no; then
Theodore Ts'o28739272014-01-03 00:26:43 -050013842 BUILD_CFLAGS="$CFLAGS $CPPFLAGS $INCLUDES -DHAVE_CONFIG_H"
Theodore Ts'odd947da2005-11-09 18:37:07 -040013843 BUILD_LDFLAGS="$LDFLAGS"
Theodore Ts'odd947da2005-11-09 18:37:07 -040013844fi
13845
13846
Theodore Ts'ofd1677e2016-05-21 23:51:19 -040013847CFLAGS_SHLIB=${CFLAGS_SHLIB:-$CFLAGS}
13848CFLAGS_STLIB=${CFLAGS_STLIB:-$CFLAGS}
13849LDFLAGS_SHLIB=${LDFLAGS_SHLIB:-$LDFLAGS}
13850
13851
13852
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013853test -d lib || mkdir lib
13854test -d include || mkdir include
13855test -d include/linux || mkdir include/linux
Theodore Ts'odefde781999-01-04 07:39:19 +000013856test -d include/asm || mkdir include/asm
Theodore Ts'o44dfb372015-07-01 19:42:05 -040013857if test -z "$UUID_CMT" ; then
13858 uuid_out_list="lib/uuid/Makefile lib/uuid/uuid.pc \
13859 lib/uuid/uuid_types.h"
13860fi
13861if test -z "$BLKID_CMT" ; then
13862 blkid_out_list="lib/blkid/Makefile lib/blkid/blkid.pc \
13863 lib/blkid/blkid_types.h"
13864fi
Theodore Ts'obff0cc92003-03-23 01:37:53 -050013865for i in MCONFIG Makefile e2fsprogs.spec \
Theodore Ts'o183c73b2012-05-12 23:13:24 -040013866 util/Makefile util/subst.conf util/gen-tarball util/install-symlink \
Theodore Ts'o4ea7ea02006-04-09 08:41:55 -040013867 lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \
13868 lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \
Theodore Ts'of34af412015-07-11 23:05:57 -040013869 $uuid_out_list $blkid_out_list lib/support/Makefile \
Theodore Ts'o44dfb372015-07-01 19:42:05 -040013870 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 -050013871 misc/Makefile ext2ed/Makefile e2fsck/Makefile \
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050013872 debugfs/Makefile tests/Makefile tests/progs/Makefile \
Matthias Andree98a5ad62009-07-15 17:37:52 +020013873 resize/Makefile doc/Makefile intl/Makefile \
13874 intl/libgnuintl.h po/Makefile.in ; do
Theodore Ts'o94ba8c72003-03-02 02:07:14 -050013875 if test -d `dirname ${srcdir}/$i` ; then
13876 outlist="$outlist $i"
13877 fi
13878done
Theodore Ts'oe1052142006-10-21 21:46:47 -040013879ac_config_files="$ac_config_files $outlist"
13880
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013881cat >confcache <<\_ACEOF
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013882# This file is a shell script that caches the results of configure
13883# tests run on this system so they can be shared between configure
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013884# scripts and configure runs, see configure's option --config-cache.
13885# It is not useful on other systems. If it contains results you don't
13886# want to keep, you may remove or edit it.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013887#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013888# config.status only pays attention to the cache file if you give it
13889# the --recheck option to rerun configure.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013890#
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013891# `ac_cv_env_foo' variables (set or unset) will be overridden when
13892# loading this file, other *unset* `ac_cv_foo' will be assigned the
13893# following values.
13894
13895_ACEOF
13896
Theodore Ts'o21c84b71997-04-29 16:15:03 +000013897# The following way of writing the cache mishandles newlines in values,
13898# but we know of no workaround that is simple, portable, and efficient.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013899# So, we kill variables containing newlines.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013900# Ultrix sh set writes to stderr and can't be redirected directly,
13901# and sets the high bit in the cache file unless we assign to the vars.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013902(
13903 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13904 eval ac_val=\$$ac_var
13905 case $ac_val in #(
13906 *${as_nl}*)
13907 case $ac_var in #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013908 *_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 +010013909$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013910 esac
13911 case $ac_var in #(
13912 _ | IFS | as_nl) ;; #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013913 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013914 *) { eval $ac_var=; unset $ac_var;} ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013915 esac ;;
13916 esac
13917 done
13918
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013919 (set) 2>&1 |
Theodore Ts'oe1052142006-10-21 21:46:47 -040013920 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13921 *${as_nl}ac_space=\ *)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013922 # `set' does not quote correctly, so add quotes: double-quote
13923 # substitution turns \\\\ into \\, and sed turns \\ into \.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013924 sed -n \
13925 "s/'/'\\\\''/g;
13926 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
Theodore Ts'oe1052142006-10-21 21:46:47 -040013927 ;; #(
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013928 *)
13929 # `set' quotes correctly as required by POSIX, so do not add quotes.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013930 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013931 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040013932 esac |
13933 sort
13934) |
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013935 sed '
Theodore Ts'oe1052142006-10-21 21:46:47 -040013936 /^ac_cv_env_/b end
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013937 t clear
Theodore Ts'oe1052142006-10-21 21:46:47 -040013938 :clear
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013939 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13940 t end
Theodore Ts'oe1052142006-10-21 21:46:47 -040013941 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13942 :end' >>confcache
13943if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13944 if test -w "$cache_file"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013945 if test "x$cache_file" != "x/dev/null"; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013946 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013947$as_echo "$as_me: updating cache $cache_file" >&6;}
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013948 if test ! -f "$cache_file" || test -h "$cache_file"; then
13949 cat confcache >"$cache_file"
13950 else
13951 case $cache_file in #(
13952 */* | ?:*)
13953 mv -f confcache "$cache_file"$$ &&
13954 mv -f "$cache_file"$$ "$cache_file" ;; #(
13955 *)
13956 mv -f confcache "$cache_file" ;;
13957 esac
13958 fi
13959 fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013960 else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013961 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013962$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013963 fi
13964fi
13965rm -f confcache
13966
Theodore Ts'o50e1e101997-04-26 13:58:21 +000013967test "x$prefix" = xNONE && prefix=$ac_default_prefix
13968# Let make expand exec_prefix.
13969test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13970
Theodore Ts'od1154eb2011-09-18 17:34:37 -040013971DEFS=-DHAVE_CONFIG_H
Theodore Ts'o93636bd2003-07-12 02:45:05 -040013972
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013973ac_libobjs=
13974ac_ltlibobjs=
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013975U=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013976for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13977 # 1. Remove the extension, and $U if already installed.
Theodore Ts'oe1052142006-10-21 21:46:47 -040013978 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013979 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
Theodore Ts'oe1052142006-10-21 21:46:47 -040013980 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13981 # will be set to the directory where LIBOBJS objects are built.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013982 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13983 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013984done
13985LIBOBJS=$ac_libobjs
13986
13987LTLIBOBJS=$ac_ltlibobjs
13988
13989
13990
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013991
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100013992: "${CONFIG_STATUS=./config.status}"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013993ac_write_fail=0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050013994ac_clean_files_save=$ac_clean_files
13995ac_clean_files="$ac_clean_files $CONFIG_STATUS"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013996{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010013997$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050013998as_write_fail=0
13999cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014000#! $SHELL
14001# Generated by $as_me.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014002# Run this file to recreate the current configuration.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014003# Compiler output produced by configure, useful for debugging
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014004# configure, is in config.log if it exists.
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014005
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014006debug=false
14007ac_cs_recheck=false
14008ac_cs_silent=false
Theodore Ts'o07a0db12003-07-05 14:50:24 -040014009
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014010SHELL=\${CONFIG_SHELL-$SHELL}
14011export SHELL
14012_ASEOF
14013cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
14014## -------------------- ##
14015## M4sh Initialization. ##
14016## -------------------- ##
Theodore Ts'o07a0db12003-07-05 14:50:24 -040014017
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014018# Be more Bourne compatible
14019DUALCASE=1; export DUALCASE # for MKS sh
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014020if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014021 emulate sh
14022 NULLCMD=:
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014023 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014024 # is contrary to our usage. Disable this feature.
14025 alias -g '${1+"$@"}'='"$@"'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014026 setopt NO_GLOB_SUBST
14027else
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014028 case `(set -o) 2>/dev/null` in #(
14029 *posix*) :
14030 set -o posix ;; #(
14031 *) :
14032 ;;
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014033esac
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014034fi
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014035
14036
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014037as_nl='
14038'
14039export as_nl
14040# Printing a long string crashes Solaris 7 /usr/bin/printf.
14041as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14042as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14043as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014044# Prefer a ksh shell builtin over an external printf program on Solaris,
14045# but without wasting forks for bash or zsh.
14046if test -z "$BASH_VERSION$ZSH_VERSION" \
14047 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14048 as_echo='print -r --'
14049 as_echo_n='print -rn --'
14050elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014051 as_echo='printf %s\n'
14052 as_echo_n='printf %s'
14053else
14054 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14055 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14056 as_echo_n='/usr/ucb/echo -n'
14057 else
14058 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14059 as_echo_n_body='eval
14060 arg=$1;
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014061 case $arg in #(
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014062 *"$as_nl"*)
14063 expr "X$arg" : "X\\(.*\\)$as_nl";
14064 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14065 esac;
14066 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14067 '
14068 export as_echo_n_body
14069 as_echo_n='sh -c $as_echo_n_body as_echo'
14070 fi
14071 export as_echo_body
14072 as_echo='sh -c $as_echo_body as_echo'
14073fi
14074
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014075# The user is always right.
14076if test "${PATH_SEPARATOR+set}" != set; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014077 PATH_SEPARATOR=:
14078 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
14079 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14080 PATH_SEPARATOR=';'
14081 }
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014082fi
14083
Theodore Ts'oe1052142006-10-21 21:46:47 -040014084
14085# IFS
14086# We need space, tab and new line, in precisely that order. Quoting is
14087# there to prevent editors from complaining about space-tab.
14088# (If _AS_PATH_WALK were called with IFS unset, it would disable word
14089# splitting by setting IFS to empty value.)
Theodore Ts'oe1052142006-10-21 21:46:47 -040014090IFS=" "" $as_nl"
14091
14092# Find who we are. Look in the path if we contain no directory separator.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014093as_myself=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014094case $0 in #((
Theodore Ts'oe1052142006-10-21 21:46:47 -040014095 *[\\/]* ) as_myself=$0 ;;
14096 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014097for as_dir in $PATH
14098do
14099 IFS=$as_save_IFS
14100 test -z "$as_dir" && as_dir=.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14102 done
Theodore Ts'oe1052142006-10-21 21:46:47 -040014103IFS=$as_save_IFS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014104
Theodore Ts'oe1052142006-10-21 21:46:47 -040014105 ;;
14106esac
14107# We did not find ourselves, most probably we were run as `sh COMMAND'
14108# in which case we are not to be found in the path.
14109if test "x$as_myself" = x; then
14110 as_myself=$0
14111fi
14112if test ! -f "$as_myself"; then
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014114 exit 1
Theodore Ts'oe1052142006-10-21 21:46:47 -040014115fi
14116
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014117# Unset variables that we do not need and which cause bugs (e.g. in
14118# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
14119# suppresses any "Segmentation fault" message there. '((' could
14120# trigger a bug in pdksh 5.2.14.
14121for as_var in BASH_ENV ENV MAIL MAILPATH
14122do eval test x\${$as_var+set} = xset \
14123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
Theodore Ts'oe1052142006-10-21 21:46:47 -040014124done
14125PS1='$ '
14126PS2='> '
14127PS4='+ '
14128
14129# NLS nuisances.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014130LC_ALL=C
14131export LC_ALL
14132LANGUAGE=C
14133export LANGUAGE
Theodore Ts'oe1052142006-10-21 21:46:47 -040014134
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014135# CDPATH.
14136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14137
14138
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014139# as_fn_error STATUS ERROR [LINENO LOG_FD]
14140# ----------------------------------------
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014141# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14142# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014143# script with STATUS, using 1 if that was 0.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014144as_fn_error ()
14145{
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014146 as_status=$1; test $as_status -eq 0 && as_status=1
14147 if test "$4"; then
14148 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14149 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014150 fi
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014151 $as_echo "$as_me: error: $2" >&2
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014152 as_fn_exit $as_status
14153} # as_fn_error
14154
14155
14156# as_fn_set_status STATUS
14157# -----------------------
14158# Set $? to STATUS, without forking.
14159as_fn_set_status ()
14160{
14161 return $1
14162} # as_fn_set_status
14163
14164# as_fn_exit STATUS
14165# -----------------
14166# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14167as_fn_exit ()
14168{
14169 set +e
14170 as_fn_set_status $1
14171 exit $1
14172} # as_fn_exit
14173
14174# as_fn_unset VAR
14175# ---------------
14176# Portably unset VAR.
14177as_fn_unset ()
14178{
14179 { eval $1=; unset $1;}
14180}
14181as_unset=as_fn_unset
14182# as_fn_append VAR VALUE
14183# ----------------------
14184# Append the text in VALUE to the end of the definition contained in VAR. Take
14185# advantage of any shell optimizations that allow amortized linear growth over
14186# repeated appends, instead of the typical quadratic growth present in naive
14187# implementations.
14188if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14189 eval 'as_fn_append ()
14190 {
14191 eval $1+=\$2
14192 }'
14193else
14194 as_fn_append ()
14195 {
14196 eval $1=\$$1\$2
14197 }
14198fi # as_fn_append
14199
14200# as_fn_arith ARG...
14201# ------------------
14202# Perform arithmetic evaluation on the ARGs, and store the result in the
14203# global $as_val. Take advantage of shells that can avoid forks. The arguments
14204# must be portable across $(()) and expr.
14205if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14206 eval 'as_fn_arith ()
14207 {
14208 as_val=$(( $* ))
14209 }'
14210else
14211 as_fn_arith ()
14212 {
14213 as_val=`expr "$@" || test $? -eq 1`
14214 }
14215fi # as_fn_arith
14216
14217
Theodore Ts'oe1052142006-10-21 21:46:47 -040014218if expr a : '\(a\)' >/dev/null 2>&1 &&
14219 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14220 as_expr=expr
14221else
14222 as_expr=false
14223fi
14224
14225if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
14226 as_basename=basename
14227else
14228 as_basename=false
14229fi
14230
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014231if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14232 as_dirname=dirname
14233else
14234 as_dirname=false
14235fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014236
Theodore Ts'oe1052142006-10-21 21:46:47 -040014237as_me=`$as_basename -- "$0" ||
14238$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14239 X"$0" : 'X\(//\)$' \| \
14240 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014241$as_echo X/"$0" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040014242 sed '/^.*\/\([^/][^/]*\)\/*$/{
14243 s//\1/
14244 q
14245 }
14246 /^X\/\(\/\/\)$/{
14247 s//\1/
14248 q
14249 }
14250 /^X\/\(\/\).*/{
14251 s//\1/
14252 q
14253 }
14254 s/.*/./; q'`
14255
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014256# Avoid depending upon Character Ranges.
14257as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14258as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14259as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14260as_cr_digits='0123456789'
14261as_cr_alnum=$as_cr_Letters$as_cr_digits
Theodore Ts'oe1052142006-10-21 21:46:47 -040014262
14263ECHO_C= ECHO_N= ECHO_T=
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014264case `echo -n x` in #(((((
Theodore Ts'oe1052142006-10-21 21:46:47 -040014265-n*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014266 case `echo 'xy\c'` in
Theodore Ts'oe1052142006-10-21 21:46:47 -040014267 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014268 xy) ECHO_C='\c';;
14269 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14270 ECHO_T=' ';;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014271 esac;;
14272*)
14273 ECHO_N='-n';;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014274esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014275
14276rm -f conf$$ conf$$.exe conf$$.file
Theodore Ts'oe1052142006-10-21 21:46:47 -040014277if test -d conf$$.dir; then
14278 rm -f conf$$.dir/conf$$.file
14279else
14280 rm -f conf$$.dir
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014281 mkdir conf$$.dir 2>/dev/null
Theodore Ts'oe1052142006-10-21 21:46:47 -040014282fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014283if (echo >conf$$.file) 2>/dev/null; then
14284 if ln -s conf$$.file conf$$ 2>/dev/null; then
14285 as_ln_s='ln -s'
14286 # ... but there are two gotchas:
14287 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14288 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014289 # In both cases, we have to default to `cp -pR'.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014290 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014291 as_ln_s='cp -pR'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014292 elif ln conf$$.file conf$$ 2>/dev/null; then
14293 as_ln_s=ln
14294 else
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014295 as_ln_s='cp -pR'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014296 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014297else
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014298 as_ln_s='cp -pR'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014299fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014300rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14301rmdir conf$$.dir 2>/dev/null
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014302
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014303
14304# as_fn_mkdir_p
14305# -------------
14306# Create "$as_dir" as a directory, including parents if necessary.
14307as_fn_mkdir_p ()
14308{
14309
14310 case $as_dir in #(
14311 -*) as_dir=./$as_dir;;
14312 esac
14313 test -d "$as_dir" || eval $as_mkdir_p || {
14314 as_dirs=
14315 while :; do
14316 case $as_dir in #(
14317 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14318 *) as_qdir=$as_dir;;
14319 esac
14320 as_dirs="'$as_qdir' $as_dirs"
14321 as_dir=`$as_dirname -- "$as_dir" ||
14322$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14323 X"$as_dir" : 'X\(//\)[^/]' \| \
14324 X"$as_dir" : 'X\(//\)$' \| \
14325 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14326$as_echo X"$as_dir" |
14327 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14328 s//\1/
14329 q
14330 }
14331 /^X\(\/\/\)[^/].*/{
14332 s//\1/
14333 q
14334 }
14335 /^X\(\/\/\)$/{
14336 s//\1/
14337 q
14338 }
14339 /^X\(\/\).*/{
14340 s//\1/
14341 q
14342 }
14343 s/.*/./; q'`
14344 test -d "$as_dir" && break
14345 done
14346 test -z "$as_dirs" || eval "mkdir $as_dirs"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014347 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014348
14349
14350} # as_fn_mkdir_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014351if mkdir -p . 2>/dev/null; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014352 as_mkdir_p='mkdir -p "$as_dir"'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014353else
14354 test -d ./-p && rmdir ./-p
14355 as_mkdir_p=false
14356fi
14357
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014358
14359# as_fn_executable_p FILE
14360# -----------------------
14361# Test if FILE is an executable regular file.
14362as_fn_executable_p ()
14363{
14364 test -f "$1" && test -x "$1"
14365} # as_fn_executable_p
14366as_test_x='test -x'
14367as_executable_p=as_fn_executable_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014368
14369# Sed expression to map a string onto a valid CPP name.
14370as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14371
14372# Sed expression to map a string onto a valid variable name.
14373as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14374
14375
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014376exec 6>&1
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014377## ----------------------------------- ##
14378## Main body of $CONFIG_STATUS script. ##
14379## ----------------------------------- ##
14380_ASEOF
14381test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014382
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014383cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14384# Save the log message, to keep $0 and so on meaningful, and to
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014385# report actual input values of CONFIG_FILES etc. instead of their
Theodore Ts'oe1052142006-10-21 21:46:47 -040014386# values after options handling.
14387ac_log="
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014388This file was extended by $as_me, which was
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014389generated by GNU Autoconf 2.69. Invocation command line was
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014390
14391 CONFIG_FILES = $CONFIG_FILES
14392 CONFIG_HEADERS = $CONFIG_HEADERS
14393 CONFIG_LINKS = $CONFIG_LINKS
14394 CONFIG_COMMANDS = $CONFIG_COMMANDS
14395 $ $0 $@
14396
Theodore Ts'oe1052142006-10-21 21:46:47 -040014397on `(hostname || uname -n) 2>/dev/null | sed 1q`
14398"
14399
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014400_ACEOF
14401
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014402case $ac_config_files in *"
14403"*) set x $ac_config_files; shift; ac_config_files=$*;;
14404esac
14405
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014406case $ac_config_headers in *"
14407"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14408esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014409
14410
14411cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014412# Files that config.status was made for.
Theodore Ts'oe1052142006-10-21 21:46:47 -040014413config_files="$ac_config_files"
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014414config_headers="$ac_config_headers"
Theodore Ts'oe1052142006-10-21 21:46:47 -040014415config_commands="$ac_config_commands"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014416
Theodore Ts'oe1052142006-10-21 21:46:47 -040014417_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014418
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014419cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014420ac_cs_usage="\
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014421\`$as_me' instantiates files and other configuration actions
14422from templates according to the current configuration. Unless the files
14423and actions are specified as TAGs, all are instantiated by default.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014424
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014425Usage: $0 [OPTION]... [TAG]...
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014426
14427 -h, --help print this help, then exit
Theodore Ts'o29a5dee2007-07-04 16:28:47 -040014428 -V, --version print version number and configuration settings, then exit
Theodore Ts'o61ef2472010-08-01 22:30:33 -040014429 --config print configuration, then exit
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014430 -q, --quiet, --silent
14431 do not print progress messages
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014432 -d, --debug don't remove temporary files
14433 --recheck update $as_me by reconfiguring in the same conditions
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014434 --file=FILE[:TEMPLATE]
14435 instantiate the configuration file FILE
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014436 --header=FILE[:TEMPLATE]
14437 instantiate the configuration header FILE
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014438
14439Configuration files:
14440$config_files
14441
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014442Configuration headers:
14443$config_headers
14444
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014445Configuration commands:
14446$config_commands
14447
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014448Report bugs to the package provider."
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014449
Theodore Ts'oe1052142006-10-21 21:46:47 -040014450_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014451cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'o61ef2472010-08-01 22:30:33 -040014452ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014453ac_cs_version="\\
14454config.status
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014455configured by $0, generated by GNU Autoconf 2.69,
Theodore Ts'o61ef2472010-08-01 22:30:33 -040014456 with options \\"\$ac_cs_config\\"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014457
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014458Copyright (C) 2012 Free Software Foundation, Inc.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014459This config.status script is free software; the Free Software Foundation
14460gives unlimited permission to copy, distribute and modify it."
Theodore Ts'oe1052142006-10-21 21:46:47 -040014461
14462ac_pwd='$ac_pwd'
14463srcdir='$srcdir'
14464INSTALL='$INSTALL'
Theodore Ts'o93613952014-07-03 23:44:13 -040014465MKDIR_P='$MKDIR_P'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014466AWK='$AWK'
14467test -n "\$AWK" || AWK=awk
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014468_ACEOF
14469
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014470cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14471# The default lists apply if the user does not specify any file.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014472ac_need_defaults=:
14473while test $# != 0
14474do
14475 case $1 in
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014476 --*=?*)
Theodore Ts'oe1052142006-10-21 21:46:47 -040014477 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14478 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014479 ac_shift=:
14480 ;;
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014481 --*=)
14482 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14483 ac_optarg=
14484 ac_shift=:
14485 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014486 *)
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014487 ac_option=$1
14488 ac_optarg=$2
14489 ac_shift=shift
14490 ;;
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014491 esac
14492
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014493 case $ac_option in
14494 # Handling of the options.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014495 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14496 ac_cs_recheck=: ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014497 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014498 $as_echo "$ac_cs_version"; exit ;;
Theodore Ts'o61ef2472010-08-01 22:30:33 -040014499 --config | --confi | --conf | --con | --co | --c )
14500 $as_echo "$ac_cs_config"; exit ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014501 --debug | --debu | --deb | --de | --d | -d )
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014502 debug=: ;;
14503 --file | --fil | --fi | --f )
14504 $ac_shift
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014505 case $ac_optarg in
14506 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014507 '') as_fn_error $? "missing file argument" ;;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014508 esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014509 as_fn_append CONFIG_FILES " '$ac_optarg'"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014510 ac_need_defaults=false;;
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014511 --header | --heade | --head | --hea )
14512 $ac_shift
14513 case $ac_optarg in
14514 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14515 esac
14516 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
14517 ac_need_defaults=false;;
14518 --he | --h)
14519 # Conflict between --help and --header
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014520 as_fn_error $? "ambiguous option: \`$1'
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014521Try \`$0 --help' for more information.";;
14522 --help | --hel | -h )
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014523 $as_echo "$ac_cs_usage"; exit ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014524 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14525 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14526 ac_cs_silent=: ;;
14527
14528 # This is an error.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014529 -*) as_fn_error $? "unrecognized option: \`$1'
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014530Try \`$0 --help' for more information." ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014531
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014532 *) as_fn_append ac_config_targets " $1"
Theodore Ts'oe1052142006-10-21 21:46:47 -040014533 ac_need_defaults=false ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014534
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014535 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014536 shift
14537done
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014538
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014539ac_configure_extra_args=
Theodore Ts'o93636bd2003-07-12 02:45:05 -040014540
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014541if $ac_cs_silent; then
14542 exec 6>/dev/null
14543 ac_configure_extra_args="$ac_configure_extra_args --silent"
14544fi
14545
14546_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014547cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014548if \$ac_cs_recheck; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014549 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014550 shift
14551 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
14552 CONFIG_SHELL='$SHELL'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014553 export CONFIG_SHELL
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014554 exec "\$@"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014555fi
14556
14557_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014558cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040014559exec 5>>config.log
14560{
14561 echo
14562 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14563## Running $as_me. ##
14564_ASBOX
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014565 $as_echo "$ac_log"
Theodore Ts'oe1052142006-10-21 21:46:47 -040014566} >&5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014567
Theodore Ts'oe1052142006-10-21 21:46:47 -040014568_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014569cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014570#
Theodore Ts'oe1052142006-10-21 21:46:47 -040014571# INIT-COMMANDS
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014572#
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014573# Capture the value of obsolete ALL_LINGUAS because we need it to compute
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014574 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
Theodore Ts'o93613952014-07-03 23:44:13 -040014575 # from automake < 1.5.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014576 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014577 # Capture the value of LINGUAS because we need it to compute CATALOGS.
14578 LINGUAS="${LINGUAS-%UNSET%}"
Theodore Ts'o50e1e101997-04-26 13:58:21 +000014579
Theodore Ts'oa04eba32003-05-03 16:35:17 -040014580
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014581_ACEOF
14582
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014583cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040014584
14585# Handling of arguments.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014586for ac_config_target in $ac_config_targets
14587do
Theodore Ts'oe1052142006-10-21 21:46:47 -040014588 case $ac_config_target in
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014589 "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;;
Theodore Ts'o93613952014-07-03 23:44:13 -040014590 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014591 "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;;
14592
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014593 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014594 esac
14595done
14596
Theodore Ts'oe1052142006-10-21 21:46:47 -040014597
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014598# If the user did not use the arguments to specify the items to instantiate,
14599# then the envvar interface is used. Set only those that are not.
14600# We use the long form for the default assignment because of an extremely
14601# bizarre bug on SunOS 4.1.3.
14602if $ac_need_defaults; then
14603 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014604 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014605 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
14606fi
14607
14608# Have a temporary directory for convenience. Make it in the build tree
Theodore Ts'oe1052142006-10-21 21:46:47 -040014609# simply because there is no reason against having it here, and in addition,
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014610# creating and moving files from /tmp can sometimes cause problems.
Theodore Ts'oe1052142006-10-21 21:46:47 -040014611# Hook for its removal unless debugging.
14612# Note that there is a small window in which the directory will not be cleaned:
14613# after its creation but before its name has been assigned to `$tmp'.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014614$debug ||
14615{
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014616 tmp= ac_tmp=
Theodore Ts'oe1052142006-10-21 21:46:47 -040014617 trap 'exit_status=$?
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014618 : "${ac_tmp:=$tmp}"
14619 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
Theodore Ts'oe1052142006-10-21 21:46:47 -040014620' 0
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014621 trap 'as_fn_exit 1' 1 2 13 15
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014622}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014623# Create a (secure) tmp directory for tmp files.
14624
14625{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014626 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014627 test -d "$tmp"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014628} ||
14629{
Theodore Ts'oe1052142006-10-21 21:46:47 -040014630 tmp=./conf$$-$RANDOM
14631 (umask 077 && mkdir "$tmp")
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014632} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
14633ac_tmp=$tmp
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014634
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014635# Set up the scripts for CONFIG_FILES section.
14636# No need to generate them if there are no CONFIG_FILES.
14637# This happens for instance with `./config.status config.h'.
Theodore Ts'oe1052142006-10-21 21:46:47 -040014638if test -n "$CONFIG_FILES"; then
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014639
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014640if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
14641 ac_cs_awk_getline=:
14642 ac_cs_awk_pipe_init=
14643 ac_cs_awk_read_file='
14644 while ((getline aline < (F[key])) > 0)
14645 print(aline)
14646 close(F[key])'
14647 ac_cs_awk_pipe_fini=
14648else
14649 ac_cs_awk_getline=false
14650 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
14651 ac_cs_awk_read_file='
14652 print "|#_!!_#|"
14653 print "cat " F[key] " &&"
14654 '$ac_cs_awk_pipe_init
14655 # The final `:' finishes the AND list.
14656 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
14657fi
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014658ac_cr=`echo X | tr X '\015'`
14659# On cygwin, bash can eat \r inside `` if the user requested igncr.
14660# But we know of no other shell where ac_cr would be empty at this
14661# point, so we can use a bashism as a fallback.
14662if test "x$ac_cr" = x; then
14663 eval ac_cr=\$\'\\r\'
14664fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014665ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14666if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014667 ac_cs_awk_cr='\\r'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014668else
14669 ac_cs_awk_cr=$ac_cr
14670fi
14671
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014672echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014673_ACEOF
14674
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014675# Create commands to substitute file output variables.
14676{
14677 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014678 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014679 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
14680 echo "_ACAWK" &&
14681 echo "_ACEOF"
14682} >conf$$files.sh &&
14683. ./conf$$files.sh ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014684 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014685rm -f conf$$files.sh
Theodore Ts'oe1052142006-10-21 21:46:47 -040014686
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014687{
14688 echo "cat >conf$$subs.awk <<_ACEOF" &&
14689 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14690 echo "_ACEOF"
14691} >conf$$subs.sh ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014692 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
14693ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040014694ac_delim='%!_!# '
14695for ac_last_try in false false false false false :; do
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014696 . ./conf$$subs.sh ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014697 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014698
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014699 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
14700 if test $ac_delim_n = $ac_delim_num; then
Theodore Ts'oe1052142006-10-21 21:46:47 -040014701 break
14702 elif $ac_last_try; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014703 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014704 else
14705 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014706 fi
Theodore Ts'oe1052142006-10-21 21:46:47 -040014707done
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014708rm -f conf$$subs.sh
Theodore Ts'oe1052142006-10-21 21:46:47 -040014709
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014710cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014711cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
Theodore Ts'oe1052142006-10-21 21:46:47 -040014712_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014713sed -n '
14714h
14715s/^/S["/; s/!.*/"]=/
14716p
14717g
14718s/^[^!]*!//
14719:repl
14720t repl
14721s/'"$ac_delim"'$//
14722t delim
14723:nl
14724h
Theodore Ts'o61ef2472010-08-01 22:30:33 -040014725s/\(.\{148\}\)..*/\1/
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014726t more1
14727s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14728p
14729n
14730b repl
14731:more1
14732s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14733p
14734g
14735s/.\{148\}//
14736t nl
14737:delim
14738h
Theodore Ts'o61ef2472010-08-01 22:30:33 -040014739s/\(.\{148\}\)..*/\1/
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014740t more2
14741s/["\\]/\\&/g; s/^/"/; s/$/"/
14742p
14743b
14744:more2
14745s/["\\]/\\&/g; s/^/"/; s/$/"\\/
14746p
14747g
14748s/.\{148\}//
14749t delim
14750' <conf$$subs.awk | sed '
14751/^[^""]/{
14752 N
14753 s/\n//
14754}
14755' >>$CONFIG_STATUS || ac_write_fail=1
14756rm -f conf$$subs.awk
14757cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14758_ACAWK
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014759cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014760 for (key in S) S_is_set[key] = 1
14761 FS = ""
14762 \$ac_cs_awk_pipe_init
14763}
14764{
14765 line = $ 0
14766 nfields = split(line, field, "@")
14767 substed = 0
14768 len = length(field[1])
14769 for (i = 2; i < nfields; i++) {
14770 key = field[i]
14771 keylen = length(key)
14772 if (S_is_set[key]) {
14773 value = S[key]
14774 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14775 len += length(value) + length(field[++i])
14776 substed = 1
14777 } else
14778 len += 1 + keylen
14779 }
14780 if (nfields == 3 && !substed) {
14781 key = field[2]
14782 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
14783 \$ac_cs_awk_read_file
14784 next
14785 }
14786 }
14787 print line
14788}
14789\$ac_cs_awk_pipe_fini
14790_ACAWK
Theodore Ts'oe1052142006-10-21 21:46:47 -040014791_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014792cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14793if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14794 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14795else
14796 cat
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014797fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
14798 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040014799_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040014800
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014801# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
14802# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
Theodore Ts'oe1052142006-10-21 21:46:47 -040014803# trailing colons and then remove the whole line if VPATH becomes empty
14804# (actually we leave an empty line to preserve line numbers).
14805if test "x$srcdir" = x.; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014806 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
14807h
14808s///
14809s/^/:/
14810s/[ ]*$/:/
14811s/:\$(srcdir):/:/g
14812s/:\${srcdir}:/:/g
14813s/:@srcdir@:/:/g
14814s/^:*//
Theodore Ts'oe1052142006-10-21 21:46:47 -040014815s/:*$//
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014816x
14817s/\(=[ ]*\).*/\1/
14818G
14819s/\n//
Theodore Ts'oe1052142006-10-21 21:46:47 -040014820s/^[^=]*=[ ]*$//
14821}'
14822fi
14823
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014824cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050014825fi # test -n "$CONFIG_FILES"
14826
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014827# Set up the scripts for CONFIG_HEADERS section.
14828# No need to generate them if there are no CONFIG_HEADERS.
14829# This happens for instance with `./config.status Makefile'.
14830if test -n "$CONFIG_HEADERS"; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014831cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014832BEGIN {
14833_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040014834
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014835# Transform confdefs.h into an awk script `defines.awk', embedded as
14836# here-document in config.status, that substitutes the proper values into
14837# config.h.in to produce config.h.
14838
14839# Create a delimiter string that does not exist in confdefs.h, to ease
14840# handling of long lines.
14841ac_delim='%!_!# '
14842for ac_last_try in false false :; do
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014843 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
14844 if test -z "$ac_tt"; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014845 break
14846 elif $ac_last_try; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014847 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014848 else
14849 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14850 fi
14851done
14852
14853# For the awk script, D is an array of macro values keyed by name,
14854# likewise P contains macro parameters if any. Preserve backslash
14855# newline sequences.
14856
14857ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14858sed -n '
14859s/.\{148\}/&'"$ac_delim"'/g
14860t rset
14861:rset
14862s/^[ ]*#[ ]*define[ ][ ]*/ /
14863t def
14864d
14865:def
14866s/\\$//
14867t bsnl
14868s/["\\]/\\&/g
14869s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14870D["\1"]=" \3"/p
14871s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
14872d
14873:bsnl
14874s/["\\]/\\&/g
14875s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
14876D["\1"]=" \3\\\\\\n"\\/p
14877t cont
14878s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
14879t cont
14880d
14881:cont
14882n
14883s/.\{148\}/&'"$ac_delim"'/g
14884t clear
14885:clear
14886s/\\$//
14887t bsnlc
14888s/["\\]/\\&/g; s/^/"/; s/$/"/p
14889d
14890:bsnlc
14891s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
14892b cont
14893' <confdefs.h | sed '
14894s/'"$ac_delim"'/"\\\
14895"/g' >>$CONFIG_STATUS || ac_write_fail=1
14896
14897cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14898 for (key in D) D_is_set[key] = 1
14899 FS = ""
14900}
14901/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14902 line = \$ 0
14903 split(line, arg, " ")
14904 if (arg[1] == "#") {
14905 defundef = arg[2]
14906 mac1 = arg[3]
14907 } else {
14908 defundef = substr(arg[1], 2)
14909 mac1 = arg[2]
14910 }
14911 split(mac1, mac2, "(") #)
14912 macro = mac2[1]
14913 prefix = substr(line, 1, index(line, defundef) - 1)
14914 if (D_is_set[macro]) {
14915 # Preserve the white space surrounding the "#".
14916 print prefix "define", macro P[macro] D[macro]
14917 next
14918 } else {
14919 # Replace #undef with comments. This is necessary, for example,
14920 # in the case of _POSIX_SOURCE, which is predefined and required
14921 # on some systems where configure will not decide to define it.
14922 if (defundef == "undef") {
14923 print "/*", prefix defundef, macro, "*/"
14924 next
14925 }
14926 }
14927}
14928{ print }
14929_ACAWK
14930_ACEOF
14931cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014932 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040014933fi # test -n "$CONFIG_HEADERS"
14934
14935
14936eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014937shift
14938for ac_tag
Theodore Ts'oe1052142006-10-21 21:46:47 -040014939do
14940 case $ac_tag in
14941 :[FHLC]) ac_mode=$ac_tag; continue;;
14942 esac
14943 case $ac_mode$ac_tag in
14944 :[FHL]*:*);;
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014945 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014946 :[FH]-) ac_tag=-:-;;
14947 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14948 esac
14949 ac_save_IFS=$IFS
14950 IFS=:
14951 set x $ac_tag
14952 IFS=$ac_save_IFS
14953 shift
14954 ac_file=$1
14955 shift
14956
14957 case $ac_mode in
14958 :L) ac_source=$1;;
14959 :[FH])
14960 ac_file_inputs=
14961 for ac_f
14962 do
14963 case $ac_f in
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014964 -) ac_f="$ac_tmp/stdin";;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014965 *) # Look for the file first in the build tree, then in the source tree
14966 # (if the path is not absolute). The absolute path cannot be DOS-style,
14967 # because $ac_f cannot contain `:'.
14968 test -f "$ac_f" ||
14969 case $ac_f in
14970 [\\/$]*) false;;
14971 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14972 esac ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014973 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040014974 esac
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014975 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014976 as_fn_append ac_file_inputs " '$ac_f'"
Theodore Ts'oe1052142006-10-21 21:46:47 -040014977 done
14978
14979 # Let's still pretend it is `configure' which instantiates (i.e., don't
14980 # use $as_me), people would be surprised to read:
14981 # /* config.h. Generated by config.status. */
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014982 configure_input='Generated from '`
14983 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14984 `' by configure.'
Theodore Ts'oe1052142006-10-21 21:46:47 -040014985 if test x"$ac_file" != x-; then
14986 configure_input="$ac_file. $configure_input"
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050014987 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014988$as_echo "$as_me: creating $ac_file" >&6;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040014989 fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010014990 # Neutralize special characters interpreted by sed in replacement strings.
14991 case $configure_input in #(
14992 *\&* | *\|* | *\\* )
14993 ac_sed_conf_input=`$as_echo "$configure_input" |
14994 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14995 *) ac_sed_conf_input=$configure_input;;
14996 esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040014997
14998 case $ac_tag in
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100014999 *:-:* | *:-) cat >"$ac_tmp/stdin" \
15000 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015001 esac
15002 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015003 esac
15004
Theodore Ts'oe1052142006-10-21 21:46:47 -040015005 ac_dir=`$as_dirname -- "$ac_file" ||
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015006$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15007 X"$ac_file" : 'X\(//\)[^/]' \| \
15008 X"$ac_file" : 'X\(//\)$' \| \
Theodore Ts'oe1052142006-10-21 21:46:47 -040015009 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015010$as_echo X"$ac_file" |
Theodore Ts'oe1052142006-10-21 21:46:47 -040015011 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15012 s//\1/
15013 q
15014 }
15015 /^X\(\/\/\)[^/].*/{
15016 s//\1/
15017 q
15018 }
15019 /^X\(\/\/\)$/{
15020 s//\1/
15021 q
15022 }
15023 /^X\(\/\).*/{
15024 s//\1/
15025 q
15026 }
15027 s/.*/./; q'`
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050015028 as_dir="$ac_dir"; as_fn_mkdir_p
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015029 ac_builddir=.
15030
Theodore Ts'oe1052142006-10-21 21:46:47 -040015031case "$ac_dir" in
15032.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
15033*)
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015034 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040015035 # A ".." for each directory in $ac_dir_suffix.
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015036 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
Theodore Ts'oe1052142006-10-21 21:46:47 -040015037 case $ac_top_builddir_sub in
15038 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
15039 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
15040 esac ;;
15041esac
15042ac_abs_top_builddir=$ac_pwd
15043ac_abs_builddir=$ac_pwd$ac_dir_suffix
15044# for backward compatibility:
15045ac_top_builddir=$ac_top_build_prefix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015046
15047case $srcdir in
Theodore Ts'oe1052142006-10-21 21:46:47 -040015048 .) # We are building in place.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015049 ac_srcdir=.
Theodore Ts'oe1052142006-10-21 21:46:47 -040015050 ac_top_srcdir=$ac_top_builddir_sub
15051 ac_abs_top_srcdir=$ac_pwd ;;
15052 [\\/]* | ?:[\\/]* ) # Absolute name.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015053 ac_srcdir=$srcdir$ac_dir_suffix;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015054 ac_top_srcdir=$srcdir
15055 ac_abs_top_srcdir=$srcdir ;;
15056 *) # Relative name.
15057 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
15058 ac_top_srcdir=$ac_top_build_prefix$srcdir
15059 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015060esac
Theodore Ts'oe1052142006-10-21 21:46:47 -040015061ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015062
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015063
Theodore Ts'oe1052142006-10-21 21:46:47 -040015064 case $ac_mode in
15065 :F)
15066 #
15067 # CONFIG_FILE
15068 #
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015069
15070 case $INSTALL in
15071 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015072 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015073 esac
Theodore Ts'o93613952014-07-03 23:44:13 -040015074 ac_MKDIR_P=$MKDIR_P
15075 case $MKDIR_P in
15076 [\\/$]* | ?:[\\/]* ) ;;
15077 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
15078 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015079_ACEOF
Theodore Ts'oe1052142006-10-21 21:46:47 -040015080
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015081cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040015082# If the template does not know about datarootdir, expand it.
15083# FIXME: This hack should be removed a few years after 2.60.
15084ac_datarootdir_hack=; ac_datarootdir_seen=
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015085ac_sed_dataroot='
15086/datarootdir/ {
Theodore Ts'oe1052142006-10-21 21:46:47 -040015087 p
15088 q
15089}
15090/@datadir@/p
15091/@docdir@/p
15092/@infodir@/p
15093/@localedir@/p
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050015094/@mandir@/p'
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015095case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
Theodore Ts'oe1052142006-10-21 21:46:47 -040015096*datarootdir*) ac_datarootdir_seen=yes;;
15097*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050015098 { $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 +010015099$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040015100_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015101cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
Theodore Ts'oe1052142006-10-21 21:46:47 -040015102 ac_datarootdir_hack='
15103 s&@datadir@&$datadir&g
15104 s&@docdir@&$docdir&g
15105 s&@infodir@&$infodir&g
15106 s&@localedir@&$localedir&g
15107 s&@mandir@&$mandir&g
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050015108 s&\\\${datarootdir}&$datarootdir&g' ;;
Theodore Ts'oe1052142006-10-21 21:46:47 -040015109esac
15110_ACEOF
15111
15112# Neutralize VPATH when `$srcdir' = `.'.
15113# Shell code in configure.ac might set extrasub.
15114# FIXME: do we really want to maintain this feature?
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015115cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15116ac_sed_extra="$ac_vpsub
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015117$extrasub
15118_ACEOF
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015119cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015120:t
15121/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015122s|@configure_input@|$ac_sed_conf_input|;t t
Theodore Ts'oe1052142006-10-21 21:46:47 -040015123s&@top_builddir@&$ac_top_builddir_sub&;t t
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015124s&@top_build_prefix@&$ac_top_build_prefix&;t t
Theodore Ts'oe1052142006-10-21 21:46:47 -040015125s&@srcdir@&$ac_srcdir&;t t
15126s&@abs_srcdir@&$ac_abs_srcdir&;t t
15127s&@top_srcdir@&$ac_top_srcdir&;t t
15128s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
15129s&@builddir@&$ac_builddir&;t t
15130s&@abs_builddir@&$ac_abs_builddir&;t t
15131s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15132s&@INSTALL@&$ac_INSTALL&;t t
Theodore Ts'o93613952014-07-03 23:44:13 -040015133s&@MKDIR_P@&$ac_MKDIR_P&;t t
Theodore Ts'oe1052142006-10-21 21:46:47 -040015134$ac_datarootdir_hack
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015135"
15136eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
15137if $ac_cs_awk_getline; then
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015138 $AWK -f "$ac_tmp/subs.awk"
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015139else
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015140 $AWK -f "$ac_tmp/subs.awk" | $SHELL
15141fi \
15142 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015143
Theodore Ts'oe1052142006-10-21 21:46:47 -040015144test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015145 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
15146 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
15147 "$ac_tmp/out"`; test -z "$ac_out"; } &&
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050015148 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015149which seems to be undefined. Please make sure it is defined" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015150$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015151which seems to be undefined. Please make sure it is defined" >&2;}
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015152
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015153 rm -f "$ac_tmp/stdin"
Theodore Ts'oe1052142006-10-21 21:46:47 -040015154 case $ac_file in
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015155 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
15156 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015157 esac \
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015158 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Theodore Ts'oe1052142006-10-21 21:46:47 -040015159 ;;
Theodore Ts'od1154eb2011-09-18 17:34:37 -040015160 :H)
15161 #
15162 # CONFIG_HEADER
15163 #
15164 if test x"$ac_file" != x-; then
15165 {
15166 $as_echo "/* $configure_input */" \
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015167 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
15168 } >"$ac_tmp/config.h" \
15169 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
15170 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
Theodore Ts'od1154eb2011-09-18 17:34:37 -040015171 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
15172$as_echo "$as_me: $ac_file is unchanged" >&6;}
15173 else
15174 rm -f "$ac_file"
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015175 mv "$ac_tmp/config.h" "$ac_file" \
15176 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040015177 fi
15178 else
15179 $as_echo "/* $configure_input */" \
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015180 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
15181 || as_fn_error $? "could not create -" "$LINENO" 5
Theodore Ts'od1154eb2011-09-18 17:34:37 -040015182 fi
15183 ;;
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015184
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050015185 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015186$as_echo "$as_me: executing $ac_file commands" >&6;}
Theodore Ts'oe1052142006-10-21 21:46:47 -040015187 ;;
15188 esac
15189
15190
15191 case $ac_file$ac_mode in
Theodore Ts'o93613952014-07-03 23:44:13 -040015192 "po-directories":C)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015193 for ac_file in $CONFIG_FILES; do
15194 # Support "outfile[:infile[:infile...]]"
15195 case "$ac_file" in
15196 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
Theodore Ts'oa64c9c12000-02-08 20:17:21 +000015197 esac
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015198 # PO directories have a Makefile.in generated from Makefile.in.in.
15199 case "$ac_file" in */Makefile.in)
15200 # Adjust a relative srcdir.
15201 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
Theodore Ts'o93613952014-07-03 23:44:13 -040015202 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015203 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
15204 # In autoconf-2.13 it is called $ac_given_srcdir.
15205 # In autoconf-2.50 it is called $srcdir.
15206 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
15207 case "$ac_given_srcdir" in
15208 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
15209 /*) top_srcdir="$ac_given_srcdir" ;;
15210 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
15211 esac
Theodore Ts'o93613952014-07-03 23:44:13 -040015212 # Treat a directory as a PO directory if and only if it has a
15213 # POTFILES.in file. This allows packages to have multiple PO
15214 # directories under different names or in different locations.
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015215 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
15216 rm -f "$ac_dir/POTFILES"
15217 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
Theodore Ts'o93613952014-07-03 23:44:13 -040015218 gt_tab=`printf '\t'`
15219 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 -050015220 POMAKEFILEDEPS="POTFILES.in"
15221 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015222 # on $ac_dir but don't depend on user-specified configuration
15223 # parameters.
15224 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
15225 # The LINGUAS file contains the set of available languages.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015226 if test -n "$OBSOLETE_ALL_LINGUAS"; then
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015227 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
15228 fi
Theodore Ts'o93613952014-07-03 23:44:13 -040015229 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
15230 # Hide the ALL_LINGUAS assignment from automake < 1.5.
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015231 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015232 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
15233 else
15234 # The set of available languages was given in configure.in.
Theodore Ts'o93613952014-07-03 23:44:13 -040015235 # Hide the ALL_LINGUAS assignment from automake < 1.5.
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015236 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015237 fi
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015238 # Compute POFILES
15239 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
15240 # Compute UPDATEPOFILES
15241 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
15242 # Compute DUMMYPOFILES
15243 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
15244 # Compute GMOFILES
15245 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015246 case "$ac_given_srcdir" in
15247 .) srcdirpre= ;;
15248 *) srcdirpre='$(srcdir)/' ;;
15249 esac
15250 POFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015251 UPDATEPOFILES=
15252 DUMMYPOFILES=
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015253 GMOFILES=
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015254 for lang in $ALL_LINGUAS; do
15255 POFILES="$POFILES $srcdirpre$lang.po"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015256 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
15257 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015258 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
Theodore Ts'oa04eba32003-05-03 16:35:17 -040015259 done
15260 # CATALOGS depends on both $ac_dir and the user's LINGUAS
15261 # environment variable.
15262 INST_LINGUAS=
15263 if test -n "$ALL_LINGUAS"; then
15264 for presentlang in $ALL_LINGUAS; do
15265 useit=no
15266 if test "%UNSET%" != "$LINGUAS"; then
15267 desiredlanguages="$LINGUAS"
15268 else
15269 desiredlanguages="$ALL_LINGUAS"
15270 fi
15271 for desiredlang in $desiredlanguages; do
15272 # Use the presentlang catalog if desiredlang is
15273 # a. equal to presentlang, or
15274 # b. a variant of presentlang (because in this case,
15275 # presentlang can be used as a fallback for messages
15276 # which are not translated in the desiredlang catalog).
15277 case "$desiredlang" in
15278 "$presentlang"*) useit=yes;;
15279 esac
15280 done
15281 if test $useit = yes; then
15282 INST_LINGUAS="$INST_LINGUAS $presentlang"
15283 fi
15284 done
15285 fi
15286 CATALOGS=
15287 if test -n "$INST_LINGUAS"; then
15288 for lang in $INST_LINGUAS; do
15289 CATALOGS="$CATALOGS $lang.gmo"
15290 done
15291 fi
15292 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015293 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 -040015294 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
15295 if test -f "$f"; then
15296 case "$f" in
15297 *.orig | *.bak | *~) ;;
15298 *) cat "$f" >> "$ac_dir/Makefile" ;;
15299 esac
15300 fi
15301 done
15302 fi
15303 ;;
15304 esac
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015305 done ;;
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015306
Theodore Ts'oe1052142006-10-21 21:46:47 -040015307 esac
15308done # for ac_tag
15309
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015310
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050015311as_fn_exit 0
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015312_ACEOF
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015313ac_clean_files=$ac_clean_files_save
15314
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015315test $ac_write_fail = 0 ||
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015316 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015317
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015318
15319# configure is writing to config.log, and then calls config.status.
15320# config.status does its own redirection, appending to config.log.
15321# Unfortunately, on DOS this fails, as config.log is still kept open
15322# by configure, so config.status won't be able to write to it; its
15323# output is simply discarded. So we exec the FD to /dev/null,
15324# effectively closing config.log, so it can be properly (re)opened and
15325# appended to by config.status. When coming back to configure, we
15326# need to make the FD available again.
15327if test "$no_create" != yes; then
15328 ac_cs_success=:
15329 ac_config_status_args=
15330 test "$silent" = yes &&
15331 ac_config_status_args="$ac_config_status_args --quiet"
15332 exec 5>/dev/null
15333 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15334 exec 5>>config.log
15335 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15336 # would make configure fail if this is the last instruction.
Tony Breedsd6a4bcb2012-06-26 11:42:15 +100015337 $ac_cs_success || as_fn_exit 1
Theodore Ts'ob0cacab2004-11-30 19:00:19 -050015338fi
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015339if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
Theodore Ts'o57aa50d2009-11-26 10:38:04 -050015340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
Scott James Remnant39fd3d42009-05-14 13:03:25 +010015341$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15342fi
Theodore Ts'o50e1e101997-04-26 13:58:21 +000015343
Theodore Ts'oee683a12005-02-05 15:53:56 -050015344if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi